openc3-cosmos-tool-admin 5.13.0 → 5.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/admin/js/117.js +2 -0
- data/tools/admin/js/117.js.map +1 -0
- data/tools/admin/js/162.js +1 -1
- data/tools/admin/js/162.js.map +1 -1
- data/tools/admin/js/24.js +1 -1
- data/tools/admin/js/24.js.map +1 -1
- data/tools/admin/js/240.js +1 -1
- data/tools/admin/js/240.js.map +1 -1
- data/tools/admin/js/267.js +1 -1
- data/tools/admin/js/267.js.map +1 -1
- data/tools/admin/js/27.js +1 -1
- data/tools/admin/js/27.js.map +1 -1
- data/tools/admin/js/478.js +1 -1
- data/tools/admin/js/478.js.map +1 -1
- data/tools/admin/js/537.js +1 -1
- data/tools/admin/js/537.js.map +1 -1
- data/tools/admin/js/593.js +1 -1
- data/tools/admin/js/593.js.map +1 -1
- data/tools/admin/js/713.js +2 -0
- data/tools/admin/js/713.js.map +1 -0
- data/tools/admin/js/797.js +1 -1
- data/tools/admin/js/797.js.map +1 -1
- data/tools/admin/js/829.js +1 -1
- data/tools/admin/js/829.js.map +1 -1
- data/tools/admin/js/830.js +1 -1
- data/tools/admin/js/830.js.map +1 -1
- data/tools/admin/js/876.js +3 -3
- data/tools/admin/js/876.js.map +1 -1
- data/tools/admin/js/app.js +1 -1
- data/tools/admin/js/app.js.map +1 -1
- metadata +7 -7
- data/tools/admin/js/223.js +0 -2
- data/tools/admin/js/223.js.map +0 -1
- data/tools/admin/js/35.js +0 -2
- data/tools/admin/js/35.js.map +0 -1
data/tools/admin/js/797.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[797],{6129:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});var o=s(9373);const a=async function(t,e,{data:s,params:a={},headers:n,noAuth:i=!1,noScope:r=!1}={}){if(!i){try{let t=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);t&&OpenC3Auth.setTokens()}catch(l){OpenC3Auth.login()}n["Authorization"]=localStorage.openc3Token}return r||a["scope"]||(a["scope"]=window.openc3Scope),(0,o.Z)({method:t,url:e,data:s,params:a,headers:n})},n={Accept:"application/json"},i={...n,"Content-Type":"application/json"},r={get:function(t,{params:e,headers:s=n,noScope:o,noAuth:i}={}){return a("get",t,{params:e,headers:s,noScope:o,noAuth:i})},put:function(t,{data:e,params:s,headers:o=i,noScope:n,noAuth:r}={}){return a("put",t,{data:e,params:s,headers:o,noScope:n,noAuth:r})},post:function(t,{data:e,params:s,headers:o=i,noScope:n,noAuth:r}={}){return a("post",t,{data:e,params:s,headers:o,noScope:n,noAuth:r})},delete:function(t,{params:e,headers:s=n,noScope:o,noAuth:i}={}){return a("delete",t,{params:e,headers:s,noScope:o,noAuth:i})}}},9373:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});var o=s(162),a=s(4091);const n=new a["default"],i=o.Z.create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((t=>t),(t=>{if(t.response){var e,s,o,a,i;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.headers["ignore-errors"]&&t.response.headers["ignore-errors"].includes(t.response.status.toString()))return Promise.reject(t);let l=`HTTP ${t.response.status} - `;if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(l+=`${t.response.statusText} `),null!==(s=t.response)&&void 0!==s&&null!==(s=s.config)&&void 0!==s&&s.data&&(l+=`${t.response.config.data} `),null!==(o=t.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.message)l+=`${t.response.data.message}`;else if(null!==(a=t.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.exception)l+=`${t.response.data.exception}`;else if(null!==(i=t.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&null!==(i=i.error)&&void 0!==i&&i.message)t.response.data.error.class&&(l+=`${t.response.data.error.class} `),l+=`${t.response.data.error.message}`;else{var r;l+=`${null===(r=t.response)||void 0===r?void 0:r.data}`}throw n.$notify&&n.$notify.serious({title:"Network error",body:l}),t}throw t}));const r=i},7484:(t,e,s)=>{"use strict";s.d(e,{Z:()=>c});var o=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:t.width},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" "+t._s(t.title)+" ")]),t._v(" "),e("v-spacer"),t._v(" "),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:o}){return[e("div",t._g(t._b({},"div",o,!1),s),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v("\n mdi-download\n ")])],1)]}}])},[t._v(" "),e("span",[t._v(" Download ")])])],1)],1),t._v(" "),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("span",{staticStyle:{"white-space":"pre-wrap"}},[t._v(t._s(t.text))])])]),t._v(" "),e("v-card-actions",[e("v-spacer"),t._v(" "),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){t.show=!t.show}}},[t._v(" Ok ")])],1)],1)],1)},a=[];s(309),s(1629),s(4163),s(5850),s(3631),s(1399);const n={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}}},methods:{download:function(){const t=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}.txt`),e.click()}}},i=n;var r=s(3483),l=(0,r.Z)(i,o,a,!1,null,null,null);const c=l.exports},6797:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var o=function(){var t=this,e=t._self._c;return e("div",[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",[e("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{multiple:"","show-size":"",accept:".gem,.gz,.zip,.whl",label:"Click to select file(s) to add to COSMOS"},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}})],1)],1),t._v(" "),e("v-row",{staticClass:"px-2 pb-2",attrs:{"no-gutters":""}},[e("v-spacer"),t._v(" "),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"packageUpload",disabled:t.files.length<1,loading:t.loadingPackage},on:{click:function(e){return t.upload()}},scopedSlots:t._u([{key:"loader",fn:function(){return[e("span",[t._v("Loading...")])]},proxy:!0}])},[e("v-icon",{attrs:{left:"",dark:""}},[t._v("mdi-cloud-upload")]),t._v(" "),e("span",[t._v(" Upload ")])],1)],1),t._v(" "),e("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:t.alertType},model:{value:t.showAlert,callback:function(e){t.showAlert=e},expression:"showAlert"}},[t._v(t._s(t.alert))]),t._v(" "),Object.keys(t.processes).length>0?e("v-list",{staticClass:"list",attrs:{"data-test":"processList"}},t._l(t.processes,(function(s){return e("div",{key:s.name},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[e("span",{class:s.state.toLowerCase(),domProps:{textContent:t._s(`Processing ${s.process_type}: ${s.detail} - ${s.state}`)}})]),t._v(" "),e("v-list-item-subtitle",[e("span",{domProps:{textContent:t._s(" Updated At: "+t.formatDate(s.updated_at))}})])],1),t._v(" "),"Running"!==s.state?e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showOutput(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-eye\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Show Output")])])],1):t._e()],1),t._v(" "),e("v-divider")],1)})),0):t._e(),t._v(" "),e("v-list",{staticClass:"list",attrs:{"data-test":"packageList"}},[e("v-subheader",[t._v("Ruby Gems")]),t._v(" "),t._l(t.gems,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deletePackage(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Package")])])],1)],1),t._v(" "),e("v-divider")],1)})),t._v(" "),e("v-subheader",[t._v("Python Packages")]),t._v(" "),t._l(t.python,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deletePackage(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Package")])])],1)],1),t._v(" "),e("v-divider")],1)}))],2),t._v(" "),e("download-dialog",{model:{value:t.showDownloadDialog,callback:function(e){t.showDownloadDialog=e},expression:"showDownloadDialog"}}),t._v(" "),e("simple-text-dialog",{attrs:{title:"Process Output",text:t.processOutput},model:{value:t.showProcessOutput,callback:function(e){t.showProcessOutput=e},expression:"showProcessOutput"}})],1)},a=[],n=(s(309),s(7388)),i=s(6700),r=s(6129),l=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" Download Gems ")]),t._v(" "),e("v-spacer")],1),t._v(" "),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{staticClass:"my-2"},[t._v(" Select a download option ")]),t._v(" "),e("v-row",[e("v-col",[e("div",{staticClass:"px-2"},[e("v-btn",{attrs:{block:"","data-test":"searchGithub",color:"primary",disabled:t.disableSearch},on:{click:t.searchGithub}},[t._v("\n Github\n "),e("v-icon",{attrs:{right:"",dark:""}},[t._v(" mdi-github ")])],1)],1)])],1),t._v(" "),e("v-row",{staticClass:"mt-5"},[t._v(" Community Gems ")]),t._v(" "),t.listData.length<1?e("div",{staticClass:"mt-4"},[e("v-row",{staticClass:"mx-2"},[e("span",[t._v(" I’m sorry, Dave. No gems available.... ")])])],1):e("div",{staticClass:"mt-4"},t._l(t.listData,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s.name))])],1),t._v(" "),e("v-list-item-icon",[t.activeDownload?e("div",[e("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1):e("div",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({attrs:{disabled:t.activeDownload},on:{click:function(e){return t.downloadGem(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-cloud-download\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Download Gem")])])],1)])],1),t._v(" "),o<t.listData.length-1?e("v-divider",{key:o}):t._e()],1)})),0)],1)])],1)],1)},c=[],u=s(162);const d={props:{value:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}},listData:function(){return this.response?"github"===this.type?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const t=/\w+.gem/;return this.response.tree.filter((e=>t.exec(e.path))).map((t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`})))},getResponse:function(){this.disableSearch=!0,u.Z.get(this.url).then((t=>{this.response=t.data})),setTimeout((()=>{this.disableSearch=!1}),1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(t){const e=document.createElement("a");e.href=t.url,e.setAttribute("download",t.name),e.click(),e.remove()}}},p=d;var v=s(3483),h=(0,v.Z)(p,l,c,!1,null,null,null);const m=h.exports;var _=s(7484);const g={components:{DownloadDialog:m,SimpleTextDialog:_.Z},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,gems:[],python:[],processes:{},alert:"",alertType:"success",showAlert:!1}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update(){r.Z.get("/openc3-api/packages").then((t=>{this.gems=t.data.ruby,this.python=t.data.python}))},updateProcesses:function(){r.Z.get("/openc3-api/process_status/package_?substr=true").then((t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout((()=>{this.updateProcesses(),this.update()}),1e4)}))},formatDate(t){return(0,n.Z)((0,i.Z)(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(){this.loadingPackage=!0;const t=this.files.map((t=>{const e=new FormData;return e.append("package",t,t.name),r.Z.post("/openc3-api/packages",{data:e,headers:{"Content-Type":"multipart/form-data"}})}));Promise.all(t).then((t=>{this.alert=`Uploaded ${t.length} package${t.length>1?"s":""}`,this.alertType="success",this.showAlert=!0,this.loadingPackage=!1,this.files=[],setTimeout((()=>{this.showAlert=!1,this.updateProcesses()}),5e3),this.update()})).catch((t=>{this.loadingPackage=!1}))},deletePackage:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then((function(e){return r.Z.delete(`/openc3-api/packages/${t}`)})).then((e=>{this.alert=`Removed package ${t}`,this.alertType="success",this.showAlert=!0,setTimeout((()=>{this.showAlert=!1}),5e3),this.update()}))}}},f=g;s(7099);var w=(0,v.Z)(f,o,a,!1,null,"cdac2342",null);const k=w.exports},9653:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var o=s(9601),a=s.n(o),n=s(2609),i=s.n(n),r=i()(a());r.push([t.id,".v-subheader[data-v-cdac2342]{font-size:1rem}.list[data-v-cdac2342]{background-color:var(--color-background-surface-default)!important}",""]);const l=r},7099:(t,e,s)=>{var o=s(9653);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var a=s(3514).Z;a("2b88e16a",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
1
|
+
(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[797],{6129:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});var o=s(9373);const a=async function(t,e,{data:s,params:a={},headers:n,noAuth:i=!1,noScope:r=!1}={}){if(!i){try{let t=await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity);t&&OpenC3Auth.setTokens()}catch(l){OpenC3Auth.login()}n["Authorization"]=localStorage.openc3Token}return r||a["scope"]||(a["scope"]=window.openc3Scope),(0,o.Z)({method:t,url:e,data:s,params:a,headers:n})},n={Accept:"application/json"},i={...n,"Content-Type":"application/json"},r={get:function(t,{params:e,headers:s=n,noScope:o,noAuth:i}={}){return a("get",t,{params:e,headers:s,noScope:o,noAuth:i})},put:function(t,{data:e,params:s,headers:o=i,noScope:n,noAuth:r}={}){return a("put",t,{data:e,params:s,headers:o,noScope:n,noAuth:r})},post:function(t,{data:e,params:s,headers:o=i,noScope:n,noAuth:r}={}){return a("post",t,{data:e,params:s,headers:o,noScope:n,noAuth:r})},delete:function(t,{params:e,headers:s=n,noScope:o,noAuth:i}={}){return a("delete",t,{params:e,headers:s,noScope:o,noAuth:i})}}},9373:(t,e,s)=>{"use strict";s.d(e,{Z:()=>r});var o=s(162),a=s(4091);const n=new a["default"],i=o.Z.create({baseURL:location.origin,timeout:6e4,params:{}});i.interceptors.response.use((t=>t),(t=>{if(t.response){var e,s,o,a,i;if(401===t.response.status&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then((function(t){t&&OpenC3Auth.setTokens()})),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let l=`HTTP ${t.response.status} - `;if(null!==(e=t.response)&&void 0!==e&&e.statusText&&(l+=`${t.response.statusText} `),null!==(s=t.response)&&void 0!==s&&null!==(s=s.config)&&void 0!==s&&s.data&&(l+=`${t.response.config.data} `),null!==(o=t.response)&&void 0!==o&&null!==(o=o.data)&&void 0!==o&&o.message)l+=`${t.response.data.message}`;else if(null!==(a=t.response)&&void 0!==a&&null!==(a=a.data)&&void 0!==a&&a.exception)l+=`${t.response.data.exception}`;else if(null!==(i=t.response)&&void 0!==i&&null!==(i=i.data)&&void 0!==i&&null!==(i=i.error)&&void 0!==i&&i.message)t.response.data.error.class&&(l+=`${t.response.data.error.class} `),l+=`${t.response.data.error.message}`;else{var r;l+=`${null===(r=t.response)||void 0===r?void 0:r.data}`}throw n.$notify&&n.$notify.serious({title:"Network error",body:l}),t}throw t}));const r=i},7484:(t,e,s)=>{"use strict";s.d(e,{Z:()=>c});var o=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:t.width},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" "+t._s(t.title)+" ")]),t._v(" "),e("v-spacer"),t._v(" "),e("div",{staticClass:"mx-2"},[e("v-tooltip",{attrs:{top:""},scopedSlots:t._u([{key:"activator",fn:function({on:s,attrs:o}){return[e("div",t._g(t._b({},"div",o,!1),s),[e("v-icon",{attrs:{"data-test":"downloadIcon"},on:{click:t.download}},[t._v("\n mdi-download\n ")])],1)]}}])},[t._v(" "),e("span",[t._v(" Download ")])])],1)],1),t._v(" "),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("span",{staticStyle:{"white-space":"pre-wrap"}},[t._v(t._s(t.text))])])]),t._v(" "),e("v-card-actions",[e("v-spacer"),t._v(" "),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary"},on:{click:function(e){t.show=!t.show}}},[t._v(" Ok ")])],1)],1)],1)},a=[];s(309),s(1629),s(4163),s(5850),s(3631),s(1399);const n={props:{value:Boolean,text:String,title:String,width:800},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}}},methods:{download:function(){const t=new Blob([this.text],{type:"text/plain"}),e=document.createElement("a");e.href=URL.createObjectURL(t),e.setAttribute("download",`${this.title}.txt`),e.click()}}},i=n;var r=s(3483),l=(0,r.Z)(i,o,a,!1,null,null,null);const c=l.exports},6797:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>k});var o=function(){var t=this,e=t._self._c;return e("div",[e("v-row",{attrs:{"no-gutters":""}},[e("v-col",[e("v-file-input",{ref:"fileInput",staticClass:"mx-2",attrs:{multiple:"","show-size":"",accept:".gem,.gz,.zip,.whl",label:"Click to select file(s) to add to COSMOS"},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}})],1)],1),t._v(" "),e("v-row",{staticClass:"px-2 pb-2",attrs:{"no-gutters":""}},[e("v-spacer"),t._v(" "),e("v-btn",{staticClass:"mx-2",attrs:{color:"primary","data-test":"packageUpload",disabled:t.files.length<1,loading:t.loadingPackage},on:{click:function(e){return t.upload()}},scopedSlots:t._u([{key:"loader",fn:function(){return[e("span",[t._v("Loading...")])]},proxy:!0}])},[e("v-icon",{attrs:{left:"",dark:""}},[t._v("mdi-cloud-upload")]),t._v(" "),e("span",[t._v(" Upload ")])],1)],1),t._v(" "),e("v-alert",{attrs:{dismissible:"",transition:"scale-transition",type:t.alertType},model:{value:t.showAlert,callback:function(e){t.showAlert=e},expression:"showAlert"}},[t._v(t._s(t.alert))]),t._v(" "),Object.keys(t.processes).length>0?e("v-list",{staticClass:"list",attrs:{"data-test":"processList"}},t._l(t.processes,(function(s){return e("div",{key:s.name},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[e("span",{class:s.state.toLowerCase(),domProps:{textContent:t._s(`Processing ${s.process_type}: ${s.detail} - ${s.state}`)}})]),t._v(" "),e("v-list-item-subtitle",[e("span",{domProps:{textContent:t._s(" Updated At: "+t.formatDate(s.updated_at))}})])],1),t._v(" "),"Running"!==s.state?e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.showOutput(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-eye\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Show Output")])])],1):t._e()],1),t._v(" "),e("v-divider")],1)})),0):t._e(),t._v(" "),e("v-list",{staticClass:"list",attrs:{"data-test":"packageList"}},[e("v-subheader",[t._v("Ruby Gems")]),t._v(" "),t._l(t.gems,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deletePackage(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Package")])])],1)],1),t._v(" "),e("v-divider")],1)})),t._v(" "),e("v-subheader",[t._v("Python Packages")]),t._v(" "),t._l(t.python,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s))])],1),t._v(" "),e("v-list-item-icon",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({on:{click:function(e){return t.deletePackage(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-delete\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Delete Package")])])],1)],1),t._v(" "),e("v-divider")],1)}))],2),t._v(" "),e("download-dialog",{model:{value:t.showDownloadDialog,callback:function(e){t.showDownloadDialog=e},expression:"showDownloadDialog"}}),t._v(" "),e("simple-text-dialog",{attrs:{title:"Process Output",text:t.processOutput},model:{value:t.showProcessOutput,callback:function(e){t.showProcessOutput=e},expression:"showProcessOutput"}})],1)},a=[],n=(s(309),s(7388)),i=s(6700),r=s(6129),l=function(){var t=this,e=t._self._c;return e("v-dialog",{attrs:{width:"600"},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[e("v-card",[e("v-system-bar",[e("v-spacer"),t._v(" "),e("span",[t._v(" Download Gems ")]),t._v(" "),e("v-spacer")],1),t._v(" "),e("v-card-text",[e("div",{staticClass:"pa-3"},[e("v-row",{staticClass:"my-2"},[t._v(" Select a download option ")]),t._v(" "),e("v-row",[e("v-col",[e("div",{staticClass:"px-2"},[e("v-btn",{attrs:{block:"","data-test":"searchGithub",color:"primary",disabled:t.disableSearch},on:{click:t.searchGithub}},[t._v("\n Github\n "),e("v-icon",{attrs:{right:"",dark:""}},[t._v(" mdi-github ")])],1)],1)])],1),t._v(" "),e("v-row",{staticClass:"mt-5"},[t._v(" Community Gems ")]),t._v(" "),t.listData.length<1?e("div",{staticClass:"mt-4"},[e("v-row",{staticClass:"mx-2"},[e("span",[t._v(" I’m sorry, Dave. No gems available.... ")])])],1):e("div",{staticClass:"mt-4"},t._l(t.listData,(function(s,o){return e("div",{key:o},[e("v-list-item",[e("v-list-item-content",[e("v-list-item-title",[t._v(t._s(s.name))])],1),t._v(" "),e("v-list-item-icon",[t.activeDownload?e("div",[e("v-progress-circular",{attrs:{indeterminate:"",color:"primary"}})],1):e("div",[e("v-tooltip",{attrs:{bottom:""},scopedSlots:t._u([{key:"activator",fn:function({on:o,attrs:a}){return[e("v-icon",t._g(t._b({attrs:{disabled:t.activeDownload},on:{click:function(e){return t.downloadGem(s)}}},"v-icon",a,!1),o),[t._v("\n mdi-cloud-download\n ")])]}}],null,!0)},[t._v(" "),e("span",[t._v("Download Gem")])])],1)])],1),t._v(" "),o<t.listData.length-1?e("v-divider",{key:o}):t._e()],1)})),0)],1)])],1)],1)},c=[],u=s(162);const d={props:{value:Boolean},data(){return{url:"",type:null,response:null,activeDownload:!1,disableSearch:!1,expanded:[]}},computed:{show:{get(){return this.value},set(t){this.$emit("input",t)}},listData:function(){return this.response?"github"===this.type?this.parseGithub():this.parseRuby():[]}},methods:{parseGithub:function(){const t=/\w+.gem/;return this.response.tree.filter((e=>t.exec(e.path))).map((t=>({name:t.path,url:`https://raw.github.com/OpenC3/openc3-tools/main/${t.path}`})))},getResponse:function(){this.disableSearch=!0,u.Z.get(this.url).then((t=>{this.response=t.data})),setTimeout((()=>{this.disableSearch=!1}),1e4)},searchGithub:function(){this.type="github",this.url="https://api.github.com/repos/OpenC3/openc3-tools/git/trees/main?recursive=1",this.getResponse()},downloadGem:function(t){const e=document.createElement("a");e.href=t.url,e.setAttribute("download",t.name),e.click(),e.remove()}}},p=d;var v=s(3483),h=(0,v.Z)(p,l,c,!1,null,null,null);const m=h.exports;var _=s(7484);const g={components:{DownloadDialog:m,SimpleTextDialog:_.Z},data(){return{showDownloadDialog:!1,showProcessOutput:!1,processOutput:"",files:[],loadingPackage:!1,gems:[],python:[],processes:{},alert:"",alertType:"success",showAlert:!1}},mounted(){this.update(),this.updateProcesses()},methods:{showOutput:function(t){this.processOutput=t.output,this.showProcessOutput=!0},update(){r.Z.get("/openc3-api/packages").then((t=>{this.gems=t.data.ruby,this.python=t.data.python}))},updateProcesses:function(){r.Z.get("/openc3-api/process_status/package_?substr=true").then((t=>{this.processes=t.data,Object.keys(this.processes).length>0&&setTimeout((()=>{this.updateProcesses(),this.update()}),1e4)}))},formatDate(t){return(0,n.Z)((0,i.Z)(parseInt(t)/1e6),"yyyy-MM-dd HH:mm:ss.SSS")},upload:function(){this.loadingPackage=!0;const t=this.files.map((t=>{const e=new FormData;return e.append("package",t,t.name),r.Z.post("/openc3-api/packages",{data:e,headers:{"Content-Type":"multipart/form-data"}})}));Promise.all(t).then((t=>{this.alert=`Uploaded ${t.length} package${t.length>1?"s":""}`,this.alertType="success",this.showAlert=!0,this.loadingPackage=!1,this.files=[],setTimeout((()=>{this.showAlert=!1,this.updateProcesses()}),5e3),this.update()})).catch((t=>{this.loadingPackage=!1}))},deletePackage:function(t){this.$dialog.confirm(`Are you sure you want to remove: ${t}`,{okText:"Delete",cancelText:"Cancel"}).then((function(e){return r.Z.delete(`/openc3-api/packages/${t}`)})).then((e=>{this.alert=`Removed package ${t}`,this.alertType="success",this.showAlert=!0,setTimeout((()=>{this.showAlert=!1}),5e3),this.update()}))}}},f=g;s(7099);var w=(0,v.Z)(f,o,a,!1,null,"cdac2342",null);const k=w.exports},9653:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>l});var o=s(9601),a=s.n(o),n=s(2609),i=s.n(n),r=i()(a());r.push([t.id,".v-subheader[data-v-cdac2342]{font-size:1rem}.list[data-v-cdac2342]{background-color:var(--color-background-surface-default)!important}",""]);const l=r},7099:(t,e,s)=>{var o=s(9653);o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.id,o,""]]),o.locals&&(t.exports=o.locals);var a=s(3514).Z;a("2b88e16a",o,!0,{sourceMap:!1,shadowMode:!1})}}]);
|
2
2
|
//# sourceMappingURL=797.js.map
|
data/tools/admin/js/797.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"js/797.js","mappings":"0KAwBA,MAAMA,EAAUC,eACdC,EACAC,GACA,KAAEC,EAAI,OAAEC,EAAS,CAAC,EAAC,QAAEC,EAAO,OAAEC,GAAS,EAAK,QAAEC,GAAU,GAAU,CAAC,GAEnE,IAAKD,EAAQ,CACX,IACE,IAAIE,QAAkBC,WAAWC,YAC/BD,WAAWE,oBAETH,GACFC,WAAWG,WAEf,CAAE,MAAOC,GACPJ,WAAWK,OACb,CACAT,EAAQ,iBAAmBU,aAAaC,WAC1C,CAIA,OAHKT,GAAYH,EAAO,WACtBA,EAAO,SAAWa,OAAOC,cAEpBC,EAAAA,EAAAA,GAAM,CACXlB,SACAC,MACAC,OACAC,SACAC,WAEJ,EAEMe,EAA2B,CAC/BC,OAAQ,oBAGJC,EAAqB,IACtBF,EACH,eAAgB,oBAG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,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,GAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOM,QAAUJ,EAAQG,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue?abaa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue?5fff","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue?bac1","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue?83fa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?1715","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?cbd0","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?c587","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?5b0e"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n }\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // 'Ignore-Errors': '500',\n // })\n if (\n error.response.headers['ignore-errors'] &&\n error.response.headers['ignore-errors'].includes(\n error.response.status.toString()\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n }\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":_vm.width},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\"\\n mdi-download\\n \")])],1)]}}])},[_vm._v(\" \"),_c('span',[_vm._v(\" Download \")])])],1)],1),_vm._v(\" \"),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('span',{staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._v(_vm._s(_vm.text))])])]),_vm._v(\" \"),_c('v-card-actions',[_c('v-spacer'),_vm._v(\" \"),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SimpleTextDialog.vue?vue&type=template&id=4cd697cc\"\nimport script from \"./SimpleTextDialog.vue?vue&type=script&lang=js\"\nexport * from \"./SimpleTextDialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"multiple\":\"\",\"show-size\":\"\",\"accept\":\".gem,.gz,.zip,.whl\",\"label\":\"Click to select file(s) to add to COSMOS\"},model:{value:(_vm.files),callback:function ($$v) {_vm.files=$$v},expression:\"files\"}})],1)],1),_vm._v(\" \"),_c('v-row',{staticClass:\"px-2 pb-2\",attrs:{\"no-gutters\":\"\"}},[_c('v-spacer'),_vm._v(\" \"),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"packageUpload\",\"disabled\":_vm.files.length < 1,\"loading\":_vm.loadingPackage},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_vm._v(\" \"),_c('span',[_vm._v(\" Upload \")])],1)],1),_vm._v(\" \"),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_vm._v(\" \"),(Object.keys(_vm.processes).length > 0)?_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"processList\"}},_vm._l((_vm.processes),function(process){return _c('div',{key:process.name},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_c('span',{class:process.state.toLowerCase(),domProps:{\"textContent\":_vm._s(\n `Processing ${process.process_type}: ${process.detail} - ${process.state}`\n )}})]),_vm._v(\" \"),_c('v-list-item-subtitle',[_c('span',{domProps:{\"textContent\":_vm._s(' Updated At: ' + _vm.formatDate(process.updated_at))}})])],1),_vm._v(\" \"),(process.state !== 'Running')?_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showOutput(process)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-eye\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Show Output\")])])],1):_vm._e()],1),_vm._v(\" \"),_c('v-divider')],1)}),0):_vm._e(),_vm._v(\" \"),_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"packageList\"}},[_c('v-subheader',[_vm._v(\"Ruby Gems\")]),_vm._v(\" \"),_vm._l((_vm.gems),function(gem,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(gem))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deletePackage(gem)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Package\")])])],1)],1),_vm._v(\" \"),_c('v-divider')],1)}),_vm._v(\" \"),_c('v-subheader',[_vm._v(\"Python Packages\")]),_vm._v(\" \"),_vm._l((_vm.python),function(pkg,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(pkg))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deletePackage(pkg)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Package\")])])],1)],1),_vm._v(\" \"),_c('v-divider')],1)})],2),_vm._v(\" \"),_c('download-dialog',{model:{value:(_vm.showDownloadDialog),callback:function ($$v) {_vm.showDownloadDialog=$$v},expression:\"showDownloadDialog\"}}),_vm._v(\" \"),_c('simple-text-dialog',{attrs:{\"title\":\"Process Output\",\"text\":_vm.processOutput},model:{value:(_vm.showProcessOutput),callback:function ($$v) {_vm.showProcessOutput=$$v},expression:\"showProcessOutput\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',[_vm._v(\" Download Gems \")]),_vm._v(\" \"),_c('v-spacer')],1),_vm._v(\" \"),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{staticClass:\"my-2\"},[_vm._v(\" Select a download option \")]),_vm._v(\" \"),_c('v-row',[_c('v-col',[_c('div',{staticClass:\"px-2\"},[_c('v-btn',{attrs:{\"block\":\"\",\"data-test\":\"searchGithub\",\"color\":\"primary\",\"disabled\":_vm.disableSearch},on:{\"click\":_vm.searchGithub}},[_vm._v(\"\\n Github\\n \"),_c('v-icon',{attrs:{\"right\":\"\",\"dark\":\"\"}},[_vm._v(\" mdi-github \")])],1)],1)])],1),_vm._v(\" \"),_c('v-row',{staticClass:\"mt-5\"},[_vm._v(\" Community Gems \")]),_vm._v(\" \"),(_vm.listData.length < 1)?_c('div',{staticClass:\"mt-4\"},[_c('v-row',{staticClass:\"mx-2\"},[_c('span',[_vm._v(\" I’m sorry, Dave. No gems available.... \")])])],1):_c('div',{staticClass:\"mt-4\"},_vm._l((_vm.listData),function(data,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(data.name))])],1),_vm._v(\" \"),_c('v-list-item-icon',[(_vm.activeDownload)?_c('div',[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1):_c('div',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({attrs:{\"disabled\":_vm.activeDownload},on:{\"click\":function($event){return _vm.downloadGem(data)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-cloud-download\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Download Gem\")])])],1)])],1),_vm._v(\" \"),(index < _vm.listData.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DownloadDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DownloadDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DownloadDialog.vue?vue&type=template&id=5f1d58fe\"\nimport script from \"./DownloadDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DownloadDialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PackagesTab.vue?vue&type=template&id=cdac2342&scoped=true\"\nimport script from \"./PackagesTab.vue?vue&type=script&lang=js\"\nexport * from \"./PackagesTab.vue?vue&type=script&lang=js\"\nimport style0 from \"./PackagesTab.vue?vue&type=style&index=0&id=cdac2342&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"cdac2342\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.v-subheader[data-v-cdac2342]{font-size:1rem}.list[data-v-cdac2342]{background-color:var(--color-background-surface-default)!important}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=style&index=0&id=cdac2342&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"2b88e16a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","async","method","url","data","params","headers","noAuth","noScope","refreshed","OpenC3Auth","updateToken","defaultMinValidity","setTokens","error","login","localStorage","openc3Token","window","openc3Scope","axios","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","vueInstance","Vue","axiosInstance","create","baseURL","location","origin","timeout","interceptors","response","use","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","then","includes","toString","Promise","reject","body","statusText","config","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","width","model","value","show","callback","$$v","expression","_v","_s","staticClass","scopedSlots","_u","key","fn","on","_g","_b","download","staticStyle","text","$event","staticRenderFns","props","Boolean","String","computed","set","$emit","methods","blob","Blob","type","link","document","createElement","href","URL","createObjectURL","setAttribute","click","component","ref","files","length","loadingPackage","upload","proxy","alertType","showAlert","alert","Object","keys","processes","_l","process","name","state","toLowerCase","domProps","process_type","detail","formatDate","updated_at","showOutput","_e","gems","gem","index","deletePackage","python","pkg","showDownloadDialog","processOutput","showProcessOutput","disableSearch","searchGithub","listData","activeDownload","downloadGem","expanded","parseGithub","parseRuby","gemRegEx","tree","filter","f","exec","map","getResponse","setTimeout","remove","components","DownloadDialog","SimpleTextDialog","mounted","update","updateProcesses","output","Api","ruby","nanoSecs","format","toDate","parseInt","promises","file","formData","FormData","append","all","responses","catch","$dialog","confirm","okText","cancelText","dialog","___CSS_LOADER_EXPORT___","push","module","id","content","__esModule","default","locals","exports","add"],"sourceRoot":""}
|
1
|
+
{"version":3,"file":"js/797.js","mappings":"0KAwBA,MAAMA,EAAUC,eACdC,EACAC,GACA,KAAEC,EAAI,OAAEC,EAAS,CAAC,EAAC,QAAEC,EAAO,OAAEC,GAAS,EAAK,QAAEC,GAAU,GAAU,CAAC,GAEnE,IAAKD,EAAQ,CACX,IACE,IAAIE,QAAkBC,WAAWC,YAC/BD,WAAWE,oBAETH,GACFC,WAAWG,WAEf,CAAE,MAAOC,GACPJ,WAAWK,OACb,CACAT,EAAQ,iBAAmBU,aAAaC,WAC1C,CAIA,OAHKT,GAAYH,EAAO,WACtBA,EAAO,SAAWa,OAAOC,cAEpBC,EAAAA,EAAAA,GAAM,CACXlB,SACAC,MACAC,OACAC,SACAC,WAEJ,EAEMe,EAA2B,CAC/BC,OAAQ,oBAGJC,EAAqB,IACtBF,EACH,eAAgB,oBAGlB,GACEG,IAAK,SACHC,GACA,OAAEpB,EAAM,QAAEC,EAAUe,EAAwB,QAAEb,EAAO,OAAED,GAAW,CAAC,GAEnE,OAAOP,EAAQ,MAAOyB,EAAM,CAAEpB,SAAQC,UAASE,UAASD,UAC1D,EAEAmB,IAAK,SACHD,GACA,KAAErB,EAAI,OAAEC,EAAM,QAAEC,EAAUiB,EAAkB,QAAEf,EAAO,OAAED,GAAW,CAAC,GAEnE,OAAOP,EAAQ,MAAOyB,EAAM,CAAErB,OAAMC,SAAQC,UAASE,UAASD,UAChE,EAEAoB,KAAM,SACJF,GACA,KAAErB,EAAI,OAAEC,EAAM,QAAEC,EAAUiB,EAAkB,QAAEf,EAAO,OAAED,GAAW,CAAC,G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AA,wCACA,IAEA4C,QAAA8H,IAAAL,GACA7H,MAAAmI,IACA,KAAA7D,MAAA,YAAA6D,EAAAnE,iBACAmE,EAAAnE,OAAA,WAEA,KAAAI,UAAA,UACA,KAAAC,WAAA,EACA,KAAAJ,gBAAA,EACA,KAAAF,MAAA,GACA+C,YAAA,KACA,KAAAzC,WAAA,EACA,KAAAgD,iBAAA,GACA,KACA,KAAAD,QAAA,IAEAgB,OAAApK,IACA,KAAAiG,gBAAA,IAEA,EACAwB,cAAA,SAAAE,GACA,KAAA0C,QACAC,QAAA,oCAAA3C,IAAA,CACA4C,OAAA,SACAC,WAAA,WAEAxI,MAAA,SAAAyI,GACA,OAAAlB,EAAAA,EAAAzI,OAAA,wBAAA6G,IACA,IACA3F,MAAAR,IACA,KAAA8E,MAAA,mBAAAqB,IACA,KAAAvB,UAAA,UACA,KAAAC,WAAA,EACAyC,YAAA,KACA,KAAAzC,WAAA,IACA,KACA,KAAA+C,QAAA,GAEA,IIpQiU,I,YCQ7T,GAAY,OACd,EACArG,EACA2B,GACA,EACA,KACA,WACA,MAIF,QAAe,EAAiB,O,sGChB5BgG,EAA0B,IAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,0IAA2I,KAEpL,S,iBCJA,IAAIC,EAAU,EAAQ,MACnBA,EAAQC,aAAYD,EAAUA,EAAQE,SACnB,kBAAZF,IAAsBA,EAAU,CAAC,CAACF,EAAOC,GAAIC,EAAS,MAC7DA,EAAQG,SAAQL,EAAOM,QAAUJ,EAAQG,QAE5C,IAAIE,EAAM,UACGA,EAAI,WAAYL,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,G","sources":["webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/api.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/services/axios.js","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue?abaa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/components/SimpleTextDialog.vue?5fff","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue?bac1","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/DownloadDialog.vue?83fa","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?1715","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?cbd0","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?c587","webpack://@openc3/cosmos-tool-admin/../openc3-tool-common/src/tools/admin/tabs/PackagesTab.vue?5b0e"],"sourcesContent":["/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from './axios.js'\n\nconst request = async function (\n method,\n url,\n { data, params = {}, headers, noAuth = false, noScope = false } = {}\n) {\n if (!noAuth) {\n try {\n let refreshed = await OpenC3Auth.updateToken(\n OpenC3Auth.defaultMinValidity\n )\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n } catch (error) {\n OpenC3Auth.login()\n }\n headers['Authorization'] = localStorage.openc3Token\n }\n if (!noScope && !params['scope']) {\n params['scope'] = window.openc3Scope\n }\n return axios({\n method,\n url,\n data,\n params,\n headers,\n })\n}\n\nconst acceptOnlyDefaultHeaders = {\n Accept: 'application/json',\n}\n\nconst fullDefaultHeaders = {\n ...acceptOnlyDefaultHeaders,\n 'Content-Type': 'application/json',\n}\n\nexport default {\n get: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('get', path, { params, headers, noScope, noAuth })\n },\n\n put: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('put', path, { data, params, headers, noScope, noAuth })\n },\n\n post: function (\n path,\n { data, params, headers = fullDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('post', path, { data, params, headers, noScope, noAuth })\n },\n\n delete: function (\n path,\n { params, headers = acceptOnlyDefaultHeaders, noScope, noAuth } = {}\n ) {\n return request('delete', path, { params, headers, noScope, noAuth })\n },\n}\n","/*\n# Copyright 2022 Ball Aerospace & Technologies Corp.\n# All Rights Reserved.\n#\n# This program is free software; you can modify and/or redistribute it\n# under the terms of the GNU Affero General Public License\n# as published by the Free Software Foundation; version 3 with\n# attribution addendums as found in the LICENSE.txt\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU Affero General Public License for more details.\n\n# Modified by OpenC3, Inc.\n# All changes Copyright 2022, OpenC3, Inc.\n# All Rights Reserved\n#\n# This file may also be used under the terms of a commercial license\n# if purchased from OpenC3, Inc.\n*/\n\nimport axios from 'axios'\nimport Vue from 'vue'\n\nconst vueInstance = new Vue()\n\nconst axiosInstance = axios.create({\n baseURL: location.origin,\n timeout: 60000,\n params: {},\n})\n\naxiosInstance.interceptors.response.use(\n (response) => response,\n (error) => {\n if (error.response) {\n if (error.response.status === 401) {\n OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity, true).then(\n function (refreshed) {\n if (refreshed) {\n OpenC3Auth.setTokens()\n }\n },\n )\n }\n // Individual tools can set 'Ignore-Errors' to an error code\n // they potentially expect, e.g. '500', in which case we ignore it\n // For example in CommandSender.vue:\n // obs = this.api.cmd(targetName, commandName, paramList, {\n // headers: {\n // 'Ignore-Errors': '404',\n // },\n // })\n if (\n error.response.config.headers['Ignore-Errors'] &&\n error.response.config.headers['Ignore-Errors'].includes(\n error.response.status.toString(),\n )\n ) {\n return Promise.reject(error)\n }\n let body = `HTTP ${error.response.status} - `\n if (error.response?.statusText) {\n body += `${error.response.statusText} `\n }\n if (error.response?.config?.data) {\n body += `${error.response.config.data} `\n }\n if (error.response?.data?.message) {\n body += `${error.response.data.message}`\n } else if (error.response?.data?.exception) {\n body += `${error.response.data.exception}`\n } else if (error.response?.data?.error?.message) {\n if (error.response.data.error.class) {\n body += `${error.response.data.error.class} `\n }\n body += `${error.response.data.error.message}`\n } else {\n body += `${error.response?.data}`\n }\n if (vueInstance.$notify) {\n vueInstance.$notify.serious({\n title: 'Network error',\n body,\n })\n }\n throw error\n } else {\n throw error\n }\n },\n)\n\nexport default axiosInstance\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":_vm.width},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',[_vm._v(\" \"+_vm._s(_vm.title)+\" \")]),_vm._v(\" \"),_c('v-spacer'),_vm._v(\" \"),_c('div',{staticClass:\"mx-2\"},[_c('v-tooltip',{attrs:{\"top\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('div',_vm._g(_vm._b({},'div',attrs,false),on),[_c('v-icon',{attrs:{\"data-test\":\"downloadIcon\"},on:{\"click\":_vm.download}},[_vm._v(\"\\n mdi-download\\n \")])],1)]}}])},[_vm._v(\" \"),_c('span',[_vm._v(\" Download \")])])],1)],1),_vm._v(\" \"),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('span',{staticStyle:{\"white-space\":\"pre-wrap\"}},[_vm._v(_vm._s(_vm.text))])])]),_vm._v(\" \"),_c('v-card-actions',[_c('v-spacer'),_vm._v(\" \"),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\"},on:{\"click\":function($event){_vm.show = !_vm.show}}},[_vm._v(\" Ok \")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SimpleTextDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./SimpleTextDialog.vue?vue&type=template&id=4cd697cc\"\nimport script from \"./SimpleTextDialog.vue?vue&type=script&lang=js\"\nexport * from \"./SimpleTextDialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('v-row',{attrs:{\"no-gutters\":\"\"}},[_c('v-col',[_c('v-file-input',{ref:\"fileInput\",staticClass:\"mx-2\",attrs:{\"multiple\":\"\",\"show-size\":\"\",\"accept\":\".gem,.gz,.zip,.whl\",\"label\":\"Click to select file(s) to add to COSMOS\"},model:{value:(_vm.files),callback:function ($$v) {_vm.files=$$v},expression:\"files\"}})],1)],1),_vm._v(\" \"),_c('v-row',{staticClass:\"px-2 pb-2\",attrs:{\"no-gutters\":\"\"}},[_c('v-spacer'),_vm._v(\" \"),_c('v-btn',{staticClass:\"mx-2\",attrs:{\"color\":\"primary\",\"data-test\":\"packageUpload\",\"disabled\":_vm.files.length < 1,\"loading\":_vm.loadingPackage},on:{\"click\":function($event){return _vm.upload()}},scopedSlots:_vm._u([{key:\"loader\",fn:function(){return [_c('span',[_vm._v(\"Loading...\")])]},proxy:true}])},[_c('v-icon',{attrs:{\"left\":\"\",\"dark\":\"\"}},[_vm._v(\"mdi-cloud-upload\")]),_vm._v(\" \"),_c('span',[_vm._v(\" Upload \")])],1)],1),_vm._v(\" \"),_c('v-alert',{attrs:{\"dismissible\":\"\",\"transition\":\"scale-transition\",\"type\":_vm.alertType},model:{value:(_vm.showAlert),callback:function ($$v) {_vm.showAlert=$$v},expression:\"showAlert\"}},[_vm._v(_vm._s(_vm.alert))]),_vm._v(\" \"),(Object.keys(_vm.processes).length > 0)?_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"processList\"}},_vm._l((_vm.processes),function(process){return _c('div',{key:process.name},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_c('span',{class:process.state.toLowerCase(),domProps:{\"textContent\":_vm._s(\n `Processing ${process.process_type}: ${process.detail} - ${process.state}`\n )}})]),_vm._v(\" \"),_c('v-list-item-subtitle',[_c('span',{domProps:{\"textContent\":_vm._s(' Updated At: ' + _vm.formatDate(process.updated_at))}})])],1),_vm._v(\" \"),(process.state !== 'Running')?_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.showOutput(process)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-eye\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Show Output\")])])],1):_vm._e()],1),_vm._v(\" \"),_c('v-divider')],1)}),0):_vm._e(),_vm._v(\" \"),_c('v-list',{staticClass:\"list\",attrs:{\"data-test\":\"packageList\"}},[_c('v-subheader',[_vm._v(\"Ruby Gems\")]),_vm._v(\" \"),_vm._l((_vm.gems),function(gem,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(gem))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deletePackage(gem)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Package\")])])],1)],1),_vm._v(\" \"),_c('v-divider')],1)}),_vm._v(\" \"),_c('v-subheader',[_vm._v(\"Python Packages\")]),_vm._v(\" \"),_vm._l((_vm.python),function(pkg,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(pkg))])],1),_vm._v(\" \"),_c('v-list-item-icon',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({on:{\"click\":function($event){return _vm.deletePackage(pkg)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-delete\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Delete Package\")])])],1)],1),_vm._v(\" \"),_c('v-divider')],1)})],2),_vm._v(\" \"),_c('download-dialog',{model:{value:(_vm.showDownloadDialog),callback:function ($$v) {_vm.showDownloadDialog=$$v},expression:\"showDownloadDialog\"}}),_vm._v(\" \"),_c('simple-text-dialog',{attrs:{\"title\":\"Process Output\",\"text\":_vm.processOutput},model:{value:(_vm.showProcessOutput),callback:function ($$v) {_vm.showProcessOutput=$$v},expression:\"showProcessOutput\"}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('v-dialog',{attrs:{\"width\":\"600\"},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[_c('v-card',[_c('v-system-bar',[_c('v-spacer'),_vm._v(\" \"),_c('span',[_vm._v(\" Download Gems \")]),_vm._v(\" \"),_c('v-spacer')],1),_vm._v(\" \"),_c('v-card-text',[_c('div',{staticClass:\"pa-3\"},[_c('v-row',{staticClass:\"my-2\"},[_vm._v(\" Select a download option \")]),_vm._v(\" \"),_c('v-row',[_c('v-col',[_c('div',{staticClass:\"px-2\"},[_c('v-btn',{attrs:{\"block\":\"\",\"data-test\":\"searchGithub\",\"color\":\"primary\",\"disabled\":_vm.disableSearch},on:{\"click\":_vm.searchGithub}},[_vm._v(\"\\n Github\\n \"),_c('v-icon',{attrs:{\"right\":\"\",\"dark\":\"\"}},[_vm._v(\" mdi-github \")])],1)],1)])],1),_vm._v(\" \"),_c('v-row',{staticClass:\"mt-5\"},[_vm._v(\" Community Gems \")]),_vm._v(\" \"),(_vm.listData.length < 1)?_c('div',{staticClass:\"mt-4\"},[_c('v-row',{staticClass:\"mx-2\"},[_c('span',[_vm._v(\" I’m sorry, Dave. No gems available.... \")])])],1):_c('div',{staticClass:\"mt-4\"},_vm._l((_vm.listData),function(data,index){return _c('div',{key:index},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(data.name))])],1),_vm._v(\" \"),_c('v-list-item-icon',[(_vm.activeDownload)?_c('div',[_c('v-progress-circular',{attrs:{\"indeterminate\":\"\",\"color\":\"primary\"}})],1):_c('div',[_c('v-tooltip',{attrs:{\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function({ on, attrs }){return [_c('v-icon',_vm._g(_vm._b({attrs:{\"disabled\":_vm.activeDownload},on:{\"click\":function($event){return _vm.downloadGem(data)}}},'v-icon',attrs,false),on),[_vm._v(\"\\n mdi-cloud-download\\n \")])]}}],null,true)},[_vm._v(\" \"),_c('span',[_vm._v(\"Download Gem\")])])],1)])],1),_vm._v(\" \"),(index < _vm.listData.length - 1)?_c('v-divider',{key:index}):_vm._e()],1)}),0)],1)])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DownloadDialog.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DownloadDialog.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./DownloadDialog.vue?vue&type=template&id=5f1d58fe\"\nimport script from \"./DownloadDialog.vue?vue&type=script&lang=js\"\nexport * from \"./DownloadDialog.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./PackagesTab.vue?vue&type=template&id=cdac2342&scoped=true\"\nimport script from \"./PackagesTab.vue?vue&type=script&lang=js\"\nexport * from \"./PackagesTab.vue?vue&type=script&lang=js\"\nimport style0 from \"./PackagesTab.vue?vue&type=style&index=0&id=cdac2342&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"cdac2342\",\n null\n \n)\n\nexport default component.exports","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.v-subheader[data-v-cdac2342]{font-size:1rem}.list[data-v-cdac2342]{background-color:var(--color-background-surface-default)!important}`, \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!../../../../../../node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!../../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[3]!../../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PackagesTab.vue?vue&type=style&index=0&id=cdac2342&prod&scoped=true&lang=css\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"2b88e16a\", content, true, {\"sourceMap\":false,\"shadowMode\":false});"],"names":["request","async","method","url","data","params","headers","noAuth","noScope","refreshed","OpenC3Auth","updateToken","defaultMinValidity","setTokens","error","login","localStorage","openc3Token","window","openc3Scope","axios","acceptOnlyDefaultHeaders","Accept","fullDefaultHeaders","get","path","put","post","delete","vueInstance","Vue","axiosInstance","create","baseURL","location","origin","timeout","interceptors","response","use","_error$response","_error$response2","_error$response3","_error$response4","_error$response5","status","then","config","includes","toString","Promise","reject","body","statusText","message","exception","class","_error$response6","$notify","serious","title","render","_vm","this","_c","_self","attrs","width","model","value","show","callback","$$v","expression","_v","_s","staticClass","scopedSlots","_u","key","fn","on","_g","_b","download","staticStyle","text","$event","staticRenderFns","props","Boolean","String","computed","set","$emit","methods","blob","Blob","type","link","document","createElement","href","URL","createObjectURL","setAttribute","click","component","ref","files","length","loadingPackage","upload","proxy","alertType","showAlert","alert","Object","keys","processes","_l","process","name","state","toLowerCase","domProps","process_type","detail","formatDate","updated_at","showOutput","_e","gems","gem","index","deletePackage","python","pkg","showDownloadDialog","processOutput","showProcessOutput","disableSearch","searchGithub","listData","activeDownload","downloadGem","expanded","parseGithub","parseRuby","gemRegEx","tree","filter","f","exec","map","getResponse","setTimeout","remove","components","DownloadDialog","SimpleTextDialog","mounted","update","updateProcesses","output","Api","ruby","nanoSecs","format","toDate","parseInt","promises","file","formData","FormData","append","all","responses","catch","$dialog","confirm","okText","cancelText","dialog","___CSS_LOADER_EXPORT___","push","module","id","content","__esModule","default","locals","exports","add"],"sourceRoot":""}
|
data/tools/admin/js/829.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[829],{2065:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4317:(t,r,n)=>{var e,o,i,a=n(2065),u=n(9924),f=n(2150),c=n(688),s=n(5309),h=n(4678),y=n(1566),p=n(3397),v=n(2385),d=n(2470),g=n(9393),l=n(6148),w=n(7610),A=n(4584),b=n(2032),T=n(5736),x=n(7804),I=x.enforce,E=x.get,R=f.Int8Array,_=R&&R.prototype,m=f.Uint8ClampedArray,M=m&&m.prototype,U=R&&w(R),L=_&&w(_),B=Object.prototype,F=f.TypeError,O=b("toStringTag"),C=T("TYPED_ARRAY_TAG"),V="TypedArrayConstructor",N=a&&!!A&&"Opera"!==y(f.opera),W=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Y={BigInt64Array:8,BigUint64Array:8},S=function(t){if(!s(t))return!1;var r=y(t);return"DataView"===r||h(P,r)||h(Y,r)},D=function(t){var r=w(t);if(s(r)){var n=E(r);return n&&h(n,V)?n[V]:D(r)}},k=function(t){if(!s(t))return!1;var r=y(t);return h(P,r)||h(Y,r)},j=function(t){if(k(t))return t;throw new F("Target is not a typed array")},G=function(t){if(c(t)&&(!A||l(U,t)))return t;throw new F(p(t)+" is not a typed array constructor")},K=function(t,r,n,e){if(u){if(n)for(var o in P){var i=f[o];if(i&&h(i.prototype,t))try{delete i.prototype[t]}catch(a){try{i.prototype[t]=r}catch(c){}}}L[t]&&!n||d(L,t,n?r:N&&_[t]||r,e)}},q=function(t,r,n){var e,o;if(u){if(A){if(n)for(e in P)if(o=f[e],o&&h(o,t))try{delete o[t]}catch(i){}if(U[t]&&!n)return;try{return d(U,t,n?r:N&&U[t]||r)}catch(i){}}for(e in P)o=f[e],!o||o[t]&&!n||d(o,t,r)}};for(e in P)o=f[e],i=o&&o.prototype,i?I(i)[V]=o:N=!1;for(e in Y)o=f[e],i=o&&o.prototype,i&&(I(i)[V]=o);if((!N||!c(U)||U===Function.prototype)&&(U=function(){throw new F("Incorrect invocation")},N))for(e in P)f[e]&&A(f[e],U);if((!N||!L||L===B)&&(L=U.prototype,N))for(e in P)f[e]&&A(f[e].prototype,L);if(N&&w(M)!==L&&A(M,L),u&&!h(L,O))for(e in W=!0,g(L,O,{configurable:!0,get:function(){return s(this)?this[C]:void 0}}),P)f[e]&&v(f[e],C,e);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:W&&C,aTypedArray:j,aTypedArrayConstructor:G,exportTypedArrayMethod:K,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:D,isView:S,isTypedArray:k,TypedArray:U,TypedArrayPrototype:L}},7454:(t,r,n)=>{var e=n(2150),o=n(9668),i=n(9924),a=n(2065),u=n(453),f=n(2385),c=n(9393),s=n(9700),h=n(4694),y=n(9887),p=n(1680),v=n(7331),d=n(5992),g=n(52),l=n(9481),w=n(7610),A=n(4584),b=n(6217).f,T=n(8404),x=n(6403),I=n(7495),E=n(7804),R=u.PROPER,_=u.CONFIGURABLE,m="ArrayBuffer",M="DataView",U="prototype",L="Wrong length",B="Wrong index",F=E.getterFor(m),O=E.getterFor(M),C=E.set,V=e[m],N=V,W=N&&N[U],P=e[M],Y=P&&P[U],S=Object.prototype,D=e.Array,k=e.RangeError,j=o(T),G=o([].reverse),K=l.pack,q=l.unpack,z=function(t){return[255&t]},H=function(t){return[255&t,t>>8&255]},J=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Q=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},X=function(t){return K(g(t),23,4)},Z=function(t){return K(t,52,8)},$=function(t,r,n){c(t[U],r,{configurable:!0,get:function(){return n(this)[r]}})},tt=function(t,r,n,e){var o=O(t),i=d(n),a=!!e;if(i+r>o.byteLength)throw new k(B);var u=o.bytes,f=i+o.byteOffset,c=x(u,f,f+r);return a?c:G(c)},rt=function(t,r,n,e,o,i){var a=O(t),u=d(n),f=e(+o),c=!!i;if(u+r>a.byteLength)throw new k(B);for(var s=a.bytes,h=u+a.byteOffset,y=0;y<r;y++)s[h+y]=f[c?y:r-y-1]};if(a){var nt=R&&V.name!==m;if(h((function(){V(1)}))&&h((function(){new V(-1)}))&&!h((function(){return new V,new V(1.5),new V(NaN),1!==V.length||nt&&!_})))nt&&_&&f(V,"name",m);else{N=function(t){return y(this,W),new V(d(t))},N[U]=W;for(var et,ot=b(V),it=0;ot.length>it;)(et=ot[it++])in N||f(N,et,V[et]);W.constructor=N}A&&w(Y)!==S&&A(Y,S);var at=new P(new N(2)),ut=o(Y.setInt8);at.setInt8(0,2147483648),at.setInt8(1,2147483649),!at.getInt8(0)&&at.getInt8(1)||s(Y,{setInt8:function(t,r){ut(this,t,r<<24>>24)},setUint8:function(t,r){ut(this,t,r<<24>>24)}},{unsafe:!0})}else N=function(t){y(this,W);var r=d(t);C(this,{type:m,bytes:j(D(r),0),byteLength:r}),i||(this.byteLength=r,this.detached=!1)},W=N[U],P=function(t,r,n){y(this,Y),y(t,W);var e=F(t),o=e.byteLength,a=p(r);if(a<0||a>o)throw new k("Wrong offset");if(n=void 0===n?o-a:v(n),a+n>o)throw new k(L);C(this,{type:M,buffer:t,byteLength:n,byteOffset:a,bytes:e.bytes}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=a)},Y=P[U],i&&($(N,"byteLength",F),$(P,"buffer",O),$(P,"byteLength",O),$(P,"byteOffset",O)),s(Y,{getInt8:function(t){return tt(this,1,t)[0]<<24>>24},getUint8:function(t){return tt(this,1,t)[0]},getInt16:function(t){var r=tt(this,2,t,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=tt(this,2,t,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return Q(tt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return q(tt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return q(tt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,r){rt(this,1,t,z,r)},setUint8:function(t,r){rt(this,1,t,z,r)},setInt16:function(t,r){rt(this,2,t,H,r,arguments.length>2&&arguments[2])},setUint16:function(t,r){rt(this,2,t,H,r,arguments.length>2&&arguments[2])},setInt32:function(t,r){rt(this,4,t,J,r,arguments.length>2&&arguments[2])},setUint32:function(t,r){rt(this,4,t,J,r,arguments.length>2&&arguments[2])},setFloat32:function(t,r){rt(this,4,t,X,r,arguments.length>2&&arguments[2])},setFloat64:function(t,r){rt(this,8,t,Z,r,arguments.length>2&&arguments[2])}});I(N,m),I(P,M),t.exports={ArrayBuffer:N,DataView:P}},8404:(t,r,n)=>{var e=n(298),o=n(7352),i=n(8344);t.exports=function(t){var r=e(this),n=i(r),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),f=a>2?arguments[2]:void 0,c=void 0===f?n:o(f,n);while(c>u)r[u++]=t;return r}},7895:(t,r,n)=>{var e=n(8344);t.exports=function(t,r,n){var o=0,i=arguments.length>2?n:e(r),a=new t(i);while(i>o)a[o]=r[o++];return a}},563:(t,r,n)=>{var e=n(4162),o=n(4347),i=n(298),a=n(8344),u=function(t){var r=1===t;return function(n,u,f){var c,s,h=i(n),y=o(h),p=a(y),v=e(u,f);while(p-- >0)if(c=y[p],s=v(c,p,h),s)switch(t){case 0:return c;case 1:return p}return r?-1:void 0}};t.exports={findLast:u(0),findLastIndex:u(1)}},5909:(t,r,n)=>{var e=n(4162),o=n(9668),i=n(4347),a=n(298),u=n(8344),f=n(1699),c=o([].push),s=function(t){var r=1===t,n=2===t,o=3===t,s=4===t,h=6===t,y=7===t,p=5===t||h;return function(v,d,g,l){for(var w,A,b=a(v),T=i(b),x=u(T),I=e(d,g),E=0,R=l||f,_=r?R(v,x):n||y?R(v,0):void 0;x>E;E++)if((p||E in T)&&(w=T[E],A=I(w,E,b),t))if(r)_[E]=A;else if(A)switch(t){case 3:return!0;case 5:return w;case 6:return E;case 2:c(_,w)}else switch(t){case 4:return!1;case 7:c(_,w)}return h?-1:o||s?s:_}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},9120:(t,r,n)=>{var e=n(256),o=n(1414),i=n(5309),a=n(2032),u=a("species"),f=Array;t.exports=function(t){var r;return e(t)&&(r=t.constructor,o(r)&&(r===f||e(r.prototype))?r=void 0:i(r)&&(r=r[u],null===r&&(r=void 0))),void 0===r?f:r}},1699:(t,r,n)=>{var e=n(9120);t.exports=function(t,r){return new(e(t))(0===r?0:r)}},4501:(t,r,n)=>{var e=n(8344);t.exports=function(t,r){for(var n=e(t),o=new r(n),i=0;i<n;i++)o[i]=t[n-i-1];return o}},7117:(t,r,n)=>{var e=n(8344),o=n(1680),i=RangeError;t.exports=function(t,r,n,a){var u=e(t),f=o(n),c=f<0?u+f:f;if(c>=u||c<0)throw new i("Incorrect index");for(var s=new r(u),h=0;h<u;h++)s[h]=h===c?a:t[h];return s}},4418:(t,r,n)=>{var e=n(2032),o=e("iterator"),i=!1;try{var a=0,u={next:function(){return{done:!!a++}},return:function(){i=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(f){}t.exports=function(t,r){try{if(!r&&!i)return!1}catch(f){return!1}var n=!1;try{var e={};e[o]=function(){return{next:function(){return{done:n=!0}}}},t(e)}catch(f){}return n}},9016:(t,r,n)=>{var e=n(1370),o=e.match(/firefox\/(\d+)/i);t.exports=!!o&&+o[1]},821:(t,r,n)=>{var e=n(1370);t.exports=/MSIE|Trident/.test(e)},4389:(t,r,n)=>{var e=n(1370),o=e.match(/AppleWebKit\/(\d+)\./);t.exports=!!o&&+o[1]},9481:t=>{var r=Array,n=Math.abs,e=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2,u=function(t,u,f){var c,s,h,y=r(f),p=8*f-u-1,v=(1<<p)-1,d=v>>1,g=23===u?e(2,-24)-e(2,-77):0,l=t<0||0===t&&1/t<0?1:0,w=0;t=n(t),t!==t||t===1/0?(s=t!==t?1:0,c=v):(c=o(i(t)/a),h=e(2,-c),t*h<1&&(c--,h*=2),t+=c+d>=1?g/h:g*e(2,1-d),t*h>=2&&(c++,h/=2),c+d>=v?(s=0,c=v):c+d>=1?(s=(t*h-1)*e(2,u),c+=d):(s=t*e(2,d-1)*e(2,u),c=0));while(u>=8)y[w++]=255&s,s/=256,u-=8;c=c<<u|s,p+=u;while(p>0)y[w++]=255&c,c/=256,p-=8;return y[--w]|=128*l,y},f=function(t,r){var n,o=t.length,i=8*o-r-1,a=(1<<i)-1,u=a>>1,f=i-7,c=o-1,s=t[c--],h=127&s;s>>=7;while(f>0)h=256*h+t[c--],f-=8;n=h&(1<<-f)-1,h>>=-f,f+=r;while(f>0)n=256*n+t[c--],f-=8;if(0===h)h=1-u;else{if(h===a)return n?NaN:s?-1/0:1/0;n+=e(2,r),h-=u}return(s?-1:1)*n*e(2,h-r)};t.exports={pack:u,unpack:f}},9232:(t,r,n)=>{var e=n(1566);t.exports=function(t){var r=e(t);return"BigInt64Array"===r||"BigUint64Array"===r}},791:(t,r,n)=>{var e=n(5309),o=Math.floor;t.exports=Number.isInteger||function(t){return!e(t)&&isFinite(t)&&o(t)===t}},5584:(t,r,n)=>{var e=n(1162),o=Math.abs,i=2220446049250313e-31,a=1/i,u=function(t){return t+a-a};t.exports=function(t,r,n,a){var f=+t,c=o(f),s=e(f);if(c<a)return s*u(c/a/r)*a*r;var h=(1+r/i)*c,y=h-(h-c);return y>n||y!==y?s*(1/0):s*y}},52:(t,r,n)=>{var e=n(5584),o=1.1920928955078125e-7,i=34028234663852886e22,a=11754943508222875e-54;t.exports=Math.fround||function(t){return e(t,o,i,a)}},1162:t=>{t.exports=Math.sign||function(t){var r=+t;return 0===r||r!==r?r:r<0?-1:1}},7278:(t,r,n)=>{var e=n(2160),o=n(9393),i=n(2032),a=n(9924),u=i("species");t.exports=function(t){var r=e(t);a&&r&&!r[u]&&o(r,u,{configurable:!0,get:function(){return this}})}},6601:(t,r,n)=>{var e=n(1272),o=TypeError;t.exports=function(t){var r=e(t,"number");if("number"==typeof r)throw new o("Can't convert number to bigint");return BigInt(r)}},5992:(t,r,n)=>{var e=n(1680),o=n(7331),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var r=e(t),n=o(r);if(r!==n)throw new i("Wrong length or index");return n}},2066:(t,r,n)=>{var e=n(6949),o=RangeError;t.exports=function(t,r){var n=e(t);if(n%r)throw new o("Wrong offset");return n}},6949:(t,r,n)=>{var e=n(1680),o=RangeError;t.exports=function(t){var r=e(t);if(r<0)throw new o("The argument can't be less than 0");return r}},3164:t=>{var r=Math.round;t.exports=function(t){var n=r(t);return n<0?0:n>255?255:255&n}},9082:(t,r,n)=>{var e=n(5532),o=n(2150),i=n(8724),a=n(9924),u=n(8087),f=n(4317),c=n(7454),s=n(9887),h=n(7781),y=n(2385),p=n(791),v=n(7331),d=n(5992),g=n(2066),l=n(3164),w=n(2358),A=n(4678),b=n(1566),T=n(5309),x=n(7935),I=n(8536),E=n(6148),R=n(4584),_=n(6217).f,m=n(6897),M=n(5909).forEach,U=n(7278),L=n(9393),B=n(2131),F=n(7537),O=n(7804),C=n(5086),V=O.get,N=O.set,W=O.enforce,P=B.f,Y=F.f,S=o.RangeError,D=c.ArrayBuffer,k=D.prototype,j=c.DataView,G=f.NATIVE_ARRAY_BUFFER_VIEWS,K=f.TYPED_ARRAY_TAG,q=f.TypedArray,z=f.TypedArrayPrototype,H=f.aTypedArrayConstructor,J=f.isTypedArray,Q="BYTES_PER_ELEMENT",X="Wrong length",Z=function(t,r){H(t);var n=0,e=r.length,o=new t(e);while(e>n)o[n]=r[n++];return o},$=function(t,r){L(t,r,{configurable:!0,get:function(){return V(this)[r]}})},tt=function(t){var r;return E(k,t)||"ArrayBuffer"===(r=b(t))||"SharedArrayBuffer"===r},rt=function(t,r){return J(t)&&!x(r)&&r in t&&p(+r)&&r>=0},nt=function(t,r){return r=w(r),rt(t,r)?h(2,t[r]):Y(t,r)},et=function(t,r,n){return r=w(r),!(rt(t,r)&&T(n)&&A(n,"value"))||A(n,"get")||A(n,"set")||n.configurable||A(n,"writable")&&!n.writable||A(n,"enumerable")&&!n.enumerable?P(t,r,n):(t[r]=n.value,t)};a?(G||(F.f=nt,B.f=et,$(z,"buffer"),$(z,"byteOffset"),$(z,"byteLength"),$(z,"length")),e({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:nt,defineProperty:et}),t.exports=function(t,r,n){var a=t.match(/\d+/)[0]/8,f=t+(n?"Clamped":"")+"Array",c="get"+t,h="set"+t,p=o[f],w=p,A=w&&w.prototype,b={},x=function(t,r){var n=V(t);return n.view[c](r*a+n.byteOffset,!0)},E=function(t,r,e){var o=V(t);o.view[h](r*a+o.byteOffset,n?l(e):e,!0)},L=function(t,r){P(t,r,{get:function(){return x(this,r)},set:function(t){return E(this,r,t)},enumerable:!0})};G?u&&(w=r((function(t,r,n,e){return s(t,A),C(function(){return T(r)?tt(r)?void 0!==e?new p(r,g(n,a),e):void 0!==n?new p(r,g(n,a)):new p(r):J(r)?Z(w,r):i(m,w,r):new p(d(r))}(),t,w)})),R&&R(w,q),M(_(p),(function(t){t in w||y(w,t,p[t])})),w.prototype=A):(w=r((function(t,r,n,e){s(t,A);var o,u,f,c=0,h=0;if(T(r)){if(!tt(r))return J(r)?Z(w,r):i(m,w,r);o=r,h=g(n,a);var y=r.byteLength;if(void 0===e){if(y%a)throw new S(X);if(u=y-h,u<0)throw new S(X)}else if(u=v(e)*a,u+h>y)throw new S(X);f=u/a}else f=d(r),u=f*a,o=new D(u);N(t,{buffer:o,byteOffset:h,byteLength:u,length:f,view:new j(o)});while(c<f)L(t,c++)})),R&&R(w,q),A=w.prototype=I(z)),A.constructor!==w&&y(A,"constructor",w),W(A).TypedArrayConstructor=w,K&&y(A,K,f);var B=w!==p;b[f]=w,e({global:!0,constructor:!0,forced:B,sham:!G},b),Q in w||y(w,Q,a),Q in A||y(A,Q,a),U(f)}):t.exports=function(){}},8087:(t,r,n)=>{var e=n(2150),o=n(4694),i=n(4418),a=n(4317).NATIVE_ARRAY_BUFFER_VIEWS,u=e.ArrayBuffer,f=e.Int8Array;t.exports=!a||!o((function(){f(1)}))||!o((function(){new f(-1)}))||!i((function(t){new f,new f(null),new f(1.5),new f(t)}),!0)||o((function(){return 1!==new f(new u(2),1,void 0).length}))},6897:(t,r,n)=>{var e=n(4162),o=n(8724),i=n(3755),a=n(298),u=n(8344),f=n(4406),c=n(8674),s=n(2407),h=n(9232),y=n(4317).aTypedArrayConstructor,p=n(6601);t.exports=function(t){var r,n,v,d,g,l,w,A,b=i(this),T=a(t),x=arguments.length,I=x>1?arguments[1]:void 0,E=void 0!==I,R=c(T);if(R&&!s(R)){w=f(T,R),A=w.next,T=[];while(!(l=o(A,w)).done)T.push(l.value)}for(E&&x>2&&(I=e(I,arguments[2])),n=u(T),v=new(y(b))(n),d=h(v),r=0;n>r;r++)g=E?I(T[r],r):T[r],v[r]=d?p(g):+g;return v}},7380:(t,r,n)=>{var e=n(4317),o=n(8344),i=n(1680),a=e.aTypedArray,u=e.exportTypedArrayMethod;u("at",(function(t){var r=a(this),n=o(r),e=i(t),u=e>=0?e:n+e;return u<0||u>=n?void 0:r[u]}))},527:(t,r,n)=>{var e=n(4317),o=n(8404),i=n(6601),a=n(1566),u=n(8724),f=n(9668),c=n(4694),s=e.aTypedArray,h=e.exportTypedArrayMethod,y=f("".slice),p=c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var r=arguments.length;s(this);var n="Big"===y(a(this),0,3)?i(t):+t;return u(o,this,n,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)}),p)},9394:(t,r,n)=>{var e=n(4317),o=n(563).findLastIndex,i=e.aTypedArray,a=e.exportTypedArrayMethod;a("findLastIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},1697:(t,r,n)=>{var e=n(4317),o=n(563).findLast,i=e.aTypedArray,a=e.exportTypedArrayMethod;a("findLast",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},3438:(t,r,n)=>{var e=n(2150),o=n(8724),i=n(4317),a=n(8344),u=n(2066),f=n(298),c=n(4694),s=e.RangeError,h=e.Int8Array,y=h&&h.prototype,p=y&&y.set,v=i.aTypedArray,d=i.exportTypedArrayMethod,g=!c((function(){var t=new Uint8ClampedArray(2);return o(p,t,{length:1,0:3},1),3!==t[1]})),l=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));d("set",(function(t){v(this);var r=u(arguments.length>1?arguments[1]:void 0,1),n=f(t);if(g)return o(p,this,n,r);var e=this.length,i=a(n),c=0;if(i+r>e)throw new s("Wrong length");while(c<i)this[r+c]=n[c++]}),!g||l)},3616:(t,r,n)=>{var e=n(2150),o=n(5033),i=n(4694),a=n(1052),u=n(3097),f=n(4317),c=n(9016),s=n(821),h=n(7067),y=n(4389),p=f.aTypedArray,v=f.exportTypedArrayMethod,d=e.Uint16Array,g=d&&o(d.prototype.sort),l=!!g&&!(i((function(){g(new d(2),null)}))&&i((function(){g(new d(2),{})}))),w=!!g&&!i((function(){if(h)return h<74;if(c)return c<67;if(s)return!0;if(y)return y<602;var t,r,n=new d(516),e=Array(516);for(t=0;t<516;t++)r=t%4,n[t]=515-t,e[t]=t-2*r+3;for(g(n,(function(t,r){return(t/4|0)-(r/4|0)})),t=0;t<516;t++)if(n[t]!==e[t])return!0})),A=function(t){return function(r,n){return void 0!==t?+t(r,n)||0:n!==n?-1:r!==r?1:0===r&&0===n?1/r>0&&1/n<0?1:-1:r>n}};v("sort",(function(t){return void 0!==t&&a(t),w?g(this,t):u(p(this),A(t))}),!w||l)},5630:(t,r,n)=>{var e=n(4501),o=n(4317),i=o.aTypedArray,a=o.exportTypedArrayMethod,u=o.getTypedArrayConstructor;a("toReversed",(function(){return e(i(this),u(this))}))},896:(t,r,n)=>{var e=n(4317),o=n(9668),i=n(1052),a=n(7895),u=e.aTypedArray,f=e.getTypedArrayConstructor,c=e.exportTypedArrayMethod,s=o(e.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&i(t);var r=u(this),n=a(f(r),r);return s(n,t)}))},5984:(t,r,n)=>{var e=n(9082);e("Uint8",(function(t){return function(r,n,e){return t(this,r,n,e)}}))},4139:(t,r,n)=>{var e=n(7117),o=n(4317),i=n(9232),a=n(1680),u=n(6601),f=o.aTypedArray,c=o.getTypedArrayConstructor,s=o.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();s("with",{with:function(t,r){var n=f(this),o=a(t),s=i(n)?u(r):+r;return e(n,c(n),o,s)}}["with"],!h)}}]);
|
1
|
+
"use strict";(self["webpackChunk_openc3_cosmos_tool_admin"]=self["webpackChunk_openc3_cosmos_tool_admin"]||[]).push([[829],{2065:t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},4317:(t,r,n)=>{var e,o,i,a=n(2065),u=n(9924),f=n(2150),c=n(688),s=n(5309),h=n(4678),y=n(1566),p=n(3397),v=n(2385),d=n(2470),g=n(9393),w=n(6148),l=n(7610),A=n(4584),b=n(2032),T=n(5736),x=n(7804),I=x.enforce,E=x.get,R=f.Int8Array,_=R&&R.prototype,m=f.Uint8ClampedArray,M=m&&m.prototype,U=R&&l(R),L=_&&l(_),B=Object.prototype,F=f.TypeError,O=b("toStringTag"),C=T("TYPED_ARRAY_TAG"),V="TypedArrayConstructor",N=a&&!!A&&"Opera"!==y(f.opera),W=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Y={BigInt64Array:8,BigUint64Array:8},S=function(t){if(!s(t))return!1;var r=y(t);return"DataView"===r||h(P,r)||h(Y,r)},D=function(t){var r=l(t);if(s(r)){var n=E(r);return n&&h(n,V)?n[V]:D(r)}},k=function(t){if(!s(t))return!1;var r=y(t);return h(P,r)||h(Y,r)},j=function(t){if(k(t))return t;throw new F("Target is not a typed array")},G=function(t){if(c(t)&&(!A||w(U,t)))return t;throw new F(p(t)+" is not a typed array constructor")},K=function(t,r,n,e){if(u){if(n)for(var o in P){var i=f[o];if(i&&h(i.prototype,t))try{delete i.prototype[t]}catch(a){try{i.prototype[t]=r}catch(c){}}}L[t]&&!n||d(L,t,n?r:N&&_[t]||r,e)}},q=function(t,r,n){var e,o;if(u){if(A){if(n)for(e in P)if(o=f[e],o&&h(o,t))try{delete o[t]}catch(i){}if(U[t]&&!n)return;try{return d(U,t,n?r:N&&U[t]||r)}catch(i){}}for(e in P)o=f[e],!o||o[t]&&!n||d(o,t,r)}};for(e in P)o=f[e],i=o&&o.prototype,i?I(i)[V]=o:N=!1;for(e in Y)o=f[e],i=o&&o.prototype,i&&(I(i)[V]=o);if((!N||!c(U)||U===Function.prototype)&&(U=function(){throw new F("Incorrect invocation")},N))for(e in P)f[e]&&A(f[e],U);if((!N||!L||L===B)&&(L=U.prototype,N))for(e in P)f[e]&&A(f[e].prototype,L);if(N&&l(M)!==L&&A(M,L),u&&!h(L,O))for(e in W=!0,g(L,O,{configurable:!0,get:function(){return s(this)?this[C]:void 0}}),P)f[e]&&v(f[e],C,e);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:W&&C,aTypedArray:j,aTypedArrayConstructor:G,exportTypedArrayMethod:K,exportTypedArrayStaticMethod:q,getTypedArrayConstructor:D,isView:S,isTypedArray:k,TypedArray:U,TypedArrayPrototype:L}},7454:(t,r,n)=>{var e=n(2150),o=n(9668),i=n(9924),a=n(2065),u=n(453),f=n(2385),c=n(9393),s=n(9700),h=n(4694),y=n(9887),p=n(1680),v=n(7331),d=n(5992),g=n(52),w=n(9481),l=n(7610),A=n(4584),b=n(8404),T=n(7686),x=n(5086),I=n(3891),E=n(7495),R=n(7804),_=u.PROPER,m=u.CONFIGURABLE,M="ArrayBuffer",U="DataView",L="prototype",B="Wrong length",F="Wrong index",O=R.getterFor(M),C=R.getterFor(U),V=R.set,N=e[M],W=N,P=W&&W[L],Y=e[U],S=Y&&Y[L],D=Object.prototype,k=e.Array,j=e.RangeError,G=o(b),K=o([].reverse),q=w.pack,z=w.unpack,H=function(t){return[255&t]},J=function(t){return[255&t,t>>8&255]},Q=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},X=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Z=function(t){return q(g(t),23,4)},$=function(t){return q(t,52,8)},tt=function(t,r,n){c(t[L],r,{configurable:!0,get:function(){return n(this)[r]}})},rt=function(t,r,n,e){var o=C(t),i=d(n),a=!!e;if(i+r>o.byteLength)throw new j(F);var u=o.bytes,f=i+o.byteOffset,c=T(u,f,f+r);return a?c:K(c)},nt=function(t,r,n,e,o,i){var a=C(t),u=d(n),f=e(+o),c=!!i;if(u+r>a.byteLength)throw new j(F);for(var s=a.bytes,h=u+a.byteOffset,y=0;y<r;y++)s[h+y]=f[c?y:r-y-1]};if(a){var et=_&&N.name!==M;h((function(){N(1)}))&&h((function(){new N(-1)}))&&!h((function(){return new N,new N(1.5),new N(NaN),1!==N.length||et&&!m}))?et&&m&&f(N,"name",M):(W=function(t){return y(this,P),x(new N(d(t)),this,W)},W[L]=P,P.constructor=W,I(W,N)),A&&l(S)!==D&&A(S,D);var ot=new Y(new W(2)),it=o(S.setInt8);ot.setInt8(0,2147483648),ot.setInt8(1,2147483649),!ot.getInt8(0)&&ot.getInt8(1)||s(S,{setInt8:function(t,r){it(this,t,r<<24>>24)},setUint8:function(t,r){it(this,t,r<<24>>24)}},{unsafe:!0})}else W=function(t){y(this,P);var r=d(t);V(this,{type:M,bytes:G(k(r),0),byteLength:r}),i||(this.byteLength=r,this.detached=!1)},P=W[L],Y=function(t,r,n){y(this,S),y(t,P);var e=O(t),o=e.byteLength,a=p(r);if(a<0||a>o)throw new j("Wrong offset");if(n=void 0===n?o-a:v(n),a+n>o)throw new j(B);V(this,{type:U,buffer:t,byteLength:n,byteOffset:a,bytes:e.bytes}),i||(this.buffer=t,this.byteLength=n,this.byteOffset=a)},S=Y[L],i&&(tt(W,"byteLength",O),tt(Y,"buffer",C),tt(Y,"byteLength",C),tt(Y,"byteOffset",C)),s(S,{getInt8:function(t){return rt(this,1,t)[0]<<24>>24},getUint8:function(t){return rt(this,1,t)[0]},getInt16:function(t){var r=rt(this,2,t,arguments.length>1&&arguments[1]);return(r[1]<<8|r[0])<<16>>16},getUint16:function(t){var r=rt(this,2,t,arguments.length>1&&arguments[1]);return r[1]<<8|r[0]},getInt32:function(t){return X(rt(this,4,t,arguments.length>1&&arguments[1]))},getUint32:function(t){return X(rt(this,4,t,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(t){return z(rt(this,4,t,arguments.length>1&&arguments[1]),23)},getFloat64:function(t){return z(rt(this,8,t,arguments.length>1&&arguments[1]),52)},setInt8:function(t,r){nt(this,1,t,H,r)},setUint8:function(t,r){nt(this,1,t,H,r)},setInt16:function(t,r){nt(this,2,t,J,r,arguments.length>2&&arguments[2])},setUint16:function(t,r){nt(this,2,t,J,r,arguments.length>2&&arguments[2])},setInt32:function(t,r){nt(this,4,t,Q,r,arguments.length>2&&arguments[2])},setUint32:function(t,r){nt(this,4,t,Q,r,arguments.length>2&&arguments[2])},setFloat32:function(t,r){nt(this,4,t,Z,r,arguments.length>2&&arguments[2])},setFloat64:function(t,r){nt(this,8,t,$,r,arguments.length>2&&arguments[2])}});E(W,M),E(Y,U),t.exports={ArrayBuffer:W,DataView:Y}},8404:(t,r,n)=>{var e=n(298),o=n(7352),i=n(8344);t.exports=function(t){var r=e(this),n=i(r),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),f=a>2?arguments[2]:void 0,c=void 0===f?n:o(f,n);while(c>u)r[u++]=t;return r}},7895:(t,r,n)=>{var e=n(8344);t.exports=function(t,r,n){var o=0,i=arguments.length>2?n:e(r),a=new t(i);while(i>o)a[o]=r[o++];return a}},563:(t,r,n)=>{var e=n(4162),o=n(4347),i=n(298),a=n(8344),u=function(t){var r=1===t;return function(n,u,f){var c,s,h=i(n),y=o(h),p=a(y),v=e(u,f);while(p-- >0)if(c=y[p],s=v(c,p,h),s)switch(t){case 0:return c;case 1:return p}return r?-1:void 0}};t.exports={findLast:u(0),findLastIndex:u(1)}},5909:(t,r,n)=>{var e=n(4162),o=n(9668),i=n(4347),a=n(298),u=n(8344),f=n(1699),c=o([].push),s=function(t){var r=1===t,n=2===t,o=3===t,s=4===t,h=6===t,y=7===t,p=5===t||h;return function(v,d,g,w){for(var l,A,b=a(v),T=i(b),x=u(T),I=e(d,g),E=0,R=w||f,_=r?R(v,x):n||y?R(v,0):void 0;x>E;E++)if((p||E in T)&&(l=T[E],A=I(l,E,b),t))if(r)_[E]=A;else if(A)switch(t){case 3:return!0;case 5:return l;case 6:return E;case 2:c(_,l)}else switch(t){case 4:return!1;case 7:c(_,l)}return h?-1:o||s?s:_}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},9120:(t,r,n)=>{var e=n(256),o=n(1414),i=n(5309),a=n(2032),u=a("species"),f=Array;t.exports=function(t){var r;return e(t)&&(r=t.constructor,o(r)&&(r===f||e(r.prototype))?r=void 0:i(r)&&(r=r[u],null===r&&(r=void 0))),void 0===r?f:r}},1699:(t,r,n)=>{var e=n(9120);t.exports=function(t,r){return new(e(t))(0===r?0:r)}},4501:(t,r,n)=>{var e=n(8344);t.exports=function(t,r){for(var n=e(t),o=new r(n),i=0;i<n;i++)o[i]=t[n-i-1];return o}},7117:(t,r,n)=>{var e=n(8344),o=n(1680),i=RangeError;t.exports=function(t,r,n,a){var u=e(t),f=o(n),c=f<0?u+f:f;if(c>=u||c<0)throw new i("Incorrect index");for(var s=new r(u),h=0;h<u;h++)s[h]=h===c?a:t[h];return s}},4418:(t,r,n)=>{var e=n(2032),o=e("iterator"),i=!1;try{var a=0,u={next:function(){return{done:!!a++}},return:function(){i=!0}};u[o]=function(){return this},Array.from(u,(function(){throw 2}))}catch(f){}t.exports=function(t,r){try{if(!r&&!i)return!1}catch(f){return!1}var n=!1;try{var e={};e[o]=function(){return{next:function(){return{done:n=!0}}}},t(e)}catch(f){}return n}},9016:(t,r,n)=>{var e=n(1370),o=e.match(/firefox\/(\d+)/i);t.exports=!!o&&+o[1]},821:(t,r,n)=>{var e=n(1370);t.exports=/MSIE|Trident/.test(e)},4389:(t,r,n)=>{var e=n(1370),o=e.match(/AppleWebKit\/(\d+)\./);t.exports=!!o&&+o[1]},9481:t=>{var r=Array,n=Math.abs,e=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2,u=function(t,u,f){var c,s,h,y=r(f),p=8*f-u-1,v=(1<<p)-1,d=v>>1,g=23===u?e(2,-24)-e(2,-77):0,w=t<0||0===t&&1/t<0?1:0,l=0;t=n(t),t!==t||t===1/0?(s=t!==t?1:0,c=v):(c=o(i(t)/a),h=e(2,-c),t*h<1&&(c--,h*=2),t+=c+d>=1?g/h:g*e(2,1-d),t*h>=2&&(c++,h/=2),c+d>=v?(s=0,c=v):c+d>=1?(s=(t*h-1)*e(2,u),c+=d):(s=t*e(2,d-1)*e(2,u),c=0));while(u>=8)y[l++]=255&s,s/=256,u-=8;c=c<<u|s,p+=u;while(p>0)y[l++]=255&c,c/=256,p-=8;return y[--l]|=128*w,y},f=function(t,r){var n,o=t.length,i=8*o-r-1,a=(1<<i)-1,u=a>>1,f=i-7,c=o-1,s=t[c--],h=127&s;s>>=7;while(f>0)h=256*h+t[c--],f-=8;n=h&(1<<-f)-1,h>>=-f,f+=r;while(f>0)n=256*n+t[c--],f-=8;if(0===h)h=1-u;else{if(h===a)return n?NaN:s?-1/0:1/0;n+=e(2,r),h-=u}return(s?-1:1)*n*e(2,h-r)};t.exports={pack:u,unpack:f}},9232:(t,r,n)=>{var e=n(1566);t.exports=function(t){var r=e(t);return"BigInt64Array"===r||"BigUint64Array"===r}},791:(t,r,n)=>{var e=n(5309),o=Math.floor;t.exports=Number.isInteger||function(t){return!e(t)&&isFinite(t)&&o(t)===t}},5584:(t,r,n)=>{var e=n(1162),o=Math.abs,i=2220446049250313e-31,a=1/i,u=function(t){return t+a-a};t.exports=function(t,r,n,a){var f=+t,c=o(f),s=e(f);if(c<a)return s*u(c/a/r)*a*r;var h=(1+r/i)*c,y=h-(h-c);return y>n||y!==y?s*(1/0):s*y}},52:(t,r,n)=>{var e=n(5584),o=1.1920928955078125e-7,i=34028234663852886e22,a=11754943508222875e-54;t.exports=Math.fround||function(t){return e(t,o,i,a)}},1162:t=>{t.exports=Math.sign||function(t){var r=+t;return 0===r||r!==r?r:r<0?-1:1}},7278:(t,r,n)=>{var e=n(2160),o=n(9393),i=n(2032),a=n(9924),u=i("species");t.exports=function(t){var r=e(t);a&&r&&!r[u]&&o(r,u,{configurable:!0,get:function(){return this}})}},6601:(t,r,n)=>{var e=n(1272),o=TypeError;t.exports=function(t){var r=e(t,"number");if("number"==typeof r)throw new o("Can't convert number to bigint");return BigInt(r)}},5992:(t,r,n)=>{var e=n(1680),o=n(7331),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var r=e(t),n=o(r);if(r!==n)throw new i("Wrong length or index");return n}},2066:(t,r,n)=>{var e=n(6949),o=RangeError;t.exports=function(t,r){var n=e(t);if(n%r)throw new o("Wrong offset");return n}},6949:(t,r,n)=>{var e=n(1680),o=RangeError;t.exports=function(t){var r=e(t);if(r<0)throw new o("The argument can't be less than 0");return r}},3164:t=>{var r=Math.round;t.exports=function(t){var n=r(t);return n<0?0:n>255?255:255&n}},9082:(t,r,n)=>{var e=n(5532),o=n(2150),i=n(8724),a=n(9924),u=n(8087),f=n(4317),c=n(7454),s=n(9887),h=n(7781),y=n(2385),p=n(791),v=n(7331),d=n(5992),g=n(2066),w=n(3164),l=n(2358),A=n(4678),b=n(1566),T=n(5309),x=n(7935),I=n(8536),E=n(6148),R=n(4584),_=n(6217).f,m=n(6897),M=n(5909).forEach,U=n(7278),L=n(9393),B=n(2131),F=n(7537),O=n(7895),C=n(7804),V=n(5086),N=C.get,W=C.set,P=C.enforce,Y=B.f,S=F.f,D=o.RangeError,k=c.ArrayBuffer,j=k.prototype,G=c.DataView,K=f.NATIVE_ARRAY_BUFFER_VIEWS,q=f.TYPED_ARRAY_TAG,z=f.TypedArray,H=f.TypedArrayPrototype,J=f.isTypedArray,Q="BYTES_PER_ELEMENT",X="Wrong length",Z=function(t,r){L(t,r,{configurable:!0,get:function(){return N(this)[r]}})},$=function(t){var r;return E(j,t)||"ArrayBuffer"===(r=b(t))||"SharedArrayBuffer"===r},tt=function(t,r){return J(t)&&!x(r)&&r in t&&p(+r)&&r>=0},rt=function(t,r){return r=l(r),tt(t,r)?h(2,t[r]):S(t,r)},nt=function(t,r,n){return r=l(r),!(tt(t,r)&&T(n)&&A(n,"value"))||A(n,"get")||A(n,"set")||n.configurable||A(n,"writable")&&!n.writable||A(n,"enumerable")&&!n.enumerable?Y(t,r,n):(t[r]=n.value,t)};a?(K||(F.f=rt,B.f=nt,Z(H,"buffer"),Z(H,"byteOffset"),Z(H,"byteLength"),Z(H,"length")),e({target:"Object",stat:!0,forced:!K},{getOwnPropertyDescriptor:rt,defineProperty:nt}),t.exports=function(t,r,n){var a=t.match(/\d+/)[0]/8,f=t+(n?"Clamped":"")+"Array",c="get"+t,h="set"+t,p=o[f],l=p,A=l&&l.prototype,b={},x=function(t,r){var n=N(t);return n.view[c](r*a+n.byteOffset,!0)},E=function(t,r,e){var o=N(t);o.view[h](r*a+o.byteOffset,n?w(e):e,!0)},L=function(t,r){Y(t,r,{get:function(){return x(this,r)},set:function(t){return E(this,r,t)},enumerable:!0})};K?u&&(l=r((function(t,r,n,e){return s(t,A),V(function(){return T(r)?$(r)?void 0!==e?new p(r,g(n,a),e):void 0!==n?new p(r,g(n,a)):new p(r):J(r)?O(l,r):i(m,l,r):new p(d(r))}(),t,l)})),R&&R(l,z),M(_(p),(function(t){t in l||y(l,t,p[t])})),l.prototype=A):(l=r((function(t,r,n,e){s(t,A);var o,u,f,c=0,h=0;if(T(r)){if(!$(r))return J(r)?O(l,r):i(m,l,r);o=r,h=g(n,a);var y=r.byteLength;if(void 0===e){if(y%a)throw new D(X);if(u=y-h,u<0)throw new D(X)}else if(u=v(e)*a,u+h>y)throw new D(X);f=u/a}else f=d(r),u=f*a,o=new k(u);W(t,{buffer:o,byteOffset:h,byteLength:u,length:f,view:new G(o)});while(c<f)L(t,c++)})),R&&R(l,z),A=l.prototype=I(H)),A.constructor!==l&&y(A,"constructor",l),P(A).TypedArrayConstructor=l,q&&y(A,q,f);var B=l!==p;b[f]=l,e({global:!0,constructor:!0,forced:B,sham:!K},b),Q in l||y(l,Q,a),Q in A||y(A,Q,a),U(f)}):t.exports=function(){}},8087:(t,r,n)=>{var e=n(2150),o=n(4694),i=n(4418),a=n(4317).NATIVE_ARRAY_BUFFER_VIEWS,u=e.ArrayBuffer,f=e.Int8Array;t.exports=!a||!o((function(){f(1)}))||!o((function(){new f(-1)}))||!i((function(t){new f,new f(null),new f(1.5),new f(t)}),!0)||o((function(){return 1!==new f(new u(2),1,void 0).length}))},6897:(t,r,n)=>{var e=n(4162),o=n(8724),i=n(3755),a=n(298),u=n(8344),f=n(4406),c=n(8674),s=n(2407),h=n(9232),y=n(4317).aTypedArrayConstructor,p=n(6601);t.exports=function(t){var r,n,v,d,g,w,l,A,b=i(this),T=a(t),x=arguments.length,I=x>1?arguments[1]:void 0,E=void 0!==I,R=c(T);if(R&&!s(R)){l=f(T,R),A=l.next,T=[];while(!(w=o(A,l)).done)T.push(w.value)}for(E&&x>2&&(I=e(I,arguments[2])),n=u(T),v=new(y(b))(n),d=h(v),r=0;n>r;r++)g=E?I(T[r],r):T[r],v[r]=d?p(g):+g;return v}},7380:(t,r,n)=>{var e=n(4317),o=n(8344),i=n(1680),a=e.aTypedArray,u=e.exportTypedArrayMethod;u("at",(function(t){var r=a(this),n=o(r),e=i(t),u=e>=0?e:n+e;return u<0||u>=n?void 0:r[u]}))},527:(t,r,n)=>{var e=n(4317),o=n(8404),i=n(6601),a=n(1566),u=n(8724),f=n(9668),c=n(4694),s=e.aTypedArray,h=e.exportTypedArrayMethod,y=f("".slice),p=c((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t}));h("fill",(function(t){var r=arguments.length;s(this);var n="Big"===y(a(this),0,3)?i(t):+t;return u(o,this,n,r>1?arguments[1]:void 0,r>2?arguments[2]:void 0)}),p)},9394:(t,r,n)=>{var e=n(4317),o=n(563).findLastIndex,i=e.aTypedArray,a=e.exportTypedArrayMethod;a("findLastIndex",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},1697:(t,r,n)=>{var e=n(4317),o=n(563).findLast,i=e.aTypedArray,a=e.exportTypedArrayMethod;a("findLast",(function(t){return o(i(this),t,arguments.length>1?arguments[1]:void 0)}))},3438:(t,r,n)=>{var e=n(2150),o=n(8724),i=n(4317),a=n(8344),u=n(2066),f=n(298),c=n(4694),s=e.RangeError,h=e.Int8Array,y=h&&h.prototype,p=y&&y.set,v=i.aTypedArray,d=i.exportTypedArrayMethod,g=!c((function(){var t=new Uint8ClampedArray(2);return o(p,t,{length:1,0:3},1),3!==t[1]})),w=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var t=new h(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));d("set",(function(t){v(this);var r=u(arguments.length>1?arguments[1]:void 0,1),n=f(t);if(g)return o(p,this,n,r);var e=this.length,i=a(n),c=0;if(i+r>e)throw new s("Wrong length");while(c<i)this[r+c]=n[c++]}),!g||w)},3616:(t,r,n)=>{var e=n(2150),o=n(5033),i=n(4694),a=n(1052),u=n(3097),f=n(4317),c=n(9016),s=n(821),h=n(7067),y=n(4389),p=f.aTypedArray,v=f.exportTypedArrayMethod,d=e.Uint16Array,g=d&&o(d.prototype.sort),w=!!g&&!(i((function(){g(new d(2),null)}))&&i((function(){g(new d(2),{})}))),l=!!g&&!i((function(){if(h)return h<74;if(c)return c<67;if(s)return!0;if(y)return y<602;var t,r,n=new d(516),e=Array(516);for(t=0;t<516;t++)r=t%4,n[t]=515-t,e[t]=t-2*r+3;for(g(n,(function(t,r){return(t/4|0)-(r/4|0)})),t=0;t<516;t++)if(n[t]!==e[t])return!0})),A=function(t){return function(r,n){return void 0!==t?+t(r,n)||0:n!==n?-1:r!==r?1:0===r&&0===n?1/r>0&&1/n<0?1:-1:r>n}};v("sort",(function(t){return void 0!==t&&a(t),l?g(this,t):u(p(this),A(t))}),!l||w)},5630:(t,r,n)=>{var e=n(4501),o=n(4317),i=o.aTypedArray,a=o.exportTypedArrayMethod,u=o.getTypedArrayConstructor;a("toReversed",(function(){return e(i(this),u(this))}))},896:(t,r,n)=>{var e=n(4317),o=n(9668),i=n(1052),a=n(7895),u=e.aTypedArray,f=e.getTypedArrayConstructor,c=e.exportTypedArrayMethod,s=o(e.TypedArrayPrototype.sort);c("toSorted",(function(t){void 0!==t&&i(t);var r=u(this),n=a(f(r),r);return s(n,t)}))},5984:(t,r,n)=>{var e=n(9082);e("Uint8",(function(t){return function(r,n,e){return t(this,r,n,e)}}))},4139:(t,r,n)=>{var e=n(7117),o=n(4317),i=n(9232),a=n(1680),u=n(6601),f=o.aTypedArray,c=o.getTypedArrayConstructor,s=o.exportTypedArrayMethod,h=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();s("with",{with:function(t,r){var n=f(this),o=a(t),s=i(n)?u(r):+r;return e(n,c(n),o,s)}}["with"],!h)}}]);
|
2
2
|
//# sourceMappingURL=829.js.map
|