openc3-cosmos-tool-limitsmonitor 6.0.1 → 6.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/tools/limitsmonitor/ArrayWidget-DzHELdHv-f4de8ba71dea450713c4.js +2 -0
- data/tools/limitsmonitor/ArrayplotWidget-BDvziGSm-834bf1d47bc0e37c6739.js +1 -0
- data/tools/limitsmonitor/{BarColumn-Cdu3OoMa-f3e59682751452abe45e.js → BarColumn-CNhS2KKq-3dc808075c1ad070de8d.js} +1 -1
- data/tools/limitsmonitor/{BlockWidget-PmjzrkXF-74f288c0d604e52c6553.js → BlockWidget-D0On4x3d-fe36780077d2c221a6fe.js} +2 -2
- data/tools/limitsmonitor/{ButtonWidget-nwDlOBJT-e013309f09e21f889abb.js → ButtonWidget-BOYLHMt4-7a8a915485056215597b.js} +2 -2
- data/tools/limitsmonitor/{CanvasWidget-BL8930eT-b19d22b5d879eb1c88e6.js → CanvasWidget-CQIqiLEy-cc3fd1975422711f59b9.js} +1 -1
- data/tools/limitsmonitor/CanvasdotWidget-BVWutPMF-93e60b9a4efae5292b4d.js +1 -0
- data/tools/limitsmonitor/{CanvasimageWidget-BIw7Wbf2-47faa804e56abbb56cd2.js → CanvasimageWidget-ayu_ASKf-e992d034823782d4c3eb.js} +1 -1
- data/tools/limitsmonitor/CanvasimagevalueWidget-mv319g5T-ec322bcb202a56fdc335.js +1 -0
- data/tools/limitsmonitor/CanvaslabelWidget-BNjbXDb8-50b7f2235a3da85221c6.js +1 -0
- data/tools/limitsmonitor/{CanvaslabelvalueWidget-CI3yYwFs-ef79b31473cd36a5184d.js → CanvaslabelvalueWidget-CrhPwTSP-8c300fee8bf589186bd5.js} +1 -1
- data/tools/limitsmonitor/CanvaslineWidget--HdKH6oO-c34a96a86136c451b222.js +1 -0
- data/tools/limitsmonitor/{CanvaslinevalueWidget-CI-Bbzfi-1bc460c83a527949f43c.js → CanvaslinevalueWidget-CJsuF6RY-32a6c399a0dc7daf9cfb.js} +1 -1
- data/tools/limitsmonitor/CheckbuttonWidget-CQ2HlgIk-ae9a767ebc459b3c3830.js +1 -0
- data/tools/limitsmonitor/ComboboxWidget-BxILACwz-d79d9969981f2563d12a.js +1 -0
- data/tools/limitsmonitor/{DateWidget-B5R_9rA8-4dbc82988b60bc852e56.js → DateWidget-CIkO0xqH-715dfc17df22713799c8.js} +1 -1
- data/tools/limitsmonitor/{DetailsDialog-DLRMqetn-c1e88264145accbab84b.js → DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js} +1 -1
- data/tools/limitsmonitor/{DynamicWidget-m9EliUR2-fd2b4aed9ce4129cfda1.js → DynamicWidget-gFSYxzvT-6d0d24c2f1d46de8693a.js} +1 -1
- data/tools/limitsmonitor/{FormatvalueWidget-DZkRJce8-66d5ebdbb8fa9bfffd42.js → FormatvalueWidget-D8-EO_3E-cc2a47dec4477a964f73.js} +1 -1
- data/tools/limitsmonitor/Graph-EV7oK3qM-e8913b039617d63183dd.js +1 -0
- data/tools/limitsmonitor/GraphWidget-BTNYbd21-b283022420b6bbfd29e6.js +1 -0
- data/tools/limitsmonitor/{HorizontalWidget-CirtfuL8-76222a0598554913fb45.js → HorizontalWidget-Bp-qtqoh-e290b21cb0e16533c60f.js} +1 -1
- data/tools/limitsmonitor/{HorizontalboxWidget-CyTDt2nl-1d712f58bdd1eeef6341.js → HorizontalboxWidget-CrJuGY3s-c0746a4894c6ce683c02.js} +1 -1
- data/tools/limitsmonitor/HorizontallineWidget-CbxREBYI-2e026b70e31107522c25.js +1 -0
- data/tools/limitsmonitor/IframeWidget-DusiWNNj-5e3ce03bd0370e315124.js +1 -0
- data/tools/limitsmonitor/ImageLoader-BapCB-Li-b90aacb6c54c52e0d01e.js +1 -0
- data/tools/limitsmonitor/{ImageviewerWidget-DIkmb_C9-f8deed1e463e6234b3cc.js → ImageviewerWidget-c0gJ9VDC-20a7678fc4eb748d11d7.js} +1 -1
- data/tools/limitsmonitor/{LabelWidget-BDsypYho-7ecf5d7880379e8c7c90.js → LabelWidget-pPgc0ve3-da8a61e9db3edffc2c9e.js} +1 -1
- data/tools/limitsmonitor/LabelledWidget-CkNjby55-d7b81b6d2ebbd74dfa9d.js +1 -0
- data/tools/limitsmonitor/LabelprogressbarWidget-e2R2yQKw-a74b2caaf853cd118043.js +1 -0
- data/tools/limitsmonitor/LabelsparklineWidget-D7MQ_oNw-cd0cf472b03f0ead8521.js +1 -0
- data/tools/limitsmonitor/LabelvalueWidget-4DShBBvr-4ce431ec1912d541d2d0.js +1 -0
- data/tools/limitsmonitor/{LabelvaluedescWidget-CsUP7J4U-7fa85b703fbf191fcedb.js → LabelvaluedescWidget-Z1m8Bi6N-d0b22816bdb5058786eb.js} +1 -1
- data/tools/limitsmonitor/LabelvaluelimitsbarWidget-DVa-oYxU-80b3840da99584cb025b.js +1 -0
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-DduuX632-a7900ae74cd6009320d0.js +1 -0
- data/tools/limitsmonitor/{LabelvaluerangebarWidget-DpcXhlfF-110728320d02af581302.js → LabelvaluerangebarWidget-BR9vXOlt-6d0eb08558f38ec46a3b.js} +1 -1
- data/tools/limitsmonitor/{Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js → Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js} +1 -1
- data/tools/limitsmonitor/LedWidget-f7bf8ls_-d8fcfa37e55bff92f723.js +1 -0
- data/tools/limitsmonitor/LimitsMonitor-dc384f8aecee9f067991.js +7 -0
- data/tools/limitsmonitor/{LimitsbarWidget-DXbqsi4J-696a879f4a055ef98599.js → LimitsbarWidget-B7fHaDcJ-35e7d809a6b10c3d4cde.js} +1 -1
- data/tools/limitsmonitor/{LimitscolorWidget-Ckmuw0YX-bdec13a8d949afa47839.js → LimitscolorWidget-CpC4D_TC-ba8bfca0dc01416ef9d7.js} +1 -1
- data/tools/limitsmonitor/{LimitscolumnWidget-BfY4su5U-c8781d4bdbecf7fdd11f.js → LimitscolumnWidget-C9FbNC-U-f06c25388edfbca2fb96.js} +1 -1
- data/tools/limitsmonitor/LinegraphWidget-DkWDQ_3K-10e8bb018d7f336ed845.js +1 -0
- data/tools/limitsmonitor/MatrixbycolumnsWidget-CHJDyYa3-78a8bcf2285556d00244.js +1 -0
- data/tools/limitsmonitor/{ProgressbarWidget-DpA_-vy9-9c2139820ff60bec25ba.js → ProgressbarWidget-CRZDxClT-bf0e3805609604aa1ec1.js} +1 -1
- data/tools/limitsmonitor/RadiobuttonWidget-BW4yFweH-703675436d3916bcf1e2.js +1 -0
- data/tools/limitsmonitor/RadiogroupWidget-_0bVCHjr-d7c6f3d40eb7d39e94bf.js +1 -0
- data/tools/limitsmonitor/{RangebarWidget-DHS7S3vI-5d976a46f05c7e82dbf6.js → RangebarWidget-CEQFiG4l-9182f5decadf9fdc75b3.js} +1 -1
- data/tools/limitsmonitor/{RollupWidget-CTk9Kjwr-77a9d97d948244754e59.js → RollupWidget-579c7y0R-87d22f7345751f073431.js} +1 -1
- data/tools/limitsmonitor/{ScrollwindowWidget-DD0TOW6s-7f7bb8a17a58ebddc78a.js → ScrollwindowWidget-Kcre9gM3-a658e7766c0aaa7b4b9a.js} +1 -1
- data/tools/limitsmonitor/{SignalWidget-CC33KMTW-8fac7121eceff94ef2da.js → SignalWidget-D55Myd0q-7b081e83ca7ff57e9d2d.js} +1 -1
- data/tools/limitsmonitor/{SpacerWidget-BnJe_Hq6-8893dd34d7ecb5177949.js → SpacerWidget-DBDv_w_s-d3b1b17f4caa7727d192.js} +1 -1
- data/tools/limitsmonitor/SparklineWidget-DJvIL24z-9a963b24279949eaf8fe.js +1 -0
- data/tools/limitsmonitor/TabbookWidget-DH9DHnp1-985222ccfe92dd678d70.js +1 -0
- data/tools/limitsmonitor/TextboxWidget-DCjIEzJn-661f7e5f2c8afe95752c.js +1 -0
- data/tools/limitsmonitor/{TextfieldWidget-DXSdgqVP-76a3154f5d2f79a4de0e.js → TextfieldWidget-BRQ6oPzR-a987316940c9173463f8.js} +1 -1
- data/tools/limitsmonitor/{TimeWidget-DvrRaEMz-289d89642e8f6650dda5.js → TimeWidget-pXtrK5IC-a1ffa65d5d5d20f028de.js} +1 -1
- data/tools/limitsmonitor/{TitleWidget-DqViFQl--28c4c2a430b45c39d324.js → TitleWidget-CfAa2SyT-f3bf91c5b20ec34b6fc0.js} +1 -1
- data/tools/limitsmonitor/VWidget-CN_afCKJ-dede8aa776923bfd9948.js +1 -0
- data/tools/limitsmonitor/ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js +1 -0
- data/tools/limitsmonitor/ValuelimitsbarWidget-Cb7_SIUF-b87158875519aef9fe61.js +1 -0
- data/tools/limitsmonitor/ValuelimitscolumnWidget-D8bgZ7YP-f41f2f1421eb59f20802.js +1 -0
- data/tools/limitsmonitor/{ValuerangebarWidget-B6M02a9d-66ad8df1e4044153277c.js → ValuerangebarWidget-VKygtFwP-7e0050ccf284ae610ba2.js} +1 -1
- data/tools/limitsmonitor/VerticalWidget-BuvedA_b-b1ad75972605d6842285.js +1 -0
- data/tools/limitsmonitor/{VerticalboxWidget-3a9cVsW--66457f471e66437f47a2.js → VerticalboxWidget-D_LcL3GF-3c260388e16d3b7e0b03.js} +1 -1
- data/tools/limitsmonitor/{Widget-C4QVI4IH-5a97554019dbe2ca69fb.js → Widget-CERFa1CU-4266fcf1f630786fe6e5.js} +1 -1
- data/tools/limitsmonitor/main-8e72d39621128aae1028.js +1420 -0
- data/tools/limitsmonitor/main.js +1 -1
- metadata +69 -67
- data/tools/limitsmonitor/ArrayWidget-BTxChSds-65d00bda9994f3c7af53.js +0 -2
- data/tools/limitsmonitor/CanvasdotWidget-VCf1fL-G-c9907c8df5f84b6b0fbe.js +0 -1
- data/tools/limitsmonitor/CanvasimagevalueWidget-CE3Dj5bH-2b0426b6ee55fad5ec60.js +0 -1
- data/tools/limitsmonitor/CanvaslabelWidget-DWmb356h-89a1044980637ac7426a.js +0 -1
- data/tools/limitsmonitor/CanvaslineWidget-COeapH3P-a48defe04ae5bc502516.js +0 -1
- data/tools/limitsmonitor/CheckbuttonWidget-BQhggcZ2-c29cd378753ee61fdcfd.js +0 -1
- data/tools/limitsmonitor/ComboboxWidget-BzsbOv54-bb110f0faf59341868c3.js +0 -1
- data/tools/limitsmonitor/GraphWidget-amwxyH1r-4073e232ed355ac937c3.js +0 -1
- data/tools/limitsmonitor/HorizontallineWidget-BdlNB951-c740983cc62e6fb9d4f7.js +0 -1
- data/tools/limitsmonitor/IframeWidget-DnJmCrCA-e9b8bb8889de79053e02.js +0 -1
- data/tools/limitsmonitor/ImageLoader-CpcR6tPi-1fee4f3eeb0a6c520534.js +0 -1
- data/tools/limitsmonitor/LabelledWidget-DjturGl5-9818a24064f153599b46.js +0 -1
- data/tools/limitsmonitor/LabelprogressbarWidget-RADJGLj3-b609754f25d29041a064.js +0 -1
- data/tools/limitsmonitor/LabelsparklineWidget-BlJoICxu-febffeae5bb6e1740de5.js +0 -1
- data/tools/limitsmonitor/LabelvalueWidget-DVWJqnlY-a49572cfacf09e4a43a2.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitsbarWidget-Blj1QXV8-b1933e9a91f63814e2ed.js +0 -1
- data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-CvCo-uCe-e007e4876029e2e644a9.js +0 -1
- data/tools/limitsmonitor/LedWidget-B_K2e5tq-b44a870758414b940abc.js +0 -1
- data/tools/limitsmonitor/LimitsMonitor-b8df7d7c646a318a25c2.js +0 -7
- data/tools/limitsmonitor/LinegraphWidget-y-Qy9P0R-5f325ad442a6b47d5ea2.js +0 -1
- data/tools/limitsmonitor/MatrixbycolumnsWidget-BTBColrs-bbeaeda00156fd16d638.js +0 -1
- data/tools/limitsmonitor/RadiobuttonWidget-BO8zpgwW-e530c276d2eed96b427a.js +0 -1
- data/tools/limitsmonitor/RadiogroupWidget-Oy7V4S-V-b062d220324dcf01dc6d.js +0 -1
- data/tools/limitsmonitor/SparklineWidget-DMvMQCPm-9342560c9e564a75141e.js +0 -1
- data/tools/limitsmonitor/TabbookWidget-B3w0JtWe-1d3e4ec1c6d30252a7cd.js +0 -1
- data/tools/limitsmonitor/TextboxWidget-D2f0-eol-aead932f5c02ac95f128.js +0 -1
- data/tools/limitsmonitor/VWidget-02CG-3Av-d3c5e53d610f42607c18.js +0 -1
- data/tools/limitsmonitor/ValueWidget-KLYY8L8U-e4b9e6d7b4f7d73b123b.js +0 -1
- data/tools/limitsmonitor/ValuelimitsbarWidget-SR8XNZFB-bbed09d409c05b7c7578.js +0 -1
- data/tools/limitsmonitor/ValuelimitscolumnWidget-xYZSp6YZ-e3e034b12de43d3cf04a.js +0 -1
- data/tools/limitsmonitor/VerticalWidget-z6xUM-ql-a4f3f144ebc6cd085694.js +0 -1
- data/tools/limitsmonitor/main-327494fd5f18e09d7319.js +0 -1420
@@ -1,7 +0,0 @@
|
|
1
|
-
System.register(["./main-327494fd5f18e09d7319.js","vue","single-spa","./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","./LabelvalueWidget-DVWJqnlY-a49572cfacf09e4a43a2.js","./LabelvaluelimitsbarWidget-Blj1QXV8-b1933e9a91f63814e2ed.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","./LabelWidget-BDsypYho-7ecf5d7880379e8c7c90.js","./ValueWidget-KLYY8L8U-e4b9e6d7b4f7d73b123b.js","./DetailsDialog-DLRMqetn-c1e88264145accbab84b.js","./LimitsbarWidget-DXbqsi4J-696a879f4a055ef98599.js","./BarColumn-Cdu3OoMa-f3e59682751452abe45e.js"],function(Ut,Mi){"use strict";var Me,re,we,We,ze,qe,y,E,A,He,g,p,R,M,U,z,$,Y,B,oe,Se,q,Ee,$e,Je;return{setters:[x=>{Me=x.s,re=x._,we=x.P,We=x.X,ze=x.Y,qe=x.Z},x=>{y=x.resolveComponent,E=x.openBlock,A=x.createBlock,He=x.Teleport,g=x.createVNode,p=x.withCtx,R=x.createElementVNode,M=x.toDisplayString,U=x.createElementBlock,z=x.Fragment,$=x.renderList,Y=x.mergeProps,B=x.createTextVNode,oe=x.createSlots,Se=x.normalizeStyle,q=x.createCommentVNode,Ee=x.normalizeClass},null,null,x=>{$e=x.default},x=>{Je=x.default},null,null,null,null,null,null,null,null,null],execute:function(){var x=document.createElement("style");x.textContent=`.footer[data-v-dd6c39b3]{padding-top:5px}.v-input[data-v-dd6c39b3]{background-color:var(--color-background-base-default)}.textfield-green[data-v-dd6c39b3]{color:#00c800}.textfield-yellow[data-v-dd6c39b3]{color:#ffdc00}.textfield-red[data-v-dd6c39b3]{color:#ff2d2d}.card-height[data-v-210db24e]{height:calc(100vh - 150px)}
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(x);const Ft={props:{menus:{type:Array,default:function(){return[]}},title:{type:String,default:""}},methods:{formatDT:function(t){return t.replaceAll(" ","-").toLowerCase()},subMenuClick(t){t.command(t),this.$refs.topmenu[0].isActive=!1}},mounted(){document.title=this.title}},Bt={class:"app-title mr-2"};function Vt(t,e,n,i,s,r){const o=y("v-col"),l=y("v-row"),u=y("v-icon"),c=y("v-btn"),d=y("v-divider"),h=y("v-list-item-title"),v=y("v-list-item"),_=y("v-list"),m=y("v-menu"),f=y("v-radio"),k=y("v-list-item-action"),C=y("v-radio-group"),O=y("v-checkbox");return E(),A(He,{to:"#openc3-menu"},[g(l,{"no-gutters":""},{default:p(()=>[g(o,{"align-self":"end"},{default:p(()=>[R("span",Bt,M(n.title),1)]),_:1})]),_:1}),g(l,{dense:"",class:"flex-nowrap"},{default:p(()=>[(E(!0),U(z,null,$(n.menus,(S,I)=>(E(),A(m,{ref_for:!0,ref:"topmenu",key:I},{activator:p(({props:b})=>[g(c,Y({ref_for:!0},b,{variant:"outlined",class:"mx-1 menu-button",text:S.label,"data-test":r.formatDT(`${n.title} ${S.label}`)}),{append:p(()=>[g(u,{class:"menu-button-icon"},{default:p(()=>e[0]||(e[0]=[B(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:p(()=>[g(_,null,{default:p(()=>[(E(!0),U(z,null,$(S.items,(b,D)=>(E(),U(z,null,[b.divider?(E(),A(d,{key:D+"-divider"})):b.subMenu&&b.subMenu.length>0?(E(),U("div",{key:D+"-submenu"},[(E(),A(m,{"open-on-hover":"",location:"right",key:D},{activator:p(({props:j})=>[(E(),A(v,Y({ref_for:!0},j,{disabled:b.disabled,key:D}),oe({append:p(()=>[g(u,null,{default:p(()=>e[1]||(e[1]=[B(" mdi-chevron-right ")])),_:1})]),default:p(()=>[!b.radio&&!b.checkbox?(E(),A(h,{key:0,style:Se("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:p(()=>[B(M(b.label),1)]),_:2},1032,["style"])):q("",!0)]),_:2},[b.icon?{name:"prepend",fn:p(()=>[g(u,{disabled:b.disabled},{default:p(()=>[B(M(b.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:p(()=>[g(_,null,{default:p(()=>[(E(!0),U(z,null,$(b.subMenu,(j,H)=>(E(),A(v,{key:H,"prepend-icon":j.icon,onClick:Ve=>r.subMenuClick(j)},{default:p(()=>[g(h,null,{default:p(()=>[B(M(j.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):b.radioGroup?(E(),A(C,{"model-value":b.value,"onUpdate:modelValue":b.command,key:D+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:p(()=>[(E(!0),U(z,null,$(b.choices,(j,H)=>(E(),A(v,{key:H+"-choice"},{default:p(()=>[g(k,{class:"list-action"},{default:p(()=>[g(f,{color:"secondary",label:j.label,value:j.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(E(),A(v,{onClick:j=>b.command(b),disabled:b.disabled,"data-test":r.formatDT(`${n.title} ${S.label} ${b.label}`),key:D+"-list"},oe({default:p(()=>[b.checkbox?(E(),A(k,{key:0,class:"list-action"},{default:p(()=>[g(O,{modelValue:b.checked,"onUpdate:modelValue":j=>b.checked=j,label:b.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):q("",!0),!b.radio&&!b.checkbox?(E(),A(h,{key:1,style:Se("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:p(()=>[B(M(b.label),1)]),_:2},1032,["style"])):q("",!0)]),_:2},[b.icon?{name:"prepend",fn:p(()=>[g(u,{icon:b.icon,disabled:b.disabled},null,8,["icon","disabled"])]),key:"0"}:void 0]),1032,["onClick","disabled","data-test"]))],64))),256))]),_:2},1024)]),_:2},1024))),128))]),_:1})])}const Mt=Me(Ft,[["render",Vt],["__scopeId","data-v-4d454b93"]]);var Wt=Object.defineProperty,zt=(t,e,n)=>e in t?Wt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qt=(t,e,n)=>zt(t,e+"",n);function Ke(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ht}=Object.prototype,{getPrototypeOf:xe}=Object,ae=(t=>e=>{const n=Ht.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=t=>(t=t.toLowerCase(),e=>ae(e)===t),le=t=>e=>typeof e===t,{isArray:Z}=Array,Q=le("undefined");function $t(t){return t!==null&&!Q(t)&&t.constructor!==null&&!Q(t.constructor)&&F(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ge=V("ArrayBuffer");function Jt(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ge(t.buffer),e}const Kt=le("string"),F=le("function"),Ye=le("number"),ce=t=>t!==null&&typeof t=="object",Gt=t=>t===!0||t===!1,ue=t=>{if(ae(t)!=="object")return!1;const e=xe(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Yt=V("Date"),Zt=V("File"),Xt=V("Blob"),Qt=V("FileList"),en=t=>ce(t)&&F(t.pipe),tn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||F(t.append)&&((e=ae(t))==="formdata"||e==="object"&&F(t.toString)&&t.toString()==="[object FormData]"))},nn=V("URLSearchParams"),[sn,rn,on,an]=["ReadableStream","Request","Response","Headers"].map(V),ln=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ee(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),Z(t))for(i=0,s=t.length;i<s;i++)e.call(null,t[i],i,t);else{const r=n?Object.getOwnPropertyNames(t):Object.keys(t),o=r.length;let l;for(i=0;i<o;i++)l=r[i],e.call(null,t[l],l,t)}}function Ze(t,e){e=e.toLowerCase();const n=Object.keys(t);let i=n.length,s;for(;i-- >0;)if(s=n[i],e===s.toLowerCase())return s;return null}const J=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xe=t=>!Q(t)&&t!==J;function Oe(){const{caseless:t}=Xe(this)&&this||{},e={},n=(i,s)=>{const r=t&&Ze(e,s)||s;ue(e[r])&&ue(i)?e[r]=Oe(e[r],i):ue(i)?e[r]=Oe({},i):Z(i)?e[r]=i.slice():e[r]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&ee(arguments[i],n);return e}const cn=(t,e,n,{allOwnKeys:i}={})=>(ee(e,(s,r)=>{n&&F(s)?t[r]=Ke(s,n):t[r]=s},{allOwnKeys:i}),t),un=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),dn=(t,e,n,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},hn=(t,e,n,i)=>{let s,r,o;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)o=s[r],(!i||i(o,t,e))&&!l[o]&&(e[o]=t[o],l[o]=!0);t=n!==!1&&xe(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},fn=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const i=t.indexOf(e,n);return i!==-1&&i===n},mn=t=>{if(!t)return null;if(Z(t))return t;let e=t.length;if(!Ye(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},pn=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xe(Uint8Array)),gn=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=n.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},_n=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},bn=V("HTMLFormElement"),yn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),Qe=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),vn=V("RegExp"),et=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};ee(n,(s,r)=>{let o;(o=e(s,r,t))!==!1&&(i[r]=o||s)}),Object.defineProperties(t,i)},wn=t=>{et(t,(e,n)=>{if(F(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(F(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Sn=(t,e)=>{const n={},i=s=>{s.forEach(r=>{n[r]=!0})};return Z(t)?i(t):i(String(t).split(e)),n},En=()=>{},xn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Ce="abcdefghijklmnopqrstuvwxyz",tt="0123456789",nt={DIGIT:tt,ALPHA:Ce,ALPHA_DIGIT:Ce+Ce.toUpperCase()+tt},On=(t=16,e=nt.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Cn(t){return!!(t&&F(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Rn=t=>{const e=new Array(10),n=(i,s)=>{if(ce(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const r=Z(i)?[]:{};return ee(i,(o,l)=>{const u=n(o,s+1);!Q(u)&&(r[l]=u)}),e[s]=void 0,r}}return i};return n(t,0)},Tn=V("AsyncFunction"),kn=t=>t&&(ce(t)||F(t))&&F(t.then)&&F(t.catch),it=((t,e)=>t?setImmediate:e?((n,i)=>(J.addEventListener("message",({source:s,data:r})=>{s===J&&r===n&&i.length&&i.shift()()},!1),s=>{i.push(s),J.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",F(J.postMessage)),An=typeof queueMicrotask<"u"?queueMicrotask.bind(J):typeof process<"u"&&process.nextTick||it,a={isArray:Z,isArrayBuffer:Ge,isBuffer:$t,isFormData:tn,isArrayBufferView:Jt,isString:Kt,isNumber:Ye,isBoolean:Gt,isObject:ce,isPlainObject:ue,isReadableStream:sn,isRequest:rn,isResponse:on,isHeaders:an,isUndefined:Q,isDate:Yt,isFile:Zt,isBlob:Xt,isRegExp:vn,isFunction:F,isStream:en,isURLSearchParams:nn,isTypedArray:pn,isFileList:Qt,forEach:ee,merge:Oe,extend:cn,trim:ln,stripBOM:un,inherits:dn,toFlatObject:hn,kindOf:ae,kindOfTest:V,endsWith:fn,toArray:mn,forEachEntry:gn,matchAll:_n,isHTMLForm:bn,hasOwnProperty:Qe,hasOwnProp:Qe,reduceDescriptors:et,freezeMethods:wn,toObjectSet:Sn,toCamelCase:yn,noop:En,toFiniteNumber:xn,findKey:Ze,global:J,isContextDefined:Xe,ALPHABET:nt,generateString:On,isSpecCompliantForm:Cn,toJSONObject:Rn,isAsyncFn:Tn,isThenable:kn,setImmediate:it,asap:An};function w(t,e,n,i,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),i&&(this.request=i),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(w,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const st=w.prototype,rt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{rt[t]={value:t}}),Object.defineProperties(w,rt),Object.defineProperty(st,"isAxiosError",{value:!0}),w.from=(t,e,n,i,s,r)=>{const o=Object.create(st);return a.toFlatObject(t,o,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),w.call(o,t.message,e,n,i,s),o.cause=t,o.name=t.name,r&&Object.assign(o,r),o};const Ln=null;function Re(t){return a.isPlainObject(t)||a.isArray(t)}function ot(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function at(t,e,n){return t?t.concat(e).map(function(i,s){return i=ot(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function Nn(t){return a.isArray(t)&&!t.some(Re)}const In=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function de(t,e,n){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,m){return!a.isUndefined(m[_])});const i=n.metaTokens,s=n.visitor||c,r=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function u(_){if(_===null)return"";if(a.isDate(_))return _.toISOString();if(!l&&a.isBlob(_))throw new w("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(_)||a.isTypedArray(_)?l&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function c(_,m,f){let k=_;if(_&&!f&&typeof _=="object"){if(a.endsWith(m,"{}"))m=i?m:m.slice(0,-2),_=JSON.stringify(_);else if(a.isArray(_)&&Nn(_)||(a.isFileList(_)||a.endsWith(m,"[]"))&&(k=a.toArray(_)))return m=ot(m),k.forEach(function(C,O){!(a.isUndefined(C)||C===null)&&e.append(o===!0?at([m],O,r):o===null?m:m+"[]",u(C))}),!1}return Re(_)?!0:(e.append(at(f,m,r),u(_)),!1)}const d=[],h=Object.assign(In,{defaultVisitor:c,convertValue:u,isVisitable:Re});function v(_,m){if(!a.isUndefined(_)){if(d.indexOf(_)!==-1)throw Error("Circular reference detected in "+m.join("."));d.push(_),a.forEach(_,function(f,k){(!(a.isUndefined(f)||f===null)&&s.call(e,f,a.isString(k)?k.trim():k,m,h))===!0&&v(f,m?m.concat(k):[k])}),d.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return v(t),e}function lt(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Te(t,e){this._pairs=[],t&&de(t,this,e)}const ct=Te.prototype;ct.append=function(t,e){this._pairs.push([t,e])},ct.toString=function(t){const e=t?function(n){return t.call(this,n,lt)}:lt;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Dn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ut(t,e,n){if(!e)return t;const i=n&&n.encode||Dn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let r;if(s?r=s(e,n):r=a.isURLSearchParams(e)?e.toString():new Te(e,n).toString(i),r){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class dt{constructor(){this.handlers=[]}use(e,n,i){return this.handlers.push({fulfilled:e,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}}const ht={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jn=typeof URLSearchParams<"u"?URLSearchParams:Te,Pn=typeof FormData<"u"?FormData:null,Un=typeof Blob<"u"?Blob:null,Fn={isBrowser:!0,classes:{URLSearchParams:jn,FormData:Pn,Blob:Un},protocols:["http","https","file","blob","url","data"]},ke=typeof window<"u"&&typeof document<"u",Ae=typeof navigator=="object"&&navigator||void 0,Bn=ke&&(!Ae||["ReactNative","NativeScript","NS"].indexOf(Ae.product)<0),Vn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Mn=ke&&window.location.href||"http://localhost",Wn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ke,hasStandardBrowserEnv:Bn,hasStandardBrowserWebWorkerEnv:Vn,navigator:Ae,origin:Mn},Symbol.toStringTag,{value:"Module"})),N={...Wn,...Fn};function zn(t,e){return de(t,new N.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,r){return N.isNode&&a.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function qn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Hn(t){const e={},n=Object.keys(t);let i;const s=n.length;let r;for(i=0;i<s;i++)r=n[i],e[r]=t[r];return e}function ft(t){function e(n,i,s,r){let o=n[r++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),u=r>=n.length;return o=!o&&a.isArray(s)?s.length:o,u?(a.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!l):((!s[o]||!a.isObject(s[o]))&&(s[o]=[]),e(n,i,s[o],r)&&a.isArray(s[o])&&(s[o]=Hn(s[o])),!l)}if(a.isFormData(t)&&a.isFunction(t.entries)){const n={};return a.forEachEntry(t,(i,s)=>{e(qn(i),s,n,0)}),n}return null}function $n(t,e,n){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(0,JSON.stringify)(t)}const te={transitional:ht,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,s=a.isObject(t);if(s&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return i?JSON.stringify(ft(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return zn(t,this.formSerializer).toString();if((r=a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return de(r?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||i?(e.setContentType("application/json",!1),$n(t)):t}],transformResponse:[function(t){const e=this.transitional||te.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(n&&!this.responseType||i)){const s=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(r){if(s)throw r.name==="SyntaxError"?w.from(r,w.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{te.headers[t]={}});const Jn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kn=t=>{const e={};let n,i,s;return t&&t.split(`
|
3
|
-
`).forEach(function(r){s=r.indexOf(":"),n=r.substring(0,s).trim().toLowerCase(),i=r.substring(s+1).trim(),!(!n||e[n]&&Jn[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},mt=Symbol("internals");function ne(t){return t&&String(t).trim().toLowerCase()}function he(t){return t===!1||t==null?t:a.isArray(t)?t.map(he):String(t)}function Gn(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(t);)e[i[1]]=i[2];return e}const Yn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Le(t,e,n,i,s){if(a.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!a.isString(e)){if(a.isString(i))return e.indexOf(i)!==-1;if(a.isRegExp(i))return i.test(e)}}function Zn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function Xn(t,e){const n=a.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+n,{value:function(s,r,o){return this[i].call(this,e,s,r,o)},configurable:!0})})}class P{constructor(e){e&&this.set(e)}set(e,n,i){const s=this;function r(l,u,c){const d=ne(u);if(!d)throw new Error("header name must be a non-empty string");const h=a.findKey(s,d);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||u]=he(l))}const o=(l,u)=>a.forEach(l,(c,d)=>r(c,d,u));if(a.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(a.isString(e)&&(e=e.trim())&&!Yn(e))o(Kn(e),n);else if(a.isHeaders(e))for(const[l,u]of e.entries())r(u,l,i);else e!=null&&r(n,e,i);return this}get(e,n){if(e=ne(e),e){const i=a.findKey(this,e);if(i){const s=this[i];if(!n)return s;if(n===!0)return Gn(s);if(a.isFunction(n))return n.call(this,s,i);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=ne(e),e){const i=a.findKey(this,e);return!!(i&&this[i]!==void 0&&(!n||Le(this,this[i],i,n)))}return!1}delete(e,n){const i=this;let s=!1;function r(o){if(o=ne(o),o){const l=a.findKey(i,o);l&&(!n||Le(i,i[l],l,n))&&(delete i[l],s=!0)}}return a.isArray(e)?e.forEach(r):r(e),s}clear(e){const n=Object.keys(this);let i=n.length,s=!1;for(;i--;){const r=n[i];(!e||Le(this,this[r],r,e,!0))&&(delete this[r],s=!0)}return s}normalize(e){const n=this,i={};return a.forEach(this,(s,r)=>{const o=a.findKey(i,r);if(o){n[o]=he(s),delete n[r];return}const l=e?Zn(r):String(r).trim();l!==r&&delete n[r],n[l]=he(s),i[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return a.forEach(this,(i,s)=>{i!=null&&i!==!1&&(n[s]=e&&a.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
4
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const i=new this(e);return n.forEach(s=>i.set(s)),i}static accessor(e){const n=(this[mt]=this[mt]={accessors:{}}).accessors,i=this.prototype;function s(r){const o=ne(r);n[o]||(Xn(i,r),n[o]=!0)}return a.isArray(e)?e.forEach(s):s(e),this}}P.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),a.reduceDescriptors(P.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),a.freezeMethods(P);function Ne(t,e){const n=this||te,i=e||n,s=P.from(i.headers);let r=i.data;return a.forEach(t,function(o){r=o.call(n,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function pt(t){return!!(t&&t.__CANCEL__)}function X(t,e,n){w.call(this,t??"canceled",w.ERR_CANCELED,e,n),this.name="CanceledError"}a.inherits(X,w,{__CANCEL__:!0});function gt(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new w("Request failed with status code "+n.status,[w.ERR_BAD_REQUEST,w.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Qn(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function ei(t,e){t=t||10;const n=new Array(t),i=new Array(t);let s=0,r=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[r];o||(o=u),n[s]=l,i[s]=u;let d=r,h=0;for(;d!==s;)h+=n[d++],d=d%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),u-o<e)return;const v=c&&u-c;return v?Math.round(h*1e3/v):void 0}}function ti(t,e){let n=0,i=1e3/e,s,r;const o=(l,u=Date.now())=>{n=u,s=null,r&&(clearTimeout(r),r=null),t.apply(null,l)};return[(...l)=>{const u=Date.now(),c=u-n;c>=i?o(l,u):(s=l,r||(r=setTimeout(()=>{r=null,o(s)},i-c)))},()=>s&&o(s)]}const fe=(t,e,n=3)=>{let i=0;const s=ei(50,250);return ti(r=>{const o=r.loaded,l=r.lengthComputable?r.total:void 0,u=o-i,c=s(u),d=o<=l;i=o;const h={loaded:o,total:l,progress:l?o/l:void 0,bytes:u,rate:c||void 0,estimated:c&&l&&d?(l-o)/c:void 0,event:r,lengthComputable:l!=null,[e?"download":"upload"]:!0};t(h)},n)},_t=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},bt=t=>(...e)=>a.asap(()=>t(...e)),ni=N.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,N.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(N.origin),N.navigator&&/(msie|trident)/i.test(N.navigator.userAgent)):()=>!0,ii=N.hasStandardBrowserEnv?{write(t,e,n,i,s,r){const o=[t+"="+encodeURIComponent(e)];a.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),a.isString(i)&&o.push("path="+i),a.isString(s)&&o.push("domain="+s),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function si(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ri(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function yt(t,e){return t&&!si(e)?ri(t,e):e}const vt=t=>t instanceof P?{...t}:t;function K(t,e){e=e||{};const n={};function i(c,d,h,v){return a.isPlainObject(c)&&a.isPlainObject(d)?a.merge.call({caseless:v},c,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function s(c,d,h,v){if(a.isUndefined(d)){if(!a.isUndefined(c))return i(void 0,c,h,v)}else return i(c,d,h,v)}function r(c,d){if(!a.isUndefined(d))return i(void 0,d)}function o(c,d){if(a.isUndefined(d)){if(!a.isUndefined(c))return i(void 0,c)}else return i(void 0,d)}function l(c,d,h){if(h in e)return i(c,d);if(h in t)return i(void 0,c)}const u={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(c,d,h)=>s(vt(c),vt(d),h,!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(c){const d=u[c]||s,h=d(t[c],e[c],c);a.isUndefined(h)&&d!==l||(n[c]=h)}),n}const wt=t=>{const e=K({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:o,auth:l}=e;e.headers=o=P.from(o),e.url=ut(yt(e.baseURL,e.url),t.params,t.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(a.isFormData(n)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[c,...d]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(N.hasStandardBrowserEnv&&(i&&a.isFunction(i)&&(i=i(e)),i||i!==!1&&ni(e.url))){const c=s&&r&&ii.read(r);c&&o.set(s,c)}return e},oi=typeof XMLHttpRequest<"u",ai=oi&&function(t){return new Promise(function(e,n){const i=wt(t);let s=i.data;const r=P.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,c,d,h,v,_;function m(){v&&v(),_&&_(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function k(){if(!f)return;const O=P.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:O,config:t,request:f};gt(function(I){e(I),m()},function(I){n(I),m()},S),f=null}"onloadend"in f?f.onloadend=k:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(k)},f.onabort=function(){f&&(n(new w("Request aborted",w.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new w("Network Error",w.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let O=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||ht;i.timeoutErrorMessage&&(O=i.timeoutErrorMessage),n(new w(O,S.clarifyTimeoutError?w.ETIMEDOUT:w.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&a.forEach(r.toJSON(),function(O,S){f.setRequestHeader(S,O)}),a.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),o&&o!=="json"&&(f.responseType=i.responseType),u&&([h,_]=fe(u,!0),f.addEventListener("progress",h)),l&&f.upload&&([d,v]=fe(l),f.upload.addEventListener("progress",d),f.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(c=O=>{f&&(n(!O||O.type?new X(null,t,f):O),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const C=Qn(i.url);if(C&&N.protocols.indexOf(C)===-1){n(new w("Unsupported protocol "+C+":",w.ERR_BAD_REQUEST,t));return}f.send(s||null)})},li=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,s;const r=function(c){if(!s){s=!0,l();const d=c instanceof Error?c:this.reason;i.abort(d instanceof w?d:new X(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,r(new w(`timeout ${e} of ms exceeded`,w.ETIMEDOUT))},e);const l=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),t=null)};t.forEach(c=>c.addEventListener("abort",r));const{signal:u}=i;return u.unsubscribe=()=>a.asap(l),u}},ci=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let i=0,s;for(;i<n;)s=i+e,yield t.slice(i,s),i=s},ui=async function*(t,e){for await(const n of di(t))yield*ci(n,e)},di=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:i}=await e.read();if(n)break;yield i}}finally{await e.cancel()}},St=(t,e,n,i)=>{const s=ui(t,e);let r=0,o,l=u=>{o||(o=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await s.next();if(c){l(),u.close();return}let h=d.byteLength;if(n){let v=r+=h;n(v)}u.enqueue(new Uint8Array(d))}catch(c){throw l(c),c}},cancel(u){return l(u),s.return()}},{highWaterMark:2})},me=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Et=me&&typeof ReadableStream=="function",hi=me&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),xt=(t,...e)=>{try{return!!t(...e)}catch{return!1}},fi=Et&&xt(()=>{let t=!1;const e=new Request(N.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ot=64*1024,Ie=Et&&xt(()=>a.isReadableStream(new Response("").body)),pe={stream:Ie&&(t=>t.body)};me&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!pe[e]&&(pe[e]=a.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new w(`Response type '${e}' is not supported`,w.ERR_NOT_SUPPORT,i)})})})(new Response);const mi=async t=>{if(t==null)return 0;if(a.isBlob(t))return t.size;if(a.isSpecCompliantForm(t))return(await new Request(N.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(a.isArrayBufferView(t)||a.isArrayBuffer(t))return t.byteLength;if(a.isURLSearchParams(t)&&(t=t+""),a.isString(t))return(await hi(t)).byteLength},pi=async(t,e)=>a.toFiniteNumber(t.getContentLength())??mi(e),gi=me&&(async t=>{let{url:e,method:n,data:i,signal:s,cancelToken:r,timeout:o,onDownloadProgress:l,onUploadProgress:u,responseType:c,headers:d,withCredentials:h="same-origin",fetchOptions:v}=wt(t);c=c?(c+"").toLowerCase():"text";let _=li([s,r&&r.toAbortSignal()],o),m;const f=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let k;try{if(u&&fi&&n!=="get"&&n!=="head"&&(k=await pi(d,i))!==0){let b=new Request(e,{method:"POST",body:i,duplex:"half"}),D;if(a.isFormData(i)&&(D=b.headers.get("content-type"))&&d.setContentType(D),b.body){const[j,H]=_t(k,fe(bt(u)));i=St(b.body,Ot,j,H)}}a.isString(h)||(h=h?"include":"omit");const C="credentials"in Request.prototype;m=new Request(e,{...v,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:C?h:void 0});let O=await fetch(m);const S=Ie&&(c==="stream"||c==="response");if(Ie&&(l||S&&f)){const b={};["status","statusText","headers"].forEach(Ve=>{b[Ve]=O[Ve]});const D=a.toFiniteNumber(O.headers.get("content-length")),[j,H]=l&&_t(D,fe(bt(l),!0))||[];O=new Response(St(O.body,Ot,j,()=>{H&&H(),f&&f()}),b)}c=c||"text";let I=await pe[a.findKey(pe,c)||"text"](O,t);return!S&&f&&f(),await new Promise((b,D)=>{gt(b,D,{data:I,headers:P.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})})}catch(C){throw f&&f(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new w("Network Error",w.ERR_NETWORK,t,m),{cause:C.cause||C}):w.from(C,C&&C.code,t,m)}}),De={http:Ln,xhr:ai,fetch:gi};a.forEach(De,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Ct=t=>`- ${t}`,_i=t=>a.isFunction(t)||t===null||t===!1,Rt={getAdapter:t=>{t=a.isArray(t)?t:[t];const{length:e}=t;let n,i;const s={};for(let r=0;r<e;r++){n=t[r];let o;if(i=n,!_i(n)&&(i=De[(o=String(n)).toLowerCase()],i===void 0))throw new w(`Unknown adapter '${o}'`);if(i)break;s[o||"#"+r]=i}if(!i){const r=Object.entries(s).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=e?r.length>1?`since :
|
5
|
-
`+r.map(Ct).join(`
|
6
|
-
`):" "+Ct(r[0]):"as no adapter specified";throw new w("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:De};function je(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new X(null,t)}function Tt(t){return je(t),t.headers=P.from(t.headers),t.data=Ne.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Rt.getAdapter(t.adapter||te.adapter)(t).then(function(e){return je(t),e.data=Ne.call(t,t.transformResponse,e),e.headers=P.from(e.headers),e},function(e){return pt(e)||(je(t),e&&e.response&&(e.response.data=Ne.call(t,t.transformResponse,e.response),e.response.headers=P.from(e.response.headers))),Promise.reject(e)})}const kt="1.7.9",ge={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ge[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const At={};ge.transitional=function(t,e,n){function i(s,r){return"[Axios v"+kt+"] Transitional option '"+s+"'"+r+(n?". "+n:"")}return(s,r,o)=>{if(t===!1)throw new w(i(r," has been removed"+(e?" in "+e:"")),w.ERR_DEPRECATED);return e&&!At[r]&&(At[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,r,o):!0}},ge.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function bi(t,e,n){if(typeof t!="object")throw new w("options must be an object",w.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let s=i.length;for(;s-- >0;){const r=i[s],o=e[r];if(o){const l=t[r],u=l===void 0||o(l,r,t);if(u!==!0)throw new w("option "+r+" must be "+u,w.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new w("Unknown option "+r,w.ERR_BAD_OPTION)}}const _e={assertOptions:bi,validators:ge},W=_e.validators;class G{constructor(e){this.defaults=e,this.interceptors={request:new dt,response:new dt}}async request(e,n){try{return await this._request(e,n)}catch(i){if(i instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
7
|
-
`+r):i.stack=r}catch{}}throw i}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=K(this.defaults,n);const{transitional:i,paramsSerializer:s,headers:r}=n;i!==void 0&&_e.assertOptions(i,{silentJSONParsing:W.transitional(W.boolean),forcedJSONParsing:W.transitional(W.boolean),clarifyTimeoutError:W.transitional(W.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:_e.assertOptions(s,{encode:W.function,serialize:W.function},!0)),_e.assertOptions(n,{baseUrl:W.spelling("baseURL"),withXsrfToken:W.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=r&&a.merge(r.common,r[n.method]);r&&a.forEach(["delete","get","head","post","put","patch","common"],m=>{delete r[m]}),n.headers=P.concat(o,r);const l=[];let u=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(u=u&&m.synchronous,l.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let d,h=0,v;if(!u){const m=[Tt.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,c),v=m.length,d=Promise.resolve(n);h<v;)d=d.then(m[h++],m[h++]);return d}v=l.length;let _=n;for(h=0;h<v;){const m=l[h++],f=l[h++];try{_=m(_)}catch(k){f.call(this,k);break}}try{d=Tt.call(this,_)}catch(m){return Promise.reject(m)}for(h=0,v=c.length;h<v;)d=d.then(c[h++],c[h++]);return d}getUri(e){e=K(this.defaults,e);const n=yt(e.baseURL,e.url);return ut(n,e.params,e.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){G.prototype[t]=function(e,n){return this.request(K(n||{},{method:t,url:e,data:(n||{}).data}))}}),a.forEach(["post","put","patch"],function(t){function e(n){return function(i,s,r){return this.request(K(r||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}G.prototype[t]=e(),G.prototype[t+"Form"]=e(!0)});class Pe{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(s=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](s);i._listeners=null}),this.promise.then=s=>{let r;const o=new Promise(l=>{i.subscribe(l),r=l}).then(s);return o.cancel=function(){i.unsubscribe(r)},o},e(function(s,r,o){i.reason||(i.reason=new X(s,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=i=>{e.abort(i)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Pe(function(n){e=n}),cancel:e}}}function yi(t){return function(e){return t.apply(null,e)}}function vi(t){return a.isObject(t)&&t.isAxiosError===!0}const Ue={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Ue).forEach(([t,e])=>{Ue[e]=t});function Lt(t){const e=new G(t),n=Ke(G.prototype.request,e);return a.extend(n,G.prototype,e,{allOwnKeys:!0}),a.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Lt(K(t,i))},n}const L=Lt(te);L.Axios=G,L.CanceledError=X,L.CancelToken=Pe,L.isCancel=pt,L.VERSION=kt,L.toFormData=de,L.AxiosError=w,L.Cancel=L.CanceledError,L.all=function(t){return Promise.all(t)},L.spread=yi,L.isAxiosError=vi,L.mergeConfig=K,L.AxiosHeaders=P,L.formToJSON=t=>ft(a.isHTMLForm(t)?new FormData(t):t),L.getAdapter=Rt.getAdapter,L.HttpStatusCode=Ue,L.default=L;const Nt=L.create({baseURL:location.origin,timeout:6e4,params:{}});Nt.interceptors.response.use(t=>t,t=>{var e,n,i,s,r,o,l,u,c,d,h;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(m){m&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let v=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(v+=`${t.response.statusText} `),(i=(n=t.response)==null?void 0:n.config)!=null&&i.data&&(v+=`${t.response.config.data} `),(r=(s=t.response)==null?void 0:s.data)!=null&&r.message?v+=`${t.response.data.message}`:(l=(o=t.response)==null?void 0:o.data)!=null&&l.exception?v+=`${t.response.data.exception}`:(d=(c=(u=t.response)==null?void 0:u.data)==null?void 0:c.error)!=null&&d.message?(t.response.data.error.class&&(v+=`${t.response.data.error.class} `),v+=`${t.response.data.error.message}`):v+=`${(h=t.response)==null?void 0:h.data}`;const{$cosmosNotify:_}=window;throw _&&_.serious({title:"Network error",body:v}),t}else throw t});var be={logger:typeof console<"u"?console:void 0,WebSocket:typeof WebSocket<"u"?WebSocket:void 0},T={log(...t){this.enabled&&(t.push(Date.now()),be.logger.log("[ActionCable]",...t))}};const ie=()=>new Date().getTime(),ye=t=>(ie()-t)/1e3;class ve{constructor(e){this.visibilityDidChange=this.visibilityDidChange.bind(this),this.connection=e,this.reconnectAttempts=0}start(){this.isRunning()||(this.startedAt=ie(),delete this.stoppedAt,this.startPolling(),addEventListener("visibilitychange",this.visibilityDidChange),T.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`))}stop(){this.isRunning()&&(this.stoppedAt=ie(),this.stopPolling(),removeEventListener("visibilitychange",this.visibilityDidChange),T.log("ConnectionMonitor stopped"))}isRunning(){return this.startedAt&&!this.stoppedAt}recordPing(){this.pingedAt=ie()}recordConnect(){this.reconnectAttempts=0,this.recordPing(),delete this.disconnectedAt,T.log("ConnectionMonitor recorded connect")}recordDisconnect(){this.disconnectedAt=ie(),T.log("ConnectionMonitor recorded disconnect")}startPolling(){this.stopPolling(),this.poll()}stopPolling(){clearTimeout(this.pollTimeout)}poll(){this.pollTimeout=setTimeout(()=>{this.reconnectIfStale(),this.poll()},this.getPollInterval())}getPollInterval(){const{staleThreshold:e,reconnectionBackoffRate:n}=this.constructor,i=Math.pow(1+n,Math.min(this.reconnectAttempts,10)),s=(this.reconnectAttempts===0?1:n)*Math.random();return e*1e3*i*(1+s)}reconnectIfStale(){this.connectionIsStale()&&(T.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${ye(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`),this.reconnectAttempts++,this.disconnectedRecently()?T.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${ye(this.disconnectedAt)} s`):(T.log("ConnectionMonitor reopening"),this.connection.reopen()))}get refreshedAt(){return this.pingedAt?this.pingedAt:this.startedAt}connectionIsStale(){return ye(this.refreshedAt)>this.constructor.staleThreshold}disconnectedRecently(){return this.disconnectedAt&&ye(this.disconnectedAt)<this.constructor.staleThreshold}visibilityDidChange(){document.visibilityState==="visible"&&setTimeout(()=>{(this.connectionIsStale()||!this.connection.isOpen())&&(T.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`),this.connection.reopen())},200)}}ve.staleThreshold=6,ve.reconnectionBackoffRate=.15;var It={message_types:{welcome:"welcome",disconnect:"disconnect",ping:"ping",confirmation:"confirm_subscription",rejection:"reject_subscription"},disconnect_reasons:{unauthorized:"unauthorized",invalid_request:"invalid_request",server_restart:"server_restart",remote:"remote"},default_mount_path:"/cable",protocols:["actioncable-v1-json","actioncable-unsupported"]};const{message_types:se,protocols:Fe}=It,wi=Fe.slice(0,Fe.length-1),Dt=[].indexOf;class Be{constructor(e){this.open=this.open.bind(this),this.consumer=e,this.subscriptions=this.consumer.subscriptions,this.monitor=new ve(this),this.disconnected=!0}send(e){return this.isOpen()?(this.webSocket.send(JSON.stringify(e)),!0):!1}open(){if(this.isActive())return T.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`),!1;{const e=[...Fe,...this.consumer.subprotocols||[]];return T.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${e}`),this.webSocket&&this.uninstallEventHandlers(),this.webSocket=new be.WebSocket(this.consumer.url,e),this.installEventHandlers(),this.monitor.start(),!0}}close({allowReconnect:e}={allowReconnect:!0}){if(e||this.monitor.stop(),this.isOpen())return this.webSocket.close()}reopen(){if(T.log(`Reopening WebSocket, current state is ${this.getState()}`),this.isActive())try{return this.close()}catch(e){T.log("Failed to reopen WebSocket",e)}finally{T.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`),setTimeout(this.open,this.constructor.reopenDelay)}else return this.open()}getProtocol(){if(this.webSocket)return this.webSocket.protocol}isOpen(){return this.isState("open")}isActive(){return this.isState("open","connecting")}triedToReconnect(){return this.monitor.reconnectAttempts>0}isProtocolSupported(){return Dt.call(wi,this.getProtocol())>=0}isState(...e){return Dt.call(e,this.getState())>=0}getState(){if(this.webSocket){for(let e in be.WebSocket)if(be.WebSocket[e]===this.webSocket.readyState)return e.toLowerCase()}return null}installEventHandlers(){for(let e in this.events){const n=this.events[e].bind(this);this.webSocket[`on${e}`]=n}}uninstallEventHandlers(){for(let e in this.events)this.webSocket[`on${e}`]=function(){}}}Be.reopenDelay=500,Be.prototype.events={message(t){if(!this.isProtocolSupported())return;const{identifier:e,message:n,reason:i,reconnect:s,type:r}=JSON.parse(t.data);switch(r){case se.welcome:return this.triedToReconnect()&&(this.reconnectAttempted=!0),this.monitor.recordConnect(),this.subscriptions.reload();case se.disconnect:return T.log(`Disconnecting. Reason: ${i}`),this.close({allowReconnect:s});case se.ping:return this.monitor.recordPing();case se.confirmation:return this.subscriptions.confirmSubscription(e),this.reconnectAttempted?(this.reconnectAttempted=!1,this.subscriptions.notify(e,"connected",{reconnected:!0})):this.subscriptions.notify(e,"connected",{reconnected:!1});case se.rejection:return this.subscriptions.reject(e);default:return this.subscriptions.notify(e,"received",n)}},open(){if(T.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`),this.disconnected=!1,!this.isProtocolSupported())return T.log("Protocol is unsupported. Stopping monitor and disconnecting."),this.close({allowReconnect:!1})},close(t){if(T.log("WebSocket onclose event"),!this.disconnected)return this.disconnected=!0,this.monitor.recordDisconnect(),this.subscriptions.notifyAll("disconnected",{willAttemptReconnect:this.monitor.isRunning()})},error(){T.log("WebSocket onerror event")}};const Si=function(t,e){if(e!=null)for(let n in e){const i=e[n];t[n]=i}return t};class Ei{constructor(e,n={},i){this.consumer=e,this.identifier=JSON.stringify(n),Si(this,i)}perform(e,n={}){return n.action=e,this.send(n)}send(e){return this.consumer.send({command:"message",identifier:this.identifier,data:JSON.stringify(e)})}unsubscribe(){return this.consumer.subscriptions.remove(this)}}class xi{constructor(e){this.subscriptions=e,this.pendingSubscriptions=[]}guarantee(e){this.pendingSubscriptions.indexOf(e)==-1?(T.log(`SubscriptionGuarantor guaranteeing ${e.identifier}`),this.pendingSubscriptions.push(e)):T.log(`SubscriptionGuarantor already guaranteeing ${e.identifier}`),this.startGuaranteeing()}forget(e){T.log(`SubscriptionGuarantor forgetting ${e.identifier}`),this.pendingSubscriptions=this.pendingSubscriptions.filter(n=>n!==e)}startGuaranteeing(){this.stopGuaranteeing(),this.retrySubscribing()}stopGuaranteeing(){clearTimeout(this.retryTimeout)}retrySubscribing(){this.retryTimeout=setTimeout(()=>{this.subscriptions&&typeof this.subscriptions.subscribe=="function"&&this.pendingSubscriptions.map(e=>{T.log(`SubscriptionGuarantor resubscribing ${e.identifier}`),this.subscriptions.subscribe(e)})},500)}}class Oi{constructor(e){this.consumer=e,this.guarantor=new xi(this),this.subscriptions=[]}create(e,n){const i=e,s=typeof i=="object"?i:{channel:i},r=new Ei(this.consumer,s,n);return this.add(r)}add(e){return this.subscriptions.push(e),this.consumer.ensureActiveConnection(),this.notify(e,"initialized"),this.subscribe(e),e}remove(e){return this.forget(e),this.findAll(e.identifier).length||this.sendCommand(e,"unsubscribe"),e}reject(e){return this.findAll(e).map(n=>(this.forget(n),this.notify(n,"rejected"),n))}forget(e){return this.guarantor.forget(e),this.subscriptions=this.subscriptions.filter(n=>n!==e),e}findAll(e){return this.subscriptions.filter(n=>n.identifier===e)}reload(){return this.subscriptions.map(e=>this.subscribe(e))}notifyAll(e,...n){return this.subscriptions.map(i=>this.notify(i,e,...n))}notify(e,n,...i){let s;return typeof e=="string"?s=this.findAll(e):s=[e],s.map(r=>typeof r[n]=="function"?r[n](...i):void 0)}subscribe(e){this.sendCommand(e,"subscribe")&&this.guarantor.guarantee(e)}confirmSubscription(e){T.log(`Subscription confirmed ${e}`),this.findAll(e).map(n=>this.guarantor.forget(n))}sendCommand(e,n){const{identifier:i}=e;return this.consumer.send({command:n,identifier:i})}}class Ci{constructor(e){this._url=e,this.subscriptions=new Oi(this),this.connection=new Be(this),this.subprotocols=[]}get url(){return Ri(this._url)}send(e){return this.connection.send(e)}connect(){return this.connection.open()}disconnect(){return this.connection.close({allowReconnect:!1})}ensureActiveConnection(){if(!this.connection.isActive())return this.connection.open()}addSubProtocol(e){this.subprotocols=[...this.subprotocols,e]}}function Ri(t){if(typeof t=="function"&&(t=t()),t&&!/^wss?:/i.test(t)){const e=document.createElement("a");return e.href=t,e.href=e.href,e.protocol=e.protocol.replace("http","ws"),e.href}else return t}function Ti(t=ki("url")||It.default_mount_path){return new Ci(t)}function ki(t){const e=document.head.querySelector(`meta[name='action-cable-${t}']`);if(e)return e.getAttribute("content")}ve.staleThreshold=10;class jt{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&this._cable.disconnect()}createSubscription(e,n,i={},s={}){return OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity).then(r=>{if(r&&OpenC3Auth.setTokens(),this._cable==null){let o=this._url+"?scope="+encodeURIComponent(window.openc3Scope)+"&authorization="+encodeURIComponent(localStorage.openc3Token);this._cable=Ti(o)}return this._cable.subscriptions.create({channel:e,...s},i)})}recordPing(){this._cable.connection.monitor.recordPing()}}class Pt{constructor(){qt(this,"id",1)}async exec(e,n,i={},s={},r=6e4){try{await OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity)&&OpenC3Auth.setTokens()}catch{OpenC3Auth.login()}this.id=this.id+1;try{return i.scope=window.openc3Scope,s.manual=!0,(await Nt.post("/openc3-api/api",{jsonrpc:"2.0",method:e,params:n,id:this.id,keyword_params:i},{headers:{Authorization:localStorage.openc3Token,"Content-Type":"application/json-rpc",...s},timeout:r})).data.result}catch(o){let l=new Error;throw o.response?(l.name=o.response.data.error.data.class,l.message=o.response.data.error.data.message,l.object=o.response.data.error):o.request?(l.name="Request error",l.message="Request error, no response received"):l.name="Unknown error",l}}decode_openc3_type(e){if(e!==null&&typeof e=="object"&&e.json_class=="Float"&&e.raw){if(e.raw=="NaN")return NaN;if(e.raw=="Infinity")return 1/0;if(e.raw=="-Infinity")return-1/0}return null}encode_openc3_type(e){return Number.isNaN(e)?{json_class:"Float",raw:"NaN"}:e==Number.POSITIVE_INFINITY?{json_class:"Float",raw:"Infinity"}:e==Number.NEGATIVE_INFINITY?{json_class:"Float",raw:"-Infinity"}:null}ensure_offline_access(){this.offline_access_needed().then(e=>{e&&(localStorage.openc3OfflineToken?this.set_offline_access(localStorage.openc3OfflineToken).then(()=>{delete localStorage.openc3OfflineToken}):OpenC3Auth.getOfflineAccess())})}offline_access_needed(){return this.exec("offline_access_needed",[])}set_offline_access(e){return this.exec("set_offline_access",[e])}get_all_interface_info(){return this.exec("get_all_interface_info",[])}map_target_to_interface(e,n){return this.exec("map_target_to_interface",[e,n])}connect_interface(e,...n){return n.length>0?this.exec("connect_interface",[e,...n]):this.exec("connect_interface",[e])}disconnect_interface(e){return this.exec("disconnect_interface",[e])}interface_cmd(e,n,...i){return this.exec("interface_cmd",[e,n,...i])}get_all_router_info(){return this.exec("get_all_router_info",[])}connect_router(e){return this.exec("connect_router",[e])}disconnect_router(e){return this.exec("disconnect_router",[e])}get_target_interfaces(){return this.exec("get_target_interfaces",[])}get_tlm_cnts(e){return this.exec("get_tlm_cnts",[e])}get_item(e,n,i){return this.exec("get_item",[e,n,i])}get_param(e,n,i){return this.exec("get_param",[e,n,i])}get_parameter(e,n,i){return this.exec("get_param",[e,n,i])}get_limits_sets(){return this.exec("get_limits_sets",[])}get_limits_set(){return this.exec("get_limits_set",[])}set_limits_set(e){return this.exec("set_limits_set",[e])}get_target(e){return this.exec("get_target",[e])}get_target_names(){return this.exec("get_target_names",[])}get_target_list(){return this.exec("get_target_names",[])}get_tlm(e,n){return this.exec("get_tlm",[e,n])}get_telemetry(e,n){return this.exec("get_tlm",[e,n])}get_all_tlm(e){return this.exec("get_all_tlm",[e])}get_all_telemetry(e){return this.exec("get_all_tlm",[e])}get_all_tlm_names(e,n=!1){return this.exec("get_all_tlm_names",[e],{hidden:n})}get_all_telemetry_names(e){return this.exec("get_all_tlm_names",[e])}async get_tlm_packet(e,n,i,s=30){const r=await this.exec("get_tlm_packet",[e,n],{type:i,stale_time:s});if(r!=null){let o=r.length,l=null;for(let u=0;u<o;u++)l=this.decode_openc3_type(r[u][1]),l!==null&&(r[u][1]=l)}return r}get_packet_derived_items(e,n){return this.exec("get_packet_derived_items",[e,n])}get_tlm_buffer(e,n){return this.exec("get_tlm_buffer",[e,n])}async get_tlm_values(e,n=30,i=null){let s={stale_time:n};i!==null&&(s.cache_timeout=i);const r=await this.exec("get_tlm_values",[e],s,{},1e4);let o=r[0].length,l=null;for(let u=0;u<o;u++)l=this.decode_openc3_type(r[0][u]),l!==null&&(r[0][u]=l);return r}get_limits(e,n,i){return this.exec("get_limits",[e,n,i])}async tlm(e,n,i,s="CONVERTED"){let r=null;if(n===void 0)r=await this.exec("tlm",[e]);else if(i===void 0)if(["RAW","CONVERTED","FORMATTED","WITH_UNITS"].includes(n))r=await this.exec("tlm",[e],{type:n});else{let l=new Error;throw l.name="TypeError",l.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,l}else r=await this.exec("tlm",[e,n,i],{type:s});let o=this.decode_openc3_type(r);return o!==null&&(r=o),r}async inject_tlm(e,n,i=null,s="CONVERTED"){data=await this.exec("inject_tlm",[e,n,i],{type:s})}set_tlm(e,n,i,s){return this.exec("set_tlm",[e,n,i],{type:s})}override_tlm(e,n,i,s){return this.exec("override_tlm",[e,n,i],{type:s})}get_overrides(){return this.exec("get_overrides")}normalize_tlm(e,n,i,s){return this.exec("normalize_tlm",[e,n,i],{type:s})}get_all_cmds(e){return this.exec("get_all_cmds",[e])}get_all_commands(e){return this.exec("get_all_cmds",[e])}get_all_cmd_names(e,n=!1){return this.exec("get_all_cmd_names",[e],{hidden:n})}get_all_command_names(e){return this.exec("get_all_cmd_names",[e])}get_cmd(e,n){return this.exec("get_cmd",[e,n])}get_command(e,n){return this.exec("get_cmd",[e,n])}get_cmd_cnts(e){return this.exec("get_cmd_cnts",[e])}get_cmd_value(e,n,i,s="CONVERTED"){return this.exec("get_cmd_value",[e,n,i,s])}get_cmd_buffer(e,n){return this.exec("get_cmd_buffer",[e,n])}_cmd(e,n,i,s,r){let o=null;for(let l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o=this.encode_openc3_type(s[l]),o!==null&&(s[l]=o));return this.exec(e,[n,i,s],{},r)}get_cmd_hazardous(e,n,i,s={}){return n===void 0?this.exec("get_cmd_hazardous",e,{},s):this._cmd("get_cmd_hazardous",e,n,i,s)}cmd(e,n,i,s={}){return n===void 0?this.exec("cmd",e,{},s):this._cmd("cmd",e,n,i,s)}cmd_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_range_check",e,{},s):this._cmd("cmd_no_range_check",e,n,i,s)}cmd_raw(e,n,i,s={}){return n===void 0?this.exec("cmd_raw",e,{},s):this._cmd("cmd_raw",e,n,i,s)}cmd_raw_no_range_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_range_check",e,{},s):this._cmd("cmd_raw_no_range_check",e,n,i,s)}cmd_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_no_hazardous_check",e,{},s):this._cmd("cmd_no_hazardous_check",e,n,i,s)}cmd_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_no_checks",e,{},s):this._cmd("cmd_no_checks",e,n,i,s)}cmd_raw_no_hazardous_check(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_hazardous_check",e,{},s):this._cmd("cmd_raw_no_hazardous_check",e,n,i,s)}cmd_raw_no_checks(e,n,i,s={}){return n===void 0?this.exec("cmd_raw_no_checks",e,{},s):this._cmd("cmd_raw_no_checks",e,n,i,s)}build_cmd(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}build_command(e,n,i){return n===void 0?this.exec("build_cmd",e):this._cmd("build_cmd",e,n,i)}get_interface_names(){return this.exec("get_interface_names",[])}send_raw(e,n){return this.exec("send_raw",[e,n])}list_configs(e){return this.exec("list_configs",[e])}load_config(e,n){return this.exec("load_config",[e,n])}save_config(e,n,i){return this.exec("save_config",[e,n,i])}delete_config(e,n){return this.exec("delete_config",[e,n])}enable_limits(e,n,i){return this.exec("enable_limits",[e,n,i])}disable_limits(e,n,i){return this.exec("disable_limits",[e,n,i])}get_out_of_limits(){return this.exec("get_out_of_limits",[])}get_overall_limits_state(e){return this.exec("get_overall_limits_state",[e])}list_settings(){return this.exec("list_settings",[])}get_all_settings(){return this.exec("get_all_settings",[])}get_setting(e){return this.exec("get_setting",[e])}get_settings(e){return this.exec("get_settings",e)}set_setting(e,n){return this.exec("set_setting",[e,n])}save_setting(e,n){return this.exec("set_setting",[e,n])}get_metrics(){return this.exec("get_metrics",[])}async hashString(e){if(window.isSecureContext){const n=new TextEncoder().encode(e),i=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(i);return Array.from(s).map(r=>r.toString(16).padStart(2,"0")).join("")}}}const Ai={components:{LabelvalueWidget:$e,LabelvaluelimitsbarWidget:Je},props:{modelValue:{type:Array,default:()=>[]},timeZone:{type:String,default:"local"}},mixins:[we],data(){return{api:null,cable:new jt,ignored:[],ignoredItemsDialog:!1,overallState:"GREEN",currentLimitsSet:"",items:[],itemList:[],screenItems:[],screenValues:{},updateCounter:0,widgetSettings:[["WIDTH","580px"],["0","WIDTH","200px"],["1","WIDTH","200px"],["2","WIDTH","180px"]]}},computed:{textFieldClass(){return this.overallState?`textfield-${this.overallState.toLowerCase()}`:""},overallStateFormatted(){return this.ignored.length===0?this.overallState:`${this.overallState} (Some items ignored)`},ignoredFormatted(){return this.ignored.map(t=>t.split("__").join(" "))},astroStatus(){switch(this.overallState){case"GREEN":return"normal";case"YELLOW":return"caution";case"RED":return"critical";case"BLUE":return"standby";default:return null}}},created(){this.api=new Pt;for(let t of this.modelValue)t.match(/.+__.+__.+/)?this.ignoreItem(t,!0):this.ignorePacket(t,!0);this.updateOutOfLimits(),this.getCurrentLimitsSet(),this.currentSetRefreshInterval=setInterval(this.getCurrentLimitsSet,10*1e3),this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing(),this.handleMessages(t)}}).then(t=>{this.limitsSubscription=t}),this.cable.createSubscription("ConfigEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing();const e=JSON.parse(t);this.handleConfigEvents(e)}}).then(t=>{this.configSubscription=t})},mounted(){this.updater=setInterval(()=>{this.update()},1e3)},unmounted(){this.updater!=null&&(clearInterval(this.updater),this.updater=null),this.limitsSubscription&&this.limitsSubscription.unsubscribe(),this.configSubscription&&this.configSubscription.unsubscribe(),this.cable.disconnect()},methods:{getCurrentLimitsSet:function(){this.api.get_limits_set().then(t=>{this.currentLimitsSet=t})},updateOutOfLimits(){this.items=[],this.itemList=[],this.api.get_out_of_limits().then(t=>{for(const e of t){let n=e.join("__");if(this.ignored.find(s=>n.includes(s)))continue;this.itemList.push(n);let i={key:e.slice(0,3).join("__"),parameters:e.slice(0,3),timestamp:this.formatDateTime(new Date,this.timeZone)};e[3].includes("YELLOW")&&this.overallState!=="RED"&&(this.overallState="YELLOW"),e[3].includes("RED")&&(this.overallState="RED"),e[3]=="YELLOW"||e[3]=="RED"?i.limits=!1:i.limits=!0,this.items.push(i)}this.calcOverallState()})},calcOverallState(){let t="GREEN";for(let e of this.itemList)if(!this.ignored.find(n=>e.includes(n))&&(e.includes("YELLOW")&&t!=="RED"&&(t="YELLOW"),e.includes("RED"))){t="RED";break}this.overallState=t},ignorePacket(t,e){let[n,i,s]=t.split("__"),r=`${n}__${i}`;for(this.ignored.push(r),e||this.updateIgnored();;){let o=this.itemList.findIndex(l=>l.includes(r));if(o===-1)break;{let l=this.itemList[o].lastIndexOf("__");this.removeItem(this.itemList[o].substring(0,l))}}this.calcOverallState()},ignoreItem(t,e){this.ignored.push(t),e||this.updateIgnored(),this.removeItem(t),this.calcOverallState()},restoreItem(t){this.ignored.splice(t,1),this.updateIgnored(),this.updateOutOfLimits()},removeItem(t){const e=this.itemList.findIndex(n=>n.includes(t));this.items.splice(e,1),this.itemList.splice(e,1)},clearAll(){this.ignored=[],this.updateIgnored(),this.updateOutOfLimits()},updateIgnored(){this.$emit("update:modelValue",this.ignored)},handleConfigEvents(t){for(let e of t)e.kind==="deleted"&&e.type==="target"&&this.updateOutOfLimits()},handleMessages(t){for(let e of t){if(e=JSON.parse(e.event),e.type!="LIMITS_CHANGE")continue;let n=`${e.target_name}__${e.packet_name}__${e.item_name}`;const i=this.itemList.findIndex(r=>r.includes(n));if(i!==-1){this.itemList[i]=`${n}__${e.new_limits_state}`,this.calcOverallState();continue}if(this.ignored.find(r=>n.includes(r))||e.new_limits_state&&!(e.new_limits_state.includes("YELLOW")||e.new_limits_state.includes("RED")))continue;let s={key:n,timestamp:this.formatNanoseconds(e.time_nsec,this.timeZone),parameters:[e.target_name,e.packet_name,e.item_name]};e.new_limits_state=="YELLOW"||e.new_limits_state=="RED"?s.limits=!1:s.limits=!0,this.itemList.push(`${n}__${e.new_limits_state}`),this.items.push(s),this.calcOverallState()}},update(){this.screenItems.length!==0&&this.api.get_tlm_values(this.screenItems).then(t=>{this.updateValues(t)})},updateValues:function(t){this.updateCounter+=1;for(let e=0;e<t.length;e++)t[e].push(this.updateCounter),this.screenValues[this.screenItems[e]]=t[e]},addItem:function(t){this.screenItems.push(t),this.screenValues[t]=[null,null,0]},deleteItem:function(t){let e=this.screenItems.indexOf(t);this.screenItems.splice(e,1)},showIgnored(){this.ignoredItemsDialog=!0}}},Li=["status"],Ni={class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},Ii={class:"font-weight-black"};function Di(t,e,n,i,s,r){const o=y("v-text-field"),l=y("v-row"),u=y("labelvaluelimitsbar-widget"),c=y("labelvalue-widget"),d=y("v-btn"),h=y("v-tooltip"),v=y("v-divider"),_=y("v-card"),m=y("v-spacer"),f=y("v-toolbar"),k=y("v-card-text"),C=y("v-card-actions"),O=y("v-dialog");return E(),U("div",null,[g(_,{class:"pa-5"},{default:p(()=>[g(l,{class:"ma-1"},{default:p(()=>[g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Overall Limits State","model-value":r.overallStateFormatted,class:Ee(r.textFieldClass),style:{"margin-right":"10px","max-width":"280px"},"data-test":"overall-state"},oe({_:2},[r.astroStatus?{name:"prepend-inner",fn:p(()=>[R("rux-status",{status:r.astroStatus},null,8,Li)]),key:"0"}:void 0]),1032,["model-value","class"]),g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Current Limits Set","model-value":s.currentLimitsSet,style:{"max-width":"200px"},"data-test":"limits-set"},null,8,["model-value"])]),_:1}),g(l,{"data-test":"limits-row",class:"my-0 ml-1 mr-1"},{default:p(()=>e[2]||(e[2]=[R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Timestamp",-1),R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Item Name",-1),R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Value",-1),R("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"180px"}},"Limits Bar",-1),R("div",{class:"pa-1 mt-1 mr-2 label"},"Controls",-1)])),_:1}),(E(!0),U(z,null,$(s.items,(S,I)=>(E(),U("div",{key:S.key},[g(l,{"data-test":"limits-row",class:"align-center my-0 mx-1"},{default:p(()=>[R("div",Ni,M(S.timestamp),1),S.limits?(E(),A(u,{key:0,parameters:S.parameters,settings:s.widgetSettings,"screen-values":s.screenValues,"screen-time-zone":n.timeZone,onAddItem:r.addItem,onDeleteItem:r.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])):(E(),A(c,{key:1,parameters:S.parameters,settings:s.widgetSettings,"screen-values":s.screenValues,"screen-time-zone":n.timeZone,onAddItem:r.addItem,onDeleteItem:r.deleteItem},null,8,["parameters","settings","screen-values","screen-time-zone","onAddItem","onDeleteItem"])),g(h,{location:"top"},{activator:p(({props:b})=>[g(d,Y({icon:"mdi-close-circle-multiple",variant:"text",density:"compact",class:"mr-2",onClick:D=>r.ignorePacket(S.key),ref_for:!0},b),null,16,["onClick"])]),default:p(()=>[e[3]||(e[3]=R("span",null,"Ignore Entire Packet",-1))]),_:2},1024),g(h,{location:"top"},{activator:p(({props:b})=>[g(d,Y({icon:"mdi-close-circle",variant:"text",density:"compact",class:"mr-2",onClick:D=>r.ignoreItem(S.key),ref_for:!0},b),null,16,["onClick"])]),default:p(()=>[e[4]||(e[4]=R("span",null,"Ignore Item",-1))]),_:2},1024),g(h,{location:"top"},{activator:p(({props:b})=>[g(d,Y({icon:"mdi-eye-off",variant:"text",density:"compact",class:"mr-2",onClick:D=>r.removeItem(S.key),ref_for:!0},b),null,16,["onClick"])]),default:p(()=>[e[5]||(e[5]=R("span",null,"Temporarily Hide Item",-1))]),_:2},1024)]),_:2},1024),I<s.items.length?(E(),A(v,{key:I})):q("",!0)]))),128)),e[6]||(e[6]=R("div",{class:"footer"},' Note: Timestamp is "now" for items currently out of limits when the page is loaded. ',-1))]),_:1}),g(O,{modelValue:s.ignoredItemsDialog,"onUpdate:modelValue":e[1]||(e[1]=S=>s.ignoredItemsDialog=S),"max-width":"600"},{default:p(()=>[g(_,null,{default:p(()=>[g(f,{height:"24"},{default:p(()=>[g(m),e[7]||(e[7]=R("span",null,"Ignored Items",-1)),g(m)]),_:1}),g(k,{class:"mt-2"},{default:p(()=>[R("div",null,[(E(!0),U(z,null,$(r.ignoredFormatted,(S,I)=>(E(),U("div",{key:I},[g(l,{class:"ma-1 align-center"},{default:p(()=>[R("span",Ii,M(S),1),g(m),g(d,{onClick:b=>r.restoreItem(I),icon:"mdi-delete",density:"compact",variant:"text","data-test":`remove-ignore-${I}`},null,8,["onClick","data-test"])]),_:2},1024),I<r.ignoredFormatted.length-1?(E(),A(v,{key:I})):q("",!0)]))),128))])]),_:1}),g(C,{class:"px-2"},{default:p(()=>[g(d,{variant:"outlined",onClick:r.clearAll},{default:p(()=>e[8]||(e[8]=[B(" Clear All ")])),_:1},8,["onClick"]),g(m),g(d,{variant:"flat",onClick:e[0]||(e[0]=S=>s.ignoredItemsDialog=!1)},{default:p(()=>e[9]||(e[9]=[B(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const ji=re(Ai,[["render",Di],["__scopeId","data-v-dd6c39b3"]]),Pi={props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},mixins:[we],data(){return{data:[],cable:new jt,search:"",headers:[{title:"Time",value:"time_nsec",width:250},{title:"Level",value:"level",sortable:!1},{title:"Message",value:"message"}]}},created(){this.cable.createSubscription("LimitsEventsChannel",window.openc3Scope,{received:t=>{this.cable.recordPing(),this.handleMessages(t)}},{historyCount:1e3}).then(t=>{this.limitsSubscription=t})},unmounted(){this.limitsSubscription&&this.limitsSubscription.unsubscribe(),this.cable.disconnect()},methods:{handleMessages(t){for(let e=0;e<t.length;e++){let n=JSON.parse(t[e].event);this.data.unshift(n)}this.data.length>this.historyCount&&(this.data.length=this.historyCount)},getStatus(t){return t.includes("GREEN")?"normal":t.includes("YELLOW")?"caution":t.includes("RED")?"critical":t.includes("BLUE")?"standby":"off"},getColorClass(t){return t.includes("GREEN")?"openc3-green":t.includes("YELLOW")?"openc3-yellow":t.includes("RED")?"openc3-red":t.includes("BLUE")?"openc3-blue":this.$vuetify.theme.dark?"openc3-white":"openc3-black"},calcTableHeight(){return window.innerHeight-250}}},Ui=["status"];function Fi(t,e,n,i,s,r){const o=y("v-spacer"),l=y("v-text-field"),u=y("v-card-title"),c=y("v-data-table"),d=y("v-card");return E(),A(d,{class:"card-height"},{default:p(()=>[g(u,{class:"d-flex align-center"},{default:p(()=>[e[1]||(e[1]=B(" Limits Events ")),g(o),g(l,{modelValue:s.search,"onUpdate:modelValue":e[0]||(e[0]=h=>s.search=h),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),g(c,{headers:s.headers,items:s.data,search:s.search,"items-per-page":-1,"hide-default-footer":"","multi-sort":"",density:"compact",height:r.calcTableHeight(),hover:"","data-test":"limits-events"},{"item.time_nsec":p(({item:h})=>[R("span",null,M(t.formatNanoseconds(h.time_nsec,n.timeZone)),1)]),"item.level":p(({item:h})=>[R("rux-status",{status:r.getStatus(h.message)},null,8,Ui)]),"item.message":p(({item:h})=>[R("span",{class:Ee(r.getColorClass(h.message))},M(h.message),3)]),_:1},8,["headers","items","search","height"])]),_:1})}const Bi={components:{LimitsControl:ji,LimitsEvents:re(Pi,[["render",Fi],["__scopeId","data-v-210db24e"]]),TopBar:Mt,OpenConfigDialog:We,SaveConfigDialog:ze},mixins:[qe],data(){return{title:"Limits Monitor",configKey:"limits_monitor",api:new Pt,timeZone:"local",renderKey:0,ignored:[],openConfig:!1,saveConfig:!1,limitsSets:[],currentLimitsSet:null,currentSetRefreshInterval:null,limitsSetDialog:!1,menus:[{label:"File",items:[{label:"Show Ignored",icon:"mdi-magnify-close",command:()=>{this.$refs.control.showIgnored()}},{label:"Change Limits Set",icon:"mdi-swap-horizontal",command:()=>{this.limitsSetDialog=!0}},{divider:!0},{label:"Open Configuration",icon:"mdi-folder-open",command:()=>{this.openConfig=!0}},{label:"Save Configuration",icon:"mdi-content-save",command:()=>{this.saveConfig=!0}},{label:"Reset Configuration",icon:"mdi-monitor-shimmer",command:()=>{this.ignored=[],this.resetConfigBase(),this.renderKey++}}]}]}},created(){this.api.get_limits_sets().then(t=>{this.limitsSets=t}),this.api.get_setting("time_zone").then(t=>{t&&(this.timeZone=t)}).catch(t=>{})},mounted:function(){if(this.$route.query&&this.$route.query.config)this.openConfiguration(this.$route.query.config,!0);else{let t=this.loadDefaultConfig();JSON.stringify(t)!=="{}"&&(this.ignored=t,this.renderKey++)}},unmounted:function(){clearInterval(this.currentSetRefreshInterval)},methods:{setLimitsSet:function(){this.api.set_limits_set(this.currentLimitsSet),this.limitsSetDialog=!1,this.renderKey++},openConfiguration:function(t,e=!1){this.openConfigBase(t,e,n=>{this.ignored=n,this.renderKey++})},saveConfiguration:function(t){this.saveConfigBase(t,this.ignored)}}};function Vi(t,e,n,i,s,r){const o=y("top-bar"),l=y("limits-control"),u=y("limits-events"),c=y("open-config-dialog"),d=y("save-config-dialog"),h=y("v-spacer"),v=y("v-toolbar"),_=y("v-select"),m=y("v-card-text"),f=y("v-btn"),k=y("v-card-actions"),C=y("v-card"),O=y("v-dialog");return E(),U("div",null,[g(o,{menus:s.menus,title:s.title},null,8,["menus","title"]),(E(),A(l,{ref:"control",modelValue:s.ignored,"onUpdate:modelValue":e[0]||(e[0]=S=>s.ignored=S),key:s.renderKey,"time-zone":s.timeZone},null,8,["modelValue","time-zone"])),e[11]||(e[11]=R("div",{style:{height:"15px"}},null,-1)),g(u,{"time-zone":s.timeZone},null,8,["time-zone"]),s.openConfig?(E(),A(c,{key:0,modelValue:s.openConfig,"onUpdate:modelValue":e[1]||(e[1]=S=>s.openConfig=S),configKey:s.configKey,onSuccess:r.openConfiguration},null,8,["modelValue","configKey","onSuccess"])):q("",!0),s.saveConfig?(E(),A(d,{key:1,modelValue:s.saveConfig,"onUpdate:modelValue":e[2]||(e[2]=S=>s.saveConfig=S),configKey:s.configKey,onSuccess:r.saveConfiguration},null,8,["modelValue","configKey","onSuccess"])):q("",!0),g(O,{modelValue:s.limitsSetDialog,"onUpdate:modelValue":e[5]||(e[5]=S=>s.limitsSetDialog=S),"max-width":"650"},{default:p(()=>[g(C,null,{default:p(()=>[g(v,{height:"24"},{default:p(()=>[g(h),e[6]||(e[6]=R("span",null,"Change Limits Set",-1)),g(h)]),_:1}),g(m,{class:"mt-6"},{default:p(()=>[e[7]||(e[7]=R("span",{style:{display:"block"}}," The Limits Set is a global option which changes the Limits Set across all tools. ",-1)),e[8]||(e[8]=R("span",{style:{display:"block"}}," NOTE: Changing this option clears the current list and recalculates based on the new set. ",-1)),g(_,{label:"Limits Set",items:s.limitsSets,modelValue:s.currentLimitsSet,"onUpdate:modelValue":e[3]||(e[3]=S=>s.currentLimitsSet=S),density:"compact",variant:"outlined","data-test":"limits-set","hide-details":"",class:"mt-3",style:{"max-width":"200px"}},null,8,["items","modelValue"])]),_:1}),g(k,{class:"px-2"},{default:p(()=>[g(h),g(f,{variant:"outlined",onClick:e[4]||(e[4]=S=>s.limitsSetDialog=!1)},{default:p(()=>e[9]||(e[9]=[B(" Cancel ")])),_:1}),g(f,{variant:"flat",onClick:r.setLimitsSet},{default:p(()=>e[10]||(e[10]=[B(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const zi=Ut("default",re(Bi,[["render",Vi]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./GraphWidget-amwxyH1r-4073e232ed355ac937c3.js","./main-327494fd5f18e09d7319.js","vue","single-spa","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","vuex","vuetify"],function(p,u){"use strict";var i,n,r,a,o,l,d;return{setters:[t=>{i=t.S,n=t._},t=>{r=t.s},t=>{a=t.resolveComponent,o=t.openBlock,l=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:i},mixins:[n]};function h(e,s,g,v,y,S){const c=a("graph");return o(),l(c,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),"time-zone":this.screenTimeZone,onPause:s[0]||(s[0]=()=>e.state="pause"),onStart:s[1]||(s[1]=()=>e.state="start"),"hide-toolbar":"","hide-overview":""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style","time-zone"])}const m=p("default",r(t,[["render",h]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js","./main-327494fd5f18e09d7319.js","vue","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(f,B){"use strict";var o,u,m,n,r,g,l,a,p,d,y;return{setters:[e=>{o=e.r},e=>{u=e.s,m=e.K},e=>{n=e.openBlock,r=e.createElementBlock,g=e.normalizeStyle,l=e.Fragment,a=e.renderList,p=e.createBlock,d=e.resolveDynamicComponent,y=e.mergeProps},null,null,null,null,null],execute:function(){const e={mixins:[o],computed:{columns(){return parseInt(this.parameters[0])},widgetChunks(){return m.chunk(this.widgets,this.columns)}},created:function(){if(this.parameters[1]){let s=this.parameters[1];this.widgets.forEach(c=>{c.settings.find(i=>i[0]==="MARGIN"||i[0]==="RAW"&&i[1].toUpperCase().includes("MARGIN"))===void 0&&c.settings.push(["MARGIN",s])})}}};function h(s,c,i,b,A,k){return n(),r("table",{style:g(s.computedStyle),role:"presentation"},[(n(!0),r(l,null,a(k.widgetChunks,(v,C)=>(n(),r("tr",{key:"r"+C},[(n(!0),r(l,null,a(v,(t,w)=>(n(),r("td",{key:"c"+w},[(n(),p(d(t.type),y({ref_for:!0},s.listeners,{target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":s.screenValues,"screen-time-zone":s.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))]))),128))]))),128))],4)}const I=f("default",u(e,[["render",h]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,t,n,r,a,s;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.openBlock,r=e.createBlock,a=e.normalizeStyle},e=>{s=e.s},null,null,null,null],execute:function(){const e={props:{value:{type:Number}},mixins:[l],data(){return{label:"Radio"}},created(){this.label=this.parameters[0]}};function u(i,y,c,b,v,f){const p=t("v-radio");return n(),r(p,{"hide-details":"",dense:"",label:v.label,style:a(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",s(e,[["render",u]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(h,f){"use strict";var l,a,r,s,o,c,i,m,u,d,p,g;return{setters:[e=>{l=e.r},e=>{a=e.resolveComponent,r=e.openBlock,s=e.createBlock,o=e.normalizeStyle,c=e.withCtx,i=e.createElementBlock,m=e.Fragment,u=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function C(n,v,B,V,y,z){const I=a("v-radio-group");return r(),s(I,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:o(n.computedStyle)},{default:c(()=>[(r(!0),i(m,null,u(n.widgets,(t,x)=>(r(),s(d(t.type),p({ref_for:!0},n.listeners,{value:x,key:x,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,name:t.name}),null,16,["value","target","parameters","settings","screen-values","screen-time-zone","name"]))),128))]),_:1},8,["modelValue","style"])}const k=h("default",g(e,[["render",C]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./GraphWidget-amwxyH1r-4073e232ed355ac937c3.js","./main-327494fd5f18e09d7319.js","vue","single-spa","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var i,s,n,r,a,o,d;return{setters:[t=>{i=t.S,s=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.openBlock,o=t.createBlock,d=t.normalizeStyle},null,null,null,null,null],execute:function(){const t={components:{Graph:i},mixins:[s],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(e,g,m,v,y,f){const h=r("graph");return a(),o(h,{ref:"graph"+e.id,id:e.id,state:e.state,"selected-graph-id":e.id,startTime:e.startTime,"seconds-graphed":e.secondsGraphed,"points-saved":e.pointsSaved,"points-graphed":e.pointsGraphed,"initial-items":e.items,height:e.size.height,width:e.size.width,style:d(e.computedStyle),sparkline:""},null,8,["id","state","selected-graph-id","startTime","seconds-graphed","points-saved","points-graphed","initial-items","height","width","style"])}const u=l("default",n(t,[["render",p]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(k,z){"use strict";var p,l,n,s,g,v,i,c,o,u,y,f,w,b,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createElementBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,c=e.Fragment,o=e.renderList,u=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,w=e.resolveDynamicComponent,b=e.mergeProps},e=>{V=e.s},null,null,null,null,null],execute:function(){const e={mixins:[p],data:function(){return{curTab:null}},watch:{curTab:function(){this.$emit("min-max-screen")}}};function C(t,m,h,D,L,$){const T=l("v-tab"),x=l("v-tabs"),B=l("v-window-item"),S=l("v-window");return n(),s("div",null,[g(x,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(n(!0),s(c,null,o(t.widgets,(a,d)=>(n(),u(T,{key:d},{default:i(()=>[y(f(a.parameters[0]),1)]),_:2},1024))),128))]),_:1},8,["modelValue","style"]),g(S,{modelValue:t.curTab,"onUpdate:modelValue":m[1]||(m[1]=a=>t.curTab=a)},{default:i(()=>[(n(!0),s(c,null,o(t.widgets,(a,d)=>(n(),u(B,{key:d},{default:i(()=>[(n(!0),s(c,null,o(a.widgets,(r,N)=>(n(),u(w(r.type),b({ref_for:!0},t.listeners,{key:`${d}-${N}`,target:r.target,parameters:r.parameters,settings:r.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:r.widgets,name:r.name,line:r.line,"line-number":r.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))]),_:2},1024))),128))]),_:1},8,["modelValue"])])}const _=k("default",V(e,[["render",C]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-327494fd5f18e09d7319.js","vue","./DetailsDialog-DLRMqetn-c1e88264145accbab84b.js","single-spa","./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js"],function(y,N){"use strict";var c,a,s,r,n,u,d,l,m,h,g,p,v,x,f,w;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createElementBlock,n=e.createVNode,u=e.normalizeClass,d=e.normalizeStyle,l=e.withCtx,m=e.Fragment,h=e.renderList,g=e.createBlock,p=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{f=e.P},null,e=>{w=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:f},data:function(){return{width:200,height:200}},mixins:[w],computed:{aging(){return{"--aging":this.grayLevel}}},created:function(){this.width=this.setWidth(this.parameters[3],"px",this.width),this.height=this.setHeight(this.parameters[4],"px",this.height)},methods:{getType:function(){let t="CONVERTED";return this.parameters[5]&&(t=this.parameters[5]),t}}},C={class:"textbox-widget-container"};function V(t,o,E,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),B=a("v-list-item"),M=a("v-list"),_=a("v-menu"),z=a("details-dialog");return s(),r("div",C,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:u(t.valueClass),style:d([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(_,{modelValue:t.contextMenuShown,"onUpdate:modelValue":o[0]||(o[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(M,null,{default:l(()=>[(s(!0),r(m,null,h(t.contextMenuOptions,(i,L)=>(s(),g(B,{key:L,onClick:p(i.action,["stop"])},{default:l(()=>[n(S,null,{default:l(()=>[v(x(i.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(z,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":o[1]||(o[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const T=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js"],function(S,T){"use strict";var _,w;return{setters:[h=>{_=h.P},h=>{w=h.o}],execute:function(){var h={},I;function x(){return I||(I=1,function(t){(function(){var s={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function c(n){return k(E(n),arguments)}function b(n,u){return c.apply(null,[n].concat(u||[]))}function k(n,u){var i=1,p=n.length,e,o="",l,a,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof n[l]=="string")o+=n[l];else if(typeof n[l]=="object"){if(r=n[l],r.keys)for(e=u[i],a=0;a<r.keys.length;a++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[a],r.keys[a-1]));e=e[r.keys[a]]}else r.param_no?e=u[r.param_no]:e=u[i++];if(s.not_type.test(r.type)&&s.not_primitive.test(r.type)&&e instanceof Function&&(e=e()),s.numeric_arg.test(r.type)&&typeof e!="number"&&isNaN(e))throw new TypeError(c("[sprintf] expecting number but found %T",e));switch(s.number.test(r.type)&&(v=e>=0),r.type){case"b":e=parseInt(e,10).toString(2);break;case"c":e=String.fromCharCode(parseInt(e,10));break;case"d":case"i":e=parseInt(e,10);break;case"j":e=JSON.stringify(e,null,r.width?parseInt(r.width):0);break;case"e":e=r.precision?parseFloat(e).toExponential(r.precision):parseFloat(e).toExponential();break;case"f":e=r.precision?parseFloat(e).toFixed(r.precision):parseFloat(e);break;case"g":e=r.precision?String(Number(e.toPrecision(r.precision))):parseFloat(e);break;case"o":e=(parseInt(e,10)>>>0).toString(8);break;case"s":e=String(e),e=r.precision?e.substring(0,r.precision):e;break;case"t":e=String(!!e),e=r.precision?e.substring(0,r.precision):e;break;case"T":e=Object.prototype.toString.call(e).slice(8,-1).toLowerCase(),e=r.precision?e.substring(0,r.precision):e;break;case"u":e=parseInt(e,10)>>>0;break;case"v":e=e.valueOf(),e=r.precision?e.substring(0,r.precision):e;break;case"x":e=(parseInt(e,10)>>>0).toString(16);break;case"X":e=(parseInt(e,10)>>>0).toString(16).toUpperCase();break}s.json.test(r.type)?o+=e:(s.number.test(r.type)&&(!v||r.sign)?(d=v?"+":"-",e=e.toString().replace(s.sign,"")):d="",g=r.pad_char?r.pad_char==="0"?"0":r.pad_char.charAt(1):" ",y=r.width-(d+e).length,m=r.width&&y>0?g.repeat(y):"",o+=r.align?d+e+m:g==="0"?d+m+e:m+d+e)}return o}var f=Object.create(null);function E(n){if(f[n])return f[n];for(var u=n,i,p=[],e=0;u;){if((i=s.text.exec(u))!==null)p.push(i[0]);else if((i=s.modulo.exec(u))!==null)p.push("%");else if((i=s.placeholder.exec(u))!==null){if(i[2]){e|=1;var o=[],l=i[2],a=[];if((a=s.key.exec(l))!==null)for(o.push(a[1]);(l=l.substring(a[0].length))!=="";)if((a=s.key_access.exec(l))!==null)o.push(a[1]);else if((a=s.index_access.exec(l))!==null)o.push(a[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");i[2]=o}else e|=2;if(e===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");p.push({placeholder:i[0],param_no:i[1],keys:i[2],sign:i[3],pad_char:i[4],align:i[5],width:i[6],precision:i[7],type:i[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");u=u.substring(i[0].length)}return f[n]=p}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(h)),h}x();const V={methods:{formatValueBase(t,s){return this.isJsonString(t)?this.formatJsonString(t):Array.isArray(t)?this.formatArray(t):this.isObject(t)?"":s&&t?sprintf(s,t):String(t)},isJsonString(t){return t&&t.json_class==="String"&&t.raw!==void 0},formatJsonString(t){let s=Array.from(t.raw.slice(0,32),c=>("0"+(c&255).toString(16)).slice(-2)).join(" ").toUpperCase();return t.raw.length>32&&(s+="..."),s},formatArray(t){return"["+t.map(s=>typeof s=="string"?`"${s}"`:s).join(", ")+"]"},isObject(t){return Object.prototype.toString.call(t).slice(8,-1)==="Object"}}},L=S("L",{mixins:[w,_,V],props:{value:{default:null},limitsState:{type:String,default:null},counter:{default:null},formatString:null,timeZone:{type:String,default:"local"}},emits:["addItem","deleteItem","open"],data(){return{appliedTimeZone:"local",curValue:null,prevValue:null,grayLevel:80,grayRate:5,valueId:null,arrayIndex:null,viewDetails:!1,contextMenuShown:!1,x:0,y:0,contextMenuOptions:[{title:"Details",action:()=>{this.contextMenuShown=!1,this.viewDetails=!0}},{title:"Graph",action:()=>{window.open("/tools/tlmgrapher/"+encodeURIComponent(this.parameters[0])+"/"+encodeURIComponent(this.parameters[1])+"/"+encodeURIComponent(this.parameters[2]),"_blank")}}]}},watch:{_counter:function(t,s){this.curValue!==this.prevValue?this.grayLevel=80:(this.grayLevel-=this.grayRate,this.grayLevel<30&&(this.grayLevel=30)),this.prevValue=this.curValue}},computed:{_value:function(){return this.curValue=this.value,this.curValue===null&&(this.screenValues?this.screenValues[this.valueId]&&(this.arrayIndex!==null&&this.screenValues[this.valueId][0]?this.curValue=this.screenValues[this.valueId][0][this.arrayIndex]:this.curValue=this.screenValues[this.valueId][0]):this.curValue=null),this.curValue=this.formatValue(this.curValue),this.curValue},_limitsState:function(){let t=this.limitsState;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][1]):t=null),t},_counter:function(){let t=this.counter;return t===null&&(this.screenValues?this.screenValues[this.valueId]&&(t=this.screenValues[this.valueId][2]):t=null),t},valueClass:function(){return"value shrink pa-1 openc3-"+this.limitsColor},astroStatus(){switch(this.limitsColor){case"green":return"normal";case"yellow":return"caution";case"red":return"critical";case"blue":return"standby";default:return null}},limitsColor(){let t=this._limitsState;if(t!=null)switch(t){case"GREEN":case"GREEN_HIGH":case"GREEN_LOW":return"green";case"YELLOW":case"YELLOW_HIGH":case"YELLOW_LOW":return"yellow";case"RED":case"RED_HIGH":case"RED_LOW":return"red";case"BLUE":return"blue";case"STALE":return"purple";default:return"white"}return""},limitsLetter(){let t=this._limitsState;if(t!=null){let s=t.charAt(0);return t.endsWith("_LOW")&&(s=s.toLowerCase()),s}return""}},created(){if(this.value===null||this.limitsState===null){if(this.parameters[2].includes("[["))this.parameters[2]=this.parameters[2].replace("[[","[").replace("]]","]");else if(this.parameters[2].includes("[")){let t=this.parameters[2].match(/\[(\d+)\]/);this.arrayIndex=parseInt(t[1]),this.parameters[2]=this.parameters[2].replace(t[0],"")}this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.getType()}`,this.$emit("addItem",this.valueId),this.screenTimeZone?this.appliedTimeZone=this.screenTimeZone:this.appliedTimeZone=this.timeZone}},destroyed(){(this.value===null||this.limitsState===null)&&this.$emit("deleteItem",this.valueId)},methods:{getType(){let t="WITH_UNITS";return this.parameters[3]&&(t=this.parameters[3]),t},formatValue(t){return t&&this.valueId&&(this.valueId.includes("PACKET_TIMEFORMATTED")||this.valueId.includes("RECEIVED_TIMEFORMATTED"))?(t=t.replaceAll("/","-"),this.formatUtcToLocal(new Date(t),this.appliedTimeZone)):this.formatValueBase(t,this.formatString)},showContextMenu(t){t.preventDefault(),this.contextMenuShown=!1,this.x=t.clientX,this.y=t.clientY,this.$nextTick(()=>{this.contextMenuShown=!0})}}})}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./main-327494fd5f18e09d7319.js","vue","./DetailsDialog-DLRMqetn-c1e88264145accbab84b.js","single-spa","./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue-router","vuex","vuetify","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js"],function(w,I){"use strict";var c,a,r,o,d,n,l,m,p,v,u,g,h,f,x,y,V,C;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,r=e.openBlock,o=e.createElementBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.mergeProps,p=e.createSlots,v=e.createElementVNode,u=e.toDisplayString,g=e.Fragment,h=e.renderList,f=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{V=e.P},null,e=>{C=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:V},mixins:[C],data:function(){return{width:16}},computed:{fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},aging(){return{"--aging":this.grayLevel}}},created(){this.verifyNumParams("VALUE",3,5,"VALUE <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH>"),this.setWidth(parseInt(this.parameters[4])+4,"ch",this.width)}};function D(t,i,W,j,z,k){const E=a("rux-status"),_=a("v-text-field"),L=a("v-tooltip"),N=a("v-list-item-title"),M=a("v-list-item"),T=a("v-list"),B=a("v-menu"),P=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(L,{location:"top"},{activator:l(({props:s})=>[n(_,m({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),p({_:2},[t.astroStatus?{name:"prepend-inner",fn:l(()=>[n(E,{status:t.astroStatus},null,8,["status"])]),key:"0"}:void 0]),1040,["model-value","class","onContextmenu"])]),default:l(()=>[v("span",null,u(k.fullName),1)]),_:1}),n(B,{modelValue:t.contextMenuShown,"onUpdate:modelValue":i[0]||(i[0]=s=>t.contextMenuShown=s),target:[t.x,t.y],style:{"z-index":"3000"}},{default:l(()=>[n(T,null,{default:l(()=>[(r(!0),o(g,null,h(t.contextMenuOptions,(s,A)=>(r(),f(M,{key:A,onClick:x(s.action,["stop"])},{default:l(()=>[n(N,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(P,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":i[1]||(i[1]=s=>t.viewDetails=s)},null,8,["target-name","packet-name","item-name","modelValue"])],4)}const U=w("default",c(S,[["render",D],["__scopeId","data-v-c21e4dde"]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-KLYY8L8U-e4b9e6d7b4f7d73b123b.js","./LimitsbarWidget-DXbqsi4J-696a879f4a055ef98599.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","./DetailsDialog-DLRMqetn-c1e88264145accbab84b.js","single-spa","./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-f3e59682751452abe45e.js"],function(g,f){"use strict";var l,i,a,s,u,o,c,n,r,m;return{setters:[e=>{l=e.default},e=>{i=e.default},e=>{a=e.o},e=>{s=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,n=e.createVNode,r=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:l,LimitsbarWidget:i}};function d(t,x,V,j,w,y){const p=s("value-widget"),v=s("limitsbar-widget");return u(),o("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(p,r(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),n(v,r(t.$attrs,{parameters:t.parameters.slice(0,3),settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"])],4)}const b=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./ValueWidget-KLYY8L8U-e4b9e6d7b4f7d73b123b.js","./LimitscolumnWidget-BfY4su5U-c8781d4bdbecf7fdd11f.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","./DetailsDialog-DLRMqetn-c1e88264145accbab84b.js","single-spa","./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue-router","vuex","vuetify","./BarColumn-Cdu3OoMa-f3e59682751452abe45e.js"],function(g,f){"use strict";var r,i,a,n,u,o,c,s,l,m;return{setters:[e=>{r=e.default},e=>{i=e.default},e=>{a=e.o},e=>{n=e.resolveComponent,u=e.openBlock,o=e.createElementBlock,c=e.normalizeStyle,s=e.createVNode,l=e.mergeProps},e=>{m=e.s},null,null,null,null,null,null,null],execute:function(){const e={mixins:[a],components:{ValueWidget:r,LimitscolumnWidget:i}};function d(t,j,w,y,z,B){const p=n("limitscolumn-widget"),v=n("value-widget");return u(),o("div",{ref:"container",style:c(t.computedStyle)},[s(p,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1,line:t.line,lineNumber:t.lineNumber}),null,16,["parameters","settings","screen-values","line","lineNumber"]),s(v,l(t.$attrs,{parameters:t.parameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"])],4)}const V=g("default",m(e,[["render",d]]))}}});
|
@@ -1 +0,0 @@
|
|
1
|
-
System.register(["./Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var a,r,i,c,o,u,m,g,p,f;return{setters:[e=>{a=e.r},e=>{r=e.openBlock,i=e.createElementBlock,c=e.normalizeStyle,o=e.Fragment,u=e.renderList,m=e.createBlock,g=e.resolveDynamicComponent,p=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(l=>{l.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&l.settings.push(["MARGIN",n])})}}};function v(n,l,s,B,w,C){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,d)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:d,target:t.target,parameters:t.parameters,settings:t.settings,"screen-values":n.screenValues,"screen-time-zone":n.screenTimeZone,widgets:t.widgets,name:t.name,line:t.line,"line-number":t.lineNumber}),null,16,["target","parameters","settings","screen-values","screen-time-zone","widgets","name","line","line-number"]))),128))],4)}const h=y("default",f(e,[["render",v]]))}}});
|