zwave-js-ui 11.6.1 → 11.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/assets/{AssociationGroups-CuSzpYb8.js → AssociationGroups-Dw8aOlxk.js} +2 -2
  2. package/dist/assets/{BaseFab-LW0wvTIx.js → BaseFab-B49AGO-T.js} +1 -1
  3. package/dist/assets/{BgRssiChart-YZju0Sl5.js → BgRssiChart-fF2B1CEa.js} +1 -1
  4. package/dist/assets/{BlinkIcon-DefRrED2.js → BlinkIcon-_ckOi3bV.js} +1 -1
  5. package/dist/assets/{CCTreeView-D7oTzCYT.js → CCTreeView-BkHbjVH5.js} +1 -1
  6. package/dist/assets/{ColorScheme-B4b8Sovd.js → ColorScheme-CYblAEP0.js} +1 -1
  7. package/dist/assets/ColumnFilter-B3nudgHB.js +2 -0
  8. package/dist/assets/{ColumnFilterBoolean-DrkasFJ8.js → ColumnFilterBoolean-DvxzXqrU.js} +1 -1
  9. package/dist/assets/{ColumnFilterDate-CYDsjBuN.js → ColumnFilterDate-CmmvM5zq.js} +1 -1
  10. package/dist/assets/{ColumnFilterNumber-BFTyrIOH.js → ColumnFilterNumber-B4mbV5N2.js} +1 -1
  11. package/dist/assets/{ColumnFilterString-0OM_hyuI.js → ColumnFilterString-DbEtqjDU.js} +1 -1
  12. package/dist/assets/{ControlPanel-B1R72ckL.js → ControlPanel-Ci2R8ZEP.js} +2 -2
  13. package/dist/assets/{ControllerChart-DOA3kqJW.js → ControllerChart-Crnag3i9.js} +2 -2
  14. package/dist/assets/{Debug-Gim1rlY_.js → Debug-D1U-md9R.js} +2 -2
  15. package/dist/assets/{DialogAdvanced-CChBqvhm.js → DialogAdvanced-CnclSjsM.js} +1 -1
  16. package/dist/assets/{DialogAssociation-BCLhRz1Y.js → DialogAssociation-CreFc7Ik.js} +1 -1
  17. package/dist/assets/{DialogGatewayValue-CWiLRX9d.js → DialogGatewayValue-CljATBk5.js} +2 -2
  18. package/dist/assets/{DialogHealthCheck-DtvHKu3d.js → DialogHealthCheck-CZzSBtsP.js} +2 -2
  19. package/dist/assets/{DialogHealthCheckInfo-DFZI-JSI.js → DialogHealthCheckInfo-Df-g0mWE.js} +1 -1
  20. package/dist/assets/{DialogLinkReliability-CV31-eH3.js → DialogLinkReliability-DedPIRbC.js} +1 -1
  21. package/dist/assets/{DialogSceneValue--DrsDj33.js → DialogSceneValue-CEYlWfCl.js} +2 -2
  22. package/dist/assets/{ErrorPage-D4M6YEjH.js → ErrorPage-pN2Nquh2.js} +1 -1
  23. package/dist/assets/{ExpandedNode-CDdsuxaK.js → ExpandedNode-DudPBKgV.js} +3 -3
  24. package/dist/assets/{FirmwareUpdateBadge-DoZe3ng0.js → FirmwareUpdateBadge-K9q8MUzs.js} +1 -1
  25. package/dist/assets/{FirmwareUpdates-BxhCyMNu.js → FirmwareUpdates-PZUAENLw.js} +1 -1
  26. package/dist/assets/{FrameDetails-HD5ub9EJ.js → FrameDetails-jZ8siRgr.js} +2 -2
  27. package/dist/assets/{HomeAssistant-aPkmUBfz.js → HomeAssistant-BK6o7AvK.js} +1 -1
  28. package/dist/assets/{InvertedCheckbox-DxDx5s8j.js → InvertedCheckbox-MgIUlH0Z.js} +1 -1
  29. package/dist/assets/{ListInput-NoiopB6q.js → ListInput-CAkQcsAz.js} +1 -1
  30. package/dist/assets/{Login-Dw6Ec_Nt.js → Login-DnnYFnM8.js} +2 -2
  31. package/dist/assets/{Mesh-Jta7jnMS.js → Mesh-DkEZt109.js} +2 -2
  32. package/dist/assets/{MissingKeysAlert-rZr8rrSw.js → MissingKeysAlert-BhC_UGHM.js} +1 -1
  33. package/dist/assets/{Multipane-rSqhg_Ke.js → Multipane-Dctf0uvU.js} +1 -1
  34. package/dist/assets/MultipaneResizer-usRPtjzS.js +1 -0
  35. package/dist/assets/{NodeDetails-BZvPDgui.js → NodeDetails-NgniFuk7.js} +2 -2
  36. package/dist/assets/NodePanel-CZ3M-nKU.css +1 -0
  37. package/dist/assets/NodePanel-W0xR9OQt.js +2 -0
  38. package/dist/assets/{NodeScheduler-B303Y-pq.js → NodeScheduler-CTqqHNb6.js} +1 -1
  39. package/dist/assets/{QrReader-Be_iXw21.js → QrReader-BxIZ5M7y.js} +1 -1
  40. package/dist/assets/{ReinterviewBadge-CSucUOV4.js → ReinterviewBadge-BFVU7-PE.js} +1 -1
  41. package/dist/assets/{RichValue-JHDU6rQK.js → RichValue-B5jVMrsY.js} +1 -1
  42. package/dist/assets/{Scenes-Y7cwoFFR.js → Scenes-Beilku4Q.js} +2 -2
  43. package/dist/assets/{Settings-UJH8ZIDu.js → Settings-EHT8izKD.js} +2 -2
  44. package/dist/assets/{SmartStart-BJ9r2yjR.js → SmartStart-BZhrD46l.js} +3 -3
  45. package/dist/assets/{SmartView-Ca8_0Vsx.js → SmartView-EyUjdaJ7.js} +2 -2
  46. package/dist/assets/{StatisticsArrows-BY7vHAGw.js → StatisticsArrows-bj4OvvRG.js} +2 -2
  47. package/dist/assets/StatisticsCard-DeqCtmt2.js +1 -0
  48. package/dist/assets/Store-CfNGlasl.js +2 -0
  49. package/dist/assets/Store-DuPLFOl1.css +1 -0
  50. package/dist/assets/{UserCodeTable-pFNLrxgN.js → UserCodeTable-CmhOvA0J.js} +2 -2
  51. package/dist/assets/{VDataTable-DHkcZTuR.js → VDataTable-BXwwtO5z.js} +1 -1
  52. package/dist/assets/{VExpansionPanels-DGeJAP6U.js → VExpansionPanels-yB8lWnXp.js} +1 -1
  53. package/dist/assets/{VFab-MEiY0kRQ.js → VFab-B7yWTeav.js} +1 -1
  54. package/dist/assets/{VNumberInput-BbojrP22.js → VNumberInput-CJTtD2so.js} +1 -1
  55. package/dist/assets/{VTable-Bnh3IqPS.js → VTable-DN4yPaWs.js} +1 -1
  56. package/dist/assets/{VTextarea-CCE9XB_B.js → VTextarea-WhhLcTsp.js} +1 -1
  57. package/dist/assets/{VTreeview-CcmwFXno.js → VTreeview-BjNKFpJi.js} +1 -1
  58. package/dist/assets/{ValueId-CIVR8A7x.js → ValueId-CXiLFv5J.js} +1 -1
  59. package/dist/assets/{Zniffer-DSZFw67V.js → Zniffer-DS4Rvdib.js} +2 -2
  60. package/dist/assets/{ZwaveGraph-BdsC3K9X.js → ZwaveGraph-CNfJf3KW.js} +1 -1
  61. package/dist/assets/{file-input-CsCgtT9-.js → file-input-f1J1tXAo.js} +1 -1
  62. package/dist/assets/{index-C7m9uB6j.css → index-CwXXOu4L.css} +1 -1
  63. package/dist/assets/index-D12pqcPl.js +105 -0
  64. package/dist/assets/{index-DXND_U0H.js → index-D_p7ZYBE.js} +3 -3
  65. package/dist/assets/{prismeditor.esm-C9BWBpUA.js → prismeditor.esm-7AII3Kzm.js} +4 -4
  66. package/dist/assets/{sort-AJ2Q8dY8.js → sort-Dbzfzvfk.js} +1 -1
  67. package/dist/assets/{vuedraggable.umd-C7eEmQ6k.js → vuedraggable.umd-C3Fa1WPn.js} +1 -1
  68. package/dist/index.html +2 -2
  69. package/dist/sw.js +2 -2
  70. package/package.json +3 -3
  71. package/server/app.js +111 -1
  72. package/server/lib/DebugManager.js +219 -0
  73. package/server/lib/ZwaveClient.js +93 -47
  74. package/server/lib/logger.js +4 -1
  75. package/dist/assets/ColumnFilter-CE74jT4W.js +0 -2
  76. package/dist/assets/MultipaneResizer-DgFEfETU.js +0 -1
  77. package/dist/assets/NodePanel-CiMt-fW5.js +0 -2
  78. package/dist/assets/NodePanel-CtSVTnI4.css +0 -1
  79. package/dist/assets/StatisticsCard-euFSeUCk.js +0 -1
  80. package/dist/assets/Store-87kdH8ad.css +0 -1
  81. package/dist/assets/Store-Cq3BbONA.js +0 -2
  82. package/dist/assets/index--iN4HRyD.js +0 -105
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DialogAssociation-BCLhRz1Y.js","./index--iN4HRyD.js","./index-C7m9uB6j.css"])))=>i.map(i=>d[i]);
2
- import{_ as f,d as h,z as v,I as k,m as _,u as A,a as w,d$ as y,e0 as g,dv as I,r as b,o as E,l as N,w as i,b as r,e as x,U as V,h as m,k as d,t as p,i as C,V as R}from"./index--iN4HRyD.js";import{V as D}from"./VDataTable-DHkcZTuR.js";import"./sort-AJ2Q8dY8.js";import"./VTable-Bnh3IqPS.js";const S={components:{DialogAssociation:h(()=>v(()=>import("./DialogAssociation-BCLhRz1Y.js"),__vite__mapDeps([0,1,2]),import.meta.url))},mixins:[k],props:{node:Object},data(){return{associations:[],dialogAssociation:!1,headers:[{title:"Endpoint",key:"endpoint"},{title:"Group",key:"groupId"},{title:"Node",key:"nodeId"},{title:"Target Endpoint",key:"targetEndpoint"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{..._(A,["nodes","nodesMap"])},mounted(){this.getAssociations()},methods:{...w(A,["showSnackbar"]),getAssociationAddress:y,getNodeName(e){const s=this.nodes[this.nodesMap.get(e)];return s?s._name:"NodeID_"+e},getEndpointLabel(e,s){const o=this.nodes[this.nodesMap.get(e)];if(o&&s>=0){const l=o.endpoints.find(n=>n.index===s);if(l)return l.label}return s>=0?"Endpoint "+s:"No Endpoint"},async getAssociations(e=!1){let s=!1;e&&this.node.status!=="Dead"&&(s=await this.app.confirm("Info",`Do you want to force query associations?${this.node.status==="Alive"?"":" This node is Asleep, so you should wake it up first."}`,"info",{confirmText:"Yes",cancelText:"No"}));const o=await this.app.apiRequest("getAssociations",[this.node.id,s]);o.success&&(this.associations=o.result,this.showSnackbar("Associations updated","success"))},async addAssociation(e){const s=isNaN(e.target)?e.target.id:parseInt(e.target),o=e.group,l={nodeId:s};o.multiChannel&&e.targetEndpoint>=0&&(l.endpoint=e.targetEndpoint);const n=[this.getAssociationAddress({nodeId:this.node.id,endpoint:e.endpoint}),o.value,[l]],a=await this.app.apiRequest("addAssociations",n);if(a.success){const c=a.result[0];c===g.OK?(this.showSnackbar("Association added","success"),this.getAssociations()):this.showSnackbar(`Error while adding association: ${I(g,c)}`,"error")}this.dialogAssociation=!1},async removeAssociation(e){const s=[this.getAssociationAddress({nodeId:this.node.id,endpoint:e.endpoint}),e.groupId,[{nodeId:e.nodeId,endpoint:e.targetEndpoint}]];(await this.app.apiRequest("removeAssociations",s)).success&&(this.showSnackbar("Association removed","success"),this.getAssociations())},async removeAllAssociations(){const e=[this.node.id];if(!await this.app.confirm("Attention","Are you sure you want to remove all associations from this node? This will also remove lifeline association if it exists.","alert"))return;(await this.app.apiRequest("removeAllAssociations",e)).success&&(this.showSnackbar("Association removed","success"),this.getAssociations())}}},T={class:"d-flex"};function q(e,s,o,l,n,a){const c=b("DialogAssociation");return E(),N(R,{"grid-list-md":""},{default:i(()=>[r(x,{justify:"center",class:"pa-5"},{default:i(()=>[r(D,{headers:n.headers,items:n.associations,"item-key":"id",class:"elevation-1"},{top:i(()=>[V("div",T,[r(m,{variant:"text",color:"success",onClick:s[0]||(s[0]=t=>n.dialogAssociation=!0),class:"mb-2"},{default:i(()=>s[4]||(s[4]=[d("Add")])),_:1,__:[4]}),r(m,{variant:"text",color:"error",onClick:a.removeAllAssociations,class:"mb-2"},{default:i(()=>s[5]||(s[5]=[d("Remove All")])),_:1,__:[5]},8,["onClick"]),r(m,{variant:"text",color:"primary",onClick:s[1]||(s[1]=t=>a.getAssociations(!0)),class:"mb-2"},{default:i(()=>s[6]||(s[6]=[d("Refresh")])),_:1,__:[6]})])]),"item.groupId":i(({item:t})=>[d(p(o.node.groups.find(u=>u.value===t.groupId&&u.endpoint===t.endpoint).title),1)]),"item.nodeId":i(({item:t})=>[d(p(a.getNodeName(t.nodeId)),1)]),"item.endpoint":i(({item:t})=>[d(p(t.endpoint>=0?a.getEndpointLabel(o.node.id,t.endpoint):"None"),1)]),"item.targetEndpoint":i(({item:t})=>[d(p(t.targetEndpoint>=0?a.getEndpointLabel(t.nodeId,t.targetEndpoint):"None"),1)]),"item.actions":i(({item:t})=>[r(C,{size:"small",color:"error",onClick:u=>a.removeAssociation(t)},{default:i(()=>s[7]||(s[7]=[d("delete")])),_:2,__:[7]},1032,["onClick"])]),_:2},1032,["headers","items"])]),_:1}),r(c,{onAdd:a.addAssociation,onClose:s[2]||(s[2]=t=>n.dialogAssociation=!1),modelValue:n.dialogAssociation,"onUpdate:modelValue":s[3]||(s[3]=t=>n.dialogAssociation=t),node:o.node,associations:n.associations},null,8,["onAdd","modelValue","node","associations"])]),_:1})}const j=f(S,[["render",q]]);export{j as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DialogAssociation-CreFc7Ik.js","./index-D12pqcPl.js","./index-CwXXOu4L.css"])))=>i.map(i=>d[i]);
2
+ import{_ as f,d as h,z as v,I as k,m as _,u as A,a as w,e1 as y,e2 as g,dx as I,r as b,o as E,l as x,w as i,b as r,e as N,U as V,h as m,k as d,t as p,i as C,V as R}from"./index-D12pqcPl.js";import{V as D}from"./VDataTable-BXwwtO5z.js";import"./sort-Dbzfzvfk.js";import"./VTable-DN4yPaWs.js";const S={components:{DialogAssociation:h(()=>v(()=>import("./DialogAssociation-CreFc7Ik.js"),__vite__mapDeps([0,1,2]),import.meta.url))},mixins:[k],props:{node:Object},data(){return{associations:[],dialogAssociation:!1,headers:[{title:"Endpoint",key:"endpoint"},{title:"Group",key:"groupId"},{title:"Node",key:"nodeId"},{title:"Target Endpoint",key:"targetEndpoint"},{title:"Actions",key:"actions",sortable:!1}]}},computed:{..._(A,["nodes","nodesMap"])},mounted(){this.getAssociations()},methods:{...w(A,["showSnackbar"]),getAssociationAddress:y,getNodeName(e){const s=this.nodes[this.nodesMap.get(e)];return s?s._name:"NodeID_"+e},getEndpointLabel(e,s){const o=this.nodes[this.nodesMap.get(e)];if(o&&s>=0){const l=o.endpoints.find(n=>n.index===s);if(l)return l.label}return s>=0?"Endpoint "+s:"No Endpoint"},async getAssociations(e=!1){let s=!1;e&&this.node.status!=="Dead"&&(s=await this.app.confirm("Info",`Do you want to force query associations?${this.node.status==="Alive"?"":" This node is Asleep, so you should wake it up first."}`,"info",{confirmText:"Yes",cancelText:"No"}));const o=await this.app.apiRequest("getAssociations",[this.node.id,s]);o.success&&(this.associations=o.result,this.showSnackbar("Associations updated","success"))},async addAssociation(e){const s=isNaN(e.target)?e.target.id:parseInt(e.target),o=e.group,l={nodeId:s};o.multiChannel&&e.targetEndpoint>=0&&(l.endpoint=e.targetEndpoint);const n=[this.getAssociationAddress({nodeId:this.node.id,endpoint:e.endpoint}),o.value,[l]],a=await this.app.apiRequest("addAssociations",n);if(a.success){const c=a.result[0];c===g.OK?(this.showSnackbar("Association added","success"),this.getAssociations()):this.showSnackbar(`Error while adding association: ${I(g,c)}`,"error")}this.dialogAssociation=!1},async removeAssociation(e){const s=[this.getAssociationAddress({nodeId:this.node.id,endpoint:e.endpoint}),e.groupId,[{nodeId:e.nodeId,endpoint:e.targetEndpoint}]];(await this.app.apiRequest("removeAssociations",s)).success&&(this.showSnackbar("Association removed","success"),this.getAssociations())},async removeAllAssociations(){const e=[this.node.id];if(!await this.app.confirm("Attention","Are you sure you want to remove all associations from this node? This will also remove lifeline association if it exists.","alert"))return;(await this.app.apiRequest("removeAllAssociations",e)).success&&(this.showSnackbar("Association removed","success"),this.getAssociations())}}},T={class:"d-flex"};function q(e,s,o,l,n,a){const c=b("DialogAssociation");return E(),x(R,{"grid-list-md":""},{default:i(()=>[r(N,{justify:"center",class:"pa-5"},{default:i(()=>[r(D,{headers:n.headers,items:n.associations,"item-key":"id",class:"elevation-1"},{top:i(()=>[V("div",T,[r(m,{variant:"text",color:"success",onClick:s[0]||(s[0]=t=>n.dialogAssociation=!0),class:"mb-2"},{default:i(()=>s[4]||(s[4]=[d("Add")])),_:1,__:[4]}),r(m,{variant:"text",color:"error",onClick:a.removeAllAssociations,class:"mb-2"},{default:i(()=>s[5]||(s[5]=[d("Remove All")])),_:1,__:[5]},8,["onClick"]),r(m,{variant:"text",color:"primary",onClick:s[1]||(s[1]=t=>a.getAssociations(!0)),class:"mb-2"},{default:i(()=>s[6]||(s[6]=[d("Refresh")])),_:1,__:[6]})])]),"item.groupId":i(({item:t})=>[d(p(o.node.groups.find(u=>u.value===t.groupId&&u.endpoint===t.endpoint).title),1)]),"item.nodeId":i(({item:t})=>[d(p(a.getNodeName(t.nodeId)),1)]),"item.endpoint":i(({item:t})=>[d(p(t.endpoint>=0?a.getEndpointLabel(o.node.id,t.endpoint):"None"),1)]),"item.targetEndpoint":i(({item:t})=>[d(p(t.targetEndpoint>=0?a.getEndpointLabel(t.nodeId,t.targetEndpoint):"None"),1)]),"item.actions":i(({item:t})=>[r(C,{size:"small",color:"error",onClick:u=>a.removeAssociation(t)},{default:i(()=>s[7]||(s[7]=[d("delete")])),_:2,__:[7]},1032,["onClick"])]),_:2},1032,["headers","items"])]),_:1}),r(c,{onAdd:a.addAssociation,onClose:s[2]||(s[2]=t=>n.dialogAssociation=!1),modelValue:n.dialogAssociation,"onUpdate:modelValue":s[3]||(s[3]=t=>n.dialogAssociation=t),node:o.node,associations:n.associations},null,8,["onAdd","modelValue","node","associations"])]),_:1})}const j=f(S,[["render",q]]);export{j as default};
@@ -1 +1 @@
1
- import{a2 as y,bm as v,bE as g,a4 as _,a5 as b,bF as h,bk as f,a6 as S,ab as p,b as s,bG as k,bt as C,$ as D,_ as B,o as c,l as V,w as u,i as P,k as x,t as z,c as w,an as F,am as M,v as A,h as T,p as U,ao as E}from"./index--iN4HRyD.js";import{V as N}from"./VFab-MEiY0kRQ.js";const O=y({...v(),...g({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),R=_()({name:"VSpeedDial",props:O(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:t}=r;const d=b(e,"modelValue"),m=h(),o=f(()=>{var i;const[l,n="center"]=((i=e.location)==null?void 0:i.split(" "))??[];return`${l} ${n}`}),a=f(()=>({[`v-speed-dial__content--${o.value.replace(" ","-")}`]:!0}));return S(()=>{const l=p.filterProps(e);return s(p,D(l,{modelValue:d.value,"onUpdate:modelValue":n=>d.value=n,class:e.class,style:e.style,contentClass:["v-speed-dial__content",a.value,e.contentClass],location:o.value,ref:m,transition:"fade-transition"}),{...t,default:n=>s(k,{defaults:{VBtn:{size:"small"}}},{default:()=>[s(C,{appear:!0,group:!0,transition:e.transition},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t,n)]}})]})})}),{}}}),G={props:{modelValue:Boolean,size:{type:String,default:"large"},location:{type:String,default:"right bottom"},direction:{type:String,default:"top center"},items:{type:Array,default:()=>[]},color:{type:String,default:"primary"},iconOpen:{type:String,default:"mdi-plus"},iconClose:{type:String,default:"mdi-close"},transition:{type:[String,Boolean],default:"fade-transition"},small:Boolean},emits:["update:modelValue"],computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}};function I(e,r,t,d,m,o){return c(),V(N,{location:t.location,color:t.color,app:"",icon:"",size:t.size},{default:u(()=>[s(P,{color:"white"},{default:u(()=>[x(z(o._value?t.iconClose:t.iconOpen),1)]),_:1}),s(R,{modelValue:o._value,"onUpdate:modelValue":r[0]||(r[0]=a=>o._value=a),location:t.direction,activator:"parent",attach:!0,transition:t.transition},{default:u(()=>[(c(!0),w(F,null,M(t.items.filter(a=>!a.hide),(a,l)=>A((c(),V(T,{variant:"flat",key:l,icon:a.icon,color:a.color,size:e.$vuetify.display.mdAndUp?"small":e.$vuetify.display.smAndDown?"x-small":void 0,onClick:U(a.action,["stop"])},null,8,["icon","color","size","onClick"])),[[E,{disabled:!a.tooltip,text:a.tooltip,location:a.left?"left":a.right?"right":void 0}]])),128))]),_:1},8,["modelValue","location","transition"])]),_:1},8,["location","color","size"])}const j=B(G,[["render",I]]);export{j as default};
1
+ import{a2 as y,bo as v,bG as g,a4 as _,a5 as b,bH as h,bm as m,a6 as S,ad as p,b as s,bI as k,bv as C,$ as D,_ as B,o as c,l as V,w as u,i as P,k as x,t as z,c as w,ap as M,ao as F,v as A,h as T,p as U,aq as I}from"./index-D12pqcPl.js";import{V as N}from"./VFab-B7yWTeav.js";const O=y({...v(),...g({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),R=_()({name:"VSpeedDial",props:O(),emits:{"update:modelValue":e=>!0},setup(e,r){let{slots:t}=r;const d=b(e,"modelValue"),f=h(),o=m(()=>{var i;const[l,n="center"]=((i=e.location)==null?void 0:i.split(" "))??[];return`${l} ${n}`}),a=m(()=>({[`v-speed-dial__content--${o.value.replace(" ","-")}`]:!0}));return S(()=>{const l=p.filterProps(e);return s(p,D(l,{modelValue:d.value,"onUpdate:modelValue":n=>d.value=n,class:e.class,style:e.style,contentClass:["v-speed-dial__content",a.value,e.contentClass],location:o.value,ref:f,transition:"fade-transition"}),{...t,default:n=>s(k,{defaults:{VBtn:{size:"small"}}},{default:()=>[s(C,{appear:!0,group:!0,transition:e.transition},{default:()=>{var i;return[(i=t.default)==null?void 0:i.call(t,n)]}})]})})}),{}}}),q={props:{modelValue:Boolean,size:{type:String,default:"large"},location:{type:String,default:"right bottom"},direction:{type:String,default:"top center"},items:{type:Array,default:()=>[]},color:{type:String,default:"primary"},iconOpen:{type:String,default:"mdi-plus"},iconClose:{type:String,default:"mdi-close"},transition:{type:[String,Boolean],default:"fade-transition"},small:Boolean},emits:["update:modelValue"],computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}}};function E(e,r,t,d,f,o){return c(),V(N,{location:t.location,color:t.color,app:"",icon:"",size:t.size},{default:u(()=>[s(P,{color:"white"},{default:u(()=>[x(z(o._value?t.iconClose:t.iconOpen),1)]),_:1}),s(R,{modelValue:o._value,"onUpdate:modelValue":r[0]||(r[0]=a=>o._value=a),location:t.direction,activator:"parent",attach:!0,transition:t.transition},{default:u(()=>[(c(!0),w(M,null,F(t.items.filter(a=>!a.hide),(a,l)=>A((c(),V(T,{variant:"flat",key:l,icon:a.icon,color:a.color,size:e.$vuetify.display.mdAndUp?"small":e.$vuetify.display.smAndDown?"x-small":void 0,onClick:U(a.action,["stop"])},null,8,["icon","color","size","onClick"])),[[I,{disabled:!a.tooltip,text:a.tooltip,location:a.left?"left":a.right?"right":void 0}]])),128))]),_:1},8,["modelValue","location","transition"])]),_:1},8,["location","color","size"])}const L=B(q,[["render",E]]);export{L as default};
@@ -1,3 +1,3 @@
1
- import{_ as Ko,bW as $o,o as jo,c as qo,a1 as Jo}from"./index--iN4HRyD.js";const Zo=!0,Le="u-",Qo="uplot",Xo=Le+"hz",er=Le+"vt",tr=Le+"title",lr=Le+"wrap",nr=Le+"under",ir=Le+"over",sr=Le+"axis",Xt=Le+"off",or=Le+"select",rr=Le+"cursor-x",fr=Le+"cursor-y",ur=Le+"cursor-pt",cr=Le+"legend",ar=Le+"live",hr=Le+"inline",pr=Le+"series",mr=Le+"marker",Ki=Le+"label",dr=Le+"value",Il="width",Yl="height",Gl="top",$i="bottom",xl="left",Gn="right",ni="#000",ji=ni+"0",qi="mousemove",Ji="mousedown",Bn="mouseup",Zi="mouseenter",Qi="mouseleave",Xi="dblclick",gr="resize",wr="scroll",es="change",cn="dppxchange",ii="--",Ll=typeof window<"u",$n=Ll?document:null,kl=Ll?window:null,Sr=Ll?navigator:null;let oe,on;function jn(){let e=devicePixelRatio;oe!=e&&(oe=e,on&&Jn(es,on,jn),on=matchMedia(`(min-resolution: ${oe-.001}dppx) and (max-resolution: ${oe+.001}dppx)`),el(es,on,jn),kl.dispatchEvent(new CustomEvent(cn)))}function et(e,l){if(l!=null){let s=e.classList;!s.contains(l)&&s.add(l)}}function qn(e,l){let s=e.classList;s.contains(l)&&s.remove(l)}function ge(e,l,s){e.style[l]=s+"px"}function wt(e,l,s,n){let o=$n.createElement(e);return l!=null&&et(o,l),s!=null&&s.insertBefore(o,n),o}function ct(e,l){return wt("div",e,l)}const ts=new WeakMap;function bt(e,l,s,n,o){let c="translate("+l+"px,"+s+"px)",u=ts.get(e);c!=u&&(e.style.transform=c,ts.set(e,c),l<0||s<0||l>n||s>o?et(e,Xt):qn(e,Xt))}const ls=new WeakMap;function ns(e,l,s){let n=l+s,o=ls.get(e);n!=o&&(ls.set(e,n),e.style.background=l,e.style.borderColor=s)}const is=new WeakMap;function ss(e,l,s,n){let o=l+""+s,c=is.get(e);o!=c&&(is.set(e,o),e.style.height=s+"px",e.style.width=l+"px",e.style.marginLeft=n?-l/2+"px":0,e.style.marginTop=n?-s/2+"px":0)}const si={passive:!0},_r={...si,capture:!0};function el(e,l,s,n){l.addEventListener(e,s,n?_r:si)}function Jn(e,l,s,n){l.removeEventListener(e,s,si)}Ll&&jn();function St(e,l,s,n){let o;s=s||0,n=n||l.length-1;let c=n<=2147483647;for(;n-s>1;)o=c?s+n>>1:tt((s+n)/2),l[o]<e?s=o:n=o;return e-l[s]<=l[n]-e?s:n}function bl(e,l,s,n){for(let o=n==1?l:s;o>=l&&o<=s;o+=n)if(e[o]!=null)return o;return-1}function yr(e,l,s,n){let o=ee,c=-ee;if(n==1)o=e[l],c=e[s];else if(n==-1)o=e[s],c=e[l];else for(let u=l;u<=s;u++){let d=e[u];d!=null&&(d<o&&(o=d),d>c&&(c=d))}return[o,c]}function xr(e,l,s){let n=ee,o=-ee;for(let c=l;c<=s;c++){let u=e[c];u!=null&&u>0&&(u<n&&(n=u),u>o&&(o=u))}return[n,o]}function pn(e,l,s,n){let o=fs(e),c=fs(l);e==l&&(o==-1?(e*=s,l/=s):(e/=s,l*=s));let u=s==10?At:Rs,d=o==1?tt:at,m=c==1?at:tt,g=d(u(Ae(e))),y=m(u(Ae(l))),_=Ml(s,g),h=Ml(s,y);return s==10&&(g<0&&(_=he(_,-g)),y<0&&(h=he(h,-y))),n||s==2?(e=_*o,l=h*c):(e=Fs(e,_),l=mn(l,h)),[e,l]}function oi(e,l,s,n){let o=pn(e,l,s,n);return e==0&&(o[0]=0),l==0&&(o[1]=0),o}const ri=.1,os={mode:3,pad:ri},Kl={pad:0,soft:null,mode:0},vr={min:Kl,max:Kl};function an(e,l,s,n){return dn(s)?rs(e,l,s):(Kl.pad=s,Kl.soft=n?0:null,Kl.mode=n?3:0,rs(e,l,vr))}function se(e,l){return e??l}function kr(e,l,s){for(l=se(l,0),s=se(s,e.length-1);l<=s;){if(e[l]!=null)return!0;l++}return!1}function rs(e,l,s){let n=s.min,o=s.max,c=se(n.pad,0),u=se(o.pad,0),d=se(n.hard,-ee),m=se(o.hard,ee),g=se(n.soft,ee),y=se(o.soft,-ee),_=se(n.mode,0),h=se(o.mode,0),T=l-e,z=At(T),L=Oe(Ae(e),Ae(l)),F=At(L),P=Ae(F-z);(T<1e-24||P>10)&&(T=0,(e==0||l==0)&&(T=1e-24,_==2&&g!=ee&&(c=0),h==2&&y!=-ee&&(u=0)));let H=T||L||1e3,k=At(H),C=Ml(10,tt(k)),E=H*(T==0?e==0?.1:1:c),W=he(Fs(e-E,C/10),24),D=e>=g&&(_==1||_==3&&W<=g||_==2&&W>=g)?g:ee,B=Oe(d,W<D&&e>=D?D:ht(D,W)),I=H*(T==0?l==0?.1:1:u),V=he(mn(l+I,C/10),24),v=l<=y&&(h==1||h==3&&V>=y||h==2&&V<=y)?y:-ee,N=ht(m,V>v&&l<=v?v:Oe(v,V));return B==N&&B==0&&(N=100),[B,N]}const br=new Intl.NumberFormat(Ll?Sr.language:"en-US"),fi=e=>br.format(e),lt=Math,un=lt.PI,Ae=lt.abs,tt=lt.floor,Te=lt.round,at=lt.ceil,ht=lt.min,Oe=lt.max,Ml=lt.pow,fs=lt.sign,At=lt.log10,Rs=lt.log2,Mr=(e,l=1)=>lt.sinh(e)*l,In=(e,l=1)=>lt.asinh(e/l),ee=1/0;function us(e){return(At((e^e>>31)-(e>>31))|0)+1}function Zn(e,l,s){return ht(Oe(e,l),s)}function X(e){return typeof e=="function"?e:()=>e}const Er=()=>{},zs=e=>e,Vs=(e,l)=>l,Tr=e=>null,cs=e=>!0,as=(e,l)=>e==l,Ar=/\.\d*?(?=9{6,}|0{6,})/gm,tl=e=>{if(Ns(e)||It.has(e))return e;const l=`${e}`,s=l.match(Ar);if(s==null)return e;let n=s[0].length-1;if(l.indexOf("e-")!=-1){let[o,c]=l.split("e");return+`${tl(o)}e${c}`}return he(e,n)};function Zt(e,l){return tl(he(tl(e/l))*l)}function mn(e,l){return tl(at(tl(e/l))*l)}function Fs(e,l){return tl(tt(tl(e/l))*l)}function he(e,l=0){if(Ns(e))return e;let s=10**l,n=e*s*(1+Number.EPSILON);return Te(n)/s}const It=new Map;function Hs(e){return((""+e).split(".")[1]||"").length}function jl(e,l,s,n){let o=[],c=n.map(Hs);for(let u=l;u<s;u++){let d=Ae(u),m=he(Ml(e,u),d);for(let g=0;g<n.length;g++){let y=e==10?+`${n[g]}e${u}`:n[g]*m,_=(u>=0?0:d)+(u>=c[g]?0:c[g]),h=e==10?y:he(y,_);o.push(h),It.set(h,_)}}return o}const $l={},ui=[],El=[null,null],Bt=Array.isArray,Ns=Number.isInteger,Lr=e=>e===void 0;function hs(e){return typeof e=="string"}function dn(e){let l=!1;if(e!=null){let s=e.constructor;l=s==null||s==Object}return l}function Dr(e){return e!=null&&typeof e=="object"}const Pr=Object.getPrototypeOf(Uint8Array),Os="__proto__";function Tl(e,l=dn){let s;if(Bt(e)){let n=e.find(o=>o!=null);if(Bt(n)||l(n)){s=Array(e.length);for(let o=0;o<e.length;o++)s[o]=Tl(e[o],l)}else s=e.slice()}else if(e instanceof Pr)s=e.slice();else if(l(e)){s={};for(let n in e)n!=Os&&(s[n]=Tl(e[n],l))}else s=e;return s}function Me(e){let l=arguments;for(let s=1;s<l.length;s++){let n=l[s];for(let o in n)o!=Os&&(dn(e[o])?Me(e[o],Tl(n[o])):e[o]=Tl(n[o]))}return e}const Cr=0,Rr=1,zr=2;function Vr(e,l,s){for(let n=0,o,c=-1;n<l.length;n++){let u=l[n];if(u>c){for(o=u-1;o>=0&&e[o]==null;)e[o--]=null;for(o=u+1;o<s&&e[o]==null;)e[c=o++]=null}}}function Fr(e,l){if(Or(e)){let u=e[0].slice();for(let d=1;d<e.length;d++)u.push(...e[d].slice(1));return Wr(u[0])||(u=Nr(u)),u}let s=new Set;for(let u=0;u<e.length;u++){let m=e[u][0],g=m.length;for(let y=0;y<g;y++)s.add(m[y])}let n=[Array.from(s).sort((u,d)=>u-d)],o=n[0].length,c=new Map;for(let u=0;u<o;u++)c.set(n[0][u],u);for(let u=0;u<e.length;u++){let d=e[u],m=d[0];for(let g=1;g<d.length;g++){let y=d[g],_=Array(o).fill(void 0),h=l?l[u][g]:Rr,T=[];for(let z=0;z<y.length;z++){let L=y[z],F=c.get(m[z]);L===null?h!=Cr&&(_[F]=L,h==zr&&T.push(F)):_[F]=L}Vr(_,T,o),n.push(_)}}return n}const Hr=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function Nr(e){let l=e[0],s=l.length,n=Array(s);for(let c=0;c<n.length;c++)n[c]=c;n.sort((c,u)=>l[c]-l[u]);let o=[];for(let c=0;c<e.length;c++){let u=e[c],d=Array(s);for(let m=0;m<s;m++)d[m]=u[n[m]];o.push(d)}return o}function Or(e){let l=e[0][0],s=l.length;for(let n=1;n<e.length;n++){let o=e[n][0];if(o.length!=s)return!1;if(o!=l){for(let c=0;c<s;c++)if(o[c]!=l[c])return!1}}return!0}function Wr(e,l=100){const s=e.length;if(s<=1)return!0;let n=0,o=s-1;for(;n<=o&&e[n]==null;)n++;for(;o>=n&&e[o]==null;)o--;if(o<=n)return!0;const c=Oe(1,tt((o-n+1)/l));for(let u=e[n],d=n+c;d<=o;d+=c){const m=e[d];if(m!=null){if(m<=u)return!1;u=m}}return!0}const Ws=["January","February","March","April","May","June","July","August","September","October","November","December"],Gs=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Bs(e){return e.slice(0,3)}const Gr=Gs.map(Bs),Br=Ws.map(Bs),Ir={MMMM:Ws,MMM:Br,WWWW:Gs,WWW:Gr};function Bl(e){return(e<10?"0":"")+e}function Yr(e){return(e<10?"00":e<100?"0":"")+e}const Ur={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,l)=>l.MMMM[e.getMonth()],MMM:(e,l)=>l.MMM[e.getMonth()],MM:e=>Bl(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Bl(e.getDate()),D:e=>e.getDate(),WWWW:(e,l)=>l.WWWW[e.getDay()],WWW:(e,l)=>l.WWW[e.getDay()],HH:e=>Bl(e.getHours()),H:e=>e.getHours(),h:e=>{let l=e.getHours();return l==0?12:l>12?l-12:l},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Bl(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Bl(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Yr(e.getMilliseconds())};function ci(e,l){l=l||Ir;let s=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(e);)s.push(o[0][0]=="{"?Ur[o[1]]:o[0]);return c=>{let u="";for(let d=0;d<s.length;d++)u+=typeof s[d]=="string"?s[d]:s[d](c,l);return u}}const Kr=new Intl.DateTimeFormat().resolvedOptions().timeZone;function $r(e,l){let s;return l=="UTC"||l=="Etc/UTC"?s=new Date(+e+e.getTimezoneOffset()*6e4):l==Kr?s=e:(s=new Date(e.toLocaleString("en-US",{timeZone:l})),s.setMilliseconds(e.getMilliseconds())),s}const Is=e=>e%1==0,hn=[1,2,2.5,5],jr=jl(10,-32,0,hn),Ys=jl(10,0,32,hn),qr=Ys.filter(Is),Qt=jr.concat(Ys),ai=`
1
+ import{_ as Ko,bY as $o,o as jo,c as qo,a1 as Jo}from"./index-D12pqcPl.js";const Zo=!0,Le="u-",Qo="uplot",Xo=Le+"hz",er=Le+"vt",tr=Le+"title",lr=Le+"wrap",nr=Le+"under",ir=Le+"over",sr=Le+"axis",Xt=Le+"off",or=Le+"select",rr=Le+"cursor-x",fr=Le+"cursor-y",ur=Le+"cursor-pt",cr=Le+"legend",ar=Le+"live",hr=Le+"inline",pr=Le+"series",mr=Le+"marker",Ki=Le+"label",dr=Le+"value",Il="width",Yl="height",Gl="top",$i="bottom",xl="left",Gn="right",ni="#000",ji=ni+"0",qi="mousemove",Ji="mousedown",Bn="mouseup",Zi="mouseenter",Qi="mouseleave",Xi="dblclick",gr="resize",wr="scroll",es="change",cn="dppxchange",ii="--",Ll=typeof window<"u",$n=Ll?document:null,kl=Ll?window:null,Sr=Ll?navigator:null;let oe,on;function jn(){let e=devicePixelRatio;oe!=e&&(oe=e,on&&Jn(es,on,jn),on=matchMedia(`(min-resolution: ${oe-.001}dppx) and (max-resolution: ${oe+.001}dppx)`),el(es,on,jn),kl.dispatchEvent(new CustomEvent(cn)))}function et(e,l){if(l!=null){let s=e.classList;!s.contains(l)&&s.add(l)}}function qn(e,l){let s=e.classList;s.contains(l)&&s.remove(l)}function ge(e,l,s){e.style[l]=s+"px"}function wt(e,l,s,n){let o=$n.createElement(e);return l!=null&&et(o,l),s!=null&&s.insertBefore(o,n),o}function ct(e,l){return wt("div",e,l)}const ts=new WeakMap;function bt(e,l,s,n,o){let c="translate("+l+"px,"+s+"px)",u=ts.get(e);c!=u&&(e.style.transform=c,ts.set(e,c),l<0||s<0||l>n||s>o?et(e,Xt):qn(e,Xt))}const ls=new WeakMap;function ns(e,l,s){let n=l+s,o=ls.get(e);n!=o&&(ls.set(e,n),e.style.background=l,e.style.borderColor=s)}const is=new WeakMap;function ss(e,l,s,n){let o=l+""+s,c=is.get(e);o!=c&&(is.set(e,o),e.style.height=s+"px",e.style.width=l+"px",e.style.marginLeft=n?-l/2+"px":0,e.style.marginTop=n?-s/2+"px":0)}const si={passive:!0},_r={...si,capture:!0};function el(e,l,s,n){l.addEventListener(e,s,n?_r:si)}function Jn(e,l,s,n){l.removeEventListener(e,s,si)}Ll&&jn();function St(e,l,s,n){let o;s=s||0,n=n||l.length-1;let c=n<=2147483647;for(;n-s>1;)o=c?s+n>>1:tt((s+n)/2),l[o]<e?s=o:n=o;return e-l[s]<=l[n]-e?s:n}function bl(e,l,s,n){for(let o=n==1?l:s;o>=l&&o<=s;o+=n)if(e[o]!=null)return o;return-1}function yr(e,l,s,n){let o=ee,c=-ee;if(n==1)o=e[l],c=e[s];else if(n==-1)o=e[s],c=e[l];else for(let u=l;u<=s;u++){let d=e[u];d!=null&&(d<o&&(o=d),d>c&&(c=d))}return[o,c]}function xr(e,l,s){let n=ee,o=-ee;for(let c=l;c<=s;c++){let u=e[c];u!=null&&u>0&&(u<n&&(n=u),u>o&&(o=u))}return[n,o]}function pn(e,l,s,n){let o=fs(e),c=fs(l);e==l&&(o==-1?(e*=s,l/=s):(e/=s,l*=s));let u=s==10?At:Rs,d=o==1?tt:at,m=c==1?at:tt,g=d(u(Ae(e))),y=m(u(Ae(l))),_=Ml(s,g),h=Ml(s,y);return s==10&&(g<0&&(_=he(_,-g)),y<0&&(h=he(h,-y))),n||s==2?(e=_*o,l=h*c):(e=Fs(e,_),l=mn(l,h)),[e,l]}function oi(e,l,s,n){let o=pn(e,l,s,n);return e==0&&(o[0]=0),l==0&&(o[1]=0),o}const ri=.1,os={mode:3,pad:ri},Kl={pad:0,soft:null,mode:0},vr={min:Kl,max:Kl};function an(e,l,s,n){return dn(s)?rs(e,l,s):(Kl.pad=s,Kl.soft=n?0:null,Kl.mode=n?3:0,rs(e,l,vr))}function se(e,l){return e??l}function kr(e,l,s){for(l=se(l,0),s=se(s,e.length-1);l<=s;){if(e[l]!=null)return!0;l++}return!1}function rs(e,l,s){let n=s.min,o=s.max,c=se(n.pad,0),u=se(o.pad,0),d=se(n.hard,-ee),m=se(o.hard,ee),g=se(n.soft,ee),y=se(o.soft,-ee),_=se(n.mode,0),h=se(o.mode,0),T=l-e,z=At(T),L=Oe(Ae(e),Ae(l)),F=At(L),P=Ae(F-z);(T<1e-24||P>10)&&(T=0,(e==0||l==0)&&(T=1e-24,_==2&&g!=ee&&(c=0),h==2&&y!=-ee&&(u=0)));let H=T||L||1e3,k=At(H),C=Ml(10,tt(k)),E=H*(T==0?e==0?.1:1:c),W=he(Fs(e-E,C/10),24),D=e>=g&&(_==1||_==3&&W<=g||_==2&&W>=g)?g:ee,B=Oe(d,W<D&&e>=D?D:ht(D,W)),I=H*(T==0?l==0?.1:1:u),V=he(mn(l+I,C/10),24),v=l<=y&&(h==1||h==3&&V>=y||h==2&&V<=y)?y:-ee,N=ht(m,V>v&&l<=v?v:Oe(v,V));return B==N&&B==0&&(N=100),[B,N]}const br=new Intl.NumberFormat(Ll?Sr.language:"en-US"),fi=e=>br.format(e),lt=Math,un=lt.PI,Ae=lt.abs,tt=lt.floor,Te=lt.round,at=lt.ceil,ht=lt.min,Oe=lt.max,Ml=lt.pow,fs=lt.sign,At=lt.log10,Rs=lt.log2,Mr=(e,l=1)=>lt.sinh(e)*l,In=(e,l=1)=>lt.asinh(e/l),ee=1/0;function us(e){return(At((e^e>>31)-(e>>31))|0)+1}function Zn(e,l,s){return ht(Oe(e,l),s)}function X(e){return typeof e=="function"?e:()=>e}const Er=()=>{},zs=e=>e,Vs=(e,l)=>l,Tr=e=>null,cs=e=>!0,as=(e,l)=>e==l,Ar=/\.\d*?(?=9{6,}|0{6,})/gm,tl=e=>{if(Ns(e)||It.has(e))return e;const l=`${e}`,s=l.match(Ar);if(s==null)return e;let n=s[0].length-1;if(l.indexOf("e-")!=-1){let[o,c]=l.split("e");return+`${tl(o)}e${c}`}return he(e,n)};function Zt(e,l){return tl(he(tl(e/l))*l)}function mn(e,l){return tl(at(tl(e/l))*l)}function Fs(e,l){return tl(tt(tl(e/l))*l)}function he(e,l=0){if(Ns(e))return e;let s=10**l,n=e*s*(1+Number.EPSILON);return Te(n)/s}const It=new Map;function Hs(e){return((""+e).split(".")[1]||"").length}function jl(e,l,s,n){let o=[],c=n.map(Hs);for(let u=l;u<s;u++){let d=Ae(u),m=he(Ml(e,u),d);for(let g=0;g<n.length;g++){let y=e==10?+`${n[g]}e${u}`:n[g]*m,_=(u>=0?0:d)+(u>=c[g]?0:c[g]),h=e==10?y:he(y,_);o.push(h),It.set(h,_)}}return o}const $l={},ui=[],El=[null,null],Bt=Array.isArray,Ns=Number.isInteger,Lr=e=>e===void 0;function hs(e){return typeof e=="string"}function dn(e){let l=!1;if(e!=null){let s=e.constructor;l=s==null||s==Object}return l}function Dr(e){return e!=null&&typeof e=="object"}const Pr=Object.getPrototypeOf(Uint8Array),Os="__proto__";function Tl(e,l=dn){let s;if(Bt(e)){let n=e.find(o=>o!=null);if(Bt(n)||l(n)){s=Array(e.length);for(let o=0;o<e.length;o++)s[o]=Tl(e[o],l)}else s=e.slice()}else if(e instanceof Pr)s=e.slice();else if(l(e)){s={};for(let n in e)n!=Os&&(s[n]=Tl(e[n],l))}else s=e;return s}function Me(e){let l=arguments;for(let s=1;s<l.length;s++){let n=l[s];for(let o in n)o!=Os&&(dn(e[o])?Me(e[o],Tl(n[o])):e[o]=Tl(n[o]))}return e}const Cr=0,Rr=1,zr=2;function Vr(e,l,s){for(let n=0,o,c=-1;n<l.length;n++){let u=l[n];if(u>c){for(o=u-1;o>=0&&e[o]==null;)e[o--]=null;for(o=u+1;o<s&&e[o]==null;)e[c=o++]=null}}}function Fr(e,l){if(Or(e)){let u=e[0].slice();for(let d=1;d<e.length;d++)u.push(...e[d].slice(1));return Wr(u[0])||(u=Nr(u)),u}let s=new Set;for(let u=0;u<e.length;u++){let m=e[u][0],g=m.length;for(let y=0;y<g;y++)s.add(m[y])}let n=[Array.from(s).sort((u,d)=>u-d)],o=n[0].length,c=new Map;for(let u=0;u<o;u++)c.set(n[0][u],u);for(let u=0;u<e.length;u++){let d=e[u],m=d[0];for(let g=1;g<d.length;g++){let y=d[g],_=Array(o).fill(void 0),h=l?l[u][g]:Rr,T=[];for(let z=0;z<y.length;z++){let L=y[z],F=c.get(m[z]);L===null?h!=Cr&&(_[F]=L,h==zr&&T.push(F)):_[F]=L}Vr(_,T,o),n.push(_)}}return n}const Hr=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function Nr(e){let l=e[0],s=l.length,n=Array(s);for(let c=0;c<n.length;c++)n[c]=c;n.sort((c,u)=>l[c]-l[u]);let o=[];for(let c=0;c<e.length;c++){let u=e[c],d=Array(s);for(let m=0;m<s;m++)d[m]=u[n[m]];o.push(d)}return o}function Or(e){let l=e[0][0],s=l.length;for(let n=1;n<e.length;n++){let o=e[n][0];if(o.length!=s)return!1;if(o!=l){for(let c=0;c<s;c++)if(o[c]!=l[c])return!1}}return!0}function Wr(e,l=100){const s=e.length;if(s<=1)return!0;let n=0,o=s-1;for(;n<=o&&e[n]==null;)n++;for(;o>=n&&e[o]==null;)o--;if(o<=n)return!0;const c=Oe(1,tt((o-n+1)/l));for(let u=e[n],d=n+c;d<=o;d+=c){const m=e[d];if(m!=null){if(m<=u)return!1;u=m}}return!0}const Ws=["January","February","March","April","May","June","July","August","September","October","November","December"],Gs=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Bs(e){return e.slice(0,3)}const Gr=Gs.map(Bs),Br=Ws.map(Bs),Ir={MMMM:Ws,MMM:Br,WWWW:Gs,WWW:Gr};function Bl(e){return(e<10?"0":"")+e}function Yr(e){return(e<10?"00":e<100?"0":"")+e}const Ur={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,l)=>l.MMMM[e.getMonth()],MMM:(e,l)=>l.MMM[e.getMonth()],MM:e=>Bl(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Bl(e.getDate()),D:e=>e.getDate(),WWWW:(e,l)=>l.WWWW[e.getDay()],WWW:(e,l)=>l.WWW[e.getDay()],HH:e=>Bl(e.getHours()),H:e=>e.getHours(),h:e=>{let l=e.getHours();return l==0?12:l>12?l-12:l},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Bl(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Bl(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Yr(e.getMilliseconds())};function ci(e,l){l=l||Ir;let s=[],n=/\{([a-z]+)\}|[^{]+/gi,o;for(;o=n.exec(e);)s.push(o[0][0]=="{"?Ur[o[1]]:o[0]);return c=>{let u="";for(let d=0;d<s.length;d++)u+=typeof s[d]=="string"?s[d]:s[d](c,l);return u}}const Kr=new Intl.DateTimeFormat().resolvedOptions().timeZone;function $r(e,l){let s;return l=="UTC"||l=="Etc/UTC"?s=new Date(+e+e.getTimezoneOffset()*6e4):l==Kr?s=e:(s=new Date(e.toLocaleString("en-US",{timeZone:l})),s.setMilliseconds(e.getMilliseconds())),s}const Is=e=>e%1==0,hn=[1,2,2.5,5],jr=jl(10,-32,0,hn),Ys=jl(10,0,32,hn),qr=Ys.filter(Is),Qt=jr.concat(Ys),ai=`
2
2
  `,Us="{YYYY}",ps=ai+Us,Ks="{M}/{D}",Ul=ai+Ks,rn=Ul+"/{YY}",$s="{aa}",Jr="{h}:{mm}",vl=Jr+$s,ms=ai+vl,ds=":{ss}",re=null;function js(e){let l=e*1e3,s=l*60,n=s*60,o=n*24,c=o*30,u=o*365,m=(e==1?jl(10,0,3,hn).filter(Is):jl(10,-3,0,hn)).concat([l,l*5,l*10,l*15,l*30,s,s*5,s*10,s*15,s*30,n,n*2,n*3,n*4,n*6,n*8,n*12,o,o*2,o*3,o*4,o*5,o*6,o*7,o*8,o*9,o*10,o*15,c,c*2,c*3,c*4,c*6,u,u*2,u*5,u*10,u*25,u*50,u*100]);const g=[[u,Us,re,re,re,re,re,re,1],[o*28,"{MMM}",ps,re,re,re,re,re,1],[o,Ks,ps,re,re,re,re,re,1],[n,"{h}"+$s,rn,re,Ul,re,re,re,1],[s,vl,rn,re,Ul,re,re,re,1],[l,ds,rn+" "+vl,re,Ul+" "+vl,re,ms,re,1],[e,ds+".{fff}",rn+" "+vl,re,Ul+" "+vl,re,ms,re,1]];function y(_){return(h,T,z,L,F,P)=>{let H=[],k=F>=u,C=F>=c&&F<u,E=_(z),W=he(E*e,3),D=Yn(E.getFullYear(),k?0:E.getMonth(),C||k?1:E.getDate()),B=he(D*e,3);if(C||k){let I=C?F/c:0,V=k?F/u:0,v=W==B?W:he(Yn(D.getFullYear()+V,D.getMonth()+I,1)*e,3),N=new Date(Te(v/e)),q=N.getFullYear(),le=N.getMonth();for(let U=0;v<=L;U++){let ue=Yn(q+V*U,le+I*U,1),Z=ue-_(he(ue*e,3));v=he((+ue+Z)*e,3),v<=L&&H.push(v)}}else{let I=F>=o?o:F,V=tt(z)-tt(W),v=B+V+mn(W-B,I);H.push(v);let N=_(v),q=N.getHours()+N.getMinutes()/s+N.getSeconds()/n,le=F/n,U=h.axes[T]._space,ue=P/U;for(;v=he(v+F,e==1?0:3),!(v>L);)if(le>1){let Z=tt(he(q+le,6))%24,ne=_(v).getHours()-Z;ne>1&&(ne=-1),v-=ne*n,q=(q+le)%24;let fe=H[H.length-1];he((v-fe)/F,3)*ue>=.7&&H.push(v)}else H.push(v)}return H}}return[m,g,y]}const[Zr,Qr,Xr]=js(1),[ef,tf,lf]=js(.001);jl(2,-53,53,[1]);function gs(e,l){return e.map(s=>s.map((n,o)=>o==0||o==8||n==null?n:l(o==1||s[8]==0?n:s[1]+n)))}function ws(e,l){return(s,n,o,c,u)=>{let d=l.find(z=>u>=z[0])||l[l.length-1],m,g,y,_,h,T;return n.map(z=>{let L=e(z),F=L.getFullYear(),P=L.getMonth(),H=L.getDate(),k=L.getHours(),C=L.getMinutes(),E=L.getSeconds(),W=F!=m&&d[2]||P!=g&&d[3]||H!=y&&d[4]||k!=_&&d[5]||C!=h&&d[6]||E!=T&&d[7]||d[1];return m=F,g=P,y=H,_=k,h=C,T=E,W(L)})}}function nf(e,l){let s=ci(l);return(n,o,c,u,d)=>o.map(m=>s(e(m)))}function Yn(e,l,s){return new Date(e,l,s)}function Ss(e,l){return l(e)}const sf="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function _s(e,l){return(s,n,o,c)=>c==null?ii:l(e(n))}function of(e,l){let s=e.series[l];return s.width?s.stroke(e,l):s.points.width?s.points.stroke(e,l):null}function rf(e,l){return e.series[l].fill(e,l)}const ff={show:!0,live:!0,isolate:!1,mount:Er,markers:{show:!0,width:2,stroke:of,fill:rf,dash:"solid"},idx:null,idxs:null,values:[]};function uf(e,l){let s=e.cursor.points,n=ct(),o=s.size(e,l);ge(n,Il,o),ge(n,Yl,o);let c=o/-2;ge(n,"marginLeft",c),ge(n,"marginTop",c);let u=s.width(e,l,o);return u&&ge(n,"borderWidth",u),n}function cf(e,l){let s=e.series[l].points;return s._fill||s._stroke}function af(e,l){let s=e.series[l].points;return s._stroke||s._fill}function hf(e,l){return e.series[l].points.size}const Un=[0,0];function pf(e,l,s){return Un[0]=l,Un[1]=s,Un}function fn(e,l,s,n=!0){return o=>{o.button==0&&(!n||o.target==l)&&s(o)}}function Kn(e,l,s,n=!0){return o=>{(!n||o.target==l)&&s(o)}}const mf={show:!0,x:!0,y:!0,lock:!1,move:pf,points:{one:!1,show:uf,size:hf,width:0,stroke:af,fill:cf},bind:{mousedown:fn,mouseup:fn,click:fn,dblclick:fn,mousemove:Kn,mouseleave:Kn,mouseenter:Kn},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,l)=>{l.stopPropagation(),l.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,l,s,n,o)=>n-o,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},qs={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},hi=Me({},qs,{filter:Vs}),Js=Me({},hi,{size:10}),Zs=Me({},qs,{show:!1}),pi='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Qs="bold "+pi,Xs=1.5,ys={show:!0,scale:"x",stroke:ni,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Qs,side:2,grid:hi,ticks:Js,border:Zs,font:pi,lineGap:Xs,rotate:0},df="Value",gf="Time",xs={show:!0,scale:"x",auto:!1,sorted:1,min:ee,max:-ee,idxs:[]};function wf(e,l,s,n,o){return l.map(c=>c==null?"":fi(c))}function Sf(e,l,s,n,o,c,u){let d=[],m=It.get(o)||0;s=u?s:he(mn(s,o),m);for(let g=s;g<=n;g=he(g+o,m))d.push(Object.is(g,-0)?0:g);return d}function Qn(e,l,s,n,o,c,u){const d=[],m=e.scales[e.axes[l].scale].log,g=m==10?At:Rs,y=tt(g(s));o=Ml(m,y),m==10&&(o=Qt[St(o,Qt)]);let _=s,h=o*m;m==10&&(h=Qt[St(h,Qt)]);do d.push(_),_=_+o,m==10&&!It.has(_)&&(_=he(_,It.get(o))),_>=h&&(o=_,h=o*m,m==10&&(h=Qt[St(h,Qt)]));while(_<=n);return d}function _f(e,l,s,n,o,c,u){let m=e.scales[e.axes[l].scale].asinh,g=n>m?Qn(e,l,Oe(m,s),n,o):[m],y=n>=0&&s<=0?[0]:[];return(s<-m?Qn(e,l,Oe(m,-n),-s,o):[m]).reverse().map(h=>-h).concat(y,g)}const eo=/./,yf=/[12357]/,xf=/[125]/,vs=/1/,Xn=(e,l,s,n)=>e.map((o,c)=>l==4&&o==0||c%n==0&&s.test(o.toExponential()[o<0?1:0])?o:null);function vf(e,l,s,n,o){let c=e.axes[s],u=c.scale,d=e.scales[u],m=e.valToPos,g=c._space,y=m(10,u),_=m(9,u)-y>=g?eo:m(7,u)-y>=g?yf:m(5,u)-y>=g?xf:vs;if(_==vs){let h=Ae(m(1,u)-y);if(h<g)return Xn(l.slice().reverse(),d.distr,_,at(g/h)).reverse()}return Xn(l,d.distr,_,1)}function kf(e,l,s,n,o){let c=e.axes[s],u=c.scale,d=c._space,m=e.valToPos,g=Ae(m(1,u)-m(2,u));return g<d?Xn(l.slice().reverse(),3,eo,at(d/g)).reverse():l}function bf(e,l,s,n){return n==null?ii:l==null?"":fi(l)}const ks={show:!0,scale:"y",stroke:ni,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Qs,side:3,grid:hi,ticks:Js,border:Zs,font:pi,lineGap:Xs,rotate:0};function Mf(e,l){let s=3+(e||1)*2;return he(s*l,3)}function Ef(e,l){let{scale:s,idxs:n}=e.series[0],o=e._data[0],c=e.valToPos(o[n[0]],s,!0),u=e.valToPos(o[n[1]],s,!0),d=Ae(u-c),m=e.series[l],g=d/(m.points.space*oe);return n[1]-n[0]<=g}const bs={scale:null,auto:!0,sorted:0,min:ee,max:-ee},to=(e,l,s,n,o)=>o,Ms={show:!0,auto:!0,sorted:0,gaps:to,alpha:1,facets:[Me({},bs,{scale:"x"}),Me({},bs,{scale:"y"})]},Es={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:to,alpha:1,points:{show:Ef,filter:null},values:null,min:ee,max:-ee,idxs:[],path:null,clip:null};function Tf(e,l,s,n,o){return s/10}const lo={time:Zo,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Af=Me({},lo,{time:!1,ori:1}),Ts={};function no(e,l){let s=Ts[e];return s||(s={key:e,plots:[],sub(n){s.plots.push(n)},unsub(n){s.plots=s.plots.filter(o=>o!=n)},pub(n,o,c,u,d,m,g){for(let y=0;y<s.plots.length;y++)s.plots[y]!=o&&s.plots[y].pub(n,o,c,u,d,m,g)}},e!=null&&(Ts[e]=s)),s}const Al=1,ei=2;function ll(e,l,s){const n=e.mode,o=e.series[l],c=n==2?e._data[l]:e._data,u=e.scales,d=e.bbox;let m=c[0],g=n==2?c[1]:c[l],y=n==2?u[o.facets[0].scale]:u[e.series[0].scale],_=n==2?u[o.facets[1].scale]:u[o.scale],h=d.left,T=d.top,z=d.width,L=d.height,F=e.valToPosH,P=e.valToPosV;return y.ori==0?s(o,m,g,y,_,F,P,h,T,z,L,wn,Dl,_n,so,ro):s(o,m,g,y,_,P,F,T,h,L,z,Sn,Pl,gi,oo,fo)}function mi(e,l){let s=0,n=0,o=se(e.bands,ui);for(let c=0;c<o.length;c++){let u=o[c];u.series[0]==l?s=u.dir:u.series[1]==l&&(u.dir==1?n|=1:n|=2)}return[s,n==1?-1:n==2?1:n==3?2:0]}function Lf(e,l,s,n,o){let c=e.mode,u=e.series[l],d=c==2?u.facets[1].scale:u.scale,m=e.scales[d];return o==-1?m.min:o==1?m.max:m.distr==3?m.dir==1?m.min:m.max:0}function Lt(e,l,s,n,o,c){return ll(e,l,(u,d,m,g,y,_,h,T,z,L,F)=>{let P=u.pxRound;const H=g.dir*(g.ori==0?1:-1),k=g.ori==0?Dl:Pl;let C,E;H==1?(C=s,E=n):(C=n,E=s);let W=P(_(d[C],g,L,T)),D=P(h(m[C],y,F,z)),B=P(_(d[E],g,L,T)),I=P(h(c==1?y.max:y.min,y,F,z)),V=new Path2D(o);return k(V,B,I),k(V,W,I),k(V,W,D),V})}function gn(e,l,s,n,o,c){let u=null;if(e.length>0){u=new Path2D;const d=l==0?_n:gi;let m=s;for(let _=0;_<e.length;_++){let h=e[_];if(h[1]>h[0]){let T=h[0]-m;T>0&&d(u,m,n,T,n+c),m=h[1]}}let g=s+o-m,y=10;g>0&&d(u,m,n-y/2,g,n+c+y)}return u}function Df(e,l,s){let n=e[e.length-1];n&&n[0]==l?n[1]=s:e.push([l,s])}function di(e,l,s,n,o,c,u){let d=[],m=e.length;for(let g=o==1?s:n;g>=s&&g<=n;g+=o)if(l[g]===null){let _=g,h=g;if(o==1)for(;++g<=n&&l[g]===null;)h=g;else for(;--g>=s&&l[g]===null;)h=g;let T=c(e[_]),z=h==_?T:c(e[h]),L=_-o;T=u<=0&&L>=0&&L<m?c(e[L]):T;let P=h+o;z=u>=0&&P>=0&&P<m?c(e[P]):z,z>=T&&d.push([T,z])}return d}function As(e){return e==0?zs:e==1?Te:l=>Zt(l,e)}function io(e){let l=e==0?wn:Sn,s=e==0?(o,c,u,d,m,g)=>{o.arcTo(c,u,d,m,g)}:(o,c,u,d,m,g)=>{o.arcTo(u,c,m,d,g)},n=e==0?(o,c,u,d,m)=>{o.rect(c,u,d,m)}:(o,c,u,d,m)=>{o.rect(u,c,m,d)};return(o,c,u,d,m,g=0,y=0)=>{g==0&&y==0?n(o,c,u,d,m):(g=ht(g,d/2,m/2),y=ht(y,d/2,m/2),l(o,c+g,u),s(o,c+d,u,c+d,u+m,g),s(o,c+d,u+m,c,u+m,y),s(o,c,u+m,c,u,y),s(o,c,u,c+d,u,g),o.closePath())}}const wn=(e,l,s)=>{e.moveTo(l,s)},Sn=(e,l,s)=>{e.moveTo(s,l)},Dl=(e,l,s)=>{e.lineTo(l,s)},Pl=(e,l,s)=>{e.lineTo(s,l)},_n=io(0),gi=io(1),so=(e,l,s,n,o,c)=>{e.arc(l,s,n,o,c)},oo=(e,l,s,n,o,c)=>{e.arc(s,l,n,o,c)},ro=(e,l,s,n,o,c,u)=>{e.bezierCurveTo(l,s,n,o,c,u)},fo=(e,l,s,n,o,c,u)=>{e.bezierCurveTo(s,l,o,n,u,c)};function uo(e){return(l,s,n,o,c)=>ll(l,s,(u,d,m,g,y,_,h,T,z,L,F)=>{let{pxRound:P,points:H}=u,k,C;g.ori==0?(k=wn,C=so):(k=Sn,C=oo);const E=he(H.width*oe,3);let W=(H.size-H.width)/2*oe,D=he(W*2,3),B=new Path2D,I=new Path2D,{left:V,top:v,width:N,height:q}=l.bbox;_n(I,V-D,v-D,N+D*2,q+D*2);const le=U=>{if(m[U]!=null){let ue=P(_(d[U],g,L,T)),Z=P(h(m[U],y,F,z));k(B,ue+W,Z),C(B,ue,Z,W,0,un*2)}};if(c)c.forEach(le);else for(let U=n;U<=o;U++)le(U);return{stroke:E>0?B:null,fill:B,clip:I,flags:Al|ei}})}function co(e){return(l,s,n,o,c,u)=>{n!=o&&(c!=n&&u!=n&&e(l,s,n),c!=o&&u!=o&&e(l,s,o),e(l,s,u))}}const Pf=co(Dl),Cf=co(Pl);function ao(e){const l=se(e==null?void 0:e.alignGaps,0);return(s,n,o,c)=>ll(s,n,(u,d,m,g,y,_,h,T,z,L,F)=>{let P=u.pxRound,H=O=>P(_(O,g,L,T)),k=O=>P(h(O,y,F,z)),C,E;g.ori==0?(C=Dl,E=Pf):(C=Pl,E=Cf);const W=g.dir*(g.ori==0?1:-1),D={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Al},B=D.stroke;let I=ee,V=-ee,v,N,q,le=H(d[W==1?o:c]),U=bl(m,o,c,1*W),ue=bl(m,o,c,-1*W),Z=H(d[U]),Ue=H(d[ue]),ve=!1;for(let O=W==1?o:c;O>=o&&O<=c;O+=W){let Se=H(d[O]),ie=m[O];Se==le?ie!=null?(N=k(ie),I==ee&&(C(B,Se,N),v=N),I=ht(N,I),V=Oe(N,V)):ie===null&&(ve=!0):(I!=ee&&(E(B,le,I,V,v,N),q=le),ie!=null?(N=k(ie),C(B,Se,N),I=V=v=N):(I=ee,V=-ee,ie===null&&(ve=!0)),le=Se)}I!=ee&&I!=V&&q!=le&&E(B,le,I,V,v,N);let[ne,fe]=mi(s,n);if(u.fill!=null||ne!=0){let O=D.fill=new Path2D(B),Se=u.fillTo(s,n,u.min,u.max,ne),ie=k(Se);C(O,Ue,ie),C(O,Z,ie)}if(!u.spanGaps){let O=[];ve&&O.push(...di(d,m,o,c,W,H,l)),D.gaps=O=u.gaps(s,n,o,c,O),D.clip=gn(O,g.ori,T,z,L,F)}return fe!=0&&(D.band=fe==2?[Lt(s,n,o,c,B,-1),Lt(s,n,o,c,B,1)]:Lt(s,n,o,c,B,fe)),D})}function Rf(e){const l=se(e.align,1),s=se(e.ascDesc,!1),n=se(e.alignGaps,0),o=se(e.extend,!1);return(c,u,d,m)=>ll(c,u,(g,y,_,h,T,z,L,F,P,H,k)=>{let C=g.pxRound,{left:E,width:W}=c.bbox,D=ne=>C(z(ne,h,H,F)),B=ne=>C(L(ne,T,k,P)),I=h.ori==0?Dl:Pl;const V={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:Al},v=V.stroke,N=h.dir*(h.ori==0?1:-1);d=bl(_,d,m,1),m=bl(_,d,m,-1);let q=B(_[N==1?d:m]),le=D(y[N==1?d:m]),U=le,ue=le;o&&l==-1&&(ue=E,I(v,ue,q)),I(v,le,q);for(let ne=N==1?d:m;ne>=d&&ne<=m;ne+=N){let fe=_[ne];if(fe==null)continue;let O=D(y[ne]),Se=B(fe);l==1?I(v,O,q):I(v,U,Se),I(v,O,Se),q=Se,U=O}let Z=U;o&&l==1&&(Z=E+W,I(v,Z,q));let[Ue,ve]=mi(c,u);if(g.fill!=null||Ue!=0){let ne=V.fill=new Path2D(v),fe=g.fillTo(c,u,g.min,g.max,Ue),O=B(fe);I(ne,Z,O),I(ne,ue,O)}if(!g.spanGaps){let ne=[];ne.push(...di(y,_,d,m,N,D,n));let fe=g.width*oe/2,O=s||l==1?fe:-fe,Se=s||l==-1?-fe:fe;ne.forEach(ie=>{ie[0]+=O,ie[1]+=Se}),V.gaps=ne=g.gaps(c,u,d,m,ne),V.clip=gn(ne,h.ori,F,P,H,k)}return ve!=0&&(V.band=ve==2?[Lt(c,u,d,m,v,-1),Lt(c,u,d,m,v,1)]:Lt(c,u,d,m,v,ve)),V})}function Ls(e,l,s,n,o,c,u=ee){if(e.length>1){let d=null;for(let m=0,g=1/0;m<e.length;m++)if(l[m]!==void 0){if(d!=null){let y=Ae(e[m]-e[d]);y<g&&(g=y,u=Ae(s(e[m],n,o,c)-s(e[d],n,o,c)))}d=m}}return u}function zf(e){e=e||$l;const l=se(e.size,[.6,ee,1]),s=e.align||0,n=e.gap||0;let o=e.radius;o=o==null?[0,0]:typeof o=="number"?[o,0]:o;const c=X(o),u=1-l[0],d=se(l[1],ee),m=se(l[2],1),g=se(e.disp,$l),y=se(e.each,T=>{}),{fill:_,stroke:h}=g;return(T,z,L,F)=>ll(T,z,(P,H,k,C,E,W,D,B,I,V,v)=>{let N=P.pxRound,q=s,le=n*oe,U=d*oe,ue=m*oe,Z,Ue;C.ori==0?[Z,Ue]=c(T,z):[Ue,Z]=c(T,z);const ve=C.dir*(C.ori==0?1:-1);let ne=C.ori==0?_n:gi,fe=C.ori==0?y:($,Ge,Ct,Ut,Rt,qe,pt)=>{y($,Ge,Ct,Rt,Ut,pt,qe)},O=se(T.bands,ui).find($=>$.series[0]==z),Se=O!=null?O.dir:0,ie=P.fillTo(T,z,P.min,P.max,Se),Ke=N(D(ie,E,v,I)),Cl,Ee,$e,nt=V,ye=N(P.width*oe),je=!1,Dt=null,nl=null,Yt=null,il=null;_!=null&&(ye==0||h!=null)&&(je=!0,Dt=_.values(T,z,L,F),nl=new Map,new Set(Dt).forEach($=>{$!=null&&nl.set($,new Path2D)}),ye>0&&(Yt=h.values(T,z,L,F),il=new Map,new Set(Yt).forEach($=>{$!=null&&il.set($,new Path2D)})));let{x0:Rl,size:Mt}=g;if(Rl!=null&&Mt!=null){q=1,H=Rl.values(T,z,L,F),Rl.unit==2&&(H=H.map(Ct=>T.posToVal(B+Ct*V,C.key,!0)));let $=Mt.values(T,z,L,F);Mt.unit==2?Ee=$[0]*V:Ee=W($[0],C,V,B)-W(0,C,V,B),nt=Ls(H,k,W,C,V,B,nt),$e=nt-Ee+le}else nt=Ls(H,k,W,C,V,B,nt),$e=nt*u+le,Ee=nt-$e;$e<1&&($e=0),ye>=Ee/2&&(ye=0),$e<5&&(N=zs);let it=$e>0,ql=nt-$e-(it?ye:0);Ee=N(Zn(ql,ue,U)),Cl=(q==0?Ee/2:q==ve?0:Ee)-q*ve*((q==0?le/2:0)+(it?ye/2:0));const _t={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Pt=je?null:new Path2D;let K=null;if(O!=null)K=T.data[O.series[1]];else{let{y0:$,y1:Ge}=g;$!=null&&Ge!=null&&(k=Ge.values(T,z,L,F),K=$.values(T,z,L,F))}let J=Z*Ee,He=Ue*Ee;for(let $=ve==1?L:F;$>=L&&$<=F;$+=ve){let Ge=k[$];if(Ge==null)continue;if(K!=null){let yt=K[$]??0;if(Ge-yt==0)continue;Ke=D(yt,E,v,I)}let Ct=C.distr!=2||g!=null?H[$]:$,Ut=W(Ct,C,V,B),Rt=D(se(Ge,ie),E,v,I),qe=N(Ut-Cl),pt=N(Oe(Rt,Ke)),Qe=N(ht(Rt,Ke)),st=pt-Qe;if(Ge!=null){let yt=Ge<0?He:J,zt=Ge<0?J:He;je?(ye>0&&Yt[$]!=null&&ne(il.get(Yt[$]),qe,Qe+tt(ye/2),Ee,Oe(0,st-ye),yt,zt),Dt[$]!=null&&ne(nl.get(Dt[$]),qe,Qe+tt(ye/2),Ee,Oe(0,st-ye),yt,zt)):ne(Pt,qe,Qe+tt(ye/2),Ee,Oe(0,st-ye),yt,zt),fe(T,z,$,qe-ye/2,Qe,Ee+ye,st)}}return ye>0?_t.stroke=je?il:Pt:je||(_t._fill=P.width==0?P._fill:P._stroke??P._fill,_t.width=0),_t.fill=je?nl:Pt,_t})}function Vf(e,l){const s=se(l==null?void 0:l.alignGaps,0);return(n,o,c,u)=>ll(n,o,(d,m,g,y,_,h,T,z,L,F,P)=>{let H=d.pxRound,k=Z=>H(h(Z,y,F,z)),C=Z=>H(T(Z,_,P,L)),E,W,D;y.ori==0?(E=wn,D=Dl,W=ro):(E=Sn,D=Pl,W=fo);const B=y.dir*(y.ori==0?1:-1);c=bl(g,c,u,1),u=bl(g,c,u,-1);let I=k(m[B==1?c:u]),V=I,v=[],N=[];for(let Z=B==1?c:u;Z>=c&&Z<=u;Z+=B)if(g[Z]!=null){let ve=m[Z],ne=k(ve);v.push(V=ne),N.push(C(g[Z]))}const q={stroke:e(v,N,E,D,W,H),fill:null,clip:null,band:null,gaps:null,flags:Al},le=q.stroke;let[U,ue]=mi(n,o);if(d.fill!=null||U!=0){let Z=q.fill=new Path2D(le),Ue=d.fillTo(n,o,d.min,d.max,U),ve=C(Ue);D(Z,V,ve),D(Z,I,ve)}if(!d.spanGaps){let Z=[];Z.push(...di(m,g,c,u,B,k,s)),q.gaps=Z=d.gaps(n,o,c,u,Z),q.clip=gn(Z,y.ori,z,L,F,P)}return ue!=0&&(q.band=ue==2?[Lt(n,o,c,u,le,-1),Lt(n,o,c,u,le,1)]:Lt(n,o,c,u,le,ue)),q})}function Ff(e){return Vf(Hf,e)}function Hf(e,l,s,n,o,c){const u=e.length;if(u<2)return null;const d=new Path2D;if(s(d,e[0],l[0]),u==2)n(d,e[1],l[1]);else{let m=Array(u),g=Array(u-1),y=Array(u-1),_=Array(u-1);for(let h=0;h<u-1;h++)y[h]=l[h+1]-l[h],_[h]=e[h+1]-e[h],g[h]=y[h]/_[h];m[0]=g[0];for(let h=1;h<u-1;h++)g[h]===0||g[h-1]===0||g[h-1]>0!=g[h]>0?m[h]=0:(m[h]=3*(_[h-1]+_[h])/((2*_[h]+_[h-1])/g[h-1]+(_[h]+2*_[h-1])/g[h]),isFinite(m[h])||(m[h]=0));m[u-1]=g[u-2];for(let h=0;h<u-1;h++)o(d,e[h]+_[h]/3,l[h]+m[h]*_[h]/3,e[h+1]-_[h]/3,l[h+1]-m[h+1]*_[h]/3,e[h+1],l[h+1])}return d}const ti=new Set;function Ds(){for(let e of ti)e.syncRect(!0)}Ll&&(el(gr,kl,Ds),el(wr,kl,Ds,!0),el(cn,kl,()=>{We.pxRatio=oe}));const Nf=ao(),Of=uo();function Ps(e,l,s,n){return(n?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((c,u)=>li(c,u,l,s))}function Wf(e,l){return e.map((s,n)=>n==0?{}:Me({},l,s))}function li(e,l,s,n){return Me({},l==0?s:n,e)}function ho(e,l,s){return l==null?El:[l,s]}const Gf=ho;function Bf(e,l,s){return l==null?El:an(l,s,ri,!0)}function po(e,l,s,n){return l==null?El:pn(l,s,e.scales[n].log,!1)}const If=po;function mo(e,l,s,n){return l==null?El:oi(l,s,e.scales[n].log,!1)}const Yf=mo;function Uf(e,l,s,n,o){let c=Oe(us(e),us(l)),u=l-e,d=St(o/n*u,s);do{let m=s[d],g=n*m/u;if(g>=o&&c+(m<5?It.get(m):0)<=17)return[m,g]}while(++d<s.length);return[0,0]}function Cs(e){let l,s;return e=e.replace(/(\d+)px/,(n,o)=>(l=Te((s=+o)*oe))+"px"),[e,l,s]}function Kf(e){e.show&&[e.font,e.labelFont].forEach(l=>{let s=he(l[2]*oe,1);l[0]=l[0].replace(/[0-9.]+px/,s+"px"),l[1]=s})}function We(e,l,s){const n={mode:se(e.mode,1)},o=n.mode;function c(t,i){return((i.distr==3?At(t>0?t:i.clamp(n,t,i.min,i.max,i.key)):i.distr==4?In(t,i.asinh):i.distr==100?i.fwd(t):t)-i._min)/(i._max-i._min)}function u(t,i,r,f){let a=c(t,i);return f+r*(i.dir==-1?1-a:a)}function d(t,i,r,f){let a=c(t,i);return f+r*(i.dir==-1?a:1-a)}function m(t,i,r,f){return i.ori==0?u(t,i,r,f):d(t,i,r,f)}n.valToPosH=u,n.valToPosV=d;let g=!1;n.status=0;const y=n.root=ct(Qo);if(e.id!=null&&(y.id=e.id),et(y,e.class),e.title){let t=ct(tr,y);t.textContent=e.title}const _=wt("canvas"),h=n.ctx=_.getContext("2d"),T=ct(lr,y);el("click",T,t=>{t.target===L&&(pe!=dl||we!=gl)&&Fe.click(n,t)},!0);const z=n.under=ct(nr,T);T.appendChild(_);const L=n.over=ct(ir,T);e=Tl(e);const F=+se(e.pxAlign,1),P=As(F);(e.plugins||[]).forEach(t=>{t.opts&&(e=t.opts(n,e)||e)});const H=e.ms||.001,k=n.series=o==1?Ps(e.series||[],xs,Es,!1):Wf(e.series||[null],Ms),C=n.axes=Ps(e.axes||[],ys,ks,!0),E=n.scales={},W=n.bands=e.bands||[];W.forEach(t=>{t.fill=X(t.fill||null),t.dir=se(t.dir,-1)});const D=o==2?k[1].facets[0].scale:k[0].scale,B={axes:Po,series:Eo},I=(e.drawOrder||["axes","series"]).map(t=>B[t]);function V(t){let i=E[t];if(i==null){let r=(e.scales||$l)[t]||$l;if(r.from!=null)V(r.from),E[t]=Me({},E[r.from],r,{key:t});else{i=E[t]=Me({},t==D?lo:Af,r),i.key=t;let f=i.time,a=i.range,p=Bt(a);if((t!=D||o==2&&!f)&&(p&&(a[0]==null||a[1]==null)&&(a={min:a[0]==null?os:{mode:1,hard:a[0],soft:a[0]},max:a[1]==null?os:{mode:1,hard:a[1],soft:a[1]}},p=!1),!p&&dn(a))){let w=a;a=(S,x,b)=>x==null?El:an(x,b,w)}i.range=X(a||(f?Gf:t==D?i.distr==3?If:i.distr==4?Yf:ho:i.distr==3?po:i.distr==4?mo:Bf)),i.auto=X(p?!1:i.auto),i.clamp=X(i.clamp||Tf),i._min=i._max=null}}}V("x"),V("y"),o==1&&k.forEach(t=>{V(t.scale)}),C.forEach(t=>{V(t.scale)});for(let t in e.scales)V(t);const v=E[D],N=v.distr;let q,le;v.ori==0?(et(y,Xo),q=u,le=d):(et(y,er),q=d,le=u);const U={};for(let t in E){let i=E[t];(i.min!=null||i.max!=null)&&(U[t]={min:i.min,max:i.max},i.min=i.max=null)}const ue=e.tzDate||(t=>new Date(Te(t/H))),Z=e.fmtDate||ci,Ue=H==1?Xr(ue):lf(ue),ve=ws(ue,gs(H==1?Qr:tf,Z)),ne=_s(ue,Ss(sf,Z)),fe=[],O=n.legend=Me({},ff,e.legend),Se=O.show,ie=O.markers;O.idxs=fe,ie.width=X(ie.width),ie.dash=X(ie.dash),ie.stroke=X(ie.stroke),ie.fill=X(ie.fill);let Ke,Cl,Ee,$e=[],nt=[],ye,je=!1,Dt={};if(O.live){const t=k[1]?k[1].values:null;je=t!=null,ye=je?t(n,1,0):{_:0};for(let i in ye)Dt[i]=ii}if(Se)if(Ke=wt("table",cr,y),Ee=wt("tbody",null,Ke),O.mount(n,Ke),je){Cl=wt("thead",null,Ke,Ee);let t=wt("tr",null,Cl);wt("th",null,t);for(var nl in ye)wt("th",Ki,t).textContent=nl}else et(Ke,hr),O.live&&et(Ke,ar);const Yt={show:!0},il={show:!1};function Rl(t,i){if(i==0&&(je||!O.live||o==2))return El;let r=[],f=wt("tr",pr,Ee,Ee.childNodes[i]);et(f,t.class),t.show||et(f,Xt);let a=wt("th",null,f);if(ie.show){let S=ct(mr,a);if(i>0){let x=ie.width(n,i);x&&(S.style.border=x+"px "+ie.dash(n,i)+" "+ie.stroke(n,i)),S.style.background=ie.fill(n,i)}}let p=ct(Ki,a);p.textContent=t.label,i>0&&(ie.show||(p.style.color=t.width>0?ie.stroke(n,i):ie.fill(n,i)),it("click",a,S=>{if(G._lock)return;$t(S);let x=k.indexOf(t);if((S.ctrlKey||S.metaKey)!=O.isolate){let b=k.some((M,A)=>A>0&&A!=x&&M.show);k.forEach((M,A)=>{A>0&&xt(A,b?A==x?Yt:il:Yt,!0,ke.setSeries)})}else xt(x,{show:!t.show},!0,ke.setSeries)},!1),ol&&it(Zi,a,S=>{G._lock||($t(S),xt(k.indexOf(t),Sl,!0,ke.setSeries))},!1));for(var w in ye){let S=wt("td",dr,f);S.textContent="--",r.push(S)}return[f,r]}const Mt=new Map;function it(t,i,r,f=!0){const a=Mt.get(i)||{},p=G.bind[t](n,i,r,f);p&&(el(t,i,a[t]=p),Mt.set(i,a))}function ql(t,i,r){const f=Mt.get(i)||{};for(let a in f)(t==null||a==t)&&(Jn(a,i,f[a]),delete f[a]);t==null&&Mt.delete(i)}let _t=0,Pt=0,K=0,J=0,He=0,$=0,Ge=He,Ct=$,Ut=K,Rt=J,qe=0,pt=0,Qe=0,st=0;n.bbox={};let yt=!1,zt=!1,sl=!1,Kt=!1,Jl=!1,ot=!1;function yn(t,i,r){(r||t!=n.width||i!=n.height)&&wi(t,i),al(!1),sl=!0,zt=!0,hl()}function wi(t,i){n.width=_t=K=t,n.height=Pt=J=i,He=$=0,_o(),yo();let r=n.bbox;qe=r.left=Zt(He*oe,.5),pt=r.top=Zt($*oe,.5),Qe=r.width=Zt(K*oe,.5),st=r.height=Zt(J*oe,.5)}const go=3;function wo(){let t=!1,i=0;for(;!t;){i++;let r=Lo(i),f=Do(i);t=i==go||r&&f,t||(wi(n.width,n.height),zt=!0)}}function So({width:t,height:i}){yn(t,i)}n.setSize=So;function _o(){let t=!1,i=!1,r=!1,f=!1;C.forEach((a,p)=>{if(a.show&&a._show){let{side:w,_size:S}=a,x=w%2,b=a.label!=null?a.labelSize:0,M=S+b;M>0&&(x?(K-=M,w==3?(He+=M,f=!0):r=!0):(J-=M,w==0?($+=M,t=!0):i=!0))}}),jt[0]=t,jt[1]=r,jt[2]=i,jt[3]=f,K-=Ft[1]+Ft[3],He+=Ft[3],J-=Ft[2]+Ft[0],$+=Ft[0]}function yo(){let t=He+K,i=$+J,r=He,f=$;function a(p,w){switch(p){case 1:return t+=w,t-w;case 2:return i+=w,i-w;case 3:return r-=w,r+w;case 0:return f-=w,f+w}}C.forEach((p,w)=>{if(p.show&&p._show){let S=p.side;p._pos=a(S,p._size),p.label!=null&&(p._lpos=a(S,p.labelSize))}})}const G=n.cursor=Me({},mf,{drag:{y:o==2}},e.cursor);if(G.dataIdx==null){let t=G.hover,i=t.skip=new Set(t.skip??[]);i.add(void 0);let r=t.prox=X(t.prox),f=t.bias??(t.bias=0);G.dataIdx=(a,p,w,S)=>{if(p==0)return w;let x=w,b=r(a,p,w,S)??ee,M=b>=0&&b<ee,A=v.ori==0?K:J,Y=G.left,ae=l[0],te=l[p];if(i.has(te[w])){x=null;let Q=null,j=null,R;if(f==0||f==-1)for(R=w;Q==null&&R-- >0;)i.has(te[R])||(Q=R);if(f==0||f==1)for(R=w;j==null&&R++<te.length;)i.has(te[R])||(j=R);if(Q!=null||j!=null)if(M){let ce=Q==null?-1/0:q(ae[Q],v,A,0),xe=j==null?1/0:q(ae[j],v,A,0),_e=Y-ce,de=xe-Y;_e<=de?_e<=b&&(x=Q):de<=b&&(x=j)}else x=j==null?Q:Q==null?j:w-Q<=j-w?Q:j}else M&&Ae(Y-q(ae[w],v,A,0))>b&&(x=null);return x}}const $t=t=>{G.event=t};G.idxs=fe,G._lock=!1;let Ne=G.points;Ne.show=X(Ne.show),Ne.size=X(Ne.size),Ne.stroke=X(Ne.stroke),Ne.width=X(Ne.width),Ne.fill=X(Ne.fill);const Vt=n.focus=Me({},e.focus||{alpha:.3},G.focus),ol=Vt.prox>=0,rl=ol&&Ne.one;let rt=[],fl=[],ul=[];function Si(t,i){let r=Ne.show(n,i);if(r)return et(r,ur),et(r,t.class),bt(r,-10,-10,K,J),L.insertBefore(r,rt[i]),r}function _i(t,i){if(o==1||i>0){let r=o==1&&E[t.scale].time,f=t.value;t.value=r?hs(f)?_s(ue,Ss(f,Z)):f||ne:f||bf,t.label=t.label||(r?gf:df)}if(rl||i>0){t.width=t.width==null?1:t.width,t.paths=t.paths||Nf||Tr,t.fillTo=X(t.fillTo||Lf),t.pxAlign=+se(t.pxAlign,F),t.pxRound=As(t.pxAlign),t.stroke=X(t.stroke||null),t.fill=X(t.fill||null),t._stroke=t._fill=t._paths=t._focus=null;let r=Mf(Oe(1,t.width),1),f=t.points=Me({},{size:r,width:Oe(1,r*.2),stroke:t.stroke,space:r*2,paths:Of,_stroke:null,_fill:null},t.points);f.show=X(f.show),f.filter=X(f.filter),f.fill=X(f.fill),f.stroke=X(f.stroke),f.paths=X(f.paths),f.pxAlign=t.pxAlign}if(Se){let r=Rl(t,i);$e.splice(i,0,r[0]),nt.splice(i,0,r[1]),O.values.push(null)}if(G.show){fe.splice(i,0,null);let r=null;rl?i==0&&(r=Si(t,i)):i>0&&(r=Si(t,i)),rt.splice(i,0,r),fl.splice(i,0,0),ul.splice(i,0,0)}ze("addSeries",i)}function xo(t,i){i=i??k.length,t=o==1?li(t,i,xs,Es):li(t,i,{},Ms),k.splice(i,0,t),_i(k[i],i)}n.addSeries=xo;function vo(t){if(k.splice(t,1),Se){O.values.splice(t,1),nt.splice(t,1);let i=$e.splice(t,1)[0];ql(null,i.firstChild),i.remove()}G.show&&(fe.splice(t,1),rt.splice(t,1)[0].remove(),fl.splice(t,1),ul.splice(t,1)),ze("delSeries",t)}n.delSeries=vo;const jt=[!1,!1,!1,!1];function ko(t,i){if(t._show=t.show,t.show){let r=t.side%2,f=E[t.scale];f==null&&(t.scale=r?k[1].scale:D,f=E[t.scale]);let a=f.time;t.size=X(t.size),t.space=X(t.space),t.rotate=X(t.rotate),Bt(t.incrs)&&t.incrs.forEach(w=>{!It.has(w)&&It.set(w,Hs(w))}),t.incrs=X(t.incrs||(f.distr==2?qr:a?H==1?Zr:ef:Qt)),t.splits=X(t.splits||(a&&f.distr==1?Ue:f.distr==3?Qn:f.distr==4?_f:Sf)),t.stroke=X(t.stroke),t.grid.stroke=X(t.grid.stroke),t.ticks.stroke=X(t.ticks.stroke),t.border.stroke=X(t.border.stroke);let p=t.values;t.values=Bt(p)&&!Bt(p[0])?X(p):a?Bt(p)?ws(ue,gs(p,Z)):hs(p)?nf(ue,p):p||ve:p||wf,t.filter=X(t.filter||(f.distr>=3&&f.log==10?vf:f.distr==3&&f.log==2?kf:Vs)),t.font=Cs(t.font),t.labelFont=Cs(t.labelFont),t._size=t.size(n,null,i,0),t._space=t._rotate=t._incrs=t._found=t._splits=t._values=null,t._size>0&&(jt[i]=!0,t._el=ct(sr,T))}}function zl(t,i,r,f){let[a,p,w,S]=r,x=i%2,b=0;return x==0&&(S||p)&&(b=i==0&&!a||i==2&&!w?Te(ys.size/3):0),x==1&&(a||w)&&(b=i==1&&!p||i==3&&!S?Te(ks.size/2):0),b}const yi=n.padding=(e.padding||[zl,zl,zl,zl]).map(t=>X(se(t,zl))),Ft=n._padding=yi.map((t,i)=>t(n,i,jt,0));let Ve,De=null,Pe=null;const Zl=o==1?k[0].idxs:null;let mt=null,Vl=!1;function xi(t,i){if(l=t??[],n.data=n._data=l,o==2){Ve=0;for(let r=1;r<k.length;r++)Ve+=l[r][0].length}else{l.length==0&&(n.data=n._data=l=[[]]),mt=l[0],Ve=mt.length;let r=l;if(N==2){r=l.slice();let f=r[0]=Array(Ve);for(let a=0;a<Ve;a++)f[a]=a}n._data=l=r}if(al(!0),ze("setData"),N==2&&(sl=!0),i!==!1){let r=v;r.auto(n,Vl)?xn():Nt(D,r.min,r.max),Kt=Kt||G.left>=0,ot=!0,hl()}}n.setData=xi;function xn(){Vl=!0;let t,i;o==1&&(Ve>0?(De=Zl[0]=0,Pe=Zl[1]=Ve-1,t=l[0][De],i=l[0][Pe],N==2?(t=De,i=Pe):t==i&&(N==3?[t,i]=pn(t,t,v.log,!1):N==4?[t,i]=oi(t,t,v.log,!1):v.time?i=t+Te(86400/H):[t,i]=an(t,i,ri,!0))):(De=Zl[0]=t=null,Pe=Zl[1]=i=null)),Nt(D,t,i)}let Ql,cl,vn,kn,bn,Mn,En,Tn,An,Et;function vi(t,i,r,f,a,p){t??(t=ji),r??(r=ui),f??(f="butt"),a??(a=ji),p??(p="round"),t!=Ql&&(h.strokeStyle=Ql=t),a!=cl&&(h.fillStyle=cl=a),i!=vn&&(h.lineWidth=vn=i),p!=bn&&(h.lineJoin=bn=p),f!=Mn&&(h.lineCap=Mn=f),r!=kn&&h.setLineDash(kn=r)}function ki(t,i,r,f){i!=cl&&(h.fillStyle=cl=i),t!=En&&(h.font=En=t),r!=Tn&&(h.textAlign=Tn=r),f!=An&&(h.textBaseline=An=f)}function Ln(t,i,r,f,a=0){if(f.length>0&&t.auto(n,Vl)&&(i==null||i.min==null)){let p=se(De,0),w=se(Pe,f.length-1),S=r.min==null?t.distr==3?xr(f,p,w):yr(f,p,w,a):[r.min,r.max];t.min=ht(t.min,r.min=S[0]),t.max=Oe(t.max,r.max=S[1])}}const bi={min:null,max:null};function bo(){for(let f in E){let a=E[f];U[f]==null&&(a.min==null||U[D]!=null&&a.auto(n,Vl))&&(U[f]=bi)}for(let f in E){let a=E[f];U[f]==null&&a.from!=null&&U[a.from]!=null&&(U[f]=bi)}U[D]!=null&&al(!0);let t={};for(let f in U){let a=U[f];if(a!=null){let p=t[f]=Tl(E[f],Dr);if(a.min!=null)Me(p,a);else if(f!=D||o==2)if(Ve==0&&p.from==null){let w=p.range(n,null,null,f);p.min=w[0],p.max=w[1]}else p.min=ee,p.max=-ee}}if(Ve>0){k.forEach((f,a)=>{if(o==1){let p=f.scale,w=U[p];if(w==null)return;let S=t[p];if(a==0){let x=S.range(n,S.min,S.max,p);S.min=x[0],S.max=x[1],De=St(S.min,l[0]),Pe=St(S.max,l[0]),Pe-De>1&&(l[0][De]<S.min&&De++,l[0][Pe]>S.max&&Pe--),f.min=mt[De],f.max=mt[Pe]}else f.show&&f.auto&&Ln(S,w,f,l[a],f.sorted);f.idxs[0]=De,f.idxs[1]=Pe}else if(a>0&&f.show&&f.auto){let[p,w]=f.facets,S=p.scale,x=w.scale,[b,M]=l[a],A=t[S],Y=t[x];A!=null&&Ln(A,U[S],p,b,p.sorted),Y!=null&&Ln(Y,U[x],w,M,w.sorted),f.min=w.min,f.max=w.max}});for(let f in t){let a=t[f],p=U[f];if(a.from==null&&(p==null||p.min==null)){let w=a.range(n,a.min==ee?null:a.min,a.max==-ee?null:a.max,f);a.min=w[0],a.max=w[1]}}}for(let f in t){let a=t[f];if(a.from!=null){let p=t[a.from];if(p.min==null)a.min=a.max=null;else{let w=a.range(n,p.min,p.max,f);a.min=w[0],a.max=w[1]}}}let i={},r=!1;for(let f in t){let a=t[f],p=E[f];if(p.min!=a.min||p.max!=a.max){p.min=a.min,p.max=a.max;let w=p.distr;p._min=w==3?At(p.min):w==4?In(p.min,p.asinh):w==100?p.fwd(p.min):p.min,p._max=w==3?At(p.max):w==4?In(p.max,p.asinh):w==100?p.fwd(p.max):p.max,i[f]=r=!0}}if(r){k.forEach((f,a)=>{o==2?a>0&&i.y&&(f._paths=null):i[f.scale]&&(f._paths=null)});for(let f in i)sl=!0,ze("setScale",f);G.show&&G.left>=0&&(Kt=ot=!0)}for(let f in U)U[f]=null}function Mo(t){let i=Zn(De-1,0,Ve-1),r=Zn(Pe+1,0,Ve-1);for(;t[i]==null&&i>0;)i--;for(;t[r]==null&&r<Ve-1;)r++;return[i,r]}function Eo(){Ve>0&&(k.forEach((t,i)=>{if(i>0&&t.show&&(Mi(i,!1),Mi(i,!0),t._paths==null)){Et!=t.alpha&&(h.globalAlpha=Et=t.alpha);let r=o==2?[0,l[i][0].length-1]:Mo(l[i]);t._paths=t.paths(n,i,r[0],r[1]),Et!=1&&(h.globalAlpha=Et=1)}}),k.forEach((t,i)=>{if(i>0&&t.show){Et!=t.alpha&&(h.globalAlpha=Et=t.alpha),t._paths!=null&&Ei(i,!1);{let r=t._paths!=null?t._paths.gaps:null,f=t.points.show(n,i,De,Pe,r),a=t.points.filter(n,i,f,r);(f||a)&&(t.points._paths=t.points.paths(n,i,De,Pe,a),Ei(i,!0))}Et!=1&&(h.globalAlpha=Et=1),ze("drawSeries",i)}}))}function Mi(t,i){let r=i?k[t].points:k[t];r._stroke=r.stroke(n,t),r._fill=r.fill(n,t)}function Ei(t,i){let r=i?k[t].points:k[t],{stroke:f,fill:a,clip:p,flags:w,_stroke:S=r._stroke,_fill:x=r._fill,_width:b=r.width}=r._paths;b=he(b*oe,3);let M=null,A=b%2/2;i&&x==null&&(x=b>0?"#fff":S);let Y=r.pxAlign==1&&A>0;if(Y&&h.translate(A,A),!i){let ae=qe-b/2,te=pt-b/2,Q=Qe+b,j=st+b;M=new Path2D,M.rect(ae,te,Q,j)}i?Dn(S,b,r.dash,r.cap,x,f,a,w,p):To(t,S,b,r.dash,r.cap,x,f,a,w,M,p),Y&&h.translate(-A,-A)}function To(t,i,r,f,a,p,w,S,x,b,M){let A=!1;x!=0&&W.forEach((Y,ae)=>{if(Y.series[0]==t){let te=k[Y.series[1]],Q=l[Y.series[1]],j=(te._paths||$l).band;Bt(j)&&(j=Y.dir==1?j[0]:j[1]);let R,ce=null;te.show&&j&&kr(Q,De,Pe)?(ce=Y.fill(n,ae)||p,R=te._paths.clip):j=null,Dn(i,r,f,a,ce,w,S,x,b,M,R,j),A=!0}}),A||Dn(i,r,f,a,p,w,S,x,b,M)}const Ti=Al|ei;function Dn(t,i,r,f,a,p,w,S,x,b,M,A){vi(t,i,r,f,a),(x||b||A)&&(h.save(),x&&h.clip(x),b&&h.clip(b)),A?(S&Ti)==Ti?(h.clip(A),M&&h.clip(M),en(a,w),Xl(t,p,i)):S&ei?(en(a,w),h.clip(A),Xl(t,p,i)):S&Al&&(h.save(),h.clip(A),M&&h.clip(M),en(a,w),h.restore(),Xl(t,p,i)):(en(a,w),Xl(t,p,i)),(x||b||A)&&h.restore()}function Xl(t,i,r){r>0&&(i instanceof Map?i.forEach((f,a)=>{h.strokeStyle=Ql=a,h.stroke(f)}):i!=null&&t&&h.stroke(i))}function en(t,i){i instanceof Map?i.forEach((r,f)=>{h.fillStyle=cl=f,h.fill(r)}):i!=null&&t&&h.fill(i)}function Ao(t,i,r,f){let a=C[t],p;if(f<=0)p=[0,0];else{let w=a._space=a.space(n,t,i,r,f),S=a._incrs=a.incrs(n,t,i,r,f,w);p=Uf(i,r,S,f,w)}return a._found=p}function Pn(t,i,r,f,a,p,w,S,x,b){let M=w%2/2;F==1&&h.translate(M,M),vi(S,w,x,b,S),h.beginPath();let A,Y,ae,te,Q=a+(f==0||f==3?-p:p);r==0?(Y=a,te=Q):(A=a,ae=Q);for(let j=0;j<t.length;j++)i[j]!=null&&(r==0?A=ae=t[j]:Y=te=t[j],h.moveTo(A,Y),h.lineTo(ae,te));h.stroke(),F==1&&h.translate(-M,-M)}function Lo(t){let i=!0;return C.forEach((r,f)=>{if(!r.show)return;let a=E[r.scale];if(a.min==null){r._show&&(i=!1,r._show=!1,al(!1));return}else r._show||(i=!1,r._show=!0,al(!1));let p=r.side,w=p%2,{min:S,max:x}=a,[b,M]=Ao(f,S,x,w==0?K:J);if(M==0)return;let A=a.distr==2,Y=r._splits=r.splits(n,f,S,x,b,M,A),ae=a.distr==2?Y.map(R=>mt[R]):Y,te=a.distr==2?mt[Y[1]]-mt[Y[0]]:b,Q=r._values=r.values(n,r.filter(n,ae,f,M,te),f,M,te);r._rotate=p==2?r.rotate(n,Q,f,M):0;let j=r._size;r._size=at(r.size(n,Q,f,t)),j!=null&&r._size!=j&&(i=!1)}),i}function Do(t){let i=!0;return yi.forEach((r,f)=>{let a=r(n,f,jt,t);a!=Ft[f]&&(i=!1),Ft[f]=a}),i}function Po(){for(let t=0;t<C.length;t++){let i=C[t];if(!i.show||!i._show)continue;let r=i.side,f=r%2,a,p,w=i.stroke(n,t),S=r==0||r==3?-1:1;if(i.label){let Ye=i.labelGap*S,Xe=Te((i._lpos+Ye)*oe);ki(i.labelFont[0],w,"center",r==2?Gl:$i),h.save(),f==1?(a=p=0,h.translate(Xe,Te(pt+st/2)),h.rotate((r==3?-un:un)/2)):(a=Te(qe+Qe/2),p=Xe),h.fillText(i.label,a,p),h.restore()}let[x,b]=i._found;if(b==0)continue;let M=E[i.scale],A=f==0?Qe:st,Y=f==0?qe:pt,ae=Te(i.gap*oe),te=i._splits,Q=M.distr==2?te.map(Ye=>mt[Ye]):te,j=M.distr==2?mt[te[1]]-mt[te[0]]:x,R=i.ticks,ce=i.border,xe=R.show?Te(R.size*oe):0,_e=i._rotate*-un/180,de=P(i._pos*oe),be=(xe+ae)*S,Je=de+be;p=f==0?Je:0,a=f==1?Je:0;let Ze=i.font[0],ft=i.align==1?xl:i.align==2?Gn:_e>0?xl:_e<0?Gn:f==0?"center":r==3?Gn:xl,dt=_e||f==1?"middle":r==2?Gl:$i;ki(Ze,w,ft,dt);let gt=i.font[1]*i.lineGap,Be=te.map(Ye=>P(m(Ye,M,A,Y))),kt=i._values;for(let Ye=0;Ye<kt.length;Ye++){let Xe=kt[Ye];if(Xe!=null){f==0?a=Be[Ye]:p=Be[Ye],Xe=""+Xe;let yl=Xe.indexOf(`
3
3
  `)==-1?[Xe]:Xe.split(/\n/gm);for(let Gt=0;Gt<yl.length;Gt++){let ut=yl[Gt];_e?(h.save(),h.translate(a,p+Gt*gt),h.rotate(_e),h.fillText(ut,0,0),h.restore()):h.fillText(ut,a,p+Gt*gt)}}}R.show&&Pn(Be,R.filter(n,Q,t,b,j),f,r,de,xe,he(R.width*oe,3),R.stroke(n,t),R.dash,R.cap);let Ie=i.grid;Ie.show&&Pn(Be,Ie.filter(n,Q,t,b,j),f,f==0?2:1,f==0?pt:qe,f==0?st:Qe,he(Ie.width*oe,3),Ie.stroke(n,t),Ie.dash,Ie.cap),ce.show&&Pn([de],[1],f==0?1:0,f==0?1:2,f==1?pt:qe,f==1?st:Qe,he(ce.width*oe,3),ce.stroke(n,t),ce.dash,ce.cap)}ze("drawAxes")}function al(t){k.forEach((i,r)=>{r>0&&(i._paths=null,t&&(o==1?(i.min=null,i.max=null):i.facets.forEach(f=>{f.min=null,f.max=null})))})}let tn=!1,Cn=!1,Fl=[];function Co(){Cn=!1;for(let t=0;t<Fl.length;t++)ze(...Fl[t]);Fl.length=0}function hl(){tn||(Hr(Ai),tn=!0)}function Ro(t,i=!1){tn=!0,Cn=i,t(n),Ai(),i&&Fl.length>0&&queueMicrotask(Co)}n.batch=Ro;function Ai(){if(yt&&(bo(),yt=!1),sl&&(wo(),sl=!1),zt){if(ge(z,xl,He),ge(z,Gl,$),ge(z,Il,K),ge(z,Yl,J),ge(L,xl,He),ge(L,Gl,$),ge(L,Il,K),ge(L,Yl,J),ge(T,Il,_t),ge(T,Yl,Pt),_.width=Te(_t*oe),_.height=Te(Pt*oe),C.forEach(({_el:t,_show:i,_size:r,_pos:f,side:a})=>{if(t!=null)if(i){let p=a===3||a===0?r:0,w=a%2==1;ge(t,w?"left":"top",f-p),ge(t,w?"width":"height",r),ge(t,w?"top":"left",w?$:He),ge(t,w?"height":"width",w?J:K),qn(t,Xt)}else et(t,Xt)}),Ql=cl=vn=bn=Mn=En=Tn=An=kn=null,Et=1,Ol(!0),He!=Ge||$!=Ct||K!=Ut||J!=Rt){al(!1);let t=K/Ut,i=J/Rt;if(G.show&&!Kt&&G.left>=0){G.left*=t,G.top*=i,pl&&bt(pl,Te(G.left),0,K,J),ml&&bt(ml,0,Te(G.top),K,J);for(let r=0;r<rt.length;r++){let f=rt[r];f!=null&&(fl[r]*=t,ul[r]*=i,bt(f,at(fl[r]),at(ul[r]),K,J))}}if(me.show&&!Jl&&me.left>=0&&me.width>0){me.left*=t,me.width*=t,me.top*=i,me.height*=i;for(let r in Nn)ge(wl,r,me[r])}Ge=He,Ct=$,Ut=K,Rt=J}ze("setSize"),zt=!1}_t>0&&Pt>0&&(h.clearRect(0,0,_.width,_.height),ze("drawClear"),I.forEach(t=>t()),ze("draw")),me.show&&Jl&&(ln(me),Jl=!1),G.show&&Kt&&(Jt(null,!0,!1),Kt=!1),O.show&&O.live&&ot&&(Fn(),ot=!1),g||(g=!0,n.status=1,ze("ready")),Vl=!1,tn=!1}n.redraw=(t,i)=>{sl=i||!1,t!==!1?Nt(D,v.min,v.max):hl()};function Rn(t,i){let r=E[t];if(r.from==null){if(Ve==0){let f=r.range(n,i.min,i.max,t);i.min=f[0],i.max=f[1]}if(i.min>i.max){let f=i.min;i.min=i.max,i.max=f}if(Ve>1&&i.min!=null&&i.max!=null&&i.max-i.min<1e-16)return;t==D&&r.distr==2&&Ve>0&&(i.min=St(i.min,l[0]),i.max=St(i.max,l[0]),i.min==i.max&&i.max++),U[t]=i,yt=!0,hl()}}n.setScale=Rn;let zn,Vn,pl,ml,Li,Di,dl,gl,Pi,Ci,pe,we,Ht=!1;const Fe=G.drag;let Ce=Fe.x,Re=Fe.y;G.show&&(G.x&&(zn=ct(rr,L)),G.y&&(Vn=ct(fr,L)),v.ori==0?(pl=zn,ml=Vn):(pl=Vn,ml=zn),pe=G.left,we=G.top);const me=n.select=Me({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),wl=me.show?ct(or,me.over?L:z):null;function ln(t,i){if(me.show){for(let r in t)me[r]=t[r],r in Nn&&ge(wl,r,t[r]);i!==!1&&ze("setSelect")}}n.setSelect=ln;function zo(t,i){let r=k[t],f=Se?$e[t]:null;if(r.show)f&&qn(f,Xt);else{f&&et(f,Xt);let a=rl?rt[0]:rt[t];bt(a,-10,-10,K,J)}}function Nt(t,i,r){Rn(t,{min:i,max:r})}function xt(t,i,r,f){i.focus!=null&&Oo(t),i.show!=null&&k.forEach((a,p)=>{p>0&&(t==p||t==null)&&(a.show=i.show,zo(p,i.show),o==2?(Nt(a.facets[0].scale,null,null),Nt(a.facets[1].scale,null,null)):Nt(a.scale,null,null),hl())}),r!==!1&&ze("setSeries",t,i),f&&Wl("setSeries",n,t,i)}n.setSeries=xt;function Vo(t,i){Me(W[t],i)}function Fo(t,i){t.fill=X(t.fill||null),t.dir=se(t.dir,-1),i=i??W.length,W.splice(i,0,t)}function Ho(t){t==null?W.length=0:W.splice(t,1)}n.addBand=Fo,n.setBand=Vo,n.delBand=Ho;function No(t,i){k[t].alpha=i,G.show&&rt[t]&&(rt[t].style.opacity=i),Se&&$e[t]&&($e[t].style.opacity=i)}let Tt,Ot,qt;const Sl={focus:!0};function Oo(t){if(t!=qt){let i=t==null,r=Vt.alpha!=1;k.forEach((f,a)=>{if(o==1||a>0){let p=i||a==0||a==t;f._focus=i?null:p,r&&No(a,p?1:Vt.alpha)}}),qt=t,r&&hl()}}Se&&ol&&it(Qi,Ke,t=>{G._lock||($t(t),qt!=null&&xt(null,Sl,!0,ke.setSeries))});function vt(t,i,r){let f=E[i];r&&(t=t/oe-(f.ori==1?$:He));let a=K;f.ori==1&&(a=J,t=a-t),f.dir==-1&&(t=a-t);let p=f._min,w=f._max,S=t/a,x=p+(w-p)*S,b=f.distr;return b==3?Ml(10,x):b==4?Mr(x,f.asinh):b==100?f.bwd(x):x}function Wo(t,i){let r=vt(t,D,i);return St(r,l[0],De,Pe)}n.valToIdx=t=>St(t,l[0]),n.posToIdx=Wo,n.posToVal=vt,n.valToPos=(t,i,r)=>E[i].ori==0?u(t,E[i],r?Qe:K,r?qe:0):d(t,E[i],r?st:J,r?pt:0),n.setCursor=(t,i,r)=>{pe=t.left,we=t.top,Jt(null,i,r)};function Ri(t,i){ge(wl,xl,me.left=t),ge(wl,Il,me.width=i)}function zi(t,i){ge(wl,Gl,me.top=t),ge(wl,Yl,me.height=i)}let Hl=v.ori==0?Ri:zi,Nl=v.ori==1?Ri:zi;function Go(){if(Se&&O.live)for(let t=o==2?1:0;t<k.length;t++){if(t==0&&je)continue;let i=O.values[t],r=0;for(let f in i)nt[t][r++].firstChild.nodeValue=i[f]}}function Fn(t,i){if(t!=null&&(t.idxs?t.idxs.forEach((r,f)=>{fe[f]=r}):Lr(t.idx)||fe.fill(t.idx),O.idx=fe[0]),Se&&O.live){for(let r=0;r<k.length;r++)(r>0||o==1&&!je)&&Bo(r,fe[r]);Go()}ot=!1,i!==!1&&ze("setLegend")}n.setLegend=Fn;function Bo(t,i){let r=k[t],f=t==0&&N==2?mt:l[t],a;je?a=r.values(n,t,i)??Dt:(a=r.value(n,i==null?null:f[i],t,i),a=a==null?Dt:{_:a}),O.values[t]=a}function Jt(t,i,r){Pi=pe,Ci=we,[pe,we]=G.move(n,pe,we),G.left=pe,G.top=we,G.show&&(pl&&bt(pl,Te(pe),0,K,J),ml&&bt(ml,0,Te(we),K,J));let f,a=De>Pe;Tt=ee,Ot=null;let p=v.ori==0?K:J,w=v.ori==1?K:J;if(pe<0||Ve==0||a){f=G.idx=null;for(let S=0;S<k.length;S++){let x=rt[S];x!=null&&bt(x,-10,-10,K,J)}ol&&xt(null,Sl,!0,t==null&&ke.setSeries),O.live&&(fe.fill(f),ot=!0)}else{let S,x,b;o==1&&(S=v.ori==0?pe:we,x=vt(S,D),f=G.idx=St(x,l[0],De,Pe),b=q(l[0][f],v,p,0));let M=-10,A=-10,Y=0,ae=0,te=!0,Q="",j="";for(let R=o==2?1:0;R<k.length;R++){let ce=k[R],xe=fe[R],_e=xe==null?null:o==1?l[R][xe]:l[R][1][xe],de=G.dataIdx(n,R,f,x),be=de==null?null:o==1?l[R][de]:l[R][1][de];ot=ot||be!=_e||de!=xe,fe[R]=de;let Je=de==f?b:q(o==1?l[0][de]:l[R][0][de],v,p,0);if(R>0&&ce.show){let Ze=be==null?-10:le(be,o==1?E[ce.scale]:E[ce.facets[1].scale],w,0);if(ol&&be!=null){let ft=v.ori==1?pe:we,dt=Ae(Vt.dist(n,R,de,Ze,ft));if(dt<Tt){let gt=Vt.bias;if(gt!=0){let Be=vt(ft,ce.scale),kt=be>=0?1:-1,Ie=Be>=0?1:-1;Ie==kt&&(Ie==1?gt==1?be>=Be:be<=Be:gt==1?be<=Be:be>=Be)&&(Tt=dt,Ot=R)}else Tt=dt,Ot=R}}if(ot||rl){let ft,dt;v.ori==0?(ft=Je,dt=Ze):(ft=Ze,dt=Je);let gt,Be,kt,Ie,Ye,Xe,yl=!0,Gt=Ne.bbox;if(Gt!=null){yl=!1;let ut=Gt(n,R);kt=ut.left,Ie=ut.top,gt=ut.width,Be=ut.height}else kt=ft,Ie=dt,gt=Be=Ne.size(n,R);if(Xe=Ne.fill(n,R),Ye=Ne.stroke(n,R),rl)R==Ot&&Tt<=Vt.prox&&(M=kt,A=Ie,Y=gt,ae=Be,te=yl,Q=Xe,j=Ye);else{let ut=rt[R];ut!=null&&(fl[R]=kt,ul[R]=Ie,ss(ut,gt,Be,yl),ns(ut,Xe,Ye),bt(ut,at(kt),at(Ie),K,J))}}}}if(rl){let R=Vt.prox,ce=qt==null?Tt<=R:Tt>R||Ot!=qt;if(ot||ce){let xe=rt[0];fl[0]=M,ul[0]=A,ss(xe,Y,ae,te),ns(xe,Q,j),bt(xe,at(M),at(A),K,J)}}}if(me.show&&Ht)if(t!=null){let[S,x]=ke.scales,[b,M]=ke.match,[A,Y]=t.cursor.sync.scales,ae=t.cursor.drag;if(Ce=ae._x,Re=ae._y,Ce||Re){let{left:te,top:Q,width:j,height:R}=t.select,ce=t.scales[A].ori,xe=t.posToVal,_e,de,be,Je,Ze,ft=S!=null&&b(S,A),dt=x!=null&&M(x,Y);ft&&Ce?(ce==0?(_e=te,de=j):(_e=Q,de=R),be=E[S],Je=q(xe(_e,A),be,p,0),Ze=q(xe(_e+de,A),be,p,0),Hl(ht(Je,Ze),Ae(Ze-Je))):Hl(0,p),dt&&Re?(ce==1?(_e=te,de=j):(_e=Q,de=R),be=E[x],Je=le(xe(_e,Y),be,w,0),Ze=le(xe(_e+de,Y),be,w,0),Nl(ht(Je,Ze),Ae(Ze-Je))):Nl(0,w)}else nn()}else{let S=Ae(Pi-Li),x=Ae(Ci-Di);if(v.ori==1){let Y=S;S=x,x=Y}Ce=Fe.x&&S>=Fe.dist,Re=Fe.y&&x>=Fe.dist;let b=Fe.uni;b!=null?Ce&&Re&&(Ce=S>=b,Re=x>=b,!Ce&&!Re&&(x>S?Re=!0:Ce=!0)):Fe.x&&Fe.y&&(Ce||Re)&&(Ce=Re=!0);let M,A;Ce&&(v.ori==0?(M=dl,A=pe):(M=gl,A=we),Hl(ht(M,A),Ae(A-M)),Re||Nl(0,w)),Re&&(v.ori==1?(M=dl,A=pe):(M=gl,A=we),Nl(ht(M,A),Ae(A-M)),Ce||Hl(0,p)),!Ce&&!Re&&(Hl(0,0),Nl(0,0))}if(Fe._x=Ce,Fe._y=Re,t==null){if(r){if(Ui!=null){let[S,x]=ke.scales;ke.values[0]=S!=null?vt(v.ori==0?pe:we,S):null,ke.values[1]=x!=null?vt(v.ori==1?pe:we,x):null}Wl(qi,n,pe,we,K,J,f)}if(ol){let S=r&&ke.setSeries,x=Vt.prox;qt==null?Tt<=x&&xt(Ot,Sl,!0,S):Tt>x?xt(null,Sl,!0,S):Ot!=qt&&xt(Ot,Sl,!0,S)}}ot&&(O.idx=f,Fn()),i!==!1&&ze("setCursor")}let Wt=null;Object.defineProperty(n,"rect",{get(){return Wt==null&&Ol(!1),Wt}});function Ol(t=!1){t?Wt=null:(Wt=L.getBoundingClientRect(),ze("syncRect",Wt))}function Vi(t,i,r,f,a,p,w){G._lock||Ht&&t!=null&&t.movementX==0&&t.movementY==0||(Hn(t,i,r,f,a,p,w,!1,t!=null),t!=null?Jt(null,!0,!0):Jt(i,!0,!1))}function Hn(t,i,r,f,a,p,w,S,x){if(Wt==null&&Ol(!1),$t(t),t!=null)r=t.clientX-Wt.left,f=t.clientY-Wt.top;else{if(r<0||f<0){pe=-10,we=-10;return}let[b,M]=ke.scales,A=i.cursor.sync,[Y,ae]=A.values,[te,Q]=A.scales,[j,R]=ke.match,ce=i.axes[0].side%2==1,xe=v.ori==0?K:J,_e=v.ori==1?K:J,de=ce?p:a,be=ce?a:p,Je=ce?f:r,Ze=ce?r:f;if(te!=null?r=j(b,te)?m(Y,E[b],xe,0):-10:r=xe*(Je/de),Q!=null?f=R(M,Q)?m(ae,E[M],_e,0):-10:f=_e*(Ze/be),v.ori==1){let ft=r;r=f,f=ft}}x&&((r<=1||r>=K-1)&&(r=Zt(r,K)),(f<=1||f>=J-1)&&(f=Zt(f,J))),S?(Li=r,Di=f,[dl,gl]=G.move(n,r,f)):(pe=r,we=f)}const Nn={width:0,height:0,left:0,top:0};function nn(){ln(Nn,!1)}let Fi,Hi,Ni,Oi;function Wi(t,i,r,f,a,p,w){Ht=!0,Ce=Re=Fe._x=Fe._y=!1,Hn(t,i,r,f,a,p,w,!0,!1),t!=null&&(it(Bn,$n,Gi,!1),Wl(Ji,n,dl,gl,K,J,null));let{left:S,top:x,width:b,height:M}=me;Fi=S,Hi=x,Ni=b,Oi=M,nn()}function Gi(t,i,r,f,a,p,w){Ht=Fe._x=Fe._y=!1,Hn(t,i,r,f,a,p,w,!1,!0);let{left:S,top:x,width:b,height:M}=me,A=b>0||M>0,Y=Fi!=S||Hi!=x||Ni!=b||Oi!=M;if(A&&Y&&ln(me),Fe.setScale&&A&&Y){let ae=S,te=b,Q=x,j=M;if(v.ori==1&&(ae=x,te=M,Q=S,j=b),Ce&&Nt(D,vt(ae,D),vt(ae+te,D)),Re)for(let R in E){let ce=E[R];R!=D&&ce.from==null&&ce.min!=ee&&Nt(R,vt(Q+j,R),vt(Q,R))}nn()}else G.lock&&(G._lock=!G._lock,Jt(null,!0,!1));t!=null&&(ql(Bn,$n),Wl(Bn,n,pe,we,K,J,null))}function Io(t,i,r,f,a,p,w){if(G._lock)return;$t(t);let S=Ht;if(Ht){let x=!0,b=!0,M=10,A,Y;v.ori==0?(A=Ce,Y=Re):(A=Re,Y=Ce),A&&Y&&(x=pe<=M||pe>=K-M,b=we<=M||we>=J-M),A&&x&&(pe=pe<dl?0:K),Y&&b&&(we=we<gl?0:J),Jt(null,!0,!0),Ht=!1}pe=-10,we=-10,Jt(null,!0,!0),S&&(Ht=S)}function Bi(t,i,r,f,a,p,w){G._lock||($t(t),xn(),nn(),t!=null&&Wl(Xi,n,pe,we,K,J,null))}function Ii(){C.forEach(Kf),yn(n.width,n.height,!0)}el(cn,kl,Ii);const _l={};_l.mousedown=Wi,_l.mousemove=Vi,_l.mouseup=Gi,_l.dblclick=Bi,_l.setSeries=(t,i,r,f)=>{let a=ke.match[2];r=a(n,i,r),r!=-1&&xt(r,f,!0,!1)},G.show&&(it(Ji,L,Wi),it(qi,L,Vi),it(Zi,L,t=>{$t(t),Ol(!1)}),it(Qi,L,Io),it(Xi,L,Bi),ti.add(n),n.syncRect=Ol);const sn=n.hooks=e.hooks||{};function ze(t,i,r){Cn?Fl.push([t,i,r]):t in sn&&sn[t].forEach(f=>{f.call(null,n,i,r)})}(e.plugins||[]).forEach(t=>{for(let i in t.hooks)sn[i]=(sn[i]||[]).concat(t.hooks[i])});const Yi=(t,i,r)=>r,ke=Me({key:null,setSeries:!1,filters:{pub:cs,sub:cs},scales:[D,k[1]?k[1].scale:null],match:[as,as,Yi],values:[null,null]},G.sync);ke.match.length==2&&ke.match.push(Yi),G.sync=ke;const Ui=ke.key,On=no(Ui);function Wl(t,i,r,f,a,p,w){ke.filters.pub(t,i,r,f,a,p,w)&&On.pub(t,i,r,f,a,p,w)}On.sub(n);function Yo(t,i,r,f,a,p,w){ke.filters.sub(t,i,r,f,a,p,w)&&_l[t](null,i,r,f,a,p,w)}n.pub=Yo;function Uo(){On.unsub(n),ti.delete(n),Mt.clear(),Jn(cn,kl,Ii),y.remove(),Ke==null||Ke.remove(),ze("destroy")}n.destroy=Uo;function Wn(){ze("init",e,l),xi(l||e.data,!1),U[D]?Rn(D,U[D]):xn(),Jl=me.show&&(me.width>0||me.height>0),Kt=ot=!0,yn(e.width,e.height)}return k.forEach(_i),C.forEach(ko),s?s instanceof HTMLElement?(s.appendChild(y),Wn()):s(n,Wn):Wn(),n}We.assign=Me;We.fmtNum=fi;We.rangeNum=an;We.rangeLog=pn;We.rangeAsinh=oi;We.orient=ll;We.pxRatio=oe;We.join=Fr;We.fmtDate=ci,We.tzDate=$r;We.sync=no;{We.addGap=Df,We.clipGaps=gn;let e=We.paths={points:uo};e.linear=ao,e.stepped=Rf,e.bars=zf,e.spline=Ff}function $f(e){function l(s,n,o){let c=s.over,u,d,m,g,y,_={x:0,y:0,dx:0,dy:0},h={x:0,y:0,dx:0,dy:0};function T(P,H){let k=H.touches,C=k[0],E=C.clientX-u.left,W=C.clientY-u.top;if(k.length==1)P.x=E,P.y=W,P.d=P.dx=P.dy=1;else{let D=H.touches[1],B=D.clientX-u.left,I=D.clientY-u.top,V=Math.min(E,B),v=Math.min(W,I),N=Math.max(E,B),q=Math.max(W,I);P.y=(v+q)/2,P.x=(V+N)/2,P.dx=N-V,P.dy=q-v,P.d=Math.sqrt(P.dx*P.dx+P.dy*P.dy)}}let z=!1;function L(){z=!1;let P=h.x,H=h.y,k=_.d/h.d,C=_.d/h.d,E=P/u.width,W=1-H/u.height,D=d*k,B=g-E*D,I=B+D,V=m*C,v=y-W*V,N=v+V;s.batch(()=>{s.setScale("x",{min:B,max:I}),s.setScale("y",{min:v,max:N})})}function F(P){T(h,P),z||(z=!0,requestAnimationFrame(L))}c.addEventListener("touchstart",function(P){u=c.getBoundingClientRect(),T(_,P),d=s.scales.x.max-s.scales.x.min,m=s.scales.y.max-s.scales.y.min;let H=_.x,k=_.y;g=s.posToVal(H,"x"),y=s.posToVal(k,"y"),document.addEventListener("touchmove",F,{passive:!0})}),c.addEventListener("touchend",function(){document.removeEventListener("touchmove",F,{passive:!0})})}return{hooks:{init:l}}}const jf={props:{node:{type:Object,required:!0},fillSize:{type:Boolean,default:!1},container:{type:Element,default:null},zoom:{type:Boolean,default:!0},minHeight:{type:Number,default:500}},data(){return{chart:null,ro:null,resizeTimeout:null,isLoading:!1}},computed:{data(){const e=[],l=[[],[]],s=[[],[]],n=[[],[]],o=[[],[]];return this.node.bgRSSIPoints&&this.node.bgRSSIPoints.length>0&&this.node.bgRSSIPoints.forEach(c=>{e.push(c.timestamp/1e3),l[0].push(this.checkRssiError(c.channel0.current)),l[1].push(c.channel0.average),s[0].push(this.checkRssiError(c.channel1.current)),s[1].push(c.channel1.average),c.channel2&&(n[0].push(this.checkRssiError(c.channel2.current)),n[1].push(c.channel2.average)),c.channel3&&(o[0].push(this.checkRssiError(c.channel3.current)),o[1].push(c.channel3.average))}),[e,...l,...s,...n,...o]}},watch:{data:{handler(e,l){this.chart?this.isChanged(e,l)&&this.chart.setData(e):this.create()},deep:1}},mounted(){this.create()},beforeUnmount(){this.destroy()},methods:{getContainer(){return this.container||this.$parent.$el.parentElement},checkRssiError(e){return $o(e)?null:e},isChanged(e,l){return e=e==null?void 0:e[0],l=l==null?void 0:l[0],!e||!l?!0:e[e.length-1]!==l[l.length-1]},destroy(){this.chart&&(this.chart.destroy(),this.chart=null),this.ro&&(this.ro.disconnect(),this.ro=null),this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null)},createSerie(e,l=1){const s=[3,5,7],n={show:!0,spanGaps:!1,label:"",value:(c,u)=>u?u.toFixed(2)+" dBm":"---",stroke:"red",width:1,fill:"rgba(255, 0, 0, 0.3)",dash:[s[l-1],s[l-1]],...e},o={...n,label:n.label+" (avg)",width:4,fill:void 0};return[n,o]},setSize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.isLoading=!0,this.resizeTimeout=setTimeout(()=>{const e=this.getContainer(),l=window.innerHeight-200,s=e.offsetWidth-100;let n=e.offsetHeight-100;n>l&&(n=l),this.chart.setSize({width:s,height:n}),this.isLoading=!1},150)},create(){this.destroy();const e=this.getContainer();this.fillSize&&(this.ro=new ResizeObserver(this.setSize.bind(this)),this.ro.observe(e));const s={title:"Background RSSI",width:e.offsetWidth,height:this.minHeight,plugins:[$f()],axes:[{stroke:this.$vuetify.theme.current.dark?"#fff":"#000"},{stroke:this.$vuetify.theme.current.dark?"#fff":"#000"}],series:[{},...this.createSerie({label:"Channel 0",stroke:"#7a5195",fill:"rgba(122, 81, 149, 0.35)"},3),...this.createSerie({label:"Channel 1",stroke:"#bc5090",fill:"rgba(188, 80, 144, 0.35)"},2),...this.createSerie({label:"Channel 2",stroke:"#ffa600",fill:"rgba(255, 166, 0, 0.35)"},1),...this.createSerie({label:"Channel 3",stroke:"#003f5c",fill:"rgba(0, 63, 92, 0.35)"},1)]};this.zoom||(s.cursor={drag:{setScale:!1}},s.select={show:!1}),this.chart=new We(s,this.data,this.$refs.chart)}}};function qf(e,l,s,n,o,c){return jo(),qo("div",{style:Jo({visibility:o.isLoading?"hidden":"visible"}),ref:"chart"},null,4)}const Zf=Ko(jf,[["render",qf]]);export{Zf as default};
@@ -1 +1 @@
1
- import{_ as o,o as i,l,w as a,k as r,t as n,i as s}from"./index--iN4HRyD.js";const c={props:{active:{type:Boolean,default:!1},duration:{type:Number,default:1e3},size:{type:Number,default:20},icon:{type:String,default:"mdi-alert"},activeColor:{type:String,default:"success"},inactiveColor:{type:String,default:"grey"}},data:()=>({color:null,blinkInterval:null}),watch:{active(t){t?(this.color=this.activeColor,this.blinkInterval=setInterval(()=>{this.color=this.color===this.activeColor?this.inactiveColor:this.activeColor},this.duration)):(clearInterval(this.blinkInterval),this.color=this.inactiveColor)}},mounted(){this.color=this.inactiveColor},beforeUnmount(){clearInterval(this.blinkInterval)}};function u(t,h,e,d,v,f){return i(),l(s,{size:e.size,color:t.color},{default:a(()=>[r(n(e.icon),1)]),_:1},8,["size","color"])}const C=o(c,[["render",u]]);export{C as default};
1
+ import{_ as o,o as i,l,w as a,k as r,t as n,i as s}from"./index-D12pqcPl.js";const c={props:{active:{type:Boolean,default:!1},duration:{type:Number,default:1e3},size:{type:Number,default:20},icon:{type:String,default:"mdi-alert"},activeColor:{type:String,default:"success"},inactiveColor:{type:String,default:"grey"}},data:()=>({color:null,blinkInterval:null}),watch:{active(t){t?(this.color=this.activeColor,this.blinkInterval=setInterval(()=>{this.color=this.color===this.activeColor?this.inactiveColor:this.activeColor},this.duration)):(clearInterval(this.blinkInterval),this.color=this.inactiveColor)}},mounted(){this.color=this.inactiveColor},beforeUnmount(){clearInterval(this.blinkInterval)}};function u(t,h,e,d,v,f){return i(),l(s,{size:e.size,color:t.color},{default:a(()=>[r(n(e.icon),1)]),_:1},8,["size","color"])}const C=o(c,[["render",u]]);export{C as default};
@@ -1 +1 @@
1
- import{_ as m,a8 as d,o,l as u,w as n,b as h,e as f,U as V,t as c,c as _,n as w,q as p}from"./index--iN4HRyD.js";import{V as y}from"./VTreeview-CcmwFXno.js";const g={name:"CCTreeView",props:{modelValue:{type:[Object,Array],default:()=>({})},level:{type:Number,default:0}},data:()=>({items:[]}),watch:{modelValue:{immediate:!0,deep:!0,handler(){Array.isArray(this.modelValue)?this.items=this.modelValue:(this.items=[],d(()=>{this.items=this.parseEntry(this.modelValue)}))}}},methods:{parseEntry(s,t="root"){const l=[],r=[];this.openIds=[];for(const i in s)if(i==="tags")l.push({id:t,name:s.tags.join(" - "),children:r});else if(i==="message")for(const a in s.message){const e=s.message[a];r.push({id:`${t}.${a}`,name:`${a}`,value:typeof e=="string"?e.trimStart():e})}else if(i==="encapsulated")for(let a=0;a<s.encapsulated.length;a++){const e=s.encapsulated[a];r.push(...this.parseEntry(e,`${t}.encapsulated[${a}]`))}return l}}},v={class:"tree-item-name",style:{"white-space":"pre-wrap"}};function $(s,t,l,r,i,a){return s.items.length>0?(o(),u(y,{key:0,ref:"treeview","open-all":"",density:"compact",items:s.items},{title:n(({item:e})=>[h(f,{class:"ma-0 pa-0",dense:""},{default:n(()=>[V("strong",v,c(e.name),1),e.value!==void 0?(o(),_("div",{key:0,class:w(["tree-item-value",e.name==="payload"?"mono":""]),style:{"white-space":"pre-wrap"}},c(e.value),3)):p("",!0)]),_:2},1024)]),_:1},8,["items"])):p("",!0)}const b=m(g,[["render",$],["__scopeId","data-v-01be5cfb"]]);export{b as default};
1
+ import{_ as m,a8 as d,o,l as u,w as n,b as h,e as f,U as V,t as c,c as _,n as w,q as p}from"./index-D12pqcPl.js";import{V as y}from"./VTreeview-BjNKFpJi.js";const g={name:"CCTreeView",props:{modelValue:{type:[Object,Array],default:()=>({})},level:{type:Number,default:0}},data:()=>({items:[]}),watch:{modelValue:{immediate:!0,deep:!0,handler(){Array.isArray(this.modelValue)?this.items=this.modelValue:(this.items=[],d(()=>{this.items=this.parseEntry(this.modelValue)}))}}},methods:{parseEntry(s,t="root"){const l=[],r=[];this.openIds=[];for(const i in s)if(i==="tags")l.push({id:t,name:s.tags.join(" - "),children:r});else if(i==="message")for(const a in s.message){const e=s.message[a];r.push({id:`${t}.${a}`,name:`${a}`,value:typeof e=="string"?e.trimStart():e})}else if(i==="encapsulated")for(let a=0;a<s.encapsulated.length;a++){const e=s.encapsulated[a];r.push(...this.parseEntry(e,`${t}.encapsulated[${a}]`))}return l}}},v={class:"tree-item-name",style:{"white-space":"pre-wrap"}};function $(s,t,l,r,i,a){return s.items.length>0?(o(),u(y,{key:0,ref:"treeview","open-all":"",density:"compact",items:s.items},{title:n(({item:e})=>[h(f,{class:"ma-0 pa-0",dense:""},{default:n(()=>[V("strong",v,c(e.name),1),e.value!==void 0?(o(),_("div",{key:0,class:w(["tree-item-value",e.name==="payload"?"mono":""]),style:{"white-space":"pre-wrap"}},c(e.value),3)):p("",!0)]),_:2},1024)]),_:1},8,["items"])):p("",!0)}const b=m(g,[["render",$],["__scopeId","data-v-01be5cfb"]]);export{b as default};
@@ -1 +1 @@
1
- import{_ as a,bQ as n,m,u as l,a as i,o as d,l as h,Q as p}from"./index--iN4HRyD.js";const u={props:{hideDetails:{type:Boolean},prependIcon:{type:String}},data(){return{colorSchemes:n}},computed:{...m(l,{colorScheme:e=>e.ui.colorScheme}),internalColorScheme:{get(){return this.colorScheme},set(e){this.setColorScheme(e)}}},methods:{...i(l,["setColorScheme"])}};function S(e,o,t,f,s,r){return d(),h(p,{hint:"Force dark/light mode or select color scheme automatically based on the system preference","persistent-hint":"",label:"Color scheme","hide-details":t.hideDetails,items:s.colorSchemes,"prepend-icon":t.prependIcon,modelValue:r.internalColorScheme,"onUpdate:modelValue":o[0]||(o[0]=c=>r.internalColorScheme=c)},null,8,["hide-details","items","prepend-icon","modelValue"])}const _=a(u,[["render",S]]);export{_ as default};
1
+ import{_ as a,bS as n,m,u as l,a as i,o as d,l as h,Q as p}from"./index-D12pqcPl.js";const S={props:{hideDetails:{type:Boolean},prependIcon:{type:String}},data(){return{colorSchemes:n}},computed:{...m(l,{colorScheme:e=>e.ui.colorScheme}),internalColorScheme:{get(){return this.colorScheme},set(e){this.setColorScheme(e)}}},methods:{...i(l,["setColorScheme"])}};function u(e,o,t,f,s,r){return d(),h(p,{hint:"Force dark/light mode or select color scheme automatically based on the system preference","persistent-hint":"",label:"Color scheme","hide-details":t.hideDetails,items:s.colorSchemes,"prepend-icon":t.prependIcon,modelValue:r.internalColorScheme,"onUpdate:modelValue":o[0]||(o[0]=c=>r.internalColorScheme=c)},null,8,["hide-details","items","prepend-icon","modelValue"])}const _=a(S,[["render",u]]);export{_ as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ColumnFilterBoolean-DvxzXqrU.js","./index-D_p7ZYBE.js","./index-D12pqcPl.js","./index-CwXXOu4L.css","./vuedraggable.umd-C3Fa1WPn.js","./colors-DoZdCu1D.js","./VDataTable-BXwwtO5z.js","./sort-Dbzfzvfk.js","./VTable-DN4yPaWs.js","./VTable-CQyv0wyO.css","./VDataTable-DNwLG7iF.css","./index-DmuwVfhE.css","./ColumnFilterDate-CmmvM5zq.js","./ColumnFilterNumber-B4mbV5N2.js","./ColumnFilterString-DbEtqjDU.js"])))=>i.map(i=>d[i]);
2
+ import{_ as h,d as m,z as p,r as f,o as a,l as s,w as u,v as O,i as _,$ as F,p as v,k as V,t as D,aq as B,b as n,N as w,q as d,R as E,av as U,h as y,ad as x}from"./index-D12pqcPl.js";import{C as b}from"./index-D_p7ZYBE.js";import"./vuedraggable.umd-C3Fa1WPn.js";import"./colors-DoZdCu1D.js";import"./VDataTable-BXwwtO5z.js";import"./sort-Dbzfzvfk.js";import"./VTable-DN4yPaWs.js";const A={components:{ColumnFilterBoolean:m(()=>p(()=>import("./ColumnFilterBoolean-DvxzXqrU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),ColumnFilterDate:m(()=>p(()=>import("./ColumnFilterDate-CmmvM5zq.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),ColumnFilterNumber:m(()=>p(()=>import("./ColumnFilterNumber-B4mbV5N2.js"),__vite__mapDeps([13,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url)),ColumnFilterString:m(()=>p(()=>import("./ColumnFilterString-DbEtqjDU.js"),__vite__mapDeps([14,1,2,3,4,5,6,7,8,9,10,11]),import.meta.url))},props:{modelValue:{type:Object,default:()=>{},required:!0},column:{type:Object,default:()=>{},required:!0},items:{type:Array,default:()=>[],required:!0},groupBy:{type:Array,default:()=>[],required:!1}},data(){return{valid:!0,isVisible:!1}},watch:{groupBy(){this.isVisible=!1},isVisible(t){t===!1&&this.updateFilter()}},computed:{hasFilter(){return this.hasDeepValue(this.modelValue)},_value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}},_groupBy:{get(){return!!this.groupBy.find(t=>t.key===this.column.key)},set(t){this.$emit("update:group-by",t?[{key:this.column.key}]:[])}}},methods:{hasDeepValue(t){return t!=null&&Object.keys(t).some(e=>!!t[e]&&!!Object.keys(t[e]).length||typeof t[e]=="boolean")},showOptions(){this.isVisible=!0},hideOptions(){this.isVisible=!1},updateFilter(){this.valid===!0&&this.$emit("update:filter",b.filterSpec(this.column.type,this._value))},confirm(){this.hideOptions()},resetToDefaults(){const t=b.defaultFilter(this.column.type);Object.assign(this.modelValue,t);for(const e in this.modelValue)Object.hasOwnProperty.call(this.modelValue,e)&&Object.keys(this.modelValue).forEach(()=>{Object.keys(t).includes(e)||delete this.modelValue.key})},clearFilter(){this.resetToDefaults(),this.valid=!0}}};function T(t,e,r,P,o,i){const c=f("column-filter-boolean"),k=f("column-filter-date"),g=f("column-filter-number"),C=f("column-filter-string");return a(),s(x,{modelValue:o.isVisible,"onUpdate:modelValue":e[10]||(e[10]=l=>o.isVisible=l),"close-on-content-click":!1,location:"bottom"},{activator:u(({props:l})=>[O((a(),s(_,F({size:"small",onClick:e[0]||(e[0]=v(q=>i.showOptions(),["stop"]))},l,{style:{"padding-right":"2px","padding-bottom":"3px"}}),{default:u(()=>[V(D(i.hasFilter?"filter_list_alt":"filter_list"),1)]),_:2},1040)),[[B,"Filter options...","bottom"]])]),default:u(()=>[n(w,{"min-width":300},{default:u(()=>[n(_,{size:"small",onClick:e[1]||(e[1]=v(l=>i.hideOptions(),["stop"])),end:""},{default:u(()=>e[11]||(e[11]=[V("close")])),_:1,__:[11]}),r.column.type=="boolean"?(a(),s(c,{key:0,modelValue:i._value,"onUpdate:modelValue":e[2]||(e[2]=l=>i._value=l)},null,8,["modelValue"])):d("",!0),r.column.type=="date"?(a(),s(k,{key:1,modelValue:i._value,"onUpdate:modelValue":e[3]||(e[3]=l=>i._value=l),valid:o.valid,"onUpdate:valid":e[4]||(e[4]=l=>o.valid=l)},null,8,["modelValue","valid"])):d("",!0),r.column.type=="number"?(a(),s(g,{key:2,modelValue:i._value,"onUpdate:modelValue":e[5]||(e[5]=l=>i._value=l),valid:o.valid,"onUpdate:valid":e[6]||(e[6]=l=>o.valid=l),items:r.items},null,8,["modelValue","valid","items"])):d("",!0),r.column.type=="string"?(a(),s(C,{key:3,modelValue:i._value,"onUpdate:modelValue":e[7]||(e[7]=l=>i._value=l),valid:o.valid,"onUpdate:valid":e[8]||(e[8]=l=>o.valid=l),items:r.items},null,8,["modelValue","valid","items"])):d("",!0),r.column.groupable!=!1?(a(),s(E,{key:4,label:"Group values",class:"ml-4",modelValue:i._groupBy,"onUpdate:modelValue":e[9]||(e[9]=l=>i._groupBy=l)},null,8,["modelValue"])):d("",!0),n(U,null,{default:u(()=>[n(y,{onClick:i.clearFilter},{default:u(()=>e[12]||(e[12]=[V("Clear")])),_:1,__:[12]},8,["onClick"]),n(y,{color:"primary",onClick:i.confirm,disabled:!o.valid},{default:u(()=>e[13]||(e[13]=[V("Ok")])),_:1,__:[13]},8,["onClick","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const M=h(A,[["render",T]]);export{M as default};
@@ -1 +1 @@
1
- import{C as r}from"./index-DXND_U0H.js";import{_ as d,o as n,l as m,w as e,b as l,a0 as s,e as i,f as p,R as V,O as _}from"./index--iN4HRyD.js";import"./vuedraggable.umd-C7eEmQ6k.js";import"./colors-DoZdCu1D.js";import"./VDataTable-DHkcZTuR.js";import"./sort-AJ2Q8dY8.js";import"./VTable-Bnh3IqPS.js";const f={props:{modelValue:{type:Object,default:()=>r.defaultFilter("string"),required:!0}},computed:{_value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function c(t,o,b,C,x,a){return n(),m(_,null,{default:e(()=>[l(s,null,{default:e(()=>[l(i,null,{default:e(()=>[l(p,null,{default:e(()=>[l(V,{indeterminate:a._value.boolValue==null,modelValue:a._value.boolValue,"onUpdate:modelValue":o[0]||(o[0]=u=>a._value.boolValue=u),label:"Boolean value"},null,8,["indeterminate","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}const O=d(f,[["render",c]]);export{O as default};
1
+ import{C as r}from"./index-D_p7ZYBE.js";import{_ as d,o as n,l as m,w as e,b as l,a0 as s,e as i,f as p,R as V,O as _}from"./index-D12pqcPl.js";import"./vuedraggable.umd-C3Fa1WPn.js";import"./colors-DoZdCu1D.js";import"./VDataTable-BXwwtO5z.js";import"./sort-Dbzfzvfk.js";import"./VTable-DN4yPaWs.js";const f={props:{modelValue:{type:Object,default:()=>r.defaultFilter("string"),required:!0}},computed:{_value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}}};function c(t,o,b,C,x,a){return n(),m(_,null,{default:e(()=>[l(s,null,{default:e(()=>[l(i,null,{default:e(()=>[l(p,null,{default:e(()=>[l(V,{indeterminate:a._value.boolValue==null,modelValue:a._value.boolValue,"onUpdate:modelValue":o[0]||(o[0]=u=>a._value.boolValue=u),label:"Boolean value"},null,8,["indeterminate","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1})}const O=d(f,[["render",c]]);export{O as default};
@@ -1 +1 @@
1
- import{C as m}from"./index-DXND_U0H.js";import{_ as s,o as i,l as f,w as r,b as o,a0 as n,e as p,f as _,W as d,O as V}from"./index--iN4HRyD.js";import"./vuedraggable.umd-C7eEmQ6k.js";import"./colors-DoZdCu1D.js";import"./VDataTable-DHkcZTuR.js";import"./sort-AJ2Q8dY8.js";import"./VTable-Bnh3IqPS.js";const v={props:{modelValue:{type:Object,default:()=>m.defaultFilter("string"),required:!0},valid:{type:Boolean,default:!1,required:!1}},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},_valid:{get(){return this.valid},set(e){this.$emit("update:valid",e)}}},data(){return{rules:{from:[e=>!e||!this._value.to||e<=this._value.to||"From date should not be after to date"],to:[e=>!e||!this._value.from||e>=this._value.from||"To date should not be before from date"]}}}};function b(e,l,c,F,u,t){return i(),f(V,null,{default:r(()=>[o(n,{modelValue:t._valid,"onUpdate:modelValue":l[2]||(l[2]=a=>t._valid=a)},{default:r(()=>[o(p,null,{default:r(()=>[o(_,null,{default:r(()=>[o(d,{type:"datetime-local",label:"From",modelValue:t._value.from,"onUpdate:modelValue":l[0]||(l[0]=a=>t._value.from=a),rules:u.rules.from,clearable:""},null,8,["modelValue","rules"]),o(d,{type:"datetime-local",label:"To",modelValue:t._value.to,"onUpdate:modelValue":l[1]||(l[1]=a=>t._value.to=a),rules:u.rules.to,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const B=s(v,[["render",b]]);export{B as default};
1
+ import{C as m}from"./index-D_p7ZYBE.js";import{_ as s,o as i,l as f,w as r,b as o,a0 as n,e as p,f as _,W as d,O as V}from"./index-D12pqcPl.js";import"./vuedraggable.umd-C3Fa1WPn.js";import"./colors-DoZdCu1D.js";import"./VDataTable-BXwwtO5z.js";import"./sort-Dbzfzvfk.js";import"./VTable-DN4yPaWs.js";const v={props:{modelValue:{type:Object,default:()=>m.defaultFilter("string"),required:!0},valid:{type:Boolean,default:!1,required:!1}},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},_valid:{get(){return this.valid},set(e){this.$emit("update:valid",e)}}},data(){return{rules:{from:[e=>!e||!this._value.to||e<=this._value.to||"From date should not be after to date"],to:[e=>!e||!this._value.from||e>=this._value.from||"To date should not be before from date"]}}}};function b(e,l,c,F,u,t){return i(),f(V,null,{default:r(()=>[o(n,{modelValue:t._valid,"onUpdate:modelValue":l[2]||(l[2]=a=>t._valid=a)},{default:r(()=>[o(p,null,{default:r(()=>[o(_,null,{default:r(()=>[o(d,{type:"datetime-local",label:"From",modelValue:t._value.from,"onUpdate:modelValue":l[0]||(l[0]=a=>t._value.from=a),rules:u.rules.from,clearable:""},null,8,["modelValue","rules"]),o(d,{type:"datetime-local",label:"To",modelValue:t._value.to,"onUpdate:modelValue":l[1]||(l[1]=a=>t._value.to=a),rules:u.rules.to,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const B=s(v,[["render",b]]);export{B as default};
@@ -1 +1 @@
1
- import{C as o}from"./index-DXND_U0H.js";import{_ as f,o as p,l as V,w as m,b as a,a0 as _,e as d,f as r,W as n,Q as v,O as b}from"./index--iN4HRyD.js";import"./vuedraggable.umd-C7eEmQ6k.js";import"./colors-DoZdCu1D.js";import"./VDataTable-DHkcZTuR.js";import"./sort-AJ2Q8dY8.js";import"./VTable-Bnh3IqPS.js";const x={props:{modelValue:{type:Object,default:()=>o.defaultFilter("number"),required:!0},valid:{type:Boolean,default:!1,required:!1},items:{type:Array,default:()=>[],required:!0}},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},_valid:{get(){return this.valid},set(e){this.$emit("update:valid",e)}},values:{get(){var l;const e=this.items.find(i=>typeof i=="string");return e?((l=this._value.values)==null?void 0:l.map(i=>i===void 0?e:i))??[]:this._value.values??[]},set(e){this._value.values=e}}},data(){return{rules:{min:[e=>!e||e>=0||"Minimum should not be negative",e=>!e||!this._value.max||e<=this._value.max||"Minimum should not be above maximum"],max:[e=>!e||e>=0||"Maximum should not be negative",e=>!e||!this._value.min||e>=this._value.min||"Maximum should not be below minimum"]}}}};function h(e,l,i,c,s,u){return p(),V(b,null,{default:m(()=>[a(_,{modelValue:u._valid,"onUpdate:modelValue":l[3]||(l[3]=t=>u._valid=t)},{default:m(()=>[a(d,null,{default:m(()=>[a(r,null,{default:m(()=>[a(n,{type:"number",label:"Min",modelValue:u._value.min,"onUpdate:modelValue":l[0]||(l[0]=t=>u._value.min=t),rules:s.rules.min,clearable:""},null,8,["modelValue","rules"])]),_:1}),a(r,null,{default:m(()=>[a(n,{type:"number",label:"Max",modelValue:u._value.max,"onUpdate:modelValue":l[1]||(l[1]=t=>u._value.max=t),rules:s.rules.max,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),a(d,null,{default:m(()=>[a(r,null,{default:m(()=>[a(v,{modelValue:u.values,"onUpdate:modelValue":l[2]||(l[2]=t=>u.values=t),items:i.items,label:"Values",clearable:"",chips:"","closable-chips":"",density:"compact",multiple:""},null,8,["modelValue","items"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const q=f(x,[["render",h]]);export{q as default};
1
+ import{C as o}from"./index-D_p7ZYBE.js";import{_ as f,o as p,l as V,w as m,b as a,a0 as _,e as d,f as r,W as n,Q as v,O as b}from"./index-D12pqcPl.js";import"./vuedraggable.umd-C3Fa1WPn.js";import"./colors-DoZdCu1D.js";import"./VDataTable-BXwwtO5z.js";import"./sort-Dbzfzvfk.js";import"./VTable-DN4yPaWs.js";const x={props:{modelValue:{type:Object,default:()=>o.defaultFilter("number"),required:!0},valid:{type:Boolean,default:!1,required:!1},items:{type:Array,default:()=>[],required:!0}},computed:{_value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},_valid:{get(){return this.valid},set(e){this.$emit("update:valid",e)}},values:{get(){var l;const e=this.items.find(i=>typeof i=="string");return e?((l=this._value.values)==null?void 0:l.map(i=>i===void 0?e:i))??[]:this._value.values??[]},set(e){this._value.values=e}}},data(){return{rules:{min:[e=>!e||e>=0||"Minimum should not be negative",e=>!e||!this._value.max||e<=this._value.max||"Minimum should not be above maximum"],max:[e=>!e||e>=0||"Maximum should not be negative",e=>!e||!this._value.min||e>=this._value.min||"Maximum should not be below minimum"]}}}};function h(e,l,i,c,s,u){return p(),V(b,null,{default:m(()=>[a(_,{modelValue:u._valid,"onUpdate:modelValue":l[3]||(l[3]=t=>u._valid=t)},{default:m(()=>[a(d,null,{default:m(()=>[a(r,null,{default:m(()=>[a(n,{type:"number",label:"Min",modelValue:u._value.min,"onUpdate:modelValue":l[0]||(l[0]=t=>u._value.min=t),rules:s.rules.min,clearable:""},null,8,["modelValue","rules"])]),_:1}),a(r,null,{default:m(()=>[a(n,{type:"number",label:"Max",modelValue:u._value.max,"onUpdate:modelValue":l[1]||(l[1]=t=>u._value.max=t),rules:s.rules.max,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),a(d,null,{default:m(()=>[a(r,null,{default:m(()=>[a(v,{modelValue:u.values,"onUpdate:modelValue":l[2]||(l[2]=t=>u.values=t),items:i.items,label:"Values",clearable:"",chips:"","closable-chips":"",density:"compact",multiple:""},null,8,["modelValue","items"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const q=f(x,[["render",h]]);export{q as default};
@@ -1 +1 @@
1
- import{C as o}from"./index-DXND_U0H.js";import{_ as n,o as p,l as f,w as u,b as a,a0 as V,e as s,f as m,W as c,Q as _,O as v}from"./index--iN4HRyD.js";import"./vuedraggable.umd-C7eEmQ6k.js";import"./colors-DoZdCu1D.js";import"./VDataTable-DHkcZTuR.js";import"./sort-AJ2Q8dY8.js";import"./VTable-Bnh3IqPS.js";const h={props:{modelValue:{type:Object,default:()=>o.defaultFilter("string"),required:!0},valid:{type:Boolean,default:!1,required:!1},items:{type:Array,default:()=>[],required:!0}},computed:{_value:{get(){return this.modelValue},set(l){this.$emit("update:modelValue",l)}},_valid:{get(){return this.valid},set(l){this.$emit("update:valid",l)}}},data(){return{rules:{match:[l=>this.validateRegex(l)]}}},methods:{validateRegex(l){let e;try{e=!!new RegExp(l)}catch(d){e=d.message}return e}}};function x(l,e,d,g,i,t){return p(),f(v,null,{default:u(()=>[a(V,{modelValue:t._valid,"onUpdate:modelValue":e[2]||(e[2]=r=>t._valid=r)},{default:u(()=>[a(s,null,{default:u(()=>[a(m,null,{default:u(()=>[a(c,{label:"Search",hint:"Supports regular expressions",modelValue:t._value.match,"onUpdate:modelValue":e[0]||(e[0]=r=>t._value.match=r),rules:i.rules.match,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),a(s,null,{default:u(()=>[a(m,null,{default:u(()=>[a(_,{modelValue:t._value.values,"onUpdate:modelValue":e[1]||(e[1]=r=>t._value.values=r),items:d.items,label:"Values",clearable:"",chips:"","closable-chips":"",density:"compact",multiple:""},null,8,["modelValue","items"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const q=n(h,[["render",x]]);export{q as default};
1
+ import{C as o}from"./index-D_p7ZYBE.js";import{_ as n,o as p,l as f,w as u,b as a,a0 as V,e as s,f as m,W as c,Q as _,O as v}from"./index-D12pqcPl.js";import"./vuedraggable.umd-C3Fa1WPn.js";import"./colors-DoZdCu1D.js";import"./VDataTable-BXwwtO5z.js";import"./sort-Dbzfzvfk.js";import"./VTable-DN4yPaWs.js";const h={props:{modelValue:{type:Object,default:()=>o.defaultFilter("string"),required:!0},valid:{type:Boolean,default:!1,required:!1},items:{type:Array,default:()=>[],required:!0}},computed:{_value:{get(){return this.modelValue},set(l){this.$emit("update:modelValue",l)}},_valid:{get(){return this.valid},set(l){this.$emit("update:valid",l)}}},data(){return{rules:{match:[l=>this.validateRegex(l)]}}},methods:{validateRegex(l){let e;try{e=!!new RegExp(l)}catch(d){e=d.message}return e}}};function x(l,e,d,g,i,t){return p(),f(v,null,{default:u(()=>[a(V,{modelValue:t._valid,"onUpdate:modelValue":e[2]||(e[2]=r=>t._valid=r)},{default:u(()=>[a(s,null,{default:u(()=>[a(m,null,{default:u(()=>[a(c,{label:"Search",hint:"Supports regular expressions",modelValue:t._value.match,"onUpdate:modelValue":e[0]||(e[0]=r=>t._value.match=r),rules:i.rules.match,clearable:""},null,8,["modelValue","rules"])]),_:1})]),_:1}),a(s,null,{default:u(()=>[a(m,null,{default:u(()=>[a(_,{modelValue:t._value.values,"onUpdate:modelValue":e[1]||(e[1]=r=>t._value.values=r),items:d.items,label:"Values",clearable:"",chips:"","closable-chips":"",density:"compact",multiple:""},null,8,["modelValue","items"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1})}const q=n(h,[["render",x]]);export{q as default};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DXND_U0H.js","./index--iN4HRyD.js","./index-C7m9uB6j.css","./vuedraggable.umd-C7eEmQ6k.js","./colors-DoZdCu1D.js","./VDataTable-DHkcZTuR.js","./sort-AJ2Q8dY8.js","./VTable-Bnh3IqPS.js","./VTable-CQyv0wyO.css","./VDataTable-DNwLG7iF.css","./index-DmuwVfhE.css","./DialogAdvanced-CChBqvhm.js","./DialogAdvanced-BEfdsoBJ.css","./StatisticsCard-euFSeUCk.js","./SmartView-Ca8_0Vsx.js","./VFab-MEiY0kRQ.js","./VFab-MHxCNJTw.css","./BaseFab-LW0wvTIx.js","./BaseFab-BUyXt8fM.css"])))=>i.map(i=>d[i]);
2
- import{_ as R,L as V,I as N,d as r,m as D,u,S as I,a as M,j as T,C as f,c as P,b as o,w as n,V as E,r as l,o as c,e as g,f as w,n as O,g as L,h as v,i as _,k as m,t as B,l as p,p as U,q as b,s as j,v as F,x as Z,y as W,z as d}from"./index--iN4HRyD.js";const y=V.get("ControlPanel"),z={name:"ControlPanel",props:{socket:Object},mixins:[N],components:{NodesTable:r(()=>d(()=>import("./index-DXND_U0H.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)),DialogAdvanced:r(()=>d(()=>import("./DialogAdvanced-CChBqvhm.js"),__vite__mapDeps([11,1,2,12]),import.meta.url)),StatisticsCard:r(()=>d(()=>import("./StatisticsCard-euFSeUCk.js"),__vite__mapDeps([13,1,2]),import.meta.url)),SmartView:r(()=>d(()=>import("./SmartView-Ca8_0Vsx.js"),__vite__mapDeps([14,1,2,4,6,15,16]),import.meta.url)),BaseFab:r(()=>d(()=>import("./BaseFab-LW0wvTIx.js"),__vite__mapDeps([17,1,2,15,16,18]),import.meta.url))},computed:{...D(u,["nodes","zwave","controllerNode"]),fabItems(){const e=[];return this.selected.length===0&&e.push({icon:"all_inclusive",color:"success",tooltip:"Manage nodes",action:()=>this.showNodesManager()}),e.push({icon:"auto_fix_high",color:"purple",tooltip:"Advanced actions",action:()=>{this.advancedShowDialog=!0}}),e},timeoutMs(){return this.zwave.commandsTimeout*1e3+800},statisticsOpeningIndicator(){return this.showControllerStatistics?"arrow_drop_up":"arrow_drop_down"},compact(){return this.$vuetify.display.smAndDown||this.compactMode},compactMode:{get(){return u().ui.compactMode},set(e){u().setCompactMode(e)}},actions(){return this.selected.length===0?this.generalActions:this.selectedActions},advancedDialogTitle(){return this.selected.length===0?"General actions":`Actions for ${this.selected.length} selected node${this.selected.length>1?"s":""}`}},watch:{},data(){return{fab:!1,selected:[],settings:new I(localStorage),advancedShowDialog:!1,generalActions:[{text:"Backup",options:[{name:"Import",action:"import"},{name:"Export",action:"export"}],icon:"save",desc:"Save or load `nodes.json` file with names and locations"},{text:"Dump",options:[{name:"Export",action:"exportDump"}],icon:"bug_report",desc:"Export all nodes in a json file. Useful for debugging purposes"},{text:"Re-interview Nodes",options:[{name:"Start",action:"refreshInfo",args:{broadcast:!0}}],icon:"history",color:"warning",desc:"Clear all info about all nodes and make a new full interview. Use when nodes has wrong or missing capabilities"},{text:"Rebuild Routes",options:[{name:"Begin",action:"beginRebuildingRoutes"},{name:"Stop",action:"stopRebuildingRoutes"}],icon:"healing",color:"warning",desc:"Force nodes to establish new connections to the controller"},{text:"Hard Reset",options:[{name:"Factory Reset",action:"hardReset"}],icon:"warning",color:"error",desc:"Reset controller to factory defaults (all paired devices will be removed)"},{text:"Soft Reset",options:[{name:"Soft Reset",action:"softReset",args:{confirm:`<p>Are you sure you want to soft-reset your controller?</p>
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-D_p7ZYBE.js","./index-D12pqcPl.js","./index-CwXXOu4L.css","./vuedraggable.umd-C3Fa1WPn.js","./colors-DoZdCu1D.js","./VDataTable-BXwwtO5z.js","./sort-Dbzfzvfk.js","./VTable-DN4yPaWs.js","./VTable-CQyv0wyO.css","./VDataTable-DNwLG7iF.css","./index-DmuwVfhE.css","./DialogAdvanced-CnclSjsM.js","./DialogAdvanced-BEfdsoBJ.css","./StatisticsCard-DeqCtmt2.js","./SmartView-EyUjdaJ7.js","./VFab-B7yWTeav.js","./VFab-MHxCNJTw.css","./BaseFab-B49AGO-T.js","./BaseFab-BUyXt8fM.css"])))=>i.map(i=>d[i]);
2
+ import{_ as R,L as V,I as N,d as r,m as D,u,S as I,a as M,j as T,C as f,c as P,b as o,w as n,V as E,r as l,o as c,e as g,f as w,n as O,g as L,h as v,i as _,k as m,t as B,l as p,p as U,q as b,s as j,v as F,x as Z,y as W,z as d}from"./index-D12pqcPl.js";const y=V.get("ControlPanel"),z={name:"ControlPanel",props:{socket:Object},mixins:[N],components:{NodesTable:r(()=>d(()=>import("./index-D_p7ZYBE.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)),DialogAdvanced:r(()=>d(()=>import("./DialogAdvanced-CnclSjsM.js"),__vite__mapDeps([11,1,2,12]),import.meta.url)),StatisticsCard:r(()=>d(()=>import("./StatisticsCard-DeqCtmt2.js"),__vite__mapDeps([13,1,2]),import.meta.url)),SmartView:r(()=>d(()=>import("./SmartView-EyUjdaJ7.js"),__vite__mapDeps([14,1,2,4,6,15,16]),import.meta.url)),BaseFab:r(()=>d(()=>import("./BaseFab-B49AGO-T.js"),__vite__mapDeps([17,1,2,15,16,18]),import.meta.url))},computed:{...D(u,["nodes","zwave","controllerNode"]),fabItems(){const e=[];return this.selected.length===0&&e.push({icon:"all_inclusive",color:"success",tooltip:"Manage nodes",action:()=>this.showNodesManager()}),e.push({icon:"auto_fix_high",color:"purple",tooltip:"Advanced actions",action:()=>{this.advancedShowDialog=!0}}),e},timeoutMs(){return this.zwave.commandsTimeout*1e3+800},statisticsOpeningIndicator(){return this.showControllerStatistics?"arrow_drop_up":"arrow_drop_down"},compact(){return this.$vuetify.display.smAndDown||this.compactMode},compactMode:{get(){return u().ui.compactMode},set(e){u().setCompactMode(e)}},actions(){return this.selected.length===0?this.generalActions:this.selectedActions},advancedDialogTitle(){return this.selected.length===0?"General actions":`Actions for ${this.selected.length} selected node${this.selected.length>1?"s":""}`}},data(){return{fab:!1,selected:[],settings:new I(localStorage),advancedShowDialog:!1,generalActions:[{text:"Backup",options:[{name:"Import",action:"import"},{name:"Export",action:"export"}],icon:"save",desc:"Save or load `nodes.json` file with names and locations"},{text:"Dump",options:[{name:"Export",action:"exportDump"}],icon:"bug_report",desc:"Export all nodes in a json file. Useful for debugging purposes"},{text:"Re-interview Nodes",options:[{name:"Start",action:"refreshInfo",args:{broadcast:!0}}],icon:"history",color:"warning",desc:"Clear all info about all nodes and make a new full interview. Use when nodes has wrong or missing capabilities"},{text:"Rebuild Routes",options:[{name:"Begin",action:"beginRebuildingRoutes"},{name:"Stop",action:"stopRebuildingRoutes"}],icon:"healing",color:"warning",desc:"Force nodes to establish new connections to the controller"},{text:"Hard Reset",options:[{name:"Factory Reset",action:"hardReset"}],icon:"warning",color:"error",desc:"Reset controller to factory defaults (all paired devices will be removed)"},{text:"Soft Reset",options:[{name:"Soft Reset",action:"softReset",args:{confirm:`<p>Are you sure you want to soft-reset your controller?</p>
3
3
  <p>USB modules will reconnect, meaning that they might get a new address. Make sure to configure your device address in a way that prevents it from changing, e.g. by using <code>/dev/serial/by-id/...</code> on Linux.</p>
4
4
  <p><strong>This method may cause problems in Docker containers with certain Z-Wave stick.</strong> If that happens, you may need to restart your host OS and docker container.</p>`}}],icon:"refresh",color:"warning",desc:"Instruct the controller to soft-reset (restart)"},{text:"Failed Nodes",options:[{name:"Remove all",action:"removeFailedNode",args:{broadcast:!0,confirm:"This action will remove all failed nodes. ATTENTION: this will skip sleeping nodes to prevent unwanted behaviours"}}],icon:"dangerous",color:"error",desc:"Manage nodes that are dead and/or marked as failed with the controller"},{text:"Driver function",options:[{name:"Write",action:"driverFunction"}],icon:"code",desc:"Write a custom JS function using the ZwaveJS Driver"},{text:"NVM Management",options:[{name:"Backup",action:"backupNVMRaw"},{name:"Restore",action:"restoreNVM"}],icon:"update",color:"warning",desc:"Backup/Restore controller's NVM (Non Volatile Memory)"},{text:"Firmware update OTW",options:[{name:"Update",action:"firmwareUpdateOTW"}],icon:"update",color:"error",desc:"Perform a firmware update OTW (Over The Wire)"},{text:"Shutdown Zwave API",options:[{name:"Shutdown",action:"shutdownZwaveAPI",args:{confirm:"Are you sure you want to shutdown the Zwave API? You will have to unplug and replug the Zwave stick manually to restart it.",confirmLevel:"warning"}}],icon:"power_off",color:"warning",desc:"Allows to shutdown the Zwave API to safely unplug the Zwave stick."},{text:"Learn mode",options:[{name:"Start",action:"startLearnMode",args:{confirm:"Initiate learn mode on primary controller first and then click OK here."}},{name:"Stop",action:"stopLearnMode"}],icon:"join_inner",desc:"Instruct controller to run learning mode (can join pre-existing network)"}],rules:{required:e=>{let t=!1;return e instanceof Array?t=e.length>0:t=!isNaN(e)||!!e,t||"This field is required."}},selectedActions:[{text:"Re-interview Node",options:[{name:"Interview",action:"refreshInfo"}],icon:"history",desc:"Clear all info about this node and make a new full interview. Use when the node has wrong or missing capabilities"},{text:"Refresh Values",options:[{name:"Refresh",action:"refreshValues",args:{confirm:"Are you sure you want to refresh values of this node? This action increases network traffic"}}],icon:"cached",desc:"Update all CC values and metadata. Use only when many values seems stale"},{text:"Rebuild Node Routes",options:[{name:"Rebuild",action:"rebuildNodeRoutes",args:{confirm:"Rebuilding routes of a specific node. This action causes a lot of traffic, can take minutes up to hours and you can expect degraded performance while it is going on"}}],icon:"healing",color:"warning",desc:"Discover and assign new routes between a specific node to the controller and his neighbors"},{text:"Ping",options:[{name:"Ping",action:"pingNode"}],icon:"swap_horiz",desc:"Ping node to check if it is alive"},{text:"Failed Nodes",options:[{name:"Remove",action:"removeFailedNode"}],color:"error",icon:"dangerous",desc:"Manage nodes that are dead and/or marked as failed with the controller"}],showControllerStatistics:!1}},methods:{...M(u,["setRebuildRoutesProgress","showSnackbar"]),jsonToList:T,showNodesManager(){this.app.showNodesManager()},async onAction(e,t={}){e==="import"?this.importConfiguration():e==="export"?this.exportConfiguration():e==="exportDump"?this.exportDump():this.sendAction(e,{...t,nodes:this.selected})},async importConfiguration(){if(await this.app.confirm("Attention","This will override all existing nodes names and locations","alert"))try{const{data:e}=await this.app.importFile("json"),t=await f.importConfig({data:e});this.showSnackbar(t.message,t.success?"success":"error")}catch(e){y.error(e)}},async exportConfiguration(){try{const e=await f.exportConfig();this.showSnackbar(e.message,e.success?"success":"error"),e.success&&this.app.exportConfiguration(e.data,"nodes","json")}catch(e){y.error(e)}},exportDump(){this.app.exportConfiguration(this.nodes,"nodes_dump","json")},toggleControllerStatistics(){this.showControllerStatistics=!this.showControllerStatistics}},mounted(){this.bindEvent("rebuildRoutesProgress",this.setRebuildRoutesProgress.bind(this))},beforeUnmount(){this.socket&&this.unbindEvents()}};function q(e,t,h,G,a,s){const S=l("StatisticsCard"),x=l("nodes-table"),C=l("smart-view"),k=l("DialogAdvanced"),A=l("base-fab");return c(),P("div",null,[o(E,{fluid:"",class:"pa-4"},{default:n(()=>[o(g,{class:"py-4 align-center","no-gutters":""},{default:n(()=>[o(w,{class:O(s.compact?"text-center":"text-end")},{default:n(()=>[o(L,{multiple:""},{default:n(()=>[o(v,{active:a.showControllerStatistics,color:"primary",variant:"outlined",onClick:s.toggleControllerStatistics},{default:n(()=>[o(_,{start:""},{default:n(()=>[m(B(s.statisticsOpeningIndicator),1)]),_:1}),t[7]||(t[7]=m(" Controller statistics ")),o(_,{color:"primary",end:""},{default:n(()=>t[6]||(t[6]=[m(" multiline_chart ")])),_:1,__:[6]})]),_:1,__:[7]},8,["active","onClick"]),e.$vuetify.display.mdAndUp?(c(),p(v,{key:0,color:"primary",variant:"flat",active:s.compactMode,onClick:t[0]||(t[0]=U(i=>s.compactMode=!s.compactMode,["stop"]))},{default:n(()=>t[8]||(t[8]=[m(" Compact ")])),_:1,__:[8]},8,["active"])):b("",!0)]),_:1})]),_:1},8,["class"])]),_:1}),o(j,null,{default:n(()=>[F(o(g,null,{default:n(()=>[o(w,{class:"mb-8"},{default:n(()=>[o(W,{border:"",rounded:""},{default:n(()=>[e.controllerNode?(c(),p(S,{key:0,title:"Controller Statistics",node:this.controllerNode},null,8,["node"])):b("",!0)]),_:1})]),_:1})]),_:1},512),[[Z,a.showControllerStatistics]])]),_:1}),s.compact?(c(),p(C,{key:1,socket:h.socket,onSelected:t[2]||(t[2]=i=>a.selected=i),onAction:e.sendAction},null,8,["socket","onAction"])):(c(),p(x,{key:0,class:"pb-8",socket:h.socket,onAction:e.sendAction,onSelected:t[1]||(t[1]=i=>a.selected=i)},null,8,["socket","onAction"]))]),_:1}),o(k,{modelValue:a.advancedShowDialog,"onUpdate:modelValue":t[3]||(t[3]=i=>a.advancedShowDialog=i),onClose:t[4]||(t[4]=i=>a.advancedShowDialog=!1),actions:s.actions,onAction:s.onAction,title:s.advancedDialogTitle},null,8,["modelValue","actions","onAction","title"]),o(A,{modelValue:a.fab,"onUpdate:modelValue":t[5]||(t[5]=i=>a.fab=i),location:"bottom end",color:a.selected.length===0?"primary":"success","icon-open":"menu","icon-close":"close",items:s.fabItems},null,8,["modelValue","color","items"])])}const H=R(z,[["render",q]]);export{H as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BgRssiChart-YZju0Sl5.js","./index--iN4HRyD.js","./index-C7m9uB6j.css","./BgRssiChart-D1GxaB_c.css"])))=>i.map(i=>d[i]);
2
- import{_ as s,d as n,m as a,u as l,l as o,w as c,V as _,r as d,o as t,q as i,z as p}from"./index--iN4HRyD.js";const m={components:{BgRssiChart:n(()=>p(()=>import("./BgRssiChart-YZju0Sl5.js"),__vite__mapDeps([0,1,2,3]),import.meta.url))},computed:{...a(l,["controllerNode"])}};function u(e,f,C,h,B,N){const r=d("bg-rssi-chart");return t(),o(_,null,{default:c(()=>[e.controllerNode?(t(),o(r,{key:0,node:e.controllerNode,"fill-size":""},null,8,["node"])):i("",!0)]),_:1})}const $=s(m,[["render",u]]);export{$ as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BgRssiChart-fF2B1CEa.js","./index-D12pqcPl.js","./index-CwXXOu4L.css","./BgRssiChart-D1GxaB_c.css"])))=>i.map(i=>d[i]);
2
+ import{_ as s,d as n,m as a,u as l,l as o,w as c,V as _,r as d,o as t,q as i,z as p}from"./index-D12pqcPl.js";const m={components:{BgRssiChart:n(()=>p(()=>import("./BgRssiChart-fF2B1CEa.js"),__vite__mapDeps([0,1,2,3]),import.meta.url))},computed:{...a(l,["controllerNode"])}};function u(e,f,C,h,B,N){const r=d("bg-rssi-chart");return t(),o(_,null,{default:c(()=>[e.controllerNode?(t(),o(r,{key:0,node:e.controllerNode,"fill-size":""},null,8,["node"])):i("",!0)]),_:1})}const $=s(m,[["render",u]]);export{$ as default};
@@ -1,4 +1,4 @@
1
- import{_ as E,aj as k,a as C,u as v,ak as T,a8 as B,al as p,l as m,w as u,V as O,o as _,b as f,f as g,g as I,c as L,am as U,an as j,W as V,U as A,e as R,v as $,h as D,i as q,k as G,t as F,ao as H}from"./index--iN4HRyD.js";var b=function(l,e){return Object.defineProperty?Object.defineProperty(l,"raw",{value:e}):l.raw=e,l},r;(function(l){l[l.EOS=0]="EOS",l[l.Text=1]="Text",l[l.Incomplete=2]="Incomplete",l[l.ESC=3]="ESC",l[l.Unknown=4]="Unknown",l[l.SGR=5]="SGR",l[l.OSCURL=6]="OSCURL"})(r||(r={}));class N{constructor(){this.VERSION="6.0.2",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(s=>{s.forEach(t=>{this.palette_256.push(t)})});let e=[0,95,135,175,215,255];for(let s=0;s<6;++s)for(let t=0;t<6;++t)for(let a=0;a<6;++a){let n={rgb:[e[s],e[t],e[a]],class_name:"truecolor"};this.palette_256.push(n)}let i=8;for(let s=0;s<24;++s,i+=10){let t={rgb:[i,i,i],class_name:"truecolor"};this.palette_256.push(t)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,i=>{if(i==="&")return"&amp;";if(i==="<")return"&lt;";if(i===">")return"&gt;";if(i==='"')return"&quot;";if(i==="'")return"&#x27;"}):e}append_buffer(e){var i=this._buffer+e;this._buffer=i}get_next_packet(){var e={kind:r.EOS,text:"",url:""},i=this._buffer.length;if(i==0)return e;var s=this._buffer.indexOf("\x1B");if(s==-1)return e.kind=r.Text,e.text=this._buffer,this._buffer="",e;if(s>0)return e.kind=r.Text,e.text=this._buffer.slice(0,s),this._buffer=this._buffer.slice(s),e;if(s==0){if(i<3)return e.kind=r.Incomplete,e;var t=this._buffer.charAt(1);if(t!="["&&t!="]"&&t!="(")return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if(t=="["){this._csi_regex||(this._csi_regex=x(S||(S=b([`
1
+ import{_ as E,al as k,a as C,u as v,am as T,a8 as B,an as p,l as m,w as u,V as O,o as _,b as f,f as g,g as I,c as L,ao as U,ap as j,W as V,U as A,e as R,v as $,h as q,i as D,k as G,t as F,aq as H}from"./index-D12pqcPl.js";var b=function(l,e){return Object.defineProperty?Object.defineProperty(l,"raw",{value:e}):l.raw=e,l},r;(function(l){l[l.EOS=0]="EOS",l[l.Text=1]="Text",l[l.Incomplete=2]="Incomplete",l[l.ESC=3]="ESC",l[l.Unknown=4]="Unknown",l[l.SGR=5]="SGR",l[l.OSCURL=6]="OSCURL"})(r||(r={}));class N{constructor(){this.VERSION="6.0.2",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach(s=>{s.forEach(t=>{this.palette_256.push(t)})});let e=[0,95,135,175,215,255];for(let s=0;s<6;++s)for(let t=0;t<6;++t)for(let a=0;a<6;++a){let n={rgb:[e[s],e[t],e[a]],class_name:"truecolor"};this.palette_256.push(n)}let i=8;for(let s=0;s<24;++s,i+=10){let t={rgb:[i,i,i],class_name:"truecolor"};this.palette_256.push(t)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,i=>{if(i==="&")return"&amp;";if(i==="<")return"&lt;";if(i===">")return"&gt;";if(i==='"')return"&quot;";if(i==="'")return"&#x27;"}):e}append_buffer(e){var i=this._buffer+e;this._buffer=i}get_next_packet(){var e={kind:r.EOS,text:"",url:""},i=this._buffer.length;if(i==0)return e;var s=this._buffer.indexOf("\x1B");if(s==-1)return e.kind=r.Text,e.text=this._buffer,this._buffer="",e;if(s>0)return e.kind=r.Text,e.text=this._buffer.slice(0,s),this._buffer=this._buffer.slice(s),e;if(s==0){if(i<3)return e.kind=r.Incomplete,e;var t=this._buffer.charAt(1);if(t!="["&&t!="]"&&t!="(")return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if(t=="["){this._csi_regex||(this._csi_regex=x(S||(S=b([`
2
2
  ^ # beginning of line
3
3
  #
4
4
  # First attempt
@@ -95,4 +95,4 @@ import{_ as E,aj as k,a as C,u as v,ak as T,a8 as B,al as p,l as m,w as u,V as O
95
95
  | # alternate
96
96
  (?:\\x07) # BEL (what xterm did)
97
97
  )
98
- `]))));let n=this._buffer.match(this._osc_regex);if(n===null)return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=r.OSCURL,e.url=n[1],e.text=n[2];var a=n[0].length;return this._buffer=this._buffer.slice(a),e}else if(t=="(")return e.kind=r.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var i=[];;){var s=this.get_next_packet();if(s.kind==r.EOS||s.kind==r.Incomplete)break;s.kind==r.ESC||s.kind==r.Unknown||(s.kind==r.Text?i.push(this.transform_to_html(this.with_state(s))):s.kind==r.SGR?this.process_ansi(s):s.kind==r.OSCURL&&i.push(this.process_hyperlink(s)))}return i.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let i=e.text.split(";");for(;i.length>0;){let s=i.shift(),t=parseInt(s,10);if(isNaN(t)||t===0)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(t===1)this.bold=!0;else if(t===2)this.faint=!0;else if(t===3)this.italic=!0;else if(t===4)this.underline=!0;else if(t===21)this.bold=!1;else if(t===22)this.faint=!1,this.bold=!1;else if(t===23)this.italic=!1;else if(t===24)this.underline=!1;else if(t===39)this.fg=null;else if(t===49)this.bg=null;else if(t>=30&&t<38)this.fg=this.ansi_colors[0][t-30];else if(t>=40&&t<48)this.bg=this.ansi_colors[0][t-40];else if(t>=90&&t<98)this.fg=this.ansi_colors[1][t-90];else if(t>=100&&t<108)this.bg=this.ansi_colors[1][t-100];else if((t===38||t===48)&&i.length>0){let a=t===38,n=i.shift();if(n==="5"&&i.length>0){let h=parseInt(i.shift(),10);h>=0&&h<=255&&(a?this.fg=this.palette_256[h]:this.bg=this.palette_256[h])}if(n==="2"&&i.length>2){let h=parseInt(i.shift(),10),o=parseInt(i.shift(),10),c=parseInt(i.shift(),10);if(h>=0&&h<=255&&o>=0&&o<=255&&c>=0&&c<=255){let d={rgb:[h,o,c],class_name:"truecolor"};a?this.fg=d:this.bg=d}}}}}transform_to_html(e){let i=e.text;if(i.length===0||(i=this.escape_txt_for_html(i),!e.bold&&!e.italic&&!e.underline&&e.fg===null&&e.bg===null))return i;let s=[],t=[],a=e.fg,n=e.bg;e.bold&&s.push(this._boldStyle),e.faint&&s.push(this._faintStyle),e.italic&&s.push(this._italicStyle),e.underline&&s.push(this._underlineStyle),this._use_classes?(a&&(a.class_name!=="truecolor"?t.push(`${a.class_name}-fg`):s.push(`color:rgb(${a.rgb.join(",")})`)),n&&(n.class_name!=="truecolor"?t.push(`${n.class_name}-bg`):s.push(`background-color:rgb(${n.rgb.join(",")})`))):(a&&s.push(`color:rgb(${a.rgb.join(",")})`),n&&s.push(`background-color:rgb(${n.rgb})`));let h="",o="";return t.length&&(h=` class="${t.join(" ")}"`),s.length&&(o=` style="${s.join(";")}"`),`<span${o}${h}>${i}</span>`}process_hyperlink(e){let i=e.url.split(":");return i.length<1||!this._url_allowlist[i[0]]?"":`<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`}}function x(l,...e){let i=l.raw[0],s=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,t=i.replace(s,"");return new RegExp(t)}function W(l,...e){let i=l.raw[0],s=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,t=i.replace(s,"");return new RegExp(t,"g")}var S,y,w;const M=new N,X=500,z={name:"Debug",props:{socket:Object},watch:{},computed:{filteredLogs(){return this.filter?this.debug.filter(l=>l.includes(this.filter)):this.debug},buttons(){return[{id:"start",label:"Start",icon:"play_arrow",color:"success",tooltip:"Start",action:()=>this.toggleDebug(!0),disabled:this.debugActive},{id:"stop",label:"Stop",icon:"stop",color:"error",tooltip:"Stop",action:()=>this.toggleDebug(!1),disabled:!this.debugActive},{id:"clear",label:"Clear",icon:"delete",color:"warning",tooltip:"Clear",action:()=>this.debug=[],disabled:this.debug.length===0},{id:"open",label:"Open",icon:"open_in_new",color:"primary",tooltip:"Open in window",action:this.newWindow,disabled:k()},{id:"scroll",label:"Scroll",icon:"vertical_align_bottom",color:"purple",tooltip:"Enable auto scroll",action:this.enableAutoScroll,disabled:this.autoScroll}]}},data(){return{debug:[],filter:"",debugActive:!0,hideTopbar:!1,autoScroll:!0}},methods:{...C(v,["showSnackbar"]),toggleDebug(l){this.debugActive=l,this.showSnackbar("Debug "+(l?"activated":"disabled"))},newWindow(){T("DEBUG",1e3)},enableAutoScroll(){this.autoScroll=!0,this.scrollBottom()},scrollBottom(){this.autoScroll&&B(()=>{const l=document.getElementById("debug_window");l&&(l.scrollTop=l.scrollHeight)})},onScroll(l){const e=l.target.scrollTop;e<this.prevScrollTop&&(this.autoScroll=!1),this.prevScrollTop=e}},mounted(){window.location.hash.substr(1)==="no-topbar"&&(this.hideTopbar=!0),this.socket.on(p.debug,e=>{this.debugActive&&(e=M.ansi_to_html(e),e=e.replace(/\n/g,"</br>"),e.endsWith("</br>")||(e+="</br>"),e=e.replace(/background-color:rgb\([0-9, ]+\)/g,""),this.debug.push(e),this.debug.length>X&&this.debug.shift(),this.scrollBottom())})},beforeUnmount(){this.socket&&this.socket.off(p.debug)}},J=["innerHTML"];function Q(l,e,i,s,t,a){return _(),m(O,{"grid-list-md":""},{default:u(()=>[f(R,null,{default:u(()=>[f(g,{style:{"max-width":"280px","margin-top":"-2px"}},{default:u(()=>[f(I,{density:"compact",multiple:""},{default:u(()=>[(_(!0),L(j,null,U(a.buttons,n=>$((_(),m(D,{size:"small",key:n.label,id:n.id,color:n.disabled?"grey":n.color,disabled:n.disabled,onClick:n.action},{default:u(()=>[f(q,null,{default:u(()=>[G(F(n.icon),1)]),_:2},1024)]),_:2},1032,["id","color","disabled","onClick"])),[[H,n.tooltip,"bottom"]])),128))]),_:1})]),_:1}),f(g,{class:"pa-2",cols:"6"},{default:u(()=>[f(V,{flat:"",variant:"outlined",density:"compact","single-line":"",style:{"max-width":"300px"},label:"Filter logs",hint:"Type to filter logs, case sensitive",modelValue:t.filter,"onUpdate:modelValue":e[0]||(e[0]=n=>t.filter=n),"persistent-hint":"","prepend-icon":"search"},null,8,["modelValue"])]),_:1}),f(g,{class:"pt-0 mb-5",cols:"12"},{default:u(()=>[A("div",{id:"debug_window",onScroll:e[1]||(e[1]=(...n)=>a.onScroll&&a.onScroll(...n)),style:{height:"800px",width:"100%","overflow-y":"scroll",border:"1px solid grey",padding:"10px","white-space":"pre"},class:"mono",innerHTML:a.filteredLogs.join("")},null,40,J)]),_:1})]),_:1})]),_:1})}const Z=E(z,[["render",Q]]);export{Z as default};
98
+ `]))));let n=this._buffer.match(this._osc_regex);if(n===null)return e.kind=r.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=r.OSCURL,e.url=n[1],e.text=n[2];var a=n[0].length;return this._buffer=this._buffer.slice(a),e}else if(t=="(")return e.kind=r.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var i=[];;){var s=this.get_next_packet();if(s.kind==r.EOS||s.kind==r.Incomplete)break;s.kind==r.ESC||s.kind==r.Unknown||(s.kind==r.Text?i.push(this.transform_to_html(this.with_state(s))):s.kind==r.SGR?this.process_ansi(s):s.kind==r.OSCURL&&i.push(this.process_hyperlink(s)))}return i.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let i=e.text.split(";");for(;i.length>0;){let s=i.shift(),t=parseInt(s,10);if(isNaN(t)||t===0)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(t===1)this.bold=!0;else if(t===2)this.faint=!0;else if(t===3)this.italic=!0;else if(t===4)this.underline=!0;else if(t===21)this.bold=!1;else if(t===22)this.faint=!1,this.bold=!1;else if(t===23)this.italic=!1;else if(t===24)this.underline=!1;else if(t===39)this.fg=null;else if(t===49)this.bg=null;else if(t>=30&&t<38)this.fg=this.ansi_colors[0][t-30];else if(t>=40&&t<48)this.bg=this.ansi_colors[0][t-40];else if(t>=90&&t<98)this.fg=this.ansi_colors[1][t-90];else if(t>=100&&t<108)this.bg=this.ansi_colors[1][t-100];else if((t===38||t===48)&&i.length>0){let a=t===38,n=i.shift();if(n==="5"&&i.length>0){let h=parseInt(i.shift(),10);h>=0&&h<=255&&(a?this.fg=this.palette_256[h]:this.bg=this.palette_256[h])}if(n==="2"&&i.length>2){let h=parseInt(i.shift(),10),o=parseInt(i.shift(),10),c=parseInt(i.shift(),10);if(h>=0&&h<=255&&o>=0&&o<=255&&c>=0&&c<=255){let d={rgb:[h,o,c],class_name:"truecolor"};a?this.fg=d:this.bg=d}}}}}transform_to_html(e){let i=e.text;if(i.length===0||(i=this.escape_txt_for_html(i),!e.bold&&!e.italic&&!e.underline&&e.fg===null&&e.bg===null))return i;let s=[],t=[],a=e.fg,n=e.bg;e.bold&&s.push(this._boldStyle),e.faint&&s.push(this._faintStyle),e.italic&&s.push(this._italicStyle),e.underline&&s.push(this._underlineStyle),this._use_classes?(a&&(a.class_name!=="truecolor"?t.push(`${a.class_name}-fg`):s.push(`color:rgb(${a.rgb.join(",")})`)),n&&(n.class_name!=="truecolor"?t.push(`${n.class_name}-bg`):s.push(`background-color:rgb(${n.rgb.join(",")})`))):(a&&s.push(`color:rgb(${a.rgb.join(",")})`),n&&s.push(`background-color:rgb(${n.rgb})`));let h="",o="";return t.length&&(h=` class="${t.join(" ")}"`),s.length&&(o=` style="${s.join(";")}"`),`<span${o}${h}>${i}</span>`}process_hyperlink(e){let i=e.url.split(":");return i.length<1||!this._url_allowlist[i[0]]?"":`<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`}}function x(l,...e){let i=l.raw[0],s=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,t=i.replace(s,"");return new RegExp(t)}function W(l,...e){let i=l.raw[0],s=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,t=i.replace(s,"");return new RegExp(t,"g")}var S,y,w;const M=new N,X=500,z={name:"Debug",props:{socket:Object},watch:{},computed:{filteredLogs(){return this.filter?this.debug.filter(l=>l.includes(this.filter)):this.debug},buttons(){return[{id:"start",label:"Start",icon:"play_arrow",color:"success",tooltip:"Start",action:()=>this.toggleDebug(!0),disabled:this.debugActive},{id:"stop",label:"Stop",icon:"stop",color:"error",tooltip:"Stop",action:()=>this.toggleDebug(!1),disabled:!this.debugActive},{id:"clear",label:"Clear",icon:"delete",color:"warning",tooltip:"Clear",action:()=>this.debug=[],disabled:this.debug.length===0},{id:"open",label:"Open",icon:"open_in_new",color:"primary",tooltip:"Open in window",action:this.newWindow,disabled:k()},{id:"scroll",label:"Scroll",icon:"vertical_align_bottom",color:"purple",tooltip:"Enable auto scroll",action:this.enableAutoScroll,disabled:this.autoScroll}]}},data(){return{debug:[],filter:"",debugActive:!0,hideTopbar:!1,autoScroll:!0}},methods:{...C(v,["showSnackbar"]),toggleDebug(l){this.debugActive=l,this.showSnackbar("Debug "+(l?"activated":"disabled"))},newWindow(){T("DEBUG",1e3)},enableAutoScroll(){this.autoScroll=!0,this.scrollBottom()},scrollBottom(){this.autoScroll&&B(()=>{const l=document.getElementById("debug_window");l&&(l.scrollTop=l.scrollHeight)})},onScroll(l){const e=l.target.scrollTop;e<this.prevScrollTop&&(this.autoScroll=!1),this.prevScrollTop=e}},mounted(){window.location.hash.substr(1)==="no-topbar"&&(this.hideTopbar=!0),this.socket.on(p.debug,e=>{this.debugActive&&(e=M.ansi_to_html(e),e=e.replace(/\n/g,"</br>"),e.endsWith("</br>")||(e+="</br>"),e=e.replace(/background-color:rgb\([0-9, ]+\)/g,""),this.debug.push(e),this.debug.length>X&&this.debug.shift(),this.scrollBottom())})},beforeUnmount(){this.socket&&this.socket.off(p.debug)}},J=["innerHTML"];function Q(l,e,i,s,t,a){return _(),m(O,{"grid-list-md":""},{default:u(()=>[f(R,null,{default:u(()=>[f(g,{style:{"max-width":"280px","margin-top":"-2px"}},{default:u(()=>[f(I,{density:"compact",multiple:""},{default:u(()=>[(_(!0),L(j,null,U(a.buttons,n=>$((_(),m(q,{size:"small",key:n.label,id:n.id,color:n.disabled?"grey":n.color,disabled:n.disabled,onClick:n.action},{default:u(()=>[f(D,null,{default:u(()=>[G(F(n.icon),1)]),_:2},1024)]),_:2},1032,["id","color","disabled","onClick"])),[[H,n.tooltip,"bottom"]])),128))]),_:1})]),_:1}),f(g,{class:"pa-2",cols:"6"},{default:u(()=>[f(V,{flat:"",variant:"outlined",density:"compact","single-line":"",style:{"max-width":"300px"},label:"Filter logs",hint:"Type to filter logs, case sensitive",modelValue:t.filter,"onUpdate:modelValue":e[0]||(e[0]=n=>t.filter=n),"persistent-hint":"","prepend-icon":"search"},null,8,["modelValue"])]),_:1}),f(g,{class:"pt-0 mb-5",cols:"12"},{default:u(()=>[A("div",{id:"debug_window",onScroll:e[1]||(e[1]=(...n)=>a.onScroll&&a.onScroll(...n)),style:{height:"800px",width:"100%","overflow-y":"scroll",border:"1px solid grey",padding:"10px","white-space":"pre"},class:"mono",innerHTML:a.filteredLogs.join("")},null,40,J)]),_:1})]),_:1})]),_:1})}const Z=E(z,[["render",Q]]);export{Z as default};
@@ -1 +1 @@
1
- import{_ as g,o,l as m,w as a,b as t,N as k,ar as C,e as $,U as r,t as n,ai as x,h as p,O as h,n as w,c as d,an as f,am as V,i as B,k as _,ag as N,a7 as z}from"./index--iN4HRyD.js";const A={props:{modelValue:Boolean,actions:Array,title:{type:String,default:"Advanced"}},emits:["close"],data(){return{}},computed:{_value:{get(){return this.modelValue},set(s){this.$emit("update:modelValue",s)}}},methods:{}},D={class:"text-h5"},S={style:{"font-size":"1.1rem"}},T={class:"action-desc"};function I(s,l,c,K,U,u){return o(),m(z,{onKeydown:l[1]||(l[1]=N(e=>s.$emit("close"),["esc"])),modelValue:u._value,"onUpdate:modelValue":l[2]||(l[2]=e=>u._value=e),persistent:"","max-width":"800"},{default:a(()=>[t(k,null,{default:a(()=>[t(C,null,{default:a(()=>[t($,{class:"pa-3",align:"center"},{default:a(()=>[r("span",D,n(c.title),1),t(x),t(p,{icon:"close",onClick:l[0]||(l[0]=e=>s.$emit("close"))})]),_:1})]),_:1}),t(h,null,{default:a(()=>[r("div",{class:w(["action-grid",s.$vuetify.display.name])},[(o(!0),d(f,null,V(c.actions,(e,v)=>(o(),d("div",{key:v},[t(B,{color:e.color||"primary",size:"x-large"},{default:a(()=>[_(n(e.icon),1)]),_:2},1032,["color"]),r("div",S,n(e.text),1),r("div",T,n(e.desc),1),(o(!0),d(f,null,V(e.options,(i,y)=>(o(),m(p,{key:y,onClick:b=>s.$emit("action",i.action,i.args),variant:"text",color:e.color||"primary"},{default:a(()=>[_(n(i.name),1)]),_:2},1032,["onClick","color"]))),128))]))),128))],2)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const F=g(A,[["render",I],["__scopeId","data-v-8af1dc53"]]);export{F as default};
1
+ import{_ as g,o,l as m,w as t,b as a,N as k,at as C,e as $,U as r,t as n,ak as x,h as p,O as h,n as w,c as d,ap as f,ao as V,i as B,k as _,ai as N,a7 as z}from"./index-D12pqcPl.js";const A={props:{modelValue:Boolean,actions:Array,title:{type:String,default:"Advanced"}},emits:["close"],data(){return{}},computed:{_value:{get(){return this.modelValue},set(s){this.$emit("update:modelValue",s)}}},methods:{}},D={class:"text-h5"},S={style:{"font-size":"1.1rem"}},T={class:"action-desc"};function I(s,l,c,K,U,u){return o(),m(z,{onKeydown:l[1]||(l[1]=N(e=>s.$emit("close"),["esc"])),modelValue:u._value,"onUpdate:modelValue":l[2]||(l[2]=e=>u._value=e),persistent:"","max-width":"800"},{default:t(()=>[a(k,null,{default:t(()=>[a(C,null,{default:t(()=>[a($,{class:"pa-3",align:"center"},{default:t(()=>[r("span",D,n(c.title),1),a(x),a(p,{icon:"close",onClick:l[0]||(l[0]=e=>s.$emit("close"))})]),_:1})]),_:1}),a(h,null,{default:t(()=>[r("div",{class:w(["action-grid",s.$vuetify.display.name])},[(o(!0),d(f,null,V(c.actions,(e,v)=>(o(),d("div",{key:v},[a(B,{color:e.color||"primary",size:"x-large"},{default:t(()=>[_(n(e.icon),1)]),_:2},1032,["color"]),r("div",S,n(e.text),1),r("div",T,n(e.desc),1),(o(!0),d(f,null,V(e.options,(i,y)=>(o(),m(p,{key:y,onClick:b=>s.$emit("action",i.action,i.args),variant:"text",color:e.color||"primary"},{default:t(()=>[_(n(i.name),1)]),_:2},1032,["onClick","color"]))),128))]))),128))],2)]),_:1})]),_:1})]),_:1},8,["modelValue"])}const F=g(A,[["render",I],["__scopeId","data-v-8af1dc53"]]);export{F as default};
@@ -1 +1 @@
1
- import{_ as v,I as x,m as A,u as C,av as E,d$ as _,e0 as m,dv as w,o as g,l as c,w as i,b as n,N as y,ar as k,U as f,O as I,V as G,a0 as S,e as U,f as u,Q as N,k as p,t as h,Z as R,$ as T,q as V,P as q,X as B,at as D,ai as L,h as b,a7 as M}from"./index--iN4HRyD.js";const j={mixins:[x],props:{modelValue:Boolean,associations:Array,node:Object},watch:{modelValue(){this.$refs.form&&this.$refs.form.resetValidation(),this.resetGroup(),this.associationError=""},group:{deep:!0,async handler(){var e;const t=await((e=this.$refs.form)==null?void 0:e.validate());t!=null&&t.valid&&this.allowedAssociation()}}},computed:{...A(C,["controllerNode","nodes"]),filteredNodes(){return this.node.protocol===E.ZWaveLongRange?[this.controllerNode]:this.nodes.filter(t=>t.id!==this.node.id&&t.protocol!==E.ZWaveLongRange).sort((t,e)=>t._name.localeCompare(e._name))},endpoints(){return this.getEndpointItems(this.node)},targetEndpoints(){return this.getEndpointItems(this.group.target,!0)},maxNodes(){return this.group.group?this.group.group.maxNodes:-1},nodesInGroup(){return this.group.group?this.associations.filter(t=>t.groupId===this.group.group.value&&t.endpoint===this.group.endpoint).length:0},endpointGroups(){let t=[];try{t=this.node.groups;const e=this.group.endpoint;t=t.filter(a=>a.endpoint===e||e===null&&a.endpoint===0&&!a.multiChannel)}catch{}return t},_value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},data(){return{valid:!0,group:{},associationError:"",defaultGroup:{endpoint:null},required:t=>!!t||"This field is required"}},methods:{getAssociationAddress:_,async handleAdd(){(await this.$refs.form.validate()).valid&&this.$emit("add",this.group)},async allowedAssociation(){var o;const t=this.group,e=isNaN(t.target)?(o=t.target)==null?void 0:o.id:parseInt(t.target);if(isNaN(e)){this.associationError="";return}const a=t.group;if(!a){this.associationError="";return}const l={nodeId:e};a.multiChannel&&t.targetEndpoint>=0&&(l.endpoint=t.targetEndpoint);const s=[this.getAssociationAddress({nodeId:this.node.id,endpoint:t.endpoint}),a.value,l],r=await this.app.apiRequest("checkAssociation",s,{showInfo:!1});if(r.success){const d=r.result;d===m.OK?this.associationError="":d===m.Forbidden_SecurityClassMismatch?this.associationError=`Association not allowed: Node ${this.node.id} does not have the same security class as Node ${e}!`:d===m.Forbidden_DestinationSecurityClassNotGranted?this.associationError=`Association not allowed: Node ${this.node.id} was not granted the highest security class of Node ${e}!`:d===m.Forbidden_NoSupportedCCs?this.associationError=`Association not allowed: Node ${this.node.id} sends no commands in this group that Node ${e} supports!`:this.associationError=`Association not allowed: ${w(m,d)}`}},resetGroup(){this.group=Object.assign({},this.defaultGroup)},getEndpointLabel(t,e){if(t&&t.endpoints){const a=t.endpoints.find(l=>l.index===e);if(a)return a.label}return"Endpoint "+e},getEndpointItems(t,e=!1){const a=[];if(e&&a.unshift({title:"No Endpoint",value:null}),t&&t.endpoints)for(const l of t.endpoints)a.push({title:l.label,value:l.index});return a}}},F={class:"text-subtitle-1 pa-0 ma-0"},O={class:"text-subtitle-1 pa-0 ma-0"};function P(t,e,a,l,s,r){return g(),c(M,{modelValue:r._value,"onUpdate:modelValue":e[6]||(e[6]=o=>r._value=o),"max-width":"500px",persistent:""},{default:i(()=>[n(y,null,{default:i(()=>[n(k,null,{default:i(()=>e[7]||(e[7]=[f("span",{class:"text-h5"},"New Association",-1)])),_:1,__:[7]}),n(I,null,{default:i(()=>[n(G,{"grid-list-md":""},{default:i(()=>[n(S,{modelValue:s.valid,"onUpdate:modelValue":e[4]||(e[4]=o=>s.valid=o),ref:"form","validate-on":"lazy"},{default:i(()=>[n(U,null,{default:i(()=>[n(u,{cols:"12"},{default:i(()=>[n(N,{label:"Node Endpoint",hint:"Used to filter available groups",modelValue:s.group.endpoint,"onUpdate:modelValue":e[0]||(e[0]=o=>s.group.endpoint=o),"persistent-hint":"",items:r.endpoints},null,8,["modelValue","items"])]),_:1}),n(u,{cols:"12"},{default:i(()=>[n(N,{label:"Group",hint:"Node/Endpoint Group association to Add/Remove","persistent-hint":"",modelValue:s.group.group,"onUpdate:modelValue":e[1]||(e[1]=o=>s.group.group=o),items:r.endpointGroups,rules:[s.required],"return-object":""},{selection:i(({item:o})=>[p(h(o.raw.title),1)]),item:i(({item:o,props:d})=>[n(R,T(d,{title:o.raw.title,subtitle:o.raw.endpoint>=0?r.getEndpointLabel(a.node,o.raw.endpoint):"No Endpoint"}),null,16,["title","subtitle"])]),_:1},8,["modelValue","items","rules"])]),_:1}),s.group.group?(g(),c(u,{key:0,cols:"12"},{default:i(()=>[f("p",F,[e[8]||(e[8]=p(" Max associations: ")),f("strong",null,h(r.maxNodes),1)]),f("p",O,[e[9]||(e[9]=p(" Actual associations: ")),f("strong",null,h(r.nodesInGroup),1)])]),_:1})):V("",!0),r.nodesInGroup<r.maxNodes?(g(),c(u,{key:1,class:"pa-0"},{default:i(()=>[n(u,{cols:"12"},{default:i(()=>[n(q,{label:"Target Node",modelValue:s.group.target,"onUpdate:modelValue":e[2]||(e[2]=o=>s.group.target=o),items:r.filteredNodes,"return-object":"",rules:[s.required],hint:"Node to add to the association group","persistent-hint":"","item-title":"_name"},null,8,["modelValue","items","rules"])]),_:1}),s.group.group&&s.group.group.multiChannel?(g(),c(u,{key:0,cols:"12"},{default:i(()=>[n(N,{modelValue:s.group.targetEndpoint,"onUpdate:modelValue":e[3]||(e[3]=o=>s.group.targetEndpoint=o),modelModifiers:{number:!0},"persistent-hint":"",label:"Target Endpoint",hint:"Target node endpoint",items:r.targetEndpoints},null,8,["modelValue","items"])]),_:1})):V("",!0),s.associationError?(g(),c(u,{key:1,cols:"12"},{default:i(()=>[n(B,{text:"",density:"compact",type:"error"},{default:i(()=>[p(h(s.associationError),1)]),_:1})]),_:1})):V("",!0)]),_:1})):V("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),n(D,null,{default:i(()=>[n(L),n(b,{color:"blue-darken-1",variant:"text",onClick:e[5]||(e[5]=o=>t.$emit("close"))},{default:i(()=>e[10]||(e[10]=[p("Cancel")])),_:1,__:[10]}),n(b,{color:"blue-darken-1",variant:"text",disabled:r.nodesInGroup>=r.maxNodes||!!s.associationError,onClick:r.handleAdd},{default:i(()=>e[11]||(e[11]=[p("ADD")])),_:1,__:[11]},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const W=v(j,[["render",P]]);export{W as default};
1
+ import{_ as x,I as v,m as A,u as C,ax as E,e1 as _,e2 as m,dx as w,o as g,l as c,w as i,b as n,N as y,at as k,U as f,O as I,V as G,a0 as S,e as U,f as u,Q as N,k as p,t as h,Z as R,$ as T,q as V,P as q,X as B,av as D,ak as L,h as b,a7 as M}from"./index-D12pqcPl.js";const j={mixins:[v],props:{modelValue:Boolean,associations:Array,node:Object},watch:{modelValue(){this.$refs.form&&this.$refs.form.resetValidation(),this.resetGroup(),this.associationError=""},group:{deep:!0,async handler(){var e;const t=await((e=this.$refs.form)==null?void 0:e.validate());t!=null&&t.valid&&this.allowedAssociation()}}},computed:{...A(C,["controllerNode","nodes"]),filteredNodes(){return this.node.protocol===E.ZWaveLongRange?[this.controllerNode]:this.nodes.filter(t=>t.id!==this.node.id&&t.protocol!==E.ZWaveLongRange).sort((t,e)=>t._name.localeCompare(e._name))},endpoints(){return this.getEndpointItems(this.node)},targetEndpoints(){return this.getEndpointItems(this.group.target,!0)},maxNodes(){return this.group.group?this.group.group.maxNodes:-1},nodesInGroup(){return this.group.group?this.associations.filter(t=>t.groupId===this.group.group.value&&t.endpoint===this.group.endpoint).length:0},endpointGroups(){let t=[];try{t=this.node.groups;const e=this.group.endpoint;t=t.filter(a=>a.endpoint===e||e===null&&a.endpoint===0&&!a.multiChannel)}catch{}return t},_value:{get(){return this.modelValue},set(t){this.$emit("update:modelValue",t)}}},data(){return{valid:!0,group:{},associationError:"",defaultGroup:{endpoint:null},required:t=>!!t||"This field is required"}},methods:{getAssociationAddress:_,async handleAdd(){(await this.$refs.form.validate()).valid&&this.$emit("add",this.group)},async allowedAssociation(){var o;const t=this.group,e=isNaN(t.target)?(o=t.target)==null?void 0:o.id:parseInt(t.target);if(isNaN(e)){this.associationError="";return}const a=t.group;if(!a){this.associationError="";return}const l={nodeId:e};a.multiChannel&&t.targetEndpoint>=0&&(l.endpoint=t.targetEndpoint);const s=[this.getAssociationAddress({nodeId:this.node.id,endpoint:t.endpoint}),a.value,l],r=await this.app.apiRequest("checkAssociation",s,{showInfo:!1});if(r.success){const d=r.result;d===m.OK?this.associationError="":d===m.Forbidden_SecurityClassMismatch?this.associationError=`Association not allowed: Node ${this.node.id} does not have the same security class as Node ${e}!`:d===m.Forbidden_DestinationSecurityClassNotGranted?this.associationError=`Association not allowed: Node ${this.node.id} was not granted the highest security class of Node ${e}!`:d===m.Forbidden_NoSupportedCCs?this.associationError=`Association not allowed: Node ${this.node.id} sends no commands in this group that Node ${e} supports!`:this.associationError=`Association not allowed: ${w(m,d)}`}},resetGroup(){this.group=Object.assign({},this.defaultGroup)},getEndpointLabel(t,e){if(t&&t.endpoints){const a=t.endpoints.find(l=>l.index===e);if(a)return a.label}return"Endpoint "+e},getEndpointItems(t,e=!1){const a=[];if(e&&a.unshift({title:"No Endpoint",value:null}),t&&t.endpoints)for(const l of t.endpoints)a.push({title:l.label,value:l.index});return a}}},F={class:"text-subtitle-1 pa-0 ma-0"},O={class:"text-subtitle-1 pa-0 ma-0"};function P(t,e,a,l,s,r){return g(),c(M,{modelValue:r._value,"onUpdate:modelValue":e[6]||(e[6]=o=>r._value=o),"max-width":"500px",persistent:""},{default:i(()=>[n(y,null,{default:i(()=>[n(k,null,{default:i(()=>e[7]||(e[7]=[f("span",{class:"text-h5"},"New Association",-1)])),_:1,__:[7]}),n(I,null,{default:i(()=>[n(G,{"grid-list-md":""},{default:i(()=>[n(S,{modelValue:s.valid,"onUpdate:modelValue":e[4]||(e[4]=o=>s.valid=o),ref:"form","validate-on":"lazy"},{default:i(()=>[n(U,null,{default:i(()=>[n(u,{cols:"12"},{default:i(()=>[n(N,{label:"Node Endpoint",hint:"Used to filter available groups",modelValue:s.group.endpoint,"onUpdate:modelValue":e[0]||(e[0]=o=>s.group.endpoint=o),"persistent-hint":"",items:r.endpoints},null,8,["modelValue","items"])]),_:1}),n(u,{cols:"12"},{default:i(()=>[n(N,{label:"Group",hint:"Node/Endpoint Group association to Add/Remove","persistent-hint":"",modelValue:s.group.group,"onUpdate:modelValue":e[1]||(e[1]=o=>s.group.group=o),items:r.endpointGroups,rules:[s.required],"return-object":""},{selection:i(({item:o})=>[p(h(o.raw.title),1)]),item:i(({item:o,props:d})=>[n(R,T(d,{title:o.raw.title,subtitle:o.raw.endpoint>=0?r.getEndpointLabel(a.node,o.raw.endpoint):"No Endpoint"}),null,16,["title","subtitle"])]),_:1},8,["modelValue","items","rules"])]),_:1}),s.group.group?(g(),c(u,{key:0,cols:"12"},{default:i(()=>[f("p",F,[e[8]||(e[8]=p(" Max associations: ")),f("strong",null,h(r.maxNodes),1)]),f("p",O,[e[9]||(e[9]=p(" Actual associations: ")),f("strong",null,h(r.nodesInGroup),1)])]),_:1})):V("",!0),r.nodesInGroup<r.maxNodes?(g(),c(u,{key:1,class:"pa-0"},{default:i(()=>[n(u,{cols:"12"},{default:i(()=>[n(q,{label:"Target Node",modelValue:s.group.target,"onUpdate:modelValue":e[2]||(e[2]=o=>s.group.target=o),items:r.filteredNodes,"return-object":"",rules:[s.required],hint:"Node to add to the association group","persistent-hint":"","item-title":"_name"},null,8,["modelValue","items","rules"])]),_:1}),s.group.group&&s.group.group.multiChannel?(g(),c(u,{key:0,cols:"12"},{default:i(()=>[n(N,{modelValue:s.group.targetEndpoint,"onUpdate:modelValue":e[3]||(e[3]=o=>s.group.targetEndpoint=o),modelModifiers:{number:!0},"persistent-hint":"",label:"Target Endpoint",hint:"Target node endpoint",items:r.targetEndpoints},null,8,["modelValue","items"])]),_:1})):V("",!0),s.associationError?(g(),c(u,{key:1,cols:"12"},{default:i(()=>[n(B,{text:"",density:"compact",type:"error"},{default:i(()=>[p(h(s.associationError),1)]),_:1})]),_:1})):V("",!0)]),_:1})):V("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),n(D,null,{default:i(()=>[n(L),n(b,{color:"blue-darken-1",variant:"text",onClick:e[5]||(e[5]=o=>t.$emit("close"))},{default:i(()=>e[10]||(e[10]=[p("Cancel")])),_:1,__:[10]}),n(b,{color:"blue-darken-1",variant:"text",disabled:r.nodesInGroup>=r.maxNodes||!!s.associationError,onClick:r.handleAdd},{default:i(()=>e[11]||(e[11]=[p("ADD")])),_:1,__:[11]},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const W=x(j,[["render",P]]);export{W as default};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./prismeditor.esm-C9BWBpUA.js","./index--iN4HRyD.js","./index-C7m9uB6j.css"])))=>i.map(i=>d[i]);
2
- import{_ as T,d as q,z as k,m as _,u as x,aa as w,r as S,o as r,l as m,w as i,b as a,N as U,ar as E,U as n,t as g,O as P,V as b,a0 as I,e as N,f as s,Q as f,k as u,Z as A,$ as D,q as V,W as c,R as h,at as M,ai as Q,h as C,a7 as F}from"./index--iN4HRyD.js";const R={components:{PrismEditor:q(()=>k(()=>import("./prismeditor.esm-C9BWBpUA.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(d=>d.PrismEditor))},props:{modelValue:Boolean,gw_type:Number,title:String,editedValue:Object,devices:Array},watch:{value(d){this.$refs.form&&this.$refs.form.resetValidation(),d&&(this.isNew=!this.editedValue.device)}},computed:{..._(x,["gateway","mqtt"]),_value:{get(){return this.modelValue},set(d){this.$emit("update:modelValue",d)}},deviceValues(){const d=this.devices.find(l=>l.value==this.editedValue.device);return d?d.values:[]},deviceClasses(){const d=this.editedValue.value;return d?d.commandClass===48?["battery","cold","connectivity","door","garage_door","gas","heat","light","lock","moisture","motion","moving","occupancy","opening","plug","power","presence","problem","safety","smoke","sound","vibration","window"]:this.isSensor(d)?["battery","humidity","illuminance","signal_strength","temperature","power","power_factor","pressure","timestamp","current","energy","voltage"]:d.commandClass===38?["awning","blind","curtain","damper","door","garage","gate","shade","shutter","window"]:[]:[]},requiredIntensity(){return!this.editedValue.enablePoll||this.editedValue.enablePoll&&this.editedValue.pollInterval>=10||"Minimun interval is 10 seconds"},requiredTopic(){return this.gw_type!==2||!!this.editedValue.topic||"Topic required"}},data(){return{isNew:null,valid:!0,required:d=>!!d||"This field is required"}},methods:{highlighter(d){return w.highlight(d,w.languages.js)},isSensor(d){return d&&(d.commandClass===49||d.commandClass===50)},async handleSave(){(await this.$refs.form.validate()).valid&&this.$emit("save")}}},B={class:"text-h5"};function O(d,l,t,j,v,o){const y=S("prism-editor");return r(),m(F,{modelValue:o._value,"onUpdate:modelValue":l[17]||(l[17]=e=>o._value=e),"max-width":"500px",persistent:""},{default:i(()=>[a(U,null,{default:i(()=>[a(E,null,{default:i(()=>[n("span",B,g(t.title),1)]),_:1}),a(P,null,{default:i(()=>[a(b,{"grid-list-md":""},{default:i(()=>[a(I,{modelValue:v.valid,"onUpdate:modelValue":l[15]||(l[15]=e=>v.valid=e),ref:"form","validate-on":"lazy"},{default:i(()=>[a(N,null,{default:i(()=>[a(s,{cols:"12"},{default:i(()=>[a(f,{modelValue:t.editedValue.device,"onUpdate:modelValue":l[0]||(l[0]=e=>t.editedValue.device=e),label:"Device",required:"",rules:[v.required],"item-title":"name",items:t.devices},null,8,["modelValue","rules","items"])]),_:1}),a(s,{cols:"12"},{default:i(()=>[a(f,{modelValue:t.editedValue.value,"onUpdate:modelValue":l[1]||(l[1]=e=>t.editedValue.value=e),label:"Value",hint:t.editedValue.value?t.editedValue.value.description:"",required:"","return-object":"",rules:[v.required],"item-title":"label","item-value":"id",items:o.deviceValues},{selection:i(({item:e})=>[u(g((e.raw.label||e.raw.id)+(e.raw.endpoint>1?" - Endpoint "+e.raw.endpoint:"")),1)]),item:i(({item:e,props:p})=>[a(A,D(p,{title:(e.raw.label||e.raw.id)+(e.raw.endpoint>0?" - Endpoint "+e.raw.endpoint:""),subtitle:e.raw.description||"No description available"}),null,16,["title","subtitle"])]),_:1},8,["modelValue","hint","rules","items"])]),_:1}),!this.mqtt.disabled&&this.gateway.hassDiscovery?(r(),m(s,{key:0,cols:"12"},{default:i(()=>[a(f,{modelValue:t.editedValue.device_class,"onUpdate:modelValue":l[2]||(l[2]=e=>t.editedValue.device_class=e),label:"Device Class",hint:"Specify a device class for Home assistant","item-title":"name",items:o.deviceClasses},null,8,["modelValue","items"])]),_:1})):V("",!0),o.isSensor(t.editedValue.value)?(r(),m(s,{key:1,cols:"12"},{default:i(()=>[a(c,{modelValue:t.editedValue.icon,"onUpdate:modelValue":l[3]||(l[3]=e=>t.editedValue.icon=e),modelModifiers:{number:!0},hint:"Specify a device icon for Home assistant, format is <prefix>:<icons-alias> (Eg: 'mdi:water'). Check http://materialdesignicons.com/",label:"Device Icon"},null,8,["modelValue"])]),_:1})):V("",!0),this.mqtt.disabled?V("",!0):(r(),m(s,{key:2,cols:"12"},{default:i(()=>[a(c,{modelValue:t.editedValue.topic,"onUpdate:modelValue":l[4]||(l[4]=e=>t.editedValue.topic=e),modelModifiers:{trim:!0},label:"Topic",rules:[o.requiredTopic],required:""},null,8,["modelValue","rules"])]),_:1})),this.mqtt.disabled?V("",!0):(r(),m(s,{key:3,cols:"6"},{default:i(()=>[a(f,{modelValue:t.editedValue.qos,"onUpdate:modelValue":l[5]||(l[5]=e=>t.editedValue.qos=e),label:"QoS",hint:"If specified, overrides the default QoS in MQTT settings",items:[{title:"",value:void 0},{title:"0: At most once",value:0},{title:"1: At least once",value:1},{title:"2: Exactly once",value:2}],"persistent-hint":"",required:"",type:"number"},null,8,["modelValue"])]),_:1})),this.mqtt.disabled?V("",!0):(r(),m(s,{key:4,cols:"6"},{default:i(()=>[a(f,{modelValue:t.editedValue.retain,"onUpdate:modelValue":l[6]||(l[6]=e=>t.editedValue.retain=e),label:"Retain","persistent-hint":"",hint:"If specified, overrides the default retain in MQTT settings",items:[{title:"",value:void 0},{title:"True",value:!0},{title:"False",value:!1}],required:"",type:"number"},null,8,["modelValue"])]),_:1})),a(s,{cols:"12"},{default:i(()=>[a(c,{modelValue:t.editedValue.postOperation,"onUpdate:modelValue":l[7]||(l[7]=e=>t.editedValue.postOperation=e),label:"Post operation",hint:"Example: '/10' '*100' '+20'",required:""},null,8,["modelValue"])]),_:1}),a(s,{cols:"6"},{default:i(()=>[a(h,{label:"Poll",hint:"Enable poll of this value. ATTENTION: This could create lot traffic in your network and kill the life of battery powered devices. Use at your own risk","persistent-hint":"",modelValue:t.editedValue.enablePoll,"onUpdate:modelValue":l[8]||(l[8]=e=>t.editedValue.enablePoll=e)},null,8,["modelValue"])]),_:1}),t.editedValue.enablePoll?(r(),m(s,{key:5,cols:"6"},{default:i(()=>[a(c,{modelValue:t.editedValue.pollInterval,"onUpdate:modelValue":l[9]||(l[9]=e=>t.editedValue.pollInterval=e),modelModifiers:{number:!0},label:"Poll interval",hint:"Seconds between to wait between poll requests. The timer starts when the request ends",rules:[o.requiredIntensity],suffix:"seconds",required:"",type:"number"},null,8,["modelValue","rules"])]),_:1})):V("",!0),t.editedValue.value&&t.editedValue.value.commandClass===112?(r(),m(s,{key:6,cols:"6"},{default:i(()=>[a(h,{label:"Enable discovery",hint:"Configuration CC values are disabled by default in MQTT discovery. Set this to true to force enable them","persistent-hint":"",modelValue:t.editedValue.ccConfigEnableDiscovery,"onUpdate:modelValue":l[10]||(l[10]=e=>t.editedValue.ccConfigEnableDiscovery=e)},null,8,["modelValue"])]),_:1})):V("",!0),a(s,{cols:"6"},{default:i(()=>[a(h,{label:"Parse send",hint:"Create a function that parse the value sent via MQTT","persistent-hint":"",modelValue:t.editedValue.parseSend,"onUpdate:modelValue":l[11]||(l[11]=e=>t.editedValue.parseSend=e)},null,8,["modelValue"])]),_:1}),t.editedValue.parseSend?(r(),m(b,{key:7},{default:i(()=>[l[18]||(l[18]=n("p",null,[u(" Write the function here. Args are: "),n("code",null,"value"),u(", "),n("code",null,"valueId"),u(", "),n("code",null,"node"),u(", "),n("code",null,"logger"),u(". The function is sync and must return the parsed "),n("code",null,"value"),u(". ")],-1)),a(y,{lineNumbers:"",modelValue:t.editedValue.sendFunction,"onUpdate:modelValue":l[12]||(l[12]=e=>t.editedValue.sendFunction=e),language:"js",highlight:o.highlighter},null,8,["modelValue","highlight"])]),_:1,__:[18]})):V("",!0),a(s,{cols:"6"},{default:i(()=>[a(h,{label:"Parse receive",hint:"Create a function that parse the received value from MQTT","persistent-hint":"",modelValue:t.editedValue.parseReceive,"onUpdate:modelValue":l[13]||(l[13]=e=>t.editedValue.parseReceive=e)},null,8,["modelValue"])]),_:1}),t.editedValue.parseReceive?(r(),m(b,{key:8},{default:i(()=>[l[19]||(l[19]=n("p",null,[u(" Write the function here. Args are: "),n("code",null,"value"),u(", "),n("code",null,"valueId"),u(", "),n("code",null,"node"),u(", "),n("code",null,"logger"),u(". The function is sync and must return the parsed "),n("code",null,"value"),u(". ")],-1)),a(y,{lineNumbers:"",modelValue:t.editedValue.receiveFunction,"onUpdate:modelValue":l[14]||(l[14]=e=>t.editedValue.receiveFunction=e),language:"js",highlight:o.highlighter},null,8,["modelValue","highlight"])]),_:1,__:[19]})):V("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(M,null,{default:i(()=>[a(Q),a(C,{color:"blue-darken-1",variant:"text",onClick:l[16]||(l[16]=e=>d.$emit("close"))},{default:i(()=>l[20]||(l[20]=[u("Cancel")])),_:1,__:[20]}),a(C,{color:"blue-darken-1",variant:"text",onClick:o.handleSave},{default:i(()=>[u(g(v.isNew?"Add":"Update"),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const z=T(R,[["render",O],["__scopeId","data-v-a841f747"]]);export{z as default};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./prismeditor.esm-7AII3Kzm.js","./index-D12pqcPl.js","./index-CwXXOu4L.css"])))=>i.map(i=>d[i]);
2
+ import{_ as T,d as q,z as k,m as _,u as x,ac as w,r as S,o as r,l as m,w as i,b as a,N as U,at as E,U as n,t as g,O as P,V as b,a0 as I,e as N,f as s,Q as f,k as u,Z as A,$ as D,q as V,W as c,R as h,av as M,ak as Q,h as C,a7 as F}from"./index-D12pqcPl.js";const R={components:{PrismEditor:q(()=>k(()=>import("./prismeditor.esm-7AII3Kzm.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(d=>d.PrismEditor))},props:{modelValue:Boolean,gw_type:Number,title:String,editedValue:Object,devices:Array},watch:{value(d){this.$refs.form&&this.$refs.form.resetValidation(),d&&(this.isNew=!this.editedValue.device)}},computed:{..._(x,["gateway","mqtt"]),_value:{get(){return this.modelValue},set(d){this.$emit("update:modelValue",d)}},deviceValues(){const d=this.devices.find(l=>l.value==this.editedValue.device);return d?d.values:[]},deviceClasses(){const d=this.editedValue.value;return d?d.commandClass===48?["battery","cold","connectivity","door","garage_door","gas","heat","light","lock","moisture","motion","moving","occupancy","opening","plug","power","presence","problem","safety","smoke","sound","vibration","window"]:this.isSensor(d)?["battery","humidity","illuminance","signal_strength","temperature","power","power_factor","pressure","timestamp","current","energy","voltage"]:d.commandClass===38?["awning","blind","curtain","damper","door","garage","gate","shade","shutter","window"]:[]:[]},requiredIntensity(){return!this.editedValue.enablePoll||this.editedValue.enablePoll&&this.editedValue.pollInterval>=10||"Minimun interval is 10 seconds"},requiredTopic(){return this.gw_type!==2||!!this.editedValue.topic||"Topic required"}},data(){return{isNew:null,valid:!0,required:d=>!!d||"This field is required"}},methods:{highlighter(d){return w.highlight(d,w.languages.js)},isSensor(d){return d&&(d.commandClass===49||d.commandClass===50)},async handleSave(){(await this.$refs.form.validate()).valid&&this.$emit("save")}}},B={class:"text-h5"};function O(d,l,t,j,v,o){const y=S("prism-editor");return r(),m(F,{modelValue:o._value,"onUpdate:modelValue":l[17]||(l[17]=e=>o._value=e),"max-width":"500px",persistent:""},{default:i(()=>[a(U,null,{default:i(()=>[a(E,null,{default:i(()=>[n("span",B,g(t.title),1)]),_:1}),a(P,null,{default:i(()=>[a(b,{"grid-list-md":""},{default:i(()=>[a(I,{modelValue:v.valid,"onUpdate:modelValue":l[15]||(l[15]=e=>v.valid=e),ref:"form","validate-on":"lazy"},{default:i(()=>[a(N,null,{default:i(()=>[a(s,{cols:"12"},{default:i(()=>[a(f,{modelValue:t.editedValue.device,"onUpdate:modelValue":l[0]||(l[0]=e=>t.editedValue.device=e),label:"Device",required:"",rules:[v.required],"item-title":"name",items:t.devices},null,8,["modelValue","rules","items"])]),_:1}),a(s,{cols:"12"},{default:i(()=>[a(f,{modelValue:t.editedValue.value,"onUpdate:modelValue":l[1]||(l[1]=e=>t.editedValue.value=e),label:"Value",hint:t.editedValue.value?t.editedValue.value.description:"",required:"","return-object":"",rules:[v.required],"item-title":"label","item-value":"id",items:o.deviceValues},{selection:i(({item:e})=>[u(g((e.raw.label||e.raw.id)+(e.raw.endpoint>1?" - Endpoint "+e.raw.endpoint:"")),1)]),item:i(({item:e,props:p})=>[a(A,D(p,{title:(e.raw.label||e.raw.id)+(e.raw.endpoint>0?" - Endpoint "+e.raw.endpoint:""),subtitle:e.raw.description||"No description available"}),null,16,["title","subtitle"])]),_:1},8,["modelValue","hint","rules","items"])]),_:1}),!this.mqtt.disabled&&this.gateway.hassDiscovery?(r(),m(s,{key:0,cols:"12"},{default:i(()=>[a(f,{modelValue:t.editedValue.device_class,"onUpdate:modelValue":l[2]||(l[2]=e=>t.editedValue.device_class=e),label:"Device Class",hint:"Specify a device class for Home assistant","item-title":"name",items:o.deviceClasses},null,8,["modelValue","items"])]),_:1})):V("",!0),o.isSensor(t.editedValue.value)?(r(),m(s,{key:1,cols:"12"},{default:i(()=>[a(c,{modelValue:t.editedValue.icon,"onUpdate:modelValue":l[3]||(l[3]=e=>t.editedValue.icon=e),modelModifiers:{number:!0},hint:"Specify a device icon for Home assistant, format is <prefix>:<icons-alias> (Eg: 'mdi:water'). Check http://materialdesignicons.com/",label:"Device Icon"},null,8,["modelValue"])]),_:1})):V("",!0),this.mqtt.disabled?V("",!0):(r(),m(s,{key:2,cols:"12"},{default:i(()=>[a(c,{modelValue:t.editedValue.topic,"onUpdate:modelValue":l[4]||(l[4]=e=>t.editedValue.topic=e),modelModifiers:{trim:!0},label:"Topic",rules:[o.requiredTopic],required:""},null,8,["modelValue","rules"])]),_:1})),this.mqtt.disabled?V("",!0):(r(),m(s,{key:3,cols:"6"},{default:i(()=>[a(f,{modelValue:t.editedValue.qos,"onUpdate:modelValue":l[5]||(l[5]=e=>t.editedValue.qos=e),label:"QoS",hint:"If specified, overrides the default QoS in MQTT settings",items:[{title:"",value:void 0},{title:"0: At most once",value:0},{title:"1: At least once",value:1},{title:"2: Exactly once",value:2}],"persistent-hint":"",required:"",type:"number"},null,8,["modelValue"])]),_:1})),this.mqtt.disabled?V("",!0):(r(),m(s,{key:4,cols:"6"},{default:i(()=>[a(f,{modelValue:t.editedValue.retain,"onUpdate:modelValue":l[6]||(l[6]=e=>t.editedValue.retain=e),label:"Retain","persistent-hint":"",hint:"If specified, overrides the default retain in MQTT settings",items:[{title:"",value:void 0},{title:"True",value:!0},{title:"False",value:!1}],required:"",type:"number"},null,8,["modelValue"])]),_:1})),a(s,{cols:"12"},{default:i(()=>[a(c,{modelValue:t.editedValue.postOperation,"onUpdate:modelValue":l[7]||(l[7]=e=>t.editedValue.postOperation=e),label:"Post operation",hint:"Example: '/10' '*100' '+20'",required:""},null,8,["modelValue"])]),_:1}),a(s,{cols:"6"},{default:i(()=>[a(h,{label:"Poll",hint:"Enable poll of this value. ATTENTION: This could create lot traffic in your network and kill the life of battery powered devices. Use at your own risk","persistent-hint":"",modelValue:t.editedValue.enablePoll,"onUpdate:modelValue":l[8]||(l[8]=e=>t.editedValue.enablePoll=e)},null,8,["modelValue"])]),_:1}),t.editedValue.enablePoll?(r(),m(s,{key:5,cols:"6"},{default:i(()=>[a(c,{modelValue:t.editedValue.pollInterval,"onUpdate:modelValue":l[9]||(l[9]=e=>t.editedValue.pollInterval=e),modelModifiers:{number:!0},label:"Poll interval",hint:"Seconds between to wait between poll requests. The timer starts when the request ends",rules:[o.requiredIntensity],suffix:"seconds",required:"",type:"number"},null,8,["modelValue","rules"])]),_:1})):V("",!0),t.editedValue.value&&t.editedValue.value.commandClass===112?(r(),m(s,{key:6,cols:"6"},{default:i(()=>[a(h,{label:"Enable discovery",hint:"Configuration CC values are disabled by default in MQTT discovery. Set this to true to force enable them","persistent-hint":"",modelValue:t.editedValue.ccConfigEnableDiscovery,"onUpdate:modelValue":l[10]||(l[10]=e=>t.editedValue.ccConfigEnableDiscovery=e)},null,8,["modelValue"])]),_:1})):V("",!0),a(s,{cols:"6"},{default:i(()=>[a(h,{label:"Parse send",hint:"Create a function that parse the value sent via MQTT","persistent-hint":"",modelValue:t.editedValue.parseSend,"onUpdate:modelValue":l[11]||(l[11]=e=>t.editedValue.parseSend=e)},null,8,["modelValue"])]),_:1}),t.editedValue.parseSend?(r(),m(b,{key:7},{default:i(()=>[l[18]||(l[18]=n("p",null,[u(" Write the function here. Args are: "),n("code",null,"value"),u(", "),n("code",null,"valueId"),u(", "),n("code",null,"node"),u(", "),n("code",null,"logger"),u(". The function is sync and must return the parsed "),n("code",null,"value"),u(". ")],-1)),a(y,{lineNumbers:"",modelValue:t.editedValue.sendFunction,"onUpdate:modelValue":l[12]||(l[12]=e=>t.editedValue.sendFunction=e),language:"js",highlight:o.highlighter},null,8,["modelValue","highlight"])]),_:1,__:[18]})):V("",!0),a(s,{cols:"6"},{default:i(()=>[a(h,{label:"Parse receive",hint:"Create a function that parse the received value from MQTT","persistent-hint":"",modelValue:t.editedValue.parseReceive,"onUpdate:modelValue":l[13]||(l[13]=e=>t.editedValue.parseReceive=e)},null,8,["modelValue"])]),_:1}),t.editedValue.parseReceive?(r(),m(b,{key:8},{default:i(()=>[l[19]||(l[19]=n("p",null,[u(" Write the function here. Args are: "),n("code",null,"value"),u(", "),n("code",null,"valueId"),u(", "),n("code",null,"node"),u(", "),n("code",null,"logger"),u(". The function is sync and must return the parsed "),n("code",null,"value"),u(". ")],-1)),a(y,{lineNumbers:"",modelValue:t.editedValue.receiveFunction,"onUpdate:modelValue":l[14]||(l[14]=e=>t.editedValue.receiveFunction=e),language:"js",highlight:o.highlighter},null,8,["modelValue","highlight"])]),_:1,__:[19]})):V("",!0)]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(M,null,{default:i(()=>[a(Q),a(C,{color:"blue-darken-1",variant:"text",onClick:l[16]||(l[16]=e=>d.$emit("close"))},{default:i(()=>l[20]||(l[20]=[u("Cancel")])),_:1,__:[20]}),a(C,{color:"blue-darken-1",variant:"text",onClick:o.handleSave},{default:i(()=>[u(g(v.isNew?"Add":"Update"),1)]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"])}const z=T(R,[["render",O],["__scopeId","data-v-a841f747"]]);export{z as default};