cosmosc2-tool-dataextractor 5.0.2 → 5.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/dataextractor/js/307.js +1 -1
- data/tools/dataextractor/js/307.js.map +1 -1
- data/tools/dataextractor/js/846.js +2 -0
- data/tools/dataextractor/js/846.js.map +1 -0
- data/tools/dataextractor/js/app.js +1 -1
- data/tools/dataextractor/js/app.js.map +1 -1
- metadata +5 -5
- data/tools/dataextractor/js/482.js +0 -2
- data/tools/dataextractor/js/482.js.map +0 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
(self["webpackChunk_cosmosc2_tool_dataextractor"]=self["webpackChunk_cosmosc2_tool_dataextractor"]||[]).push([[846],{2846:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return te}});var l=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("top-bar",{attrs:{menus:e.menus,title:e.title}}),t("v-container",[t("v-row",[t("v-col",[e._v(" Oldest found log data: ")]),t("v-col",[e._v(" "+e._s(e._f("dateTime")(e.oldestLogDate,e.utcOrLocal))+" ")])],1),t("v-row",[t("v-col",[t("v-text-field",{attrs:{label:"Start Date",type:"date",min:e.oldestLogDateStr,max:e.todaysDate,rules:[e.rules.required],"data-test":"start-date"},model:{value:e.startDate,callback:function(n){e.startDate=n},expression:"startDate"}}),t("v-text-field",{attrs:{label:"End Date",type:"date",min:e.oldestLogDateStr,max:e.todaysDate,rules:[e.rules.required],"data-test":"end-date"},model:{value:e.endDate,callback:function(n){e.endDate=n},expression:"endDate"}})],1),t("v-col",[t("v-text-field",{attrs:{label:"Start Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"start-time"},model:{value:e.startTime,callback:function(n){e.startTime=n},expression:"startTime"}}),t("v-text-field",{attrs:{label:"End Time",type:"time",step:"1",rules:[e.rules.required],"data-test":"end-time"},model:{value:e.endTime,callback:function(n){e.endTime=n},expression:"endTime"}})],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.cmdOrTlm,callback:function(n){e.cmdOrTlm=n},expression:"cmdOrTlm"}},[t("v-radio",{attrs:{label:"Command",value:"cmd","data-test":"cmd-radio"}}),t("v-radio",{attrs:{label:"Telemetry",value:"tlm","data-test":"tlm-radio"}})],1)],1),t("v-col",[t("v-radio-group",{staticClass:"mt-0",attrs:{row:"","hide-details":""},model:{value:e.utcOrLocal,callback:function(n){e.utcOrLocal=n},expression:"utcOrLocal"}},[t("v-radio",{attrs:{label:"LST",value:"loc","data-test":"lst-radio"}}),t("v-radio",{attrs:{label:"UTC",value:"utc","data-test":"utc-radio"}})],1)],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",[t("v-radio-group",{attrs:{row:"","hide-details":""},model:{value:e.reduced,callback:function(n){e.reduced=n},expression:"reduced"}},[t("span",{staticClass:"mr-5"},[e._v("Data Reduction:")]),t("v-radio",{attrs:{label:"None",value:"DECOM","data-test":"not-reduced"}}),t("v-radio",{attrs:{label:"Minute",value:"REDUCED_MINUTE","data-test":"min-reduced"}}),t("v-radio",{attrs:{label:"Hour",value:"REDUCED_HOUR","data-test":"hour-reduced"}}),t("v-radio",{attrs:{label:"Day",value:"REDUCED_DAY","data-test":"day-reduced"}})],1)],1)],1),t("v-row",[t("v-col",[t("target-packet-item-chooser",{attrs:{"button-text":"Add Item",mode:e.cmdOrTlm,reduced:e.reduced,"choose-item":"","allow-all":""},on:{click:function(n){return e.addItem(n)}}})],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-toolbar",[t("v-progress-circular",{attrs:{value:e.progress}}),t("v-spacer"),t("v-toolbar-title",[e._v(" Items ")]),t("v-spacer"),t("v-btn",{staticClass:"primary mr-4",attrs:{disabled:e.items.length<1},domProps:{textContent:e._s(e.processButtonText)},on:{click:e.processItems}}),t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(n){var l=n.on,i=n.attrs;return[t("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.items.length<1,"data-test":"editAll"},on:{click:function(n){e.editAll=!0}}},"v-btn",i,!1),l),[t("v-icon",[e._v(" mdi-pencil ")])],1)]}}])},[t("span",[e._v("Edit All Items")])]),t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(n){var l=n.on,i=n.attrs;return[t("v-btn",e._g(e._b({attrs:{icon:"",disabled:e.items.length<1,"data-test":"delete-all"},on:{click:e.deleteAll}},"v-btn",i,!1),l),[t("v-icon",[e._v("mdi-delete")])],1)]}}])},[t("span",[e._v("Delete All Items")])])],1)],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-list",{attrs:{"data-test":"item-list",width:"100%"}},e._l(e.items,(function(n,l){return t("div",{key:l},[t("v-list-item",[t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[t("v-icon",e._g(e._b({on:{click:function(e){e.stopPropagation(),n.edit=!0}}},"v-icon",o,!1),i),[e._v(" mdi-pencil ")])]}}],null,!0)},[t("span",[e._v("Edit Item")])]),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;n.edit=!1}},model:{value:n.edit,callback:function(t){e.$set(n,"edit",t)},expression:"item.edit"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" DataExtractor: Edit Item Mode ")]),t("v-spacer")],1),t("v-card-title",{domProps:{textContent:e._s(e.getItemLabel(n))}}),t("v-card-text",[t("v-col",[t("v-select",{attrs:{"hide-details":"",items:e.valueTypes,label:"Value Type",outlined:""},model:{value:n.valueType,callback:function(t){e.$set(n,"valueType",t)},expression:"item.valueType"}})],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{attrs:{color:"primary"},on:{click:function(e){n.edit=!1}}},[e._v(" Close ")])],1)],1)],1)],1),t("v-list-item-content",[t("v-list-item-title",{domProps:{textContent:e._s(e.getItemLabel(n))}})],1),t("v-list-item-icon",[t("v-tooltip",{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[t("v-icon",e._g(e._b({on:{click:function(t){return e.deleteItem(n)}}},"v-icon",o,!1),i),[e._v(" mdi-delete ")])]}}],null,!0)},[t("span",[e._v("Delete Item")])])],1)],1),t("v-divider")],1)})),0)],1)],1),t("v-dialog",{attrs:{"max-width":"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancelEditAll.apply(null,arguments)}},model:{value:e.editAll,callback:function(n){e.editAll=n},expression:"editAll"}},[t("v-card",[t("v-system-bar",[t("v-spacer"),t("span",[e._v(" DataExtractor: Edit All Items")]),t("v-spacer")],1),t("v-card-text",{staticClass:"mt-2"},[e._v(" This will change all items to the following data type! "),t("v-col",[t("v-select",{attrs:{"hide-details":"",items:e.valueTypes,label:"Value Type",outlined:""},model:{value:e.allItemValueType,callback:function(n){e.allItemValueType=n},expression:"allItemValueType"}})],1)],1),t("v-card-actions",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:function(n){e.editAll=!e.editAll}}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{disabled:!e.allItemValueType,color:"primary"},on:{click:function(n){return e.editAllValueTypes()}}},[e._v(" Ok ")])],1)],1)],1),e.openConfig?t("open-config-dialog",{attrs:{tool:e.toolName},on:{success:function(n){return e.openConfiguration(n)}},model:{value:e.openConfig,callback:function(n){e.openConfig=n},expression:"openConfig"}}):e._e(),e.saveConfig?t("save-config-dialog",{attrs:{tool:e.toolName},on:{success:function(n){return e.saveConfiguration(n)}},model:{value:e.saveConfig,callback:function(n){e.saveConfig=n},expression:"saveConfig"}}):e._e()],1)},i=[],o=t(7475),a=t(5225),s=t(6451),c=t(6711),r=(t(6710),t(4083),t(9805),t(8178),t(7950),t(5940),t(8188),t(1939),t(9529),t(1235),t(4769),t(8319),t(3244),t(8673),t(6886),t(3430),t(4121),t(523),t(570)),u=t(9490),m=t(6330),d=t(2209),A=t(3696),v=(t(5047),t(1372),t(1245),t(9644)),f=t.n(v),p=t(4091),h=new p["default"],C=f().create({baseURL:location.origin,timeout:1e4,params:{}});C.interceptors.response.use((function(e){return e}),(function(e){if(401===e.response.status)delete localStorage.cosmosToken,CosmosAuth.login(location.href);else{var n,t,l,i,o,a,s,c,r,u,m="HTTP ".concat(e.response.status," - ");if(null!==(n=e.response)&&void 0!==n&&n.statusText&&(m+="".concat(e.response.statusText," ")),null!==(t=e.response)&&void 0!==t&&null!==(l=t.config)&&void 0!==l&&l.data&&(m+="".concat(e.response.config.data," ")),null!==(i=e.response)&&void 0!==i&&null!==(o=i.data)&&void 0!==o&&o.message)m+="".concat(e.response.data.message);else if(null!==(a=e.response)&&void 0!==a&&null!==(s=a.data)&&void 0!==s&&s.exception)m+="".concat(e.response.data.exception);else if(null!==(c=e.response)&&void 0!==c&&null!==(r=c.data)&&void 0!==r&&null!==(u=r.error)&&void 0!==u&&u.message)e.response.data.error.class&&(m+="".concat(e.response.data.error.class," ")),m+="".concat(e.response.data.error.message);else{var d;m+="".concat(null===(d=e.response)||void 0===d?void 0:d.data)}h.$notify.serious({title:"Network error",body:m})}throw e}));var g=C,_=function(){function e(){(0,m.Z)(this,e),(0,A.Z)(this,"id",1)}return(0,d.Z)(e,[{key:"exec",value:function(){var e=(0,u.Z)(regeneratorRuntime.mark((function e(n,t){var l,i,o,a=arguments;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return l=a.length>2&&void 0!==a[2]?a[2]:{},e.prev=1,e.next=4,CosmosAuth.updateToken(CosmosAuth.defaultMinValidity);case 4:e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](1),CosmosAuth.login();case 9:return this.id=this.id+1,e.prev=10,l["scope"]=localStorage.scope,e.next=14,g.post("/cosmos-api/api",{jsonrpc:"2.0",method:n,params:t,id:this.id,keyword_params:l},{headers:{Authorization:localStorage.cosmosToken,"Content-Type":"application/json-rpc"}});case 14:return i=e.sent,e.abrupt("return",i.data.result);case 18:throw e.prev=18,e.t1=e["catch"](10),o=new Error,e.t1.response?(o.name=e.t1.response.data.error.data.class,o.message=e.t1.response.data.error.data.message):e.t1.request?(o.name="Request error",o.message="Request error, no response received"):o.name="Unknown error",o;case 23:case"end":return e.stop()}}),e,this,[[1,6],[10,18]])})));function n(n,t){return e.apply(this,arguments)}return n}()},{key:"decode_cosmos_type",value:function(e){if(null!==e&&"object"===(0,o.Z)(e)&&"Float"==e.json_class&&e.raw){if("NaN"==e.raw)return NaN;if("Infinity"==e.raw)return 1/0;if("-Infinity"==e.raw)return-1/0}return null}},{key:"encode_cosmos_type",value:function(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}},{key:"get_all_interface_info",value:function(){return this.exec("get_all_interface_info",[])}},{key:"connect_interface",value:function(e){return this.exec("connect_interface",[e])}},{key:"disconnect_interface",value:function(e){return this.exec("disconnect_interface",[e])}},{key:"get_all_router_info",value:function(){return this.exec("get_all_router_info",[])}},{key:"connect_router",value:function(e){return this.exec("connect_router",[e])}},{key:"disconnect_router",value:function(e){return this.exec("disconnect_router",[e])}},{key:"get_all_target_info",value:function(){return this.exec("get_all_target_info",[])}},{key:"get_all_cmd_info",value:function(){return this.exec("get_all_cmd_info",[])}},{key:"get_all_tlm_info",value:function(){return this.exec("get_all_tlm_info",[])}},{key:"get_item",value:function(e,n,t){return this.exec("get_item",[e,n,t])}},{key:"get_parameter",value:function(e,n,t){return this.exec("get_parameter",[e,n,t])}},{key:"get_all_packet_logger_info",value:function(){return this.exec("get_all_packet_logger_info",[])}},{key:"start_logging",value:function(){return this.exec("start_logging",[])}},{key:"stop_logging",value:function(){return this.exec("stop_logging",[])}},{key:"start_cmd_log",value:function(e){return this.exec("start_cmd_log",[e])}},{key:"start_tlm_log",value:function(e){return this.exec("start_tlm_log",[e])}},{key:"stop_cmd_log",value:function(e){return this.exec("stop_cmd_log",[e])}},{key:"stop_tlm_log",value:function(e){return this.exec("stop_tlm_log",[e])}},{key:"get_server_status",value:function(){return this.exec("get_server_status",[])}},{key:"get_limits_sets",value:function(){return this.exec("get_limits_sets",[])}},{key:"get_limits_set",value:function(){return this.exec("get_limits_set",[])}},{key:"set_limits_set",value:function(e){return this.exec("set_limits_set",[e])}},{key:"get_background_tasks",value:function(){return this.exec("get_background_tasks",[])}},{key:"start_background_task",value:function(e){return this.exec("start_background_task",[e])}},{key:"stop_background_task",value:function(e){return this.exec("stop_background_task",[e])}},{key:"get_oldest_logfile",value:function(){return this.exec("get_oldest_logfile",[])}},{key:"get_target",value:function(e){return this.exec("get_target",[e])}},{key:"get_target_list",value:function(){return this.exec("get_target_list",[])}},{key:"get_telemetry",value:function(e,n){return this.exec("get_telemetry",[e,n])}},{key:"get_all_telemetry",value:function(e){return this.exec("get_all_telemetry",[e])}},{key:"get_all_telemetry_list",value:function(e){return this.exec("get_all_telemetry_list",[e])}},{key:"get_tlm_packet",value:function(){var e=(0,u.Z)(regeneratorRuntime.mark((function e(n,t,l){var i,o,a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_packet",[n,t],{type:l});case 2:if(i=e.sent,null!=i)for(o=i.length,a=null,s=0;s<o;s++)a=this.decode_cosmos_type(i[s][1]),null!==a&&(i[s][1]=a);return e.abrupt("return",i);case 5:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"get_packet_derived_items",value:function(e,n){return this.exec("get_packet_derived_items",[e,n])}},{key:"get_tlm_buffer",value:function(e,n){return this.exec("get_tlm_buffer",[e,n])}},{key:"get_tlm_values",value:function(){var e=(0,u.Z)(regeneratorRuntime.mark((function e(n){var t,l,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("get_tlm_values",[n]);case 2:for(t=e.sent,l=t[0].length,i=null,o=0;o<l;o++)i=this.decode_cosmos_type(t[0][o]),null!==i&&(t[0][o]=i);return e.abrupt("return",t);case 7:case"end":return e.stop()}}),e,this)})));function n(n){return e.apply(this,arguments)}return n}()},{key:"get_limits",value:function(e,n,t){return this.exec("get_limits",[e,n,t])}},{key:"tlm",value:function(){var e=(0,u.Z)(regeneratorRuntime.mark((function e(n,t,l){var i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.exec("tlm",[n,t,l]);case 2:return i=e.sent,o=this.decode_cosmos_type(i),null!==o&&(0,r.Z)("data"),e.abrupt("return",i);case 6:case"end":return e.stop()}}),e,this)})));function n(n,t,l){return e.apply(this,arguments)}return n}()},{key:"get_all_commands",value:function(e){return this.exec("get_all_commands",[e])}},{key:"get_all_commands_list",value:function(e){return this.exec("get_all_commands_list",[e])}},{key:"get_command",value:function(e,n){return this.exec("get_command",[e,n])}},{key:"get_cmd_value",value:function(e,n,t){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"CONVERTED";return this.exec("get_cmd_value",[e,n,t,l])}},{key:"get_cmd_buffer",value:function(e,n){return this.exec("get_cmd_buffer",[e,n])}},{key:"_cmd",value:function(e,n,t,l){var i=null;for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i=this.encode_cosmos_type(l[o]),null!==i&&(l[o]=i));return this.exec(e,[n,t,l])}},{key:"get_cmd_hazardous",value:function(e,n,t){return void 0===n?this.exec("get_cmd_hazardous",e):this._cmd("get_cmd_hazardous",e,n,t)}},{key:"cmd",value:function(e,n,t){return void 0===n?this.exec("cmd",e):this._cmd("cmd",e,n,t)}},{key:"cmd_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_range_check",e):this._cmd("cmd_no_range_check",e,n,t)}},{key:"cmd_raw",value:function(e,n,t){return void 0===n?this.exec("cmd_raw",e):this._cmd("cmd_raw",e,n,t)}},{key:"cmd_raw_no_range_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_range_check",e):this._cmd("cmd_raw_no_range_check",e,n,t)}},{key:"cmd_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_no_hazardous_check",e):this._cmd("cmd_no_hazardous_check",e,n,t)}},{key:"cmd_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_no_checks",e):this._cmd("cmd_no_checks",e,n,t)}},{key:"cmd_raw_no_hazardous_check",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_hazardous_check",e):this._cmd("cmd_raw_no_hazardous_check",e,n,t)}},{key:"cmd_raw_no_checks",value:function(e,n,t){return void 0===n?this.exec("cmd_raw_no_checks",e):this._cmd("cmd_raw_no_checks",e,n,t)}},{key:"get_interface_names",value:function(){return this.exec("get_interface_names",[])}},{key:"send_raw",value:function(e,n){return this.exec("send_raw",[e,n])}},{key:"list_configs",value:function(e){return this.exec("list_configs",[e])}},{key:"load_config",value:function(e,n){return this.exec("load_config",[e,n])}},{key:"save_config",value:function(e,n,t){return this.exec("save_config",[e,n,t])}},{key:"delete_config",value:function(e,n){return this.exec("delete_config",[e,n])}},{key:"get_out_of_limits",value:function(){return this.exec("get_out_of_limits",[])}},{key:"get_overall_limits_state",value:function(e){return this.exec("get_overall_limits_state",[e])}},{key:"list_settings",value:function(){return this.exec("list_settings",[])}},{key:"get_all_settings",value:function(){return this.exec("get_all_settings",[])}},{key:"get_setting",value:function(e){return this.exec("get_setting",[e])}},{key:"get_settings",value:function(e){return this.exec("get_settings",e)}},{key:"save_setting",value:function(e,n){return this.exec("save_setting",[e,n])}}]),e}(),y=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Open Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"",autofocus:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var l=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{"data-test":"item-delete",icon:""},on:{click:function(n){return e.deleteConfig(l)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-btn",{attrs:{type:"submit",color:"success","data-test":"open-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")]),t("v-spacer"),t("v-btn",{attrs:{color:"primary","data-test":"open-config-cancel-btn"},on:{click:e.cancel}},[e._v(" Cancel ")])],1)],1)])],1)])],1)},b=[],k=(t(3450),t(4908),{props:{tool:String,value:Boolean},data:function(){return{configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.selectedItem||null===this.selectedItem?"Must select a config":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new _).list_configs(this.tool).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to Cosmos. ".concat(n))}))},methods:{itemSelected:function(e){e.value?this.selectedItem=e.item:this.selectedItem=null},success:function(){this.$emit("success",this.selectedItem.config),this.show=!1,this.search=null,this.selectedItem=null},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.selectedItem.config===e.config&&(n.selectedItem=null),n.configs.splice(n.configs.indexOf(e),1),(new _).delete_config(n.tool,e.config)})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}}),T=k,x=t(3287),D=(0,x.Z)(T,y,b,!1,null,"4f9dd098",null),N=D.exports,w=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-dialog",{attrs:{width:"600"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:e.cancel.apply(null,arguments)}},model:{value:e.show,callback:function(n){e.show=n},expression:"show"}},[t("v-card",[t("form",{on:{submit:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[t("v-system-bar",[t("v-spacer"),t("span",[e._v("Save Configuration")]),t("v-spacer")],1),t("v-card-text",[t("div",{staticClass:"pa-3"},[t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{label:"search",type:"text","data-test":"search","prepend-icon":"mdi-magnify","clear-icon":"mdi-close-circle-outline",clearable:"","single-line":"","hide-details":""},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),t("v-data-table",{attrs:{"show-select":"","single-select":"","item-key":"configId",search:e.search,headers:e.headers,items:e.configs,"items-per-page":5,"footer-props":{"items-per-page-options":[5]}},on:{"item-selected":e.itemSelected,"click:row":function(e,n){return n.select(e)}},scopedSlots:e._u([{key:"item.actions",fn:function(n){var l=n.item;return[t("v-btn",{staticClass:"mt-1",attrs:{icon:"","data-test":"item-delete"},on:{click:function(n){return e.deleteConfig(l)}}},[t("v-icon",[e._v("mdi-delete")])],1)]}}])}),t("v-row",{attrs:{dense:""}},[t("v-text-field",{attrs:{"hide-details":"",autofocus:"",disabled:!!e.selectedItem,label:"Configuration Name","data-test":"name-input-save-config-dialog"},model:{value:e.configName,callback:function(n){e.configName=n},expression:"configName"}})],1),t("v-row",{attrs:{dense:""}},[t("span",{directives:[{name:"show",rawName:"v-show",value:e.error,expression:"error"}],staticClass:"ma-2 red--text",domProps:{textContent:e._s(e.error)}})]),t("v-row",[t("v-spacer"),t("v-btn",{staticClass:"mx-2",attrs:{outlined:""},on:{click:e.cancel}},[e._v(" Cancel ")]),t("v-btn",{staticClass:"mx-2",attrs:{type:"submit",color:"primary","data-test":"save-config-submit-btn",disabled:!!e.error},on:{click:function(n){return n.preventDefault(),e.success.apply(null,arguments)}}},[e._v(" Ok ")])],1)],1)])],1)])],1)},I=[],E={props:{tool:String,value:Boolean},data:function(){return{configName:"",configs:[],headers:[{text:"Configuration",value:"config"},{text:"Actions",value:"actions",align:"end",sortable:!1}],search:null,selectedItem:null}},computed:{error:function(){return""===this.configName?"Config must have a name":null},show:{get:function(){return this.value},set:function(e){this.$emit("input",e)}}},mounted:function(){var e=this,n=-1;(new _).list_configs(this.tool).then((function(t){e.configs=t.map((function(e){return n+=1,{configId:n,config:e}}))})).catch((function(n){e.$emit("warning","Failed to connect to Cosmos. ".concat(n))}))},methods:{itemSelected:function(e){e.value?(this.selectedItem=e.item,this.configName=e.item.config):(this.selectedItem=null,this.configName="")},success:function(){this.$emit("success",this.configName),this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},cancel:function(){this.show=!1,this.search=null,this.selectedItem=null,this.configName=""},deleteConfig:function(e){var n=this;this.$dialog.confirm("Are you sure you want to delete: ".concat(e.config),{okText:"Delete",cancelText:"Cancel"}).then((function(t){n.configName===e.config&&(n.selectedItem=null,n.configName=""),n.configs.splice(n.configs.indexOf(e.config),1),(new _).delete_config(n.tool,e.config)})).catch((function(t){t&&n.$emit("warning","Failed to delete config ".concat(e.config," Error: ").concat(t))}))}}},O=E,S=(0,x.Z)(O,w,I,!1,null,null,null),M=S.exports,L=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("v-container",{staticClass:"c-chooser px-0"},[t("v-row",[t("v-col",{attrs:{cols:e.colSize,"data-test":"select-target"}},[t("v-autocomplete",{attrs:{label:"Select Target","hide-details":"",dense:"",items:e.targetNames,"item-text":"label","item-value":"value"},on:{change:e.targetNameChanged},model:{value:e.selectedTargetName,callback:function(n){e.selectedTargetName=n},expression:"selectedTargetName"}})],1),t("v-col",{attrs:{cols:e.colSize,"data-test":"select-packet"}},[t("v-autocomplete",{attrs:{label:"Select Packet","hide-details":"",dense:"",disabled:e.packetsDisabled,items:e.packetNames,"item-text":"label","item-value":"value"},on:{change:e.packetNameChanged},model:{value:e.selectedPacketName,callback:function(n){e.selectedPacketName=n},expression:"selectedPacketName"}})],1),e.chooseItem&&!e.buttonDisabled?t("v-col",{attrs:{cols:e.colSize,"data-test":"select-item"}},[t("v-autocomplete",{attrs:{label:"Select Item","hide-details":"",dense:"",disabled:e.itemsDisabled,items:e.itemNames,"item-text":"label","item-value":"value"},on:{change:function(n){return e.itemNameChanged(n)}},model:{value:e.selectedItemName,callback:function(n){e.selectedItemName=n},expression:"selectedItemName"}})],1):e._e(),e.buttonText?t("v-col",{attrs:{cols:e.colSize}},[t("v-btn",{attrs:{disabled:e.buttonDisabled,block:"",color:"primary","data-test":"select-send"},on:{click:e.buttonPressed}},[e._v(" "+e._s(e.actualButtonText)+" ")])],1):e._e()],1),t("v-row",{attrs:{"no-gutters":""}},[t("v-col",{attrs:{cols:e.colSize}},[e._v("Description: "+e._s(e.description))])],1)],1)},R=[],$=(t(4115),t(634),t(9228),t(3108),{props:{allowAll:{type:Boolean,default:!1},buttonText:{type:String,default:null},chooseItem:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},initialTargetName:{type:String,default:""},initialPacketName:{type:String,default:""},initialItemName:{type:String,default:""},mode:{type:String,default:"tlm",validator:function(e){return["cmd","tlm"].includes(e)}},reduced:{type:String,default:"DECOM",validator:function(e){return["REDUCED_DAY","REDUCED_HOUR","REDUCED_MINUTE","DECOM"].includes(e)}},unknown:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},data:function(){var e,n,t;return{targetNames:[],packetNames:[],itemNames:[],selectedTargetName:null===(e=this.initialTargetName)||void 0===e?void 0:e.toUpperCase(),selectedPacketName:null===(n=this.initialPacketName)||void 0===n?void 0:n.toUpperCase(),selectedItemName:null===(t=this.initialItemName)||void 0===t?void 0:t.toUpperCase(),description:"",internalDisabled:!1,packetsDisabled:!1,itemsDisabled:!1,api:null,ALL:{label:"[ ALL ]",value:"ALL",description:"ALL"},UNKNOWN:{label:"[ UNKNOWN ]",value:"UNKNOWN",description:"UNKNOWN"}}},created:function(){var e=this;this.internalDisabled=!0,this.api=new _,this.api.get_target_list().then((function(n){e.targetNames=n.map((function(e){return{label:e,value:e}})),e.selectedTargetName||(e.selectedTargetName=e.targetNames[0].value,e.targetNameChanged(e.selectedTargetName)),e.updatePackets(),e.unknown&&e.targetNames.push(e.UNKNOWN)}))},computed:{actualButtonText:function(){return"ALL"===this.selectedPacketName?"Add Target":"ALL"===this.selectedItemName?"Add Packet":this.buttonText},buttonDisabled:function(){return this.disabled||this.internalDisabled},targetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"49%",float:"left"}},packetChooserStyle:function(){return this.chooseItem||this.buttonText?{width:"25%",float:"left","margin-right":"5px"}:{width:"50%",float:"right"}},colSize:function(){return!!this.vertical&&12}},watch:{mode:function(e,n){this.updatePackets(),this.itemNames=[]},reduced:function(e,n){this.updateItems()}},methods:{updatePackets:function(){var e=this;if("UNKNOWN"===this.selectedTargetName)return this.packetNames=[this.UNKNOWN],this.selectedPacketName=this.packetNames[0].value,this.packetNameChanged(this.UNKNOWN.value),void(this.description="UNKNOWN");this.internalDisabled=!0;var n="tlm"===this.mode?"get_all_telemetry_list":"get_all_commands_list";this.api[n](this.selectedTargetName).then((function(n){e.packetNames=n.map((function(e){return{label:e.packet_name,value:e.packet_name,description:e.description}})),e.allowAll&&e.packetNames.unshift(e.ALL),e.selectedPacketName||(e.selectedPacketName=e.packetNames[0].value,e.packetNameChanged(e.selectedPacketName));var t=e.packetNames.find((function(n){return n.value===e.selectedPacketName}));e.description=t.description,e.chooseItem&&e.updateItems(),e.internalDisabled=!1}))},updateItems:function(){var e=this;if("ALL"!==this.selectedPacketName){this.internalDisabled=!0;var n="tlm"===this.mode?"get_telemetry":"get_command";this.api[n](this.selectedTargetName,this.selectedPacketName).then((function(n){e.itemNames=n.items.map((function(n){return"DECOM"===e.reduced?[{label:n.name,value:n.name,description:n.description}]:e.makeReducedItems(n)})).reduce((function(e,n){return e.concat(n)}),[]),e.allowAll&&e.itemNames.unshift(e.ALL),e.selectedItemName||(e.selectedItemName=e.itemNames[0].value),e.description=e.itemNames[0].description,e.internalDisabled=!1,e.$emit("on-set",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:e.selectedItemName,reduced:e.reduced})}))}},makeReducedItems:function(e){var n=!e.array_size&&!e.states;return n&&["UINT","INT","FLOAT"].includes(e.data_type)?["MIN","MAX","AVG","STDDEV"].map((function(n){return{label:"".concat(e.name,"_").concat(n),value:"".concat(e.name,"_").concat(n),description:"".concat(n," ").concat(e.description)}})):[]},targetNameChanged:function(e){this.selectedTargetName=e,this.selectedPacketName="",this.selectedItemName="",this.updatePackets()},packetNameChanged:function(e){if("ALL"===e)this.itemsDisabled=!0,this.internalDisabled=!1;else{this.itemsDisabled=!1;var n=this.packetNames.find((function(n){return e===n.value}));this.selectedPacketName=n.value,this.description=n.description}this.chooseItem?(this.selectedItemName="",this.updateItems()):this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},itemNameChanged:function(e){var n=this.itemNames.find((function(n){return e===n.value}));this.selectedItemName=n.value,this.description=n.description,this.$emit("on-set",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,reduced:this.reduced})},buttonPressed:function(){"ALL"===this.selectedPacketName?this.allTargetPacketItems():"ALL"===this.selectedItemName?this.allPacketItems():this.chooseItem?this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,itemName:this.selectedItemName,reduced:this.reduced}):this.$emit("click",{targetName:this.selectedTargetName,packetName:this.selectedPacketName,reduced:this.reduced})},allTargetPacketItems:function(){var e=this;this.packetNames.forEach((function(n){if(n!==e.ALL){var t="tlm"===e.mode?"get_telemetry":"get_command";e.api[t](e.selectedTargetName,n.value).then((function(t){t.items.forEach((function(t){e.$emit("click",{targetName:e.selectedTargetName,packetName:n.value,itemName:t["name"],reduced:e.reduced})}))}))}}))},allPacketItems:function(){var e=this;this.itemNames.forEach((function(n){n!==e.ALL&&e.$emit("click",{targetName:e.selectedTargetName,packetName:e.selectedPacketName,itemName:n.value,reduced:e.reduced})}))}}}),P=$,F=(0,x.Z)(P,L,R,!1,null,null,null),H=F.exports,U=t(8373),V=t(5563),Z=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/cosmos-api/cable";(0,m.Z)(this,e),this._cable=V.createConsumer(n)}return(0,d.Z)(e,[{key:"disconnect",value:function(){this._cable.disconnect()}},{key:"createSubscription",value:function(e,n){var t=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return CosmosAuth.updateToken(CosmosAuth.defaultMinValidity).then((function(){return t._cable.subscriptions.create((0,U.Z)({channel:e,scope:n,token:localStorage.cosmosToken},i),l)}))}}]),e}(),j=t(5881),q=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("mounting-portal",{attrs:{"mount-to":"#cosmos-menu",append:""}},[t("div",{staticClass:"v-toolbar__content"},[e._l(e.menus,(function(n,l){return t("v-menu",{key:l,attrs:{"offset-y":""},scopedSlots:e._u([{key:"activator",fn:function(l){var i=l.on,o=l.attrs;return[t("v-btn",e._g(e._b({staticClass:"mx-1",attrs:{outlined:"","data-test":e.formatDT(e.title+" "+n.label)}},"v-btn",o,!1),i),[t("span",{domProps:{textContent:e._s(n.label)}}),t("v-icon",{attrs:{right:""}},[e._v(" mdi-menu-down ")])],1)]}}],null,!0)},[t("v-list",[t("v-radio-group",{staticClass:"ma-0 pa-0",attrs:{value:n.radioGroup,"hide-details":"",dense:""}},[e._l(n.items,(function(l,i){return[l.divider?t("v-divider",{key:i}):t("v-list-item",{key:i,attrs:{disabled:l.disabled,"data-test":e.formatDT(e.title+" "+n.label+" "+l.label)},on:{click:l.command}},[l.radio?t("v-list-item-action",[t("v-radio",{attrs:{color:"secondary",label:l.label,value:l.label}})],1):e._e(),l.checkbox?t("v-list-item-action",[t("v-checkbox",{attrs:{color:"secondary",label:l.label,value:l.label},model:{value:e.checked,callback:function(n){e.checked=n},expression:"checked"}})],1):e._e(),l.icon?t("v-list-item-icon",[t("v-icon",{attrs:{disabled:l.disabled},domProps:{textContent:e._s(l.icon)}})],1):e._e(),l.radio||l.checkbox?e._e():t("v-list-item-title",{style:"cursor: pointer;"+(l.disabled?"opacity: 0.2":""),domProps:{textContent:e._s(l.label)}})],1)]}))],2)],1)],1)})),t("v-spacer"),t("v-toolbar-title",{domProps:{textContent:e._s(e.title)}}),t("v-spacer")],2)])},B=[],K=(t(1639),{props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(e){return e.replaceAll(" ","-").toLowerCase()}}}),z=K,G=(t(7162),(0,x.Z)(z,q,B,!1,null,"e3bb7458",null)),W=G.exports;function Y(){var e="/cosmos/plugins/packages/cosmosc2-tool-dataextractor/src/tools/DataExtractor/Filters/timeFilters.js",n="b8c1f9f0816126cfdfee68fdb66ead361f0a184b",t=new Function("return this")(),l="__coverage__",i={path:"/cosmos/plugins/packages/cosmosc2-tool-dataextractor/src/tools/DataExtractor/Filters/timeFilters.js",statementMap:{0:{start:{line:23,column:6},end:{line:27,column:7}},1:{start:{line:24,column:8},end:{line:24,column:32}},2:{start:{line:26,column:8},end:{line:26,column:35}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:22,column:14},end:{line:22,column:15}},loc:{start:{line:22,column:41},end:{line:28,column:5}},line:22}},branchMap:{0:{loc:{start:{line:23,column:6},end:{line:27,column:7}},type:"if",locations:[{start:{line:23,column:6},end:{line:27,column:7}},{start:{line:25,column:13},end:{line:27,column:7}}],line:23}},s:{0:0,1:0,2:0},f:{0:0},b:{0:[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b8c1f9f0816126cfdfee68fdb66ead361f0a184b"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=i);var a=o[e];return Y=function(){return a},a}Y();var J={filters:{dateTime:function(e,n){return Y().f[0]++,Y().s[0]++,"utc"===n?(Y().b[0][0]++,Y().s[1]++,e.toISOString()):(Y().b[0][1]++,Y().s[2]++,e.toLocaleString())}},methods:{}};function X(){var e="/cosmos/plugins/packages/cosmosc2-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",n="4b1de97410692f187cb988deeb29a058aff4c332",t=new Function("return this")(),l="__coverage__",i={path:"/cosmos/plugins/packages/cosmosc2-tool-dataextractor/src/tools/DataExtractor/DataExtractor.vue",statementMap:{0:{start:{line:308,column:4},end:{line:442,column:5}},1:{start:{line:326,column:29},end:{line:326,column:50}},2:{start:{line:356,column:16},end:{line:356,column:38}},3:{start:{line:363,column:16},end:{line:363,column:38}},4:{start:{line:373,column:16},end:{line:373,column:36}},5:{start:{line:380,column:16},end:{line:380,column:37}},6:{start:{line:405,column:16},end:{line:405,column:46}},7:{start:{line:412,column:16},end:{line:412,column:54}},8:{start:{line:419,column:16},end:{line:419,column:50}},9:{start:{line:429,column:16},end:{line:429,column:42}},10:{start:{line:436,column:16},end:{line:436,column:40}},11:{start:{line:447,column:6},end:{line:447,column:53}},12:{start:{line:451,column:4},end:{line:451,column:30}},13:{start:{line:452,column:4},end:{line:457,column:8}},14:{start:{line:456,column:8},end:{line:456,column:53}},15:{start:{line:460,column:27},end:{line:460,column:68}},16:{start:{line:461,column:4},end:{line:463,column:5}},17:{start:{line:462,column:6},end:{line:462,column:44}},18:{start:{line:466,column:4},end:{line:468,column:5}},19:{start:{line:467,column:6},end:{line:467,column:37}},20:{start:{line:469,column:4},end:{line:469,column:27}},21:{start:{line:473,column:6},end:{line:473,column:54}},22:{start:{line:474,column:6},end:{line:493,column:10}},23:{start:{line:477,column:10},end:{line:483,column:11}},24:{start:{line:478,column:12},end:{line:478,column:45}},25:{start:{line:479,column:12},end:{line:482,column:14}},26:{start:{line:486,column:10},end:{line:492,column:11}},27:{start:{line:487,column:12},end:{line:490,column:14}},28:{start:{line:491,column:12},end:{line:491,column:60}},29:{start:{line:496,column:6},end:{line:496,column:54}},30:{start:{line:497,column:6},end:{line:512,column:10}},31:{start:{line:500,column:10},end:{line:503,column:12}},32:{start:{line:506,column:10},end:{line:511,column:11}},33:{start:{line:507,column:12},end:{line:510,column:14}},34:{start:{line:516,column:6},end:{line:528,column:7}},35:{start:{line:517,column:8},end:{line:527,column:9}},36:{start:{line:523,column:10},end:{line:525,column:12}},37:{start:{line:526,column:10},end:{line:526,column:16}},38:{start:{line:529,column:6},end:{line:529,column:49}},39:{start:{line:530,column:6},end:{line:530,column:23}},40:{start:{line:531,column:6},end:{line:531,column:34}},41:{start:{line:533,column:6},end:{line:533,column:27}},42:{start:{line:536,column:18},end:{line:536,column:42}},43:{start:{line:537,column:6},end:{line:537,column:33}},44:{start:{line:540,column:6},end:{line:540,column:21}},45:{start:{line:543,column:6},end:{line:543,column:26}},46:{start:{line:544,column:6},end:{line:546,column:7}},47:{start:{line:545,column:8},end:{line:545,column:46}},48:{start:{line:549,column:18},end:{line:549,column:80}},49:{start:{line:550,column:6},end:{line:552,column:7}},50:{start:{line:551,column:8},end:{line:551,column:45}},51:{start:{line:553,column:6},end:{line:555,column:7}},52:{start:{line:554,column:8},end:{line:554,column:41}},53:{start:{line:556,column:6},end:{line:556,column:28}},54:{start:{line:559,column:6},end:{line:559,column:72}},55:{start:{line:561,column:6},end:{line:564,column:7}},56:{start:{line:567,column:6},end:{line:577,column:7}},57:{start:{line:568,column:8},end:{line:574,column:9}},58:{start:{line:569,column:10},end:{line:569,column:75}},59:{start:{line:570,column:10},end:{line:570,column:69}},60:{start:{line:572,column:10},end:{line:572,column:69}},61:{start:{line:573,column:10},end:{line:573,column:63}},62:{start:{line:576,column:8},end:{line:576,column:14}},63:{start:{line:578,column:6},end:{line:578,column:58}},64:{start:{line:579,column:6},end:{line:579,column:54}},65:{start:{line:583,column:6},end:{line:586,column:7}},66:{start:{line:584,column:8},end:{line:584,column:30}},67:{start:{line:585,column:8},end:{line:585,column:14}},68:{start:{line:588,column:6},end:{line:588,column:26}},69:{start:{line:589,column:6},end:{line:594,column:7}},70:{start:{line:590,column:8},end:{line:592,column:10}},71:{start:{line:593,column:8},end:{line:593,column:14}},72:{start:{line:595,column:6},end:{line:600,column:7}},73:{start:{line:596,column:8},end:{line:598,column:10}},74:{start:{line:599,column:8},end:{line:599,column:14}},75:{start:{line:601,column:6},end:{line:606,column:7}},76:{start:{line:602,column:8},end:{line:604,column:10}},77:{start:{line:605,column:8},end:{line:605,column:14}},78:{start:{line:608,column:6},end:{line:617,column:7}},79:{start:{line:609,column:8},end:{line:616,column:10}},80:{start:{line:619,column:6},end:{line:619,column:23}},81:{start:{line:620,column:6},end:{line:620,column:39}},82:{start:{line:621,column:6},end:{line:638,column:10}},83:{start:{line:623,column:30},end:{line:623,column:49}},84:{start:{line:624,column:27},end:{line:624,column:45}},85:{start:{line:626,column:12},end:{line:628,column:14}},86:{start:{line:631,column:12},end:{line:633,column:14}},87:{start:{line:637,column:10},end:{line:637,column:42}},88:{start:{line:641,column:6},end:{line:641,column:25}},89:{start:{line:642,column:6},end:{line:642,column:29}},90:{start:{line:643,column:6},end:{line:643,column:25}},91:{start:{line:644,column:6},end:{line:644,column:26}},92:{start:{line:645,column:6},end:{line:645,column:23}},93:{start:{line:646,column:18},end:{line:646,column:20}},94:{start:{line:647,column:6},end:{line:651,column:8}},95:{start:{line:648,column:8},end:{line:650,column:9}},96:{start:{line:652,column:6},end:{line:661,column:8}},97:{start:{line:653,column:8},end:{line:660,column:10}},98:{start:{line:664,column:6},end:{line:669,column:7}},99:{start:{line:668,column:8},end:{line:668,column:14}},100:{start:{line:670,column:6},end:{line:670,column:54}},101:{start:{line:673,column:6},end:{line:676,column:7}},102:{start:{line:674,column:8},end:{line:674,column:41}},103:{start:{line:675,column:8},end:{line:675,column:41}},104:{start:{line:677,column:6},end:{line:693,column:8}},105:{start:{line:678,column:8},end:{line:678,column:35}},106:{start:{line:678,column:29},end:{line:678,column:35}},107:{start:{line:679,column:8},end:{line:679,column:65}},108:{start:{line:681,column:10},end:{line:681,column:26}},109:{start:{line:682,column:8},end:{line:692,column:9}},110:{start:{line:683,column:10},end:{line:685,column:11}},111:{start:{line:687,column:10},end:{line:691,column:11}},112:{start:{line:688,column:12},end:{line:688,column:70}},113:{start:{line:690,column:12},end:{line:690,column:45}},114:{start:{line:696,column:6},end:{line:701,column:7}},115:{start:{line:697,column:8},end:{line:699,column:10}},116:{start:{line:700,column:8},end:{line:700,column:14}},117:{start:{line:702,column:19},end:{line:702,column:40}},118:{start:{line:704,column:6},end:{line:718,column:7}},119:{start:{line:706,column:19},end:{line:706,column:28}},120:{start:{line:707,column:8},end:{line:709,column:9}},121:{start:{line:708,column:10},end:{line:708,column:51}},122:{start:{line:710,column:8},end:{line:710,column:36}},123:{start:{line:711,column:8},end:{line:711,column:48}},124:{start:{line:712,column:8},end:{line:715,column:9}},125:{start:{line:717,column:8},end:{line:717,column:30}},126:{start:{line:721,column:6},end:{line:721,column:24}},127:{start:{line:722,column:6},end:{line:722,column:37}},128:{start:{line:724,column:6},end:{line:799,column:7}},129:{start:{line:725,column:20},end:{line:725,column:74}},130:{start:{line:726,column:18},end:{line:726,column:70}},131:{start:{line:727,column:8},end:{line:729,column:10}},132:{start:{line:731,column:22},end:{line:731,column:24}},133:{start:{line:732,column:8},end:{line:734,column:9}},134:{start:{line:733,column:10},end:{line:733,column:25}},135:{start:{line:735,column:8},end:{line:735,column:58}},136:{start:{line:736,column:8},end:{line:736,column:37}},137:{start:{line:739,column:8},end:{line:739,column:52}},138:{start:{line:739,column:36},end:{line:739,column:51}},139:{start:{line:740,column:28},end:{line:740,column:30}},140:{start:{line:741,column:18},end:{line:741,column:20}},141:{start:{line:742,column:26},end:{line:742,column:30}},142:{start:{line:743,column:8},end:{line:780,column:10}},143:{start:{line:744,column:24},end:{line:744,column:29}},144:{start:{line:745,column:10},end:{line:749,column:11}},145:{start:{line:746,column:12},end:{line:746,column:34}},146:{start:{line:748,column:12},end:{line:748,column:20}},147:{start:{line:751,column:23},end:{line:751,column:42}},148:{start:{line:752,column:10},end:{line:767,column:12}},149:{start:{line:753,column:12},end:{line:753,column:58}},150:{start:{line:753,column:52},end:{line:753,column:58}},151:{start:{line:755,column:12},end:{line:759,column:13}},152:{start:{line:756,column:14},end:{line:756,column:71}},153:{start:{line:758,column:14},end:{line:758,column:52}},154:{start:{line:760,column:12},end:{line:765,column:13}},155:{start:{line:764,column:14},end:{line:764,column:28}},156:{start:{line:766,column:12},end:{line:766,column:73}},157:{start:{line:769,column:10},end:{line:769,column:32}},158:{start:{line:771,column:10},end:{line:779,column:11}},159:{start:{line:773,column:12},end:{line:777,column:13}},160:{start:{line:774,column:33},end:{line:774,column:52}},161:{start:{line:775,column:14},end:{line:775,column:30}},162:{start:{line:776,column:14},end:{line:776,column:30}},163:{start:{line:778,column:12},end:{line:778,column:58}},164:{start:{line:782,column:36},end:{line:782,column:42}},165:{start:{line:783,column:19},end:{line:783,column:29}},166:{start:{line:784,column:8},end:{line:787,column:9}},167:{start:{line:785,column:10},end:{line:785,column:40}},168:{start:{line:786,column:10},end:{line:786,column:44}},169:{start:{line:788,column:21},end:{line:790,column:10}},170:{start:{line:792,column:21},end:{line:792,column:48}},171:{start:{line:793,column:8},end:{line:793,column:45}},172:{start:{line:794,column:8},end:{line:797,column:9}},173:{start:{line:798,column:8},end:{line:798,column:20}},174:{start:{line:800,column:6},end:{line:800,column:25}},175:{start:{line:801,column:6},end:{line:801,column:40}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:307,column:2},end:{line:307,column:3}},loc:{start:{line:307,column:9},end:{line:443,column:3}},line:307},1:{name:"(anonymous_1)",decl:{start:{line:326,column:18},end:{line:326,column:19}},loc:{start:{line:326,column:29},end:{line:326,column:50}},line:326},2:{name:"(anonymous_2)",decl:{start:{line:355,column:23},end:{line:355,column:24}},loc:{start:{line:355,column:29},end:{line:357,column:15}},line:355},3:{name:"(anonymous_3)",decl:{start:{line:362,column:23},end:{line:362,column:24}},loc:{start:{line:362,column:29},end:{line:364,column:15}},line:362},4:{name:"(anonymous_4)",decl:{start:{line:372,column:23},end:{line:372,column:24}},loc:{start:{line:372,column:29},end:{line:374,column:15}},line:372},5:{name:"(anonymous_5)",decl:{start:{line:379,column:23},end:{line:379,column:24}},loc:{start:{line:379,column:29},end:{line:381,column:15}},line:379},6:{name:"(anonymous_6)",decl:{start:{line:404,column:23},end:{line:404,column:24}},loc:{start:{line:404,column:29},end:{line:406,column:15}},line:404},7:{name:"(anonymous_7)",decl:{start:{line:411,column:23},end:{line:411,column:24}},loc:{start:{line:411,column:29},end:{line:413,column:15}},line:411},8:{name:"(anonymous_8)",decl:{start:{line:418,column:23},end:{line:418,column:24}},loc:{start:{line:418,column:29},end:{line:420,column:15}},line:418},9:{name:"(anonymous_9)",decl:{start:{line:428,column:23},end:{line:428,column:24}},loc:{start:{line:428,column:29},end:{line:430,column:15}},line:428},10:{name:"(anonymous_10)",decl:{start:{line:435,column:23},end:{line:435,column:24}},loc:{start:{line:435,column:29},end:{line:437,column:15}},line:435},11:{name:"(anonymous_11)",decl:{start:{line:445,column:22},end:{line:445,column:23}},loc:{start:{line:445,column:34},end:{line:448,column:5}},line:445},12:{name:"(anonymous_12)",decl:{start:{line:450,column:11},end:{line:450,column:12}},loc:{start:{line:450,column:23},end:{line:458,column:3}},line:450},13:{name:"(anonymous_13)",decl:{start:{line:454,column:12},end:{line:454,column:13}},loc:{start:{line:454,column:26},end:{line:457,column:7}},line:454},14:{name:"(anonymous_14)",decl:{start:{line:459,column:11},end:{line:459,column:12}},loc:{start:{line:459,column:23},end:{line:464,column:3}},line:459},15:{name:"(anonymous_15)",decl:{start:{line:465,column:13},end:{line:465,column:14}},loc:{start:{line:465,column:25},end:{line:470,column:3}},line:465},16:{name:"(anonymous_16)",decl:{start:{line:472,column:23},end:{line:472,column:24}},loc:{start:{line:472,column:39},end:{line:494,column:5}},line:472},17:{name:"(anonymous_17)",decl:{start:{line:476,column:14},end:{line:476,column:15}},loc:{start:{line:476,column:28},end:{line:484,column:9}},line:476},18:{name:"(anonymous_18)",decl:{start:{line:485,column:15},end:{line:485,column:16}},loc:{start:{line:485,column:26},end:{line:493,column:9}},line:485},19:{name:"(anonymous_19)",decl:{start:{line:495,column:23},end:{line:495,column:24}},loc:{start:{line:495,column:39},end:{line:513,column:5}},line:495},20:{name:"(anonymous_20)",decl:{start:{line:499,column:14},end:{line:499,column:15}},loc:{start:{line:499,column:28},end:{line:504,column:9}},line:499},21:{name:"(anonymous_21)",decl:{start:{line:505,column:15},end:{line:505,column:16}},loc:{start:{line:505,column:26},end:{line:512,column:9}},line:505},22:{name:"(anonymous_22)",decl:{start:{line:514,column:13},end:{line:514,column:14}},loc:{start:{line:514,column:29},end:{line:534,column:5}},line:514},23:{name:"(anonymous_23)",decl:{start:{line:535,column:16},end:{line:535,column:17}},loc:{start:{line:535,column:32},end:{line:538,column:5}},line:535},24:{name:"(anonymous_24)",decl:{start:{line:539,column:15},end:{line:539,column:16}},loc:{start:{line:539,column:27},end:{line:541,column:5}},line:539},25:{name:"(anonymous_25)",decl:{start:{line:542,column:23},end:{line:542,column:24}},loc:{start:{line:542,column:35},end:{line:547,column:5}},line:542},26:{name:"(anonymous_26)",decl:{start:{line:548,column:18},end:{line:548,column:19}},loc:{start:{line:548,column:34},end:{line:557,column:5}},line:548},27:{name:"(anonymous_27)",decl:{start:{line:558,column:19},end:{line:558,column:20}},loc:{start:{line:558,column:31},end:{line:580,column:5}},line:558},28:{name:"(anonymous_28)",decl:{start:{line:581,column:18},end:{line:581,column:19}},loc:{start:{line:581,column:30},end:{line:639,column:5}},line:581},29:{name:"(anonymous_29)",decl:{start:{line:623,column:20},end:{line:623,column:21}},loc:{start:{line:623,column:30},end:{line:623,column:49}},line:623},30:{name:"(anonymous_30)",decl:{start:{line:624,column:21},end:{line:624,column:22}},loc:{start:{line:624,column:27},end:{line:624,column:45}},line:624},31:{name:"(anonymous_31)",decl:{start:{line:625,column:24},end:{line:625,column:25}},loc:{start:{line:625,column:30},end:{line:629,column:11}},line:625},32:{name:"(anonymous_32)",decl:{start:{line:630,column:20},end:{line:630,column:21}},loc:{start:{line:630,column:26},end:{line:634,column:11}},line:630},33:{name:"(anonymous_33)",decl:{start:{line:636,column:14},end:{line:636,column:15}},loc:{start:{line:636,column:32},end:{line:638,column:9}},line:636},34:{name:"(anonymous_34)",decl:{start:{line:640,column:17},end:{line:640,column:18}},loc:{start:{line:640,column:29},end:{line:662,column:5}},line:640},35:{name:"(anonymous_35)",decl:{start:{line:647,column:25},end:{line:647,column:26}},loc:{start:{line:647,column:42},end:{line:651,column:7}},line:647},36:{name:"(anonymous_36)",decl:{start:{line:652,column:65},end:{line:652,column:66}},loc:{start:{line:652,column:71},end:{line:661,column:7}},line:652},37:{name:"(anonymous_37)",decl:{start:{line:663,column:18},end:{line:663,column:19}},loc:{start:{line:663,column:38},end:{line:694,column:5}},line:663},38:{name:"(anonymous_38)",decl:{start:{line:677,column:23},end:{line:677,column:24}},loc:{start:{line:677,column:33},end:{line:693,column:7}},line:677},39:{name:"(anonymous_39)",decl:{start:{line:695,column:14},end:{line:695,column:15}},loc:{start:{line:695,column:35},end:{line:719,column:5}},line:695},40:{name:"(anonymous_40)",decl:{start:{line:720,column:21},end:{line:720,column:22}},loc:{start:{line:720,column:33},end:{line:802,column:5}},line:720},41:{name:"(anonymous_41)",decl:{start:{line:739,column:26},end:{line:739,column:27}},loc:{start:{line:739,column:36},end:{line:739,column:51}},line:739},42:{name:"(anonymous_42)",decl:{start:{line:743,column:29},end:{line:743,column:30}},loc:{start:{line:743,column:41},end:{line:780,column:9}},line:743},43:{name:"(anonymous_43)",decl:{start:{line:752,column:23},end:{line:752,column:24}},loc:{start:{line:752,column:32},end:{line:767,column:11}},line:752}},branchMap:{0:{loc:{start:{line:326,column:29},end:{line:326,column:50}},type:"binary-expr",locations:[{start:{line:326,column:29},end:{line:326,column:36}},{start:{line:326,column:40},end:{line:326,column:50}}],line:326},1:{loc:{start:{line:461,column:4},end:{line:463,column:5}},type:"if",locations:[{start:{line:461,column:4},end:{line:463,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:461},2:{loc:{start:{line:466,column:4},end:{line:468,column:5}},type:"if",locations:[{start:{line:466,column:4},end:{line:468,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:466},3:{loc:{start:{line:477,column:10},end:{line:483,column:11}},type:"if",locations:[{start:{line:477,column:10},end:{line:483,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:477},4:{loc:{start:{line:486,column:10},end:{line:492,column:11}},type:"if",locations:[{start:{line:486,column:10},end:{line:492,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:486},5:{loc:{start:{line:506,column:10},end:{line:511,column:11}},type:"if",locations:[{start:{line:506,column:10},end:{line:511,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:506},6:{loc:{start:{line:517,column:8},end:{line:527,column:9}},type:"if",locations:[{start:{line:517,column:8},end:{line:527,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:517},7:{loc:{start:{line:518,column:10},end:{line:521,column:44}},type:"binary-expr",locations:[{start:{line:518,column:10},end:{line:518,column:45}},{start:{line:519,column:10},end:{line:519,column:49}},{start:{line:520,column:10},end:{line:520,column:49}},{start:{line:521,column:10},end:{line:521,column:44}}],line:518},8:{loc:{start:{line:550,column:6},end:{line:552,column:7}},type:"if",locations:[{start:{line:550,column:6},end:{line:552,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:550},9:{loc:{start:{line:553,column:6},end:{line:555,column:7}},type:"if",locations:[{start:{line:553,column:6},end:{line:555,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:553},10:{loc:{start:{line:568,column:8},end:{line:574,column:9}},type:"if",locations:[{start:{line:568,column:8},end:{line:574,column:9}},{start:{line:571,column:15},end:{line:574,column:9}}],line:568},11:{loc:{start:{line:583,column:6},end:{line:586,column:7}},type:"if",locations:[{start:{line:583,column:6},end:{line:586,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:583},12:{loc:{start:{line:589,column:6},end:{line:594,column:7}},type:"if",locations:[{start:{line:589,column:6},end:{line:594,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:589},13:{loc:{start:{line:589,column:10},end:{line:589,column:50}},type:"binary-expr",locations:[{start:{line:589,column:10},end:{line:589,column:29}},{start:{line:589,column:33},end:{line:589,column:50}}],line:589},14:{loc:{start:{line:595,column:6},end:{line:600,column:7}},type:"if",locations:[{start:{line:595,column:6},end:{line:600,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:595},15:{loc:{start:{line:601,column:6},end:{line:606,column:7}},type:"if",locations:[{start:{line:601,column:6},end:{line:606,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:601},16:{loc:{start:{line:608,column:6},end:{line:617,column:7}},type:"if",locations:[{start:{line:608,column:6},end:{line:617,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:608},17:{loc:{start:{line:664,column:6},end:{line:669,column:7}},type:"if",locations:[{start:{line:664,column:6},end:{line:669,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:664},18:{loc:{start:{line:665,column:8},end:{line:666,column:44}},type:"binary-expr",locations:[{start:{line:665,column:8},end:{line:665,column:44}},{start:{line:666,column:8},end:{line:666,column:44}}],line:665},19:{loc:{start:{line:673,column:6},end:{line:676,column:7}},type:"if",locations:[{start:{line:673,column:6},end:{line:676,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:673},20:{loc:{start:{line:673,column:10},end:{line:673,column:73}},type:"binary-expr",locations:[{start:{line:673,column:10},end:{line:673,column:41}},{start:{line:673,column:45},end:{line:673,column:73}}],line:673},21:{loc:{start:{line:678,column:8},end:{line:678,column:35}},type:"if",locations:[{start:{line:678,column:8},end:{line:678,column:35}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:678},22:{loc:{start:{line:682,column:8},end:{line:692,column:9}},type:"if",locations:[{start:{line:682,column:8},end:{line:692,column:9}},{start:{line:686,column:15},end:{line:692,column:9}}],line:682},23:{loc:{start:{line:687,column:10},end:{line:691,column:11}},type:"if",locations:[{start:{line:687,column:10},end:{line:691,column:11}},{start:{line:689,column:17},end:{line:691,column:11}}],line:687},24:{loc:{start:{line:687,column:14},end:{line:687,column:52}},type:"binary-expr",locations:[{start:{line:687,column:14},end:{line:687,column:23}},{start:{line:687,column:27},end:{line:687,column:52}}],line:687},25:{loc:{start:{line:696,column:6},end:{line:701,column:7}},type:"if",locations:[{start:{line:696,column:6},end:{line:701,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:696},26:{loc:{start:{line:704,column:6},end:{line:718,column:7}},type:"if",locations:[{start:{line:704,column:6},end:{line:718,column:7}},{start:{line:716,column:13},end:{line:718,column:7}}],line:704},27:{loc:{start:{line:724,column:6},end:{line:799,column:7}},type:"if",locations:[{start:{line:724,column:6},end:{line:799,column:7}},{start:{line:730,column:13},end:{line:799,column:7}}],line:724},28:{loc:{start:{line:732,column:8},end:{line:734,column:9}},type:"if",locations:[{start:{line:732,column:8},end:{line:734,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:732},29:{loc:{start:{line:745,column:10},end:{line:749,column:11}},type:"if",locations:[{start:{line:745,column:10},end:{line:749,column:11}},{start:{line:747,column:17},end:{line:749,column:11}}],line:745},30:{loc:{start:{line:745,column:14},end:{line:745,column:42}},type:"binary-expr",locations:[{start:{line:745,column:14},end:{line:745,column:27}},{start:{line:745,column:31},end:{line:745,column:42}}],line:745},31:{loc:{start:{line:753,column:12},end:{line:753,column:58}},type:"if",locations:[{start:{line:753,column:12},end:{line:753,column:58}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:753},32:{loc:{start:{line:753,column:16},end:{line:753,column:50}},type:"binary-expr",locations:[{start:{line:753,column:16},end:{line:753,column:30}},{start:{line:753,column:34},end:{line:753,column:50}}],line:753},33:{loc:{start:{line:755,column:12},end:{line:759,column:13}},type:"if",locations:[{start:{line:755,column:12},end:{line:759,column:13}},{start:{line:757,column:19},end:{line:759,column:13}}],line:755},34:{loc:{start:{line:760,column:12},end:{line:765,column:13}},type:"if",locations:[{start:{line:760,column:12},end:{line:765,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:760},35:{loc:{start:{line:761,column:14},end:{line:762,column:77}},type:"binary-expr",locations:[{start:{line:761,column:14},end:{line:761,column:29}},{start:{line:762,column:14},end:{line:762,column:77}}],line:761},36:{loc:{start:{line:771,column:10},end:{line:779,column:11}},type:"if",locations:[{start:{line:771,column:10},end:{line:779,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:771},37:{loc:{start:{line:771,column:14},end:{line:771,column:41}},type:"binary-expr",locations:[{start:{line:771,column:14},end:{line:771,column:30}},{start:{line:771,column:34},end:{line:771,column:41}}],line:771},38:{loc:{start:{line:773,column:12},end:{line:777,column:13}},type:"if",locations:[{start:{line:773,column:12},end:{line:777,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:773},39:{loc:{start:{line:784,column:8},end:{line:787,column:9}},type:"if",locations:[{start:{line:784,column:8},end:{line:787,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:784}},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},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},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,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],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0]},inputSourceMap:{version:3,sources:["DataExtractor.vue"],names:[],mappings:";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiSA;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;;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;;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;;AAEA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",file:"DataExtractor.vue",sourceRoot:"src/tools/DataExtractor",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# This program may also be used under the terms of a commercial or\n# enterprise edition license of COSMOS if purchased from the\n# copyright holder\n--\x3e\n\n<template>\n <div>\n <top-bar :menus="menus" :title="title" />\n <v-container>\n <v-row>\n <v-col> Oldest found log data: </v-col>\n <v-col>\n {{ oldestLogDate | dateTime(utcOrLocal) }}\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <v-text-field\n v-model="startDate"\n label="Start Date"\n type="date"\n :min="oldestLogDateStr"\n :max="todaysDate"\n :rules="[rules.required]"\n data-test="start-date"\n />\n <v-text-field\n v-model="endDate"\n label="End Date"\n type="date"\n :min="oldestLogDateStr"\n :max="todaysDate"\n :rules="[rules.required]"\n data-test="end-date"\n />\n </v-col>\n <v-col>\n <v-text-field\n v-model="startTime"\n label="Start Time"\n type="time"\n step="1"\n :rules="[rules.required]"\n data-test="start-time"\n >\n </v-text-field>\n <v-text-field\n v-model="endTime"\n label="End Time"\n type="time"\n step="1"\n :rules="[rules.required]"\n data-test="end-time"\n >\n </v-text-field>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>\n <v-radio-group v-model="cmdOrTlm" row hide-details class="mt-0">\n <v-radio label="Command" value="cmd" data-test="cmd-radio" />\n <v-radio label="Telemetry" value="tlm" data-test="tlm-radio" />\n </v-radio-group>\n </v-col>\n <v-col>\n <v-radio-group v-model="utcOrLocal" row hide-details class="mt-0">\n <v-radio label="LST" value="loc" data-test="lst-radio" />\n <v-radio label="UTC" value="utc" data-test="utc-radio" />\n </v-radio-group>\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-col>\n <v-radio-group v-model="reduced" row hide-details>\n <span class="mr-5">Data Reduction:</span>\n <v-radio label="None" value="DECOM" data-test="not-reduced" />\n <v-radio\n label="Minute"\n value="REDUCED_MINUTE"\n data-test="min-reduced"\n />\n <v-radio\n label="Hour"\n value="REDUCED_HOUR"\n data-test="hour-reduced"\n />\n <v-radio label="Day" value="REDUCED_DAY" data-test="day-reduced" />\n </v-radio-group>\n </v-col>\n </v-row>\n <v-row>\n <v-col>\n <target-packet-item-chooser\n @click="addItem($event)"\n button-text="Add Item"\n :mode="cmdOrTlm"\n :reduced="reduced"\n choose-item\n allow-all\n />\n </v-col>\n </v-row>\n <v-row no-gutters>\n <v-toolbar>\n <v-progress-circular :value="progress" />\n <v-spacer />\n <v-toolbar-title> Items </v-toolbar-title>\n <v-spacer />\n <v-btn\n class="primary mr-4"\n @click="processItems"\n :disabled="items.length < 1"\n v-text="processButtonText"\n />\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n @click="editAll = true"\n v-bind="attrs"\n v-on="on"\n :disabled="items.length < 1"\n data-test="editAll"\n >\n <v-icon> mdi-pencil </v-icon>\n </v-btn>\n </template>\n <span>Edit All Items</span>\n </v-tooltip>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-btn\n icon\n @click="deleteAll"\n v-bind="attrs"\n v-on="on"\n :disabled="items.length < 1"\n data-test="delete-all"\n >\n <v-icon>mdi-delete</v-icon>\n </v-btn>\n </template>\n <span>Delete All Items</span>\n </v-tooltip>\n </v-toolbar>\n </v-row>\n <v-row no-gutters>\n <v-list data-test="item-list" width="100%">\n <div v-for="(item, i) in items" :key="i">\n <v-list-item>\n <v-list-item-icon>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon\n @click.stop="item.edit = true"\n v-bind="attrs"\n v-on="on"\n >\n mdi-pencil\n </v-icon>\n </template>\n <span>Edit Item</span>\n </v-tooltip>\n <v-dialog\n v-model="item.edit"\n @keydown.esc="item.edit = false"\n max-width="600"\n >\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataExtractor: Edit Item Mode </span>\n <v-spacer />\n </v-system-bar>\n <v-card-title v-text="getItemLabel(item)" />\n <v-card-text>\n <v-col>\n <v-select\n hide-details\n :items="valueTypes"\n label="Value Type"\n outlined\n v-model="item.valueType"\n />\n </v-col>\n \x3c!-- v-col v-if="uniqueOnly">\n <v-select\n :items="uniqueIgnoreOptions"\n label="Add to Unique Ignore List?:"\n outlined\n v-model="item.uniqueIgnoreAdd"\n />\n </v-col --\x3e\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn color="primary" @click="item.edit = false">\n Close\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n </v-list-item-icon>\n <v-list-item-content>\n <v-list-item-title v-text="getItemLabel(item)" />\n </v-list-item-content>\n <v-list-item-icon>\n <v-tooltip bottom>\n <template v-slot:activator="{ on, attrs }">\n <v-icon @click="deleteItem(item)" v-bind="attrs" v-on="on">\n mdi-delete\n </v-icon>\n </template>\n <span>Delete Item</span>\n </v-tooltip>\n </v-list-item-icon>\n </v-list-item>\n <v-divider />\n </div>\n </v-list>\n </v-row>\n </v-container>\n <v-dialog v-model="editAll" @keydown.esc="cancelEditAll" max-width="600">\n <v-card>\n <v-system-bar>\n <v-spacer />\n <span> DataExtractor: Edit All Items</span>\n <v-spacer />\n </v-system-bar>\n <v-card-text class="mt-2">\n This will change all items to the following data type!\n <v-col>\n <v-select\n hide-details\n :items="valueTypes"\n label="Value Type"\n outlined\n v-model="allItemValueType"\n />\n </v-col>\n </v-card-text>\n <v-card-actions>\n <v-spacer />\n <v-btn outlined class="mx-2" @click="editAll = !editAll">\n Cancel\n </v-btn>\n <v-btn\n :disabled="!allItemValueType"\n color="primary"\n class="mx-2"\n @click="editAllValueTypes()"\n >\n Ok\n </v-btn>\n </v-card-actions>\n </v-card>\n </v-dialog>\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <open-config-dialog\n v-if="openConfig"\n v-model="openConfig"\n :tool="toolName"\n @success="openConfiguration($event)"\n />\n \x3c!-- Note we\'re using v-if here so it gets re-created each time and refreshes the list --\x3e\n <save-config-dialog\n v-if="saveConfig"\n v-model="saveConfig"\n :tool="toolName"\n @success="saveConfiguration($event)"\n />\n </div>\n</template>\n\n<script>\nimport { CosmosApi } from \'@cosmosc2/tool-common/src/services/cosmos-api\'\nimport OpenConfigDialog from \'@cosmosc2/tool-common/src/components/OpenConfigDialog\'\nimport SaveConfigDialog from \'@cosmosc2/tool-common/src/components/SaveConfigDialog\'\nimport TargetPacketItemChooser from \'@cosmosc2/tool-common/src/components/TargetPacketItemChooser\'\nimport Cable from \'@cosmosc2/tool-common/src/services/cable.js\'\nimport { isValid, parse, format, getTime } from \'date-fns\'\nimport TopBar from \'@cosmosc2/tool-common/src/components/TopBar\'\nimport TimeFilters from \'@/tools/DataExtractor/Filters/timeFilters.js\'\n\nexport default {\n components: {\n OpenConfigDialog,\n SaveConfigDialog,\n TargetPacketItemChooser,\n TopBar,\n },\n mixins: [TimeFilters],\n data() {\n return {\n api: null,\n title: \'Data Extractor\',\n toolName: \'data-exporter\',\n openConfig: false,\n saveConfig: false,\n progress: 0,\n processButtonText: \'Process\',\n oldestLogDate: new Date(),\n todaysDate: format(new Date(), \'yyyy-MM-dd\'),\n startDate: format(new Date(), \'yyyy-MM-dd\'),\n startTime: format(new Date(), \'HH:mm:ss\'),\n endTime: format(new Date(), \'HH:mm:ss\'),\n endDate: format(new Date(), \'yyyy-MM-dd\'),\n startDateTime: null,\n endDateTime: null,\n startDateTimeFilename: \'\',\n rules: {\n required: (value) => !!value || \'Required\',\n },\n cmdOrTlm: \'tlm\',\n utcOrLocal: \'loc\',\n reduced: \'DECOM\',\n items: [],\n rawData: [],\n outputFile: [],\n columnMap: {},\n delimiter: \',\',\n columnMode: \'normal\',\n matlabHeader: false,\n skipIgnored: true,\n fillDown: false,\n uniqueOnly: false,\n valueTypes: [\'CONVERTED\', \'RAW\', \'FORMATTED\', \'WITH_UNITS\'],\n editAll: false,\n allItemValueType: null,\n // uniqueIgnoreOptions: [\'NO\', \'YES\'],\n cable: new Cable(),\n subscription: null,\n menus: [\n {\n label: \'File\',\n radioGroup: \'Comma Delimited\', // Default radio selected\n items: [\n {\n label: \'Open Configuration\',\n icon: \'mdi-folder-open\',\n command: () => {\n this.openConfig = true\n },\n },\n {\n label: \'Save Configuration\',\n icon: \'mdi-content-save\',\n command: () => {\n this.saveConfig = true\n },\n },\n {\n divider: true,\n },\n {\n label: \'Comma Delimited\',\n radio: true,\n command: () => {\n this.delimiter = \',\'\n },\n },\n {\n label: \'Tab Delimited\',\n radio: true,\n command: () => {\n this.delimiter = \'\\t\'\n },\n },\n ],\n },\n {\n label: \'Mode\',\n radioGroup: \'Normal Columns\', // Default radio selected\n items: [\n // TODO: Currently unimplemented\n // {\n // label: \'Skip Ignored on Add\',\n // checkbox: true,\n // checked: true, // Skip Ignored is the default\n // command: () => {\n // this.skipIgnored = !this.skipIgnored\n // },\n // },\n // {\n // divider: true,\n // },\n {\n label: \'Fill Down\',\n checkbox: true,\n command: () => {\n this.fillDown = !this.fillDown\n },\n },\n {\n label: \'Matlab Header\',\n checkbox: true,\n command: () => {\n this.matlabHeader = !this.matlabHeader\n },\n },\n {\n label: \'Unique Only\',\n checkbox: true,\n command: () => {\n this.uniqueOnly = !this.uniqueOnly\n },\n },\n {\n divider: true,\n },\n {\n label: \'Normal Columns\',\n radio: true,\n command: () => {\n this.columnMode = \'normal\'\n },\n },\n {\n label: \'Full Column Names\',\n radio: true,\n command: () => {\n this.columnMode = \'full\'\n },\n },\n ],\n },\n ],\n }\n },\n computed: {\n oldestLogDateStr: function () {\n // Set the start date / time to the earliest data found\n return format(this.oldestLogDate, \'yyyy-MM-dd\')\n },\n },\n created: function () {\n this.api = new CosmosApi()\n this.api\n .get_oldest_logfile({ params: { scope: localStorage.scope } })\n .then((response) => {\n // Server returns time as UTC so create date with \'Z\'\n this.oldestLogDate = new Date(response + \'Z\')\n })\n },\n mounted: function () {\n const previousConfig = localStorage[\'lastconfig__data_exporter\']\n if (previousConfig) {\n this.openConfiguration(previousConfig)\n }\n },\n destroyed: function () {\n if (this.subscription) {\n this.subscription.unsubscribe()\n }\n this.cable.disconnect()\n },\n methods: {\n openConfiguration: function (name) {\n localStorage[\'lastconfig__data_exporter\'] = name\n this.api\n .load_config(this.toolName, name)\n .then((response) => {\n if (response) {\n this.items = JSON.parse(response)\n this.$notify.normal({\n title: \'Loading configuartion\',\n body: name,\n })\n }\n })\n .catch((error) => {\n if (error) {\n this.$notify.serious({\n title: `Failed to open configuration ${name}`,\n body: error,\n })\n localStorage[\'lastconfig__data_exporter\'] = null\n }\n })\n },\n saveConfiguration: function (name) {\n localStorage[\'lastconfig__data_exporter\'] = name\n this.api\n .save_config(this.toolName, name, JSON.stringify(this.items))\n .then((response) => {\n this.$notify.normal({\n title: \'Saved configuration\',\n body: name,\n })\n })\n .catch((error) => {\n if (error) {\n this.$notify.serious({\n title: `Failed to save configuration: ${name}`,\n body: error,\n })\n }\n })\n },\n addItem: function (item) {\n // Traditional for loop so we can return if we find a match\n for (const listItem of this.items) {\n if (\n listItem.itemName === item.itemName &&\n listItem.packetName === item.packetName &&\n listItem.targetName === item.targetName &&\n listItem.valueType === \'CONVERTED\'\n ) {\n this.$notify.caution({\n body: \'This item has already been added!\',\n })\n return\n }\n }\n item.cmdOrTlm = this.cmdOrTlm.toUpperCase()\n item.edit = false\n item.valueType = \'CONVERTED\'\n // item.uniqueIgnoreAdd = \'NO\'\n this.items.push(item)\n },\n deleteItem: function (item) {\n var index = this.items.indexOf(item)\n this.items.splice(index, 1)\n },\n deleteAll: function () {\n this.items = []\n },\n editAllValueTypes: function () {\n this.editAll = false\n for (let item of this.items) {\n item.valueType = this.allItemValueType\n }\n },\n getItemLabel: function (item) {\n let label = [`${item.targetName} - ${item.packetName} - ${item.itemName}`]\n if (item.valueType !== \'CONVERTED\') {\n label.push(`+ ( ${item.valueType} )`)\n }\n if (item.reduced !== \'DECOM\') {\n label.push(`[ ${item.reduced} ]`)\n }\n return label.join(\' \')\n },\n setTimestamps: function () {\n this.startDateTimeFilename = this.startDate + \'_\' + this.startTime\n // Replace the colons and dashes with underscores in the filename\n this.startDateTimeFilename = this.startDateTimeFilename.replace(\n /(:|-)\\s*/g,\n \'_\'\n )\n let startTemp\n let endTemp\n try {\n if (this.utcOrLocal === \'utc\') {\n startTemp = new Date(this.startDate + \' \' + this.startTime + \'Z\')\n endTemp = new Date(this.endDate + \' \' + this.endTime + \'Z\')\n } else {\n startTemp = new Date(this.startDate + \' \' + this.startTime)\n endTemp = new Date(this.endDate + \' \' + this.endTime)\n }\n } catch (e) {\n return\n }\n this.startDateTime = startTemp.getTime() * 1_000_000\n this.endDateTime = endTemp.getTime() * 1_000_000\n },\n processItems: function () {\n // Check for a process in progress\n if (this.processButtonText === \'Cancel\') {\n this.processReceived()\n return\n }\n // Check for an empty time period\n this.setTimestamps()\n if (!this.startDateTime || !this.endDateTime) {\n this.$notify.caution({\n body: \'Invalid date/time selected!\',\n })\n return\n }\n if (this.startDateTime === this.endDateTime) {\n this.$notify.caution({\n body: \'Start date/time is equal to end date/time!\',\n })\n return\n }\n if (this.endDateTime - this.startDateTime < 0) {\n this.$notify.caution({\n body: \'Start date/time is greater then end date/time!\',\n })\n return\n }\n // Check for a future End Time\n if (new Date(this.endDateTime / 1_000_000) > Date.now()) {\n this.$notify.caution({\n title: \'Note\',\n body: `End date/time is greater than current date/time. Data will\n continue to stream in real-time until\n ${new Date(\n this.endDateTime / 1_000_000\n ).toISOString()} is reached.`,\n })\n }\n\n this.progress = 0\n this.processButtonText = \'Cancel\'\n this.cable\n .createSubscription(\'StreamingChannel\', localStorage.scope, {\n received: (data) => this.received(data),\n connected: () => this.onConnected(),\n disconnected: () => {\n this.$notify.caution({\n body: \'COSMOS backend connection disconnected.\',\n })\n },\n rejected: () => {\n this.$notify.caution({\n body: \'COSMOS backend connection rejected.\',\n })\n },\n })\n .then((subscription) => {\n this.subscription = subscription\n })\n },\n onConnected: function () {\n this.foundKeys = []\n this.columnHeaders = []\n this.columnMap = {}\n this.outputFile = []\n this.rawData = []\n var items = []\n this.items.forEach((item, index) => {\n items.push(\n `${item.cmdOrTlm}__${item.targetName}__${item.packetName}__${item.itemName}__${item.valueType}`\n )\n })\n CosmosAuth.updateToken(CosmosAuth.defaultMinValidity).then(() => {\n this.subscription.perform(\'add\', {\n scope: localStorage.scope,\n mode: this.reduced,\n token: localStorage.cosmosToken,\n items: items,\n start_time: this.startDateTime,\n end_time: this.endDateTime,\n })\n })\n },\n buildHeaders: function (itemKeys) {\n if (\n this.foundKeys.includes(itemKeys[0]) &&\n this.foundKeys.includes(itemKeys[1])\n ) {\n return\n }\n this.foundKeys = this.foundKeys.concat(itemKeys)\n\n // Normal column mode has the target and packet listed for each item\n if (this.columnHeaders.length === 0 && this.columnMode === \'normal\') {\n this.columnHeaders.push(\'TARGET\')\n this.columnHeaders.push(\'PACKET\')\n }\n itemKeys.forEach((item) => {\n if (item === \'time\') return\n this.columnMap[item] = Object.keys(this.columnMap).length\n const [cmdTlm, targetName, packetName, itemName, valueType] =\n item.split(\'__\')\n if (this.columnMode === \'full\') {\n this.columnHeaders.push(\n targetName + \' \' + packetName + \' \' + itemName\n )\n } else {\n if (valueType && valueType !== \'CONVERTED\') {\n this.columnHeaders.push(itemName + \' (\' + valueType + \')\')\n } else {\n this.columnHeaders.push(itemName)\n }\n }\n })\n },\n received: function (json_data) {\n if (json_data.error) {\n this.$notify.serious({\n body: json_data.error,\n })\n return\n }\n const data = JSON.parse(json_data)\n // Initially we just build up the list of data\n if (data.length > 0) {\n // Get all the items present in the data to pass to buildHeaders\n let keys = new Set()\n for (var item of data) {\n Object.keys(item).forEach(keys.add, keys)\n }\n this.buildHeaders([...keys])\n this.rawData = this.rawData.concat(data)\n this.progress = Math.ceil(\n (100 * (data[0][\'time\'] - this.startDateTime)) /\n (this.endDateTime - this.startDateTime)\n )\n } else {\n this.processReceived()\n }\n },\n processReceived: function () {\n this.progress = 95 // Indicate we\'re almost done\n this.subscription.unsubscribe()\n\n if (this.rawData.length === 0) {\n let start = new Date(this.startDateTime / 1_000_000).toISOString()\n let end = new Date(this.endDateTime / 1_000_000).toISOString()\n this.$notify.caution({\n body: `No data found for the items in the requested time range of ${start} to ${end}`,\n })\n } else {\n let headers = \'\'\n if (this.matlabHeader) {\n headers += \'% \'\n }\n headers += this.columnHeaders.join(this.delimiter)\n this.outputFile.push(headers)\n\n // Sort everything by time so we can output in order\n this.rawData.sort((a, b) => a.time - b.time)\n var currentValues = []\n var row = []\n var previousRow = null\n this.rawData.forEach((packet) => {\n var changed = false\n if (this.fillDown && previousRow) {\n row = [...previousRow] // Copy the previous\n } else {\n row = []\n }\n // This pulls out the attributes we requested\n const keys = Object.keys(packet)\n keys.forEach((key) => {\n if (key === \'time\' || key === \'packet\') return // Skip time and packet fields\n // Get the value and put it into the correct column\n if (typeof packet[key] === \'object\') {\n row[this.columnMap[key]] = \'"\' + packet[key][\'raw\'] + \'"\'\n } else {\n row[this.columnMap[key]] = packet[key]\n }\n if (\n this.uniqueOnly &&\n currentValues[this.columnMap[key]] !== row[this.columnMap[key]]\n ) {\n changed = true\n }\n currentValues[this.columnMap[key]] = row[this.columnMap[key]]\n })\n // Copy row before pushing on target / packet names\n previousRow = [...row]\n\n if (!this.uniqueOnly || changed) {\n // Normal column mode means each row has target / packet name\n if (this.columnMode === \'normal\') {\n var [, tgt, pkt] = keys[0].split(\'__\')\n row.unshift(pkt)\n row.unshift(tgt)\n }\n this.outputFile.push(row.join(this.delimiter))\n }\n })\n\n let downloadFileExtension = \'.csv\'\n let type = \'text/csv\'\n if (this.delimiter === \'\\t\') {\n downloadFileExtension = \'.txt\'\n type = \'text/tab-separated-values\'\n }\n const blob = new Blob([this.outputFile.join(\'\\n\')], {\n type: type,\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 this.startDateTimeFilename + downloadFileExtension\n )\n link.click()\n }\n this.progress = 100\n this.processButtonText = \'Process\'\n },\n },\n}\n<\/script>\n\n<style lang="scss" scoped>\n// Disable transition animations to allow bar to grow faster\n.v-progress-linear__determinate {\n transition: none !important;\n}\n</style>\n']},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4b1de97410692f187cb988deeb29a058aff4c332"},o=t[l]||(t[l]={});o[e]&&o[e].hash===n||(o[e]=i);var a=o[e];return X=function(){return a},a}X();var Q={components:{OpenConfigDialog:N,SaveConfigDialog:M,TargetPacketItemChooser:H,TopBar:W},mixins:[J],data:function(){var e=this;return X().f[0]++,X().s[0]++,{api:null,title:"Data Extractor",toolName:"data-exporter",openConfig:!1,saveConfig:!1,progress:0,processButtonText:"Process",oldestLogDate:new Date,todaysDate:(0,j.Z)(new Date,"yyyy-MM-dd"),startDate:(0,j.Z)(new Date,"yyyy-MM-dd"),startTime:(0,j.Z)(new Date,"HH:mm:ss"),endTime:(0,j.Z)(new Date,"HH:mm:ss"),endDate:(0,j.Z)(new Date,"yyyy-MM-dd"),startDateTime:null,endDateTime:null,startDateTimeFilename:"",rules:{required:function(e){return X().f[1]++,X().s[1]++,X().b[0][0]++,!!e||(X().b[0][1]++,"Required")}},cmdOrTlm:"tlm",utcOrLocal:"loc",reduced:"DECOM",items:[],rawData:[],outputFile:[],columnMap:{},delimiter:",",columnMode:"normal",matlabHeader:!1,skipIgnored:!0,fillDown:!1,uniqueOnly:!1,valueTypes:["CONVERTED","RAW","FORMATTED","WITH_UNITS"],editAll:!1,allItemValueType:null,cable:new Z,subscription:null,menus:[{label:"File",radioGroup:"Comma Delimited",items:[{label:"Open Configuration",icon:"mdi-folder-open",command:function(){X().f[2]++,X().s[2]++,e.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:function(){X().f[3]++,X().s[3]++,e.saveConfig=!0}},{divider:!0},{label:"Comma Delimited",radio:!0,command:function(){X().f[4]++,X().s[4]++,e.delimiter=","}},{label:"Tab Delimited",radio:!0,command:function(){X().f[5]++,X().s[5]++,e.delimiter="\t"}}]},{label:"Mode",radioGroup:"Normal Columns",items:[{label:"Fill Down",checkbox:!0,command:function(){X().f[6]++,X().s[6]++,e.fillDown=!e.fillDown}},{label:"Matlab Header",checkbox:!0,command:function(){X().f[7]++,X().s[7]++,e.matlabHeader=!e.matlabHeader}},{label:"Unique Only",checkbox:!0,command:function(){X().f[8]++,X().s[8]++,e.uniqueOnly=!e.uniqueOnly}},{divider:!0},{label:"Normal Columns",radio:!0,command:function(){X().f[9]++,X().s[9]++,e.columnMode="normal"}},{label:"Full Column Names",radio:!0,command:function(){X().f[10]++,X().s[10]++,e.columnMode="full"}}]}]}},computed:{oldestLogDateStr:function(){return X().f[11]++,X().s[11]++,(0,j.Z)(this.oldestLogDate,"yyyy-MM-dd")}},created:function(){var e=this;X().f[12]++,X().s[12]++,this.api=new _,X().s[13]++,this.api.get_oldest_logfile({params:{scope:localStorage.scope}}).then((function(n){X().f[13]++,X().s[14]++,e.oldestLogDate=new Date(n+"Z")}))},mounted:function(){X().f[14]++;var e=(X().s[15]++,localStorage["lastconfig__data_exporter"]);X().s[16]++,e?(X().b[1][0]++,X().s[17]++,this.openConfiguration(e)):X().b[1][1]++},destroyed:function(){X().f[15]++,X().s[18]++,this.subscription?(X().b[2][0]++,X().s[19]++,this.subscription.unsubscribe()):X().b[2][1]++,X().s[20]++,this.cable.disconnect()},methods:{openConfiguration:function(e){var n=this;X().f[16]++,X().s[21]++,localStorage["lastconfig__data_exporter"]=e,X().s[22]++,this.api.load_config(this.toolName,e).then((function(t){X().f[17]++,X().s[23]++,t?(X().b[3][0]++,X().s[24]++,n.items=JSON.parse(t),X().s[25]++,n.$notify.normal({title:"Loading configuartion",body:e})):X().b[3][1]++})).catch((function(t){X().f[18]++,X().s[26]++,t?(X().b[4][0]++,X().s[27]++,n.$notify.serious({title:"Failed to open configuration ".concat(e),body:t}),X().s[28]++,localStorage["lastconfig__data_exporter"]=null):X().b[4][1]++}))},saveConfiguration:function(e){var n=this;X().f[19]++,X().s[29]++,localStorage["lastconfig__data_exporter"]=e,X().s[30]++,this.api.save_config(this.toolName,e,JSON.stringify(this.items)).then((function(t){X().f[20]++,X().s[31]++,n.$notify.normal({title:"Saved configuration",body:e})})).catch((function(t){X().f[21]++,X().s[32]++,t?(X().b[5][0]++,X().s[33]++,n.$notify.serious({title:"Failed to save configuration: ".concat(e),body:t})):X().b[5][1]++}))},addItem:function(e){X().f[22]++,X().s[34]++;var n,t=(0,c.Z)(this.items);try{for(t.s();!(n=t.n()).done;){var l=n.value;if(X().s[35]++,X().b[7][0]++,l.itemName===e.itemName&&(X().b[7][1]++,l.packetName===e.packetName)&&(X().b[7][2]++,l.targetName===e.targetName)&&(X().b[7][3]++,"CONVERTED"===l.valueType))return X().b[6][0]++,X().s[36]++,this.$notify.caution({body:"This item has already been added!"}),void X().s[37]++;X().b[6][1]++}}catch(i){t.e(i)}finally{t.f()}X().s[38]++,e.cmdOrTlm=this.cmdOrTlm.toUpperCase(),X().s[39]++,e.edit=!1,X().s[40]++,e.valueType="CONVERTED",X().s[41]++,this.items.push(e)},deleteItem:function(e){X().f[23]++;var n=(X().s[42]++,this.items.indexOf(e));X().s[43]++,this.items.splice(n,1)},deleteAll:function(){X().f[24]++,X().s[44]++,this.items=[]},editAllValueTypes:function(){X().f[25]++,X().s[45]++,this.editAll=!1,X().s[46]++;var e,n=(0,c.Z)(this.items);try{for(n.s();!(e=n.n()).done;){var t=e.value;X().s[47]++,t.valueType=this.allItemValueType}}catch(l){n.e(l)}finally{n.f()}},getItemLabel:function(e){X().f[26]++;var n=(X().s[48]++,["".concat(e.targetName," - ").concat(e.packetName," - ").concat(e.itemName)]);return X().s[49]++,"CONVERTED"!==e.valueType?(X().b[8][0]++,X().s[50]++,n.push("+ ( ".concat(e.valueType," )"))):X().b[8][1]++,X().s[51]++,"DECOM"!==e.reduced?(X().b[9][0]++,X().s[52]++,n.push("[ ".concat(e.reduced," ]"))):X().b[9][1]++,X().s[53]++,n.join(" ")},setTimestamps:function(){var e,n;X().f[27]++,X().s[54]++,this.startDateTimeFilename=this.startDate+"_"+this.startTime,X().s[55]++,this.startDateTimeFilename=this.startDateTimeFilename.replace(/(:|-)\s*/g,"_"),X().s[56]++;try{X().s[57]++,"utc"===this.utcOrLocal?(X().b[10][0]++,X().s[58]++,e=new Date(this.startDate+" "+this.startTime+"Z"),X().s[59]++,n=new Date(this.endDate+" "+this.endTime+"Z")):(X().b[10][1]++,X().s[60]++,e=new Date(this.startDate+" "+this.startTime),X().s[61]++,n=new Date(this.endDate+" "+this.endTime))}catch(t){return void X().s[62]++}X().s[63]++,this.startDateTime=1e6*e.getTime(),X().s[64]++,this.endDateTime=1e6*n.getTime()},processItems:function(){var e=this;return X().f[28]++,X().s[65]++,"Cancel"===this.processButtonText?(X().b[11][0]++,X().s[66]++,this.processReceived(),void X().s[67]++):(X().b[11][1]++,X().s[68]++,this.setTimestamps(),X().s[69]++,X().b[13][0]++,this.startDateTime&&(X().b[13][1]++,this.endDateTime)?(X().b[12][1]++,X().s[72]++,this.startDateTime===this.endDateTime?(X().b[14][0]++,X().s[73]++,this.$notify.caution({body:"Start date/time is equal to end date/time!"}),void X().s[74]++):(X().b[14][1]++,X().s[75]++,this.endDateTime-this.startDateTime<0?(X().b[15][0]++,X().s[76]++,this.$notify.caution({body:"Start date/time is greater then end date/time!"}),void X().s[77]++):(X().b[15][1]++,X().s[78]++,new Date(this.endDateTime/1e6)>Date.now()?(X().b[16][0]++,X().s[79]++,this.$notify.caution({title:"Note",body:"End date/time is greater than current date/time. Data will\n continue to stream in real-time until\n ".concat(new Date(this.endDateTime/1e6).toISOString()," is reached.")})):X().b[16][1]++,X().s[80]++,this.progress=0,X().s[81]++,this.processButtonText="Cancel",X().s[82]++,void this.cable.createSubscription("StreamingChannel",localStorage.scope,{received:function(n){return X().f[29]++,X().s[83]++,e.received(n)},connected:function(){return X().f[30]++,X().s[84]++,e.onConnected()},disconnected:function(){X().f[31]++,X().s[85]++,e.$notify.caution({body:"COSMOS backend connection disconnected."})},rejected:function(){X().f[32]++,X().s[86]++,e.$notify.caution({body:"COSMOS backend connection rejected."})}}).then((function(n){X().f[33]++,X().s[87]++,e.subscription=n}))))):(X().b[12][0]++,X().s[70]++,this.$notify.caution({body:"Invalid date/time selected!"}),void X().s[71]++))},onConnected:function(){var e=this;X().f[34]++,X().s[88]++,this.foundKeys=[],X().s[89]++,this.columnHeaders=[],X().s[90]++,this.columnMap={},X().s[91]++,this.outputFile=[],X().s[92]++,this.rawData=[];var n=(X().s[93]++,[]);X().s[94]++,this.items.forEach((function(e,t){X().f[35]++,X().s[95]++,n.push("".concat(e.cmdOrTlm,"__").concat(e.targetName,"__").concat(e.packetName,"__").concat(e.itemName,"__").concat(e.valueType))})),X().s[96]++,CosmosAuth.updateToken(CosmosAuth.defaultMinValidity).then((function(){X().f[36]++,X().s[97]++,e.subscription.perform("add",{scope:localStorage.scope,mode:e.reduced,token:localStorage.cosmosToken,items:n,start_time:e.startDateTime,end_time:e.endDateTime})}))},buildHeaders:function(e){var n=this;if(X().f[37]++,X().s[98]++,X().b[18][0]++,this.foundKeys.includes(e[0])&&(X().b[18][1]++,this.foundKeys.includes(e[1])))return X().b[17][0]++,void X().s[99]++;X().b[17][1]++,X().s[100]++,this.foundKeys=this.foundKeys.concat(e),X().s[101]++,X().b[20][0]++,0===this.columnHeaders.length&&(X().b[20][1]++,"normal"===this.columnMode)?(X().b[19][0]++,X().s[102]++,this.columnHeaders.push("TARGET"),X().s[103]++,this.columnHeaders.push("PACKET")):X().b[19][1]++,X().s[104]++,e.forEach((function(e){if(X().f[38]++,X().s[105]++,"time"===e)return X().b[21][0]++,void X().s[106]++;X().b[21][1]++,X().s[107]++,n.columnMap[e]=Object.keys(n.columnMap).length;var t=(X().s[108]++,e.split("__")),l=(0,s.Z)(t,5),i=(l[0],l[1]),o=l[2],a=l[3],c=l[4];X().s[109]++,"full"===n.columnMode?(X().b[22][0]++,X().s[110]++,n.columnHeaders.push(i+" "+o+" "+a)):(X().b[22][1]++,X().s[111]++,X().b[24][0]++,c&&(X().b[24][1]++,"CONVERTED"!==c)?(X().b[23][0]++,X().s[112]++,n.columnHeaders.push(a+" ("+c+")")):(X().b[23][1]++,X().s[113]++,n.columnHeaders.push(a)))}))},received:function(e){if(X().f[39]++,X().s[114]++,e.error)return X().b[25][0]++,X().s[115]++,this.$notify.serious({body:e.error}),void X().s[116]++;X().b[25][1]++;var n=(X().s[117]++,JSON.parse(e));if(X().s[118]++,n.length>0){X().b[26][0]++;var t=(X().s[119]++,new Set);X().s[120]++;var l,i=(0,c.Z)(n);try{for(i.s();!(l=i.n()).done;){var o=l.value;X().s[121]++,Object.keys(o).forEach(t.add,t)}}catch(s){i.e(s)}finally{i.f()}X().s[122]++,this.buildHeaders((0,a.Z)(t)),X().s[123]++,this.rawData=this.rawData.concat(n),X().s[124]++,this.progress=Math.ceil(100*(n[0]["time"]-this.startDateTime)/(this.endDateTime-this.startDateTime))}else X().b[26][1]++,X().s[125]++,this.processReceived()},processReceived:function(){var e=this;if(X().f[40]++,X().s[126]++,this.progress=95,X().s[127]++,this.subscription.unsubscribe(),X().s[128]++,0===this.rawData.length){X().b[27][0]++;var n=(X().s[129]++,new Date(this.startDateTime/1e6).toISOString()),t=(X().s[130]++,new Date(this.endDateTime/1e6).toISOString());X().s[131]++,this.$notify.caution({body:"No data found for the items in the requested time range of ".concat(n," to ").concat(t)})}else{X().b[27][1]++;var l=(X().s[132]++,"");X().s[133]++,this.matlabHeader?(X().b[28][0]++,X().s[134]++,l+="% "):X().b[28][1]++,X().s[135]++,l+=this.columnHeaders.join(this.delimiter),X().s[136]++,this.outputFile.push(l),X().s[137]++,this.rawData.sort((function(e,n){return X().f[41]++,X().s[138]++,e.time-n.time}));var i=(X().s[139]++,[]),c=(X().s[140]++,[]),r=(X().s[141]++,null);X().s[142]++,this.rawData.forEach((function(n){X().f[42]++;var t=(X().s[143]++,!1);X().s[144]++,X().b[30][0]++,e.fillDown&&(X().b[30][1]++,r)?(X().b[29][0]++,X().s[145]++,c=(0,a.Z)(r)):(X().b[29][1]++,X().s[146]++,c=[]);var l=(X().s[147]++,Object.keys(n));if(X().s[148]++,l.forEach((function(l){if(X().f[43]++,X().s[149]++,X().b[32][0]++,"time"===l||(X().b[32][1]++,"packet"===l))return X().b[31][0]++,void X().s[150]++;X().b[31][1]++,X().s[151]++,"object"===(0,o.Z)(n[l])?(X().b[33][0]++,X().s[152]++,c[e.columnMap[l]]='"'+n[l]["raw"]+'"'):(X().b[33][1]++,X().s[153]++,c[e.columnMap[l]]=n[l]),X().s[154]++,X().b[35][0]++,e.uniqueOnly&&(X().b[35][1]++,i[e.columnMap[l]]!==c[e.columnMap[l]])?(X().b[34][0]++,X().s[155]++,t=!0):X().b[34][1]++,X().s[156]++,i[e.columnMap[l]]=c[e.columnMap[l]]})),X().s[157]++,r=(0,a.Z)(c),X().s[158]++,X().b[37][0]++,!e.uniqueOnly||(X().b[37][1]++,t)){if(X().b[36][0]++,X().s[159]++,"normal"===e.columnMode){X().b[38][0]++;var u=(X().s[160]++,l[0].split("__")),m=(0,s.Z)(u,3),d=m[1],A=m[2];X().s[161]++,c.unshift(A),X().s[162]++,c.unshift(d)}else X().b[38][1]++;X().s[163]++,e.outputFile.push(c.join(e.delimiter))}else X().b[36][1]++}));var u=(X().s[164]++,".csv"),m=(X().s[165]++,"text/csv");X().s[166]++,"\t"===this.delimiter?(X().b[39][0]++,X().s[167]++,u=".txt",X().s[168]++,m="text/tab-separated-values"):X().b[39][1]++;var d=(X().s[169]++,new Blob([this.outputFile.join("\n")],{type:m})),A=(X().s[170]++,document.createElement("a"));X().s[171]++,A.href=URL.createObjectURL(d),X().s[172]++,A.setAttribute("download",this.startDateTimeFilename+u),X().s[173]++,A.click()}X().s[174]++,this.progress=100,X().s[175]++,this.processButtonText="Process"}}},ee=Q,ne=(t(902),(0,x.Z)(ee,l,i,!1,null,"5a52dd9e",null)),te=ne.exports},3938:function(e,n,t){"use strict";t.r(n);var l=t(3467),i=t.n(l),o=t(8715),a=t.n(o),s=a()(i());s.push([e.id,".v-list[data-v-e3bb7458] .v-label{margin-left:5px}.v-list-item__icon[data-v-e3bb7458]{margin-right:15px!important}.v-list-item__title[data-v-e3bb7458]{color:#fff}",""]),n["default"]=s},7205:function(e,n,t){"use strict";t.r(n);var l=t(3467),i=t.n(l),o=t(8715),a=t.n(o),s=a()(i());s.push([e.id,".v-progress-linear__determinate[data-v-5a52dd9e]{transition:none!important}",""]),n["default"]=s},7162:function(e,n,t){var l=t(3938);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("a2f2c426",l,!0,{sourceMap:!1,shadowMode:!1})},902:function(e,n,t){var l=t(7205);l.__esModule&&(l=l.default),"string"===typeof l&&(l=[[e.id,l,""]]),l.locals&&(e.exports=l.locals);var i=t(3514).Z;i("7e11a6f8",l,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
|
+
//# sourceMappingURL=846.js.map
|