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.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/tools/limitsmonitor/ArrayWidget-DzHELdHv-f4de8ba71dea450713c4.js +2 -0
  3. data/tools/limitsmonitor/ArrayplotWidget-BDvziGSm-834bf1d47bc0e37c6739.js +1 -0
  4. data/tools/limitsmonitor/{BarColumn-Cdu3OoMa-f3e59682751452abe45e.js → BarColumn-CNhS2KKq-3dc808075c1ad070de8d.js} +1 -1
  5. data/tools/limitsmonitor/{BlockWidget-PmjzrkXF-74f288c0d604e52c6553.js → BlockWidget-D0On4x3d-fe36780077d2c221a6fe.js} +2 -2
  6. data/tools/limitsmonitor/{ButtonWidget-nwDlOBJT-e013309f09e21f889abb.js → ButtonWidget-BOYLHMt4-7a8a915485056215597b.js} +2 -2
  7. data/tools/limitsmonitor/{CanvasWidget-BL8930eT-b19d22b5d879eb1c88e6.js → CanvasWidget-CQIqiLEy-cc3fd1975422711f59b9.js} +1 -1
  8. data/tools/limitsmonitor/CanvasdotWidget-BVWutPMF-93e60b9a4efae5292b4d.js +1 -0
  9. data/tools/limitsmonitor/{CanvasimageWidget-BIw7Wbf2-47faa804e56abbb56cd2.js → CanvasimageWidget-ayu_ASKf-e992d034823782d4c3eb.js} +1 -1
  10. data/tools/limitsmonitor/CanvasimagevalueWidget-mv319g5T-ec322bcb202a56fdc335.js +1 -0
  11. data/tools/limitsmonitor/CanvaslabelWidget-BNjbXDb8-50b7f2235a3da85221c6.js +1 -0
  12. data/tools/limitsmonitor/{CanvaslabelvalueWidget-CI3yYwFs-ef79b31473cd36a5184d.js → CanvaslabelvalueWidget-CrhPwTSP-8c300fee8bf589186bd5.js} +1 -1
  13. data/tools/limitsmonitor/CanvaslineWidget--HdKH6oO-c34a96a86136c451b222.js +1 -0
  14. data/tools/limitsmonitor/{CanvaslinevalueWidget-CI-Bbzfi-1bc460c83a527949f43c.js → CanvaslinevalueWidget-CJsuF6RY-32a6c399a0dc7daf9cfb.js} +1 -1
  15. data/tools/limitsmonitor/CheckbuttonWidget-CQ2HlgIk-ae9a767ebc459b3c3830.js +1 -0
  16. data/tools/limitsmonitor/ComboboxWidget-BxILACwz-d79d9969981f2563d12a.js +1 -0
  17. data/tools/limitsmonitor/{DateWidget-B5R_9rA8-4dbc82988b60bc852e56.js → DateWidget-CIkO0xqH-715dfc17df22713799c8.js} +1 -1
  18. data/tools/limitsmonitor/{DetailsDialog-DLRMqetn-c1e88264145accbab84b.js → DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js} +1 -1
  19. data/tools/limitsmonitor/{DynamicWidget-m9EliUR2-fd2b4aed9ce4129cfda1.js → DynamicWidget-gFSYxzvT-6d0d24c2f1d46de8693a.js} +1 -1
  20. data/tools/limitsmonitor/{FormatvalueWidget-DZkRJce8-66d5ebdbb8fa9bfffd42.js → FormatvalueWidget-D8-EO_3E-cc2a47dec4477a964f73.js} +1 -1
  21. data/tools/limitsmonitor/Graph-EV7oK3qM-e8913b039617d63183dd.js +1 -0
  22. data/tools/limitsmonitor/GraphWidget-BTNYbd21-b283022420b6bbfd29e6.js +1 -0
  23. data/tools/limitsmonitor/{HorizontalWidget-CirtfuL8-76222a0598554913fb45.js → HorizontalWidget-Bp-qtqoh-e290b21cb0e16533c60f.js} +1 -1
  24. data/tools/limitsmonitor/{HorizontalboxWidget-CyTDt2nl-1d712f58bdd1eeef6341.js → HorizontalboxWidget-CrJuGY3s-c0746a4894c6ce683c02.js} +1 -1
  25. data/tools/limitsmonitor/HorizontallineWidget-CbxREBYI-2e026b70e31107522c25.js +1 -0
  26. data/tools/limitsmonitor/IframeWidget-DusiWNNj-5e3ce03bd0370e315124.js +1 -0
  27. data/tools/limitsmonitor/ImageLoader-BapCB-Li-b90aacb6c54c52e0d01e.js +1 -0
  28. data/tools/limitsmonitor/{ImageviewerWidget-DIkmb_C9-f8deed1e463e6234b3cc.js → ImageviewerWidget-c0gJ9VDC-20a7678fc4eb748d11d7.js} +1 -1
  29. data/tools/limitsmonitor/{LabelWidget-BDsypYho-7ecf5d7880379e8c7c90.js → LabelWidget-pPgc0ve3-da8a61e9db3edffc2c9e.js} +1 -1
  30. data/tools/limitsmonitor/LabelledWidget-CkNjby55-d7b81b6d2ebbd74dfa9d.js +1 -0
  31. data/tools/limitsmonitor/LabelprogressbarWidget-e2R2yQKw-a74b2caaf853cd118043.js +1 -0
  32. data/tools/limitsmonitor/LabelsparklineWidget-D7MQ_oNw-cd0cf472b03f0ead8521.js +1 -0
  33. data/tools/limitsmonitor/LabelvalueWidget-4DShBBvr-4ce431ec1912d541d2d0.js +1 -0
  34. data/tools/limitsmonitor/{LabelvaluedescWidget-CsUP7J4U-7fa85b703fbf191fcedb.js → LabelvaluedescWidget-Z1m8Bi6N-d0b22816bdb5058786eb.js} +1 -1
  35. data/tools/limitsmonitor/LabelvaluelimitsbarWidget-DVa-oYxU-80b3840da99584cb025b.js +1 -0
  36. data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-DduuX632-a7900ae74cd6009320d0.js +1 -0
  37. data/tools/limitsmonitor/{LabelvaluerangebarWidget-DpcXhlfF-110728320d02af581302.js → LabelvaluerangebarWidget-BR9vXOlt-6d0eb08558f38ec46a3b.js} +1 -1
  38. data/tools/limitsmonitor/{Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js → Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js} +1 -1
  39. data/tools/limitsmonitor/LedWidget-f7bf8ls_-d8fcfa37e55bff92f723.js +1 -0
  40. data/tools/limitsmonitor/LimitsMonitor-dc384f8aecee9f067991.js +7 -0
  41. data/tools/limitsmonitor/{LimitsbarWidget-DXbqsi4J-696a879f4a055ef98599.js → LimitsbarWidget-B7fHaDcJ-35e7d809a6b10c3d4cde.js} +1 -1
  42. data/tools/limitsmonitor/{LimitscolorWidget-Ckmuw0YX-bdec13a8d949afa47839.js → LimitscolorWidget-CpC4D_TC-ba8bfca0dc01416ef9d7.js} +1 -1
  43. data/tools/limitsmonitor/{LimitscolumnWidget-BfY4su5U-c8781d4bdbecf7fdd11f.js → LimitscolumnWidget-C9FbNC-U-f06c25388edfbca2fb96.js} +1 -1
  44. data/tools/limitsmonitor/LinegraphWidget-DkWDQ_3K-10e8bb018d7f336ed845.js +1 -0
  45. data/tools/limitsmonitor/MatrixbycolumnsWidget-CHJDyYa3-78a8bcf2285556d00244.js +1 -0
  46. data/tools/limitsmonitor/{ProgressbarWidget-DpA_-vy9-9c2139820ff60bec25ba.js → ProgressbarWidget-CRZDxClT-bf0e3805609604aa1ec1.js} +1 -1
  47. data/tools/limitsmonitor/RadiobuttonWidget-BW4yFweH-703675436d3916bcf1e2.js +1 -0
  48. data/tools/limitsmonitor/RadiogroupWidget-_0bVCHjr-d7c6f3d40eb7d39e94bf.js +1 -0
  49. data/tools/limitsmonitor/{RangebarWidget-DHS7S3vI-5d976a46f05c7e82dbf6.js → RangebarWidget-CEQFiG4l-9182f5decadf9fdc75b3.js} +1 -1
  50. data/tools/limitsmonitor/{RollupWidget-CTk9Kjwr-77a9d97d948244754e59.js → RollupWidget-579c7y0R-87d22f7345751f073431.js} +1 -1
  51. data/tools/limitsmonitor/{ScrollwindowWidget-DD0TOW6s-7f7bb8a17a58ebddc78a.js → ScrollwindowWidget-Kcre9gM3-a658e7766c0aaa7b4b9a.js} +1 -1
  52. data/tools/limitsmonitor/{SignalWidget-CC33KMTW-8fac7121eceff94ef2da.js → SignalWidget-D55Myd0q-7b081e83ca7ff57e9d2d.js} +1 -1
  53. data/tools/limitsmonitor/{SpacerWidget-BnJe_Hq6-8893dd34d7ecb5177949.js → SpacerWidget-DBDv_w_s-d3b1b17f4caa7727d192.js} +1 -1
  54. data/tools/limitsmonitor/SparklineWidget-DJvIL24z-9a963b24279949eaf8fe.js +1 -0
  55. data/tools/limitsmonitor/TabbookWidget-DH9DHnp1-985222ccfe92dd678d70.js +1 -0
  56. data/tools/limitsmonitor/TextboxWidget-DCjIEzJn-661f7e5f2c8afe95752c.js +1 -0
  57. data/tools/limitsmonitor/{TextfieldWidget-DXSdgqVP-76a3154f5d2f79a4de0e.js → TextfieldWidget-BRQ6oPzR-a987316940c9173463f8.js} +1 -1
  58. data/tools/limitsmonitor/{TimeWidget-DvrRaEMz-289d89642e8f6650dda5.js → TimeWidget-pXtrK5IC-a1ffa65d5d5d20f028de.js} +1 -1
  59. data/tools/limitsmonitor/{TitleWidget-DqViFQl--28c4c2a430b45c39d324.js → TitleWidget-CfAa2SyT-f3bf91c5b20ec34b6fc0.js} +1 -1
  60. data/tools/limitsmonitor/VWidget-CN_afCKJ-dede8aa776923bfd9948.js +1 -0
  61. data/tools/limitsmonitor/ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js +1 -0
  62. data/tools/limitsmonitor/ValuelimitsbarWidget-Cb7_SIUF-b87158875519aef9fe61.js +1 -0
  63. data/tools/limitsmonitor/ValuelimitscolumnWidget-D8bgZ7YP-f41f2f1421eb59f20802.js +1 -0
  64. data/tools/limitsmonitor/{ValuerangebarWidget-B6M02a9d-66ad8df1e4044153277c.js → ValuerangebarWidget-VKygtFwP-7e0050ccf284ae610ba2.js} +1 -1
  65. data/tools/limitsmonitor/VerticalWidget-BuvedA_b-b1ad75972605d6842285.js +1 -0
  66. data/tools/limitsmonitor/{VerticalboxWidget-3a9cVsW--66457f471e66437f47a2.js → VerticalboxWidget-D_LcL3GF-3c260388e16d3b7e0b03.js} +1 -1
  67. data/tools/limitsmonitor/{Widget-C4QVI4IH-5a97554019dbe2ca69fb.js → Widget-CERFa1CU-4266fcf1f630786fe6e5.js} +1 -1
  68. data/tools/limitsmonitor/main-8e72d39621128aae1028.js +1420 -0
  69. data/tools/limitsmonitor/main.js +1 -1
  70. metadata +69 -67
  71. data/tools/limitsmonitor/ArrayWidget-BTxChSds-65d00bda9994f3c7af53.js +0 -2
  72. data/tools/limitsmonitor/CanvasdotWidget-VCf1fL-G-c9907c8df5f84b6b0fbe.js +0 -1
  73. data/tools/limitsmonitor/CanvasimagevalueWidget-CE3Dj5bH-2b0426b6ee55fad5ec60.js +0 -1
  74. data/tools/limitsmonitor/CanvaslabelWidget-DWmb356h-89a1044980637ac7426a.js +0 -1
  75. data/tools/limitsmonitor/CanvaslineWidget-COeapH3P-a48defe04ae5bc502516.js +0 -1
  76. data/tools/limitsmonitor/CheckbuttonWidget-BQhggcZ2-c29cd378753ee61fdcfd.js +0 -1
  77. data/tools/limitsmonitor/ComboboxWidget-BzsbOv54-bb110f0faf59341868c3.js +0 -1
  78. data/tools/limitsmonitor/GraphWidget-amwxyH1r-4073e232ed355ac937c3.js +0 -1
  79. data/tools/limitsmonitor/HorizontallineWidget-BdlNB951-c740983cc62e6fb9d4f7.js +0 -1
  80. data/tools/limitsmonitor/IframeWidget-DnJmCrCA-e9b8bb8889de79053e02.js +0 -1
  81. data/tools/limitsmonitor/ImageLoader-CpcR6tPi-1fee4f3eeb0a6c520534.js +0 -1
  82. data/tools/limitsmonitor/LabelledWidget-DjturGl5-9818a24064f153599b46.js +0 -1
  83. data/tools/limitsmonitor/LabelprogressbarWidget-RADJGLj3-b609754f25d29041a064.js +0 -1
  84. data/tools/limitsmonitor/LabelsparklineWidget-BlJoICxu-febffeae5bb6e1740de5.js +0 -1
  85. data/tools/limitsmonitor/LabelvalueWidget-DVWJqnlY-a49572cfacf09e4a43a2.js +0 -1
  86. data/tools/limitsmonitor/LabelvaluelimitsbarWidget-Blj1QXV8-b1933e9a91f63814e2ed.js +0 -1
  87. data/tools/limitsmonitor/LabelvaluelimitscolumnWidget-CvCo-uCe-e007e4876029e2e644a9.js +0 -1
  88. data/tools/limitsmonitor/LedWidget-B_K2e5tq-b44a870758414b940abc.js +0 -1
  89. data/tools/limitsmonitor/LimitsMonitor-b8df7d7c646a318a25c2.js +0 -7
  90. data/tools/limitsmonitor/LinegraphWidget-y-Qy9P0R-5f325ad442a6b47d5ea2.js +0 -1
  91. data/tools/limitsmonitor/MatrixbycolumnsWidget-BTBColrs-bbeaeda00156fd16d638.js +0 -1
  92. data/tools/limitsmonitor/RadiobuttonWidget-BO8zpgwW-e530c276d2eed96b427a.js +0 -1
  93. data/tools/limitsmonitor/RadiogroupWidget-Oy7V4S-V-b062d220324dcf01dc6d.js +0 -1
  94. data/tools/limitsmonitor/SparklineWidget-DMvMQCPm-9342560c9e564a75141e.js +0 -1
  95. data/tools/limitsmonitor/TabbookWidget-B3w0JtWe-1d3e4ec1c6d30252a7cd.js +0 -1
  96. data/tools/limitsmonitor/TextboxWidget-D2f0-eol-aead932f5c02ac95f128.js +0 -1
  97. data/tools/limitsmonitor/VWidget-02CG-3Av-d3c5e53d610f42607c18.js +0 -1
  98. data/tools/limitsmonitor/ValueWidget-KLYY8L8U-e4b9e6d7b4f7d73b123b.js +0 -1
  99. data/tools/limitsmonitor/ValuelimitsbarWidget-SR8XNZFB-bbed09d409c05b7c7578.js +0 -1
  100. data/tools/limitsmonitor/ValuelimitscolumnWidget-xYZSp6YZ-e3e034b12de43d3cf04a.js +0 -1
  101. data/tools/limitsmonitor/VerticalWidget-z6xUM-ql-a4f3f144ebc6cd085694.js +0 -1
  102. data/tools/limitsmonitor/main-327494fd5f18e09d7319.js +0 -1420
@@ -0,0 +1 @@
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(m,I){"use strict";var l,n,o,p,r,a,h,c,u;return{setters:[e=>{l=e.o},e=>{n=e.resolveComponent,o=e.createBlock,p=e.openBlock,r=e.withCtx,a=e.createElementVNode,h=e.toDisplayString,c=e.mergeProps},e=>{u=e.s},null,null,null,null],execute:function(){const e={mixins:[l],data(){return{valueId:null,colors:{TRUE:"openc3-green",FALSE:"openc3-red"}}},computed:{width(){return this.parameters[4]?parseInt(this.parameters[4]):20},height(){return this.parameters[5]?parseInt(this.parameters[5]):20},cssProps(){let t=this.screenValues[this.valueId][0],s=this.colors[t];return s||(s=this.colors.ANY),s||(s="openc3-black"),{"--color":s}},fullName(){return this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]},getClass(){let t="ledwidget mt-2";return this.screenValues[this.valueId][1]==="STALE"&&(t+=" stale"),t}},created(){this.appliedSettings.forEach(t=>{switch(t[0]){case"LED_COLOR":this.colors[t[1]]=t[2];break}}),this.appliedSettings.push(["WIDTH",this.width]),this.appliedSettings.push(["HEIGHT",this.height]),this.parameters[3]||(this.parameters[3]="CONVERTED"),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${this.parameters[3]}`,this.$emit("addItem",this.valueId)},unmounted(){this.$emit("deleteItem",this.valueId)}};function d(t,s,E,_,C,i){const v=n("v-tooltip");return p(),o(v,{location:"top"},{activator:r(({props:g})=>[a("div",c({class:i.getClass,style:[i.cssProps,t.computedStyle]},g),null,16)]),default:r(()=>[a("span",null,h(i.fullName),1)]),_:1})}const f=m("default",u(e,[["render",d],["__scopeId","data-v-393f2726"]]))}}});
@@ -0,0 +1,7 @@
1
+ System.register(["./main-8e72d39621128aae1028.js","vue","single-spa","./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","./IframeWidget-DusiWNNj-5e3ce03bd0370e315124.js","./LabelvalueWidget-4DShBBvr-4ce431ec1912d541d2d0.js","./LabelvaluelimitsbarWidget-DVa-oYxU-80b3840da99584cb025b.js","vue-router","vuex","vuetify","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","./LabelWidget-pPgc0ve3-da8a61e9db3edffc2c9e.js","./ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js","./DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js","./LimitsbarWidget-B7fHaDcJ-35e7d809a6b10c3d4cde.js","./BarColumn-CNhS2KKq-3dc808075c1ad070de8d.js"],function(Gt,ws){"use strict";var ze,le,Ee,$e,We,He,y,T,E,Je,g,m,C,M,D,$,H,B,Q,ue,W,xe,Re,Ke,Ge;return{setters:[x=>{ze=x.s,le=x._,Ee=x.P,$e=x.H,We=x.Y,He=x.X},x=>{y=x.resolveComponent,T=x.createBlock,E=x.openBlock,Je=x.Teleport,g=x.createVNode,m=x.withCtx,C=x.createElementVNode,M=x.toDisplayString,D=x.createElementBlock,$=x.Fragment,H=x.renderList,B=x.createTextVNode,Q=x.mergeProps,ue=x.createSlots,W=x.createCommentVNode,xe=x.normalizeStyle,Re=x.normalizeClass},null,null,null,x=>{Ke=x.default},x=>{Ge=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 Yt={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}},Zt={class:"app-title mr-2"};function Xt(t,e,n,i,s,r){const o=y("v-col"),a=y("v-row"),u=y("v-icon"),l=y("v-btn"),d=y("v-divider"),p=y("v-list-item-title"),_=y("v-list-item"),h=y("v-list"),w=y("v-menu"),f=y("v-radio"),k=y("v-list-item-action"),O=y("v-radio-group"),R=y("v-checkbox");return E(),T(Je,{to:"#openc3-menu"},[g(a,{"no-gutters":""},{default:m(()=>[g(o,{"align-self":"end"},{default:m(()=>[C("span",Zt,M(n.title),1)]),_:1})]),_:1}),g(a,{dense:"",class:"flex-nowrap"},{default:m(()=>[(E(!0),D($,null,H(n.menus,(S,L)=>(E(),T(w,{ref_for:!0,ref:"topmenu",key:L},{activator:m(({props:b})=>[g(l,Q({ref_for:!0},b,{variant:"outlined",class:"mx-1 menu-button",text:S.label,"data-test":r.formatDT(`${n.title} ${S.label}`)}),{append:m(()=>[g(u,{class:"menu-button-icon"},{default:m(()=>e[0]||(e[0]=[B(" mdi-menu-down ")])),_:1})]),_:2},1040,["text","data-test"])]),default:m(()=>[g(h,null,{default:m(()=>[(E(!0),D($,null,H(S.items,(b,P)=>(E(),D($,null,[b.divider?(E(),T(d,{key:P+"-divider"})):b.subMenu&&b.subMenu.length>0?(E(),D("div",{key:P+"-submenu"},[(E(),T(w,{"open-on-hover":"",location:"right",key:P},{activator:m(({props:A})=>[(E(),T(_,Q({ref_for:!0},A,{disabled:b.disabled,key:P}),ue({append:m(()=>[g(u,null,{default:m(()=>e[1]||(e[1]=[B(" mdi-chevron-right ")])),_:1})]),default:m(()=>[!b.radio&&!b.checkbox?(E(),T(p,{key:0,style:xe("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:m(()=>[B(M(b.label),1)]),_:2},1032,["style"])):W("",!0)]),_:2},[b.icon?{name:"prepend",fn:m(()=>[g(u,{disabled:b.disabled},{default:m(()=>[B(M(b.icon),1)]),_:2},1032,["disabled"])]),key:"0"}:void 0]),1040,["disabled"]))]),default:m(()=>[g(h,null,{default:m(()=>[(E(!0),D($,null,H(b.subMenu,(A,F)=>(E(),T(_,{key:F,"prepend-icon":A.icon,onClick:X=>r.subMenuClick(A)},{default:m(()=>[g(p,null,{default:m(()=>[B(M(A.label),1)]),_:2},1024)]),_:2},1032,["prepend-icon","onClick"]))),128))]),_:2},1024)]),_:2},1024))])):b.radioGroup?(E(),T(O,{"model-value":b.value,"onUpdate:modelValue":b.command,key:P+"-radio-group","hide-details":"",density:"compact",class:"ma-0 pa-0"},{default:m(()=>[(E(!0),D($,null,H(b.choices,(A,F)=>(E(),T(_,{key:F+"-choice"},{default:m(()=>[g(k,{class:"list-action"},{default:m(()=>[g(f,{color:"secondary",label:A.label,value:A.value,density:"compact","hide-details":""},null,8,["label","value"])]),_:2},1024)]),_:2},1024))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])):(E(),T(_,{onClick:A=>b.command(b),disabled:b.disabled,"data-test":r.formatDT(`${n.title} ${S.label} ${b.label}`),key:P+"-list"},ue({default:m(()=>[b.checkbox?(E(),T(k,{key:0,class:"list-action"},{default:m(()=>[g(R,{modelValue:b.checked,"onUpdate:modelValue":A=>b.checked=A,label:b.label,color:"secondary",density:"compact","hide-details":""},null,8,["modelValue","onUpdate:modelValue","label"])]),_:2},1024)):W("",!0),!b.radio&&!b.checkbox?(E(),T(p,{key:1,style:xe("cursor: pointer;"+(b.disabled?"opacity: 0.2":""))},{default:m(()=>[B(M(b.label),1)]),_:2},1032,["style"])):W("",!0)]),_:2},[b.icon?{name:"prepend",fn:m(()=>[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 Qt=ze(Yt,[["render",Xt],["__scopeId","data-v-4d454b93"]]);var en=Object.defineProperty,tn=(t,e,n)=>e in t?en(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Oe=(t,e,n)=>tn(t,typeof e!="symbol"?e+"":e,n);function Ye(t,e){return function(){return t.apply(e,arguments)}}const{toString:nn}=Object.prototype,{getPrototypeOf:Ce}=Object,de=(t=>e=>{const n=nn.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=t=>(t=t.toLowerCase(),e=>de(e)===t),he=t=>e=>typeof e===t,{isArray:ee}=Array,ie=he("undefined");function sn(t){return t!==null&&!ie(t)&&t.constructor!==null&&!ie(t.constructor)&&U(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ze=q("ArrayBuffer");function rn(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ze(t.buffer),e}const on=he("string"),U=he("function"),Xe=he("number"),fe=t=>t!==null&&typeof t=="object",an=t=>t===!0||t===!1,pe=t=>{if(de(t)!=="object")return!1;const e=Ce(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},cn=q("Date"),ln=q("File"),un=q("Blob"),dn=q("FileList"),hn=t=>fe(t)&&U(t.pipe),fn=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||U(t.append)&&((e=de(t))==="formdata"||e==="object"&&U(t.toString)&&t.toString()==="[object FormData]"))},pn=q("URLSearchParams"),[mn,gn,bn,_n]=["ReadableStream","Request","Response","Headers"].map(q),yn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function se(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let i,s;if(typeof t!="object"&&(t=[t]),ee(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 a;for(i=0;i<o;i++)a=r[i],e.call(null,t[a],a,t)}}function Qe(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,et=t=>!ie(t)&&t!==J;function ke(){const{caseless:t}=et(this)&&this||{},e={},n=(i,s)=>{const r=t&&Qe(e,s)||s;pe(e[r])&&pe(i)?e[r]=ke(e[r],i):pe(i)?e[r]=ke({},i):ee(i)?e[r]=i.slice():e[r]=i};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&se(arguments[i],n);return e}const wn=(t,e,n,{allOwnKeys:i}={})=>(se(e,(s,r)=>{n&&U(s)?t[r]=Ye(s,n):t[r]=s},{allOwnKeys:i}),t),vn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Sn=(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)},En=(t,e,n,i)=>{let s,r,o;const a={};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))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Ce(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},xn=(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},Rn=t=>{if(!t)return null;if(ee(t))return t;let e=t.length;if(!Xe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},On=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ce(Uint8Array)),Cn=(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])}},kn=(t,e)=>{let n;const i=[];for(;(n=t.exec(e))!==null;)i.push(n);return i},Tn=q("HTMLFormElement"),In=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,n,i){return n.toUpperCase()+i}),tt=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Ln=q("RegExp"),nt=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),i={};se(n,(s,r)=>{let o;(o=e(s,r,t))!==!1&&(i[r]=o||s)}),Object.defineProperties(t,i)},An=t=>{nt(t,(e,n)=>{if(U(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=t[n];if(U(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+"'")})}})},Pn=(t,e)=>{const n={},i=s=>{s.forEach(r=>{n[r]=!0})};return ee(t)?i(t):i(String(t).split(e)),n},Nn=()=>{},jn=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Te="abcdefghijklmnopqrstuvwxyz",it="0123456789",st={DIGIT:it,ALPHA:Te,ALPHA_DIGIT:Te+Te.toUpperCase()+it},Dn=(t=16,e=st.ALPHA_DIGIT)=>{let n="";const{length:i}=e;for(;t--;)n+=e[Math.random()*i|0];return n};function Un(t){return!!(t&&U(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Fn=t=>{const e=new Array(10),n=(i,s)=>{if(fe(i)){if(e.indexOf(i)>=0)return;if(!("toJSON"in i)){e[s]=i;const r=ee(i)?[]:{};return se(i,(o,a)=>{const u=n(o,s+1);!ie(u)&&(r[a]=u)}),e[s]=void 0,r}}return i};return n(t,0)},Bn=q("AsyncFunction"),qn=t=>t&&(fe(t)||U(t))&&U(t.then)&&U(t.catch),rt=((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",U(J.postMessage)),Vn=typeof queueMicrotask<"u"?queueMicrotask.bind(J):typeof process<"u"&&process.nextTick||rt,c={isArray:ee,isArrayBuffer:Ze,isBuffer:sn,isFormData:fn,isArrayBufferView:rn,isString:on,isNumber:Xe,isBoolean:an,isObject:fe,isPlainObject:pe,isReadableStream:mn,isRequest:gn,isResponse:bn,isHeaders:_n,isUndefined:ie,isDate:cn,isFile:ln,isBlob:un,isRegExp:Ln,isFunction:U,isStream:hn,isURLSearchParams:pn,isTypedArray:On,isFileList:dn,forEach:se,merge:ke,extend:wn,trim:yn,stripBOM:vn,inherits:Sn,toFlatObject:En,kindOf:de,kindOfTest:q,endsWith:xn,toArray:Rn,forEachEntry:Cn,matchAll:kn,isHTMLForm:Tn,hasOwnProperty:tt,hasOwnProp:tt,reduceDescriptors:nt,freezeMethods:An,toObjectSet:Pn,toCamelCase:In,noop:Nn,toFiniteNumber:jn,findKey:Qe,global:J,isContextDefined:et,ALPHABET:st,generateString:Dn,isSpecCompliantForm:Un,toJSONObject:Fn,isAsyncFn:Bn,isThenable:qn,setImmediate:rt,asap:Vn};function v(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)}c.inherits(v,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:c.toJSONObject(this.config),code:this.code,status:this.status}}});const ot=v.prototype,at={};["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=>{at[t]={value:t}}),Object.defineProperties(v,at),Object.defineProperty(ot,"isAxiosError",{value:!0}),v.from=(t,e,n,i,s,r)=>{const o=Object.create(ot);return c.toFlatObject(t,o,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),v.call(o,t.message,e,n,i,s),o.cause=t,o.name=t.name,r&&Object.assign(o,r),o};const Mn=null;function Ie(t){return c.isPlainObject(t)||c.isArray(t)}function ct(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}function lt(t,e,n){return t?t.concat(e).map(function(i,s){return i=ct(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function zn(t){return c.isArray(t)&&!t.some(Ie)}const $n=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function me(t,e,n){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,w){return!c.isUndefined(w[h])});const i=n.metaTokens,s=n.visitor||l,r=n.dots,o=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(!a&&c.isBlob(h))throw new v("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?a&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function l(h,w,f){let k=h;if(h&&!f&&typeof h=="object"){if(c.endsWith(w,"{}"))w=i?w:w.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&zn(h)||(c.isFileList(h)||c.endsWith(w,"[]"))&&(k=c.toArray(h)))return w=ct(w),k.forEach(function(O,R){!(c.isUndefined(O)||O===null)&&e.append(o===!0?lt([w],R,r):o===null?w:w+"[]",u(O))}),!1}return Ie(h)?!0:(e.append(lt(f,w,r),u(h)),!1)}const d=[],p=Object.assign($n,{defaultVisitor:l,convertValue:u,isVisitable:Ie});function _(h,w){if(!c.isUndefined(h)){if(d.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));d.push(h),c.forEach(h,function(f,k){(!(c.isUndefined(f)||f===null)&&s.call(e,f,c.isString(k)?k.trim():k,w,p))===!0&&_(f,w?w.concat(k):[k])}),d.pop()}}if(!c.isObject(t))throw new TypeError("data must be an object");return _(t),e}function ut(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Le(t,e){this._pairs=[],t&&me(t,this,e)}const dt=Le.prototype;dt.append=function(t,e){this._pairs.push([t,e])},dt.toString=function(t){const e=t?function(n){return t.call(this,n,ut)}:ut;return this._pairs.map(function(n){return e(n[0])+"="+e(n[1])},"").join("&")};function Wn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ht(t,e,n){if(!e)return t;const i=n&&n.encode||Wn;c.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let r;if(s?r=s(e,n):r=c.isURLSearchParams(e)?e.toString():new Le(e,n).toString(i),r){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class ft{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){c.forEach(this.handlers,function(n){n!==null&&e(n)})}}const pt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hn=typeof URLSearchParams<"u"?URLSearchParams:Le,Jn=typeof FormData<"u"?FormData:null,Kn=typeof Blob<"u"?Blob:null,Gn={isBrowser:!0,classes:{URLSearchParams:Hn,FormData:Jn,Blob:Kn},protocols:["http","https","file","blob","url","data"]},Ae=typeof window<"u"&&typeof document<"u",Pe=typeof navigator=="object"&&navigator||void 0,Yn=Ae&&(!Pe||["ReactNative","NativeScript","NS"].indexOf(Pe.product)<0),Zn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xn=Ae&&window.location.href||"http://localhost",Qn=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ae,hasStandardBrowserEnv:Yn,hasStandardBrowserWebWorkerEnv:Zn,navigator:Pe,origin:Xn},Symbol.toStringTag,{value:"Module"})),N={...Qn,...Gn};function ei(t,e){return me(t,new N.classes.URLSearchParams,Object.assign({visitor:function(n,i,s,r){return N.isNode&&c.isBuffer(n)?(this.append(i,n.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}function ti(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ni(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 mt(t){function e(n,i,s,r){let o=n[r++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),u=r>=n.length;return o=!o&&c.isArray(s)?s.length:o,u?(c.hasOwnProp(s,o)?s[o]=[s[o],i]:s[o]=i,!a):((!s[o]||!c.isObject(s[o]))&&(s[o]=[]),e(n,i,s[o],r)&&c.isArray(s[o])&&(s[o]=ni(s[o])),!a)}if(c.isFormData(t)&&c.isFunction(t.entries)){const n={};return c.forEachEntry(t,(i,s)=>{e(ti(i),s,n,0)}),n}return null}function ii(t,e,n){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(t)}const re={transitional:pt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",i=n.indexOf("application/json")>-1,s=c.isObject(t);if(s&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return i?JSON.stringify(mt(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t)||c.isReadableStream(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.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 ei(t,this.formSerializer).toString();if((r=c.isFileList(t))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return me(r?{"files[]":t}:t,o&&new o,this.formSerializer)}}return s||i?(e.setContentType("application/json",!1),ii(t)):t}],transformResponse:[function(t){const e=this.transitional||re.transitional,n=e&&e.forcedJSONParsing,i=this.responseType==="json";if(c.isResponse(t)||c.isReadableStream(t))return t;if(t&&c.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"?v.from(r,v.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}}};c.forEach(["delete","get","head","post","put","patch"],t=>{re.headers[t]={}});const si=c.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"]),ri=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]&&si[n])&&(n==="set-cookie"?e[n]?e[n].push(i):e[n]=[i]:e[n]=e[n]?e[n]+", "+i:i)}),e},gt=Symbol("internals");function oe(t){return t&&String(t).trim().toLowerCase()}function ge(t){return t===!1||t==null?t:c.isArray(t)?t.map(ge):String(t)}function oi(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 ai=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Ne(t,e,n,i,s){if(c.isFunction(i))return i.call(this,e,n);if(s&&(e=n),!!c.isString(e)){if(c.isString(i))return e.indexOf(i)!==-1;if(c.isRegExp(i))return i.test(e)}}function ci(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,i)=>n.toUpperCase()+i)}function li(t,e){const n=c.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})})}let j=class{constructor(t){t&&this.set(t)}set(t,e,n){const i=this;function s(o,a,u){const l=oe(a);if(!l)throw new Error("header name must be a non-empty string");const d=c.findKey(i,l);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||a]=ge(o))}const r=(o,a)=>c.forEach(o,(u,l)=>s(u,l,a));if(c.isPlainObject(t)||t instanceof this.constructor)r(t,e);else if(c.isString(t)&&(t=t.trim())&&!ai(t))r(ri(t),e);else if(c.isHeaders(t))for(const[o,a]of t.entries())s(a,o,n);else t!=null&&s(e,t,n);return this}get(t,e){if(t=oe(t),t){const n=c.findKey(this,t);if(n){const i=this[n];if(!e)return i;if(e===!0)return oi(i);if(c.isFunction(e))return e.call(this,i,n);if(c.isRegExp(e))return e.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=oe(t),t){const n=c.findKey(this,t);return!!(n&&this[n]!==void 0&&(!e||Ne(this,this[n],n,e)))}return!1}delete(t,e){const n=this;let i=!1;function s(r){if(r=oe(r),r){const o=c.findKey(n,r);o&&(!e||Ne(n,n[o],o,e))&&(delete n[o],i=!0)}}return c.isArray(t)?t.forEach(s):s(t),i}clear(t){const e=Object.keys(this);let n=e.length,i=!1;for(;n--;){const s=e[n];(!t||Ne(this,this[s],s,t,!0))&&(delete this[s],i=!0)}return i}normalize(t){const e=this,n={};return c.forEach(this,(i,s)=>{const r=c.findKey(n,s);if(r){e[r]=ge(i),delete e[s];return}const o=t?ci(s):String(s).trim();o!==s&&delete e[s],e[o]=ge(i),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return c.forEach(this,(n,i)=>{n!=null&&n!==!1&&(e[i]=t&&c.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join(`
4
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(i=>n.set(i)),n}static accessor(t){const e=(this[gt]=this[gt]={accessors:{}}).accessors,n=this.prototype;function i(s){const r=oe(s);e[r]||(li(n,s),e[r]=!0)}return c.isArray(t)?t.forEach(i):i(t),this}};j.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),c.reduceDescriptors(j.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(i){this[n]=i}}}),c.freezeMethods(j);function je(t,e){const n=this||re,i=e||n,s=j.from(i.headers);let r=i.data;return c.forEach(t,function(o){r=o.call(n,r,s.normalize(),e?e.status:void 0)}),s.normalize(),r}function bt(t){return!!(t&&t.__CANCEL__)}function te(t,e,n){v.call(this,t??"canceled",v.ERR_CANCELED,e,n),this.name="CanceledError"}c.inherits(te,v,{__CANCEL__:!0});function _t(t,e,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?t(n):e(new v("Request failed with status code "+n.status,[v.ERR_BAD_REQUEST,v.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ui(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function di(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(a){const u=Date.now(),l=i[r];o||(o=u),n[s]=a,i[s]=u;let d=r,p=0;for(;d!==s;)p+=n[d++],d=d%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),u-o<e)return;const _=l&&u-l;return _?Math.round(p*1e3/_):void 0}}function hi(t,e){let n=0,i=1e3/e,s,r;const o=(a,u=Date.now())=>{n=u,s=null,r&&(clearTimeout(r),r=null),t.apply(null,a)};return[(...a)=>{const u=Date.now(),l=u-n;l>=i?o(a,u):(s=a,r||(r=setTimeout(()=>{r=null,o(s)},i-l)))},()=>s&&o(s)]}const be=(t,e,n=3)=>{let i=0;const s=di(50,250);return hi(r=>{const o=r.loaded,a=r.lengthComputable?r.total:void 0,u=o-i,l=s(u),d=o<=a;i=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:u,rate:l||void 0,estimated:l&&a&&d?(a-o)/l:void 0,event:r,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(p)},n)},yt=(t,e)=>{const n=t!=null;return[i=>e[0]({lengthComputable:n,total:t,loaded:i}),e[1]]},wt=t=>(...e)=>c.asap(()=>t(...e)),fi=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,pi=N.hasStandardBrowserEnv?{write(t,e,n,i,s,r){const o=[t+"="+encodeURIComponent(e)];c.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),c.isString(i)&&o.push("path="+i),c.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 mi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function gi(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function vt(t,e){return t&&!mi(e)?gi(t,e):e}const St=t=>t instanceof j?{...t}:t;function K(t,e){e=e||{};const n={};function i(l,d,p,_){return c.isPlainObject(l)&&c.isPlainObject(d)?c.merge.call({caseless:_},l,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function s(l,d,p,_){if(c.isUndefined(d)){if(!c.isUndefined(l))return i(void 0,l,p,_)}else return i(l,d,p,_)}function r(l,d){if(!c.isUndefined(d))return i(void 0,d)}function o(l,d){if(c.isUndefined(d)){if(!c.isUndefined(l))return i(void 0,l)}else return i(void 0,d)}function a(l,d,p){if(p in e)return i(l,d);if(p in t)return i(void 0,l)}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:a,headers:(l,d,p)=>s(St(l),St(d),p,!0)};return c.forEach(Object.keys(Object.assign({},t,e)),function(l){const d=u[l]||s,p=d(t[l],e[l],l);c.isUndefined(p)&&d!==a||(n[l]=p)}),n}const Et=t=>{const e=K({},t);let{data:n,withXSRFToken:i,xsrfHeaderName:s,xsrfCookieName:r,headers:o,auth:a}=e;e.headers=o=j.from(o),e.url=ht(vt(e.baseURL,e.url),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let u;if(c.isFormData(n)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((u=o.getContentType())!==!1){const[l,...d]=u?u.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([l||"multipart/form-data",...d].join("; "))}}if(N.hasStandardBrowserEnv&&(i&&c.isFunction(i)&&(i=i(e)),i||i!==!1&&fi(e.url))){const l=s&&r&&pi.read(r);l&&o.set(s,l)}return e},bi=typeof XMLHttpRequest<"u",_i=bi&&function(t){return new Promise(function(e,n){const i=Et(t);let s=i.data;const r=j.from(i.headers).normalize();let{responseType:o,onUploadProgress:a,onDownloadProgress:u}=i,l,d,p,_,h;function w(){_&&_(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let f=new XMLHttpRequest;f.open(i.method.toUpperCase(),i.url,!0),f.timeout=i.timeout;function k(){if(!f)return;const R=j.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:R,config:t,request:f};_t(function(L){e(L),w()},function(L){n(L),w()},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 v("Request aborted",v.ECONNABORTED,t,f)),f=null)},f.onerror=function(){n(new v("Network Error",v.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let R=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const S=i.transitional||pt;i.timeoutErrorMessage&&(R=i.timeoutErrorMessage),n(new v(R,S.clarifyTimeoutError?v.ETIMEDOUT:v.ECONNABORTED,t,f)),f=null},s===void 0&&r.setContentType(null),"setRequestHeader"in f&&c.forEach(r.toJSON(),function(R,S){f.setRequestHeader(S,R)}),c.isUndefined(i.withCredentials)||(f.withCredentials=!!i.withCredentials),o&&o!=="json"&&(f.responseType=i.responseType),u&&([p,h]=be(u,!0),f.addEventListener("progress",p)),a&&f.upload&&([d,_]=be(a),f.upload.addEventListener("progress",d),f.upload.addEventListener("loadend",_)),(i.cancelToken||i.signal)&&(l=R=>{f&&(n(!R||R.type?new te(null,t,f):R),f.abort(),f=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const O=ui(i.url);if(O&&N.protocols.indexOf(O)===-1){n(new v("Unsupported protocol "+O+":",v.ERR_BAD_REQUEST,t));return}f.send(s||null)})},yi=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let i=new AbortController,s;const r=function(l){if(!s){s=!0,a();const d=l instanceof Error?l:this.reason;i.abort(d instanceof v?d:new te(d instanceof Error?d.message:d))}};let o=e&&setTimeout(()=>{o=null,r(new v(`timeout ${e} of ms exceeded`,v.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(r):l.removeEventListener("abort",r)}),t=null)};t.forEach(l=>l.addEventListener("abort",r));const{signal:u}=i;return u.unsubscribe=()=>c.asap(a),u}},wi=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},vi=async function*(t,e){for await(const n of Si(t))yield*wi(n,e)},Si=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()}},xt=(t,e,n,i)=>{const s=vi(t,e);let r=0,o,a=u=>{o||(o=!0,i&&i(u))};return new ReadableStream({async pull(u){try{const{done:l,value:d}=await s.next();if(l){a(),u.close();return}let p=d.byteLength;if(n){let _=r+=p;n(_)}u.enqueue(new Uint8Array(d))}catch(l){throw a(l),l}},cancel(u){return a(u),s.return()}},{highWaterMark:2})},_e=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Rt=_e&&typeof ReadableStream=="function",Ei=_e&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Ot=(t,...e)=>{try{return!!t(...e)}catch{return!1}},xi=Rt&&Ot(()=>{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}),Ct=64*1024,De=Rt&&Ot(()=>c.isReadableStream(new Response("").body)),ye={stream:De&&(t=>t.body)};_e&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!ye[e]&&(ye[e]=c.isFunction(t[e])?n=>n[e]():(n,i)=>{throw new v(`Response type '${e}' is not supported`,v.ERR_NOT_SUPPORT,i)})})})(new Response);const Ri=async t=>{if(t==null)return 0;if(c.isBlob(t))return t.size;if(c.isSpecCompliantForm(t))return(await new Request(N.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(c.isArrayBufferView(t)||c.isArrayBuffer(t))return t.byteLength;if(c.isURLSearchParams(t)&&(t=t+""),c.isString(t))return(await Ei(t)).byteLength},Oi=async(t,e)=>c.toFiniteNumber(t.getContentLength())??Ri(e),Ci=_e&&(async t=>{let{url:e,method:n,data:i,signal:s,cancelToken:r,timeout:o,onDownloadProgress:a,onUploadProgress:u,responseType:l,headers:d,withCredentials:p="same-origin",fetchOptions:_}=Et(t);l=l?(l+"").toLowerCase():"text";let h=yi([s,r&&r.toAbortSignal()],o),w;const f=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let k;try{if(u&&xi&&n!=="get"&&n!=="head"&&(k=await Oi(d,i))!==0){let b=new Request(e,{method:"POST",body:i,duplex:"half"}),P;if(c.isFormData(i)&&(P=b.headers.get("content-type"))&&d.setContentType(P),b.body){const[A,F]=yt(k,be(wt(u)));i=xt(b.body,Ct,A,F)}}c.isString(p)||(p=p?"include":"omit");const O="credentials"in Request.prototype;w=new Request(e,{..._,signal:h,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:i,duplex:"half",credentials:O?p:void 0});let R=await fetch(w);const S=De&&(l==="stream"||l==="response");if(De&&(a||S&&f)){const b={};["status","statusText","headers"].forEach(X=>{b[X]=R[X]});const P=c.toFiniteNumber(R.headers.get("content-length")),[A,F]=a&&yt(P,be(wt(a),!0))||[];R=new Response(xt(R.body,Ct,A,()=>{F&&F(),f&&f()}),b)}l=l||"text";let L=await ye[c.findKey(ye,l)||"text"](R,t);return!S&&f&&f(),await new Promise((b,P)=>{_t(b,P,{data:L,headers:j.from(R.headers),status:R.status,statusText:R.statusText,config:t,request:w})})}catch(O){throw f&&f(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new v("Network Error",v.ERR_NETWORK,t,w),{cause:O.cause||O}):v.from(O,O&&O.code,t,w)}}),Ue={http:Mn,xhr:_i,fetch:Ci};c.forEach(Ue,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const kt=t=>`- ${t}`,ki=t=>c.isFunction(t)||t===null||t===!1,Tt={getAdapter:t=>{t=c.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,!ki(n)&&(i=Ue[(o=String(n)).toLowerCase()],i===void 0))throw new v(`Unknown adapter '${o}'`);if(i)break;s[o||"#"+r]=i}if(!i){const r=Object.entries(s).map(([a,u])=>`adapter ${a} `+(u===!1?"is not supported by the environment":"is not available in the build"));let o=e?r.length>1?`since :
5
+ `+r.map(kt).join(`
6
+ `):" "+kt(r[0]):"as no adapter specified";throw new v("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:Ue};function Fe(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new te(null,t)}function It(t){return Fe(t),t.headers=j.from(t.headers),t.data=je.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Tt.getAdapter(t.adapter||re.adapter)(t).then(function(e){return Fe(t),e.data=je.call(t,t.transformResponse,e),e.headers=j.from(e.headers),e},function(e){return bt(e)||(Fe(t),e&&e.response&&(e.response.data=je.call(t,t.transformResponse,e.response),e.response.headers=j.from(e.response.headers))),Promise.reject(e)})}const Lt="1.7.9",we={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{we[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const At={};we.transitional=function(t,e,n){function i(s,r){return"[Axios v"+Lt+"] Transitional option '"+s+"'"+r+(n?". "+n:"")}return(s,r,o)=>{if(t===!1)throw new v(i(r," has been removed"+(e?" in "+e:"")),v.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}},we.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Ti(t,e,n){if(typeof t!="object")throw new v("options must be an object",v.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 a=t[r],u=a===void 0||o(a,r,t);if(u!==!0)throw new v("option "+r+" must be "+u,v.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new v("Unknown option "+r,v.ERR_BAD_OPTION)}}const ve={assertOptions:Ti,validators:we},z=ve.validators;let G=class{constructor(t){this.defaults=t,this.interceptors={request:new ft,response:new ft}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
7
+ `+s):n.stack=s}catch{}}throw n}}_request(t,e){typeof t=="string"?(e=e||{},e.url=t):e=t||{},e=K(this.defaults,e);const{transitional:n,paramsSerializer:i,headers:s}=e;n!==void 0&&ve.assertOptions(n,{silentJSONParsing:z.transitional(z.boolean),forcedJSONParsing:z.transitional(z.boolean),clarifyTimeoutError:z.transitional(z.boolean)},!1),i!=null&&(c.isFunction(i)?e.paramsSerializer={serialize:i}:ve.assertOptions(i,{encode:z.function,serialize:z.function},!0)),ve.assertOptions(e,{baseUrl:z.spelling("baseURL"),withXsrfToken:z.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let r=s&&c.merge(s.common,s[e.method]);s&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete s[h]}),e.headers=j.concat(r,s);const o=[];let a=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(e)===!1||(a=a&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let l,d=0,p;if(!a){const h=[It.bind(this),void 0];for(h.unshift.apply(h,o),h.push.apply(h,u),p=h.length,l=Promise.resolve(e);d<p;)l=l.then(h[d++],h[d++]);return l}p=o.length;let _=e;for(d=0;d<p;){const h=o[d++],w=o[d++];try{_=h(_)}catch(f){w.call(this,f);break}}try{l=It.call(this,_)}catch(h){return Promise.reject(h)}for(d=0,p=u.length;d<p;)l=l.then(u[d++],u[d++]);return l}getUri(t){t=K(this.defaults,t);const e=vt(t.baseURL,t.url);return ht(e,t.params,t.paramsSerializer)}};c.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}))}}),c.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)});let Ii=class Kt{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(a=>{i.subscribe(a),r=a}).then(s);return o.cancel=function(){i.unsubscribe(r)},o},e(function(s,r,o){i.reason||(i.reason=new te(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 Kt(function(n){e=n}),cancel:e}}};function Li(t){return function(e){return t.apply(null,e)}}function Ai(t){return c.isObject(t)&&t.isAxiosError===!0}const Be={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(Be).forEach(([t,e])=>{Be[e]=t});function Pt(t){const e=new G(t),n=Ye(G.prototype.request,e);return c.extend(n,G.prototype,e,{allOwnKeys:!0}),c.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Pt(K(t,i))},n}const I=Pt(re);I.Axios=G,I.CanceledError=te,I.CancelToken=Ii,I.isCancel=bt,I.VERSION=Lt,I.toFormData=me,I.AxiosError=v,I.Cancel=I.CanceledError,I.all=function(t){return Promise.all(t)},I.spread=Li,I.isAxiosError=Ai,I.mergeConfig=K,I.AxiosHeaders=j,I.formToJSON=t=>mt(c.isHTMLForm(t)?new FormData(t):t),I.getAdapter=Tt.getAdapter,I.HttpStatusCode=Be,I.default=I;const{Axios:vs,AxiosError:Ss,CanceledError:Es,isCancel:xs,CancelToken:Rs,VERSION:Os,all:Cs,Cancel:ks,isAxiosError:Ts,spread:Is,toFormData:Ls,AxiosHeaders:As,HttpStatusCode:Ps,formToJSON:Ns,getAdapter:js,mergeConfig:Ds}=I,Nt=I.create({baseURL:location.origin,timeout:6e4,params:{}});Nt.interceptors.response.use(t=>t,t=>{var e,n,i,s,r,o,a,u,l,d,p;if(t.response){if(t.response.status===401&&OpenC3Auth.updateToken(OpenC3Auth.defaultMinValidity,!0).then(function(w){w&&OpenC3Auth.setTokens()}),t.response.config.headers["Ignore-Errors"]&&t.response.config.headers["Ignore-Errors"].includes(t.response.status.toString()))return Promise.reject(t);let _=`HTTP ${t.response.status} - `;(e=t.response)!=null&&e.statusText&&(_+=`${t.response.statusText} `),(i=(n=t.response)==null?void 0:n.config)!=null&&i.data&&(_+=`${t.response.config.data} `),(r=(s=t.response)==null?void 0:s.data)!=null&&r.message?_+=`${t.response.data.message}`:(a=(o=t.response)==null?void 0:o.data)!=null&&a.exception?_+=`${t.response.data.exception}`:(d=(l=(u=t.response)==null?void 0:u.data)==null?void 0:l.error)!=null&&d.message?(t.response.data.error.class&&(_+=`${t.response.data.error.class} `),_+=`${t.response.data.error.message}`):_+=`${(p=t.response)==null?void 0:p.data}`;const{$cosmosNotify:h}=window;throw h&&h.serious({title:"Network error",body:_}),t}else throw t});let Se=()=>({emit(t,...e){for(let n=this.events[t]||[],i=0,s=n.length;i<s;i++)n[i](...e)},events:{},on(t,e){var n;return((n=this.events)[t]||(n[t]=[])).push(e),()=>{var i;this.events[t]=(i=this.events[t])==null?void 0:i.filter(s=>e!==s)}}});class ae extends Error{constructor(e,n){e instanceof Error?(super(e.message),this.cause=e):super(e),this.reason=n,this.name="ReasonError"}}class qe extends ae{constructor(e){super("Rejected",e),this.name="SubscriptionRejectedError"}}class Pi extends ae{constructor(e){super(e||"Timed out to receive subscription ack"),this.name="SubscriptionTimeoutError"}}class V extends ae{constructor(e,n){n?super(e,n):super("Disconnected",e),this.name="DisconnectedError"}}class Ni extends V{constructor(e){super(e,"stale_connection"),this.name="StaleConnectionError"}}function jt(t){return t?`{${Object.keys(t).sort().filter(e=>t[e]!==void 0).map(e=>{let n=JSON.stringify(t[e]);return`${JSON.stringify(e)}:${n}`}).join(",")}}`:""}class ji{constructor(e){this.channel=e,this.listeners=[]}watch(){this.listeners.push(this.channel.on("presence",e=>{if(e.type==="info"){this._state||(this._state=this.stateFromInfo(e));return}this._state&&(e.type==="join"?this._state[e.id]=e.info:e.type==="leave"&&delete this._state[e.id])}))}reset(){delete this._state}dispose(){delete this._info,delete this._state,this.listeners.forEach(e=>e()),this.listeners.length=0}async join(e,n){if(!this._info)return this._info={id:e,info:n},this.channel.perform("$presence:join",this._info)}async leave(){if(!this._info)return;let e=await this.channel.perform("$presence:leave");return delete this._info,e}async info(){return this._state?this._state:(this._promise||(this._promise=this._sync()),await this._promise,this._state)}async _sync(){this.watch();try{let e=await this.channel.perform("$presence:info",{});return this._state=this.stateFromInfo(e),this._state}finally{delete this._promise}}stateFromInfo(e){return e.records.reduce((n,{id:i,info:s})=>(n[i]=s,n),{})}}const Y=Symbol("state");class Dt{constructor(e={}){this.emitter=Se(),this.params=Object.freeze(e),this.presence=new ji(this),this.initialConnect=!0,this[Y]="idle"}get identifier(){return this._identifier?this._identifier:(this._identifier=jt({channel:this.channelId,...this.params}),this._identifier)}get channelId(){return this.constructor.identifier}get state(){return this[Y]}attached(e){if(this.receiver){if(this.receiver!==e)throw Error("Already connected to a different receiver");return!1}return this.receiver=e,!0}connecting(){this[Y]="connecting"}connected(){if(this.state==="connected"||this.state==="closed")return;this[Y]="connected";let e=!1;this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:e})):this.emit("connect",{reconnect:!0,restored:e})}restored(){if(this.state==="connected")throw Error("Already connected");this[Y]="connected";let e=!0,n=!0;this.initialConnect=!1,this.emit("connect",{reconnect:n,restored:e})}disconnected(e){this.state==="disconnected"||this.state==="closed"||(this[Y]="disconnected",this.presence.reset(),this.emit("disconnect",e))}closed(e){this.state!=="closed"&&(this[Y]="closed",delete this.receiver,this.initialConnect=!0,this.presence.dispose(),this.emit("close",e))}disconnect(){this.state==="idle"||this.state==="closed"||this.receiver.unsubscribe(this)}async perform(e,n){if(this.state==="idle"||this.state==="closed")throw Error("Channel is not subscribed");return this.receiver.perform(this.identifier,e,n)}async send(e){return this.perform(void 0,e)}async whisper(e){try{await this.perform("$whisper",e)}catch(n){let i=this.receiver?this.receiver.logger:null;i&&i.warn("whisper failed: ",n)}}receive(e,n){this.emit("message",e,n)}on(e,n){return this.emitter.on(e,n)}once(e,n){let i=this.emitter.on(e,(...s)=>{i(),n(...s)});return i}emit(e,...n){return this.emitter.emit(e,...n)}ensureSubscribed(){return this.state==="connected"?Promise.resolve():this.state==="closed"?Promise.reject(Error("Channel is unsubscribed")):this.pendingSubscribe()}pendingSubscribe(){return this._pendingSubscribe?this._pendingSubscribe:(this._pendingSubscribe=new Promise((e,n)=>{let i=[()=>delete this._pendingSubscribe];i.push(this.on("connect",()=>{i.forEach(s=>s()),e()})),i.push(this.on("close",s=>{i.forEach(r=>r()),n(s||new ae("Channel was disconnected before subscribing","canceled"))}))}),this._pendingSubscribe)}}class Di{constructor(e){this.id=e,this.intent="unsubscribed",this.state="idle",this.channels=[],this.disposed=!1,this._pendings=[]}add(e){this.channels.includes(e)||this.channels.push(e)}remove(e){let n=this.channels.indexOf(e);n>-1&&this.channels.splice(n,1)}notify(e,...n){this.state=e==="restored"?"connected":e,n.length===1?this.channels.forEach(i=>i[e](n[0])):this.channels.forEach(i=>i[e]())}pending(e){this._checkIntent(e);let n=this._pendings[0];return!n||n.intent!==e?Promise.resolve():n.promise}ensureResubscribed(){this.disposed||(this.intent=void 0,this.ensureSubscribed())}ensureSubscribed(){if(this.intent!=="subscribed"){if(this.disposed)throw Error("Subscription is disposed");this.intent="subscribed",!this._mergeWithPending("unsubscribed")&&this.subscriber(this)}}maybeUnsubscribe(){this.disposed||this.intent==="unsubscribed"||this.channels.length>0||(this.intent="unsubscribed",this._mergeWithPending("subscribed"))||this.unsubscriber(this)}async acquire(e){this._checkIntent(e);let n,i={promise:new Promise(r=>{n=r}),intent:e,release:()=>{this._pendings.splice(this._pendings.indexOf(i),1),n(i)},canceled:!1,acquired:!1},s=this._pendingTop;return this._pendings.push(i),s&&await s.promise,this.gvl&&await this.gvl.acquire(i,e),i.acquired=!0,i}close(e){this.disposed=!0,this.intent=void 0,this.notify("closed",e)}_checkIntent(e){if(!(e==="unsubscribed"||e==="subscribed"))throw Error(`Unknown subscription intent: ${e}`)}get _pendingTop(){return this._pendings.length?this._pendings[this._pendings.length-1]:void 0}_mergeWithPending(e){let n=this._pendingTop;return!n||n.acquired||n.intent!==e?!1:(this._pendings.pop(),n.canceled=!0,!0)}}class Ui{constructor(){this.queue=[]}async acquire(e,n){n==="subscribed"&&(this.queue.push(e.promise.then(()=>{this.queue.splice(this.queue.indexOf(e),1)})),this.queue.length>1&&await this.queue[this.queue.length-2])}}class Fi{constructor(e){e.concurrentSubscribes===!1&&(this.glv=new Ui),this._subscriptions={},this._localToRemote={}}all(){return Object.values(this._subscriptions)}get(e){return this._subscriptions[e]}create(e,{subscribe:n,unsubscribe:i}){let s=this._subscriptions[e]=new Di(e);return s.remoteId=this._localToRemote[e],s.subscriber=n,s.unsubscriber=i,s.gvl=this.glv,s}remove(e){delete this._subscriptions[e],delete this._localToRemote[e]}storeRemoteId(e,n){this._localToRemote[e]=n;let i=this.get(e);i&&(i.remoteId=n)}}class Bi{constructor(e={}){this.subscriptions=new Fi(e),this._pendingMessages=[],this._remoteToLocal={}}subscribe(e,n){this._remoteToLocal[n]=e,this.subscriptions.storeRemoteId(e,n),this.flush(n)}unsubscribe(e){let n=this.subscriptions.get(e);if(!n)return;let i=n.remoteId;i&&delete this._remoteToLocal[i],this.subscriptions.remove(e)}transmit(e,n,i){let s=this._remoteToLocal[e];if(!s){this._pendingMessages.push([e,n,i]);return}let r=this.subscriptions.get(s);r&&r.channels.forEach(o=>{o.receive(n,i)})}notify(e,n,i){let s=this._remoteToLocal[e];if(!s)return;let r=this.subscriptions.get(s);r&&r.channels.forEach(o=>o.emit(n,i))}close(){this._pendingMessages.length=0}get size(){return this.channels.length}get channels(){return this.subscriptions.all().flatMap(e=>e.channels)}flush(e){let n=[];for(let i of this._pendingMessages)i[0]===e?this.transmit(i[0],i[1],i[2]):n.push(i);this._pendingMessages=n}}const Ut={debug:0,info:1,warn:2,error:3};class Ft{constructor(e){this.level=e||"warn"}log(e,n,i){Ut[e]<Ut[this.level]||this.writeLogEntry(e,n,i)}writeLogEntry(){throw Error("Not implemented")}debug(e,n){this.log("debug",e,n)}info(e,n){this.log("info",e,n)}warn(e,n){this.log("warn",e,n)}error(e,n){this.log("error",e,n)}}class ce extends Ft{writeLogEntry(){}}class qi{encode(e){return JSON.stringify(e)}decode(e){try{return JSON.parse(e)}catch{}}}let Vi=0;class Bt{constructor(e={}){let{logger:n}=e;this.logger=n||new ce,this.pendingSubscriptions={},this.pendingUnsubscriptions={},this.subscribeCooldownInterval=e.subscribeCooldownInterval||250,this.subscribeRetryInterval=e.subscribeRetryInterval||5e3}attached(e){this.cable=e}subscribe(e,n){let i={channel:e};n&&Object.assign(i,n);let s=jt(i);if(this.pendingUnsubscriptions[s]){let o=this.subscribeCooldownInterval*1.5;return this.logger.debug(`unsubscribed recently, cooldown for ${o}`,s),new Promise(a=>{setTimeout(()=>{a(this.subscribe(e,n))},o)})}if(this.pendingSubscriptions[s])return this.logger.warn("subscription is already pending, skipping",s),Promise.reject(Error("Already subscribing"));let r=this.subscribeRetryInterval;return new Promise((o,a)=>{let u=++Vi;this.pendingSubscriptions[s]={resolve:o,reject:a,id:u},this.cable.send(this.buildSubscribeRequest(s)),this.maybeRetrySubscribe(u,s,r)})}buildSubscribeRequest(e){return{command:"subscribe",identifier:e}}maybeRetrySubscribe(e,n,i){setTimeout(()=>{let s=this.pendingSubscriptions[n];s&&s.id===e&&(this.logger.warn(`no subscription ack received in ${i}ms, retrying subscribe`,n),this.cable.send(this.buildSubscribeRequest(n)),this.maybeExpireSubscribe(e,n,i))},i)}maybeExpireSubscribe(e,n,i){setTimeout(()=>{let s=this.pendingSubscriptions[n];s&&s.id===e&&(delete this.pendingSubscriptions[n],s.reject(new Pi(`Haven't received subscription ack in ${i*2}ms for ${n}`)))},i)}unsubscribe(e){return this.cable.send({command:"unsubscribe",identifier:e}),this.pendingUnsubscriptions[e]=!0,setTimeout(()=>{delete this.pendingUnsubscriptions[e]},this.subscribeCooldownInterval),Promise.resolve()}perform(e,n,i){return n==="$whisper"?this.whisper(e,i):(i||(i={}),i.action=n,this.cable.send({command:"message",identifier:e,data:JSON.stringify(i)}),Promise.resolve())}whisper(e,n){return this.cable.send({command:"whisper",identifier:e,data:n}),Promise.resolve()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:n,identifier:i,message:s,reason:r,reconnect:o}=e;if(n==="ping")return this.cable.keepalive(e.message);if(this.cable.keepalive(),n==="welcome"){let a=e.sid;return a&&this.cable.setSessionId(a),this.cable.connected()}if(n==="disconnect"){let a=new V(r);this.reset(a),o===!1?this.cable.closed(a):this.cable.disconnected(a);return}if(n==="confirm_subscription"){let a=this.pendingSubscriptions[i];if(!a){this.logger.error("subscription not found, unsubscribing",{type:n,identifier:i}),this.unsubscribe(i);return}return delete this.pendingSubscriptions[i],a.resolve(i)}if(n==="reject_subscription"){let a=this.pendingSubscriptions[i];return a?(delete this.pendingSubscriptions[i],a.reject(new qe)):this.logger.error("subscription not found",{type:n,identifier:i})}if(s)return{identifier:i,message:s};this.logger.warn(`unknown message type: ${n}`,{message:e})}reset(e){for(let n in this.pendingSubscriptions)this.pendingSubscriptions[n].reject(e);this.pendingSubscriptions={}}recoverableClosure(){return!1}}const qt=()=>Date.now()/1e3|0;class Mi extends Bt{constructor(e={}){super(e),this.streamsPositions={},this.subscriptionStreams={},this.pendingHistory={},this.pendingPresence={},this.presenceInfo={},this.restoreSince=e.historyTimestamp,this.restoreSince===void 0&&(this.restoreSince=qt()),this.sessionId=void 0,this.sendPongs=e.pongs}reset(e){for(let n in this.pendingPresence)this.pendingPresence[n].reject(e);return this.pendingPresence={},super.reset()}receive(e){if(typeof e!="object"){this.logger.error("unsupported message format",{message:e});return}let{type:n,identifier:i,message:s}=e;if(n==="disconnect"||n==="reject_subscription")return super.receive(e);if(n==="confirm_subscription")return this.subscriptionStreams[i]||(this.subscriptionStreams[i]=new Set),super.receive(e);if(n==="ping")return this.restoreSince&&(this.restoreSince=qt()),this.sendPongs&&this.sendPong(),this.cable.keepalive(e.message);if(this.cable.keepalive(),n==="confirm_history"){this.logger.debug("history result received",e),this.cable.notify("history_received",i);return}if(n==="reject_history"){this.logger.warn("failed to retrieve history",e),this.cable.notify("history_not_found",i);return}if(n==="welcome"){if(this.sessionId=e.sid,this.sessionId&&this.cable.setSessionId(this.sessionId),e.restored){let r=e.restored_ids||Object.keys(this.subscriptionStreams);for(let o of r)this.cable.send({identifier:o,command:"history",history:this.historyRequestFor(o)}),this.presenceInfo[o]&&this.cable.send({identifier:o,command:"join",presence:this.presenceInfo[o]});return this.cable.restored(r)}return this.cable.connected(this.sessionId)}if(n==="presence"){let r=s.type;if(r==="info"){let o=this.pendingPresence[i];o&&(delete this.pendingPresence[i],o.resolve(s))}else if(r==="error"){let o=this.pendingPresence[i];o&&(delete this.pendingPresence[i],o.reject(new Error("failed to retrieve presence")))}return{type:n,identifier:i,message:s}}if(s){let r=this.trackStreamPosition(i,e.stream_id,e.epoch,e.offset);return{identifier:i,message:s,meta:r}}this.logger.warn(`unknown message type: ${n}`,{message:e})}perform(e,n,i){switch(n){case"$presence:join":return this.join(e,i);case"$presence:leave":return this.leave(e,i);case"$presence:info":return this.presence(e,i)}return super.perform(e,n,i)}unsubscribe(e){return delete this.presenceInfo[e],super.unsubscribe(e)}buildSubscribeRequest(e){let n=super.buildSubscribeRequest(e),i=this.historyRequestFor(e);i&&(n.history=i,this.pendingHistory[e]=!0);let s=this.presenceInfo[e];return s&&(n.presence=s),n}recoverableClosure(){return!!this.sessionId}historyRequestFor(e){let n={},i=!1;if(this.subscriptionStreams[e])for(let s of this.subscriptionStreams[e]){let r=this.streamsPositions[s];r&&(i=!0,n[s]=r)}if(!(!i&&!this.restoreSince))return{since:this.restoreSince,streams:n}}trackStreamPosition(e,n,i,s){if(!(!n||!i))return this.subscriptionStreams[e]||(this.subscriptionStreams[e]=new Set),this.subscriptionStreams[e].add(n),this.streamsPositions[n]={epoch:i,offset:s},{stream:n,epoch:i,offset:s}}async sendPong(){await new Promise(e=>setTimeout(e,0)),this.cable.state==="connected"&&this.cable.send({command:"pong"})}async join(e,n){return this.presenceInfo[e]=n,this.cable.send({command:"join",identifier:e,presence:n}),Promise.resolve()}async leave(e,n){return delete this.presenceInfo[e],this.cable.send({command:"leave",identifier:e,presence:n}),Promise.resolve()}presence(e,n){return this.pendingPresence[e]?(this.logger.warn("presence is already pending, skipping",e),Promise.reject(Error("presence request is already pending"))):new Promise((i,s)=>{this.pendingPresence[e]={resolve:i,reject:s},this.cable.send({command:"presence",identifier:e,data:n})})}}class zi extends ae{constructor(){super("No connection","closed"),this.name="NoConnectionError"}}class Ve extends Dt{constructor(e,n){super(n),this.channelId=e}set channelId(e){this._channelId=e}get channelId(){return this._channelId}}Oe(Ve,"identifier","__ghost__");const $i="$pubsub";class Me extends Dt{async perform(e,n){if(e.startsWith("$"))return super.perform(e,n);throw Error("not implemented")}}Oe(Me,"identifier",$i);const Z=Symbol("state");let Wi=class{constructor({transport:t,protocol:e,encoder:n,logger:i,lazy:s,hubOptions:r,performFailures:o}){this.emitter=Se(),this.transport=t,this.encoder=n,this.logger=i||new ce,this.protocol=e,this.performFailures=o||"throw",this.protocol.attached(this),this.hub=new Bi(r||{}),this[Z]="idle",this.handleClose=this.handleClose.bind(this),this.handleIncoming=this.handleIncoming.bind(this),this.transport.on("close",this.handleClose),this.transport.on("data",this.handleIncoming),this.initialConnect=!0,this.recovering=!1,s===!1&&this.connect().catch(()=>{})}get state(){return this[Z]}async connect(){if(this.state==="connected")return Promise.resolve();if(this.state==="connecting")return this.pendingConnect();this[Z]="connecting";let t=this.pendingConnect();this.logger.debug("connecting");try{await this.transport.open()}catch(e){this.handleClose(e)}return t}setSessionId(t){this.sessionId=t,this.transport.setParam("sid",t)}connected(){if(this.state==="connected")return;this.logger.info("connected"),this[Z]="connected",this.recovering&&this.hub.subscriptions.all().forEach(e=>e.notify("disconnected",new V("recovery_failed"))),this.hub.subscriptions.all().forEach(e=>this._resubscribe(e));let t=!1;this.recovering=!1,this.initialConnect?(this.initialConnect=!1,this.emit("connect",{reconnect:!1,restored:t})):this.emit("connect",{reconnect:!0,restored:t})}restored(t){this.logger.info("connection recovered",{remoteIds:t}),this[Z]="connected",this.hub.subscriptions.all().forEach(i=>{t&&i.remoteId&&t.includes(i.remoteId)?i.notify("restored"):(i.notify("disconnected",new V("recovery_failed")),this._resubscribe(i))});let e=!this.initialConnect,n=!0;this.recovering=!1,this.initialConnect=!1,this.emit("connect",{reconnect:e,restored:n})}notify(t,e,n){e&&typeof e!="string"&&(n=e,e=void 0),e?this.hub.notify(e,"info",{type:t,data:n}):this.emit("info",{type:t,data:n})}handleClose(t){this.logger.debug("transport closed",{error:t}),this.disconnected(new V(t,"transport_closed"))}disconnected(t){(this.state==="connected"||this.state==="connecting")&&(this.logger.info("disconnected",{reason:t}),this[Z]="disconnected",this.recovering=this.protocol.recoverableClosure(t),this.recovering?this.hub.subscriptions.all().forEach(e=>e.notify("connecting")):this.hub.subscriptions.all().forEach(e=>{e.notify("disconnected",t)}),this.protocol.reset(t),this.hub.close(),this.transport.close(),this.emit("disconnect",t))}closed(t){if(this.state==="closed"||this.state==="idle")return;let e;t&&(e=t instanceof V?t:new V(t,void 0)),this.logger.info("closed",{reason:t||"user"}),this[Z]="closed";let n=e||new V("cable_closed");this.hub.subscriptions.all().forEach(i=>i.notify("disconnected",n)),this.hub.close(),this.protocol.reset(),this.transport.close(),this.initialConnect=!0,this.emit("close",e)}disconnect(){this.closed()}handleIncoming(t){if(this.state==="closed"||this.state==="idle")return;let e=this.encoder.decode(t);if(e===void 0){this.logger.error("failed to decode message",{message:t});return}this.logger.debug("incoming data",e);let n=this.protocol.receive(e);if(n){this.logger.debug("processed incoming message",n);let{type:i,identifier:s,message:r,meta:o}=n;i?this.hub.notify(s,i,r):this.hub.transmit(s,r,o)}}send(t){if(this.state==="closed")throw Error("Cable is closed");let e=this.encoder.encode(t);if(e===void 0){this.logger.error("failed to encode message",{message:t});return}this.logger.debug("outgoing message",t),this.transport.send(e)}keepalive(t){this.emit("keepalive",t)}streamFrom(t){let e=new Me({stream_name:t});return this.subscribe(e)}streamFromSigned(t){let e=new Me({signed_stream_name:t});return this.subscribe(e)}subscribeTo(t,e){let n,i;return typeof t=="string"&&(i=t,t=Ve),n=i?new t(i,e):new t(e),this.subscribe(n)}subscribe(t){if(!t.attached(this))return t;let e=t.identifier;t.connecting();let n=this.hub.subscriptions.get(e)||this.hub.subscriptions.create(e,{subscribe:i=>this._subscribe(i,t.channelId,t.params),unsubscribe:i=>this._unsubscribe(i)});return n.add(t),n.intent==="subscribed"&&n.state==="connected"&&t.connected(),n.ensureSubscribed(),t}async _resubscribe(t){t.intent!=="subscribed"||!t.channels[0]||(t.notify("connecting"),t.ensureResubscribed())}async _subscribe(t,e,n){let i=t.id;if(this.state==="idle"&&this.connect().catch(()=>{}),this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:i});return}this.logger.debug("acquiring subscribe lock",{identifier:i});let s=await t.acquire("subscribed");if(s.canceled){this.logger.debug("subscribe lock has been canceled",{identifier:i}),s.release();return}if(this.logger.debug("subscribe lock has been acquired",{identifier:i}),t.intent!=="subscribed"){this.logger.debug("cancel subscribe request, already unsubscribed"),s.release();return}if(this.state!=="connected"){this.logger.debug("cancel subscribe, no connection",{identifier:i}),s.release();return}if(t.state==="connected"){this.logger.debug("already connected, skip subscribe command",{identifier:i}),t.notify("connected"),s.release();return}let r={identifier:e,params:n};this.logger.debug("subscribing",r);try{let o=await this.protocol.subscribe(e,n);this.hub.subscribe(i,o),this.logger.debug("subscribed",{...r,remoteId:o}),t.notify("connected")}catch(o){if(o){if(o instanceof qe&&this.logger.warn("rejected",r),o instanceof V){this.logger.debug("disconnected during subscription; will retry on connect",r),s.release();return}this.logger.error("failed to subscribe",{error:o,...r})}t.close(o),this.hub.unsubscribe(i)}s.release()}unsubscribe(t){let e=t.identifier,n=this.hub.subscriptions.get(e);if(!n)throw Error(`Subscription not found: ${e}`);n.remove(t),t.closed(),n.maybeUnsubscribe()}async _unsubscribe(t){let e=t.id;this.logger.debug("acquiring unsubscribe lock",{identifier:e});let n=await t.acquire("unsubscribed");if(n.canceled){this.logger.debug("unsubscribe lock has been canceled",{identifier:e}),n.release();return}if(this.logger.debug("unsubscribe lock has been acquired",{identifier:e}),t.intent!=="unsubscribed"){this.logger.debug("cancel unsubscribe, no longer needed",{identifier:e,intent:t.intent}),n.release();return}if(t.state==="disconnected"||t.state==="closed"){this.logger.debug(`already ${t.state} connected, skip unsubscribe command`,{identifier:e}),n.release();return}let i=t.remoteId;if(this.logger.debug("unsubscribing...",{remoteId:i}),this.state!=="connected"){this.logger.debug("unsubscribe skipped (cable is not connected)",{id:e}),t.close(),this.hub.unsubscribe(e),n.release();return}try{await this.protocol.unsubscribe(i),this.logger.debug("unsubscribed remotely",{id:e})}catch(s){s&&(s instanceof V?this.logger.debug("cable disconnected during the unsubscribe command execution",{id:e,error:s}):this.logger.error("unsubscribe failed",{id:e,error:s}))}t.intent==="unsubscribed"?(t.close(),this.hub.unsubscribe(e)):t.state="closed",n.release()}async perform(t,e,n){if(this.performFailures==="throw")return this._perform(t,e,n);try{return await this._perform(t,e,n)}catch(i){this.performFailures==="warn"&&this.logger.warn("perform failed",{error:i});return}}async _perform(t,e,n){if(this.state==="connecting"&&await this.pendingConnect(),this.state==="closed"||this.state==="disconnected")throw new zi;let i=this.hub.subscriptions.get(t);if(!i)throw Error(`Subscription not found: ${t}`);if(await i.pending("subscribed"),i.intent!=="subscribed")throw Error(`Subscription is closed: ${t}`);let s=i.remoteId,r={id:s,action:e,payload:n};this.logger.debug("perform",r);try{let o=await this.protocol.perform(s,e,n);return o&&this.logger.debug("perform result",{message:o,request:r}),o}catch(o){throw this.logger.error("perform failed",{error:o,request:r}),o}}on(t,e){return this.emitter.on(t,e)}once(t,e){let n=this.emitter.on(t,(...i)=>{n(),e(...i)});return n}emit(t,...e){return this.emitter.emit(t,...e)}pendingConnect(){return this._pendingConnect?this._pendingConnect:(this._pendingConnect=new Promise((t,e)=>{let n=[()=>delete this._pendingConnect];n.push(this.on("connect",()=>{n.forEach(i=>i()),t()})),n.push(this.on("close",i=>{n.forEach(s=>s()),e(i)})),n.push(this.on("disconnect",i=>{n.forEach(s=>s()),e(i)}))}),this._pendingConnect)}};const Hi={maxMissingPings:2,maxReconnectAttempts:1/0},ne=()=>Date.now(),Vt=(t,e)=>{e=e||{};let{backoffRate:n,jitterRatio:i,maxInterval:s}=e;return n=n||2,i===void 0&&(i=.5),r=>{let o=t*n**r,a=o*n,u=o+(a-o)*Math.random(),l=2*(Math.random()-.5)*i;return u=u*(1+l),s&&s<u&&(u=s),u}};let Mt=class{constructor({pingInterval:t,...e}){if(this.pingInterval=t,!this.pingInterval)throw Error(`Incorrect pingInterval is provided: ${t}`);if(e=Object.assign({},Hi,e),this.strategy=e.reconnectStrategy,!this.strategy)throw Error("Reconnect strategy must be provided");this.maxMissingPings=e.maxMissingPings,this.maxReconnectAttempts=e.maxReconnectAttempts,this.logger=e.logger||new ce,this.state="pending_connect",this.attempts=0,this.disconnectedAt=ne()}watch(t){this.target=t,this.initListeners()}reconnectNow(){return this.state==="connected"||this.state==="pending_connect"||this.state==="closed"?!1:(this.cancelReconnect(),this.state="pending_connect",this.target.connect().catch(t=>{this.logger.info("Failed at reconnecting: "+t)}),!0)}initListeners(){this.unbind=[],this.unbind.push(this.target.on("connect",()=>{this.attempts=0,this.pingedAt=ne(),this.state="connected",this.cancelReconnect(),this.startPolling()})),this.unbind.push(this.target.on("disconnect",()=>{this.disconnectedAt=ne(),this.state="disconnected",this.stopPolling(),this.scheduleReconnect()})),this.unbind.push(this.target.on("close",()=>{this.disconnectedAt=ne(),this.state="closed",this.cancelReconnect(),this.stopPolling()})),this.unbind.push(this.target.on("keepalive",()=>{this.pingedAt=ne()})),this.unbind.push(()=>{this.cancelReconnect(),this.stopPolling()})}dispose(){delete this.target,this.unbind&&this.unbind.forEach(t=>t()),delete this.unbind}startPolling(){this.pollId&&clearTimeout(this.pollId);let t=this.pingInterval+(Math.random()-.5)*this.pingInterval*.5;this.pollId=setTimeout(()=>{this.checkStale(),this.state==="connected"&&this.startPolling()},t)}stopPolling(){this.pollId&&clearTimeout(this.pollId)}checkStale(){let t=ne()-this.pingedAt;t>this.maxMissingPings*this.pingInterval&&(this.logger.warn(`Stale connection: ${t}ms without pings`),this.state="pending_disconnect",this.target.disconnected(new Ni))}scheduleReconnect(){if(this.attempts>=this.maxReconnectAttempts){this.target.close();return}let t=this.strategy(this.attempts);this.attempts++,this.logger.info(`Reconnecting in ${t}ms (${this.attempts} attempt)`),this.state="pending_reconnect",this.reconnnectId=setTimeout(()=>this.reconnectNow(),t)}cancelReconnect(){this.reconnnectId&&(clearTimeout(this.reconnnectId),delete this.reconnnectId)}};class Ji{constructor(e,n={}){this.transports=e,this.transport=null,this.emitter=Se(),this.unbind=[],this.logger=n.logger||new ce}displayName(){return"fallbacked transport"}async open(){for(let e=0;e<this.transports.length;e++){let n=this.transports[e];try{this.transport=n,this.resetListeners(),this.logger.debug(`Trying to connect via ${n.displayName()}`),await n.open(),this.logger.debug(`Connected via ${n.displayName()}`);return}catch(i){this.logger.debug(`Failed to connect via ${n.displayName()}: ${i.message}`)}}throw this.transport=null,this.resetListeners(),new Error("Couldn't connect via any available transport")}send(e){if(!this.transport)throw new Error("No transport is open");this.transport.send(e)}async close(){if(!this.transport)throw new Error("No transport is open");await this.transport.close(),this.transport=null}setURL(){throw new Error("Not implemented. Set URL for each transport separately")}setParam(e,n){this.transports.forEach(i=>{i.setParam(e,n)})}on(e,n){return this.emitter.on(e,n)}once(e,n){let i=this.emitter.on(e,(...s)=>{i(),n(...s)});return i}get url(){return this.transport?this.transport.url:""}resetListeners(){this.unbind.forEach(e=>e()),this.unbind.length=0,this.transport&&this.unbind.push(this.transport.on("open",()=>{this.emitter.emit("open")}),this.transport.on("data",e=>{this.emitter.emit("data",e)}),this.transport.on("close",e=>{this.emitter.emit("close",e)}),this.transport.on("error",e=>{this.emitter.emit("error",e)}))}}class Ki{constructor(e,n={}){this.url=e;let i=n.websocketImplementation;if(i)this.Impl=i;else if(typeof WebSocket<"u")this.Impl=WebSocket;else throw new Error("No WebSocket support");this.connected=!1,this.emitter=Se();let{format:s,subprotocol:r}=n;this.format=s||"text",this.connectionOptions=n.websocketOptions,this.subprotocol=r}displayName(){return"WebSocket("+this.url+")"}open(){return this.connectionOptions?this.ws=new this.Impl(this.url,this.subprotocol,this.connectionOptions):this.ws=new this.Impl(this.url,this.subprotocol),this.ws.binaryType="arraybuffer",this.initListeners(),new Promise((e,n)=>{let i=[];i.push(this.once("open",()=>{i.forEach(s=>s()),e()})),i.push(this.once("close",()=>{i.forEach(s=>s()),n(Error("WS connection closed"))}))})}setURL(e){this.url=e}setParam(e,n){let i=new URL(this.url);i.searchParams.set(e,n);let s=`${i.protocol}//${i.host}${i.pathname}?${i.searchParams}`;this.setURL(s)}send(e){if(!this.ws||!this.connected)throw Error("WebSocket is not connected");this.ws.send(e)}close(){this.ws?this.onclose():this.connected=!1}on(e,n){return this.emitter.on(e,n)}once(e,n){let i=this.emitter.on(e,(...s)=>{i(),n(...s)});return i}initListeners(){this.ws.onerror=e=>{this.connected&&this.emitter.emit("error",e.error||new Error("WS Error"))},this.ws.onclose=()=>{this.onclose()},this.ws.onmessage=e=>{let n=e.data;this.format==="binary"&&(n=new Uint8Array(n)),this.emitter.emit("data",n)},this.ws.onopen=()=>{this.connected=!0,this.emitter.emit("open")}}onclose(){this.ws.onclose=void 0,this.ws.onmessage=void 0,this.ws.onopen=void 0,this.ws.close(),delete this.ws,this.connected=!1,this.emitter.emit("close")}}const zt={protocol:"actioncable-v1-json",pingInterval:3e3,maxReconnectAttempts:1/0,maxMissingPings:2,logLevel:"warn",lazy:!0};function Gi(t,e){if(typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),e=e||{},!t&&!e.transport)throw Error("URL or transport must be specified");e=Object.assign({},zt,e);let{protocol:n,websocketImplementation:i,websocketFormat:s,websocketOptions:r,fallbacks:o,logLevel:a,logger:u,transport:l,encoder:d,lazy:p,monitor:_,pingInterval:h,reconnectStrategy:w,maxMissingPings:f,maxReconnectAttempts:k,subprotocol:O,tokenRefresher:R,historyTimestamp:S,protocolOptions:L,concurrentSubscribes:b}=e;if(u=u||new ce(a),typeof n=="string"){O=O||n;let F=n.substring(0,n.lastIndexOf("-")),X=n.substring(n.lastIndexOf("-")+1);if(L=L||{},F==="actioncable-v1")n=new Bt({logger:u,...L});else if(F==="actioncable-v1-ext")n=new Mi({logger:u,historyTimestamp:S,...L});else throw Error(`Protocol is not supported yet: ${n}`);if(X==="json")d=d||new qi,s=s||"text";else if(X==="msgpack"){if(s="binary",!d)throw Error("Msgpack encoder must be specified explicitly. Use `@anycable/msgpack-encoder` package or build your own")}else if(X==="protobuf"){if(s=s||"binary",!d)throw Error("Protobuf encoder must be specified explicitly. Use `@anycable/protobuf-encoder` package or build your own")}else throw Error(`Protocol is not supported yet: ${n}`)}if(!n)throw Error("Protocol must be specified");l=l||new Ki(t,{websocketImplementation:i,websocketOptions:r,subprotocol:O,format:s}),o&&(l=new Ji([l,...o],{logger:u})),w=w||Vt(h),_!==!1&&(_=_||new Mt({pingInterval:h,reconnectStrategy:w,maxMissingPings:f,maxReconnectAttempts:k,logger:u}));let P={concurrentSubscribes:b},A=new Wi({protocol:n,transport:l,encoder:d,logger:u,lazy:p,hubOptions:P});return _&&(_.watch(A),A.monitor=_),R&&Yi(A,async()=>{try{await R(l)}catch(F){return u.error("Failed to refresh authentication token: "+F),!1}return A.connect().catch(()=>{}),!0}),A}function Yi(t,e){let n=!1;t.on("connect",()=>n=!1),t.on("close",async i=>{if(i){if(n){t.logger.warn("Token auto-refresh is disabled",i);return}i.reason==="token_expired"&&(n=!0,await e())}})}class Zi{constructor(e){this.channel=e}notify(e,...n){typeof this[e]=="function"&&this[e](...n)}perform(e,n={}){this.channel.perform(e,n)}send(e){this.channel.send(e)}get identifier(){return this.channel.identifier}unsubscribe(){return this.channel.disconnect()}}class Xi extends Ve{constructor(e,n,i){super(e,n),this.subscription=new Zi(this),Object.assign(this.subscription,i),this.on("connect",()=>this.subscription.notify("connected")),this.on("disconnect",()=>this.subscription.notify("disconnected",{allowReconnect:!0})),this.on("message",s=>this.subscription.notify("received",s)),this.on("close",s=>{s&&s instanceof qe?this.subscription.notify("rejected"):this.subscription.notify("disconnected",{allowReconnect:!1})})}}class Qi{constructor(e){this.cable=e}create(e,n){let i,s;typeof e=="object"?(i=e.channel,delete e.channel,s=e):(i=e,s={});let r=new Xi(i,s,n);return r.subscription.notify("initialized"),this.cable.subscribe(r),r.subscription}findAll(e){return this.cable.hub.channels.filter(n=>n.identifier===e).map(n=>n.subscription)}}class es{constructor(e){this.cable=e,this.subscriptions=new Qi(e)}}class ts extends Ft{writeLogEntry(e,n,i){i?console[e](n,i):console[e](n)}}class ns extends Mt{watch(e){super.watch(e),this.initActivityListeners()}initActivityListeners(){if(typeof document<"u"&&typeof window<"u"&&document.addEventListener&&window.addEventListener){let e=()=>{document.hidden||this.reconnectNow()&&this.logger.debug("Trigger reconnect due to visibility change")},n=s=>{this.reconnectNow()&&this.logger.debug("Trigger reconnect",{event:s})},i=()=>this.disconnect(new V("page_frozen"));document.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",n,!1),window.addEventListener("online",n,!1),window.addEventListener("resume",n,!1),window.addEventListener("freeze",i,!1),this.unbind.push(()=>{document.removeEventListener("visibilitychange",e,!1),window.removeEventListener("focus",n,!1),window.removeEventListener("online",n,!1),window.removeEventListener("resume",n,!1),window.removeEventListener("freeze",i,!1)})}}disconnect(e){this.state==="disconnected"||this.state==="closed"||(this.logger.info("Disconnecting",{reason:e.message}),this.cancelReconnect(),this.stopPolling(),this.state="pending_disconnect",this.target.disconnected(e))}}const is=["cable","action-cable"],ss="/cable",$t=(t,e)=>{for(let n of is){let i=t.head.querySelector(`meta[name='${n}-${e}']`);if(i)return i.getAttribute("content")}},Wt=t=>t.match(/wss?:\/\//)?t:typeof window<"u"?`${window.location.protocol.replace("http","ws")}//${window.location.host}${t}`:t,rs=()=>{if(typeof document<"u"&&document.head){let t=$t(document,"url");if(t)return Wt(t)}return Wt(ss)},os=()=>{if(typeof document<"u"&&document.head){let t=$t(document,"history-timestamp");if(t)return t|0}};function as(t,e){typeof t=="object"&&typeof e>"u"&&(e=t,t=void 0),t=t||rs(),e=e||{},e.historyTimestamp||(e.historyTimestamp=os()),e=Object.assign({},zt,e);let{logLevel:n,logger:i,pingInterval:s,reconnectStrategy:r,maxMissingPings:o,maxReconnectAttempts:a}=e;return i=e.logger=e.logger||new ts(n),r=e.reconnectStrategy=e.reconnectStrategy||Vt(s),e.monitor!==!1&&(e.monitor=e.monitor||new ns({pingInterval:s,reconnectStrategy:r,maxMissingPings:o,maxReconnectAttempts:a,logger:i})),Gi(t,e)}function cs(t,e){let n=as(t,e);return new es(n)}class Ht{constructor(e="/openc3-api/cable"){this._cable=null,this._url=e}disconnect(){this._cable&&(this._cable.cable.disconnect(),this._cable=null)}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);o=new URL(o,document.baseURI).href,this._cable=cs(o)}return this._cable.subscriptions.create({channel:e,...s},i)})}recordPing(){}}class Jt{constructor(){Oe(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 a=new Error;throw o.response?(a.name=o.response.data.error.data.class,a.message=o.response.data.error.data.message,a.object=o.response.data.error):o.request?(a.name="Request error",a.message="Request error, no response received"):a.name="Unknown error",a}}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,a=null;for(let u=0;u<o;u++)a=this.decode_openc3_type(r[u][1]),a!==null&&(r[u][1]=a)}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,a=null;for(let u=0;u<o;u++)a=this.decode_openc3_type(r[0][u]),a!==null&&(r[0][u]=a);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 a=new Error;throw a.name="TypeError",a.message=`Invalid data type ${n}. Valid options are RAW, CONVERTED, FORMATTED, and WITH_UNITS.`,a}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 a in s)Object.prototype.hasOwnProperty.call(s,a)&&(o=this.encode_openc3_type(s[a]),o!==null&&(s[a]=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])}update_news(){return this.exec("update_news",[])}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 ls={components:{LabelvalueWidget:Ke,LabelvaluelimitsbarWidget:Ge},props:{modelValue:{type:Array,default:()=>[]},timeZone:{type:String,default:"local"}},mixins:[Ee],data(){return{api:null,cable:new Ht,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 Jt;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(a=>a.includes(r));if(o===-1)break;{let a=this.itemList[o].lastIndexOf("__");this.removeItem(this.itemList[o].substring(0,a))}}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}}},us=["status"],ds={class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},hs={class:"font-weight-black"};function fs(t,e,n,i,s,r){const o=y("v-text-field"),a=y("v-row"),u=y("labelvaluelimitsbar-widget"),l=y("labelvalue-widget"),d=y("v-btn"),p=y("v-tooltip"),_=y("v-divider"),h=y("v-card"),w=y("v-spacer"),f=y("v-toolbar"),k=y("v-card-text"),O=y("v-card-actions"),R=y("v-dialog");return E(),D("div",null,[g(h,{class:"pa-5"},{default:m(()=>[g(a,{class:"ma-1"},{default:m(()=>[g(o,{density:"compact",variant:"outlined",readonly:"","hide-details":"",label:"Overall Limits State","model-value":r.overallStateFormatted,class:Re(r.textFieldClass),style:{"margin-right":"10px","max-width":"280px"},"data-test":"overall-state"},ue({_:2},[r.astroStatus?{name:"prepend-inner",fn:m(()=>[C("rux-status",{status:r.astroStatus},null,8,us)]),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(a,{"data-test":"limits-row",class:"my-0 ml-1 mr-1"},{default:m(()=>e[2]||(e[2]=[C("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Timestamp",-1),C("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Item Name",-1),C("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"200px"}},"Value",-1),C("div",{class:"pa-1 mt-1 mr-2 label",style:{width:"180px"}},"Limits Bar",-1),C("div",{class:"pa-1 mt-1 mr-2 label"},"Controls",-1)])),_:1}),(E(!0),D($,null,H(s.items,(S,L)=>(E(),D("div",{key:S.key},[g(a,{"data-test":"limits-row",class:"align-center my-0 mx-1"},{default:m(()=>[C("div",ds,M(S.timestamp),1),S.limits?(E(),T(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(),T(l,{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(p,{location:"top"},{activator:m(({props:b})=>[g(d,Q({icon:"mdi-close-circle-multiple",variant:"text",density:"compact",class:"mr-2",onClick:P=>r.ignorePacket(S.key),ref_for:!0},b),null,16,["onClick"])]),default:m(()=>[e[3]||(e[3]=C("span",null,"Ignore Entire Packet",-1))]),_:2},1024),g(p,{location:"top"},{activator:m(({props:b})=>[g(d,Q({icon:"mdi-close-circle",variant:"text",density:"compact",class:"mr-2",onClick:P=>r.ignoreItem(S.key),ref_for:!0},b),null,16,["onClick"])]),default:m(()=>[e[4]||(e[4]=C("span",null,"Ignore Item",-1))]),_:2},1024),g(p,{location:"top"},{activator:m(({props:b})=>[g(d,Q({icon:"mdi-eye-off",variant:"text",density:"compact",class:"mr-2",onClick:P=>r.removeItem(S.key),ref_for:!0},b),null,16,["onClick"])]),default:m(()=>[e[5]||(e[5]=C("span",null,"Temporarily Hide Item",-1))]),_:2},1024)]),_:2},1024),L<s.items.length?(E(),T(_,{key:L})):W("",!0)]))),128)),e[6]||(e[6]=C("div",{class:"footer"},' Note: Timestamp is "now" for items currently out of limits when the page is loaded. ',-1))]),_:1}),g(R,{modelValue:s.ignoredItemsDialog,"onUpdate:modelValue":e[1]||(e[1]=S=>s.ignoredItemsDialog=S),"max-width":"600"},{default:m(()=>[g(h,null,{default:m(()=>[g(f,{height:"24"},{default:m(()=>[g(w),e[7]||(e[7]=C("span",null,"Ignored Items",-1)),g(w)]),_:1}),g(k,{class:"mt-2"},{default:m(()=>[C("div",null,[(E(!0),D($,null,H(r.ignoredFormatted,(S,L)=>(E(),D("div",{key:L},[g(a,{class:"ma-1 align-center"},{default:m(()=>[C("span",hs,M(S),1),g(w),g(d,{onClick:b=>r.restoreItem(L),icon:"mdi-delete",density:"compact",variant:"text","data-test":`remove-ignore-${L}`},null,8,["onClick","data-test"])]),_:2},1024),L<r.ignoredFormatted.length-1?(E(),T(_,{key:L})):W("",!0)]))),128))])]),_:1}),g(O,{class:"px-2"},{default:m(()=>[g(d,{variant:"outlined",onClick:r.clearAll},{default:m(()=>e[8]||(e[8]=[B(" Clear All ")])),_:1},8,["onClick"]),g(w),g(d,{variant:"flat",onClick:e[0]||(e[0]=S=>s.ignoredItemsDialog=!1)},{default:m(()=>e[9]||(e[9]=[B(" Ok ")])),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const ps=le(ls,[["render",fs],["__scopeId","data-v-dd6c39b3"]]),ms={props:{historyCount:{type:Number,default:1e3},timeZone:{type:String,default:"local"}},mixins:[Ee],data(){return{data:[],cable:new Ht,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}}},gs=["status"];function bs(t,e,n,i,s,r){const o=y("v-spacer"),a=y("v-text-field"),u=y("v-card-title"),l=y("v-data-table"),d=y("v-card");return E(),T(d,{class:"card-height"},{default:m(()=>[g(u,{class:"d-flex align-center"},{default:m(()=>[e[1]||(e[1]=B(" Limits Events ")),g(o),g(a,{modelValue:s.search,"onUpdate:modelValue":e[0]||(e[0]=p=>s.search=p),label:"Search","prepend-inner-icon":"mdi-magnify",clearable:"",variant:"outlined",density:"compact","single-line":"","hide-details":"",class:"search"},null,8,["modelValue"])]),_:1}),g(l,{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":m(({item:p})=>[C("span",null,M(t.formatNanoseconds(p.time_nsec,n.timeZone)),1)]),"item.level":m(({item:p})=>[C("rux-status",{status:r.getStatus(p.message)},null,8,gs)]),"item.message":m(({item:p})=>[C("span",{class:Re(r.getColorClass(p.message))},M(p.message),3)]),_:1},8,["headers","items","search","height"])]),_:1})}const _s={components:{LimitsControl:ps,LimitsEvents:le(ms,[["render",bs],["__scopeId","data-v-210db24e"]]),TopBar:Qt,OpenConfigDialog:He,SaveConfigDialog:We},mixins:[$e],data(){return{title:"Limits Monitor",configKey:"limits_monitor",api:new Jt,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 ys(t,e,n,i,s,r){const o=y("top-bar"),a=y("limits-control"),u=y("limits-events"),l=y("open-config-dialog"),d=y("save-config-dialog"),p=y("v-spacer"),_=y("v-toolbar"),h=y("v-select"),w=y("v-card-text"),f=y("v-btn"),k=y("v-card-actions"),O=y("v-card"),R=y("v-dialog");return E(),D("div",null,[g(o,{menus:s.menus,title:s.title},null,8,["menus","title"]),(E(),T(a,{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]=C("div",{style:{height:"15px"}},null,-1)),g(u,{"time-zone":s.timeZone},null,8,["time-zone"]),s.openConfig?(E(),T(l,{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"])):W("",!0),s.saveConfig?(E(),T(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"])):W("",!0),g(R,{modelValue:s.limitsSetDialog,"onUpdate:modelValue":e[5]||(e[5]=S=>s.limitsSetDialog=S),"max-width":"650"},{default:m(()=>[g(O,null,{default:m(()=>[g(_,{height:"24"},{default:m(()=>[g(p),e[6]||(e[6]=C("span",null,"Change Limits Set",-1)),g(p)]),_:1}),g(w,{class:"mt-6"},{default:m(()=>[e[7]||(e[7]=C("span",{style:{display:"block"}}," The Limits Set is a global option which changes the Limits Set across all tools. ",-1)),e[8]||(e[8]=C("span",{style:{display:"block"}}," NOTE: Changing this option clears the current list and recalculates based on the new set. ",-1)),g(h,{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:m(()=>[g(p),g(f,{variant:"outlined",onClick:e[4]||(e[4]=S=>s.limitsSetDialog=!1)},{default:m(()=>e[9]||(e[9]=[B(" Cancel ")])),_:1}),g(f,{variant:"flat",onClick:r.setLimitsSet},{default:m(()=>e[10]||(e[10]=[B(" Ok ")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Fs=Gt("default",le(_s,[["render",ys]]))}}});
@@ -1 +1 @@
1
- System.register(["./BarColumn-Cdu3OoMa-f3e59682751452abe45e.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(d,p){"use strict";var l,r,a,n,s,t,o,c,m;return{setters:[i=>{l=i.l},i=>{r=i.resolveComponent,a=i.openBlock,n=i.createBlock,s=i.withCtx,t=i.createElementVNode,o=i.mergeProps,c=i.toDisplayString},i=>{m=i.s},null,null,null,null,null],execute:function(){const i={mixins:[l],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];if(e)return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function _(e,u,I,w,y,v){const h=r("v-tooltip");return a(),n(h,{location:"top"},{activator:s(({props:g})=>[t("div",o({class:"limitsbar",style:[e.cssProps,e.computedStyle]},g),u[0]||(u[0]=[t("div",{class:"limitsbar__container"},[t("div",{class:"limitsbar__redlow"}),t("div",{class:"limitsbar__redhigh"}),t("div",{class:"limitsbar__yellowlow"}),t("div",{class:"limitsbar__yellowhigh"}),t("div",{class:"limitsbar__greenlow"}),t("div",{class:"limitsbar__greenhigh"}),t("div",{class:"limitsbar__blue"}),t("div",{class:"limitsbar__line"}),t("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:s(()=>[t("span",null,c(v.limitsRange),1)]),_:1})}const b=d("default",m(i,[["render",_],["__scopeId","data-v-9f79e720"]]))}}});
1
+ System.register(["./BarColumn-CNhS2KKq-3dc808075c1ad070de8d.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(d,p){"use strict";var l,r,a,n,s,t,o,c,m;return{setters:[i=>{l=i.l},i=>{r=i.resolveComponent,a=i.createBlock,n=i.openBlock,s=i.withCtx,t=i.createElementVNode,o=i.toDisplayString,c=i.mergeProps},i=>{m=i.s},null,null,null,null,null],execute:function(){const i={mixins:[l],data(){return{width:160,height:22}},computed:{limitsRange(){let e=this.limitsSettings[this.selectedLimitsSet];if(e)return e.length===4?`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]}`:`RL/${e[0]} YL/${e[1]} YH/${e[2]} RH/${e[3]} GL/${e[4]} GH/${e[5]}`;throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSBAR",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSBAR",3,6,"LIMITSBAR <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function h(e,u,w,I,y,v){const _=r("v-tooltip");return n(),a(_,{location:"top"},{activator:s(({props:g})=>[t("div",c({class:"limitsbar",style:[e.cssProps,e.computedStyle]},g),u[0]||(u[0]=[t("div",{class:"limitsbar__container"},[t("div",{class:"limitsbar__redlow"}),t("div",{class:"limitsbar__redhigh"}),t("div",{class:"limitsbar__yellowlow"}),t("div",{class:"limitsbar__yellowhigh"}),t("div",{class:"limitsbar__greenlow"}),t("div",{class:"limitsbar__greenhigh"}),t("div",{class:"limitsbar__blue"}),t("div",{class:"limitsbar__line"}),t("div",{class:"limitsbar__arrow"})],-1)]),16)]),default:s(()=>[t("span",null,o(v.limitsRange),1)]),_:1})}const b=d("default",m(i,[["render",h],["__scopeId","data-v-9f79e720"]]))}}});
@@ -1 +1 @@
1
- System.register(["./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(u,h){"use strict";var r,a,l,i,s,n,o,c;return{setters:[e=>{r=e.L},e=>{a=e.resolveComponent,l=e.openBlock,i=e.createElementBlock,s=e.normalizeStyle,n=e.createElementVNode,o=e.createVNode},e=>{c=e.s},null,null,null,null,null],execute:function(){const e={mixins:[r],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&this.parameters[5].toLowerCase()==="true"&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){let t="CONVERTED";return this.parameters[3]&&(t=this.parameters[3]),t}}};function d(t,f,g,v,x,p){const m=a("label-widget");return l(),i("div",{ref:"container",class:"d-flex flex-row",style:s(t.computedStyle)},[n("div",{class:"led align-self-center",style:s(p.cssProps)},null,4),o(m,{parameters:p.labelName,settings:t.appliedSettings,style:s(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const y=u("default",c(e,[["render",d],["__scopeId","data-v-87ec8e4f"]]))}}});
1
+ System.register(["./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(p,h){"use strict";var r,a,l,i,s,n,o,u;return{setters:[e=>{r=e.L},e=>{a=e.resolveComponent,l=e.createElementBlock,i=e.openBlock,s=e.normalizeStyle,n=e.createElementVNode,o=e.createVNode},e=>{u=e.s},null,null,null,null,null],execute:function(){const e={mixins:[r],data(){return{radius:15,fullLabelDisplay:!1}},created(){this.parameters[4]&&(this.radius=parseInt(this.parameters[4])),this.parameters[5]&&this.parameters[5].toLowerCase()==="true"&&(this.fullLabelDisplay=!0)},computed:{labelName(){return this.fullLabelDisplay?[this.parameters[0]+" "+this.parameters[1]+" "+this.parameters[2]]:[this.parameters[2]]},cssProps(){return{"--height":this.radius+"px","--width":this.radius+"px","--color":this.limitsColor}}},methods:{getType(){let t="CONVERTED";return this.parameters[3]&&(t=this.parameters[3]),t}}};function d(t,y,g,v,C,c){const m=a("label-widget");return i(),l("div",{ref:"container",class:"d-flex flex-row",style:s(t.computedStyle)},[n("div",{class:"led align-self-center",style:s(c.cssProps)},null,4),o(m,{parameters:c.labelName,settings:t.appliedSettings,style:s(t.computedStyle),"widget-index":1},null,8,["parameters","settings","style"])],4)}const f=p("default",u(e,[["render",d],["__scopeId","data-v-87ec8e4f"]]))}}});
@@ -1 +1 @@
1
- System.register(["./BarColumn-Cdu3OoMa-f3e59682751452abe45e.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(n,v){"use strict";var a,s,l,r,h,d;return{setters:[i=>{a=i.l},i=>{s=i.openBlock,l=i.createElementBlock,r=i.normalizeStyle,h=i.createStaticVNode},i=>{d=i.s},null,null,null,null,null],execute:function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function o(e,t,g,u,b,c){return s(),l("div",{class:"limitsbar",style:r([c.cssProps,e.computedStyle])},t[0]||(t[0]=[h('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)]),4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))}}});
1
+ System.register(["./BarColumn-CNhS2KKq-3dc808075c1ad070de8d.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(n,v){"use strict";var a,s,l,h,r,d;return{setters:[i=>{a=i.l},i=>{s=i.createElementBlock,l=i.openBlock,h=i.normalizeStyle,r=i.createStaticVNode},i=>{d=i.s},null,null,null,null,null],execute:function(){const i={mixins:[a],data(){return{width:22,height:120}},computed:{cssProps:function(){let e=this.screenValues[this.valueId][0],t=this.modifyLimits(this.limitsSettings[this.selectedLimitsSet]);if(t)return this.calcLimits(t),{"--height":this.height+"px","--width":this.width+"px","--container-width":this.width-5+"px","--position":this.calcPosition(e,t)+"%","--redlow-height":this.redLow+"%","--redhigh-height":this.redHigh+"%","--yellowlow-height":this.yellowLow+"%","--yellowhigh-height":this.yellowHigh+"%","--greenlow-height":this.greenLow+"%","--greenhigh-height":this.greenHigh+"%","--blue-height":this.blue+"%"};throw{line:this.line,lineNumber:this.lineNumber,keyword:"LIMITSCOLUMN",parameters:this.parameters,message:"Item has no limits settings",usage:"Only items with limits"}}},created(){this.verifyNumParams("LIMITSCOLUMN",3,6,"LIMITSCOLUMN <TARGET> <PACKET> <ITEM> <TYPE> <WIDTH> <HEIGHT>")}};function o(e,t,g,u,b,c){return l(),s("div",{class:"limitsbar",style:h([c.cssProps,e.computedStyle])},t[0]||(t[0]=[r('<div class="limitsbar__container" data-v-a4a8f4ab><div class="limitsbar__redlow" data-v-a4a8f4ab></div><div class="limitsbar__redhigh" data-v-a4a8f4ab></div><div class="limitsbar__yellowlow" data-v-a4a8f4ab></div><div class="limitsbar__yellowhigh" data-v-a4a8f4ab></div><div class="limitsbar__greenlow" data-v-a4a8f4ab></div><div class="limitsbar__greenhigh" data-v-a4a8f4ab></div><div class="limitsbar__blue" data-v-a4a8f4ab></div><div class="limitsbar__line" data-v-a4a8f4ab></div><div class="limitsbar__arrow" data-v-a4a8f4ab></div></div>',1)]),4)}const m=n("default",d(i,[["render",o],["__scopeId","data-v-a4a8f4ab"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./GraphWidget-BTNYbd21-b283022420b6bbfd29e6.js","./main-8e72d39621128aae1028.js","vue","./Graph-EV7oK3qM-e8913b039617d63183dd.js","single-spa","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","vuex","vuetify"],function(p,u){"use strict";var i,n,r,a,o,l,d;return{setters:[t=>{i=t._},t=>{n=t.s},t=>{r=t.resolveComponent,a=t.createBlock,o=t.openBlock,l=t.normalizeStyle},t=>{d=t.S},null,null,null,null,null],execute:function(){const t={components:{Graph:d},mixins:[i]};function h(e,s,g,v,S,f){const c=r("graph");return o(),a(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:l(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",n(t,[["render",h]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js","./main-8e72d39621128aae1028.js","vue","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(k,B){"use strict";var c,o,m,r,n,g,a,l,p,d,f;return{setters:[e=>{c=e.r},e=>{o=e.s,m=e.a},e=>{r=e.createElementBlock,n=e.openBlock,g=e.normalizeStyle,a=e.Fragment,l=e.renderList,p=e.createBlock,d=e.resolveDynamicComponent,f=e.mergeProps},null,null,null,null,null],execute:function(){const e={mixins:[c],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(u=>{u.settings.find(i=>i[0]==="MARGIN"||i[0]==="RAW"&&i[1].toUpperCase().includes("MARGIN"))===void 0&&u.settings.push(["MARGIN",s])})}}};function y(s,u,i,A,E,h){return n(),r("table",{style:g(s.computedStyle),role:"presentation"},[(n(!0),r(a,null,l(h.widgetChunks,(v,C)=>(n(),r("tr",{key:"r"+C},[(n(!0),r(a,null,l(v,(t,w)=>(n(),r("td",{key:"c"+w},[(n(),p(d(t.type),f({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 b=k("default",o(e,[["render",y]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.openBlock,r=e.createBlock,n=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,I,f,c){const h=a("rux-progress");return l(),r(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(u,p){"use strict";var s,a,l,r,n,i;return{setters:[e=>{s=e.o},e=>{a=e.resolveComponent,l=e.createBlock,r=e.openBlock,n=e.normalizeStyle},e=>{i=e.s},null,null,null,null],execute:function(){const e={mixins:[s],props:{value:{default:null}},data:function(){return{valueId:null,scaleFactor:1,width:150}},computed:{_value:function(){let t=this.value;return t===null&&(t=this.screenValues[this.valueId][0]),parseInt(parseFloat(t)*this.scaleFactor)}},created:function(){if(this.parameters[3]&&(this.scaleFactor=parseFloat(this.parameters[3])),this.width=this.setWidth(this.parameters[4],"px",this.width),this.value===null){let t="CONVERTED";this.parameters[5]&&(t=this.parameters[5]),this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${t}`,this.$emit("addItem",this.valueId)}},unmounted:function(){this.$emit("deleteItem",this.valueId)}};function o(t,m,v,f,I,c){const h=a("rux-progress");return r(),l(h,{value:c._value,class:"progress",style:n(t.computedStyle)},null,8,["value","style"])}const d=u("default",i(e,[["render",o],["__scopeId","data-v-85bc2857"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(o,d){"use strict";var l,t,n,a,r,s;return{setters:[e=>{l=e.o},e=>{t=e.resolveComponent,n=e.createBlock,a=e.openBlock,r=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 a(),n(p,{"hide-details":"",dense:"",label:v.label,style:r(i.computedStyle),value:c.value},null,8,["label","style","value"])}const m=o("default",s(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(h,f){"use strict";var a,l,s,r,c,o,i,u,m,d,p,g;return{setters:[e=>{a=e.r},e=>{l=e.resolveComponent,s=e.createBlock,r=e.openBlock,c=e.normalizeStyle,o=e.withCtx,i=e.createElementBlock,u=e.Fragment,m=e.renderList,d=e.resolveDynamicComponent,p=e.mergeProps},e=>{g=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],data(){return{selectedIndex:0}},created(){this.parameters[0]&&(this.selectedIndex=parseInt(this.parameters[0]))},methods:{selected(){return this.selectedIndex}}};function k(n,v,I,z,y,E){const C=l("v-radio-group");return r(),s(C,{"hide-details":"",density:"compact",modelValue:y.selectedIndex,"onUpdate:modelValue":v[0]||(v[0]=t=>y.selectedIndex=t),style:c(n.computedStyle)},{default:o(()=>[(r(!0),i(u,null,m(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 B=h("default",g(e,[["render",k]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(c,d){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.openBlock,n=t.createElementBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.s},null,null,null,null],execute:function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,v,u){return a(),n("div",{class:"rangebar",style:h([u.cssProps,e.computedStyle])},s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)]),4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(c,d){"use strict";var r,a,n,h,i,l;return{setters:[t=>{r=t.o},t=>{a=t.createElementBlock,n=t.openBlock,h=t.normalizeStyle,i=t.createElementVNode},t=>{l=t.s},null,null,null,null],execute:function(){const t={mixins:[r],data(){return{width:160,height:22}},computed:{cssProps(){return{"--height":this.height+"px","--width":this.width+"px","--container-height":this.height-5+"px","--position":this.calcPosition()+"%"}},min(){return parseInt(this.parameters[3])},max(){return parseInt(this.parameters[4])},range(){return this.max-this.min}},created(){const e=this.parameters[5]?this.parameters[5]:"CONVERTED";this.valueId=`${this.parameters[0]}__${this.parameters[1]}__${this.parameters[2]}__${e}`,this.$emit("addItem",this.valueId),this.width=this.setWidth(this.parameters[6],"px",this.width),this.height=this.setHeight(this.parameters[7],"px",this.height)},unmounted(){this.$emit("deleteItem",this.valueId)},methods:{calcPosition(){let e=this.screenValues[this.valueId][0];if(!e)return 0;if(e.raw)return e.raw==="-Infinity"?0:100;const s=(e-this.min)/this.range*100;return s>100?100:s<0?0:s}}};function o(e,s,p,g,v,u){return n(),a("div",{class:"rangebar",style:h([u.cssProps,e.computedStyle])},s[0]||(s[0]=[i("div",{class:"rangebar__container"},[i("div",{class:"rangebar__line"}),i("div",{class:"rangebar__arrow"})],-1)]),4)}const m=c("default",l(t,[["render",o],["__scopeId","data-v-34d37e7c"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.openBlock,a=t.createBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null,null],execute:function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const p=r("rux-monitoring-icon");return c(),a(p,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(m,d){"use strict";var i,r,c,a,o,u;return{setters:[t=>{i=t.o},t=>{r=t.resolveComponent,c=t.createBlock,a=t.openBlock,o=t.normalizeStyle},t=>{u=t.s},null,null,null,null],execute:function(){const t={mixins:[i],props:{value:{default:null}},data:function(){return{valueId:null,icon:"",label:"",subLabel:"",items:[],screenTarget:null,screenName:null}},computed:{status:function(){let e="off";for(const n of this.items){let s=this.screenValues[n][1];s&&((s.includes("BLUE")||s.includes("GREEN"))&&e!="caution"&&e!="critical"&&(e="normal"),s.includes("YELLOW")&&e!="critical"&&(e="caution"),s.includes("RED")&&(e="critical"))}return e},pointerStyle(){return this.screenTarget&&this.screenName?{cursor:"pointer"}:{cursor:"default"}}},created:function(){this.icon=this.parameters[0],this.label=this.parameters[1],this.subLabel=this.parameters[2],this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"TLM":let n="CONVERTED";e[4]&&(n=e[4]);let s=`${e[1]}__${e[2]}__${e[3]}__${n}`;this.items.push(s),this.$emit("addItem",s);break}})},unmounted:function(){this.items.forEach(e=>{this.$emit("deleteItem",e)})},methods:{clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function h(e,n,s,b,E,l){const p=r("rux-monitoring-icon");return a(),c(p,{class:"rux-icon",style:o([l.pointerStyle,e.computedStyle]),icon:e.icon,status:l.status,label:e.label,sublabel:e.subLabel,onClick:l.clickHandler},null,8,["style","icon","status","label","sublabel","onClick"])}const f=m("default",u(t,[["render",h]]))}}});
@@ -1 +1 @@
1
- System.register(["./Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js","./VerticalWidget-z6xUM-ql-a4f3f144ebc6cd085694.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(v,k){"use strict";var l,c,s,i,o,u,m,g,p,f,d;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{s=e.openBlock,i=e.createElementBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,f=e.mergeProps},e=>{d=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,r,B,x,z){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,h)=>(s(),g(p(t.type),f({ref_for:!0},n.listeners,{key:h,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 w=v("default",d(e,[["render",y]]))}}});
1
+ System.register(["./Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js","./VerticalWidget-BuvedA_b-b1ad75972605d6842285.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(v,h){"use strict";var l,c,i,s,o,u,m,g,p,d,f;return{setters:[e=>{l=e.r},e=>{c=e.default},e=>{i=e.createElementBlock,s=e.openBlock,o=e.normalizeStyle,u=e.Fragment,m=e.renderList,g=e.createBlock,p=e.resolveDynamicComponent,d=e.mergeProps},e=>{f=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:c},created:function(){if(this.setHeight(this.parameters[0],"px",200),this.parameters[1]){let n=this.parameters[1];this.widgets.forEach(a=>{a.settings.find(r=>r[0]==="MARGIN"||r[0]==="RAW"&&r[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function y(n,a,r,b,w,R){return s(),i("div",{ref:"container",style:o(n.computedStyle),class:"overflow-y-auto"},[(s(!0),i(u,null,m(n.widgets,(t,k)=>(s(),g(p(t.type),d({ref_for:!0},n.listeners,{key:k,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 B=v("default",f(e,[["render",y]]))}}});
@@ -1 +1 @@
1
- System.register(["./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,a,s,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.openBlock,l=t.createBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d(e,B,y,f,C,h){const m=a("v-icon");return s(),l(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const v=p("default",u(t,[["render",d]]))}}});
1
+ System.register(["./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(p,g){"use strict";var r,a,s,l,n,i,c,o,u;return{setters:[t=>{r=t.L},t=>{a=t.resolveComponent,s=t.createBlock,l=t.openBlock,n=t.normalizeStyle,i=t.withCtx,c=t.createTextVNode,o=t.toDisplayString},t=>{u=t.s},null,null,null,null,null],execute:function(){const t={mixins:[r],props:{value:{default:null}},data:function(){return{item:null,oneBar:30,twoBar:60,threeBar:90}},computed:{displayedIcon:function(){let e="mdi-signal-cellular-outline";return this._value>=this.oneBar&&(e="mdi-signal-cellular-1"),this._value>=this.twoBar&&(e="mdi-signal-cellular-2"),this._value>=this.threeBar&&(e="mdi-signal-cellular-3"),e}},created(){this.appliedSettings.forEach(e=>{switch(e[0].toUpperCase()){case"SCREEN":this.screenTarget=e[1],this.screenName=e[2];break;case"VALUES":this.oneBar=parseFloat(e[1]),this.twoBar=parseFloat(e[2]),this.threeBar=parseFloat(e[3]);break}})},methods:{getType(){let e="CONVERTED";return this.parameters[3]=="RAW"&&(e="RAW"),e},clickHandler(){this.screenTarget&&this.screenName&&this.$emit("open",this.screenTarget,this.screenName)}}};function d(e,v,C,f,y,h){const m=a("v-icon");return l(),s(m,{onClick:h.clickHandler,style:n(e.computedStyle)},{default:i(()=>[c(o(h.displayedIcon),1)]),_:1},8,["onClick","style"])}const B=p("default",u(t,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,n,s,l,r;return{setters:[e=>{t=e.o},e=>{n=e.openBlock,s=e.createElementBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,h,d,v){return n(),s("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(i,o){"use strict";var t,n,s,l,r;return{setters:[e=>{t=e.o},e=>{n=e.createElementBlock,s=e.openBlock,l=e.normalizeStyle},e=>{r=e.s},null,null,null,null],execute:function(){const e={mixins:[t],created(){this.settings.push(["WIDTH",this.parameters[0]]),this.settings.push(["HEIGHT",this.parameters[1]])}};function u(c,m,p,h,d,v){return s(),n("div",{style:l(c.computedStyle)},null,4)}const a=i("default",r(e,[["render",u]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./GraphWidget-BTNYbd21-b283022420b6bbfd29e6.js","./main-8e72d39621128aae1028.js","vue","./Graph-EV7oK3qM-e8913b039617d63183dd.js","single-spa","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","vuex","vuetify"],function(l,c){"use strict";var s,i,n,r,a,o,d;return{setters:[e=>{s=e._},e=>{i=e.s},e=>{n=e.resolveComponent,r=e.createBlock,a=e.openBlock,o=e.normalizeStyle},e=>{d=e.S},null,null,null,null,null],execute:function(){const e={components:{Graph:d},mixins:[s],data:function(){return{secondsGraphed:300,pointsSaved:300,pointsGraphed:300,size:{height:30,width:130}}}};function p(t,g,m,v,f,y){const h=n("graph");return a(),r(h,{ref:"graph"+t.id,id:t.id,state:t.state,"selected-graph-id":t.id,startTime:t.startTime,"seconds-graphed":t.secondsGraphed,"points-saved":t.pointsSaved,"points-graphed":t.pointsGraphed,"initial-items":t.items,height:t.size.height,width:t.size.width,style:o(t.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",i(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(k,z){"use strict";var p,l,s,r,g,v,i,u,c,o,y,f,b,w,V;return{setters:[e=>{p=e.r},e=>{l=e.resolveComponent,s=e.createElementBlock,r=e.openBlock,g=e.createVNode,v=e.normalizeStyle,i=e.withCtx,u=e.Fragment,c=e.renderList,o=e.createBlock,y=e.createTextVNode,f=e.toDisplayString,b=e.resolveDynamicComponent,w=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 x(t,m,h,D,E,F){const C=l("v-tab"),T=l("v-tabs"),B=l("v-window-item"),S=l("v-window");return r(),s("div",null,[g(T,{modelValue:t.curTab,"onUpdate:modelValue":m[0]||(m[0]=a=>t.curTab=a),style:v(t.computedStyle)},{default:i(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(C,{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(()=>[(r(!0),s(u,null,c(t.widgets,(a,d)=>(r(),o(B,{key:d},{default:i(()=>[(r(!0),s(u,null,c(a.widgets,(n,N)=>(r(),o(b(n.type),w({ref_for:!0},t.listeners,{key:`${d}-${N}`,target:n.target,parameters:n.parameters,settings:n.settings,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,widgets:n.widgets,name:n.name,line:n.line,"line-number":n.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",x]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-8e72d39621128aae1028.js","vue","./DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js","single-spa","./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue-router","vuex","vuetify","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js"],function(y,E){"use strict";var c,a,o,s,n,u,m,l,d,h,p,g,v,x,C,f;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,s=e.openBlock,n=e.createVNode,u=e.normalizeStyle,m=e.normalizeClass,l=e.withCtx,d=e.Fragment,h=e.renderList,p=e.createBlock,g=e.withModifiers,v=e.createTextVNode,x=e.toDisplayString},e=>{C=e.P},null,e=>{f=e.L},null,null,null,null],execute:function(){const e={components:{DetailsDialog:C},data:function(){return{width:200,height:200}},mixins:[f],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}}},w={class:"textbox-widget-container"};function V(t,r,L,j,F,k){const D=a("v-textarea"),S=a("v-list-item-title"),_=a("v-list-item"),B=a("v-list"),N=a("v-menu"),T=a("details-dialog");return s(),o("div",w,[n(D,{variant:"solo",density:"compact",readonly:"","no-resize":"","auto-grow":"",rows:"2","hide-details":"","model-value":t._value,class:m(t.valueClass),style:u([t.computedStyle,k.aging]),"data-test":"valueText",onContextmenu:t.showContextMenu},null,8,["model-value","class","style","onContextmenu"]),n(N,{modelValue:t.contextMenuShown,"onUpdate:modelValue":r[0]||(r[0]=i=>t.contextMenuShown=i),target:[t.x,t.y]},{default:l(()=>[n(B,null,{default:l(()=>[(s(!0),o(d,null,h(t.contextMenuOptions,(i,z)=>(s(),p(_,{key:z,onClick:g(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(T,{"target-name":t.parameters[0],"packet-name":t.parameters[1],"item-name":t.parameters[2],modelValue:t.viewDetails,"onUpdate:modelValue":r[1]||(r[1]=i=>t.viewDetails=i)},null,8,["target-name","packet-name","item-name","modelValue"])])}const M=y("default",c(e,[["render",V],["__scopeId","data-v-10f560aa"]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.openBlock,s=e.createBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return n(),s(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(i,h){"use strict";var t,l,n,s,a,o;return{setters:[e=>{t=e.o},e=>{l=e.resolveComponent,n=e.createBlock,s=e.openBlock,a=e.normalizeStyle},e=>{o=e.s},null,null,null,null],execute:function(){const e={mixins:[t],data(){return{value:null}},created(){this.setWidth(this.parameters[0],"ch",12),this.parameters[1]&&(this.value=this.parameters[1])},methods:{text(){return this.value}}};function c(d,r,y,f,u,x){const m=l("v-text-field");return s(),n(m,{variant:"solo",density:"compact","single-line":"","hide-no-data":"","hide-details":"",modelValue:u.value,"onUpdate:modelValue":r[0]||(r[0]=v=>u.value=v),style:a(d.computedStyle)},null,8,["modelValue","style"])}const p=i("default",o(e,[["render",c]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","./main-327494fd5f18e09d7319.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,V){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.openBlock,r=e.createBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return s(),r(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const y=m("default",i(e,[["render",c]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","./main-8e72d39621128aae1028.js","vue","vue-router","single-spa","vuex","vuetify"],function(m,y){"use strict";var l,i,n,a,s,r,o;return{setters:[e=>{l=e.o},e=>{i=e.s,n=e.P},e=>{a=e.resolveComponent,s=e.createBlock,r=e.openBlock,o=e.normalizeStyle},null,null,null,null],execute:function(){const e={mixins:[l,n],data(){return{label:"Time",timeValue:""}},created(){this.parameters[0]&&(this.label=this.parameters[0]),this.timeValue=this.formatTimeHMS(new Date,this.screenTimeZone)},methods:{text(){return this.timeValue},time(){return this.timeValue}}};function c(d,u,f,v,t,b){const h=a("v-text-field");return r(),s(h,{modelValue:t.timeValue,"onUpdate:modelValue":u[0]||(u[0]=p=>t.timeValue=p),label:t.label,style:o(d.computedStyle),type:"time","hide-details":""},null,8,["modelValue","label","style"])}const V=m("default",i(e,[["render",c]]))}}});
@@ -1 +1 @@
1
- System.register(["./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","vue-router","single-spa","vuex","vuetify"],function(o,p){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.openBlock,n=e.createElementBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,g,u){return r(),n("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const m=o("default",a(e,[["render",i]]))}}});
1
+ System.register(["./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","vue-router","single-spa","vuex","vuetify"],function(o,p){"use strict";var t,r,n,l,s,a;return{setters:[e=>{t=e.o},e=>{r=e.createElementBlock,n=e.openBlock,l=e.normalizeStyle,s=e.toDisplayString},e=>{a=e.s},null,null,null,null],execute:function(){const e={mixins:[t],computed:{labelText(){return this.parameters[0]}},created(){if(this.parameters.length<1)throw new Error("Not enough parameters for TITLE.")}};function i(c,f,x,y,g,u){return n(),r("span",{class:"text-h5 text-center pa-1 mt-1 label",style:l(c.computedStyle)},s(u.labelText),5)}const m=o("default",a(e,[["render",i]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js"],function(S,T){"use strict";var w,_;return{setters:[h=>{w=h.P},h=>{_=h.o}],execute:function(){var h={},I;function x(){return I||(I=1,function(t){(function(){var s={not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,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(a){return E(V(a),arguments)}function b(a,u){return c.apply(null,[a].concat(u||[]))}function E(a,u){var i=1,p=a.length,e,o="",l,n,r,m,g,y,v,d;for(l=0;l<p;l++)if(typeof a[l]=="string")o+=a[l];else if(typeof a[l]=="object"){if(r=a[l],r.keys)for(e=u[i],n=0;n<r.keys.length;n++){if(e==null)throw new Error(c('[sprintf] Cannot access property "%s" of undefined value "%s"',r.keys[n],r.keys[n-1]));e=e[r.keys[n]]}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 V(a){if(f[a])return f[a];for(var u=a,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],n=[];if((n=s.key.exec(l))!==null)for(o.push(n[1]);(l=l.substring(n[0].length))!=="";)if((n=s.key_access.exec(l))!==null)o.push(n[1]);else if((n=s.index_access.exec(l))!==null)o.push(n[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[a]=p}t.sprintf=c,t.vsprintf=b,typeof window<"u"&&(window.sprintf=c,window.vsprintf=b)})()}(h)),h}x();const k={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,k],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})}}})}}});
@@ -0,0 +1 @@
1
+ System.register(["./main-8e72d39621128aae1028.js","vue","./DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js","single-spa","./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue-router","vuex","vuetify","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js"],function(w,A){"use strict";var c,a,o,r,d,n,l,m,u,p,v,g,f,h,x,y,C,V;return{setters:[e=>{c=e.s},e=>{a=e.resolveComponent,o=e.createElementBlock,r=e.openBlock,d=e.normalizeStyle,n=e.createVNode,l=e.withCtx,m=e.createElementVNode,u=e.toDisplayString,p=e.mergeProps,v=e.createSlots,g=e.Fragment,f=e.renderList,h=e.createBlock,x=e.withModifiers,y=e.createTextVNode},e=>{C=e.P},null,e=>{V=e.L},null,null,null,null],execute:function(){const S={components:{DetailsDialog:C},mixins:[V],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 _(t,i,j,I,z,k){const E=a("rux-status"),D=a("v-text-field"),N=a("v-tooltip"),T=a("v-list-item-title"),L=a("v-list-item"),P=a("v-list"),B=a("v-menu"),M=a("details-dialog");return r(),o("div",{class:"value-widget-container",style:d([t.computedStyle,k.aging])},[n(N,{location:"top"},{activator:l(({props:s})=>[n(D,p({variant:"solo",density:"compact",flat:"",readonly:"","hide-details":"","model-value":t._value,class:t.valueClass,"data-test":"value",onContextmenu:t.showContextMenu},s),v({_: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(()=>[m("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(P,null,{default:l(()=>[(r(!0),o(g,null,f(t.contextMenuOptions,(s,U)=>(r(),h(L,{key:U,onClick:x(s.action,["stop"])},{default:l(()=>[n(T,null,{default:l(()=>[y(u(s.title),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","target"]),n(M,{"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 W=w("default",c(S,[["render",_],["__scopeId","data-v-c21e4dde"]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js","./LimitsbarWidget-B7fHaDcJ-35e7d809a6b10c3d4cde.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","./DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js","single-spa","./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue-router","vuex","vuetify","./BarColumn-CNhS2KKq-3dc808075c1ad070de8d.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.createElementBlock,o=e.openBlock,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 p(t,C,b,j,w,x){const d=s("value-widget"),v=s("limitsbar-widget");return o(),u("div",{ref:"container",class:"d-flex flex-row",style:c(t.computedStyle)},[n(d,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 y=g("default",m(e,[["render",p]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js","./LimitscolumnWidget-C9FbNC-U-f06c25388edfbca2fb96.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","./DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js","single-spa","./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue-router","vuex","vuetify","./BarColumn-CNhS2KKq-3dc808075c1ad070de8d.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.createElementBlock,o=e.openBlock,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 p(t,N,V,j,w,y){const d=n("limitscolumn-widget"),v=n("value-widget");return o(),u("div",{ref:"container",style:c(t.computedStyle)},[s(d,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 C=g("default",m(e,[["render",p]]))}}});
@@ -1 +1 @@
1
- System.register(["./ValueWidget-KLYY8L8U-e4b9e6d7b4f7d73b123b.js","./RangebarWidget-DHS7S3vI-5d976a46f05c7e82dbf6.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue","./main-327494fd5f18e09d7319.js","./DetailsDialog-DLRMqetn-c1e88264145accbab84b.js","single-spa","./VWidget-02CG-3Av-d3c5e53d610f42607c18.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,u,m,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,u=e.openBlock,m=e.createElementBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,V,x,j,w,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const S=g("default",p(e,[["render",d]]))}}});
1
+ System.register(["./ValueWidget-DIFivXw_-f3fd4c4756402c0e15a1.js","./RangebarWidget-CEQFiG4l-9182f5decadf9fdc75b3.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue","./main-8e72d39621128aae1028.js","./DetailsDialog-DyGpm5TP-bc898679b9599f6143ca.js","single-spa","./VWidget-CN_afCKJ-dede8aa776923bfd9948.js","vue-router","vuex","vuetify"],function(g,f){"use strict";var n,i,l,r,m,u,o,s,a,p;return{setters:[e=>{n=e.default},e=>{i=e.default},e=>{l=e.o},e=>{r=e.resolveComponent,m=e.createElementBlock,u=e.openBlock,o=e.normalizeStyle,s=e.createVNode,a=e.mergeProps},e=>{p=e.s},null,null,null,null,null,null],execute:function(){const e={mixins:[l],components:{ValueWidget:n,RangebarWidget:i},computed:{valueParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[5],this.parameters[6]]},rangeBarParameters(){return[this.parameters[0],this.parameters[1],this.parameters[2],this.parameters[3],this.parameters[4],this.parameters[5],this.parameters[7],this.parameters[8]]}}};function d(t,x,y,C,P,c){const v=r("value-widget"),h=r("rangebar-widget");return u(),m("div",{ref:"container",class:"d-flex flex-row",style:o(t.computedStyle)},[s(v,a(t.$attrs,{parameters:c.valueParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone,"widget-index":0}),null,16,["parameters","settings","screen-values","screen-time-zone"]),s(h,a(t.$attrs,{parameters:c.rangeBarParameters,settings:[...t.appliedSettings],"screen-values":t.screenValues,"widget-index":1}),null,16,["parameters","settings","screen-values"])],4)}const w=g("default",p(e,[["render",d]]))}}});
@@ -0,0 +1 @@
1
+ System.register(["./Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(y,k){"use strict";var l,i,r,c,o,u,m,g,p,f;return{setters:[e=>{l=e.r},e=>{i=e.createElementBlock,r=e.openBlock,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:[l],created:function(){if(this.parameters[0]){let n=this.parameters[0];this.widgets.forEach(a=>{a.settings.find(s=>s[0]==="MARGIN"||s[0]==="RAW"&&s[1].toUpperCase().includes("MARGIN"))===void 0&&a.settings.push(["MARGIN",n])})}}};function d(n,a,s,h,R,w){return r(),i("div",{ref:"container",style:c(n.computedStyle)},[(r(!0),i(o,null,u(n.widgets,(t,v)=>(r(),m(g(t.type),p({ref_for:!0},n.listeners,{key:v,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 B=y("default",f(e,[["render",d]]))}}});
@@ -1 +1 @@
1
- System.register(["./VerticalWidget-z6xUM-ql-a4f3f144ebc6cd085694.js","./Layout-C1HoM4Kl-a7bbda53a092bc45e06c.js","vue","./main-327494fd5f18e09d7319.js","./Widget-C4QVI4IH-5a97554019dbe2ca69fb.js","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var r,l,n,i,a,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{l=e.r},e=>{n=e.resolveComponent,i=e.openBlock,a=e.createElementBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{v=e.s},null,null,null,null,null],execute:function(){const e={mixins:[l],components:{VerticalWidget:r}};function m(t,w,C,S,k,z){const y=n("v-banner"),x=n("vertical-widget");return i(),a("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const f=d("default",v(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
1
+ System.register(["./VerticalWidget-BuvedA_b-b1ad75972605d6842285.js","./Layout-Bk8EGxbP-6e0fedf871ce1d145fc8.js","vue","./main-8e72d39621128aae1028.js","./Widget-CERFa1CU-4266fcf1f630786fe6e5.js","vue-router","single-spa","vuex","vuetify"],function(d,V){"use strict";var r,a,n,i,l,s,c,o,u,g,p,v;return{setters:[e=>{r=e.default},e=>{a=e.r},e=>{n=e.resolveComponent,i=e.createElementBlock,l=e.openBlock,s=e.createVNode,c=e.normalizeStyle,o=e.withCtx,u=e.createTextVNode,g=e.toDisplayString,p=e.mergeProps},e=>{v=e.s},null,null,null,null,null],execute:function(){const e={mixins:[a],components:{VerticalWidget:r}};function m(t,w,b,k,B,C){const y=n("v-banner"),x=n("vertical-widget");return l(),i("div",null,[s(y,{class:"boxbanner",style:c(t.computedStyle),"single-line":""},{default:o(()=>[u(g(t.parameters[0]),1)]),_:1},8,["style"]),s(x,p(t.listeners,{parameters:t.parameters.slice(1),settings:t.settings,widgets:t.widgets,"screen-values":t.screenValues,"screen-time-zone":t.screenTimeZone}),null,16,["parameters","settings","widgets","screen-values","screen-time-zone"])])}const f=d("default",v(e,[["render",m],["__scopeId","data-v-832aa5cd"]]))}}});
@@ -1 +1 @@
1
- System.register(["./main-327494fd5f18e09d7319.js"],function(o,d){"use strict";var p,r;return{setters:[n=>{p=n.B,r=n.a}],execute:function(){const n=o("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});
1
+ System.register(["./main-8e72d39621128aae1028.js"],function(d,o){"use strict";var p,r;return{setters:[n=>{p=n.D,r=n.u}],execute:function(){const n=d("o",{mixins:[p],props:{widgetIndex:{type:Number,default:null},parameters:{type:Array,default:()=>[]},settings:{type:Array,default:()=>[]},screenValues:{type:Object,default:()=>{}},screenTimeZone:{type:String,default:"local"},namedWidgets:{type:Object,default:{}},line:{type:String,default:""},lineNumber:{type:Number,default:0}},data(){return{appliedSettings:[],appliedStyle:{},widgetName:null,screenId:"NO_SCREEN"}},computed:{computedStyle:function(){return this.appliedSettings.forEach(t=>{this.applyStyleSetting(t)}),this.appliedStyle.width===void 0&&this.appliedStyle.height===void 0&&(this.appliedStyle.flex="0 10 100%"),this.appliedStyle},screen:function(){const t=this;return{getNamedWidget:function(e){return t.$store.getters.namedWidget(t.toQualifiedWidgetName(e))},open:function(e,i){t.$emit("open",e,i)},close:function(e,i){t.$emit("close",e,i)},closeAll:function(){t.$emit("closeAll")}}},listeners:function(){return Object.entries(this.$attrs).reduce((t,e)=>e[0].startsWith("on")?{...t,[e[0]]:e[1]}:t,{})}},watch:{widgetName:function(t,e){this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(e)),this.$store.commit("setNamedWidget",{[this.toQualifiedWidgetName(t)]:this})}},created(){var t,e;this.screenId=(t=this.settings.find(i=>i[0]==="__SCREEN_ID__"))==null?void 0:t.at(1),this.widgetName=(e=this.settings.find(i=>i[0]==="NAMED_WIDGET"))==null?void 0:e.at(1),this.appliedSettings=this.settings.map(i=>{const s=parseInt(i[0]);if(isNaN(s)||this.widgetIndex===null)return i;if(this.widgetIndex===s)return i.slice(1)}).filter(i=>i!==void 0)},beforeUnmount(){this.widgetName&&this.$store.commit("clearNamedWidget",this.toQualifiedWidgetName(this.widgetName))},methods:{applyStyleSetting(t){switch(t[0]){case"TEXTALIGN":this.appliedStyle["text-align"]=t[1].toLowerCase()+" !important",this.appliedStyle["--text-align"]=t[1].toLowerCase();break;case"PADDING":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.padding=t[1]+" !important";break;case"MARGIN":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.margin=t[1]+" !important";break;case"BACKCOLOR":this.appliedStyle["background-color"]=this.getColor(t.slice(1))+" !important";break;case"TEXTCOLOR":this.appliedStyle.color=this.getColor(t.slice(1))+" !important";break;case"BORDERCOLOR":this.appliedStyle["border-width"]="1px!important",this.appliedStyle["border-style"]="solid!important",this.appliedStyle["border-color"]=this.getColor(t.slice(1))+" !important";break;case"WIDTH":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.width=t[1]+" !important";break;case"HEIGHT":isNaN(Number(t[1]))||(t[1]+="px"),this.appliedStyle.height=t[1]+" !important";break;case"RAW":this.appliedStyle[t[1].toLowerCase()]=t[2]+" !important";break}},verifyNumParams(t,e,i,s=""){let a={line:this.line,lineNumber:this.lineNumber,keyword:t,parameters:this.parameters};for(let l=1;l<=e;l++)if(this.parameters[l-1]===void 0)throw new r(a,`Not enough parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration");if(i!==null&&this.parameters.length>i)throw new r(a,`Too many parameters for ${t}.`,s,"https://docs.openc3.com/docs/configuration")},setWidth(t,e="px",i="120"){let s=this.appliedSettings.find(a=>a[0]==="WIDTH");return s?s.WIDTH:t?(this.appliedSettings.push(["WIDTH",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["WIDTH",`${i}${e}`]),parseInt(i))},setHeight(t,e="px",i="20"){let s=null;return s=this.appliedSettings.find(a=>a[0]==="HEIGHT"),s?s.HEIGHT:t?(this.appliedSettings.push(["HEIGHT",`${t}${e}`]),parseInt(t)):(this.appliedSettings.push(["HEIGHT",`${i}${e}`]),parseInt(i))},getColor(t){switch(t.length){case 1:return t[0].toLowerCase();case 3:return`rgb(${t[0]},${t[1]},${t[2]})`}},toQualifiedWidgetName(t){return`${this.screenId}:${t}`}}})}}});