@camstack/addon-admin-ui 1.2.453 → 1.2.455

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 (131) hide show
  1. package/dist/assets/{AddonAssetIcon-D4f5QzwX.js → AddonAssetIcon-BYNabO6z.js} +1 -1
  2. package/dist/assets/Addons-B7UpJkGs.js +4 -0
  3. package/dist/assets/{AdminPage-D_zEoNvj.js → AdminPage-RJcN6Anu.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-c5oc7MKr.js → AdminSectionedPage-DvK84QvU.js} +1 -1
  5. package/dist/assets/AiProfiles-WyUbwQQi.js +3 -0
  6. package/dist/assets/{BrokerForm-WFCCMZu7.js → BrokerForm-Bua9uB8w.js} +1 -1
  7. package/dist/assets/Build-w6vEia_c.js +40 -0
  8. package/dist/assets/{Calendars-DNZptD-n.js → Calendars-ClbErr_S.js} +1 -1
  9. package/dist/assets/{Cluster-BirHrmjz.js → Cluster-DmQM6H_p.js} +1 -1
  10. package/dist/assets/ClusterStepModel-hpdBn30Y.js +1 -0
  11. package/dist/assets/{CompositionEditor-BruCgxbv.js → CompositionEditor-CpN510VP.js} +1 -1
  12. package/dist/assets/{CompositionEditorPage-CNY8Rqx0.js → CompositionEditorPage-Bicamzo6.js} +1 -1
  13. package/dist/assets/{Data-B9LAPgxz.js → Data-DoXqW90G.js} +2 -2
  14. package/dist/assets/DeviceDetail-4Vysat6s.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-Drr-gpl9.js → DeviceDoActionFields-lfq-_s87.js} +1 -1
  16. package/dist/assets/{Devices-JQ8FIcrC.js → Devices-BCTvzI3Z.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-DMCMitj3.js → EmbedPlayerPage-BzklJ0a5.js} +1 -1
  18. package/dist/assets/History-BYogPAEo.js +1 -0
  19. package/dist/assets/{Identity-lfUuRjOX.js → Identity-DtlH2M6Y.js} +1 -1
  20. package/dist/assets/IntegrationDetail-B0PsG3wF.js +1 -0
  21. package/dist/assets/{IntegrationHub-Db0bsfLJ.js → IntegrationHub-DHgjRUIy.js} +1 -1
  22. package/dist/assets/{Integrations-CcXy5tWR.js → Integrations-CQ3JYsSK.js} +1 -1
  23. package/dist/assets/{Integrations-DNPpJ4Ja.js → Integrations-DD48mmxj.js} +1 -1
  24. package/dist/assets/Library-02NRO2CR.js +1 -0
  25. package/dist/assets/Locations-CUmRk0or.js +3 -0
  26. package/dist/assets/{Logs-DWM80Ifl.js → Logs-QE5m7m6F.js} +1 -1
  27. package/dist/assets/{MaskShapeCanvas-Chm66Qq5.js → MaskShapeCanvas-C7r7jgVz.js} +1 -1
  28. package/dist/assets/{MotionZonesSettings-CQ4kMA71.js → MotionZonesSettings-qCWVDb2U.js} +1 -1
  29. package/dist/assets/{MyAccess-DhDj6Dcu.js → MyAccess-CIhAKN-2.js} +1 -1
  30. package/dist/assets/{Network-DRNoFcHE.js → Network-CJOuBFOQ.js} +1 -1
  31. package/dist/assets/{NodeAddonsSettingsPanel-CmUo7HL7.js → NodeAddonsSettingsPanel-CTmPFs3s.js} +1 -1
  32. package/dist/assets/Notifications-WPdPSM1o.js +1 -0
  33. package/dist/assets/{PrivacyMaskSettings-CpCCSkKp.js → PrivacyMaskSettings-CBAaR7ZM.js} +1 -1
  34. package/dist/assets/{Recordings-BcWqTc1H.js → Recordings-BeU7j2Jf.js} +1 -1
  35. package/dist/assets/{ScanNetworkModal-DOkg50dW.js → ScanNetworkModal-CiOVqs0H.js} +1 -1
  36. package/dist/assets/SceneMonitorEditor-BbPp4N2N.js +1 -0
  37. package/dist/assets/{SessionsList-rvronrFR.js → SessionsList-DTdwgdgY.js} +2 -2
  38. package/dist/assets/{Showroom-BLEcXdKT.js → Showroom-or-UvZ6_.js} +1 -1
  39. package/dist/assets/{System-B6PNyCJb.js → System-DSx33GfC.js} +1 -1
  40. package/dist/assets/{Terminal-C20iOQsN.js → Terminal-B3oKTozT.js} +2 -2
  41. package/dist/assets/{Viewer-DwNTfUWw.js → Viewer-CpC1lsu6.js} +1 -1
  42. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-DO5DropZ.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-cERw53qT.js} +1 -1
  43. package/dist/assets/{addon-icons-context-CO0pJapE.js → addon-icons-context-BVO6QLZm.js} +1 -1
  44. package/dist/assets/{archive-Bp0veqaX.js → archive-jvBvOOAa.js} +1 -1
  45. package/dist/assets/{authed-media-BukO6Htt.js → authed-media-DubLoRPM.js} +1 -1
  46. package/dist/assets/{bell-off-DNhCufqt.js → bell-off-h_oVtaH_.js} +1 -1
  47. package/dist/assets/{board-model-Ci-_X0u-.js → board-model-lfov_Io5.js} +1 -1
  48. package/dist/assets/{boxes-BaumwARG.js → boxes-CqZzX6pS.js} +1 -1
  49. package/dist/assets/circle-slash-DFnFtATu.js +1 -0
  50. package/dist/assets/client-Cj9cIFJV.js +358 -0
  51. package/dist/assets/{cloud-upload-C78OV2Vf.js → cloud-upload-_iPugQ2o.js} +1 -1
  52. package/dist/assets/crop-CesdRTv2.js +1 -0
  53. package/dist/assets/{device-integration-icon-B2dkF6iM.js → device-integration-icon-CFPzExgG.js} +1 -1
  54. package/dist/assets/device-picker-model-CVKD2t0V.js +1 -0
  55. package/dist/assets/{dist-BnhJ2JWA.js → dist-BYCY5p_8.js} +1 -1
  56. package/dist/assets/dist-o4U_Imrg.js +358 -0
  57. package/dist/assets/{eraser-BYMxipNr.js → eraser-RaYHha2L.js} +1 -1
  58. package/dist/assets/{hard-drive-download-ClkqTbzr.js → hard-drive-download-DobqoKaY.js} +1 -1
  59. package/dist/assets/{hostInit-BGNr3Jpq.js → hostInit-Bk_2heUx.js} +1 -1
  60. package/dist/assets/i18n-BuS8cl72.js +1 -0
  61. package/dist/assets/icons-DzYBV1xx.js +1 -0
  62. package/dist/assets/index-BuOqDa4D.css +2 -0
  63. package/dist/assets/index-CM1JjjBW.js +4 -0
  64. package/dist/assets/{key-CKrA-CfR.js → key-Dtkr3Nze.js} +1 -1
  65. package/dist/assets/{key-round-CDKQmrbu.js → key-round-CNTVmlFS.js} +1 -1
  66. package/dist/assets/{layers-UfB0_N2n.js → layers-DGhugmpj.js} +1 -1
  67. package/dist/assets/{linked-devices-model-BM0mB7nT.js → linked-devices-model-BpGYuse3.js} +1 -1
  68. package/dist/assets/{list-ordered-0mq_0UIh.js → list-ordered-DR6Fc-kF.js} +1 -1
  69. package/dist/assets/{location-owned-usage-D6ooNfJc.js → location-owned-usage-CScwnhi4.js} +1 -1
  70. package/dist/assets/{log-in-BySKT1Dy.js → log-in-B8yxXP-a.js} +1 -1
  71. package/dist/assets/{memory-stick-Dp1YfIBO.js → memory-stick-DEd977DV.js} +1 -1
  72. package/dist/assets/{message-square-plus-BWjzgumP.js → message-square-plus-czVBdg8z.js} +1 -1
  73. package/dist/assets/{mf-entry-bootstrap-0-594b555b.js → mf-entry-bootstrap-0-ffeb770c.js} +2 -2
  74. package/dist/assets/{mic-off-DiXTm9Y2.js → mic-off-CuWOtzwH.js} +1 -1
  75. package/dist/assets/{monitor-off-D3OGcghF.js → monitor-off-D1_Vx25v.js} +1 -1
  76. package/dist/assets/{monitor-smartphone-BkZrPcuL.js → monitor-smartphone-EKfsOXbl.js} +1 -1
  77. package/dist/assets/mount-CVKD2t0V.js +1 -0
  78. package/dist/assets/notification-schedule-field-i8rEjVxQ.js +1 -0
  79. package/dist/assets/player-overlays-D98Lvll4.js +1 -0
  80. package/dist/assets/{recycle-FJ49Ydss.js → recycle-BDYRIJo4.js} +1 -1
  81. package/dist/assets/remoteEntry-BtmyK6Gf.js +1 -0
  82. package/dist/assets/{scan-eye-Cd5UWfpf.js → scan-eye-BF9NJNXB.js} +1 -1
  83. package/dist/assets/{scissors-BA0EAdIJ.js → scissors-BNz1ybHC.js} +1 -1
  84. package/dist/assets/{search-x-By_wSOtV.js → search-x-DOr7Uth6.js} +1 -1
  85. package/dist/assets/send-BfMMesXE.js +1 -0
  86. package/dist/assets/{settings-2-CbNC1QI2.js → settings-2-CpTdKS6A.js} +1 -1
  87. package/dist/assets/{speaker-1RM6dadP.js → speaker-DiDPOBlm.js} +1 -1
  88. package/dist/assets/src-MJ2k3G6o.js +67 -0
  89. package/dist/assets/{timer-reset--avsGIJd.js → timer-reset-Dw4WCNKZ.js} +1 -1
  90. package/dist/assets/{ungroup-D3cHvFv0.js → ungroup-CLr3vekJ.js} +1 -1
  91. package/dist/assets/{unlink-tiyUOhU3.js → unlink-pUA2UXXM.js} +1 -1
  92. package/dist/assets/{usb-Di-8wm3J.js → usb-wx8HtogA.js} +1 -1
  93. package/dist/assets/{use-scenes-feed-CAjM8T0N.js → use-scenes-feed-DF4B8gD1.js} +1 -1
  94. package/dist/assets/{use-stationary-objects-Bjq8kJYj.js → use-stationary-objects-CPcayJEy.js} +1 -1
  95. package/dist/assets/useEventInvalidation-CVKD2t0V.js +1 -0
  96. package/dist/assets/{useNodeUrlSelection-DiojZJ0u.js → useNodeUrlSelection-Dm8ObY95.js} +1 -1
  97. package/dist/assets/user-round-vZzgqRIQ.js +1 -0
  98. package/dist/assets/{user-x-olI9Ahi1.js → user-x-CzTAjxJ0.js} +1 -1
  99. package/dist/assets/{video-jTbj0gAQ.js → video-a3E1zR0a.js} +1 -1
  100. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-D8GIXJRi.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-C-d2SXqo.js} +2 -2
  101. package/dist/index.html +11 -11
  102. package/dist/server/addon.js +152 -84
  103. package/package.json +1 -1
  104. package/dist/assets/Addons-BmgETSc4.js +0 -4
  105. package/dist/assets/AiProfiles-OmUyER08.js +0 -3
  106. package/dist/assets/Build-H3rAvJYX.js +0 -40
  107. package/dist/assets/ClusterStepModel-DXEw1-iK.js +0 -1
  108. package/dist/assets/DeviceDetail-DB8Wa7Sv.js +0 -2
  109. package/dist/assets/History-DyW5HpVM.js +0 -1
  110. package/dist/assets/IntegrationDetail-DnpseReT.js +0 -1
  111. package/dist/assets/Library-C2dLqSTC.js +0 -1
  112. package/dist/assets/Locations-e6uuHHQU.js +0 -3
  113. package/dist/assets/Notifications-BnhdNZ6f.js +0 -1
  114. package/dist/assets/SceneMonitorEditor-C1CNWxmG.js +0 -1
  115. package/dist/assets/circle-slash-D7rbiin9.js +0 -1
  116. package/dist/assets/client-BggkinSi.js +0 -358
  117. package/dist/assets/crop-CFruzwpC.js +0 -1
  118. package/dist/assets/device-picker-model-B7xNzrPL.js +0 -1
  119. package/dist/assets/dist-DTzD7Qgb.js +0 -358
  120. package/dist/assets/i18n-BimjnPQq.js +0 -1
  121. package/dist/assets/icons-DHL4FRrs.js +0 -1
  122. package/dist/assets/index-BVY_WMe1.js +0 -4
  123. package/dist/assets/index-CcCgJ28N.css +0 -2
  124. package/dist/assets/mount-B7xNzrPL.js +0 -1
  125. package/dist/assets/notification-schedule-field-BG32wqBc.js +0 -1
  126. package/dist/assets/player-overlays-BYMAZza9.js +0 -1
  127. package/dist/assets/remoteEntry-CXA3sxXs.js +0 -1
  128. package/dist/assets/send-C-dY1QlF.js +0 -1
  129. package/dist/assets/src-75D_Zlij.js +0 -67
  130. package/dist/assets/useEventInvalidation-B7xNzrPL.js +0 -1
  131. package/dist/assets/user-round-luImimaP.js +0 -1
@@ -1 +1 @@
1
- import{$ as e,B as t,G as n,J as r,L as i,S as a,o,x as s}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEHpkaJP.js";import{Br as c,D as l,En as u,Fn as d,It as f,Si as p,Sr as m,bi as h,dt as g,kn as _,or as v,ot as y}from"./player-overlays-BYMAZza9.js";import{Di as b}from"./client-BggkinSi.js";import{t as x}from"./archive-Bp0veqaX.js";import{t as S}from"./eraser-BYMxipNr.js";import{t as C}from"./hard-drive-download-ClkqTbzr.js";import{$n as ee,$r as w,Ar as T,Ll as te,Qn as ne,Tl as re,er as ie,hr as E,ht as D,ir as ae,mn as O,nr as k,rr as oe}from"./src-75D_Zlij.js";import{t as A}from"./i18n-BimjnPQq.js";import{t as j}from"./useTranslation-D3Is_4B6.js";import{Z as se,z as ce}from"./index-BVY_WMe1.js";import{t as M}from"./format-size-DIxKXxtj.js";e();function N(e){let t=e.trim().toLowerCase();return t.length===0?``:t.replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function P(e,t){let n=N(t);return`${e}:${n.length>0?n:`default`}`}var F=new Set([`proc`,`sys`,`dev`,`run`,`boot`,`lost+found`,`snap`,`bin`,`sbin`,`lib`,`lib32`,`lib64`,`libx32`,`usr`,`etc`,`var`,`opt`,`tmp`,`srv`,`root`,`System`,`Library`,`Applications`,`cores`,`private`]),I=[`recordings`,`data`,`mnt`,`media`,`Volumes`];function L(e){let t=I.findIndex(t=>t===`recordings`?e.startsWith(t):e===t);return t===-1?I.length:t}function le(e){return e.filter(e=>!e.name.startsWith(`.`)&&!F.has(e.name)).toSorted((e,t)=>{let n=L(e.name)-L(t.name);return n===0?e.name.localeCompare(t.name):n}).map(e=>e.path)}function ue({nodeId:e,value:n,onChange:o}){let{t:c}=j(),l=y().trpcClient,[u,d]=r([]),[f,p]=r(n),[m,h]=r(null),[g,_]=r(null),[v,b]=r(``),x=i(async(t,n)=>{_(null);try{let r=await l.filesystemBrowse.browse.query({nodeId:e,path:t});h(r),p(r.path),n&&o(r.path)}catch(e){_(e instanceof Error?e.message:`browse failed`)}},[l,e,o]);t(()=>{p(n),(async()=>{let t=await l.filesystemBrowse.browse.query({nodeId:e,path:`/`}).then(e=>e).catch(()=>null);if(t){d(le(t.entries)),await x(n.startsWith(`/`)?n:`/`,!1);return}try{let t=await l.filesystemBrowse.listAllowedRoots.query({nodeId:e});d(t),await x(n&&t.some(e=>n.startsWith(e))?n:t[0]??``,!1)}catch(e){d([]),h(null),_(e instanceof Error&&/not available on node/i.test(e.message)?`This node can't be browsed remotely. Enter the path manually.`:e instanceof Error?e.message:`browse unavailable`)}})()},[e]);let S=async()=>{if(!(!v.trim()||!m)){_(null);try{let t=`${m.path.replace(/\/+$/,``)}/${v.trim()}`;await l.filesystemBrowse.createDir.mutate({nodeId:e,path:t}),b(``),await x(m.path,!0)}catch(e){_(e instanceof Error?e.message:`create failed`)}}},C=e=>`${(e/1e9).toFixed(1)} GB`;return a(`div`,{className:`space-y-2 rounded border border-border p-2`,children:[s(`div`,{className:`flex flex-wrap gap-1`,children:u.map(e=>s(`button`,{onClick:()=>void x(e,!0),className:`rounded border border-border px-2 py-0.5 text-[10px] font-mono hover:border-primary/40`,children:e},e))}),s(`input`,{value:f,onChange:e=>{p(e.target.value),o(e.target.value)},placeholder:`/absolute/path`,className:`w-full rounded border border-border bg-background px-2 py-1 text-[11px] font-mono`}),m&&s(`div`,{className:`text-[10px] text-foreground-subtle`,children:c(`storage.pathBrowser.free`,{free:C(m.freeBytes),total:C(m.totalBytes)})}),s(`div`,{className:`max-h-40 space-y-0.5 overflow-y-auto`,children:m?.entries.map(e=>a(`button`,{onClick:()=>void x(e.path,!0),className:`block w-full truncate rounded px-2 py-1 text-left text-xs hover:bg-primary/5`,children:[`📁 `,e.name]},e.path))}),a(`div`,{className:`flex gap-1`,children:[s(`input`,{value:v,onChange:e=>b(e.target.value),placeholder:c(`storage.pathBrowser.newFolder`,`new folder`),className:`flex-1 rounded border border-border bg-background px-2 py-1 text-xs`}),s(`button`,{onClick:()=>void S(),className:`rounded border border-border px-2 py-1 text-xs hover:border-primary/40`,children:c(`storage.pathBrowser.create`,`Create`)})]}),g&&s(`div`,{className:`text-[10px] text-red-400`,children:g})]})}e();function R({initialType:e,onClose:t,onCreated:i}){let{t:c}=j(),l=o(),u=y().trpcClient,[d,f]=r(`picker`),[p,m]=r(e),[g,_]=r(null),[b,x]=r({}),[S,C]=r(``),[w,T]=r(null),[E,O]=r(!1),[k,A]=r(`hub`),[M,N]=r(null),[F,I]=r(!1),L=e=>x(t=>({...t,basePath:e})),le=typeof b.basePath==`string`?b.basePath:``,R=re(),z=n(()=>{let e=R.data;return Array.isArray(e)?e:[]},[R.data]),B=R.isLoading,V=te({onSuccess:()=>{l.invalidateQueries({queryKey:[[`storage`,`listLocations`]]}),i()}}),H=n(()=>w!==null&&w.length>0?w:P(p,S),[p,S,w]),U=async()=>{if(g){I(!0),N(null);try{N(await(e=>u.storage.testConfig.query(e))({providerId:g.providerId,config:b}))}catch(e){N({ok:!1,error:e instanceof Error?e.message:String(e)})}finally{I(!1)}}};return s(ne,{open:!0,onOpenChange:e=>!e&&t(),children:a(ie,{width:`md`,placement:`sheet-on-mobile`,scroll:`body`,children:[a(oe,{children:[s(ae,{children:{picker:`Add Location — Pick provider`,config:`Add Location — ${g?.displayName??``}`,naming:`Add Location — Name`}[d]}),a(`p`,{className:`text-xs text-foreground-subtle`,children:[c(`storage.addLocationWizard.type`,`Type:`),` `,s(`span`,{className:`font-mono`,children:p})]})]}),a(ee,{children:[d===`picker`&&a(`div`,{className:`space-y-2`,children:[B&&s(`div`,{className:`text-xs text-foreground-subtle animate-pulse`,children:c(`storage.addLocationWizard.loadingProviders`,`Loading providers…`)}),!B&&z.length===0&&s(`div`,{className:`rounded border border-border bg-background px-3 py-4 text-center text-xs text-foreground-subtle`,children:s(se,{i18nKey:`storage.addLocationWizard.noProvider`,values:{type:p},components:{code:s(`code`,{className:`font-mono`})}})}),z.map(e=>a(`button`,{onClick:()=>{_(e),f(`config`)},className:`flex w-full items-center gap-3 rounded-lg border border-border bg-background p-3 text-left hover:border-primary/40 hover:bg-primary/5 transition-colors`,children:[a(`div`,{className:`flex-1 min-w-0`,children:[s(`p`,{className:`text-xs font-semibold text-foreground`,children:e.displayName}),s(`p`,{className:`text-[10px] text-foreground-subtle font-mono mt-0.5 truncate`,children:e.providerId})]}),s(h,{className:`h-4 w-4 text-foreground-subtle flex-shrink-0`})]},e.providerId))]}),d===`config`&&g&&a(`div`,{className:`space-y-3`,children:[s(ce,{schema:g.configSchema,values:b,onChange:x}),g.nodeLocal&&a(`div`,{className:`space-y-2`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.addLocationWizard.node`,`Node`)}),s(D,{selectedNodeId:k,onSelect:A,alwaysShow:!0}),s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.addLocationWizard.path`,`Path`)}),s(ue,{nodeId:k,value:le,onChange:L})]}),M&&s(`div`,{className:`rounded border px-3 py-2 text-[11px] ${M.ok?`border-success/30 bg-success/5 text-success`:`border-danger/30 bg-danger/5 text-danger`}`,children:M.ok?c(`storage.addLocationWizard.connectionOk`,`Connection OK.`):c(`storage.addLocationWizard.testFailed`,`Test failed: {{value1}}`,{value1:M.error??`unknown error`})}),a(`div`,{className:`flex items-center justify-between pt-1`,children:[s(`button`,{onClick:()=>f(`picker`),className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:c(`common.back`,`Back`)}),a(`div`,{className:`flex items-center gap-2`,children:[s(`button`,{onClick:()=>{U()},disabled:F,className:`rounded border border-border px-3 py-1.5 text-xs text-foreground hover:bg-primary/10 disabled:opacity-50`,children:F?c(`storage.addLocationWizard.testing`,`Testing…`):c(`storage.addLocationWizard.testConnection`,`Test connection`)}),s(`button`,{onClick:()=>f(`naming`),className:`rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90`,children:c(`common.next`,`Next`)})]})]})]}),d===`naming`&&g&&a(`div`,{className:`space-y-3`,children:[a(`div`,{className:`space-y-1`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.addLocationWizard.displayName`,`Display name`)}),s(`input`,{type:`text`,value:S,onChange:e=>C(e.target.value),placeholder:c(`storage.addLocationWizard.on`,`{{type}} on {{displayName}}`,{type:p,displayName:g.displayName}),className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`})]}),a(`div`,{className:`space-y-1`,children:[a(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:[c(`storage.addLocationWizard.idLabel`),` `,s(`span`,{className:`lowercase tracking-normal text-foreground-subtle`,children:c(`storage.addLocationWizard.autoDerivedOverrideIfNeeded`,`— auto-derived; override if needed`)})]}),s(`input`,{type:`text`,value:H,onChange:e=>T(e.target.value),placeholder:P(p,S),className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground font-mono focus:outline-none focus:ring-1 focus:ring-primary`}),a(`p`,{className:`text-[10px] text-foreground-subtle`,children:[c(`storage.addLocationWizard.format`,`Format:`),` `,s(`code`,{className:`font-mono`,children:c(`storage.addLocationWizard.typeSlug`,`<type>:<slug>`)}),`. Lowercase letters, digits, and hyphens only.`]})]}),a(`label`,{className:`flex items-start gap-2 rounded border border-border bg-background px-3 py-2 cursor-pointer hover:bg-primary/5`,children:[s(`input`,{type:`checkbox`,checked:E,onChange:e=>O(e.target.checked),className:`accent-primary mt-0.5`}),a(`div`,{className:`space-y-0.5`,children:[s(`div`,{className:`text-xs font-medium text-foreground`,children:c(`storage.addLocationWizard.enableImmediately`,`Enable immediately`)}),s(`div`,{className:`text-[10px] text-foreground-subtle`,children:c(`storage.addLocationWizard.aDisabledLocationReceivesNo`,`A disabled location receives no writes until enabled — reads and age-based retention still work, nothing new lands here. Leave this off to register the disk now and start using it later.`)})]})]}),V.isError&&s(`div`,{className:`rounded border border-danger/30 bg-danger/5 text-danger px-3 py-2 text-[11px]`,children:V.error instanceof Error?V.error.message:String(V.error)}),a(`div`,{className:`flex items-center justify-between pt-1`,children:[s(`button`,{onClick:()=>f(`config`),className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:c(`common.back`,`Back`)}),a(`div`,{className:`flex items-center gap-2`,children:[s(`button`,{onClick:()=>{m(e),_(null),x({}),C(``),T(null),O(!1),N(null),f(`picker`)},className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:c(`common.reset`,`Reset`)}),a(`button`,{onClick:()=>{g&&V.mutate({id:H,type:p,displayName:S.trim(),providerId:g.providerId,config:b,enabled:E,nodeId:g.nodeLocal?k:void 0})},disabled:V.isPending||S.trim().length===0,className:`inline-flex items-center gap-1.5 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[V.isPending?s(v,{className:`h-3.5 w-3.5 animate-spin`}):null,V.isPending?c(`storage.addLocationWizard.saving`,`Saving…`):c(`common.save`,`Save`)]})]})]})]})]})]})})}function z(e){return b(e)}function B(e){return e===`active`}var V=[{mode:`active`,get label(){return A.t(`helpers.locationMode.activeLabel`)},get consequence(){return A.t(`helpers.locationMode.activeConsequence`)},requiresConfirmation:!1},{mode:`readonly`,get label(){return A.t(`helpers.locationMode.readonlyLabel`)},get consequence(){return A.t(`helpers.locationMode.readonlyConsequence`)},requiresConfirmation:!1},{mode:`drain`,get label(){return A.t(`helpers.locationMode.drainLabel`)},get consequence(){return A.t(`helpers.locationMode.drainConsequence`)},requiresConfirmation:!1},{mode:`disabled`,get label(){return A.t(`helpers.locationMode.disabledLabel`)},get consequence(){return A.t(`helpers.locationMode.disabledConsequence`)},requiresConfirmation:!0}];function H(e){return V.find(t=>t.mode===e)??V[0]}function U(e){return H(e).requiresConfirmation}var de=`Blocked: this is the last location of its type still accepting writes — new data would have nowhere to go.`;function W(e,t,n){return B(n)||!B(z(e))||t.some(t=>t.id!==e.id&&B(z(t)))?{blocked:!1,reason:``}:{blocked:!0,reason:de}}function fe(e,t){return{active:W(e,t,`active`).reason,readonly:W(e,t,`readonly`).reason,drain:W(e,t,`drain`).reason,disabled:W(e,t,`disabled`).reason}}function pe(e,t,n){return!(n===`single`||t.length<=1||B(z(e))&&t.filter(e=>B(z(e))).length<=1)}function me(e){return e===`active`?{enabled:!0,readOnly:!1}:e===`readonly`?{enabled:!1,readOnly:!1}:{enabled:!1,readOnly:!0}}function he(e,t){let n={...t.config??e.config};t.mode!==void 0&&(me(t.mode).readOnly?n.readOnly=!0:delete n.readOnly);let r={id:e.id,type:e.type,displayName:t.displayName??e.displayName,providerId:e.providerId,config:n,isSystem:e.isSystem},i=t.nodeId??e.nodeId,a=i===void 0?r:{...r,nodeId:i};return t.mode===void 0?e.enabled===void 0?a:{...a,enabled:e.enabled}:{...a,mode:t.mode,enabled:me(t.mode).enabled}}var ge=1024**3;function G(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function _e(e){let t=G(e.minFreeGb);if(t!==null)return{unit:`gb`,value:t};let n=G(e.minFreePercent);return n===null?{unit:`percent`,value:null}:{unit:`percent`,value:n}}function ve(e,t){return G(e[t===`gb`?`minFreeGb`:`minFreePercent`])}function ye(e,t){let n={...e};return delete n.minFreePercent,delete n.minFreeGb,t.value===null?n:t.unit===`gb`?{...n,minFreeGb:t.value}:{...n,minFreePercent:t.value}}function be(e,t){let n=e.trim();if(n===``)return null;let r=Number(n);return Number.isFinite(r)?t===`percent`?Math.min(100,Math.max(0,r)):Math.max(0,r):null}function xe(e,t,n=10){if(e.unit===`gb`&&e.value!==null)return e.value*ge;let r=e.value??n;return t===null||t<=0?null:t*Math.min(100,Math.max(0,r))/100}function Se(e){return e===`gb`?A.t(`helpers.locationProtection.unitGb`):A.t(`helpers.locationProtection.unitPercent`)}function Ce(e,t=10){let n=e.value===null?A.t(`helpers.locationProtection.targetDefault`,{percent:String(t)}):e.unit===`gb`?A.t(`helpers.locationProtection.targetGb`,{value:String(e.value)}):A.t(`helpers.locationProtection.targetPercent`,{value:String(e.value)});return A.t(`helpers.locationProtection.helpText`,{target:n,percent:String(t)})}function we(e){return G(e.maxUsedGb)}function Te(e,t){let n=G(e.maxUsedGb);return n===null||n<0?null:{bytes:n*ge,reason:t===`drain`?`drain`:`legacy`}}e();function Ee({config:e,defaultPercent:t=10,onChange:n}){let{t:i}=j(),[o,c]=r(()=>_e(e).unit),l=ve(e,o),u={unit:o,value:l},d=we(e),f=t=>{c(t),n(ye(e,{unit:t,value:null}))},p=t=>{n(ye(e,{unit:o,value:be(t,o)}))};return a(`div`,{className:`space-y-1`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:i(`storage.protectionPolicyField.protectedFreeSpace`,`Protected free space`)}),a(`div`,{className:`flex items-center gap-2`,children:[a(`select`,{"aria-label":i(`storage.protectionPolicyField.protectionUnit`,`Protection unit`),value:o,onChange:e=>{f(e.target.value===`gb`?`gb`:`percent`)},className:`rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`,children:[s(`option`,{value:`percent`,children:i(`storage.protectionPolicyField.ofTheVolume`,`% of the volume`)}),s(`option`,{value:`gb`,children:i(`storage.protectionPolicyField.gbOfFreeSpace`,`GB of free space`)})]}),s(`input`,{type:`number`,"aria-label":Se(o),min:0,max:o===`percent`?100:void 0,value:l===null?``:l,placeholder:o===`percent`?String(t):i(`common.defaultWord`),onChange:e=>{p(e.target.value)},className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`})]}),s(`p`,{className:`text-[10px] text-foreground-subtle`,children:Ce(u,t)}),d!==null&&s(`p`,{className:`text-[10px] text-foreground-subtle italic`,children:i(`storage.protectionPolicyField.legacyMax`,{gb:d})})]})}e();function De({location:e,onClose:t,onSaved:i}){let{t:c}=j(),l=o(),u=y().trpcClient,[d,f]=r({...e.config}),[p,m]=r(e.displayName),[h,g]=r(null),[_,b]=r(!1),x=re(),S=n(()=>{let t=x.data;return Array.isArray(t)?t.find(t=>t.providerId===e.providerId)??null:null},[x.data,e.providerId]),C=te({onSuccess:()=>{l.invalidateQueries({queryKey:[[`storage`,`listLocations`]]}),i()}}),w=S?.shouldSaveDiskSpace===!0,T=S?.nodeLocal===!0,[O,A]=r(typeof e.nodeId==`string`?e.nodeId:`hub`),M=typeof d.basePath==`string`?d.basePath:``,N=e=>f(t=>({...t,basePath:e})),P=S?.minFreePercent??10,F=async()=>{b(!0),g(null);try{g(await(e=>u.storage.testConfig.query(e))({providerId:e.providerId,locationId:e.id,config:d}))}catch(e){g({ok:!1,error:e instanceof Error?e.message:String(e)})}finally{b(!1)}};return s(ne,{open:!0,onOpenChange:e=>!e&&t(),children:a(ie,{width:`md`,placement:`sheet-on-mobile`,scroll:`body`,children:[a(oe,{children:[s(ae,{children:c(`storage.editLocationModal.title`,{name:e.displayName})}),a(`p`,{className:`text-xs text-foreground-subtle`,children:[s(`span`,{className:`font-mono`,children:e.id}),` ·`,` `,S?.displayName??e.providerId]})]}),a(ee,{className:`space-y-3`,children:[a(`div`,{className:`space-y-1`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.editLocationModal.displayName`,`Display name`)}),s(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`})]}),S&&s(ce,{schema:S.configSchema,values:d,onChange:f}),T&&a(`div`,{className:`space-y-2`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.editLocationModal.node`,`Node`)}),s(D,{selectedNodeId:O,onSelect:A,alwaysShow:!0}),s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.editLocationModal.path`,`Path`)}),s(ue,{nodeId:O,value:M,onChange:N})]}),w&&s(Ee,{config:d,defaultPercent:P,onChange:f}),!S&&!x.isLoading&&s(`div`,{className:`rounded border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[11px] text-amber-700 dark:text-amber-300`,children:s(se,{i18nKey:`storage.editLocationModal.providerGone`,values:{id:e.providerId},components:{code:s(`code`,{className:`font-mono`})}})}),h&&s(`div`,{className:`rounded border px-3 py-2 text-[11px] ${h.ok?`border-success/30 bg-success/5 text-success`:`border-danger/30 bg-danger/5 text-danger`}`,children:h.ok?c(`storage.editLocationModal.connectionOk`,`Connection OK.`):c(`storage.editLocationModal.testFailed`,`Test failed: {{value1}}`,{value1:h.error??`unknown error`})}),C.isError&&s(`div`,{className:`rounded border border-danger/30 bg-danger/5 text-danger px-3 py-2 text-[11px]`,children:C.error instanceof Error?C.error.message:String(C.error)})]}),a(k,{className:`justify-between`,children:[s(E,{variant:`outline`,size:`sm`,onClick:t,children:c(`common.cancel`,`Cancel`)}),a(`div`,{className:`flex items-center gap-2`,children:[s(E,{variant:`outline`,size:`sm`,onClick:()=>{F()},disabled:_||!S,children:_?c(`storage.editLocationModal.testing`,`Testing…`):c(`storage.editLocationModal.testConnection`,`Test connection`)}),a(E,{size:`sm`,onClick:()=>{C.mutate(he(e,{displayName:p.trim(),config:d,nodeId:T?O:e.nodeId}))},disabled:C.isPending||p.trim().length===0,children:[C.isPending?s(v,{className:`h-3.5 w-3.5 animate-spin`}):null,C.isPending?c(`storage.editLocationModal.saving`,`Saving…`):c(`common.save`,`Save`)]})]})]})]})})}function Oe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function K(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function ke(e){if(!Oe(e))return null;let t=e.locationId;if(typeof t!=`string`||t.length===0)return null;let n=K(e.startedAtMs),r=K(e.startBytes),i=K(e.bytesRemaining);return n===null||r===null||i===null||typeof e.drained!=`boolean`?null:{locationId:t,startedAtMs:n,startBytes:r,bytesRemaining:i,drained:e.drained,estimatedEmptyAtMs:K(e.estimatedEmptyAtMs)}}function Ae(e){let t=new Map;if(!Array.isArray(e))return t;for(let n of e){let e=ke(n);e!==null&&t.set(e.locationId,e)}return t}function je(e){if(e.startBytes<=0||e.bytesRemaining>e.startBytes)return null;let t=e.startBytes-e.bytesRemaining;return Math.min(1,Math.max(0,t/e.startBytes))}function Me(e,t){return e?t===void 0?{kind:`unreported`}:t.drained||t.bytesRemaining<=0?{kind:`drained`}:{kind:`draining`,bytesRemaining:t.bytesRemaining,drainedFraction:je(t),estimatedEmptyAtMs:t.estimatedEmptyAtMs}:{kind:`idle`}}function Ne(e){return e.mode===`drain`?!0:e.config.readOnly===!0}function Pe(e){return`${(e/1024**3).toFixed(e>=100*1024**3?0:1)} GB`}function Fe(e){return new Date(e).toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})}function Ie({drain:e}){let{t}=j();if(e.kind===`idle`)return null;if(e.kind===`unreported`)return s(`span`,{"data-testid":`drain-unreported`,className:`text-[10px] text-foreground-subtle`,title:t(`storage.drainProgressLine.thisLocationIsDrainingThe`,`This location is draining. The hub has not reported how much is left yet — either the drain has just been set, or this hub predates the drain-progress report.`),children:t(`storage.drainProgressLine.drainingRemainingNotReportedYet`,`Draining · remaining not reported yet`)});if(e.kind===`drained`)return s(`span`,{"data-testid":`drain-done`,className:`text-[10px] text-success`,title:t(`storage.drainProgressLine.everythingThatWasHereHas`,`Everything that was here has been moved. The location is still in drain mode — it receives no new writes until you change that.`),children:t(`storage.drainProgressLine.drainedNothingLeftToMove`,`Drained · nothing left to move`)});let n=e.drainedFraction===null?null:Math.round(e.drainedFraction*100);return a(`span`,{"data-testid":`drain-progress`,className:`flex items-center gap-1.5 text-[10px] text-foreground-subtle tabular-nums`,children:[n!==null&&s(`span`,{"data-testid":`drain-bar`,className:`inline-block h-1 w-10 rounded-full bg-border overflow-hidden`,role:`progressbar`,"aria-label":t(`storage.drainProgressLine.drainProgress`,`Drain progress`),"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,children:s(`span`,{className:`block h-full bg-warning`,style:{width:`${n}%`}})}),a(`span`,{children:[t(`storage.drainProgressLine.left`,{size:Pe(e.bytesRemaining)}),n!==null&&` · ${t(`storage.drainProgressLine.moved`,{percent:n})}`]}),e.estimatedEmptyAtMs===null?s(`span`,{"data-testid":`drain-eta-absent`,title:t(`storage.drainProgressLine.theDrainIsPacedBy`,`The drain is paced by how fast this class of data is still growing, and that has not been observed yet. There is no date to give.`),children:t(`storage.drainProgressLine.emptyTimeNotKnownYet`,`· empty time not known yet`)}):a(`span`,{"data-testid":`drain-eta`,children:[`·`,` `,t(`storage.drainProgressLine.empty`,{when:Fe(e.estimatedEmptyAtMs)})]})]})}var Le=[`ok`,`warn`,`critical`];function Re(e){return e>=.95?`critical`:e>=.85?`warn`:`ok`}function ze(e){return Math.min(1,Math.max(0,e))}function q(e){let{availableBytes:t,totalBytes:n}=e;if(n===null||n<=0||t===null)return null;let r=ze((n-t)/n);return{fraction:r,severity:Re(r),recordingsFraction:ze(e.usedBytes/n),freeBytes:t,totalBytes:n}}function Be(e){if(e.length===0)return null;let t=0,n=0,r=0,i=0,a=null;for(let o of e){let e=q(o);if(e===null){n+=1;continue}t+=1,r+=e.totalBytes,i+=e.freeBytes,(a===null||Le.indexOf(e.severity)>Le.indexOf(a))&&(a=e.severity)}return{knownVolumes:t,unknownVolumes:n,totalBytes:r,freeBytes:i,severity:a}}function J(e){return Math.min(1,Math.max(0,e))}function Y(e){return Math.round(J(e)*1e3)/10}function X(e){return`${String(Math.round(J(e)*100))}%`}function Ve(e,t,n={}){let{totalBytes:r,availableBytes:i}=e;if(r===null||r<=0||i===null){let e=n.ownedBytes===void 0||n.ownedBytes===null||!Number.isFinite(n.ownedBytes)||n.ownedBytes<0?null:M(n.ownedBytes);return{kind:`unknown`,owned:e,summary:e===null?A.t(`helpers.locationCapacityBar.unknownSummary`):A.t(`helpers.locationCapacityBar.unknownSummaryOwned`,{size:e})}}let a=Math.min(Math.max(i,0),r),o=r-a,s=t===null||t<=0?0:t,c=Math.min(s,a),l=s>a,u=a-c,d=n.ownedBytes,f=d==null||!Number.isFinite(d)||d<0?null:Math.min(d,o),p=o-(f??0),m=q({usedBytes:f??o,availableBytes:a,totalBytes:r}),h=m===null?J(o/r):m.fraction,g=m===null?Re(h):m.severity,_=f===null?null:m===null?J(f/r):m.recordingsFraction,v=n.cap??null,y=v===null?null:J((c+v.bytes)/r),b=v!==null&&f!==null&&f>v.bytes,x={total:M(r),freeTotal:M(a),freeTotalPercent:X(a/r),used:M(p),usedPercent:X(p/r),free:M(u),freePercent:X(u/r),reserve:s===0?null:A.t(`helpers.locationCapacityBar.reserveKept`,{size:M(s)}),owned:f===null||_===null?null:A.t(`helpers.locationCapacityBar.ownedOfRecordings`,{size:M(f),percent:X(_)}),cap:v===null?null:v.reason===`drain`?A.t(`helpers.locationCapacityBar.capDrain`,{size:M(v.bytes)}):A.t(`helpers.locationCapacityBar.capCap`,{size:M(v.bytes)})},S=[A.t(`helpers.locationCapacityBar.summaryFree`,{free:x.freeTotal,total:x.total,percent:x.freeTotalPercent}),x.owned===null?null:A.t(`helpers.locationCapacityBar.summaryOwned`,{owned:x.owned}),x.reserve===null?null:l?A.t(`helpers.locationCapacityBar.summaryReserveShort`,{reserve:x.reserve}):x.reserve,x.cap===null?null:b?A.t(`helpers.locationCapacityBar.summaryCapBelow`,{cap:x.cap}):x.cap].filter(e=>e!==null).join(` · `),C=[];return c>0&&C.push({segment:`reserve`,label:A.t(`helpers.locationCapacityBar.legendKeptFree`),value:M(s),alarming:l}),x.owned!==null&&C.push({segment:`owned`,label:A.t(`helpers.locationCapacityBar.legendCamstack`),value:x.owned,alarming:!1}),C.push({segment:`used`,label:f===null?A.t(`helpers.locationCapacityBar.legendUsed`):A.t(`helpers.locationCapacityBar.legendOtherData`),value:`${x.used} (${x.usedPercent})`,alarming:g===`critical`}),C.push({segment:`free`,label:A.t(`helpers.locationCapacityBar.legendFree`),value:`${x.free} (${x.freePercent})`,alarming:l}),v!==null&&C.push({segment:`cap`,label:v.reason===`drain`?A.t(`helpers.locationCapacityBar.legendDrainTarget`):A.t(`helpers.locationCapacityBar.legendCap`),value:A.t(`helpers.locationCapacityBar.legendCapValue`,{size:M(v.bytes)}),alarming:b}),{kind:`known`,severity:g,legend:C,segments:{reservePercent:Y(c/r),ownedPercent:f===null?null:Y(f/r),usedPercent:Y(p/r),freePercent:Y(u/r),capPercent:y===null?null:Y(y)},labels:x,reserveExceedsFree:l,capBelowOwned:b,summary:S}}var He={ok:`bg-primary`,warn:`bg-amber-500`,critical:`bg-danger`},Z={reserve:`bg-danger/40`,owned:`bg-foreground/50`,free:`bg-border`,cap:`bg-foreground`};function Ue(e,t){return e===`used`?He[t]:Z[e]}function We({location:e,ownedBytes:t}){let{t:n}=j(),r=e.capacity??null,i=xe(_e(e.config),r?.totalBytes??null),o=Ve({totalBytes:r?.totalBytes??null,availableBytes:r?.availableBytes??null},i,{ownedBytes:t??null,cap:Te(e.config,z(e))});return o.kind===`unknown`?s(`div`,{className:`text-[10px] text-foreground-subtle italic`,title:o.summary,children:o.owned===null?n(`storage.locationCapacityBar.capacityUnknown`,`Capacity unknown`):n(`storage.locationCapacityBar.capacityUnknownCamstackHolds`,`Capacity unknown · CamStack holds {{owned}}`,{owned:o.owned})}):a(`div`,{className:`mt-1 space-y-1`,title:o.summary,children:[a(`div`,{className:`relative flex h-2 w-full max-w-md overflow-hidden rounded-full bg-border`,children:[o.segments.reservePercent>0&&s(`div`,{className:Z.reserve,style:{width:`${String(o.segments.reservePercent)}%`}}),o.segments.ownedPercent!==null&&s(`div`,{className:Z.owned,style:{width:`${String(o.segments.ownedPercent)}%`}}),s(`div`,{className:He[o.severity],style:{width:`${String(o.segments.usedPercent)}%`}}),s(`div`,{className:Z.free,style:{width:`${String(o.segments.freePercent)}%`}}),o.segments.capPercent!==null&&s(`div`,{className:`absolute inset-y-0 w-px ${o.capBelowOwned?`bg-danger`:Z.cap}`,style:{left:`${String(o.segments.capPercent)}%`}})]}),s(`ul`,{className:`flex flex-wrap items-center gap-x-3 gap-y-0.5`,children:o.legend.map(e=>a(`li`,{className:`flex items-center gap-1`,children:[s(`span`,{"aria-hidden":`true`,className:`inline-block h-2 w-2 shrink-0 rounded-sm ${Ue(e.segment,o.severity)}`}),a(`span`,{className:`text-[10px] tabular-nums ${e.alarming?`text-danger`:`text-foreground-subtle`}`,children:[e.label,` `,e.value]})]},e.segment))})]})}var Ge={eventMedia:[`events`],recordingsLow:[`low`],recordings:[`high`,`mid`]},Ke={eventMedia:`pipeline-analytics`,recordingsLow:`recorder`,recordings:`recorder`},qe=`storage.discardLocation`,Je=`storage.discardLocationStatus`,Ye=`storage.discardLocationCancel`;function Xe(e){return Ge[e]??null}function Ze(e){return Ke[e]??null}function Qe(e){return!B(z(e))}function $e(e,t){return Xe(e.type)===null||!Qe(e)?!1:t.some(t=>t.id!==e.id&&B(z(t)))}var et=new Set([`idle`,`scanning`,`wiping-fs`,`wiping-db`,`cascading`,`complete`,`cancelled`,`error`]);function Q(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function $(e){return typeof e==`string`?e:null}function tt(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.running!=`boolean`)return null;let n=t.phase;if(typeof n!=`string`||!et.has(n))return null;let r=Q(t.camerasTotal),i=Q(t.camerasDone),a=Q(t.foldersRemoved),o=Q(t.dbRowsDeleted),s=Q(t.ownersCascaded);return r===null||i===null||a===null||o===null||s===null?null:{running:t.running,locationId:$(t.locationId),jobId:$(t.jobId),phase:n,camerasTotal:r,camerasDone:i,foldersRemoved:a,dbRowsDeleted:o,ownersCascaded:s,detail:$(t.detail)??``,startedAtMs:Q(t.startedAtMs),finishedAtMs:Q(t.finishedAtMs),error:$(t.error)}}function nt(e){if(e.phase===`complete`)return 100;if(e.phase===`cancelled`||e.phase===`error`||e.phase===`idle`)return e.camerasTotal>0?Math.min(99,Math.round(e.camerasDone/e.camerasTotal*100)):0;if(e.camerasTotal>0){let t=e.camerasDone/e.camerasTotal*85;return e.phase===`wiping-db`?Math.min(95,Math.round(t+8)):e.phase===`cascading`?Math.min(99,Math.round(t+12)):Math.min(85,Math.round(t))}return e.phase===`scanning`?2:5}e();var rt=2e3;function it({location:e,siblings:t}){return $e(e,t)?s(at,{location:e}):null}function at({location:e}){let{t:n}=j(),i=T(),o=w(),c=Ze(e.type),[l,u]=r(null),[d,f]=r(null),[p,m]=r(!1);if(t(()=>{if(c===null)return;let e=!1,t=async()=>{try{let t=await o.mutateAsync({addonId:c,action:Je,input:{}});if(e)return;u(tt(t))}catch{}};t();let n=setInterval(()=>void t(),rt);return()=>{e=!0,clearInterval(n)}},[c,e.id]),c===null)return null;let h=l!==null&&l.locationId===e.id,_=h&&l.running,y=h&&l.phase!==`idle`,b=async()=>{if(await i({title:n(`storage.locationDiscardControl.discardLeftoversOn`,`Discard leftovers on "{{displayName}}"?`,{displayName:e.displayName}),message:n(`storage.locationDiscardControl.permanentlyDeletesLeftoverFilesAnd`,`Permanently deletes leftover files and records on this location. Other locations are not affected. This cannot be undone and may take hours.`),confirmLabel:n(`storage.locationDiscardControl.discardLeftovers`,`Discard leftovers`),variant:`danger`})){f(null),m(!0);try{await o.mutateAsync({addonId:c,action:qe,input:{locationId:e.id}}),u(tt(await o.mutateAsync({addonId:c,action:Je,input:{}})))}catch(e){f(e instanceof Error?e.message:String(e))}finally{m(!1)}}},x=async()=>{try{await o.mutateAsync({addonId:c,action:Ye,input:{}})}catch(e){f(e instanceof Error?e.message:String(e))}};return a(`div`,{className:`flex flex-col gap-1 min-w-[9rem] max-w-[16rem]`,children:[_?a(`button`,{type:`button`,onClick:()=>void x(),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-danger border border-danger/40 hover:bg-danger/10`,children:[s(g,{className:`h-3 w-3`}),n(`common.cancel`,`Cancel`)]}):a(`button`,{type:`button`,onClick:()=>void b(),disabled:p,title:n(`storage.locationDiscardControl.permanentlyDeleteLeftoverFilesOn`,`Permanently delete leftover files on this location. Other locations are not affected.`),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-danger border border-danger/40 hover:bg-danger/10 disabled:opacity-50`,children:[p?s(v,{className:`h-3 w-3 animate-spin`}):s(S,{className:`h-3 w-3`}),n(`storage.locationDiscardControl.discardLeftovers`,`Discard leftovers`)]}),y&&l!==null&&a(`div`,{className:`space-y-0.5`,children:[s(`div`,{className:`h-1 rounded bg-border overflow-hidden`,children:s(`div`,{className:`h-full bg-primary transition-[width] duration-300`,style:{width:`${nt(l)}%`}})}),a(`p`,{className:`text-[10px] text-foreground-subtle leading-tight`,children:[l.phase,l.camerasTotal>0?` · ${n(`storage.locationDiscardControl.camsProgress`,{done:l.camerasDone,total:l.camerasTotal})}`:``,l.dbRowsDeleted>0?` · ${n(`storage.locationDiscardControl.rowsDeleted`,{count:l.dbRowsDeleted})}`:``,l.detail?` · ${l.detail}`:``]})]}),(d||h&&l?.error)&&s(`p`,{className:`text-[10px] text-danger leading-tight`,children:d??l?.error})]})}e();var ot={active:u,readonly:x,drain:C,disabled:c},st={active:`border-success/30 text-success hover:bg-success/10`,readonly:`border-border text-foreground-subtle hover:text-foreground hover:bg-primary/10`,drain:`border-warning/40 text-warning hover:bg-warning/10`,disabled:`border-danger/40 text-danger hover:bg-danger/10`};function ct({mode:e,open:t,onToggle:n}){let{t:r}=j(),i=H(e),o=ot[e];return a(`button`,{type:`button`,"aria-expanded":t,"aria-label":r(`storage.locationModeSelector.locationState`,`Location state`),onClick:n,title:i.consequence,className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium border ${st[e]}`,children:[s(o,{className:`h-3 w-3`}),i.label,s(p,{className:`h-3 w-3 ${t?`rotate-180`:``}`})]})}function lt({mode:e,blockedReasons:n,onSelect:r,onDismiss:i}){let{t:o}=j();return t(()=>{let e=e=>{e.key===`Escape`&&i()};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[i]),a(`div`,{className:`w-full basis-full rounded-lg border border-border bg-background p-1`,role:`group`,"aria-label":o(`storage.locationModeSelector.locationStateChoices`,`Location state choices`),children:[a(`div`,{className:`flex items-center justify-between px-2 py-1`,children:[s(`span`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:o(`storage.locationModeSelector.locationState`,`Location state`)}),s(`button`,{type:`button`,"aria-label":o(`storage.locationModeSelector.closeLocationStateChoices`,`Close location state choices`),onClick:i,className:`text-foreground-subtle hover:text-foreground`,children:s(g,{className:`h-3 w-3`})})]}),V.map(t=>{let c=n[t.mode],l=c!==``,u=ot[t.mode],d=t.mode===e;return a(`button`,{type:`button`,role:`radio`,"aria-checked":d,"aria-label":t.label,disabled:l,onClick:()=>{l||(i(),d||r(t.mode))},className:`flex w-full flex-col items-start gap-0.5 rounded px-2 py-1.5 text-left ${l?`cursor-not-allowed opacity-60`:d?`bg-primary/10`:`hover:bg-primary/5`}`,children:[a(`span`,{className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground`,children:[s(u,{className:`h-3 w-3`}),t.label,d&&s(`span`,{className:`text-[9px] uppercase text-primary`,children:o(`common.current`)})]}),s(`span`,{className:`text-[10px] leading-snug text-foreground-subtle`,children:t.consequence}),l&&s(`span`,{className:`text-[10px] leading-snug text-warning`,children:c})]},t.mode)})]})}e();function ut(e){let t=e.basePath;if(typeof t==`string`&&t.length>0)return t;let n=Object.keys(e);return n.length===0?``:n.join(`, `)}function dt({location:e,onEdit:t,onDelete:n,onSetMode:i,blockedReasons:o,canDelete:c,siblings:l=[],drain:u,ownedBytes:p}){let{t:m}=j(),[h,g]=r(!1),_=ut(e.config),v=z(e);return a(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-2 px-3 py-2 border-t border-border first:border-t-0 hover:bg-primary/5`,children:[a(`div`,{className:`flex items-start gap-2 min-w-0 flex-1 basis-72`,children:[s(`div`,{className:`shrink-0 sm:w-32`,"data-testid":`location-badge-slot`,children:s(`span`,{className:`inline-block text-[10px] uppercase tracking-wide text-foreground-subtle bg-background border border-border rounded px-1.5 py-0.5 font-mono`,children:e.providerId})}),a(`div`,{className:`min-w-0 flex-1`,children:[s(`div`,{className:`text-xs font-medium text-foreground truncate`,children:e.displayName}),_&&s(`div`,{className:`text-[10px] text-foreground-subtle truncate font-mono`,children:_}),s(We,{location:e,ownedBytes:p??null}),u!==void 0&&s(Ie,{drain:u})]})]}),a(`div`,{className:`flex flex-wrap items-center gap-1 shrink-0`,children:[s(it,{location:e,siblings:l}),s(ct,{mode:v,open:h,onToggle:()=>{g(e=>!e)}}),a(`button`,{onClick:()=>t(e),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-foreground-subtle border border-border hover:text-foreground hover:bg-primary/10`,children:[s(d,{className:`h-3 w-3`}),m(`common.edit`,`Edit`)]}),c&&s(`button`,{onClick:()=>n(e),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-danger hover:bg-danger/10`,title:m(`storage.locationCard.deleteLocation`,`Delete location`),children:s(f,{className:`h-3 w-3`})})]}),h&&s(lt,{mode:v,blockedReasons:o,onSelect:t=>i(e,t),onDismiss:()=>{g(!1)}})]})}e();function ft({type:e,displayName:t,description:r,cardinality:i,locations:o,onAdd:c,onEdit:u,onDelete:d,onSetMode:f,ownedBytesById:p,drainById:h}){let{t:g}=j(),v=n(()=>{let e=[...o];return e.sort((e,t)=>{let n=B(z(e));return n===B(z(t))?e.displayName.localeCompare(t.displayName):n?-1:1}),e},[o]);return a(O,{headingId:`storage-location-${e}`,title:t,icon:m,testId:`storage-location-group-${e}`,actions:i===`multi`?a(E,{size:`sm`,type:`button`,onClick:()=>c(e),children:[s(_,{className:`h-3 w-3`}),g(`common.add`,`Add`)]}):void 0,children:[a(`div`,{className:`${l} space-y-2`,children:[a(`div`,{className:`space-y-0.5`,children:[s(`span`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle bg-background border border-border rounded px-1.5 py-0.5 font-mono`,children:e}),r!==void 0&&r!==``&&s(`p`,{className:`text-[11px] leading-relaxed text-foreground-subtle`,children:r}),i===`single`&&s(`p`,{className:`text-[10px] text-foreground-subtle italic`,children:g(`storage.locationGroup.singleOneLocationPerType`,`Single — one location per type. Edit the existing entry; it can't be split.`)})]}),v.length===0&&s(`div`,{className:`py-2 text-center text-[11px] text-foreground-subtle italic`,children:i===`multi`?g(`storage.locationGroup.noLocationRegisteredClickAdd`,`No location registered. Click "Add" to register one.`):g(`storage.locationGroup.noLocationRegisteredYetShould`,`No location registered yet — should be auto-seeded at next boot.`)})]}),v.length>0&&s(`div`,{className:`border-t border-border`,children:v.map(e=>s(dt,{location:e,cardinality:i,canDelete:pe(e,v,i),onEdit:u,onDelete:d,onSetMode:f,blockedReasons:fe(e,v),ownedBytes:p?.get(e.id)??null,drain:Me(Ne(e),h?.get(e.id)),siblings:v},e.id))})]})}var pt=[`recordings`,`recordingsLow`];function mt(e){return e.locationIds!==void 0&&e.locationIds.length>0?e.locationIds:e.locationId===null?[]:[e.locationId]}function ht(e,t){if(t===void 0||!pt.includes(e.type))return null;let n=t.find(t=>mt(t).includes(e.id));return n===void 0||!Number.isFinite(n.usedBytes)||n.usedBytes<0?null:n.usedBytes}function gt(e,t){let n=new Map;for(let r of e){let e=ht(r,t);e!==null&&n.set(r.id,e)}return n}export{Ae as a,H as c,Be as i,U as l,ft as n,De as o,q as r,he as s,gt as t,R as u};
1
+ import{$ as e,B as t,G as n,J as r,L as i,S as a,o,x as s}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEHpkaJP.js";import{D as c,En as l,Fn as u,It as d,Sr as f,dt as p,kn as m,or as h,ot as g,xi as _,yi as v,zr as y}from"./player-overlays-D98Lvll4.js";import{ki as b}from"./client-Cj9cIFJV.js";import{t as x}from"./archive-jvBvOOAa.js";import{t as S}from"./eraser-RaYHha2L.js";import{t as C}from"./hard-drive-download-DobqoKaY.js";import{$n as ee,$r as w,Ar as T,Ll as E,Qn as te,Tl as ne,er as D,hr as O,ht as re,ir as ie,mn as k,nr as A,rr as ae}from"./src-MJ2k3G6o.js";import{t as j}from"./i18n-BuS8cl72.js";import{t as M}from"./useTranslation-D3Is_4B6.js";import{Z as oe,z as se}from"./index-CM1JjjBW.js";import{t as N}from"./format-size-DIxKXxtj.js";e();function P(e){let t=e.trim().toLowerCase();return t.length===0?``:t.replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)}function F(e,t){let n=P(t);return`${e}:${n.length>0?n:`default`}`}var I=new Set([`proc`,`sys`,`dev`,`run`,`boot`,`lost+found`,`snap`,`bin`,`sbin`,`lib`,`lib32`,`lib64`,`libx32`,`usr`,`etc`,`var`,`opt`,`tmp`,`srv`,`root`,`System`,`Library`,`Applications`,`cores`,`private`]),L=[`recordings`,`data`,`mnt`,`media`,`Volumes`];function R(e){let t=L.findIndex(t=>t===`recordings`?e.startsWith(t):e===t);return t===-1?L.length:t}function ce(e){return e.filter(e=>!e.name.startsWith(`.`)&&!I.has(e.name)).toSorted((e,t)=>{let n=R(e.name)-R(t.name);return n===0?e.name.localeCompare(t.name):n}).map(e=>e.path)}function le({nodeId:e,value:n,onChange:o}){let{t:c}=M(),l=g().trpcClient,[u,d]=r([]),[f,p]=r(n),[m,h]=r(null),[_,v]=r(null),[y,b]=r(``),x=i(async(t,n)=>{v(null);try{let r=await l.filesystemBrowse.browse.query({nodeId:e,path:t});h(r),p(r.path),n&&o(r.path)}catch(e){v(e instanceof Error?e.message:`browse failed`)}},[l,e,o]);t(()=>{p(n),(async()=>{let t=await l.filesystemBrowse.browse.query({nodeId:e,path:`/`}).then(e=>e).catch(()=>null);if(t){d(ce(t.entries)),await x(n.startsWith(`/`)?n:`/`,!1);return}try{let t=await l.filesystemBrowse.listAllowedRoots.query({nodeId:e});d(t),await x(n&&t.some(e=>n.startsWith(e))?n:t[0]??``,!1)}catch(e){d([]),h(null),v(e instanceof Error&&/not available on node/i.test(e.message)?`This node can't be browsed remotely. Enter the path manually.`:e instanceof Error?e.message:`browse unavailable`)}})()},[e]);let S=async()=>{if(!(!y.trim()||!m)){v(null);try{let t=`${m.path.replace(/\/+$/,``)}/${y.trim()}`;await l.filesystemBrowse.createDir.mutate({nodeId:e,path:t}),b(``),await x(m.path,!0)}catch(e){v(e instanceof Error?e.message:`create failed`)}}},C=e=>`${(e/1e9).toFixed(1)} GB`;return a(`div`,{className:`space-y-2 rounded border border-border p-2`,children:[s(`div`,{className:`flex flex-wrap gap-1`,children:u.map(e=>s(`button`,{onClick:()=>void x(e,!0),className:`rounded border border-border px-2 py-0.5 text-[10px] font-mono hover:border-primary/40`,children:e},e))}),s(`input`,{value:f,onChange:e=>{p(e.target.value),o(e.target.value)},placeholder:`/absolute/path`,className:`w-full rounded border border-border bg-background px-2 py-1 text-[11px] font-mono`}),m&&s(`div`,{className:`text-[10px] text-foreground-subtle`,children:c(`storage.pathBrowser.free`,{free:C(m.freeBytes),total:C(m.totalBytes)})}),s(`div`,{className:`max-h-40 space-y-0.5 overflow-y-auto`,children:m?.entries.map(e=>a(`button`,{onClick:()=>void x(e.path,!0),className:`block w-full truncate rounded px-2 py-1 text-left text-xs hover:bg-primary/5`,children:[`📁 `,e.name]},e.path))}),a(`div`,{className:`flex gap-1`,children:[s(`input`,{value:y,onChange:e=>b(e.target.value),placeholder:c(`storage.pathBrowser.newFolder`,`new folder`),className:`flex-1 rounded border border-border bg-background px-2 py-1 text-xs`}),s(`button`,{onClick:()=>void S(),className:`rounded border border-border px-2 py-1 text-xs hover:border-primary/40`,children:c(`storage.pathBrowser.create`,`Create`)})]}),_&&s(`div`,{className:`text-[10px] text-red-400`,children:_})]})}e();function z({initialType:e,onClose:t,onCreated:i}){let{t:c}=M(),l=o(),u=g().trpcClient,[d,f]=r(`picker`),[p,m]=r(e),[_,y]=r(null),[b,x]=r({}),[S,C]=r(``),[w,T]=r(null),[O,k]=r(!1),[A,j]=r(`hub`),[N,P]=r(null),[I,L]=r(!1),R=e=>x(t=>({...t,basePath:e})),ce=typeof b.basePath==`string`?b.basePath:``,z=ne(),B=n(()=>{let e=z.data;return Array.isArray(e)?e:[]},[z.data]),V=z.isLoading,H=E({onSuccess:()=>{l.invalidateQueries({queryKey:[[`storage`,`listLocations`]]}),i()}}),U=n(()=>w!==null&&w.length>0?w:F(p,S),[p,S,w]),ue=async()=>{if(_){L(!0),P(null);try{P(await(e=>u.storage.testConfig.query(e))({providerId:_.providerId,config:b}))}catch(e){P({ok:!1,error:e instanceof Error?e.message:String(e)})}finally{L(!1)}}};return s(te,{open:!0,onOpenChange:e=>!e&&t(),children:a(D,{width:`md`,placement:`sheet-on-mobile`,scroll:`body`,children:[a(ae,{children:[s(ie,{children:{picker:`Add Location — Pick provider`,config:`Add Location — ${_?.displayName??``}`,naming:`Add Location — Name`}[d]}),a(`p`,{className:`text-xs text-foreground-subtle`,children:[c(`storage.addLocationWizard.type`,`Type:`),` `,s(`span`,{className:`font-mono`,children:p})]})]}),a(ee,{children:[d===`picker`&&a(`div`,{className:`space-y-2`,children:[V&&s(`div`,{className:`text-xs text-foreground-subtle animate-pulse`,children:c(`storage.addLocationWizard.loadingProviders`,`Loading providers…`)}),!V&&B.length===0&&s(`div`,{className:`rounded border border-border bg-background px-3 py-4 text-center text-xs text-foreground-subtle`,children:s(oe,{i18nKey:`storage.addLocationWizard.noProvider`,values:{type:p},components:{code:s(`code`,{className:`font-mono`})}})}),B.map(e=>a(`button`,{onClick:()=>{y(e),f(`config`)},className:`flex w-full items-center gap-3 rounded-lg border border-border bg-background p-3 text-left hover:border-primary/40 hover:bg-primary/5 transition-colors`,children:[a(`div`,{className:`flex-1 min-w-0`,children:[s(`p`,{className:`text-xs font-semibold text-foreground`,children:e.displayName}),s(`p`,{className:`text-[10px] text-foreground-subtle font-mono mt-0.5 truncate`,children:e.providerId})]}),s(v,{className:`h-4 w-4 text-foreground-subtle flex-shrink-0`})]},e.providerId))]}),d===`config`&&_&&a(`div`,{className:`space-y-3`,children:[s(se,{schema:_.configSchema,values:b,onChange:x}),_.nodeLocal&&a(`div`,{className:`space-y-2`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.addLocationWizard.node`,`Node`)}),s(re,{selectedNodeId:A,onSelect:j,alwaysShow:!0}),s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.addLocationWizard.path`,`Path`)}),s(le,{nodeId:A,value:ce,onChange:R})]}),N&&s(`div`,{className:`rounded border px-3 py-2 text-[11px] ${N.ok?`border-success/30 bg-success/5 text-success`:`border-danger/30 bg-danger/5 text-danger`}`,children:N.ok?c(`storage.addLocationWizard.connectionOk`,`Connection OK.`):c(`storage.addLocationWizard.testFailed`,`Test failed: {{value1}}`,{value1:N.error??`unknown error`})}),a(`div`,{className:`flex items-center justify-between pt-1`,children:[s(`button`,{onClick:()=>f(`picker`),className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:c(`common.back`,`Back`)}),a(`div`,{className:`flex items-center gap-2`,children:[s(`button`,{onClick:()=>{ue()},disabled:I,className:`rounded border border-border px-3 py-1.5 text-xs text-foreground hover:bg-primary/10 disabled:opacity-50`,children:I?c(`storage.addLocationWizard.testing`,`Testing…`):c(`storage.addLocationWizard.testConnection`,`Test connection`)}),s(`button`,{onClick:()=>f(`naming`),className:`rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90`,children:c(`common.next`,`Next`)})]})]})]}),d===`naming`&&_&&a(`div`,{className:`space-y-3`,children:[a(`div`,{className:`space-y-1`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.addLocationWizard.displayName`,`Display name`)}),s(`input`,{type:`text`,value:S,onChange:e=>C(e.target.value),placeholder:c(`storage.addLocationWizard.on`,`{{type}} on {{displayName}}`,{type:p,displayName:_.displayName}),className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`})]}),a(`div`,{className:`space-y-1`,children:[a(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:[c(`storage.addLocationWizard.idLabel`),` `,s(`span`,{className:`lowercase tracking-normal text-foreground-subtle`,children:c(`storage.addLocationWizard.autoDerivedOverrideIfNeeded`,`— auto-derived; override if needed`)})]}),s(`input`,{type:`text`,value:U,onChange:e=>T(e.target.value),placeholder:F(p,S),className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground font-mono focus:outline-none focus:ring-1 focus:ring-primary`}),a(`p`,{className:`text-[10px] text-foreground-subtle`,children:[c(`storage.addLocationWizard.format`,`Format:`),` `,s(`code`,{className:`font-mono`,children:c(`storage.addLocationWizard.typeSlug`,`<type>:<slug>`)}),`. Lowercase letters, digits, and hyphens only.`]})]}),a(`label`,{className:`flex items-start gap-2 rounded border border-border bg-background px-3 py-2 cursor-pointer hover:bg-primary/5`,children:[s(`input`,{type:`checkbox`,checked:O,onChange:e=>k(e.target.checked),className:`accent-primary mt-0.5`}),a(`div`,{className:`space-y-0.5`,children:[s(`div`,{className:`text-xs font-medium text-foreground`,children:c(`storage.addLocationWizard.enableImmediately`,`Enable immediately`)}),s(`div`,{className:`text-[10px] text-foreground-subtle`,children:c(`storage.addLocationWizard.aDisabledLocationReceivesNo`,`A disabled location receives no writes until enabled — reads and age-based retention still work, nothing new lands here. Leave this off to register the disk now and start using it later.`)})]})]}),H.isError&&s(`div`,{className:`rounded border border-danger/30 bg-danger/5 text-danger px-3 py-2 text-[11px]`,children:H.error instanceof Error?H.error.message:String(H.error)}),a(`div`,{className:`flex items-center justify-between pt-1`,children:[s(`button`,{onClick:()=>f(`config`),className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:c(`common.back`,`Back`)}),a(`div`,{className:`flex items-center gap-2`,children:[s(`button`,{onClick:()=>{m(e),y(null),x({}),C(``),T(null),k(!1),P(null),f(`picker`)},className:`rounded px-3 py-1.5 text-xs text-foreground-subtle border border-border hover:text-foreground`,children:c(`common.reset`,`Reset`)}),a(`button`,{onClick:()=>{_&&H.mutate({id:U,type:p,displayName:S.trim(),providerId:_.providerId,config:b,enabled:O,nodeId:_.nodeLocal?A:void 0})},disabled:H.isPending||S.trim().length===0,className:`inline-flex items-center gap-1.5 rounded bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50`,children:[H.isPending?s(h,{className:`h-3.5 w-3.5 animate-spin`}):null,H.isPending?c(`storage.addLocationWizard.saving`,`Saving…`):c(`common.save`,`Save`)]})]})]})]})]})]})})}function B(e){return b(e)}function V(e){return e===`active`}var H=[{mode:`active`,get label(){return j.t(`helpers.locationMode.activeLabel`)},get consequence(){return j.t(`helpers.locationMode.activeConsequence`)},requiresConfirmation:!1},{mode:`readonly`,get label(){return j.t(`helpers.locationMode.readonlyLabel`)},get consequence(){return j.t(`helpers.locationMode.readonlyConsequence`)},requiresConfirmation:!1},{mode:`drain`,get label(){return j.t(`helpers.locationMode.drainLabel`)},get consequence(){return j.t(`helpers.locationMode.drainConsequence`)},requiresConfirmation:!1},{mode:`disabled`,get label(){return j.t(`helpers.locationMode.disabledLabel`)},get consequence(){return j.t(`helpers.locationMode.disabledConsequence`)},requiresConfirmation:!0}];function U(e){return H.find(t=>t.mode===e)??H[0]}function ue(e){return U(e).requiresConfirmation}var de=`Blocked: this is the last location of its type still accepting writes — new data would have nowhere to go.`;function W(e,t,n){return V(n)||!V(B(e))||t.some(t=>t.id!==e.id&&V(B(t)))?{blocked:!1,reason:``}:{blocked:!0,reason:de}}function fe(e,t){return{active:W(e,t,`active`).reason,readonly:W(e,t,`readonly`).reason,drain:W(e,t,`drain`).reason,disabled:W(e,t,`disabled`).reason}}function pe(e,t,n){return!(n===`single`||t.length<=1||V(B(e))&&t.filter(e=>V(B(e))).length<=1)}function me(e){return e===`active`?{enabled:!0,readOnly:!1}:e===`readonly`?{enabled:!1,readOnly:!1}:{enabled:!1,readOnly:!0}}function he(e,t){let n={...t.config??e.config};t.mode!==void 0&&(me(t.mode).readOnly?n.readOnly=!0:delete n.readOnly);let r={id:e.id,type:e.type,displayName:t.displayName??e.displayName,providerId:e.providerId,config:n,isSystem:e.isSystem},i=t.nodeId??e.nodeId,a=i===void 0?r:{...r,nodeId:i};return t.mode===void 0?e.enabled===void 0?a:{...a,enabled:e.enabled}:{...a,mode:t.mode,enabled:me(t.mode).enabled}}var ge=1024**3;function G(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function _e(e){let t=G(e.minFreeGb);if(t!==null)return{unit:`gb`,value:t};let n=G(e.minFreePercent);return n===null?{unit:`percent`,value:null}:{unit:`percent`,value:n}}function ve(e,t){return G(e[t===`gb`?`minFreeGb`:`minFreePercent`])}function ye(e,t){let n={...e};return delete n.minFreePercent,delete n.minFreeGb,t.value===null?n:t.unit===`gb`?{...n,minFreeGb:t.value}:{...n,minFreePercent:t.value}}function be(e,t){let n=e.trim();if(n===``)return null;let r=Number(n);return Number.isFinite(r)?t===`percent`?Math.min(100,Math.max(0,r)):Math.max(0,r):null}function xe(e,t,n=10){if(e.unit===`gb`&&e.value!==null)return e.value*ge;let r=e.value??n;return t===null||t<=0?null:t*Math.min(100,Math.max(0,r))/100}function Se(e){return e===`gb`?j.t(`helpers.locationProtection.unitGb`):j.t(`helpers.locationProtection.unitPercent`)}function Ce(e,t=10){let n=e.value===null?j.t(`helpers.locationProtection.targetDefault`,{percent:String(t)}):e.unit===`gb`?j.t(`helpers.locationProtection.targetGb`,{value:String(e.value)}):j.t(`helpers.locationProtection.targetPercent`,{value:String(e.value)});return j.t(`helpers.locationProtection.helpText`,{target:n,percent:String(t)})}function we(e){return G(e.maxUsedGb)}function Te(e,t){let n=G(e.maxUsedGb);return n===null||n<0?null:{bytes:n*ge,reason:t===`drain`?`drain`:`legacy`}}e();function Ee({config:e,defaultPercent:t=10,onChange:n}){let{t:i}=M(),[o,c]=r(()=>_e(e).unit),l=ve(e,o),u={unit:o,value:l},d=we(e),f=t=>{c(t),n(ye(e,{unit:t,value:null}))},p=t=>{n(ye(e,{unit:o,value:be(t,o)}))};return a(`div`,{className:`space-y-1`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:i(`storage.protectionPolicyField.protectedFreeSpace`,`Protected free space`)}),a(`div`,{className:`flex items-center gap-2`,children:[a(`select`,{"aria-label":i(`storage.protectionPolicyField.protectionUnit`,`Protection unit`),value:o,onChange:e=>{f(e.target.value===`gb`?`gb`:`percent`)},className:`rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`,children:[s(`option`,{value:`percent`,children:i(`storage.protectionPolicyField.ofTheVolume`,`% of the volume`)}),s(`option`,{value:`gb`,children:i(`storage.protectionPolicyField.gbOfFreeSpace`,`GB of free space`)})]}),s(`input`,{type:`number`,"aria-label":Se(o),min:0,max:o===`percent`?100:void 0,value:l===null?``:l,placeholder:o===`percent`?String(t):i(`common.defaultWord`),onChange:e=>{p(e.target.value)},className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`})]}),s(`p`,{className:`text-[10px] text-foreground-subtle`,children:Ce(u,t)}),d!==null&&s(`p`,{className:`text-[10px] text-foreground-subtle italic`,children:i(`storage.protectionPolicyField.legacyMax`,{gb:d})})]})}e();function De({location:e,onClose:t,onSaved:i}){let{t:c}=M(),l=o(),u=g().trpcClient,[d,f]=r({...e.config}),[p,m]=r(e.displayName),[_,v]=r(null),[y,b]=r(!1),x=ne(),S=n(()=>{let t=x.data;return Array.isArray(t)?t.find(t=>t.providerId===e.providerId)??null:null},[x.data,e.providerId]),C=E({onSuccess:()=>{l.invalidateQueries({queryKey:[[`storage`,`listLocations`]]}),i()}}),w=S?.shouldSaveDiskSpace===!0,T=S?.nodeLocal===!0,[k,j]=r(typeof e.nodeId==`string`?e.nodeId:`hub`),N=typeof d.basePath==`string`?d.basePath:``,P=e=>f(t=>({...t,basePath:e})),F=S?.minFreePercent??10,I=async()=>{b(!0),v(null);try{v(await(e=>u.storage.testConfig.query(e))({providerId:e.providerId,locationId:e.id,config:d}))}catch(e){v({ok:!1,error:e instanceof Error?e.message:String(e)})}finally{b(!1)}};return s(te,{open:!0,onOpenChange:e=>!e&&t(),children:a(D,{width:`md`,placement:`sheet-on-mobile`,scroll:`body`,children:[a(ae,{children:[s(ie,{children:c(`storage.editLocationModal.title`,{name:e.displayName})}),a(`p`,{className:`text-xs text-foreground-subtle`,children:[s(`span`,{className:`font-mono`,children:e.id}),` ·`,` `,S?.displayName??e.providerId]})]}),a(ee,{className:`space-y-3`,children:[a(`div`,{className:`space-y-1`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.editLocationModal.displayName`,`Display name`)}),s(`input`,{type:`text`,value:p,onChange:e=>m(e.target.value),className:`w-full rounded border border-border bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-primary`})]}),S&&s(se,{schema:S.configSchema,values:d,onChange:f}),T&&a(`div`,{className:`space-y-2`,children:[s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.editLocationModal.node`,`Node`)}),s(re,{selectedNodeId:k,onSelect:j,alwaysShow:!0}),s(`label`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:c(`storage.editLocationModal.path`,`Path`)}),s(le,{nodeId:k,value:N,onChange:P})]}),w&&s(Ee,{config:d,defaultPercent:F,onChange:f}),!S&&!x.isLoading&&s(`div`,{className:`rounded border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[11px] text-amber-700 dark:text-amber-300`,children:s(oe,{i18nKey:`storage.editLocationModal.providerGone`,values:{id:e.providerId},components:{code:s(`code`,{className:`font-mono`})}})}),_&&s(`div`,{className:`rounded border px-3 py-2 text-[11px] ${_.ok?`border-success/30 bg-success/5 text-success`:`border-danger/30 bg-danger/5 text-danger`}`,children:_.ok?c(`storage.editLocationModal.connectionOk`,`Connection OK.`):c(`storage.editLocationModal.testFailed`,`Test failed: {{value1}}`,{value1:_.error??`unknown error`})}),C.isError&&s(`div`,{className:`rounded border border-danger/30 bg-danger/5 text-danger px-3 py-2 text-[11px]`,children:C.error instanceof Error?C.error.message:String(C.error)})]}),a(A,{className:`justify-between`,children:[s(O,{variant:`outline`,size:`sm`,onClick:t,children:c(`common.cancel`,`Cancel`)}),a(`div`,{className:`flex items-center gap-2`,children:[s(O,{variant:`outline`,size:`sm`,onClick:()=>{I()},disabled:y||!S,children:y?c(`storage.editLocationModal.testing`,`Testing…`):c(`storage.editLocationModal.testConnection`,`Test connection`)}),a(O,{size:`sm`,onClick:()=>{C.mutate(he(e,{displayName:p.trim(),config:d,nodeId:T?k:e.nodeId}))},disabled:C.isPending||p.trim().length===0,children:[C.isPending?s(h,{className:`h-3.5 w-3.5 animate-spin`}):null,C.isPending?c(`storage.editLocationModal.saving`,`Saving…`):c(`common.save`,`Save`)]})]})]})]})})}function Oe(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function K(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function ke(e){if(!Oe(e))return null;let t=e.locationId;if(typeof t!=`string`||t.length===0)return null;let n=K(e.startedAtMs),r=K(e.startBytes),i=K(e.bytesRemaining);return n===null||r===null||i===null||typeof e.drained!=`boolean`?null:{locationId:t,startedAtMs:n,startBytes:r,bytesRemaining:i,drained:e.drained,estimatedEmptyAtMs:K(e.estimatedEmptyAtMs)}}function Ae(e){let t=new Map;if(!Array.isArray(e))return t;for(let n of e){let e=ke(n);e!==null&&t.set(e.locationId,e)}return t}function je(e){if(e.startBytes<=0||e.bytesRemaining>e.startBytes)return null;let t=e.startBytes-e.bytesRemaining;return Math.min(1,Math.max(0,t/e.startBytes))}function Me(e,t){return e?t===void 0?{kind:`unreported`}:t.drained||t.bytesRemaining<=0?{kind:`drained`}:{kind:`draining`,bytesRemaining:t.bytesRemaining,drainedFraction:je(t),estimatedEmptyAtMs:t.estimatedEmptyAtMs}:{kind:`idle`}}function Ne(e){return e.mode===`drain`?!0:e.config.readOnly===!0}function Pe(e){return`${(e/1024**3).toFixed(e>=100*1024**3?0:1)} GB`}function Fe(e){return new Date(e).toLocaleString(void 0,{dateStyle:`medium`,timeStyle:`short`})}function Ie({drain:e}){let{t}=M();if(e.kind===`idle`)return null;if(e.kind===`unreported`)return s(`span`,{"data-testid":`drain-unreported`,className:`text-[10px] text-foreground-subtle`,title:t(`storage.drainProgressLine.thisLocationIsDrainingThe`,`This location is draining. The hub has not reported how much is left yet — either the drain has just been set, or this hub predates the drain-progress report.`),children:t(`storage.drainProgressLine.drainingRemainingNotReportedYet`,`Draining · remaining not reported yet`)});if(e.kind===`drained`)return s(`span`,{"data-testid":`drain-done`,className:`text-[10px] text-success`,title:t(`storage.drainProgressLine.everythingThatWasHereHas`,`Everything that was here has been moved. The location is still in drain mode — it receives no new writes until you change that.`),children:t(`storage.drainProgressLine.drainedNothingLeftToMove`,`Drained · nothing left to move`)});let n=e.drainedFraction===null?null:Math.round(e.drainedFraction*100);return a(`span`,{"data-testid":`drain-progress`,className:`flex items-center gap-1.5 text-[10px] text-foreground-subtle tabular-nums`,children:[n!==null&&s(`span`,{"data-testid":`drain-bar`,className:`inline-block h-1 w-10 rounded-full bg-border overflow-hidden`,role:`progressbar`,"aria-label":t(`storage.drainProgressLine.drainProgress`,`Drain progress`),"aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,children:s(`span`,{className:`block h-full bg-warning`,style:{width:`${n}%`}})}),a(`span`,{children:[t(`storage.drainProgressLine.left`,{size:Pe(e.bytesRemaining)}),n!==null&&` · ${t(`storage.drainProgressLine.moved`,{percent:n})}`]}),e.estimatedEmptyAtMs===null?s(`span`,{"data-testid":`drain-eta-absent`,title:t(`storage.drainProgressLine.theDrainIsPacedBy`,`The drain is paced by how fast this class of data is still growing, and that has not been observed yet. There is no date to give.`),children:t(`storage.drainProgressLine.emptyTimeNotKnownYet`,`· empty time not known yet`)}):a(`span`,{"data-testid":`drain-eta`,children:[`·`,` `,t(`storage.drainProgressLine.empty`,{when:Fe(e.estimatedEmptyAtMs)})]})]})}var Le=[`ok`,`warn`,`critical`];function Re(e){return e>=.95?`critical`:e>=.85?`warn`:`ok`}function ze(e){return Math.min(1,Math.max(0,e))}function q(e){let{availableBytes:t,totalBytes:n}=e;if(n===null||n<=0||t===null)return null;let r=ze((n-t)/n);return{fraction:r,severity:Re(r),recordingsFraction:ze(e.usedBytes/n),freeBytes:t,totalBytes:n}}function Be(e){if(e.length===0)return null;let t=0,n=0,r=0,i=0,a=null;for(let o of e){let e=q(o);if(e===null){n+=1;continue}t+=1,r+=e.totalBytes,i+=e.freeBytes,(a===null||Le.indexOf(e.severity)>Le.indexOf(a))&&(a=e.severity)}return{knownVolumes:t,unknownVolumes:n,totalBytes:r,freeBytes:i,severity:a}}function J(e){return Math.min(1,Math.max(0,e))}function Y(e){return Math.round(J(e)*1e3)/10}function X(e){return`${String(Math.round(J(e)*100))}%`}function Ve(e,t,n={}){let{totalBytes:r,availableBytes:i}=e;if(r===null||r<=0||i===null){let e=n.ownedBytes===void 0||n.ownedBytes===null||!Number.isFinite(n.ownedBytes)||n.ownedBytes<0?null:N(n.ownedBytes);return{kind:`unknown`,owned:e,summary:e===null?j.t(`helpers.locationCapacityBar.unknownSummary`):j.t(`helpers.locationCapacityBar.unknownSummaryOwned`,{size:e})}}let a=Math.min(Math.max(i,0),r),o=r-a,s=t===null||t<=0?0:t,c=Math.min(s,a),l=s>a,u=a-c,d=n.ownedBytes,f=d==null||!Number.isFinite(d)||d<0?null:Math.min(d,o),p=o-(f??0),m=q({usedBytes:f??o,availableBytes:a,totalBytes:r}),h=m===null?J(o/r):m.fraction,g=m===null?Re(h):m.severity,_=f===null?null:m===null?J(f/r):m.recordingsFraction,v=n.cap??null,y=v===null?null:J((c+v.bytes)/r),b=v!==null&&f!==null&&f>v.bytes,x={total:N(r),freeTotal:N(a),freeTotalPercent:X(a/r),used:N(p),usedPercent:X(p/r),free:N(u),freePercent:X(u/r),reserve:s===0?null:j.t(`helpers.locationCapacityBar.reserveKept`,{size:N(s)}),owned:f===null||_===null?null:j.t(`helpers.locationCapacityBar.ownedOfRecordings`,{size:N(f),percent:X(_)}),cap:v===null?null:v.reason===`drain`?j.t(`helpers.locationCapacityBar.capDrain`,{size:N(v.bytes)}):j.t(`helpers.locationCapacityBar.capCap`,{size:N(v.bytes)})},S=[j.t(`helpers.locationCapacityBar.summaryFree`,{free:x.freeTotal,total:x.total,percent:x.freeTotalPercent}),x.owned===null?null:j.t(`helpers.locationCapacityBar.summaryOwned`,{owned:x.owned}),x.reserve===null?null:l?j.t(`helpers.locationCapacityBar.summaryReserveShort`,{reserve:x.reserve}):x.reserve,x.cap===null?null:b?j.t(`helpers.locationCapacityBar.summaryCapBelow`,{cap:x.cap}):x.cap].filter(e=>e!==null).join(` · `),C=[];return c>0&&C.push({segment:`reserve`,label:j.t(`helpers.locationCapacityBar.legendKeptFree`),value:N(s),alarming:l}),x.owned!==null&&C.push({segment:`owned`,label:j.t(`helpers.locationCapacityBar.legendCamstack`),value:x.owned,alarming:!1}),C.push({segment:`used`,label:f===null?j.t(`helpers.locationCapacityBar.legendUsed`):j.t(`helpers.locationCapacityBar.legendOtherData`),value:`${x.used} (${x.usedPercent})`,alarming:g===`critical`}),C.push({segment:`free`,label:j.t(`helpers.locationCapacityBar.legendFree`),value:`${x.free} (${x.freePercent})`,alarming:l}),v!==null&&C.push({segment:`cap`,label:v.reason===`drain`?j.t(`helpers.locationCapacityBar.legendDrainTarget`):j.t(`helpers.locationCapacityBar.legendCap`),value:j.t(`helpers.locationCapacityBar.legendCapValue`,{size:N(v.bytes)}),alarming:b}),{kind:`known`,severity:g,legend:C,segments:{reservePercent:Y(c/r),ownedPercent:f===null?null:Y(f/r),usedPercent:Y(p/r),freePercent:Y(u/r),capPercent:y===null?null:Y(y)},labels:x,reserveExceedsFree:l,capBelowOwned:b,summary:S}}var He={ok:`bg-primary`,warn:`bg-amber-500`,critical:`bg-danger`},Z={reserve:`bg-danger/40`,owned:`bg-foreground/50`,free:`bg-border`,cap:`bg-foreground`};function Ue(e,t){return e===`used`?He[t]:Z[e]}function We({location:e,ownedBytes:t}){let{t:n}=M(),r=e.capacity??null,i=xe(_e(e.config),r?.totalBytes??null),o=Ve({totalBytes:r?.totalBytes??null,availableBytes:r?.availableBytes??null},i,{ownedBytes:t??null,cap:Te(e.config,B(e))});return o.kind===`unknown`?s(`div`,{className:`text-[10px] text-foreground-subtle italic`,title:o.summary,children:o.owned===null?n(`storage.locationCapacityBar.capacityUnknown`,`Capacity unknown`):n(`storage.locationCapacityBar.capacityUnknownCamstackHolds`,`Capacity unknown · CamStack holds {{owned}}`,{owned:o.owned})}):a(`div`,{className:`mt-1 space-y-1`,title:o.summary,children:[a(`div`,{className:`relative flex h-2 w-full max-w-md overflow-hidden rounded-full bg-border`,children:[o.segments.reservePercent>0&&s(`div`,{className:Z.reserve,style:{width:`${String(o.segments.reservePercent)}%`}}),o.segments.ownedPercent!==null&&s(`div`,{className:Z.owned,style:{width:`${String(o.segments.ownedPercent)}%`}}),s(`div`,{className:He[o.severity],style:{width:`${String(o.segments.usedPercent)}%`}}),s(`div`,{className:Z.free,style:{width:`${String(o.segments.freePercent)}%`}}),o.segments.capPercent!==null&&s(`div`,{className:`absolute inset-y-0 w-px ${o.capBelowOwned?`bg-danger`:Z.cap}`,style:{left:`${String(o.segments.capPercent)}%`}})]}),s(`ul`,{className:`flex flex-wrap items-center gap-x-3 gap-y-0.5`,children:o.legend.map(e=>a(`li`,{className:`flex items-center gap-1`,children:[s(`span`,{"aria-hidden":`true`,className:`inline-block h-2 w-2 shrink-0 rounded-sm ${Ue(e.segment,o.severity)}`}),a(`span`,{className:`text-[10px] tabular-nums ${e.alarming?`text-danger`:`text-foreground-subtle`}`,children:[e.label,` `,e.value]})]},e.segment))})]})}var Ge={eventMedia:[`events`],recordingsLow:[`low`],recordings:[`high`,`mid`]},Ke={eventMedia:`pipeline-analytics`,recordingsLow:`recorder`,recordings:`recorder`},qe=`storage.discardLocation`,Je=`storage.discardLocationStatus`,Ye=`storage.discardLocationCancel`;function Xe(e){return Ge[e]??null}function Ze(e){return Ke[e]??null}function Qe(e){return!V(B(e))}function $e(e,t){return Xe(e.type)===null||!Qe(e)?!1:t.some(t=>t.id!==e.id&&V(B(t)))}var et=new Set([`idle`,`scanning`,`wiping-fs`,`wiping-db`,`cascading`,`complete`,`cancelled`,`error`]);function Q(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function $(e){return typeof e==`string`?e:null}function tt(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.running!=`boolean`)return null;let n=t.phase;if(typeof n!=`string`||!et.has(n))return null;let r=Q(t.camerasTotal),i=Q(t.camerasDone),a=Q(t.foldersRemoved),o=Q(t.dbRowsDeleted),s=Q(t.ownersCascaded);return r===null||i===null||a===null||o===null||s===null?null:{running:t.running,locationId:$(t.locationId),jobId:$(t.jobId),phase:n,camerasTotal:r,camerasDone:i,foldersRemoved:a,dbRowsDeleted:o,ownersCascaded:s,detail:$(t.detail)??``,startedAtMs:Q(t.startedAtMs),finishedAtMs:Q(t.finishedAtMs),error:$(t.error)}}function nt(e){if(e.phase===`complete`)return 100;if(e.phase===`cancelled`||e.phase===`error`||e.phase===`idle`)return e.camerasTotal>0?Math.min(99,Math.round(e.camerasDone/e.camerasTotal*100)):0;if(e.camerasTotal>0){let t=e.camerasDone/e.camerasTotal*85;return e.phase===`wiping-db`?Math.min(95,Math.round(t+8)):e.phase===`cascading`?Math.min(99,Math.round(t+12)):Math.min(85,Math.round(t))}return e.phase===`scanning`?2:5}e();var rt=2e3;function it({location:e,siblings:t}){return $e(e,t)?s(at,{location:e}):null}function at({location:e}){let{t:n}=M(),i=T(),o=w(),c=Ze(e.type),[l,u]=r(null),[d,f]=r(null),[m,g]=r(!1);if(t(()=>{if(c===null)return;let e=!1,t=async()=>{try{let t=await o.mutateAsync({addonId:c,action:Je,input:{}});if(e)return;u(tt(t))}catch{}};t();let n=setInterval(()=>void t(),rt);return()=>{e=!0,clearInterval(n)}},[c,e.id]),c===null)return null;let _=l!==null&&l.locationId===e.id,v=_&&l.running,y=_&&l.phase!==`idle`,b=async()=>{if(await i({title:n(`storage.locationDiscardControl.discardLeftoversOn`,`Discard leftovers on "{{displayName}}"?`,{displayName:e.displayName}),message:n(`storage.locationDiscardControl.permanentlyDeletesLeftoverFilesAnd`,`Permanently deletes leftover files and records on this location. Other locations are not affected. This cannot be undone and may take hours.`),confirmLabel:n(`storage.locationDiscardControl.discardLeftovers`,`Discard leftovers`),variant:`danger`})){f(null),g(!0);try{await o.mutateAsync({addonId:c,action:qe,input:{locationId:e.id}}),u(tt(await o.mutateAsync({addonId:c,action:Je,input:{}})))}catch(e){f(e instanceof Error?e.message:String(e))}finally{g(!1)}}},x=async()=>{try{await o.mutateAsync({addonId:c,action:Ye,input:{}})}catch(e){f(e instanceof Error?e.message:String(e))}};return a(`div`,{className:`flex flex-col gap-1 min-w-[9rem] max-w-[16rem]`,children:[v?a(`button`,{type:`button`,onClick:()=>void x(),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-danger border border-danger/40 hover:bg-danger/10`,children:[s(p,{className:`h-3 w-3`}),n(`common.cancel`,`Cancel`)]}):a(`button`,{type:`button`,onClick:()=>void b(),disabled:m,title:n(`storage.locationDiscardControl.permanentlyDeleteLeftoverFilesOn`,`Permanently delete leftover files on this location. Other locations are not affected.`),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-danger border border-danger/40 hover:bg-danger/10 disabled:opacity-50`,children:[m?s(h,{className:`h-3 w-3 animate-spin`}):s(S,{className:`h-3 w-3`}),n(`storage.locationDiscardControl.discardLeftovers`,`Discard leftovers`)]}),y&&l!==null&&a(`div`,{className:`space-y-0.5`,children:[s(`div`,{className:`h-1 rounded bg-border overflow-hidden`,children:s(`div`,{className:`h-full bg-primary transition-[width] duration-300`,style:{width:`${nt(l)}%`}})}),a(`p`,{className:`text-[10px] text-foreground-subtle leading-tight`,children:[l.phase,l.camerasTotal>0?` · ${n(`storage.locationDiscardControl.camsProgress`,{done:l.camerasDone,total:l.camerasTotal})}`:``,l.dbRowsDeleted>0?` · ${n(`storage.locationDiscardControl.rowsDeleted`,{count:l.dbRowsDeleted})}`:``,l.detail?` · ${l.detail}`:``]})]}),(d||_&&l?.error)&&s(`p`,{className:`text-[10px] text-danger leading-tight`,children:d??l?.error})]})}e();var ot={active:l,readonly:x,drain:C,disabled:y},st={active:`border-success/30 text-success hover:bg-success/10`,readonly:`border-border text-foreground-subtle hover:text-foreground hover:bg-primary/10`,drain:`border-warning/40 text-warning hover:bg-warning/10`,disabled:`border-danger/40 text-danger hover:bg-danger/10`};function ct({mode:e,open:t,onToggle:n}){let{t:r}=M(),i=U(e),o=ot[e];return a(`button`,{type:`button`,"aria-expanded":t,"aria-label":r(`storage.locationModeSelector.locationState`,`Location state`),onClick:n,title:i.consequence,className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium border ${st[e]}`,children:[s(o,{className:`h-3 w-3`}),i.label,s(_,{className:`h-3 w-3 ${t?`rotate-180`:``}`})]})}function lt({mode:e,blockedReasons:n,onSelect:r,onDismiss:i}){let{t:o}=M();return t(()=>{let e=e=>{e.key===`Escape`&&i()};return window.addEventListener(`keydown`,e),()=>{window.removeEventListener(`keydown`,e)}},[i]),a(`div`,{className:`w-full basis-full rounded-lg border border-border bg-background p-1`,role:`group`,"aria-label":o(`storage.locationModeSelector.locationStateChoices`,`Location state choices`),children:[a(`div`,{className:`flex items-center justify-between px-2 py-1`,children:[s(`span`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle`,children:o(`storage.locationModeSelector.locationState`,`Location state`)}),s(`button`,{type:`button`,"aria-label":o(`storage.locationModeSelector.closeLocationStateChoices`,`Close location state choices`),onClick:i,className:`text-foreground-subtle hover:text-foreground`,children:s(p,{className:`h-3 w-3`})})]}),H.map(t=>{let c=n[t.mode],l=c!==``,u=ot[t.mode],d=t.mode===e;return a(`button`,{type:`button`,role:`radio`,"aria-checked":d,"aria-label":t.label,disabled:l,onClick:()=>{l||(i(),d||r(t.mode))},className:`flex w-full flex-col items-start gap-0.5 rounded px-2 py-1.5 text-left ${l?`cursor-not-allowed opacity-60`:d?`bg-primary/10`:`hover:bg-primary/5`}`,children:[a(`span`,{className:`flex items-center gap-1.5 text-[11px] font-medium text-foreground`,children:[s(u,{className:`h-3 w-3`}),t.label,d&&s(`span`,{className:`text-[9px] uppercase text-primary`,children:o(`common.current`)})]}),s(`span`,{className:`text-[10px] leading-snug text-foreground-subtle`,children:t.consequence}),l&&s(`span`,{className:`text-[10px] leading-snug text-warning`,children:c})]},t.mode)})]})}e();function ut(e){let t=e.basePath;if(typeof t==`string`&&t.length>0)return t;let n=Object.keys(e);return n.length===0?``:n.join(`, `)}function dt({location:e,onEdit:t,onDelete:n,onSetMode:i,blockedReasons:o,canDelete:c,siblings:l=[],drain:f,ownedBytes:p}){let{t:m}=M(),[h,g]=r(!1),_=ut(e.config),v=B(e);return a(`div`,{className:`flex flex-wrap items-start gap-x-3 gap-y-2 px-3 py-2 border-t border-border first:border-t-0 hover:bg-primary/5`,children:[a(`div`,{className:`flex items-start gap-2 min-w-0 flex-1 basis-72`,children:[s(`div`,{className:`shrink-0 sm:w-32`,"data-testid":`location-badge-slot`,children:s(`span`,{className:`inline-block text-[10px] uppercase tracking-wide text-foreground-subtle bg-background border border-border rounded px-1.5 py-0.5 font-mono`,children:e.providerId})}),a(`div`,{className:`min-w-0 flex-1`,children:[s(`div`,{className:`text-xs font-medium text-foreground truncate`,children:e.displayName}),_&&s(`div`,{className:`text-[10px] text-foreground-subtle truncate font-mono`,children:_}),s(We,{location:e,ownedBytes:p??null}),f!==void 0&&s(Ie,{drain:f})]})]}),a(`div`,{className:`flex flex-wrap items-center gap-1 shrink-0`,children:[s(it,{location:e,siblings:l}),s(ct,{mode:v,open:h,onToggle:()=>{g(e=>!e)}}),a(`button`,{onClick:()=>t(e),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-foreground-subtle border border-border hover:text-foreground hover:bg-primary/10`,children:[s(u,{className:`h-3 w-3`}),m(`common.edit`,`Edit`)]}),c&&s(`button`,{onClick:()=>n(e),className:`inline-flex items-center gap-1 rounded px-2 py-1 text-[10px] font-medium text-danger hover:bg-danger/10`,title:m(`storage.locationCard.deleteLocation`,`Delete location`),children:s(d,{className:`h-3 w-3`})})]}),h&&s(lt,{mode:v,blockedReasons:o,onSelect:t=>i(e,t),onDismiss:()=>{g(!1)}})]})}e();function ft({type:e,displayName:t,description:r,cardinality:i,locations:o,onAdd:l,onEdit:u,onDelete:d,onSetMode:p,ownedBytesById:h,drainById:g}){let{t:_}=M(),v=n(()=>{let e=[...o];return e.sort((e,t)=>{let n=V(B(e));return n===V(B(t))?e.displayName.localeCompare(t.displayName):n?-1:1}),e},[o]);return a(k,{headingId:`storage-location-${e}`,title:t,icon:f,testId:`storage-location-group-${e}`,actions:i===`multi`?a(O,{size:`sm`,type:`button`,onClick:()=>l(e),children:[s(m,{className:`h-3 w-3`}),_(`common.add`,`Add`)]}):void 0,children:[a(`div`,{className:`${c} space-y-2`,children:[a(`div`,{className:`space-y-0.5`,children:[s(`span`,{className:`text-[10px] uppercase tracking-wide text-foreground-subtle bg-background border border-border rounded px-1.5 py-0.5 font-mono`,children:e}),r!==void 0&&r!==``&&s(`p`,{className:`text-[11px] leading-relaxed text-foreground-subtle`,children:r}),i===`single`&&s(`p`,{className:`text-[10px] text-foreground-subtle italic`,children:_(`storage.locationGroup.singleOneLocationPerType`,`Single — one location per type. Edit the existing entry; it can't be split.`)})]}),v.length===0&&s(`div`,{className:`py-2 text-center text-[11px] text-foreground-subtle italic`,children:i===`multi`?_(`storage.locationGroup.noLocationRegisteredClickAdd`,`No location registered. Click "Add" to register one.`):_(`storage.locationGroup.noLocationRegisteredYetShould`,`No location registered yet — should be auto-seeded at next boot.`)})]}),v.length>0&&s(`div`,{className:`border-t border-border`,children:v.map(e=>s(dt,{location:e,cardinality:i,canDelete:pe(e,v,i),onEdit:u,onDelete:d,onSetMode:p,blockedReasons:fe(e,v),ownedBytes:h?.get(e.id)??null,drain:Me(Ne(e),g?.get(e.id)),siblings:v},e.id))})]})}var pt=[`recordings`,`recordingsLow`];function mt(e){return e.locationIds!==void 0&&e.locationIds.length>0?e.locationIds:e.locationId===null?[]:[e.locationId]}function ht(e,t){if(t===void 0||!pt.includes(e.type))return null;let n=t.find(t=>mt(t).includes(e.id));return n===void 0||!Number.isFinite(n.usedBytes)||n.usedBytes<0?null:n.usedBytes}function gt(e,t){let n=new Map;for(let r of e){let e=ht(r,t);e!==null&&n.set(r.id,e)}return n}export{Ae as a,U as c,Be as i,ue as l,ft as n,De as o,q as r,he as s,gt as t,z as u};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`log-in`,[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]);export{t};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`memory-stick`,[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`memory-stick`,[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]);export{t};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`message-square-plus`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M12 8v6`,key:`1ib9pf`}],[`path`,{d:`M9 11h6`,key:`1fldmi`}]]);export{t};
@@ -12,8 +12,8 @@ const __mfImport = (src) =>
12
12
 
13
13
 
14
14
  (async () => {
15
- const __mfHostInit = await __mfImport("./hostInit-BGNr3Jpq.js");
15
+ const __mfHostInit = await __mfImport("./hostInit-Bk_2heUx.js");
16
16
  await __mfHostInit.__tla;
17
17
  const { initHost } = __mfHostInit;
18
18
  await initHost();
19
- })().then(() => __mfImport("./index-BVY_WMe1.js"));
19
+ })().then(() => __mfImport("./index-CM1JjjBW.js"));
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),n=e(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]);export{t as n,n as t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`hexagon`,[[`path`,{d:`M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z`,key:`yt0hxn`}]]),n=e(`mic-off`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M15 9.34V5a3 3 0 0 0-5.68-1.33`,key:`1gzdoj`}],[`path`,{d:`M16.95 16.95A7 7 0 0 1 5 12v-2`,key:`cqa7eg`}],[`path`,{d:`M18.89 13.23A7 7 0 0 0 19 12v-2`,key:`16hl24`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v3a3 3 0 0 0 5.12 2.12`,key:`r2i35w`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`monitor-off`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826`,key:`cv7jms`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042`,key:`z8ni2w`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`monitor-off`,[[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826`,key:`cv7jms`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`path`,{d:`M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042`,key:`z8ni2w`}]]);export{t};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`monitor-smartphone`,[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]);export{t};
@@ -0,0 +1 @@
1
+ import"./src-MJ2k3G6o.js";
@@ -0,0 +1 @@
1
+ import{$ as e,G as t,J as n,S as r,b as i,i as a,x as o}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEHpkaJP.js";import{It as s,dt as c,fn as l,kn as u,ot as d,ta as f}from"./player-overlays-D98Lvll4.js";import{At as p,B as m,Bt as h,Ct as g,Dt as _,Et as v,F as y,Gt as ee,Ht as te,I as ne,J as re,Kt as ie,L as ae,Lt as b,N as oe,Nt as x,Ot as se,P as S,Pt as ce,Rt as le,St as C,Ut as ue,V as de,Vt as fe,Wt as pe,Y as me,_t as he,ar as ge,di as _e,ft as ve,gt as ye,ht as be,ir as xe,jt as Se,k as Ce,mt as we,pt as Te,vt as w,wt as T,yt as E,z as Ee,zt as D}from"./client-Cj9cIFJV.js";import{Ao as De,Au as O,F as Oe,Fr as ke,Tu as k,el as Ae,nl as je}from"./src-MJ2k3G6o.js";import{t as A}from"./i18n-BuS8cl72.js";import{t as j}from"./useTranslation-D3Is_4B6.js";e();function M(e){return t=>Object.prototype.hasOwnProperty.call(e,t)}var Me=M({devices:!0}),Ne=M({classes:!0,classesExclude:!0,labelEquals:!0,identities:!0,identitiesExclude:!0,eventTypeTokens:!0,sensorKinds:!0}),Pe=M({minConfidence:!0,minImportance:!0,minLabelConfidence:!0}),Fe=M({minDwellSeconds:!0}),Ie=M({source:!0}),Le=M({crossing:!0}),Re=M({packagePhase:!0}),ze=M({sensorTransition:!0}),Be=M({plates:!0}),Ve=M({occupancy:!0}),He=M({audio:!0}),Ue=M({systemEvent:!0}),We=M({deviceState:!0}),Ge=M({scene:!0});function Ke(e,t){let n=e[t];return Array.isArray(n)?n:[]}function qe(e,t){let n=e[t];return typeof n==`number`?n:void 0}function N(e,n){let r=d().trpcClient,i=a({queries:e.map(e=>({queryKey:[[`nc-pickers`,`zones`],{deviceId:e}],staleTime:3e4,queryFn:async()=>({deviceId:e,zones:(await r.zones.listZones.query({deviceId:e})).map(e=>({id:e.id,name:e.name}))})}))});return t(()=>{let e=[],t=new Set;for(let r of i){if(!r.data)continue;let i=n.find(e=>e.id===r.data.deviceId)?.name;for(let n of r.data.zones)t.has(n.id)||(t.add(n.id),e.push({value:n.id,label:n.name,...i===void 0?{}:{hint:i}}))}return{options:e,loading:i.some(e=>e.isLoading),failed:i.some(e=>e.isError)}},[i,n])}function Je(e){let n=d().trpcClient,r=a({queries:e.map(e=>({queryKey:[[`nc-pickers`,`event-kinds`],{deviceId:e}],staleTime:6e4,queryFn:async()=>(await n.pipelineAnalytics.listEventKinds.query({deviceId:e})).map(e=>({kind:e.kind,label:e.label}))}))});return t(()=>{let e=new Map;for(let t of r)for(let n of t.data??[])e.has(n.kind)||e.set(n.kind,n.label);let t=[...e.entries()].map(([e,t])=>({value:e,label:t}));return t.sort((e,t)=>e.label.localeCompare(t.label)),{options:t,loading:r.some(e=>e.isLoading)}},[r])}function Ye(){let e=De();return t(()=>({options:(e.data??[]).map(e=>({value:e.id,label:e.name})),loading:e.isLoading,failed:e.isError===!0}),[e.data,e.isLoading,e.isError])}function Xe(){let e=Ae({limit:200}),n=je();return t(()=>{let t=new Set;for(let e of n.data??[])e.name.trim().length>0&&t.add(e.name);let r=new Set;for(let t of e.data??[])t.text.trim().length>0&&r.add(t.text);return[...[...t].sort(),...[...r].sort()]},[e.data,n.data])}function P({options:e,value:i,onChange:a,loading:s,emptyHint:c,placeholder:l,noFreeText:u=!1}){let{t:d}=j(),[f,p]=n(``),m=t(()=>new Set(e.map(e=>e.value)),[e]),h=t(()=>new Set(i),[i]),g=i.filter(e=>!m.has(e)),_=e=>{a(h.has(e)?i.filter(t=>t!==e):[...i,e])},v=()=>{let e=f.trim();e.length===0||i.includes(e)||(a([...i,e]),p(``))};return r(`div`,{className:`mt-1 space-y-1.5`,children:[g.length>0&&o(`div`,{className:`flex flex-wrap gap-1`,children:g.map(e=>r(`button`,{type:`button`,onClick:()=>a(i.filter(t=>t!==e)),className:`inline-flex items-center gap-1 rounded border border-border px-1.5 py-0.5 text-[10px] text-foreground hover:bg-surface-hover`,title:d(`system.notificationRulePickers.customValueClickToRemove`,`Custom value — click to remove`),children:[e,` ×`]},e))}),e.length>0?o(`div`,{className:`max-h-40 overflow-y-auto rounded-md border border-border divide-y divide-border`,children:e.map(e=>r(`label`,{className:`flex items-center gap-2.5 px-3 py-1.5 text-xs text-foreground cursor-pointer hover:bg-surface-hover`,children:[o(`input`,{type:`checkbox`,checked:h.has(e.value),onChange:()=>_(e.value),className:`accent-primary`}),o(`span`,{className:`flex-1 truncate`,children:e.label}),e.hint!==void 0&&o(`span`,{className:`text-[10px] text-foreground-subtle`,children:e.hint})]},e.value))}):o(`p`,{className:`text-[10px] text-foreground-subtle`,children:s===!0?d(`common.loading`,`Loading…`):c}),!u&&o(`input`,{value:f,onChange:e=>p(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),v())},placeholder:l,className:`w-full rounded-md border border-border bg-background px-2 py-1 text-xs text-foreground placeholder:text-foreground-subtle`})]})}var F=[{value:`immediate`,get label(){return A.t(`helpers.ruleFormParsers.immediate`)},get hint(){return A.t(`helpers.ruleFormParsers.immediateHint`)}},{value:`track-end`,get label(){return A.t(`helpers.ruleFormParsers.trackEnd`)},get hint(){return A.t(`helpers.ruleFormParsers.trackEndHint`)}},{value:`device-event`,get label(){return A.t(`helpers.ruleFormParsers.deviceEvent`)},get hint(){return A.t(`helpers.ruleFormParsers.deviceEventHint`)}},{value:`package-event`,get label(){return A.t(`helpers.ruleFormParsers.packageEvent`)},get hint(){return A.t(`helpers.ruleFormParsers.packageEventHint`)}},{value:`system-event`,get label(){return A.t(`helpers.ruleFormParsers.systemEvent`)},get hint(){return A.t(`helpers.ruleFormParsers.systemEventHint`)}}],I=`Immediate, grouped`,L=F.flatMap(e=>e.value===`immediate`?[e,{value:`immediate-grouped`,get label(){return A.t(`notificationRules.grouping.choice`)},get hint(){return A.t(`helpers.ruleFormParsers.groupedHint`)}}]:[e]);function R(e){return e.groupingSec!==void 0&&C(e)?`immediate-grouped`:e.delivery}function Ze(e){let t=(e.delivery===`immediate`||e.delivery===`track-end`)&&C({delivery:`immediate`,conditions:e.conditions});return L.filter(e=>e.value!==`immediate-grouped`||t)}function Qe(e){return L.find(t=>t.value===e)?.value}function $e(e,t=I){return R(e)===`immediate-grouped`?`${t} · ${String(e.groupingSec)} s`:tt(e.delivery)}function et(e){if(e.trim().length===0)return;let t=Number(e);return Number.isFinite(t)&&t>=0?Math.trunc(t):void 0}function tt(e){return F.find(t=>t.value===e)?.label??e}function z(e){return F.some(t=>t.value===e)}var nt=[{key:`all`,get label(){return A.t(`helpers.ruleFormParsers.sec_all_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_all_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_all_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_all_empty`)},creatable:!0},{key:`detection`,get label(){return A.t(`helpers.ruleFormParsers.sec_detection_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_detection_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_detection_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_detection_empty`)},creatable:!0},{key:`sensor`,get label(){return A.t(`helpers.ruleFormParsers.sec_sensor_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_sensor_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_sensor_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_sensor_empty`)},creatable:!0},{key:`audio`,get label(){return A.t(`helpers.ruleFormParsers.sec_audio_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_audio_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_audio_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_audio_empty`)},creatable:!0},{key:`occupancy`,get label(){return A.t(`helpers.ruleFormParsers.sec_occupancy_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_occupancy_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_occupancy_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_occupancy_empty`)},creatable:!0},{key:`device-events`,get label(){return A.t(`helpers.ruleFormParsers.sec_deviceEvents_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_deviceEvents_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_deviceEvents_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_deviceEvents_empty`)},creatable:!0},{key:`system`,get label(){return A.t(`helpers.ruleFormParsers.sec_system_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_system_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_system_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_system_empty`)},creatable:!0},{key:`alarm`,get label(){return A.t(`helpers.ruleFormParsers.sec_alarm_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_alarm_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_alarm_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_alarm_empty`)},creatable:!0},{key:`mixed`,get label(){return A.t(`helpers.ruleFormParsers.sec_mixed_label`)},get blurb(){return A.t(`helpers.ruleFormParsers.sec_mixed_blurb`)},get newRuleLabel(){return A.t(`helpers.ruleFormParsers.sec_mixed_new`)},get emptyHint(){return A.t(`helpers.ruleFormParsers.sec_mixed_empty`)},creatable:!1}];function rt(e){return T(g(e)).editable}function it(e){return E(at(e))}function at(e){switch(e){case`device-events`:case`system`:case`alarm`:case`mixed`:return e;default:return}}var ot=new Map([[0,`helpers.ruleFormParsers.cdNone`],[60,`helpers.ruleFormParsers.cd1m`],[3600,`helpers.ruleFormParsers.cd1h`]]),st=86400;function ct(e){let t=ot.get(e);return t===void 0?e%3600==0?A.t(`helpers.ruleFormParsers.cdHours`,{count:e/3600}):e%60==0?A.t(`helpers.ruleFormParsers.cdMinutes`,{count:e/60}):A.t(`helpers.ruleFormParsers.cdSeconds`,{count:e}):A.t(t)}function lt(e){if(e.trim().length===0)return;let t=Number(e);return Number.isFinite(t)&&t>=0?Math.trunc(t):void 0}var ut=[{value:`rule-device`,get label(){return A.t(`helpers.ruleFormParsers.scopeDevice`)}},{value:`rule`,get label(){return A.t(`helpers.ruleFormParsers.scopeRule`)}}];function dt(e){return ut.find(t=>t.value===e)?.value}var ft=[{value:`per-class`,get label(){return A.t(`helpers.ruleFormParsers.granPerClass`)}},{value:`shared`,get label(){return A.t(`helpers.ruleFormParsers.granShared`)}}];function pt(e){return ft.find(t=>t.value===e)?.value}var mt=[{value:`scene-boxes`,get label(){return A.t(`helpers.ruleFormParsers.imageSceneBoxes`)},get description(){return A.t(`helpers.ruleFormParsers.imageSceneBoxesDesc`)}},{value:`crop`,get label(){return A.t(`helpers.ruleFormParsers.imageCrop`)},get description(){return A.t(`helpers.ruleFormParsers.imageCropDesc`)}},{value:`clean`,get label(){return A.t(`helpers.ruleFormParsers.imageClean`)},get description(){return A.t(`helpers.ruleFormParsers.imageCleanDesc`)}},{value:`none`,get label(){return A.t(`helpers.ruleFormParsers.imageNone`)},get description(){return A.t(`helpers.ruleFormParsers.imageNoneDesc`)}}];function ht(e){return mt.find(t=>t.value===e)?.value}var gt=[{value:``,get label(){return A.t(`helpers.ruleFormParsers.linkedDefault`)}},{value:`mosaic`,get label(){return A.t(`helpers.ruleFormParsers.linkedMosaic`)}},{value:`each`,get label(){return A.t(`helpers.ruleFormParsers.linkedEach`)}}];function _t(e){let t=gt.find(t=>t.value===e)?.value;return t===``?void 0:t}var vt=[{value:``,get label(){return A.t(`helpers.ruleFormParsers.profileLowest`)}},{value:`low`,get label(){return A.t(`helpers.ruleFormParsers.profileLow`)}},{value:`mid`,get label(){return A.t(`helpers.ruleFormParsers.profileMid`)}},{value:`high`,get label(){return A.t(`helpers.ruleFormParsers.profileHigh`)}}];function yt(e){let t=vt.find(t=>t.value===e)?.value;return t===``?void 0:t}var bt=[{value:`any`,get label(){return A.t(`helpers.ruleFormParsers.srcAny`)}},{value:`pipeline`,get label(){return A.t(`helpers.ruleFormParsers.srcPipeline`)}},{value:`onboard`,get label(){return A.t(`helpers.ruleFormParsers.srcOnboard`)}},{value:`sensor`,get label(){return A.t(`helpers.ruleFormParsers.srcSensor`)}}],xt=[{value:`delivered`,get label(){return A.t(`helpers.ruleFormParsers.phaseDelivered`)}},{value:`picked-up`,get label(){return A.t(`helpers.ruleFormParsers.phasePickedUp`)}},{value:`both`,get label(){return A.t(`helpers.ruleFormParsers.phaseBoth`)}}],St=[{value:``,get label(){return A.t(`helpers.ruleFormParsers.stBoth`)}},{value:`raised`,get label(){return A.t(`helpers.ruleFormParsers.stRaised`)}},{value:`cleared`,get label(){return A.t(`helpers.ruleFormParsers.stCleared`)}}];function Ct(e){return e===`raised`||e===`cleared`?e:void 0}function B(e,t){return e===`sensorTransition`?me(t.sensorKinds):!0}var wt=[{value:`enter`,get label(){return A.t(`helpers.ruleFormParsers.crossEnter`)}},{value:`exit`,get label(){return A.t(`helpers.ruleFormParsers.crossExit`)}},{value:`any`,get label(){return A.t(`helpers.ruleFormParsers.crossAny`)}}],Tt=`enter`;function Et(e){return e===`exit`||e===`any`?e:void 0}var Dt=[{value:1,get label(){return A.t(`helpers.ruleFormParsers.prioMin`)}},{value:2,get label(){return A.t(`helpers.ruleFormParsers.prioLow`)}},{value:3,get label(){return A.t(`helpers.ruleFormParsers.prioDefault`)}},{value:4,get label(){return A.t(`helpers.ruleFormParsers.prioHigh`)}},{value:5,get label(){return A.t(`helpers.ruleFormParsers.prioMax`)}}];function Ot(e,t){return e.options&&e.options.length>0?e.options:t}var kt=[{value:``,get label(){return A.t(`helpers.ruleFormParsers.speedDefault`)}},{value:`1`,get label(){return A.t(`helpers.ruleFormParsers.speedReal`)}},{value:`2`,label:`2×`},{value:`3`,label:`3×`},{value:`4`,label:`4×`},{value:`6`,label:`6×`},{value:`8`,label:`8×`}];function At(e){if(e===``)return;let t=Number(e);return Number.isFinite(t)&&t>=1&&t<=8?t:void 0}var jt=new Map(Object.entries({"device-offline":`Device offline`,"device-online":`Device online`,"device-disabled":`Device switched off`,"device-enabled":`Device switched on`,"stream-offline":`Stream offline`,"stream-online":`Stream online`,"device-battery-low":`Battery low`,"device-battery-normal":`Battery back to normal`,"device-consumable-low":`Consumable low`,"device-consumable-normal":`Consumable back to normal`,"device-tank-low":`Supply low (water, detergent, salt, rinse aid)`,"device-tank-full":`Tank full (dirty water, dust)`,"device-tank-normal":`Tank back to normal`,"detection-blind":`Camera detecting nothing`,"motion-noisy":`Camera motion constant, no subject`,"motion-calm":`Camera motion calm again`,"recording-stalled":`Recording stalled`,"recording-healthy":`Recording healthy again`,"recording-degraded":`Recording degraded (restart storm)`,"device-attention-required":`Device needs attention`,"device-attention-resolved":`Device attention resolved`,"storage-location-low":`Storage location low`,"storage-location-critical":`Storage location critical`,"storage-location-ok":`Storage location ok again`,"node-offline":`Node offline`,"node-online":`Node online`,"node-restarting":`Node restarting`,"node-updating":`Node updating (restart imminent)`,"node-inference-unavailable":`Node has no usable inference device`,"addon-crash-loop":`Addon stopped after repeated crashes`,"addon-update-available":`Addon update available`,"addon-updated":`Addons updated`,"server-update-available":`Server update available`,"server-updated":`Server updated`,"wrapper-update-available":`Container / app update available`,"export-completed":`Export completed`,"backup-completed":`Backup completed`,"alert-critical":`Critical alert raised`,"alert-error":`Error alert raised`,"alert-critical-resolved":`Critical alert resolved`,"rule-broken":`Notification rule broken`,"rule-repaired":`Notification rule repaired`,"alarm-arm-refused":`Alarm arm refused (something is open)`,"alarm-check-failed":`Alarm check failed (armed anyway)`,"alarm-arming":`Alarm arming (exit delay)`,"alarm-armed":`Alarm armed`,"alarm-pending":`Alarm entry delay started`,"alarm-triggered":`Alarm triggered`,"alarm-rearmed":`Alarm re-armed after siren`,"alarm-sensor-bypass":`Alarm sensor bypass`,"alarm-disarmed":`Alarm disarmed`}));function Mt(e){return jt.get(e)}var Nt={"device-state":`A device the hub can no longer reach, or that came back. Switched off / on is a device an operator turned off or back on — not a fault, a choice.`,streams:`A stream that stopped or came back.`,battery:`A battery below the cluster threshold, and (optionally) its return to normal. Devices with a binary low-battery indicator are judged by the indicator, not by the percentage.`,consumables:`A consumable — filter, brush, bag — at or below this rule’s threshold, or that the device reports as due for replacement, and (optionally) its return to normal after a change. A device that only says "replace" is judged by that, not by a percentage.`,tanks:`A supply the device reports as running low (clean water, detergent, dishwasher salt or rinse aid) or a tank it reports as full (dirty water, dust bin), and (optionally) its return to normal once refilled or emptied.`,"detection-blind":`A camera that MOVED — at least 10 minutes of motion over 3 sessions — was analysed, and whose detector produced nothing at all, not even a candidate under the confidence floor.`,"motion-noise":`A camera whose motion fires constantly with no subject for an hour — a quarter of the time in motion, or 40 sessions — and (optionally) its return to calm. The detector is fine; tune the motion zones or sensitivity.`,recording:`A camera whose recording is on but no footage is landing (stall), a writer that burned its restart budget (degraded), and (optionally) the return to healthy writing.`,"device-attention":`A device whose own addon raised a critical alert because it needs the operator (a missing or rejected PIN), and the return to normal.`,nodes:`An agent or worker node joining or leaving the cluster, or an online node whose inference devices all went away.`,addons:`An addon the hub has stopped restarting after repeated crashes.`,"addon-updates":`A newer version of an addon, or an addon update that just finished.`,updates:`A newer version of the server itself, or of the container / app the node runs inside, is available — or a server update just finished.`,"backups-exports":`A scheduled or manual backup of the hub finished, or a footage export finished rendering.`,alerts:`A critical or error alert opening — a runner that failed or was refused, a recording location out of space, an expired sign-in — and (optionally) a critical alert resolving. One notification per alert episode.`,storage:`A storage location running low or critical on free space — or whose capacity probe failed — and (optionally) its return to ok.`,"rule-health":`A notification rule that cannot work — it no longer loads, or still names a device or destination that was deleted — and (optionally) its repair.`,alarm:`The alarm panel refusing to arm, arming, armed, counting down to a siren, going off, re-arming, excluding an open sensor, or being disarmed.`},Pt=Se.map(e=>({id:e.id,family:e.family,label:e.label,hint:Nt[e.id]??``,kinds:e.kinds.flatMap(e=>{let t=Mt(e);return t===void 0?[]:[{value:e,label:t}]})}));function V(e){return Pt.filter(t=>t.family===e)}function Ft(e){let t=v(e).conditions.systemEvent;return t===void 0?{kinds:(V(e)[0]?.kinds??[]).map(e=>e.value)}:{...t,kinds:[...t.kinds]}}var It=Pt.flatMap(e=>e.kinds);function Lt(e){return It.find(t=>t.value===e)?.label??e}function Rt(e){return{devices:x(e,`deviceIds`),deviceTypes:x(e,`deviceTypes`),nodes:x(e,`nodeIds`),packages:x(e,`packageNames`),consumableThreshold:x(e,`consumableLowPercent`)}}function zt(e,t){let n=p[e],r=Rt(t);return{devices:n.includes(`deviceIds`)&&r.devices,excludeDevices:n.includes(`excludeDeviceIds`)&&r.devices,deviceTypes:n.includes(`deviceTypes`)&&r.deviceTypes,nodes:n.includes(`nodeIds`)&&r.nodes,packages:n.includes(`packageNames`)&&r.packages,consumableThreshold:n.includes(`consumableLowPercent`)&&r.consumableThreshold}}var Bt=Object.values(_e).map(e=>({value:e,label:Vt(e)})).toSorted((e,t)=>e.label.localeCompare(t.label));function Vt(e){let t=e.replaceAll(`-`,` `);return t.charAt(0).toUpperCase()+t.slice(1)}function Ht(e,t){let n=[],r=new Set;for(let i of e.kinds){let e=de(i.value);if(e===void 0){n.push({key:i.value,label:i.label,kinds:[i.value],clears:[i.value]});continue}r.has(e.id)||(r.add(e.id),n.push({key:`class:${e.id}`,label:t?e.snapshotLabel:e.label,kinds:t?[...e.bad]:m(e),clears:m(e),classId:e.id,...t&&e.snapshotSection===null?{noSnapshot:!0}:{}}))}return n}function Ut(e,t){return t.clears.some(t=>e.includes(t))}function Wt(e,t,n){if(!V(n).some(e=>e.kinds.some(e=>t.kinds.includes(e.value))))return e;let r=e?.kinds??[];if(Ut(r,t)){let i=r.filter(e=>!t.clears.includes(e));return i.length===0?e:U(e,i,n)}return U(e,It.filter(e=>t.kinds.includes(e.value)||r.includes(e.value)).map(e=>e.value),n)}function Gt(e,t){return t===void 0?void 0:U(t,t.kinds,e)}function Kt(e,t){let n=e?.kinds??[];if(n.length===0)return;let r=H(t,`deviceIds`,e?.deviceIds),i=H(t,`excludeDeviceIds`,e?.excludeDeviceIds),a=H(t,`deviceTypes`,e?.deviceTypes),o=H(t,`nodeIds`,e?.nodeIds),s=H(t,`packageNames`,e?.packageNames),c=Object.prototype.hasOwnProperty.call(t,`consumableLowPercent`)?t.consumableLowPercent:e?.consumableLowPercent;return{kinds:[...n],...r===void 0?{}:{deviceIds:[...r]},...i===void 0?{}:{excludeDeviceIds:[...i]},...a===void 0?{}:{deviceTypes:[...a]},...o===void 0?{}:{nodeIds:[...o]},...s===void 0?{}:{packageNames:[...s]},...c===void 0?{}:{consumableLowPercent:c}}}function H(e,t,n){let r=Object.prototype.hasOwnProperty.call(e,t)?e[t]:n;return r!==void 0&&r.length===0?void 0:r}function U(e,t,n){let r=zt(n,t),i=r.devices?e?.deviceIds:void 0,a=r.excludeDevices?e?.excludeDeviceIds:void 0,o=r.deviceTypes?e?.deviceTypes:void 0,s=r.nodes?e?.nodeIds:void 0,c=r.packages?e?.packageNames:void 0,l=r.consumableThreshold?e?.consumableLowPercent:void 0;return{kinds:[...t],...i&&i.length>0?{deviceIds:[...i]}:{},...a&&a.length>0?{excludeDeviceIds:[...a]}:{},...o&&o.length>0?{deviceTypes:[...o]}:{},...s&&s.length>0?{nodeIds:[...s]}:{},...c&&c.length>0?{packageNames:[...c]}:{},...l===void 0?{}:{consumableLowPercent:l}}}var qt=95;function Jt(e){let t=e.trim();if(t===``)return{kind:`clear`};let n=Number(t);return Number.isInteger(n)&&n>=1&&n<=qt?{kind:`set`,value:n}:{kind:`invalid`}}function Yt(e,t=2){if(e===void 0||e.length===0)return A.t(`helpers.notificationSystemEvents.noneSelected`);let n=e.slice(0,t).map(Lt).join(`, `),r=e.length-Math.min(t,e.length);return r>0?`${n} +${r}`:n}function Xt(e){if(e===void 0)return`—`;let t=[],n=e.deviceIds?.length??0,r=e.deviceTypes?.length??0,i=e.nodeIds?.length??0,a=e.packageNames?.length??0,o=e.excludeDeviceIds?.length??0;r>0&&t.push(e.deviceTypes?.map(Vt).join(`, `)??``),n>0&&t.push(`${n} device${n===1?``:`s`}`),i>0&&t.push(`${i} node${i===1?``:`s`}`),a>0&&t.push(`${a} package${a===1?``:`s`}`);let s=o>0?`except ${o} device${o===1?``:`s`}`:null,c=e.consumableLowPercent===void 0?[]:[`consumables at ${e.consumableLowPercent}%`];return t.length===0?[s===null?`Everything`:`Everything ${s}`,...c].join(` · `):[...t,...s===null?[]:[s],...c].join(` · `)}function Zt(e){return e===void 0||(e.deviceTypes?.length??0)===0?!1:e.kinds.some(e=>xe.includes(e))}var Qt=[`all`,`only`,`except`];function $t(e,t){return(e??[]).length>0?`only`:(t??[]).length>0?`except`:`all`}function W(e,t){let n=[...e??[]],r=[...t??[]];return{mode:$t(n,r),include:n,exclude:r,legacyBoth:n.length>0&&r.length>0}}function en(e,t){return{...e,mode:t}}function tn(e){switch(e.mode){case`only`:return e.include;case`except`:return e.exclude;case`all`:return[]}}function nn(e,t){switch(e.mode){case`only`:return{...e,include:[...t]};case`except`:return{...e,exclude:[...t]};case`all`:return e}}function G(e){return e.mode===`only`&&e.legacyBoth?e.exclude:[]}function rn(e){return{...e,exclude:[],legacyBoth:!1}}function K(e){switch(e.mode){case`all`:return{};case`except`:return e.exclude.length>0?{exclude:[...e.exclude]}:{};case`only`:{let t=G(e);return{...e.include.length>0?{include:[...e.include]}:{},...t.length>0?{exclude:[...t]}:{}}}}}function an(e){let t=K(e),n=t.include??[],r=t.exclude??[];return[...e.include.filter(e=>!n.includes(e)),...e.exclude.filter(e=>!r.includes(e))]}var q=[`onActivation`,`onDeactivation`,`onTrigger`,`onTriggerOff`],J={onActivation:{get title(){return A.t(`helpers.notificationRuleActions.onActivationTitle`)},get hint(){return A.t(`helpers.notificationRuleActions.onActivationHint`)}},onDeactivation:{get title(){return A.t(`helpers.notificationRuleActions.onDeactivationTitle`)},get hint(){return A.t(`helpers.notificationRuleActions.onDeactivationHint`)}},onTrigger:{get title(){return A.t(`helpers.notificationRuleActions.onTriggerTitle`)},get hint(){return A.t(`helpers.notificationRuleActions.onTriggerHint`)}},onTriggerOff:{get title(){return A.t(`helpers.notificationRuleActions.onTriggerOffTitle`)},get hint(){return A.t(`helpers.notificationRuleActions.onTriggerOffHint`)}}},on={onActivation:[],onDeactivation:[],onTrigger:[],onTriggerOff:[],buttons:[]};function sn(e){return e===void 0?on:{onActivation:[...e.onActivation??[]],onDeactivation:[...e.onDeactivation??[]],onTrigger:[...e.onTrigger??[]],onTriggerOff:[...e.onTriggerOff??[]],buttons:[...e.buttons??[]]}}function Y(e){let t=e.buttons.filter(e=>e.id.trim()!==``&&e.label.trim()!==``&&e.sequenceId.trim()!==``),n={onActivation:e.onActivation,onDeactivation:e.onDeactivation,onTrigger:e.onTrigger,onTriggerOff:e.onTriggerOff};if(!(!q.some(e=>n[e].length>0)&&t.length===0))return{...n.onActivation.length>0?{onActivation:[...n.onActivation]}:{},...n.onDeactivation.length>0?{onDeactivation:[...n.onDeactivation]}:{},...n.onTrigger.length>0?{onTrigger:[...n.onTrigger]}:{},...n.onTriggerOff.length>0?{onTriggerOff:[...n.onTriggerOff]}:{},...t.length>0?{buttons:t}:{}}}function cn(e,t){let n=[];for(let r of q){let i=e[r];i.length>4&&n.push({kind:`too-many`,message:A.t(`helpers.notificationRuleActions.tooMany`,{title:J[r].title})});for(let e of i)e.kind===`sequence`&&!t.has(e.sequenceId)&&n.push({kind:`unknown-sequence`,message:A.t(`helpers.notificationRuleActions.hookUnknownSeq`,{title:J[r].title})})}let r=new Set;for(let i of e.buttons){let e=i.id.trim();e!==``&&(r.has(e)&&n.push({kind:`duplicate-button`,message:A.t(`helpers.notificationRuleActions.dupButton`,{id:e})}),r.add(e),t.has(i.sequenceId.trim())||n.push({kind:`unknown-sequence`,message:A.t(`helpers.notificationRuleActions.buttonUnknownSeq`,{label:i.label||e})}))}return n}function ln(e,t){return{id:`action-${String(e+1)}`,label:A.t(`helpers.notificationRuleActions.newButtonLabel`),sequenceId:t}}function un(){return{kind:`do`,action:{kind:`cap`,deviceId:0,cap:``,method:``}}}function dn(e){return{kind:`sequence`,sequenceId:e}}function fn(){return{kind:`wait`,seconds:5}}var pn=[{value:`acknowledge`,get label(){return A.t(`helpers.notificationRuleActions.icon_acknowledge`)}},{value:`dismiss`,get label(){return A.t(`helpers.notificationRuleActions.icon_dismiss`)}},{value:`silence`,get label(){return A.t(`helpers.notificationRuleActions.icon_silence`)}},{value:`snooze`,get label(){return A.t(`helpers.notificationRuleActions.icon_snooze`)}},{value:`view`,get label(){return A.t(`helpers.notificationRuleActions.icon_view`)}},{value:`play`,get label(){return A.t(`helpers.notificationRuleActions.icon_play`)}},{value:`camera`,get label(){return A.t(`helpers.notificationRuleActions.icon_camera`)}},{value:`open`,get label(){return A.t(`helpers.notificationRuleActions.icon_open`)}},{value:`close`,get label(){return A.t(`helpers.notificationRuleActions.icon_close`)}},{value:`unlock`,get label(){return A.t(`helpers.notificationRuleActions.icon_unlock`)}},{value:`lock`,get label(){return A.t(`helpers.notificationRuleActions.icon_lock`)}},{value:`disarm`,get label(){return A.t(`helpers.notificationRuleActions.icon_disarm`)}},{value:`arm`,get label(){return A.t(`helpers.notificationRuleActions.icon_arm`)}},{value:`arm-home`,get label(){return A.t(`helpers.notificationRuleActions.icon_arm_home`)}},{value:`arm-away`,get label(){return A.t(`helpers.notificationRuleActions.icon_arm_away`)}},{value:`arm-night`,get label(){return A.t(`helpers.notificationRuleActions.icon_arm_night`)}},{value:`light`,get label(){return A.t(`helpers.notificationRuleActions.icon_light`)}},{value:`alert`,get label(){return A.t(`helpers.notificationRuleActions.icon_alert`)}}],mn=[10,30,60],hn=[5,10,15,30,60,120,240,480];function gn(e){return e>=60&&e%60==0?A.t(`helpers.ruleFormState.snoozeHours`,{count:e/60}):A.t(`helpers.ruleFormState.snoozeMin`,{count:e})}var _n=new Set([`alarm-arm-refused`,`alarm-check-failed`,`alarm-arming`,`alarm-armed`,`alarm-pending`,`alarm-triggered`,`alarm-rearmed`,`alarm-sensor-bypass`,`alarm-disarmed`]),vn=`alarm-panel`;function yn(e,t){for(let t of e.systemEvent?.kinds??[])if(_n.has(t))return!0;for(let e of t)if(e.kind===`cap`&&e.cap===vn)return!0;return!1}function bn(e,t){let n=new Map(t.map(e=>[e.id,e])),r=[];for(let t of[`onActivation`,`onDeactivation`,`onTrigger`,`onTriggerOff`])for(let i of e[t])if(i.kind===`do`)r.push(i.action);else{let e=n.get(i.sequenceId);e!==void 0&&r.push(...e.actions)}for(let t of e.buttons){let e=n.get(t.sequenceId);e!==void 0&&r.push(...e.actions)}return r}function xn(e){let{devices:t,devicesExclude:n,classes:r,classesExclude:i,...a}=e;return{conditions:a,deviceScope:W(t,n),classScope:W(r,i)}}function Sn(e){let t=K(e.deviceScope),n=K(e.classScope);return{...e.conditions,...t.include===void 0?{}:{devices:[...t.include]},...t.exclude===void 0?{}:{devicesExclude:[...t.exclude]},...n.include===void 0?{}:{classes:[...n.include]},...n.exclude===void 0?{}:{classesExclude:[...n.exclude]}}}function Cn(e){return e.deviceScope.mode===`only`?e.deviceScope.include:[]}function wn(e,t,n){let r=g(n);return e.some(e=>e.id===t&&ye(e,n.delivery,r))}function Tn(e=`immediate`,t={}){return{name:``,enabled:!0,delivery:e,targetIds:[],targetUsers:[],targetParams:{},priority:3,mediaImage:ve({},g({delivery:e,conditions:t})),mediaShowTriggerZone:!1,mediaShowSubjectPath:!1,mediaGif:!1,mediaClip:!1,mediaProfile:void 0,mediaClipSpeed:void 0,mediaLinkedCameras:void 0,templateTitle:``,templateBody:``,...xn(t),schedule:void 0,systemEventDelivery:void 0,snoozeAllowGlobal:!1,groupingSec:void 0,snoozeOptions:void 0,actions:on,cooldownSec:30,cooldownScope:`rule-device`,cooldownGranularity:void 0}}function En(e){let t={};for(let n of e.targets)n.params&&Object.keys(n.params).length>0&&(t[n.targetId]=n.params);return{name:e.name,enabled:e.enabled,delivery:e.delivery,targetIds:e.targets.map(e=>e.targetId),targetUsers:e.targetUsers??[],targetParams:t,priority:e.priority,mediaImage:ve(e.media,g(e)),mediaShowTriggerZone:e.media.showTriggerZone===!0,mediaShowSubjectPath:e.media.showSubjectPath===!0,mediaGif:e.media.gif===!0,mediaClip:e.media.clip===!0,mediaProfile:e.media.profile,mediaClipSpeed:e.media.clipSpeed,mediaLinkedCameras:e.media.linkedCameras,templateTitle:e.template?.title??``,templateBody:e.template?.body??``,...xn(e.conditions),schedule:e.schedule,systemEventDelivery:e.systemEventDelivery,snoozeAllowGlobal:e.snoozeAllowGlobal===!0,groupingSec:e.groupingSec,snoozeOptions:e.snoozeOptions,actions:sn(e.actions),cooldownSec:e.throttle.cooldownSec,cooldownScope:e.throttle.scope,cooldownGranularity:e.throttle.granularity}}function Dn(e,t){let n=[];if(Nn(e)){let r=e.groupingSec;r!==void 0&&(!Number.isInteger(r)||r<5||r>60)&&n.push(`The grouping window is a whole number of seconds between 5 and 60.`);let i=t?.confirm;i?.enabled===!0&&i.expect!==void 0&&!Pn(i.expect)&&n.push(`This rule’s AI confirm expects more than one subject, but a grouped message judges one picture per subject, so it would never send. Remove the confirm expectation (viewer or API), or choose Immediate.`)}if(h(e.conditions.audio)&&n.push(`This sound rule names neither a sound nor a level threshold, so it can never fire — every sample would count as a hit and the engine refuses it rather than notifying on silence. Pick at least one sound, or add a level.`),(!Number.isInteger(e.cooldownSec)||e.cooldownSec<0||e.cooldownSec>86400)&&n.push(`The cooldown is a whole number of seconds between 0 and ${String(st)} (24 hours). 0 means every match is delivered.`),X(e))for(let t of ae({delivery:e.delivery,conditions:e.conditions,...e.systemEventDelivery===void 0?{}:{systemEventDelivery:e.systemEventDelivery},...Y(e.actions)===void 0?{}:{actions:Y(e.actions)}}))n.push(oe(t));return n}function On(e){let t=e.systemEventDelivery;if(t===void 0)return{};if(!w(e.delivery))return t.mode===`summary`?{systemEventDelivery:{mode:`instant`}}:{};if(t.mode===`summary`&&ne(t.schedule)===null){let e=y(t.schedule);if(e!==null&&e.times.length>0)return{systemEventDelivery:{...t,schedule:S(e.times,t.schedule.timezone)}}}return{systemEventDelivery:t}}function kn(e){if(!X(e))return null;if(!Ee(e.templateBody))return A.t(`helpers.ruleFormState.summaryWarnNone`,{token:`{{summaryText}}`});let t=e.templateBody;return(e.systemEventDelivery?.mode===`summary`?e.systemEventDelivery.split:void 0)===`section`&&t.trim().length>0&&!/\{\{\s*summaryText\s*\}\}/.test(t)?A.t(`helpers.ruleFormState.summaryWarnSplit`,{token:`{{summaryText}}`}):null}function X(e){return w(e.delivery)&&e.systemEventDelivery?.mode===`summary`}function An(e,t,n=new Set){return Dn(e,t).length===0&&z(e.delivery)&&(!w(e.delivery)||Rn(e)>0)&&g(e)!==`mixed`&&e.name.trim().length>0&&(e.targetIds.length>0||e.targetUsers.length>0)&&cn(e.actions,n).length===0}function jn(e,t){let n=In(e.conditions,t);return w(t)&&(n.systemEvent?.kinds.length??0)===0?{...e,delivery:t,conditions:{...n,systemEvent:Ft(`device-events`)}}:{...e,delivery:t,conditions:n}}function Mn(e,t){return t===`immediate-grouped`?{...jn(e,`immediate`),groupingSec:e.groupingSec??20}:{...jn(e,t),groupingSec:void 0}}function Nn(e){return e.groupingSec!==void 0&&C(e)}function Pn(e){switch(e.op){case`>`:return 1>e.count;case`<=`:return 1<=e.count;case`<`:return 1<e.count;case`==`:return e.count===1;default:return 1>=e.count}}var Fn=new Set([`immediate`,`track-end`,`package-event`]);function In(e,t){if(e.source!==`pipeline`||Fn.has(t))return e;let{source:n,...r}=e;return r}function Ln(e,t){return se(e.conditions.systemEvent)===t?e:{...e,conditions:{...e.conditions,systemEvent:Ft(t)}}}function Rn(e){return e.conditions.systemEvent?.kinds.length??0}function Z(e,t){return e.appliesTo.includes(t)}var zn={source:`any`};function Bn(e,t){if(t==null)return!0;if(Array.isArray(t))return t.length===0;if(typeof t==`string`)return t.length===0||zn[e]===t;if(typeof t==`number`)return!Number.isFinite(t);if(typeof t==`object`){if(`ids`in t){let e=t.ids;return!Array.isArray(e)||e.length===0}if(`values`in t){let e=t.values;return!Array.isArray(e)||e.length===0}return!1}return!1}var Vn=ge.filter(e=>e.id===`audio`);function Hn(e){if(e.length===0)return e;let t=new Set(e.map(e=>e.id)),n=Vn.filter(e=>!t.has(e.id));return n.length===0?e:[...e,...n]}function Un(e,t,n,r=g({delivery:t,conditions:e})){let i=n.length===0?null:new Set(n.filter(e=>e.id!==`schedule`&&ye(e,t,r)).map(e=>e.id)),a={};for(let[t,n]of Object.entries(e))i!==null&&!i.has(t)||B(t,e)&&(Bn(t,n)||(a[t]=n));return a}function Wn(e,t){if(e===void 0)return{};let n=Gt(e,t.systemEvent);return n===void 0?{}:{systemEvent:n}}function Gn(e){return e!==void 0&&e.windows.length>0}function Kn(e){let t={...e.clipPreRollSec===void 0?{}:{clipPreRollSec:e.clipPreRollSec},...e.clipPostRollSec===void 0?{}:{clipPostRollSec:e.clipPostRollSec}};return Object.keys(t).length>0?t:void 0}function qn(e){let t=Kn(e.media);return{...e.confirm===void 0?{}:{confirm:e.confirm},...t===void 0?{}:{media:t}}}function Jn(e,t,n=[]){let r=e.templateTitle.trim(),i=e.templateBody.trim(),a=r.length>0||i.length>0?{...r.length>0?{title:r}:{},...i.length>0?{body:i}:{}}:void 0,o=Y(e.actions),s=g(e),c=T(s),l=_(s),u=n.length===0?!0:n.some(t=>t.id===`schedule`&&Z(t,e.delivery)),d=!X(e)&&u&&Gn(e.schedule)?e.schedule:void 0,f=n.length===0?!0:n.some(t=>t.id===`devices`&&Z(t,e.delivery)),p=n.length===0?!0:n.some(t=>t.id===`devicesExclude`&&Z(t,e.delivery)),{devices:m,devicesExclude:h,...v}=Sn(e),y=Un(v,e.delivery,n,s);return{name:e.name.trim(),enabled:e.enabled,delivery:e.delivery,conditions:{...y,...f&&m!==void 0?{devices:m}:{},...p&&h!==void 0?{devicesExclude:h}:{},...Wn(l,e.conditions)},...d?{schedule:d}:{},...On(e),targets:e.targetIds.map(t=>{let n=e.targetParams[t];return n&&Object.keys(n).length>0?{targetId:t,params:n}:{targetId:t}}),...e.targetUsers.length>0?{targetUsers:[...e.targetUsers]}:{},media:c.carriesMedia?{image:e.mediaImage,...e.mediaShowTriggerZone&&e.mediaImage!==`crop`&&e.mediaImage!==`none`&&Te(y).length>0?{showTriggerZone:!0}:{},...e.mediaShowSubjectPath&&e.mediaImage!==`none`&&we(s)?{showSubjectPath:!0}:{},...e.mediaGif?{gif:!0}:{},...e.mediaClip?{clip:!0}:{},...e.mediaProfile===void 0?{}:{profile:e.mediaProfile},...e.mediaClipSpeed===void 0?{}:{clipSpeed:e.mediaClipSpeed},...s===`sensor`&&e.mediaImage!==`none`&&e.mediaLinkedCameras!==void 0?{linkedCameras:e.mediaLinkedCameras}:{},...(e.mediaGif||e.mediaClip)&&t?.media?.clipPreRollSec!==void 0?{clipPreRollSec:t.media.clipPreRollSec}:{},...(e.mediaGif||e.mediaClip)&&t?.media?.clipPostRollSec!==void 0?{clipPostRollSec:t.media.clipPostRollSec}:{}}:{image:`none`},throttle:{cooldownSec:e.cooldownSec,scope:e.cooldownScope,...e.cooldownGranularity===void 0?{}:{granularity:e.cooldownGranularity}},priority:e.priority,...a?{template:a}:{},...e.snoozeAllowGlobal?{snoozeAllowGlobal:!0}:{},...Nn(e)?{groupingSec:e.groupingSec}:{},...e.snoozeOptions===void 0?{}:{snoozeOptions:[...e.snoozeOptions]},...t?.confirm===void 0?{}:{confirm:t.confirm},...o===void 0?{}:{actions:o}}}function Yn(e,t){let n=Jn(e,void 0,t);return[`template`,`schedule`,`targetUsers`,`snoozeOptions`,`snoozeAllowGlobal`,`groupingSec`,`actions`].filter(e=>n[e]===void 0)}var Xn=[{key:`rule`,get label(){return A.t(`helpers.ruleFormTabs.tab_rule`)},fields:[`name`,`enabled`,`delivery`,`groupingSec`,`targetIds`,`targetUsers`,`targetParams`]},{key:`devices`,get label(){return A.t(`helpers.ruleFormTabs.tab_devices`)},fields:[`deviceScope`]},{key:`conditions`,get label(){return A.t(`helpers.ruleFormTabs.tab_conditions`)},fields:[`conditions`,`classScope`,`schedule`,`systemEventDelivery`]},{key:`notification`,get label(){return A.t(`helpers.ruleFormTabs.tab_notification`)},fields:[`priority`,`mediaImage`,`mediaShowTriggerZone`,`mediaShowSubjectPath`,`mediaGif`,`mediaClip`,`mediaProfile`,`mediaClipSpeed`,`mediaLinkedCameras`,`templateTitle`,`templateBody`]},{key:`actions`,get label(){return A.t(`helpers.ruleFormTabs.tab_actions`)},fields:[`actions`]},{key:`advanced`,get label(){return A.t(`helpers.ruleFormTabs.tab_advanced`)},fields:[`snoozeAllowGlobal`,`snoozeOptions`,`cooldownSec`,`cooldownScope`,`cooldownGranularity`]}];function Zn(e,t={}){let n=g({delivery:e,conditions:t}),r=T(n),i=Xn.map(e=>e.key===`conditions`?{...e,label:r.label}:e);return E(n)?i.filter(e=>e.key!==`devices`):i}function Qn(e){if(e.audio!==void 0)return A.t(`helpers.ruleFormTabs.condSound`);if(e.occupancy!==void 0)return A.t(`helpers.ruleFormTabs.condOccupancy`)}function $n(e){let t=g(e),n=he(Sn(e),t);return t===`sensor`&&e.conditions.sensorTransition!==void 0&&!B(`sensorTransition`,e.conditions)?[...n,{conditionId:`sensorTransition`,reason:re}]:n}var er=`rule`;function tr(e){return Xn.find(t=>t.key===e)?.key}function nr(e){return e?.toLowerCase().startsWith(`it`)===!0?`it`:`en`}function rr(){let{i18n:e}=j(),t=nr(e.language);return e=>Ce(e,t)}e();var ir=`block text-[11px] font-medium text-foreground`,Q=`text-[10px] text-foreground-subtle mt-0.5`;function ar({cameras:e,fleet:t,value:n,onChange:r,emptyMeansAll:i=!1,savedHadDevices:a=!1}){return o(Oe,{devices:e,listState:t.state,fleet:t,value:n,onChange:r,emptyMeansAll:i,savedHadDevices:a})}function or({value:e,placeholder:t,onChange:i}){let{t:a}=j(),[s,l]=n(``),u=()=>{let t=s.trim();if(t.length===0||e.includes(t)){l(``);return}i([...e,t]),l(``)},d=t=>i(e.filter(e=>e!==t));return r(`div`,{className:`mt-1 space-y-1.5`,children:[e.length>0&&o(`div`,{className:`flex flex-wrap gap-1`,children:e.map(e=>r(`span`,{className:`inline-flex items-center gap-1 rounded bg-surface-hover px-1.5 py-0.5 text-[11px] text-foreground`,children:[e,o(`button`,{type:`button`,onClick:()=>d(e),"aria-label":a(`system.notificationConditionWidgets.remove`,`remove {{v}}`,{v:e}),className:`text-foreground-subtle hover:text-danger`,children:o(c,{className:`h-3 w-3`})})]},e))}),o(O,{value:s,placeholder:t,onChange:e=>l(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),u())},onBlur:u})]})}function sr({picker:e,value:n,onChange:i}){let{t:a}=j(),s=t(()=>ce(e),[e]),c=t(()=>new Set(n),[n]),l=n.filter(e=>!s.has(e)),u=e=>{i(c.has(e)?n.filter(t=>t!==e):[...n,e])};return r(`div`,{className:`space-y-2`,children:[l.length>0&&o(`div`,{className:`flex flex-wrap gap-1`,children:l.map(e=>r(`button`,{type:`button`,onClick:()=>i(n.filter(t=>t!==e)),className:`inline-flex items-center gap-1 rounded border border-border px-1.5 py-0.5 text-[10px] text-foreground hover:bg-surface-hover`,title:a(`system.notificationConditionWidgets.customValueClickToRemove`,`Custom value — click to remove`),children:[e,` ×`]},e))}),e.groups.map(e=>r(`div`,{children:[o(`div`,{className:`text-[10px] uppercase tracking-wide text-foreground-muted mb-1`,children:e.fallbackLabel}),o(`div`,{className:`flex flex-wrap gap-1`,children:e.options.map(e=>{let t=c.has(e.value);return o(`button`,{type:`button`,"aria-pressed":t,onClick:()=>u(e.value),className:t?`rounded border border-primary bg-primary/15 px-1.5 py-0.5 text-[10px] text-foreground`:`rounded border border-border px-1.5 py-0.5 text-[10px] text-foreground hover:bg-surface-hover`,children:e.label},e.value)})})]},e.key))]})}function cr({value:e,min:t,max:n,step:i,onChange:a}){let{t:s}=j();return r(`div`,{className:`mt-1 flex items-center gap-2`,children:[o(O,{type:`number`,value:e??``,min:t,max:n,step:i,className:`max-w-[8rem]`,onChange:e=>{let t=e.target.value;if(t===``){a(void 0);return}let n=Number(t);a(Number.isFinite(n)?n:void 0)}}),e!==void 0&&n!==void 0&&o(`input`,{type:`range`,min:t,max:n,step:i,value:e,onChange:e=>a(Number(e.target.value)),className:`flex-1 accent-primary`,"aria-label":s(`common.valueWord`)})]})}function lr({value:e,onChange:t,options:n}){let{t:i}=j(),a=ur(n??[]),s=a.length>0?a:wt;return r(`div`,{className:`mt-1 space-y-1`,children:[o(k,{value:e??`enter`,options:s.map(e=>({value:e.value,label:i(`notificationRules.crossing.${e.value}`,e.label)})),onChange:e=>t(Et(e.target.value))}),o(`p`,{className:Q,children:i(`notificationRules.crossing.hint`,`Which way the subject crosses the zone.`)})]})}function ur(e){let t=[];for(let n of e){let e=n.value===``||n.value===`enter`?Tt:Et(n.value);e===void 0||t.some(t=>t.value===e)||t.push({value:e,label:n.label})}return t}function dr({deviceIds:e,cameras:t,value:n,onChange:r}){let{options:i,loading:a}=N(e,t);return o(P,{options:i,value:n,onChange:r,loading:a,noFreeText:!0,emptyHint:e.length===0?`Select cameras first — a rule can only use zones those cameras actually have.`:`The selected cameras have no zones. Draw one in the camera’s zone editor first.`,placeholder:``})}function fr({deviceIds:e,value:t,onChange:n}){let{t:r}=j(),{options:i,loading:a}=Je(e);return o(P,{options:i,value:t,onChange:n,loading:a,emptyHint:e.length===0?`Select cameras above to pick their event kinds — or type a token.`:`No event kinds reported for the selected cameras — type a token.`,placeholder:r(`system.notificationConditionWidgets.eventToken`,`Event token…`)})}var pr=[{value:`became-occupied`,labelKey:`system.notificationConditionWidgets.opBecameOccupied`},{value:`became-free`,labelKey:`system.notificationConditionWidgets.opBecameFree`},{value:`>=`,labelKey:`system.notificationConditionWidgets.opCountAtLeast`},{value:`<=`,labelKey:`system.notificationConditionWidgets.opCountAtMost`}];function mr(e,t){let n=e.map(e=>({value:e.value,label:e.label}));return t===void 0||t===``||n.some(e=>e.value===t)?n:[...n,{value:t,label:A.t(`system.notificationConditionWidgets.subTypeNeverCountsAlways`,`{{stored}} — sub-type, never counts (always 0)`,{stored:t})}]}function hr({deviceIds:e,cameras:t,classOptions:n,value:i,onChange:a}){let{t:s}=j(),{options:c,loading:l}=N(e,t),u=i??be,d=e=>a({...u,...e}),f=u.op===`became-occupied`||u.op===`became-free`,p=mr(n,u.className);return r(`div`,{className:`mt-1 space-y-1.5`,children:[r(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[o(`div`,{className:`min-w-[10rem]`,children:o(k,{value:u.zoneId??``,options:[{value:``,label:l?s(`system.notificationConditionWidgets.loadingZones`,`Loading zones…`):s(`system.notificationConditionWidgets.wholeFrame`,`— whole frame —`)},...c.map(e=>({value:e.value,label:e.label}))],onChange:e=>d({zoneId:e.target.value===``?void 0:e.target.value})})}),o(`div`,{className:`min-w-[9rem]`,children:o(k,{value:u.className??``,options:[{value:``,label:s(`system.notificationConditionWidgets.anyClass`,`— any class —`)},...p],onChange:e=>d({className:e.target.value===``?void 0:e.target.value})})}),o(`div`,{className:`min-w-[9rem]`,children:o(k,{value:u.op,options:pr.map(e=>({value:e.value,label:s(e.labelKey)})),onChange:e=>{let t=pr.find(t=>t.value===e.target.value);t&&d({op:t.value})}})})]}),r(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-foreground-subtle`,children:[r(`label`,{className:`flex items-center gap-1`,children:[f?s(`system.notificationConditionWidgets.threshold`,`Threshold`):s(`system.notificationConditionWidgets.count`,`Count`),o(O,{type:`number`,min:0,className:`w-16`,value:String(u.count),onChange:e=>d({count:Math.max(0,Number(e.target.value)||0)})})]}),r(`label`,{className:`flex items-center gap-1`,children:[s(`system.notificationConditionWidgets.holdFor`,`Hold for`),o(O,{type:`number`,min:0,max:3600,className:`w-16`,value:String(u.sustainSeconds),onChange:e=>d({sustainSeconds:Math.min(3600,Math.max(0,Number(e.target.value)||0))})}),`s`]}),i===void 0?null:o(`button`,{type:`button`,onClick:()=>a(void 0),className:`underline hover:text-foreground`,children:s(`system.notificationConditionWidgets.clear`,`Clear`)})]}),e.length===0&&o(`p`,{className:`text-[11px] text-warning`,children:s(`system.notificationConditionWidgets.noCameraPickedOnThe`,`No camera picked on the Devices tab: this watches EVERY camera's occupancy, and no zone can be offered until you choose one — a zone id belongs to a camera.`)}),o(`p`,{className:`text-[11px] text-foreground-subtle`,children:s(`system.notificationConditionWidgets.countsConfirmedTrackedObjectsFrom`,`Counts confirmed tracked objects from zone analytics. The change must hold for the sustain window before it fires; with no snapshot for the camera or zone the rule never fires.`)})]})}var gr=[{value:`label`,labelKey:`system.notificationConditionWidgets.audioModeLabel`,Icon:l},{value:`level`,labelKey:`system.notificationConditionWidgets.audioModeLevel`,Icon:f}];function _r({taxonomy:e,value:t,onChange:n}){let{t:a}=j(),s=ue(t),c=e=>n(ee(t,e)),{choices:l,unknownLabels:u}=fe(e,s.labels),d=te(t)??`label`;return r(`div`,{className:`mt-1 space-y-2`,children:[r(`div`,{className:`flex flex-wrap items-center gap-1`,children:[gr.map(e=>o(`button`,{type:`button`,"aria-pressed":d===e.value,onClick:()=>c({mode:e.value}),className:`rounded border px-2 py-0.5 text-[11px] ${d===e.value?`border-primary bg-primary/15 text-foreground`:`border-border text-foreground-subtle hover:bg-surface-hover`}`,children:r(`span`,{className:`inline-flex items-center gap-1`,children:[o(e.Icon,{className:`h-3 w-3`}),a(e.labelKey)]})},e.value)),t===void 0?null:o(`button`,{type:`button`,onClick:()=>n(void 0),className:`ml-1 text-xs text-foreground-subtle underline hover:text-foreground`,children:a(`system.notificationConditionWidgets.clear`,`Clear`)})]}),d===`label`?r(i,{children:[o(`div`,{className:`flex flex-wrap gap-1`,children:l.map(e=>{let t=pe(s.labels,e.value),n=e.unknown?`border-dashed border-warning text-warning`:t?`border-primary bg-primary/15 text-foreground`:`border-border text-foreground hover:bg-surface-hover`;return o(`button`,{type:`button`,"aria-pressed":t,title:e.unknown?a(`system.notificationConditionWidgets.storedByTheRuleNot`,`Stored by the rule — not offered by this hub`):void 0,onClick:()=>c({labels:ie(s.labels,e.value)}),className:`rounded border px-1.5 py-0.5 text-[10px] ${n}`,children:r(`span`,{className:`inline-flex items-center gap-1`,children:[o(ke,{iconId:e.iconId,size:12}),e.label]})},e.value)})}),u.length>0&&r(`p`,{className:`text-[10px] text-warning`,children:[a(`system.notificationConditionWidgets.keptFromTheRuleUnknown`,`Kept from the rule, unknown to this hub:`),` `,u.join(`, `)]}),r(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-foreground-subtle`,children:[r(`label`,{className:`flex items-center gap-1`,children:[a(`system.notificationConditionWidgets.confirmAfter`,`Confirm after`),o(O,{type:`number`,min:1,max:20,step:1,className:`w-16`,value:String(s.confirmHits??2),onChange:e=>c({confirmHits:Number(e.target.value)})}),a(`system.notificationConditionWidgets.frames`)]}),r(`label`,{className:`flex items-center gap-1`,children:[a(`system.notificationConditionWidgets.within`),o(O,{type:`number`,min:1,max:60,step:1,className:`w-16`,value:String(s.confirmWindowSec??5),onChange:e=>c({confirmWindowSec:Number(e.target.value)})}),`s`]})]}),o(`p`,{className:`text-[11px] text-foreground-subtle`,children:a(`system.notificationConditionWidgets.audioConfirmHint`,{hits:2,window:5})})]}):r(i,{children:[o(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-foreground-subtle`,children:r(`label`,{className:`flex items-center gap-1`,children:[a(`system.notificationConditionWidgets.louderThan`,`Louder than`),o(O,{type:`number`,min:b,max:0,step:3,className:`w-20`,value:String(s.dbThreshold??le),onChange:e=>c({dbThreshold:Number(e.target.value)})}),`dBFS`]})}),r(`div`,{className:`flex flex-wrap items-center gap-3 text-xs text-foreground-subtle`,children:[r(`label`,{className:`flex items-center gap-1`,children:[a(`system.notificationConditionWidgets.hits`,`Hits`),o(O,{type:`number`,min:1,max:100,step:5,className:`w-16`,value:String(s.hitPercent),onChange:e=>c({hitPercent:Number(e.target.value)})}),a(`system.notificationConditionWidgets.hitsPercentDefault`,{value:D.hitPercent})]}),r(`label`,{className:`flex items-center gap-1`,children:[a(`system.notificationConditionWidgets.over`),o(O,{type:`number`,min:1,max:300,step:5,className:`w-16`,value:String(s.samplingSeconds),onChange:e=>c({samplingSeconds:Number(e.target.value)})}),a(`system.notificationConditionWidgets.secondsDefault`,{value:D.samplingSeconds})]})]}),o(`p`,{className:`text-[11px] text-foreground-subtle`,children:a(`system.notificationConditionWidgets.dbfsHint`,{min:b})})]}),h(t)?o(`p`,{className:`text-[11px] text-warning`,children:a(`system.notificationConditionWidgets.withNeitherASoundNor`,`With neither a sound nor a level threshold this can never match — every sample would be a hit, so the engine refuses it rather than notifying on silence.`)}):null]})}function vr({value:e,onChange:t}){let{t:n}=j(),i=e?.values??[],a=e?.maxDistance??1,s=e=>t(e.length>0?{values:e,maxDistance:a}:void 0),c=e=>t(i.length>0?{values:i,maxDistance:e}:void 0),l=Xe().filter(e=>!i.includes(e));return r(`div`,{className:`mt-1 space-y-1.5`,children:[o(or,{value:i,placeholder:n(`system.notificationConditionWidgets.plateText`,`Plate text…`),onChange:s}),l.length>0&&r(`div`,{className:`flex flex-wrap items-center gap-1`,children:[o(`span`,{className:`text-[10px] text-foreground-subtle`,children:n(`system.notificationConditionWidgets.seen`,`Seen:`)}),l.slice(0,12).map(e=>o(`button`,{type:`button`,onClick:()=>s([...i,e]),className:`rounded border border-border px-1.5 py-0.5 text-[10px] text-foreground-subtle hover:bg-surface-hover hover:text-foreground`,children:e},e))]}),r(`label`,{className:`flex items-center gap-2 text-[11px] text-foreground-subtle`,children:[n(`system.notificationConditionWidgets.maxDistance`,`Max distance`),o(O,{type:`number`,min:0,max:3,step:1,value:a,className:`max-w-[5rem]`,onChange:e=>{let t=Number(e.target.value);c(Number.isFinite(t)?Math.max(0,Math.min(3,t)):1)}})]})]})}function yr({gateable:e,value:t,onChange:n}){let{t:i}=j(),a=rr(),s=e.find(e=>e.id===t?.deviceId),c=new Set(t?.states??[]),l=e=>{let t=Number(e);if(!Number.isFinite(t)||t===0)return n(void 0);n({deviceId:t,states:[]})},u=e=>{if(t===void 0)return;let r=new Set(c);r.has(e)?r.delete(e):r.add(e),n(r.size===0?void 0:{deviceId:t.deviceId,states:[...r]})};return r(`div`,{className:`mt-1 space-y-2`,children:[o(k,{value:t===void 0?``:String(t.deviceId),options:[{value:``,label:i(`system.notificationConditionWidgets.noDeviceGate`,`— no device gate —`)},...e.map(e=>({value:String(e.id),label:e.name}))],onChange:e=>l(e.target.value)}),s!==void 0&&o(`div`,{className:`flex flex-wrap gap-1.5`,children:s.states.map(e=>o(`button`,{type:`button`,onClick:()=>u(e),className:c.has(e)?`rounded-md border border-primary bg-primary/10 px-2 py-0.5 text-[11px] text-primary`:`rounded-md border border-border px-2 py-0.5 text-[11px] text-foreground-subtle`,children:a(e)},e))}),s!==void 0&&s.states.length===0&&o(`p`,{className:`text-[10px] text-foreground-subtle mt-0.5`,children:i(`system.notificationConditionWidgets.thisDeviceReportsNoState`,`This device reports no state the gate can read, so it cannot arm a rule.`)}),t!==void 0&&o(`p`,{className:`text-[10px] text-foreground-subtle mt-0.5`,children:i(`system.notificationConditionWidgets.theRuleIsSilentWhile`,`The rule is silent while the device is in any other state — including when its state cannot be read at all.`)})]})}function br(e,t){let n=t(e.verdict);return e.latched?`${n} · ${t(`latched`)}`:n}function xr({scenes:e,value:t,onChange:n}){let{t:i}=j(),a=rr(),s=e.find(e=>e.sceneId===t?.sceneId),c=r=>{if(r===``)return n(void 0);let i=e.find(e=>e.sceneId===r);if(i===void 0)return n(void 0);n({sceneId:r,deviceId:i.deviceId,requiredState:t?.requiredState??`diverged`,...t?.latched===void 0?{}:{latched:t.latched}})},l=e=>{t!==void 0&&n({...t,requiredState:e===`matched`?`matched`:`diverged`})},u=e=>{if(t!==void 0){if(e===``){let{latched:e,...r}=t;return n(r)}n({...t,latched:e===`latched`})}};return e.length===0?o(`p`,{className:Q,children:i(`notificationRules.scene.none`,`No scenes yet — create one on the Scenes page.`)}):r(`div`,{className:`mt-1 space-y-2`,children:[o(k,{value:t?.sceneId??``,options:[{value:``,label:i(`notificationRules.scene.noGate`,`— no scene gate —`)},...e.map(e=>({value:e.sceneId,label:`${e.cameraName} · ${e.label} — ${br(e,a)}`}))],onChange:e=>c(e.target.value)}),t!==void 0&&r(`div`,{className:`flex flex-wrap items-center gap-2`,children:[r(`label`,{className:`flex items-center gap-2 text-[11px] text-foreground-subtle`,children:[i(`notificationRules.scene.onlyWhile`,`Only while it is`),o(k,{value:t.requiredState,options:[{value:`diverged`,label:a(`diverged`)},{value:`matched`,label:a(`matched`)}],onChange:e=>l(e.target.value)})]}),r(`label`,{className:`flex items-center gap-2 text-[11px] text-foreground-subtle`,children:[i(`notificationRules.scene.read`,`Read`),o(k,{value:t.latched===void 0?``:t.latched?`latched`:`live`,options:[{value:``,label:s===void 0?i(`notificationRules.scene.readOwn`,`The scene's own setting`):`${i(`notificationRules.scene.readOwn`,`The scene's own setting`)} (${a(s.emit)})`},{value:`latched`,label:a(`latched`)},{value:`live`,label:a(`live`)}],onChange:e=>u(e.target.value)})]})]}),s!==void 0&&r(`p`,{className:`text-[10px] text-foreground-subtle mt-0.5`,children:[i(`notificationRules.scene.rightNow`,`Right now:`),` `,br(s,a)]}),t!==void 0&&s===void 0&&o(`p`,{className:`text-[10px] text-foreground-subtle mt-0.5`,children:i(`notificationRules.scene.missing`,`This scene no longer exists — pick another or remove the gate.`)})]})}var $={days:[0,1,2,3,4,5,6],minute:480},Sr=[{value:1,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_mon`)}},{value:2,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_tue`)}},{value:3,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_wed`)}},{value:4,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_thu`)}},{value:5,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_fri`)}},{value:6,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_sat`)}},{value:0,get label(){return A.t(`helpers.notificationSystemEventDelivery.wd_sun`)}}];function Cr(e){let t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,`0`)}:${String(n).padStart(2,`0`)}`}function wr(e){let[t,n]=e.split(`:`),r=Number(t)*60+Number(n);return Number.isFinite(r)?Math.max(0,Math.min(1439,r)):0}function Tr(e){if(typeof e!=`object`||!e||!(`data`in e))return;let t=e.data;if(!(typeof t!=`object`||!t||!(`code`in t)))return typeof t.code==`string`?t.code:void 0}function Er(e){let t=Object.entries(e).map(([e,t])=>`${e} ${String(t)}`);return t.length>0?A.t(`helpers.notificationSystemEventDelivery.dropped`,{parts:t.join(`, `)}):null}function Dr(e,t,n,r=`rule`){if(e===`error`)return Tr(n)===`NOT_FOUND`?{lines:[`This hub does not serve summary rules yet — update @camstack/server first. A rule saved now would be stored without its summary, and stay instant.`]}:{lines:[`The preview could not be read: ${n instanceof Error?n.message:String(n)}`]};if(e!==`success`||t===void 0)return null;let i=[];if(r===`section`&&t.split===void 0&&i.push(`This hub does not send per-category summaries yet — update @camstack/server first. Until then it sends one message.`),t.empty)i.push(`Nothing to report right now — no notification would be sent.`);else if(t.split===`section`&&t.rows!==void 0){let e=t.rows.length;i.push(`${String(e)} notification${e===1?``:`s`} would be sent now, one per category:`);for(let e of t.rows)i.push(`${e.title}\n${e.text}`)}else i.push(`${String(t.count)} item(s) would be sent now:\n${t.text}`);let a=Er(t.dropped);return a!==null&&i.push(a),t.excludedGroups.includes(`backups-exports`)&&i.push(`Backups and exports are completed jobs, not a state — they are not in a summary.`),{lines:i}}function Or(e,t){return{...e,schedule:t}}function kr(e,t){let{split:n,...r}=e;return t===`section`?{...r,split:t}:r}function Ar(e){return Cr(e)}function jr(e){return wr(e)}function Mr(){return{days:[1,2,3,4,5],startMinute:540,endMinute:1080}}function Nr(e){return{days:[...$.days],minute:e}}var Pr=`Always active — add a window to restrict when the rule fires.`;function Fr({value:e,onChange:t,mode:n=`windows`,defaultMinute:r=$.minute,emptyHint:i}){return n===`times`?o(Lr,{value:e,onChange:t,defaultMinute:r}):o(Ir,{value:e,onChange:t,emptyHint:i??Pr})}function Ir({value:e,onChange:t,emptyHint:n}){let{t:i}=j(),a=e?.windows??[],s=e?.invert??!1,c=(n,r)=>{if(n.length===0){t(void 0);return}t({windows:n,...r?{invert:!0}:{},...e?.timezone?{timezone:e.timezone}:{}})},l=()=>c([...a,Mr()],s),d=e=>c(a.filter((t,n)=>n!==e),s),f=(e,t)=>c(a.map((n,r)=>r===e?t:n),s);return r(`div`,{className:`mt-1 space-y-2`,"data-testid":`schedule-field-windows`,children:[a.length===0?o(`p`,{className:Q,children:n}):a.map((e,t)=>o(Rr,{window:e,onChange:e=>f(t,e),onRemove:()=>d(t)},t)),r(`div`,{className:`flex items-center gap-3`,children:[r(`button`,{type:`button`,onClick:l,className:`flex items-center gap-1 rounded-md bg-surface-hover px-2 py-1 text-[11px] text-foreground-subtle hover:text-foreground`,children:[o(u,{className:`h-3 w-3`}),` `,i(`system.notificationScheduleField.addWindow`)]}),a.length>0&&r(`label`,{className:`flex items-center gap-1.5 text-[11px] text-foreground-subtle`,children:[o(`input`,{type:`checkbox`,checked:s,onChange:e=>c([...a],e.target.checked),className:`accent-primary`}),i(`system.notificationScheduleField.activeOutsideTheWindows`,`Active outside the windows`)]})]})]})}function Lr({value:e,onChange:t,defaultMinute:n}){let{t:i}=j(),a=e?.timezone,s=e===void 0?{times:[],approximated:!1}:y(e);if(s===null)return r(`div`,{className:`mt-1 space-y-2`,"data-testid":`schedule-field-times-fallback`,children:[o(`p`,{className:Q,children:i(`system.notificationScheduleField.invertedScheduleShownAsBands`,`Inverted schedule — shown as bands. Clear the invert flag (or the windows) to author punctual times.`)}),o(Ir,{value:e,onChange:t,emptyHint:Pr})]});let c=s.times,l=e=>{if(e.length===0){t(void 0);return}t(S(e,a))};return r(`div`,{className:`mt-1 space-y-2`,"data-testid":`schedule-field-times`,children:[s.approximated&&o(`p`,{className:`text-[10px] text-foreground-subtle mt-0.5`,"data-testid":`schedule-field-times-approximated`,children:i(`system.notificationScheduleField.shownAsSendAtTimes`,`Shown as send-at times from each window's end (when the summary fires). Edit or save to store them as punctual one-minute windows.`)}),c.length===0?o(`p`,{className:Q,children:i(`system.notificationScheduleField.noTimesYetAddOne`,`No times yet — add one to send on those days at that clock time.`)}):c.map((e,t)=>o(zr,{time:e,index:t,onChange:e=>l(c.map((n,r)=>r===t?e:n)),onRemove:c.length>1?()=>l(c.filter((e,n)=>n!==t)):void 0},t)),r(`button`,{type:`button`,onClick:()=>l([...c,Nr(n)]),className:`flex items-center gap-1 rounded-md bg-surface-hover px-2 py-1 text-[11px] text-foreground-subtle hover:text-foreground`,"data-testid":`schedule-field-add-time`,children:[o(u,{className:`h-3 w-3`}),` `,i(`system.notificationScheduleField.addTime`)]})]})}function Rr({window:e,onChange:t,onRemove:n}){let{t:i}=j();return r(`div`,{className:`space-y-1.5 rounded-md border border-border p-2`,children:[r(`div`,{className:`flex items-center gap-2 text-xs`,children:[o(`input`,{type:`time`,value:Ar(e.startMinute),onChange:n=>t({...e,startMinute:jr(n.target.value)}),className:`rounded-md border border-border bg-background px-1 py-0.5`}),o(`span`,{className:`text-foreground-subtle`,children:`→`}),o(`input`,{type:`time`,value:Ar(e.endMinute),onChange:n=>t({...e,endMinute:jr(n.target.value)}),className:`rounded-md border border-border bg-background px-1 py-0.5`}),o(`span`,{className:`flex-1`}),o(`button`,{type:`button`,onClick:n,"aria-label":i(`system.notificationScheduleField.removeWindow`,`Remove window`),className:`text-foreground-subtle hover:text-danger`,children:o(s,{className:`h-3.5 w-3.5`})})]}),o(Br,{days:e.days,onToggle:n=>{let r=e.days.includes(n)?e.days.filter(e=>e!==n):[...e.days,n];r.length!==0&&t({...e,days:r})}})]})}function zr({time:e,index:t,onChange:n,onRemove:i}){let{t:a}=j();return r(`div`,{className:`space-y-1.5 rounded-md border border-border p-2`,children:[r(`div`,{className:`flex items-center gap-2 text-xs`,children:[o(`span`,{className:`text-foreground-subtle`,children:a(`system.notificationScheduleField.at`,`At`)}),o(`input`,{type:`time`,value:Cr(e.minute),onChange:t=>n({...e,minute:wr(t.target.value)}),className:`rounded-md border border-border bg-background px-1 py-0.5`,"data-testid":`schedule-field-time-${String(t)}`}),o(`span`,{className:`flex-1`}),i!==void 0&&o(`button`,{type:`button`,onClick:i,"aria-label":a(`system.notificationScheduleField.removeTime`,`Remove time`),className:`text-foreground-subtle hover:text-danger`,children:o(s,{className:`h-3.5 w-3.5`})})]}),o(Br,{days:e.days,onToggle:t=>{let r=e.days.includes(t)?e.days.filter(e=>e!==t):[...e.days,t];r.length!==0&&n({...e,days:r})}})]})}function Br({days:e,onToggle:t}){return o(`div`,{className:`flex flex-wrap gap-1`,children:Sr.map(n=>o(`button`,{type:`button`,onClick:()=>t(n.value),className:`rounded px-1.5 py-0.5 text-[10px] ${e.includes(n.value)?`bg-primary text-primary-foreground`:`bg-surface-hover text-foreground-subtle`}`,children:n.label},n.value))})}export{Qt as $,P as $t,hn as A,Dt as At,wn as B,rt as Bt,tr as C,ft as Ct,qn as D,mt as Dt,Jn as E,I as Et,bn as F,ct as Ft,q as G,pt as Gt,gn as H,yt as Ht,An as I,R as It,ln as J,et as Jt,J as K,dt as Kt,yn as L,Ze as Lt,Ln as M,St as Mt,Tn as N,bt as Nt,Hn as O,gt as Ot,Cn as P,B as Pt,cn as Q,$e as Qt,X as R,Ot as Rt,$n as S,kt as St,Yn as T,ut as Tt,kn as U,At as Ut,En as V,it as Vt,pn as W,lt as Wt,dn as X,ht as Xt,un as Y,_t as Yt,fn as Z,Ct as Zt,or as _,Ke as _n,V as _t,kr as a,We as an,tn as at,er as b,Wt as bt,ar as c,Ve as cn,qt as ct,Q as d,Ge as dn,Jt as dt,Ye as en,K as et,ir as f,ze as fn,Kt as ft,xr as g,qe as gn,Ht as gt,vr as h,Ue as hn,zt as ht,Or as i,Me as in,G as it,Mn as j,nt as jt,mn as k,xt as kt,yr as l,Re as ln,Bt as lt,hr as m,Ne as mn,Xt as mt,$ as n,He as nn,an as nt,_r as o,Pe as on,nn as ot,cr as p,Ie as pn,Yt as pt,Y as q,Qe as qt,Dr as r,Le as rn,W as rt,lr as s,Fe as sn,en as st,Fr as t,N as tn,rn as tt,fr as u,Be as un,Zt as ut,sr as v,Lt as vt,Zn as w,st as wt,Qn as x,vt as xt,dr as y,Ut as yt,Dn as z,z as zt};
@@ -0,0 +1 @@
1
+ import{$ as e,A as t,B as n,D as r,G as i,J as a,L as o,O as s,R as c,S as l,V as u,Y as d,b as f,k as p,x as m}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEHpkaJP.js";import{Qt as h}from"./client-Cj9cIFJV.js";e();var g=/\{\{\s*(\w+)\s*\}\}/g;function _(e,t){return typeof e==`string`?e:t===1?e.one:e.other}var v=(e,t,n)=>{let r=_(t,n?.count);return n?r.replace(g,(e,t)=>{let r=n[t];return r==null?e:String(r)}):r},y=s(v);function ee({t:e,children:t}){return m(y.Provider,{value:e,children:t})}function b(){return c(y)}var te=/<(\d+)>([\s\S]*?)<\/\1>/g;function x(e,t){let n=[],i=0;for(let a of e.matchAll(te)){let o=a.index??0;o>i&&n.push(e.slice(i,o));let s=t[Number(a[1])];n.push(s?r(s,void 0,a[2]??``):a[2]??``),i=o+a[0].length}return i<e.length&&n.push(e.slice(i)),n}function ne({uiKey:e,fallback:t,components:n=[],values:r}){return m(f,{children:x(b()(e,t,r),n).map((e,t)=>m(u,{children:e},t))})}var S=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),re=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ie=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),C=e=>{let t=ie(e);return t.charAt(0).toUpperCase()+t.slice(1)},ae={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},oe=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1};e();var se=t(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>p(`svg`,{ref:c,...ae,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:S(`lucide`,i),...!a&&!oe(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>p(e,t)),...Array.isArray(a)?a:[a]]));e();var w=(e,n)=>{let r=t(({className:t,...r},i)=>p(se,{ref:i,iconNode:n,className:S(`lucide-${re(C(e))}`,`lucide-${e}`,t),...r}));return r.displayName=C(e),r},ce=w(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),le=w(`air-vent`,[[`path`,{d:`M18 17.5a2.5 2.5 0 1 1-4 2.03V12`,key:`yd12zl`}],[`path`,{d:`M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`larmp2`}],[`path`,{d:`M6 8h12`,key:`6g4wlu`}],[`path`,{d:`M6.6 15.572A2 2 0 1 0 10 17v-5`,key:`1x1kqn`}]]),ue=w(`alarm-smoke`,[[`path`,{d:`M11 21c0-2.5 2-2.5 2-5`,key:`1sicvv`}],[`path`,{d:`M16 21c0-2.5 2-2.5 2-5`,key:`1o3eny`}],[`path`,{d:`m19 8-.8 3a1.25 1.25 0 0 1-1.2 1H7a1.25 1.25 0 0 1-1.2-1L5 8`,key:`1bvca4`}],[`path`,{d:`M21 3a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a1 1 0 0 1 1-1z`,key:`x3qr1j`}],[`path`,{d:`M6 21c0-2.5 2-2.5 2-5`,key:`i3w1gp`}]]),de=w(`arrow-down-to-line`,[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]),fe=w(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),pe=w(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),me=w(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),he=w(`arrow-up-to-line`,[[`path`,{d:`M5 3h14`,key:`7usisc`}],[`path`,{d:`m18 13-6-6-6 6`,key:`1kf1n9`}],[`path`,{d:`M12 7v14`,key:`1akyts`}]]),ge=w(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),_e=w(`baby`,[[`path`,{d:`M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5`,key:`1u7htd`}],[`path`,{d:`M15 12h.01`,key:`1k8ypt`}],[`path`,{d:`M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1`,key:`11xh7x`}],[`path`,{d:`M9 12h.01`,key:`157uk2`}]]),ve=w(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),ye=w(`bath`,[[`path`,{d:`M10 4 8 6`,key:`1rru8s`}],[`path`,{d:`M17 19v2`,key:`ts1sot`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`M7 19v2`,key:`12npes`}],[`path`,{d:`M9 5 7.621 3.621A2.121 2.121 0 0 0 4 5v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5`,key:`14ym8i`}]]),be=w(`battery-full`,[[`path`,{d:`M10 10v4`,key:`1mb2ec`}],[`path`,{d:`M14 10v4`,key:`1nt88p`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 10v4`,key:`1n77qd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),xe=w(`battery-low`,[[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 14v-4`,key:`14a6bd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),Se=w(`battery-medium`,[[`path`,{d:`M10 14v-4`,key:`suye4c`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 14v-4`,key:`14a6bd`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),T=w(`battery-warning`,[[`path`,{d:`M10 17h.01`,key:`nbq80n`}],[`path`,{d:`M10 7v6`,key:`nne03l`}],[`path`,{d:`M14 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2`,key:`1m83kb`}],[`path`,{d:`M22 14v-4`,key:`14q9d5`}],[`path`,{d:`M6 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2`,key:`h8lgfh`}]]),E=w(`battery`,[[`path`,{d:`M 22 14 L 22 10`,key:`nqc4tb`}],[`rect`,{x:`2`,y:`6`,width:`16`,height:`12`,rx:`2`,key:`13zb55`}]]),D=w(`bell-ring`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M22 8c0-2.3-.8-4.3-2-6`,key:`5bb3ad`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}],[`path`,{d:`M4 2C2.8 3.7 2 5.7 2 8`,key:`tap9e0`}]]),O=w(`bell`,[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]),k=w(`bike`,[[`circle`,{cx:`18.5`,cy:`17.5`,r:`3.5`,key:`15x4ox`}],[`circle`,{cx:`5.5`,cy:`17.5`,r:`3.5`,key:`1noe27`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`path`,{d:`M12 17.5V14l-3-3 4-3 2 3h2`,key:`1npguv`}]]),A=w(`bird`,[[`path`,{d:`M16 7h.01`,key:`1kdx03`}],[`path`,{d:`M3.4 18H12a8 8 0 0 0 8-8V7a4 4 0 0 0-7.28-2.3L2 20`,key:`oj1oa8`}],[`path`,{d:`m20 7 2 .5-2 .5`,key:`12nv4d`}],[`path`,{d:`M10 18v3`,key:`1yea0a`}],[`path`,{d:`M14 17.75V21`,key:`1pymcb`}],[`path`,{d:`M7 18a6 6 0 0 0 3.84-10.61`,key:`1npnn0`}]]),j=w(`blinds`,[[`path`,{d:`M3 3h18`,key:`o7r712`}],[`path`,{d:`M20 7H8`,key:`gd2fo2`}],[`path`,{d:`M20 11H8`,key:`1ynp89`}],[`path`,{d:`M10 19h10`,key:`19hjk5`}],[`path`,{d:`M8 15h12`,key:`1yqzne`}],[`path`,{d:`M4 3v14`,key:`fggqzn`}],[`circle`,{cx:`4`,cy:`19`,r:`2`,key:`p3m9r0`}]]),Ce=w(`bone`,[[`path`,{d:`M17 10c.7-.7 1.69 0 2.5 0a2.5 2.5 0 1 0 0-5 .5.5 0 0 1-.5-.5 2.5 2.5 0 1 0-5 0c0 .81.7 1.8 0 2.5l-7 7c-.7.7-1.69 0-2.5 0a2.5 2.5 0 0 0 0 5c.28 0 .5.22.5.5a2.5 2.5 0 1 0 5 0c0-.81-.7-1.8 0-2.5Z`,key:`w610uw`}]]),we=w(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Te=w(`box`,[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]]),Ee=w(`bug`,[[`path`,{d:`M12 20v-9`,key:`1qisl0`}],[`path`,{d:`M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z`,key:`uouzyp`}],[`path`,{d:`M14.12 3.88 16 2`,key:`qol33r`}],[`path`,{d:`M21 21a4 4 0 0 0-3.81-4`,key:`1b0z45`}],[`path`,{d:`M21 5a4 4 0 0 1-3.55 3.97`,key:`5cxbf6`}],[`path`,{d:`M22 13h-4`,key:`1jl80f`}],[`path`,{d:`M3 21a4 4 0 0 1 3.81-4`,key:`1fjd4g`}],[`path`,{d:`M3 5a4 4 0 0 0 3.55 3.97`,key:`1d7oge`}],[`path`,{d:`M6 13H2`,key:`82j7cp`}],[`path`,{d:`m8 2 1.88 1.88`,key:`fmnt4t`}],[`path`,{d:`M9 7.13V6a3 3 0 1 1 6 0v1.13`,key:`1vgav8`}]]),De=w(`bus`,[[`path`,{d:`M8 6v6`,key:`18i7km`}],[`path`,{d:`M15 6v6`,key:`1sg6z9`}],[`path`,{d:`M2 12h19.6`,key:`de5uta`}],[`path`,{d:`M18 18h3s.5-1.7.8-2.8c.1-.4.2-.8.2-1.2 0-.4-.1-.8-.2-1.2l-1.4-5C20.1 6.8 19.1 6 18 6H4a2 2 0 0 0-2 2v10h3`,key:`1wwztk`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}],[`path`,{d:`M9 18h5`,key:`lrx6i`}],[`circle`,{cx:`16`,cy:`18`,r:`2`,key:`1v4tcr`}]]),Oe=w(`cable`,[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]),ke=w(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),Ae=w(`car`,[[`path`,{d:`M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2`,key:`5owen`}],[`circle`,{cx:`7`,cy:`17`,r:`2`,key:`u2ysq9`}],[`path`,{d:`M9 17h6`,key:`r8uit2`}],[`circle`,{cx:`17`,cy:`17`,r:`2`,key:`axvx0g`}]]),je=w(`cast`,[[`path`,{d:`M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6`,key:`3zrzxg`}],[`path`,{d:`M2 12a9 9 0 0 1 8 8`,key:`g6cvee`}],[`path`,{d:`M2 16a5 5 0 0 1 4 4`,key:`1y1dii`}],[`line`,{x1:`2`,x2:`2.01`,y1:`20`,y2:`20`,key:`xu2jvo`}]]),Me=w(`cat`,[[`path`,{d:`M12 5c.67 0 1.35.09 2 .26 1.78-2 5.03-2.84 6.42-2.26 1.4.58-.42 7-.42 7 .57 1.07 1 2.24 1 3.44C21 17.9 16.97 21 12 21s-9-3-9-7.56c0-1.25.5-2.4 1-3.44 0 0-1.89-6.42-.5-7 1.39-.58 4.72.23 6.5 2.23A9.04 9.04 0 0 1 12 5Z`,key:`x6xyqk`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M11.25 16.25h1.5L12 17l-.75-.75Z`,key:`12kq1m`}]]),Ne=w(`chart-line`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`m19 9-5 5-4-4-3 3`,key:`2osh9i`}]]),Pe=w(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),M=w(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Fe=w(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),N=w(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Ie=w(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Le=w(`chevrons-down-up`,[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]),Re=w(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),ze=w(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Be=w(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),Ve=w(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),He=w(`circle-dot`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Ue=w(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),We=w(`circle-plus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}],[`path`,{d:`M12 8v8`,key:`napkw2`}]]),Ge=w(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ke=w(`circle-stop`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`rect`,{x:`9`,y:`9`,width:`6`,height:`6`,rx:`1`,key:`1ssd4o`}]]),qe=w(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Je=w(`clapperboard`,[[`path`,{d:`m12.296 3.464 3.02 3.956`,key:`qash78`}],[`path`,{d:`M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3z`,key:`1h7j8b`}],[`path`,{d:`M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`4lm6w1`}],[`path`,{d:`m6.18 5.276 3.1 3.899`,key:`zjj9t3`}]]),Ye=w(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]),Xe=w(`cloud-fog`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 17H7`,key:`pygtm1`}],[`path`,{d:`M17 21H9`,key:`1u2q02`}]]),Ze=w(`cloud-lightning`,[[`path`,{d:`M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973`,key:`1cez44`}],[`path`,{d:`m13 12-3 5h4l-3 5`,key:`1t22er`}]]),Qe=w(`cloud-rain`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M16 14v6`,key:`1j4efv`}],[`path`,{d:`M8 14v6`,key:`17c4r9`}],[`path`,{d:`M12 16v6`,key:`c8a4gj`}]]),$e=w(`cloud-snow`,[[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`M8 15h.01`,key:`a7atzg`}],[`path`,{d:`M8 19h.01`,key:`puxtts`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M12 21h.01`,key:`h35vbk`}],[`path`,{d:`M16 15h.01`,key:`rnfrdf`}],[`path`,{d:`M16 19h.01`,key:`1vcnzz`}]]),et=w(`cloud-sun`,[[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}],[`path`,{d:`M15.947 12.65a4 4 0 0 0-5.925-4.128`,key:`dpwdj0`}],[`path`,{d:`M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z`,key:`s09mg5`}]]),tt=w(`cloud`,[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]),nt=w(`cog`,[[`path`,{d:`M11 10.27 7 3.34`,key:`16pf9h`}],[`path`,{d:`m11 13.73-4 6.93`,key:`794ttg`}],[`path`,{d:`M12 22v-2`,key:`1osdcq`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M14 12h8`,key:`4f43i9`}],[`path`,{d:`m17 20.66-1-1.73`,key:`eq3orb`}],[`path`,{d:`m17 3.34-1 1.73`,key:`2wel8s`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`m20.66 17-1.73-1`,key:`sg0v6f`}],[`path`,{d:`m20.66 7-1.73 1`,key:`1ow05n`}],[`path`,{d:`m3.34 17 1.73-1`,key:`nuk764`}],[`path`,{d:`m3.34 7 1.73 1`,key:`1ulond`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`circle`,{cx:`12`,cy:`12`,r:`8`,key:`46899m`}]]),rt=w(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),it=w(`cpu`,[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]),at=w(`crosshair`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]),ot=w(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),st=w(`dog`,[[`path`,{d:`M11.25 16.25h1.5L12 17z`,key:`w7jh35`}],[`path`,{d:`M16 14v.5`,key:`1lajdz`}],[`path`,{d:`M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444a11.702 11.702 0 0 0-.493-3.309`,key:`u7s9ue`}],[`path`,{d:`M8 14v.5`,key:`1nzgdb`}],[`path`,{d:`M8.5 8.5c-.384 1.05-1.083 2.028-2.344 2.5-1.931.722-3.576-.297-3.656-1-.113-.994 1.177-6.53 4-7 1.923-.321 3.651.845 3.651 2.235A7.497 7.497 0 0 1 14 5.277c0-1.39 1.844-2.598 3.767-2.277 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5`,key:`v8hric`}]]),ct=w(`door-closed`,[[`path`,{d:`M10 12h.01`,key:`1kxr2c`}],[`path`,{d:`M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14`,key:`36qu9e`}],[`path`,{d:`M2 20h20`,key:`owomy5`}]]),lt=w(`door-open`,[[`path`,{d:`M11 20H2`,key:`nlcfvz`}],[`path`,{d:`M11 4.562v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561z`,key:`au4z13`}],[`path`,{d:`M11 4H8a2 2 0 0 0-2 2v14`,key:`74r1mk`}],[`path`,{d:`M14 12h.01`,key:`1jfl7z`}],[`path`,{d:`M22 20h-3`,key:`vhrsz`}]]),ut=w(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),dt=w(`droplet`,[[`path`,{d:`M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z`,key:`c7niix`}]]),ft=w(`droplets`,[[`path`,{d:`M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z`,key:`1ptgy4`}],[`path`,{d:`M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97`,key:`1sl1rz`}]]),pt=w(`ellipsis-vertical`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`12`,cy:`5`,r:`1`,key:`gxeob9`}],[`circle`,{cx:`12`,cy:`19`,r:`1`,key:`lyex9k`}]]),mt=w(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),ht=w(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),gt=w(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),_t=w(`fan`,[[`path`,{d:`M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z`,key:`484a7f`}],[`path`,{d:`M12 12v.01`,key:`u5ubse`}]]),vt=w(`feather`,[[`path`,{d:`M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z`,key:`18jl4k`}],[`path`,{d:`M16 8 2 22`,key:`vp34q`}],[`path`,{d:`M17.5 15H9`,key:`1oz8nu`}]]),yt=w(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),bt=w(`flame`,[[`path`,{d:`M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4`,key:`1slcih`}]]),xt=w(`flashlight-off`,[[`path`,{d:`M11.652 6H18`,key:`voqkpr`}],[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M16 16v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V6`,key:`dzyf92`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M7.649 2H17a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8a4 4 0 0 0-.55 1.007`,key:`1hvcfn`}]]),St=w(`flashlight`,[[`path`,{d:`M12 13v1`,key:`176q98`}],[`path`,{d:`M17 2a1 1 0 0 1 1 1v4a3 3 0 0 1-.6 1.8l-.6.8A4 4 0 0 0 16 12v8a2 2 0 0 1-2 2H10a2 2 0 0 1-2-2v-8a4 4 0 0 0-.8-2.4l-.6-.8A3 3 0 0 1 6 7V3a1 1 0 0 1 1-1z`,key:`17vh7j`}],[`path`,{d:`M6 6h12`,key:`n6hhss`}]]),Ct=w(`footprints`,[[`path`,{d:`M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z`,key:`1dudjm`}],[`path`,{d:`M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z`,key:`l2t8xc`}],[`path`,{d:`M16 17h4`,key:`1dejxt`}],[`path`,{d:`M4 13h4`,key:`1bwh8b`}]]),wt=w(`funnel`,[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]]),Tt=w(`gamepad-2`,[[`line`,{x1:`6`,x2:`10`,y1:`11`,y2:`11`,key:`1gktln`}],[`line`,{x1:`8`,x2:`8`,y1:`9`,y2:`13`,key:`qnk9ow`}],[`line`,{x1:`15`,x2:`15.01`,y1:`12`,y2:`12`,key:`krot7o`}],[`line`,{x1:`18`,x2:`18.01`,y1:`10`,y2:`10`,key:`1lcuu1`}],[`path`,{d:`M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z`,key:`mfqc10`}]]),Et=w(`gauge`,[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]),Dt=w(`graduation-cap`,[[`path`,{d:`M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z`,key:`j76jl0`}],[`path`,{d:`M22 10v6`,key:`1lu8f3`}],[`path`,{d:`M6 12.5V16a6 3 0 0 0 12 0v-3.5`,key:`1r8lef`}]]),Ot=w(`grid-2x2`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),kt=w(`grip-horizontal`,[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]),At=w(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),jt=w(`hand`,[[`path`,{d:`M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2`,key:`1fvzgz`}],[`path`,{d:`M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2`,key:`1kc0my`}],[`path`,{d:`M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8`,key:`10h0bg`}],[`path`,{d:`M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15`,key:`1s1gnw`}]]),Mt=w(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),Nt=w(`hash`,[[`line`,{x1:`4`,x2:`20`,y1:`9`,y2:`9`,key:`4lhtct`}],[`line`,{x1:`4`,x2:`20`,y1:`15`,y2:`15`,key:`vyu0kd`}],[`line`,{x1:`10`,x2:`8`,y1:`3`,y2:`21`,key:`1ggp8o`}],[`line`,{x1:`16`,x2:`14`,y1:`3`,y2:`21`,key:`weycgp`}]]),Pt=w(`heater`,[[`path`,{d:`M11 8c2-3-2-3 0-6`,key:`1ldv5m`}],[`path`,{d:`M15.5 8c2-3-2-3 0-6`,key:`1otqoz`}],[`path`,{d:`M6 10h.01`,key:`1lbq93`}],[`path`,{d:`M6 14h.01`,key:`zudwn7`}],[`path`,{d:`M10 16v-4`,key:`1c25yv`}],[`path`,{d:`M14 16v-4`,key:`1dkbt8`}],[`path`,{d:`M18 16v-4`,key:`1yg9me`}],[`path`,{d:`M20 6a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3`,key:`1ubg90`}],[`path`,{d:`M5 20v2`,key:`1abpe8`}],[`path`,{d:`M19 20v2`,key:`kqn6ft`}]]),Ft=w(`history`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),It=w(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Lt=w(`image-off`,[[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}],[`path`,{d:`M10.41 10.41a2 2 0 1 1-2.83-2.83`,key:`1bzlo9`}],[`line`,{x1:`13.5`,x2:`6`,y1:`13.5`,y2:`21`,key:`1q0aeu`}],[`line`,{x1:`18`,x2:`21`,y1:`12`,y2:`15`,key:`5mozeu`}],[`path`,{d:`M3.59 3.59A1.99 1.99 0 0 0 3 5v14a2 2 0 0 0 2 2h14c.55 0 1.052-.22 1.41-.59`,key:`mmje98`}],[`path`,{d:`M21 15V5a2 2 0 0 0-2-2H9`,key:`43el77`}]]),Rt=w(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),zt=w(`inbox`,[[`polyline`,{points:`22 12 16 12 14 15 10 15 8 12 2 12`,key:`o97t9d`}],[`path`,{d:`M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`oot6mr`}]]),Bt=w(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Vt=w(`laugh`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M18 13a6 6 0 0 1-6 5 6 6 0 0 1-6-5h12Z`,key:`b2q4dd`}],[`line`,{x1:`9`,x2:`9.01`,y1:`9`,y2:`9`,key:`yxxnd0`}],[`line`,{x1:`15`,x2:`15.01`,y1:`9`,y2:`9`,key:`1p4y9e`}]]),Ht=w(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),Ut=w(`leaf`,[[`path`,{d:`M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z`,key:`nnexq3`}],[`path`,{d:`M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12`,key:`mt58a7`}]]),Wt=w(`lightbulb`,[[`path`,{d:`M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5`,key:`1gvzjb`}],[`path`,{d:`M9 18h6`,key:`x1upvd`}],[`path`,{d:`M10 22h4`,key:`ceow96`}]]),Gt=w(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),Kt=w(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),qt=w(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),Jt=w(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Yt=w(`locate-fixed`,[[`line`,{x1:`2`,x2:`5`,y1:`12`,y2:`12`,key:`bvdh0s`}],[`line`,{x1:`19`,x2:`22`,y1:`12`,y2:`12`,key:`1tbv5k`}],[`line`,{x1:`12`,x2:`12`,y1:`2`,y2:`5`,key:`11lu5j`}],[`line`,{x1:`12`,x2:`12`,y1:`19`,y2:`22`,key:`x3vr5v`}],[`circle`,{cx:`12`,cy:`12`,r:`7`,key:`fim9np`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Xt=w(`lock-open`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 9.9-1`,key:`1mm8w8`}]]),Zt=w(`lock`,[[`rect`,{width:`18`,height:`11`,x:`3`,y:`11`,rx:`2`,ry:`2`,key:`1w4ew1`}],[`path`,{d:`M7 11V7a5 5 0 0 1 10 0v4`,key:`fwvmzm`}]]),Qt=w(`mail`,[[`path`,{d:`m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7`,key:`132q7q`}],[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}]]),$t=w(`map-pin`,[[`path`,{d:`M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0`,key:`1r0f0z`}],[`circle`,{cx:`12`,cy:`10`,r:`3`,key:`ilqhr7`}]]),en=w(`maximize-2`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`m21 3-7 7`,key:`1l2asr`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M9 21H3v-6`,key:`wtvkvv`}]]),tn=w(`megaphone`,[[`path`,{d:`M11 6a13 13 0 0 0 8.4-2.8A1 1 0 0 1 21 4v12a1 1 0 0 1-1.6.8A13 13 0 0 0 11 14H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2z`,key:`q8bfy3`}],[`path`,{d:`M6 14a12 12 0 0 0 2.4 7.2 2 2 0 0 0 3.2-2.4A8 8 0 0 1 10 14`,key:`1853fq`}],[`path`,{d:`M8 6v8`,key:`15ugcq`}]]),nn=w(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),rn=w(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),an=w(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),on=w(`minimize-2`,[[`path`,{d:`m14 10 7-7`,key:`oa77jy`}],[`path`,{d:`M20 10h-6V4`,key:`mjg0md`}],[`path`,{d:`m3 21 7-7`,key:`tjx5ai`}],[`path`,{d:`M4 14h6v6`,key:`rmj7iw`}]]),sn=w(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),cn=w(`monitor-play`,[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),ln=w(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),un=w(`mouse-pointer-click`,[[`path`,{d:`M14 4.1 12 6`,key:`ita8i4`}],[`path`,{d:`m5.1 8-2.9-.8`,key:`1go3kf`}],[`path`,{d:`m6 12-1.9 2`,key:`mnht97`}],[`path`,{d:`M7.2 2.2 8 5.1`,key:`1cfko1`}],[`path`,{d:`M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z`,key:`s0h3yz`}]]),dn=w(`move-horizontal`,[[`path`,{d:`m18 8 4 4-4 4`,key:`1ak13k`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}]]),fn=w(`move-vertical`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m8 18 4 4 4-4`,key:`bh5tu3`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}]]),pn=w(`move`,[[`path`,{d:`M12 2v20`,key:`t6zp3m`}],[`path`,{d:`m15 19-3 3-3-3`,key:`11eu04`}],[`path`,{d:`m19 9 3 3-3 3`,key:`1mg7y2`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}],[`path`,{d:`m5 9-3 3 3 3`,key:`j64kie`}],[`path`,{d:`m9 5 3-3 3 3`,key:`l8vdw6`}]]),mn=w(`music`,[[`path`,{d:`M9 18V5l12-2v13`,key:`1jmyc2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`circle`,{cx:`18`,cy:`16`,r:`3`,key:`1hluhg`}]]),hn=w(`navigation`,[[`polygon`,{points:`3 11 22 2 13 21 11 13 3 11`,key:`1ltx0t`}]]),gn=w(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),_n=w(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),vn=w(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),yn=w(`paw-print`,[[`circle`,{cx:`11`,cy:`4`,r:`2`,key:`vol9p0`}],[`circle`,{cx:`18`,cy:`8`,r:`2`,key:`17gozi`}],[`circle`,{cx:`20`,cy:`16`,r:`2`,key:`1v9bxh`}],[`path`,{d:`M9 10a5 5 0 0 1 5 5v3.5a3.5 3.5 0 0 1-6.84 1.045Q6.52 17.48 4.46 16.84A3.5 3.5 0 0 1 5.5 10Z`,key:`1ydw1z`}]]),bn=w(`pencil`,[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]),xn=w(`phone`,[[`path`,{d:`M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384`,key:`9njp5v`}]]),Sn=w(`pin`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]),Cn=w(`pipette`,[[`path`,{d:`m12 9-8.414 8.414A2 2 0 0 0 3 18.828v1.344a2 2 0 0 1-.586 1.414A2 2 0 0 1 3.828 21h1.344a2 2 0 0 0 1.414-.586L15 12`,key:`1y3wsu`}],[`path`,{d:`m18 9 .4.4a1 1 0 1 1-3 3l-3.8-3.8a1 1 0 1 1 3-3l.4.4 3.4-3.4a1 1 0 1 1 3 3z`,key:`110lr1`}],[`path`,{d:`m2 22 .414-.414`,key:`jhxm08`}]]),wn=w(`plane`,[[`path`,{d:`M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z`,key:`1v9wt8`}]]),Tn=w(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),En=w(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Dn=w(`plug`,[[`path`,{d:`M12 22v-5`,key:`1ega77`}],[`path`,{d:`M15 8V2`,key:`18g5xt`}],[`path`,{d:`M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z`,key:`1xoxul`}],[`path`,{d:`M9 8V2`,key:`14iosj`}]]),On=w(`power-off`,[[`path`,{d:`M18.36 6.64A9 9 0 0 1 20.77 15`,key:`dxknvb`}],[`path`,{d:`M6.16 6.16a9 9 0 1 0 12.68 12.68`,key:`1x7qb5`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),kn=w(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),An=w(`puzzle`,[[`path`,{d:`M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z`,key:`w46dr5`}]]),jn=w(`qr-code`,[[`rect`,{width:`5`,height:`5`,x:`3`,y:`3`,rx:`1`,key:`1tu5fj`}],[`rect`,{width:`5`,height:`5`,x:`16`,y:`3`,rx:`1`,key:`1v8r4q`}],[`rect`,{width:`5`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`1x03jg`}],[`path`,{d:`M21 16h-3a2 2 0 0 0-2 2v3`,key:`177gqh`}],[`path`,{d:`M21 21v.01`,key:`ents32`}],[`path`,{d:`M12 7v3a2 2 0 0 1-2 2H7`,key:`8crl2c`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M12 3h.01`,key:`n36tog`}],[`path`,{d:`M12 16v.01`,key:`133mhm`}],[`path`,{d:`M16 12h1`,key:`1slzba`}],[`path`,{d:`M21 12v.01`,key:`1lwtk9`}],[`path`,{d:`M12 21v-1`,key:`1880an`}]]),Mn=w(`radar`,[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]),Nn=w(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),Pn=w(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),Fn=w(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),In=w(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),Ln=w(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),Rn=w(`route`,[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]),zn=w(`sailboat`,[[`path`,{d:`M10 2v15`,key:`1qf71f`}],[`path`,{d:`M7 22a4 4 0 0 1-4-4 1 1 0 0 1 1-1h16a1 1 0 0 1 1 1 4 4 0 0 1-4 4z`,key:`1pxcvx`}],[`path`,{d:`M9.159 2.46a1 1 0 0 1 1.521-.193l9.977 8.98A1 1 0 0 1 20 13H4a1 1 0 0 1-.824-1.567z`,key:`5oog16`}]]),Bn=w(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),Vn=w(`scan`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}]]),Hn=w(`scroll-text`,[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]),Un=w(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),Wn=w(`server`,[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]),Gn=w(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Kn=w(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),qn=w(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),Jn=w(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Yn=w(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),Xn=w(`shield`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]),Zn=w(`ship`,[[`path`,{d:`M12 10.189V14`,key:`1p8cqu`}],[`path`,{d:`M12 2v3`,key:`qbqxhf`}],[`path`,{d:`M19 13V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v6`,key:`qpkstq`}],[`path`,{d:`M19.38 20A11.6 11.6 0 0 0 21 14l-8.188-3.639a2 2 0 0 0-1.624 0L3 14a11.6 11.6 0 0 0 2.81 7.76`,key:`7tigtc`}],[`path`,{d:`M2 21c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1s1.2 1 2.5 1c2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`1924j5`}]]),Qn=w(`siren`,[[`path`,{d:`M7 18v-6a5 5 0 1 1 10 0v6`,key:`pcx96s`}],[`path`,{d:`M5 21a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2z`,key:`1b4s83`}],[`path`,{d:`M21 12h1`,key:`jtio3y`}],[`path`,{d:`M18.5 4.5 18 5`,key:`g5sp9y`}],[`path`,{d:`M2 12h1`,key:`1uaihz`}],[`path`,{d:`M12 2v1`,key:`11qlp1`}],[`path`,{d:`m4.929 4.929.707.707`,key:`1i51kw`}],[`path`,{d:`M12 12v6`,key:`3ahymv`}]]),$n=w(`skip-back`,[[`path`,{d:`M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z`,key:`15892j`}],[`path`,{d:`M3 20V4`,key:`1ptbpl`}]]),er=w(`skip-forward`,[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]]),tr=w(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),nr=w(`smartphone`,[[`rect`,{width:`14`,height:`20`,x:`5`,y:`2`,rx:`2`,ry:`2`,key:`1yt0o3`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}]]),rr=w(`snowflake`,[[`path`,{d:`m10 20-1.25-2.5L6 18`,key:`18frcb`}],[`path`,{d:`M10 4 8.75 6.5 6 6`,key:`7mghy3`}],[`path`,{d:`m14 20 1.25-2.5L18 18`,key:`1chtki`}],[`path`,{d:`m14 4 1.25 2.5L18 6`,key:`1b4wsy`}],[`path`,{d:`m17 21-3-6h-4`,key:`15hhxa`}],[`path`,{d:`m17 3-3 6 1.5 3`,key:`11697g`}],[`path`,{d:`M2 12h6.5L10 9`,key:`kv9z4n`}],[`path`,{d:`m20 10-1.5 2 1.5 2`,key:`1swlpi`}],[`path`,{d:`M22 12h-6.5L14 15`,key:`1mxi28`}],[`path`,{d:`m4 10 1.5 2L4 14`,key:`k9enpj`}],[`path`,{d:`m7 21 3-6-1.5-3`,key:`j8hb9u`}],[`path`,{d:`m7 3 3 6h4`,key:`1otusx`}]]),ir=w(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),ar=w(`sprout`,[[`path`,{d:`M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3`,key:`139s4v`}],[`path`,{d:`M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4`,key:`1dlkgp`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),or=w(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),sr=w(`star`,[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]),cr=w(`sun-medium`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 3v1`,key:`1asbbs`}],[`path`,{d:`M12 20v1`,key:`1wcdkc`}],[`path`,{d:`M3 12h1`,key:`lp3yf2`}],[`path`,{d:`M20 12h1`,key:`1vloll`}],[`path`,{d:`m18.364 5.636-.707.707`,key:`1hakh0`}],[`path`,{d:`m6.343 17.657-.707.707`,key:`18m9nf`}],[`path`,{d:`m5.636 5.636.707.707`,key:`1xv1c5`}],[`path`,{d:`m17.657 17.657.707.707`,key:`vl76zb`}]]),lr=w(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),ur=w(`sunrise`,[[`path`,{d:`M12 2v8`,key:`1q4o3n`}],[`path`,{d:`m4.93 10.93 1.41 1.41`,key:`2a7f42`}],[`path`,{d:`M2 18h2`,key:`j10viu`}],[`path`,{d:`M20 18h2`,key:`wocana`}],[`path`,{d:`m19.07 10.93-1.41 1.41`,key:`15zs5n`}],[`path`,{d:`M22 22H2`,key:`19qnx5`}],[`path`,{d:`m8 6 4-4 4 4`,key:`ybng9g`}],[`path`,{d:`M16 18a4 4 0 0 0-8 0`,key:`1lzouq`}]]),dr=w(`tag`,[[`path`,{d:`M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z`,key:`vktsd0`}],[`circle`,{cx:`7.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`kqv944`}]]),fr=w(`target`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),pr=w(`thermometer`,[[`path`,{d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z`,key:`17jzev`}]]),mr=w(`timer`,[[`line`,{x1:`10`,x2:`14`,y1:`2`,y2:`2`,key:`14vaq8`}],[`line`,{x1:`12`,x2:`15`,y1:`14`,y2:`11`,key:`17fdiu`}],[`circle`,{cx:`12`,cy:`14`,r:`8`,key:`1e1u0o`}]]),hr=w(`toggle-left`,[[`circle`,{cx:`9`,cy:`12`,r:`3`,key:`u3jwor`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),gr=w(`toggle-right`,[[`circle`,{cx:`15`,cy:`12`,r:`3`,key:`1afu0r`}],[`rect`,{width:`20`,height:`14`,x:`2`,y:`5`,rx:`7`,key:`g7kal2`}]]),_r=w(`tractor`,[[`path`,{d:`m10 11 11 .9a1 1 0 0 1 .8 1.1l-.665 4.158a1 1 0 0 1-.988.842H20`,key:`she1j9`}],[`path`,{d:`M16 18h-5`,key:`bq60fd`}],[`path`,{d:`M18 5a1 1 0 0 0-1 1v5.573`,key:`1kv8ia`}],[`path`,{d:`M3 4h8.129a1 1 0 0 1 .99.863L13 11.246`,key:`1q1ert`}],[`path`,{d:`M4 11V4`,key:`9ft8pt`}],[`path`,{d:`M7 15h.01`,key:`k5ht0j`}],[`path`,{d:`M8 10.1V4`,key:`1jgyzo`}],[`circle`,{cx:`18`,cy:`18`,r:`2`,key:`1emm8v`}],[`circle`,{cx:`7`,cy:`15`,r:`5`,key:`ddtuc`}]]),vr=w(`train-front`,[[`path`,{d:`M8 3.1V7a4 4 0 0 0 8 0V3.1`,key:`1v71zp`}],[`path`,{d:`m9 15-1-1`,key:`1yrq24`}],[`path`,{d:`m15 15 1-1`,key:`1t0d6s`}],[`path`,{d:`M9 19c-2.8 0-5-2.2-5-5v-4a8 8 0 0 1 16 0v4c0 2.8-2.2 5-5 5Z`,key:`1p0hjs`}],[`path`,{d:`m8 19-2 3`,key:`13i0xs`}],[`path`,{d:`m16 19 2 3`,key:`xo31yx`}]]),yr=w(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),br=w(`trending-up`,[[`path`,{d:`M16 7h6v6`,key:`box55l`}],[`path`,{d:`m22 7-8.5 8.5-5-5L2 17`,key:`1t1m79`}]]),xr=w(`trending-down`,[[`path`,{d:`M16 17h6v-6`,key:`t6n2it`}],[`path`,{d:`m22 17-8.5-8.5-5 5L2 7`,key:`x473p`}]]),Sr=w(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Cr=w(`truck`,[[`path`,{d:`M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2`,key:`wrbu53`}],[`path`,{d:`M15 18H9`,key:`1lyqi6`}],[`path`,{d:`M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14`,key:`lysw3i`}],[`circle`,{cx:`17`,cy:`18`,r:`2`,key:`332jqn`}],[`circle`,{cx:`7`,cy:`18`,r:`2`,key:`19iecd`}]]),wr=w(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),Tr=w(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Er=w(`unlink-2`,[[`path`,{d:`M15 7h2a5 5 0 0 1 0 10h-2m-6 0H7A5 5 0 0 1 7 7h2`,key:`1re2ne`}]]),Dr=w(`upload`,[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]),Or=w(`user-check`,[[`path`,{d:`m16 11 2 2 4-4`,key:`9rsbq5`}],[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),kr=w(`user`,[[`path`,{d:`M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2`,key:`975kel`}],[`circle`,{cx:`12`,cy:`7`,r:`4`,key:`17ys0d`}]]),Ar=w(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),jr=w(`utensils-crossed`,[[`path`,{d:`m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8`,key:`n7qcjb`}],[`path`,{d:`M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7`,key:`d0u48b`}],[`path`,{d:`m2.1 21.8 6.4-6.3`,key:`yn04lh`}],[`path`,{d:`m19 5-7 7`,key:`194lzd`}]]),Mr=w(`vibrate`,[[`path`,{d:`m2 8 2 2-2 2 2 2-2 2`,key:`sv1b1`}],[`path`,{d:`m22 8-2 2 2 2-2 2 2 2`,key:`101i4y`}],[`rect`,{width:`8`,height:`14`,x:`8`,y:`5`,rx:`1`,key:`1oyrl4`}]]),Nr=w(`volume-2`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`path`,{d:`M16 9a5 5 0 0 1 0 6`,key:`1q6k2b`}],[`path`,{d:`M19.364 18.364a9 9 0 0 0 0-12.728`,key:`ijwkga`}]]),Pr=w(`volume-x`,[[`path`,{d:`M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z`,key:`uqj9uw`}],[`line`,{x1:`22`,x2:`16`,y1:`9`,y2:`15`,key:`1ewh16`}],[`line`,{x1:`16`,x2:`22`,y1:`9`,y2:`15`,key:`5ykzw1`}]]),Fr=w(`waves`,[[`path`,{d:`M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`knzxuh`}],[`path`,{d:`M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`2jd2cc`}],[`path`,{d:`M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1`,key:`rd2r6e`}]]),Ir=w(`wifi-high`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),Lr=w(`wifi-low`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),Rr=w(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),zr=w(`wifi-zero`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}]]),Br=w(`wifi`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]),Vr=w(`wind`,[[`path`,{d:`M12.8 19.6A2 2 0 1 0 14 16H2`,key:`148xed`}],[`path`,{d:`M17.5 8a2.5 2.5 0 1 1 2 4H2`,key:`1u4tom`}],[`path`,{d:`M9.8 4.4A2 2 0 1 1 11 8H2`,key:`75valh`}]]),Hr=w(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Ur=w(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Wr=w(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Gr=w(`zap`,[[`path`,{d:`M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z`,key:`1xq2db`}]]),Kr=w(`zoom-in`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`11`,x2:`11`,y1:`8`,y2:`14`,key:`1vmskp`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]),qr=w(`zoom-out`,[[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`line`,{x1:`21`,x2:`16.65`,y1:`21`,y2:`16.65`,key:`13gj7c`}],[`line`,{x1:`8`,x2:`14`,y1:`11`,y2:`11`,key:`durymu`}]]);e();function P(e,t){if(typeof globalThis>`u`)return s(t);let n=globalThis.__camstackSharedContexts,r=n??new Map;n||(globalThis.__camstackSharedContexts=r);let i=r.get(e);if(i)return i;let a=s(t);return r.set(e,a),a}e();var F=P(`camstack:system`,null);function Jr({system:e,children:t}){return m(F.Provider,{value:e,children:t})}function Yr(){let e=c(F);if(!e)throw Error(`useSystem(): no <SystemProvider> in tree`);return e}function Xr(){return c(F)}var Zr=`camstack-mount`,Qr=/^\/(?:[A-Za-z0-9_\-.]+\/)*$/,I=null;function L(e){if(e==null||e===``)return null;let t=e.endsWith(`/`)?e:`${e}/`;return!Qr.test(t)||t.includes(`/../`)||t.includes(`/./`)?null:t}function $r(){if(typeof document>`u`)return`/`;let e=L(document.querySelector(`meta[name="${Zr}"]`)?.getAttribute(`content`));if(e!==null)return e;if(document.querySelector(`base[href]`)!==null)try{let e=new URL(document.baseURI);if(e.origin===window.location.origin){let t=L(e.pathname);if(t!==null)return t}}catch{}return`/`}function R(){return I===null&&(I=$r()),I}function z(){return R().replace(/\/$/,``)}function B(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function V(e){if(B(e))return e;let t=R(),n=e.replace(/^\/+/,``);return t!==`/`&&(e===z()||e.startsWith(t))?e:`${t}${n}`}function H(){return`${typeof window<`u`?window.location.origin:``}${z()}`}function U(e){return B(e)?e:`${H()}${V(e).slice(z().length)}`}function ei(e){return U(e).replace(/^http/,`ws`)}function ti(){I=null}e();function ni({title:e,icon:t,headerRight:n,collapsible:r=!1,defaultOpen:i=!0,open:o,onOpenChange:s,bodyClassName:c=`p-3`,children:u}){let[d,p]=a(i),h=o??d,g=()=>{let e=!h;o===void 0&&p(e),s?.(e)},_=!r||h,v=l(f,{children:[l(`span`,{className:`flex items-center gap-2 text-xs font-semibold uppercase tracking-wider text-foreground`,children:[t,e]}),r?l(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n,m(h?M:N,{className:`h-3.5 w-3.5 shrink-0 text-foreground-subtle`})]}):n]}),y=`px-4 py-2 flex items-center justify-between ${_?`border-b border-border`:``}`;return l(`div`,{className:`rounded-lg border border-border bg-surface overflow-hidden`,children:[r?m(`button`,{type:`button`,"aria-expanded":h,onClick:g,className:`w-full gap-2 text-left ${y}`,children:v}):m(`div`,{className:y,children:v}),_?m(`div`,{className:c,children:u}):null]})}function ri({label:e,icon:t,children:n,footer:r}){return l(`div`,{className:`min-w-0 rounded-lg border border-border bg-surface p-2 sm:p-2.5`,children:[l(`div`,{className:`mb-0.5 flex min-w-0 items-center gap-1.5 text-[10px] uppercase tracking-wider text-foreground-subtle`,children:[t,m(`span`,{className:`min-w-0 truncate`,children:e})]}),m(`div`,{className:`truncate text-lg font-semibold leading-tight text-foreground`,children:n}),r==null?null:m(`div`,{className:`mt-0.5 truncate text-[10px] text-foreground-subtle`,children:r})]})}e();var ii=`capability.binding-changed`;function W(e,t){let[r,o]=a(null);return n(()=>{if(t===null){o(null);return}let n=!1,r=async()=>{try{let r=await e.deviceManager.getBindings.query({deviceId:t});n||o(r)}catch{n||o(e=>e)}};r();let i=e.live?.onEvent.subscribe({category:ii},{onData:e=>{let n=e.data?.source;if(!n){r();return}n.type===`device`&&n.id===t&&r()}});return()=>{n=!0,i?.unsubscribe()}},[e,t]),i(()=>r?h(e,r):null,[e,r])}function G(e){let t=o(t=>e?e.subscribe(()=>t()):()=>void 0,[e]),n=o(()=>e?.value,[e]);return d(t,n,n)}function ai(e,t,n){let r=W(e,t);return G(r?n(r.state):void 0)}e();var K=`/addon/snapshot/media`;function oi(e,t={}){let{width:n,baseUrl:r}=t,[s,c]=a(0);return{src:i(()=>{if(e===null||e<=0)return null;let t=r===void 0?z():r.replace(/\/+$/,``),i=new URLSearchParams;n!==void 0&&Number.isInteger(n)&&n>0&&i.set(`w`,String(n)),s>0&&(i.set(`force`,`1`),i.set(`r`,String(s)));let a=i.toString();return`${t}${K}/${String(e)}.jpg${a.length>0?`?${a}`:``}`},[e,n,r,s]),loading:!1,refresh:o(()=>{c(e=>e+1)},[])}}function si(e){if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`data`);if(typeof t==`object`&&t){let e=Reflect.get(t,`capRouteReason`);if(typeof e==`string`)return e}return null}function ci(e){let t=si(e);return t===null?(e instanceof Error?e.message:String(e)).includes(`provider not available`):t===`no-provider`||t===`node-offline`}var li=`rounded-lg border border-border bg-surface overflow-hidden`,ui=`border-b border-border px-3 sm:px-4 py-1.5 sm:py-2`,di=`p-2 sm:p-3 lg:p-4`,fi=`space-y-3 sm:space-y-4`,pi=`gap-2 sm:gap-3`,mi=`px-3 sm:px-4 py-1.5 sm:py-2`,hi=`grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-4`,gi=`grid grid-cols-[repeat(auto-fill,minmax(11rem,1fr))]`,_i=`grid grid-cols-1 lg:grid-cols-2`,vi=`flex flex-col-reverse md:flex-row`,yi=`w-full md:w-44 lg:w-52 md:flex-shrink-0 border-b md:border-b-0 md:border-l border-border`,bi=`sm`,xi=`flex min-w-0 flex-col gap-0.5 py-1.5 sm:flex-row sm:items-center`,Si=`min-w-0 text-[11px] leading-tight text-foreground-subtle sm:w-32 sm:shrink-0 sm:pr-2`,Ci=`flex w-full min-w-0 items-center gap-1 sm:flex-1`,wi=`min-w-0 break-all text-xs text-foreground sm:truncate`,Ti=`text-[10px] sm:text-[11px] font-semibold text-foreground uppercase tracking-wider`,Ei=`text-[11px] sm:text-xs text-foreground`,q=`text-[10px] text-foreground-subtle`,Di=`text-[11px] sm:text-xs font-medium text-foreground`,Oi=`text-base sm:text-lg font-semibold leading-tight text-foreground`,ki=`inline-flex items-center justify-center gap-1 rounded border border-border bg-surface px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-foreground hover:bg-surface-hover transition-colors disabled:opacity-40`,Ai=`inline-flex items-center justify-center gap-1 rounded border border-primary/40 bg-primary/15 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-primary hover:bg-primary/25 transition-colors disabled:opacity-40`,ji=`inline-flex items-center justify-center gap-1 rounded border border-danger/40 bg-danger/10 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-danger hover:bg-danger/20 transition-colors disabled:opacity-40`,Mi=`inline-flex items-center justify-center gap-1 rounded border border-warning/40 bg-warning/10 px-1.5 py-0.5 sm:px-2 sm:py-1 text-[10px] sm:text-[11px] font-medium text-warning hover:bg-warning/20 transition-colors disabled:opacity-40`,Ni=`w-full rounded border border-border bg-background px-1.5 py-0.5 sm:px-2 sm:py-1 text-[11px] sm:text-xs text-foreground focus:border-primary focus:ring-1 focus:ring-primary/30 outline-none`,Pi=`inline-flex items-center gap-1 rounded-full border px-1.5 py-0.5 text-[10px] font-medium transition-colors`,Fi=`border-primary/50 bg-primary/15 text-primary`,Ii=`border-border bg-surface text-foreground-subtle hover:bg-surface-hover`,J=[`day`,`ir`],Li={day:{labelKey:`uiLibrary.sceneMonitor.variant.day`,labelFallback:`Daylight`},ir:{labelKey:`uiLibrary.sceneMonitor.variant.ir`,labelFallback:`Night (IR)`},night:{labelKey:`uiLibrary.sceneMonitor.variant.night`,labelFallback:`Night`},dawn:{labelKey:`uiLibrary.sceneMonitor.variant.dawn`,labelFallback:`Dawn`},dusk:{labelKey:`uiLibrary.sceneMonitor.variant.dusk`,labelFallback:`Dusk`}};function Y(e,t=v){let n=Li[e];return n===void 0?e:t(n.labelKey,n.labelFallback)}function Ri(e,t=v){let n=new Set(e.coveredConditions),r=J.map(e=>`${Y(e,t)} ${n.has(e)?`✓`:`✗`}`),i=[...n].filter(e=>!J.some(t=>t===e));for(let e of i)r.push(`${Y(e,t)} ✓`);let a=J.filter(e=>!n.has(e));if(a.length===0)return r.join(` · `);if(n.size===0)return t(`uiLibrary.sceneMonitor.coverage.empty`,`{{parts}} — nothing captured yet, so this scene is not watching.`,{parts:r.join(` · `)});let[o=``,s]=a.map(e=>Y(e,t).toLowerCase()),c=s===void 0?o:t(`uiLibrary.sceneMonitor.coverage.namesJoin`,`{{first}} and {{second}}`,{first:o,second:s}),l={parts:r.join(` · `),names:c};return e.onUncoveredCondition===`judge-anyway`?t(`uiLibrary.sceneMonitor.coverage.judgeAnyway`,`{{parts}} — {{names}} judged against the references you do have.`,l):t(`uiLibrary.sceneMonitor.coverage.skip`,`{{parts}} — optional; checks in {{names}} are skipped.`,l)}function zi(e,t=v){return e.suspendedCondition===null?null:t(`uiLibrary.sceneMonitor.suspension`,`Paused — nothing was captured in {{light}}, so checks are on hold until the light changes back. Capture {{light}} if you want it watched around the clock.`,{light:Y(e.suspendedCondition,t).toLowerCase()})}var Bi={"no-reference-for-condition":{key:`uiLibrary.sceneMonitor.unavailable.no_reference_for_condition`,fallback:`can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like.`},"view-shifted":{key:`uiLibrary.sceneMonitor.unavailable.view_shifted`,fallback:`can’t tell — the camera view has moved since the reference was captured. Re-capture it.`},"no-vision-profile":{key:`uiLibrary.sceneMonitor.unavailable.no_vision_profile`,fallback:`can’t tell — the vision model is unreachable, so the change is on hold.`},"encoder-model-changed":{key:`uiLibrary.sceneMonitor.unavailable.encoder_model_changed`,fallback:`can’t tell — the embedding model changed, so the stored references are unreadable. Re-capture them.`},"no-snapshot":{key:`uiLibrary.sceneMonitor.unavailable.no_snapshot`,fallback:`can’t tell — this camera did not return a frame.`}};function Vi(e,t,n=v){if(e.states.length===0)return n(`uiLibrary.sceneMonitor.status.notArmed`,`Not armed yet — capture the initial state to start watching.`);if(e.verdict===`unknown`){if(e.unavailable===null)return n(`uiLibrary.sceneMonitor.status.cantTellNow`,`can’t tell right now.`);let t=Bi[e.unavailable];return n(t.key,t.fallback)}let r=e.verdict===`diverged`?e.divergedAt:e.armedAt,i=r===null?``:` ${n(`uiLibrary.sceneMonitor.status.heldFor`,`for {{duration}}`,{duration:Z(Math.max(0,t-r))})}`;if(e.latched)return e.verdict===`diverged`?n(`uiLibrary.sceneMonitor.status.changedLatched`,`CHANGED{{held}} — press Reset when you have dealt with it.`,{held:i}):n(`uiLibrary.sceneMonitor.status.backToNormal`,`Back to normal, but still flagged as changed{{held}}. Press Reset to clear it.`,{held:i});let a=zi(e,n);return a===null?e.verdict===`diverged`?n(`uiLibrary.sceneMonitor.status.changed`,`CHANGED{{held}}`,{held:i}):n(`uiLibrary.sceneMonitor.status.normal`,`Normal{{held}}`,{held:i}):a}function Hi(e,t=v){return e.states.length===0?{text:t(`uiLibrary.sceneMonitor.badge.notArmed`,`Not armed`),tone:`unknown`}:e.latched?{text:t(`uiLibrary.sceneMonitor.badge.changed`,`Changed`),tone:`alarm`}:e.suspendedCondition===null?e.verdict===`unknown`?{text:t(`uiLibrary.sceneMonitor.badge.cantTell`,`Can’t tell`),tone:`unknown`}:e.verdict===`diverged`?{text:t(`uiLibrary.sceneMonitor.badge.changed`,`Changed`),tone:`alarm`}:{text:t(`uiLibrary.sceneMonitor.badge.normal`,`Normal`),tone:`ok`}:{text:t(`uiLibrary.sceneMonitor.badge.paused`,`Paused`),tone:`unknown`}}var X=.4;function Ui(e){return e.width*e.height>X}function Z(e){let t=Math.floor(e/1e3);if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}m`;let r=Math.floor(n/60);return r<48?`${r}h`:`${Math.floor(r/24)}d`}e();var Q=P(`camstack:player-overlays-state`,null),$=P(`camstack:player-overlays-actions`,null);function Wi({children:e}){let[t,n]=a(()=>new Map),[r,s]=a(()=>new Map),c=o(e=>{n(t=>{let n=new Map(t);return n.set(e.id,e),n})},[]),l=o(e=>{n(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]),u=o(e=>{s(t=>{let n=new Map(t);return n.set(e.id,e),n})},[]),d=o(e=>{s(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]),f=i(()=>({layers:t,buttons:r}),[t,r]),p=i(()=>({setLayer:c,removeLayer:l,setButton:u,removeButton:d}),[c,l,u,d]);return m(Q.Provider,{value:f,children:m($.Provider,{value:p,children:e})})}function Gi(){let e=c(Q);return i(()=>e?[...e.layers.values()].toSorted((e,t)=>e.order-t.order):[],[e])}function Ki(){let e=c(Q);return i(()=>e?[...e.buttons.values()].toSorted((e,t)=>e.order-t.order):[],[e])}function qi(e){let t=c($);n(()=>{if(!(!t||!e))return t.setLayer(e),()=>t.removeLayer(e.id)},[t,e])}function Ji(e){let t=c($);n(()=>{if(!(!t||!e))return t.setButton(e),()=>t.removeButton(e.id)},[t,e])}export{U as $,ue as $i,tn as $n,tt as $r,nr as $t,xi as A,Ee as Ai,Tn as An,wt as Ar,Tr as At,Oi as B,T as Bi,hn as Bn,mt as Br,hr as Bt,hi as C,Ne as Ci,Mn as Cn,jt as Cr,Mr as Ct,di as D,ke as Di,On as Dn,Dt as Dr,Or as Dt,gi as E,Ae as Ei,kn as En,Ot as Er,kr as Et,vi as F,A as Fi,bn as Fn,yt as Fr,br as Ft,oi as G,ve as Gi,un as Gn,lt as Gr,ur as Gt,Di as H,xe as Hi,pn as Hn,ft as Hr,pr as Ht,yi as I,k as Ii,yn as In,vt as Ir,yr as It,G as J,he as Ji,sn as Jn,ot as Jr,sr as Jt,W as K,_e as Ki,ln as Kn,ct as Kr,lr as Kt,fi as L,O as Li,vn as Ln,_t as Lr,vr as Lt,bi as M,we as Mi,Cn as Mn,St as Mr,Cr as Mt,Ci as N,Ce as Ni,Sn as Nn,xt as Nr,Sr as Nt,li as O,Oe as Oi,Dn as On,Et as Or,Dr as Ot,wi as P,j as Pi,xn as Pn,bt as Pr,xr as Pt,V as Q,de as Qi,nn as Qn,nt as Qr,rr as Qt,Ei as R,D as Ri,_n as Rn,gt as Rr,_r as Rt,_i as S,Pe as Si,Nn as Sn,Mt as Sr,Nr as St,mi as T,je as Ti,An as Tn,kt as Tr,Ar as Tt,ci as U,be as Ui,fn as Un,dt as Ur,fr as Ut,Ti as V,Se as Vi,mn as Vn,pt as Vr,mr as Vt,K as W,ye as Wi,dn as Wn,ut as Wr,dr as Wt,ni as X,pe as Xi,an as Xn,it as Xr,ar as Xt,ri as Y,me as Yi,on as Yn,at as Yr,or as Yt,H as Z,fe as Zi,rn as Zn,rt as Zr,ir as Zt,Mi as _,Le as _i,Rn as _n,Lt as _r,Rr as _t,Ki as a,v as aa,Ye as ai,Xn as an,Yt as ar,Xr as at,Ii as b,Fe as bi,Fn as bn,Pt as br,Fr as bt,Hi as c,Ke as ci,qn as cn,Kt as cr,qr as ct,Ui as d,Ue as di,Wn as dn,Ut as dr,Wr as dt,le as ea,et as ei,tr as en,en as er,ei as et,Vi as f,He as fi,Un as fn,Ht as fr,Ur as ft,Ai as g,Re as gi,zn as gn,Rt as gr,zr as gt,ji as h,ze as hi,Bn as hn,zt as hr,Br as ht,Ji as i,ne as ia,Xe as ii,Zn as in,Xt as ir,Jr as it,Si as j,Te as ji,wn as jn,Ct as jr,wr as jt,ui as k,De as ki,En as kn,Tt as kr,Er as kt,Ri as l,Ge as li,Kn as ln,Gt as lr,Kr as lt,ki as m,Be as mi,Vn as mn,Bt as mr,Vr as mt,qi as n,w as na,Qe as ni,$n as nn,Qt as nr,ti as nt,X as o,x as oa,Je as oi,Yn as on,Jt as or,Yr as ot,Y as p,Ve as pi,Hn as pn,Vt as pr,Hr as pt,ai as q,ge as qi,cn as qn,st as qr,cr as qt,Gi as r,ee as ra,Ze as ri,Qn as rn,Zt as rr,z as rt,J as s,b as sa,qe as si,Jn as sn,qt as sr,P as st,Wi as t,ce as ta,$e as ti,er as tn,$t as tr,R as tt,Z as u,We as ui,Gn as un,Wt as ur,Gr as ut,Fi as v,Ie as vi,Ln as vn,It as vr,Lr as vt,Ni as w,Me as wi,jn as wn,At as wr,jr as wt,pi as x,M as xi,Pn as xn,Nt as xr,Pr as xt,Pi as y,N as yi,In as yn,Ft as yr,Ir as yt,q as z,E as zi,gn as zn,ht as zr,gr as zt};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`recycle`,[[`path`,{d:`M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5`,key:`x6z5xu`}],[`path`,{d:`M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12`,key:`1x4zh5`}],[`path`,{d:`m14 16-3 3 3 3`,key:`f6jyew`}],[`path`,{d:`M8.293 13.596 7.196 9.5 3.1 10.598`,key:`wf1obh`}],[`path`,{d:`m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843`,key:`9tzpgr`}],[`path`,{d:`m13.378 9.633 4.096 1.098 1.097-4.096`,key:`1oe83g`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`recycle`,[[`path`,{d:`M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5`,key:`x6z5xu`}],[`path`,{d:`M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12`,key:`1x4zh5`}],[`path`,{d:`m14 16-3 3 3 3`,key:`f6jyew`}],[`path`,{d:`M8.293 13.596 7.196 9.5 3.1 10.598`,key:`wf1obh`}],[`path`,{d:`m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843`,key:`9tzpgr`}],[`path`,{d:`m13.378 9.633 4.096 1.098 1.097-4.096`,key:`1oe83g`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{n as e,t}from"./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-C-d2SXqo.js";export{t as get,e as init};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),n=e(`disc`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),r=e(`ear`,[[`path`,{d:`M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0`,key:`1dfaln`}],[`path`,{d:`M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4`,key:`1qnva7`}]]),i=e(`scan-eye`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]);export{t as i,r as n,n as r,i as t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`arrow-left-right`,[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]),n=e(`disc`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),r=e(`ear`,[[`path`,{d:`M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0`,key:`1dfaln`}],[`path`,{d:`M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4`,key:`1qnva7`}]]),i=e(`scan-eye`,[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`path`,{d:`M18.944 12.33a1 1 0 0 0 0-.66 7.5 7.5 0 0 0-13.888 0 1 1 0 0 0 0 .66 7.5 7.5 0 0 0 13.888 0`,key:`11ak4c`}]]);export{t as i,r as n,n as r,i as t};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),n=e(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]);export{t as n,n as t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),n=e(`scissors`,[[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`path`,{d:`M8.12 8.12 12 12`,key:`1alkpv`}],[`path`,{d:`M20 4 8.12 15.88`,key:`xgtan2`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}],[`path`,{d:`M14.8 14.8 20 20`,key:`ptml3r`}]]);export{t as n,n as t};
@@ -1 +1 @@
1
- import{ra as e}from"./player-overlays-BYMAZza9.js";var t=e(`search-x`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]);export{t};
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`search-x`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{na as e}from"./player-overlays-D98Lvll4.js";var t=e(`flask-conical`,[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]),n=e(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]);export{t as n,n as t};