@camstack/addon-admin-ui 1.2.623 → 1.2.625

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 (141) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/assets/{Addons-KzL11keT.js → Addons-pz9Q1cs6.js} +1 -1
  3. package/dist/assets/{AdminPage-CLrZRo9Q.js → AdminPage-D54ZN64f.js} +1 -1
  4. package/dist/assets/{AdminSectionedPage-QZujp_Rk.js → AdminSectionedPage-BHMmyL4w.js} +1 -1
  5. package/dist/assets/{AiProfiles-CJymDhUN.js → AiProfiles-COUMccnV.js} +1 -1
  6. package/dist/assets/{Authentication-JPI5tNQR.js → Authentication-DZFEeCxa.js} +1 -1
  7. package/dist/assets/{Build-JfcMscnG.js → Build-b5YHP3m-.js} +3 -3
  8. package/dist/assets/Calendars-B_J8ESm4.js +1 -0
  9. package/dist/assets/{CameraGrids-CPw3_tbn.js → CameraGrids-BI1TEiXl.js} +1 -1
  10. package/dist/assets/{Cluster-B5g_W7EV.js → Cluster-C3sHoZv8.js} +1 -1
  11. package/dist/assets/{CompositionBlockEditor-DFvE9jtV.js → CompositionBlockEditor-WeSCGBdL.js} +1 -1
  12. package/dist/assets/{CompositionEditorPage-C4jc1B6k.js → CompositionEditorPage-Ci3xVucy.js} +1 -1
  13. package/dist/assets/{Data-DUlmeoKU.js → Data-DY5Hc-VL.js} +1 -1
  14. package/dist/assets/DeviceDetail-24D1kNN2.js +2 -0
  15. package/dist/assets/{DeviceDoActionFields-xv3Yexk0.js → DeviceDoActionFields-CmTveJuv.js} +1 -1
  16. package/dist/assets/{Devices-Bc4BHwpe.js → Devices-C-YnjQtE.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-D_hbiDn0.js → EmbedPlayerPage-DB8PCqEy.js} +1 -1
  18. package/dist/assets/{History-pMj6FeqQ.js → History-BpK7iHjw.js} +1 -1
  19. package/dist/assets/{Identity-DxoiP6P_.js → Identity-C8YQPLVs.js} +1 -1
  20. package/dist/assets/InstanceSwitchCell-y0VqI68Y.js +1 -0
  21. package/dist/assets/InstancesTable-C5ocf6KU.js +1 -0
  22. package/dist/assets/{IntegrationDetail-CUUOhCzq.js → IntegrationDetail-D48iWKb-.js} +1 -1
  23. package/dist/assets/{IntegrationHub-vGZZvN9Y.js → IntegrationHub-CuxPMwsj.js} +1 -1
  24. package/dist/assets/{Integrations-NjDYWDHO.js → Integrations-B9GLaXfL.js} +1 -1
  25. package/dist/assets/Integrations-ChVn_c2r.js +1 -0
  26. package/dist/assets/{Library-Bl_xkCam.js → Library-C04T0RYP.js} +1 -1
  27. package/dist/assets/{Locations-CcTd8h93.js → Locations-CNaTr00A.js} +1 -1
  28. package/dist/assets/{Logs-CdgFEAUx.js → Logs-R-ZPaTxq.js} +1 -1
  29. package/dist/assets/{MaskShapeCanvas-BLVQpjX5.js → MaskShapeCanvas-C6vw0mq_.js} +1 -1
  30. package/dist/assets/{MotionZonesSettings-4zZUDnfh.js → MotionZonesSettings-BPLgHoj3.js} +1 -1
  31. package/dist/assets/{MyAccess-DAZSxq6w.js → MyAccess-D-uWLTS-.js} +1 -1
  32. package/dist/assets/{Network-LqpZJtlD.js → Network-BrE6i_BP.js} +1 -1
  33. package/dist/assets/{NodeAddonsSettingsPanel-D9kXGkje.js → NodeAddonsSettingsPanel-n2v2LAWi.js} +1 -1
  34. package/dist/assets/{Notifications-BtvOosgt.js → Notifications-BYZxT9AP.js} +1 -1
  35. package/dist/assets/{Pipeline-DdsVy_AV.js → Pipeline-BDiIc9C5.js} +1 -1
  36. package/dist/assets/{PrivacyMaskSettings-1aaAaXXs.js → PrivacyMaskSettings-mpx3kl1W.js} +1 -1
  37. package/dist/assets/{Recordings-Qtccm3Yn.js → Recordings-BwDKglkp.js} +1 -1
  38. package/dist/assets/{ScanSubnetEditor-t8MFwLUw.js → ScanSubnetEditor-B_jVzJCm.js} +1 -1
  39. package/dist/assets/{SceneMonitorEditor-DQtQEj4e.js → SceneMonitorEditor-HTEqKGnK.js} +1 -1
  40. package/dist/assets/{SessionsList-B2cVisrj.js → SessionsList-jMPji6fi.js} +1 -1
  41. package/dist/assets/{Showroom-TwupeRdK.js → Showroom-DXbBEIk5.js} +1 -1
  42. package/dist/assets/{StorageLocationsTable-CcXglcoI.js → StorageLocationsTable-B9gPPayG.js} +1 -1
  43. package/dist/assets/{System-yvxoK1-C.js → System-CEoVcTQk.js} +1 -1
  44. package/dist/assets/Templates-CtKnUTcZ.js +1 -0
  45. package/dist/assets/{Terminal-CCImGxuy.js → Terminal-CMeY2gPT.js} +1 -1
  46. package/dist/assets/{TrainingProviders-B4mcZKfz.js → TrainingProviders-B7wPszf6.js} +1 -1
  47. package/dist/assets/{Viewer-B_9mn9kj.js → Viewer-07BkGobi.js} +1 -1
  48. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BLj3clZf.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-BfC_P9cK.js} +1 -1
  49. package/dist/assets/{addon-icons-context-C_8qaE3G.js → addon-icons-context-24OnMWI-.js} +1 -1
  50. package/dist/assets/{ai-page.helpers-zhKHU1bv.js → ai-page.helpers-V2sVuwrA.js} +1 -1
  51. package/dist/assets/{archive-C3vMcjeD.js → archive-CvMfQY3E.js} +1 -1
  52. package/dist/assets/{assignment-candidates-BuIx_7M-.js → assignment-candidates-w1YrnWCI.js} +1 -1
  53. package/dist/assets/{authed-media-DMusU87j.js → authed-media-sNQSh-A8.js} +1 -1
  54. package/dist/assets/{bell-off-CY2cs307.js → bell-off-B4ksiU12.js} +1 -1
  55. package/dist/assets/{board-model-D6ERqD8s.js → board-model-CCoTj6a4.js} +1 -1
  56. package/dist/assets/{boxes-DKifHkk7.js → boxes-C9Y0YvOc.js} +1 -1
  57. package/dist/assets/{calendar-clock-DDLq2ake.js → calendar-clock-CqZRVSc3.js} +1 -1
  58. package/dist/assets/circle-slash-DDhnvhLN.js +1 -0
  59. package/dist/assets/client-kWeONSGL.js +809 -0
  60. package/dist/assets/{create-composition-SYDEmWRj.js → create-composition-BxoEkLNU.js} +1 -1
  61. package/dist/assets/crop-D1l0Xs25.js +1 -0
  62. package/dist/assets/{database-zap-Dhs7epvK.js → database-zap-Bk33ph_X.js} +1 -1
  63. package/dist/assets/{device-integration-icon-CQA-gqJ3.js → device-integration-icon-C_3I9KjH.js} +1 -1
  64. package/dist/assets/device-picker-model-C64DegYL.js +1 -0
  65. package/dist/assets/dist-DXhYk_uu.js +809 -0
  66. package/dist/assets/{dist-DhVqbh46.js → dist-Dli1FBe2.js} +1 -1
  67. package/dist/assets/{eraser-BXrd43PO.js → eraser-C1LaIkqO.js} +1 -1
  68. package/dist/assets/{file-up-C4GXJyov.js → file-up-CODncsO3.js} +1 -1
  69. package/dist/assets/{format-DAm6he6w.js → format-DJ7tKDrP.js} +1 -1
  70. package/dist/assets/{hard-drive-download-CZYdVqd_.js → hard-drive-download-gFUluoPC.js} +1 -1
  71. package/dist/assets/{hostInit-C49TaBck.js → hostInit-DPsNwfFC.js} +1 -1
  72. package/dist/assets/i18n-DBlmrJTH.js +1 -0
  73. package/dist/assets/icons-BM3wcj03.js +1 -0
  74. package/dist/assets/{index-BCCGVD9f.js → index-UQRaV7sW.js} +3 -3
  75. package/dist/assets/{key-2bnMZjKx.js → key-BSgMvX5L.js} +1 -1
  76. package/dist/assets/{key-square-DcGB0_0B.js → key-square-CX058EfV.js} +1 -1
  77. package/dist/assets/{layers-1dZdqzsn.js → layers-DgoxyPih.js} +1 -1
  78. package/dist/assets/{link-2-off-DHNm-mat.js → link-2-off-DmtgBwh-.js} +1 -1
  79. package/dist/assets/{linked-devices-model-o0v4Bm2S.js → linked-devices-model-D_tVbJ-Z.js} +1 -1
  80. package/dist/assets/{list-ordered-DS1i0RJW.js → list-ordered-C0l-Wwk-.js} +1 -1
  81. package/dist/assets/{memory-stick-uePzeBGn.js → memory-stick-BSUaqG9H.js} +1 -1
  82. package/dist/assets/{message-square-plus-CCwZJhae.js → message-square-plus-spORh6qX.js} +1 -1
  83. package/dist/assets/{mf-entry-bootstrap-0-a9d1f756.js → mf-entry-bootstrap-0-513ce36e.js} +2 -2
  84. package/dist/assets/{mic-off-BCSgetxJ.js → mic-off-DiGyKjsE.js} +1 -1
  85. package/dist/assets/{monitor-off-CS4v-A38.js → monitor-off-CatAL1-V.js} +1 -1
  86. package/dist/assets/{monitor-smartphone-Dd7prEi4.js → monitor-smartphone-CrChoiUo.js} +1 -1
  87. package/dist/assets/mount-C64DegYL.js +1 -0
  88. package/dist/assets/{notification-rule-status-hT9lSvAp.js → notification-rule-status-QcUW9-xh.js} +1 -1
  89. package/dist/assets/{player-overlays-oE7aPZdg.js → player-overlays-CC-b3--a.js} +1 -1
  90. package/dist/assets/remoteEntry-USvAUUw-.js +1 -0
  91. package/dist/assets/{ruler-BkEZ6CMq.js → ruler-6Q54d4xt.js} +1 -1
  92. package/dist/assets/{scissors-Dtc0iZPF.js → scissors-BBC_GGoc.js} +1 -1
  93. package/dist/assets/{search-x-C7zLOTi7.js → search-x-CHDiifxm.js} +1 -1
  94. package/dist/assets/{send-BA_OtGrV.js → send-CwDFB9fX.js} +1 -1
  95. package/dist/assets/{settings-2-BzcfNdMc.js → settings-2-C5tt8eea.js} +1 -1
  96. package/dist/assets/shapes-C5Nnn9NE.js +1 -0
  97. package/dist/assets/{sigma-DFDTfJlI.js → sigma-BSlFNDI5.js} +1 -1
  98. package/dist/assets/{speaker-PGSeODKI.js → speaker-ydML9LxI.js} +1 -1
  99. package/dist/assets/src-74VUgk_H.js +100 -0
  100. package/dist/assets/{sso-popup-Cs85_JEB.js → sso-popup-UlSzMwYE.js} +1 -1
  101. package/dist/assets/{step-inspector-model-B1Tuq6co.js → step-inspector-model-BjV68lpZ.js} +1 -1
  102. package/dist/assets/{table-2-B1IGjGV3.js → table-2-CeAydAOI.js} +1 -1
  103. package/dist/assets/{timer-reset-BePL4KnU.js → timer-reset-B_Ta8kGS.js} +1 -1
  104. package/dist/assets/{tv-Be97KtJK.js → tv-BdJr-riI.js} +1 -1
  105. package/dist/assets/{unlink-WMRglu7x.js → unlink-DzO14DVn.js} +1 -1
  106. package/dist/assets/{usb-DELsHf1A.js → usb-W-ktPgHL.js} +1 -1
  107. package/dist/assets/{use-device-bound-caps-Ci1qRqfj.js → use-device-bound-caps-BzRqxW9K.js} +1 -1
  108. package/dist/assets/{use-scenes-feed-CSRDiXlC.js → use-scenes-feed-DZH0C2Or.js} +1 -1
  109. package/dist/assets/{use-stationary-objects-C4uhF0Lo.js → use-stationary-objects-CxfCt8t5.js} +1 -1
  110. package/dist/assets/{useAdminDeviceRemoval-C5k2S_qW.js → useAdminDeviceRemoval-BDwjFK9L.js} +1 -1
  111. package/dist/assets/useEventInvalidation-C64DegYL.js +1 -0
  112. package/dist/assets/{useNodeUrlSelection-CgRrxNd2.js → useNodeUrlSelection-CavUTTX3.js} +1 -1
  113. package/dist/assets/useTemplateSave-BSq-JUcx.js +1 -0
  114. package/dist/assets/user-round-D8euVsR1.js +1 -0
  115. package/dist/assets/{user-x-DARSMBU3.js → user-x--TnMk2gT.js} +1 -1
  116. package/dist/assets/{variable-BCL__P0T.js → variable-Bz8zKWo2.js} +1 -1
  117. package/dist/assets/{video-B38E1osq.js → video-b4uGYAxS.js} +1 -1
  118. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-Bkkm-53n.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BTYYp2-O.js} +2 -2
  119. package/dist/index.html +10 -10
  120. package/dist/server/addon.js +37 -35
  121. package/package.json +2 -2
  122. package/dist/assets/Calendars-C9ZSLbHl.js +0 -1
  123. package/dist/assets/DeviceDetail-CWLf4l8q.js +0 -2
  124. package/dist/assets/EditTemplateButton-BqvyA5Pg.js +0 -1
  125. package/dist/assets/InstancesTable-CrMiPOFq.js +0 -1
  126. package/dist/assets/Integrations-DIgPCmCb.js +0 -1
  127. package/dist/assets/Templates-C4mFSZiC.js +0 -1
  128. package/dist/assets/circle-slash-D9aFPEN1.js +0 -1
  129. package/dist/assets/client-DRdJu8dM.js +0 -809
  130. package/dist/assets/crop-D1nLFU4t.js +0 -1
  131. package/dist/assets/device-picker-model-CgDeVP8s.js +0 -1
  132. package/dist/assets/dist-UQng_ywA.js +0 -809
  133. package/dist/assets/grip-vertical-C9DzhrBS.js +0 -1
  134. package/dist/assets/i18n-DFz3VmFc.js +0 -1
  135. package/dist/assets/icons-Ud0oSLOy.js +0 -1
  136. package/dist/assets/mount-CgDeVP8s.js +0 -1
  137. package/dist/assets/remoteEntry-C7_kKwaq.js +0 -1
  138. package/dist/assets/shapes-CaybZ7kz.js +0 -1
  139. package/dist/assets/src-CCPnH3Vz.js +0 -100
  140. package/dist/assets/useEventInvalidation-CgDeVP8s.js +0 -1
  141. package/dist/assets/user-round-DJFBqcFq.js +0 -1
@@ -1 +1 @@
1
- import{t as e}from"./i18n-DFz3VmFc.js";function t(e){return e===`totp`||e===`passkey`}function n(e){if(!e.startsWith(`#`))return null;let n=new URLSearchParams(e.slice(1)),r=n.get(`challenge`);if(r!==null){if(r.length===0)return null;let e=(n.get(`factors`)??``).split(`,`).filter(t);return e.length===0?null:{kind:`challenge`,challengeToken:r,factors:e}}let i=n.get(`error`);return i===`sso-not-linked`||i===`sso-state`?{kind:`error`,code:i,provider:n.get(`provider`)}:null}function r(t,n){switch(t){case`sso-not-linked`:return e.t(`helpers.ssoReturn.notLinked`,{provider:n??e.t(`helpers.ssoReturn.signInFallback`)});case`sso-state`:return e.t(`helpers.ssoReturn.state`)}}var i={expired:`helpers.ssoReturn.link.expired`,provider:`helpers.ssoReturn.link.provider`,session:`helpers.ssoReturn.link.session`,conflict:`helpers.ssoReturn.link.conflict`,state:`helpers.ssoReturn.link.state`};function a(t){let n=new URLSearchParams(t),r=n.get(`linked`);if(r!==null&&r.length>0)return{kind:`linked`,provider:r};let a=n.get(`linkError`);return a===null?null:{kind:`error`,message:e.t(i[a]??`helpers.ssoReturn.link.failed`)}}var o=`camstack:sso-return`,s=`camstack:sso-ack`,c=`/sso-complete`,l=1500,u=520,d=680;function f(e){if(!e.startsWith(`#`))return null;let t=new URLSearchParams(e.slice(1)),n=t.get(`return`);t.delete(`return`);let r=t.toString();return n===`login`?r.length>0?{target:n,fragment:r}:null:n===`profile`&&r.length>0?{target:n,query:r}:null}function p(e){return e.target===`login`?`/login#${e.fragment}`:`/system/my-access?${e.query}`}function m(e){let t=new URL(e,`http://placeholder.invalid`);return t.searchParams.set(`popup`,`1`),/^[a-z][a-z0-9+.-]*:/i.test(e)?t.toString():`${t.pathname}${t.search}${t.hash}`}function h(e=window){let t=Math.max(0,Math.round(e.screenX+(e.outerWidth-u)/2)),n=Math.max(0,Math.round(e.screenY+(e.outerHeight-d)/2));return[`popup=yes`,`width=${u}`,`height=${d}`,`left=${t}`,`top=${n}`,`toolbar=no`,`menubar=no`,`location=no`,`status=no`,`resizable=yes`,`scrollbars=yes`].join(`,`)}function g(e){try{return window.open(e??`about:blank`,`camstack-sso`,h())??null}catch{return null}}function _(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.target===`login`?typeof t.fragment==`string`:t.target===`profile`?typeof t.query==`string`:!1}function v(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.type===`camstack:sso-return`&&_(t.completion)}function y(e,t,n){return t===null||e.source!==t||e.origin!==n?null:v(e.data)?e.data.completion:null}var b=`camstack-sso`,x=`camstack:sso-done`;function S(e,t){return e.target===`profile`?{target:`profile`,query:e.query}:t?{target:`login`}:null}function C(e){if(typeof e!=`object`||!e)return null;let t=e;if(t.type!==`camstack:sso-done`)return null;let n=Object.keys(t).sort().join(`,`);return t.target===`login`&&n===`target,type`?{target:`login`}:t.target===`profile`&&typeof t.query==`string`&&n===`query,target,type`?{target:`profile`,query:t.query}:null}function w(e){return typeof e==`object`&&!!e&&e.type===`camstack:sso-done-ack`}function T(e){try{let t=e.location.origin;return typeof t==`string`?t:null}catch{return null}}function E(){if(typeof BroadcastChannel>`u`)return null;try{let e=new BroadcastChannel(b);return{post:t=>e.postMessage(t),subscribe:t=>{let n=e=>t(e.data);return e.addEventListener(`message`,n),()=>e.removeEventListener(`message`,n)},close:()=>e.close()}}catch{return null}}var D=500;function O(e,t,n=window,r={}){let i=n.location.origin,a=r.channel===void 0?E():null,o=r.channel===void 0?a:r.channel,c=r.setInterval??((e,t)=>window.setInterval(e,t)),l=r.clearInterval??(e=>window.clearInterval(e)),u=!1,d=!1,f=r=>{let a=y(r,e,i);a===null||u||(u=!0,n.removeEventListener(`message`,f),e.postMessage({type:s},i),t.onReturn(a))};n.addEventListener(`message`,f);let p=o?.subscribe(e=>{let n=C(e);n===null||u||(u=!0,o.post({type:`camstack:sso-done-ack`}),t.onDone?.(n))})??null,m=c(()=>{d||!e.closed||(d=!0,l(m),t.onClosed?.())},D);return()=>{n.removeEventListener(`message`,f),p?.(),a?.close(),l(m)}}function k(e,t,n){if(t===null||e.source!==t||e.origin!==n)return!1;let r=e.data;return typeof r==`object`&&!!r&&r.type===`camstack:sso-ack`}function A(e,t){return new Promise(n=>{let r=!1,i=t(()=>{r||(r=!0,i(),n(!0))});e.setTimeout(()=>{r||(r=!0,i(),n(!1))},l)})}function j(e,t,n){let r=A(n,e=>{let r=r=>{k(r,t,n.origin)&&e()};return n.addEventListener(`message`,r),()=>n.removeEventListener(`message`,r)});try{let r={type:o,completion:e};t.postMessage(r,n.origin)}catch{}return r}function M(e,t,n){let r=A(n,e=>t.subscribe(t=>{w(t)&&e()}));return t.post({type:x,...e}),r}async function N(e,t){let n=t.opener!==null&&!t.opener.closed?t.opener:null;if(n!==null&&T(n)===t.origin&&await j(e,n,t)){t.close();return}let r=e.target===`login`?new URLSearchParams(e.fragment).get(`token`):null,i=r!==null&&r.length>0,o=S(e,i);if(o!==null&&t.channel!==null&&(r!==null&&i&&await t.persistSession(r),await M(o,t.channel,t))){t.close();return}if(n!==null&&e.target===`profile`){let n=a(`?${e.query}`);if(n?.kind===`error`){t.showResult({kind:`link-error`,message:n.message});return}t.close();return}t.continueAt(p(e))}function P(e,t){return(t.length>0&&e.startsWith(t)?e.slice(t.length):e).replace(/\/+$/,``)===c}export{f as a,m as c,r as d,g as i,a as l,P as n,T as o,E as r,O as s,N as t,n as u};
1
+ import{t as e}from"./i18n-DBlmrJTH.js";function t(e){return e===`totp`||e===`passkey`}function n(e){if(!e.startsWith(`#`))return null;let n=new URLSearchParams(e.slice(1)),r=n.get(`challenge`);if(r!==null){if(r.length===0)return null;let e=(n.get(`factors`)??``).split(`,`).filter(t);return e.length===0?null:{kind:`challenge`,challengeToken:r,factors:e}}let i=n.get(`error`);return i===`sso-not-linked`||i===`sso-state`?{kind:`error`,code:i,provider:n.get(`provider`)}:null}function r(t,n){switch(t){case`sso-not-linked`:return e.t(`helpers.ssoReturn.notLinked`,{provider:n??e.t(`helpers.ssoReturn.signInFallback`)});case`sso-state`:return e.t(`helpers.ssoReturn.state`)}}var i={expired:`helpers.ssoReturn.link.expired`,provider:`helpers.ssoReturn.link.provider`,session:`helpers.ssoReturn.link.session`,conflict:`helpers.ssoReturn.link.conflict`,state:`helpers.ssoReturn.link.state`};function a(t){let n=new URLSearchParams(t),r=n.get(`linked`);if(r!==null&&r.length>0)return{kind:`linked`,provider:r};let a=n.get(`linkError`);return a===null?null:{kind:`error`,message:e.t(i[a]??`helpers.ssoReturn.link.failed`)}}var o=`camstack:sso-return`,s=`camstack:sso-ack`,c=`/sso-complete`,l=1500,u=520,d=680;function f(e){if(!e.startsWith(`#`))return null;let t=new URLSearchParams(e.slice(1)),n=t.get(`return`);t.delete(`return`);let r=t.toString();return n===`login`?r.length>0?{target:n,fragment:r}:null:n===`profile`&&r.length>0?{target:n,query:r}:null}function p(e){return e.target===`login`?`/login#${e.fragment}`:`/system/my-access?${e.query}`}function m(e){let t=new URL(e,`http://placeholder.invalid`);return t.searchParams.set(`popup`,`1`),/^[a-z][a-z0-9+.-]*:/i.test(e)?t.toString():`${t.pathname}${t.search}${t.hash}`}function h(e=window){let t=Math.max(0,Math.round(e.screenX+(e.outerWidth-u)/2)),n=Math.max(0,Math.round(e.screenY+(e.outerHeight-d)/2));return[`popup=yes`,`width=${u}`,`height=${d}`,`left=${t}`,`top=${n}`,`toolbar=no`,`menubar=no`,`location=no`,`status=no`,`resizable=yes`,`scrollbars=yes`].join(`,`)}function g(e){try{return window.open(e??`about:blank`,`camstack-sso`,h())??null}catch{return null}}function _(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.target===`login`?typeof t.fragment==`string`:t.target===`profile`?typeof t.query==`string`:!1}function v(e){if(typeof e!=`object`||!e)return!1;let t=e;return t.type===`camstack:sso-return`&&_(t.completion)}function y(e,t,n){return t===null||e.source!==t||e.origin!==n?null:v(e.data)?e.data.completion:null}var b=`camstack-sso`,x=`camstack:sso-done`;function S(e,t){return e.target===`profile`?{target:`profile`,query:e.query}:t?{target:`login`}:null}function C(e){if(typeof e!=`object`||!e)return null;let t=e;if(t.type!==`camstack:sso-done`)return null;let n=Object.keys(t).sort().join(`,`);return t.target===`login`&&n===`target,type`?{target:`login`}:t.target===`profile`&&typeof t.query==`string`&&n===`query,target,type`?{target:`profile`,query:t.query}:null}function w(e){return typeof e==`object`&&!!e&&e.type===`camstack:sso-done-ack`}function T(e){try{let t=e.location.origin;return typeof t==`string`?t:null}catch{return null}}function E(){if(typeof BroadcastChannel>`u`)return null;try{let e=new BroadcastChannel(b);return{post:t=>e.postMessage(t),subscribe:t=>{let n=e=>t(e.data);return e.addEventListener(`message`,n),()=>e.removeEventListener(`message`,n)},close:()=>e.close()}}catch{return null}}var D=500;function O(e,t,n=window,r={}){let i=n.location.origin,a=r.channel===void 0?E():null,o=r.channel===void 0?a:r.channel,c=r.setInterval??((e,t)=>window.setInterval(e,t)),l=r.clearInterval??(e=>window.clearInterval(e)),u=!1,d=!1,f=r=>{let a=y(r,e,i);a===null||u||(u=!0,n.removeEventListener(`message`,f),e.postMessage({type:s},i),t.onReturn(a))};n.addEventListener(`message`,f);let p=o?.subscribe(e=>{let n=C(e);n===null||u||(u=!0,o.post({type:`camstack:sso-done-ack`}),t.onDone?.(n))})??null,m=c(()=>{d||!e.closed||(d=!0,l(m),t.onClosed?.())},D);return()=>{n.removeEventListener(`message`,f),p?.(),a?.close(),l(m)}}function k(e,t,n){if(t===null||e.source!==t||e.origin!==n)return!1;let r=e.data;return typeof r==`object`&&!!r&&r.type===`camstack:sso-ack`}function A(e,t){return new Promise(n=>{let r=!1,i=t(()=>{r||(r=!0,i(),n(!0))});e.setTimeout(()=>{r||(r=!0,i(),n(!1))},l)})}function j(e,t,n){let r=A(n,e=>{let r=r=>{k(r,t,n.origin)&&e()};return n.addEventListener(`message`,r),()=>n.removeEventListener(`message`,r)});try{let r={type:o,completion:e};t.postMessage(r,n.origin)}catch{}return r}function M(e,t,n){let r=A(n,e=>t.subscribe(t=>{w(t)&&e()}));return t.post({type:x,...e}),r}async function N(e,t){let n=t.opener!==null&&!t.opener.closed?t.opener:null;if(n!==null&&T(n)===t.origin&&await j(e,n,t)){t.close();return}let r=e.target===`login`?new URLSearchParams(e.fragment).get(`token`):null,i=r!==null&&r.length>0,o=S(e,i);if(o!==null&&t.channel!==null&&(r!==null&&i&&await t.persistSession(r),await M(o,t.channel,t))){t.close();return}if(n!==null&&e.target===`profile`){let n=a(`?${e.query}`);if(n?.kind===`error`){t.showResult({kind:`link-error`,message:n.message});return}t.close();return}t.continueAt(p(e))}function P(e,t){return(t.length>0&&e.startsWith(t)?e.slice(t.length):e).replace(/\/+$/,``)===c}export{f as a,m as c,r as d,g as i,a as l,P as n,T as o,E as r,O as s,N as t,n as u};
@@ -1 +1 @@
1
- import{K as e,R as t,et as n}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Qr as r,Ro as i,bs as a,ni as o,zo as s}from"./client-DRdJu8dM.js";import{Tr as c,_r as l,br as u,vr as d,wr as f,xr as p}from"./src-CCPnH3Vz.js";import{t as m}from"./i18n-DFz3VmFc.js";import{Br as h}from"./index-BCCGVD9f.js";n();var g=`step`,_=[g,`acc`];function v(e,t){return`${e}/${t}`}function y(e,t,n){let r=n.step!==null&&e.includes(n.step),i=n.acc!==null&&t.includes(n.acc);return{stepId:r?n.step:null,acceleratorId:i?n.acc:null,staleStepId:n.step!==null&&n.step!==``&&!r&&e.length>0?n.step:null}}var b=`armed:`;function x(e){return e.assignment.reasons.detection?.startsWith(b)===!0}function S(e){let{assignment:t,detection:n}=e;return n!==null&&n.provisioning.state===`failed`||t.detectionNodeId===null&&n===null&&!x(e)?`error`:n!==null&&n.phase===`active`?`healthy`:`idle`}function ee(e){let t=[],n=[],{assignment:r,detection:i,broker:a}=e;i!==null&&i.provisioning.state===`failed`&&t.push({code:`provisioning-failed`,severity:`error`,message:i.provisioning.error!==void 0&&i.provisioning.error.length>0?m.t(`helpers.cameraCardModel.provisioningFailedWith`,{error:i.provisioning.error}):m.t(`helpers.cameraCardModel.provisioningFailed`)}),i!==null&&i.phase===`active`&&i.actualFps===0&&t.push({code:`detection-black-hole`,severity:`error`,message:m.t(`helpers.cameraCardModel.blackHole`)}),r.detectionNodeId===null&&i===null&&!x(e)&&n.push({code:`unassigned`,severity:`warning`,message:m.t(`helpers.cameraCardModel.unassigned`)});let o=e.degraded??[];if(o.length>0){let e=[...new Set(o.map(e=>e.stage))].join(`, `);n.push({code:`status-unreadable`,severity:`warning`,message:m.t(`helpers.cameraCardModel.statusUnreadable`,{stages:e})})}n.push(...C(e.cameraSensors));for(let e of a?.profiles??[])e.status===`streaming`&&e.inFps===0&&n.push({code:`broker-stalled`,severity:`warning`,message:m.t(`helpers.cameraCardModel.brokerStalled`,{profile:e.profile})});return[...t,...n]}function te(e){return e.state===`unreadable`&&o.state===`unreadable`&&e.reason===o.reason}function ne(e){switch(e.state){case`ready`:return null;case`missing`:return{code:`camera-sensor-missing`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorMissing`,{addonId:e.addonId,stableId:e.stableId})};case`offline`:return{code:`camera-sensor-offline`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorOffline`,{name:e.name,deviceId:e.deviceId,reason:e.reason})};case`unsupported`:return{code:`camera-sensor-unsupported`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorUnsupported`,{name:e.name,deviceId:e.deviceId,reason:e.reason})};case`unreadable`:return{code:`camera-sensor-unreadable`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorUnreadable`,{addonId:e.addonId,stableId:e.stableId,reason:e.reason})}}}function C(e){if(e===void 0||e.state===`not-configured`)return[];if(e.state===`unreadable`)return te(e)?[]:[{code:`camera-sensors-unreadable`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorsUnreadable`,{reason:e.reason})}];let t=e.sensors.flatMap(e=>{let t=ne(e);return t===null?[]:[t]}),n=e.notForwarded===void 0?t:[w(e.notForwarded),...t];return e.notEnforced===void 0?n:[{code:`camera-sensors-not-enforced`,severity:`warning`,message:m.t(`helpers.cameraCardModel.notEnforced`)},...n]}function w(e){return{code:`camera-sensors-not-forwarded`,severity:`warning`,message:e===`onboard-not-listed`?m.t(`helpers.cameraCardModel.notForwardedOnboard`):m.t(`helpers.cameraCardModel.notForwardedNoDetection`)}}function T(e){return e===void 0?m.t(`helpers.cameraCardModel.summaryUnavailable`):e.state===`not-configured`?m.t(`helpers.cameraCardModel.summaryNone`):e.state===`unreadable`?m.t(`helpers.cameraCardModel.summaryUnknown`,{reason:e.reason}):e.sensors.map(D).join(`, `)}function E(e){return e.mode===`in-addition`?``:` · ${e.mode}`}function D(e){return`${O(e)}${E(e)}`}function O(e){switch(e.state){case`ready`:return`${e.name} (#${e.deviceId})`;case`offline`:return`${e.name} (#${e.deviceId}) — ${e.reason}`;case`unsupported`:return m.t(`helpers.cameraCardModel.summaryUnsupported`,{name:e.name,deviceId:e.deviceId});case`missing`:case`unreadable`:return`${e.addonId}/${e.stableId} — ${e.state}`}}function k(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function A(e){return typeof e==`string`&&e.length>0?e:null}function j(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function M(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function N(e,t){return e==null?!1:JSON.stringify(e)!==JSON.stringify(t??null)}var P={detectionMode:null,detectionStreamProfile:null,detectionFps:null,motionSources:[],motionFps:null,motionCooldownMs:null,motionStreamProfile:null,audioMode:null,pipelineNodeId:null,decoderNodeId:null,audioNodeId:null,overriddenKeys:new Set};function F(e){if(!k(e)||!Array.isArray(e.sections))return P;let t=a(e),n=e=>{let n=t.get(e);if(n!==void 0)return n.value??n.default},r=new Set;for(let[e,n]of t)N(n.value,n.default)&&r.add(e);return{detectionMode:A(n(`detectionMode`)),detectionStreamProfile:A(n(`detectionStreamProfile`)),detectionFps:j(n(`detectionFps`)),motionSources:M(n(`motionSources`)),motionFps:j(n(`motionFps`)),motionCooldownMs:j(n(`motionCooldownMs`)),motionStreamProfile:A(n(`motionStreamProfile`)),audioMode:A(n(`audioMode`)),pipelineNodeId:A(n(`pipelineNodeId`)),decoderNodeId:A(n(`decoderNodeId`)),audioNodeId:A(n(`audioNodeId`)),overriddenKeys:r}}function I(e,t=0){let n=[];for(let r of e)n.push({addonId:r.addonId,modelId:r.modelId??null,enabled:r.enabled,depth:t}),r.children!==void 0&&r.children.length>0&&n.push(...I(r.children,t+1));return n}function L(n,r){let[i,a]=h(),o=i.get(g),s=i.get(`acc`),c=e(()=>y(n,r,{step:o,acc:s}),[n,r,o,s]),l=t(e=>{a(t=>{let n=new URLSearchParams(t);return e(n),n},{replace:!0})},[a]);return{selection:c,open:t(e=>l(t=>{t.set(g,e.stepId),e.acceleratorId===void 0?t.delete(`acc`):t.set(`acc`,e.acceleratorId)}),[l]),close:t(()=>l(e=>{e.delete(g),e.delete(`acc`)}),[l])}}function R(e,t){for(let n of e?.slots??[])for(let e of n.addons)if(e.id===t)return e;return null}function z(e){return e.split(`.`)[0]??e}function B(e,t,n){return{id:v(e,n.key),nodeId:e,deviceKey:n.key,device:n,label:`${z(t)} · ${f(n)}`,shortLabel:`${z(t)} · ${c(n)}`,nodeLabel:z(t),disabled:!n.enabled}}function V(e,t,n,r=!1){return n.filter(e=>r||e.enabled).map(n=>B(e,t,n))}function H(e,t,n){return{modelId:u({catalog:e,device:t.device,base:n.nodePin}),source:n.nodePin===void 0?`default`:`node`}}function U(e,t){let n=R(e,`object-detection`);if(n===null)return;let r=u({catalog:n,device:t.device,base:t.device.steps?.[`object-detection`]?.modelId});if(r===void 0)return;let i=n.models.find(e=>e.id===r);return{modelId:r,name:i?.name??r,supplies:i?.suppliesSteps??[]}}function W(e,t,n){return!i(e)||n===void 0?!1:s(e,t,n.supplies).effective}function G(e,t){return e!==null&&p(e.models,t.device.format)}function K(e){return G(e.addon,e.acc)?e.clusterModelId===void 0?{kind:`enabled`,modelId:e.model.modelId??`Auto`,...e.rootName===void 0?{}:{suppliedByRoot:e.rootName},...e.jumpTo===void 0?{}:{jumpTo:e.jumpTo}}:{kind:`enabled`,modelId:e.clusterModelId,clusterWide:!0}:e.gatedOn?e.jumpTo===void 0?{kind:`skip`}:{kind:`skip`,jumpTo:e.jumpTo}:{kind:`na`}}function q(e){if(e===null)return[];let t=(e.configSchema??[]).flatMap(e=>`label`in e&&typeof e.label==`string`?[e.label]:[]),n=r(e.id).map(e=>e.label);return[...new Set([...t,...n])]}function J(e){return e.flatMap(e=>[{node:e,depth:0},...J(e.children).map(e=>({node:e.node,depth:e.depth+1}))])}function Y(e){return d(e)}function X(e){return{nodeFields:Y(e),acceleratorFields:Z(e)}}function Z(e){return e.flatMap(e=>{if(e.type===`group`){let t=Z(e.fields);return t.length>0?[{...e,fields:[...t]}]:[]}return l(e)?[e]:[]})}function Q(e){return e.some(e=>e.type===`group`?Q(e.fields):l(e))}function $(e,t){return e.flatMap(e=>{let n=$(e.children,t);return t.has(e.addonId)||n.length>0?[{...e,children:n}]:[]})}export{F as _,J as a,_ as b,U as c,q as d,H as f,ee as g,T as h,R as i,G as l,L as m,K as n,Q as o,W as p,$ as r,V as s,Y as t,X as u,I as v,S as y};
1
+ import{K as e,R as t,et as n}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Qr as r,Ro as i,bs as a,ni as o,zo as s}from"./client-kWeONSGL.js";import{Tr as c,_r as l,br as u,vr as d,wr as f,xr as p}from"./src-74VUgk_H.js";import{t as m}from"./i18n-DBlmrJTH.js";import{Br as h}from"./index-UQRaV7sW.js";n();var g=`step`,_=[g,`acc`];function v(e,t){return`${e}/${t}`}function y(e,t,n){let r=n.step!==null&&e.includes(n.step),i=n.acc!==null&&t.includes(n.acc);return{stepId:r?n.step:null,acceleratorId:i?n.acc:null,staleStepId:n.step!==null&&n.step!==``&&!r&&e.length>0?n.step:null}}var b=`armed:`;function x(e){return e.assignment.reasons.detection?.startsWith(b)===!0}function S(e){let{assignment:t,detection:n}=e;return n!==null&&n.provisioning.state===`failed`||t.detectionNodeId===null&&n===null&&!x(e)?`error`:n!==null&&n.phase===`active`?`healthy`:`idle`}function ee(e){let t=[],n=[],{assignment:r,detection:i,broker:a}=e;i!==null&&i.provisioning.state===`failed`&&t.push({code:`provisioning-failed`,severity:`error`,message:i.provisioning.error!==void 0&&i.provisioning.error.length>0?m.t(`helpers.cameraCardModel.provisioningFailedWith`,{error:i.provisioning.error}):m.t(`helpers.cameraCardModel.provisioningFailed`)}),i!==null&&i.phase===`active`&&i.actualFps===0&&t.push({code:`detection-black-hole`,severity:`error`,message:m.t(`helpers.cameraCardModel.blackHole`)}),r.detectionNodeId===null&&i===null&&!x(e)&&n.push({code:`unassigned`,severity:`warning`,message:m.t(`helpers.cameraCardModel.unassigned`)});let o=e.degraded??[];if(o.length>0){let e=[...new Set(o.map(e=>e.stage))].join(`, `);n.push({code:`status-unreadable`,severity:`warning`,message:m.t(`helpers.cameraCardModel.statusUnreadable`,{stages:e})})}n.push(...C(e.cameraSensors));for(let e of a?.profiles??[])e.status===`streaming`&&e.inFps===0&&n.push({code:`broker-stalled`,severity:`warning`,message:m.t(`helpers.cameraCardModel.brokerStalled`,{profile:e.profile})});return[...t,...n]}function te(e){return e.state===`unreadable`&&o.state===`unreadable`&&e.reason===o.reason}function ne(e){switch(e.state){case`ready`:return null;case`missing`:return{code:`camera-sensor-missing`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorMissing`,{addonId:e.addonId,stableId:e.stableId})};case`offline`:return{code:`camera-sensor-offline`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorOffline`,{name:e.name,deviceId:e.deviceId,reason:e.reason})};case`unsupported`:return{code:`camera-sensor-unsupported`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorUnsupported`,{name:e.name,deviceId:e.deviceId,reason:e.reason})};case`unreadable`:return{code:`camera-sensor-unreadable`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorUnreadable`,{addonId:e.addonId,stableId:e.stableId,reason:e.reason})}}}function C(e){if(e===void 0||e.state===`not-configured`)return[];if(e.state===`unreadable`)return te(e)?[]:[{code:`camera-sensors-unreadable`,severity:`warning`,message:m.t(`helpers.cameraCardModel.sensorsUnreadable`,{reason:e.reason})}];let t=e.sensors.flatMap(e=>{let t=ne(e);return t===null?[]:[t]}),n=e.notForwarded===void 0?t:[w(e.notForwarded),...t];return e.notEnforced===void 0?n:[{code:`camera-sensors-not-enforced`,severity:`warning`,message:m.t(`helpers.cameraCardModel.notEnforced`)},...n]}function w(e){return{code:`camera-sensors-not-forwarded`,severity:`warning`,message:e===`onboard-not-listed`?m.t(`helpers.cameraCardModel.notForwardedOnboard`):m.t(`helpers.cameraCardModel.notForwardedNoDetection`)}}function T(e){return e===void 0?m.t(`helpers.cameraCardModel.summaryUnavailable`):e.state===`not-configured`?m.t(`helpers.cameraCardModel.summaryNone`):e.state===`unreadable`?m.t(`helpers.cameraCardModel.summaryUnknown`,{reason:e.reason}):e.sensors.map(D).join(`, `)}function E(e){return e.mode===`in-addition`?``:` · ${e.mode}`}function D(e){return`${O(e)}${E(e)}`}function O(e){switch(e.state){case`ready`:return`${e.name} (#${e.deviceId})`;case`offline`:return`${e.name} (#${e.deviceId}) — ${e.reason}`;case`unsupported`:return m.t(`helpers.cameraCardModel.summaryUnsupported`,{name:e.name,deviceId:e.deviceId});case`missing`:case`unreadable`:return`${e.addonId}/${e.stableId} — ${e.state}`}}function k(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function A(e){return typeof e==`string`&&e.length>0?e:null}function j(e){return typeof e==`number`&&Number.isFinite(e)?e:null}function M(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function N(e,t){return e==null?!1:JSON.stringify(e)!==JSON.stringify(t??null)}var P={detectionMode:null,detectionStreamProfile:null,detectionFps:null,motionSources:[],motionFps:null,motionCooldownMs:null,motionStreamProfile:null,audioMode:null,pipelineNodeId:null,decoderNodeId:null,audioNodeId:null,overriddenKeys:new Set};function F(e){if(!k(e)||!Array.isArray(e.sections))return P;let t=a(e),n=e=>{let n=t.get(e);if(n!==void 0)return n.value??n.default},r=new Set;for(let[e,n]of t)N(n.value,n.default)&&r.add(e);return{detectionMode:A(n(`detectionMode`)),detectionStreamProfile:A(n(`detectionStreamProfile`)),detectionFps:j(n(`detectionFps`)),motionSources:M(n(`motionSources`)),motionFps:j(n(`motionFps`)),motionCooldownMs:j(n(`motionCooldownMs`)),motionStreamProfile:A(n(`motionStreamProfile`)),audioMode:A(n(`audioMode`)),pipelineNodeId:A(n(`pipelineNodeId`)),decoderNodeId:A(n(`decoderNodeId`)),audioNodeId:A(n(`audioNodeId`)),overriddenKeys:r}}function I(e,t=0){let n=[];for(let r of e)n.push({addonId:r.addonId,modelId:r.modelId??null,enabled:r.enabled,depth:t}),r.children!==void 0&&r.children.length>0&&n.push(...I(r.children,t+1));return n}function L(n,r){let[i,a]=h(),o=i.get(g),s=i.get(`acc`),c=e(()=>y(n,r,{step:o,acc:s}),[n,r,o,s]),l=t(e=>{a(t=>{let n=new URLSearchParams(t);return e(n),n},{replace:!0})},[a]);return{selection:c,open:t(e=>l(t=>{t.set(g,e.stepId),e.acceleratorId===void 0?t.delete(`acc`):t.set(`acc`,e.acceleratorId)}),[l]),close:t(()=>l(e=>{e.delete(g),e.delete(`acc`)}),[l])}}function R(e,t){for(let n of e?.slots??[])for(let e of n.addons)if(e.id===t)return e;return null}function z(e){return e.split(`.`)[0]??e}function B(e,t,n){return{id:v(e,n.key),nodeId:e,deviceKey:n.key,device:n,label:`${z(t)} · ${f(n)}`,shortLabel:`${z(t)} · ${c(n)}`,nodeLabel:z(t),disabled:!n.enabled}}function V(e,t,n,r=!1){return n.filter(e=>r||e.enabled).map(n=>B(e,t,n))}function H(e,t,n){return{modelId:u({catalog:e,device:t.device,base:n.nodePin}),source:n.nodePin===void 0?`default`:`node`}}function U(e,t){let n=R(e,`object-detection`);if(n===null)return;let r=u({catalog:n,device:t.device,base:t.device.steps?.[`object-detection`]?.modelId});if(r===void 0)return;let i=n.models.find(e=>e.id===r);return{modelId:r,name:i?.name??r,supplies:i?.suppliesSteps??[]}}function W(e,t,n){return!i(e)||n===void 0?!1:s(e,t,n.supplies).effective}function G(e,t){return e!==null&&p(e.models,t.device.format)}function K(e){return G(e.addon,e.acc)?e.clusterModelId===void 0?{kind:`enabled`,modelId:e.model.modelId??`Auto`,...e.rootName===void 0?{}:{suppliedByRoot:e.rootName},...e.jumpTo===void 0?{}:{jumpTo:e.jumpTo}}:{kind:`enabled`,modelId:e.clusterModelId,clusterWide:!0}:e.gatedOn?e.jumpTo===void 0?{kind:`skip`}:{kind:`skip`,jumpTo:e.jumpTo}:{kind:`na`}}function q(e){if(e===null)return[];let t=(e.configSchema??[]).flatMap(e=>`label`in e&&typeof e.label==`string`?[e.label]:[]),n=r(e.id).map(e=>e.label);return[...new Set([...t,...n])]}function J(e){return e.flatMap(e=>[{node:e,depth:0},...J(e.children).map(e=>({node:e.node,depth:e.depth+1}))])}function Y(e){return d(e)}function X(e){return{nodeFields:Y(e),acceleratorFields:Z(e)}}function Z(e){return e.flatMap(e=>{if(e.type===`group`){let t=Z(e.fields);return t.length>0?[{...e,fields:[...t]}]:[]}return l(e)?[e]:[]})}function Q(e){return e.some(e=>e.type===`group`?Q(e.fields):l(e))}function $(e,t){return e.flatMap(e=>{let n=$(e.children,t);return t.has(e.addonId)||n.length>0?[{...e,children:n}]:[]})}export{F as _,J as a,_ as b,U as c,q as d,H as f,ee as g,T as h,R as i,G as l,L as m,K as n,Q as o,W as p,$ as r,V as s,Y as t,X as u,I as v,S as y};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`timer-reset`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`M12 14v-4`,key:`1evpnu`}],[`path`,{d:`M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6`,key:`1ts96g`}],[`path`,{d:`M9 17H4v5`,key:`8t5av`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`timer-reset`,[[`path`,{d:`M10 2h4`,key:`n1abiw`}],[`path`,{d:`M12 14v-4`,key:`1evpnu`}],[`path`,{d:`M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6`,key:`1ts96g`}],[`path`,{d:`M9 17H4v5`,key:`8t5av`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.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(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),a=e(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),o=e(`list-video`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`path`,{d:`M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`ms4nik`}]]),s=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`}]]),c=e(`tv`,[[`path`,{d:`m17 2-5 5-5-5`,key:`16satq`}],[`rect`,{width:`20`,height:`15`,x:`2`,y:`7`,rx:`2`,key:`1e6viu`}]]);export{i as a,t as c,a as i,s as n,r as o,o as r,n as s,c as t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.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(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),a=e(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),o=e(`list-video`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`path`,{d:`M15 12.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z`,key:`ms4nik`}]]),s=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`}]]),c=e(`tv`,[[`path`,{d:`m17 2-5 5-5-5`,key:`16satq`}],[`rect`,{width:`20`,height:`15`,x:`2`,y:`7`,rx:`2`,key:`1e6viu`}]]);export{i as a,t as c,a as i,s as n,r as o,o as r,n as s,c as t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]);export{t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`unlink`,[[`path`,{d:`m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71`,key:`yqzxt4`}],[`path`,{d:`m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71`,key:`4qinb0`}],[`line`,{x1:`8`,x2:`8`,y1:`2`,y2:`5`,key:`1041cp`}],[`line`,{x1:`2`,x2:`5`,y1:`8`,y2:`8`,key:`14m1p5`}],[`line`,{x1:`16`,x2:`16`,y1:`19`,y2:`22`,key:`rzdirn`}],[`line`,{x1:`19`,x2:`22`,y1:`16`,y2:`16`,key:`ox905f`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`circuit-board`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M11 9h4a2 2 0 0 0 2-2V3`,key:`1ve2rv`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`M7 21v-4a2 2 0 0 1 2-2h4`,key:`1fwkro`}],[`circle`,{cx:`15`,cy:`15`,r:`2`,key:`3i40o0`}]]),n=e(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),r=e(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),i=e(`scale`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]),a=e(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]);export{t as a,n as i,i as n,r,a as t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`circuit-board`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M11 9h4a2 2 0 0 0 2-2V3`,key:`1ve2rv`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`M7 21v-4a2 2 0 0 1 2-2h4`,key:`1fwkro`}],[`circle`,{cx:`15`,cy:`15`,r:`2`,key:`3i40o0`}]]),n=e(`crown`,[[`path`,{d:`M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z`,key:`1vdc57`}],[`path`,{d:`M5 21h14`,key:`11awu3`}]]),r=e(`pin-off`,[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]),i=e(`scale`,[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]),a=e(`usb`,[[`circle`,{cx:`10`,cy:`7`,r:`1`,key:`dypaad`}],[`circle`,{cx:`4`,cy:`20`,r:`1`,key:`22iqad`}],[`path`,{d:`M4.7 19.3 19 5`,key:`1enqfc`}],[`path`,{d:`m21 3-3 1 2 2Z`,key:`d3ov82`}],[`path`,{d:`M9.26 7.68 5 12l2 5`,key:`1esawj`}],[`path`,{d:`m10 14 5 2 3.5-3.5`,key:`v8oal5`}],[`path`,{d:`m18 12 1-1 1 1-1 1Z`,key:`1bh22v`}]]);export{t as a,n as i,i as n,r,a as t};
@@ -1 +1 @@
1
- import{a as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{ht as t}from"./player-overlays-oE7aPZdg.js";import"./src-CCPnH3Vz.js";var n=6e4;function r(r){let i=t();return e({queryKey:[`device-do-action`,`bound-caps`,r],enabled:r>0,staleTime:n,queryFn:async()=>{let e=await i.trpcClient.deviceManager.getBindings.query({deviceId:r});return[...new Set(e.entries.map(e=>e.capName))].sort((e,t)=>e.localeCompare(t))}})}function i(r){let i=t(),a=[...new Set(r.filter(e=>e>0))].sort((e,t)=>e-t);return e({queryKey:[`device-do-action`,`bound-caps-batch`,a],enabled:a.length>0,staleTime:n,queryFn:async()=>{let e=await i.trpcClient.deviceManager.getBindingsBatch.query({deviceIds:a}),t=new Map;for(let n of e)t.set(n.deviceId,[...new Set(n.entries.map(e=>e.capName))].sort((e,t)=>e.localeCompare(t)));return t}})}export{i as n,r as t};
1
+ import{a as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{ht as t}from"./player-overlays-CC-b3--a.js";import"./src-74VUgk_H.js";var n=6e4;function r(r){let i=t();return e({queryKey:[`device-do-action`,`bound-caps`,r],enabled:r>0,staleTime:n,queryFn:async()=>{let e=await i.trpcClient.deviceManager.getBindings.query({deviceId:r});return[...new Set(e.entries.map(e=>e.capName))].sort((e,t)=>e.localeCompare(t))}})}function i(r){let i=t(),a=[...new Set(r.filter(e=>e>0))].sort((e,t)=>e-t);return e({queryKey:[`device-do-action`,`bound-caps-batch`,a],enabled:a.length>0,staleTime:n,queryFn:async()=>{let e=await i.trpcClient.deviceManager.getBindingsBatch.query({deviceIds:a}),t=new Map;for(let n of e)t.set(n.deviceId,[...new Set(n.entries.map(e=>e.capName))].sort((e,t)=>e.localeCompare(t)));return t}})}export{i as n,r as t};
@@ -1 +1 @@
1
- import{a as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{ht as t}from"./player-overlays-oE7aPZdg.js";import"./src-CCPnH3Vz.js";var n=3e4,r={results:[],unreachableCount:0};function i(i){let a=t(),o=i.length>0,s=[...i].sort((e,t)=>e-t),{data:c,isLoading:l,isError:u}=e({queryKey:[`scenes-feed`,s],enabled:o,staleTime:n,refetchInterval:n,retry:!1,queryFn:async()=>{let e=await a.trpcClient.sceneMonitor.listScenesBatch.query({deviceIds:s}),t=[],n=0;for(let r of e){if(r.status===null){n++;continue}t.push({deviceId:r.deviceId,monitors:r.status.monitors})}return{results:t,unreachableCount:n}}}),d=c??(u?{results:[],unreachableCount:s.length}:r);return{results:d.results,isLoading:o&&l,unreachableCount:d.unreachableCount}}export{i as t};
1
+ import{a as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{ht as t}from"./player-overlays-CC-b3--a.js";import"./src-74VUgk_H.js";var n=3e4,r={results:[],unreachableCount:0};function i(i){let a=t(),o=i.length>0,s=[...i].sort((e,t)=>e-t),{data:c,isLoading:l,isError:u}=e({queryKey:[`scenes-feed`,s],enabled:o,staleTime:n,refetchInterval:n,retry:!1,queryFn:async()=>{let e=await a.trpcClient.sceneMonitor.listScenesBatch.query({deviceIds:s}),t=[],n=0;for(let r of e){if(r.status===null){n++;continue}t.push({deviceId:r.deviceId,monitors:r.status.monitors})}return{results:t,unreachableCount:n}}}),d=c??(u?{results:[],unreachableCount:s.length}:r);return{results:d.results,isLoading:o&&l,unreachableCount:d.unreachableCount}}export{i as t};
@@ -1 +1 @@
1
- import{a as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{ht as t}from"./player-overlays-oE7aPZdg.js";import"./src-CCPnH3Vz.js";var n=15e3,r={rows:[],unreadableCount:0};function i(i){let a=t(),o=i.length>0,s=[...i].sort((e,t)=>e-t),{data:c,isLoading:l}=e({queryKey:[`stationary-objects`,s],enabled:o,staleTime:n,refetchInterval:n,queryFn:async()=>{let e=await a.trpcClient.zoneAnalytics.getCurrentSnapshotBatch.query({deviceIds:s}),t=[],n=0;for(let r of e){if(r.read===`unreadable`){n++;continue}for(let e of r.snapshot?.stationaryObjects??[])t.push({...e,deviceId:r.deviceId})}return{rows:t,unreadableCount:n}}}),u=c??r;return{rows:u.rows.toSorted((e,t)=>t.becameStationaryAt-e.becameStationaryAt),isLoading:o&&l,unreadableCount:u.unreadableCount}}export{i as t};
1
+ import{a as e}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{ht as t}from"./player-overlays-CC-b3--a.js";import"./src-74VUgk_H.js";var n=15e3,r={rows:[],unreadableCount:0};function i(i){let a=t(),o=i.length>0,s=[...i].sort((e,t)=>e-t),{data:c,isLoading:l}=e({queryKey:[`stationary-objects`,s],enabled:o,staleTime:n,refetchInterval:n,queryFn:async()=>{let e=await a.trpcClient.zoneAnalytics.getCurrentSnapshotBatch.query({deviceIds:s}),t=[],n=0;for(let r of e){if(r.read===`unreadable`){n++;continue}for(let e of r.snapshot?.stationaryObjects??[])t.push({...e,deviceId:r.deviceId})}return{rows:t,unreadableCount:n}}}),u=c??r;return{rows:u.rows.toSorted((e,t)=>t.becameStationaryAt-e.becameStationaryAt),isLoading:o&&l,unreadableCount:u.unreadableCount}}export{i as t};
@@ -1 +1 @@
1
- import{R as e,et as t,o as n}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{c as r,rs as i}from"./src-CCPnH3Vz.js";import{t as a}from"./useTranslation-BJr-n0es.js";import{st as o}from"./index-BCCGVD9f.js";t();function s(){let{t}=a(),s=n(),{mutateAsync:c}=i();return r({remove:e(e=>c({deviceId:e.deviceId}),[c]),refresh:e(()=>s.invalidateQueries({queryKey:[[`deviceManager`]]}),[s]),onError:e((e,n)=>{o({severity:`critical`,title:t(`devices.removeFailed.title`,`Could not remove the device`),message:n,duration:8e3})},[t])})}export{s as t};
1
+ import{R as e,et as t,o as n}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{c as r,rs as i}from"./src-74VUgk_H.js";import{t as a}from"./useTranslation-BJr-n0es.js";import{st as o}from"./index-UQRaV7sW.js";t();function s(){let{t}=a(),s=n(),{mutateAsync:c}=i();return r({remove:e(e=>c({deviceId:e.deviceId}),[c]),refresh:e(()=>s.invalidateQueries({queryKey:[[`deviceManager`]]}),[s]),onError:e((e,n)=>{o({severity:`critical`,title:t(`devices.removeFailed.title`,`Could not remove the device`),message:n,duration:8e3})},[t])})}export{s as t};
@@ -0,0 +1 @@
1
+ import"./src-74VUgk_H.js";
@@ -1 +1 @@
1
- import{C as e,K as t,R as n,S as r,et as i}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Ut as a}from"./player-overlays-oE7aPZdg.js";import{Br as o,Pr as s}from"./index-BCCGVD9f.js";function c({staleNodeId:t,shownNodeName:n}){return t===null?null:e(`div`,{role:`status`,className:`flex items-start gap-2 rounded-md border border-warning/30 bg-warning/5 px-3 py-2 text-[11px] text-foreground-subtle`,children:[r(a,{className:`mt-0.5 h-3.5 w-3.5 shrink-0 text-warning`}),r(`span`,{children:r(s,{i18nKey:`shared.staleNodeNotice.notice`,values:{id:t,name:n},components:{b:r(`span`,{className:`font-medium text-foreground`})}})})]})}i();var l=`node`;function u(e){return[...e].toSorted((e,t)=>e.isHub===t.isHub?e.isOnline===t.isOnline?e.name.localeCompare(t.name):e.isOnline?-1:1:e.isHub?-1:1)}function d(e,t){let n=u(e),r=n[0]??null;if(r===null)return{node:null,outcome:`empty`,staleNodeId:null};if(t===null||t.length===0)return{node:r,outcome:`default`,staleNodeId:null};let i=n.find(e=>e.id===t);return i===void 0?{node:r,outcome:`stale`,staleNodeId:t}:{node:i,outcome:`requested`,staleNodeId:null}}function f(e){let[r,i]=o(),a=r.get(l);return{selection:t(()=>d(e,a),[e,a]),selectNode:n(e=>{let t=new URLSearchParams(r);t.set(l,e),i(t,{replace:!0})},[r,i]),requestedNodeId:a}}export{c as n,f as t};
1
+ import{C as e,K as t,R as n,S as r,et as i}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Ut as a}from"./player-overlays-CC-b3--a.js";import{Br as o,Pr as s}from"./index-UQRaV7sW.js";function c({staleNodeId:t,shownNodeName:n}){return t===null?null:e(`div`,{role:`status`,className:`flex items-start gap-2 rounded-md border border-warning/30 bg-warning/5 px-3 py-2 text-[11px] text-foreground-subtle`,children:[r(a,{className:`mt-0.5 h-3.5 w-3.5 shrink-0 text-warning`}),r(`span`,{children:r(s,{i18nKey:`shared.staleNodeNotice.notice`,values:{id:t,name:n},components:{b:r(`span`,{className:`font-medium text-foreground`})}})})]})}i();var l=`node`;function u(e){return[...e].toSorted((e,t)=>e.isHub===t.isHub?e.isOnline===t.isOnline?e.name.localeCompare(t.name):e.isOnline?-1:1:e.isHub?-1:1)}function d(e,t){let n=u(e),r=n[0]??null;if(r===null)return{node:null,outcome:`empty`,staleNodeId:null};if(t===null||t.length===0)return{node:r,outcome:`default`,staleNodeId:null};let i=n.find(e=>e.id===t);return i===void 0?{node:r,outcome:`stale`,staleNodeId:t}:{node:i,outcome:`requested`,staleNodeId:null}}function f(e){let[r,i]=o(),a=r.get(l);return{selection:t(()=>d(e,a),[e,a]),selectNode:n(e=>{let t=new URLSearchParams(r);t.set(l,e),i(t,{replace:!0})},[r,i]),requestedNodeId:a}}export{c as n,f as t};
@@ -0,0 +1 @@
1
+ import{C as e,H as t,J as n,K as r,R as i,S as a,V as o,Y as s,et as c,o as l,q as u,x as d}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-CEyXHAdg.js";import{Bt as f,Cn as p,Kt as m,Un as h,da as g,dt as _,la as v,sa as y,ua as b,ut as x}from"./player-overlays-CC-b3--a.js";import{$i as S,Cr as C,Dr as w,Er as T,Fr as E,Mr as D,Pr as ee,Sr as te,To as ne,_r as re,br as ie,ea as ae,gr as oe,ia as se,jr as ce,na as le,ra as ue,ta as de,vr as O,xr as fe,yr as pe}from"./client-kWeONSGL.js";import{n as me,r as he,t as ge}from"./shapes-C5Nnn9NE.js";import{t as _e}from"./unlink-DzO14DVn.js";import{Br as ve,Cf as ye,Dd as be,Fr as xe,Ft as k,Ir as Se,Lr as Ce,Pu as we,Qr as Te,Si as Ee,Vr as De,Xr as Oe,Yr as ke,cf as A,hn as Ae,lf as je,sf as j,ur as Me,vf as Ne,wd as Pe,yi as M,zr as Fe}from"./src-74VUgk_H.js";import{t as N}from"./useTranslation-BJr-n0es.js";c();function Ie(){return{columns:3,rows:4,buttons:[]}}var P=e=>({status:`refused`,reason:e}),F=e=>({status:`ok`,grid:e});function Le(e,t){return t.row>=0&&t.col>=0&&t.row+t.rowSpan<=e.rows&&t.col+t.colSpan<=e.columns}var Re=E;function ze(e,t){return t.row>=e.row&&t.col>=e.col&&t.row+t.rowSpan<=e.row+e.rowSpan&&t.col+t.colSpan<=e.col+e.colSpan}function I(e){return e.groups??[]}function L(e,t){return I(e).find(e=>e.id===t)}function Be(e,t){return e.buttons.filter(e=>e.groupId===t)}function Ve(e,t){let{groups:n,...r}=e;return t.length===0?r:{...r,groups:[...t]}}function He(e,t){let{groupId:n,...r}=t;for(let n of I(e))if(Re(n,t))return n.frame===`divider`||!ze(n,t)?`overlap`:{...r,groupId:n.id};return r}function Ue(e,t,n){if(t.rowSpan<1||t.colSpan<1)return`invalid-size`;if(!Le(e,t))return`outside`;if(e.buttons.some(e=>e.id!==n&&Re(e,t)))return`overlap`;let r=He(e,t);return typeof r==`string`?r:null}function We(e,t){let n=Ue(e,t,t.id);if(n!==null)return P(n);let r=He(e,t);return typeof r==`string`?P(r):F({...e,buttons:e.buttons.map(e=>e.id===t.id?r:e)})}function R(e,t){return e.buttons.find(e=>e.id===t)}function Ge(e){let t=new Set(e.buttons.map(e=>e.id));for(let n=e.buttons.length+1;;n+=1)if(!t.has(`b${n}`))return`b${n}`}function Ke(e){for(let t=0;t<e.rows;t+=1)for(let n=0;n<e.columns;n+=1){let r={id:``,row:t,col:n,rowSpan:1,colSpan:1,role:`power`};if(!I(e).some(e=>Re(e,r))&&Ue(e,r,null)===null)return{row:t,col:n}}return null}function qe(e,t){if(e.buttons.length>=200)return P(`outside`);let n=Ke(e);if(n===null)return P(`outside`);let r=He(e,{id:Ge(e),row:n.row,col:n.col,rowSpan:1,colSpan:1,role:t});return typeof r==`string`?P(r):F({...e,buttons:[...e.buttons,r]})}function Je(e,t,n,r){let i=R(e,t);return i===void 0?P(`unknown-button`):We(e,{...i,row:n,col:r})}function Ye(e,t,n,r){let i=R(e,t);return i===void 0?P(`unknown-button`):Je(e,t,i.row+n,i.col+r)}function Xe(e,t,n,r){let i=R(e,t);return i===void 0?P(`unknown-button`):We(e,{...i,rowSpan:n,colSpan:r})}function z(e,t,n){let r=R(e,t);if(r===void 0)return P(`unknown-button`);let i=n.icon===void 0?r.icon:n.icon??void 0,a=n.label===void 0?r.label:n.label??void 0,o=a===void 0||a.trim()===``?void 0:a,{icon:s,label:c,...l}=r,u={...l,role:n.role??r.role,...i===void 0?{}:{icon:i},...o===void 0?{}:{label:o}};return F({...e,buttons:e.buttons.map(e=>e.id===t?u:e)})}function Ze(e,t,n){let r=R(e,t);if(r===void 0)return P(`unknown-button`);let{shape:i,tone:a,showLegend:o,...s}=r,c=n.shape===void 0?r.shape:n.shape??void 0,l=n.tone===void 0?r.tone:n.tone??void 0,u=n.showLegend===void 0?r.showLegend:n.showLegend,d={...s,...c===void 0?{}:{shape:c},...l===void 0?{}:{tone:l},...u===!0?{showLegend:u}:{}};return F({...e,buttons:e.buttons.map(e=>e.id===t?d:e)})}function Qe(e,t){return{...e,buttons:e.buttons.filter(e=>e.id!==t)}}var $e=e=>e.ok?F(e.layout):P(e.reason);function et(e,t,n,r){return $e(pe(e,t,{row:n,col:r}))}function tt(e,t,n){return $e(ie(e,t,{keepButtons:n}))}function nt(e,t,n){let r=L(e,t);if(r===void 0)return P(`unknown-group`);let{title:i,...a}=r,o=n.trim()===``?a:{...a,title:n.slice(0,40)};return F(Ve(e,I(e).map(e=>e.id===t?o:e)))}function rt(e){return e.frame===`divider`&&e.rowSpan===1&&e.size!==`normal`}function it(e){let t=new Set,n=I(e);for(let r of n){if(!rt(r))continue;let i=r.row;e.buttons.some(e=>e.row<=i&&i<e.row+e.rowSpan)||n.some(e=>e!==r&&e.row<=i&&i<e.row+e.rowSpan)||t.add(i)}return t}function at(e){let t=it(e);return Array.from({length:e.rows},(e,n)=>(t.has(n)?1:2.75)+.375)}function ot(e,t,n){let r=L(e,t);if(r===void 0)return P(`unknown-group`);let{size:i,hideTitle:a,...o}=r,s=n.size??r.size,c=n.hideTitle??r.hideTitle,l={...o,...s===`normal`?{size:s}:{},...c===!0?{hideTitle:c}:{}};return F(Ve(e,I(e).map(e=>e.id===t?l:e)))}function st(e,t,n){let r=e=>!Number.isInteger(e)||e<1||e>24;if(r(t)||r(n))return P(`invalid-size`);let i={...e,columns:t,rows:n};return e.buttons.some(e=>!Le(i,e))||I(e).some(e=>!Le(i,e))?P(`would-drop-buttons`):F(i)}function ct(e){let t=ee.safeParse(e);return t.success?t.data:null}function lt(e){let t=ee.safeParse(e);return t.success?t.data:Ie()}var ut=[`power`,`volume`,`channel`,`navigation`,`playback`,`digits`,`other`];function dt(e){return e.startsWith(`power`)?`power`:e.startsWith(`volume`)||e===`mute`?`volume`:e.startsWith(`channel`)?`channel`:e.startsWith(`digit_`)?`digits`:[`up`,`down`,`left`,`right`,`ok`,`back`,`home`,`menu`,`exit`].includes(e)?`navigation`:[`play`,`pause`,`play_pause`,`stop`,`next`,`previous`,`fast_forward`,`rewind`].includes(e)?`playback`:`other`}function ft(e){return S.filter(t=>dt(t)===e)}function pt(e){let t=ae(e),n=(t??e).replace(/_/g,` `);return t===null?n.charAt(0).toUpperCase()+n.slice(1):n}function mt(e){return ae(e)!==null&&!ue(e)}function B(e,t,n){let r={columns:e,rows:t,buttons:[]};for(let e of n){let t={id:e.id,row:e.row,col:e.col,rowSpan:e.rowSpan??1,colSpan:e.colSpan??1,role:e.role,...e.icon===void 0?{}:{icon:e.icon},...e.label===void 0?{}:{label:e.label},...e.tone===void 0?{}:{tone:e.tone},...e.showLegend===!0?{showLegend:!0}:{}},n=Ue(r,t,null);if(n!==null||r.buttons.some(t=>t.id===e.id))throw Error(`layout button "${e.id}": ${n??`duplicate id`}`);r={...r,buttons:[...r.buttons,t]}}return r}var V=`"/></svg>`,ht={title:`Apple Music`,slug:`applemusic`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Apple Music</title><path d="`+this.path+V},path:`M23.994 6.124a9.23 9.23 0 00-.24-2.19c-.317-1.31-1.062-2.31-2.18-3.043a5.022 5.022 0 00-1.877-.726 10.496 10.496 0 00-1.564-.15c-.04-.003-.083-.01-.124-.013H5.986c-.152.01-.303.017-.455.026-.747.043-1.49.123-2.193.4-1.336.53-2.3 1.452-2.865 2.78-.192.448-.292.925-.363 1.408-.056.392-.088.785-.1 1.18 0 .032-.007.062-.01.093v12.223c.01.14.017.283.027.424.05.815.154 1.624.497 2.373.65 1.42 1.738 2.353 3.234 2.801.42.127.856.187 1.293.228.555.053 1.11.06 1.667.06h11.03a12.5 12.5 0 001.57-.1c.822-.106 1.596-.35 2.295-.81a5.046 5.046 0 001.88-2.207c.186-.42.293-.87.37-1.324.113-.675.138-1.358.137-2.04-.002-3.8 0-7.595-.003-11.393zm-6.423 3.99v5.712c0 .417-.058.827-.244 1.206-.29.59-.76.962-1.388 1.14-.35.1-.706.157-1.07.173-.95.045-1.773-.6-1.943-1.536a1.88 1.88 0 011.038-2.022c.323-.16.67-.25 1.018-.324.378-.082.758-.153 1.134-.24.274-.063.457-.23.51-.516a.904.904 0 00.02-.193c0-1.815 0-3.63-.002-5.443a.725.725 0 00-.026-.185c-.04-.15-.15-.243-.304-.234-.16.01-.318.035-.475.066-.76.15-1.52.303-2.28.456l-2.325.47-1.374.278c-.016.003-.032.01-.048.013-.277.077-.377.203-.39.49-.002.042 0 .086 0 .13-.002 2.602 0 5.204-.003 7.805 0 .42-.047.836-.215 1.227-.278.64-.77 1.04-1.434 1.233-.35.1-.71.16-1.075.172-.96.036-1.755-.6-1.92-1.544-.14-.812.23-1.685 1.154-2.075.357-.15.73-.232 1.108-.31.287-.06.575-.116.86-.177.383-.083.583-.323.6-.714v-.15c0-2.96 0-5.922.002-8.882 0-.123.013-.25.042-.37.07-.285.273-.448.546-.518.255-.066.515-.112.774-.165.733-.15 1.466-.296 2.2-.444l2.27-.46c.67-.134 1.34-.27 2.01-.403.22-.043.442-.088.663-.106.31-.025.523.17.554.482.008.073.012.148.012.223.002 1.91.002 3.822 0 5.732z`,source:`https://www.apple.com/itunes/marketing-on-music/identity-guidelines.html#apple-music-icon`,hex:`FA243C`},gt={title:`Apple TV`,slug:`appletv`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Apple TV</title><path d="`+this.path+V},path:`M20.57 17.735h-1.815l-3.34-9.203h1.633l2.02 5.987c.075.231.273.9.586 2.012l.297-.997.33-1.006 2.094-6.004H24zm-5.344-.066a5.76 5.76 0 0 1-1.55.207c-1.23 0-1.84-.693-1.84-2.087V9.646h-1.063V8.532h1.121V7.081l1.476-.602v2.062h1.707v1.113H13.38v5.805c0 .446.074.75.214.932.14.182.396.264.75.264.207 0 .495-.041.883-.115zm-7.29-5.343c.017 1.764 1.55 2.358 1.567 2.366-.017.042-.248.842-.808 1.658-.487.71-.99 1.418-1.79 1.435-.783.016-1.03-.462-1.93-.462-.89 0-1.17.445-1.913.478-.758.025-1.344-.775-1.838-1.484-.998-1.451-1.765-4.098-.734-5.88.51-.89 1.426-1.451 2.416-1.46.75-.016 1.468.512 1.93.512.461 0 1.327-.627 2.234-.536.38.016 1.452.157 2.136 1.154-.058.033-1.278.743-1.27 2.219M6.468 7.988c.404-.495.685-1.18.61-1.864-.585.025-1.294.388-1.723.883-.38.437-.71 1.138-.619 1.806.652.05 1.328-.338 1.732-.825Z`,source:`https://en.wikipedia.org/wiki/File:Apple_TV_(logo).svg`,hex:`000000`},_t={title:`Crunchyroll`,slug:`crunchyroll`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Crunchyroll</title><path d="`+this.path+V},path:`M2.909 13.436C2.914 7.61 7.642 2.893 13.468 2.898c5.576.005 10.137 4.339 10.51 9.819q.021-.351.022-.706C24.007 5.385 18.64.006 12.012 0S.007 5.36 0 11.988 5.36 23.994 11.988 24q.412 0 .815-.027c-5.526-.338-9.9-4.928-9.894-10.538Zm16.284.155a4.1 4.1 0 0 1-4.095-4.103 4.1 4.1 0 0 1 2.712-3.855 8.95 8.95 0 0 0-4.187-1.037 9.007 9.007 0 1 0 8.997 9.016q-.001-.847-.15-1.651a4.1 4.1 0 0 1-3.278 1.63Z`,source:`https://www.crunchyroll.com`,hex:`FF5E00`},vt={title:`DAZN`,slug:`dazn`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>DAZN</title><path d="`+this.path+V},path:`M14.774 8.291l.772-2.596.79 2.596zm3.848 2.268l-2.025-6.128c-.045-.135-.097-.224-.154-.266-.059-.041-.152-.063-.28-.063h-1.12a.485.485 0 0 0-.284.068c-.06.045-.11.132-.149.261l-2.045 6.128c-.025.032-.038.096-.038.192 0 .149.09.223.27.223h.84c.076 0 .139-.003.187-.01a.207.207 0 0 0 .116-.048.326.326 0 0 0 .077-.116c.022-.051.046-.119.072-.202l.318-1.071h2.306l.327 1.051c.026.09.051.16.077.213a.395.395 0 0 0 .087.12c.031.028.07.047.114.053h.002c.045.006.103.01.173.01h.897c.18 0 .27-.074.27-.223a.59.59 0 0 0-.005-.09.878.878 0 0 0-.036-.108l.003.006zm-.994 2.467h-.646c-.168 0-.279.024-.333.072-.055.049-.082.147-.082.295v3.638l-1.91-3.647c-.076-.155-.152-.253-.226-.295-.074-.041-.204-.063-.39-.063h-.599c-.167 0-.278.025-.332.073-.055.048-.082.147-.082.294v6.138c0 .148.025.246.077.294.052.048.16.072.328.072h.656c.167 0 .278-.024.332-.072.055-.048.082-.146.082-.294v-3.648l1.91 3.657c.077.155.152.253.227.295.073.042.204.062.39.062h.598c.167 0 .278-.024.333-.072.054-.048.082-.146.082-.294v-6.138c0-.148-.028-.246-.082-.294-.055-.048-.166-.073-.333-.073zm3.203-.581l1.665 1.665v8.385H1.505V14.11l1.663-1.664a.63.63 0 0 0 0-.89L1.504 9.891V1.505h20.991v8.384l-1.665 1.666a.63.63 0 0 0 0 .89zM24 0H0v10.613L1.387 12 0 13.387V24h24V13.387L22.613 12 24 10.613zM10.67 18.469H7.96l2.855-4.014a.67.67 0 0 0 .087-.155.425.425 0 0 0 .019-.135v-.772c0-.148-.028-.246-.082-.294-.055-.048-.166-.073-.334-.073H6.382c-.149 0-.245.028-.29.082-.045.055-.068.169-.068.343v.58c0 .172.023.287.068.341.045.055.141.083.29.083h2.545L6.11 18.469a.438.438 0 0 0-.107.27v.792c0 .148.027.245.082.294.055.048.167.072.334.072h4.25c.148 0 .245-.027.29-.081.045-.055.068-.17.068-.344v-.579c0-.173-.023-.287-.068-.342-.045-.055-.142-.082-.29-.082zM9.408 8.233c0 .264-.017.484-.052.661-.036.177-.093.32-.174.43a.648.648 0 0 1-.318.231 1.523 1.523 0 0 1-.487.068h-.79v-4.17h.79c.366 0 .63.11.79.324.16.215.241.571.241 1.067v1.389zm1.38-2.789c-.225-.457-.533-.795-.921-1.013-.39-.219-.88-.328-1.47-.328H6.418c-.167 0-.278.024-.333.072-.054.049-.082.147-.082.294v6.138c0 .148.028.246.082.295.055.048.166.072.333.072h2.218c1.048 0 1.765-.447 2.15-1.342.09-.205.153-.413.188-.622a4.91 4.91 0 0 0 .054-.796V6.911c0-.367-.018-.656-.054-.868a2.2 2.2 0 0 0-.193-.612l.006.013z`,source:`https://media.dazn.com/en/assets/`,hex:`F8F8F5`},yt={title:`Kodi`,slug:`kodi`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Kodi</title><path d="`+this.path+V},path:`M12.03.047c-.226 0-.452.107-.669.324-.922.922-1.842 1.845-2.763 2.768-.233.233-.455.48-.703.695-.31.267-.405.583-.399.988.02 1.399.008 2.799.008 4.198 0 1.453-.002 2.907 0 4.36 0 .11.002.223.03.327.087.337.303.393.546.15 1.31-1.31 2.618-2.622 3.928-3.933l4.449-4.453c.43-.431.43-.905 0-1.336L12.697.37c-.216-.217-.442-.324-.668-.324zm7.224 7.23c-.223 0-.445.104-.65.309L14.82 11.37c-.428.429-.427.895 0 1.322l3.76 3.766c.44.44.908.44 1.346.002 1.215-1.216 2.427-2.433 3.644-3.647.182-.18.353-.364.43-.615v-.33c-.077-.251-.246-.436-.428-.617-1.224-1.22-2.443-2.445-3.666-3.668-.205-.205-.429-.307-.652-.307zM4.18 7.611c-.086.014-.145.094-.207.157L.209 11.572c-.28.284-.278.677.004.96l2.043 2.046c.59.59 1.177 1.182 1.767 1.772.169.168.33.139.416-.084.044-.114.062-.242.063-.364.004-1.283.004-2.567.004-3.851h-.002V8.184c0-.085-.01-.169-.022-.252-.019-.135-.072-.258-.207-.309a.186.186 0 0 0-.095-.012zm7.908 6.838c-.224 0-.447.106-.656.315L7.66 18.537c-.433.434-.433.899.002 1.334 1.215 1.216 2.43 2.43 3.643 3.649.18.18.361.354.611.433h.33c.244-.069.423-.226.598-.402 1.222-1.23 2.45-2.453 3.676-3.68.43-.43.427-.905-.004-1.338l-3.772-3.773c-.208-.208-.432-.311-.656-.31z`,source:`https://kodi.tv`,hex:`17B2E7`},bt={title:`Max`,slug:`max`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Max</title><path d="`+this.path+V},path:`M1.769 0A1.77 1.77 0 0 0 0 1.769V22.23A1.77 1.77 0 0 0 1.769 24H22.23A1.77 1.77 0 0 0 24 22.231V1.77A1.77 1.77 0 0 0 22.231 0zm12.485 3.28a4.301 4.301 0 0 1 4.3 4.302 4.301 4.301 0 0 1-1.993 3.63 6.085 6.085 0 0 1 1.054 3.422 6.085 6.085 0 0 1-6.085 6.085 6.085 6.085 0 0 1-6.085-6.085 6.085 6.085 0 0 1 4.66-5.916 4.301 4.301 0 0 1-.152-1.136 4.301 4.301 0 0 1 4.301-4.301zm0 1.849a2.453 2.453 0 0 0-2.453 2.453 2.453 2.453 0 0 0 2.453 2.453 2.453 2.453 0 0 0 2.453-2.453 2.453 2.453 0 0 0-2.453-2.453zm-2.724 5.268a4.237 4.237 0 0 0-4.237 4.237 4.237 4.237 0 0 0 4.237 4.237 4.237 4.237 0 0 0 4.237-4.237 4.237 4.237 0 0 0-4.237-4.237zm.032 2.54a1.781 1.781 0 1 1 0 3.562 1.781 1.781 0 0 1 0-3.562Z`,source:`https://cycling74.com`,hex:`525252`},xt={title:`Netflix`,slug:`netflix`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Netflix</title><path d="`+this.path+V},path:`m5.398 0 8.348 23.602c2.346.059 4.856.398 4.856.398L10.113 0H5.398zm8.489 0v9.172l4.715 13.33V0h-4.715zM5.398 1.5V24c1.873-.225 2.81-.312 4.715-.398V14.83L5.398 1.5z`,source:`https://brand.netflix.com/en/assets/logos`,hex:`E50914`,guidelines:`https://brand.netflix.com/en/assets/logos`},St={title:`NOW`,slug:`now`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>NOW</title><path d="`+this.path+V},path:`M8.8009 11.9974c0-.974.7878-1.7634 1.7596-1.7634.9718 0 1.7596.7895 1.7596 1.7634 0 .9738-.7878 1.7634-1.7596 1.7634-.9718 0-1.7596-.7896-1.7596-1.7634zm13.0277-2.896l-1.2166 2.4524-.7878-2.3188-.0015-.0003c-.1566-.4505-.5822-.7737-1.0829-.7737-.399 0-.7505.2054-.956.517-.5255.8015-1.0497 1.6094-1.5735 2.414l-.2785-1.956c-.0963-.6296-.6807-1.0587-1.3048-.9624-.6249.096-1.0538.6778-.958 1.304l.0488.328c-.6427-1.0749-1.8162-1.7945-3.1575-1.7945-1.353 0-2.5352.7324-3.174 1.823l.07-.3434c.1223-.6008-.2645-1.1873-.864-1.31-.5993-.1223-1.1848.265-1.307.8659l-.4763 2.3382-1.752-2.7177c-.198-.3042-.5399-.5053-.9284-.5053-.5317 0-.976.3765-1.084.879l-1.0217 5.012c-.1223.6007.257 1.1846.8575 1.3121.0747.0159.1556.0235.2291.024.5139.0036.9763-.3579 1.0844-.892l.4763-2.3383c.5924.9217 1.1845 1.844 1.779 2.7641.196.2777.5281.4662.9018.4662.5462 0 1.0002-.398 1.0915-.9219l.469-2.302c.2292 1.815 1.7755 3.2187 3.6488 3.2187 1.7257 0 3.1736-1.191 3.5705-2.7972l.2613 1.759c.0736.579.5474 1.0371 1.1411 1.0371.4272 0 .7756-.2445.9972-.5841l1.8844-2.8942.905 2.6645c.1622.4752.5808.8138 1.0961.8138.4788 0 .855-.288 1.0609-.7155l2.402-4.845c.2834-.568.0528-1.2551-.5123-1.5403-.5647-.285-1.2558-.0524-1.5379.5196Z`,source:`https://www.nowtv.com`,hex:`001211`},Ct={title:`Paramount+`,slug:`paramountplus`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Paramount+</title><path d="`+this.path+V},path:`M16.347 21.373c.057-.084.151-.314-.025-.74l-.53-1.428c-.073-.182.084-.293.19-.173 0 0 1.004 1.157 1.264 1.64l.495.822c.425.028 1.6.06 2.732.06a3.26 3.26 0 0 1-.316-.364c-1.93-2.392-3.154-3.724-3.166-3.737-.391-.426-.572-.508-.87-.643a4.82 4.82 0 0 1-.138-.065v.364c0 .047-.057.073-.086.022l-2.846-5.001a1.598 1.598 0 0 0-.508-.587l-.277-.194-1.354 3.123c.212 0 .354.216.27.409l-1.25 2.893h1.147c.443 0 .883.087 1.294.255l.302.125s-.913 1.878-.913 2.867c0 .181.028.362.075.534h2.104l-.096-.595s1.266.294 2.502.413M12 2.437c-6.627 0-12 5.373-12 12 0 2.669.873 5.133 2.346 7.126.503-.218.783-.542.983-.791l2.234-2.858a.467.467 0 0 1 .179-.138l.336-.146 3.674-4.659.534-.417 1.094-1.524a.482.482 0 0 1 .101-.102l.478-.347a.34.34 0 0 1 .398-.004l.578.407c.308.216.557.504.726.84l2.322 4.077c.051.09.09.129.182.174.454.227.732.268 1.33.913.277.304 1.495 1.666 3.203 3.784.236.318.538.588.963.783A11.948 11.948 0 0 0 24 14.437c0-6.627-5.373-12-12-12M3.236 15.1l-.778-.253-.48.662v-.818l-.778-.253.778-.253v-.818l.48.662.778-.253-.48.662Zm-.185 2.676-.252.778-.253-.778h-.818l.661-.481-.253-.777.663.48.66-.48-.252.777.662.481Zm.156-6.195.253.778-.661-.48-.663.48.253-.778-.66-.48h.817l.253-.778.252.777h.818Zm1.314-1.76L4.04 9.16l-.778.253.48-.661-.48-.663.778.254.48-.662v.818l.778.253-.777.252Zm2.045-2.862-.253.777-.252-.777h-.818l.662-.48-.253-.778.661.48.661-.48-.252.777.662.48Zm2.577-1.313-.48.661V5.49l-.779-.254.778-.253v-.817l.48.66.78-.253-.481.663.48.66zm3.265-.75.253.778-.661-.48-.662.48.252-.777-.66-.481h.818L12 3.637l.252.778h.818zm2.93.595v.816l-.481-.661-.777.252.48-.662-.48-.662.777.253.48-.66v.817l.779.252zm5.426 8.285.778.253.48-.662v.818l.778.253-.778.253v.818l-.48-.662-.778.253.48-.662zm-3.077-6.04-.253-.777h-.818l.662-.48-.253-.778.662.48.662-.48-.254.778.662.48h-.818zm1.792 2.086v-.818l-.777-.252.777-.253V7.68l.481.662.777-.254-.48.663.48.66-.777-.252zm1.469 1.278.253-.777.254.777h.816l-.66.481.252.778-.662-.48-.661.48.253-.778-.662-.48zm.506 6.676-.253.778-.253-.778h-.817l.662-.481-.253-.777.66.48.663-.48-.253.777.661.481zm-12.08-.615.76-1.588c.024-.048-.032-.108-.067-.067l-.664.668c-.313.329-.847 1.25-.95 1.421l-.808 1.335a.109.109 0 0 1 .1.162l-.739 1.238c-.18.309.145.523.189.452 1.157-1.868 1.832-1.719 1.832-1.719l.387-.897c.022-.047-.001-.1-.05-.12-.12-.05-.316-.27.01-.885z`,source:`https://www.paramount.com/brand/paramount-plus`,hex:`0064FF`},wt={title:`Plex`,slug:`plex`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Plex</title><path d="`+this.path+V},path:`M3.987 8.409c-.96 0-1.587.28-2.12.933v-.72H0v8.88s.038.018.127.037c.138.03.821.187 1.331-.249.441-.377.542-.814.542-1.318v-1.283c.533.573 1.147.813 2 .813 1.84 0 3.253-1.493 3.253-3.48 0-2.12-1.36-3.613-3.266-3.613Zm16.748 5.595.406.591c.391.614.894.906 1.492.908.621-.012 1.064-.562 1.226-.755 0 0-.307-.27-.686-.72-.517-.614-1.214-1.755-1.24-1.803l-1.198 1.779Zm-3.205-1.955c0-2.08-1.52-3.64-3.52-3.64s-3.467 1.587-3.467 3.573a3.48 3.48 0 0 0 3.507 3.52c1.413 0 2.626-.84 3.253-2.293h-2.04l-.093.093c-.427.4-.72.533-1.227.533-.787 0-1.373-.506-1.453-1.266h4.986c.04-.214.054-.307.054-.52Zm-7.671-.219c0 .769.11 1.701.868 2.722l.056.069c-.306.526-.742.88-1.248.88-.399 0-.814-.211-1.138-.579a2.177 2.177 0 0 1-.538-1.441V6.409H9.86l-.001 5.421Zm9.283 3.46h-2.39l2.247-3.332-2.247-3.335h2.39l2.248 3.335-2.248 3.332Zm1.593-1.286Zm-17.162-.342c-.933 0-1.68-.773-1.68-1.72s.76-1.666 1.68-1.666c.92 0 1.68.733 1.68 1.68 0 .946-.733 1.706-1.68 1.706Zm18.361-1.974L24 8.622h-2.391l-.87 1.293 1.195 1.773Zm-9.404-.466c.16-.706.72-1.133 1.493-1.133.773 0 1.373.467 1.507 1.133h-3Z`,source:`https://brand.plex.tv`,hex:`EBAF00`,guidelines:`https://brand.plex.tv`},Tt={title:`Sky`,slug:`sky`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Sky</title><path d="`+this.path+V},path:`M7.387 13.656c0 1.423-.933 2.454-2.823 2.675-1.35.147-3.337-.025-4.294-.148-.025-.147-.074-.343-.074-.49 0-1.252.663-1.522 1.3-1.522.664 0 1.694.123 2.455.123.834 0 1.104-.295 1.104-.565 0-.368-.343-.515-1.006-.638l-1.767-.343C.785 12.453 0 11.423 0 10.343c0-1.325.933-2.454 2.798-2.65 1.398-.148 3.116.024 4.049.122.024.172.049.32.049.491 0 1.252-.663 1.522-1.276 1.522-.491 0-1.227-.099-2.086-.099-.884 0-1.227.246-1.227.54 0 .32.343.442.883.54l1.718.32c1.742.294 2.479 1.3 2.479 2.527m3.092 1.521c0 .761-.295 1.203-1.792 1.203-.196 0-.368-.025-.54-.05V6.22c0-.76.27-1.57 1.767-1.57.196 0 .393.024.565.049zm6.085 3.927c.197.098.59.22 1.105.245.859.025 1.325-.319 1.693-1.08L24 7.913a2.5 2.5 0 0 0-.957-.22c-.589 0-1.399.122-1.914 1.325l-1.497 3.534-2.945-4.81c-.196-.05-.662-.148-1.006-.148-1.03 0-1.62.393-2.233 1.031l-2.871 3.141 2.306 3.632c.418.663.982 1.006 1.89 1.006.589 0 1.104-.147 1.325-.245l-2.773-4.196 1.963-2.086 3.24 5.08Z`,source:`https://www.skysports.com`,hex:`0072C9`},Et={title:`Spotify`,slug:`spotify`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Spotify</title><path d="`+this.path+V},path:`M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z`,source:`https://developer.spotify.com/documentation/general/design-and-branding/#using-our-logo`,hex:`1ED760`,guidelines:`https://developer.spotify.com/documentation/general/design-and-branding/#using-our-logo`},Dt={title:`Twitch`,slug:`twitch`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Twitch</title><path d="`+this.path+V},path:`M11.571 4.714h1.715v5.143H11.57zm4.715 0H18v5.143h-1.714zM6 0L1.714 4.286v15.428h5.143V24l4.286-4.286h3.428L22.286 12V0zm14.571 11.143l-3.428 3.428h-3.429l-3 3v-3H6.857V1.714h13.714Z`,source:`https://brand.twitch.tv`,hex:`9146FF`,guidelines:`https://brand.twitch.tv`},Ot={title:`YouTube`,slug:`youtube`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>YouTube</title><path d="`+this.path+V},path:`M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z`,source:`https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors`,hex:`FF0000`,guidelines:`https://www.youtube.com/howyoutubeworks/resources/brand-resources/#logos-icons-and-colors`},kt={title:`YouTube Music`,slug:`youtubemusic`,get svg(){return`<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>YouTube Music</title><path d="`+this.path+V},path:`M12 0C5.376 0 0 5.376 0 12s5.376 12 12 12 12-5.376 12-12S18.624 0 12 0zm0 19.104c-3.924 0-7.104-3.18-7.104-7.104S8.076 4.896 12 4.896s7.104 3.18 7.104 7.104-3.18 7.104-7.104 7.104zm0-13.332c-3.432 0-6.228 2.796-6.228 6.228S8.568 18.228 12 18.228s6.228-2.796 6.228-6.228S15.432 5.772 12 5.772zM9.684 15.54V8.46L15.816 12l-6.132 3.54z`,source:`https://partnermarketinghub.withgoogle.com/#/brands`,hex:`FF0000`},At=`app:`,H=(e,t,n)=>({key:e,label:t,mark:{kind:`glyph`,path:n.path,hex:n.hex}}),jt=(e,t,n)=>({key:e,label:t,mark:{kind:`lettermark`,text:n}}),Mt=[H(`netflix`,`Netflix`,xt),H(`youtube`,`YouTube`,Ot),jt(`primevideo`,`Prime Video`,`prime`),jt(`disneyplus`,`Disney+`,`D+`),H(`spotify`,`Spotify`,Et),H(`plex`,`Plex`,wt),H(`appletv`,`Apple TV`,gt),H(`dazn`,`DAZN`,vt),jt(`raiplay`,`RaiPlay`,`Rai`),jt(`mediasetinfinity`,`Mediaset Infinity`,`MI`),H(`now`,`NOW`,St),H(`twitch`,`Twitch`,Dt),H(`max`,`Max`,bt),H(`paramountplus`,`Paramount+`,Ct),H(`crunchyroll`,`Crunchyroll`,_t),H(`sky`,`Sky`,Tt),H(`youtubemusic`,`YouTube Music`,kt),H(`applemusic`,`Apple Music`,ht),H(`kodi`,`Kodi`,yt)],Nt=new Map(Mt.map(e=>[e.key,e]));function U(e){return`${At}${e}`}function W(e){if(!(e===void 0||!e.startsWith(`app:`)))return Nt.get(e.slice(4))}function Pt(e){if(!/^[0-9a-fA-F]{6}$/.test(e))return null;let t=t=>{let n=Number.parseInt(e.slice(t,t+2),16)/255;return n<=.03928?n/12.92:((n+.055)/1.055)**2.4};return .2126*t(0)+.7152*t(2)+.0722*t(4)}var Ft=.011,It=.91,Lt=2.2;function Rt(e,t){let[n,r]=e>t?[e,t]:[t,e];return(n+.05)/(r+.05)}function zt(e){if(e.kind!==`glyph`)return null;let t=Pt(e.hex);return t===null?null:Rt(t,Ft)>=Lt&&Rt(t,It)>=Lt?`#${e.hex}`:null}function Bt({brand:e}){if(e.mark.kind===`lettermark`)return a(`span`,{className:`text-[11px] font-semibold leading-none`,"aria-hidden":!0,children:e.mark.text});let t=zt(e.mark);return a(`svg`,{viewBox:`0 0 24 24`,className:`h-4 w-4 fill-current`,"aria-hidden":!0,style:t===null?void 0:{fill:t},children:a(`path`,{d:e.mark.path})})}function Vt(e){return e.toLowerCase().startsWith(`it`)?`it`:`en`}function Ht(e,t){return te(e,Vt(t))}function Ut(e){switch(e){case`rect`:return`rounded-sm`;case`rounded`:return`rounded-xl`;case`round`:return`aspect-square h-full w-auto justify-self-center rounded-full`;case`pill`:return`rounded-full`;default:return``}}function Wt(e){switch(e){case`accent`:return`border-primary bg-primary text-primary-foreground hover:bg-primary/90`;case`danger`:return`border-danger bg-danger-fill text-danger-on hover:bg-danger-fill/90`;case`red`:return`border-danger/40 bg-danger/15 text-danger hover:bg-danger/25`;case`green`:return`border-success/40 bg-success/15 text-success hover:bg-success/25`;case`yellow`:return`border-warning/40 bg-warning/15 text-warning hover:bg-warning/25`;case`blue`:return`border-info/40 bg-info/15 text-info hover:bg-info/25`;default:return``}}function Gt(e){switch(e){case`panel`:return`rounded-lg border border-border bg-surface/40`;case`dpad`:return`rounded-3xl border border-border bg-surface`;case`rocker-v`:case`rocker-h`:return`rounded-full border border-border bg-surface`;case`keypad`:return`rounded-lg border border-border-subtle bg-surface/60`;default:return``}}function Kt(e){return e===`divider`}function qt(e,t){let n=Math.min(Math.max(t.row,0),e.rows-1),r=Math.min(Math.max(t.col,0),e.columns-1),i=Math.min(Math.max(t.row+t.rowSpan,n+1),e.rows),a=Math.min(Math.max(t.col+t.colSpan,r+1),e.columns);return{row:n,col:r,rowSpan:i-n,colSpan:a-r}}var Jt=`2.75rem`,Yt=`1.25rem`,Xt=`1rem`;function Zt(e){let t=new Set;for(let n of e.buttons)for(let e=n.row;e<n.row+n.rowSpan;e+=1)for(let r=n.col;r<n.col+n.colSpan;r+=1)t.add(`${e}:${r}`);return t}var Qt=new Set([`red`,`green`,`yellow`,`blue`]);function $t(e,t){return e.label??W(e.icon)?.label??t}function en(e){return e.label===void 0||W(e.icon)!==void 0?!1:e.showLegend===!0||e.tone===void 0||!Qt.has(e.tone)}function tn(e){if(e.icon!==void 0)return e.icon;if(!(e.tone!==void 0&&Qt.has(e.tone)))return fe(e.role)}function nn({button:t,compact:n}){let r=ye(),i=W(t.icon),o=tn(t),s=t.icon===void 0?C(t.role):void 0,c=o===void 0||i!==void 0||s!==void 0?void 0:r(o),l=en(t)?t.label:void 0;return e(`span`,{className:`flex flex-col items-center justify-center gap-0.5 leading-none`,children:[i!==void 0&&a(Bt,{brand:i}),c!==void 0&&a(c,{className:`h-4 w-4`,"aria-hidden":!0}),s!==void 0&&a(`span`,{className:`text-sm font-medium`,children:s}),l!==void 0&&(!n||t.showLegend===!0)&&a(`span`,{className:`max-w-full truncate text-[11px]`,children:l})]})}function rn(e){return{gridRow:`${e.row+1} / span ${e.rowSpan}`,gridColumn:`${e.col+1} / span ${e.colSpan}`}}function an({group:t,selected:n,dragging:r,compact:i,editable:o,onSelect:s,onPointerDown:c,onKeyDown:l}){let{t:u}=N(),d=Kt(t.frame),f=!o||i||t.hideTitle===!0?void 0:t.title;return e(`div`,{"data-testid":`remote-group-${t.id}`,"data-frame":t.frame,className:_(`relative -m-0.5 flex`,Gt(t.frame),r&&`opacity-40`,n&&`ring-2 ring-primary`),style:rn(t),children:[d?e(`div`,{className:`flex w-full items-center gap-2 px-1 text-[10px] uppercase tracking-wide text-foreground-muted`,children:[a(`span`,{className:`h-px flex-1 bg-border`,"aria-hidden":!0}),f!==void 0&&a(`span`,{className:`truncate`,children:f}),f!==void 0&&a(`span`,{className:`h-px flex-1 bg-border`,"aria-hidden":!0})]}):f!==void 0&&a(`span`,{className:`absolute -top-1.5 left-3 max-w-[70%] truncate bg-background-elevated px-1 text-[10px] uppercase leading-none tracking-wide text-foreground-muted`,children:f}),o&&a(`button`,{type:`button`,"aria-label":u(`remote.layout.groupHandle`,{name:t.title??t.componentId}),"aria-pressed":n,"data-testid":`remote-group-handle-${t.id}`,className:`absolute -right-1 -top-2.5 z-20 flex h-4 w-4 touch-none cursor-grab items-center justify-center rounded-full border border-border bg-surface-hover text-foreground-muted hover:text-foreground`,onClick:s,onPointerDown:c,onKeyDown:l,children:a(he,{className:`h-3 w-3`,"aria-hidden":!0})})]})}function on({grid:n,label:r,selectedId:i=null,onSelect:o,boundRoles:s,showEmptyCells:c=!1,compact:l=!1,gridRef:u,selectedGroupId:d=null,onSelectGroup:f,onItemPointerDown:p,onItemKeyDown:m,drag:h=null,renderWidget:g}){let{i18n:v}=N(),y=p!==void 0,b=h!==null,x=Zt(n),S=it(n),C=[];if(c||b)for(let e=0;e<n.rows;e+=1)for(let t=0;t<n.columns;t+=1)(b||!x.has(`${e}:${t}`)&&!S.has(e))&&C.push({row:e,col:t});let w=h?.preview??null;return e(`div`,{role:`group`,"aria-label":r,"data-testid":`remote-grid`,ref:u,className:_(`grid gap-1.5`,l?`auto-rows-[1.25rem] gap-0.5`:`auto-rows-[2.75rem]`),style:{gridTemplateColumns:`repeat(${n.columns}, minmax(0, 1fr))`,...S.size===0?{}:{gridTemplateRows:Array.from({length:n.rows},(e,t)=>S.has(t)?Xt:l?Yt:Jt).join(` `)}},children:[C.map(({row:e,col:t})=>a(`div`,{"aria-hidden":!0,"data-testid":`remote-grid-cell`,className:_(`rounded-md border border-dashed`,b?`border-border`:`border-border-subtle`),style:{gridRow:`${e+1}`,gridColumn:`${t+1}`}},`e${e}:${t}`)),(n.groups??[]).map(e=>a(an,{group:e,selected:e.id===d,dragging:h?.item.kind===`group`&&h.item.id===e.id,compact:l,editable:y,onSelect:f===void 0?void 0:()=>f(e.id),onPointerDown:p===void 0?void 0:t=>p({kind:`group`,id:e.id},t),onKeyDown:m===void 0?void 0:t=>m({kind:`group`,id:e.id},t)},e.id)),n.buttons.map(e=>{if(g!==void 0&&se(e.role))return a(t,{children:g(e,rn(e))},e.id);let n=e.id===i,r=s===void 0||s.has(e.role),c=h?.item.kind===`button`&&h.item.id===e.id,u={kind:`button`,id:e.id},d=$t(e,Ht(e.role,v.language));return a(M,{type:`button`,size:`sm`,variant:r?`secondary`:`outline`,"aria-pressed":o===void 0?void 0:n,"aria-label":d,title:d,"data-testid":`remote-grid-button-${e.id}`,"data-shape":e.shape,"data-tone":e.tone,className:_(`z-10 h-full min-w-0 overflow-hidden border border-border px-1`,l&&`px-0`,Ut(e.shape),Wt(e.tone),y&&`touch-none`,c&&`opacity-40`,n&&`ring-2 ring-primary ring-offset-1 ring-offset-background`),style:rn(e),onClick:o===void 0?void 0:()=>o(e.id),onPointerDown:p===void 0?void 0:e=>p(u,e),onKeyDown:m===void 0?void 0:e=>m(u,e),children:a(nn,{button:e,compact:l})},e.id)}),w!==null&&a(`div`,{"aria-hidden":!0,"data-testid":`remote-drop-target`,"data-valid":w.valid,className:_(`pointer-events-none z-30 rounded-md border-2 border-dashed`,w.valid?`border-success bg-success/20`:`border-danger bg-danger/20`),style:rn(qt(n,w.rect))})]})}function sn(e){return{past:[],present:e,future:[]}}var cn=e=>e.past.length>0,ln=e=>e.future.length>0;function un(e,t){switch(t.type){case`edit`:return Object.is(t.value,e.present)?e:{past:[...e.past,e.present].slice(-100),present:t.value,future:[]};case`undo`:{let t=e.past.at(-1);return t===void 0?e:{past:e.past.slice(0,-1),present:t,future:[e.present,...e.future]}}case`redo`:{let[t,...n]=e.future;return t===void 0?e:{past:[...e.past,e.present],present:t,future:n}}}}var G=12,K=4,q=3,J=(e,t,n,r,i,a={})=>({id:e,role:t,row:n,col:r,colSpan:i,...a}),Y=e=>`custom:${e}`;function X(e,t,n=[]){return t.map((t,r)=>J(`r${e}c${r}`,t,e,r*K,K,{...n[r]===void 0?{}:{label:n[r]}}))}function Z(e){return[J(`up`,`up`,e,K,K),J(`left`,`left`,e+1,0,K),J(`ok`,`ok`,e+1,K,K),J(`right`,`right`,e+1,2*K,K),J(`down`,`down`,e+2,K,K)]}function dn(e,t){return t.map((t,n)=>J(`app_${t}`,Y(`app_${t}`),e,n*q,q,{icon:U(t)}))}var Q=(e,t)=>({id:`core:section-divider`,row:e,col:0,options:{scale:{cols:G},title:t}});function fn(e,t,n){let r=B(G,e,t);for(let e of n){let t=O(r,oe(e.id),{row:e.row,col:e.col},e.options);if(!t.ok)throw Error(`preset component ${e.id} at ${e.row}:${e.col}: ${t.reason}`);r=t.layout}return r}var $={scale:{cols:K}},pn={scale:{rows:2,cols:K}},mn=(e,t,n,r)=>({idSuffix:e,row:3,col:t,rowSpan:1,colSpan:1,role:n,label:r}),hn={red:`A`,green:`B`,yellow:`C`,blue:`D`},gn=fn(24,[J(`input`,`input`,0,2*K,K),J(`source_select`,`source_select`,0,2,6),...dn(1,[`netflix`,`youtube`,`primevideo`,`disneyplus`]),J(`mute`,`mute`,8,K,K),J(`ch_list`,Y(`ch_list`),9,K,K,{label:`CH LIST`}),J(`settings`,Y(`settings`),10,K,K,{label:`Settings`}),J(`home`,`home`,11,K,K),J(`guide`,`guide`,13,0,K),J(`e_manual`,Y(`e_manual`),13,K,K,{label:`e-Manual`}),J(`info`,`info`,13,2*K,K),J(`back`,`back`,18,0,K),J(`exit`,`exit`,18,2*K,K),J(`pic_size`,Y(`pic_size`),21,0,K,{label:`P.SIZE`}),J(`picture`,Y(`picture`),21,K,K,{label:`Picture`}),J(`ad_subt`,Y(`ad_subt`),21,2*K,K,{label:`AD/SUBT`})],[{id:`core:power`,row:0,col:0,options:{scale:{cols:2}}},Q(2,`Numbers`),{id:`core:keypad`,row:3,col:0,options:{scale:$.scale,extras:[mn(`ttx`,0,Y(`ttx_mix`),`TTX/MIX`),mn(`prech`,2,Y(`pre_ch`),`PRE-CH`)]}},Q(7,`Volume and channels`),{id:`core:rocker-volume-v`,row:8,col:0,options:pn},{id:`core:rocker-channel-v`,row:8,col:2*K,options:pn},Q(12,`Menus`),Q(14,`Navigation`),{id:`core:dpad`,row:15,col:0,options:$},Q(19,`Colour and picture`),{id:`core:colour-keys`,row:20,col:0,options:{scale:{cols:q},legends:hn}},Q(22,`Playback`),{id:`core:media-transport`,row:23,col:1,options:{scale:{cols:2}}}]),_n=[`netflix`,`youtube`,`primevideo`,`disneyplus`,`dazn`,`raiplay`],vn=fn(20,[J(`input`,`input`,0,2*K,K),...X(4,[`menu`,`home`,`exit`]),J(`guide`,`guide`,6,0,K),J(`info`,`info`,6,2*K,K),J(`back`,`back`,10,0,K),J(`play_pause`,`play_pause`,10,2*K,K),J(`mute`,`mute`,12,K,K),J(`ch_list`,Y(`ch_list`),13,K,K,{label:`CH.LIST`}),J(`subtitle`,Y(`subtitle`),14,0,6,{label:`Subtitle`}),J(`text`,Y(`text`),14,6,6,{label:`Text`})],[{id:`core:power`,row:0,col:0,options:{scale:{cols:2}}},{id:`core:panel`,row:1,col:0,options:{scale:$.scale,title:`Apps`,extras:_n.map((e,t)=>({idSuffix:e,row:Math.floor(t/3),col:t%3,rowSpan:1,colSpan:1,role:Y(`app_${e}`),icon:U(e)}))}},{id:`core:colour-keys`,row:3,col:0,options:{scale:{cols:q}}},Q(5,`Navigation`),{id:`core:dpad`,row:7,col:0,options:$},Q(11,`Volume and channels`),{id:`core:rocker-volume-v`,row:12,col:0,options:$},{id:`core:rocker-channel-v`,row:12,col:2*K,options:$},Q(15,`Numbers`),{id:`core:keypad`,row:16,col:0,options:$}]),yn=B(G,8,[J(`power`,`power`,0,0,K),J(`input`,`input`,0,2*K,K),...Z(1),...X(4,[`back`,`home`,`play_pause`]),J(`vol_up`,`volume_up`,5,0,K),J(`mute`,`mute`,5,K,K,{rowSpan:2}),J(`ch_up`,`channel_up`,5,2*K,K),J(`vol_down`,`volume_down`,6,0,K),J(`ch_down`,`channel_down`,6,2*K,K),...dn(7,[`netflix`,`primevideo`,`disneyplus`,`youtube`])]),bn=B(G,9,[J(`power`,`power`,0,0,K),J(`input`,`input`,0,2*K,K),J(`settings`,Y(`settings`),1,0,K,{label:`Settings`}),J(`up`,`up`,1,K,K),J(`guide`,`guide`,1,2*K,K),J(`left`,`left`,2,0,K),J(`ok`,`ok`,2,K,K),J(`right`,`right`,2,2*K,K),J(`back`,`back`,3,0,K),J(`down`,`down`,3,K,K),J(`home`,`home`,3,2*K,K),J(`vol_up`,`volume_up`,4,0,K,{rowSpan:2}),J(`vol_down`,`volume_down`,6,0,K,{rowSpan:2}),J(`mute`,`mute`,4,K,K),J(`info`,`info`,5,K,K),J(`menu`,`menu`,6,K,K),J(`exit`,`exit`,7,K,K),J(`ch_up`,`channel_up`,4,2*K,K,{rowSpan:2}),J(`ch_down`,`channel_down`,6,2*K,K,{rowSpan:2}),...dn(8,[`netflix`,`primevideo`,`disneyplus`,`youtube`])]),xn=B(G,8,[J(`assistant`,Y(`assistant`),0,0,K,{label:`Assistant`}),J(`input`,`input`,0,K,K),J(`power`,`power`,0,2*K,K),...Z(1),...X(4,[`back`,`home`,`guide`]),J(`vol_up`,`volume_up`,5,0,K),J(`mute`,`mute`,5,K,K),J(`ch_up`,`channel_up`,5,2*K,K),J(`vol_down`,`volume_down`,6,0,K),J(`play_pause`,`play_pause`,6,K,K),J(`ch_down`,`channel_down`,6,2*K,K),...dn(7,[`youtube`,`netflix`,`primevideo`,`disneyplus`])]),Sn=B(G,7,[J(`siri`,Y(`siri`),0,0,K,{label:`Siri`}),J(`power`,`power`,0,2*K,K),...Z(1),...X(4,[`back`,`play_pause`,`home`]),J(`vol_up`,`volume_up`,5,0,6),J(`vol_down`,`volume_down`,5,6,6),J(`mute`,`mute`,6,K,K)]);function Cn(e){return X(e,[`digit_1`,`digit_2`,`digit_3`]).concat(X(e+1,[`digit_4`,`digit_5`,`digit_6`]),X(e+2,[`digit_7`,`digit_8`,`digit_9`]))}var wn=[{name:`red`,tone:`red`},{name:`green`,tone:`green`},{name:`yellow`,tone:`yellow`},{name:`blue`,tone:`blue`}];function Tn(e,t){return wn.map(({name:n,tone:r},i)=>J(`color_${n}`,Y(`color_${n}`),e,i*q,q,{label:t?String.fromCharCode(65+i):n,tone:r,...t?{showLegend:!0}:{}}))}var En=B(G,18,[J(`power`,`power`,0,0,K),J(`input`,`input`,0,2*K,K),...Cn(1),J(`ttx_mix`,Y(`ttx_mix`),4,0,K,{label:`TTX/MIX`}),J(`digit_0`,`digit_0`,4,K,K),J(`pre_ch`,Y(`pre_ch`),4,2*K,K,{label:`PRE-CH`}),J(`vol_up`,`volume_up`,5,0,K),J(`mute`,`mute`,5,K,K,{rowSpan:2}),J(`ch_up`,`channel_up`,5,2*K,K),J(`vol_down`,`volume_down`,6,0,K),J(`ch_down`,`channel_down`,6,2*K,K),J(`ch_list`,Y(`ch_list`),7,K,K,{label:`CH LIST`}),J(`settings`,Y(`settings`),8,0,K,{label:`Settings`}),J(`home`,`home`,8,K,K),J(`guide`,`guide`,8,2*K,K),...Z(9),J(`back`,`back`,12,0,K),J(`info`,`info`,12,K,K),J(`exit`,`exit`,12,2*K,K),...X(13,[`rewind`,`play`,`fast_forward`]),J(`pause`,`pause`,14,0,6),J(`stop`,`stop`,14,6,6),...Tn(15,!0),J(`ad_subt`,Y(`ad_subt`),16,0,12,{label:`AD/SUBT`}),J(`app_netflix`,Y(`netflix`),17,0,K,{icon:U(`netflix`)}),J(`app_prime`,Y(`prime_video`),17,K,K,{icon:U(`primevideo`)}),J(`samsung_tv_plus`,Y(`samsung_tv_plus`),17,2*K,K,{label:`TV Plus`})]),Dn=B(G,18,[J(`power`,`power`,0,0,K),J(`input`,`input`,0,2*K,K),J(`app_youtube`,Y(`youtube`),1,0,6,{icon:U(`youtube`)}),J(`app_netflix`,Y(`netflix`),1,6,6,{icon:U(`netflix`)}),...X(2,[`menu`,`home`,`exit`]),J(`settings`,Y(`settings`),3,0,K,{label:`Settings`}),J(`guide`,`guide`,3,K,K),J(`info`,`info`,3,2*K,K),...Z(4),J(`back`,`back`,7,0,K),J(`ch_list`,Y(`ch_list`),7,K,K,{label:`CH.LIST`}),J(`media`,Y(`media`),7,2*K,K,{label:`Media`}),J(`vol_up`,`volume_up`,8,0,K),J(`mute`,`mute`,8,K,K,{rowSpan:2}),J(`ch_up`,`channel_up`,8,2*K,K),J(`vol_down`,`volume_down`,9,0,K),J(`ch_down`,`channel_down`,9,2*K,K),...Cn(10),J(`sleep`,Y(`sleep`),13,0,K,{label:`Sleep`}),J(`digit_0`,`digit_0`,13,K,K),J(`subtitle`,Y(`subtitle`),13,2*K,K,{label:`Subtitle`}),J(`txt`,Y(`txt`),14,0,6,{label:`Text`}),J(`rec`,Y(`rec`),14,6,6,{label:`Rec`}),...X(15,[`rewind`,`play`,`fast_forward`]),J(`pause`,`pause`,16,0,6),J(`stop`,`stop`,16,6,6),...Tn(17,!1)]),On=[{id:`samsung-classic`,layout:gn},{id:`hisense-vidaa`,layout:vn},{id:`samsung-bn59-01315`,layout:En},{id:`hisense-erf3-vidaa`,layout:Dn},{id:`samsung-smart`,layout:yn},{id:`lg-magic`,layout:bn},{id:`google-tv`,layout:xn},{id:`apple-tv`,layout:Sn}];function kn(e){let t=On.find(t=>t.id===e);return t===void 0?null:{...t.layout,buttons:t.layout.buttons.map(e=>({...e}))}}function An(e){let t=new Map;for(let n of e)for(let e of n)t.has(e.id)||t.set(e.id,e);let n=[...t.values()];return[...n.filter(e=>e.id.startsWith(`core:`)),...n.filter(e=>!e.id.startsWith(`core:`))]}function jn(e,t){let n=e.nameI18n;return n===void 0?e.name:t.startsWith(`it`)?n.it:n.en}function Mn(e){let t=O({columns:e.size.cols,rows:e.size.rows,buttons:[]},e,{row:0,col:0});return t.ok?t.layout:null}function Nn(e,t,n,r){let i=t.trim().toLowerCase();return i===``?[...e]:e.filter(e=>jn(e,n).toLowerCase().includes(i)||r(e.category).toLowerCase().includes(i))}function Pn(e,t){let n=re(e,t);return n!==null&&n>1}function Fn(e,t,n={}){let r=n.fillWidth===!0?re(e,t):null,i=r===null||r<2?{}:{scale:{cols:r}};if(n.at!==void 0)return O(e,t,n.at,i);let a=O(e,t,{row:0,col:0},i);if(a.ok||a.reason===`outside`||a.reason===`too-many`)return a;for(let n=0;n<e.rows;n+=1)for(let r=0;r<e.columns;r+=1){let a=O(e,t,{row:n,col:r},i);if(a.ok)return a}return a}c();function In({open:t,grid:n,onOpenChange:r,onPick:i}){let{t:o,i18n:s}=N();return a(xe,{open:t,onOpenChange:r,children:e(Ce,{width:`lg`,placement:`sheet-on-mobile`,scroll:`body`,children:[a(ve,{children:a(De,{children:o(`remote.palette.title`)})}),a(Se,{children:t&&a(Ln,{grid:n,language:s.language,onPick:i})})]})})}function Ln({grid:t,language:n,onPick:i}){let{t:o}=N(),c=we({}),[l,u]=s(``),[d,f]=s(!1),[m,h]=s(null),g=e=>o(`remote.palette.category.${e}`,e),_=Nn(r(()=>An(c.data===void 0?[]:[c.data]),[c.data]),l,n,g),v=_.some(e=>Pn(t,e));return c.isError?a(ke,{title:o(`remote.palette.errorTitle`),message:c.error.message,onRetry:()=>void c.refetch()}):c.data===void 0?e(`div`,{className:`grid gap-2 sm:grid-cols-2`,"data-testid":`palette-loading`,children:[a(Te,{className:`h-24`}),a(Te,{className:`h-24`}),a(Te,{className:`h-24`}),a(Te,{className:`h-24`})]}):e(`div`,{className:`space-y-3`,children:[e(`div`,{className:`relative`,children:[a(p,{className:`pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-foreground-subtle`,"aria-hidden":!0}),a(j,{value:l,className:`pl-8`,placeholder:o(`remote.palette.search`),"aria-label":o(`remote.palette.search`),onChange:e=>u(e.target.value),"data-testid":`palette-search`})]}),v&&e(`label`,{className:`flex items-center gap-2 text-xs text-foreground-muted`,children:[a(Me,{checked:d,onChange:e=>f(e.target.checked),"data-testid":`palette-fill-width`}),o(`remote.palette.fillWidth`)]}),m!==null&&a(`p`,{role:`status`,className:`text-xs text-success`,"data-testid":`palette-added`,children:o(`remote.palette.added`,{name:m})}),_.length===0?a(Oe,{icon:ge,title:o(`remote.palette.emptyTitle`),description:o(`remote.palette.emptyDescription`)}):a(`ul`,{className:`grid gap-2 sm:grid-cols-2`,"data-testid":`palette-list`,children:_.map(e=>a(`li`,{children:a(Rn,{component:e,language:n,category:g(e.category),onPick:()=>{i(e,{fillWidth:d}),h(jn(e,n))}})},e.id))})]})}function Rn({component:t,language:n,category:i,onPick:o}){let{t:s}=N(),c=r(()=>Mn(t),[t]),l=jn(t,n);return e(`button`,{type:`button`,className:`flex h-full w-full items-center gap-3 rounded-lg border border-border bg-surface p-2 text-left hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary`,"data-testid":`palette-item-${t.id}`,onClick:o,children:[a(`span`,{className:`w-20 shrink-0`,children:c!==null&&a(on,{grid:c,label:l,compact:!0})}),e(`span`,{className:`min-w-0`,children:[a(`span`,{className:`block truncate text-sm font-medium text-foreground`,children:l}),e(`span`,{className:`block truncate text-xs text-foreground-muted`,children:[i,` ·`,` `,s(`remote.palette.size`,{cols:t.size.cols,rows:t.size.rows})]})]})]})}function zn(e,t){let n=t.kind===`group`?L(e,t.id):e.buttons.find(e=>e.id===t.id);return n===void 0?void 0:{row:n.row,col:n.col,rowSpan:n.rowSpan,colSpan:n.colSpan}}function Bn(e,t,n,r,i){if(e.width<=0||e.height<=0)return{row:0,col:0};let a=Math.floor((n-e.left)/e.width*t.columns),o=(r-e.top)/e.height;if(i===void 0||i.length!==t.rows||o<0)return{col:a,row:Math.floor(o*t.rows)};let s=i.reduce((e,t)=>e+t,0),c=0;for(let[e,t]of i.entries())if(c+=t/s,o<c)return{col:a,row:e};return{col:a,row:Math.max(t.rows,Math.floor(o*t.rows))}}function Vn(e,t,n){return{row:n.row-(t.row-e.row),col:n.col-(t.col-e.col)}}function Hn(e,t,n){return t.kind===`group`?et(e,t.id,n.row,n.col):Je(e,t.id,n.row,n.col)}function Un(e,t,n){let r=zn(e,t);if(r===void 0)return null;let i=Hn(e,t,n);return{rect:{...r,row:n.row,col:n.col},valid:i.status===`ok`,reason:i.status===`ok`?null:i.reason}}function Wn(e){switch(e){case`ArrowUp`:return{dRow:-1,dCol:0};case`ArrowDown`:return{dRow:1,dCol:0};case`ArrowLeft`:return{dRow:0,dCol:-1};case`ArrowRight`:return{dRow:0,dCol:1};default:return null}}function Gn(e,t,n,r){let i=zn(e,t);return i===void 0?{status:`refused`,reason:`unknown-button`}:Hn(e,t,{row:i.row+n,col:i.col+r})}c();var Kn=4;function qn(e,t,r){let[a,c]=s(null),l=n({grid:e,onDrop:r});l.current={grid:e,onDrop:r};let u=n(null),d=n(!1);return o(()=>()=>u.current?.(),[]),{drag:a,onItemPointerDown:i((e,n)=>{let r=t.current;if(r===null||n.button!==0)return;let i=r.getBoundingClientRect();if(zn(l.current.grid,e)===void 0)return;let a={item:e,startX:n.clientX,startY:n.clientY,grabbed:Bn(i,l.current.grid,n.clientX,n.clientY,at(l.current.grid)),active:!1,target:null},o=e=>{if(!a.active){if(Math.hypot(e.clientX-a.startX,e.clientY-a.startY)<Kn)return;a.active=!0}let t=l.current.grid,n=Bn(r.getBoundingClientRect(),t,e.clientX,e.clientY,at(t)),i=zn(t,a.item);i!==void 0&&(a.target=Vn(i,a.grabbed,n),c({item:a.item,preview:Un(t,a.item,a.target)}))},s=e=>{window.removeEventListener(`pointermove`,o),window.removeEventListener(`pointerup`,f),window.removeEventListener(`pointercancel`,p),window.removeEventListener(`keydown`,m),u.current=null,c(null),a.active&&(d.current=!0,window.setTimeout(()=>{d.current=!1},0),e&&a.target!==null&&l.current.onDrop(Hn(l.current.grid,a.item,a.target)))},f=()=>s(!0),p=()=>s(!1),m=e=>{e.key===`Escape`&&s(!1)};window.addEventListener(`pointermove`,o),window.addEventListener(`pointerup`,f),window.addEventListener(`pointercancel`,p),window.addEventListener(`keydown`,m),u.current=()=>s(!1)},[t]),consumeDragClick:i(()=>{let e=d.current;return d.current=!1,e},[])}}c();var Jn=`__custom__`;function Yn({value:t,onChange:r}){let{t:i}=N(),[o,c]=s(null),[l,u]=s(null),[d,f]=s(!1),p=n(null),m=o?.kind===`button`?o.id:null,g=o?.kind===`group`?o.id:null,_=t.buttons.find(e=>e.id===m)??null,v=g===null?void 0:L(t,g),y=(e,t)=>{if(e.status===`ok`){u(null),r(e.grid),t?.(e.grid);return}u(i(`remote.layout.refusal.${e.reason}`))},b=qn(t,p,e=>y(e));return e(`div`,{className:`grid gap-4 md:grid-cols-[minmax(0,18rem)_minmax(0,1fr)]`,children:[e(`div`,{className:`space-y-3`,children:[e(`div`,{className:`grid grid-cols-2 gap-2`,children:[a(k,{label:i(`remote.layout.columns`),children:a(Ae,{value:t.columns,onDelta:e=>y(st(t,t.columns+e,t.rows))})}),a(k,{label:i(`remote.layout.rows`),children:a(Ae,{value:t.rows,onDelta:e=>y(st(t,t.columns,t.rows+e))})})]}),a(on,{grid:t,label:i(`remote.layout.previewLabel`),selectedId:m,selectedGroupId:g,onSelect:e=>{b.consumeDragClick()||c({kind:`button`,id:e})},onSelectGroup:e=>{b.consumeDragClick()||c({kind:`group`,id:e})},showEmptyCells:!0,gridRef:p,drag:b.drag,onItemPointerDown:b.onItemPointerDown,onItemKeyDown:(e,n)=>{let r=Wn(n.key);r!==null&&(n.preventDefault(),y(Gn(t,e,r.dRow,r.dCol)))}}),a(`p`,{className:`text-xs text-foreground-subtle`,children:i(`remote.layout.dragHint`)}),e(`div`,{className:`flex flex-wrap gap-2`,children:[e(M,{variant:`outline`,size:`sm`,onClick:()=>f(!0),"data-testid":`remote-add-component`,children:[a(ge,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),i(`remote.layout.addComponent`)]}),e(M,{variant:`outline`,size:`sm`,onClick:()=>y(qe(t,`ok`),e=>{let t=e.buttons.at(-1);c(t===void 0?null:{kind:`button`,id:t.id})}),"data-testid":`remote-add-button`,children:[a(h,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),i(`remote.layout.addButton`)]})]}),l!==null&&a(`p`,{role:`alert`,className:`text-xs text-warning`,"data-testid":`remote-layout-refusal`,children:l})]}),a(`div`,{className:`min-w-0`,children:_===null?v===void 0?a(`p`,{className:`text-xs text-foreground-subtle`,children:i(`remote.layout.selectHint`)}):a(Qn,{grid:t,groupId:v.id,apply:y,onGone:()=>c(null)}):a(Zn,{grid:t,buttonId:_.id,apply:y,onRemove:()=>{r(Qe(t,_.id)),c(null),u(null)}})}),a(In,{open:d,grid:t,onOpenChange:f,onPick:(e,n)=>{let a=Fn(t,e,n);if(!a.ok){u(i(`remote.layout.refusal.${a.reason}`));return}u(null),r(a.layout);let o=a.buttonIds[0];c(a.groupId===null?o===void 0?null:{kind:`button`,id:o}:{kind:`group`,id:a.groupId})}})]})}function Xn(e,t){return[...ut.flatMap(n=>ft(n).map(r=>({value:r,label:Ht(r,t),group:e(`remote.roleGroup.${n}`)}))),{value:Jn,label:e(`remote.layout.customRole`),group:e(`remote.roleGroup.custom`)}]}function Zn({grid:t,buttonId:n,apply:r,onRemove:i}){let{t:o,i18n:c}=N(),l=t.buttons.find(e=>e.id===n),u=l===void 0?null:ae(l.role),[d,f]=s(null);if(l===void 0)return null;let p=mt(l.role)||d!==null,h=d??u??``,_=le(h),S={trigger:o(`remote.layout.pickIcon`),panel:o(`remote.layout.iconPanel`),searchPlaceholder:o(`deviceDisplay.iconSearchPlaceholder`),clear:o(`remote.layout.noIcon`),noMatches:o(`deviceDisplay.iconNoMatches`)},C=e=>o(`deviceDisplay.iconCategory.${e}`,{defaultValue:ne(e)});return e(`div`,{className:`space-y-3 rounded-lg border border-border bg-surface p-3`,"data-testid":`remote-inspector`,children:[a(Ee,{mode:`single`,singleDisplay:`field`,label:o(`remote.layout.role`),options:Xn((e,t)=>o(e,t??e),c.language),value:p?Jn:l.role,onChange:e=>{if(e===Jn){f(u??``);return}f(null),r(z(t,l.id,{role:e}))}}),p&&a(k,{label:o(`remote.layout.customKey`),...h!==``&&!_?{error:o(`remote.layout.customKeyInvalid`)}:{},children:a(j,{value:h,placeholder:`hdmi_1`,onChange:e=>{let n=e.target.value;f(n),le(n)&&r(z(t,l.id,{role:de(n)}))}})}),e(`div`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-end gap-2`,children:[a(k,{label:o(`remote.layout.icon`),children:a(je,{value:l.icon??null,onPick:e=>r(z(t,l.id,{icon:e})),fallbackGlyph:ge,categoryLabel:C,labels:S})}),a(k,{label:o(`remote.layout.label`),children:a(j,{value:l.label??``,maxLength:40,onChange:e=>r(z(t,l.id,{label:e.target.value}))})})]}),a(k,{label:o(`remote.layout.appIcon`),children:a(x,{value:W(l.icon)?.key??``,options:[{value:``,label:o(`remote.layout.noApp`)},...Mt.map(e=>({value:e.key,label:e.label}))],onChange:e=>{let n=e.target.value;n===``?W(l.icon)!==void 0&&r(z(t,l.id,{icon:null})):r(z(t,l.id,{icon:U(n)}))},"data-testid":`remote-app-icon`})}),e(`div`,{className:`grid grid-cols-2 gap-3`,children:[a(k,{label:o(`remote.layout.shape`),children:a(x,{value:l.shape??``,options:[{value:``,label:o(`remote.layout.lookDefault`)},...ce.map(e=>({value:e,label:o(`remote.layout.shapes.${e}`)}))],onChange:e=>{let n=ce.find(t=>t===e.target.value);r(Ze(t,l.id,{shape:n??null}))},"data-testid":`remote-shape`})}),a(k,{label:o(`remote.layout.tone`),children:a(x,{value:l.tone??``,options:[{value:``,label:o(`remote.layout.lookDefault`)},...D.map(e=>({value:e,label:o(`remote.layout.tones.${e}`)}))],onChange:e=>{let n=D.find(t=>t===e.target.value);r(Ze(t,l.id,{tone:n??null}))},"data-testid":`remote-tone`})})]}),l.tone!==void 0&&[`red`,`green`,`yellow`,`blue`].includes(l.tone)&&e(`label`,{className:`flex items-center gap-2 text-xs text-foreground-muted`,children:[a(Me,{checked:l.showLegend===!0,onChange:e=>r(Ze(t,l.id,{showLegend:e.target.checked})),"data-testid":`remote-show-legend`}),o(`remote.layout.showLegend`)]}),e(`div`,{className:`grid grid-cols-2 gap-3`,children:[a(k,{label:o(`remote.layout.move`),children:e(`div`,{className:`flex items-center gap-1`,children:[a(A,{icon:b,size:`sm`,variant:`secondary`,"aria-label":o(`remote.layout.moveLeft`),onClick:()=>r(Ye(t,l.id,0,-1))}),a(A,{icon:y,size:`sm`,variant:`secondary`,"aria-label":o(`remote.layout.moveUp`),onClick:()=>r(Ye(t,l.id,-1,0))}),a(A,{icon:g,size:`sm`,variant:`secondary`,"aria-label":o(`remote.layout.moveDown`),onClick:()=>r(Ye(t,l.id,1,0))}),a(A,{icon:v,size:`sm`,variant:`secondary`,"aria-label":o(`remote.layout.moveRight`),onClick:()=>r(Ye(t,l.id,0,1))})]})}),a(k,{label:o(`remote.layout.position`),children:a(`p`,{className:`text-xs text-foreground-muted`,"data-testid":`remote-position`,children:o(`remote.layout.positionValue`,{row:l.row+1,col:l.col+1})})}),a(k,{label:o(`remote.layout.height`),children:a(Ae,{value:l.rowSpan,onDelta:e=>r(Xe(t,l.id,l.rowSpan+e,l.colSpan))})}),a(k,{label:o(`remote.layout.width`),children:a(Ae,{value:l.colSpan,onDelta:e=>r(Xe(t,l.id,l.rowSpan,l.colSpan+e))})})]}),e(M,{variant:`danger`,size:`sm`,onClick:i,children:[a(m,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),o(`remote.layout.removeButton`)]})]})}function Qn({grid:t,groupId:n,apply:r,onGone:i}){let{t:o}=N(),s=L(t,n);if(s===void 0)return null;let c=Be(t,n).length;return e(`div`,{className:`space-y-3 rounded-lg border border-border bg-surface p-3`,"data-testid":`remote-group-inspector`,children:[a(`p`,{className:`text-xs text-foreground-muted`,children:o(`remote.layout.groupSummary`,{frame:o(`remote.layout.frames.${s.frame}`,s.frame),count:c,row:s.row+1,col:s.col+1})}),a(k,{label:o(`remote.layout.groupTitle`),children:a(j,{value:s.title??``,maxLength:40,onChange:e=>r(nt(t,s.id,e.target.value)),"data-testid":`remote-group-title`})}),s.frame===`divider`&&e(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[a(k,{label:o(`remote.layout.separatorSize`),children:a(x,{value:s.size??`compact`,options:[{value:`compact`,label:o(`remote.layout.separatorSizeCompact`)},{value:`normal`,label:o(`remote.layout.separatorSizeNormal`)}],onChange:e=>r(ot(t,s.id,{size:e.target.value===`normal`?`normal`:`compact`})),"data-testid":`remote-separator-size`})}),e(`label`,{className:`flex items-center gap-2 self-end pb-2 text-xs text-foreground-muted`,children:[a(Me,{checked:s.hideTitle===!0,onChange:e=>r(ot(t,s.id,{hideTitle:e.target.checked})),"data-testid":`remote-separator-hide-title`}),o(`remote.layout.separatorHideLabel`)]})]}),e(`div`,{className:`flex flex-wrap gap-2`,children:[e(M,{variant:`outline`,size:`sm`,"data-testid":`remote-group-ungroup`,onClick:()=>{r(tt(t,s.id,!0)),i()},children:[a(_e,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),o(`remote.layout.ungroup`)]}),e(M,{variant:`danger`,size:`sm`,"data-testid":`remote-group-delete`,onClick:()=>{r(tt(t,s.id,!1)),i()},children:[a(m,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),o(`remote.layout.deleteGroup`)]})]})]})}var $n={remote:{label:e=>e(`remote.templates.kind.remote`),emptyPayload:Ie,summary:(e,t)=>{let n=lt(e);return t(`remote.templates.layoutSummary`,{columns:n.columns,rows:n.rows,count:n.buttons.length})},renderEditor:(e,t)=>a(Yn,{value:lt(e),onChange:t}),isSavable:e=>ct(lt(e))!==null,presets:e=>On.map(t=>({id:t.id,label:e(`remote.templates.preset.${t.id}`),payload:()=>kn(t.id)}))}};function er(e){return $n[e]}var tr=T;function nr(e,t){let n=w(e,t);return n.ok?n.payload:null}c();function rr({draft:e,saving:t,error:n,onSave:r,onClose:i}){return a(xe,{open:e!==null,onOpenChange:e=>!e&&i(),children:a(Ce,{width:`xl`,placement:`sheet-on-mobile`,scroll:`body`,children:e!==null&&a(ir,{draft:e,saving:t,error:n,onSave:r,onClose:i},e.id??`new`)})})}function ir({draft:t,saving:n,error:r,onSave:i,onClose:o,back:c}){let{t:l}=N(),[p,m]=s(t.name),[h,g]=u(un,{kind:t.kind,presetId:``,payload:t.payload},sn),{kind:_,presetId:v,payload:y}=h.present,S=e=>g({type:`edit`,value:{...h.present,payload:e}}),C=()=>g({type:`undo`}),w=()=>g({type:`redo`});Ne(`mod+z`,C,{allowInInput:!1,label:`Undo`}),Ne(`mod+shift+z`,w,{allowInInput:!1,label:`Redo`});let T=er(_),E=T.presets(l),D=nr(_,y),ee=p.trim()!==``&&D!==null&&T.isSavable(y)&&!n;return e(d,{children:[e(ve,{className:`flex-row items-center justify-between gap-2`,children:[e(`div`,{className:`flex min-w-0 items-center gap-2`,children:[c!==void 0&&e(M,{size:`sm`,variant:`ghost`,onClick:c.onBack,"data-testid":`template-back`,children:[a(b,{className:`h-3.5 w-3.5`,"aria-hidden":!0}),a(`span`,{className:`truncate`,children:c.label})]}),a(De,{className:`truncate`,children:c===void 0?t.id===null?l(`remote.templates.newTitle`):l(`remote.templates.editTitle`):c.title})]}),e(`div`,{className:`flex shrink-0 items-center gap-1`,children:[a(A,{icon:f,size:`sm`,variant:`ghost`,"aria-label":l(`remote.history.undo`),title:l(`remote.history.undo`),disabled:!cn(h),onClick:C,"data-testid":`template-undo`}),a(A,{icon:me,size:`sm`,variant:`ghost`,"aria-label":l(`remote.history.redo`),title:l(`remote.history.redo`),disabled:!ln(h),onClick:w,"data-testid":`template-redo`})]})]}),e(Se,{className:`space-y-4`,children:[e(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[a(k,{label:l(`remote.templates.name`),children:a(j,{value:p,maxLength:120,onChange:e=>m(e.target.value),"data-testid":`template-name`})}),t.id===null&&tr.length>1&&a(k,{label:l(`remote.templates.kind.label`),children:a(x,{value:_,options:tr.map(e=>({value:e,label:er(e).label(l)})),onChange:e=>{let t=tr.find(t=>t===e.target.value);t!==void 0&&g({type:`edit`,value:{kind:t,presetId:``,payload:er(t).emptyPayload()}})}})}),t.id===null&&E.length>0&&a(k,{label:l(`remote.templates.startFrom`),children:a(x,{value:v,options:[{value:``,label:l(`remote.templates.startBlank`)},...E.map(e=>({value:e.id,label:e.label}))],onChange:e=>{let t=E.find(t=>t.id===e.target.value);g({type:`edit`,value:{kind:_,presetId:t?.id??``,payload:t===void 0?T.emptyPayload():t.payload()}}),t!==void 0&&p.trim()===``&&m(t.label)},"data-testid":`template-preset`})})]}),T.renderEditor(y,S),r!==null&&a(`p`,{role:`alert`,className:`text-xs text-danger`,children:r})]}),e(Fe,{children:[a(M,{variant:`ghost`,onClick:o,children:l(`common.cancel`)}),a(M,{disabled:!ee,onClick:()=>i({id:t.id,kind:_,name:p.trim(),payload:D}),"data-testid":`template-save`,children:l(`common.save`)})]})]})}c();function ar(){let e=l(),t=Pe(),n=be(),[r,i]=s(null);return{save:async r=>{i(null);try{let a=r.id===null?await t.mutateAsync({kind:r.kind,name:r.name,payload:r.payload}):await n.mutateAsync({id:r.id,name:r.name,payload:r.payload});return a.status===`refused`?(i(a.detail),!1):(await e.invalidateQueries({queryKey:[[`template`]]}),!0)}catch(e){return i(e instanceof Error?e.message:String(e)),!1}},saving:t.isPending||n.isPending,error:r,clearError:()=>i(null)}}export{on as a,Ht as c,er as i,pt as l,ir as n,Ut as o,rr as r,Wt as s,ar as t,lt as u};
@@ -0,0 +1 @@
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`user-round`,[[`circle`,{cx:`12`,cy:`8`,r:`5`,key:`1hypcn`}],[`path`,{d:`M20 21a8 8 0 0 0-16 0`,key:`rfgkzh`}]]);export{t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),n=e(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),r=e(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),i=e(`scan-face`,[[`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`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}]]),a=e(`scan-line`,[[`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`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),o=e(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),s=e(`square-parking`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),c=e(`user-x`,[[`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`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]);export{i as a,t as c,a as i,s as n,r as o,o as r,n as s,c as t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`arrow-down-wide-narrow`,[[`path`,{d:`m3 16 4 4 4-4`,key:`1co6wj`}],[`path`,{d:`M7 20V4`,key:`1yoxec`}],[`path`,{d:`M11 4h10`,key:`1w87gc`}],[`path`,{d:`M11 8h7`,key:`djye34`}],[`path`,{d:`M11 12h4`,key:`q8tih4`}]]),n=e(`badge-check`,[[`path`,{d:`M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z`,key:`3c2336`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),r=e(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),i=e(`scan-face`,[[`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`}],[`path`,{d:`M8 14s1.5 2 4 2 4-2 4-2`,key:`1y1vjs`}],[`path`,{d:`M9 9h.01`,key:`1q5me6`}],[`path`,{d:`M15 9h.01`,key:`x1ddxp`}]]),a=e(`scan-line`,[[`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`}],[`path`,{d:`M7 12h10`,key:`b7w52i`}]]),o=e(`square-check-big`,[[`path`,{d:`M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344`,key:`2acyp4`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]),s=e(`square-parking`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 17V7h4a3 3 0 0 1 0 6H9`,key:`1dfk2c`}]]),c=e(`user-x`,[[`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`}],[`line`,{x1:`17`,x2:`22`,y1:`8`,y2:`13`,key:`3nzzx3`}],[`line`,{x1:`22`,x2:`17`,y1:`8`,y2:`13`,key:`1swrse`}]]);export{i as a,t as c,a as i,s as n,r as o,o as r,n as s,c as t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),n=e(`ungroup`,[[`rect`,{width:`8`,height:`6`,x:`5`,y:`4`,rx:`1`,key:`nzclkv`}],[`rect`,{width:`8`,height:`6`,x:`11`,y:`14`,rx:`1`,key:`4tytwb`}]]),r=e(`variable`,[[`path`,{d:`M8 21s-4-3-4-9 4-9 4-9`,key:`uto9ud`}],[`path`,{d:`M16 3s4 3 4 9-4 9-4 9`,key:`4w2vsq`}],[`line`,{x1:`15`,x2:`9`,y1:`9`,y2:`15`,key:`f7djnv`}],[`line`,{x1:`9`,x2:`15`,y1:`9`,y2:`15`,key:`1shsy8`}]]);export{n,t as r,r as t};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),n=e(`ungroup`,[[`rect`,{width:`8`,height:`6`,x:`5`,y:`4`,rx:`1`,key:`nzclkv`}],[`rect`,{width:`8`,height:`6`,x:`11`,y:`14`,rx:`1`,key:`4tytwb`}]]),r=e(`variable`,[[`path`,{d:`M8 21s-4-3-4-9 4-9 4-9`,key:`uto9ud`}],[`path`,{d:`M16 3s4 3 4 9-4 9-4 9`,key:`4w2vsq`}],[`line`,{x1:`15`,x2:`9`,y1:`9`,y2:`15`,key:`f7djnv`}],[`line`,{x1:`9`,x2:`15`,y1:`9`,y2:`15`,key:`1shsy8`}]]);export{n,t as r,r as t};
@@ -1 +1 @@
1
- import{ga as e}from"./player-overlays-oE7aPZdg.js";var t=e(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),n=e(`cctv`,[[`path`,{d:`M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97`,key:`ir91b5`}],[`path`,{d:`M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z`,key:`jlp8i1`}],[`path`,{d:`M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15`,key:`19bib8`}],[`path`,{d:`M2 21v-4`,key:`l40lih`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}]]),r=e(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),i=e(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),a=e(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),o=e(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),s=e(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),c=e(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),l=e(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),u=e(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),d=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`}]]),f=e(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),p=e(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),m=e(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),h=e(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),g=e(`shield-x`,[[`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:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]]),_=e(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),v=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),y=e(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]);export{r as _,h as a,f as c,l as d,c as f,i as g,a as h,g as i,d as l,o as m,v as n,m as o,s as p,_ as r,p as s,y as t,u,n as v,t as y};
1
+ import{ga as e}from"./player-overlays-CC-b3--a.js";var t=e(`calendar`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`4`,rx:`2`,key:`1hopcy`}],[`path`,{d:`M3 10h18`,key:`8toen8`}]]),n=e(`cctv`,[[`path`,{d:`M16.75 12h3.632a1 1 0 0 1 .894 1.447l-2.034 4.069a1 1 0 0 1-1.708.134l-2.124-2.97`,key:`ir91b5`}],[`path`,{d:`M17.106 9.053a1 1 0 0 1 .447 1.341l-3.106 6.211a1 1 0 0 1-1.342.447L3.61 12.3a2.92 2.92 0 0 1-1.3-3.91L3.69 5.6a2.92 2.92 0 0 1 3.92-1.3z`,key:`jlp8i1`}],[`path`,{d:`M2 19h3.76a2 2 0 0 0 1.8-1.1L9 15`,key:`19bib8`}],[`path`,{d:`M2 21v-4`,key:`l40lih`}],[`path`,{d:`M7 9h.01`,key:`19b3jx`}]]),r=e(`check-check`,[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]),i=e(`compass`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z`,key:`9ktpf1`}]]),a=e(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),o=e(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),s=e(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),c=e(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),l=e(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),u=e(`library`,[[`path`,{d:`m16 6 4 14`,key:`ji33uf`}],[`path`,{d:`M12 6v14`,key:`1n7gus`}],[`path`,{d:`M8 8v12`,key:`1gg7y9`}],[`path`,{d:`M4 4v16`,key:`6qkkli`}]]),d=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`}]]),f=e(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),p=e(`map`,[[`path`,{d:`M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z`,key:`169xi5`}],[`path`,{d:`M15 5.764v15`,key:`1pn4in`}],[`path`,{d:`M9 3.236v15`,key:`1uimfh`}]]),m=e(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),h=e(`octagon-alert`,[[`path`,{d:`M12 16h.01`,key:`1drbdi`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z`,key:`1fd625`}]]),g=e(`shield-x`,[[`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:`m14.5 9.5-5 5`,key:`17q4r4`}],[`path`,{d:`m9.5 9.5 5 5`,key:`18nt4w`}]]),_=e(`square-terminal`,[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]]),v=e(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),y=e(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]);export{r as _,h as a,f as c,l as d,c as f,i as g,a as h,g as i,d as l,o as m,v as n,m as o,s as p,_ as r,p as s,y as t,u,n as v,t as y};