@camera.ui/server 2.0.19 → 2.0.21
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.
- package/dist/interface/assets/{404-CG23ZpFv.js → 404-9YR2yuVi.js} +1 -1
- package/dist/interface/assets/{About-Dawv7dKP.js → About-ClX7-pcf.js} +1 -1
- package/dist/interface/assets/{Adminpanel-529Hf8yC.js → Adminpanel-CKNwF9Ra.js} +1 -1
- package/dist/interface/assets/Automation-C6ag7k7_.js +3 -0
- package/dist/interface/assets/{AutomationImport-CXXYinR0.js → AutomationImport-CXBM_wCp.js} +2 -2
- package/dist/interface/assets/AutomationStore-DynwN8qS.js +2 -0
- package/dist/interface/assets/AutomationStoreDetail-CB671U76.js +2 -0
- package/dist/interface/assets/Automations-Cg4Lzb1M.js +2 -0
- package/dist/interface/assets/Camera-Cqt297Vv.css +1 -0
- package/dist/interface/assets/Camera-Dj4f6jSP.js +2 -0
- package/dist/interface/assets/{CameraConsole-D06gEm91.js → CameraConsole-e5MVc4mo.js} +1 -1
- package/dist/interface/assets/Cameras-BH0Ae5cx.js +652 -0
- package/dist/interface/assets/Camview-BmkHCnIA.js +1 -0
- package/dist/interface/assets/Config-CFNrNWvY.js +2 -0
- package/dist/interface/assets/{ConfigActionCameraControl-4E0E0_fY.js → ConfigActionCameraControl-DdnbHsk0.js} +1 -1
- package/dist/interface/assets/{ConfigActionDelay-Cjmjm7gn.js → ConfigActionDelay-B_8luSRN.js} +1 -1
- package/dist/interface/assets/{ConfigActionHttp-W-_LXPpQ.js → ConfigActionHttp-DIVWD5n0.js} +1 -1
- package/dist/interface/assets/{ConfigActionImageInput-D20ulIj4.js → ConfigActionImageInput-DJLTP_sq.js} +1 -1
- package/dist/interface/assets/{ConfigActionMqtt-PGVLgx6J.js → ConfigActionMqtt-AqfQLoTb.js} +1 -1
- package/dist/interface/assets/{ConfigActionNotification-DtE9vlwt.js → ConfigActionNotification-LSM37AS3.js} +1 -1
- package/dist/interface/assets/ConfigActionNotificationControl-B5vMHnW7.js +1 -0
- package/dist/interface/assets/{ConfigActionOutput-Cb0Ik5Lg.js → ConfigActionOutput-CFZM6M82.js} +1 -1
- package/dist/interface/assets/{ConfigActionPlugin-DeXj_Qku.js → ConfigActionPlugin-BJV2lLwv.js} +1 -1
- package/dist/interface/assets/{ConfigActionSensor-DH03MD04.js → ConfigActionSensor-C7mhQPAm.js} +1 -1
- package/dist/interface/assets/{ConfigActionSnapshot-bEiIuVkE.js → ConfigActionSnapshot-D3FQ7uoq.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-6xpPwfGg.js → ConfigActionVariable-KfYkAwtV.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-CnUdhYBw.js → ConfigConditionIfElse-nYxvbp24.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSensorState-Cpod48bM.js → ConfigConditionSensorState-XERa4yXd.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSwitch-CrcDpdeO.js → ConfigConditionSwitch-BBFppRN1.js} +1 -1
- package/dist/interface/assets/{ConfigConditionTime-BK18wRIR.js → ConfigConditionTime-O3Br_i5I.js} +1 -1
- package/dist/interface/assets/{ConfigSensorValueInput-BDJSe4AD.js → ConfigSensorValueInput-DJom6CJQ.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerDetection-CLY_l8WB.js → ConfigTriggerDetection-CnHj5hHf.js} +1 -1
- package/dist/interface/assets/ConfigTriggerGeofence-Cy2jbqWp.js +1 -0
- package/dist/interface/assets/{ConfigTriggerManual-BifyCaS9.js → ConfigTriggerManual-BoZPeahx.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerMqtt-DVxJJ1Ii.js → ConfigTriggerMqtt-BI6UMyxS.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSchedule-C5apVQ3A.js → ConfigTriggerSchedule-lDIQclYa.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-CtU2-Ebe.js → ConfigTriggerSensor-0-7UpUZY.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem-P_hogQ3_.js → ConfigTriggerSystem-MlzNFTkZ.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook-D4lYvM7m.js → ConfigTriggerWebhook-CYKc8B5t.js} +1 -1
- package/dist/interface/assets/{Console-DgwnUKDQ.js → Console-DDsPYJgK.js} +1 -1
- package/dist/interface/assets/{CuiAutomationRunsDialog-D8DfgOlE.js → CuiAutomationRunsDialog-ChZWmQGs.js} +1 -1
- package/dist/interface/assets/{CuiBottomSheet-BzKu50hx.js → CuiBottomSheet-BS2_Z135.js} +1 -1
- package/dist/interface/assets/CuiBottomSheet-Ddz-C6EJ.js +1 -0
- package/dist/interface/assets/{CuiCameraPipCard-RB60OEgF.js → CuiCameraPipCard-Bv6mbocY.js} +1 -1
- package/dist/interface/assets/{CuiCameraRecordings-DSeBoMKj.js → CuiCameraRecordings-Ca5wm8TV.js} +1 -1
- package/dist/interface/assets/CuiCameraShares-w6K5-4yH.js +1 -0
- package/dist/interface/assets/{CuiCameraTable-MjJctqrJ.js → CuiCameraTable-Bjiq2y8d.js} +1 -1
- package/dist/interface/assets/{CuiDataTable-DQRKmdcE.js → CuiDataTable-DS3xBLS7.js} +1 -1
- package/dist/interface/assets/{CuiMarkdownContent-BwMdbyad.js → CuiMarkdownContent-DEMo42iT.js} +1 -1
- package/dist/interface/assets/CuiMarkdownContent-Xn_VHwym.js +1 -0
- package/dist/interface/assets/CuiPluginCard-DnarBFVa.js +2 -0
- package/dist/interface/assets/{CuiPluginCategoryChip-AsMNaK01.js → CuiPluginCategoryChip-DZhaWc_S.js} +1 -1
- package/dist/interface/assets/CuiPluginOAuthButton-DyPfV8hY.js +2 -0
- package/dist/interface/assets/{CuiPluginTrustBadge-tIqjoCDz.js → CuiPluginTrustBadge-BJ6pc43x.js} +1 -1
- package/dist/interface/assets/CuiQRCode-C0gdwLUs.js +1 -0
- package/dist/interface/assets/CuiRecordingsGrid-CVll9mg2.js +1 -0
- package/dist/interface/assets/CuiSchema-DXSjz3IR.js +1 -0
- package/dist/interface/assets/{CuiTopNavbarItem-BhUA2MiU.js → CuiTopNavbarItem-Ba6NH5w-.js} +1 -1
- package/dist/interface/assets/Faces-k6xFGoBN.js +1 -0
- package/dist/interface/assets/FirstSteps-DFfg4zRP.js +1 -0
- package/dist/interface/assets/{Instances-Cllek48f.js → Instances-CbK1g4IM.js} +1 -1
- package/dist/interface/assets/{Logs-ic15Mp_h.js → Logs-B-6Ku-as.js} +2 -2
- package/dist/interface/assets/{Menu-By6NRK44.js → Menu-eNDXPuYN.js} +1 -1
- package/dist/interface/assets/OAuthDeviceFlow-BRWgtznM.js +1 -0
- package/dist/interface/assets/Plugin-Cs-vi0ov.js +1 -0
- package/dist/interface/assets/Plugin-wl-2k1zI.css +1 -0
- package/dist/interface/assets/{PluginConsole-BaPz9Ag3.js → PluginConsole-C5QUHag5.js} +1 -1
- package/dist/interface/assets/PluginDetail-BV9q05RH.js +2 -0
- package/dist/interface/assets/{PluginSchema-Cb_F8uew.js → PluginSchema-ZmCo1GfL.js} +1 -1
- package/dist/interface/assets/PluginSearch-CPSS5l_S.js +2 -0
- package/dist/interface/assets/PluginSearch-D2lfdneY.js +1 -0
- package/dist/interface/assets/{Plugins-RVhaBdkA.js → Plugins-BMeUpZis.js} +1 -1
- package/dist/interface/assets/Recordings-oa1jW60s.js +1 -0
- package/dist/interface/assets/{Settings-DQgp2tgH.js → Settings-Cu4k98YQ.js} +1 -1
- package/dist/interface/assets/SettingsAccount-BR97Mvsw.js +1 -0
- package/dist/interface/assets/SettingsAccount-Ce5Kew-X.js +1 -0
- package/dist/interface/assets/SettingsAppearance-CvqBMYa0.js +1 -0
- package/dist/interface/assets/{SettingsAppearance-YNXseOYk.js → SettingsAppearance-sBMROH-9.js} +1 -1
- package/dist/interface/assets/{SettingsBackup-DIWxITfi.js → SettingsBackup-BQZ17oo9.js} +1 -1
- package/dist/interface/assets/SettingsMqtt-CswzO2yF.js +1 -0
- package/dist/interface/assets/SettingsNotifications-BZAmBizt.js +2 -0
- package/dist/interface/assets/SettingsPermissions-BO45j_2T.js +1 -0
- package/dist/interface/assets/{SettingsRecordings-Dxdxayym.js → SettingsRecordings-BlsL_XbW.js} +1 -1
- package/dist/interface/assets/SettingsRemote-PJZ9QEdM.js +1 -0
- package/dist/interface/assets/SettingsSystem-BOovn83d.js +2 -0
- package/dist/interface/assets/SettingsUsers-4PxUV0xb.js +1 -0
- package/dist/interface/assets/Terminal-BW210aW_.js +4 -0
- package/dist/interface/assets/{VariableInput-Br6YY5HX.js → VariableInput-D3XO0sxM.js} +1 -1
- package/dist/interface/assets/{VariableSuggestions-D898dM5K.js → VariableSuggestions-usJlEFx9.js} +1 -1
- package/dist/interface/assets/VersionsHandler-BchMo3gy.js +7 -0
- package/dist/interface/assets/Workers-BaT-k-h7.js +2 -0
- package/dist/interface/assets/{account-jONrhXkE.js → account-sFoKqEOV.js} +1 -1
- package/dist/interface/assets/{alert-circle-CqEfEWD8.js → alert-circle-BQZQ417w.js} +1 -1
- package/dist/interface/assets/{alert-outline-DcXO2ICo.js → alert-outline-BUvdNY2J.js} +1 -1
- package/dist/interface/assets/api-B2zXvFkd.css +2 -0
- package/dist/interface/assets/api-CFvSlLoS.js +2 -0
- package/dist/interface/assets/{api-CkxuZ9lw.js → api-yu63zQdy.js} +1 -1
- package/dist/interface/assets/{arrow-left-DGioEwqJ.js → arrow-left-LdfKbcre.js} +1 -1
- package/dist/interface/assets/{arrow-right-outline-BrpH6MGt.js → arrow-right-outline-BbTEhBJq.js} +1 -1
- package/dist/interface/assets/{auth-Dgn4npDp.js → auth-DpuHVB2f.js} +1 -1
- package/dist/interface/assets/{automations-Dab1-eSY.js → automations-CswkESOL.js} +1 -1
- package/dist/interface/assets/{back-filled-DZmo9cAg.js → back-filled-BdHG6uUx.js} +1 -1
- package/dist/interface/assets/{bell-ring-D0h1GDrU.js → bell-ring-Dua4zXf_.js} +1 -1
- package/dist/interface/assets/{cameras.schema-CwGkDyzk.js → cameras.schema-DQRHRTy7.js} +1 -1
- package/dist/interface/assets/{cctv-CdDfBHME.js → cctv-DEiPL3U8.js} +1 -1
- package/dist/interface/assets/{check-circle-CVNa_reg.js → check-circle-D-utE_P9.js} +1 -1
- package/dist/interface/assets/{chevron-down-BiRUJ9SO.js → chevron-down-OEjMpuec.js} +1 -1
- package/dist/interface/assets/{chevron-right-Crha-j7O.js → chevron-right-B3nxd9UE.js} +1 -1
- package/dist/interface/assets/{clock-outline-dv-kmi60.js → clock-outline-C_f3Ed8x.js} +1 -1
- package/dist/interface/assets/{close-BCRtoBTk.js → close-DNgGJYHi.js} +1 -1
- package/dist/interface/assets/{close-circle-raXx3m4Q.js → close-circle-L5juejMg.js} +1 -1
- package/dist/interface/assets/{cloud-check-CST59Xl_.js → cloud-check-DD7oRzmo.js} +1 -1
- package/dist/interface/assets/cloudHandoff-CnR2gwtj.js +1 -0
- package/dist/interface/assets/{config-BYU9LRQr.js → config-CCcnF9Yx.js} +1 -1
- package/dist/interface/assets/{copy-C53ZJyaU.js → copy-BvSzmsFs.js} +1 -1
- package/dist/interface/assets/{delete-Dvdp44LT.js → delete-B9BZTgya.js} +1 -1
- package/dist/interface/assets/{dist-DZi5AgJB.js → dist-qdWlJrr0.js} +1 -1
- package/dist/interface/assets/{download-Dq82fWLS.js → download-Dp_ssGIE.js} +1 -1
- package/dist/interface/assets/esm-9VMgxuPI.js +1 -0
- package/dist/interface/assets/esm-B69zS8aI.js +1 -0
- package/dist/interface/assets/esm-BF94InGP.js +1 -0
- package/dist/interface/assets/esm-BHdK6hkk.js +1 -0
- package/dist/interface/assets/esm-BYm8JT8N.js +1 -0
- package/dist/interface/assets/esm-BwCmHX2G.js +1 -0
- package/dist/interface/assets/esm-CL6t-XYT.js +1 -0
- package/dist/interface/assets/esm-CXstRMXa.js +1 -0
- package/dist/interface/assets/esm-Ckb9rjlL.js +1 -0
- package/dist/interface/assets/esm-D4insKbc.js +1 -0
- package/dist/interface/assets/esm-DiReJ8YS.js +1 -0
- package/dist/interface/assets/esm-Dt_Neag0.js +1 -0
- package/dist/interface/assets/esm-GspmWlKf.js +1 -0
- package/dist/interface/assets/esm-eezqpB2a.js +1 -0
- package/dist/interface/assets/{flowSchema-BuhMrSRP.js → flowSchema-ByVSVVZM.js} +1 -1
- package/dist/interface/assets/{history--LGIMjNU.js → history-iAZcYg3f.js} +1 -1
- package/dist/interface/assets/{home-C5hRJg9h.js → home-DL94781-.js} +1 -1
- package/dist/interface/assets/{information-outline-CjhiKBjG.js → information-outline-CVsB1bl-.js} +1 -1
- package/dist/interface/assets/{lightbulb-outline-BGFG7wv-.js → lightbulb-outline-nNLyXAIp.js} +1 -1
- package/dist/interface/assets/{main-Dchuz606.css → main-CEYTxpKX.css} +1 -1
- package/dist/interface/assets/main-zSbiCYYG.js +3 -0
- package/dist/interface/assets/{microphone-Dp5Yhz6Z.js → microphone-CU0mFDMh.js} +1 -1
- package/dist/interface/assets/{mqtt-Bj9HWVr-.js → mqtt-BNgvAoK4.js} +1 -1
- package/dist/interface/assets/native-WiRjRKUS.js +1 -0
- package/dist/interface/assets/native-hhip9y-E.js +1 -0
- package/dist/interface/assets/nodeDefinitions-CPyyuw1P.js +1 -0
- package/dist/interface/assets/{notifications-B2GVNEL7.js → notifications-BAnFnX49.js} +1 -1
- package/dist/interface/assets/plugin-DIVM640y.js +1 -0
- package/dist/interface/assets/{plugins-Ct1tFRqH.js → plugins-Ca3OgKn0.js} +1 -1
- package/dist/interface/assets/{plus-C6l_Q-mY.js → plus-CTzaBaTz.js} +1 -1
- package/dist/interface/assets/{plus-DhRnJIfm.js → plus-Ct6WQfM1.js} +1 -1
- package/dist/interface/assets/{power-BfcMaKbx.js → power-CvKGepBP.js} +1 -1
- package/dist/interface/assets/{ring-resize-peEJMXPl.js → ring-resize-CZBThoQC.js} +1 -1
- package/dist/interface/assets/{round-alt-arrow-left-bold-BcL7KVCG.js → round-alt-arrow-left-bold-BlpNMBxm.js} +1 -1
- package/dist/interface/assets/{round-restart-alt-COgLKyfG.js → round-restart-alt-DRs27TY5.js} +1 -1
- package/dist/interface/assets/{search-BTu5ntI6.js → search-M4Rt52Co.js} +1 -1
- package/dist/interface/assets/{server-CmHQA2OF.js → server-gTuqdFby.js} +1 -1
- package/dist/interface/assets/{settings-wRDwvjf-.js → settings-CgToKrFd.js} +1 -1
- package/dist/interface/assets/{source-branch-DejOTyZv.js → source-branch-CoHKTGxb.js} +1 -1
- package/dist/interface/assets/{theme-BdlqMboH.js → theme-DIq9gz97.js} +1 -1
- package/dist/interface/assets/{trash-2-upauF9j0.js → trash-2-BKWfq15D.js} +1 -1
- package/dist/interface/assets/{trash-can-outline-PQys0L3O.js → trash-can-outline-HvqPHpF7.js} +1 -1
- package/dist/interface/assets/{trash-fill-DDHuYpvM.js → trash-fill-yNQsFs0Y.js} +1 -1
- package/dist/interface/assets/{trash2-M6P7YvkH.js → trash2-DjTG9rG-.js} +1 -1
- package/dist/interface/assets/{types-o57RMLy1.js → types-C7L3hjfO.js} +1 -1
- package/dist/interface/assets/types-Cn7DsWzS.js +1 -0
- package/dist/interface/assets/types-YwmhC3Ej.js +1 -0
- package/dist/interface/assets/{upload-DwNCSVAl.js → upload-B6yqOWqz.js} +1 -1
- package/dist/interface/assets/useAppVersion-l__imCkk.js +1 -0
- package/dist/interface/assets/{useBackupRestore-xqzQKAfT.js → useBackupRestore-Cgawtix3.js} +1 -1
- package/dist/interface/assets/{useCameraOptions-CAu9scRL.js → useCameraOptions-C1kW1dA9.js} +1 -1
- package/dist/interface/assets/{useCardSelection-BdYBm23a.js → useCardSelection-CgZ7QTaA.js} +1 -1
- package/dist/interface/assets/useElectron-Dt3r8Pr5.js +1 -0
- package/dist/interface/assets/{useLogsSocket-B_EbSIOU.js → useLogsSocket-DAW77Nal.js} +1 -1
- package/dist/interface/assets/usePermissions-C8pmxROS.js +1 -0
- package/dist/interface/assets/{useServerRestart-CZj3Y0Gh.js → useServerRestart-BX8sVJAR.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-B12LRLX9.js → useStreamStatus-Dzl_vdmR.js} +1 -1
- package/dist/interface/assets/useUserOptions-ChdxzZFg.js +1 -0
- package/dist/interface/assets/{variable-K7DoQHpX.js → variable-Y3IAPnsB.js} +1 -1
- package/dist/interface/assets/vendor-cameraui-Dq4HsgJP.js +2040 -0
- package/dist/interface/assets/{vendor-capacitor-BmJAC1FL.js → vendor-capacitor-D6T-f6Q_.js} +2 -2
- package/dist/interface/assets/{vendor-chart-BDu4sN9x.js → vendor-chart-DpsXMlB-.js} +1 -1
- package/dist/interface/assets/{vendor-core-0Lu3l40a.js → vendor-core-JEiqQGZM.js} +1 -1
- package/dist/interface/assets/{vendor-dnd-BN6m9rq8.js → vendor-dnd-hwiZJHjo.js} +1 -1
- package/dist/interface/assets/{vendor-draggabilly-BLoTmI_a.js → vendor-draggabilly-OrLwQbim.js} +1 -1
- package/dist/interface/assets/{vendor-gridstack-9ka60QnT.js → vendor-gridstack-C6VKsm_r.js} +1 -1
- package/dist/interface/assets/{vendor-gridstack-Chv4ms9g.css → vendor-gridstack-DsRWLz0m.css} +1 -1
- package/dist/interface/assets/{vendor-markdown-D_3Of-Gz.js → vendor-markdown-_OBaDsnU.js} +1 -1
- package/dist/interface/assets/{vendor-CdGy-Xet.js → vendor-nfBMzqgY.js} +10 -10
- package/dist/interface/assets/{vendor-primevue-Cm1rEh62.js → vendor-primevue-0ryUKXNO.js} +1 -1
- package/dist/interface/assets/{vendor-vueflow-D7rAeKHv.js → vendor-vueflow-B1MUSE71.js} +1 -1
- package/dist/interface/assets/web-B-SlpbxK.js +1 -0
- package/dist/interface/assets/web-B6leYIzJ.js +1 -0
- package/dist/interface/assets/web-BLDe3Kn0.js +1 -0
- package/dist/interface/assets/web-BT-51W2W.js +1 -0
- package/dist/interface/assets/web-BjKL51lK-DHLvmMLr.js +1 -0
- package/dist/interface/assets/web-BpRU7MbT.js +1 -0
- package/dist/interface/assets/web-CiaJvmq8.js +1 -0
- package/dist/interface/assets/web-Cnkt61og.js +1 -0
- package/dist/interface/assets/web-CzhM-YH1.js +1 -0
- package/dist/interface/assets/web-Da5rcZ2Q.js +1 -0
- package/dist/interface/assets/web-DdZjFuTb.js +1 -0
- package/dist/interface/assets/web-DnHj9sl9.js +1 -0
- package/dist/interface/assets/web-E4Ew4Xhj.js +1 -0
- package/dist/interface/assets/web-q63OEDhG.js +1 -0
- package/dist/interface/assets/{webhook-CQl989bo.js → webhook-yCryYojY.js} +1 -1
- package/dist/interface/assets/workbox-window.prod.es5-BMiTt6Ad.js +1 -0
- package/dist/interface/assets/{zoom-in-2i20zd_d.js → zoom-in-Da5uRiQq.js} +1 -1
- package/dist/interface/index.html +38 -37
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +7 -7
- package/dist/server/requirements.txt +1 -1
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/config.py +2 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/detection.py +2 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/base.py +1 -0
- package/dist/server/src/api/controllers/cameras.controller.js +1 -0
- package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
- package/dist/server/src/api/database/types.d.ts +2 -0
- package/dist/server/src/api/schemas/automations.schema.d.ts +3 -0
- package/dist/server/src/api/schemas/automations.schema.js +1 -0
- package/dist/server/src/api/schemas/automations.schema.js.map +1 -1
- package/dist/server/src/api/schemas/cameras.schema.d.ts +40 -0
- package/dist/server/src/api/schemas/cameras.schema.js +3 -0
- package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
- package/dist/server/src/api/types/index.d.ts +1 -1
- package/dist/server/src/automations/actions/index.js +2 -0
- package/dist/server/src/automations/actions/index.js.map +1 -1
- package/dist/server/src/automations/actions/notificationControl.d.ts +2 -0
- package/dist/server/src/automations/actions/notificationControl.js +17 -0
- package/dist/server/src/automations/actions/notificationControl.js.map +1 -0
- package/dist/server/src/camera/decoder/detection-coordinator.d.ts +3 -0
- package/dist/server/src/camera/decoder/detection-coordinator.js +80 -22
- package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
- package/dist/server/src/camera/decoder/stationary-suppressor.d.ts +5 -2
- package/dist/server/src/camera/decoder/stationary-suppressor.js +39 -12
- package/dist/server/src/camera/decoder/stationary-suppressor.js.map +1 -1
- package/dist/server/src/camera/sensors/controller.d.ts +2 -0
- package/dist/server/src/camera/sensors/controller.js +19 -4
- package/dist/server/src/camera/sensors/controller.js.map +1 -1
- package/dist/server/src/main.js +1 -1
- package/dist/server/src/main.js.map +1 -1
- package/dist/server/src/manager/notificationManager.d.ts +3 -0
- package/dist/server/src/manager/notificationManager.js +19 -4
- package/dist/server/src/manager/notificationManager.js.map +1 -1
- package/dist/server/src/remote/services/index.d.ts +4 -0
- package/dist/server/src/remote/services/index.js +27 -0
- package/dist/server/src/remote/services/index.js.map +1 -1
- package/dist/server/src/rpc/server.js +2 -0
- package/dist/server/src/rpc/server.js.map +1 -1
- package/package.json +7 -7
- package/dist/interface/assets/Automation-BaF8MdrF.js +0 -3
- package/dist/interface/assets/AutomationStore-DOdwMUIP.js +0 -2
- package/dist/interface/assets/AutomationStoreDetail-CkNGHRNU.js +0 -2
- package/dist/interface/assets/Automations-sO0qi27q.js +0 -2
- package/dist/interface/assets/Camera-DW__aloL.js +0 -2
- package/dist/interface/assets/Camera-Da5zEitE.css +0 -1
- package/dist/interface/assets/Cameras-BNBi1F0q.js +0 -652
- package/dist/interface/assets/Camview-Djtm5hEO.js +0 -1
- package/dist/interface/assets/Config-DioQs8yK.js +0 -2
- package/dist/interface/assets/ConfigTriggerGeofence-CAHirXSm.js +0 -1
- package/dist/interface/assets/CuiBottomSheet-d46jCJeG.js +0 -1
- package/dist/interface/assets/CuiCameraShares-8Mo2XwFD.js +0 -1
- package/dist/interface/assets/CuiMarkdownContent-G916_kVN.js +0 -1
- package/dist/interface/assets/CuiPluginCard-4NsvwvgQ.js +0 -2
- package/dist/interface/assets/CuiPluginOAuthButton-7mwBhBzg.js +0 -2
- package/dist/interface/assets/CuiQRCode-l-PLLptq.js +0 -1
- package/dist/interface/assets/CuiRecordingsGrid-BeOP2hpR.js +0 -1
- package/dist/interface/assets/CuiSchema-TojDO40O.js +0 -1
- package/dist/interface/assets/Faces-DW0RFypU.js +0 -1
- package/dist/interface/assets/FirstSteps-BgNqGgK1.js +0 -1
- package/dist/interface/assets/OAuthDeviceFlow-BpeJI0ad.js +0 -1
- package/dist/interface/assets/Plugin-B_ANQppI.js +0 -1
- package/dist/interface/assets/Plugin-DbSiTjYn.css +0 -1
- package/dist/interface/assets/PluginDetail-j7srfPSY.js +0 -2
- package/dist/interface/assets/PluginSearch-C4JY7Iwj.js +0 -2
- package/dist/interface/assets/PluginSearch-CTAtKAK4.js +0 -1
- package/dist/interface/assets/Recordings-frQ3fb5P.js +0 -1
- package/dist/interface/assets/SettingsAccount-BhCf1XAp.js +0 -1
- package/dist/interface/assets/SettingsAccount-BhseUwL4.js +0 -1
- package/dist/interface/assets/SettingsAppearance--SabFiHj.js +0 -1
- package/dist/interface/assets/SettingsMqtt-Bf23ZOH-.js +0 -1
- package/dist/interface/assets/SettingsNotifications-Dv9Fixz_.js +0 -2
- package/dist/interface/assets/SettingsRemote-CGMwCx4y.js +0 -1
- package/dist/interface/assets/SettingsSystem-ZHz6-3eN.js +0 -2
- package/dist/interface/assets/SettingsUsers-Dxj65vMx.js +0 -1
- package/dist/interface/assets/Terminal-DFGD9NeS.js +0 -4
- package/dist/interface/assets/VersionsHandler-J51M6nHE.js +0 -7
- package/dist/interface/assets/Workers-BHibnYvL.js +0 -2
- package/dist/interface/assets/api-BwUGcpse.js +0 -2
- package/dist/interface/assets/api-Ct6LuJao.css +0 -2
- package/dist/interface/assets/cloudHandoff-CpMzGP4H.js +0 -1
- package/dist/interface/assets/esm-5O0fbEL-.js +0 -1
- package/dist/interface/assets/esm-8JcCIx6p.js +0 -1
- package/dist/interface/assets/esm-BIwkRkap.js +0 -1
- package/dist/interface/assets/esm-Ba1kg7sT.js +0 -1
- package/dist/interface/assets/esm-CI9fumfA.js +0 -1
- package/dist/interface/assets/esm-CfqCZ8Ic.js +0 -1
- package/dist/interface/assets/esm-Cle2K7IB.js +0 -1
- package/dist/interface/assets/esm-DGhY5suq.js +0 -1
- package/dist/interface/assets/esm-D_SYso1m.js +0 -1
- package/dist/interface/assets/esm-Dg-c_Ys9.js +0 -1
- package/dist/interface/assets/esm-IjMpYY_D.js +0 -1
- package/dist/interface/assets/esm-JkR46BGF.js +0 -1
- package/dist/interface/assets/esm-KCb4USia.js +0 -1
- package/dist/interface/assets/esm-fiu1-7Vf.js +0 -1
- package/dist/interface/assets/main-DvYnQiyf.js +0 -3
- package/dist/interface/assets/native-CNOra93F.js +0 -1
- package/dist/interface/assets/native-DAl9Pmov.js +0 -1
- package/dist/interface/assets/nodeDefinitions-DkMCR_zX.js +0 -1
- package/dist/interface/assets/plugin-HHKHhKIh.js +0 -1
- package/dist/interface/assets/types-Du61QgCF.js +0 -1
- package/dist/interface/assets/types-f9LWayxM.js +0 -1
- package/dist/interface/assets/useAppVersion-GqkuhLFI.js +0 -1
- package/dist/interface/assets/useUserOptions-BycuHkS6.js +0 -1
- package/dist/interface/assets/vendor-cameraui-CywDBRLD.js +0 -2040
- package/dist/interface/assets/web-B2hT39CL.js +0 -1
- package/dist/interface/assets/web-BKoMlshd.js +0 -1
- package/dist/interface/assets/web-BjKL51lK-Ut62Hifg.js +0 -1
- package/dist/interface/assets/web-C0ZNZcUJ.js +0 -1
- package/dist/interface/assets/web-CvKW_k8u.js +0 -1
- package/dist/interface/assets/web-CxfYyhSm.js +0 -1
- package/dist/interface/assets/web-CzA5zxEf.js +0 -1
- package/dist/interface/assets/web-D7XF0rfU.js +0 -1
- package/dist/interface/assets/web-DgSunHN1.js +0 -1
- package/dist/interface/assets/web-DpgTK9mR.js +0 -1
- package/dist/interface/assets/web-Hi4guSgN.js +0 -1
- package/dist/interface/assets/web-QaIP1Mop.js +0 -1
- package/dist/interface/assets/web-VGpOPxhq.js +0 -1
- package/dist/interface/assets/web-g-y7DVV1.js +0 -1
- package/dist/interface/assets/workbox-window.prod.es5-YHyKoEMU.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./dist-qdWlJrr0.js","./vendor-nfBMzqgY.js","./rolldown-runtime-DAXXjFlN.js","./CuiMarkdownContent-Xn_VHwym.js","./CuiMarkdownContent-DEMo42iT.js","./vendor-markdown-_OBaDsnU.js","./vendor-markdown-DtOhvyRx.css","./CameraConsole-e5MVc4mo.js","./useLogsSocket-DAW77Nal.js","./vendor-cameraui-Dq4HsgJP.js","./vendor-xterm-IIYDrBG1.js","./vendor-xterm-BrP-ENHg.css","./useLogsSocket-CoA-Nq-_.css","./workbox-window.prod.es5-BMiTt6Ad.js","./404-9YR2yuVi.js","./home-DL94781-.js","./FirstSteps-DFfg4zRP.js","./useElectron-Dt3r8Pr5.js","./vendor-core-JEiqQGZM.js","./vendor-primevue-0ryUKXNO.js","./useBackupRestore-Cgawtix3.js","./server-gTuqdFby.js","./useServerRestart-BX8sVJAR.js","./SettingsAccount-Ce5Kew-X.js","./vendor-zod-BaT-dXMv.js","./CuiDataTable-DS3xBLS7.js","./arrow-right-outline-BbTEhBJq.js","./CuiDataTable-W68cyoLf.css","./CuiQRCode-C0gdwLUs.js","./theme-DIq9gz97.js","./CuiQRCode-BtErH65J.css","./auth-DpuHVB2f.js","./SettingsAccount-CyNJQSuV.css","./SettingsAppearance-sBMROH-9.js","./Cameras-BH0Ae5cx.js","./types-Cn7DsWzS.js","./close-DNgGJYHi.js","./CuiSchema-DXSjz3IR.js","./CuiSchema--yMBD996.css","./plus-CTzaBaTz.js","./cameras.schema-DQRHRTy7.js","./ring-resize-CZBThoQC.js","./plus-Ct6WQfM1.js","./Cameras-DIY20Wlh.css","./Camera-Dj4f6jSP.js","./zoom-in-Da5uRiQq.js","./CuiCameraPipCard-Bv6mbocY.js","./CuiCameraPipCard-D3o29_wc.css","./Camera-Cqt297Vv.css","./Camview-BmkHCnIA.js","./vendor-dnd-hwiZJHjo.js","./microphone-CU0mFDMh.js","./delete-B9BZTgya.js","./CuiTopNavbarItem-Ba6NH5w-.js","./chevron-down-OEjMpuec.js","./CuiTopNavbarItem-CJqOqVMt.css","./vendor-gridstack-C6VKsm_r.js","./vendor-gridstack-DsRWLz0m.css","./Camview-CaEbdeQZ.css","./Recordings-oa1jW60s.js","./CuiRecordingsGrid-CVll9mg2.js","./CuiRecordingsGrid-COHg3ZCT.css","./round-alt-arrow-left-bold-BlpNMBxm.js","./Recordings-DO1BPBKp.css","./Faces-k6xFGoBN.js","./plugins-Ca3OgKn0.js","./back-filled-BdHG6uUx.js","./useCardSelection-CgZ7QTaA.js","./Plugins-BMeUpZis.js","./search-M4Rt52Co.js","./PluginSearch-CPSS5l_S.js","./clock-outline-C_f3Ed8x.js","./CuiPluginTrustBadge-BJ6pc43x.js","./CuiPluginTrustBadge-QHTLaN1n.css","./CuiPluginCategoryChip-DZhaWc_S.js","./cctv-DEiPL3U8.js","./bell-ring-Dua4zXf_.js","./CuiPluginCategoryChip-CdGrTCxH.css","./download-Dp_ssGIE.js","./PluginSearch-Bbp8D7BJ.css","./config-CCcnF9Yx.js","./settings-CgToKrFd.js","./CuiPluginCard-DnarBFVa.js","./CuiPluginOAuthButton-DyPfV8hY.js","./cloud-check-DD7oRzmo.js","./trash-fill-yNQsFs0Y.js","./CuiPluginCard-C9zsmIaC.css","./Plugin-Cs-vi0ov.js","./lightbulb-outline-nNLyXAIp.js","./PluginSchema-ZmCo1GfL.js","./information-outline-CVsB1bl-.js","./close-circle-L5juejMg.js","./Plugin-wl-2k1zI.css","./Adminpanel-CKNwF9Ra.js","./round-restart-alt-DRs27TY5.js","./vendor-chart-DpsXMlB-.js","./chevron-right-B3nxd9UE.js","./round-restart-alt-BhSxsPhN.css","./Config-CFNrNWvY.js","./Config-JgftUZFe.css","./Logs-B-6Ku-as.js","./arrow-left-LdfKbcre.js","./trash-2-BKWfq15D.js","./Terminal-BW210aW_.js","./Terminal-CrOfQJ-O.css","./Automations-Cg4Lzb1M.js","./automations-CswkESOL.js","./nodeDefinitions-CPyyuw1P.js","./webhook-yCryYojY.js","./source-branch-CoHKTGxb.js","./variable-Y3IAPnsB.js","./types-YwmhC3Ej.js","./alert-circle-BQZQ417w.js","./Automation-C6ag7k7_.js","./history-iAZcYg3f.js","./useCameraOptions-C1kW1dA9.js","./flowSchema-ByVSVVZM.js","./CuiBottomSheet-BS2_Z135.js","./CuiBottomSheet-DsjZEdig.css","./automationBlueprint-DMjszOs4.js","./vendor-vueflow-B1MUSE71.js","./Automation-BSicfOGF.css","./Instances-CbK1g4IM.js","./Workers-BaT-k-h7.js","./Workers-DmcQx0L8.css","./Settings-Cu4k98YQ.js","./Settings-DmZjKfDi.css","./Menu-eNDXPuYN.js","./power-CvKGepBP.js","./About-ClX7-pcf.js","./api-yu63zQdy.js","./useAppVersion-l__imCkk.js","./Console-DDsPYJgK.js","./trash2-DjTG9rG-.js","./SettingsAccount-BR97Mvsw.js","./SettingsAppearance-CvqBMYa0.js","./SettingsBackup-BQZ17oo9.js","./trash-can-outline-HvqPHpF7.js","./SettingsBackup-CX0rT0QJ.css","./SettingsRecordings-BlsL_XbW.js","./alert-outline-BUvdNY2J.js","./SettingsRemote-PJZ9QEdM.js","./SettingsRemote-DYld6-1F.css","./SettingsMqtt-CswzO2yF.js","./mqtt-BNgvAoK4.js","./SettingsSystem-BOovn83d.js","./SettingsUsers-4PxUV0xb.js","./SettingsNotifications-BZAmBizt.js","./notifications-BAnFnX49.js","./usePermissions-C8pmxROS.js","./SettingsPermissions-BO45j_2T.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{o as e,r as t}from"./rolldown-runtime-DAXXjFlN.js";import{$ as n,$n as r,$r as i,Ai as a,B as o,Bi as s,Br as c,Ci as l,Ct as u,Di as d,Ei as f,Et as p,F as m,Fi as h,Fr as g,G as _,Gi as v,Gn as y,Gr as b,Hr as x,I as S,Ii as C,J as w,Jn as T,Jr as E,Kn as ee,Kr as D,Li as O,Mi as te,Ni as ne,O as re,Oi as ie,Or as k,Ot as ae,Pi as oe,Pt as se,Q as ce,Qn as A,Ri as le,Rr as ue,S as de,Si as fe,T as pe,Ti as me,Tr as j,U as he,Ur as ge,V as _e,Vi as ve,Vr as ye,W as be,Wn as xe,Xn as Se,Xr as Ce,Yn as we,Yr as Te,Z as Ee,Zn as De,Zr as Oe,_ as ke,_i as Ae,a as je,ar as Me,bi as Ne,ct as Pe,di as Fe,dr as Ie,dt as Le,ei as Re,er as ze,et as Be,f as Ve,ft as He,gr as Ue,gt as We,h as Ge,hr as Ke,ht as qe,ii as Je,ir as Ye,it as Xe,ji as Ze,ki as Qe,kr as $e,li as et,lr as tt,mi as nt,mr as rt,mt as it,n as at,nt as ot,o as st,oi as ct,ot as lt,p as ut,q as dt,qr as ft,r as pt,ri as mt,rt as ht,s as gt,sr as _t,st as vt,ti as yt,tr as bt,ut as xt,v as M,wi as St,wr as Ct,wt,x as Tt,xi as Et,xt as Dt,y as Ot,yi as kt,yt as At,z as jt,zi as Mt}from"./vendor-cameraui-Dq4HsgJP.js";import{$n as Nt,$t as Pt,An as Ft,B as It,Bn as Lt,Cn as Rt,Cr as zt,Dn as Bt,F as Vt,Gn as Ht,Hn as Ut,I as Wt,In as Gt,J as N,Jn as Kt,K as qt,L as Jt,Ln as Yt,Mn as Xt,Nn as Zt,On as Qt,P as $t,Pn as en,Q as tn,Qn as P,Qt as nn,R as rn,Rn as F,Sn as an,Sr as I,Tn as on,Tr as L,Ut as R,Vn as sn,Wn as cn,X as ln,Xn as un,Xt as dn,Y as fn,_n as pn,_r as mn,an as z,bn as hn,br as gn,cr as _n,dn as B,dr as vn,fn as V,fr as yn,gn as bn,gr as xn,hn as Sn,in as Cn,kn as H,ln as U,lr as W,nn as wn,nr as Tn,pn as G,pr as K,rn as En,sn as Dn,tn as On,tr as q,un as J,vn as Y,wr as X,xr as Z,yn as kn,yr as An,z as jn,zn as Mn}from"./vendor-nfBMzqgY.js";import{a as Nn,i as Pn,r as Fn,t as In}from"./useElectron-Dt3r8Pr5.js";import{n as Ln,r as Rn,t as Q}from"./vendor-zod-BaT-dXMv.js";import{F as zn,I as Bn,L as Vn,N as Hn,P as Un,b as Wn,k as Gn}from"./types-Cn7DsWzS.js";import{i as Kn,n as qn,r as Jn,t as Yn}from"./lightbulb-outline-nNLyXAIp.js";import{f as Xn,i as Zn,l as Qn,o as $n,p as er,r as tr,t as nr,u as rr}from"./vendor-core-JEiqQGZM.js";import{A as ir,B as ar,C as or,G as sr,H as cr,K as lr,L as ur,R as dr,U as fr,V as pr,W as mr,b as hr,j as gr,q as _r,s as vr,u as yr,z as br}from"./vendor-primevue-0ryUKXNO.js";import{a as xr,i as Sr,n as Cr,r as wr,t as Tr}from"./vendor-dnd-hwiZJHjo.js";import{t as Er}from"./close-DNgGJYHi.js";import{t as Dr}from"./vendor-draggabilly-OrLwQbim.js";var Or=t({}),kr=t({}),Ar=t({}),jr=t({}),Mr=t({}),Nr=t({}),Pr=t({}),Fr=t({}),Ir=t({});function Lr(e){kt(e,{enabled:!1,extraHeaders:{"Accept-Encoding":`identity`},request:async e=>{let{CapacitorHttp:t}=await R(async()=>{let{CapacitorHttp:e}=await import(`./dist-qdWlJrr0.js`);return{CapacitorHttp:e}},__vite__mapDeps([0,1,2]),import.meta.url);return t.request(e)}})}var Rr={id:`http`,kind:`request`,phaseGating:!1},zr={id:`socketio`,kind:`persistent`,phaseGating:!0},Br={id:`nats`,kind:`persistent`,phaseGating:!0},Vr={id:`ws`,kind:`per-resource`,phaseGating:!1};Rr.id,zr.id,Br.id,Vr.id;function Hr(e){let t=l({apiPrefix:e,spec:Rr,logger:new v(`HttpT`)});return Lr(t.client),{http:t,socketio:Et({spec:zr,logger:new v(`SioT`)}),nats:fe({spec:Br,logger:new v(`NatsT`)}),ws:Ne({spec:Vr,logger:new v(`WsT`)})}}var Ur=`/api`,Wr=`camera.ui:connection:target`,Gr=`camera.ui:refresh`;function Kr(e){let t=e.apiPrefix??Ur,n=e.logger,r=e.storageNamespace?`${Wr}:${e.storageNamespace}`:Wr,i=e.storageNamespace?`${Gr}:${e.storageNamespace}`:Gr,o=h();function s(e,t,r,i=`debug`){o.record(e,t,r),r===void 0?n?.[i](e,t):n?.[i](e,t,r)}let c=O({context:{now:()=>Date.now()},onAction:(e,t,n)=>{n===t&&o.record(`kernel`,`${e.type} dropped`,`phase=${t.kind}`)}}),{http:l,socketio:u,nats:p,ws:m}=Hr(t),g=xn(c.phase),_=xn(null),v=C({kernel:c,transports:[u,p]}),y=xn(v.current),b=K(null),x=[],S=K(null),w=K(Date.now()),T,E=U(()=>S.value===null?0:w.value-S.value),ee=K(!1),D=null,ne=0,re=null;function k(e){let t=dn.isAxiosError(e)?e:e instanceof Error&&dn.isAxiosError(e.cause)?e.cause:null;if(!t||t.response?.status!==503)return;let n=t.response.headers?.[`retry-after`],r=Number.parseInt(String(n??``),10);Number.isFinite(r)&&r>0&&(re=r*1e3)}let ae=new Set;for(let e of[l,u,p,m]){let t=e.spec.id;x.push(e.on(`up`,()=>o.record(t,`up`))),x.push(e.on(`down`,({reason:e})=>o.record(t,`down`,e))),x.push(e.on(`auth-error`,e=>o.record(t,`auth-error`,e?.message??e?.status)))}x.push(v.subscribe(e=>{y.value=e,o.record(`signal`,e.kind,e.kind===`degraded`?e.channels.join(`,`):void 0)})),x.push(()=>v.dispose());let se=typeof navigator<`u`&&`locks`in navigator?e=>navigator.locks.request(i,e):void 0,ce=ie({kernel:c,storage:e.adapters.storage,key:r,onRestore:e=>{D=e,s(`persistence`,e?`restored — ${e.endpoint.url}`:`no stored target`)},onPersist:e=>s(`persistence`,`persisted — ${e.endpoint.url}`),onClear:()=>s(`persistence`,`cleared`),onError:(e,t)=>s(`persistence`,`${e} error`,t,`warn`)});x.push(ce.detach),e.callbacks.bindRefresh?.({acquireLock:se??(async e=>e()),getLatestTokens:()=>ce.peek()?.tokens??null}),x.push(me({kernel:c,key:r,absorb:e=>ce.absorb(e),onTokensReceived:()=>{s(`cross-tab`,`tokens received from another tab`);let e=c.phase.kind;e===`needs-auth`||e===`offline`?c.dispatch({type:`USER_RETRY`}):e===`idle`&&c.dispatch({type:`BOOT`,instanceId:`default`})},onResetReceived:()=>s(`cross-tab`,`logout received from another tab`),onError:(e,t)=>s(`cross-tab`,`${e} error`,t,`warn`)})),x.push(c.subscribe((t,n,r)=>{if(g.value=t,s(`kernel`,`${n.kind} → ${t.kind}`,r.type),t.kind===`idle`&&n.kind!==`idle`&&e.callbacks.onConnectionReset?.(),t.kind===`online`?ee.value=!0:t.kind===`idle`&&(ee.value=!1),t.kind===`offline`&&re!==null){let e=re;re=null,s(`backoff`,`server hint: retry after ${Math.round(e/1e3)}s`),queueMicrotask(()=>c.dispatch({type:`BACKOFF_HINT`,retryAfterMs:e,source:`retry-after`}))}else t.kind===`online`&&(re=null);t.kind===`online`||t.kind===`idle`||t.kind===`needs-auth`?(S.value=null,T!==void 0&&(clearInterval(T),T=void 0)):S.value===null&&(S.value=Date.now(),w.value=S.value,T=setInterval(()=>{w.value=Date.now()},1e3))})),x.push(()=>{T!==void 0&&(clearInterval(T),T=void 0)}),x.push(te({kernel:c,transports:[l,u,p,m],onApplied:e=>{_.value=e,(e||c.phase.kind===`idle`||c.phase.kind===`needs-auth`)&&(D=null)},onError:(e,t,n)=>s(e.spec.id,`apply failed`,n,`error`)})),x.push(St({kernel:c,schedule:[5e3],firstAttemptDelayMs:()=>Date.now()-ne<15e3?1500:null,onScheduled:(e,t)=>s(`backoff`,`attempt #${e} in ${Math.round(t/1e3)}s`),onFire:e=>s(`backoff`,`firing #${e}`),onCancelled:e=>s(`backoff`,`cancelled (${e})`)}));function A(){ne=Date.now(),fe?.wake(),e.callbacks.onWake?.(),le();for(let e of ae)try{e()}catch{}}function le(){for(let e of[p,u]){let t=e.health();e.ensureAlive().then(n=>{(t.up!==n.up||!n.up)&&o.record(e.spec.id,`ensureAlive → ${n.up?`up`:`down`}`,n.lastError??t.lastError)}).catch(()=>{})}}function ue(){return c.phase.kind===`offline`}let de=oe({kernel:c,discover:e.callbacks.discover,probe:e.callbacks.probe,lastTarget:()=>_.value??D??ce.peek(),prefer:e=>e.mode===`direct-lan`,onResult:(e,t)=>s(`probe`,`background ${e}`,t)});x.push(()=>de.dispose()),x.push(f({kernel:c,signal:v,ensureAll:le,probe:()=>de.run(),isReachable:()=>[u,p].some(e=>e.health().up),onEscalate:e=>s(`degraded-recovery`,`round #${e}`),onOffline:e=>s(`degraded-recovery`,e,void 0,`warn`),onHold:e=>s(`degraded-recovery`,e)})),x.push(Qe({kernel:c,visibilitySource:e.adapters.visibilitySource,networkSource:e.adapters.networkSource,onOnline:e=>{s(`presence`,`network online`),A(),ue()?e.dispatch({type:`USER_RETRY`}):e.phase.kind===`online`&&de.run()},onOffline:()=>s(`presence`,`network offline`),onVisibilityVisible:e=>{s(`presence`,`tab visible`),A(),ue()&&e.dispatch({type:`USER_RETRY`})},onVisibilityHidden:()=>s(`presence`,`tab hidden`)})),e.adapters.networkChangeSource&&x.push(d({kernel:c,source:e.adapters.networkChangeSource,debounceMs:2e3,onChange:e=>{s(`network-change`,`connection type changed`),A(),e.phase.kind===`online`?de.run():e.phase.kind===`offline`&&(s(`network-change`,`re-discovering`),e.dispatch({type:`USER_RETRY`}))}}));let fe=Ze({kernel:c,transports:[l,p,u,m],graceMs:5e3,maxTransientRetries:5,transientRetryDelayMs:2e3,isTransientError:e=>!!(dn.isAxiosError(e)&&(!e.response||e.response.status>=500)),isServerError:e=>dn.isAxiosError(e)&&(e.response?.status??0)>=500,maxServerErrorRetries:1,refresh:e.callbacks.refresh,acquireRefreshLock:se,getLatestTokens:()=>ce.peek()?.tokens??null,onRefreshStart:e=>s(`token-lifecycle`,`refresh START (${e})`),onRefreshSuccess:(e,t)=>{let n=t.accessExpiresAt;s(`token-lifecycle`,`refresh OK (${e}) — new exp in ${typeof n==`number`?Math.round((n-Date.now())/1e3):`?`}s`)},onRefreshSkipped:e=>s(`token-lifecycle`,`refresh SKIPPED (${e}) — another tab won`),onRefreshError:(e,t,n)=>{let r=t instanceof Error?t.message:String(t),i=n.serverError?`server-error`:`transient`;n.willRetry?s(`token-lifecycle`,`refresh ${i} (${e}) — ${r}`,void 0,`warn`):n.transient?s(`token-lifecycle`,`refresh ${i} give-up → rediscover (${e}) — ${r}`,void 0,`error`):s(`token-lifecycle`,`refresh permanent (${e}) — ${r}`,void 0,`error`)},onScheduled:(e,t)=>{s(`token-lifecycle`,`scheduled refresh in ${Math.round(e/1e3)}s (exp in ${Math.round((t-Date.now())/1e3)}s)`)},onWakeChecked:e=>{let t=typeof e.remainingMs==`number`?`${Math.round(e.remainingMs/1e3)}s`:`n/a`;s(`token-lifecycle`,`wake() → ${e.decision} (phase=${e.phase}, remaining=${t})`)},onTriggerSkipped:(e,t,n)=>{s(`token-lifecycle`,`trigger SKIP (${e}) — ${t} (phase=${n})`)}});x.push(()=>fe.detach()),x.push(a({kernel:c,discover:e.callbacks.discover,probe:e.callbacks.probe,prefer:e=>e.mode===`direct-lan`,lastTarget:()=>_.value??D??ce.peek(),onDiscoverStart:()=>s(`probe`,`discover start`),onDiscoverSuccess:e=>s(`probe`,`discover OK — pool=${e.length}`),onDiscoverError:e=>{k(e),s(`probe`,`discover FAILED`,e,`error`)},onProbeStart:e=>s(`probe`,`probe ${e.url}`),onProbeSuccess:e=>{b.value=e.url,s(`probe`,`probe OK — ${e.url}`)},onProbeError:(e,t)=>{k(t);let n=t instanceof Error?t.message:String(t),r=t instanceof Error&&`kind`in t?t.kind:`unknown`;(r===`needs-auth`||r===`fatal`)&&(b.value=e.url),s(`probe`,`probe FAIL ${e.url} — [${r}] ${n}`,void 0,`warn`)},onAllFailed:e=>s(`probe`,`all probes failed — ${e}`,void 0,`error`)}));function pe(e){c.dispatch({type:`BOOT`,instanceId:e})}function j(){c.dispatch({type:`USER_RETRY`})}function he(){c.dispatch({type:`RESET`})}async function ge(e,t=`default`){await ce.seed(e),D=null;let n=c.phase.kind;n===`idle`||n===`offline`||n===`needs-auth`?n===`idle`?c.dispatch({type:`BOOT`,instanceId:t}):c.dispatch({type:`USER_RETRY`}):n===`online`&&c.dispatch({type:`TOKENS_REFRESHED`,tokens:e.tokens})}async function _e(){for(let e of x.splice(0))try{e()}catch(e){n?.warn(`connection`,`cleanup error`,e)}await Promise.allSettled([l.dispose(),u.dispose(),p.dispose(),m.dispose()]),c.dispose()}function ve(e){return c.phase.kind===`online`?Promise.resolve(!0):e?.signal?.aborted?Promise.resolve(!1):new Promise(t=>{let n=!1,r=()=>{},i=e=>{n||(n=!0,r(),t(e))};r=c.subscribe(e=>{e.kind===`online`&&i(!0)}),e?.timeoutMs!==void 0&&setTimeout(()=>i(!1),e.timeoutMs),e?.signal?.addEventListener(`abort`,()=>i(!1),{once:!0})})}function ye(e){return ae.add(e),()=>ae.delete(e)}return{kernel:c,journal:o,phase:g,signal:y,target:_,http:l,socketio:u,nats:p,ws:m,lastReachableEndpoint:b,troubleElapsedMs:E,hasBeenOnline:ee,boot:pe,retry:j,reset:he,detach:_e,seedAndRetry:ge,onWake:ye,whenOnline:ve}}var qr=new Set,Jr=xn(null),Yr=null,Xr=null;function Zr(e){if(Yr)throw Error(`bootConnectionInstance(): already booted — call detachConnectionInstance() first`);Yr=Kr(e);let t=ne({kernel:Yr.kernel,hosts:()=>Array.from(qr),listenForResyncRequests:!0});return Xr=t,Yr.onWake(()=>{Yr?.journal.record(`worker-bridge`,`revalidate (${qr.size} workers)`),t.revalidateWorkers()}),globalThis.__cameraui_journal=Yr.journal,Yr}function Qr(){if(!Yr)throw Error(`getConnection(): connection not booted — call bootConnectionInstance() first`);return Yr}function $r(){if(!Xr)throw Error(`getWorkerBridge(): connection not booted — call bootConnectionInstance() first`);return Xr}function ei(){return Yr!==null}var ti=null;function ni(){return ti||(ti=Qr().http.client,ti)}var $=new Proxy({},{get(e,t){return Reflect.get(ni(),t,ni())},set(e,t,n){return Reflect.set(ni(),t,n,ni())}}),ri=[`Tunnel unavailable`];function ii(e){return typeof e==`object`&&!!e&&`isAxiosError`in e}function ai(e){return e?.response?.data}function oi(e){let t=ai(e);if(typeof t?.message==`string`)return t.message}function si(e){if(!ii(e)||e.response?.status!==503)return!1;let t=oi(e);return t?ri.some(e=>t.includes(e)):!1}function ci(e){return ii(e)?e.response?.status===404&&oi(e)===`Server not found`:!1}function li(e){return ii(e)?e.response?.status===503&&oi(e)===`Server remote access is disabled`:!1}var ui=`https://cloud.cameraui.com`,di=`https://proxy.cameraui.com`,fi=`https://share.cameraui.com`,pi=(()=>{try{return new URL(di).host}catch{return``}})();function mi(){return{networkSource:window}}function hi(){return Mt()}function gi(){return globalThis.document}var _i=Nn(`AuthApi`),vi={id:`camera.ui-web`,name:`camera.ui-web`};function yi(){let e=dn.create({timeout:1e4});Lr(e);async function t(t,n,r){let i=await e.post(`${t}/api/auth/login`,{username:n.username,password:n.password,kind:n.kind??`web`,persistent:n.persistent??!0,device:n.device??vi},{signal:r});return bi(i.data)?{twoFactorPending:!0,tempToken:i.data.tempToken,raw:i.data}:{tokens:xi(i.data),user:Si(i.data),raw:i.data}}async function n(t,n,r,i){let a=await e.post(`${t}/api/auth/verify-2fa`,{tempToken:n,code:r},{signal:i});return{tokens:xi(a.data),user:Si(a.data),raw:a.data}}async function r(t,n,r){let i=await e.post(`${t}/api/auth/refresh`,{refresh_token:n},{signal:r});return{tokens:xi(i.data),raw:i.data}}async function i(t,n,r){await e.get(`${t}/api/auth/check`,{headers:{Authorization:`Bearer ${n}`},signal:r})}async function a(t,n){await e.post(`${t}/api/auth/logout`,null,{headers:{Authorization:`Bearer ${n}`}})}async function o(t,n,r){if(!t||!n)throw Error(`tunnelCheck: incomplete proxy session (proxyUrl=${t?`set`:`missing`}, proxyToken=${n?`set`:`missing`})`);let i=await e.get(`${t}/tunnel/check`,{headers:{"X-Proxy-Session":n},timeout:3e4,signal:r}),a=Array.isArray(i.data.internalAddresses)?i.data.internalAddresses:[],o=Array.isArray(i.data.externalAddresses)?i.data.externalAddresses:[];if(a.length===0&&o.length===0){let e=i.headers?.[`content-type`]??`unknown`,n=typeof i.data==`string`?i.data.slice(0,300):JSON.stringify(i.data)?.slice(0,300);_i.warn(`[connection] tunnel/check returned no addresses — status=${i.status}, content-type=${e}, url=${t}/tunnel/check, body(300):`,n)}return{internalAddresses:a,externalAddresses:o}}async function s(t,n,r){return Ci((await e.post(`${t}/api/proxy/refresh`,{refresh_token:n},{signal:r,withCredentials:!0})).data)}async function c(t,n,r,i){return Ci((await e.post(`${t}/api/servers/${encodeURIComponent(n)}/select`,null,{headers:{Authorization:`Bearer ${r}`},signal:i})).data)}return{loginDirect:t,verify2FA:n,refreshDirect:r,authCheck:i,logoutDirect:a,tunnelCheck:o,refreshProxy:s,remintProxyFromL1:c}}function bi(e){return typeof e==`object`&&!!e&&`requires2fa`in e&&e.requires2fa===!0}function xi(e){return{access:e.access_token,accessExpiresAt:e.access_token_expires_at,refresh:e.refresh_token,refreshExpiresAt:e.refresh_token_expires_at}}function Si(e){return{_id:e._id,username:e.username,email:e.email,role:e.role,firstLogin:e.firstLogin,avatar:e.avatar,language:e.language}}function Ci(e){if(!e||typeof e!=`object`||!e.proxy_token||!e.proxy_url){let t=typeof e==`string`?`string:"${e.slice(0,120)}"`:JSON.stringify(e)?.slice(0,200);throw Error(`proxy mint response invalid — missing proxy_token/proxy_url (got ${t})`)}return{proxyUrl:e.proxy_url,proxyToken:e.proxy_token,proxyRefreshToken:e.proxy_refresh_token,proxyTokenExpiresAt:e.proxy_token_expires_at,proxyRefreshTokenExpiresAt:e.proxy_refresh_token_expires_at}}var wi=1440*60*1e3,Ti=`camera.ui:connection:discoverPool`;function Ei(e){let t=[];for(let n of e.internalAddresses)t.push({url:n,mode:`direct-lan`,priority:0});for(let n of e.externalAddresses)t.push({url:n,mode:`direct-wan`,priority:1});return t}function Di(){let e=Jr.value;return e?[{url:e,mode:`direct-lan`,priority:0}]:null}function Oi(e){if(dn.isAxiosError(e)){if(e.code===`ECONNABORTED`)return`timeout`;if(e.code)return e.code;if(e.message)return e.message}return e instanceof Error?e.message:`unknown`}function ki(e){let t=[{url:e,mode:`direct-lan`,priority:0}];return async()=>Di()??t}function Ai(e){let{api:t,cloudSession:n,cloudSessionLifecycle:r,storage:i,serverId:a,logger:o}=e,s=a?`${Ti}:${a}`:Ti,c=null,l=0,u=!1,d=!1;async function f(){if(!u&&(u=!0,i))try{let e=await i.get(s);if(!e)return;let t=JSON.parse(e);t?.pool?.length&&Date.now()-t.at<wi&&(c=t.pool,l=t.at)}catch{}}return async e=>{let a=Di();if(a)return a;if(await f(),await r.ensureFresh(e),e.aborted)return[];let u=n.state.value;if(!u)throw Error(`cloud session not initialised after ensureFresh`);try{let a=await t.tunnelCheck(u.proxyUrl,u.proxyToken,e),f=Ei(a);if(f.length===0&&!d){d=!0;let i=`internal=${a.internalAddresses.length}, external=${a.externalAddresses.length}`;if(o?.debug(`discover`,`tunnel/check empty pool (proxyUrl=${u.proxyUrl}, ${i}) — forcing session re-mint`),n.patch({proxyTokenExpiresAt:Date.now()-1}),await r.ensureFresh(e),e.aborted)return[];let s=n.state.value;s&&s.proxyToken!==u.proxyToken&&(o?.debug(`discover`,`re-minted session, retrying tunnel/check (proxyUrl=${s.proxyUrl})`),a=await t.tunnelCheck(s.proxyUrl,s.proxyToken,e),f=Ei(a))}if(f.length===0){if(c&&Date.now()-l<wi){let e=c;return c=null,l=0,o?.debug(`discover`,`empty pool — using cached pool fallback (${e.length} endpoints, single-use)`),e}return f}return d=!1,c=f,l=Date.now(),i?.set(s,JSON.stringify({pool:f,at:l})),f}catch(e){let t=dn.isAxiosError(e)?e.response?.status:void 0;if(t===401||t===403)throw n.patch({proxyTokenExpiresAt:Date.now()-1}),c=null,l=0,i?.del(s),e;if(c&&Date.now()-l<wi){let t=c;return c=null,l=0,o?.debug(`discover`,`tunnel/check failed (${Oi(e)}) — using cached pool fallback (${t.length} endpoints, single-use)`),t}throw e}}}var ji=t({default:()=>Mi}),Mi=``+new URL(`camera-preview-C7GT5VHo.png`,import.meta.url).href,Ni=t({default:()=>Pi}),Pi=``+new URL(`logo-512-DLKVOU2S.png`,import.meta.url).href,Fi=t({default:()=>Ii}),Ii=``+new URL(`logo-256-BCQk9H1-.png`,import.meta.url).href,Li=t({default:()=>Ri}),Ri=``+new URL(`logo-512-DLKVOU2S.png`,import.meta.url).href,zi=t({default:()=>Bi}),Bi=``+new URL(`logo-DmEiRk0z.png`,import.meta.url).href,Vi=t({default:()=>Hi}),Hi=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20233.63%20233.63'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:url(%23dark_wine);}.cls-2{fill:url(%23light_wine);}.cls-3{fill:none;stroke:%23000;stroke-miterlimit:10;opacity:0;}.cls-4{fill:%23c5c6c8;}.cls-5{fill:%231a1e21;stroke:%233a3a3a;stroke-width:2px;}.cls-6{fill:%23fff;}%3c/style%3e%3clinearGradient%20id='dark_wine'%20x1='87.36'%20y1='158.67'%20x2='87.36'%20y2='59.85'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23730000'/%3e%3cstop%20offset='0.49'%20stop-color='%23a51733'/%3e%3c/linearGradient%3e%3clinearGradient%20id='light_wine'%20x1='113.06'%20y1='197.59'%20x2='113.06'%20y2='80.87'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23f44a6b'/%3e%3cstop%20offset='0.28'%20stop-color='%23df294c'/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='CameraUI_U'%3e%3cpath%20id='U_Left'%20class='cls-1'%20d='M47.05,119.47s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86A49.46,49.46,0,0,0,99,158.62c9.43-.46,20.55-3.87,29.24-11.86-3.9,2.5-9.87,5.1-15.9,4.77a25.63,25.63,0,0,1-18.38-9.09c-9.39-10.31-7.62-28.35-7.75-32.68-.35-11.42.77-21.92-1.76-36.19-.46-2.64-1.79-5.19-4.55-8-1.83-1.86-8.4-5.75-13.42-5.74-7.31,0-12.95,3.71-15.38,7.84-2,3.41-3.06,4.22-4.23,25.08a217.23,217.23,0,0,0,.22,26.76Z'%20transform='translate(0.5%200.5)'/%3e%3cpath%20id='U_Right'%20class='cls-2'%20d='M144.12,89.6a16.24,16.24,0,0,1,4.06-4.9c4.16-3.4,9-3.67,10.92-3.82a19.7,19.7,0,0,1,12.53,4.58c1.19,1,6.11,5.58,7.13,17.29.73,8.51,3.31,65.93-37,87.14-4.22,2.22-18,9.25-35.66,7.38a62.43,62.43,0,0,1-20.8-6.11,65.8,65.8,0,0,1-18.89-14.23c-20.21-21.67-19.36-57.46-19.36-57.46s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86A49.46,49.46,0,0,0,99,158.62c11.66-.57,25.93-5.64,35-18.32C143.52,126.8,138.46,100.51,144.12,89.6Z'%20transform='translate(0.5%200.5)'/%3e%3c/g%3e%3cg%20id='CameraUI_Lens'%3e%3ccircle%20id='ellipse'%20class='cls-3'%20cx='116.81'%20cy='116.81'%20r='116.31'/%3e%3cg%20id='lens'%3e%3ccircle%20id='lens_bg'%20class='cls-4'%20cx='159.13'%20cy='58.39'%20r='18.66'/%3e%3cpath%20id='lens_inner'%20class='cls-5'%20d='M169.64,58.31a11,11,0,1,1-22,0c0-6.08,4.93-11.86,11-11.86S169.64,52.23,169.64,58.31Z'%20transform='translate(0.5%200.5)'/%3e%3cg%20id='reflections'%3e%3cellipse%20id='dot_1'%20class='cls-6'%20cx='174.36'%20cy='53.69'%20rx='1.84'%20ry='1.42'/%3e%3cellipse%20id='dot_2'%20class='cls-6'%20cx='174.36'%20cy='57.08'%20rx='1.84'%20ry='1.42'/%3e%3cellipse%20id='dot_3'%20class='cls-6'%20cx='174.36'%20cy='60.46'%20rx='1.84'%20ry='1.42'/%3e%3ccircle%20id='dot_4'%20class='cls-6'%20cx='164.09'%20cy='63.77'%20r='1.66'/%3e%3cpath%20id='wide_1'%20class='cls-6'%20d='M156.63,48.9c-1.07-.88-5.52,3.09-6.31,5.43a1.53,1.53,0,0,0,0,1.26c.43.69,1.73.61,2.19.54,2.68-.44,4.71-4.09,4.8-4.37A3.21,3.21,0,0,0,156.63,48.9Z'%20transform='translate(0.5%200.5)'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Ui=t({default:()=>Wi}),Wi=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='0%200%20132.55%20158.35'%20width='132.5500030517578'%20height='158.35000610351562'%3e%3cdefs%3e%3cstyle%3e.cls-2-1{fill:url(%23dark_wine);}.cls-2-2{fill:url(%23light_wine);}.cls-2-3{fill:%23c5c6c8;}.cls-2-4{fill:%231a1e21;stroke:%233a3a3a;stroke-width:2px;}.cls-2-5{fill:%23fff;}%3c/style%3e%3clinearGradient%20id='dark_wine'%20x1='45.89'%20y1='124.26'%20x2='45.89'%20y2='25.44'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23730000'%3e%3c/stop%3e%3cstop%20offset='0.49'%20stop-color='%23a51733'%3e%3c/stop%3e%3c/linearGradient%3e%3clinearGradient%20id='light_wine'%20x1='71.59'%20y1='163.18'%20x2='71.59'%20y2='46.47'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23f44a6b'%3e%3c/stop%3e%3cstop%20offset='0.28'%20stop-color='%23df294c'%3e%3c/stop%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='CameraUI_U'%3e%3cpath%20id='U_Left'%20class='cls-2-1%20svg-elem-1'%20d='M5.58,85.06s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86,49.46,49.46,0,0,0,21.42,3.87c9.43-.46,20.55-3.87,29.24-11.86-3.9,2.5-9.87,5.1-15.9,4.77A25.68,25.68,0,0,1,52.44,108c-9.38-10.31-7.61-28.35-7.74-32.68-.35-11.42.77-21.92-1.76-36.19-.46-2.64-1.79-5.19-4.55-8C36.55,29.33,30,25.43,25,25.44c-7.31,0-12.95,3.72-15.38,7.84-2,3.41-3.07,4.22-4.23,25.08a217.23,217.23,0,0,0,.22,26.76Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3cpath%20id='U_Right'%20class='cls-2-2%20svg-elem-2'%20d='M102.65,55.19a16.24,16.24,0,0,1,4.06-4.9c4.16-3.4,9-3.67,10.92-3.82a19.7,19.7,0,0,1,12.53,4.58c1.19,1,6.11,5.58,7.12,17.29.74,8.51,3.32,65.93-37,87.14-4.22,2.22-18,9.26-35.66,7.38a62.43,62.43,0,0,1-20.8-6.11,65.8,65.8,0,0,1-18.89-14.23C4.73,120.85,5.58,85.06,5.58,85.06s7.58,16,14.12,23.42a45.28,45.28,0,0,0,16.37,11.86,49.46,49.46,0,0,0,21.42,3.87c11.66-.57,25.93-5.64,35-18.32C102.05,92.39,97,66.1,102.65,55.19Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3c/g%3e%3cg%20id='CameraUI_Lens'%3e%3ccircle%20id='lens_bg'%20class='cls-2-3%20svg-elem-3'%20cx='112.11'%20cy='18.66'%20r='18.66'%3e%3c/circle%3e%3cpath%20id='lens_inner'%20class='cls-2-4%20svg-elem-4'%20d='M128.17,23.9a11,11,0,1,1-22,0c0-6.08,4.93-11.86,11-11.86S128.17,17.82,128.17,23.9Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3cg%20id='reflections'%3e%3cellipse%20id='dot_1'%20class='cls-2-5%20svg-elem-5'%20cx='127.34'%20cy='13.96'%20rx='1.84'%20ry='1.42'%3e%3c/ellipse%3e%3cellipse%20id='dot_2'%20class='cls-2-5%20svg-elem-6'%20cx='127.34'%20cy='17.34'%20rx='1.84'%20ry='1.42'%3e%3c/ellipse%3e%3cellipse%20id='dot_3'%20class='cls-2-5%20svg-elem-7'%20cx='127.34'%20cy='20.73'%20rx='1.84'%20ry='1.42'%3e%3c/ellipse%3e%3ccircle%20id='dot_4'%20class='cls-2-5%20svg-elem-8'%20cx='117.07'%20cy='24.04'%20r='1.66'%3e%3c/circle%3e%3cpath%20id='wide_1'%20class='cls-2-5%20svg-elem-9'%20d='M115.16,14.49c-1.07-.88-5.52,3.09-6.31,5.43a1.53,1.53,0,0,0,0,1.26c.43.69,1.73.61,2.18.54,2.69-.44,4.72-4.09,4.81-4.37A3.21,3.21,0,0,0,115.16,14.49Z'%20transform='translate(-5.05%20-4.82)'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Gi=t({default:()=>Ki}),Ki=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20viewBox='-40%20-30%20300%20300'%3e%3cdefs%3e%3cstyle%3e.cls-3-1%20{fill:%20url(%23dark_wine);}%20.cls-3-2%20{fill:%20url(%23light_wine);}%20.cls-3-3%20{fill:%20none;stroke:%20%23000;stroke-miterlimit:%2010;opacity:%200;}%20.cls-3-4%20{fill:%20%23c5c6c8;}%20.cls-3-5%20{fill:%20%231a1e21;stroke:%20%233a3a3a;stroke-width:%202px;}%20.cls-3-6%20{fill:%20%23fff;}%3c/style%3e%3clinearGradient%20id='dark_wine'%20x1='220.57'%20y1='310.8'%20x2='220.57'%20y2='211.98'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23730000'%20/%3e%3cstop%20offset='0.49'%20stop-color='%23a51733'%20/%3e%3c/linearGradient%3e%3clinearGradient%20id='light_wine'%20x1='246.27'%20y1='349.71'%20x2='246.27'%20y2='233'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20stop-color='%23f44a6b'%20/%3e%3cstop%20offset='0.28'%20stop-color='%23df294c'%20/%3e%3c/linearGradient%3e%3c/defs%3e%3cg%20id='CameraUI_U'%20class='cameraLetter'%3e%3cpath%20id='U_Left'%20class='cls-3-1'%20d='M180.26,271.6s7.57,16,14.11,23.42a45.43,45.43,0,0,0,16.38,11.86,49.46,49.46,0,0,0,21.42,3.87c9.42-.46,20.55-3.87,29.24-11.86-3.9,2.5-9.87,5.1-15.9,4.77a25.66,25.66,0,0,1-18.39-9.09c-9.38-10.31-7.61-28.35-7.74-32.68-.35-11.43.77-21.92-1.76-36.2-.47-2.63-1.79-5.18-4.55-8-1.84-1.86-8.41-5.75-13.43-5.74-7.3,0-12.94,3.71-15.38,7.84-2,3.41-3.06,4.22-4.22,25.08a215.27,215.27,0,0,0,.22,26.76Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3cpath%20id='U_Right'%20class='cls-3-2'%20d='M277.33,241.73a16.41,16.41,0,0,1,4.05-4.91c4.17-3.39,9-3.66,10.92-3.81a19.67,19.67,0,0,1,12.53,4.58c1.2,1,6.12,5.58,7.13,17.29.74,8.51,3.31,65.93-37,87.13-4.23,2.22-18,9.26-35.67,7.39a62.35,62.35,0,0,1-20.79-6.11,65.68,65.68,0,0,1-18.9-14.24c-20.2-21.66-19.35-57.45-19.35-57.45s7.57,16,14.11,23.42a45.43,45.43,0,0,0,16.38,11.86,49.46,49.46,0,0,0,21.42,3.87c11.66-.57,25.92-5.64,35-18.33C276.73,278.93,271.67,252.64,277.33,241.73Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3c/g%3e%3cg%20id='CameraUI_Lens'%3e%3cg%20id='lens'%20class='cameraLens'%3e%3ccircle%20id='lens_bg'%20class='cls-3-4'%20cx='159.13'%20cy='58.39'%20r='18.66'%20/%3e%3cpath%20id='lens_inner'%20class='cls-3-5'%20d='M302.85,210.44a11,11,0,1,1-22,0c0-6.08,4.93-11.86,11-11.86S302.85,204.36,302.85,210.44Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3cg%20id='reflections'%3e%3cellipse%20id='dot_1'%20class='cls-3-6'%20cx='174.36'%20cy='53.69'%20rx='1.84'%20ry='1.42'%20/%3e%3cellipse%20id='dot_2'%20class='cls-3-6'%20cx='174.36'%20cy='57.08'%20rx='1.84'%20ry='1.42'%20/%3e%3cellipse%20id='dot_3'%20class='cls-3-6'%20cx='174.36'%20cy='60.46'%20rx='1.84'%20ry='1.42'%20/%3e%3ccircle%20id='dot_4'%20class='cls-3-6'%20cx='164.09'%20cy='63.77'%20r='1.66'%20/%3e%3cpath%20id='wide_1'%20class='cls-3-6'%20d='M289.83,201c-1.07-.88-5.52,3.09-6.3,5.43a1.52,1.52,0,0,0,0,1.26c.43.69,1.72.61,2.18.53,2.68-.43,4.72-4.08,4.8-4.36A3.18,3.18,0,0,0,289.83,201Z'%20transform='translate(-132.71%20-151.63)'%20/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,qi=3e4;function Ji(){let e=Qr(),t=U(()=>e.target.value?.endpoint.url),n=U(()=>e.target.value?.tokens.access),r=U(()=>e.target.value?.tokens.proxySession),i=U(()=>{let t=e.phase.value;return t.kind===`idle`?null:t.instanceId}),a=U(()=>e.phase.value.kind===`idle`),o=U(()=>e.phase.value.kind===`discovering`),s=U(()=>e.phase.value.kind===`online`),c=U(()=>e.phase.value.kind===`needs-auth`),l=U(()=>e.phase.value.kind===`offline`),u=U(()=>{let t=e.signal.value;return t.kind===`connecting`?e.hasBeenOnline.value?`reconnecting`:`connecting`:t.kind===`offline`?`reconnecting`:t.kind===`degraded`?`degraded`:null}),d=U(()=>e.troubleElapsedMs.value>=qi),f=U(()=>{let t=e.phase.value;return t.kind===`offline`?t.nextRetryAt:null}),p=U(()=>{let t=e.phase.value;return t.kind===`offline`?t.lastError:null});return{phase:e.phase,signal:e.signal,target:e.target,endpoint:t,accessToken:n,proxySession:r,instanceId:i,isIdle:a,isDiscovering:o,isOnline:s,isNeedsAuth:c,isOffline:l,bannerMode:u,inTrouble:d,nextRetryAt:f,offlineReason:p,boot:t=>e.boot(t),retry:()=>e.retry(),reset:()=>e.reset()}}var Yi={de:{components:{automation_import:{title:`Automatisierung importieren`,import:`Importieren`,intro:`Verknüpfen Sie die Referenzen dieser Vorlage mit Ihren lokalen Kameras, Plugins und Benutzern. Prüfen Sie vorausgefüllte Werte.`,no_inputs:`Diese Vorlage enthält keine Referenzen zum Verknüpfen. Sie können sie direkt importieren.`,missing_plugins:`Fehlende benötigte Plugins: {plugins}. Installieren Sie sie vor dem Import.`,open_plugin_store:`Plugin-Store öffnen`,select_camera:`Kamera auswählen`,select_plugin:`Plugin auswählen`,no_plugin_for_interface:`Kein installiertes Plugin bietet die Schnittstelle "{interface}".`,select_targets:`Empfänger auswählen`,select_sensor_type:`Sensortyp auswählen`,select_sensor:`Sensor auswählen`,enter_target_id:`Ziel-ID eingeben`},automation_store:{search:`Community-Automatisierungen suchen...`,filter_category:`Kategorie`,filter_all_categories:`Alle Kategorien`,sort_by:`Sortieren nach`,sort_featured:`Empfohlen`,sort_name:`Name`,featured:`Empfohlen`,automations:`Automatisierungen`,refresh:`Aktualisieren`,empty:`Keine Community-Automatisierungen verfügbar`,not_found:`Automatisierung nicht gefunden`,needs:`Benötigt`,import:`Importieren`,required_plugins:`Benötigte Plugins`,missing_plugins_hint:`Einige benötigte Plugins sind nicht installiert. Installieren Sie sie vor dem Import aus dem Plugin-Store.`,required_inputs:`Benötigte Eingaben`,input_camera:`{count} Kamera`,input_plugin:`{count} Plugin`,input_sensor:`{count} Sensor`,input_notification_targets:`Benachrichtigungen`,input_system_target:`{count} Ziel`,input_text:`{count} Wert`,category_notification:`Benachrichtigung`,category_recording:`Aufnahme`,category_presence:`Anwesenheit`,category_detection:`Erkennung`,category_schedule:`Zeitplan`,category_webhook:`Webhook`,category_mqtt:`MQTT`,category_scene:`Szene`,category_utility:`Werkzeug`,category_other:`Sonstiges`},automation_nodes:{category_triggers:`Auslöser`,category_conditions:`Bedingungen`,category_actions:`Aktionen`,category_utilities:`Hilfsmittel`,trigger_detection:`Erkennungsereignis`,trigger_detection_desc:`Wird ausgelöst, wenn eine Kamera Bewegung, eine Person, ein Fahrzeug usw. erkennt.`,event_phase:`Auslösen bei`,event_phase_start:`Ereignisstart`,event_phase_update:`Ereignisaktualisierung`,event_phase_end:`Ereignisende`,event_phase_segment_start:`Segment Start`,event_phase_segment_update:`Segment Update`,event_phase_segment_end:`Segment Ende`,event_phase_placeholder:`Alle Phasen`,event_phase_multi_hint:`Wählen Sie aus, auf welche Event-Phasen getriggert wird. Leer = alle Phasen.`,detection_labels:`Objektfilter`,detection_labels_placeholder:`Jede Erkennung`,detection_labels_hint:`Nur auslösen wenn diese Objekte erkannt werden. Leer lassen für jede Erkennung.`,label_motion:`Bewegung`,label_person:`Person`,label_vehicle:`Fahrzeug`,label_animal:`Tier`,label_package:`Paket`,label_audio:`Audio`,confidence_hint:`Mindestvertrauen für Objekterkennung. Auf 0 setzen zum Überspringen.`,audio_labels:`Audio-Ereignisfilter`,audio_labels_placeholder:`Jedes Audio-Ereignis`,audio_labels_hint:`Nur bei bestimmten Audio-Ereignissen auslösen. Leer lassen für alle.`,audio_doorbell:`Türklingel`,audio_glass_break:`Glasbruch`,audio_scream:`Schrei`,audio_gunshot:`Schuss`,audio_dog_bark:`Hundebellen`,audio_baby_cry:`Baby weint`,audio_alarm:`Alarm`,audio_car_alarm:`Autoalarm`,audio_smoke_alarm:`Rauchmelder`,audio_siren:`Sirene`,audio_speaking:`Sprache`,audio_cat:`Katze`,face_filter:`Gesichtsfilter`,face_filter_placeholder:`Name hinzufügen`,face_filter_hint:`Nur für bestimmte Personen auslösen. Funktioniert am besten mit "Ereignisende".`,license_plate_filter:`Kennzeichenfilter`,license_plate_filter_placeholder:`Kennzeichen hinzufügen`,license_plate_filter_hint:`Nur für bestimmte Kennzeichen auslösen.`,trigger_sensor:`Sensoränderung`,trigger_sensor_desc:`Wird ausgelöst, wenn sich eine Sensoreigenschaft ändert.`,sensor_properties:`Eigenschaften`,sensor_properties_placeholder:`Alle Eigenschaften`,sensor_properties_hint:`Wählen Sie, welche Eigenschaften überwacht werden. Leer = jede Änderung.`,snapshot_force_new:`Neuen Snapshot erzwingen`,snapshot_force_new_hint:`Cache umgehen und ein frisches Bild von der Kamera aufnehmen.`,condition_logic:`Verknüpfung`,condition_add:`Bedingung hinzufügen`,logic_and:`UND`,logic_or:`ODER`,trigger_schedule:`Zeitplan`,trigger_schedule_desc:`Wird nach einem Zeitplan ausgelöst.`,cron_expression:`Cron-Ausdruck`,cron_presets:`Vorlagen`,cron_every_minute:`Jede Minute`,cron_every_5_min:`Alle 5 Min.`,cron_every_hour:`Jede Stunde`,cron_daily_midnight:`Täglich (Mitternacht)`,cron_daily_6am:`Täglich (6 Uhr)`,trigger_webhook:`Webhook`,trigger_mqtt:`MQTT-Nachricht`,trigger_mqtt_desc:`Wird ausgelöst, wenn eine Nachricht auf einem MQTT-Topic eingeht. Benötigt die MQTT-Verbindung in den Einstellungen.`,mqtt_topic:`Topic`,mqtt_topic_hint:`MQTT-Topic, das abonniert wird. Wildcards + und # werden unterstützt.`,mqtt_match_mode:`Abgleich`,mqtt_match_any:`Jede Nachricht`,mqtt_match_exact:`Exakter Payload`,mqtt_match_json:`JSON-Wert`,mqtt_payload_filter:`Payload`,mqtt_payload_filter_hint:`Nur auslösen, wenn der Payload exakt diesem Text entspricht. Für JSON-Geräte (Shelly, Tasmota, …) stattdessen JSON-Wert verwenden.`,mqtt_json_path:`JSON-Pfad`,mqtt_json_path_hint:`Punkt-Pfad in den JSON-Payload, z. B. "output" oder "params.switch:0.output".`,mqtt_json_value:`Ist gleich`,mqtt_json_value_hint:`Nur auslösen, wenn der Wert am Pfad diesem entspricht. Leer lassen, um bei vorhandenem Pfad auszulösen.`,action_mqtt:`MQTT Publish`,action_mqtt_desc:`Veröffentlicht eine Nachricht auf einem MQTT-Topic. Benötigt die MQTT-Verbindung in den Einstellungen.`,mqtt_payload:`Payload`,mqtt_retain:`Retain`,mqtt_retain_hint:`Der Broker speichert die Nachricht und liefert sie an neue Abonnenten aus.`,trigger_webhook_desc:`Wird durch eine externe HTTP-Anfrage ausgelöst.`,trigger_system:`Systemereignis`,trigger_system_desc:`Wird durch ein Systemereignis ausgelöst.`,system_category:`Kategorie`,system_event_type:`Ereignistyp`,system_event_placeholder:`Ereignistyp auswählen`,system_cat_system:`System`,system_cat_plugin:`Plugin`,system_cat_camera:`Kamera`,system_evt_started:`System gestartet`,system_evt_shutdown:`System heruntergefahren`,system_evt_camera_added:`Kamera hinzugefügt`,system_evt_camera_removed:`Kamera entfernt`,system_evt_plugin_started:`Plugin gestartet`,system_evt_plugin_stopped:`Plugin gestoppt`,system_evt_plugin_error:`Plugin-Fehler`,system_evt_camera_connected:`Kamera verbunden`,system_evt_camera_disconnected:`Kamera getrennt`,system_evt_fw_started:`FrameWorker gestartet`,system_evt_fw_stopped:`FrameWorker gestoppt`,system_evt_property_changed:`Eigenschaft geändert`,system_evt_sensor_added:`Sensor hinzugefügt`,system_evt_sensor_removed:`Sensor entfernt`,camera:`Kamera`,camera_placeholder:`Kamera auswählen`,trigger_manual:`Manuell`,trigger_manual_desc:`Wird manuell durch Klicken auf Ausführen ausgelöst.`,condition_ifelse:`Wenn / Sonst`,condition_ifelse_desc:`Verzweigung basierend auf einer Bedingung.`,condition_switch:`Verzweigung`,condition_switch_desc:`Verzweigung basierend auf mehreren Werten.`,condition_sensorstate:`Sensorstatus`,condition_sensorstate_desc:`Aktuellen Status eines Sensors prüfen.`,action_snapshot:`Schnappschuss`,action_snapshot_desc:`Einen Schnappschuss von einer Kamera aufnehmen.`,action_recording:`Aufnahme umschalten`,action_recording_desc:`Aufnahme einer Kamera starten oder stoppen.`,action_sensor:`Sensor steuern`,action_sensor_desc:`Einen Sensorwert setzen.`,action_notification:`Benachrichtigung senden`,action_notification_desc:`Eine Push-Benachrichtigung senden.`,action_notification_control:`Benachrichtigungen an/aus`,action_notification_control_desc:`Push-Benachrichtigungen an- oder ausschalten, für alle oder einen Nutzer.`,notification_control_mode:`Benachrichtigungen`,notification_control_enable:`An`,notification_control_disable:`Aus`,notification_control_scope:`Gilt für`,notification_control_scope_global:`Alle`,notification_control_scope_user:`Einen Nutzer`,notification_control_scope_global_hint:`Schaltet Push für alle Nutzer stumm oder wieder an.`,notification_control_scope_user_hint:`Schaltet Push nur für den gewählten Nutzer stumm oder wieder an.`,notification_control_user:`Nutzer`,notification_control_user_placeholder:`Nutzer auswählen`,notification_title:`Titel`,notification_title_placeholder:`Titel der Benachrichtigung`,notification_body:`Text`,notification_body_placeholder:`Text der Benachrichtigung`,notification_severity:`Wichtigkeit`,severity_info:`Info`,severity_warning:`Warnung`,severity_error:`Fehler`,severity_critical:`Kritisch (umgeht Nicht stören)`,notification_image:`Bild`,notification_image_placeholder:`{'{{snapshot}}'} oder https://…`,notification_image_hint:`Bild-Variable verwenden, URL einfügen oder Datei hochladen. Leer lassen für reinen Text.`,notification_deep_link:`Deep Link`,notification_targets:`Zielgeräte`,notification_targets_hint:`Geräte, die diese Benachrichtigung erhalten. Leer lassen, um an alle registrierten Geräte zu senden.`,notification_targets_placeholder:`Alle Geräte`,action_http:`HTTP-Anfrage`,action_http_desc:`Eine HTTP-Anfrage an eine externe URL senden.`,action_delay:`Verzögerung`,action_delay_desc:`Für eine bestimmte Dauer warten.`,action_variable:`Variable setzen`,action_variable_desc:`Einen Wert zur späteren Verwendung speichern.`,action_plugin:`Plugin-Aufruf`,action_plugin_desc:`Ein Erkennungs- oder Analyse-Plugin auf ein Bild anwenden.`,action_image_input:`Bild-Eingabe`,action_image_input_desc:`Ein Bild von einer URL oder Variable laden.`,action_output:`Ausgabe`,action_output_desc:`Ergebnisse nach Ausführung anzeigen.`,image_source:`Bildquelle`,image_source_placeholder:`https://example.com/bild.jpg oder {'{{variable}}'}`,image_upload:`Bild hochladen`,image_source_hint:`URL, base64-Daten oder Datei hochladen.`,image_variable_hint:`Das Bild wird als base64 in dieser Variable gespeichert.`,image_width:`Breite`,image_height:`Höhe`,image_auto:`0 = auto`,image_resize_hint:`0 für Originalgröße. Beide 0 = kein Resize.`,image_output_format:`Ausgabeformat`,variable:`Variable`,output_label:`Label`,output_label_placeholder:`z.B. Dauer`,output_add:`Ausgabe-Variable hinzufügen`,output_hint:`Diese Werte werden nach manueller Ausführung angezeigt.`,available_variables:`Variablen`,variable_operator:`Operator`,alias:`Alias`,alias_placeholder:`myNode`,alias_hint:`Variablen mit Prefix versehen, z.B. cam1.plugin.result`,repeat:`Wiederholen`,repeat_count:`Wiederholungen`,repeat_concurrency:`Parallele Aufrufe pro Durchlauf`,repeat_concurrency_hint:`Anzahl gleichzeitiger Aufrufe pro Durchlauf. Total = Durchläufe × Parallelität.`,repeat_delay:`Pause zwischen Durchläufen`,plugin_settings:`Plugin-Einstellungen`,plugin_apply_settings:`Übernehmen`,plugin_interface:`Plugin-Schnittstelle`,plugin_interface_placeholder:`Schnittstelle wählen`,plugin_name:`Plugin`,plugin_name_placeholder:`Plugin wählen`,plugin_no_plugins:`Keine Plugins für diese Schnittstelle verfügbar`,plugin_method:`Methode`,plugin_method_placeholder:`Methode wählen`,method_test_object:`Objekte erkennen`,method_test_face:`Gesichter erkennen`,method_test_plate:`Kennzeichen erkennen`,method_test_classifier:`Bild klassifizieren`,method_test_motion:`Bewegung erkennen`,method_test_audio:`Audio-Ereignisse erkennen`,method_test_clip:`CLIP-Embedding generieren`,method_text_embedding:`Text-Embedding`,method_detect_objects:`Objekte erkennen (Raw Frame)`,method_detect_faces:`Gesichter erkennen (Raw Frame)`,method_detect_plates:`Kennzeichen erkennen (Raw Frame)`,method_detect_classifications:`Klassifizieren (Raw Frame)`,method_detect_motion:`Bewegung erkennen (Raw Frame)`,method_detect_clip:`CLIP Embedding (Raw Frame)`,param_frame:`Frame-Daten`,param_image:`Bilddaten`,param_audio:`Audiodaten`,param_image_hint:`Verwenden Sie {'{{snapshot}}'} von einem vorherigen Capture-Snapshot-Knoten.`,param_video:`Videodaten`,param_text:`Text`,confidence:`Konfidenzschwelle`,webhook_url:`Webhook-URL`,webhook_url_hint:`Sende einen POST-Request an diese URL um die Automatisierung auszulösen.`,webhook_secret:`HMAC-Secret`,webhook_secret_hint:`Sende einen X-Webhook-Signature Header mit HMAC-SHA256(body, secret) zur Authentifizierung.`,webhook_secret_save_hint:`Speichern Sie die Automatisierung, um ein HMAC-Secret zu generieren.`,webhook_secret_copied:`Kopiert`,condition_variable:`Variable`,condition_variable_placeholder:`Variable auswählen oder eingeben`,condition_variable_hint:`Vordefinierte Variable auswählen oder eigenen Ausdruck eingeben.`,condition_source_info:`Verbunden mit: {source}`,condition_no_source:`Verbinden Sie einen Knoten um verfügbare Variablen zu sehen.`,sensor_type_label:`Sensortyp`,sensor_type_placeholder:`Sensortyp auswählen`,sensor_instance:`Sensor`,sensor_instance_placeholder:`Sensor auswählen`,sensor_property_placeholder:`Eigenschaft`,sensor_property_detected:`Erkannt`,sensor_property_detections:`Erkennungen`,sensor_property_blocked:`Blockiert`,sensor_property_lastTriggered:`Zuletzt ausgelöst`,sensor_property_labels:`Labels`,sensor_property_decibels:`Dezibel`,sensor_property_current:`Aktueller Wert`,sensor_property_on:`An`,sensor_property_brightness:`Helligkeit`,sensor_property_active:`Aktiv`,sensor_property_volume:`Lautstärke`,sensor_property_currentState:`Aktueller Zustand`,sensor_property_targetState:`Zielzustand`,sensor_property_obstructionDetected:`Hindernis erkannt`,sensor_property_position:`Position`,sensor_property_moving:`In Bewegung`,sensor_property_presets:`Voreinstellungen`,sensor_property_velocity:`Geschwindigkeit`,sensor_property_targetPreset:`Ziel-Voreinstellung`,sensor_property_relativeMove:`Relative Bewegung`,sensor_property_home:`Home-Position`,sensor_property_ring:`Klingeln`,sensor_property_level:`Batteriestand`,sensor_property_charging:`Ladezustand`,sensor_property_low:`Batterie schwach`,mqtt_recent_topics:`Letzte Topics`,validation_no_trigger:`Der Flow hat keinen Trigger.`,validation_unreachable:`Dieser Node ist mit keinem Trigger verbunden.`,validation_missing_fields:`Erforderliche Einstellungen fehlen.`,validation_no_cases:`Der Switch hat keine Fälle.`,validation_invalid_cron:`Der Cron-Ausdruck braucht 5 Felder.`,validation_invalid_variable_name:`Variablennamen dürfen nur Buchstaben, Ziffern, Unterstriche und Punkte enthalten.`,validation_unknown_variable:`Unbekannte Variable {name}.`,variable_event_type:`Ereignistyp`,variable_event_types:`Alle Ereignistypen`,variable_event_label:`Erkanntes Label`,variable_event_confidence:`Konfidenz`,variable_event_state:`Ereignisstatus`,variable_event_camera:`Kamera-ID`,variable_event_faces:`Erkannte Gesichter`,variable_event_plates:`Kennzeichen`,variable_event_id:`Ereignis-ID`,variable_sensor_value:`Sensorwert`,variable_sensor_previous_value:`Vorheriger Wert`,variable_sensor_property:`Geänderte Eigenschaft`,variable_sensor_type:`Sensortyp`,variable_sensor_camera:`Kamera-ID`,variable_webhook_body:`Webhook-Body`,variable_webhook_data:`Webhook-Daten (Base64)`,variable_webhook_method:`HTTP-Methode`,variable_webhook_headers:`Header (JSON)`,variable_mqtt_topic:`Topic`,variable_mqtt_payload:`Payload`,variable_geo_event:`Geofence-Ereignis`,variable_geo_user:`Benutzer`,variable_geo_zone:`Zone`,variable_geo_lat:`Breitengrad`,variable_geo_lon:`Längengrad`,variable_geo_distance:`Entfernung (m)`,variable_system_event_type:`Ereignistyp`,variable_system_camera_id:`Kamera-ID`,variable_system_camera_name:`Kameraname`,variable_system_plugin_name:`Plugin-Name`,variable_system_plugin_id:`Plugin-ID`,variable_system_status:`Status`,variable_system_property:`Eigenschaft`,variable_system_sensor_id:`Sensor-ID`,variable_system_sensor_type:`Sensortyp`,variable_system_sensor_name:`Sensorname`,variable_snapshot:`Schnappschuss (Base64)`,variable_snapshot_data_uri:`Schnappschuss (Data-URI)`,variable_http_status:`HTTP-Status`,variable_http_body:`Antwort-Body`,variable_http_base64:`Antwort (Data-URI)`,variable_http_json:`Antwort-JSON`,variable_plugin_detected:`Erkannt`,variable_plugin_labels:`Labels`,variable_plugin_detections:`Erkennungen (JSON)`,variable_plugin_result:`Ergebnis (JSON)`,variable_plugin_duration:`Dauer (ms)`,variable_camera_id:`Kamera-ID`,variable_camera_name:`Kameraname`,variable_repeat_index:`Wiederholungsindex (ab 0)`,variable_repeat_iteration:`Wiederholung (ab 1)`,variable_repeat_total:`Wiederholungen gesamt`,variable_repeat_total_calls:`Aufrufe gesamt`,variable_repeat_elapsed_ms:`Dauer (ms)`,variable_repeat_elapsed_sec:`Dauer (s)`,variable_previous_success:`Vorherige Aktion erfolgreich`,variable_previous_result:`Ergebnis der vorherigen Aktion`,variable_value_active:`Aktiv`,variable_value_ended:`Beendet`,variable_value_enter:`Betreten`,variable_value_leave:`Verlassen`,lock_state_secured:`Verriegelt`,lock_state_unsecured:`Entriegelt`,lock_state_unknown:`Unbekannt`,garage_state_open:`Offen`,garage_state_closed:`Geschlossen`,garage_state_opening:`Öffnet`,garage_state_closing:`Schließt`,garage_state_stopped:`Gestoppt`,securitySystem_state_stay_arm:`Zuhause (Stay)`,securitySystem_state_away_arm:`Abwesend`,securitySystem_state_night_arm:`Nacht`,securitySystem_state_disarmed:`Deaktiviert`,securitySystem_state_alarm_triggered:`Alarm ausgelöst`,battery_state_not_chargeable:`Nicht aufladbar`,battery_state_not_charging:`Lädt nicht`,battery_state_charging:`Lädt`,battery_state_full:`Voll geladen`,http_url:`URL`,http_method:`Methode`,http_body:`Body`,http_headers:`Header`,http_header_name:`Name`,http_header_value:`Wert`,http_add_header:`Header hinzufügen`,switch_cases:`Fälle`,switch_cases_placeholder:`Fallwert hinzufügen`,switch_cases_hint:`Enter drücken um einen Fall hinzuzufügen. Jeder Fall erzeugt einen separaten Ausgang.`,switch_cases_suggested:`Vorgeschlagene Werte:`,condition_operator:`Operator`,operator_equals:`gleich`,operator_not_equals:`ungleich`,operator_greater:`größer als`,operator_less:`kleiner als`,operator_greater_equal:`größer oder gleich`,operator_less_equal:`kleiner oder gleich`,operator_contains:`enthält`,operator_starts_with:`beginnt mit`,operator_ends_with:`endet mit`,condition_value:`Wert`,condition_value_placeholder:`z.B. 0.8, true, person`,sensor_value_state:`Zustand`,sensor_value_variable:`Variable verwenden`,sensor_value_fixed:`Fester Wert`,sensor_value_variable_placeholder:`Variable unten einfügen`,variable_name:`Variablenname`,variable_name_hint:`Ein eindeutiger Name um diesen Wert später zu referenzieren.`,variable_value_placeholder:`Wert auswählen oder eingeben`,variable_value_hint:`Wert vom verbundenen Knoten auswählen oder eigenen Wert eingeben.`,delay_duration:`Dauer`,delay_unit:`Einheit`,unit_seconds:`Sekunden`,unit_minutes:`Minuten`,unit_hours:`Stunden`,condition_time:`Zeitbereich`,condition_time_desc:`Prüft ob die aktuelle Uhrzeit in einem Bereich liegt.`,condition_time_info:`Ergibt true wenn die aktuelle Uhrzeit im angegebenen Bereich liegt. Unterstützt Nachtbereiche (z.B. 22:00 - 06:00).`,condition_time_start:`Startzeit`,condition_time_end:`Endzeit`,condition_time_days:`Tage`,condition_time_days_all:`Alle Tage`,day_monday:`Montag`,day_tuesday:`Dienstag`,day_wednesday:`Mittwoch`,day_thursday:`Donnerstag`,day_friday:`Freitag`,day_saturday:`Samstag`,day_sunday:`Sonntag`,action_camera_control:`Kamera-Steuerung`,action_camera_control_desc:`Kamera-Einstellungen wie Snooze, Erkennungsempfindlichkeit etc. ändern.`,camera_select:`Kamera auswählen`,camera_control_properties:`Zu ändernde Eigenschaften`,camera_control_properties_hint:`Aktivieren Sie die Eigenschaften, die Sie ändern möchten, und setzen Sie ihre Werte.`,camera_prop_snooze:`Erkennung pausieren`,camera_prop_disabled:`Kamera deaktivieren`,camera_prop_recording:`Aufnahme aktivieren`,camera_prop_recording_mode:`Aufnahmemodus`,camera_prop_recording_prebuffer:`Aufnahme-Vorpuffer (s)`,camera_prop_ptz_autotrack:`PTZ Autotrack`,camera_prop_object_confidence:`Objekt-Konfidenz`,camera_prop_suppress_static:`Unbewegte Objekte ignorieren`,camera_prop_face_confidence:`Gesichts-Konfidenz`,camera_prop_plate_confidence:`Kennzeichen-Konfidenz`,camera_prop_plate_min_length:`Minimale Kennzeichenlänge`,camera_prop_hq_snapshots:`HQ-Schnappschüsse`,camera_prop_motion_timeout:`Bewegungs Timeout (s)`,camera_prop_motion_resolution:`Bewegungs-Auflösung`,camera_prop_audio_timeout:`Audio-Timeout (s)`,camera_prop_audio_min_decibels:`Audio Min. Dezibel`,camera_prop_audio_confidence:`Audio-Konfidenz`,camera_prop_sensor_timeout:`Sensor-Timeout (s)`,camera_prop_cascade_detection:`Kaskaden-Erkennung`,camera_prop_cascade_timeout:`Kaskaden-Timeout (s)`,camera_prop_fps:`FrameWorker FPS`,camera_prop_auto_refresh:`Snapshot Auto-Refresh`,camera_prop_snapshot_interval:`Snapshot-Intervall (s)`,camera_prop_snapshot_ttl:`Snapshot-TTL (s)`,trigger_geofence:`Geofence`,trigger_geofence_desc:`Wird ausgelöst wenn ein Benutzer eine geografische Zone betritt oder verlässt.`,geofence_zone_name:`Zonenname`,geofence_zone_name_placeholder:`z.B. Zuhause`,geofence_latitude:`Breitengrad`,geofence_longitude:`Längengrad`,geofence_radius:`Radius (Meter)`,geofence_event:`Auslösen bei`,geofence_event_enter:`Zone betreten`,geofence_event_leave:`Zone verlassen`,geofence_event_both:`Betreten & Verlassen`,geofence_users:`Überwachte Benutzer`,geofence_users_placeholder:`Benutzer auswählen`,geofence_users_hint:`Nur für diese Benutzer auslösen. Jeder getrackte Benutzer bekommt unten sein eigenes Secret — ein Reporter kann nur für einen Benutzer melden, dessen Secret er hat.`,geofence_url:`Location URL`,geofence_url_hint:`POST mit {'{'} lat: number, lon: number, user: string, timestamp: number {'}'} als JSON Body senden. timestamp = aktuelle Unix-Zeit in ms; wird mitsigniert und darf max. 5 Minuten alt sein (Replay-Schutz).`,geofence_secret:`HMAC-Secrets (pro Benutzer)`,geofence_secret_hint:`Jeder Benutzer signiert mit seinem eigenen Secret: X-Webhook-Signature = HMAC-SHA256(body, Secret des Benutzers).`,geofence_secret_save_hint:`Oben die zu trackenden Benutzer hinzufügen, dann die Automation speichern — es wird die Location URL und ein Secret pro Benutzer generiert.`,geofence_use_my_location:`Mein Standort`,geofence_map_hint:`Marker ziehen um den Zonenmittelpunkt zu setzen.`,geofence_location_error:`Standort nicht verfügbar. Bitte den Zonenmittelpunkt manuell auf der Karte setzen.`},camera_events:{no_events:`Keine aktuellen Ereignisse`,title:`Letzte Ereignisse`},camera_options:{overview:`Übersicht`,overview_status:`Status`,overview_sources:`Quellen`,overview_last_motion:`Letzte Bewegung`,overview_motion_active:`Aktiv`,overview_no_motion:`Keine Bewegung erkannt`,accessories:`Zubehör`,advanced:`Erweitert`,audio_state:`Audiozustand`,battery_state:`Batteriezustand`,branding:`Branding`,categories:`Kategorien`,category_audio_detection:`Geräuscherkennung`,category_camera_controller:`Kamera Controller`,category_controls:`Steuerungen`,category_hub:`Hub`,category_motion_detection:`Bewegungserkennung`,category_object_detection:`Objekterkennung`,category_ptz:`PTZ`,category_sensors:`Sensoren`,chip_audioDetection:`Geräuscherkennung`,chip_cameraController:`Kamera`,chip_hub:`Hub`,chip_more:`Mehr`,chip_motionDetection:`Bewegungserkennung`,chip_objectDetection:`Objekterkennung`,chip_plugins:`Plugins`,chip_ptz:`PTZ`,chip_controls:`Steuerungen`,chip_sensors:`Sensoren`,chip_detection:`Erkennung`,chip_core:`Kern`,chip_accessories:`Zubehör`,detection:`Erkennung`,provides:`Bietet`,sensor_types:`Sensor-Typen`,sensors:`Sensoren`,sensor_type_motion:`Bewegung`,sensor_type_object:`Objekt`,sensor_type_objectAssist:`Objekt-Assistenz`,sensor_type_audio:`Geräusch`,sensor_type_face:`Gesicht`,sensor_type_licensePlate:`Kennzeichen`,sensor_type_classifier:`Klassifizierer`,sensor_type_ptz:`PTZ`,sensor_type_light:`Licht`,sensor_type_siren:`Sirene`,sensor_type_doorbell:`Türklingel`,sensor_type_contact:`Kontakt`,sensor_type_battery:`Batterie`,sensor_type_switch:`Schalter`,sensor_type_lock:`Schloss`,sensor_type_temperature:`Temperatur`,sensor_type_humidity:`Feuchtigkeit`,sensor_type_occupancy:`Belegung`,sensor_type_smoke:`Rauchmelder`,sensor_type_leak:`Wassersensor`,sensor_type_garage:`Garagentor`,sensor_type_clip:`CLIP`,sensor_type_securitySystem:`Alarmanlage`,doorbell_state:`Türklingelzustand`,enabled_extension:`Aktivierte Erweiterung`,frame_worker:`Frame Worker`,general:`Allgemein`,interface:`Interface`,light_state:`Lichtzustand`,manage_plugins:`Plugins verwalten`,model:`Modell`,more_plugins:`Mehr Plugins`,motion_detection:`Bewegungserkennung`,motion_state:`Bewegungszustand`,name:`Name`,native:`Nativ`,no_accessories:`Kein Zubehör verfügbar`,no_config:`Keine Konfiguration verfügbar`,no_sensors:`Keine Sensoren verfügbar`,sensor_display_name:`Sensor Name`,no_plugins_available:`Keine Plugins verfügbar`,no_plugins_enabled:`Keine Plugins aktiviert`,no_plugins_found:`Keine Plugins gefunden`,object_detection:`Objekterkennung`,object_assist:`Objekt-Assistenz`,object_state:`Objektzustand`,plugin:`Plugin`,ptz_autotrack:`Autotrack`,plugin_settings:`Plugin Einstellungen`,sensor_settings:`Sensor Einstellungen`,virtual_sensors:`Virtuelle Sensoren`,virtual_sensors_hint:`Virtuelle Sensoren bilden externe Geräte und Zustände in camera.ui ab. Sie werden über den Übersicht-Tab oder durch Automatisierungen gesteuert.`,virtual_sensors_empty:`Noch keine virtuellen Sensoren an dieser Kamera.`,virtual_sensor_create:`Virtuellen Sensor erstellen`,virtual_sensor_created:`Virtueller Sensor erstellt`,virtual_sensor_delete:`Virtuellen Sensor löschen`,virtual_sensor_delete_confirm:`Sind Sie sicher, dass Sie diesen virtuellen Sensor löschen möchten? Automatisierungen, die ihn verwenden, funktionieren dann nicht mehr.`,source_delete:`Source entfernen`,source_delete_confirm:`Source "{name}" entfernen? Die Änderung greift erst beim Speichern.`,virtual_sensor_name_placeholder:`z. B. Haustür`,general_hint:`Änderungen hier betreffen nur die Darstellung der Kamera in camera.ui. Wird die Kamera deaktiviert, stoppen alle Streams und Erkennungen, bis sie wieder aktiviert wird.`,branding_hint:`Rein informativ und ohne Auswirkung auf die Funktionalität. Praktisch, um den Überblick über Ihre Hardware zu behalten.`,interface_hint:`Betrifft Wiedergabe und Darstellung, nicht die Kamera selbst. Passen Sie den Streaming-Modus an, wenn Livevideo auf Ihren Geräten nicht zuverlässig startet.`,detection_hint:`Bestimmt, wie empfindlich diese Kamera auf Ereignisse reagiert. Höhere Konfidenz und längere Timeouts bedeuten weniger, dafür zuverlässigere Ereignisse.`,ptz_autotrack_hint:`Wenn aktiviert, schwenkt die Kamera automatisch, um ausgewählte Objekttypen im Bild zu halten.`,recording:`Aufnahme`,recording_hint:`Steuert, ob und wie diese Kamera aufgezeichnet wird. Die Aufnahme übernimmt ein installiertes NVR-Plugin.`,recording_requires:`Kein NVR-Plugin zugewiesen. Die Einstellungen greifen, sobald eins installiert ist.`,zones_hint:`Ohne Zonen löst das gesamte Bild Ereignisse aus. Zonen beschränken Erkennungen auf relevante Bereiche, ignorierte Zonen verwerfen Erkennungen darin und Linien melden Objekte, die sie überqueren.`,snapshot_hint:`Schnappschüsse werden für Vorschauen und Benachrichtigungen verwendet. Kürzere Intervalle halten sie aktuell, erhöhen aber die Last auf der Kamera.`,frame_worker_hint:`Der FrameWorker analysiert den Videostream für Erkennungen. Ändern Sie diese Werte nur, wenn Erkennungen verzögert sind oder die Systemlast zu hoch ist.`,zones_empty:`Noch keine Zonen oder Linien an dieser Kamera.`,zone_entry_zone:`Zone`,zone_entry_privacy_mask:`Ignorierte Zone`,zone_entry_line:`Linienüberquerung`,zone_entry_delete:`Löschen`,zone_entry_delete_confirm:`Sind Sie sicher, dass Sie diesen Eintrag löschen möchten?`,recordings:`Aufnahmeeinstellungen`,settings:`Einstellungen`,siren_state:`Sirenenzustand`,source:`Quelle`,snapshot:`Snapshot`,streaming_mode:`Streaming Modus`,unknown:`Unbekannt`,zones:`Zonen`,detected:`Erkannt`,active:`Aktiv`,ringing:`Klingelt`,open:`Offen`,closed:`Geschlossen`},camera_table:{cameras:`Kameras`,name:`Name`,idle:`Inaktiv`,offline:`Offline`,online:`Online`,connecting:`Verbindet`,partial:`Teilweise`,error:`Fehler`,status:`Status`},battery_info:{charging:`Lädt...`,fully_charged:`Voll geladen`,not_chargeable:`Nicht ladbar`,critically_low:`Kritisch niedrig`,low:`Niedrig`,ready:`Bereit`},charts:{no_data:`Keine Daten verfügbar`},contact_sensor:{open:`Offen`,closed:`Geschlossen`},occupancy_sensor:{occupied:`Belegt`,empty:`Leer`},smoke_sensor:{detected:`Rauch erkannt`,clear:`Kein Rauch`},leak_sensor:{detected:`Leck erkannt`,clear:`Kein Leck`},garage_control:{open:`Offen`,closed:`Geschlossen`,opening:`Öffnet`,closing:`Schließt`,stopped:`Gestoppt`},detection:{detected:`Erkannt`,idle:`Inaktiv`},detection_interface:{audio_detected:`Audio erkannt`,audio_not_detected:`Audio nicht erkannt`,audio_required:`Audio Datei erforderlich`,detect:`Erkennen`,drop_or_select_audio_to_detect:`Audio ablegen oder auswählen, um Geräusche zu erkennen`,drop_or_select_image_for_semantic_search:`Bild ablegen oder auswählen für die semantische Suche`,drop_or_select_image_to_classify:`Bild ablegen oder auswählen, um es zu klassifizieren`,drop_or_select_image_to_detect_faces:`Bild ablegen oder auswählen, um Gesichter zu erkennen`,drop_or_select_image_to_detect_license_plates:`Bild ablegen oder auswählen, um Kennzeichen zu erkennen`,drop_or_select_image_to_detect_objects:`Bild ablegen oder auswählen, um Objekte zu erkennen`,drop_or_select_video_to_detect_motion:`Video ablegen oder auswählen, um Bewegung zu erkennen`,file_size_error:`Dateigröße zu groß`,image_required:`Bild erforderlich`,interface_config:`Interface-Konfiguration`,no_interface_config:`Keine Interface-Konfiguration verfügbar`,only_one_audio_allowed:`Es ist nur ein Audio erlaubt`,only_one_image_allowed:`Es ist nur ein Bild erlaubt`,only_one_video_allowed:`Es ist nur ein Video erlaubt`,video_required:`Video erforderlich`},notification_interface:{template:`Benachrichtigungsvorlage`,title:`Titel`,title_required:`Titel ist erforderlich`,subtitle:`Untertitel`,body:`Text`,severity:`Dringlichkeit`,severity_info:`Info`,severity_warn:`Warnung`,severity_error:`Fehler`,severity_critical:`Kritisch (DND-Bypass)`,tag:`Tag`,image_url:`Bild-URL`,deep_link:`Deep Link`,data:`Daten`,data_key:`Schlüssel`,data_value:`Wert`,add_data:`Feld hinzufügen`,targets:`Ziele`,targets_hint:`Wählen Sie, welche Geräte diesen Test erhalten. Leer lassen, um an alle registrierten Geräte zu senden.`,all_devices:`Alle Geräte`,no_devices:`Keine Geräte für diesen Notifier registriert`,settings:`Notifier-Einstellungen`,send_test:`Test senden`,sent:`Testbenachrichtigung gesendet`},clip_interface:{enter_query:`Beschreiben Sie, was Sie sehen...`,search:`Suchen`},doorbell_trigger:{ringing:`Klingelt!`,ready:`Bereit`},dialog:{open:`Öffnen`,components:{new_camera:{add_camera:`Kamera hinzufügen`,add_camera_description:`Fügen Sie eine Kamera hinzu, die mit Ihrem lokalen Netzwerk verbunden ist`,camera:`Kamera`,discover_cameras:`Kameras suchen`,discover_cameras_description:`Suchen Sie nach Kameras in Ihrem lokalen Netzwerk`,no_cameras_found:`Keine Kameras gefunden`,no_schema_available:`Kein Verbindungsformular für diesen Gerätetyp verfügbar`,protocol_info:`Informationen zum gewählten Protokoll`,scan_again:`Erneut scannen`,search_camera:`Kamera suchen`,source:`Quelle`,test_source:`Kameraquelle testen`,title:`Neue Kamera`,unknown:`Unbekannt`}},message:{confirm_clear_log:`Sind Sie sicher, dass Sie das Protokoll löschen möchten?`,confirm_remove:`Sind Sie sicher, dass Sie diese Kamera entfernen möchten?`,confirm_remove_selected:`Sind Sie sicher, dass Sie {count} Kamera(s) entfernen möchten?`,confirm_remove_layout:`Sind Sie sicher, dass Sie dieses Layout entfernen möchten?`,confirm_reset_server:`Sind Sie sicher, dass Sie den Server zurücksetzen möchten?`,confirm_restart_go2rtc:`Sind Sie sicher, dass Sie Go2RTC neu starten möchten?`,confirm_restart_plugin:`Sind Sie sicher, dass Sie dieses Plugin neu starten möchten?`,confirm_restart_server:`Sind Sie sicher, dass Sie den Server neu starten möchten?`,confirm_restore:`Sind Sie sicher, dass Sie dieses Backup wiederherstellen möchten?`,confirm_delete_backup:`Sind Sie sicher, dass Sie "{filename}" löschen möchten?`,confirm_uninstall_plugin:`Sind Sie sicher, dass Sie dieses Plugin deinstallieren möchten?`,uninstall_remove_storage:`Gespeicherte Daten ebenfalls löschen`,uninstall_remove_storage_hint:`Entfernt dauerhaft die Einstellungen, Datenbanken und Caches dieses Plugins.`,compatibility_engine:`Benötigt {engine} {required} (installiert: {current})`,confirm_unregister_server:`Sind Sie sicher, dass Sie den Server deregistrieren möchten?`,confirm_enable_cloud:`Remote-Zugriff auf diesen Server über die camera.ui Cloud erlauben?`,confirm_disable_cloud_remote:`Das Deaktivieren beendet Ihre aktuelle Remote-Sitzung. Sie werden zur Cloud-Anmeldung weitergeleitet. Fortfahren?`,confirm_disable_cloud_local:`Das Deaktivieren trennt Remote-Sitzungen, die über die Cloud laufen. Lokale Verbindungen bleiben bestehen. Fortfahren?`,intercom_info:`Sprechen Sie gleichzeitig mit allen Kameras in dieser Ansicht, die eine Sprechanlage haben`},title:{config:`Konfiguration`,confirm:`Bestätigen`,details:`Details`,create_new_user:`Neuer Benutzer`,edit_dnd:`DND bearbeiten`,create_room:`Neuer Raum`,edit_layout:`Layout bearbeiten`,edit_user:`Benutzer bearbeiten`,edit_view:`Ansicht bearbeiten`,information:`Information`,install:`Installieren`,install_version:`Version installieren`,intercom:`Gegensprechanlage`,log:`Protokoll`,new_dnd:`Neue DND`,new_view:`Neue Ansicht`,new_zone:`Neue Zone`,plugin_config:`Plugin-Konfiguration`,preview:`Vorschau`,remove_layout:`Layout entfernen`,reset_server:`Server zurücksetzen`,restart:`Neustart`,result:`Ergebnis`,search_plugin:`Plugin suchen`,update:`Aktualisieren`,unknown:`Unbekannt`,unregister_server:`Server deregistrieren`,zone:`Zone`,zone_editor:`Zonen-Editor`}},form:{button:{add:`Hinzufügen`,add_source:`Quelle hinzufügen`,create_room:`Neuen Raum erstellen`,add_view:`Ansicht hinzufügen`,apply:`Übernehmen`,back:`Zurück`,biometric_login:`Mit Face ID anmelden`,cancel:`Abbrechen`,connect_cloudflare:`Cloudflare verbinden`,copy:`Kopieren`,copy_url:`URL kopieren`,disable:`Deaktivieren`,disconnect:`Trennen`,open_in_browser:`Im Browser öffnen`,test_connection_success:`Erfolgreich`,test_connection_error:`Fehler`,enable:`Aktivieren`,change_view:`Ansicht wechseln`,clear:`Löschen`,close:`Schließen`,collapse:`Einklappen`,continue:`Fortfahren`,create_new_user:`Neuen Benutzer erstellen`,download:`Herunterladen`,download_backup_archive:`Backup-Archiv herunterladen`,edit:`Bearbeiten`,edit_zones:`Zonen bearbeiten`,expand:`Ausklappen`,finish:`Fertig`,go_to_message:`Zur Nachricht gehen`,home:`Startseite`,install:`Installieren`,login:`Anmelden`,logout:`Abmelden`,logout_all:`Alle abmelden`,manage:`Verwalten`,mark_as_read:`Als gelesen markieren`,next:`Weiter`,previous:`Zurück`,register_server:`Server registrieren`,reconnect_server:`Neu verbinden`,reload:`Neu laden`,remove:`Entfernen`,reset:`Zurücksetzen`,restart:`Neustarten`,restore_backup_archive:`Backup-Archiv wiederherstellen`,restore_and_restart:`Wiederherstellen und neustarten`,run_now:`Jetzt ausführen`,save:`Speichern`,save_and_restart:`Speichern und neustarten`,test_connection:`Verbindung testen`,update_profile:`Profil aktualisieren`,change_password:`Passwort ändern`,update:`Aktualisieren`,uninstall:`Deinstallieren`,unregister:`Deregistrieren`,unregister_server:`Server deregistrieren`},error:{no_cameras_selected:`Keine Kameras ausgewählt`,no_view_selected:`Keine Ansicht ausgewählt`},hint:{aspect_ratio:`Zwingt das Seitenverhältnis der Kamera auf den gewählten Wert`,aspect_ratio_custom:`Eigenes Verhältnis ({ratio}:1) angewendet`,aspect_ratio_invalid:`Verhältnis als Breite:Höhe angeben, z.B. 16:9 oder 21:9`,aspect_ratio_required:`Verhältnis eingeben, z.B. 16:9`,audio_codec:`Der erkannte Audio Codec für diesen Stream`,auto_refresh:`Aktualisiert den Snapshot automatisch in regelmäßigen Abständen`,cache_time:`Zeit in Sekunden, die der Cache für die Kamerabilder verwendet`,camera_name:`Eindeutiger Name zur Identifizierung dieser Kamera im System`,room:`Diese Kamera einem Raum zur Gruppierung zuweisen`,room_select:`Raum auswählen oder neuen erstellen`,confidence:`Die benötigte Konfidenz für die Erkennung eines Objekts`,connections:`Anzahl der aktiven Verbindungen, die diesen Stream derzeit nutzen`,cloud_access_enabled_info:`Ermöglicht den Cloud-Zugriff für diesen Server`,cloudflare_info:`Ermöglicht den Zugriff auf den Server über Cloudflare`,cloudflare_mode_info:`Stellt einen öffentlichen Hostnamen über das Cloudflare-Netzwerk bereit.`,cloudflare_url_info:`Temporäre öffentliche URL — ändert sich bei jedem Neustart.`,cloudflare_variant_quick:`Ein schneller, temporärer Tunnel ohne Cloudflare-Konto.`,cloudflare_variant_token:`Eigene Domain mit einem Tunnel-Token aus dem Cloudflare-Dashboard.`,cloudflare_variant_managed:`Eigene Domain via OAuth-Login. Tunnel und DNS-Eintrag werden automatisch eingerichtet.`,cloudflare_hostname_info:`Die Domain muss in Ihrem Cloudflare-Konto bereits als Zone eingerichtet sein.`,cloudflare_token_info:`Aus dem Cloudflare-Dashboard.`,cloudflare_tunnel_id_info:`Kennung des aktuell aktiven Tunnels.`,cloudflare_token_already_set:`Token ist gesetzt. Leer lassen zum Behalten, oder neuen Token tippen zum Ersetzen.`,cloudflare_managed_idle:`Auf Verbinden klicken, um diesen Server mit Ihrem Cloudflare-Konto zu authorisieren.`,cloudflare_managed_awaiting_login:`Öffnen Sie die URL unten im Browser und authorisieren Sie die Zone für "{hostname}".`,cloudflare_managed_creating_tunnel:`Tunnel wird erstellt...`,cloudflare_managed_setting_dns:`DNS-Eintrag für {hostname} wird angelegt...`,cloudflare_managed_running:`Tunnel läuft.`,custom_domain_info:`Ermöglicht den Zugriff auf den Server über eine benutzerdefinierte Domain`,custom_domain_mode_info:`Verwenden Sie Ihre eigene Domain, die per DNS oder Reverse-Proxy auf den HTTPS-Port dieses Servers zeigt.`,default_settings_page:`Die Standardseite, die beim Öffnen der Einstellungen angezeigt wird`,disable_camera:`Deaktiviert die Kamera und stoppt alle Aktivitäten. Die Kamera wird weiterhin angezeigt`,snooze_camera:`Pausiert alle Erkennungen. Streams und Snapshots bleiben aktiv.`,suppress_static:`Objekte, die über Events hinweg unbewegt bleiben – z.B. ein geparktes Auto – lösen keine neuen Objekt-Events aus, bis sie sich wieder bewegen.`,ptz_autotrack:`Kamera folgt automatisch erkannten Objekten über Pan/Tilt.`,ptz_autotrack_requires:`Erfordert eine PTZ-fähige Kamera mit zugewiesenem PTZ-Plugin.`,recording_enabled:`Diese Kamera aufzeichnen.`,recording_mode:`Continuous zeichnet durchgehend auf, event nur rund um Erkennungen, adhoc nur bei manuellem Start.`,recording_prebuffer:`Sekunden Video, die vor einem Ereignis aufbewahrt werden.`,recording_sources:`Stream-Qualitäten, die aufgezeichnet werden. Die niedrigste wird für schnelles Spulen genutzt.`,ptz_autotrack_target_labels:`Welchen Objekttypen die Kamera folgen soll.`,ptz_autotrack_min_confidence:`Nur Erkennungen mit mindestens dieser Konfidenz verfolgen.`,ptz_autotrack_trigger_dead_zone:`Das Ziel muss diese Zone um die Bildmitte verlassen, bevor sich die Kamera in Bewegung setzt. Größer = ruhigere Kamera, kleiner = genaueres Zentrieren.`,ptz_autotrack_tracking_speed:`Wie energisch die Kamera nachzieht, um das Ziel zu zentrieren. Höher = schneller, niedriger = sanfter. Nur für Kameras, die sich über kontinuierliche Bewegung steuern lassen, andere wählen ihre Geschwindigkeit selbst.`,ptz_autotrack_lead_ms:`Wie weit die Kamera einem bewegten Ziel vorausblickt. Der Standardwert deckt die Zeit ab, die die Kamera zum Bewegen und Einschwingen braucht. Kleiner, wenn die Kamera überschießt, größer für schnelle Ziele. 0 schaltet die Vorhersage ab.`,ptz_autotrack_pan_rate:`Kalibriert, wie weit ein Bewegungsschritt bei deiner Kamera schwenkt. Kleiner, wenn die Kamera vor dem Ziel stoppt, größer, wenn sie überschießt.`,ptz_autotrack_return_home:`Kamera zur Home-Position zurückfahren, wenn länger kein Ziel erkannt wird.`,ptz_autotrack_home_wait:`Wartezeit ohne Ziel, bevor die Kamera zur Home-Position zurückfährt.`,frameworker_fps:`Die Anzahl der Frames pro Sekunde, welche für den Frame Worker verwendet werden. '0' verwendet die native Framerate`,hq_snapshots:`Event-Thumbnails aus dem höchstauflösenden Stream erzeugen.`,motion_resolution:`Auflösungsvoreinstellung für Bewegungserkennung (low: schnell, medium: ausgewogen, high: genau)`,hot_mode:`Lässt die Verbindung zur Kamera aktiv, um die Verzögerung zu minimieren`,motion_timeout:`Zeit in Sekunden nach dem letzten Bewegungs-Trigger, bis das Bewegungsereignis endet (min. 10s)`,audio_timeout:`Zeit in Sekunden nach dem letzten Audio-Trigger, bis das Audioereignis endet (min. 10s)`,audio_min_decibels:`Audio-Frames unterhalb dieses Lautstärkepegels (in dBFS) werden übersprungen. -100 = Stille, 0 = Maximum`,audio_confidence:`Erkannte Geräusche unterhalb dieser Konfidenz werden für Ereignisse und Automationen ignoriert`,face_confidence:`Gesichter unterhalb dieser Konfidenz werden für Ereignisse und Automationen ignoriert`,plate_confidence:`Kennzeichen-Lesungen unterhalb dieser Texterkennungs-Konfidenz werden ignoriert`,plate_min_length:`Kürzere Kennzeichen-Lesungen werden als Fragmente verworfen`,sensor_timeout:`Zeit in Sekunden nach dem letzten Sensor-Trigger, bis das Ereignis endet (min. 10s)`,sensor_triggers:`Wählen Sie Sensoren aus, die ebenfalls die Erkennungskaskade auslösen sollen (z.B. ein Kontaktsensor an einer Tür löst die Objekterkennung aus)`,sensor_triggers_placeholder:`Sensor-Trigger auswählen...`,onvif_url:`ONVIF-kompatible URL zur Integration mit anderen Systemen`,navbar_stay_collapsed:`Lässt die Navbar eingeklappt, auch auf größeren Bildschirmen`,record_logs:`Zeichnet App-Protokolle auf, damit Sie sie auf der Konsolen-Seite ansehen und zur Fehlersuche teilen können`,debug_verbose:`Aktiviert ausführliche Debug-Level-Protokolle`,pip_source:`Wählen Sie eine Kameraquelle für die Bild-in-Bild-Anzeige`,port_forward_info:`Ermöglicht das Port-Forwarding für diesen Server`,refresh_interval:`Intervall in Sekunden für das automatische Aktualisieren des Snapshots`,rtsp_url:`RTSP-URL für direkten Zugriff auf diesen Stream von externen Anwendungen`,preload:`Vorladen der Kameraquelle, um die Verzögerung zu minimieren`,muted:`Entfernt die Audiospur dieser Quelle`,show_bottombar_on_mobile:`Zeigt die untere Leiste auf Mobilgeräten`,show_camera_events:`Zeigt die Kameraereignisse in der Kameraansicht`,source_name:`Eindeutiger Bezeichner für diese Kameraquelle`,source_protocol:`Der Protokolltyp der Streamquelle`,source_role:`Bestimmt die Verwendung dieser Quelle (Hoch/Mittel/Niedrig-Auflösung für Streaming, Snapshot für Bilder)`,source_url:`Fügen Sie die komplette Stream-URL inklusive Protokoll ein, z. B. rtsp://user:pass{'@'}192.168.1.50:554/stream`,source_detected_protocol:`Erkanntes Protokoll: {protocol}`,source_urls:`Fügen Sie mehrere URLs hinzu, damit go2rtc Codecs kombinieren kann (z. B. Video aus der einen, Audio aus der anderen) für optimale Wiedergabe`,streaming_mode:`Stream Transport Protokoll für die Benutzeroberfläche. In 'auto' wird der beste Modus automatisch ausgewählt`,streaming_source:`Kameraquelle für den Stream — wählen Sie hohe, mittlere oder niedrige Auflösung`,system_preference:`Systemeinstellung für die Benutzeroberfläche`,type_and_enter:`Text eingeben und mit Enter hinzufügen`,use_for_snapshot:`Verwendet diese Quelle für Snapshots (wenn sonst keine geeignete Quelle existiert)`,video_codec:`Der erkannte Video Codec für diesen Stream`},label:{aspect_ratio:`Seitenverhältnis`,aspect_ratio_custom:`Eigenes Verhältnis`,audio_codec:`Audio Codec`,auto_refresh:`Automatische Aktualisierung`,cache_time:`Cache Zeit`,camera:`Kamera`,cameras:`Kameras`,changelog:`Änderungsprotokoll`,labels:`Labels`,cloudflare:`Cloudflare`,cloudflare_url:`Cloudflare URL`,cloudflare_variant:`Cloudflare Variante`,cloudflare_variant_quick:`Quick Tunnel`,cloudflare_variant_token:`Named Tunnel (Token)`,cloudflare_variant_managed:`Named Tunnel (OAuth)`,hostname:`Hostname`,tunnel_id:`Tunnel ID`,tunnel_token:`Tunnel Token`,color:`Farbe`,confidence:`Objekt-Konfidenz`,connections:`Verbindungen`,stream_status:`Stream-Status`,custom_domain:`Benutzerdefinierte Domain`,default_settings_page:`Standard Einstellungsseite`,disabled:`Deaktiviert`,snooze:`Erkennung pausieren`,suppress_static:`Statische Objekte ignorieren`,ptz_autotrack:`PTZ Autotrack`,ptz_autotrack_enabled:`Autotrack aktivieren`,recording_enabled:`Aufnahme aktivieren`,recording_mode:`Aufnahmemodus`,recording_prebuffer:`Vorpuffer`,recording_sources:`Aufgezeichnete Streams`,ptz_autotrack_target_labels:`Ziel-Labels`,ptz_autotrack_min_confidence:`Minimale Konfidenz`,ptz_autotrack_trigger_dead_zone:`Totzone`,ptz_autotrack_tracking_speed:`Verfolgungsgeschwindigkeit`,ptz_autotrack_lead_ms:`Bewegungsvorhersage`,ptz_autotrack_pan_rate:`Schwenkraten-Kalibrierung`,ptz_autotrack_return_home:`Zur Home-Position zurückkehren`,ptz_autotrack_home_wait:`Wartezeit vor Rückkehr`,disconnected:`Getrennt`,domain:`Domain`,enabled:`Aktiviert`,external_port:`Externer Port`,external_url:`Externe URL`,firmware_version:`Firmware Version`,fps:`FPS`,hardware_version:`Hardware Version`,hot_mode:`Hot Modus`,hq_snapshots:`HQ-Event-Thumbnails`,language:`Sprache`,language_system:`Systemstandard`,layout_name:`Layoutname`,manufacturer:`Hersteller`,model:`Modell`,motion_timeout:`Bewegungs Timeout`,audio_timeout:`Audio-Timeout`,audio_min_decibels:`Min. Lautstärke (dBFS)`,audio_confidence:`Audio-Konfidenz`,face_confidence:`Gesichts-Konfidenz`,plate_confidence:`Kennzeichen-Konfidenz`,plate_min_length:`Min. Kennzeichenlänge`,sensor_timeout:`Sensor-Timeout`,sensor_triggers:`Sensor-Trigger`,name:`Name`,room:`Raum`,room_default:`Standard`,navbar_stay_collapsed:`Navbar eingeklappt lassen`,record_logs:`Protokolle aufzeichnen`,debug_verbose:`Ausführliches Logging`,new_password:`Neues Passwort`,new_password_confirm:`Neues Passwort bestätigen`,none:`Keine`,onvif_url:`ONVIF URL`,password:`Passwort`,pip_source:`Bild-in-Bild Quelle`,port_forward:`Port-Weiterleitung`,preload:`Vorladen`,muted:`Audio stummschalten`,refresh_interval:`Aktualisierungsintervall`,remember_me:`Erinnere mich`,motion_resolution:`Bewegungsauflösung`,role:`Rolle`,rtsp_url:`RTSP-URL`,select_all:`Alle auswählen`,select_cameras:`Kameras auswählen`,serial_number:`Seriennummer`,server_addresses:`Server-Adressen`,server_version:`Server-Version`,settings:`Einstellungen`,show_bottombar_on_mobile:`Bottombar auf Mobilgeräten anzeigen`,show_camera_events:`Kameraereignisse anzeigen`,source:`Quelle`,source_name:`Quellenname`,source_role:`Quellenrolle`,sources:`Quellen`,streaming_mode:`Streaming Modus`,streaming_source:`Streaming Quelle`,support_url:`Support URL`,system_preference:`Systemeinstellung`,theme:`Design`,token:`Token`,type:`Typ`,unknown:`Unbekannt`,url:`URL`,use_for_snapshot:`Für Snapshot verwenden`,username:`Benutzername`,version:`Version`,video_codec:`Video Codec`,views:`Ansichten`,zone_name:`Zonenname`},placeholder:{search:`Suchen...`},tooltip:{activity_mode_activity:`Aktivität`,activity_mode_always_on:`Immer An`,activity_mode_standby:`Standby`,clear:`Säubern`,console:`Konsole`,contain:`Enthalten`,cancel_selection:`Auswahl abbrechen`,copied:`Kopiert`,select_cameras:`Kameras auswählen`,select_all:`Alle Kameras auswählen`,deselect_all:`Alle Kameras abwählen`,snooze_selected:`Erkennung für ausgewählte Kameras pausieren`,unsnooze_selected:`Erkennung für ausgewählte Kameras fortsetzen`,recording_on_selected:`Aufnahme für ausgewählte Kameras aktivieren`,recording_off_selected:`Aufnahme für ausgewählte Kameras deaktivieren`,copy_all:`Alles kopieren`,delete:`Löschen`,delete_selected:`Ausgewählte Kameras entfernen`,disable_selected:`Ausgewählte Kameras deaktivieren`,enable_selected:`Ausgewählte Kameras aktivieren`,disable_drag:`Ziehen deaktivieren`,disabled:`Deaktiviert`,download:`Herunterladen`,edit:`Bearbeiten`,enable_drag:`Ziehen aktivieren`,view_default:`Alle Kameras anzeigen`,view_grouped:`Nach Raum gruppieren`,exclude:`Ausschließen`,finish:`Fertig`,fullscreen_off:`Vollbildmodus ausschalten`,fullscreen_on:`Vollbildmodus einschalten`,hide_timeline:`Zeitleiste ausblenden`,include:`Einschließen`,intercom:`Gegensprechanlage`,intersect:`Schneiden`,logout:`Abmelden`,mode:`Modus`,mute:`Stumm`,new:`Neu`,nvr_settings:`NVR-Einstellungen`,privacy_mask:`Ignorierte Zone`,public_mask:`Erkennungszone`,resolution:`Auflösung`,restart:`Neustarten`,show_timeline:`Zeitleiste anzeigen`,show_pip:`PiP anzeigen`,hide_pip:`PiP ausblenden`,source_role_auto:`Auto`,source_role_low:`Niedrige Auflösung`,source_role_mid:`Mittlere Auflösung`,source_role_high:`Hohe Auflösung`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unbekannt`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unbekannt`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,undo:`Rückgängig`,unmute:`Stummschalten aufheben`,update_available:`Aktualisierung verfügbar`,zoom_in:`Vergrößern`,zoom_out:`Verkleinern`}},notification_menu:{clear_notifications:`Benachrichtigungen löschen`,mark_all_read:`Alle als gelesen markieren`,mark_read:`Als gelesen markieren`,delete:`Löschen`,debug:`Debug`,error:`Fehler`,info:`Info`,disabled:`Benachrichtigungen sind deaktiviert`,disabled_hint:`Aktivieren Sie Benachrichtigungen, um hier Hinweise zu erhalten.`,open_settings:`Einstellungen öffnen`,no_notifications:`Keine Benachrichtigungen`,notifications:`Benachrichtigungen`,short_days:`Tg.`,short_hours:`Std.`,short_minutes:`Min.`,short_months:`M.`,short_weeks:`Wo.`,short_years:`J.`,verbose:`Ausführlich`,warn:`Warnung`},options_sidebar:{segment_tab_default:`Standard`,segment_tab_overview:`Übersicht`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Einstellungen`,segment_tab_sources:`Quellen`},player:{activity_mode_activity:`Aktivität`,activity_mode_always_on:`Immer An`,activity_mode_standby:`Standby`,add_shortcut_info:`Klicken Sie auf einen beliebigen Ort im Video, um einen Shortcut hinzuzufügen`,ai_descriptions:`KI-Beschreibungen`,capture_snapshot:`Snapshot aufnehmen`,copied:`Kopiert`,detections:`Erkennungen`,edit_shortcuts:`Shortcuts bearbeiten`,expand:`Vergrößern`,fast_forward:`30s vor`,hide_pip:`Bild-in-Bild ausblenden`,finish_editing:`Bearbeitung beenden`,hide_timeline:`Zeitleiste ausblenden`,live:`Live`,license_required:`Lizenz erforderlich`,log:`Protokoll`,no_recording:`Keine Aufnahmen`,open_camera:`Kamera öffnen`,options:`Optionen`,ptz:`PTZ`,ptz_go_to_home:`Zurück zur Startposition`,rewind:`30s zurück`,reconnecting:`Wiederverbinden...`,refresh_snapshot:`Snapshot aktualisieren`,settings:`Einstellungen`,share_camera:`Kamera teilen`,shortcuts:`Shortcuts`,show_pip:`Bild-in-Bild anzeigen`,show_timeline:`Zeitleiste anzeigen`,speed:`Geschwindigkeit`,toggle_pip:`PiP ein-/ausblenden`,shrink:`Verkleinern`,source_role_auto:`Auto`,source_role_low:`Niedrige Auflösung`,source_role_mid:`Mittlere Auflösung`,source_role_high:`Hohe Auflösung`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unbekannt`,stream_info:`Stream-Informationen`,stream_paused:`Stream pausiert, um Ressourcen zu schonen. Klicken Sie auf den Stream, um fortzufahren.`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unbekannt`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,timelapse:`Zeitraffer`,timelapse_min_duration:`Zeitraffer benötigt mindestens 1 Stunde`,timelapse_off:`Zeitraffer: Aus`,export:`Export`,intercom:`Gegensprechanlage`,export_selection:`Auswahl exportieren`,zones:`Zonen`,heatmap:`Heatmap`,more:`Mehr`,zoom_in:`Zoom rein`,zoom_out:`Zoom raus`},lock:{status_locked:`Verriegelt`,status_unlocked:`Entriegelt`,status_unknown:`Unbekannt`,status_locking:`Verriegeln...`,status_unlocking:`Entriegeln...`},security_system:{alarm_triggered:`Alarm ausgelöst!`,reset:`Zurücksetzen`,off:`Aus`,home:`Zuhause`,away:`Abwesend`,night:`Nacht`,status_home_armed:`Zuhause (Scharf)`,status_away_armed:`Abwesend (Scharf)`,status_night_armed:`Nacht (Scharf)`,status_disarmed:`Entschärft`,status_alarm:`ALARM!`,status_unknown:`Unbekannt`,status_arming:`Wird scharf...`,status_disarming:`Wird entschärft...`},oauth:{dialog_title:`Cloud-Konto verbinden`,intro:`Dieses Plugin verbindet sich mit {idp}, um Folgendes zu autorisieren:`,enter_code_at:`Öffnen Sie die Seite unten und geben Sie den Code ein:`,waiting:`Warte auf Autorisierung…`,connect:`Verbinden`,disconnect:`Trennen`,connected_as:`Verbunden als {email}`,tooltip_connect:`Cloud-Konto verbinden`,tooltip_connected:`Verbunden als {email}`,tooltip_authorizing:`Autorisierung läuft — zum Anzeigen klicken`,tooltip_error:`Letzter Autorisierungsversuch fehlgeschlagen`,error_access_denied:`Autorisierung wurde abgelehnt`,error_expired:`Der Code ist abgelaufen — bitte erneut versuchen`,error_generic:`Autorisierung fehlgeschlagen`},plugin_card:{author:`Autor`,compat_engine:`Erfordert {engine} {required} (aktuell {current})`,compat_platform:`Auf diesem System nicht unterstützt — erfordert {requirement}`,installed:`Installiert`,no_description:`Keine Beschreibung verfügbar`,restart:`Neustart`,restart_required:`Neustart erforderlich, um die installierte Version zu übernehmen`,select_version:`Version auswählen`,settings:`Einstellungen`,start:`Start`,status_disabled:`Deaktiviert`,status_error:`Fehler`,status_incompatible:`Inkompatibel mit diesem System — weise es einem kompatiblen Worker zu`,status_ready:`Bereit`,status_started:`Gestartet`,status_starting:`Startet`,status_stopped:`Gestoppt`,status_stopping:`Stoppt`,status_unknown:`Unbekannt`,stop:`Stop`,uninstall:`Deinstallieren`,update:`Aktualisieren`,update_available:`Aktualisierung verfügbar`,updated:`Aktualisiert`,version:`Version`},plugin_search:{bugs:`Fehler melden`,compatible_system:`Läuft auf diesem System`,incompatible_system:`Nicht kompatibel mit diesem System`,incompatible_worker_hint:`Sie können es trotzdem installieren und auf einem kompatiblen Worker ausführen — nach der Installation unter Workers zuweisen.`,incompatible:`Inkompatibel`,category_ai_model:`KI-Modell`,category_automation:`Automatisierung`,category_camera_source:`Kameraquelle`,category_detection:`Erkennung`,category_notification:`Benachrichtigung`,category_other:`Sonstiges`,category_recording:`Aufnahme`,category_utility:`Werkzeug`,downloads_per_week:`{count} / Woche`,featured:`Empfohlen`,filter_all_categories:`Alle Kategorien`,filter_all_trust:`Alle Quellen`,filter_category:`Kategorie`,filter_trust:`Vertrauen`,homepage:`Webseite`,in_progress:`In Bearbeitung`,plugins:`Plugins`,refresh:`Aktualisieren`,repository:`Repository`,screenshots:`Screenshots`,sort_by:`Sortieren nach`,sort_downloads:`Meiste Downloads`,sort_name:`Name`,sort_updated:`Zuletzt aktualisiert`,trust_community:`Community`,trust_community_description:`Community-Plugin — nicht vom camera.ui-Team geprüft. Installation auf eigenes Ermessen.`,trust_official:`Offiziell`,trust_official_description:`Offizielles Plugin, veröffentlicht unter dem {'@'}camera.ui-Scope.`,trust_verified:`Verifiziert`,trust_verified_description:`Community-Plugin, das vom camera.ui-Team geprüft und empfohlen wurde.`,updated_ago:`aktualisiert {time}`},plugin_types:{hub:`Hub`,cameraController:`Kamera-Controller`,motionDetection:`Bewegungserkennung`,objectDetection:`Objekterkennung`,audioDetection:`Geräuscherkennung`,ptz:`PTZ`},process_table:{empty:`Keine Daten verfügbar`,status_error:`Fehler`,status_ready:`Bereit`,status_started:`Gestartet`,status_starting:`Startet`,status_stopped:`Gestoppt`,status_stopping:`Stoppt`,status_unknown:`Unbekannt`,system:`System`,title_cpu:`CPU`,title_cpu_load:`CPU-Auslastung`,title_memory:`Speicher`,title_memory_load:`Speicherauslastung`,title_name:`Name`,title_pid:`PID`},timeline:{fine_scrubbing:`Feinsteuerung`,live:`Live`,today:`Heute`,yesterday:`Gestern`},toast:{backup_downloaded:`Backup-Datei erfolgreich heruntergeladen`,backup_restored:`Backup-Datei erfolgreich wiederhergestellt`,backup_scheduler_saved:`Backup-Zeitplan aktualisiert`,backup_created:`Backup erfolgreich erstellt`,backup_deleted:`Backup gelöscht`,camera_added:`Kamera erfolgreich hinzugefügt`,camera_add_failed:`Kamera konnte nicht hinzugefügt werden`,camera_removed:`Kamera erfolgreich entfernt`,camera_updated:`Kamera erfolgreich aktualisiert`,cameras_removed:`Kameras erfolgreich entfernt`,config_deleted:`Konfiguration erfolgreich gelöscht`,config_go2rtc_deleted:`Go2RTC-Konfiguration erfolgreich gelöscht`,config_go2rtc_updated:`Go2RTC-Konfiguration erfolgreich aktualisiert`,config_updated:`Konfiguration erfolgreich aktualisiert`,copied:`Kopiert`,copy_failed:`Kopieren fehlgeschlagen`,error_see_console:`Fehler, siehe Konsole`,frame_worker_restarted:`Frame Worker erfolgreich neugestartet`,go2rtc_restarted:`Go2RTC erfolgreich neugestartet`,log_cleared:`Protokoll erfolgreich gelöscht`,no_version_selected:`Keine Version ausgewählt`,plugin_config_updated:`Plugin-Konfiguration erfolgreich aktualisiert`,plugin_disabled:`Plugin erfolgreich deaktiviert`,plugin_enabled:`Plugin erfolgreich aktiviert`,plugin_installed:`Plugin erfolgreich installiert`,plugin_removed:`Plugin erfolgreich entfernt`,plugin_request_sent:`Plugin-Anfrage erfolgreich gesendet`,plugin_restarted:`Plugin erfolgreich neugestartet`,plugin_settings_updated:`Plugin-Einstellungen erfolgreich aktualisiert`,plugin_started:`Plugin erfolgreich gestartet`,plugin_stopped:`Plugin erfolgreich gestoppt`,plugins_removed:`Plugins erfolgreich entfernt`,password_updated:`Passwort erfolgreich aktualisiert`,profile_updated:`Profil erfolgreich aktualisiert`,probe_failed:`Quelle konnte nicht geprüft werden — bitte erneut versuchen`,remote_access_not_available:`Remote-Zugriff ist nicht verfügbar`,pair_expired:`Pairing-Code abgelaufen — bitte erneut versuchen`,pair_denied:`Pairing wurde abgelehnt`,pair_init_failed:`Pairing konnte nicht gestartet werden`,remote_registered:`Server erfolgreich registriert`,remote_unregistered:`Server erfolgreich deregistriert`,remote_updated:`Remote-Zugriff erfolgreich aktualisiert`,mqtt_updated:`MQTT-Einstellungen erfolgreich aktualisiert`,mqtt_test_success:`Verbindung zum MQTT-Broker erfolgreich`,mqtt_test_failed:`Verbindung fehlgeschlagen: {message}`,remote_test_success:`Verbindungstest erfolgreich`,remote_test_failed:`Verbindungstest fehlgeschlagen: {message}`,server_name_updated:`Servername erfolgreich aktualisiert`,server_resetted:`Server erfolgreich zurückgesetzt`,server_restarted:`Server erfolgreich neugestartet`,server_updated:`Server erfolgreich aktualisiert`,something_wrong_happened:`Etwas ist schief gelaufen`,title_error:`Fehler`,title_info:`Info`,title_success:`Erfolgreich`,title_warn:`Warnung`,update_available_title:`Update verfügbar`,update_installed_detail:`Neue Version von camera.ui ist bereit.`,update_now:`Jetzt aktualisieren`,update_applying:`Update wird angewendet…`,user_added:`Benutzer erfolgreich hinzugefügt`,user_logged_out:`Benutzer erfolgreich abgemeldet`,user_removed:`Benutzer erfolgreich entfernt`,user_updated:`Benutzer erfolgreich aktualisiert`,users_removed:`Benutzer erfolgreich entfernt`,view_added:`Ansicht erfolgreich hinzugefügt`,validation_failed:`Validierung fehlgeschlagen. Überprüfen Sie die Konsole für weitere Informationen`,view_removed:`Ansicht erfolgreich entfernt`,view_updated:`Ansicht erfolgreich aktualisiert`,views_removed:`Ansichten erfolgreich entfernt`,zone_updated:`Zone erfolgreich aktualisiert`,zone_removed:`Zone erfolgreich entfernt`,line_updated:`Linie erfolgreich aktualisiert`},upload_files:{drop_or_select_file:`Datei ablegen oder auswählen`,only_one_file_allowed:`Es ist nur eine Datei erlaubt`},instance_switcher:{manage:`Instanzen verwalten`,not_logged_in:`Nicht eingeloggt`,session_expired:`Sitzung abgelaufen`,switching_to:`Wechsle zu`,go_back:`Zurück`},user_menu:{account:`Konto`,admin_panel:`Adminpanel`,config:`Konfiguration`,console:`Konsole`,logs:`Protokolle`,logout:`Abmelden`,plugins:`Plugins`,reload:`Neu laden`},user_table:{title_address:`Adresse`,title_device:`Gerät`,title_kind:`Typ`,title_username:`Benutzername`,you:`Sie`},view_box:{available_streams:`Verfügbare Streams`,no_cameras:`Keine Kameras verfügbar`},zone_editor:{base_labels:`Basis`,edit_zones:`Zonen bearbeiten`,zone:`Zone`,tab_zones:`Zonen`,tab_lines:`Linien`}},connection:{offline:`Offline`,reconnected:`Verbunden`,reconnecting:`Verbinde...`,degraded:`Synchronisiere...`,restarting:`Starte neu...`,retry:`Erneut versuchen`,connecting_remote:`Verbinde mit Ihrem Server...`,unreachable:`Server nicht erreichbar`,pick_server:`Anderen Server wählen`},restore:{title:`Backup wiederherstellen`,phase_uploading:`Backup wird hochgeladen...`,phase_restoring:`Wird wiederhergestellt...`,phase_restarting:`Server wird neu gestartet...`,dont_close:`Bitte schließen Sie dieses Fenster nicht.`},instances:{local:`Lokal`,unreachable:`{name} ist von diesem Gerät aus nicht erreichbar`,switch_timeout:`Wechsel zu {name} hat zu lange gedauert`,two_factor_title:`Zwei-Faktor-Authentifizierung`,two_factor_hint:`Das Konto auf "{name}" ist mit Zwei-Faktor-Authentifizierung geschützt. Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein.`,two_factor_completed:`Mit {name} verbunden`,two_factor_failed:`Zwei-Faktor-Verifizierung fehlgeschlagen. Bitte versuchen Sie es erneut.`,insecure_handoff_title:`Zu unverschlüsselter Instanz wechseln?`,insecure_handoff_message:`{name} läuft über eine unverschlüsselte HTTP-Verbindung. Beim Wechsel werden Ihre Sitzungs-Tokens kurzzeitig über die URL übertragen. Sie werden direkt danach aus der URL entfernt, sind aber für kurze Zeit im Browser-Verlauf sichtbar. Fortfahren?`,insecure_handoff_confirm:`Fortfahren`},general:{loading:`Laden...`,role_admin:`Admin`,role_user:`Benutzer`},navigation:{about:`Über`,account:`Konto`,adminpanel:`Adminpanel`,appearance:`Erscheinungsbild`,backup:`Backup`,cameras:`Kameras`,camview:`Kameransicht`,config:`Konfiguration`,console:`Konsole`,logs:`Protokolle`,extras:`Extras`,home:`Startseite`,nvr:`NVR`,plugins:`Plugins`,faces:`Gesichter`,menu:`Menü`,mqtt:`MQTT`,notifications:`Benachrichtigungen`,permissions:`Berechtigungen`,recordings:`Aufnahmen`,remote:`Remote Zugriff`,settings:`Einstellungen`,system:`System`,automations:`Automatisierungen`,terminal:`Terminal`,user:`Benutzer`,instances:`Instanzen`,workers:`Workers`},navigation_description:{account_description:`Verwalten Sie Kontoeinstellungen und Erfahrungen.`,appearance_description:`Verwalten Sie das Erscheinungsbild und die Benutzeroberfläche der App.`,backup_description:`Verwalten, planen Sie Backups und stellen Sie Daten wieder her.`,notifications_description:`Benachrichtigungsregeln und Geräte verwalten.`,permissions_description:`Geräteberechtigungen für Mikrofon, Standort und Benachrichtigungen.`,mqtt_description:`Verbinden Sie camera.ui mit einem MQTT-Broker.`,nvr_description:`Verwalten Sie das Netzwerk-Videorekorder-System.`,recordings_description:`Verwalten Sie Aufnahmen und Speicheroptionen.`,remote_access_description:`Verwalten Sie den Remote-Zugriff und die Verbindungseinstellungen.`,system_description:`Verwalten Sie das System, überwachen Sie den Status und die Aufgaben.`,user_description:`Verwalten Sie Benutzer, Rollen und Berechtigungen.`},shares:{actions:`Aktionen`,code:`Zugangscode`,done:`Fertig`,create:`Erstellen`,create_share:`Kamera teilen`,code_save_hint:`Speichern Sie diesen Code — er kann später nicht mehr abgerufen werden.`,copy_link:`Link kopieren`,created:`Erstellt`,days:`Tage`,expires:`Läuft ab`,hour:`Stunde`,hours:`Stunden`,label:`Bezeichnung`,label_placeholder:`Optionale Bezeichnung`,link:`Share-Link`,max_viewers:`Max. Zuschauer`,no_shares:`Keine aktiven Share-Links`,revoke:`Widerrufen`,share_created:`Share-Link erstellt`,share_revoked:`Share-Link widerrufen`,share:`Teilen`,share_camera:`Kamera teilen`,share_title:`Kamera-Stream`,source:`Quelle`,ttl:`Gültig für`,unlimited:`Unbegrenzt`,viewers:`Zuschauer`},views:{404:{error_message:`Wir haben überall gesucht, aber diese Seite scheint Verstecken zu spielen... und sie gewinnt! Lassen Sie uns Sie zurück an einen Ort bringen, der existiert.`},adminpanel:{core:`Core`,frameworker:`Frameworker`,general:`Allgemein`,logged_in_users:`Derzeit angemeldete Benutzer`,no_core:`Keine Core-Prozesse verfügbar`,no_frameworkers:`Keine Frameworker verfügbar`,no_plugins:`Keine Plugins verfügbar`,no_system:`Keine Systemdaten verfügbar`,no_users:`Keine angemeldeten Benutzer`,plugins:`Plugins`,title:`Adminpanel`},camera:{cameras:`Kameras`,camera_disabled:`Diese Kamera ist deaktiviert`,camera_disabled_hint:`Aktivieren Sie die Kamera, um den Livestream und die Erkennung zu starten`,camera_snoozed:`Erkennung pausiert`,detections:`Erkennungen`,events:`Ereignisse`,recordings:`Aufnahmen`,shares:`Freigaben`,timeline:`Zeitleiste`,title:`Kamera`},cameras:{add_camera:`Kamera hinzufügen`,events:`Ereignisse`,get_started:`Jetzt starten`,new_camera:`Neue Kamera`,no_cameras:`Keine Kameras verfügbar`,no_cameras_hint:`Fügen Sie Ihre erste Kamera hinzu, um zu überwachen und aufzuzeichnen.`,title:`Kameras`},devices:{address:`Adresse`,confirm:`Kamera hinzufügen`,confirm_title:`Kamera bestätigen`,connect:`Verbinden`,device_hidden:`Gerät ausgeblendet`,device_unhidden:`Gerät eingeblendet`,hide:`Ausblenden`,hide_hidden:`Ausgeblendete Geräte verstecken`,managed_source_hint:`Diese Quelle wird von camera.ui verwaltet und kann nicht bearbeitet werden.`,manufacturer:`Hersteller`,model:`Modell`,name:`Name`,native_id:`Native ID`,no_settings_required:`Keine zusätzlichen Einstellungen für dieses Gerät erforderlich.`,no_devices:`Keine Geräte gefunden`,no_devices_hint:`Stellen Sie sicher, dass Ihre Kameras eingeschaltet und mit dem gleichen Netzwerk verbunden sind.`,no_schema:`Kein Verbindungsschema für dieses Gerät verfügbar`,plugin:`Plugin`,provider:`Anbieter`,rescan:`Neu scannen`,rescan_error:`Fehler beim Neuscannen. Siehe Konsole für weitere Informationen.`,rescan_success:`Neuscannen erfolgreich abgeschlossen`,scanning:`Scanne...`,scanning_hint:`Suche nach Kameras im Netzwerk. Das kann einen Moment dauern.`,show_hidden:`Ausgeblendete Geräte anzeigen`,status_added:`Hinzugefügt`,status_adopted_cameras:`Verbundene Kameras`,status_adopting:`Verbinde...`,status_discovered:`Entdeckt`,no_discovered:`Noch keine Geräte entdeckt`,status_error:`Fehler`,status_unknown:`Unbekannt`,title:`Geräte`,unhide:`Einblenden`,unknown:`Unbekannt`},camview:{all_cameras:`Alle Kameras`,cameras:`Kameras`,new_dnd:`Neue DND`,new_view:`Neue Ansicht`,rearrange:`Anordnen`,rearrange_done:`Fertig`,rearrange_auto:`Automatisch anordnen`,rearrange_fit_aspect:`Seitenverhältnisse anpassen`,no_dnds_configured:`Keine DNDs konfiguriert`,no_views_configured:`Keine Ansichten konfiguriert`,no_cameras:`Keine Kameras verfügbar`,title:`Camview`},config:{title:`Konfiguration`},console:{title:`Konsole`,copy:`Kopieren`,export:`Exportieren / Teilen`,source_logs:`Logs`,source_connection:`Verbindung`,clear:`Leeren`,refresh:`Aktualisieren`,empty:`Noch keine Protokoll-Einträge.`,recording_off:`Aufzeichnung ist aus — aktivieren Sie sie in Einstellungen → Erscheinungsbild, um Protokolle zu erfassen.`,copied:`Protokolle kopiert`,copy_failed:`Kopieren fehlgeschlagen`,cleared:`Protokolle geleert`,levels:`Level`,level:{debug:`Debug`,log:`Log`,info:`Info`,warn:`Warnung`,error:`Fehler`}},logs:{title:`Protokolle`,groups:{system:`System`,plugins:`Plugins`,cameras:`Kameras`}},home:{title:`Startseite`},terminal:{title:`Terminal`,connected:`Verbunden`,connecting:`Verbinde...`,disconnected:`Getrennt`,new_tab:`Neuer Tab`,reconnect:`Neu verbinden`},automations:{title:`Automatisierungen`,select:`Automatisierungen auswählen`,select_all:`Alle auswählen`,deselect_all:`Auswahl aufheben`,enable_selected:`Ausgewählte aktivieren`,disable_selected:`Ausgewählte deaktivieren`,delete_selected:`Ausgewählte löschen`,delete_selected_confirm:`{count} ausgewählte Automatisierung(en) löschen?`,run_history:`Verlauf`,no_runs:`Noch keine Ausführungen`,run_success:`Erfolgreich`,run_error:`Fehler`,run_completed:`Abgeschlossen`,run_skipped:`Übersprungen`,run_warnings:`Warnungen`,create:`Automatisierung erstellen`,delete:`Automatisierung löschen`,delete_confirm:`Möchten Sie diese Automatisierung wirklich löschen?`,duplicate:`Duplizieren`,enable:`Aktivieren`,disable:`Deaktivieren`,enabled:`Aktiviert`,disabled:`Deaktiviert`,last_run:`Letzter Lauf`,never_run:`Nie`,requires_update:`Diese Automatisierung verweist auf eine gelöschte Kamera oder Sensor und wurde deaktiviert. Bearbeiten Sie den Flow, um das Problem zu beheben.`,no_automations:`Noch keine Automatisierungen`,search:`Automatisierungen suchen...`,flow_name_placeholder:`Name der Automatisierung`,import_blueprint:`Blueprint importieren`,import_success:`Blueprint erfolgreich importiert`,import_invalid:`Ungültige Blueprint-Datei`,browse_community:`Community-Automatisierungen durchsuchen`},automation:{title:`Automatisierung`,save:`Speichern`,saved:`Automatisierung gespeichert`,save_failed:`Fehler beim Speichern der Automatisierung`,triggered:`Automatisierung ausgelöst`,trigger_failed:`Fehler beim Auslösen der Automatisierung`,output:`Ausgabe`,unsaved_title:`Ungespeicherte Änderungen`,unsaved_message:`Sie haben ungespeicherte Änderungen. Möchten Sie diese verwerfen?`,discard:`Verwerfen`,run:`Ausführen`,add_step:`Schritt hinzufügen`,suppress_duplicates:`Wiederholte Ereignisse ignorieren`,suppress_duplicates_hint:`Identische Trigger-Ereignisse in schneller Folge überspringen.`,single_execution:`Auf Abschluss warten`,single_execution_hint:`Neue Trigger blockieren solange die Automatisierung noch läuft.`,undo:`Rückgängig`,redo:`Wiederherstellen`,export_blueprint:`Blueprint exportieren`,clear:`Leeren`,clear_confirm:`Möchten Sie wirklich alle Knoten und Verbindungen entfernen?`,delete_node:`Löschen`,node_palette:`Knoten`,node_config:`Konfiguration`,no_nodes:`Ziehen Sie einen Knoten aus der Seitenleiste um zu beginnen`,no_nodes_mobile:`Tippen Sie auf + um einen Knoten hinzuzufügen`,no_node_selected:`Wählen Sie einen Knoten zur Konfiguration`,untitled:`Unbenannte Automatisierung`},firststeps:{complete:`Fertig`,enjoy:`Viel Spaß!`,finish_message:`Sie haben die ersten Schritte erfolgreich abgeschlossen. Sie können nun die Anwendung nutzen.`,from_backup:`Aus Backup wiederherstellen`,new_installation:`Neue Installation`,slogan:`Die moderne Lösung für professionelle Videoüberwachung.`,start:`Start`,start_message:`Bitte wählen Sie, ob Sie eine neue Installation starten oder ein Backup wiederherstellen möchten.`,step_account:`Konto`,step_appearance:`Erscheinungsbild`,step_finish:`Fertig`,step_welcome:`Willkommen`,title:`Erste Schritte`,welcome_to:`Willkommen bei`},plugin:{changelog:`Änderungsprotokoll`,disabled_info:`Plugin ist deaktiviert`,no_cameras:`Keine Kamera verfügbar`,no_changelog:`Kein Änderungsprotokoll verfügbar`,no_readme:`Keine Leseanleitung verfügbar`,no_settings:`Keine Einstellungen verfügbar`,assignment_requires_running:`Starte das Plugin, um Kamera-Zuordnungen zu ändern.`,nvr_settings_hint:`NVR-Einstellungen werden unter Einstellungen → Aufnahmen vorgenommen.`,nvr_settings_button:`Aufnahme-Einstellungen öffnen`,plugin_is_disabled:`Plugin ist deaktiviert`,readme:`Leseanleitung`,segment_tab_cameras:`Kameras`,segment_tab_interface:`Interface`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Einstellungen`,settings:`Einstellungen`,title:`Plugin`,settings_tab_tooltip:`Plugin-Einstellungen`,cameras_tab_tooltip:`Kamera-Zuweisung`,motion_detection_tab_tooltip:`Bewegungserkennung`,object_detection_tab_tooltip:`Objekterkennung`,audio_detection_tab_tooltip:`Audioerkennung`,face_detection_tab_tooltip:`Gesichtserkennung`,license_plate_detection_tab_tooltip:`Kennzeichenerkennung`,classifier_detection_tab_tooltip:`Bildklassifizierung`,clip_detection_tab_tooltip:`CLIP Semantische Suche`,notification_tab_tooltip:`Benachrichtigungen`},plugins:{allow_build_scripts:`Plugin-Build-Skripte erlauben`,allow_build_scripts_hint:`Plugins dürfen beim Installieren oder Aktualisieren Install-Skripte und native Builds ausführen. Nur aktivieren, wenn du den installierten Plugins vertraust.`,beta_versions:`Beta-Versionen`,beta_versions_hint:`Zeigt Vorabversionen in der Versionsauswahl der Plugins und bietet Beta-Releases als verfügbare Updates an.`,no_plugins:`Keine Plugins verfügbar`,search:`Plugins suchen...`,search_plugins:`Plugins suchen`,settings:`Plugin-Einstellungen`,title:`Plugins`},menu:{title:`Menü`,view_profile:`Profil anzeigen`,reload:`Neu laden`,switch_server:`Server wechseln`,logout:`Abmelden`,section_app:`App`,section_system:`System`,section_actions:`Aktionen`},app_lock:{title:`App gesperrt`,subtitle:`Authentifizieren, um camera.ui zu entsperren`,unlock:`Entsperren`},about:{title:`Über`,versions:`Versionen`,version_app:`App`,version_server:`Server`},faces:{title:`Gesichter`,known_faces:`Bekannte Gesichter`,unknown:`Unbekannt`,unknown_faces:`Unbekannte Gesichter`,no_faces_yet:`Noch keine Gesichter registriert.`,no_known_faces:`Noch keine bekannten Gesichter registriert.`,no_unknown_faces:`Keine unbekannten Gesichter erkannt.`,no_ungrouped_faces:`Keine ungruppierten Gesichter.`,clear_all:`Alle löschen`,add_face:`Gesicht hinzufügen`,assign:`Zuordnen`,skip:`Überspringen`,new_person:`+ Neue Person`,images:`Bilder`,training_images:`Trainingsbilder`,delete_person:`Person löschen`,name:`Name`,enter_name:`Name eingeben`,face_plugin:`Gesichtserkennungs-Plugin`,select_plugin:`Plugin wählen`,drop_image:`Bild hierher ziehen oder klicken`,faces_detected:`Gesicht(er) erkannt`,no_face_detected:`Kein Gesicht im Bild erkannt`,enroll:`Registrieren`,enter_person_name:`Name der Person eingeben`,face_enrolled:`Gesicht erfolgreich registriert`,face_assigned:`Gesicht erfolgreich zugeordnet`,person_deleted:`Person gelöscht`,image_removed:`Trainingsbild entfernt`,all_unknown_cleared:`Alle unbekannten Gesichter gelöscht`,faces_in_cluster:`Gesichter in Gruppe`,assign_cluster:`Gruppe zuordnen`,ungrouped:`Ungruppiert`,select:`Bilder auswählen`,discard:`Verwerfen`,remove_from_cluster:`Aus Gruppe entfernen`,show_all:`Alle anzeigen ({count})`,show_less:`Weniger anzeigen`,rescan_events:`Bestehende Events erneut scannen`,rescan_complete:`{count} Gesicht(er) in bestehenden Events aktualisiert`,rescan_no_matches:`Keine neuen Übereinstimmungen gefunden`},recordings:{title:`Aufnahmen`,export:{title:`Aufnahmen exportieren`,cameras:`Kameras`,cameras_placeholder:`Kameras auswählen`,range:`Zeitbereich`,from:`Von`,to:`Bis`,range_hint:`Eine Datei pro Kamera und Tag — erster und letzter Tag decken den gewählten Zeitraum ab, Tage dazwischen komplett.`,invalid_range:`„Bis“ muss nach „Von“ liegen.`,quality:`Qualität`,quality_best:`Beste Qualität`,quality_smallest:`Kleinste Dateien`,timelapse:`Zeitraffer`,timelapse_off:`Aus`,result:`Ergebnis`,file:`Datei`,files:`Dateien`,whole_day:`ganzer Tag`,no_cameras:`Keine Kamera ausgewählt.`,no_range:`Kein Zeitbereich gewählt.`,no_footage:`Keine Aufnahmen im gewählten Bereich.`,estimating:`Berechne…`,confirm:`Exportieren`,plugin_missing:`NVR-Plugin nicht verfügbar.`},search:`Suche`,search_placeholder:`Gesichter, Kennzeichen, Labels suchen...`,download_failed:`Download fehlgeschlagen`,filter_and:`UND`,filter_or:`ODER`,semantic_search:`KI-Suche`,semantic_search_placeholder:`Beschreiben Sie, was Sie suchen...`,semantic_search_button:`Suchen`,min_match_score:`Min. Übereinstimmung`,semantic_search_hint:`z.B. "Person mit roter Jacke" oder "Lieferwagen"`,cameras:`Kameras`,all_cameras:`Alle Kameras`,only_with_recordings:`Nur mit Aufnahme`,time_range:`Zeitraum`,time_1h:`1H`,time_1d:`1T`,time_1w:`1W`,time_1m:`1M`,event_type:`Labels`,type_person:`Person`,type_vehicle:`Fahrzeug`,type_animal:`Tier`,type_package:`Paket`,type_other:`Sonstige`,audio:`Audio`,audio_doorbell:`Türklingel`,audio_glass_break:`Glasbruch`,audio_siren:`Sirene`,audio_speaking:`Sprache`,audio_gunshot:`Schuss`,audio_dog_bark:`Hundegebell`,audio_baby_cry:`Babygeschrei`,audio_alarm:`Alarm`,audio_scream:`Schrei`,audio_cat:`Katze`,audio_car_alarm:`Autoalarm`,audio_smoke_alarm:`Rauchmelder`,attributes:`Attribute`,attr_face:`Gesicht`,attr_license_plate:`Kennzeichen`,sensor_events:`Auslöser`,sensor_motion:`Bewegung`,sensor_audio:`Audio`,sensor_contact:`Kontakt`,sensor_doorbell:`Türklingel`,sensor_switch:`Schalter`,sensor_light:`Licht`,sensor_siren:`Sirene`,sensor_security_system:`Sicherheitssystem`,sensor_line_crossing:`Linienüberschreitung`,grid_search:`Rastersuche`,grid_clear:`Auswahl zurücksetzen`,confidence:`Konfidenz`,date:`Datum`,download:`Aufnahme herunterladen`,no_recordings:`Keine Aufnahmen gefunden`,no_semantic_results:`Keine passenden Aufnahmen für Ihre Suche gefunden`,ungroup:`Aufteilen`,result_count:`{count} Aufnahmen`,semantic_results:`{count} KI-Treffer`,events_count:`{count} Ereignisse`},login:{"2fa_backup_hint":`Backup-Code verwenden`,"2fa_backup_description":`Geben Sie einen Ihrer 8-stelligen Backup-Codes ein`,"2fa_backup_placeholder":`Backup-Code`,"2fa_use_app":`Authenticator-App verwenden`,"2fa_description":`Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein`,"2fa_title":`Zwei-Faktor-Authentifizierung`,"2fa_invalid_code":`Ungültiger Code. Bitte erneut versuchen.`,"2fa_verify":`Verifizieren`,biometric_reason:`Bei camera.ui anmelden`,biometric_save_title:`Biometrische Anmeldung verwenden?`,biometric_save_description:`Speichern Sie Ihre Zugangsdaten im sicheren Speicher dieses Geräts, damit Sie sich beim nächsten Mal mit Face ID oder Touch ID anmelden können.`,biometric_save_confirm:`Aktivieren`,biometric_save_decline:`Nicht jetzt`,invalid_credentials:`Ungültiger Benutzername oder Passwort`,searching_direct:`Suche nach einer direkten Verbindung zu Ihrem Server…`,offline_title:`Server nicht erreichbar`,offline_description:`Es ist gerade keine direkte Verbindung verfügbar. Stellen Sie sicher, dass der Server online ist, und versuchen Sie es erneut.`,offline_retry:`Erneut versuchen`,pick_server:`Cloud`},settings:{app:`App`,available_updates:`Verfügbare Aktualisierungen`,available_updates_info:`Es sind Aktualisierungen für camera.ui verfügbar.`,beta_updates:`Beta-Updates`,beta_updates_info:`Vorabversionen empfangen, bevor sie allgemein ausgerollt werden — sowohl Server-Updates als auch, in der mobilen App, OTA-UI-Updates.`,certificate:`Zertifikat`,certificate_info:`Laden Sie hier das SSL-Zertifikat der Webseite herunter. Durch das Hinzufügen dieses Zertifikats zu Ihrem Keychain oder Ihrer Zertifikatsverwaltung wird die Seite als sicher erkannt. Dies verbessert die Browsererfahrung und vermeidet Sicherheitswarnungen.`,cloud:`Cloud`,connection:`Verbindung`,create_backup:`Backup erstellen`,create_backup_info:`Erstellen Sie ein Backup der aktuellen Konfiguration. Das Archiv enthält Ihr camera.ui Speicherverzeichnis, aber nicht Ihre Aufnahmen und deren Ereignisverlauf. Kopieren Sie den Aufnahmen-Ordner dafür selbst. Das Archiv können Sie später auf jeder Plattform wiederherstellen, auf der camera.ui läuft.`,edit:`Bearbeiten`,interface:`Interface`,invalid_domain:`Ungültige Domain`,locale:`Sprache`,network:`Netzwerk`,network_info:`Wählen Sie aus, welche IP-Adressen dieses Servers für lokale Verbindungen verwendet werden. Apps und Browser erreichen den Server und seine Streams im Netzwerk über diese Adressen. Leer lassen, um alle Adressen zu verwenden.`,status_info:`Zeigt an, ob dieser Server bei der camera.ui Cloud für den Fernzugriff registriert ist.`,server_name:`Servername`,server_name_info:`Legen Sie einen benutzerdefinierten Namen für diesen Server fest. Dieser Name wird im Cloud-Dashboard angezeigt und hilft Ihnen, diesen Server zu identifizieren.`,server_name_label:`Name`,tunnel_status:`Tunnel`,tunnel_status_info:`Zeigt den Status der Remote-Tunnel-Verbindung für den Cloud-Zugriff an.`,tunnel_connected:`Verbunden`,tunnel_disconnected:`Getrennt`,cloudflare_login_waiting:`Warte auf Autorisierung...`,pair_instructions:`Scannen Sie den QR-Code oder öffnen Sie die Pairing-URL unten im Browser und melden Sie sich bei Ihrem camera.ui-Konto an.`,pair_code:`Pairing-Code`,pair_code_hint:`Begrenzt gültig. Der Code ist im QR-Code und in der Pairing-URL bereits enthalten.`,pair_url:`Pairing-URL`,pair_waiting:`Warte auf Bestätigung… ({remaining})`,not_registered:`Nicht registriert`,needs_reauth:`Neu-Authentifizierung nötig`,not_available_updates_info:`Ihre camera.ui Version ist auf dem neuesten Stand.`,password:`Passwort`,profile:`Profil`,registered_users:`Registrierte Benutzer`,remote_access_info:`Konfigurieren Sie hier die Remote-Zugriffseinstellungen. Diese Einstellungen ermöglichen es Ihnen, von überall auf Ihre camera.ui Umgebung zuzugreifen.`,remote_access_settings:`Remote Zugriff Einstellungen`,connection_status:`Verbindungsstatus`,direct_connection:`Direkte Verbindung`,direct_connection_info:`Macht diesen Server über eine öffentliche Adresse erreichbar, sodass er von außerhalb des lokalen Netzwerks zugänglich ist.`,direct_override_active:`Die direkte Verbindung bleibt aktiv, solange die Cloud eingeschaltet ist, damit dieser Server über seine externe Adresse erreichbar bleibt.`,direct_override_fallback:`Ihre konfigurierte direkte Adresse war nicht erreichbar — solange die Cloud aktiv ist, wird ein temporärer Cloudflare-Tunnel verwendet.`,external_url:`Externe URL`,external_url_info:`Die öffentliche Adresse, unter der dieser Server aktuell erreichbar ist. Bei einem Fallback ist das der temporäre Cloudflare-Tunnel, nicht Ihre konfigurierte Adresse.`,connection_method:`Verbindungsmethode`,connection_type:{local:`Lokal`,lan:`Lokales Netzwerk`,external:`Remote`,cloud:`Cloud`},remove:`Entfernen`,registered:`Registriert`,reset_server:`Server zurücksetzen`,reset_server_info:`Durch Klicken auf diesen Button setzen Sie die Konfiguration auf die Standardwerte zurück. Dies entfernt alle Ihre Einstellungen und Daten. Diese Aktion kann nicht rückgängig gemacht werden.`,restart_server:`Server neustarten`,restart_server_info:`Durch Klicken auf diesen Button starten Sie den Server neu. Ein Ladebildschirm wird angezeigt, bis der Neustart abgeschlossen ist. Anschließend wird die Seite automatisch aktualisiert und steht Ihnen wieder zur Verfügung.`,restore_backup:`Backup wiederherstellen`,restore_backup_info:`Stellen Sie ein Sicherungsarchiv wieder her, das Sie zuvor mit camera.ui erstellt haben. Ihre camera.ui Konfiguration, Datenbank und Benutzerkonten werden wiederhergestellt. Aufnahmen sind nicht Teil des Archivs.`,search_by_name:`Nach Namen suchen`,searching_updates:`Suche nach Aktualisierungen...`,server:`Server`,biometric:{title:`Biometrische Anmeldung`,label:`Face ID / Touch ID verwenden`,description:`Speichern Sie Ihre Zugangsdaten im sicheren Speicher dieses Geräts, damit Sie sich beim nächsten Mal biometrisch anmelden können.`,enable_hint:`Melden Sie sich ab und wieder an, um Ihre Zugangsdaten für die biometrische Anmeldung zu speichern.`,cleared:`Gespeicherte Zugangsdaten entfernt`},active_sessions:{title:`Aktive Sitzungen`,empty:`Keine aktiven Sitzungen`,this_device:`Dieses Gerät`,revoke:`Abmelden`,revoke_others_title:`Andere Geräte abmelden`,revoke_others_confirm:`Hierdurch werden {count} andere Geräte abgemeldet. Fortfahren?`,revoke_all_others:`{count} andere Geräte abmelden`,revoke_others_success:`Andere Geräte abgemeldet`},api_tokens:{title:`API-Tokens`,info:`Für externe Integrationen wie Home Assistant. Tokens haben vollen Kontozugriff und bleiben gültig, bis sie widerrufen werden.`,empty:`Keine API-Tokens`,create:`Token erstellen`,create_confirm:`Erstellen`,name_label:`Name`,name_placeholder:`z.B. Home Assistant`,name_exists:`Ein Token mit diesem Namen existiert bereits`,last_used:`Zuletzt benutzt`,never:`Nie`,revoke:`Widerrufen`,revoke_title:`API-Token widerrufen`,revoke_confirm:`Integrationen, die "{name}" verwenden, funktionieren danach nicht mehr. Fortfahren?`,revoke_success:`API-Token widerrufen`,created_title:`API-Token erstellt`,created_warning:`Dieser Token wird nur einmal angezeigt. Kopiere ihn jetzt und bewahre ihn sicher auf.`},scheduled_backup:`Backup-Zeitplan`,scheduled_backup_info:`Backups automatisch nach Zeitplan erstellen und nur die neuesten Archive behalten`,backup_interval:`Häufigkeit`,backup_interval_daily:`Täglich`,backup_interval_weekly:`Wöchentlich`,backup_interval_monthly:`Monatlich`,backup_time:`Uhrzeit`,backup_weekday:`Wochentag`,backup_day_of_month:`Tag des Monats`,backup_retention:`Backups behalten`,backup_retention_hint:`Anzahl der Archive, die behalten werden — ältere werden automatisch gelöscht`,backup_destination:`Zielordner`,backup_destination_hint:`Absoluter Pfad auf dem Server (z.B. NAS-Mount). Leer lassen für den Standardordner`,backup_last_run:`Letzter Lauf: {info}`,backup_last_run_never:`nie`,backup_existing:`Vorhandene Backups`,status:`Status`,theme:`Design`,title:`Einstellungen`,title_account:`Konto`,title_appearance:`Erscheinungsbild`,title_backup:`Backup`,title_go2rtc:`Go2RTC`,title_notifications:`Benachrichtigungen`,notifications:{general:`Allgemein`,general_info:`Der Hauptschalter aktiviert oder deaktiviert sämtliche Benachrichtigungen auf einen Schlag — wenn er aus ist, sind alle Quellen darunter stumm. Ruhezeiten unterdrücken die externe Auslieferung an Ihre registrierten Geräte während des täglichen Zeitfensters; nur Critical-Ereignisse durchbrechen die Stille. Die In-App-Benachrichtigungsliste bleibt unabhängig von den Ruhezeiten aktuell.`,enable:`Benachrichtigungen aktivieren`,os_permission_denied:`Benachrichtigungen sind auf diesem Gerät auf Systemebene blockiert.`,os_permission_link:`Berechtigungen öffnen`,enable_info:`Aktivieren Sie dies, um Benachrichtigungen für Ihr Konto zu erhalten.`,enable_failed:`Benachrichtigungen konnten nicht aktiviert werden.`,this_device:`Dieses Gerät`,this_device_synced:`Dieses Gerät ist für Benachrichtigungen eingerichtet.`,this_device_unsynced:`Dieses Gerät ist noch nicht eingerichtet — synchronisieren, um hier Benachrichtigungen zu empfangen.`,this_device_desktop:`Desktop-Benachrichtigungen auf diesem Computer anzeigen, solange die App läuft.`,sync:`Dieses Gerät synchronisieren`,resync:`Erneut synchronisieren`,quiet_hours:`Ruhezeiten`,quiet_hours_info:`Unterdrückt nicht-kritische Benachrichtigungen in einem täglichen Zeitfenster.`,from:`Von`,to:`Bis`,timezone:`Zeitzone`,system_notifications:`System-Benachrichtigungen`,system_notifications_info:`Eingebaute Ereignisse von camera.ui selbst — typischerweise Lebenszyklus- und Update-Hinweise, etwa wenn ein Plugin abstürzt oder eine neuere Server-Version verfügbar ist. Jeder Eintrag kann einzeln umgeschaltet werden, sodass Sie nur das sehen, was Sie interessiert.`,no_system_types:`Keine System-Benachrichtigungstypen verfügbar.`,plugin_notifications:`Plugin-Benachrichtigungen`,plugin_notifications_info:`Aktivierte Plugins dürfen camera.ui über eigene Ereignisse benachrichtigen — immer wenn etwas passiert das Ihre Aufmerksamkeit braucht. Diese Benachrichtigungen werden dann gemäß Ihren Einstellungen ausgeliefert. Deaktivierte Plugins werden vom Benachrichtigungs-Service stillschweigend ignoriert.`,no_plugin_sources:`Aktuell darf kein Plugin Benachrichtigungen senden.`,devices:`Geräte`,devices_info:`Registrierte Geräte sind die Ziele, an die Benachrichtigungen ausgeliefert werden. Jedes Gerät gehört dem Plugin, das es registriert hat — die Plugin-Spalte zeigt welches. Mit dem Active-Schalter pausieren Sie die Auslieferung, ohne das Gerät abzumelden; das Mülleimer-Symbol entfernt es vollständig.`,no_devices:`Noch keine Benachrichtigungsgeräte registriert.`,col_name:`Name`,col_plugin:`Plugin`,col_active:`Aktiv`,revoke:`Entfernen`,device_revoked:`Gerät entfernt.`,revoke_failed:`Gerät konnte nicht entfernt werden.`,update_failed:`Gerät konnte nicht aktualisiert werden.`,save:`Speichern`,reset:`Zurücksetzen`,saved:`Benachrichtigungseinstellungen gespeichert.`,save_failed:`Speichern der Benachrichtigungseinstellungen fehlgeschlagen.`,system_types:{system_plugin_update_available:`Plugin-Updates verfügbar`,system_plugin_crashed:`Plugin abgestürzt / wiederhergestellt`,system_update_available:`Server-Update verfügbar`}},instances:{add:`Instanz hinzufügen`,remove:`Entfernen`,edit:`Instanz bearbeiten`,name:`Name`,url:`URL`,url_placeholder:`https://beispiel.de:8443`,added:`Instanz hinzugefügt`,updated:`Instanz aktualisiert`,removed:`Instanz entfernt`,confirm_remove:`Instanz entfernen?`,credentials_username:`Benutzername`,credentials_password:`Passwort`,credentials_unchanged:`Unverändert`,cannot_add_self:`Dieser Server kann nicht als Remote-Instanz hinzugefügt werden.`,credentials_required:`Benutzername und Passwort sind erforderlich.`},title_mqtt:`MQTT`,mqtt_broker:`MQTT-Broker`,mqtt_status_info:`Live-Verbindungsstatus der MQTT-Bridge.`,mqtt_state_connected:`Verbunden`,mqtt_state_connecting:`Verbinde…`,mqtt_state_reconnecting:`Verbinde erneut…`,mqtt_state_error:`Fehler`,mqtt_state_disabled:`Deaktiviert`,mqtt_enabled_info:`Veröffentlicht camera.ui-Ereignisse, Kamera- und Sensorzustände an Ihren MQTT-Broker.`,mqtt_host_label:`Host`,mqtt_port_label:`Port`,mqtt_protocol_label:`Protokoll`,mqtt_username_label:`Benutzername`,mqtt_password_label:`Passwort`,mqtt_password_keep_hint:`Leer lassen, um das gespeicherte Passwort zu behalten.`,mqtt_client_id_label:`Client-ID`,mqtt_topic_prefix_label:`Topic-Präfix`,mqtt_topic_prefix_info:`Alle camera.ui-Topics werden unterhalb dieses Präfixes veröffentlicht.`,mqtt_tls_reject_unauthorized:`Serverzertifikat prüfen`,mqtt_tls_reject_unauthorized_info:`Nur für Broker mit selbstsignierten Zertifikaten deaktivieren.`,mqtt_tls_ca_label:`CA-Zertifikat (PEM)`,mqtt_tls_cert_label:`Client-Zertifikat (PEM)`,mqtt_tls_key_label:`Client-Schlüssel (PEM)`,mqtt_test:`Verbindung testen`,mqtt_mode_label:`Modus`,mqtt_mode_external:`Externer Broker`,mqtt_mode_embedded:`Eingebauter Broker`,mqtt_mode_embedded_info:`camera.ui startet einen eigenen MQTT-Broker. Richten Sie Ihre MQTT-Geräte mit der unten stehenden Adresse und den Zugangsdaten ein.`,mqtt_broker_address:`Broker-Adresse`,mqtt_broker_address_hint:`Verwenden Sie diese Adresse und die Zugangsdaten oben in Ihren MQTT-Geräten.`,mqtt_broker_running:`Eingebauter Broker läuft auf Port {port}`,mqtt_ha_discovery:`Home Assistant Discovery`,mqtt_ha_discovery_info:`Erstellt Geräte und Entitäten in Home Assistant automatisch via MQTT Discovery.`,mqtt_ha_prefix_label:`Discovery-Präfix`,mqtt_ha_prefix_info:`Muss dem in Home Assistant konfigurierten Discovery-Präfix entsprechen (Standard: homeassistant).`,title_remote:`Remote Zugriff`,title_nvr:`NVR`,title_permissions:`Berechtigungen`,title_recordings:`Aufnahmen`,permissions:{general:`App-Berechtigungen`,general_info:`Was dieses Gerät camera.ui erlaubt. Das sind Systemberechtigungen Ihres Geräts, keine Server-Einstellungen.`,microphone:`Mikrofon`,microphone_info:`Nötig für Gegensprechen (Intercom).`,location:`Standort`,location_info:`Nötig für standortbasierte Automationen.`,notifications:`Benachrichtigungen`,notifications_info:`Nötig, um Benachrichtigungen auf diesem Gerät anzuzeigen.`,state_granted:`Erlaubt`,state_denied:`Blockiert`,state_prompt:`Noch nicht gefragt`,state_unknown:`Unbekannt`,request:`Anfragen`,open_settings:`Einstellungen öffnen`,browser_hint:`Ändern Sie das in den Website-Einstellungen Ihres Browsers.`},recordings:{nvr_not_running:`NVR-Plugin ist nicht gestartet. Starten Sie das NVR-Plugin, um Aufnahmen zu verwalten.`,disk_critical:`Kritisch: Speicherplatz wird knapp. Aufnahme ist pausiert, um Datenverlust zu vermeiden.`,disk_warning:`Warnung: Speicherplatz unter 8%. Alte Aufnahmen werden nur mit Aufbewahrungsmodus "Overwrite" und ohne Speicherlimit automatisch gelöscht. Andernfalls pausiert die Aufnahme, wenn der Platz ausgeht.`,disk_small_volume:`Das Speichervolumen ist klein. Aufnahmen werden häufig rotiert, um Platz freizuhalten.`,storage_overview:`Speicherübersicht`,disk_total:`Gesamtspeicher`,nvr_usage:`NVR-Nutzung`,quota:`Kontingent`,retention:`Aufbewahrung`,disk_free:`Freier Speicher`,unlimited:`Unbegrenzt`,days_count:`{count} Tage`,global_settings:`Einstellungen`,camera_storage:`Kameraspeicher`,no_cameras:`Keine Kameras verfügbar`,col_camera:`Kamera`,col_size:`Größe`,col_days:`Tage`,col_rate:`Rate`,col_mode:`Modus`,chart_nvr:`NVR`,chart_other:`Andere`,chart_free:`Frei`,status_recording:`Aufnahme`,status_stopped:`Gestoppt`,not_available:`Nicht verfügbar`,license_title:`Lizenz & Cloud`,license_description:`Verbinden Sie diesen NVR mit der camera.ui Cloud für Lizenz- und Cloud-Funktionen.`,license_disconnected:`Nicht verbunden`},title_system:`System`,title_user:`Benutzer`,title_device:`Gerät`,title_security:`Sicherheit`,security:{title:`Zwei-Faktor-Authentifizierung`,"2fa_title":`Zwei-Faktor-Authentifizierung`,"2fa_description":`Fügen Sie eine zusätzliche Sicherheitsebene zu Ihrem Konto hinzu, indem Sie die Zwei-Faktor-Authentifizierung aktivieren. Sie benötigen eine Authenticator-App wie Google Authenticator oder Authy.`,generating_qr:`QR-Code wird generiert...`,setup_2fa:`2FA einrichten`,step_scan:`QR scannen`,step_verify:`Verifizieren`,scan_qr:`Scannen Sie diesen QR-Code mit Ihrer Authenticator-App`,manual_entry:`Manueller Eingabecode`,enter_code:`Verifizierungscode eingeben`,enter_code_description:`Geben Sie den 6-stelligen Code aus Ihrer Authenticator-App ein, um die Einrichtung zu verifizieren.`,enable_2fa:`2FA aktivieren`,disable_2fa:`2FA deaktivieren`,"2fa_enabled":`2FA ist aktiviert`,"2fa_enabled_success":`Zwei-Faktor-Authentifizierung wurde aktiviert`,"2fa_disabled_success":`Zwei-Faktor-Authentifizierung wurde deaktiviert`,backup_codes:`Backup-Codes`,backup_codes_remaining:`{count} Backup-Codes verbleibend`,backup_warning:`Speichern Sie diese Codes an einem sicheren Ort. Jeder Code kann nur einmal verwendet werden. Falls Sie den Zugang zu Ihrer Authenticator-App verlieren, können Sie diese Codes zur Anmeldung verwenden.`,backup_regenerated:`Backup-Codes wurden neu generiert`,regenerate_backup:`Backup-Codes neu generieren`,regenerate_confirm:`Geben Sie Ihren aktuellen 2FA-Code ein, um neue Backup-Codes zu generieren. Dadurch werden alle bestehenden Backup-Codes ungültig.`,disable_confirm:`Geben Sie Ihren 2FA-Code ein, um die Zwei-Faktor-Authentifizierung zu deaktivieren.`},unknown:`Unbekannt`,update_available:`Aktualisierung verfügbar`,valid_domain:`Gültige Domain`,version:`Version`},instances:{title:`Instanzen`,this_server:`Dieser Server`,remote_servers:`Remote Server`,add:`Instanz hinzufügen`,edit:`Instanz bearbeiten`,remove:`Entfernen`,confirm_remove:`Instanz entfernen?`,select:`Instanzen auswählen`,select_all:`Alle auswählen`,deselect_all:`Auswahl aufheben`,remove_selected:`Ausgewählte entfernen`,remove_selected_confirm:`{count} ausgewählte Instanz(en) entfernen?`,search:`Instanzen suchen...`,no_instances:`Keine Remote-Instanzen konfiguriert.`,active:`Aktiv`,offline:`Offline`,switch_to:`Wechseln`,server_offline:`Server ist offline oder nicht erreichbar.`,no_data:`Laden...`,two_factor_pending_hint:`Zwei-Faktor-Bestätigung ausstehend`,two_factor_enter_code:`Code eingeben`,version:`Version`,uptime:`Laufzeit`,os:`System`,hostname:`Hostname`,cpu:`CPU`,cores:`Kerne`,memory:`Arbeitsspeicher`,disk:`Speicher`,cameras:`Kameras`,online:`Online`,recording:`Aufnahme`,credentials_required:`Zugangsdaten hinzufügen für Statusüberwachung.`},workers:{title:`Workers`,workers:`Workers`,address_required:`Keine LAN-Adresse erkannt. Setzen Sie die Master-Adresse manuell, bevor Sie Workers aktivieren.`,camera_assignments:`Kamera-Zuweisungen`,camera_assignments_description:`Lagern Sie das Video-Decoding und die Erkennung einer Kamera auf einen Worker aus. Der Stream wird auf der zugewiesenen Maschine dekodiert — praktisch, um CPU-Last zu verteilen. „Lokal" lässt sie auf diesem Master laufen.`,camera:`Kamera`,configuration:`Konfiguration`,copied:`Kopiert!`,cpu:`CPU`,enable_workers:`Workers aktivieren`,enable_workers_description:`Erlauben Sie anderen Maschinen, sich als Worker zu verbinden und Kamera-Decoding oder Plugins zu übernehmen.`,failed_to_update_assignment:`Worker-Zuweisung konnte nicht aktualisiert werden`,generate_code:`Pairing-Code generieren`,incompatible:`inkompatibel`,leaf_port:`Worker-Verbindungsport`,local:`Lokal`,master_address:`Master-Adresse`,master_address_hint:`Die Adresse, über die Worker diesen Master erreichen (LAN-IP oder Hostname).`,master_address_placeholder:`z. B. 192.168.1.10`,memory:`Speicher`,name:`Name`,ok:`OK`,port_change_warning:`Eine Port-Änderung erfordert, dass bereits gepairte Worker neu gepairt werden.`,save:`Speichern`,no_cameras:`Keine Kameras verfügbar`,no_plugins:`Keine Plugins installiert`,no_workers:`Keine Workers verfügbar`,plugin:`Plugin`,plugin_assignments:`Plugin-Zuweisungen`,plugin_assignments_description:`Betreiben Sie ein ganzes Plugin auf einem Worker statt auf diesem Master — z. B. einen Detektor, der Hardware braucht, die dieser Master nicht hat, oder der nur auf einer anderen Plattform verfügbar ist. Der Worker installiert und startet das Plugin; konfiguriert wird es weiterhin hier wie gewohnt. Es werden nur kompatible Worker angeboten.`,offline:`Offline`,online:`Online`,pair_worker:`Neuen Worker koppeln`,pair_worker_description:`Generieren Sie einen einmaligen Pairing-Code und starten Sie den Worker damit. Der Worker tauscht den Code gegen eigene Zugangsdaten — keine geteilten Secrets, pro Worker widerrufbar. Beim Koppeln startet der interne Message-Broker kurz neu.`,pairing_code:`Pairing-Code`,pairing_expires:`Läuft in {minutes} Min ab — einmalig verwendbar`,pairing_snippet:`Worker-Konfiguration`,pairing_snippet_hint:`In die camera.ui.yaml des Workers einfügen, dann mit "cameraui --worker run" starten.`,pid:`PID`,platform:`Plattform`,remove:`Entfernen`,remove_worker:`Worker entfernen`,remove_worker_confirm:`"{name}" entfernen? Die Zugangsdaten werden widerrufen und die Verbindung gekappt — zugewiesene Kameras laufen wieder auf dieser Maschine. Der interne Message-Broker startet kurz neu.`,version_mismatch:`Versionskonflikt — Worker läuft mit {version}, bitte aktualisieren`}}},en:{components:{automation_import:{title:`Import Automation`,import:`Import`,intro:`Bind the references in this blueprint to your local cameras, plugins and users. Check any pre-filled values.`,no_inputs:`This blueprint has no references to bind. You can import it directly.`,missing_plugins:`Missing required plugins: {plugins}. Install them before importing.`,open_plugin_store:`Open plugin store`,select_camera:`Select camera`,select_plugin:`Select plugin`,no_plugin_for_interface:`No installed plugin provides the "{interface}" interface.`,select_targets:`Select recipients`,select_sensor_type:`Select sensor type`,select_sensor:`Select sensor`,enter_target_id:`Enter target ID`},automation_store:{search:`Search community automations...`,filter_category:`Category`,filter_all_categories:`All categories`,sort_by:`Sort by`,sort_featured:`Featured`,sort_name:`Name`,featured:`Featured`,automations:`Automations`,refresh:`Refresh`,empty:`No community automations available`,not_found:`Automation not found`,needs:`Needs`,import:`Import`,required_plugins:`Required plugins`,missing_plugins_hint:`Some required plugins are not installed. Install them from the plugin store before importing.`,required_inputs:`Required inputs`,input_camera:`{count} camera`,input_plugin:`{count} plugin`,input_sensor:`{count} sensor`,input_notification_targets:`notifications`,input_system_target:`{count} target`,input_text:`{count} value`,category_notification:`Notification`,category_recording:`Recording`,category_presence:`Presence`,category_detection:`Detection`,category_schedule:`Schedule`,category_webhook:`Webhook`,category_mqtt:`MQTT`,category_scene:`Scene`,category_utility:`Utility`,category_other:`Other`},automation_nodes:{category_triggers:`Triggers`,category_conditions:`Conditions`,category_actions:`Actions`,category_utilities:`Utilities`,trigger_detection:`Detection Event`,trigger_detection_desc:`Triggered when a camera detects motion, a person, a vehicle, etc.`,event_phase:`Trigger on`,event_phase_start:`Event Start`,event_phase_update:`Event Update`,event_phase_end:`Event End`,event_phase_segment_start:`Segment Start`,event_phase_segment_update:`Segment Update`,event_phase_segment_end:`Segment End`,event_phase_placeholder:`All phases`,event_phase_multi_hint:`Select which event phases to trigger on. Empty = all phases.`,detection_labels:`Object Filter`,detection_labels_placeholder:`Any detection`,detection_labels_hint:`Only trigger when these objects are detected. Leave empty for any detection.`,label_motion:`Motion`,label_person:`Person`,label_vehicle:`Vehicle`,label_animal:`Animal`,label_package:`Package`,label_audio:`Audio`,confidence_hint:`Minimum confidence for object detections. Set to 0 to skip.`,audio_labels:`Audio Event Filter`,audio_labels_placeholder:`Any audio event`,audio_labels_hint:`Only trigger for specific audio events. Leave empty for any.`,audio_doorbell:`Doorbell`,audio_glass_break:`Glass Break`,audio_scream:`Scream`,audio_gunshot:`Gunshot`,audio_dog_bark:`Dog Bark`,audio_baby_cry:`Baby Cry`,audio_alarm:`Alarm`,audio_car_alarm:`Car Alarm`,audio_smoke_alarm:`Smoke Alarm`,audio_siren:`Siren`,audio_speaking:`Speaking`,audio_cat:`Cat`,face_filter:`Face Filter`,face_filter_placeholder:`Add name`,face_filter_hint:`Only trigger for specific people. Works best with "Event End" phase.`,license_plate_filter:`License Plate Filter`,license_plate_filter_placeholder:`Add plate`,license_plate_filter_hint:`Only trigger for specific license plates.`,trigger_sensor:`Sensor Change`,trigger_sensor_desc:`Triggered when a sensor property changes.`,sensor_properties:`Properties`,sensor_properties_placeholder:`All properties`,sensor_properties_hint:`Select which properties to watch. Empty = any property change.`,snapshot_force_new:`Force new snapshot`,snapshot_force_new_hint:`Bypass cache and capture a fresh frame from the camera.`,condition_logic:`Match`,condition_add:`Add condition`,logic_and:`AND`,logic_or:`OR`,trigger_schedule:`Schedule`,trigger_schedule_desc:`Triggered on a time-based schedule.`,cron_expression:`Cron Expression`,cron_presets:`Presets`,cron_every_minute:`Every minute`,cron_every_5_min:`Every 5 min`,cron_every_hour:`Every hour`,cron_daily_midnight:`Daily (midnight)`,cron_daily_6am:`Daily (6 AM)`,trigger_webhook:`Webhook`,trigger_mqtt:`MQTT Message`,trigger_mqtt_desc:`Triggered when a message arrives on an MQTT topic. Requires the MQTT connection in Settings.`,mqtt_topic:`Topic`,mqtt_topic_hint:`MQTT topic to subscribe to. Wildcards + and # are supported.`,mqtt_match_mode:`Match`,mqtt_match_any:`Any message`,mqtt_match_exact:`Exact payload`,mqtt_match_json:`JSON value`,mqtt_payload_filter:`Payload`,mqtt_payload_filter_hint:`Trigger only when the payload equals this exact text. For JSON devices (Shelly, Tasmota, …) use JSON value instead.`,mqtt_json_path:`JSON path`,mqtt_json_path_hint:`Dot path into the JSON payload, e.g. "output" or "params.switch:0.output".`,mqtt_json_value:`Equals value`,mqtt_json_value_hint:`Trigger only when the value at the path equals this. Leave empty to trigger whenever the path is present.`,action_mqtt:`MQTT Publish`,action_mqtt_desc:`Publishes a message to an MQTT topic. Requires the MQTT connection in Settings.`,mqtt_payload:`Payload`,mqtt_retain:`Retain`,mqtt_retain_hint:`The broker keeps the message and delivers it to new subscribers.`,trigger_webhook_desc:`Triggered by an external HTTP request.`,trigger_system:`System Event`,trigger_system_desc:`Triggered by a system event.`,system_category:`Category`,system_event_type:`Event Type`,system_event_placeholder:`Select event type`,system_cat_system:`System`,system_cat_plugin:`Plugin`,system_cat_camera:`Camera`,system_evt_started:`System Started`,system_evt_shutdown:`System Shutdown`,system_evt_camera_added:`Camera Added`,system_evt_camera_removed:`Camera Removed`,system_evt_plugin_started:`Plugin Started`,system_evt_plugin_stopped:`Plugin Stopped`,system_evt_plugin_error:`Plugin Error`,system_evt_camera_connected:`Camera Connected`,system_evt_camera_disconnected:`Camera Disconnected`,system_evt_fw_started:`FrameWorker Started`,system_evt_fw_stopped:`FrameWorker Stopped`,system_evt_property_changed:`Property Changed`,system_evt_sensor_added:`Sensor Added`,system_evt_sensor_removed:`Sensor Removed`,camera:`Camera`,camera_placeholder:`Select camera`,trigger_manual:`Manual`,trigger_manual_desc:`Triggered manually by clicking Run.`,condition_ifelse:`If / Else`,condition_ifelse_desc:`Branch based on a condition.`,condition_switch:`Switch`,condition_switch_desc:`Branch based on multiple values.`,condition_sensorstate:`Sensor State`,condition_sensorstate_desc:`Check the current state of a sensor.`,action_snapshot:`Capture Snapshot`,action_snapshot_desc:`Capture a snapshot from a camera.`,action_recording:`Toggle Recording`,action_recording_desc:`Start or stop recording on a camera.`,action_sensor:`Control Sensor`,action_sensor_desc:`Set a sensor property value.`,action_notification:`Send Notification`,action_notification_desc:`Send a push notification.`,action_notification_control:`Notifications On/Off`,action_notification_control_desc:`Turn push notifications on or off, for everyone or one user.`,notification_control_mode:`Notifications`,notification_control_enable:`On`,notification_control_disable:`Off`,notification_control_scope:`Applies to`,notification_control_scope_global:`Everyone`,notification_control_scope_user:`One user`,notification_control_scope_global_hint:`Mutes or unmutes push for all users.`,notification_control_scope_user_hint:`Mutes or unmutes push for the selected user only.`,notification_control_user:`User`,notification_control_user_placeholder:`Select a user`,notification_title:`Title`,notification_title_placeholder:`Notification title`,notification_body:`Body`,notification_body_placeholder:`Notification body`,notification_severity:`Severity`,severity_info:`Info`,severity_warning:`Warning`,severity_error:`Error`,severity_critical:`Critical (bypasses DND)`,notification_image:`Image`,notification_image_placeholder:`{'{{snapshot}}'} or https://…`,notification_image_hint:`Use an upstream image variable, paste a URL or upload a file. Leave empty for text only.`,notification_deep_link:`Deep link`,notification_targets:`Targets`,notification_targets_hint:`Devices that receive this notification. Leave empty to send to all registered devices.`,notification_targets_placeholder:`All devices`,action_http:`HTTP Request`,action_http_desc:`Send an HTTP request to an external URL.`,action_delay:`Delay`,action_delay_desc:`Wait for a specified duration.`,action_variable:`Set Variable`,action_variable_desc:`Store a value for later use.`,action_plugin:`Plugin Call`,action_plugin_desc:`Run a detection or analysis plugin on an image.`,action_image_input:`Image Input`,action_image_input_desc:`Load an image from a URL or variable.`,action_output:`Output`,action_output_desc:`Collect results for display after execution.`,image_source:`Image Source`,image_source_placeholder:`https://example.com/image.jpg or {'{{variable}}'}`,image_upload:`Upload image`,image_source_hint:`URL to fetch, base64 data, or upload a file.`,image_variable_hint:`The image will be stored as base64 in this variable.`,image_width:`Width`,image_height:`Height`,image_auto:`0 = auto`,image_resize_hint:`Set 0 for original size. Both 0 = no resize.`,image_output_format:`Output Format`,variable:`Variable`,output_label:`Label`,output_label_placeholder:`e.g. Duration`,output_add:`Add output variable`,output_hint:`These values will be shown after manual execution.`,available_variables:`Variables`,variable_operator:`Operator`,alias:`Alias`,alias_placeholder:`myNode`,alias_hint:`Scope output variables with a prefix, e.g. cam1.plugin.result`,repeat:`Repeat`,repeat_count:`Iterations`,repeat_concurrency:`Parallel calls per iteration`,repeat_concurrency_hint:`Number of concurrent calls per iteration. Total = iterations × concurrency.`,repeat_delay:`Delay between iterations`,plugin_settings:`Plugin Settings`,plugin_apply_settings:`Apply`,plugin_interface:`Plugin Interface`,plugin_interface_placeholder:`Select interface`,plugin_name:`Plugin`,plugin_name_placeholder:`Select plugin`,plugin_no_plugins:`No plugins available for this interface`,plugin_method:`Method`,plugin_method_placeholder:`Select method`,method_test_object:`Detect Objects`,method_test_face:`Detect Faces`,method_test_plate:`Detect License Plates`,method_test_classifier:`Classify Image`,method_test_motion:`Detect Motion`,method_test_audio:`Detect Audio Events`,method_test_clip:`Generate CLIP Embedding`,method_text_embedding:`Text Embedding`,method_detect_objects:`Detect Objects (Raw Frame)`,method_detect_faces:`Detect Faces (Raw Frame)`,method_detect_plates:`Detect License Plates (Raw Frame)`,method_detect_classifications:`Classify (Raw Frame)`,method_detect_motion:`Detect Motion (Raw Frame)`,method_detect_clip:`CLIP Embedding (Raw Frame)`,param_frame:`Frame Data`,param_image:`Image Data`,param_audio:`Audio Data`,param_image_hint:`Use {'{{snapshot}}'} from a previous Capture Snapshot node.`,param_video:`Video Data`,param_text:`Text`,confidence:`Confidence Threshold`,webhook_url:`Webhook URL`,webhook_url_hint:`Send a POST request to this URL to trigger the automation.`,webhook_secret:`HMAC Secret`,webhook_secret_hint:`Include an X-Webhook-Signature header with HMAC-SHA256(body, secret) to authenticate requests.`,webhook_secret_save_hint:`Save the automation to generate an HMAC secret.`,webhook_secret_copied:`Copied`,condition_variable:`Variable`,condition_variable_placeholder:`Select or type a variable`,condition_variable_hint:`Select a predefined variable or type a custom expression.`,condition_source_info:`Connected to: {source}`,condition_no_source:`Connect a node to see available variables.`,sensor_type_label:`Sensor Type`,sensor_type_placeholder:`Select sensor type`,sensor_instance:`Sensor`,sensor_instance_placeholder:`Select sensor`,sensor_property_placeholder:`Property`,sensor_property_detected:`Detected`,sensor_property_detections:`Detections`,sensor_property_blocked:`Blocked`,sensor_property_lastTriggered:`Last triggered`,sensor_property_labels:`Labels`,sensor_property_decibels:`Decibels`,sensor_property_current:`Current value`,sensor_property_on:`On`,sensor_property_brightness:`Brightness`,sensor_property_active:`Active`,sensor_property_volume:`Volume`,sensor_property_currentState:`Current state`,sensor_property_targetState:`Target state`,sensor_property_obstructionDetected:`Obstruction detected`,sensor_property_position:`Position`,sensor_property_moving:`Moving`,sensor_property_presets:`Presets`,sensor_property_velocity:`Velocity`,sensor_property_targetPreset:`Target preset`,sensor_property_relativeMove:`Relative move`,sensor_property_home:`Home position`,sensor_property_ring:`Ring`,sensor_property_level:`Battery level`,sensor_property_charging:`Charging`,sensor_property_low:`Low battery`,mqtt_recent_topics:`Recent topics`,validation_no_trigger:`The flow has no trigger.`,validation_unreachable:`This node is not connected to a trigger.`,validation_missing_fields:`Required settings are missing.`,validation_no_cases:`The switch has no cases.`,validation_invalid_cron:`The cron expression needs 5 fields.`,validation_invalid_variable_name:`Variable names may only contain letters, digits, underscores and dots.`,validation_unknown_variable:`Unknown variable {name}.`,variable_event_type:`Event type`,variable_event_types:`All event types`,variable_event_label:`Detection label`,variable_event_confidence:`Confidence`,variable_event_state:`Event state`,variable_event_camera:`Camera ID`,variable_event_faces:`Recognized faces`,variable_event_plates:`License plates`,variable_event_id:`Event ID`,variable_sensor_value:`Sensor value`,variable_sensor_previous_value:`Previous value`,variable_sensor_property:`Changed property`,variable_sensor_type:`Sensor type`,variable_sensor_camera:`Camera ID`,variable_webhook_body:`Webhook body`,variable_webhook_data:`Webhook data (base64)`,variable_webhook_method:`HTTP method`,variable_webhook_headers:`Headers (JSON)`,variable_mqtt_topic:`Topic`,variable_mqtt_payload:`Payload`,variable_geo_event:`Geofence event`,variable_geo_user:`User`,variable_geo_zone:`Zone`,variable_geo_lat:`Latitude`,variable_geo_lon:`Longitude`,variable_geo_distance:`Distance (m)`,variable_system_event_type:`Event type`,variable_system_camera_id:`Camera ID`,variable_system_camera_name:`Camera name`,variable_system_plugin_name:`Plugin name`,variable_system_plugin_id:`Plugin ID`,variable_system_status:`Status`,variable_system_property:`Property`,variable_system_sensor_id:`Sensor ID`,variable_system_sensor_type:`Sensor type`,variable_system_sensor_name:`Sensor name`,variable_snapshot:`Snapshot (base64)`,variable_snapshot_data_uri:`Snapshot (data URI)`,variable_http_status:`HTTP status`,variable_http_body:`Response body`,variable_http_base64:`Response (data URI)`,variable_http_json:`Response JSON`,variable_plugin_detected:`Detected`,variable_plugin_labels:`Labels`,variable_plugin_detections:`Detections (JSON)`,variable_plugin_result:`Result (JSON)`,variable_plugin_duration:`Duration (ms)`,variable_camera_id:`Camera ID`,variable_camera_name:`Camera name`,variable_repeat_index:`Repeat index (0-based)`,variable_repeat_iteration:`Repeat iteration (1-based)`,variable_repeat_total:`Repeat total`,variable_repeat_total_calls:`Total calls`,variable_repeat_elapsed_ms:`Elapsed (ms)`,variable_repeat_elapsed_sec:`Elapsed (s)`,variable_previous_success:`Previous action succeeded`,variable_previous_result:`Previous action result`,variable_value_active:`Active`,variable_value_ended:`Ended`,variable_value_enter:`Enter`,variable_value_leave:`Leave`,lock_state_secured:`Locked`,lock_state_unsecured:`Unlocked`,lock_state_unknown:`Unknown`,garage_state_open:`Open`,garage_state_closed:`Closed`,garage_state_opening:`Opening`,garage_state_closing:`Closing`,garage_state_stopped:`Stopped`,securitySystem_state_stay_arm:`Home (Stay)`,securitySystem_state_away_arm:`Away`,securitySystem_state_night_arm:`Night`,securitySystem_state_disarmed:`Disarmed`,securitySystem_state_alarm_triggered:`Alarm triggered`,battery_state_not_chargeable:`Not chargeable`,battery_state_not_charging:`Not charging`,battery_state_charging:`Charging`,battery_state_full:`Fully charged`,http_url:`URL`,http_method:`Method`,http_body:`Body`,http_headers:`Headers`,http_header_name:`Name`,http_header_value:`Value`,http_add_header:`Add header`,switch_cases:`Cases`,switch_cases_placeholder:`Add case value`,switch_cases_hint:`Press Enter to add a case. Each case creates a separate output.`,switch_cases_suggested:`Suggested values:`,condition_operator:`Operator`,operator_equals:`equals`,operator_not_equals:`not equals`,operator_greater:`greater than`,operator_less:`less than`,operator_greater_equal:`greater or equal`,operator_less_equal:`less or equal`,operator_contains:`contains`,operator_starts_with:`starts with`,operator_ends_with:`ends with`,condition_value:`Value`,condition_value_placeholder:`e.g. 0.8, true, person`,sensor_value_state:`State`,sensor_value_variable:`Use a variable`,sensor_value_fixed:`Fixed value`,sensor_value_variable_placeholder:`Insert a variable from below`,variable_name:`Variable Name`,variable_name_hint:`A unique name to reference this value later.`,variable_value_placeholder:`Select or type a value`,variable_value_hint:`Select a value from the connected node or type a custom value.`,delay_duration:`Duration`,delay_unit:`Unit`,unit_seconds:`Seconds`,unit_minutes:`Minutes`,unit_hours:`Hours`,condition_time:`Time Range`,condition_time_desc:`Check if current time is within a range.`,condition_time_info:`Evaluates to true if current time is within the specified range. Supports overnight ranges (e.g. 22:00 - 06:00).`,condition_time_start:`Start Time`,condition_time_end:`End Time`,condition_time_days:`Days`,condition_time_days_all:`All days`,day_monday:`Monday`,day_tuesday:`Tuesday`,day_wednesday:`Wednesday`,day_thursday:`Thursday`,day_friday:`Friday`,day_saturday:`Saturday`,day_sunday:`Sunday`,action_camera_control:`Camera Control`,action_camera_control_desc:`Change camera settings like snooze, detection sensitivity, etc.`,camera_select:`Select camera`,camera_control_properties:`Properties to change`,camera_control_properties_hint:`Enable the properties you want to change and set their values.`,camera_prop_snooze:`Snooze Detections`,camera_prop_disabled:`Disable Camera`,camera_prop_recording:`Enable Recording`,camera_prop_recording_mode:`Recording Mode`,camera_prop_recording_prebuffer:`Recording Pre-Buffer (s)`,camera_prop_ptz_autotrack:`PTZ Autotrack`,camera_prop_object_confidence:`Object Confidence`,camera_prop_suppress_static:`Ignore Stationary Objects`,camera_prop_face_confidence:`Face Confidence`,camera_prop_plate_confidence:`Plate Reading Confidence`,camera_prop_plate_min_length:`Minimum Plate Length`,camera_prop_hq_snapshots:`HQ Snapshots`,camera_prop_motion_timeout:`Motion Timeout (s)`,camera_prop_motion_resolution:`Motion Resolution`,camera_prop_audio_timeout:`Audio Timeout (s)`,camera_prop_audio_min_decibels:`Audio Min Decibels`,camera_prop_audio_confidence:`Audio Confidence`,camera_prop_sensor_timeout:`Sensor Timeout (s)`,camera_prop_cascade_detection:`Cascade Detection`,camera_prop_cascade_timeout:`Cascade Timeout (s)`,camera_prop_fps:`FrameWorker FPS`,camera_prop_auto_refresh:`Snapshot Auto-Refresh`,camera_prop_snapshot_interval:`Snapshot Interval (s)`,camera_prop_snapshot_ttl:`Snapshot TTL (s)`,trigger_geofence:`Geofence`,trigger_geofence_desc:`Triggered when a user enters or leaves a geographic zone.`,geofence_zone_name:`Zone Name`,geofence_zone_name_placeholder:`e.g. Home`,geofence_latitude:`Latitude`,geofence_longitude:`Longitude`,geofence_radius:`Radius (meters)`,geofence_event:`Trigger on`,geofence_event_enter:`Enter zone`,geofence_event_leave:`Leave zone`,geofence_event_both:`Enter & Leave`,geofence_users:`Tracked Users`,geofence_users_placeholder:`Select users`,geofence_users_hint:`Only trigger for these users. Each tracked user gets their own secret below — a reporter can only report for a user whose secret it holds.`,geofence_url:`Location URL`,geofence_url_hint:`Send POST with {'{'} lat: number, lon: number, user: string, timestamp: number {'}'} as JSON body. timestamp = current Unix time in ms; it is signed and must be within 5 minutes (replay protection).`,geofence_secret:`HMAC Secrets (per user)`,geofence_secret_hint:`Each user signs with their own secret: X-Webhook-Signature = HMAC-SHA256(body, that user's secret).`,geofence_secret_save_hint:`Add the users to track above, then save the automation to generate the location URL and a secret per user.`,geofence_use_my_location:`My location`,geofence_map_hint:`Drag the marker to set the zone center.`,geofence_location_error:`Location unavailable. Set the zone center manually on the map.`},camera_events:{no_events:`No recent events`,title:`Recent Events`},camera_options:{overview:`Overview`,overview_status:`Status`,overview_sources:`Sources`,overview_last_motion:`Last Motion`,overview_motion_active:`Active`,overview_no_motion:`No motion detected`,accessories:`Accessories`,advanced:`Advanced`,audio_state:`Audio state`,battery_state:`Battery state`,branding:`Branding`,categories:`Categories`,category_audio_detection:`Audio Detection`,category_camera_controller:`Camera Controller`,category_controls:`Controls`,category_hub:`Hub`,category_motion_detection:`Motion Detection`,category_object_detection:`Object Detection`,category_ptz:`PTZ`,category_sensors:`Sensors`,chip_audioDetection:`Audio detection`,chip_cameraController:`Camera`,chip_hub:`Hub`,chip_more:`More`,chip_motionDetection:`Motion detection`,chip_objectDetection:`Object detection`,chip_plugins:`Plugins`,chip_ptz:`PTZ`,chip_controls:`Controls`,chip_sensors:`Sensors`,chip_detection:`Detection`,chip_core:`Core`,chip_accessories:`Accessories`,detection:`Detection`,provides:`Provides`,sensor_types:`Sensor Types`,sensors:`Sensors`,sensor_type_motion:`Motion`,sensor_type_object:`Object`,sensor_type_objectAssist:`Object Assist`,sensor_type_audio:`Audio`,sensor_type_face:`Face`,sensor_type_licensePlate:`License Plate`,sensor_type_classifier:`Classifier`,sensor_type_ptz:`PTZ`,sensor_type_light:`Light`,sensor_type_siren:`Siren`,sensor_type_doorbell:`Doorbell`,sensor_type_contact:`Contact`,sensor_type_battery:`Battery`,sensor_type_switch:`Switch`,sensor_type_lock:`Lock`,sensor_type_temperature:`Temperature`,sensor_type_humidity:`Humidity`,sensor_type_occupancy:`Occupancy`,sensor_type_smoke:`Smoke`,sensor_type_leak:`Leak`,sensor_type_garage:`Garage`,sensor_type_clip:`CLIP`,sensor_type_securitySystem:`Security System`,doorbell_state:`Doorbell state`,enabled_extension:`Enabled extension`,frame_worker:`Frame Worker`,general:`General`,interface:`Interface`,light_state:`Light state`,manage_plugins:`Manage plugins`,model:`Model`,more_plugins:`More plugins`,motion_detection:`Motion detection`,motion_state:`Motion state`,name:`Name`,native:`Native`,no_accessories:`No accessories available`,no_config:`No configuration available`,no_sensors:`No sensors available`,sensor_display_name:`Sensor Name`,no_plugins_available:`No plugins available`,no_plugins_enabled:`No plugins enabled`,no_plugins_found:`No plugins found`,object_detection:`Object detection`,object_assist:`Object assist`,object_state:`Object state`,plugin:`Plugin`,ptz_autotrack:`Autotrack`,plugin_settings:`Plugin settings`,sensor_settings:`Sensor settings`,virtual_sensors:`Virtual Sensors`,virtual_sensors_hint:`Virtual sensors bring external devices and states into camera.ui. They are controlled from the overview tab or by automations.`,virtual_sensors_empty:`No virtual sensors on this camera yet.`,virtual_sensor_create:`Create Virtual Sensor`,virtual_sensor_created:`Virtual sensor created`,virtual_sensor_delete:`Delete Virtual Sensor`,virtual_sensor_delete_confirm:`Are you sure you want to delete this virtual sensor? Automations referencing it will stop working.`,source_delete:`Remove Source`,source_delete_confirm:`Remove the source "{name}"? The change applies when you save.`,virtual_sensor_name_placeholder:`e.g. Front Door`,general_hint:`Changes here only affect how the camera appears in camera.ui. Disabling a camera stops all streams and detections until it is enabled again.`,branding_hint:`Purely informational and has no effect on functionality. Useful to keep track of your hardware.`,interface_hint:`Affects playback and layout, not the camera itself. Adjust the streaming mode if live video does not start reliably on your devices.`,detection_hint:`Defines how sensitive this camera reacts to events. Higher confidence and longer timeouts mean fewer but more reliable events.`,ptz_autotrack_hint:`When enabled, the camera automatically pans to keep selected object types in view.`,recording:`Recording`,recording_hint:`Controls if and how this camera is recorded. An installed NVR plugin does the recording.`,recording_requires:`No NVR plugin assigned. These settings apply as soon as one is installed.`,zones_hint:`Without zones, the whole image triggers events. Zones restrict detections to the areas that matter, ignore zones drop detections inside them, and lines report objects crossing them.`,snapshot_hint:`Snapshots are used for previews and notifications. Shorter intervals keep them fresh but increase load on the camera.`,frame_worker_hint:`The frame worker analyzes the video stream for detections. Only change these values if detections are delayed or the system load is too high.`,zones_empty:`No zones or lines on this camera yet.`,zone_entry_zone:`Zone`,zone_entry_privacy_mask:`Ignore zone`,zone_entry_line:`Line crossing`,zone_entry_delete:`Delete`,zone_entry_delete_confirm:`Are you sure you want to delete this entry?`,recordings:`Recordings`,settings:`Settings`,siren_state:`Siren state`,source:`Source`,snapshot:`Snapshot`,streaming_mode:`Streaming mode`,unknown:`Unknown`,zones:`Zones`,detected:`Detected`,active:`Active`,ringing:`Ringing`,open:`Open`,closed:`Closed`},camera_table:{cameras:`Cameras`,name:`Name`,idle:`Idle`,offline:`Offline`,online:`Online`,connecting:`Connecting`,partial:`Partial`,error:`Error`,status:`Status`},battery_info:{charging:`Charging...`,fully_charged:`Fully charged`,not_chargeable:`Not chargeable`,critically_low:`Critically low`,low:`Low`,ready:`Ready`},charts:{no_data:`No data available`},contact_sensor:{open:`Open`,closed:`Closed`},occupancy_sensor:{occupied:`Occupied`,empty:`Empty`},smoke_sensor:{detected:`Smoke Detected`,clear:`Clear`},leak_sensor:{detected:`Leak Detected`,clear:`Clear`},garage_control:{open:`Open`,closed:`Closed`,opening:`Opening`,closing:`Closing`,stopped:`Stopped`},detection:{detected:`Detected`,idle:`Idle`},detection_interface:{audio_detected:`Audio detected`,audio_not_detected:`Audio not detected`,audio_required:`Audio required`,detect:`Detect`,drop_or_select_audio_to_detect:`Drop or select audio to detect`,drop_or_select_image_for_semantic_search:`Drop or select image for semantic search`,drop_or_select_image_to_classify:`Drop or select image to classify`,drop_or_select_image_to_detect_faces:`Drop or select image to detect faces`,drop_or_select_image_to_detect_license_plates:`Drop or select image to detect license plates`,drop_or_select_image_to_detect_objects:`Drop or select image to detect objects`,drop_or_select_video_to_detect_motion:`Drop or select video to detect motion`,file_size_error:`File size error`,image_required:`Image required`,interface_config:`Interface configuration`,no_interface_config:`No interface configuration available`,only_one_audio_allowed:`Only one audio allowed`,only_one_image_allowed:`Only one image allowed`,only_one_video_allowed:`Only one video allowed`,video_required:`Video required`},notification_interface:{template:`Notification template`,title:`Title`,title_required:`Title is required`,subtitle:`Subtitle`,body:`Body`,severity:`Severity`,severity_info:`Info`,severity_warn:`Warning`,severity_error:`Error`,severity_critical:`Critical (DND-bypass)`,tag:`Tag`,image_url:`Image URL`,deep_link:`Deep link`,data:`Data`,data_key:`Key`,data_value:`Value`,add_data:`Add field`,targets:`Targets`,targets_hint:`Pick which devices receive this test. Leave empty to send to all registered devices.`,all_devices:`All devices`,no_devices:`No devices registered for this notifier`,settings:`Notifier settings`,send_test:`Send test`,sent:`Test notification sent`},clip_interface:{enter_query:`Describe what you see...`,search:`Search`},doorbell_trigger:{ringing:`Ringing!`,ready:`Ready`},dialog:{open:`Open`,components:{new_camera:{add_camera:`Add camera`,add_camera_description:`Add a camera connected to your local network`,camera:`Camera`,discover_cameras:`Discover cameras`,discover_cameras_description:`Search for cameras in your local network`,no_cameras_found:`No cameras found`,no_schema_available:`No connection form available for this device type`,protocol_info:`Information about the selected protocol`,scan_again:`Scan again`,search_camera:`Search camera`,source:`Source`,test_source:`Test camera source`,title:`New camera`,unknown:`Unknown`}},message:{confirm_clear_log:`Are you sure you want to clear the log?`,confirm_remove:`Are you sure you want to remove this camera?`,confirm_remove_selected:`Are you sure you want to remove {count} camera(s)?`,confirm_remove_layout:`Are you sure you want to remove this layout?`,confirm_reset_server:`Are you sure you want to reset the server?`,confirm_restart_go2rtc:`Are you sure you want to restart the Go2RTC?`,confirm_restart_plugin:`Are you sure you want to restart this plugin?`,confirm_restart_server:`Are you sure you want to restart the server?`,confirm_restore:`Are you sure you want to restore this backup?`,confirm_delete_backup:`Are you sure you want to delete "{filename}"?`,confirm_uninstall_plugin:`Are you sure you want to uninstall this plugin?`,uninstall_remove_storage:`Also delete stored data`,uninstall_remove_storage_hint:`Permanently removes this plugin's settings, databases and caches.`,compatibility_engine:`Requires {engine} {required} (installed: {current})`,confirm_unregister_server:`Are you sure you want to unregister the server?`,confirm_enable_cloud:`Allow remote access to this server via the camera.ui cloud?`,confirm_disable_cloud_remote:`Disabling cloud access will end your current remote session. You will be redirected to the cloud sign-in. Continue?`,confirm_disable_cloud_local:`Disabling cloud access will disconnect remote sessions that use the cloud. Local connections remain unaffected. Continue?`,intercom_info:`Speak simultaneously to all cameras in this view that have intercom`},title:{config:`Configuration`,confirm:`Confirm`,details:`Details`,create_new_user:`New user`,edit_dnd:`Edit DND`,create_room:`New Room`,edit_layout:`Edit layout`,edit_user:`Edit user`,edit_view:`Edit view`,information:`Information`,install:`Install`,install_version:`Install version`,intercom:`Intercom`,log:`Log`,new_dnd:`New DND`,new_view:`New view`,new_zone:`New zone`,plugin_config:`Plugin config`,preview:`Preview`,remove_layout:`Remove layout`,reset_server:`Reset server`,restart:`Restart`,result:`Result`,search_plugin:`Search plugin`,update:`Update`,unknown:`Unknown`,unregister_server:`Unregister server`,zone:`Zone`,zone_editor:`Zone editor`}},form:{button:{add:`Add`,add_source:`Add source`,create_room:`Create new room`,add_view:`Add view`,apply:`Apply`,back:`Back`,biometric_login:`Sign in with Face ID`,cancel:`Cancel`,connect_cloudflare:`Connect Cloudflare`,copy:`Copy`,copy_url:`Copy URL`,disable:`Disable`,disconnect:`Disconnect`,open_in_browser:`Open in browser`,test_connection_success:`Success`,test_connection_error:`Error`,enable:`Enable`,change_view:`Change view`,clear:`Clear`,close:`Close`,collapse:`Collapse`,continue:`Continue`,create_new_user:`Create new user`,download:`Download`,download_backup_archive:`Download backup archive`,edit:`Edit`,edit_zones:`Edit zones`,expand:`Expand`,finish:`Finish`,go_to_message:`Go to message`,home:`Home`,install:`Install`,login:`Login`,logout:`Logout`,logout_all:`Logout all`,manage:`Manage`,mark_as_read:`Mark as read`,next:`Next`,previous:`Previous`,register_server:`Register server`,reconnect_server:`Reconnect`,reload:`Reload`,remove:`Remove`,reset:`Reset`,restart:`Restart`,restore_backup_archive:`Restore backup archive`,restore_and_restart:`Restore and restart`,run_now:`Run now`,save:`Save`,save_and_restart:`Save and restart`,test_connection:`Test connection`,update_profile:`Update profile`,change_password:`Change password`,update:`Update`,uninstall:`Uninstall`,unregister:`Unregister`,unregister_server:`Unregister server`},error:{no_cameras_selected:`No cameras selected`,no_view_selected:`No view selected`},hint:{aspect_ratio:`Forces the camera aspect ratio to the selected value`,aspect_ratio_custom:`Custom ratio ({ratio}:1) applied`,aspect_ratio_invalid:`Use a width:height ratio, e.g. 16:9 or 21:9`,aspect_ratio_required:`Enter a ratio like 16:9`,audio_codec:`The audio codec detected for this stream`,auto_refresh:`Automatically refreshes the snapshot at regular intervals`,cache_time:`Time in seconds used for the camera image cache`,camera_name:`Unique name to identify this camera in the system`,room:`Assign this camera to a room for grouping`,room_select:`Select a room or create a new one`,confidence:`The required confidence level for object detection`,connections:`Number of active connections currently using this stream`,cloud_access_enabled_info:`Enables the cloud access for this server`,cloudflare_info:`Enables the access to the server via Cloudflare`,cloudflare_mode_info:`Provides a public hostname through Cloudflare's network.`,cloudflare_url_info:`Ephemeral public URL — changes on every restart.`,cloudflare_variant_quick:`A quick ephemeral tunnel without a Cloudflare account.`,cloudflare_variant_token:`Your own domain via a tunnel token from the Cloudflare dashboard.`,cloudflare_variant_managed:`Your own domain via OAuth login. Tunnel and DNS are set up automatically.`,cloudflare_hostname_info:`The domain must already be set up as a zone in your Cloudflare account.`,cloudflare_token_info:`From the Cloudflare dashboard.`,cloudflare_tunnel_id_info:`Identifier of the currently active tunnel.`,cloudflare_token_already_set:`Token is set. Leave empty to keep, or type a new token to replace.`,cloudflare_managed_idle:`Click Connect to authorise this server with your Cloudflare account.`,cloudflare_managed_awaiting_login:`Open the URL below in a browser and authorise the zone for "{hostname}".`,cloudflare_managed_creating_tunnel:`Creating tunnel...`,cloudflare_managed_setting_dns:`Setting up DNS record for {hostname}...`,cloudflare_managed_running:`Tunnel is running.`,custom_domain_info:`Enables the access to the server via a custom domain`,custom_domain_mode_info:`Use your own domain pointing to this server's HTTPS port via DNS or a reverse proxy.`,default_settings_page:`The default page shown when opening settings`,disable_camera:`Deactivates the camera and stops all activities. The camera will still be displayed`,snooze_camera:`Pauses all detections. Streams and snapshots remain active.`,suppress_static:`Objects that stay put across events — like a car parked in the driveway — don't trigger new object events until they move again.`,ptz_autotrack:`Automatically follow detected objects using the camera's pan/tilt controls.`,ptz_autotrack_requires:`Requires a PTZ-capable camera with an assigned PTZ plugin.`,recording_enabled:`Record this camera.`,recording_mode:`Continuous records around the clock, event only around detections, adhoc only when started manually.`,recording_prebuffer:`Seconds of video kept before an event.`,recording_sources:`Stream qualities that get recorded. The lowest one is used for fast scrubbing.`,ptz_autotrack_target_labels:`Which object types the camera should follow.`,ptz_autotrack_min_confidence:`Only track detections with at least this confidence score.`,ptz_autotrack_trigger_dead_zone:`Target must leave this zone around the frame center before the camera starts moving. Larger values = calmer camera, smaller values = tighter centering.`,ptz_autotrack_tracking_speed:`How aggressively the camera moves to re-center the target. Higher = snappier, lower = smoother. Only for cameras that steer by continuous motion, others pick their own speed.`,ptz_autotrack_lead_ms:`How far ahead the camera aims along a moving target's path. The default covers the time the camera needs to move and settle. Lower it if the camera overshoots, raise it for fast targets. 0 turns prediction off.`,ptz_autotrack_pan_rate:`Calibrates how far each move step travels for your camera. Lower it if the camera stops short of the target, raise it if it overshoots.`,ptz_autotrack_return_home:`Move the camera back to its home position when no target is detected for a while.`,ptz_autotrack_home_wait:`How long to wait without a target before returning to the home position.`,frameworker_fps:`The number of frames per second used for the frame worker. '0' uses the native frame rate`,hq_snapshots:`Capture event thumbnails from the highest-resolution stream.`,motion_resolution:`Resolution preset for motion detection (low: fast, medium: balanced, high: accurate)`,hot_mode:`Keeps the connection to the camera active to minimize delay`,motion_timeout:`Time in seconds after the last motion trigger before the motion event ends (min. 10s)`,audio_timeout:`Time in seconds after the last audio trigger before the audio event ends (min. 10s)`,audio_min_decibels:`Audio frames below this volume level (in dBFS) are skipped. -100 = silence, 0 = maximum`,audio_confidence:`Recognized sounds below this confidence are ignored for events and automations`,face_confidence:`Faces below this confidence are ignored for events and automations`,plate_confidence:`Plate readings below this text recognition confidence are ignored`,plate_min_length:`Plate readings shorter than this are dropped as fragments`,sensor_timeout:`Time in seconds after the last sensor trigger before the event ends (min. 10s)`,sensor_triggers:`Select sensors that should also trigger the detection cascade (e.g., a contact sensor on a door triggers object detection)`,sensor_triggers_placeholder:`Select sensor triggers...`,onvif_url:`ONVIF-compatible URL for integration with other systems`,navbar_stay_collapsed:`Keeps the navbar collapsed, even on larger screens`,record_logs:`Record app logs so you can view and share them on the Console page for troubleshooting`,debug_verbose:`Enable verbose debug-level logs`,port_forward_info:`Enables the port forwarding for this server`,pip_source:`Select a camera source to display as Picture-in-Picture overlay`,refresh_interval:`Interval in seconds for automatic snapshot refresh`,rtsp_url:`RTSP URL for direct access to this stream from external applications`,preload:`Preloads the camera stream to reduce delay when opening the camera view`,muted:`Removes the audio track from this source`,show_bottombar_on_mobile:`Shows the bottom bar on mobile devices`,show_camera_events:`Shows camera events in the camera view`,source_name:`Unique identifier for this camera source`,source_protocol:`The protocol type of the stream source`,source_role:`Determines how this source is used (high/mid/low resolution for streaming, snapshot for images)`,source_url:`Paste the full stream URL including the protocol, e.g. rtsp://user:pass{'@'}192.168.1.50:554/stream`,source_detected_protocol:`Detected protocol: {protocol}`,source_urls:`Add more than one URL to let go2rtc combine codecs (e.g. video from one, audio from another) for optimal playback`,streaming_mode:`Stream transport protocol for the user interface. In 'auto' mode, the best mode is automatically selected`,streaming_source:`Camera source used for the stream — choose high, mid, or low resolution`,system_preference:`System setting for the user interface`,type_and_enter:`Type and press Enter`,use_for_snapshot:`Uses this source for snapshots (if no other suitable source exists)`,video_codec:`The video codec detected for this stream`},label:{aspect_ratio:`Aspect ratio`,aspect_ratio_custom:`Custom ratio`,audio_codec:`Audio codec`,auto_refresh:`Auto refresh`,cache_time:`Cache time`,camera:`Camera`,cameras:`Cameras`,changelog:`Changelog`,labels:`Labels`,cloudflare:`Cloudflare`,cloudflare_url:`Cloudflare URL`,cloudflare_variant:`Cloudflare variant`,cloudflare_variant_quick:`Quick Tunnel`,cloudflare_variant_token:`Named Tunnel (Token)`,cloudflare_variant_managed:`Named Tunnel (OAuth)`,hostname:`Hostname`,tunnel_id:`Tunnel ID`,tunnel_token:`Tunnel Token`,color:`Color`,confidence:`Object Confidence`,connections:`Connections`,stream_status:`Stream Status`,custom_domain:`Custom domain`,default_settings_page:`Default Settings page`,disabled:`Disabled`,snooze:`Snooze Detections`,suppress_static:`Ignore stationary objects`,ptz_autotrack:`PTZ Autotrack`,ptz_autotrack_enabled:`Enable autotrack`,recording_enabled:`Enable recording`,recording_mode:`Recording mode`,recording_prebuffer:`Pre-buffer`,recording_sources:`Recorded streams`,ptz_autotrack_target_labels:`Target Labels`,ptz_autotrack_min_confidence:`Minimum Confidence`,ptz_autotrack_trigger_dead_zone:`Dead Zone`,ptz_autotrack_tracking_speed:`Tracking Speed`,ptz_autotrack_lead_ms:`Motion Prediction`,ptz_autotrack_pan_rate:`Pan-Rate Calibration`,ptz_autotrack_return_home:`Return to home position`,ptz_autotrack_home_wait:`Wait before returning`,disconnected:`Disconnected`,domain:`Domain`,enabled:`Enabled`,external_port:`External port`,external_url:`External URL`,firmware_version:`Firmware version`,fps:`FPS`,hardware_version:`Hardware version`,hot_mode:`Hot mode`,hq_snapshots:`HQ event thumbnails`,language:`Language`,language_system:`System default`,layout_name:`Layout name`,manufacturer:`Manufacturer`,model:`Model`,motion_timeout:`Motion timeout`,audio_timeout:`Audio timeout`,audio_min_decibels:`Min. volume (dBFS)`,audio_confidence:`Audio confidence`,face_confidence:`Face confidence`,plate_confidence:`Plate confidence`,plate_min_length:`Min. plate length`,sensor_timeout:`Sensor timeout`,sensor_triggers:`Sensor Triggers`,name:`Name`,room:`Room`,room_default:`Default`,navbar_stay_collapsed:`Stay navbar collapsed`,record_logs:`Record logs`,debug_verbose:`Verbose logging`,new_password:`New password`,new_password_confirm:`Confirm new password`,none:`None`,onvif_url:`ONVIF URL`,password:`Password`,pip_source:`PiP Source`,port_forward:`Port forward`,preload:`Preload`,muted:`Mute audio`,refresh_interval:`Refresh interval`,remember_me:`Remember me`,motion_resolution:`Motion Resolution`,role:`Role`,rtsp_url:`RTSP URL`,select_all:`Select all`,select_cameras:`Select cameras`,serial_number:`Serial number`,server_addresses:`Server addresses`,server_version:`Server version`,settings:`Settings`,show_bottombar_on_mobile:`Show bottombar on mobile`,show_camera_events:`Show camera events`,source:`Source`,source_name:`Source name`,source_role:`Source role`,sources:`Sources`,streaming_mode:`Streaming mode`,streaming_source:`Streaming source`,support_url:`Support URL`,system_preference:`System preference`,theme:`Theme`,token:`Token`,type:`Type`,unknown:`Unknown`,url:`URL`,use_for_snapshot:`Use for snapshot`,username:`Username`,version:`Version`,video_codec:`Video codec`,views:`Views`,zone_name:`Zone name`},placeholder:{search:`Search...`},tooltip:{activity_mode_activity:`Activity`,activity_mode_always_on:`Always On`,activity_mode_standby:`Standby`,clear:`Clear`,console:`Console`,contain:`Contain`,cancel_selection:`Cancel selection`,select_cameras:`Select cameras`,select_all:`Select all cameras`,deselect_all:`Deselect all cameras`,snooze_selected:`Snooze detections for selected cameras`,unsnooze_selected:`Resume detections for selected cameras`,recording_on_selected:`Enable recording for selected cameras`,recording_off_selected:`Disable recording for selected cameras`,copied:`Copied`,copy_all:`Copy all`,delete:`Delete`,delete_selected:`Remove selected cameras`,disable_selected:`Disable selected cameras`,enable_selected:`Enable selected cameras`,disable_drag:`Disable drag`,disabled:`Disabled`,download:`Download`,edit:`Edit`,enable_drag:`Enable drag`,view_default:`Show all cameras`,view_grouped:`Group by room`,exclude:`Exclude`,finish:`Finish`,fullscreen_off:`Fullscreen off`,fullscreen_on:`Fullscreen on`,hide_timeline:`Hide timeline`,include:`Include`,intercom:`Intercom`,intersect:`Intersect`,logout:`Logout`,mode:`Mode`,mute:`Mute`,new:`New`,nvr_settings:`NVR Settings`,privacy_mask:`Ignore zone`,public_mask:`Detection zone`,resolution:`Resolution`,restart:`Restart`,show_timeline:`Show timeline`,show_pip:`Show PiP`,hide_pip:`Hide PiP`,source_role_auto:`Auto`,source_role_low:`Low Resolution`,source_role_mid:`Mid Resolution`,source_role_high:`High Resolution`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unknown`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unknown`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,undo:`Undo`,unmute:`Unmute`,update_available:`Update available`,zoom_in:`Zoom in`,zoom_out:`Zoom out`}},notification_menu:{clear_notifications:`Clear notifications`,mark_all_read:`Mark all as read`,mark_read:`Mark as read`,delete:`Delete`,debug:`Debug`,error:`Error`,info:`Info`,disabled:`Notifications are turned off`,disabled_hint:`Enable notifications to receive alerts here.`,open_settings:`Open settings`,no_notifications:`No notifications`,notifications:`Notifications`,short_days:`d`,short_hours:`hr`,short_minutes:`min`,short_months:`mo`,short_weeks:`wk`,short_years:`yr`,verbose:`Verbose`,warn:`Warning`},options_sidebar:{segment_tab_default:`Default`,segment_tab_overview:`Overview`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Settings`,segment_tab_sources:`Sources`},player:{activity_mode_activity:`Activity`,activity_mode_always_on:`Always On`,activity_mode_standby:`Standby`,add_shortcut_info:`Click on any place in the video to add a shortcut`,ai_descriptions:`AI descriptions`,capture_snapshot:`Capture snapshot`,copied:`Copied`,detections:`Detections`,expand:`Expand`,fast_forward:`Fast Forward 30s`,hide_pip:`Hide Picture-in-Picture`,edit_shortcuts:`Edit Shortcuts`,finish_editing:`Finish Editing`,hide_timeline:`Hide timeline`,live:`Live`,license_required:`License required`,log:`Log`,no_recording:`No recording`,open_camera:`Open camera`,options:`Options`,ptz:`PTZ`,ptz_go_to_home:`Go to home`,rewind:`Rewind 30s`,reconnecting:`Reconnecting...`,refresh_snapshot:`Refresh snapshot`,settings:`Settings`,share_camera:`Share Camera`,shortcuts:`Shortcuts`,show_pip:`Show Picture-in-Picture`,show_timeline:`Show timeline`,speed:`Speed`,shrink:`Shrink`,source_role_auto:`Auto`,source_role_low:`Low Resolution`,source_role_mid:`Mid Resolution`,source_role_high:`High Resolution`,source_role_snapshot:`Snapshot`,source_role_unknown:`Unknown`,stream_info:`Stream info`,stream_paused:`Stream paused to conserve resources. Click on stream to resume.`,streaming_mode_auto:`Auto`,streaming_mode_mse:`MSE`,streaming_mode_unknown:`Unknown`,streaming_mode_webcodecs:`WebCodecs`,streaming_mode_webrtc:`WebRTC`,toggle_pip:`Toggle PiP`,timelapse:`Timelapse`,timelapse_min_duration:`Timelapse requires at least 1 hour`,timelapse_off:`Timelapse: Off`,export:`Export`,intercom:`Intercom`,export_selection:`Export selection`,zones:`Zones`,heatmap:`Heatmap`,more:`More`,zoom_in:`Zoom in`,zoom_out:`Zoom out`},lock:{status_locked:`Locked`,status_unlocked:`Unlocked`,status_unknown:`Unknown`,status_locking:`Locking...`,status_unlocking:`Unlocking...`},security_system:{alarm_triggered:`Alarm triggered!`,reset:`Reset`,off:`Off`,home:`Home`,away:`Away`,night:`Night`,status_home_armed:`Home (Armed)`,status_away_armed:`Away (Armed)`,status_night_armed:`Night (Armed)`,status_disarmed:`Disarmed`,status_alarm:`ALARM!`,status_unknown:`Unknown`,status_arming:`Arming...`,status_disarming:`Disarming...`},oauth:{dialog_title:`Connect cloud account`,intro:`This plugin connects to {idp} to authorize:`,enter_code_at:`Open the page below and enter the code:`,waiting:`Waiting for authorization…`,connect:`Connect`,disconnect:`Disconnect`,connected_as:`Connected as {email}`,tooltip_connect:`Connect cloud account`,tooltip_connected:`Connected as {email}`,tooltip_authorizing:`Authorizing — click to view`,tooltip_error:`Last authorization attempt failed`,error_access_denied:`Authorization was denied`,error_expired:`The code expired — please try again`,error_generic:`Authorization failed`},plugin_card:{author:`Author`,compat_engine:`Requires {engine} {required} (currently {current})`,compat_platform:`Not supported on this system — requires {requirement}`,installed:`Installed`,no_description:`No description available`,restart:`Restart`,restart_required:`Restart required to apply the installed version`,select_version:`Select version`,settings:`Settings`,start:`Start`,status_disabled:`Disabled`,status_error:`Error`,status_incompatible:`Incompatible with this system — assign it to a compatible worker`,status_ready:`Ready`,status_started:`Started`,status_starting:`Starting`,status_stopped:`Stopped`,status_stopping:`Stopping`,status_unknown:`Unknown`,stop:`Stop`,uninstall:`Uninstall`,update:`Update`,update_available:`Update available`,updated:`Updated`,version:`Version`},plugin_search:{bugs:`Report a bug`,compatible_system:`Runs on this system`,incompatible_system:`Not compatible with this system`,incompatible_worker_hint:`You can still install it and run it on a compatible worker — assign it under Workers after installing.`,incompatible:`Incompatible`,category_ai_model:`AI Model`,category_automation:`Automation`,category_camera_source:`Camera Source`,category_detection:`Detection`,category_notification:`Notification`,category_other:`Other`,category_recording:`Recording`,category_utility:`Utility`,downloads_per_week:`{count} / week`,featured:`Featured`,filter_all_categories:`All categories`,filter_all_trust:`All sources`,filter_category:`Category`,filter_trust:`Trust`,homepage:`Homepage`,in_progress:`In progress`,plugins:`Plugins`,refresh:`Refresh`,repository:`Repository`,screenshots:`Screenshots`,sort_by:`Sort by`,sort_downloads:`Most downloaded`,sort_name:`Name`,sort_updated:`Recently updated`,trust_community:`Community`,trust_community_description:`Community plugin — not reviewed by the camera.ui team. Install at your own discretion.`,trust_official:`Official`,trust_official_description:`Official plugin published under the {'@'}camera.ui scope.`,trust_verified:`Verified`,trust_verified_description:`Community plugin reviewed and vouched for by the camera.ui team.`,updated_ago:`updated {time}`},plugin_types:{hub:`Hub`,cameraController:`Camera Controller`,motionDetection:`Motion Detection`,objectDetection:`Object Detection`,audioDetection:`Audio Detection`,ptz:`PTZ`},process_table:{empty:`No data available`,status_error:`Error`,status_ready:`Ready`,status_started:`Started`,status_starting:`Starting`,status_stopped:`Stopped`,status_stopping:`Stopping`,status_unknown:`Unknown`,system:`System`,title_cpu:`CPU`,title_cpu_load:`CPU load`,title_memory:`Memory`,title_memory_load:`Memory load`,title_name:`Name`,title_pid:`PID`},timeline:{fine_scrubbing:`Fine Scrubbing`,live:`Live`,today:`Today`,yesterday:`Yesterday`},toast:{backup_downloaded:`Backup file download successfully`,backup_restored:`Backup file restored successfully`,backup_scheduler_saved:`Backup scheduler updated`,backup_created:`Backup created successfully`,backup_deleted:`Backup deleted`,camera_added:`Camera added successfully`,camera_add_failed:`Failed to add camera`,camera_removed:`Camera removed successfully`,camera_updated:`Camera updated successfully`,cameras_removed:`Cameras removed successfully`,config_deleted:`Configuration deleted successfully`,config_go2rtc_deleted:`Go2RTC configuration deleted successfully`,config_go2rtc_updated:`Go2RTC configuration updated successfully`,config_updated:`Configuration updated successfully`,copied:`Copied`,copy_failed:`Copy failed`,error_see_console:`Error, see console`,frame_worker_restarted:`Frame worker restarted successfully`,go2rtc_restarted:`Go2RTC restarted successfully`,log_cleared:`Log cleared successfully`,no_version_selected:`No version selected`,plugin_config_updated:`Plugin configuration updated successfully`,plugin_disabled:`Plugin disabled successfully`,plugin_enabled:`Plugin enabled successfully`,plugin_installed:`Plugin installed successfully`,plugin_removed:`Plugin removed successfully`,plugin_request_sent:`Plugin request sent successfully`,plugin_restarted:`Plugin restarted successfully`,plugin_settings_updated:`Plugin settings updated successfully`,plugin_started:`Plugin started successfully`,plugin_stopped:`Plugin stopped successfully`,plugins_removed:`Plugins removed successfully`,password_updated:`Password updated successfully`,profile_updated:`Profile updated successfully`,probe_failed:`Failed to probe the source — please try again`,remote_access_not_available:`Remote access is not available`,pair_expired:`Pair code expired — please try again`,pair_denied:`Pairing was denied`,pair_init_failed:`Failed to start pairing`,remote_registered:`Server registered successfully`,remote_unregistered:`Server unregistered successfully`,remote_updated:`Remote access updated successfully`,mqtt_updated:`MQTT settings updated successfully`,mqtt_test_success:`Connection to the MQTT broker succeeded`,mqtt_test_failed:`Connection failed: {message}`,remote_test_success:`Connection test succeeded`,remote_test_failed:`Connection test failed: {message}`,server_name_updated:`Server name updated successfully`,server_resetted:`Server reset successfully`,server_restarted:`Server restarted successfully`,server_updated:`Server updated successfully`,something_wrong_happened:`Something went wrong.`,title_error:`Error`,title_info:`Info`,title_success:`Success`,title_warn:`Warning`,update_available_title:`Update available`,update_installed_detail:`New version of camera.ui is ready.`,update_now:`Update now`,update_applying:`Applying update…`,user_added:`User added successfully`,user_logged_out:`User logged out successfully`,user_removed:`User removed successfully`,user_updated:`User updated successfully`,users_removed:`Users removed successfully`,validation_failed:`Validation failed. Check console for more information`,view_added:`View added successfully`,view_removed:`View removed successfully`,view_updated:`View updated successfully`,views_removed:`Views removed successfully`,zone_updated:`Zone updated successfully`,zone_removed:`Zone removed successfully`,line_updated:`Line updated successfully`},upload_files:{drop_or_select_file:`Drop or select file`,only_one_file_allowed:`Only one file allowed`},instance_switcher:{manage:`Manage Instances`,not_logged_in:`Not logged in`,session_expired:`Session expired`,switching_to:`Switching to`,go_back:`Go Back`},user_menu:{account:`Account`,admin_panel:`Adminpanel`,config:`Configuration`,console:`Console`,logs:`Logs`,logout:`Logout`,plugins:`Plugins`,reload:`Reload`},user_table:{title_address:`Address`,title_device:`Device`,title_kind:`Type`,title_username:`Username`,you:`You`},view_box:{available_streams:`Available streams`,no_cameras:`No cameras available`},zone_editor:{base_labels:`Base`,edit_zones:`Edit zones`,zone:`Zone`,tab_zones:`Zones`,tab_lines:`Lines`}},connection:{offline:`Offline`,reconnected:`Reconnected`,reconnecting:`Reconnecting...`,degraded:`Syncing...`,restarting:`Restarting...`,retry:`Retry`,connecting_remote:`Connecting to your home server...`,unreachable:`Cannot reach your home server`,pick_server:`Pick another server`},restore:{title:`Restoring backup`,phase_uploading:`Uploading backup...`,phase_restoring:`Restoring...`,phase_restarting:`Restarting server...`,dont_close:`Please don't close this window.`},instances:{local:`Local`,unreachable:`Cannot reach {name} from this device`,switch_timeout:`Switching to {name} timed out`,two_factor_title:`Two-Factor Authentication`,two_factor_hint:`The account on "{name}" is protected with two-factor authentication. Enter the 6-digit code from your authenticator app.`,two_factor_completed:`Connected to {name}`,two_factor_failed:`Two-factor verification failed. Please try again.`,insecure_handoff_title:`Switch to insecure instance?`,insecure_handoff_message:`{name} is served over an unencrypted HTTP connection. To switch, your browser will navigate to the instance and your session tokens will be transferred via the URL. They are stripped immediately afterwards, but may be visible in browser history for a short time. Continue?`,insecure_handoff_confirm:`Continue`},general:{loading:`Loading...`,role_admin:`Admin`,role_user:`User`},navigation:{about:`About`,account:`Account`,adminpanel:`Adminpanel`,appearance:`Appearance`,backup:`Backup`,cameras:`Cameras`,camview:`Camview`,config:`Configuration`,console:`Console`,logs:`Logs`,extras:`Extras`,home:`Home`,nvr:`NVR`,plugins:`Plugins`,faces:`Faces`,menu:`Menu`,mqtt:`MQTT`,notifications:`Notifications`,permissions:`Permissions`,recordings:`Recordings`,remote:`Remote Access`,settings:`Settings`,system:`System`,automations:`Automations`,terminal:`Terminal`,user:`Users`,instances:`Instances`,workers:`Workers`},navigation_description:{account_description:`Manage account settings & experience.`,appearance_description:`Manage app appearance & interface.`,backup_description:`Manage, schedule backups & restore data.`,notifications_description:`Manage notification rules and devices.`,permissions_description:`Device permissions for microphone, location and notifications.`,mqtt_description:`Connect camera.ui to an MQTT broker.`,nvr_description:`Manage Network Video Recorder system.`,recordings_description:`Manage recordings & storage options.`,remote_access_description:`Manage remote access and connection settings.`,system_description:`Manage system, monitor status & tasks.`,user_description:`Manage users, roles & permissions.`},shares:{actions:`Actions`,code:`Access Code`,done:`Done`,create:`Create`,create_share:`Share Camera`,code_save_hint:`Save this code — it cannot be retrieved later.`,copy_link:`Copy link`,created:`Created`,days:`days`,expires:`Expires`,hour:`hour`,hours:`hours`,label:`Label`,label_placeholder:`Optional label`,link:`Share Link`,max_viewers:`Max Viewers`,no_shares:`No active share links`,revoke:`Revoke`,share_created:`Share link created`,share_revoked:`Share link revoked`,share:`Share`,share_camera:`Share Camera`,share_title:`Camera Stream`,source:`Source`,ttl:`Expires after`,unlimited:`Unlimited`,viewers:`Viewers`},views:{404:{error_message:`We've looked everywhere, but this page seems to be playing hide and seek... and it's winning! Let's get you back to somewhere that exists.`},adminpanel:{core:`Core`,frameworker:`Frameworker`,general:`General`,logged_in_users:`Logged in users`,no_core:`No core processes available`,no_frameworkers:`No frameworkers available`,no_plugins:`No plugins available`,no_system:`No system data available`,no_users:`No logged in users`,plugins:`Plugins`,title:`Adminpanel`},camera:{cameras:`Cameras`,camera_disabled:`This camera is disabled`,camera_disabled_hint:`Enable this camera to start the live stream and detection`,camera_snoozed:`Detections paused`,detections:`Detections`,events:`Events`,recordings:`Recordings`,shares:`Shares`,timeline:`Timeline`,title:`Camera`},cameras:{add_camera:`Add camera`,events:`Events`,get_started:`Get started`,new_camera:`New camera`,no_cameras:`No cameras available`,no_cameras_hint:`Add your first camera to start monitoring and recording.`,title:`Cameras`},devices:{address:`Address`,confirm:`Add camera`,confirm_title:`Confirm camera`,connect:`Connect`,device_hidden:`Device hidden`,device_unhidden:`Device unhidden`,hide:`Hide`,hide_hidden:`Hide hidden devices`,managed_source_hint:`This source is managed by camera.ui and cannot be edited.`,manufacturer:`Manufacturer`,model:`Model`,name:`Name`,native_id:`Native ID`,no_settings_required:`No additional settings required for this device.`,no_devices:`No devices found`,no_devices_hint:`Make sure your cameras are powered on and connected to the same network.`,no_schema:`No connection schema available for this device`,plugin:`Plugin`,provider:`Provider`,rescan:`Rescan`,rescan_error:`Rescan failed. See console for more information.`,rescan_success:`Rescan completed successfully`,scanning:`Scanning...`,scanning_hint:`Looking for cameras on your network. This may take a moment.`,show_hidden:`Show hidden devices`,status_added:`Added`,status_adopted_cameras:`Adopted cameras`,status_adopting:`Connecting...`,status_discovered:`Discovered`,no_discovered:`No devices discovered yet`,status_error:`Error`,status_unknown:`Unknown`,title:`Devices`,unhide:`Unhide`,unknown:`Unknown`},camview:{all_cameras:`All cameras`,cameras:`Cameras`,new_dnd:`New DND`,new_view:`New View`,rearrange:`Rearrange`,rearrange_done:`Done`,rearrange_auto:`Auto-arrange`,rearrange_fit_aspect:`Fit aspect ratios`,no_dnds_configured:`No DNDs configured`,no_views_configured:`No views configured`,no_cameras:`No cameras available`,title:`Camview`},config:{title:`Configuration`},console:{title:`Console`,copy:`Copy`,export:`Export / share`,source_logs:`Logs`,source_connection:`Connection`,clear:`Clear`,refresh:`Refresh`,empty:`No log entries yet.`,recording_off:`Recording is off — enable it in Settings → Appearance to capture logs.`,copied:`Logs copied`,copy_failed:`Copy failed`,cleared:`Logs cleared`,levels:`Levels`,level:{debug:`Debug`,log:`Log`,info:`Info`,warn:`Warning`,error:`Error`}},logs:{title:`Logs`,groups:{system:`System`,plugins:`Plugins`,cameras:`Cameras`}},home:{title:`Home`},terminal:{title:`Terminal`,connected:`Connected`,connecting:`Connecting...`,disconnected:`Disconnected`,new_tab:`New tab`,reconnect:`Reconnect`},automations:{title:`Automations`,select:`Select automations`,select_all:`Select all`,deselect_all:`Deselect all`,enable_selected:`Enable selected`,disable_selected:`Disable selected`,delete_selected:`Delete selected`,delete_selected_confirm:`Delete {count} selected automation(s)?`,run_history:`Run history`,no_runs:`No runs yet`,run_success:`Success`,run_error:`Error`,run_completed:`Completed`,run_skipped:`Skipped`,run_warnings:`Warnings`,create:`Create Automation`,delete:`Delete Automation`,delete_confirm:`Are you sure you want to delete this automation?`,duplicate:`Duplicate`,enable:`Enable`,disable:`Disable`,enabled:`Enabled`,disabled:`Disabled`,last_run:`Last run`,never_run:`Never`,requires_update:`This automation references a deleted camera or sensor and was disabled. Edit the flow to fix it.`,no_automations:`No automations yet`,search:`Search automations...`,flow_name_placeholder:`Automation name`,import_blueprint:`Import Blueprint`,import_success:`Blueprint imported successfully`,import_invalid:`Invalid blueprint file`,browse_community:`Browse community automations`},automation:{title:`Automation`,save:`Save`,saved:`Automation saved`,save_failed:`Failed to save automation`,triggered:`Automation triggered`,trigger_failed:`Failed to trigger automation`,output:`Output`,unsaved_title:`Unsaved Changes`,unsaved_message:`You have unsaved changes. Do you want to discard them?`,discard:`Discard`,run:`Run`,add_step:`Add Step`,suppress_duplicates:`Ignore repeated events`,suppress_duplicates_hint:`Skip identical trigger events that fire in quick succession.`,single_execution:`Wait for completion`,single_execution_hint:`Block new triggers while the automation is still running.`,undo:`Undo`,redo:`Redo`,export_blueprint:`Export Blueprint`,clear:`Clear`,clear_confirm:`Are you sure you want to remove all nodes and connections?`,delete_node:`Delete`,node_palette:`Nodes`,node_config:`Configuration`,no_nodes:`Drag a node from the sidebar to get started`,no_nodes_mobile:`Tap the + button to add a node`,no_node_selected:`Select a node to configure it`,untitled:`Untitled Automation`},firststeps:{complete:`Complete`,enjoy:`Enjoy!`,finish_message:`You have successfully completed the first steps. You can now start using the application.`,from_backup:`Restore from Backup`,new_installation:`New Installation`,slogan:`The modern solution for professional video surveillance.`,start:`Start`,start_message:`Please choose whether you want to start a new installation or restore from a backup.`,step_account:`Account`,step_appearance:`Appearance`,step_finish:`Finish`,step_welcome:`Welcome`,title:`First steps`,welcome_to:`Welcome to`},plugin:{changelog:`Changelog`,disabled_info:`Plugin is disabled`,no_cameras:`No cameras available`,no_changelog:`No changelog available`,no_readme:`No readme available`,no_settings:`No settings available`,assignment_requires_running:`Start the plugin to change camera assignments.`,nvr_settings_hint:`NVR settings are configured under Settings → Recordings.`,nvr_settings_button:`Open recording settings`,plugin_is_disabled:`Plugin is disabled`,readme:`Readme`,segment_tab_cameras:`Cameras`,segment_tab_interface:`Interface`,segment_tab_plugins:`Plugins`,segment_tab_settings:`Settings`,settings:`Settings`,title:`Plugin`,settings_tab_tooltip:`Plugin Settings`,cameras_tab_tooltip:`Camera Assignment`,motion_detection_tab_tooltip:`Motion Detection`,object_detection_tab_tooltip:`Object Detection`,audio_detection_tab_tooltip:`Audio Detection`,face_detection_tab_tooltip:`Face Detection`,license_plate_detection_tab_tooltip:`License Plate Detection`,classifier_detection_tab_tooltip:`Image Classification`,clip_detection_tab_tooltip:`CLIP Semantic Search`,notification_tab_tooltip:`Notifications`},plugins:{allow_build_scripts:`Allow plugin build scripts`,allow_build_scripts_hint:`Let plugins run install scripts and native builds when installing or updating. Only enable if you trust the plugins you install.`,beta_versions:`Beta versions`,beta_versions_hint:`Show pre-release versions in the plugin version picker and offer beta releases as available updates.`,no_plugins:`No plugins available`,search:`Search plugins...`,search_plugins:`Search plugins`,settings:`Plugin settings`,title:`Plugins`},menu:{title:`Menu`,view_profile:`View profile`,reload:`Reload`,switch_server:`Switch server`,logout:`Logout`,section_app:`App`,section_system:`System`,section_actions:`Actions`},app_lock:{title:`App locked`,subtitle:`Authenticate to unlock camera.ui`,unlock:`Unlock`},about:{title:`About`,versions:`Versions`,version_app:`App`,version_server:`Server`},faces:{title:`Faces`,known_faces:`Known Faces`,unknown:`Unknown`,unknown_faces:`Unknown Faces`,no_faces_yet:`No faces enrolled yet.`,no_known_faces:`No known faces enrolled yet.`,no_unknown_faces:`No unknown faces detected.`,no_ungrouped_faces:`No ungrouped faces.`,clear_all:`Clear all`,add_face:`Add Face`,assign:`Assign`,skip:`Skip`,new_person:`+ New person`,images:`images`,training_images:`training images`,delete_person:`Delete Person`,name:`Name`,enter_name:`Enter name`,face_plugin:`Face Detection Plugin`,select_plugin:`Select plugin`,drop_image:`Drop image here or click to browse`,faces_detected:`face(s) detected`,no_face_detected:`No face detected in image`,enroll:`Enroll`,enter_person_name:`Enter person name`,face_enrolled:`Face enrolled successfully`,face_assigned:`Face assigned successfully`,person_deleted:`Person deleted`,image_removed:`Training image removed`,all_unknown_cleared:`All unknown faces cleared`,faces_in_cluster:`faces in group`,assign_cluster:`Assign group`,ungrouped:`Ungrouped`,select:`Select images`,discard:`Discard`,remove_from_cluster:`Remove from group`,show_all:`Show all ({count})`,show_less:`Show less`,rescan_events:`Rescan existing events`,rescan_complete:`{count} face(s) updated in existing events`,rescan_no_matches:`No new matches found`},recordings:{title:`Recordings`,export:{title:`Export recordings`,cameras:`Cameras`,cameras_placeholder:`Select cameras`,range:`Time range`,from:`From`,to:`To`,range_hint:`One file per camera and day — the first and last day cover the selected time, days in between are full days.`,invalid_range:`“To” must be after “From”.`,quality:`Quality`,quality_best:`Best quality`,quality_smallest:`Smallest files`,timelapse:`Timelapse`,timelapse_off:`Off`,result:`Result`,file:`file`,files:`files`,whole_day:`Full day`,no_cameras:`No cameras selected.`,no_range:`No time range selected.`,no_footage:`No recordings in the selected range.`,estimating:`Calculating…`,confirm:`Export`,plugin_missing:`NVR plugin is unavailable.`},search:`Search`,search_placeholder:`Search faces, plates, labels...`,download_failed:`Download failed`,filter_and:`AND`,filter_or:`OR`,semantic_search:`AI Search`,semantic_search_placeholder:`Describe what you're looking for...`,semantic_search_button:`Search`,min_match_score:`Min. Match Score`,semantic_search_hint:`e.g. "person with red jacket" or "delivery truck"`,cameras:`Cameras`,all_cameras:`All Cameras`,only_with_recordings:`Only with recording`,time_range:`Time Range`,time_1h:`1H`,time_1d:`1D`,time_1w:`1W`,time_1m:`1M`,event_type:`Labels`,type_person:`Person`,type_vehicle:`Vehicle`,type_animal:`Animal`,type_package:`Package`,type_other:`Other`,audio:`Audio`,audio_doorbell:`Doorbell`,audio_glass_break:`Glass Break`,audio_siren:`Siren`,audio_speaking:`Speaking`,audio_gunshot:`Gunshot`,audio_dog_bark:`Dog Bark`,audio_baby_cry:`Baby Cry`,audio_alarm:`Alarm`,audio_scream:`Scream`,audio_cat:`Cat`,audio_car_alarm:`Car Alarm`,audio_smoke_alarm:`Smoke Alarm`,attributes:`Attributes`,attr_face:`Face`,attr_license_plate:`License Plate`,sensor_events:`Triggers`,sensor_motion:`Motion`,sensor_audio:`Audio`,sensor_contact:`Contact`,sensor_doorbell:`Doorbell`,sensor_switch:`Switch`,sensor_light:`Light`,sensor_siren:`Siren`,sensor_security_system:`Security System`,sensor_line_crossing:`Line Crossing`,grid_search:`Grid Search`,grid_clear:`Clear Selection`,confidence:`Confidence`,date:`Date`,download:`Download recording`,no_recordings:`No recordings found`,no_semantic_results:`No matching recordings found for your search`,ungroup:`Ungroup`,result_count:`{count} recordings`,semantic_results:`{count} AI matches`,events_count:`{count} events`},login:{"2fa_backup_hint":`Use a backup code`,"2fa_backup_description":`Enter one of your 8-character backup codes`,"2fa_backup_placeholder":`Backup code`,"2fa_use_app":`Use your authenticator app`,"2fa_description":`Enter the 6-digit code from your authenticator app`,"2fa_title":`Two-Factor Authentication`,"2fa_invalid_code":`Invalid code. Please try again.`,"2fa_verify":`Verify`,biometric_reason:`Sign in to camera.ui`,biometric_save_title:`Use biometric login?`,biometric_save_description:`Save your credentials in this device's secure storage so you can sign in with Face ID or Touch ID next time.`,biometric_save_confirm:`Enable`,biometric_save_decline:`Not now`,invalid_credentials:`Invalid username or password`,searching_direct:`Searching for a direct connection to your server…`,offline_title:`Could not reach your server`,offline_description:`No direct route is available right now. Make sure the server is online and try again.`,offline_retry:`Retry`,pick_server:`Cloud`},settings:{app:`App`,available_updates:`Available updates`,available_updates_info:`Updates are available for camera.ui.`,beta_updates:`Beta updates`,beta_updates_info:`Receive pre-release versions before the general rollout — both server updates and, on the mobile app, over-the-air UI updates.`,certificate:`Certificate`,certificate_info:`Download the SSL certificate of the website here. By adding this certificate to your keychain or certificate management, the site is recognized as secure. This improves the browser experience and avoids security warnings.`,cloud:`Cloud`,connection:`Connection`,create_backup:`Create backup`,create_backup_info:`Create a backup of the current configuration. The archive contains your camera.ui storage directory, but not your recordings and their event history. Copy the recordings folder yourself to keep those. You can restore this later on any platform where camera.ui is running.`,edit:`Edit`,interface:`Interface`,invalid_domain:`Invalid domain`,locale:`Locale`,network:`Network`,network_info:`Select which of this server's own IP addresses are used for local connections. Apps and browsers use these addresses to reach the server and its streams on your network. Leave empty to use all addresses.`,status_info:`Shows whether this server is registered with camera.ui cloud for remote access.`,server_name:`Server Name`,server_name_info:`Set a custom name for this server. This name is displayed in the cloud dashboard and helps you identify this server.`,server_name_label:`Name`,tunnel_status:`Tunnel`,tunnel_status_info:`Shows the status of the remote tunnel connection used for cloud access.`,tunnel_connected:`Connected`,tunnel_disconnected:`Disconnected`,cloudflare_login_waiting:`Waiting for authorisation...`,pair_instructions:`Scan the QR code, or open the pair URL below in a browser and sign in to your camera.ui account.`,pair_code:`Pair code`,pair_code_hint:`Valid for a limited time. The code is already included in the QR code and the pair URL.`,pair_url:`Pair URL`,pair_waiting:`Waiting for confirmation… ({remaining})`,not_registered:`Not registered`,needs_reauth:`Re-authentication required`,not_available_updates_info:`You are using the latest version of camera.ui`,password:`Password`,profile:`Profile`,registered:`Registered`,registered_users:`Registered users`,remote_access_info:`Configure the remote access settings here. These settings allow you to access your camera.ui environment from anywhere.`,remote_access_settings:`Remote access settings`,connection_status:`Connection status`,direct_connection:`Direct connection`,direct_connection_info:`Exposes this server with a public address so it can be reached from outside your local network.`,direct_override_active:`Direct access is kept on while cloud is enabled, so this server stays reachable over its external address.`,direct_override_fallback:`Your configured direct address was not reachable — a temporary Cloudflare tunnel is being used while cloud is enabled.`,external_url:`External URL`,external_url_info:`The public address this server is currently reachable at. In a fallback this is the temporary Cloudflare tunnel, not your configured one.`,connection_method:`Connection method`,connection_type:{local:`Local`,lan:`Local network`,external:`Remote`,cloud:`Cloud`},remove:`Remove`,reset_server:`Reset server`,reset_server_info:`By clicking this button you reset the configuration to the default values. This removes all your settings and data. This action cannot be undone.`,restart_server:`Restart server`,restart_server_info:`By clicking this button you restart the server. A loading screen will be displayed until the restart is complete. The page will then be automatically refreshed and available to you again.`,restore_backup:`Restore backup`,restore_backup_info:`Restore a backup archive you previously created with camera.ui. Your camera.ui configuration, database and user accounts will be restored. Recordings are not part of the archive.`,search_by_name:`Search by name`,searching_updates:`Searching for updates...`,server:`Server`,biometric:{title:`Biometric login`,label:`Use Face ID / Touch ID`,description:`Save your credentials in this device's secure storage so you can sign in with biometrics next time.`,enable_hint:`Sign out and sign back in to save your credentials for biometric login.`,cleared:`Saved credentials removed`},active_sessions:{title:`Active sessions`,empty:`No active sessions`,this_device:`This device`,revoke:`Sign out`,revoke_others_title:`Sign out other devices`,revoke_others_confirm:`This will sign out {count} other device(s). Continue?`,revoke_all_others:`Sign out {count} other device(s)`,revoke_others_success:`Other devices signed out`},api_tokens:{title:`API tokens`,info:`For external integrations like Home Assistant. Tokens have full account access and stay valid until revoked.`,empty:`No API tokens`,create:`Create token`,create_confirm:`Create`,name_label:`Name`,name_placeholder:`e.g. Home Assistant`,name_exists:`A token with this name already exists`,last_used:`Last used`,never:`Never`,revoke:`Revoke`,revoke_title:`Revoke API token`,revoke_confirm:`Integrations using "{name}" will stop working immediately. Continue?`,revoke_success:`API token revoked`,created_title:`API token created`,created_warning:`This token is only shown once. Copy it now and store it somewhere safe.`},scheduled_backup:`Backup scheduler`,scheduled_backup_info:`Automatically create backups on a schedule and keep only the newest archives`,backup_interval:`Frequency`,backup_interval_daily:`Daily`,backup_interval_weekly:`Weekly`,backup_interval_monthly:`Monthly`,backup_time:`Time`,backup_weekday:`Weekday`,backup_day_of_month:`Day of month`,backup_retention:`Keep backups`,backup_retention_hint:`Number of archives to keep — older ones are deleted automatically`,backup_destination:`Destination folder`,backup_destination_hint:`Absolute path on the server (e.g. a NAS mount). Leave empty for the default folder`,backup_last_run:`Last run: {info}`,backup_last_run_never:`never`,backup_existing:`Available backups`,status:`Status`,theme:`Theme`,title:`Settings`,title_account:`Account`,title_appearance:`Appearance`,title_backup:`Backup`,title_go2rtc:`Go2RTC`,title_notifications:`Notifications`,title_nvr:`NVR`,title_permissions:`Permissions`,title_recordings:`Recordings`,notifications:{general:`General`,general_info:`The master switch enables or disables every notification at once — turning it off silences every source below. Quiet Hours suppress external delivery to your registered devices during the chosen daily window; only Critical-severity events break the silence. The in-app notification list always stays up to date regardless of Quiet Hours.`,enable:`Enable Notifications`,enable_info:`Turn this on to start receiving notifications for your account.`,os_permission_denied:`Notifications are blocked at the system level on this device.`,os_permission_link:`Open permissions`,enable_failed:`Could not enable notifications.`,this_device:`This device`,this_device_synced:`This device is set up to receive notifications.`,this_device_unsynced:`This device is not set up yet — sync it to receive notifications here.`,this_device_desktop:`Show desktop notifications on this computer while the app is running.`,sync:`Sync this device`,resync:`Re-sync`,quiet_hours:`Quiet Hours`,quiet_hours_info:`Suppress non-critical notifications during a daily window.`,from:`From`,to:`To`,timezone:`Timezone`,system_notifications:`System Notifications`,system_notifications_info:`Built-in events that camera.ui itself emits — typically lifecycle and update notices, like a plugin crash or a newer server version becoming available. Each entry can be toggled individually so you only get pinged for the things that matter to you.`,no_system_types:`No system notification types available.`,plugin_notifications:`Plugin Notifications`,plugin_notifications_info:`Enabled plugins are permitted to notify camera.ui about their own events — whenever something happens that may need your attention. Those notifications are then delivered according to your settings. Disabled plugins are silently ignored by the notification service.`,no_plugin_sources:`No plugins are currently allowed to publish notifications.`,devices:`Devices`,devices_info:`Registered devices are the destinations where notifications get delivered. Each device is owned by the plugin that registered it — the Plugin column tells you which one. Toggle the Active switch to pause delivery without unregistering, or use the trash icon to remove a device entirely.`,no_devices:`No notification devices registered yet.`,col_name:`Name`,col_plugin:`Plugin`,col_active:`Active`,revoke:`Revoke`,device_revoked:`Device revoked.`,revoke_failed:`Failed to revoke device.`,update_failed:`Failed to update device.`,save:`Save`,reset:`Reset`,saved:`Notification settings saved.`,save_failed:`Failed to save notification settings.`,system_types:{system_plugin_update_available:`Plugin updates available`,system_plugin_crashed:`Plugin crashed / recovered`,system_update_available:`Server update available`}},permissions:{general:`App permissions`,general_info:`What this device allows camera.ui to use. These are system permissions of your device, not server settings.`,microphone:`Microphone`,microphone_info:`Needed for two-way audio (intercom).`,location:`Location`,location_info:`Needed for location-based automations.`,notifications:`Notifications`,notifications_info:`Needed to show notifications on this device.`,state_granted:`Allowed`,state_denied:`Blocked`,state_prompt:`Not asked yet`,state_unknown:`Unknown`,request:`Request`,open_settings:`Open settings`,browser_hint:`Change this in your browser site settings.`},recordings:{nvr_not_running:`NVR plugin is not running. Start the NVR plugin to manage recordings.`,not_available:`Not available`,disk_critical:`Critical: disk space is running out. Recording is paused to prevent data loss.`,disk_warning:`Warning: Disk space is below 8%. Old recordings are deleted automatically only with retention mode "Overwrite" and no storage limit set. Otherwise recording pauses when space runs out.`,disk_small_volume:`Storage volume is small. Recordings will rotate frequently to keep space free.`,storage_overview:`Storage Overview`,disk_total:`Disk Total`,nvr_usage:`NVR Usage`,quota:`Quota`,retention:`Retention`,disk_free:`Disk Free`,unlimited:`Unlimited`,days_count:`{count} days`,global_settings:`Settings`,camera_storage:`Camera Storage`,no_cameras:`No cameras available`,col_camera:`Camera`,col_size:`Size`,col_days:`Days`,col_rate:`Rate`,col_mode:`Mode`,chart_nvr:`NVR`,chart_other:`Other`,chart_free:`Free`,status_recording:`Recording`,status_stopped:`Stopped`,license_title:`License & Cloud`,license_description:`Connect this NVR to the camera.ui cloud for license and cloud features.`,license_disconnected:`Not connected`},instances:{add:`Add Instance`,remove:`Remove`,edit:`Edit Instance`,name:`Name`,url:`URL`,url_placeholder:`https://example.com:8443`,added:`Instance added`,updated:`Instance updated`,removed:`Instance removed`,confirm_remove:`Remove this instance?`,credentials_username:`Username`,credentials_password:`Password`,credentials_unchanged:`Unchanged`,cannot_add_self:`Cannot add this server as a remote instance.`,credentials_required:`Username and password are required.`},title_mqtt:`MQTT`,mqtt_broker:`MQTT broker`,mqtt_status_info:`Live connection state of the MQTT bridge.`,mqtt_state_connected:`Connected`,mqtt_state_connecting:`Connecting…`,mqtt_state_reconnecting:`Reconnecting…`,mqtt_state_error:`Error`,mqtt_state_disabled:`Disabled`,mqtt_enabled_info:`Publish camera.ui events, camera and sensor states to your MQTT broker.`,mqtt_host_label:`Host`,mqtt_port_label:`Port`,mqtt_protocol_label:`Protocol`,mqtt_username_label:`Username`,mqtt_password_label:`Password`,mqtt_password_keep_hint:`Leave empty to keep the stored password.`,mqtt_client_id_label:`Client ID`,mqtt_topic_prefix_label:`Topic prefix`,mqtt_topic_prefix_info:`All camera.ui topics are published below this prefix.`,mqtt_tls_reject_unauthorized:`Verify server certificate`,mqtt_tls_reject_unauthorized_info:`Disable this only for brokers using self-signed certificates.`,mqtt_tls_ca_label:`CA certificate (PEM)`,mqtt_tls_cert_label:`Client certificate (PEM)`,mqtt_tls_key_label:`Client key (PEM)`,mqtt_test:`Test connection`,mqtt_mode_label:`Mode`,mqtt_mode_external:`External broker`,mqtt_mode_embedded:`Built-in broker`,mqtt_mode_embedded_info:`camera.ui runs its own MQTT broker. Point your MQTT devices at the address below using the credentials.`,mqtt_broker_address:`Broker address`,mqtt_broker_address_hint:`Use this address and the credentials above in your MQTT devices.`,mqtt_broker_running:`Built-in broker running on port {port}`,mqtt_ha_discovery:`Home Assistant discovery`,mqtt_ha_discovery_info:`Automatically create devices and entities in Home Assistant via MQTT discovery.`,mqtt_ha_prefix_label:`Discovery prefix`,mqtt_ha_prefix_info:`Must match the discovery prefix configured in Home Assistant (default: homeassistant).`,title_remote:`Remote Access`,title_system:`System`,title_user:`User`,title_device:`Device`,title_security:`Security`,security:{title:`Two-Factor Authentication`,"2fa_title":`Two-Factor Authentication`,"2fa_description":`Add an extra layer of security to your account by enabling two-factor authentication. You will need an authenticator app like Google Authenticator or Authy.`,generating_qr:`Generating QR code...`,setup_2fa:`Set up 2FA`,step_scan:`Scan QR`,step_verify:`Verify`,scan_qr:`Scan this QR code with your authenticator app`,manual_entry:`Manual entry code`,enter_code:`Enter verification code`,enter_code_description:`Enter the 6-digit code from your authenticator app to verify the setup.`,enable_2fa:`Enable 2FA`,disable_2fa:`Disable 2FA`,"2fa_enabled":`2FA is enabled`,"2fa_enabled_success":`Two-factor authentication has been enabled`,"2fa_disabled_success":`Two-factor authentication has been disabled`,backup_codes:`Backup Codes`,backup_codes_remaining:`{count} backup codes remaining`,backup_warning:`Save these codes in a safe place. Each code can only be used once. If you lose access to your authenticator app, you can use these codes to sign in.`,backup_regenerated:`Backup codes have been regenerated`,regenerate_backup:`Regenerate backup codes`,regenerate_confirm:`Enter your current 2FA code to generate new backup codes. This will invalidate all existing backup codes.`,disable_confirm:`Enter your 2FA code to disable two-factor authentication.`},unknown:`Unknown`,update_available:`Update available`,valid_domain:`Valid domain`,version:`Version`},instances:{title:`Instances`,this_server:`This Server`,remote_servers:`Remote Servers`,add:`Add Instance`,edit:`Edit Instance`,remove:`Remove`,confirm_remove:`Remove this instance?`,select:`Select instances`,select_all:`Select all`,deselect_all:`Deselect all`,remove_selected:`Remove selected`,remove_selected_confirm:`Remove {count} selected instance(s)?`,search:`Search instances...`,no_instances:`No remote instances configured.`,active:`Active`,offline:`Offline`,switch_to:`Switch`,server_offline:`Server is offline or unreachable.`,no_data:`Loading...`,two_factor_pending_hint:`Two-factor confirmation pending`,two_factor_enter_code:`Enter code`,version:`Version`,uptime:`Uptime`,os:`System`,hostname:`Hostname`,cpu:`CPU`,cores:`Cores`,memory:`Memory`,disk:`Storage`,cameras:`Cameras`,online:`Online`,recording:`Recording`,credentials_required:`Add credentials to enable status monitoring.`},workers:{title:`Workers`,workers:`Workers`,address_required:`No LAN address was detected. Set the master address manually before enabling workers.`,camera_assignments:`Camera Assignments`,camera_assignments_description:`Offload a camera's video decoding and detection to a worker. The stream is decoded on the assigned machine — useful to spread CPU load. Leave on "Local" to keep it on this master.`,camera:`Camera`,configuration:`Configuration`,copied:`Copied!`,cpu:`CPU`,enable_workers:`Enable Workers`,enable_workers_description:`Let other machines connect as workers and take over camera decoding or plugins.`,failed_to_update_assignment:`Failed to update worker assignment`,generate_code:`Generate Pairing Code`,incompatible:`incompatible`,leaf_port:`Worker Connection Port`,local:`Local`,master_address:`Master Address`,master_address_hint:`The address workers use to reach this master (LAN IP or hostname).`,master_address_placeholder:`e.g. 192.168.1.10`,memory:`Memory`,name:`Name`,ok:`OK`,port_change_warning:`Changing the port requires already-paired workers to be re-paired.`,save:`Save`,no_cameras:`No cameras available`,no_plugins:`No plugins installed`,no_workers:`No workers available`,plugin:`Plugin`,plugin_assignments:`Plugin Assignments`,plugin_assignments_description:`Run an entire plugin on a worker instead of this master — e.g. a detector that needs hardware this master lacks, or one only available on another platform. The worker installs and runs the plugin; you still configure it here as usual. Only compatible workers are offered.`,offline:`Offline`,online:`Online`,pair_worker:`Pair New Worker`,pair_worker_description:`Generate a one-time pairing code and start the worker with it. The worker exchanges the code for its own credentials — no shared secrets, revocable per worker. The internal message broker restarts briefly when the worker pairs.`,pairing_code:`Pairing Code`,pairing_expires:`Expires in {minutes} min — one-time use`,pairing_snippet:`Worker configuration`,pairing_snippet_hint:`Paste into the worker's camera.ui.yaml, then start it with "cameraui --worker run".`,pid:`PID`,platform:`Platform`,remove:`Remove`,remove_worker:`Remove Worker`,remove_worker_confirm:`Remove "{name}"? Its credentials are revoked and the connection is dropped — assigned cameras fall back to this machine. The internal message broker restarts briefly.`,version_mismatch:`Version mismatch — worker runs {version}, please update it`}}}},Xi=[...Hn],Zi={de:`German (de)`,en:`English (en)`},Qi=e=>{let t=(e??(typeof window<`u`?window:void 0)?.navigator?.language??`en`).toLowerCase().split(`-`)[0];return $i(t)},$i=e=>Xi.find(t=>t===e)??`en`,ea=k({locale:Qi(),fallbackLocale:`en`,legacy:!1,globalInjection:!0,messages:Yi}),ta=b(`cui-toast`);function na(e){return e instanceof Error}function ra(){let e=Nn();return{add:t=>{t.detail===``&&(t.detail=void 0),t.severity===`error`&&t.detail&&e.error(`Error detail:`,t.detail),ta.emit({...t,detail:na(t.detail)?Bw(t.detail):t.detail})},dismiss:e=>{ta.emit({type:`dismiss`,id:e})}}}function ia(e){let t=ln(e),n=U(()=>t.data.value===void 0?t.fetchStatus.value!==`idle`||t.isError.value:t.isFetching.value||t.isPaused.value);return{...t,isLoading:n,isBusy:n}}async function aa({userData:e}){return(await $.post(`/users`,e)).data}async function oa({username:e,signal:t}){return(await $.get(`/users/${e}`,{signal:t})).data}async function sa({parameter:e,signal:t}){return(await $.get(`/users`,{params:e,signal:t})).data}async function ca({username:e,userData:t}){return(await $.patch(`/users/${e}`,t)).data}async function la({username:e}){return(await $.delete(`/users/${e}`)).data}async function ua(){return(await $.delete(`/users`)).data}async function da({username:e,cameraname:t,shortcutData:n}){return(await $.post(`/users/${e}/preferences/cameras/${t}/shortcuts`,n)).data}async function fa({username:e,cameraname:t,shortcutid:n,signal:r}){return(await $.get(`/users/${e}/preferences/cameras/${t}/shortcuts/${n}`,{signal:r})).data}async function pa({username:e,cameraname:t,signal:n}){return(await $.get(`/users/${e}/preferences/cameras/${t}/shortcuts`,{signal:n})).data}async function ma({username:e,cameraname:t,shortcutid:n,shortcutData:r}){return(await $.patch(`/users/${e}/preferences/cameras/${t}/shortcuts/${n}`,r)).data}async function ha({username:e,cameraname:t,shortcutid:n}){return(await $.delete(`/users/${e}/preferences/cameras/${t}/shortcuts/${n}`)).data}async function ga({username:e,cameraname:t}){return(await $.delete(`/users/${e}/preferences/cameras/${t}/shortcuts`)).data}async function _a({username:e,viewData:t}){return(await $.post(`/users/${e}/preferences/camview/views`,t)).data}async function va({username:e,viewid:t,signal:n}){return(await $.get(`/users/${e}/preferences/camview/views/${t}`,{signal:n})).data}async function ya({username:e,parameter:t,signal:n}){return(await $.get(`/users/${e}/preferences/camview/views`,{params:t,signal:n})).data}async function ba({username:e,viewid:t,viewData:n}){return(await $.patch(`/users/${e}/preferences/camview/views/${t}`,n)).data}async function xa({username:e,viewid:t}){return(await $.delete(`/users/${e}/preferences/camview/views/${t}`)).data}async function Sa({username:e}){return(await $.delete(`/users/${e}/preferences/camview/views`)).data}var Ca=class{_queryClient=tn();t=ea.global.t;toast=ra();queryActivator=K([{name:`getUserQuery`,enabled:!0},{name:`getUsersQuery`,enabled:!0},{name:`getShortcutQuery`,enabled:!0},{name:`getShortcutsQuery`,enabled:!0},{name:`getViewQuery`,enabled:!0},{name:`getViewsQuery`,enabled:!0}]);get queryClient(){return this._queryClient}createUserQuery(){return N({mutationFn:aa,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`usersList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.user_added`),life:3e3})}})}getUserQuery(e){return ia({queryKey:[`users`,e],queryFn:({signal:t})=>oa({username:Z(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getUserQuery`&&e.enabled)})}getUsersQuery(e){return ia({queryKey:[`usersList`,e],queryFn:({signal:t})=>sa({parameter:Z(e),signal:t}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getUsersQuery`&&e.enabled)})}patchUserQuery(){return N({mutationFn:async({username:e,userData:t})=>{await ca({username:e,userData:t})},onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`users`,t.username]})}})}removeUserQuery(){return N({mutationFn:la,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`usersList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.user_removed`),life:3e3})}})}removeUsersQuery(){return N({mutationFn:ua,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`usersList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.users_removed`),life:3e3})}})}createShortcutQuery(){return N({mutationFn:da,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}getShortcutQuery(e,t,n){return ia({queryKey:[`shortcutsList`,e,t,n],queryFn:({signal:r})=>fa({username:Z(e),cameraname:Z(t),shortcutid:Z(n),signal:r}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getShortcutQuery`&&e.enabled)})}getShortcutsQuery(e,t){return ia({queryKey:[`shortcutsList`,e,t],queryFn:({signal:n})=>pa({username:Z(e),cameraname:Z(t),signal:n}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getShortcutsQuery`&&e.enabled)})}patchShortcutQuery(){return N({mutationFn:ma,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}removeShortcutQuery(){return N({mutationFn:ha,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}removeShortcutsQuery(){return N({mutationFn:ga,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`shortcutsList`,t.username]})}})}createViewQuery(){return N({mutationFn:_a,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.view_added`),life:3e3})}})}getViewQuery(e,t){return ia({queryKey:[`viewsList`,e],queryFn:({signal:n})=>va({username:Z(e),viewid:Z(t),signal:n}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getUserQuery`&&e.enabled)})}getViewsQuery(e,t){return ia({queryKey:[`viewsList`,e,t],queryFn:({signal:n})=>ya({username:Z(e),parameter:Z(t),signal:n}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getViewsQuery`&&e.enabled)})}patchViewQuery(){return N({mutationFn:ba,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.view_updated`),life:3e3})}})}patchViewQuerySilent(){return N({mutationFn:ba,onSuccess:async(e,t)=>{await this._queryClient.invalidateQueries({queryKey:[`viewsList`,t.username],refetchType:`none`})}})}removeViewQuery(){return N({mutationFn:xa,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.view_removed`),life:3e3})}})}removeViewsQuery(){return N({mutationFn:Sa,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`viewsList`,t.username]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.views_removed`),life:3e3})}})}toggleQueryActivator(e,t){let n=this.queryActivator.value.find(t=>t.name===e);return n&&(n.enabled=t),this}};function wa(){let e=typeof window<`u`?window.__CUI_BASE__:void 0;return!e||!e.startsWith(`/`)?`/`:e.endsWith(`/`)?e:`${e}/`}function Ta(){return wa()!==`/`}function Ea(){let e=wa();return e===`/`?window.location.origin:new URL(e,window.location.origin).href.replace(/\/$/,``)}function Da(){return(typeof window<`u`?window.__CUI_EMBED__:void 0)||null}function Oa(){return Da()===`homeassistant`}var ka=10*365*24*60*60*1e3,Aa=3,ja=300;async function Ma(e){for(let t=0;t<Aa;t++){try{let t=await fetch(e);if(t.ok)return await t.json();if(t.status===401||t.status===403)return null}catch{}t<Aa-1&&await y(ja)}return null}async function Na(e,t={}){let n=Ea(),r=await Ma(`${n}/api/auth/me`);if(!r||!r._id||!r.username||!r.role)return!1;let i={url:n,mode:`direct-lan`,priority:0},a={access:`embed`,accessExpiresAt:Date.now()+ka};return await e.seedAndRetry({endpoint:i,tokens:a},`home`),t.onUser?.({_id:r._id,username:r.username,email:r.email,role:r.role,firstLogin:r.firstLogin,avatar:r.avatar}),!0}function Pa(e){return`twoFactorPending`in e&&e.twoFactorPending===!0}async function Fa(e,t,n,r){let i=await t.loginDirect(n,r);if(Pa(i))return i;let a={url:n,mode:`direct-lan`,priority:0};return await e.seedAndRetry({endpoint:a,tokens:i.tokens}),i}async function Ia(e,t,n,r){let i=await Va(t,n,e),a=await t.loginDirect(i.endpoint.url,r);return Pa(a)||await e.seedAndRetry({endpoint:i.endpoint,tokens:Ua(a.tokens,i.extraTokens)}),a}async function La(e){let t=Gw();if(t.mode===`cloud`){if(!t.cloudSession)throw Error(`login(): cloud mode but cloudSession missing`);return Ia(t.connection,t.api,t.cloudSession,e)}let n=Jr.value??Ea();return Fa(t.connection,t.api,n,e)}async function Ra(e,t){let n=Gw(),r,i;if(n.mode===`cloud`){if(!n.cloudSession)throw Error(`verify2FA(): cloud mode but cloudSession missing`);let e=await Va(n.api,n.cloudSession,n.connection);r=e.endpoint,i=e.extraTokens}else r={url:Jr.value??Ea(),mode:`direct-lan`,priority:0};let a=await n.api.verify2FA(r.url,e,t);return await n.connection.seedAndRetry({endpoint:r,tokens:Ua(a.tokens,i)}),a}async function za(){let e=Gw();await Ba(e.connection,e.api)}async function Ba(e,t){let n=e.target.value;if(n?.tokens.access)try{await t.logoutDirect(n.endpoint.url,n.tokens.access)}catch{}let r=e.phase.value,i=(r.kind===`idle`?null:r.instanceId)??`default`;e.reset(),e.boot(i)}async function Va(e,t,n){let r=t.state.value;if(!r)throw Error(`resolveCloudEndpoint(): cloud session not initialised`);let i=await e.tunnelCheck(r.proxyUrl,r.proxyToken),a=i.internalAddresses,o=i.externalAddresses;if(a.length===0&&o.length===0)throw Error(`tunnel/check returned no reachable addresses`);let s=n.lastReachableEndpoint.value,c=s&&(a.includes(s)||o.includes(s))?s:null;if(!c&&a.length+o.length>1){let t=[...a.map(t=>({endpoint:{url:t,mode:`direct-lan`},run:Ha(e,t)})),...o.map(t=>({endpoint:{url:t,mode:`direct-wan`},run:Ha(e,t)}))];try{c=(await ve(t)).endpoint.url}catch{}}c??=a[0]??o[0];let l=a.includes(c)?`direct-lan`:`direct-wan`;return{endpoint:{url:c,mode:l,priority:0},extraTokens:{proxySession:r.proxyToken,proxySessionExpiresAt:r.proxyTokenExpiresAt,proxyRefresh:r.proxyRefreshToken}}}function Ha(e,t){return async n=>{try{return await e.authCheck(t,``,n),!0}catch(e){if(typeof e?.response?.status==`number`)return!0;throw e}}}function Ua(e,t){return t?{...e,...t}:e}async function Wa(){return Ga()?Ka():{mode:`direct`,directEndpointUrl:Ea()}}function Ga(){return pi?window.location.host===pi:!1}async function Ka(){try{let e=await fetch(`${ui}/api/proxy/refresh`,{method:`POST`,credentials:`include`});if(!e.ok)return{mode:`cloud`};let t=await e.json();return t.proxy_token?{mode:`cloud`,cloudSession:{proxyUrl:t.proxy_url??window.location.origin,proxyToken:t.proxy_token,proxyRefreshToken:t.proxy_refresh_token,proxyTokenExpiresAt:t.proxy_token_expires_at,proxyRefreshTokenExpiresAt:t.proxy_refresh_token_expires_at,serverId:t.server_id??void 0,cloudApiBase:ui}}:{mode:`cloud`}}catch{return{mode:`cloud`}}}var qa=15e3;function Ja(e){let t=null,n=null,r=``,i=null;function a(e){return!!e.accessExpiresAt&&e.accessExpiresAt>Date.now()+qa}function o(e){e&&n?.access===e&&(n=null)}async function s(o,s,c,l){if(r===o&&n&&a(n))return n;if(t)return t;let u=i?.getLatestTokens?.()??null;if(u&&a(u))return n=u,r=o,u;let d=u?.refresh??s;if(!d)throw Error(`no refresh token available`);t=(async()=>{let t=await e.refreshDirect(o,d,l),i={...c,...t.tokens};return n=i,r=o,i})();try{return await t}finally{t=null}}async function c(e,o,c,l){if(r===e&&n&&a(n))return n;if(t)return t;let u=i?.acquireLock;return u?u(()=>s(e,o,c,l)):s(e,o,c,l)}return{refresh:(e,t)=>(t===`auth-error`&&o(e.tokens.access),s(e.endpoint.url,e.tokens.refresh,e.tokens)),getFreshTokens:({endpoint:e,refreshToken:t,base:n,signal:r})=>(o(n?.access),c(e,t,n,r)),bindCoordination:e=>{i=e},clear:()=>{n=null,r=``,t=null}}}function Ya(e,t){let n=yi(),r=mi(),i=Ja(n);return{options:{adapters:{storage:hi(),visibilitySource:gi(),networkSource:r.networkSource,networkChangeSource:r.networkChangeSource},callbacks:{discover:ki(e),probe:Vw(n,i),refresh:i.refresh,bindRefresh:i.bindCoordination,onConnectionReset:i.clear},logger:t},api:n}}var Xa=3e4;function Za(e){let t=Qr(),n=xn(!1),r=U(()=>n.value),i=null,a=new Map;function o(){n.value=!0}function s(){n.value=!1}function c(e){i=e,n.value=e.connected,e.on(`connect`,o),e.on(`disconnect`,s);for(let[t,n]of a)for(let r of n)e.on(t,r)}function l(){if(i){i.off(`connect`,o),i.off(`disconnect`,s);for(let[e,t]of a)for(let n of t)i.off(e,n);i=null}n.value=!1}let u=P(()=>t.target.value?.endpoint.url,n=>{if(l(),n){let n=t.socketio.ensureSocket(e);n&&c(n)}},{immediate:!0});nt(()=>{u(),l(),a.clear()});function d(e,t){let n=a.get(e);return n||(n=new Set,a.set(e,n)),n.add(t),i?.on(e,t),()=>{n.delete(t),i?.off(e,t)}}function f(e){return P(n,(t,n)=>{t&&!n&&e()},{immediate:!0})}function p(e,...t){i?.emit(e,...t)}function m(t,n,r){let a=i;if(!a||!a.connected)return Promise.reject(Error(`socket "${e}" not connected`));let o=r?.timeoutMs??Xa;return new Promise((r,i)=>{let s=setTimeout(()=>i(Error(`socket "${e}" request timeout: ${t}`)),o);a.emit(t,n,e=>{clearTimeout(s),r(e)})})}return{connected:n,ready:r,on:d,onReady:f,emit:p,request:m}}function Qa(e){let t=xn(e??null);function n(e){t.value=e}function r(e){let n=t.value;n&&(t.value={...n,...e})}function i(){t.value=null}return{state:t,set:n,patch:r,clear:i}}var $a=6e4;function eo(e,t=Date.now()){return!e.proxyTokenExpiresAt||e.proxyTokenExpiresAt>t+$a}function to(e,t=Date.now()){return e.proxyRefreshToken?!e.proxyRefreshTokenExpiresAt||e.proxyRefreshTokenExpiresAt>t:!1}function no(e){let{api:t,cloudSession:n,readL1AccessToken:r,onL1Unavailable:i,logger:a}=e,o=null;function s(e){return o||(o=(async()=>{try{await c(e)}finally{o=null}})(),o)}async function c(e){let o=n.state.value;if(o&&eo(o))return;if(o&&to(o)&&o.cloudApiBase)try{let r=await t.refreshProxy(o.cloudApiBase,o.proxyRefreshToken,e);if(e.aborted)return;n.set({...o,proxyUrl:r.proxyUrl??o.proxyUrl,proxyToken:r.proxyToken,proxyRefreshToken:r.proxyRefreshToken??o.proxyRefreshToken,proxyTokenExpiresAt:r.proxyTokenExpiresAt,proxyRefreshTokenExpiresAt:r.proxyRefreshTokenExpiresAt??o.proxyRefreshTokenExpiresAt}),a?.debug(`cloud-session`,`refresh OK via RT`);return}catch(e){if(dn.isAxiosError(e)&&(e.response?.status===401||e.response?.status===403))a?.warn(`cloud-session`,`RT rejected — falling through to L1`);else throw e}if(!r||!o?.serverId||!o.cloudApiBase)throw await i?.(),Error(`cloud session expired and no L1 fallback available`);let s=await r();if(e.aborted)return;if(!s)throw await i?.(),Error(`no L1 access token in secure storage`);let c=await t.remintProxyFromL1(o.cloudApiBase,o.serverId,s,e);e.aborted||(n.set({...o,proxyUrl:c.proxyUrl??o.proxyUrl,proxyToken:c.proxyToken,proxyRefreshToken:c.proxyRefreshToken,proxyTokenExpiresAt:c.proxyTokenExpiresAt,proxyRefreshTokenExpiresAt:c.proxyRefreshTokenExpiresAt}),a?.debug(`cloud-session`,`refresh OK via L1 re-mint`))}function l(){let e=n.state.value;e&&(eo(e)||s(new AbortController().signal).catch(()=>{}))}return{ensureFresh:s,wake:l}}var ro=!1;function io(){try{return Gw().cloudSession?.state.value?.serverId??null}catch{return null}}async function ao(){}async function oo(){try{Gw().cloudSession?.clear()}catch{}await ao()}function so(){try{return Gw().mode===`cloud`}catch{return!1}}async function co(){ro||(ro=!0,await oo(),window.location.host===pi&&window.location.replace(ui))}var lo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function uo(e,t){return F(),G(`svg`,lo,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20.916 9.564a1 1 0 0 0-.513-1.316L7.328 2.492c-.995-.438-2.22.051-2.645 1.042l-2.21 5.154a2 2 0 0 0 1.052 2.624L9.563 13.9L8.323 17H4v-3H2v8h2v-3h4.323c.823 0 1.552-.494 1.856-1.258l1.222-3.054l5.205 2.23a1 1 0 0 0 1.31-.517l.312-.71l1.701.68l2-5l-1.536-.613zm-4.434 5.126L4.313 9.475l2.208-5.152l12.162 5.354z`},null,-1)]])}var fo=W({name:`bx-cctv`,render:uo}),po={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mo(e,t){return F(),G(`svg`,po,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20 3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2M4 9V5h16v4zm16 4H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2M4 19v-4h16v4z`},null,-1),J(`path`,{fill:`currentColor`,d:`M17 6h2v2h-2zm-3 0h2v2h-2zm3 10h2v2h-2zm-3 0h2v2h-2z`},null,-1)]])}var ho=W({name:`bx-server`,render:mo}),go={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _o(e,t){return F(),G(`svg`,go,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M18.618 7.462L6.403 2.085a1 1 0 0 0-.77-.016a1 1 0 0 0-.552.537l-3 7a1 1 0 0 0 .525 1.313L9.563 13.9L8.323 17H4v-3H2v8h2v-3h4.323c.823 0 1.552-.494 1.856-1.258l1.222-3.054l3.419 1.465a1 1 0 0 0 1.311-.518l3-6.857a1 1 0 0 0-.513-1.316m1.312 8.91l-1.858-.742l1.998-5l1.858.741z`},null,-1)]])}var vo=W({name:`bxs-cctv`,render:_o}),yo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bo(e,t){return F(),G(`svg`,yo,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20 3H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2m-5 5h-2V6h2zm4 0h-2V6h2zm1 5H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2m-5 5h-2v-2h2zm4 0h-2v-2h2z`},null,-1)]])}var xo=W({name:`bxs-server`,render:bo}),So={viewBox:`0 0 36 36`,width:`1.2em`,height:`1.2em`};function Co(e,t){return F(),G(`svg`,So,[...t[0]||=[bn(`<path fill="currentColor" d="M6 22h24v2H6z" class="clr-i-outline clr-i-outline-path-1"></path><path fill="currentColor" d="M26 26h4v2h-4z" class="clr-i-outline clr-i-outline-path-2"></path><path fill="currentColor" d="M13 9.92L17 6v13a1 1 0 1 0 2 0V6l4 3.95a1 1 0 1 0 1.38-1.45L18 2.16L11.61 8.5A1 1 0 0 0 13 9.92" class="clr-i-outline clr-i-outline-path-3"></path><path fill="currentColor" d="M30.84 13.37A1.94 1.94 0 0 0 28.93 12H21v2h7.95c1.05 2.94 2.77 7.65 3.05 8.48V30H4v-7.52C4.28 21.65 7.05 14 7.05 14H15v-2H7.07a1.92 1.92 0 0 0-1.9 1.32C2 22 2 22.1 2 22.33V30a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2v-7.67c0-.23 0-.33-3.16-8.96" class="clr-i-outline clr-i-outline-path-4"></path><path fill="none" d="M0 0h36v36H0z"></path>`,5)]])}var wo=W({name:`clarity-backup-restore-line`,render:Co}),To={viewBox:`0 0 36 36`,width:`1.2em`,height:`1.2em`};function Eo(e,t){return F(),G(`svg`,To,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M2 24v6a2 2 0 0 0 2 2h28a2 2 0 0 0 2-2v-6Zm28 5h-4v-2h4Z`,class:`clr-i-solid clr-i-solid-path-1`},null,-1),J(`path`,{fill:`currentColor`,d:`M30.84 13.37A1.94 1.94 0 0 0 28.93 12H21v6a3 3 0 1 1-6 0v-6H7.07a1.92 1.92 0 0 0-1.9 1.32c-2.31 6.36-2.93 8.11-3.1 8.68h31.86c-.16-.57-.79-2.31-3.09-8.63`,class:`clr-i-solid clr-i-solid-path-2`},null,-1),J(`path`,{fill:`currentColor`,d:`M13 9.92L17 6v12a1 1 0 1 0 2 0V6l4 3.95a1 1 0 1 0 1.38-1.45L18 2.16L11.61 8.5A1 1 0 0 0 13 9.92`,class:`clr-i-solid clr-i-solid-path-3`},null,-1),J(`path`,{fill:`none`,d:`M0 0h36v36H0z`},null,-1)]])}var Do=W({name:`clarity-backup-restore-solid`,render:Eo}),Oo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ko(e,t){return F(),G(`svg`,Oo,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20.97 7.27a.996.996 0 0 0 0-1.41l-2.83-2.83a.996.996 0 0 0-1.41 0l-4.49 4.49l-3.89-3.89c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l3.89 3.89L3 16.76V21h4.24l4.52-4.52l3.89 3.89c.95.95 2.23.6 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83l-3.89-3.89zM5.04 6.94l1.89-1.9L8.2 6.31L7.02 7.5l1.41 1.41l1.19-1.19l1.2 1.2l-1.9 1.9zm11.23 7.44l-1.19 1.19l1.41 1.41l1.19-1.19l1.27 1.27l-1.9 1.9l-3.89-3.89l1.9-1.9zM6.41 19H5v-1.41l9.61-9.61l1.3 1.3l.11.11zm9.61-12.44l1.41-1.41l1.41 1.41l-1.41 1.41z`},null,-1)]])}var Ao=W({name:`ic-outline-design-services`,render:ko}),jo={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Mo(e,t){return F(),G(`svg`,jo,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m16.24 11.51l1.57-1.57l-3.75-3.75l-1.57 1.57l-4.14-4.13c-.78-.78-2.05-.78-2.83 0l-1.9 1.9c-.78.78-.78 2.05 0 2.83l4.13 4.13l-4.6 4.61q-.15.15-.15.36v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15l4.62-4.62l4.13 4.13c1.32 1.32 2.76.07 2.83 0l1.9-1.9c.78-.78.78-2.05 0-2.83zm-7.06-.44L5.04 6.94l1.89-1.9L8.2 6.31l-.47.49a.996.996 0 1 0 1.41 1.41l.48-.48l1.45 1.45zm7.88 7.89l-4.13-4.13l1.9-1.9l1.45 1.45l-.48.48a.996.996 0 1 0 1.41 1.41l.48-.48l1.27 1.27zm3.65-11.92a.996.996 0 0 0 0-1.41l-2.34-2.34c-.47-.47-1.12-.29-1.41 0l-1.83 1.83l3.75 3.75z`},null,-1)]])}var No=W({name:`ic-round-design-services`,render:Mo}),Po={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Fo(e,t){return F(),G(`svg`,Po,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`4`},[J(`path`,{d:`M13.5 39.37A16.93 16.93 0 0 0 24 43c3.963 0 7.61-1.356 10.5-3.63M19 9.747C12.051 11.882 7 18.351 7 26c0 1.925.32 3.775.91 5.5M29 9.747C35.949 11.882 41 18.351 41 26c0 1.925-.32 3.775-.91 5.5`}),J(`path`,{"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M43 36c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 43 36m-28 0c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 15 36M29 9c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 29 9`})],-1)]])}var Io=W({name:`icon-park-outline-circular-connection`,render:Fo}),Lo={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Ro(e,t){return F(),G(`svg`,Lo,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[J(`path`,{d:`M13 10h28v34H13z`}),J(`path`,{"stroke-linecap":`round`,d:`M35 10V4H8a1 1 0 0 0-1 1v33h6m8-16h12m-12 8h12`})],-1)]])}var zo=W({name:`icon-park-outline-log`,render:Ro}),Bo={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Vo(e,t){return F(),G(`svg`,Bo,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[J(`rect`,{width:`40`,height:`32`,x:`4`,y:`8`,rx:`2`}),J(`path`,{"stroke-linecap":`round`,d:`m12 18l7 6l-7 6m11 2h13`})],-1)]])}var Ho=W({name:`icon-park-outline-terminal`,render:Vo}),Uo={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function Wo(e,t){return F(),G(`svg`,Uo,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`4`},[J(`path`,{d:`M13.5 39.37A16.93 16.93 0 0 0 24 43c3.963 0 7.61-1.356 10.5-3.63M19 9.747C12.051 11.882 7 18.351 7 26c0 1.925.32 3.775.91 5.5M29 9.747C35.949 11.882 41 18.351 41 26c0 1.925-.32 3.775-.91 5.5`}),J(`path`,{fill:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,d:`M43 36c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 43 36m-28 0c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 15 36M29 9c0 1.342-.528 2.56-1.388 3.458A5 5 0 1 1 29 9`})],-1)]])}var Go=W({name:`icon-park-solid-circular-connection`,render:Wo}),Ko={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},qo=[`id`],Jo=[`mask`];function Yo(e,t){return F(),G(`svg`,Ko,[J(`defs`,null,[J(`mask`,{id:e.idMap.SVGzmZ6hexT},[...t[0]||=[J(`g`,{fill:`none`,"stroke-linejoin":`round`,"stroke-width":`4`},[J(`path`,{fill:`#fff`,stroke:`#fff`,d:`M13 10h28v34H13z`}),J(`path`,{stroke:`#fff`,"stroke-linecap":`round`,d:`M35 10V4H8a1 1 0 0 0-1 1v33h6`}),J(`path`,{stroke:`#000`,"stroke-linecap":`round`,d:`M21 22h12m-12 8h12`})],-1)]],8,qo)]),J(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGzmZ6hexT+`)`},null,8,Jo)])}var Xo=W({name:`icon-park-solid-log`,render:Yo,setup(){return{idMap:{SVGzmZ6hexT:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),Zo={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`},Qo=[`id`],$o=[`mask`];function es(e,t){return F(),G(`svg`,Zo,[J(`defs`,null,[J(`mask`,{id:e.idMap.SVGXE6zpcEE},[...t[0]||=[J(`g`,{fill:`none`,"stroke-linejoin":`round`,"stroke-width":`4`},[J(`rect`,{width:`40`,height:`32`,x:`4`,y:`8`,fill:`#fff`,stroke:`#fff`,rx:`2`}),J(`path`,{stroke:`#000`,"stroke-linecap":`round`,d:`m12 18l7 6l-7 6m11 2h13`})],-1)]],8,Qo)]),J(`path`,{fill:`currentColor`,d:`M0 0h48v48H0z`,mask:`url(#`+e.idMap.SVGXE6zpcEE+`)`},null,8,$o)])}var ts=W({name:`icon-park-solid-terminal`,render:es,setup(){return{idMap:{SVGXE6zpcEE:`uicons-`+Math.random().toString(36).substr(2,10)}}}}),ns={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function rs(e,t){return F(),G(`svg`,ns,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312z`},null,-1)]])}var is=W({name:`material-symbols-automation`,render:rs}),as={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function os(e,t){return F(),G(`svg`,as,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M7.4 17.25q-1.05.875-2.187.8t-1.988-.775t-1.162-1.837t.412-2.338L4.35 10q-.625-.55-.987-1.325T3 7q0-1.65 1.175-2.825T7 3t2.825 1.175T11 7T9.825 9.825T7 11q-.225 0-.45-.025t-.425-.075L4.2 14.15q-.275.45-.175.888t.425.712t.775.313t.875-.313l10.5-9.025q1.05-.875 2.2-.788t2 .788t1.15 1.838t-.425 2.337L19.65 14q.625.55.988 1.325T21 17q0 1.65-1.175 2.825T17 21t-2.825-1.175T13 17t1.175-2.825T17 13q.225 0 .438.025t.412.075l1.95-3.25q.275-.45.175-.888t-.425-.712t-.775-.312t-.875.312zm1.013-8.837Q9 7.825 9 7t-.587-1.412T7 5t-1.412.588T5 7t.588 1.413T7 9t1.413-.587m10 10Q19 17.825 19 17t-.587-1.412T17 15t-1.412.588T15 17t.588 1.413T17 19t1.413-.587M17 17`},null,-1)]])}var ss=W({name:`material-symbols-automation-outline`,render:os}),cs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ls(e,t){return F(),G(`svg`,cs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6.5 20q-2.275 0-3.887-1.575T1 14.575q0-1.95 1.175-3.475T5.25 9.15q.625-2.3 2.5-3.725T12 4q2.925 0 4.963 2.038T19 11q1.725.2 2.863 1.488T23 15.5q0 1.875-1.312 3.188T18.5 20z`},null,-1)]])}var us=W({name:`material-symbols-cloud`,render:ls}),ds={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function fs(e,t){return F(),G(`svg`,ds,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6.5 20q-2.275 0-3.887-1.575T1 14.575q0-1.95 1.175-3.475T5.25 9.15q.625-2.3 2.5-3.725T12 4q2.925 0 4.963 2.038T19 11q1.725.2 2.863 1.488T23 15.5q0 1.875-1.312 3.188T18.5 20zm0-2h12q1.05 0 1.775-.725T21 15.5t-.725-1.775T18.5 13H17v-2q0-2.075-1.463-3.538T12 6T8.463 7.463T7 11h-.5q-1.45 0-2.475 1.025T3 14.5t1.025 2.475T6.5 18m5.5-6`},null,-1)]])}var ps=W({name:`material-symbols-cloud-outline`,render:fs}),ms={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function hs(e,t){return F(),G(`svg`,ms,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6 19h3v-5q0-.425.288-.712T10 13h4q.425 0 .713.288T15 14v5h3v-9l-6-4.5L6 10zm-2 0v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-4q-.425 0-.712-.288T13 20v-5h-2v5q0 .425-.288.713T10 21H6q-.825 0-1.412-.587T4 19m8-6.75`},null,-1)]])}var gs=W({name:`material-symbols-home-outline-rounded`,render:hs}),_s={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function vs(e,t){return F(),G(`svg`,_s,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M4 19v-9q0-.475.213-.9t.587-.7l6-4.5q.525-.4 1.2-.4t1.2.4l6 4.5q.375.275.588.7T20 10v9q0 .825-.588 1.413T18 21h-3q-.425 0-.712-.288T14 20v-5q0-.425-.288-.712T13 14h-2q-.425 0-.712.288T10 15v5q0 .425-.288.713T9 21H6q-.825 0-1.412-.587T4 19`},null,-1)]])}var ys=W({name:`material-symbols-home-rounded`,render:vs}),bs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function xs(e,t){return F(),G(`svg`,bs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 19.2c-2.5 0-4.71-1.28-6-3.2c.03-2 4-3.1 6-3.1s5.97 1.1 6 3.1a7.23 7.23 0 0 1-6 3.2M12 5a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3m0-3A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10c0-5.53-4.5-10-10-10`},null,-1)]])}var Ss=W({name:`mdi-account-circle`,render:xs}),Cs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ws(e,t){return F(),G(`svg`,Cs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2M7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.5.88 4.93 1.78A7.9 7.9 0 0 1 12 20c-1.86 0-3.57-.64-4.93-1.72m11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.93 7.93 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.5-1.64 4.83M12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6m0 5a1.5 1.5 0 0 1-1.5-1.5A1.5 1.5 0 0 1 12 8a1.5 1.5 0 0 1 1.5 1.5A1.5 1.5 0 0 1 12 11`},null,-1)]])}var Ts=W({name:`mdi-account-circle-outline`,render:ws}),Es={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ds(e,t){return F(),G(`svg`,Es,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M21 19v1H3v-1l2-2v-6c0-3.1 2.03-5.83 5-6.71V4a2 2 0 0 1 2-2a2 2 0 0 1 2 2v.29c2.97.88 5 3.61 5 6.71v6zm-7 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2`},null,-1)]])}var Os=W({name:`mdi-bell`,render:Ds}),ks={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function As(e,t){return F(),G(`svg`,ks,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M14 12h-4v-2h4m0 6h-4v-2h4m6-6h-2.81a6 6 0 0 0-1.82-1.96L17 4.41L15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3L7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20z`},null,-1)]])}var js=W({name:`mdi-bug`,render:As}),Ms={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ns(e,t){return F(),G(`svg`,Ms,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20 8h-2.81c-.45-.8-1.07-1.5-1.82-2L17 4.41L15.59 3l-2.17 2.17a6 6 0 0 0-2.83 0L8.41 3L7 4.41L8.62 6c-.75.5-1.36 1.21-1.81 2H4v2h2.09c-.06.33-.09.66-.09 1v1H4v2h2v1c0 .34.03.67.09 1H4v2h2.81A5.99 5.99 0 0 0 15 20.18c.91-.52 1.67-1.28 2.19-2.18H20v-2h-2.09c.06-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.03-.67-.09-1H20zm-4 7a4 4 0 0 1-4 4a4 4 0 0 1-4-4v-4a4 4 0 0 1 4-4a4 4 0 0 1 4 4zm-2-5v2h-4v-2zm-4 4h4v2h-4z`},null,-1)]])}var Ps=W({name:`mdi-bug-outline`,render:Ns}),Fs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Is(e,t){return F(),G(`svg`,Fs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 15.5A3.5 3.5 0 0 1 8.5 12A3.5 3.5 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5a3.5 3.5 0 0 1-3.5 3.5m7.43-2.53c.04-.32.07-.64.07-.97s-.03-.66-.07-1l2.11-1.63c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.31-.61-.22l-2.49 1c-.52-.39-1.06-.73-1.69-.98l-.37-2.65A.506.506 0 0 0 14 2h-4c-.25 0-.46.18-.5.42l-.37 2.65c-.63.25-1.17.59-1.69.98l-2.49-1c-.22-.09-.49 0-.61.22l-2 3.46c-.13.22-.07.49.12.64L4.57 11c-.04.34-.07.67-.07 1s.03.65.07.97l-2.11 1.66c-.19.15-.25.42-.12.64l2 3.46c.12.22.39.3.61.22l2.49-1.01c.52.4 1.06.74 1.69.99l.37 2.65c.04.24.25.42.5.42h4c.25 0 .46-.18.5-.42l.37-2.65c.63-.26 1.17-.59 1.69-.99l2.49 1.01c.22.08.49 0 .61-.22l2-3.46c.12-.22.07-.49-.12-.64z`},null,-1)]])}var Ls=W({name:`mdi-cog`,render:Is}),Rs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function zs(e,t){return F(),G(`svg`,Rs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M9 11.75A1.25 1.25 0 0 0 7.75 13A1.25 1.25 0 0 0 9 14.25A1.25 1.25 0 0 0 10.25 13A1.25 1.25 0 0 0 9 11.75m6 0A1.25 1.25 0 0 0 13.75 13A1.25 1.25 0 0 0 15 14.25A1.25 1.25 0 0 0 16.25 13A1.25 1.25 0 0 0 15 11.75M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2m0 18a8 8 0 0 1-8-8a4 4 0 0 1 0-.86a10.05 10.05 0 0 0 5.26-5.37A9.99 9.99 0 0 0 17.42 10c.76 0 1.51-.09 2.25-.26c1.25 4.26-1.17 8.69-5.41 9.93c-.76.22-1.5.33-2.26.33M0 2a2 2 0 0 1 2-2h4v2H2v4H0zm24 20a2 2 0 0 1-2 2h-4v-2h4v-4h2zM2 24a2 2 0 0 1-2-2v-4h2v4h4v2zM22 0a2 2 0 0 1 2 2v4h-2V2h-4V0z`},null,-1)]])}var Bs=W({name:`mdi-face-recognition`,render:zs}),Vs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Hs(e,t){return F(),G(`svg`,Vs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m10 17l-4-4l1.41-1.41L10 14.17l6.59-6.59L18 9m-6-8L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5z`},null,-1)]])}var Us=W({name:`mdi-shield-check`,render:Hs}),Ws={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Gs(e,t){return F(),G(`svg`,Ws,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M21 11c0 5.55-3.84 10.74-9 12c-5.16-1.26-9-6.45-9-12V5l9-4l9 4zm-9 10c3.75-1 7-5.46 7-9.78V6.3l-7-3.12L5 6.3v4.92C5 15.54 8.25 20 12 21m-2-4l-4-4l1.41-1.41L10 14.17l6.59-6.59L18 9`},null,-1)]])}var Ks=W({name:`mdi-shield-check-outline`,render:Gs}),qs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Js(e,t){return F(),G(`svg`,qs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M21 10V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h6v-1.87l8.39-8.39c.44-.44 1-.68 1.61-.74m-7-5.5l5.5 5.5H14zm8.85 9.69l-.98.98l-2.04-2.04l.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72m-3.72-.36l2.04 2.04L15.04 22H13v-2.04z`},null,-1)]])}var Ys=W({name:`mdi-note-edit`,render:Js}),Xs={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Zs(e,t){return F(),G(`svg`,Xs,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 0 0 2 2h6v-1.87l.13-.13H5V5h7v7zM14 4.5l5.5 5.5H14zm5.13 9.33l2.04 2.04L15.04 22H13v-2.04zm3.72.36l-.98.98l-2.04-2.04l.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72`},null,-1)]])}var Qs=W({name:`mdi-note-edit-outline`,render:Zs}),$s={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ec(e,t){return F(),G(`svg`,$s,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16 17v2H2v-2s0-4 7-4s7 4 7 4m-3.5-9.5A3.5 3.5 0 1 0 9 11a3.5 3.5 0 0 0 3.5-3.5m3.44 5.5A5.32 5.32 0 0 1 18 17v2h4v-2s0-3.63-6.06-4M15 4a3.4 3.4 0 0 0-1.93.59a5 5 0 0 1 0 5.82A3.4 3.4 0 0 0 15 11a3.5 3.5 0 0 0 0-7`},null,-1)]])}var tc=W({name:`mdi-users`,render:ec}),nc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function rc(e,t){return F(),G(`svg`,nc,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M13.07 10.41a5 5 0 0 0 0-5.82A3.4 3.4 0 0 1 15 4a3.5 3.5 0 0 1 0 7a3.4 3.4 0 0 1-1.93-.59M5.5 7.5A3.5 3.5 0 1 1 9 11a3.5 3.5 0 0 1-3.5-3.5m2 0A1.5 1.5 0 1 0 9 6a1.5 1.5 0 0 0-1.5 1.5M16 17v2H2v-2s0-4 7-4s7 4 7 4m-2 0c-.14-.78-1.33-2-5-2s-4.93 1.31-5 2m11.95-4A5.32 5.32 0 0 1 18 17v2h4v-2s0-3.63-6.06-4Z`},null,-1)]])}var ic=W({name:`mdi-users-outline`,render:rc}),ac={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function oc(e,t){return F(),G(`svg`,ac,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm10 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zM9 3a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm10 0a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`})],-1)]])}var sc=W({name:`mingcute-grid-fill`,render:oc}),cc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function lc(e,t){return F(),G(`svg`,cc,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M9 13a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2zm10 0a2 2 0 0 1 1.995 1.85L21 15v4a2 2 0 0 1-1.85 1.995L19 21h-4a2 2 0 0 1-1.995-1.85L13 19v-4a2 2 0 0 1 1.85-1.995L15 13zM9 15H5v4h4zm10 0h-4v4h4zm0-12a2 2 0 0 1 1.995 1.85L21 5v4a2 2 0 0 1-1.85 1.995L19 11h-4a2 2 0 0 1-1.995-1.85L13 9V5a2 2 0 0 1 1.85-1.995L15 3zM9 3a2 2 0 0 1 1.995 1.85L11 5v4a2 2 0 0 1-1.85 1.995L9 11H5a2 2 0 0 1-1.995-1.85L3 9V5a2 2 0 0 1 1.85-1.995L5 3zm10 2h-4v4h4zM9 5H5v4h4z`})],-1)]])}var uc=W({name:`mingcute-grid-line`,render:lc}),dc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function fc(e,t){return F(),G(`svg`,dc,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M5 3a3 3 0 0 0-3 3v10a2 2 0 0 0 2 2V6a1 1 0 0 1 1-1h14a2 2 0 0 0-2-2zm0 5a2 2 0 0 1 2-2h13a2 2 0 0 1 2 2v11.333a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2zm15 0H7v7.848L10.848 12a1.25 1.25 0 0 1 1.768 0l3.241 3.24l.884-.883a1.25 1.25 0 0 1 1.768 0L20 15.848zm-2 3a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0`})],-1)]])}var pc=W({name:`mingcute-photo-album-fill`,render:fc}),mc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function hc(e,t){return F(),G(`svg`,mc,[...t[0]||=[J(`g`,{fill:`none`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M20 6a2 2 0 0 1 2 2v11.333a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm-8.268 7.944L7.136 18.54l-.066.06l-.07.054v.68h13v-.68l-.07-.053l-.066-.06l-2.24-2.24l-.353.354l.055.055a1 1 0 0 1-1.32 1.497l-.094-.083zM17 3a2 2 0 0 1 1.995 1.85L19 5H5a1 1 0 0 0-.993.883L4 6v12a2 2 0 0 1-1.995-1.85L2 16V6a3 3 0 0 1 2.824-2.995L5 3zm3 5H7v7.848L10.848 12a1.25 1.25 0 0 1 1.768 0l3.241 3.24l.884-.883a1.25 1.25 0 0 1 1.768 0L20 15.848zm-3.5 1.5a1.5 1.5 0 1 1 0 3a1.5 1.5 0 0 1 0-3`})],-1)]])}var gc=W({name:`mingcute-photo-album-line`,render:hc}),_c={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function vc(e,t){return F(),G(`svg`,_c,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M18.5 4a1.5 1.5 0 0 0-3 0v.5H4a1.5 1.5 0 1 0 0 3h11.5V8a1.5 1.5 0 0 0 3 0v-.5H20a1.5 1.5 0 0 0 0-3h-1.5zM4 10.5a1.5 1.5 0 0 0 0 3h1.5v.5a1.5 1.5 0 0 0 3 0v-.5H20a1.5 1.5 0 0 0 0-3H8.5V10a1.5 1.5 0 1 0-3 0v.5zM2.5 18A1.5 1.5 0 0 1 4 16.5h11.5V16a1.5 1.5 0 0 1 3 0v.5H20a1.5 1.5 0 0 1 0 3h-1.5v.5a1.5 1.5 0 0 1-3 0v-.5H4A1.5 1.5 0 0 1 2.5 18`})],-1)]])}var yc=W({name:`mingcute-settings-2-fill`,render:vc}),bc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function xc(e,t){return F(),G(`svg`,bc,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M18 4a1 1 0 1 0-2 0v1H4a1 1 0 0 0 0 2h12v1a1 1 0 1 0 2 0V7h2a1 1 0 1 0 0-2h-2zM4 11a1 1 0 1 0 0 2h2v1a1 1 0 1 0 2 0v-1h12a1 1 0 1 0 0-2H8v-1a1 1 0 0 0-2 0v1zm-1 7a1 1 0 0 1 1-1h12v-1a1 1 0 1 1 2 0v1h2a1 1 0 1 1 0 2h-2v1a1 1 0 1 1-2 0v-1H4a1 1 0 0 1-1-1`})],-1)]])}var Sc=W({name:`mingcute-settings-2-line`,render:xc}),Cc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function wc(e,t){return F(),G(`svg`,Cc,[...t[0]||=[bn(`<g fill="currentColor"><circle cx="5" cy="5" r="1.5"></circle><circle cx="12" cy="5" r="1.5"></circle><circle cx="19" cy="5" r="1.5"></circle><circle cx="5" cy="12" r="1.5"></circle><circle cx="12" cy="12" r="1.5"></circle><circle cx="19" cy="12" r="1.5"></circle><circle cx="5" cy="19" r="1.5"></circle><circle cx="12" cy="19" r="1.5"></circle><circle cx="19" cy="19" r="1.5"></circle></g>`,1)]])}var Tc=W({name:`proicons-grid-dots`,render:wc}),Ec={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Dc(e,t){return F(),G(`svg`,Ec,[...t[0]||=[J(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M3.464 3.464C2 4.93 2 7.286 2 12s0 7.071 1.464 8.535C4.93 22 7.286 22 12 22s7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536C19.072 2 16.714 2 12 2S4.929 2 3.464 3.464m14.112 7.016a.75.75 0 0 0-1.152-.96l-1.797 2.156c-.37.445-.599.716-.786.885a.8.8 0 0 1-.163.122l-.011.005l-.008-.004l-.003-.001a.8.8 0 0 1-.164-.122c-.187-.17-.415-.44-.786-.885l-.292-.35c-.328-.395-.625-.75-.901-1c-.301-.272-.68-.514-1.18-.514s-.878.242-1.18.514c-.276.25-.572.605-.9 1l-1.83 2.194a.75.75 0 1 0 1.153.96l1.797-2.156c.37-.445.599-.716.786-.885a.8.8 0 0 1 .163-.122l.007-.003l.004-.002l.011.005a.8.8 0 0 1 .164.122c.187.17.415.44.786.885l.292.35c.329.395.625.75.901 1c.301.272.68.514 1.18.514s.878-.242 1.18-.514c.276-.25.572-.605.9-1z`,"clip-rule":`evenodd`},null,-1)]])}var Oc=W({name:`solar-graph-bold`,render:Dc}),kc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ac(e,t){return F(),G(`svg`,kc,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M17.576 10.48a.75.75 0 0 0-1.152-.96l-1.797 2.156c-.37.445-.599.716-.786.885a.8.8 0 0 1-.163.122l-.011.005l-.011-.005a.8.8 0 0 1-.164-.122c-.187-.17-.415-.44-.786-.885l-.292-.35c-.328-.395-.625-.75-.901-1c-.301-.272-.68-.514-1.18-.514s-.878.242-1.18.514c-.276.25-.572.605-.9 1l-1.83 2.194a.75.75 0 1 0 1.153.96l1.797-2.156c.37-.445.599-.716.786-.885a.8.8 0 0 1 .163-.122l.011-.005l.011.005a.8.8 0 0 1 .164.122c.187.17.415.44.786.885l.292.35c.329.395.625.75.901 1c.301.272.68.514 1.18.514s.878-.242 1.18-.514c.276-.25.572-.605.9-1z`},null,-1),J(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M11.943 1.25c-2.309 0-4.118 0-5.53.19c-1.444.194-2.584.6-3.479 1.494c-.895.895-1.3 2.035-1.494 3.48c-.19 1.411-.19 3.22-.19 5.529v.114c0 2.309 0 4.118.19 5.53c.194 1.444.6 2.584 1.494 3.479c.895.895 2.035 1.3 3.48 1.494c1.411.19 3.22.19 5.529.19h.114c2.309 0 4.118 0 5.53-.19c1.444-.194 2.584-.6 3.479-1.494c.895-.895 1.3-2.035 1.494-3.48c.19-1.411.19-3.22.19-5.529v-.114c0-2.309 0-4.118-.19-5.53c-.194-1.444-.6-2.584-1.494-3.479c-.895-.895-2.035-1.3-3.48-1.494c-1.411-.19-3.22-.19-5.529-.19zM3.995 3.995c.57-.57 1.34-.897 2.619-1.069c1.3-.174 3.008-.176 5.386-.176s4.086.002 5.386.176c1.279.172 2.05.5 2.62 1.069c.569.57.896 1.34 1.068 2.619c.174 1.3.176 3.008.176 5.386s-.002 4.086-.176 5.386c-.172 1.279-.5 2.05-1.069 2.62c-.57.569-1.34.896-2.619 1.068c-1.3.174-3.008.176-5.386.176s-4.086-.002-5.386-.176c-1.279-.172-2.05-.5-2.62-1.069c-.569-.57-.896-1.34-1.068-2.619c-.174-1.3-.176-3.008-.176-5.386s.002-4.086.176-5.386c.172-1.279.5-2.05 1.069-2.62`,"clip-rule":`evenodd`},null,-1)]])}var jc=W({name:`solar-graph-outline`,render:Ac}),Mc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Nc(e,t){return F(),G(`svg`,Mc,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 7h3a1 1 0 0 0 1-1V5a2 2 0 0 1 4 0v1a1 1 0 0 0 1 1h3a1 1 0 0 1 1 1v3a1 1 0 0 0 1 1h1a2 2 0 0 1 0 4h-1a1 1 0 0 0-1 1v3a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-1a2 2 0 0 0-4 0v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-3a1 1 0 0 1 1-1h1a2 2 0 0 0 0-4H4a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1`},null,-1)]])}var Pc=W({name:`tabler-puzzle`,render:Nc}),Fc={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ic(e,t){return F(),G(`svg`,Fc,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M10 2a3 3 0 0 1 2.995 2.824L13 5v1h3a2 2 0 0 1 1.995 1.85L18 8v3h1a3 3 0 0 1 .176 5.995L19 17h-1v3a2 2 0 0 1-1.85 1.995L16 22h-3a2 2 0 0 1-1.995-1.85L11 20v-1a1 1 0 0 0-1.993-.117L9 19v1a2 2 0 0 1-1.85 1.995L7 22H4a2 2 0 0 1-1.995-1.85L2 20v-3a2 2 0 0 1 1.85-1.995L4 15h1a1 1 0 0 0 .117-1.993L5 13H4a2 2 0 0 1-1.995-1.85L2 11V8a2 2 0 0 1 1.85-1.995L4 6h3V5a3 3 0 0 1 3-3`},null,-1)]])}var Lc=W({name:`tabler-puzzle-filled`,render:Ic}),Rc=`cui-chunk-reload`,zc=2,Bc=8e3;function Vc(e){let t=Number(sessionStorage.getItem(Rc)??`0`)||0;t>=zc||(sessionStorage.setItem(Rc,String(t+1)),e())}function Hc(e=Bc){setTimeout(()=>sessionStorage.removeItem(Rc),e)}function Uc(){let{angle:e}=nl(),t=rl({listenOrientation:!0});return{xxsBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<=360}),xsBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<=450}),smBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<640}),mdBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n<768}),xmdBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=640&&n<1024}),lgBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=1024}),xlBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=1280}),xxlBreakpoint:U(()=>{let n=t.width.value;return e.value>0&&(n=screen.height>screen.width?screen.height:screen.width),n>=1536})}}function Wc(){let e=U(()=>typeof window>`u`?!1:[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>navigator.userAgent.match(e))),t=U(()=>typeof window>`u`?!1:[/Android/i].some(e=>navigator.userAgent.match(e))),n=U(()=>typeof window>`u`?!1:r.value||i.value),r=U(()=>typeof window>`u`?!1:[/iPhone/i].some(e=>navigator.userAgent.match(e))),i=U(()=>typeof window>`u`?!1:[/Macintosh/i].some(e=>navigator.userAgent.match(e)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1)),a=U(()=>typeof window>`u`?[0,0]:r.value&&navigator.userAgent.match(/OS [\d_]+/i)?.[0].substr(3).split(`_`).map(e=>parseInt(e))||[0,0]),o=U(()=>typeof window>`u`?!1:[/Safari/i].some(e=>navigator.userAgent.match(e))),s=U(()=>typeof window>`u`?null:navigator.userAgent.match(/Version\/(\d+).+Safari/)),c=U(()=>typeof window>`u`?!1:[/Firefox/i].some(e=>navigator.userAgent.match(e))),l=U(()=>typeof window>`u`?!1:[/Chrome/i].some(e=>navigator.userAgent.match(e))),u=U(()=>{let e=!1;if(`maxTouchPoints`in navigator)e=navigator.maxTouchPoints>0;else if(`msMaxTouchPoints`in navigator)navigator!==null&&(e=navigator.msMaxTouchPoints>0);else{let t=matchMedia(`(pointer:coarse)`);if(t&&t.media===`(pointer:coarse)`)e=!!t.matches;else if(`orientation`in window)e=!0;else{let t=navigator.userAgent;e=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(t)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(t)}}return e}),d=U(()=>cl(`(display-mode: standalone)`).value||window.navigator.standalone||document.referrer.includes(`android-app://`)),f=U(()=>{let e=document.body.requestFullscreen!==void 0||document.body.mozRequestFullScreen!==void 0||document.body.webkitRequestFullscreen!==void 0||document.body.msRequestFullscreen!==void 0||document.exitFullscreen!==void 0||document.mozCancelFullScreen!==void 0||document.webkitExitFullscreen!==void 0,[t,n]=a.value,i=t&&t>=17&&n&&n>=2;return!!(e||!r.value||r.value&&i)});return{isPWA:d,isMobile:e,isAndroid:t,isIos:n,isIphone:r,isIpad:i,iosVersion:a,isSafari:o,safariVersion:s,isFirefox:c,isChrome:l,isTouch:u,isPipSupported:U(()=>{let e=`pictureInPictureEnabled`in document;return n.value&&d.value?!1:e}),isFsSupported:f}}var Gc={HEIGHT:70},Kc={HEIGHT:60},qc=[`account`,`appearance`,`user`,`notifications`,`permissions`,`recordings`,`remote`,`backup`,`system`],Jc={cameras:{showEvents:!0,order:[],groupOrder:{},viewMode:`default`,dragDisabled:!0},camview:{dragDisabled:!1},config:{zoom:12},console:{zoom:12},interface:{showBottomBarOnMobile:!0,selectedSettingsView:`account`,navbarStayCollapsed:!0},"cui-logger-debug":1,"cui-logger-recording":1},Yc=Xn(`ui`,()=>({uiSettings:Te(`ui`,Jc,{mergeDefaults:!0})}));function Xc(){let e=Qn(),t=U(()=>e.meta.ui);return{ui:t,showNavbar:U(()=>!!gn(t.value?.showNavbar)),showTopbar:U(()=>!!gn(t.value?.showTopbar)),showBottombar:U(()=>!!gn(t.value?.showBottombar)),showRouterLoading:U(()=>!!gn(t.value?.showRouterLoading)),showRouterLoadingSub:U(()=>!!gn(t.value?.showRouterLoadingSub)),minifiedTopbar:U(()=>!!gn(t.value?.minifiedTopbar)),background:U(()=>gn(t.value?.background)),padding:U(()=>!!gn(t.value?.containerSettings?.padding)),paddingTop:U(()=>gn(t.value?.containerSettings?.paddingTop)),paddingBottom:U(()=>gn(t.value?.containerSettings?.paddingBottom)),paddingLeft:U(()=>gn(t.value?.containerSettings?.paddingLeft)),paddingRight:U(()=>gn(t.value?.containerSettings?.paddingRight)),showTitle:U(()=>!!gn(t.value?.containerSettings?.showTitle)),fullwidth:U(()=>!!gn(t.value?.containerSettings?.fullwidth)),disableScroll:U(()=>!!gn(t.value?.containerSettings?.disableScroll)),ignoreSafeAreaBottom:U(()=>!!gn(t.value?.containerSettings?.ignoreSafeAreaBottom)),noExtraPadding:U(()=>!!gn(t.value?.containerSettings?.noExtraPadding)),allowOverflowX:U(()=>!!gn(t.value?.containerSettings?.allowOverflowX))}}var Zc=Symbol(`cui-app-bus`),Qc=vn({navbarState:void 0,subbarState:void 0});function $c(){Qc.navbarState=void 0,Qc.subbarState=void 0}function el(){let e=b(Zc);return e.on(({subbarState:e,navbarState:t})=>{e&&e!==Qc.subbarState&&(Qc.subbarState=e),t&&t!==Qc.navbarState&&(Qc.navbarState=t)}),{state:Qc,bus:e}}function tl(){let e=Yc(),t=Qn(),n=Xc(),{state:r}=el(),{mdBreakpoint:i,smBreakpoint:a,xlBreakpoint:o}=al(),{uiSettings:s}=er(e),c=U(()=>{if(u.value)return s.value.interface.navbarStayCollapsed&&r.navbarState!==`opened`?i.value?`closed`:`minified`:o.value||r.navbarState===`opened`?`opened`:i.value?`closed`:`minified`}),l=U(()=>t.path.includes(`/settings`)?o.value?`opened`:r.subbarState?r.subbarState:`closed`:void 0),u=U(()=>n.showNavbar.value),d=U(()=>n.showBottombar.value&&s.value.interface.showBottomBarOnMobile&&a.value),f=U(()=>n.showTopbar.value);return{navbarState:c,subbarState:l,showBottombar:d,showNavbar:u,showTopbar:f,topbarHeight:U(()=>f.value?n.minifiedTopbar.value?0:Kc.HEIGHT:0),bottombarHeight:U(()=>d.value?Gc.HEIGHT:0)}}var nl=Fe(mt),rl=Fe(et),il=Fe(Oe),al=Fe(Uc),ol=Fe(Wc),sl=Fe(tl),cl=Fe(Ce),ll=hn({__name:`CuiFloatingButtonGroup`,props:{direction:{default:`vertical`},right:{},forceVisible:{type:Boolean}},setup(e){let t=e,{bottombarHeight:n}=sl(),{direction:r,forceVisible:i}=An(t),{y:a}=Je(window,{throttle:100});return(t,o)=>(F(),G(`div`,{class:I([`fixed z-10 flex transition-all duration-200 ease-in-out`,{"right-safe-offset-5":!e.right,"flex-col":Z(r)===`vertical`,"flex-row":Z(r)===`horizontal`,"scale-0 opacity-0":!Z(i)&&Z(a)>10,"scale-100 opacity-100":Z(i)||Z(a)<=10}]),style:X({bottom:`calc(${Z(n)}px + 1.25rem + env(safe-area-inset-bottom, 0px))`,right:e.right||void 0})},[sn(t.$slots,`default`)],6))}}),ul=hn({__name:`CuiFloatingButton`,props:{buttonProps:{},tooltipProps:{},label:{},icon:{},iconProps:{},grouped:{type:Boolean},forceVisible:{type:Boolean}},emits:[`click`,`expand`,`shrink`,`hover`],setup(e,{emit:t}){let n=e,r=t,{bottombarHeight:i}=sl(),{buttonProps:a,tooltipProps:o,label:s,icon:c,iconProps:l,grouped:u,forceVisible:d}=An(n),f=K(!1),{y:p}=Je(window,{throttle:100});function m(e){f.value=e,r(`hover`,e)}return P(p,()=>{u?.value||(d?.value||p.value<=10?r(`expand`):r(`shrink`))},{immediate:!0,deep:!0}),(e,t)=>{let n=ae,r=se;return Tn((F(),G(`div`,{class:I([`transition-all duration-300 ease-in-out cui-icon-3xl`,[{"fixed right-safe-offset-5 z-10":!Z(u),"scale-0 opacity-0":!Z(u)&&!Z(d)&&Z(p)>10,"scale-100 opacity-100":!Z(u)&&(Z(d)||Z(p)<=10),"scale-110":Z(f)}]]),style:X(Z(u)?void 0:{bottom:`calc(${Z(i)}px + 1.25rem + env(safe-area-inset-bottom, 0px))`})},[Tn((F(),B(n,H(Z(a),{rounded:``,onClick:t[0]||=t=>e.$emit(`click`),label:Z(s),class:`shadow-lg`}),Sn({_:2},[Z(c)?{name:`icon`,fn:q(()=>[(F(),B(cn(Z(c)),zt(an(Z(l))),null,16))]),key:`0`}:void 0]),1040,[`label`])),[[r,Z(o),void 0,{left:!0}]])],6)),[[Z(nr),[m,{}]]])}}}),dl=[`src`,`alt`],fl=[`src`,`alt`],pl=hn({__name:`CuiImage`,props:{src:{},alt:{default:`Image`},width:{default:`100%`},height:{default:`100%`},imageStyle:{type:[Boolean,null,String,Object,Array]},imageClass:{type:[Boolean,null,String,Object,Array]},imageContainerClass:{type:[Boolean,null,String,Object,Array]},imageContainerStyle:{type:[Boolean,null,String,Object,Array]}},setup(e,{expose:t}){let{src:n,width:r,height:i,imageStyle:a,imageClass:o,imageContainerClass:s,imageContainerStyle:c}=An(e),l=K(!1),u=new Image,d=K(),f=U(()=>n.value?Mw(n.value):void 0),p=U(()=>!!n.value&&!d.value&&!l.value),m=U(()=>Mw()),h=U(()=>(u.src=d.value||f.value||``,{width:u.width,height:u.height})),g=U(()=>r.value?typeof r.value==`number`?`${r.value}px`:r.value:`auto`),_=U(()=>i.value?typeof i.value==`number`?`${i.value}px`:i.value:`auto`);return P(f,e=>{if(l.value=!1,!e){d.value=void 0;return}if(e===d.value)return;let t=new Image;t.src=e,t.decode().then(()=>{f.value===e&&(d.value=e)}).catch(()=>{f.value===e&&(l.value=!0)})},{immediate:!0}),t({snapshotDimensions:h}),(t,r)=>{let i=wt,u=_r;return F(),B(u,{alt:e.alt,class:`w-full h-full flex items-center justify-center`},{image:q(()=>[Z(p)?(F(),B(i,{key:0,"stroke-width":`6`,class:`w-[50%] h-[50%] max-w-[30px] max-h-[30px]`})):V(``,!0),Tn(J(`div`,{class:I(Z(s)),style:X(Z(c))},[!Z(l)&&Z(d)?(F(),G(`img`,{key:0,src:Z(d),alt:e.alt,decoding:`async`,style:X([{width:Z(g),height:Z(_)},Z(a)]),class:I(Z(o))},null,14,dl)):V(``,!0),Z(l)||!Z(n)?(F(),G(`img`,{key:1,src:Z(m),alt:e.alt,decoding:`async`,style:X({width:Z(g),height:Z(_)}),class:`object-contain`},null,12,fl)):V(``,!0)],6),[[wn,!Z(p)]])]),_:1},8,[`alt`])}}}),ml=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},hl=ml(pl,[[`__scopeId`,`data-v-1c793219`]]);async function gl(e){e={...e,filename:_l(e.filename)};let t=await bl(e);xl()&&await Sl(t,e.filename)||Cl(t,e.filename)}function _l(e){return e.replace(/[\\/:*?"<>|]/g,`_`)}function vl(e){return/^https?:\/\//i.test(e)?e:`${Qr().target.value?.endpoint.url??window.location.origin}${e.startsWith(`/`)?``:`/`}${e}`}function yl(){let e={},t=Qr().target.value?.tokens;return t?.access&&(e.Authorization=`Bearer ${t.access}`),t?.proxySession&&(e[`X-Proxy-Session`]=t.proxySession),e}async function bl(e){if(`blob`in e)return e.blob;if(`dataUrl`in e)return(await fetch(e.dataUrl)).blob();let t=await fetch(vl(e.url),{headers:yl(),credentials:`include`});if(!t.ok)throw Error(`Download failed: ${t.status} ${t.statusText}`);return t.blob()}function xl(){return typeof window>`u`?!1:window.matchMedia(`(display-mode: standalone)`).matches?!0:!!window.navigator.standalone}async function Sl(e,t){if(typeof navigator>`u`||!navigator.canShare||!navigator.share)return!1;let n=new File([e],t,{type:e.type||`application/octet-stream`});if(!navigator.canShare({files:[n]}))return!1;try{return await navigator.share({files:[n]}),!0}catch(e){return e instanceof Error&&e.name===`AbortError`}}function Cl(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}var wl={key:2,class:`absolute top-0 right-0 m-4 px-1.5 py-0.5 text-[10px] font-semibold bg-black/30 rounded-full text-white pointer-events-none`},Tl=hn({__name:`CuiCameraSnapshot`,props:{camera:{},src:{},loading:{type:Boolean},showLoadingScreen:{type:Boolean,default:!0},width:{default:`100%`},height:{default:`100%`},objectFit:{default:`cover`},aspectRatio:{},imageStyle:{type:[Boolean,null,String,Object,Array]},imageClass:{type:[Boolean,null,String,Object,Array]},showTimestamp:{type:Boolean}},setup(e,{expose:t}){let n=e,{camera:r,loading:i,src:a,width:o,height:s,showLoadingScreen:c,objectFit:l,aspectRatio:u,imageStyle:d,imageClass:f,showTimestamp:p}=An(n),{snapshotSrc:m,isLoading:h,snapshotTimestamp:g,refresh:_}=Dt(r),v=n.showTimestamp?Re({interval:1e3}):void 0,y=un(`cuiImageRef`),b=U(()=>typeof r.value==`object`&&r.value?.disabled===!0),x=U(()=>a.value||m.value),S=U(()=>!b.value&&(i.value||h.value)&&c.value&&!x.value),C=U(()=>d.value?d.value:{objectFit:l.value,aspectRatio:u.value,width:o.value,height:s.value}),w=U(()=>f.value||``),T=U(()=>{let e=r.value;return typeof e==`string`?e:e.name}),E=U(()=>y.value?.snapshotDimensions),ee=U(()=>{if(!(!v||!g.value))return D(v.value.getTime()-g.value)});function D(e){let t=Math.floor(e/1e3);if(t<1)return`now`;if(t<60)return`${t}s`;let n=Math.floor(t/60);if(n<60)return`${n}min`;let r=Math.floor(n/60);if(r<24)return`${r}h`;let i=Math.floor(r/24);if(i<30)return`${i}d`;let a=Math.floor(i/30);return a<12?`${a}m`:`${Math.floor(i/365)}y`}async function O(){if(x.value){let e=`${T.value.replace(/ /g,`_`).toLowerCase()}_${new Date().toISOString()}.png`;await gl({dataUrl:x.value,filename:e,mimeType:`image/png`})}}return t({download:O,refresh:_,isLoading:S,snapshotSrc:x,snapshotDimensions:E}),(e,t)=>{let n=wt,r=hl;return F(),G(`div`,{class:I([`bg-black aspect-video flex items-center justify-center`,{relative:Z(p)}]),style:X({width:`${Z(o)}`,height:`${Z(s)}`})},[Z(S)?(F(),B(n,{key:0,class:`m-0 max-w-[30px] max-h-[30px]`,"stroke-width":`5`,style:X({width:`calc(${Z(o)} / 2)`,height:`calc(${Z(s)} / 2)`})},null,8,[`style`])):Z(b)?V(``,!0):(F(),B(r,{key:1,ref_key:`cuiImageRef`,ref:y,src:Z(x),"image-container-class":`w-full h-full flex items-center justify-center`,"image-style":Z(C),"image-class":Z(w)},null,8,[`src`,`image-style`,`image-class`])),Z(p)&&Z(g)&&!Z(b)?(F(),G(`span`,wl,L(Z(ee)),1)):V(``,!0)],6)}}}),El={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Dl(e,t){return F(),G(`svg`,El,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20`},null,-1)]])}var Ol=W({name:`material-symbols-refresh-rounded`,render:Dl}),kl={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Al(e,t){return F(),G(`svg`,kl,[...t[0]||=[J(`path`,{fill:`currentColor`,"fill-rule":`evenodd`,d:`M18 2.75a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .53 1.28l-2.72 2.72H22a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.53-1.28l2.72-2.72zm-4.5 6a.75.75 0 0 1 0-1.5h3a.75.75 0 0 1 .53 1.28l-1.72 1.72h1.19a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1-.53-1.28l1.72-1.72z`,"clip-rule":`evenodd`},null,-1),J(`path`,{fill:`currentColor`,d:`M12 22c5.523 0 10-4.477 10-10c0-.463-.694-.54-.933-.143a6.5 6.5 0 1 1-8.924-8.924C12.54 2.693 12.463 2 12 2C6.477 2 2 6.477 2 12s4.477 10 10 10`},null,-1)]])}var jl=W({name:`solar-moon-sleep-bold`,render:Al}),Ml={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Nl(e,t){return F(),G(`svg`,Ml,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59z`},null,-1)]])}var Pl=W({name:`mdi-check`,render:Nl}),Fl={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function Il(e,t){return F(),G(`svg`,Fl,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m20.923 22.337l7.37 7.37a1 1 0 0 0 1.414-1.414l-26-26a1 1 0 0 0-1.414 1.414L4.884 6.3A4.5 4.5 0 0 0 2 10.5v11A4.5 4.5 0 0 0 6.5 26h10c2.2 0 4.03-1.578 4.423-3.663m1.577-3.374l5.52 5.519c1.056-.134 1.976-1.017 1.976-2.236V9.754c0-1.814-2.036-2.882-3.528-1.852l-3.968 2.74zM9.537 6L21 17.463V10.5A4.5 4.5 0 0 0 16.5 6z`},null,-1)]])}var Ll=W({name:`fluent-video-off32-filled`,render:Il}),Rl={user:0,admin:1,master:2};function zl(e,t){return(Rl[e]??0)>=(Rl[t]??0)}function Bl(e,t,n){let{user:r}=er(Dw()),i=r.value?.role??`user`;if(t&&!e)return n?i===t:zl(i,t);e??=Qn();let a=!e?.meta?.auth||e?.meta?.auth.requiresAuth===!1,o=t??e.meta?.auth?.role??`user`;return a||o===`none`?!0:n?i===o:zl(i,o)}var Vl=[`draggable`],Hl={key:0,class:`absolute inset-0 z-2 flex items-center justify-center bg-black/80 pointer-events-none`},Ul={key:1,class:`absolute top-3 left-3 z-4 pointer-events-none`},Wl={class:`w-full h-[60px] p-4 absolute bottom-0 z-3 flex items-center gap-1 justify-between pointer-events-none`},Gl={class:`text-xs font-semibold p-2 bg-black/60 rounded-full text-white flex items-center gap-1`},Kl=300,ql=ml(hn({__name:`CuiDraggableCameraCard`,props:{camera:{},noDrag:{type:Boolean},viewTransition:{type:Boolean},selectionMode:{type:Boolean},selected:{type:Boolean},findCard:{type:Function},moveCard:{type:Function},snapshotRef:{type:Function}},emits:[`refresh-snapshot`,`open-console`,`open-settings`,`click`],setup(e){let t=e,{x:n,y:r,sourceType:i}=il(),{camera:a,noDrag:o,viewTransition:s}=An(t),c=un(`boxRef`),l=xn(),u=xn(null),d=K(0),f=K(0),p=K(!1),m=null,h=0,g=U(()=>!o.value),_=U(()=>t.findCard(a.value._id).index),[v,y]=Sr(()=>({type:`camera-card`,canDrag(){return g.value},item:()=>(m=null,h=0,{id:a.value._id,originalIndex:_.value}),collect:e=>({isDragging:e.isDragging()}),end:(e,n)=>{let{id:r,originalIndex:i}=e;n.didDrop()||t.moveCard(r,i)}})),[,b]=wr(()=>({accept:`camera-card`,hover({id:e}){if(e!==a.value._id){let n=Date.now();if(m===a.value._id&&n-h<Kl)return;let{index:r}=t.findCard(a.value._id),{index:i}=t.findCard(e);i!==r&&(m=a.value._id,h=n,t.moveCard(e,r))}}})),x=U(()=>v.value.isDragging),S=U(()=>x.value&&i.value===`touch`);function C(){w(),p.value=!0;let e=c.value?.getBoundingClientRect();e&&(d.value=n.value-e.left,f.value=r.value-e.top,T())}function w(){p.value=!1,E(),d.value=0,f.value=0}function T(){if(E(),!c.value)return;let e=c.value.cloneNode(!0),t=c.value.getBoundingClientRect();e.style.width=`${t.width}px`,e.style.height=`${t.height}px`,e.classList.add(`drag-preview`),document.body.appendChild(e),u.value=e}function E(){u.value&&document.body.contains(u.value)&&document.body.removeChild(u.value),u.value=null}function ee(){!u.value||!p.value||requestAnimationFrame(()=>{if(!u.value)return;let e=n.value-d.value,t=r.value-f.value;u.value.style.left=`${e}px`,u.value.style.top=`${t}px`})}function D(e){l.value=y(b(e))}return P(S,e=>{e?C():w()}),P([n,r],()=>{ee()},{flush:`sync`}),Zt(()=>{w()}),(t,n)=>{let r=Ll,i=Pl,o=jl,l=Ol,u=ae,d=Ho,f=Ls,p=Tl,m=se;return F(),G(`div`,{ref_key:`boxRef`,ref:c,class:`camera-wrapper`},[J(`div`,{ref:D,class:I([`rounded-xl overflow-hidden border-[1px] border-color relative`,{"cursor-move":Z(g)&&!Z(x)}]),style:X({opacity:+!Z(x),viewTransitionName:Z(s)?`camera-card-${Z(a).name.replace(/[^a-zA-Z0-9-_]/g,`-`)}`:void 0}),draggable:Z(g)},[Z(a).disabled?(F(),G(`div`,Hl,[Y(r,{class:`w-8 h-8 text-white/60`})])):V(``,!0),e.selectionMode?(F(),G(`div`,Ul,[J(`div`,{class:I([`w-6 h-6 rounded-full border-2 flex items-center justify-center transition-colors`,e.selected?`bg-primary border-primary`:`bg-black/40 border-white/80`])},[e.selected?(F(),B(i,{key:0,class:`w-4 h-4 text-white`})):V(``,!0)],2)])):V(``,!0),J(`div`,Wl,[J(`span`,Gl,[pn(L(Z(a).name)+` `,1),Z(a).disabled?(F(),B(r,{key:0,class:`w-3 h-3 text-red-400`})):Z(a).detectionSettings?.snooze?(F(),B(o,{key:1,class:`w-3 h-3 text-amber-400`})):V(``,!0)]),e.selectionMode?V(``,!0):(F(),G(z,{key:0},[Z(a).disabled?V(``,!0):(F(),G(z,{key:0},[Tn((F(),B(u,{severity:`secondary`,rounded:``,class:`dark-mode cui-icon-md pointer-events-auto ml-auto`,onClick:n[0]||=Cn(e=>t.$emit(`refresh-snapshot`),[`stop`])},{icon:q(()=>[Y(l,{width:`100%`,height:`100%`})]),_:1})),[[m,{value:t.$t(`components.player.refresh_snapshot`)},void 0,{top:!0}]]),(`hasPermission`in t?t.hasPermission:Z(Bl))(void 0,`admin`)?Tn((F(),B(u,{key:0,severity:`secondary`,rounded:``,class:`dark-mode cui-icon-md pointer-events-auto`,onClick:n[1]||=Cn(e=>t.$emit(`open-console`),[`stop`])},{icon:q(()=>[Y(d,{width:`100%`,height:`100%`})]),_:1})),[[m,{value:t.$t(`components.player.log`)},void 0,{top:!0}]]):V(``,!0)],64)),(`hasPermission`in t?t.hasPermission:Z(Bl))(void 0,`admin`)?Tn((F(),B(u,{key:1,rounded:``,severity:`secondary`,class:I([`dark-mode cui-icon-md pointer-events-auto`,{"ml-auto":Z(a).disabled}]),onClick:n[2]||=Cn(e=>t.$emit(`open-settings`),[`stop`])},{icon:q(()=>[Y(f,{width:`100%`,height:`100%`})]),_:1},8,[`class`])),[[m,{value:t.$t(`components.player.settings`)},void 0,{top:!0}]]):V(``,!0)],64))]),Y(p,{ref:e.snapshotRef,camera:Z(a),"show-timestamp":``,class:`cursor-pointer`,onClick:n[3]||=e=>t.$emit(`click`)},null,8,[`camera`])],14,Vl)],512)}}}),[[`__scopeId`,`data-v-6f10d420`]]),Jl={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Yl(e,t){return F(),G(`svg`,Jl,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 5v14m-7-7h14`},null,-1)]])}var Xl=W({name:`tabler-plus`,render:Yl}),Zl={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ql(e,t){return F(),G(`svg`,Zl,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m15 6l-6 6l6 6`},null,-1)]])}var $l=W({name:`tabler-chevron-left`,render:Ql}),eu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function tu(e,t){return F(),G(`svg`,eu,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2m0-12a2 2 0 0 1 2 2a2 2 0 0 1 2-2a2 2 0 0 1-2-2a2 2 0 0 1-2 2M9 18a6 6 0 0 1 6-6a6 6 0 0 1-6-6a6 6 0 0 1-6 6a6 6 0 0 1 6 6`},null,-1)]])}var nu=W({name:`tabler-sparkles`,render:tu}),ru=ml(hn({__name:`AiBadge`,props:Bt({position:{}},{position:`top-right`}),setup(e){let t=e,n={"top-right":`top-1.5 right-1.5`,"top-left":`top-1.5 left-1.5`,"bottom-right":`bottom-1.5 right-1.5`,"bottom-left":`bottom-1.5 left-1.5`},r=U(()=>t.position===`inline`),i=U(()=>n[t.position]??``);return(e,t)=>{let n=nu;return F(),G(`span`,{class:I([`ai-badge`,Z(r)?``:`absolute z-[4] ${Z(i)}`])},[Y(n,{class:`w-3 h-3 text-white drop-shadow`})],2)}}}),[[`__scopeId`,`data-v-681db3e4`]]),iu={class:`group relative flex items-center w-full`},au={key:0,class:`flex items-center mr-3 pointer-events-auto`,"data-cui-slot-interactive":``},ou={class:`flex-1 min-w-0 text-left`},su={class:`text-sm font-medium truncate`},cu=[`is-exact-active`],lu=[`is-exact-active`],uu={key:0,class:`w-full h-[1px] divider`},du={key:1,class:`w-full`},fu=ml(hn({__name:`CuiListItem`,props:{active:{type:Boolean},disabled:{type:Boolean},to:{},activeClass:{},buttonProps:{},tooltip:{},size:{},divider:{type:Boolean},radius:{}},emits:[`click`],setup(e,{emit:t}){let n=e,r=t,{disabled:i,active:a,to:o,activeClass:s,buttonProps:c,tooltip:l,size:u,divider:d,radius:f}=An(n),[p,m]=g();function h(e){i.value||e.target.closest(`[data-cui-slot-interactive]`)||r(`click`,e)}return(e,t)=>{let n=ae,r=Ut(`RouterLink`),g=se;return F(),G(`div`,iu,[Y(Z(p),null,{default:q(({isExactActive:t})=>[Tn((F(),B(n,H({text:``,fluid:``,disabled:Z(i),severity:`contrast`,class:[`cui-button inset-0`,[{active:Z(a)||t,"!rounded-none":Z(f)===`none`,"!rounded-t-xl !rounded-b-none":Z(f)===`top`,"!rounded-b-xl !rounded-t-none":Z(f)===`bottom`,"!rounded-xl":Z(f)===`both`},Z(a)||t?Z(s):void 0]]},Z(c),{onClick:h}),{default:q(()=>[J(`div`,{class:I([`relative z-10 flex items-center w-full px-3`,{"py-2":Z(u)!==`large`,"py-3.5":Z(u)===`large`}])},[e.$slots.prepend?(F(),G(`div`,au,[sn(e.$slots,`prepend`,{isExactActive:t??!1},void 0,!0)])):V(``,!0),J(`div`,ou,[J(`div`,su,[sn(e.$slots,`default`,{isExactActive:t??!1},void 0,!0)]),e.$slots.subtitle?(F(),G(`div`,{key:0,"is-exact-active":t??!1,class:`text-sm text-muted mt-0.5`},[sn(e.$slots,`subtitle`,{},void 0,!0)],8,cu)):V(``,!0)]),e.$slots.append?(F(),G(`div`,{key:1,"is-exact-active":t??!1,class:`flex items-center ml-auto pl-3 pointer-events-auto`,"data-cui-slot-interactive":``},[sn(e.$slots,`append`,{},void 0,!0)],8,lu)):V(``,!0)],2)]),_:2},1040,[`disabled`,`class`])),[[g,{value:Z(l)}]]),Z(d)?(F(),G(`div`,uu)):V(``,!0)]),_:3}),Z(o)?(F(),B(r,{key:0,to:Z(o),class:`block transition-all duration-300 w-full`},{default:q(({isExactActive:e})=>[Y(Z(m),{"is-exact-active":e},null,8,[`is-exact-active`])]),_:1},8,[`to`])):(F(),G(`div`,du,[Y(Z(m))]))])}}}),[[`__scopeId`,`data-v-df95d977`]]),pu=ml(hn({__name:`CuiAvatar`,props:{src:{},showBorder:{type:Boolean,default:!0},size:{default:22}},setup(e){let{showBorder:t,size:n,src:r}=An(e);return(e,i)=>{let a=hl;return F(),G(`div`,{class:I([`bg-neutral-900 overflow-hidden rounded-full shrink-0`,{"avatar-border":Z(t)}]),style:X({width:`${Z(n)}px`,height:`${Z(n)}px`})},[Y(a,{src:Z(r),height:Z(n),width:Z(n),"image-style":{objectFit:`cover`},"image-container-class":`w-full h-full`},null,8,[`src`,`height`,`width`])],6)}}}),[[`__scopeId`,`data-v-69aff2ac`]]),mu={autoHide:!0,dividers:`all`},hu={class:`flex items-center gap-3`},gu={key:0,class:`flex items-center`},_u={key:0,class:`px-3 pt-3 pb-1 text-[0.7rem] font-semibold uppercase tracking-wider text-muted-color select-none`},vu=hn({__name:`CuiMenu`,props:Bt({items:{},autoHide:{type:Boolean},dividers:{},popover:{},sortList:{type:Boolean},maxHeight:{}},mu),emits:[`show`,`hide`,`click:menu-item`],setup(e,{expose:t,emit:n}){let r=e,i=n,{items:a,autoHide:o,dividers:s,sortList:c,maxHeight:l}=An(r),[u,d]=g(),f=un(`menuRef`),p=K(!1),h=K(),_=U(()=>{if(l.value!==void 0)return{maxHeight:typeof l.value==`number`?`${l.value}px`:l.value}}),v=U(()=>{let e=a.value.filter(e=>!e.hide);return c.value?e.sort((e,t)=>e.key&&t.key?e.key.localeCompare(t.key):e.label&&t.label?e.label.localeCompare(t.label):0):e}),y=U(()=>{let e=v.value.filter(e=>e.position===`header`),t=v.value.filter(e=>!e.position),n=v.value.filter(e=>e.position===`footer`),r=[...e,...t,...n];if(s.value===`all`)return r.map((e,t)=>({...e,showDivider:t<r.length-1}));let i=[];for(let r=0;r<e.length;r++)i.push({...e[r],showDivider:r<e.length-1||t.length>0||n.length>0});for(let e=0;e<t.length;e++)i.push({...t[e],showDivider:e<t.length-1?!1:n.length>0});for(let e=0;e<n.length;e++)i.push(n[e]);return i}),b=U(()=>{let e=[],t;for(let n of y.value)n.group&&n.group!==t&&e.push({type:`group`,label:n.group}),t=n.group,e.push({type:`item`,item:n});return e});function x(e){o.value&&T(),e.onClick?.(mn(h.value)),i(`click:menu-item`,e)}function S(){p.value=!0,i(`show`)}function C(){h.value=void 0,p.value=!1,i(`hide`)}function w(e,t,n){h.value=n,f.value?.toggle(e,t)}function T(){f.value?.hide()}function E(e,t){f.value?.show(e,t)}return t({menu:f,isOpen:p,data:mn(h),toggleMenu:w,hide:T,show:E}),(t,n)=>{let r=pu,i=wt,a=lr,o=fu,s=m,c=pe;return F(),B(c,H({ref_key:`menuRef`,ref:f,class:`shadow-lg cui-rounded-corner`},e.popover,{onShow:S,onHide:C}),{default:q(()=>[Y(Z(u),null,{default:q(({item:e})=>[(F(),B(o,{key:e.key,to:e.to,class:`min-h-10`,"active-class":`!bg-primary-500/10`,disabled:e.disabled||e.loading,"button-props":e.buttonProps,tooltip:e.tooltip,radius:`none`,divider:e.showDivider,onClick:t=>x(e)},Sn({default:q(({isExactActive:t})=>[J(`div`,hu,[J(`span`,H(e.labelProps,{class:{"text-primary":t||e.active,"!font-bold":e.avatarProps,"opacity-70":!e.disabled}}),L(e.label),17),e.loading?(F(),G(`div`,gu,[Y(i,{class:`!w-3 !h-3`,"stroke-width":`5`})])):e.badge?(F(),G(`span`,H({key:1},e.badgeProps,{class:`text-[0.65rem] font-medium px-1.5 py-0.5 rounded-full leading-none bg-surface-200 dark:bg-surface-700 text-muted-color`}),L(e.badge),17)):V(``,!0)])]),_:2},[e.avatarProps||e.icon?{name:`prepend`,fn:q(({isExactActive:t})=>[e.avatarProps?(F(),B(r,zt(H({key:0},e.avatarProps)),null,16)):V(``,!0),e.icon?(F(),B(cn(e.icon),H({key:1},e.iconProps,{class:{"text-primary":t||e.active,"opacity-70":!e.disabled}}),null,16,[`class`])):V(``,!0)]),key:`0`}:void 0,e.description?{name:`subtitle`,fn:q(()=>[J(`span`,H(e.descriptionProps,{class:{"opacity-70":!e.disabled}}),L(e.description),17)]),key:`1`}:void 0,e.toggle?{name:`append`,fn:q(()=>[Y(a,{"model-value":e.toggleState,disabled:e.disabled,"onUpdate:modelValue":t=>x(e)},null,8,[`model-value`,`disabled`,`onUpdate:modelValue`])]),key:`2`}:void 0]),1032,[`to`,`disabled`,`button-props`,`tooltip`,`divider`,`onClick`]))]),_:1}),Y(s,{class:`cui-card border-0!`,pt:{body:{class:`p-0`}}},{content:q(()=>[J(`div`,{class:`overflow-y-auto overscroll-contain`,style:X(Z(_))},[(F(!0),G(z,null,Lt(Z(b),(e,t)=>(F(),G(z,{key:t},[e.type===`group`?(F(),G(`div`,_u,L(e.label),1)):(F(),B(Z(d),{key:1,item:e.item},null,8,[`item`]))],64))),128))],4)]),_:1})]),_:1},16)}}}),yu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bu(e,t){return F(),G(`svg`,yu,[...t[0]||=[J(`g`,{fill:`none`},[J(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M13 4a1 1 0 1 0-2 0v17a1 1 0 1 0 2 0zM7 4h3v5H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m-2 6h5v5H5a2 2 0 0 1-2-2v-1a2 2 0 0 1 2-2m9 0v5h2a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2zm-6 6h2v5H8a2 2 0 0 1-2-2v-1a2 2 0 0 1 2-2m6 0v5h5a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2zm0-12v5h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z`})],-1)]])}var xu=W({name:`mingcute-timeline-fill`,render:bu}),Su={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cu(e,t){return F(),G(`svg`,Su,[...t[0]||=[J(`g`,{fill:`none`},[J(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M13 4a1 1 0 1 0-2 0v17a1 1 0 1 0 2 0zM7 4h3v2H7v1h3v2H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2m11 3h-4v2h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4v2h4zm-8 3H5a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h5v-2H5v-1h5zm4 0v2h2v1h-2v2h2a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2zm-4 6H8a2 2 0 0 0-2 2v1a2 2 0 0 0 2 2h2v-2H8v-1h2zm4 0v2h5v1h-5v2h5a2 2 0 0 0 2-2v-1a2 2 0 0 0-2-2z`})],-1)]])}var wu=W({name:`mingcute-timeline-line`,render:Cu}),Tu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Eu(e,t){return F(),G(`svg`,Tu,[...t[0]||=[bn(`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="7" height="7" x="3" y="3" rx="1"></rect><rect width="7" height="7" x="14" y="3" rx="1"></rect><rect width="7" height="7" x="14" y="14" rx="1"></rect><rect width="7" height="7" x="3" y="14" rx="1"></rect></g>`,1)]])}var Du=W({name:`lucide-layout-grid`,render:Eu}),Ou={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ku(e,t){return F(),G(`svg`,Ou,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M20 6L9 17l-5-5`},null,-1)]])}var Au=W({name:`lucide-check`,render:ku}),ju={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Mu(e,t){return F(),G(`svg`,ju,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-width":`1.5`},[J(`path`,{d:`M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2s7.071 0 8.535 1.464C22 4.93 22 7.286 22 12s0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Z`}),J(`circle`,{cx:`12`,cy:`12`,r:`4`})],-1)]])}var Nu=W({name:`solar-camera-square-linear`,render:Mu}),Pu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fu(e,t){return F(),G(`svg`,Pu,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M19 11h-8v6h8zm4 8V5c0-1.12-.9-2-2-2H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2m-2 0H3V4.97h18z`},null,-1)]])}var Iu=W({name:`mdi-picture-in-picture-bottom-right`,render:Fu}),Lu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ru(e,t){return F(),G(`svg`,Lu,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m12-6a3 3 0 1 0 6 0a3 3 0 1 0-6 0m0 12a3 3 0 1 0 6 0a3 3 0 1 0-6 0m-6.3-7.3l6.6-3.4m-6.6 6l6.6 3.4`},null,-1)]])}var zu=W({name:`tabler-share`,render:Ru}),Bu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vu(e,t){return F(),G(`svg`,Bu,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-width":`2`,d:`M8.5 5.5L12 2l3.5 3.5M22 12H2m3.5-3.5L2 12l3.5 3.5m13 0L22 12l-3.5-3.5M12 22V2M8.5 18.5L12 22l3.5-3.5`},null,-1)]])}var Hu=W({name:`grommet-icons-pan`,render:Vu}),Uu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Wu(e,t){return F(),G(`svg`,Uu,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m8.471 7.237l3.056 12.992c.233.993 1.63 1.04 1.929.065l2.945-9.58l.384 1.527a1 1 0 0 0 .97.756H21a1 1 0 1 0 0-2h-2.466l-1.069-4.241c-.247-.981-1.628-1.017-1.925-.05l-2.912 9.472L9.475 2.771c-.24-1.02-1.688-1.03-1.943-.014l-2.065 8.24H3a1 1 0 0 0 0 2h3.247a1 1 0 0 0 .97-.757z`},null,-1)]])}var Gu=W({name:`fluent-pulse24-filled`,render:Wu}),Ku={viewBox:`0 0 48 48`,width:`1.2em`,height:`1.2em`};function qu(e,t){return F(),G(`svg`,Ku,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`4`},[J(`path`,{fill:`currentColor`,d:`M16.866 7.47A18 18 0 0 0 16 13c0 9.941 8.059 18 18 18a17.9 17.9 0 0 0 7.134-1.47C38.801 36.767 32.012 42 24 42c-9.941 0-18-8.059-18-18c0-7.407 4.473-13.768 10.866-16.53Z`}),J(`path`,{"stroke-linecap":`round`,d:`M31.66 10H41l-10 8h10`})],-1)]])}var Ju=W({name:`icon-park-solid-sleep`,render:qu}),Yu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xu(e,t){return F(),G(`svg`,Yu,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 2a7 7 0 0 1 7 7a7 7 0 0 1-7 7a7 7 0 0 1-7-7a7 7 0 0 1 7-7m0 2a5 5 0 0 0-5 5a5 5 0 0 0 5 5a5 5 0 0 0 5-5a5 5 0 0 0-5-5m0 2a3 3 0 0 1 3 3a3 3 0 0 1-3 3a3 3 0 0 1-3-3a3 3 0 0 1 3-3M6 22a2 2 0 0 1-2-2c0-.38.1-.73.29-1.03l1.82-3.16A9 9 0 0 0 12 18c2.25 0 4.31-.83 5.89-2.19l1.82 3.16c.19.3.29.65.29 1.03a2 2 0 0 1-2 2z`},null,-1)]])}var Zu=W({name:`mdi-webcam`,render:Xu}),Qu={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $u(e,t){return F(),G(`svg`,Qu,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 .36A5.4 5.4 0 0 0 6.62 5.3a5.4 5.4 0 0 0-1.22-.14a5.4 5.4 0 0 0-2.143 10.357a5.4 5.4 0 0 0-.737 2.723a5.4 5.4 0 0 0 9.54 3.466a5.4 5.4 0 0 0 8.833-6.137a5.4 5.4 0 0 0-3.505-10.152A5.4 5.4 0 0 0 12 .36M6.283 7.228h10.592c.746 0 1.352.605 1.352 1.349v7.646a1.35 1.35 0 0 1-1.352 1.348h-3.608l-7.24 3.55l1.1-3.55h-.844a1.35 1.35 0 0 1-1.352-1.348V8.577c0-.744.606-1.349 1.352-1.349`},null,-1)]])}var ed=W({name:`simple-icons-webrtc`,render:$u}),td={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nd(e,t){return F(),G(`svg`,td,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M17.41 2H6.59A4.58 4.58 0 0 0 2 6.59v10.82A4.58 4.58 0 0 0 6.59 22h10.82A4.58 4.58 0 0 0 22 17.41V6.59A4.58 4.58 0 0 0 17.41 2m-2.653 12.447a1.924 1.924 0 0 1-1.924 1.923h-5.86a1.924 1.924 0 0 1-1.923-1.923v-4.87a1.923 1.923 0 0 1 1.927-1.924h5.856a1.925 1.925 0 0 1 1.924 1.924Zm4.2.74a.771.771 0 0 1-1.266.59l-2.211-1.854a.85.85 0 0 1-.3-.653v-2.52a.85.85 0 0 1 .31-.657l2.206-1.82a.769.769 0 0 1 1.26.594Z`},null,-1)]])}var rd=W({name:`cbi-iosfacetime`,render:nd}),id={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ad(e,t){return F(),G(`svg`,id,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M9.367 2.25h5.266c1.092 0 1.958 0 2.655.057c.714.058 1.317.18 1.869.46a4.75 4.75 0 0 1 2.075 2.077c.281.55.403 1.154.461 1.868c.057.697.057 1.563.057 2.655v5.266c0 1.092 0 1.958-.057 2.655c-.058.714-.18 1.317-.46 1.869a4.75 4.75 0 0 1-2.076 2.075c-.552.281-1.155.403-1.869.461c-.697.057-1.563.057-2.655.057H9.367c-1.092 0-1.958 0-2.655-.057c-.714-.058-1.317-.18-1.868-.46a4.75 4.75 0 0 1-2.076-2.076c-.281-.552-.403-1.155-.461-1.869c-.057-.697-.057-1.563-.057-2.655V9.367c0-1.092 0-1.958.057-2.655c.058-.714.18-1.317.46-1.868a4.75 4.75 0 0 1 2.077-2.076c.55-.281 1.154-.403 1.868-.461c.697-.057 1.563-.057 2.655-.057M10.25 8a.75.75 0 0 0-1.5 0v8a.75.75 0 0 0 1.5 0v-3.25h3.5V16a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.5 0v3.25h-3.5z`},null,-1)]])}var od=W({name:`mynaui-letter-h-square-solid`,render:ad}),sd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function cd(e,t){return F(),G(`svg`,sd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M9.367 2.25h5.266c1.092 0 1.958 0 2.655.057c.714.058 1.317.18 1.869.46a4.75 4.75 0 0 1 2.075 2.077c.281.55.403 1.154.461 1.868c.057.697.057 1.563.057 2.655v5.266c0 1.092 0 1.958-.057 2.655c-.058.714-.18 1.317-.46 1.869a4.75 4.75 0 0 1-2.076 2.075c-.552.281-1.155.403-1.869.461c-.697.057-1.563.057-2.655.057H9.367c-1.092 0-1.958 0-2.655-.057c-.714-.058-1.317-.18-1.868-.46a4.75 4.75 0 0 1-2.076-2.076c-.281-.552-.403-1.155-.461-1.869c-.057-.697-.057-1.563-.057-2.655V9.367c0-1.092 0-1.958.057-2.655c.058-.714.18-1.317.46-1.868a4.75 4.75 0 0 1 2.077-2.076c.55-.281 1.154-.403 1.868-.461c.697-.057 1.563-.057 2.655-.057m.233 5.3A.75.75 0 0 0 8.25 8v8a.75.75 0 0 0 1.5 0v-5.75l1.65 2.2a.75.75 0 0 0 1.2 0l1.65-2.2V16a.75.75 0 0 0 1.5 0V8a.75.75 0 0 0-1.35-.45l-2.4 3.2z`},null,-1)]])}var ld=W({name:`mynaui-letter-m-square-solid`,render:cd}),ud={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dd(e,t){return F(),G(`svg`,ud,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M9.367 2.25h5.266c1.092 0 1.958 0 2.655.057c.714.058 1.317.18 1.869.46a4.75 4.75 0 0 1 2.075 2.077c.281.55.403 1.154.461 1.868c.057.697.057 1.563.057 2.655v5.266c0 1.092 0 1.958-.057 2.655c-.058.714-.18 1.317-.46 1.869a4.75 4.75 0 0 1-2.076 2.075c-.552.281-1.155.403-1.869.461c-.697.057-1.563.057-2.655.057H9.367c-1.092 0-1.958 0-2.655-.057c-.714-.058-1.317-.18-1.868-.46a4.75 4.75 0 0 1-2.076-2.076c-.281-.552-.403-1.155-.461-1.869c-.057-.697-.057-1.563-.057-2.655V9.367c0-1.092 0-1.958.057-2.655c.058-.714.18-1.317.46-1.868a4.75 4.75 0 0 1 2.077-2.076c.55-.281 1.154-.403 1.868-.461c.697-.057 1.563-.057 2.655-.057M10.25 8a.75.75 0 0 0-1.5 0v7.5c0 .414.336.75.75.75H15a.75.75 0 0 0 0-1.5h-4.75z`},null,-1)]])}var fd=W({name:`mynaui-letter-l-square-solid`,render:dd}),pd={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function md(e,t){return F(),G(`svg`,pd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M3.5 2A2.5 2.5 0 0 0 1 4.5v5A2.5 2.5 0 0 0 3.5 12H7v-2a2 2 0 0 1 2-2h5V4.5A2.5 2.5 0 0 0 11.5 2zM8 10a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1z`},null,-1)]])}var hd=W({name:`fluent-picture-in-picture16-filled`,render:md}),gd={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function _d(e,t){return F(),G(`svg`,gd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M1 4.5A2.5 2.5 0 0 1 3.5 2h8A2.5 2.5 0 0 1 14 4.5V8h-1V4.5A1.5 1.5 0 0 0 11.5 3h-8A1.5 1.5 0 0 0 2 4.5v5A1.5 1.5 0 0 0 3.5 11H7v1H3.5A2.5 2.5 0 0 1 1 9.5zM9 9a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h5a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1z`},null,-1)]])}var vd=W({name:`fluent-picture-in-picture16-regular`,render:_d}),yd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bd(e,t){return F(),G(`svg`,yd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 16a3 3 0 0 1-3-3c0-1.12.61-2.1 1.5-2.61l9.71-5.62l-5.53 9.58c-.5.98-1.51 1.65-2.68 1.65m0-13c1.81 0 3.5.5 4.97 1.32l-2.1 1.21C14 5.19 13 5 12 5a8 8 0 0 0-8 8c0 2.21.89 4.21 2.34 5.65h.01c.39.39.39 1.02 0 1.41s-1.03.39-1.42.01A9.97 9.97 0 0 1 2 13A10 10 0 0 1 12 3m10 10c0 2.76-1.12 5.26-2.93 7.07c-.39.38-1.02.38-1.41-.01a.996.996 0 0 1 0-1.41A7.95 7.95 0 0 0 20 13c0-1-.19-2-.54-2.9L20.67 8C21.5 9.5 22 11.18 22 13`},null,-1)]])}var xd=W({name:`mdi-speedometer`,render:bd}),Sd={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function Cd(e,t){return F(),G(`svg`,Sd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M7.75 5.5A2.25 2.25 0 0 0 5.5 7.75v16.5a2.25 2.25 0 0 0 2.25 2.25h16.5a2.25 2.25 0 0 0 2.25-2.25v-5a1.25 1.25 0 1 1 2.5 0v5A4.75 4.75 0 0 1 24.25 29H7.75A4.75 4.75 0 0 1 3 24.25V7.75A4.75 4.75 0 0 1 7.75 3h5a1.25 1.25 0 1 1 0 2.5zM18 4.25c0-.69.56-1.25 1.25-1.25h8.5c.69 0 1.25.56 1.25 1.25v8.5a1.25 1.25 0 1 1-2.5 0V7.268l-6.366 6.366a1.25 1.25 0 1 1-1.768-1.768L24.732 5.5H19.25c-.69 0-1.25-.56-1.25-1.25`},null,-1)]])}var wd=W({name:`fluent-open32-filled`,render:Cd}),Td={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ed(e,t){return F(),G(`svg`,Td,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M17.5 6.5H20a1.5 1.5 0 0 1 0 3h-3A2.5 2.5 0 0 1 14.5 7V4a1.5 1.5 0 0 1 3 0zM4 6.5h2.5V4a1.5 1.5 0 1 1 3 0v3A2.5 2.5 0 0 1 7 9.5H4a1.5 1.5 0 1 1 0-3m0 11h2.5V20a1.5 1.5 0 0 0 3 0v-3A2.5 2.5 0 0 0 7 14.5H4a1.5 1.5 0 0 0 0 3m16 0h-2.5V20a1.5 1.5 0 0 1-3 0v-3a2.5 2.5 0 0 1 2.5-2.5h3a1.5 1.5 0 0 1 0 3`})],-1)]])}var Dd=W({name:`mingcute-fullscreen-exit-fill`,render:Ed}),Od={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function kd(e,t){return F(),G(`svg`,Od,[...t[0]||=[J(`g`,{fill:`none`,"fill-rule":`evenodd`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M18.5 5.5H16a1.5 1.5 0 0 1 0-3h3A2.5 2.5 0 0 1 21.5 5v3a1.5 1.5 0 0 1-3 0zM8 5.5H5.5V8a1.5 1.5 0 1 1-3 0V5A2.5 2.5 0 0 1 5 2.5h3a1.5 1.5 0 1 1 0 3m0 13H5.5V16a1.5 1.5 0 0 0-3 0v3A2.5 2.5 0 0 0 5 21.5h3a1.5 1.5 0 0 0 0-3m8 0h2.5V16a1.5 1.5 0 0 1 3 0v3a2.5 2.5 0 0 1-2.5 2.5h-3a1.5 1.5 0 0 1 0-3`})],-1)]])}var Ad=W({name:`mingcute-fullscreen-fill`,render:kd}),jd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Md(e,t){return F(),G(`svg`,jd,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`circle`,{cx:`12`,cy:`12`,r:`1`}),J(`circle`,{cx:`12`,cy:`5`,r:`1`}),J(`circle`,{cx:`12`,cy:`19`,r:`1`})],-1)]])}var Nd=W({name:`lucide-more-vertical`,render:Md}),Pd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fd(e,t){return F(),G(`svg`,Pd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1a1 1 0 0 0 1-1Zm-9.29 8.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42`},null,-1)]])}var Id=W({name:`eva-expand-outline`,render:Fd}),Ld={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rd(e,t){return F(),G(`svg`,Ld,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2m-9 4H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1`},null,-1)]])}var zd=W({name:`eva-collapse-outline`,render:Rd}),Bd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vd(e,t){return F(),G(`svg`,Bd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M13.986 14.776a.73.73 0 0 1-.66-.4a.74.74 0 0 1 .3-1a2.45 2.45 0 0 0 1-1.001a.739.739 0 0 1 1.359.127a.75.75 0 0 1-.048.563a3.85 3.85 0 0 1-1.611 1.61a.7.7 0 0 1-.34.1`},null,-1),J(`path`,{fill:`currentColor`,d:`M19.409 10.644a7.55 7.55 0 0 1-.7 3.141a7.48 7.48 0 0 1-4.823 4.003a6.4 6.4 0 0 1-1.151.2v2.511h2.892a.75.75 0 0 1 0 1.501H8.342a.75.75 0 0 1 0-1.5h2.892v-2.512a6 6 0 0 1-.57-.07a.752.752 0 0 1 .27-1.481q.442.078.89.08h.33a5.5 5.5 0 0 0 1.341-.19a5.9 5.9 0 0 0 2.282-1.18a5.9 5.9 0 0 0 2.13-4.543a.75.75 0 0 1 1.502 0zM20.52 4.56l-4.363 4.353l-5.623 5.623l-6.004 6.003a.8.8 0 0 1-.53.22a.75.75 0 0 1-.53-.22a.74.74 0 0 1 0-1.06l3.462-3.462l-.18-.2a7.3 7.3 0 0 1-2.172-5.183a.75.75 0 0 1 .74-.76a.76.76 0 0 1 .751.75a5.92 5.92 0 0 0 1.771 4.172l.14.16l.85-.84a4 4 0 0 1-.65-.77a3.66 3.66 0 0 1-.59-1.892V5.851a4.13 4.13 0 0 1 1.45-2.872a4.92 4.92 0 0 1 5.894 0a4.13 4.13 0 0 1 1.441 2.802v.79l3.092-3.091a.74.74 0 0 1 1.06 0a.75.75 0 0 1-.01 1.08`},null,-1)]])}var Hd=W({name:`mage-microphone-mute-fill`,render:Vd}),Ud={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Wd(e,t){return F(),G(`svg`,Ud,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16.43 5.838v5.57a4.43 4.43 0 0 1-8.78 0v-5.57a4.43 4.43 0 0 1 8.78 0`},null,-1),J(`path`,{fill:`currentColor`,d:`M12.79 17.998v2.5h2.89a.75.75 0 0 1 0 1.5H8.4a.75.75 0 1 1 0-1.5h2.85v-2.5a7.4 7.4 0 0 1-6.67-7.38a.75.75 0 0 1 1.5 0a5.92 5.92 0 1 0 11.84 0a.75.75 0 0 1 1.5 0a7.4 7.4 0 0 1-6.67 7.38z`},null,-1)]])}var Gd=W({name:`mage-microphone-fill`,render:Wd}),Kd={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function qd(e,t){return F(),G(`svg`,Kd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M7.557 2.066A.75.75 0 0 1 8 2.75v10.5a.75.75 0 0 1-1.248.56L3.59 11H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.59l3.162-2.81a.75.75 0 0 1 .805-.124M11.28 5.72a.75.75 0 1 0-1.06 1.06L11.44 8l-1.22 1.22a.75.75 0 1 0 1.06 1.06l1.22-1.22l1.22 1.22a.75.75 0 1 0 1.06-1.06L13.56 8l1.22-1.22a.75.75 0 0 0-1.06-1.06L12.5 6.94z`},null,-1)]])}var Jd=W({name:`heroicons-speaker-x-mark16-solid`,render:qd}),Yd={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function Xd(e,t){return F(),G(`svg`,Yd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M7.557 2.066A.75.75 0 0 1 8 2.75v10.5a.75.75 0 0 1-1.248.56L3.59 11H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.59l3.162-2.81a.75.75 0 0 1 .805-.124m5.393.984a.75.75 0 1 0-1.06 1.06a5.5 5.5 0 0 1 0 7.78a.75.75 0 1 0 1.06 1.06a7 7 0 0 0 0-9.9`},null,-1),J(`path`,{fill:`currentColor`,d:`M10.828 5.172a.75.75 0 1 0-1.06 1.06a2.5 2.5 0 0 1 0 3.536a.75.75 0 1 0 1.06 1.06a4 4 0 0 0 0-5.656`},null,-1)]])}var Zd=W({name:`heroicons-speaker-wave16-solid`,render:Xd}),Qd={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $d(e,t){return F(),G(`svg`,Qd,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M11.5 3c-4.65 0-8.58 3.03-9.97 7.22L3.9 11c1.05-3.19 4.06-5.5 7.6-5.5c1.96 0 3.73.72 5.12 1.88L14 10h7V3l-2.6 2.6C16.55 4 14.15 3 11.5 3M19 14v6c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-4 0v6h2v-6zm-4 6a2 2 0 0 1-2 2H5v-2h4v-2H7v-2h2v-2H5v-2h4a2 2 0 0 1 2 2v1.5A1.5 1.5 0 0 1 9.5 17a1.5 1.5 0 0 1 1.5 1.5z`},null,-1)]])}var ef=W({name:`mdi-fast-forward30`,render:$d}),tf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nf(e,t){return F(),G(`svg`,tf,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M17.276 5.47c.435.16.724.575.724 1.039V17.49c0 .464-.29.879-.724 1.039a3.7 3.7 0 0 1-2.552 0A1.11 1.11 0 0 1 14 17.491V6.51c0-.464.29-.879.724-1.04a3.7 3.7 0 0 1 2.552 0m-8 0c.435.16.724.575.724 1.039V17.49c0 .464-.29.879-.724 1.039a3.7 3.7 0 0 1-2.552 0A1.11 1.11 0 0 1 6 17.491V6.51c0-.464.29-.879.724-1.04a3.7 3.7 0 0 1 2.552 0`},null,-1)]])}var rf=W({name:`basil-pause-solid`,render:nf}),af={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function of(e,t){return F(),G(`svg`,af,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M19.266 13.516a1.917 1.917 0 0 0 0-3.032A35.8 35.8 0 0 0 9.35 5.068l-.653-.232c-1.248-.443-2.567.401-2.736 1.69a42.5 42.5 0 0 0 0 10.948c.17 1.289 1.488 2.133 2.736 1.69l.653-.232a35.8 35.8 0 0 0 9.916-5.416`},null,-1)]])}var sf=W({name:`basil-play-solid`,render:of}),cf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function lf(e,t){return F(),G(`svg`,cf,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M19 14v6c0 1.11-.89 2-2 2h-2a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-4 0v6h2v-6zm-4 6a2 2 0 0 1-2 2H5v-2h4v-2H7v-2h2v-2H5v-2h4a2 2 0 0 1 2 2v1.5A1.5 1.5 0 0 1 9.5 17a1.5 1.5 0 0 1 1.5 1.5zm1.5-17c4.65 0 8.58 3.03 9.97 7.22L20.1 11c-1.05-3.19-4.06-5.5-7.6-5.5c-1.96 0-3.73.72-5.12 1.88L10 10H3V3l2.6 2.6C7.45 4 9.85 3 12.5 3`},null,-1)]])}var uf=W({name:`mdi-rewind30`,render:lf}),df={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ff(e,t){return F(),G(`svg`,df,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M3.27 2L2 3.27L4.73 6H4a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h12c.2 0 .39-.08.54-.18L19.73 21L21 19.73M21 6.5l-4 4V7a1 1 0 0 0-1-1H9.82L21 17.18z`},null,-1)]])}var pf=W({name:`mdi-video-off`,render:ff}),mf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function hf(e,t){return F(),G(`svg`,mf,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M9 10a3.04 3.04 0 0 1 3-3a3.04 3.04 0 0 1 3 3a3.04 3.04 0 0 1-3 3a3.04 3.04 0 0 1-3-3m3 9l4 1v-3.08A7.54 7.54 0 0 1 12 18a7.54 7.54 0 0 1-4-1.08V20m4-16a5.78 5.78 0 0 0-4.24 1.74A5.78 5.78 0 0 0 6 10a5.78 5.78 0 0 0 1.76 4.23A5.78 5.78 0 0 0 12 16a5.78 5.78 0 0 0 4.24-1.77A5.78 5.78 0 0 0 18 10a5.78 5.78 0 0 0-1.76-4.26A5.78 5.78 0 0 0 12 4m8 6a8 8 0 0 1-.57 2.8A7.8 7.8 0 0 1 18 15.28V23l-6-2l-6 2v-7.72A7.9 7.9 0 0 1 4 10a7.68 7.68 0 0 1 2.33-5.64A7.73 7.73 0 0 1 12 2a7.73 7.73 0 0 1 5.67 2.36A7.68 7.68 0 0 1 20 10`},null,-1)]])}var gf=W({name:`mdi-license`,render:hf}),_f=hn({__name:`CuiHeatmap`,props:{cameraId:{}},setup(e){let t=e,{plugin:n}=We(`@camera.ui/camera-ui-nvr`),r=un(`canvasRef`);async function i(){let e=r.value,i=n.value;if(!(!e||!i?.getDetectionHeatmap))try{let n=Date.now(),r=n-1440*60*1e3,o=await i.getDetectionHeatmap(t.cameraId,r,n);if(!o?.points?.length)return;a(e,o.points)}catch{}}function a(e,t){e.width=128,e.height=72;let n=e.getContext(`2d`);if(!n)return;for(let e of t){let t=e.x*128,r=e.y*72,i=n.createRadialGradient(t,r,0,t,r,8);i.addColorStop(0,`rgba(255, 255, 255, 0.15)`),i.addColorStop(1,`rgba(255, 255, 255, 0)`),n.fillStyle=i,n.fillRect(t-8,r-8,16,16)}let r=n.getImageData(0,0,128,72),i=r.data,a=0;for(let e=3;e<i.length;e+=4)i[e]>a&&(a=i[e]);if(a!==0){for(let e=0;e<i.length;e+=4){let t=i[e+3]/a;if(t<.01){i[e]=i[e+1]=i[e+2]=i[e+3]=0;continue}let[n,r,s]=o(t);i[e]=n,i[e+1]=r,i[e+2]=s,i[e+3]=Math.floor(t*200+55)}n.putImageData(r,0,0)}}function o(e){if(e<.25){let t=e/.25;return[0,Math.floor(t*255),255]}else if(e<.5){let t=(e-.25)/.25;return[0,255,Math.floor((1-t)*255)]}else if(e<.75){let t=(e-.5)/.25;return[Math.floor(t*255),255,0]}else{let t=(e-.75)/.25;return[255,Math.floor((1-t)*255),0]}}return Gt(()=>i()),(e,t)=>(F(),G(`canvas`,{ref_key:`canvasRef`,ref:r,class:`absolute inset-0 w-full h-full pointer-events-none z-1`,style:{opacity:`0.6`}},null,512))}}),vf={class:`absolute inset-0 pointer-events-auto`,style:{"z-index":`10`}},yf=[`viewBox`],bf=[`x1`,`x2`,`y2`],xf=[`y1`,`x2`,`y2`],Sf=[`x`,`y`,`width`,`height`],Cf=[`x`,`y`,`width`,`height`],wf=[`onClick`],Tf=ml(hn({__name:`CuiGridSearch`,props:{modelValue:{},cols:{default:10},rows:{default:11}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=un(`svgRef`),a=K(!1),o=K(null),s=K(null),c=U(()=>{let e=new Set;for(let t of n.modelValue)for(let n=t.row;n<t.row+t.h;n++)for(let r=t.col;r<t.col+t.w;r++)e.add(`${r}:${n}`);return e}),l=U(()=>!a.value||!o.value||!s.value?null:d(o.value,s.value));function u(e,t,n,r){let i=t.col>=e.col?1:-1,a=t.row>=e.row?1:-1,o=e.col,s=e.row;if(r){let r=Math.min(e.row,t.row),c=Math.max(e.row,t.row);for(let a=e.col;i>0?a<=t.col:a>=t.col;a+=i){let e=!1;for(let t=r;t<=c;t++)if(n.has(`${a}:${t}`)){e=!0;break}if(e)break;o=a}let l=Math.min(e.col,o),u=Math.max(e.col,o);for(let r=e.row;a>0?r<=t.row:r>=t.row;r+=a){let e=!1;for(let t=l;t<=u;t++)if(n.has(`${t}:${r}`)){e=!0;break}if(e)break;s=r}}else{let r=Math.min(e.col,t.col),c=Math.max(e.col,t.col);for(let i=e.row;a>0?i<=t.row:i>=t.row;i+=a){let e=!1;for(let t=r;t<=c;t++)if(n.has(`${t}:${i}`)){e=!0;break}if(e)break;s=i}let l=Math.min(e.row,s),u=Math.max(e.row,s);for(let r=e.col;i>0?r<=t.col:r>=t.col;r+=i){let e=!1;for(let t=l;t<=u;t++)if(n.has(`${r}:${t}`)){e=!0;break}if(e)break;o=r}}return f(e,{col:o,row:s})}function d(e,t){let n=c.value,r=u(e,t,n,!0),i=u(e,t,n,!1);return r.w*r.h>=i.w*i.h?r:i}function f(e,t){let n=Math.min(e.col,t.col),r=Math.max(e.col,t.col),i=Math.min(e.row,t.row),a=Math.max(e.row,t.row);return{col:n,row:i,w:r-n+1,h:a-i+1}}function p(e){let t=i.value;if(!t)return;let r=t.getBoundingClientRect(),a=(e.clientX-r.left)/r.width,o=(e.clientY-r.top)/r.height;if(!(a<0||a>=1||o<0||o>=1))return{col:Math.min(Math.floor(a*n.cols),n.cols-1),row:Math.min(Math.floor(o*n.rows),n.rows-1)}}function m(e){let t=p(e);t&&(c.value.has(`${t.col}:${t.row}`)||(a.value=!0,o.value=t,s.value=t,e.target?.setPointerCapture?.(e.pointerId)))}function h(e){if(!a.value)return;let t=p(e);t&&(s.value=t)}function g(){a.value&&l.value&&r(`update:modelValue`,[...n.modelValue,l.value]),a.value=!1,o.value=null,s.value=null}function _(e){let t=[...n.modelValue];t.splice(e,1),r(`update:modelValue`,t)}function v(e){let t=e.col===0,r=e.row===0,i=t?e.col+e.w:e.col,a=r?e.row+e.h:e.row;return{left:`${i/n.cols*100}%`,top:`${a/n.rows*100}%`}}return(t,n)=>{let r=Er;return F(),G(`div`,vf,[(F(),G(`svg`,{ref_key:`svgRef`,ref:i,class:`w-full h-full`,viewBox:`0 0 ${e.cols} ${e.rows}`,preserveAspectRatio:`none`,style:{cursor:`crosshair`,"touch-action":`none`},onPointerdown:m,onPointermove:h,onPointerup:g,onPointerleave:g},[(F(!0),G(z,null,Lt(e.cols-1,t=>(F(),G(`line`,{key:`v${t}`,x1:t,y1:0,x2:t,y2:e.rows,class:`grid-line`},null,8,bf))),128)),(F(!0),G(z,null,Lt(e.rows-1,t=>(F(),G(`line`,{key:`h${t}`,x1:0,y1:t,x2:e.cols,y2:t,class:`grid-line`},null,8,xf))),128)),(F(!0),G(z,null,Lt(e.modelValue,(e,t)=>(F(),G(`rect`,{key:t,x:e.col,y:e.row,width:e.w,height:e.h,class:`grid-region`},null,8,Sf))),128)),Z(l)?(F(),G(`rect`,{key:0,x:Z(l).col,y:Z(l).row,width:Z(l).w,height:Z(l).h,class:`grid-region grid-region-preview`},null,8,Cf)):V(``,!0)],40,yf)),(F(!0),G(z,null,Lt(e.modelValue,(e,t)=>(F(),G(`button`,{key:`rm-${t}`,class:`grid-remove-btn`,style:X(v(e)),onClick:Cn(e=>_(t),[`stop`]),onPointerdown:n[0]||=Cn(()=>{},[`stop`])},[Y(r,{class:`w-[10px] h-[10px]`})],44,wf))),128))])}}}),[[`__scopeId`,`data-v-8276ca40`]]),Ef=[`id`],Df=[`fill`],Of=[`id`],kf=[`fill`],Af=[`d`],jf=[`x1`,`y1`,`x2`,`y2`,`stroke`],Mf=[`x1`,`y1`,`x2`,`y2`,`stroke`,`marker-end`,`marker-start`],Nf=[`x`,`y`,`fill`],Pf=[`x`,`y`],Ff=[`x`,`y`,`fill`],If=[`x`,`y`],Lf=ml(hn({__name:`CuiPolygon`,props:{cameraZones:{},cameraLines:{}},setup(e){let{cameraZones:t}=An(e),n=un(`zoneRef`),r=ge(n);function i(e){if(!e)return``;let t=e.map(e=>`${Math.round(e[0]/100*r.width.value)},${Math.round(e[1]/100*r.height.value)}`);if(t.length===0)return``;let n=`M ${t[0]}`;for(let e=1;e<t.length;e++)n+=` L ${t[e]}`;return n+=` Z`,n}function a(e){let t=r.width.value,n=r.height.value,i=e.points[0][0]/100*t,a=e.points[0][1]/100*n,o=e.points[1][0]/100*t,s=e.points[1][1]/100*n,c=(i+o)/2,l=(a+s)/2,u=o-i,d=s-a,f=Math.sqrt(u*u+d*d)||1,p=-d,m=u,h=c-p/2,g=l-m/2,_=c+p/2,v=l+m/2,y=p/f,b=m/f,x=(e,r)=>({x:Math.max(8,Math.min(t-8,e)),y:Math.max(8,Math.min(n-8,r))}),S=x(h-y*18,g-b*18),C=x(_+y*18,v+b*18);return{h1x:i,h1y:a,h2x:o,h2y:s,ax:S.x+y*13,ay:S.y+b*13,bx:C.x-y*13,by:C.y-b*13,labelAx:S.x,labelAy:S.y,labelBx:C.x,labelBy:C.y}}return(r,o)=>(F(),G(`svg`,{ref_key:`zoneRef`,ref:n,width:`100%`,height:`100%`,class:`zones-container polygon-container min-w-0`},[J(`defs`,null,[(F(!0),G(z,null,Lt(e.cameraLines??[],(e,t)=>(F(),G(`marker`,{id:`arrow-ab-${t}`,key:`marker-ab-${t}`,markerWidth:`6`,markerHeight:`5`,refX:`5`,refY:`2.5`,orient:`auto`,markerUnits:`strokeWidth`},[J(`path`,{d:`M0,0 L6,2.5 L0,5 Z`,fill:e.color},null,8,Df)],8,Ef))),128)),(F(!0),G(z,null,Lt(e.cameraLines??[],(e,t)=>(F(),G(`marker`,{id:`arrow-ba-${t}`,key:`marker-ba-${t}`,markerWidth:`6`,markerHeight:`5`,refX:`1`,refY:`2.5`,orient:`auto`,markerUnits:`strokeWidth`},[J(`path`,{d:`M6,0 L0,2.5 L6,5 Z`,fill:e.color},null,8,kf)],8,Of))),128))]),(F(!0),G(z,null,Lt(Z(t),(e,t)=>(F(),G(`path`,{key:`zone-${t}`,d:i(e.points.map(e=>e)),class:I({dash:e.type===`intersect`&&!e.isPrivacyMask}),style:X({fill:e.isPrivacyMask?`rgba(16, 16, 16, 0.9)`:e.filter===`exclude`?`transparent`:`${e.color}4D`,stroke:e.isPrivacyMask?`#333333`:e.color,"stroke-width":`2`})},null,14,Af))),128)),(F(!0),G(z,null,Lt(e.cameraLines??[],(e,t)=>(F(),G(z,{key:`line-${t}`},[J(`line`,{x1:a(e).h1x,y1:a(e).h1y,x2:a(e).h2x,y2:a(e).h2y,stroke:e.color,"stroke-width":`2`,"stroke-dasharray":`6,4`,opacity:`0.5`},null,8,jf),J(`line`,{x1:a(e).ax,y1:a(e).ay,x2:a(e).bx,y2:a(e).by,stroke:e.color,"stroke-width":`3`,"marker-end":e.direction===`b-to-a`?void 0:`url(#arrow-ab-${t})`,"marker-start":e.direction===`a-to-b`?void 0:`url(#arrow-ba-${t})`},null,8,Mf),J(`rect`,{x:a(e).labelAx-8,y:a(e).labelAy-8,width:`16`,height:`16`,rx:`3`,fill:e.color},null,8,Nf),J(`text`,{x:a(e).labelAx,y:a(e).labelAy,fill:`#fff`,"font-size":`10`,"font-weight":`bold`,"text-anchor":`middle`,"dominant-baseline":`central`},`A`,8,Pf),J(`rect`,{x:a(e).labelBx-8,y:a(e).labelBy-8,width:`16`,height:`16`,rx:`3`,fill:e.color},null,8,Ff),J(`text`,{x:a(e).labelBx,y:a(e).labelBy,fill:`#fff`,"font-size":`10`,"font-weight":`bold`,"text-anchor":`middle`,"dominant-baseline":`central`},`B`,8,If)],64))),128))],512))}}),[[`__scopeId`,`data-v-03a4c212`]]),Rf={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function zf(e,t){return F(),G(`svg`,Rf,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M3 14s-1 0-1-1s1-4 6-4s6 3 6 4s-1 1-1 1zm5-6a3 3 0 1 0 0-6a3 3 0 0 0 0 6`},null,-1)]])}var Bf=W({name:`bi-person-fill`,render:zf}),Vf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Hf(e,t){return F(),G(`svg`,Vf,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6.25 5.25c0-1.422 1.028-2.75 2.5-2.75s2.5 1.328 2.5 2.75S10.222 8 8.75 8s-2.5-1.328-2.5-2.75M1 8.75C1 7.328 2.028 6 3.5 6S6 7.328 6 8.75S4.972 11.5 3.5 11.5S1 10.172 1 8.75M12 10a7 7 0 0 0-7 7c0 1.36.72 2.388 1.7 3.044c.963.645 2.198.956 3.378.956h3.844c1.18 0 2.415-.311 3.377-.956C18.28 19.388 19 18.361 19 17a7 7 0 0 0-7-7m.75-4.75c0-1.422 1.028-2.75 2.5-2.75s2.5 1.328 2.5 2.75S16.722 8 15.25 8s-2.5-1.328-2.5-2.75M18 8.75C18 7.328 19.028 6 20.5 6S23 7.328 23 8.75s-1.028 2.75-2.5 2.75S18 10.172 18 8.75`},null,-1)]])}var Uf=W({name:`fluent-animal-paw-print-24-filled`,render:Hf}),Wf={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function Gf(e,t){return F(),G(`svg`,Wf,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m3.044 6l-.01.074A1.5 1.5 0 0 0 2 7.5v3A1.5 1.5 0 0 0 3.5 12h9a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.04-1.428L12.951 6h.549a.5.5 0 0 0 0-1h-.677l-.16-1.253A2 2 0 0 0 10.68 2H5.319a2 2 0 0 0-1.984 1.744L3.173 5H2.5a.5.5 0 0 0 0 1zm2.275-3h5.36a1 1 0 0 1 .992.873L11.943 6h-7.89l.274-2.128A1 1 0 0 1 5.319 3M5.25 9.749a.749.749 0 1 1 0-1.498a.749.749 0 0 1 0 1.498m5.498 0a.749.749 0 1 1 0-1.498a.749.749 0 0 1 0 1.498M12.497 13h-1.5v.25a.75.75 0 0 0 1.5 0zM5 13H3.5v.25a.75.75 0 0 0 1.5 0z`},null,-1)]])}var Kf=W({name:`fluent-vehicle-car-16-filled`,render:Gf}),qf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Jf(e,t){return F(),G(`svg`,qf,[...t[0]||=[J(`g`,{fill:`currentColor`},[J(`path`,{d:`M15.25 6.5a2.25 2.25 0 1 0 0-4.5a2.25 2.25 0 0 0 0 4.5m-2.867-.001c-1.495-.21-4.912.397-6.32 4.15a1 1 0 1 0 1.873.702c.584-1.555 1.636-2.316 2.574-2.655l-1.17 3.006q-.029.075-.045.15a1 1 0 0 0 .164.91l3.562 4.607l.231 3.693a1 1 0 1 0 1.996-.124l-.27-4.307l-2.092-2.707l1.373-2.661l.093.134a2 2 0 0 0 2.42.711l2.115-.886a1 1 0 0 0-.773-1.844l-2.115.886l-1.606-2.335a3.04 3.04 0 0 0-1.661-1.36a1.4 1.4 0 0 0-.35-.07`}),J(`path`,{d:`m8.45 16.45l.827-2.452l1.469 1.9l-.402 1.191a2 2 0 0 1-2.032 1.356l-2.88-.197a1 1 0 1 1 .136-1.996z`})],-1)]])}var Yf=W({name:`healthicons-running-24px`,render:Jf}),Xf={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Zf(e,t){return F(),G(`svg`,Xf,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3zM7 16.5l-4.74-2.85M7 16.5l5-3m-5 3v5.17m5-8.17V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5zm5 3l-5-3m5 3l4.74-2.85M17 16.5v5.17`}),J(`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3l5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0zM12 8L7.26 5.15M12 8l4.74-2.85M12 13.5V8`})],-1)]])}var Qf=W({name:`lucide-boxes`,render:Zf}),$f={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ep(e,t){return F(),G(`svg`,$f,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20 20H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2M4 6v12h16V6zm2 3h12v2H6zm0 4h10v2H6z`},null,-1)]])}var tp=W({name:`mdi-card-text-outline`,render:ep}),np={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function rp(e,t){return F(),G(`svg`,np,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M5.5 9A1.5 1.5 0 0 0 7 7.5A1.5 1.5 0 0 0 5.5 6A1.5 1.5 0 0 0 4 7.5A1.5 1.5 0 0 0 5.5 9m11.91 2.58c.36.36.59.86.59 1.42c0 .55-.22 1.05-.59 1.41l-5 5a1.996 1.996 0 0 1-2.83 0l-6.99-6.99C2.22 12.05 2 11.55 2 11V6c0-1.11.89-2 2-2h5c.55 0 1.05.22 1.41.58zm-3.87-5.87l1-1l6.87 6.87c.37.36.59.87.59 1.42s-.22 1.05-.58 1.41l-5.38 5.38l-1-1L20.75 13z`},null,-1)]])}var ip=W({name:`mdi-tag-multiple`,render:rp}),ap={key:1,class:`label-text`},op=ml(hn({__name:`CuiBBoxPlayground`,props:{showIcon:{type:Boolean,default:!0},showLabel:{type:Boolean,default:!0},showConfidence:{type:Boolean,default:!0},highlightArea:{type:Boolean,default:!0},detections:{default(){return[]}},classes:{default(){return[]}}},setup(e,{expose:t}){let{detections:n,classes:r}=An(e),i={motion:{color:`#A855F7`,icon:Yf},animal:{color:`#22C55E`,icon:Uf},person:{color:`#3B82F6`,icon:Bf},vehicle:{color:`#EF4444`,icon:Kf},face:{color:`#F59E0B`,icon:Bs},license_plate:{color:`#06B6D4`,icon:tp},classifier:{color:`#8B5CF6`,icon:ip},other:{color:`#CAC443`,icon:Qf}},a={motion:{color:`rgba(168, 85, 247, 0.1)`},animal:{color:`rgba(34, 197, 94, 0.1)`},person:{color:`rgba(59, 130, 246, 0.1)`},vehicle:{color:`rgba(239, 68, 68, 0.1)`},face:{color:`rgba(245, 158, 11, 0.1)`},license_plate:{color:`rgba(6, 182, 212, 0.1)`},classifier:{color:`rgba(139, 92, 246, 0.1)`},other:{color:`rgba(202, 196, 67, 0.1)`}},o=new Map,s=un(`containerRef`),c=xn([]),{width:l,height:u}=ge(s),d=U(()=>Math.min(l.value||800,u.value||600)),f=U(()=>d.value<200?.8:1),p=U(()=>e=>l.value?Math.round(e*l.value):0),m=U(()=>e=>u.value?Math.round(e*u.value):0),h=U(()=>e=>l.value?Math.round(e*l.value):0),g=U(()=>e=>u.value?Math.round(e*u.value):0),_=U(()=>e=>{let t=h.value(e.box.width),n=g.value(e.box.height);return Math.min(t,n)*(t<200?.3:t<400?.25:.2)}),v=U(()=>e=>m.value(e.box.y)<30*f.value),y=U(()=>e=>p.value(e.box.x)>l.value*.7);function b(e){return`attribute`in e&&e.attribute===`face`}function x(e){return`attribute`in e&&e.attribute===`license_plate`}function S(e){return`attribute`in e&&e.attribute!==`face`&&e.attribute!==`license_plate`&&`subAttribute`in e}function C(e){return b(e)?`face`:x(e)?`license_plate`:S(e)?`classifier`:e.label}function w(e){return i[e]??i.other}function T(e){return a[e]??a.other}function E(e){return x(e)?e.plateText||`license plate`:b(e)?e.identity||`face`:S(e)&&e.subAttribute||e.label}function ee(){let e=[...o.values()].flat();c.value=r.value.length===0?e:e.filter(e=>r.value.includes(e.label))}function D(e,t){t.length>0?o.set(e,t):o.delete(e),ee()}function O(e){e?(o.delete(e),ee()):(o.clear(),c.value=[])}return P(n,e=>{e.length&&D(`props`,e)},{immediate:!0}),t({draw:D,clear:O}),(t,n)=>(F(),G(`div`,{ref_key:`containerRef`,ref:s,class:`bbox-container min-w-0`},[(F(!0),G(z,null,Lt(Z(c),(t,r)=>(F(),G(`div`,{key:`trackId`in t?`t${t.trackId}`:r,class:I([`bbox-corners`,{tracked:`trackId`in t}]),style:X({left:`${Z(p)(t.box.x)}px`,top:`${Z(m)(t.box.y)}px`,width:`${Z(h)(t.box.width)}px`,height:`${Z(g)(t.box.height)}px`})},[J(`div`,{class:`w-full h-full`,style:X({background:e.highlightArea?T(C(t)).color:void 0})},[(F(),G(z,null,Lt([`tl`,`tr`,`bl`,`br`],e=>J(`div`,{key:e,class:I([`corner-lines`,e]),style:X({"--corner-color":w(C(t)).color,"--corner-size":`${Z(_)(t)}px`})},[...n[0]||=[J(`div`,{class:`line horizontal`},null,-1),J(`div`,{class:`line vertical`},null,-1)]],6)),64))],4),e.showLabel||e.showConfidence||e.showIcon?(F(),G(`div`,{key:0,class:I([`label z-1`,{"label-bottom":Z(v)(t),"label-right":Z(y)(t)}]),style:X({backgroundColor:w(C(t)).color,fontSize:`${12*Z(f)}px`,padding:`${4*Z(f)}px ${8*Z(f)}px`,gap:`${4*Z(f)}px`})},[e.showIcon?(F(),B(cn(w(C(t)).icon),{key:0})):V(``,!0),e.showLabel&&Z(d)>250?(F(),G(`span`,ap,L(E(t))+L(`trackId`in t?`#${t.trackId}`:``),1)):V(``,!0),e.showConfidence&&Z(d)>250?(F(),G(`span`,{key:2,class:`confidence`,style:X({fontSize:`${11*Z(f)}px`})},L((t.confidence*100).toFixed(1))+`% `,5)):V(``,!0)],6)):V(``,!0)],6))),128))],512))}}),[[`__scopeId`,`data-v-bde08d36`]]),sp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function cp(e,t){return F(),G(`svg`,sp,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4`},null,-1)]])}var lp=W({name:`lucide-lightbulb`,render:cp}),up={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dp(e,t){return F(),G(`svg`,up,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M14 17H5M19 7h-9`}),J(`circle`,{cx:`17`,cy:`17`,r:`3`}),J(`circle`,{cx:`7`,cy:`7`,r:`3`})],-1)]])}var fp=W({name:`lucide-settings2`,render:dp}),pp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mp(e,t){return F(),G(`svg`,pp,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M5 12h14m-7-7v14`},null,-1)]])}var hp=W({name:`lucide-plus`,render:mp}),gp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _p(e,t){return F(),G(`svg`,gp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M13 14h-2V8h2m0 10h-2v-2h2m3.7-12H15V2H9v2H7.3C6.6 4 6 4.6 6 5.3v15.3c0 .8.6 1.4 1.3 1.4h9.3c.7 0 1.3-.6 1.3-1.3V5.3c.1-.7-.5-1.3-1.2-1.3`},null,-1)]])}var vp=W({name:`mdi-battery-alert`,render:_p}),yp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bp(e,t){return F(),G(`svg`,yp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16 17H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var xp=W({name:`mdi-battery20`,render:bp}),Sp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cp(e,t){return F(),G(`svg`,Sp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16 14H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var wp=W({name:`mdi-battery40`,render:Cp}),Tp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ep(e,t){return F(),G(`svg`,Tp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16 12H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Dp=W({name:`mdi-battery60`,render:Ep}),Op={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function kp(e,t){return F(),G(`svg`,Op,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16 9H8V6h8m.67-2H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Ap=W({name:`mdi-battery80`,render:kp}),jp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Mp(e,t){return F(),G(`svg`,jp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M16.67 4H15V2H9v2H7.33A1.33 1.33 0 0 0 6 5.33v15.34C6 21.4 6.6 22 7.33 22h9.34A1.33 1.33 0 0 0 18 20.67V5.33C18 4.6 17.4 4 16.67 4`},null,-1)]])}var Np=W({name:`mdi-battery`,render:Mp}),Pp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fp(e,t){return F(),G(`svg`,Pp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M23.05 11h-3V4l-5 10h3v8M12 20H4l.05-14h8m.67-2h-1.67V2h-6v2H3.38a1.33 1.33 0 0 0-1.33 1.33v15.34c0 .73.6 1.33 1.33 1.33h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.72 4`},null,-1)]])}var Ip=W({name:`mdi-battery-charging-outline`,render:Fp}),Lp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rp(e,t){return F(),G(`svg`,Lp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M23.05 11h-3V4l-5 10h3v8m-6-5h-8V6h8m.67-2h-1.67V2h-6v2H3.38a1.33 1.33 0 0 0-1.33 1.33v15.34c0 .73.6 1.33 1.33 1.33h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.72 4`},null,-1)]])}var zp=W({name:`mdi-battery-charging20`,render:Rp}),Bp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vp(e,t){return F(),G(`svg`,Bp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M13 4h-2V2H5v2H3c-.6 0-1 .4-1 1v16c0 .6.4 1 1 1h10c.6 0 1-.4 1-1V5c0-.6-.4-1-1-1m-1 10.5H4V6h8zM23 11h-3V4l-5 10h3v8`},null,-1)]])}var Hp=W({name:`mdi-battery-charging40`,render:Vp}),Up={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Wp(e,t){return F(),G(`svg`,Up,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 11H4V6h8m.67-2H11V2H5v2H3.33A1.33 1.33 0 0 0 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.67 4M23 11h-3V4l-5 10h3v8z`},null,-1)]])}var Gp=W({name:`mdi-battery-charging60`,render:Wp}),Kp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function qp(e,t){return F(),G(`svg`,Kp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M23 11h-3V4l-5 10h3v8M12 9H4V6h8m.67-2H11V2H5v2H3.33A1.33 1.33 0 0 0 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.67 4`},null,-1)]])}var Jp=W({name:`mdi-battery-charging80`,render:qp}),Yp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xp(e,t){return F(),G(`svg`,Yp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M23 11h-3V4l-5 10h3v8M12.67 4H11V2H5v2H3.33A1.33 1.33 0 0 0 2 5.33v15.34C2 21.4 2.6 22 3.33 22h9.34c.73 0 1.33-.6 1.33-1.33V5.33A1.33 1.33 0 0 0 12.67 4`},null,-1)]])}var Zp=W({name:`mdi-battery-charging100`,render:Xp}),Qp={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $p(e,t){return F(),G(`svg`,Qp,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m1 4.27l2 2V11c0 5.55 3.84 10.74 9 12c1.87-.46 3.57-1.44 4.97-2.76l2.26 2.26l1.27-1.28L2.28 3zM12 21c-3.75-1-7-5.46-7-9.78V8.27l10.59 10.59C14.53 19.89 13.3 20.65 12 21m9-16v6c0 2.28-.65 4.5-1.77 6.4l-1.46-1.45c.77-1.45 1.23-3.11 1.23-4.73V6.3l-7-3.12l-4.84 2.16l-1.51-1.52L12 1z`},null,-1)]])}var em=W({name:`mdi-shield-off-outline`,render:$p}),tm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nm(e,t){return F(),G(`svg`,tm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5zm3.97 13.41c-1.84 2.17-5.21 2.09-6.97-.07c-2.18-2.72-.64-6.72 2.7-7.34c.34-.05.63.28.51.61c-.46 1.23-.39 2.64.32 3.86a4.51 4.51 0 0 0 3.18 2.2c.34.05.49.47.26.74`},null,-1)]])}var rm=W({name:`mdi-shield-moon`,render:nm}),im={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function am(e,t){return F(),G(`svg`,im,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5zm0 6c1.4 0 2.8 1.1 2.8 2.5V11c.6 0 1.2.6 1.2 1.3v3.5c0 .6-.6 1.2-1.3 1.2H9.2c-.6 0-1.2-.6-1.2-1.3v-3.5c0-.6.6-1.2 1.2-1.2V9.5C9.2 8.1 10.6 7 12 7m0 1.2c-.8 0-1.5.5-1.5 1.3V11h3V9.5c0-.8-.7-1.3-1.5-1.3`},null,-1)]])}var om=W({name:`mdi-shield-lock`,render:am}),sm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function cm(e,t){return F(),G(`svg`,sm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M11 13h2v3h3v-5h2l-6-5l-6 5h2v5h3zm1-12l9 4v6c0 5.55-3.84 10.74-9 12c-5.16-1.26-9-6.45-9-12V5z`},null,-1)]])}var lm=W({name:`mdi-shield-home`,render:cm}),um={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dm(e,t){return F(),G(`svg`,um,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 1L3 5v6c0 5.55 3.84 10.74 9 12c5.16-1.26 9-6.45 9-12V5M11 7h2v6h-2m0 2h2v2h-2`},null,-1)]])}var fm=W({name:`mdi-shield-alert`,render:dm}),pm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mm(e,t){return F(),G(`svg`,pm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 10c-1.1 0-2 .9-2 2s.9 2 2 2s2-.9 2-2s-.9-2-2-2m4-8H8c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 18H8V4h8z`},null,-1)]])}var hm=W({name:`mdi-doorbell`,render:mm}),gm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _m(e,t){return F(),G(`svg`,gm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M22 9v11h-2v-9H4v9H2V9l10-4zm-3 3H5v2h14zm0 6H5v2h14zm0-3H5v2h14z`},null,-1)]])}var vm=W({name:`mdi-garage-variant`,render:_m}),ym={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bm(e,t){return F(),G(`svg`,ym,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M22 9v11h-2v-9H4v9H2V9l10-4zm-3 3H5v2h14z`},null,-1)]])}var xm=W({name:`mdi-garage-open-variant`,render:bm}),Sm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cm(e,t){return F(),G(`svg`,Sm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m20.84 22.73l-4.55-4.55A5.96 5.96 0 0 1 12 20c-3.31 0-6-2.69-6-6c0-1.33.67-2.97 1.55-4.56L1.11 3l1.28-1.27l19.72 19.73zM18 14c0-4-6-10.75-6-10.75s-1.16 1.3-2.45 3.1l8.4 8.4c.05-.25.05-.5.05-.75`},null,-1)]])}var wm=W({name:`mdi-water-off`,render:Cm}),Tm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Em(e,t){return F(),G(`svg`,Tm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M10 3.25S16 10 16 14c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-4 6-10.75 6-10.75M20 7v6h-2V7zm-2 10h2v-2h-2z`},null,-1)]])}var Dm=W({name:`mdi-water-alert`,render:Em}),Om={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function km(e,t){return F(),G(`svg`,Om,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M22.11 21.46L2.39 1.73L1.11 3l2.95 2.95A9.9 9.9 0 0 0 2 12c0 5.5 4.5 10 10 10c2.28 0 4.37-.77 6.05-2.06l2.79 2.79zM12 20c-4.41 0-8-3.59-8-8c0-1.72.56-3.31 1.5-4.62l1.43 1.44A6 6 0 0 0 6 12c0 1.3.42 2.5 1.11 3.47l.72-.72C7.31 13.96 7 13 7 12c0-.89.25-1.72.66-2.45l.74.75c-.25.51-.4 1.09-.4 1.7c0 .74.22 1.43.57 2l.73-.71c-.19-.4-.3-.83-.3-1.29c0-.33.07-.64.18-.93l3.75 3.75c-.29.11-.6.18-.93.18c-.46 0-.89-.11-1.28-.3l-.72.73c.58.36 1.26.57 2 .57c.61 0 1.19-.15 1.71-.4l.74.74c-.73.41-1.56.66-2.45.66c-1 0-1.96-.31-2.75-.83l-.72.72C9.5 17.59 10.7 18 12 18c1.17 0 2.25-.35 3.18-.93l1.44 1.43c-1.3.94-2.9 1.5-4.62 1.5m0-12c.74 0 1.43.22 2 .57l-.71.73c-.33-.15-.69-.24-1.06-.27l-.95-.95c.22-.05.47-.08.72-.08m2.97 3.77c-.03-.37-.11-.73-.27-1.05l.73-.72c.36.58.57 1.26.57 2c0 .25-.03.5-.08.72zm-.22-3.94C13.96 7.31 13 7 12 7c-.54 0-1.06.09-1.55.25l-.76-.75C10.4 6.18 11.18 6 12 6c1.3 0 2.5.42 3.47 1.11zM8.18 5L6.72 3.5C8.25 2.56 10.06 2 12 2c5.5 0 10 4.5 10 10c0 1.94-.56 3.75-1.5 5.28L19 15.83c.65-1.14 1-2.45 1-3.83c0-4.41-3.59-8-8-8c-1.38 0-2.69.35-3.82 1m8.57 8.55c.16-.49.25-1.01.25-1.55c0-1-.31-1.96-.83-2.75l.72-.72C17.59 9.5 18 10.7 18 12c0 .83-.18 1.6-.5 2.32z`},null,-1)]])}var Am=W({name:`mdi-smoke-detector-variant-off`,render:km}),jm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Mm(e,t){return F(),G(`svg`,jm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8s-8-3.59-8-8s3.59-8 8-8m0-2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m0 9c-.55 0-1 .45-1 1s.45 1 1 1s1-.45 1-1s-.45-1-1-1m-1.28-1.7c.39-.19.82-.3 1.28-.3s.89.11 1.29.3l.71-.73c-.57-.35-1.26-.57-2-.57s-1.42.22-2 .57zM15 12c0 .46-.11.89-.3 1.29l.73.71c.36-.57.57-1.26.57-2s-.21-1.42-.57-2l-.73.72c.19.39.3.82.3 1.28m-6 0c0-.46.11-.89.3-1.28L8.57 10c-.35.58-.57 1.26-.57 2s.22 1.43.57 2l.73-.71c-.19-.4-.3-.83-.3-1.29m4.29 2.7c-.4.19-.83.3-1.29.3s-.89-.11-1.28-.3l-.72.73c.58.36 1.26.57 2 .57s1.43-.21 2-.57zm3.6-6.17l-.72.72c.52.79.83 1.75.83 2.75s-.31 1.96-.83 2.75l.72.72C17.59 14.5 18 13.3 18 12s-.41-2.5-1.11-3.47m-7.64-.7C10.04 7.31 11 7 12 7s1.96.31 2.75.83l.72-.72a5.98 5.98 0 0 0-6.94 0zm5.5 8.34c-.79.52-1.75.83-2.75.83s-1.96-.31-2.75-.83l-.72.72C9.5 17.59 10.7 18 12 18s2.5-.41 3.47-1.11zm-6.92-1.42C7.31 13.96 7 13 7 12s.31-1.96.83-2.75l-.72-.72a5.98 5.98 0 0 0 0 6.94z`},null,-1)]])}var Nm=W({name:`mdi-smoke-detector-variant`,render:Mm}),Pm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fm(e,t){return F(),G(`svg`,Pm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M11.4 8.2H15V10h-1.8zM19.67 1h-1.34c0 2.58 2.09 4.67 4.67 4.67V4.33c-1.84 0-3.33-1.49-3.33-3.33M21 1a2 2 0 0 0 2 2V1zm-4 0h-1.33c0 4.05 3.28 7.33 7.33 7.33V7c-3.31 0-6-2.69-6-6m-7 2.8c1 0 1.8-.8 1.8-1.8S11 .2 10 .2S8.2 1 8.2 2S9 3.8 10 3.8M2.39 1.73L1.11 3l2.35 2.35L2 5.8V11h1.8V7.33l1.25-.39l.63.63L2 22h1.8l2.87-8.11L9 17v5h1.8v-6.41l-2.49-4.54l.19-.68l12.34 12.36l1.27-1.27zm6.99 3.14c-.3-.5-.84-.84-1.46-.84c-.17 0-.34.03-.5.08l-.08.03l4.01 4.01z`},null,-1)]])}var Im=W({name:`mdi-motion-sensor-off`,render:Fm}),Lm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Rm(e,t){return F(),G(`svg`,Lm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M10 .2C9 .2 8.2 1 8.2 2S9 3.8 10 3.8S11.8 3 11.8 2S11 .2 10 .2m5.67.8A7.33 7.33 0 0 0 23 8.33V7a6 6 0 0 1-6-6zm2.66 0c0 2.58 2.09 4.67 4.67 4.67V4.33c-1.84 0-3.33-1.49-3.33-3.33zM21 1a2 2 0 0 0 2 2V1zM7.92 4.03c-.17 0-.34.03-.5.08L2 5.8V11h1.8V7.33l2.11-.66L2 22h1.8l2.87-8.11L9 17v5h1.8v-6.41l-2.49-4.54l.73-2.87L10.12 10H15V8.2h-3.62l-2-3.33c-.3-.5-.84-.84-1.46-.84`},null,-1)]])}var zm=W({name:`mdi-motion-sensor`,render:Rm}),Bm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vm(e,t){return F(),G(`svg`,Bm,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M7 16.3c2.2 0 4-1.83 4-4.05c0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05`}),J(`path`,{d:`M12.56 6.6A11 11 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97`})],-1)]])}var Hm=W({name:`lucide-droplets`,render:Vm}),Um={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Wm(e,t){return F(),G(`svg`,Um,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0`},null,-1)]])}var Gm=W({name:`lucide-thermometer`,render:Wm}),Km={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function qm(e,t){return F(),G(`svg`,Km,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M18 20V10H6v10zm0-12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h9V6a3 3 0 0 0-3-3a3 3 0 0 0-3 3H7a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6 9a2 2 0 0 1-2-2a2 2 0 0 1 2-2a2 2 0 0 1 2 2a2 2 0 0 1-2 2`},null,-1)]])}var Jm=W({name:`mdi-lock-open-outline`,render:qm}),Ym={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xm(e,t){return F(),G(`svg`,Ym,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 17a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2m6-9a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h1V6a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6-5a3 3 0 0 0-3 3v2h6V6a3 3 0 0 0-3-3`},null,-1)]])}var Zm=W({name:`mdi-lock`,render:Xm}),Qm={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $m(e,t){return F(),G(`svg`,Qm,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6 6.9L3.87 4.78l1.41-1.41L7.4 5.5zM13 1v3h-2V1zm7.13 3.78L18 6.9l-1.4-1.4l2.12-2.13zM4.5 10.5v2h-3v-2zm15 0h3v2h-3zM6 20h12a2 2 0 0 1 2 2H4a2 2 0 0 1 2-2m6-15a6 6 0 0 1 6 6v8H6v-8a6 6 0 0 1 6-6`},null,-1)]])}var eh=W({name:`mdi-alarm-light`,render:$m}),th={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nh(e,t){return F(),G(`svg`,th,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 2v10m6.4-5.4a9 9 0 1 1-12.77.04`},null,-1)]])}var rh=W({name:`lucide-power`,render:nh}),ih={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ah(e,t){return F(),G(`svg`,ih,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 6a6 6 0 0 1 6 6c0 2.22-1.21 4.16-3 5.2V19a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-1.8c-1.79-1.04-3-2.98-3-5.2a6 6 0 0 1 6-6m2 15v1a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-1zm6-10h3v2h-3zM1 11h3v2H1zM13 1v3h-2V1zM4.92 3.5l2.13 2.14l-1.42 1.41L3.5 4.93zm12.03 2.13l2.12-2.13l1.43 1.43l-2.13 2.12z`},null,-1)]])}var oh=W({name:`mdi-lightbulb-on`,render:ah}),sh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ch(e,t){return F(),G(`svg`,sh,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M10 12h.01M18 20V6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v14m-4 0h20`},null,-1)]])}var lh=W({name:`lucide-door-closed`,render:ch}),uh={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function dh(e,t){return F(),G(`svg`,uh,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H2m9-15.438v16.157a1 1 0 0 0 1.242.97L19 20V5.562a2 2 0 0 0-1.515-1.94l-4-1A2 2 0 0 0 11 4.561zM11 4H8a2 2 0 0 0-2 2v14m8-8h.01M22 20h-3`},null,-1)]])}var fh=W({name:`lucide-door-open`,render:dh}),ph={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mh(e,t){return F(),G(`svg`,ph,[...t[0]||=[J(`g`,{fill:`none`},[J(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),J(`path`,{fill:`currentColor`,d:`M19.26 16.877c.413.402.74.932.74 1.596c0 .753-.426 1.339-.9 1.745c-.48.408-1.114.731-1.81.983c-1.402.505-3.272.799-5.29.799s-3.888-.294-5.29-.8c-.696-.25-1.33-.574-1.809-.982c-.475-.406-.901-.992-.901-1.745c0-.663.327-1.194.74-1.596A9.97 9.97 0 0 0 12 20c2.859 0 5.438-1.2 7.26-3.123M12 2a8 8 0 1 1 0 16a8 8 0 0 1 0-16m0 4a4 4 0 1 0 0 8a4 4 0 0 0 0-8m0 2a2 2 0 1 1 0 4a2 2 0 0 1 0-4`})],-1)]])}var hh=W({name:`mingcute-computer-camera-fill`,render:mh});async function gh({cameraData:e}){return(await $.post(`/cameras`,e)).data}async function _h({cameraData:e}){return(await $.post(`/cameras/preview`,e)).data}async function vh({signal:e}){return(await $.get(`/cameras/rooms`,{signal:e})).data}async function yh({cameraname:e,signal:t}){return(await $.get(`/cameras/${e}`,{signal:t})).data}async function bh({cameraname:e}){return(await $.delete(`/cameras/${e}/log`)).data}async function xh({cameraname:e,signal:t}){return(await $.get(`/cameras/${e}/log/download`,{signal:t})).data}async function Sh({cameraname:e,sourcename:t,signal:n}){return(await $.get(`/cameras/${e}/info/${t}`,{signal:n})).data}async function Ch({cameraname:e,sourcename:t,probeConfig:n,force:r,signal:i}){return(await $.get(`/cameras/${e}/probe/${t}`,{params:{...n,...r?{refresh:!0}:{}},signal:i})).data}async function wh({cameraname:e,forceNew:t,signal:n}){return(await $.get(`/cameras/${e}/snapshot`,{signal:n,params:{forceNew:t},responseType:`arraybuffer`})).data}async function Th({parameter:e,signal:t}){return(await $.get(`/cameras`,{params:e,signal:t})).data}async function Eh({cameraname:e,cameraData:t}){return(await $.patch(`/cameras/${e}`,t)).data}async function Dh({cameraname:e,signal:t}){return(await $.get(`/cameras/${e}/extensions`,{signal:t})).data}async function Oh({cameraname:e,signal:t}){return(await $.get(`/cameras/${e}/sensors/registered`,{signal:t})).data.sensors}async function kh({cameraname:e,pluginname:t,signal:n}){return(await $.get(`/cameras/${e}/${t}/config`,{signal:n})).data}async function Ah({cameraname:e,pluginname:t,configData:n}){return(await $.patch(`/cameras/${e}/${t}/config`,n)).data}async function jh({cameraname:e,pluginname:t,configData:n}){return(await $.put(`/cameras/${e}/${t}/config`,n)).data}async function Mh({cameraname:e,pluginname:t,configData:n}){return(await $.post(`/cameras/${e}/${t}/config`,n)).data}async function Nh({cameraname:e,pluginname:t,sensorId:n,signal:r}){return(await $.get(`/cameras/${e}/${t}/sensor/${n}/config`,{signal:r})).data}async function Ph({cameraname:e,pluginname:t,sensorId:n,configData:r}){return(await $.patch(`/cameras/${e}/${t}/sensor/${n}/config`,r)).data}async function Fh({cameraname:e,pluginname:t,sensorId:n,configData:r}){return(await $.put(`/cameras/${e}/${t}/sensor/${n}/config`,r)).data}async function Ih({cameraname:e,pluginname:t,sensorId:n,configData:r}){return(await $.post(`/cameras/${e}/${t}/sensor/${n}/config`,r)).data}async function Lh({cameraname:e,pluginname:t,type:n}){return(await $.put(`/cameras/${e}/${t}/enable`,null,{params:{type:n}})).data}async function Rh({cameraname:e,pluginname:t,type:n}){return(await $.put(`/cameras/${e}/${t}/disable`,null,{params:{type:n}})).data}async function zh({cameraname:e,pluginname:t,type:n}){return(await $.post(`/cameras/${e}/${t}`,null,{params:{type:n}})).data}async function Bh({cameraname:e,pluginname:t,type:n}){return(await $.delete(`/cameras/${e}/${t}`,{params:{type:n}})).data}async function Vh({cameraname:e,pluginname:t}){return(await $.post(`/cameras/${e}/${t}/activate`)).data}async function Hh({cameraname:e,pluginname:t}){return(await $.delete(`/cameras/${e}/${t}/deactivate`)).data}async function Uh({cameraname:e,signal:t}){return(await $.get(`/cameras/${e}/zones`,{signal:t})).data}async function Wh({cameraname:e,zoneData:t}){return(await $.patch(`/cameras/${e}/zones`,t)).data}async function Gh({cameraname:e,lineData:t}){return(await $.patch(`/cameras/${e}/lines`,t)).data}async function Kh({cameraname:e}){return(await $.delete(`/cameras/${e}`)).data}async function qh(){return(await $.delete(`/cameras`)).data}var Jh=class{_queryClient=tn();t=ea.global.t;toast=ra();queryActivator=K([{name:`getCameraQuery`,enabled:!0},{name:`getCamerasQuery`,enabled:!0},{name:`getCameraSnapshotQuery`,enabled:!0},{name:`getCameraExtensionsQuery`,enabled:!0},{name:`getCameraRegisteredSensorsQuery`,enabled:!0},{name:`getCameraExtensionConfigQuery`,enabled:!0},{name:`getZonesQuery`,enabled:!0},{name:`streamSourceInfoQuery`,enabled:!0},{name:`probeCameraSourceQuery`,enabled:!0},{name:`downloadLogQuery`,enabled:!0},{name:`getSensorConfigQuery`,enabled:!0}]);get queryClient(){return this._queryClient}createCameraQuery(){return N({mutationFn:gh,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.camera_added`),life:3e3})}})}previewCameraQuery(){return N({mutationFn:_h})}getCameraQuery(e){return ia({queryKey:[`cameras`,e],queryFn:({signal:t})=>yh({cameraname:Z(e),signal:t}),initialData:()=>{let t=Z(e),n=this._queryClient.getQueriesData({queryKey:[`camerasList`]});for(let[,e]of n){let n=e?.result?.find(e=>e.name===t);if(n)return n}},initialDataUpdatedAt:0,enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraQuery`&&e.enabled)})}getCameraExtensionsQuery(e){return ia({queryKey:[`camerasExtensions`,e],queryFn:({signal:t})=>Dh({cameraname:Z(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraExtensionsQuery`&&e.enabled)})}getCameraRegisteredSensorsQuery(e){return ia({queryKey:[`camerasRegisteredSensors`,e],queryFn:({signal:t})=>Oh({cameraname:Z(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraRegisteredSensorsQuery`&&e.enabled)})}streamSourceInfoQuery(e,t){return ia({queryKey:[`cameras`,e,`info`,t],queryFn:({signal:n})=>Sh({cameraname:Z(e),sourcename:Z(t),signal:n}),enabled:()=>this.queryActivator.value.some(e=>e.name===`streamSourceInfoQuery`&&e.enabled)})}probeCameraSourceQuery(e,t,n){return ia({queryKey:[`cameras`,e,`probe`,t],queryFn:({signal:r})=>Ch({cameraname:Z(e),sourcename:Z(t),probeConfig:Z(n),signal:r}),enabled:()=>this.queryActivator.value.some(e=>e.name===`probeCameraSourceQuery`&&e.enabled)})}getCameraSnapshotQuery(e,t){return ia({queryKey:[`camerasSnapshot`,e],queryFn:({signal:n})=>wh({cameraname:Z(e),forceNew:Z(t),signal:n}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getCameraSnapshotQuery`&&e.enabled),retry:!1})}getCamerasQuery(e){return ia({queryKey:[`camerasList`,e],queryFn:({signal:t})=>Th({parameter:Z(e),signal:t}),placeholderData:e=>e,enabled:()=>this.queryActivator.value.some(e=>e.name===`getCamerasQuery`&&e.enabled)})}getRoomsQuery(){return ia({queryKey:[`camerasRooms`],queryFn:({signal:e})=>vh({signal:e})})}patchCameraQuery(){return N({mutationFn:Eh,onSuccess:async(e,t)=>{let n=t.cameraData.name&&t.cameraData.name!==t.cameraname,r=t.cameraData.room!==void 0;if(n){let n=t.cameraname;this._queryClient.setQueryData([`cameras`,t.cameraData.name],e),this._queryClient.removeQueries({predicate:e=>e.queryKey.includes(n),type:`inactive`}),await this._queryClient.refetchQueries({queryKey:[`camerasList`]})}else await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),r&&(await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),await this._queryClient.refetchQueries({queryKey:[`camerasRooms`]}));this.toast.add({severity:`success`,detail:this.t(`components.toast.camera_updated`),life:3e3})}})}getCameraExtensionConfigQuery(e,t,n){return ia({queryKey:[`cameras`,`extensions`,e,t],queryFn:({signal:n})=>kh({cameraname:Z(e),pluginname:Z(t),signal:n}),enabled:()=>!!Z(t)&&this.queryActivator.value.some(e=>e.name===`getCameraExtensionConfigQuery`&&e.enabled),refetchInterval(){if(n.value)return 1e4},retry:10,retryDelay:500,staleTime:0})}patchCameraExtensionConfigQuery(){return N({mutationFn:Ah,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}setCameraExtensionConfigQuery(){return N({mutationFn:jh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}submitCameraExtensionConfigQuery(){return N({mutationFn:Mh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`extensions`,t.cameraname],type:`active`}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}getSensorConfigQuery(e,t,n,r){return ia({queryKey:[`cameras`,`sensor`,e,t,n],queryFn:({signal:r})=>Nh({cameraname:Z(e),pluginname:Z(t),sensorId:Z(n),signal:r}),enabled:()=>{let e=Z(t),r=Z(n);return!e||!r?!1:this.queryActivator.value.some(e=>e.name===`getSensorConfigQuery`&&e.enabled)},refetchInterval(){if(r.value)return 1e4},retry:3,retryDelay:500,staleTime:0})}patchSensorConfigQuery(){return N({mutationFn:Ph,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`sensor`,t.cameraname,t.pluginname,t.sensorId]})}})}setSensorConfigQuery(){return N({mutationFn:Fh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`sensor`,t.cameraname,t.pluginname,t.sensorId]})}})}submitSensorConfigQuery(){return N({mutationFn:Ih,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`cameras`,`sensor`,t.cameraname,t.pluginname,t.sensorId]})}})}enableCameraExtensionQuery(){return N({mutationFn:Lh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}disableCameraExtensionQuery(){return N({mutationFn:Rh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}addCameraExtensionQuery(){return N({mutationFn:zh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}activateCameraExtensionQuery(){return N({mutationFn:Vh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}deactivateCameraExtensionQuery(){return N({mutationFn:Hh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}getZonesQuery(e){return ia({queryKey:[`cameras`,e,`zones`],queryFn:({signal:t})=>Uh({cameraname:Z(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`getZonesQuery`&&e.enabled)})}patchZonesQuery(){return N({mutationFn:Wh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.zone_updated`),life:3e3})}})}patchLinesQuery(){return N({mutationFn:Gh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.line_updated`),life:3e3})}})}removeCameraExtensionQuery(){return N({mutationFn:Bh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`cameras`,t.cameraname],exact:!0}),await this._queryClient.refetchQueries({queryKey:[`camerasExtensions`,t.cameraname]})}})}removeCameraQuery(){return N({mutationFn:Kh,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.camera_removed`),life:3e3})}})}removeCamerasQuery(){return N({mutationFn:qh,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`camerasList`]}),this.toast.add({severity:`success`,detail:this.t(`components.toast.cameras_removed`),life:3e3})}})}downloadLogQuery(e){return ia({queryKey:[`logs`,e],queryFn:({signal:t})=>xh({cameraname:Z(e),signal:t}),enabled:()=>this.queryActivator.value.some(e=>e.name===`downloadLogQuery`&&e.enabled)})}clearLogQuery(){return N({mutationFn:bh,onSuccess:async(e,t)=>{await this._queryClient.refetchQueries({queryKey:[`logs`,t.cameraname],exact:!0}),this.toast.add({severity:`success`,detail:this.t(`components.toast.log_cleared`),life:3e3})}})}toggleQueryActivator(e,t){let n=this.queryActivator.value.find(t=>t.name===e);return n&&(n.enabled=t),this}},Yh=Gn(),Xh=new Set(Yh.map(e=>String(e))),Zh=new Set(Yh.filter(e=>[Ct.Sensor,Ct.Info].includes(Wn[e].category)).map(e=>String(e))),Qh=new Set(Yh.filter(e=>Wn[e].category===Ct.Info).map(e=>String(e))),$h=e(Dr(),1),eg={class:`snapshot-hover-container flex items-center justify-center relative`},tg=[`onMouseenter`,`onMouseleave`],ng={class:`flex flex-col gap-1 min-w-[160px]`},rg=[`onClick`],ig=[`onClick`],ag=[`onClick`],og=[`onClick`],sg={class:`sensor-tooltip`},cg={class:`sensor-tooltip-name`},lg={key:0,class:`sensor-tooltip-offline text-orange-500`},ug={class:`shortcut-menu`},dg=[`onClick`],fg={key:0,class:`shortcut-menu-item-overlay`},pg={key:0,class:`shortcut-menu-empty`},mg={class:`shortcut-menu-sensors`},hg={class:`sensor-menu-icon`},gg={key:1,class:`shortcut-menu-empty`},_g=ml(hn({__name:`CuiShortcuts`,props:{cameraName:{},visible:{type:Boolean},editing:{type:Boolean},interactionLocked:{type:Boolean}},setup(e){let t=new Jh,r=new Ca,i=e,a=Nn(),s=rr(),{cameraName:c,visible:l,editing:u,interactionLocked:d}=An(i),{camera:f}=Xe(c),{sensors:p}=At(f),m=vt(),h=Tt(),g=Bl(void 0,`admin`),v=on(Ge,void 0),{user:y}=er(Dw());t.toggleQueryActivator(`getCamerasQuery`,!1);let{data:b,isBusy:x}=t.getCameraQuery(c),{data:S,isBusy:C}=t.getCamerasQuery({page:1,pageSize:-1}),{data:E,isBusy:ee}=r.getShortcutsQuery(y.value?.username||``,c),{mutate:D,isPending:O}=r.patchShortcutQuery(),{mutate:te,isPending:ne}=r.createShortcutQuery(),{mutate:re,isPending:ie}=r.removeShortcutQuery(),k=new Map,oe=un(`placeholderRef`),se=un(`shortcutContainerRef`),le=un(`camerasMenuRef`),ue=xn({}),de=xn({}),fe=xn({}),me=xn({}),ve=K({}),ye=K(!1),xe=K(),Ce=K(!1),Te=K(!1),Oe=K([]),ke=K({}),Ae=K(!1),je=K(`cameras`),Ne=K({}),Pe=K(new Set),Fe=ge(se),Le=U(()=>v?.isActive.value??!1),Re=U(()=>Oe.value.filter(e=>e.type===`camera`)),ze=U(()=>Oe.value.filter(e=>e.type===`sensor`)),Ve=U(()=>p.value.filter(e=>o(e)||ot(e)||be(e)||Ee(e)||Be(e)||_(e)||dt(e)||w(e)||he(e)||e.type===j.Switch||n(e)||_e(e)||ce(e)||jt(e))),He=U(()=>{let e=p.value;return ze.value.map(t=>{let n=ct(e,t.sensorType,t.sensorName,t.sensorPluginId);return{shortcut:t,sensor:n,isOnline:!!n}})}),We=U(()=>x.value||ee.value||O.value||C.value||ne.value||ie.value),qe=U(()=>S.value?.result?S.value.result.filter(e=>e.name!==c.value):[]),Je=U(()=>y.value?.username??``),Ze=U(()=>{if(Le.value)return Re.value.find(e=>ke.value[e._id])});function Qe(e){let t=k.get(e._id);return t||(t=st(U(()=>e.cameraId),{managed:!0,sourceRole:`scrub`,cameraUi:m,nvrCtx:h}),k.set(e._id,t),t)}function $e(e){return ze.value.some(t=>t.sensorName===e.name&&String(t.sensorType).toLowerCase()===String(e.type).toLowerCase()&&t.sensorPluginId===e.pluginId)}function et(e){return Re.value.some(t=>t.cameraId===e._id)}function nt(e){switch(e){case j.Contact:return`Contact Sensor`;case j.Light:return`Light`;case j.Switch:return`Switch`;case j.Siren:return`Siren`;case j.Lock:return`Lock`;case j.Temperature:return`Temperature`;case j.Humidity:return`Humidity`;case j.Occupancy:return`Occupancy`;case j.Smoke:return`Smoke Sensor`;case j.Leak:return`Leak Sensor`;case j.Garage:return`Garage`;case j.Doorbell:return`Doorbell`;case j.SecuritySystem:return`Security System`;case j.Battery:return`Battery`;default:return`Sensor`}}function it(e,t){switch(e){case`light`:return t?{color:`rgb(250, 204, 21)`,filter:`drop-shadow(0 0 8px rgba(250, 204, 21, 0.8))`}:{color:`var(--text-secondary-color)`};case`siren`:return t?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 8px rgba(239, 68, 68, 0.8))`}:{color:`var(--text-secondary-color)`};case`switch`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`contact`:return t?{color:`rgb(251, 146, 60)`,filter:`drop-shadow(0 0 8px rgba(251, 146, 60, 0.6))`}:{color:`var(--text-secondary-color)`};case`lock`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`temperature`:return{color:`rgb(6, 182, 212)`};case`humidity`:return{color:`rgb(59, 130, 246)`};case`occupancy`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`smoke`:return t?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 8px rgba(239, 68, 68, 0.8))`}:{color:`var(--text-secondary-color)`};case`leak`:return t?{color:`rgb(59, 130, 246)`,filter:`drop-shadow(0 0 8px rgba(59, 130, 246, 0.7))`}:{color:`var(--text-secondary-color)`};case`garage`:return t?{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 8px rgba(34, 197, 94, 0.7))`}:{color:`var(--text-secondary-color)`};case`doorbell`:return t?{color:`rgb(234, 179, 8)`,filter:`drop-shadow(0 0 8px rgba(234, 179, 8, 0.8))`}:{color:`var(--text-secondary-color)`};case`securitySystem`:return t?{color:`rgb(168, 85, 247)`,filter:`drop-shadow(0 0 8px rgba(168, 85, 247, 0.7))`}:{color:`var(--text-secondary-color)`};case`battery`:return t?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 8px rgba(239, 68, 68, 0.8))`}:{color:`var(--text-secondary-color)`};default:return{color:`var(--text-secondary-color)`}}}function at(e){let t=String(e);return Xh.has(t)?t:`contact`}function ct(e,t,n,r){return e.find(e=>{let i=String(e.type).toLowerCase()===String(t).toLowerCase(),a=e.name===n,o=e.pluginId===r;return i&&a&&o})}function lt(e){return e?o(e)?e.getProperty(rt.Detected)??!1:dt(e)?e.getProperty(Me.On)??!1:e.type===j.Switch?e.getProperty(T.On)??!1:n(e)?e.getProperty(Se.Active)??!1:w(e)?(e.getProperty(Ye.TargetState)??0)===0:Ee(e)?e.getProperty(bt.Detected)??!1:Be(e)?e.getProperty(we.Detected)??!1:_(e)?e.getProperty(_t.Detected)??!1:he(e)?(e.getProperty(tt.TargetState)??1)===0:_e(e)?e.getProperty(Ie.Ring)??!1:ce(e)?(e.getProperty(De.TargetState)??A.Disarmed)!==A.Disarmed:jt(e)?e.getProperty(Ke.Low)??!1:!1:!1}async function ut(e){let t=ct(p.value,e.shortcut.sensorType,e.shortcut.sensorName,e.shortcut.sensorPluginId);if(!t||!g)return;let r=lt(t);try{dt(t)?await t.setProperty(Me.On,!r):t.type===j.Switch?await t.setProperty(T.On,!r):n(t)?await t.setProperty(Se.Active,!r):w(t)?await t.setProperty(Ye.TargetState,+!!r):he(t)?await t.setProperty(tt.TargetState,+!!r):_e(t)&&await t.setProperty(Ie.Ring,!0)}catch(e){a.error(`Failed to toggle sensor:`,e)}}async function ft(e,t){let n=ct(p.value,e.shortcut.sensorType,e.shortcut.sensorName,e.shortcut.sensorPluginId);if(!(!n||!g))try{await n.setProperty(De.TargetState,t)}catch(e){a.error(`Failed to set security system state:`,e)}}function pt(e,t){return!e||!ce(e)?!1:e.getProperty(De.TargetState)===t}function mt(e){return!e||!ce(e)?A.Disarmed:e.getProperty(De.CurrentState)??e.getProperty(De.TargetState)??A.Disarmed}function ht(e,t){e&&(fe.value[t]=e)}function gt(e){return Qh.has(e)}function yt(e){if(!e||!ce(e))return`--`;switch(e.getProperty(De.TargetState)){case A.Disarmed:return`Disarmed`;case A.StayArm:return`Stay Arm`;case A.AwayArm:return`Away Arm`;case A.NightArm:return`Night Arm`;case A.AlarmTriggered:return`ALARM`;default:return`--`}}function xt(e){return!e||!jt(e)?`--`:`${e.getProperty(Ke.Level)??0}%${e.getProperty(Ke.Charging)===Ue.Charging?` ⚡`:``}`}function M(e){return!e||!jt(e)?!1:e.getProperty(Ke.Charging)===Ue.Charging}function St(e){return!e||!jt(e)?0:e.getProperty(Ke.Level)??0}function Ct(e){let t=St(e);return t>=90?100:t>=70?80:t>=50?60:t>=30?40:t>=15?20:0}function Et(e){if(M(e))return{color:`rgb(34, 197, 94)`,filter:`drop-shadow(0 0 6px rgba(34, 197, 94, 0.6))`};let t=St(e);return t<15?{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 6px rgba(239, 68, 68, 0.7))`}:t<30?{color:`rgb(251, 146, 60)`}:t<50?{color:`rgb(234, 179, 8)`}:{color:`rgb(34, 197, 94)`}}function Dt(e){if(!Zh.has(e.shortcut.sensorType)&&g){if(e.shortcut.sensorType===`securitySystem`){let t=fe.value[e.shortcut._id],n=ue.value[e.shortcut._id];t&&n&&t.toggle({currentTarget:n});return}ut(e)}}function Ot(e,n){ye.value||(t.toggleQueryActivator(`getCamerasQuery`,n),ke.value[e]=!ye.value&&n,n&&Object.entries(ke.value).forEach(([t,n])=>{t!==e&&n&&(ke.value[t]=!1)}))}function kt(e){ye.value||(Ne.value[e._id]=!0,Kt(e))}function Mt(e,t){if(Ne.value[t._id]){delete Ne.value[t._id];return}if(!e)if(!ke.value[t._id])Ot(t._id,!0);else{let e=Le.value&&v?Math.floor(v.currentTimestamp.value/1e3):void 0;Ot(t._id,!1),Xt(t.cameraId,e)}}function Nt(e,t){ye.value||(ke.value[e]=!ye.value&&t,t&&Object.entries(ke.value).forEach(([t,n])=>{t!==e&&n&&(ke.value[t]=!1)}))}function Pt(e){ye.value||(Ne.value[e._id]=!0,Rt(e))}function It(e){if(Ne.value[e.shortcut._id]){delete Ne.value[e.shortcut._id];return}ye.value||!Zh.has(e.shortcut.sensorType)&&g&&Dt(e)}function Rt(e){Pe.value.add(e._id),de.value[e._id]?.hide(),ke.value[e._id]=!1,me.value[e._id]?.destroy(),delete me.value[e._id],delete ve.value[e._id],delete ue.value[e._id],re({username:Je.value,cameraname:c.value,shortcutid:e._id},{onSettled:()=>{Pe.value.delete(e._id)}})}function zt(){Object.entries(me.value).forEach(([e,t])=>{let n=se.value;if(!n)return;let r=n.getBoundingClientRect(),i=t.element.getBoundingClientRect(),a=(i.left-r.left)/r.width*100,o=(i.top-r.top)/r.height*100;ve.value[e]={x:Math.max(0,Math.min(a,100)),y:Math.max(0,Math.min(o,100))}})}function Bt(){Object.entries(me.value).forEach(([e,t])=>{let n=ve.value[e];if(!n)return;let r=se.value;if(!r)return;let i=r.getBoundingClientRect(),a=t.element.getBoundingClientRect(),o=i.width-a.width,s=i.height-a.height,c=Math.max(0,Math.min(n.x/100*i.width,o)),l=Math.max(0,Math.min(n.y/100*i.height,s));t.setPosition(c,l)}),Te.value=!1}function Vt(){Object.entries(ve.value).forEach(([e,t])=>{ve.value[e]={x:Math.max(0,Math.min(t.x,100)),y:Math.max(0,Math.min(t.y,100))}}),Bt()}function Ht(){for(let[e,t]of Object.entries(me.value))Oe.value.find(t=>t._id===e)||(t.destroy(),delete me.value[e],delete ve.value[e]);for(let[e]of Object.entries(ve.value))Oe.value.find(t=>t._id===e)||delete ve.value[e];for(let[e,t]of Object.entries(ue.value)){let n=Oe.value.find(t=>t._id===e);if(t&&n&&se.value){me.value[n._id]&&me.value[n._id].destroy();let r=new $h.default(t,{containment:se.value});d.value&&r.disable(),me.value[n._id]=r;let[i,a]=n.points,o=se.value.getBoundingClientRect(),s=i/100*o.width,l=a/100*o.height;r.setPosition(s,l),ve.value[n._id]={x:i,y:a},r.on(`dragMove`,()=>{ye.value=!0,de.value[e]?.alignOverlay()}),r.on(`dragEnd`,()=>{setTimeout(()=>{ye.value=!1},50),zt();let e=ve.value[n._id];D({username:Je.value,cameraname:c.value,shortcutid:n._id,shortcutData:{points:[e.x,e.y]}})})}}Bt()}function Ut(e){if(!u.value||!se.value||d.value)return;Ce.value=!0;let t=se.value.getBoundingClientRect();xe.value={x:Math.max(0,Math.min(e.clientX-t.left-35/2,t.width-35)),y:Math.max(0,Math.min(e.clientY-t.top-35/2,t.height-35))}}async function Wt(e){if(!oe.value||!se.value)return;let t=se.value,n=oe.value,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=i.left-r.left,o=i.top-r.top,s=a/r.width*100,l=o/r.height*100;te({username:Je.value,cameraname:c.value,shortcutData:{_id:``,type:`camera`,points:[s,l],cameraId:e._id}},{onSettled:()=>{Ce.value=!1,xe.value=void 0,le.value?.hide()}})}async function N(e){if(!oe.value||!se.value)return;let t=se.value,n=oe.value,r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=i.left-r.left,o=i.top-r.top,s=a/r.width*100,l=o/r.height*100;te({username:Je.value,cameraname:c.value,shortcutData:{_id:``,type:`sensor`,points:[s,l],sensorType:at(e.type),sensorName:e.name,sensorPluginId:e.pluginId??``,sensorCameraId:b.value?._id??``}},{onSettled:()=>{Ce.value=!1,xe.value=void 0,le.value?.hide()}})}function Kt(e){Pe.value.add(e._id),de.value[e._id]?.hide(),ke.value[e._id]=!1,me.value[e._id]?.destroy(),delete me.value[e._id],delete ve.value[e._id],delete ue.value[e._id],re({username:Je.value,cameraname:c.value,shortcutid:e._id},{onSettled:()=>{Pe.value.delete(e._id)}})}function qt(e,t){ue.value[t]=e}function Jt(e,t){de.value[t]=e}async function Xt(e,t){if(ye.value)return;let n=(await yh({cameraname:e,signal:new AbortController().signal})).name;n&&(t===void 0?s.push(`/cameras/${n}`):s.push({path:`/cameras/${n}`,query:{startTs:String(t)}}))}function Zt(e){!e&&!Ce.value&&(xe.value=void 0),Ae.value=e,t.toggleQueryActivator(`getCamerasQuery`,e)}return P([E,b],()=>{E.value&&b.value&&(Oe.value=Fw(E.value))},{immediate:!0,deep:!0}),P([Fe.width,Fe.height],()=>{Te.value=!0,Ft(()=>{Vt()})}),P(Oe,()=>{Ft(()=>{Ht()})},{deep:!0,immediate:!0}),P(Te,e=>{e&&(xe.value=void 0)}),P([oe,xe],([e,t])=>{e&&t&&setTimeout(()=>{le.value?.show({currentTarget:e})},50)},{deep:!0}),P(ke,()=>{Object.entries(ke.value).forEach(([e,t])=>{if(t&&de.value[e]){let t=ue.value[e];t&&de.value[e]?.show({currentTarget:t})}else de.value[e]?.hide()})},{deep:!0}),P(l,e=>{e||(Object.values(de.value).forEach(e=>e?.hide()),Object.keys(ke.value).forEach(e=>{ke.value[e]=!1}))}),P(u,e=>{e||(xe.value=void 0,Ce.value=!1,le.value?.hide())}),P(d,e=>{Object.values(me.value).forEach(t=>{e?t.disable():t.enable()}),e&&(xe.value=void 0,Ce.value=!1)}),P(Ze,(e,t)=>{t&&k.get(t._id)?.stop(),e&&v&&Le.value&&Qe(e).play(v.currentTimestamp.value,!0)}),P(()=>v?.mode.value,e=>{if(!Ze.value||!v)return;let t=k.get(Ze.value._id);if(t)switch(e){case`idle`:t.stop();break;case`play`:t.play(v.currentTimestamp.value,!0);break;case`pause`:t.pause();break}}),P(()=>v?.currentTimestamp.value,e=>{!Ze.value||!v||!e||v.mode.value===`scrub`&&k.get(Ze.value._id)?.scrub(e,!0)}),P(()=>v?.speed.value,e=>{!Ze.value||!e||k.get(Ze.value._id)?.setSpeed(e)}),en(()=>{ue.value={}}),Gt(()=>{Ft(()=>{Ht()})}),Yt(()=>{Object.values(me.value).forEach(e=>e.destroy())}),(e,t)=>{let n=hh,r=ae,i=wt,a=ny,o=pe,s=fh,c=lh,f=oh,p=Yn,m=rh,h=eh,_=Zm,v=Jm,y=Gm,b=Hm,x=zm,C=Im,w=Nm,T=Am,E=Dm,ee=wm,D=xm,O=vm,te=hm,ne=fm,re=lm,ie=om,k=rm,ce=em,ue=Zp,de=Jp,fe=Gp,me=Hp,he=zp,ge=Ip,_e=Np,ve=Ap,be=Dp,Se=wp,Ce=xp,we=vp,Ee=hp,De=ar,Oe=fp,Me=pr,Ne=Tl,Fe=Au,Ie=cr,ze=lp,Be=Us,Ue=fu,Ge=fr,Ke=mr,Je=sr;return F(),G(`div`,{ref_key:`shortcutContainerRef`,ref:se,class:I([`shortcut-container min-w-0`,{"!pointer-events-auto":Z(u)&&!Z(d),hidden:!Z(l)}]),style:X({cursor:Z(u)&&!Z(d)?`pointer`:`default`}),onClick:Cn(Ut,[`self`])},[(F(!0),G(z,null,Lt(Z(Re),e=>Tn((F(),G(`div`,{ref_for:!0,ref:t=>qt(t,e._id),key:e._id,onMousedown:t[0]||=Cn(()=>{},[`stop`]),onTouchstart:t[1]||=Cn(()=>{},[`stop`]),onWheel:t[2]||=Cn(()=>{},[`stop`]),class:`draggable absolute pointer-events-auto camera-shortcut`,style:X({background:Z(ke)[e._id]?`#545454`:void 0})},[Y(r,{severity:`secondary`,rounded:``,class:`cui-icon-lg shadow-sm pointer-events-auto`},{icon:q(()=>[Y(n,{width:`100%`,height:`100%`})]),_:1}),Y(o,{ref_for:!0,ref:t=>Jt(t,e._id),class:`shadow-lg cui-rounded-corner overflow-hidden`,pt:{content:{class:`p-0`}}},{default:q(()=>[J(`div`,eg,[Z(S)?.result.find(t=>t._id===e.cameraId)?(F(),B(a,{key:1,"source-role":Z(Le)?void 0:`low-resolution`,"camera-info":Z(S).result.find(t=>t._id===e.cameraId),"nvr-controller":Z(Le)?Qe(e):void 0,toolbar:!1,control:!1,subcontrol:!1,"isolated-stream":!0,"live-indicator-overlay":``,class:`w-full`,"flat-card":``},null,8,[`source-role`,`camera-info`,`nvr-controller`])):(F(),B(i,{key:0,"stroke-width":`5`,class:`w-[30px] h-[30px]`}))])]),_:2},1536)],36)),[[wn,!Z(Pe).has(e._id)],[Z(nr),[t=>Ot(e._id,t),{delayEnter:0,delayLeave:1e3}]],[Z(tr),[()=>kt(e),{distanceThreshold:24,delay:500,onMouseUp:(t,n,r)=>Mt(r,e)}]]])),128)),(F(!0),G(z,null,Lt(Z(He),e=>Tn((F(),G(`div`,{ref_for:!0,ref:t=>qt(t,e.shortcut._id),key:e.shortcut._id,onMouseenter:t=>Nt(e.shortcut._id,!0),onMouseleave:t=>Nt(e.shortcut._id,!1),onMousedown:t[3]||=Cn(()=>{},[`stop`]),onTouchstart:t[4]||=Cn(()=>{},[`stop`]),onWheel:t[5]||=Cn(()=>{},[`stop`]),class:I([`draggable absolute pointer-events-auto sensor-shortcut`,{"sensor-active":lt(e.sensor),"sensor-offline":!e.isOnline,"sensor-readonly":Z(Zh).has(e.shortcut.sensorType)||!Z(g)}]),style:X({background:Z(ke)[e.shortcut._id]?`#545454`:void 0})},[Y(r,{severity:`secondary`,rounded:``,class:`cui-icon-lg shadow-sm pointer-events-auto`},{icon:q(()=>[e.shortcut.sensorType===`contact`&<(e.sensor)?(F(),B(s,{key:0,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`contact`?(F(),B(c,{key:1,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`light`&<(e.sensor)?(F(),B(f,{key:2,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`light`?(F(),B(p,{key:3,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`switch`?(F(),B(m,{key:4,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,lt(e.sensor)))},null,8,[`style`])):e.shortcut.sensorType===`siren`?(F(),B(h,{key:5,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,lt(e.sensor)))},null,8,[`style`])):e.shortcut.sensorType===`lock`&<(e.sensor)?(F(),B(_,{key:6,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`lock`?(F(),B(v,{key:7,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`temperature`?(F(),B(y,{key:8,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`humidity`?(F(),B(b,{key:9,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`occupancy`&<(e.sensor)?(F(),B(x,{key:10,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`occupancy`?(F(),B(C,{key:11,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`smoke`&<(e.sensor)?(F(),B(w,{key:12,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`smoke`?(F(),B(T,{key:13,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`leak`&<(e.sensor)?(F(),B(E,{key:14,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`leak`?(F(),B(ee,{key:15,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`garage`&<(e.sensor)?(F(),B(D,{key:16,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`garage`?(F(),B(O,{key:17,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`doorbell`?(F(),B(te,{key:18,width:`100%`,height:`100%`,class:I({"doorbell-shake":lt(e.sensor)}),style:X(it(e.shortcut.sensorType,lt(e.sensor)))},null,8,[`class`,`style`])):e.shortcut.sensorType===`securitySystem`&&mt(e.sensor)===Z(A).AlarmTriggered?(F(),B(ne,{key:19,width:`100%`,height:`100%`,style:{color:`rgb(239, 68, 68)`,filter:`drop-shadow(0 0 10px rgba(239, 68, 68, 0.9))`},class:`security-alarm-pulse`})):e.shortcut.sensorType===`securitySystem`&&mt(e.sensor)===Z(A).StayArm?(F(),B(re,{key:20,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`securitySystem`&&mt(e.sensor)===Z(A).AwayArm?(F(),B(ie,{key:21,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`securitySystem`&&mt(e.sensor)===Z(A).NightArm?(F(),B(k,{key:22,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!0))},null,8,[`style`])):e.shortcut.sensorType===`securitySystem`?(F(),B(ce,{key:23,width:`100%`,height:`100%`,style:X(it(e.shortcut.sensorType,!1))},null,8,[`style`])):e.shortcut.sensorType===`battery`?(F(),G(z,{key:24},[M(e.sensor)&&Ct(e.sensor)===100?(F(),B(ue,{key:0,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):M(e.sensor)&&Ct(e.sensor)===80?(F(),B(de,{key:1,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):M(e.sensor)&&Ct(e.sensor)===60?(F(),B(fe,{key:2,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):M(e.sensor)&&Ct(e.sensor)===40?(F(),B(me,{key:3,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):M(e.sensor)&&Ct(e.sensor)===20?(F(),B(he,{key:4,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):M(e.sensor)?(F(),B(ge,{key:5,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):Ct(e.sensor)===100?(F(),B(_e,{key:6,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):Ct(e.sensor)===80?(F(),B(ve,{key:7,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):Ct(e.sensor)===60?(F(),B(be,{key:8,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):Ct(e.sensor)===40?(F(),B(Se,{key:9,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):Ct(e.sensor)===20?(F(),B(Ce,{key:10,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`])):(F(),B(we,{key:11,width:`100%`,height:`100%`,style:X(Et(e.sensor))},null,8,[`style`]))],64)):V(``,!0)]),_:2},1024),e.shortcut.sensorType===`securitySystem`?(F(),B(o,{key:0,ref_for:!0,ref:t=>ht(t,e.shortcut._id),class:`shadow-lg cui-rounded-corner`,pt:{content:{class:`p-2`}},"append-to":`body`},{default:q(()=>[J(`div`,ng,[J(`button`,{type:`button`,class:I([`security-state-button`,{"security-state-button--active":pt(e.sensor,Z(A).Disarmed)}]),onClick:t=>ft(e,Z(A).Disarmed)},[Y(ce,{class:`w-4 h-4`}),t[9]||=J(`span`,{class:`text-sm`},`Disarmed`,-1)],10,rg),J(`button`,{type:`button`,class:I([`security-state-button`,{"security-state-button--active":pt(e.sensor,Z(A).StayArm)}]),onClick:t=>ft(e,Z(A).StayArm)},[Y(re,{class:`w-4 h-4`}),t[10]||=J(`span`,{class:`text-sm`},`Stay Arm`,-1)],10,ig),J(`button`,{type:`button`,class:I([`security-state-button`,{"security-state-button--active":pt(e.sensor,Z(A).AwayArm)}]),onClick:t=>ft(e,Z(A).AwayArm)},[Y(ie,{class:`w-4 h-4`}),t[11]||=J(`span`,{class:`text-sm`},`Away Arm`,-1)],10,ag),J(`button`,{type:`button`,class:I([`security-state-button`,{"security-state-button--active":pt(e.sensor,Z(A).NightArm)}]),onClick:t=>ft(e,Z(A).NightArm)},[Y(k,{class:`w-4 h-4`}),t[12]||=J(`span`,{class:`text-sm`},`Night Arm`,-1)],10,og)])]),_:2},1536)):V(``,!0),Y(o,{ref_for:!0,ref:t=>Jt(t,e.shortcut._id),class:`shadow-lg cui-rounded-corner`,pt:{content:{class:`p-2`}}},{default:q(()=>[J(`div`,sg,[J(`div`,cg,L(e.sensor?.displayName.value??e.shortcut.sensorName),1),J(`div`,{class:I([`sensor-tooltip-status`,{"text-color":gt(e.shortcut.sensorType),"text-purple-500":e.shortcut.sensorType===`securitySystem`&<(e.sensor)&&mt(e.sensor)!==Z(A).AlarmTriggered,"text-red-500":e.shortcut.sensorType===`securitySystem`&&mt(e.sensor)===Z(A).AlarmTriggered,"text-green-500":!gt(e.shortcut.sensorType)&&e.shortcut.sensorType!==`securitySystem`&<(e.sensor),"text-gray-400":!gt(e.shortcut.sensorType)&&e.shortcut.sensorType!==`securitySystem`&&!lt(e.sensor)}])},[e.shortcut.sensorType===`contact`?(F(),G(z,{key:0},[pn(L(lt(e.sensor)?`Open`:`Closed`),1)],64)):e.shortcut.sensorType===`lock`?(F(),G(z,{key:1},[pn(L(lt(e.sensor)?`Locked`:`Unlocked`),1)],64)):e.shortcut.sensorType===`temperature`?(F(),G(z,{key:2},[pn(L(e.sensor?.getProperty(`current`)??`--`)+`°C `,1)],64)):e.shortcut.sensorType===`humidity`?(F(),G(z,{key:3},[pn(L(e.sensor?.getProperty(`current`)??`--`)+`% `,1)],64)):e.shortcut.sensorType===`occupancy`?(F(),G(z,{key:4},[pn(L(lt(e.sensor)?`Occupied`:`Empty`),1)],64)):e.shortcut.sensorType===`smoke`?(F(),G(z,{key:5},[pn(L(lt(e.sensor)?`Smoke Detected`:`Clear`),1)],64)):e.shortcut.sensorType===`leak`?(F(),G(z,{key:6},[pn(L(lt(e.sensor)?`Leak Detected`:`Clear`),1)],64)):e.shortcut.sensorType===`garage`?(F(),G(z,{key:7},[pn(L(lt(e.sensor)?`Open`:`Closed`),1)],64)):e.shortcut.sensorType===`doorbell`?(F(),G(z,{key:8},[pn(L(lt(e.sensor)?`Ringing`:`Ready`),1)],64)):e.shortcut.sensorType===`securitySystem`?(F(),G(z,{key:9},[pn(L(yt(e.sensor)),1)],64)):e.shortcut.sensorType===`battery`?(F(),G(z,{key:10},[pn(L(xt(e.sensor)),1)],64)):(F(),G(z,{key:11},[pn(L(lt(e.sensor)?`On`:`Off`),1)],64))],2),e.isOnline?V(``,!0):(F(),G(`div`,lg,`Offline`))])]),_:2},1536)],46,tg)),[[wn,!Z(Pe).has(e.shortcut._id)],[Z(tr),[()=>Pt(e.shortcut),{distanceThreshold:24,delay:500,onMouseUp:()=>It(e)}]]])),128)),Z(xe)?(F(),G(`div`,{key:0,ref_key:`placeholderRef`,ref:oe,class:`draggable absolute pointer-events-auto`,style:X(`left: ${Z(xe).x}px; top: ${Z(xe).y}px;`)},[Y(r,{severity:`secondary`,rounded:``,class:`cui-icon-lg shadow-sm pointer-events-auto`},{icon:q(()=>[Y(Ee,{width:`100%`,height:`100%`})]),_:1})],4)):V(``,!0),Z(u)&&!Z(ye)&&!Z(Te)?(F(),B(o,{key:1,ref_key:`camerasMenuRef`,ref:le,class:`shadow-lg cui-rounded-corner`,"auto-z-index":!0,"append-to":`body`,onShow:t[7]||=e=>Ae.value=!0,onHide:t[8]||=e=>Zt(!1)},{default:q(()=>[Y(Je,{value:Z(je),"onUpdate:value":t[6]||=e=>_n(je)?je.value=e:null,class:`shortcut-menu-tabs`},{default:q(()=>[Y(Me,{pt:{content:{class:`border-b border-color`}}},{default:q(()=>[Y(De,{value:`cameras`,class:`flex items-center gap-2 px-3 py-2`},{default:q(()=>[Y(n,{class:`w-4 h-4`}),t[13]||=J(`span`,{class:`text-sm`},`Cameras`,-1)]),_:1}),Y(De,{value:`sensors`,class:`flex items-center gap-2 px-3 py-2`},{default:q(()=>[Y(Oe,{class:`w-4 h-4`}),t[14]||=J(`span`,{class:`text-sm`},`Sensors`,-1)]),_:1})]),_:1}),Y(Ke,null,{default:q(()=>[Y(Ie,{value:`cameras`},{default:q(()=>[J(`div`,ug,[(F(!0),G(z,null,Lt(Z(qe),e=>(F(),G(`div`,{key:e._id,class:I([`shortcut-menu-item`,{"shortcut-menu-item-disabled":et(e)}]),onClick:Cn(t=>!et(e)&&Wt(e),[`prevent`])},[Y(Ne,{camera:e,width:`100%`,loading:Z(We)},null,8,[`camera`,`loading`]),et(e)?(F(),G(`div`,fg,[Y(Fe,{class:`w-6 h-6 text-green-500`})])):V(``,!0)],10,dg))),128)),Z(qe).length===0?(F(),G(`div`,pg,`No other cameras available`)):V(``,!0)])]),_:1}),Y(Ie,{value:`sensors`},{default:q(()=>[J(`div`,mg,[Z(Ve).length>0?(F(!0),G(z,{key:0},Lt(Z(Ve),(e,t)=>(F(),G(z,{key:e.id},[Y(Ue,{disabled:$e(e),onClick:t=>!$e(e)&&N(e),"button-props":{pt:{root:{class:`p-0!`}}}},Sn({prepend:q(()=>[J(`div`,hg,[e.type===Z(j).Contact?(F(),B(c,{key:0,class:`w-5 h-5`})):e.type===Z(j).Temperature?(F(),B(y,{key:1,class:`w-5 h-5`})):e.type===Z(j).Humidity?(F(),B(b,{key:2,class:`w-5 h-5`})):e.type===Z(j).Occupancy?(F(),B(x,{key:3,class:`w-5 h-5`})):e.type===Z(j).Smoke?(F(),B(w,{key:4,class:`w-5 h-5`})):e.type===Z(j).Leak?(F(),B(E,{key:5,class:`w-5 h-5`})):e.type===Z(j).Light?(F(),B(ze,{key:6,class:`w-5 h-5`})):e.type===Z(j).Switch?(F(),B(m,{key:7,class:`w-5 h-5`})):e.type===Z(j).Siren?(F(),B(h,{key:8,class:`w-5 h-5`})):e.type===Z(j).Lock?(F(),B(_,{key:9,class:`w-5 h-5`})):e.type===Z(j).Garage?(F(),B(O,{key:10,class:`w-5 h-5`})):e.type===Z(j).Doorbell?(F(),B(te,{key:11,class:`w-5 h-5`})):e.type===Z(j).SecuritySystem?(F(),B(Be,{key:12,class:`w-5 h-5`})):e.type===Z(j).Battery?(F(),B(_e,{key:13,class:`w-5 h-5`})):V(``,!0)])]),subtitle:q(()=>[pn(L(nt(e.type)),1)]),default:q(()=>[pn(` `+L(e.displayName.value)+` `,1)]),_:2},[$e(e)?{name:`append`,fn:q(()=>[Y(Fe,{class:`w-4 h-4 text-green-500`})]),key:`0`}:void 0]),1032,[`disabled`,`onClick`]),t<Z(Ve).length-1?(F(),B(Ge,{key:0,class:`!my-1`})):V(``,!0)],64))),128)):(F(),G(`div`,gg,`No sensors available`))])]),_:1})]),_:1})]),_:1},8,[`value`])]),_:1},512)):V(``,!0)],6)}}}),[[`__scopeId`,`data-v-8f20007e`]]),vg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function yg(e,t){return F(),G(`svg`,vg,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`m184 112l144 144l-144 144`},null,-1)]])}var bg=W({name:`ion-chevron-forward-outline`,render:yg}),xg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function Sg(e,t){return F(),G(`svg`,xg,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`M328 112L184 256l144 144`},null,-1)]])}var Cg=W({name:`ion-chevron-back-outline`,render:Sg}),wg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function Tg(e,t){return F(),G(`svg`,wg,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`m112 184l144 144l144-144`},null,-1)]])}var Eg=W({name:`ion-chevron-down-outline`,render:Tg}),Dg={viewBox:`0 0 512 512`,width:`1.2em`,height:`1.2em`};function Og(e,t){return F(),G(`svg`,Dg,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`48`,d:`m112 328l144-144l144 144`},null,-1)]])}var kg=W({name:`ion-chevron-up-outline`,render:Og}),Ag={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function jg(e,t){return F(),G(`svg`,Ag,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M18 12.998H6a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2`},null,-1)]])}var Mg=W({name:`ic-round-minus`,render:jg}),Ng={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Pg(e,t){return F(),G(`svg`,Ng,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M18 12.998h-5v5a1 1 0 0 1-2 0v-5H6a1 1 0 0 1 0-2h5v-5a1 1 0 0 1 2 0v5h5a1 1 0 0 1 0 2`},null,-1)]])}var Fg=W({name:`ic-round-plus`,render:Pg}),Ig={size:`small`},Lg={class:`relative w-full h-full`},Rg={class:`absolute top-1`,style:{color:`#646464`}},zg={class:`absolute bottom-1`,style:{color:`#646464`}},Bg={class:`absolute left-1`,style:{color:`#646464`}},Vg={class:`absolute right-1`,style:{color:`#646464`}},Hg=100,Ug=.05,Wg=.05,Gg=.03,Kg=hn({__name:`CuiPTZControl`,props:Bt({cameraDevice:{},size:{}},Ig),emits:[`panTiltChange`,`zoomChange`],setup(e,{expose:t,emit:n}){let i=e,a=n,{cameraDevice:o,size:s}=An(i),c=Nn(),{sensor:l}=qe(o),u=un(`panTiltRef`),d=un(`zoomRef`),f=vn({x:0,y:0}),p=vn({x:0,y:0}),m=vn({x:0,y:0}),h=K(!1),g=K(!1),_=K(0),v=K(0),y=K(0),b=K(!1),x=K(0),S=K(0),C=K(0),w=K(0),T=K(0),E=K(0),ee=K(0),D=K(`none`),O=K(0),te=K(0),ne=K(0),re=K(null),ie=K(Date.now()),k=U(()=>h.value||g.value),ae=U(()=>s.value===`small`?45:60),oe=U(()=>s.value===`small`?10:15),se=U(()=>b.value),ce=U(()=>l.value?.hasCapability(r.Pan)??!1),A=U(()=>l.value?.hasCapability(r.Tilt)??!1),le=U(()=>l.value?.hasCapability(r.Zoom)??!1),ue=U(()=>l.value?.hasCapability(r.Presets)??!1),de=U(()=>l.value?.hasCapability(r.Home)??!1),fe=U(()=>ce.value||A.value);function pe(e){return Math.round(e*100)/100}function me(e){return pe(Math.max(0,Math.min(1,e)))}async function j(e){let t=Date.now();if(b.value&&t-x.value<Hg)return;let n={panSpeed:pe(e.panSpeed),tiltSpeed:pe(e.tiltSpeed),zoomSpeed:pe(e.zoomSpeed)};b.value=!0,x.value=t;try{await l.value?.setProperty(ze.Velocity,n)}catch(e){c.error(`PTZ continuous move failed:`,e)}finally{b.value=!1}}async function he(){let e=Date.now();b.value=!0,x.value=e;try{await l.value?.setProperty(ze.Velocity,{panSpeed:0,tiltSpeed:0,zoomSpeed:0})}catch(e){c.error(`PTZ stop failed:`,e)}finally{b.value=!1}}function ge(){let e=Date.now(),t=(e-ie.value)/1e3;ie.value=e;let n=!1;if(h.value&&(Math.abs(T.value)>=Ug||Math.abs(E.value)>=Ug)){let e=T.value*Wg*t*5,r=E.value*Wg*t*5;O.value=Math.max(-1,Math.min(1,O.value+e)),te.value=Math.max(-1,Math.min(1,te.value+r));let i=pe(O.value),o=pe(te.value);(p.x!==i||p.y!==o)&&(p.x=i,p.y=o,a(`panTiltChange`,{x:p.x,y:p.y}),n=!0)}if(g.value&&Math.abs(ee.value)>=Ug){let e=ee.value*Gg*t*10;ne.value=Math.max(0,Math.min(1,ne.value+e));let r=pe(ne.value);v.value!==r&&(v.value=r,a(`zoomChange`,r),n=!0)}if(n&&k.value&&Date.now()-x.value>=Hg*2){if(h.value&&(Math.abs(T.value)>=Ug||Math.abs(E.value)>=Ug)){let e=pe(T.value),t=pe(E.value);D.value===`pan`?j({panSpeed:e,tiltSpeed:0,zoomSpeed:0}):D.value===`tilt`?j({panSpeed:0,tiltSpeed:t,zoomSpeed:0}):j({panSpeed:e,tiltSpeed:t,zoomSpeed:0})}else if(g.value&&Math.abs(ee.value)>=Ug){let e=me(Math.abs(ee.value));j({panSpeed:0,tiltSpeed:0,zoomSpeed:ee.value>0?e:-e})}}k.value&&(re.value=requestAnimationFrame(ge))}function _e(){re.value!==null&&cancelAnimationFrame(re.value),ie.value=Date.now(),re.value=requestAnimationFrame(ge)}function ve(){re.value!==null&&(cancelAnimationFrame(re.value),re.value=null)}async function ye(){await new Promise(e=>setTimeout(e,50)),!k.value&&(Math.abs(S.value)>=Ug||Math.abs(C.value)>=Ug||Math.abs(w.value)>=Ug)&&(T.value=0,E.value=0,ee.value=0,D.value=`none`,S.value=0,C.value=0,w.value=0,await he(),ve())}async function be(e){if(!d.value||!g.value)return;let t=d.value.getBoundingClientRect(),n=t.top+t.height/2,r=ae.value,i=e-n;i=Math.max(-r,Math.min(r,i)),_.value=i;let a=-i/r;ee.value=a;let o=pe(a);if(Math.abs(o)>=Ug&&Math.abs(o-w.value)>=Ug){w.value=o;let e=o>0,t=me(Math.abs(o));await j({panSpeed:0,tiltSpeed:0,zoomSpeed:e?t:-t})}else g.value&&Math.abs(o)<Ug&&Math.abs(w.value)>=Ug&&(ee.value=0,w.value=0,await he())}function xe(e){g.value=!0,ie.value=Date.now(),ne.value=v.value,_e(),e instanceof MouseEvent?be(e.clientY):be(e.touches[0].clientY)}async function Se(e,t){if(!u.value||!h.value)return;let n=u.value.getBoundingClientRect(),r=n.width/2,i=n.height/2,a=e-n.left-r,o=t-n.top-i,s=Math.min(r,i)-oe.value,c=Math.sqrt(a*a+o*o);c>s&&(a=a/c*s,o=o/c*s),f.x=a,f.y=o;let l=a/s,d=-o/s,p=Math.abs(l),g=Math.abs(d);p>=Ug||g>=Ug?p>g?(D.value=`pan`,T.value=l,E.value=0):(D.value=`tilt`,T.value=0,E.value=d):(D.value=`none`,T.value=0,E.value=0),(p>Ug||g>Ug)&&(m.x=T.value,m.y=E.value);let _=Math.abs(T.value-S.value),v=Math.abs(E.value-C.value),y=_>=Ug||v>=Ug,b=Math.abs(T.value)>=Ug||Math.abs(E.value)>=Ug;if(b&&y){S.value=T.value,C.value=E.value;let e=pe(T.value),t=pe(E.value);D.value===`pan`?await j({panSpeed:e,tiltSpeed:0,zoomSpeed:0}):D.value===`tilt`&&await j({panSpeed:0,tiltSpeed:t,zoomSpeed:0})}else h.value&&!b&&(Math.abs(S.value)>=Ug||Math.abs(C.value)>=Ug)&&(T.value=0,E.value=0,D.value=`none`,S.value=0,C.value=0,await he())}function Ce(e){h.value=!0,ie.value=Date.now(),_e(),e instanceof MouseEvent?Se(e.clientX,e.clientY):Se(e.touches[0].clientX,e.touches[0].clientY)}function we(e){h.value&&Se(e.clientX,e.clientY),g.value&&be(e.clientY)}function Te(e){e.preventDefault(),h.value&&Se(e.touches[0].clientX,e.touches[0].clientY),g.value&&be(e.touches[0].clientY)}function Ee(){h.value&&(h.value=!1,f.x=0,f.y=0),g.value&&(y.value=v.value,g.value=!1,_.value=0),ye()}async function De(e){try{await l.value?.setProperty(ze.TargetPreset,e)}catch(e){c.error(`PTZ go to preset failed:`,e)}}async function Oe(){try{await l.value?.setProperty(ze.Position,{pan:0,tilt:0,zoom:0})}catch(e){c.error(`PTZ go home failed:`,e)}}return Gt(()=>{window.addEventListener(`mousemove`,we),window.addEventListener(`mouseup`,Ee),window.addEventListener(`touchmove`,Te,{passive:!1}),window.addEventListener(`touchend`,Ee)}),Yt(()=>{window.removeEventListener(`mousemove`,we),window.removeEventListener(`mouseup`,Ee),window.removeEventListener(`touchmove`,Te),window.removeEventListener(`touchend`,Ee),ve(),he()}),t({goToPreset:De,goToHome:Oe,isLoading:se,hasPan:ce,hasTilt:A,hasZoom:le,hasPresets:ue,hasHome:de,hasPanTilt:fe}),(e,t)=>{let n=Fg,r=Mg,i=kg,a=Eg,o=Cg,c=bg;return F(),G(`div`,Lg,[Z(le)?(F(),G(`div`,{key:0,ref_key:`zoomRef`,ref:d,class:I([`pointer-events-auto`,[`absolute left-4 bottom-4 bg-black/70 rounded-full flex flex-col items-center justify-center border border-white/10 shadow-md`,Z(s)===`small`?`w-12 h-36`:`w-16 h-48`]]),onMousedown:xe,onTouchstart:Cn(xe,[`prevent`])},[J(`div`,{class:I([`absolute top-4 text-muted`,Z(s)===`small`?`text-base`:`text-lg`])},[Y(n)],2),J(`div`,{class:I([`absolute bottom-4 text-muted`,Z(s)===`small`?`text-base`:`text-lg`])},[Y(r)],2),J(`div`,{class:I([`bg-white rounded-full absolute cursor-grab active:cursor-grabbing shadow-lg`,Z(s)===`small`?`w-8 h-8`:`w-10 h-10`]),style:X({transform:`translateY(${Z(_)}px)`})},null,6)],34)):V(``,!0),Z(fe)?(F(),G(`div`,{key:1,ref_key:`panTiltRef`,ref:u,class:I([`pointer-events-auto`,[`absolute right-4 bottom-4 bg-black/70 rounded-full flex items-center justify-center border border-white/10 shadow-md`,Z(s)===`small`?`w-24 h-24`:`w-32 h-32`]]),onMousedown:Ce,onTouchstart:Cn(Ce,[`prevent`])},[J(`div`,Rg,[Y(i)]),J(`div`,zg,[Y(a)]),J(`div`,Bg,[Y(o)]),J(`div`,Vg,[Y(c)]),J(`div`,{class:I([`bg-white rounded-full absolute cursor-grab active:cursor-grabbing shadow-lg transform -translate-x-1/2 -translate-y-1/2`,Z(s)===`small`?`w-8 h-8`:`w-10 h-10`]),style:X({left:`calc(50% + ${Z(f).x}px)`,top:`calc(50% + ${Z(f).y}px)`})},null,6)],34)):V(``,!0)])}}}),qg={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Jg(e,t){return F(),G(`svg`,qg,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`m14 7l-5 5l5 5`},null,-1)]])}var Yg=W({name:`iconamoon-arrow-left2-light`,render:Jg}),Xg=Nn(),Zg=K(!1),Qg=null,$g=!1,e_=new Map,t_=null;function n_(){return Qg??=(async()=>({plugin:null}))(),Qg}async function r_(e){$g||($g=!0,await e.addListener(`pipChanged`,e=>{o_(e.active),e.active&&t_&&e_.get(t_)?.activate(!0)}),await e.addListener(`pipWillEnter`,()=>{o_(!0),t_&&e_.get(t_)?.activate(!0)}),await e.addListener(`pipEnterFailed`,()=>{o_(!1)}))}function i_(e){e_.delete(e)&&a_()}async function a_(){try{let{plugin:e}=await n_();if(!e)return;await r_(e);let t=e_.size===1?[...e_.entries()][0]:null;t_=t?.[0]??null,await e.setAutoEnter(t?{enabled:!0,width:t[1].width,height:t[1].height}:{enabled:!1,width:16,height:9})}catch(e){Xg.warn(`Pip.setAutoEnter failed`,e)}}function o_(e){Zg.value=e,document.documentElement.classList.toggle(`cui-native-pip`,e)}var s_={class:`relative`},c_=hn({__name:`CuiActionButton`,props:{label:{},icon:{},iconClass:{},buttonProps:{},tooltipProps:{},actionText:{},actionDuration:{default:1500}},emits:[`action`],setup(e,{emit:t}){let n=e,r=t,{label:i,icon:a,iconClass:o,buttonProps:s,actionText:c,actionDuration:l,tooltipProps:u}=An(n),d=un(`buttonRef`),f=K(!1),p=ye(d),{start:m}=Ae(()=>{f.value=!1},l,{immediate:!1}),h=U(()=>({top:`${p.top.value}px`,left:`${p.left.value}px`,transform:`translate(-50%, -100%)`,marginTop:`-8px`}));function g(e){f.value=!1,r(`action`,e),f.value=!0,m()}return(e,t)=>{let n=ae;return F(),G(`div`,{ref_key:`buttonRef`,ref:d,class:`relative`},[Y(n,H(Z(s),{label:Z(i),onClick:g}),Sn({_:2},[Z(a)?{name:`icon`,fn:q(()=>[J(`div`,s_,[(F(),B(cn(Z(a)),{class:I(Z(o))},null,8,[`class`]))])]),key:`0`}:void 0]),1040,[`label`]),(F(),B(Dn,{to:`body`},[Y(nn,{name:`fade`},{default:q(()=>[Z(f)?(F(),B(n,H({key:0,as:`div`},Z(u),{class:`fixed text-xs px-2 py-1 rounded whitespace-nowrap z-[99999] cursor-default pointer-events-none`,style:Z(h),label:Z(c)}),null,16,[`style`,`label`])):V(``,!0)]),_:1})]))],512)}}}),l_={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function u_(e,t){return F(),G(`svg`,l_,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M5 9a3 3 0 0 0 3 3h2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h1zm7-7a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z`},null,-1)]])}var d_=W({name:`fluent-copy-16-filled`,render:u_});async function f_({shareData:e}){return(await $.post(`/shares`,e)).data}async function p_({camera:e,signal:t}){return(await $.get(`/shares`,{params:{camera:e},signal:t})).data}async function m_({token:e}){return(await $.delete(`/shares/${e}`)).data}var h_=class{_queryClient=tn();t=ea.global.t;toast=ra();get queryClient(){return this._queryClient}getSharesQuery(e){return ia({queryKey:[`shares`,e],queryFn:({signal:t})=>p_({camera:Z(e),signal:t})})}createShareQuery(){return N({mutationFn:f_,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`shares`]}),this.toast.add({severity:`success`,detail:this.t(`shares.share_created`),life:3e3})}})}revokeShareQuery(){return N({mutationFn:m_,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`shares`]}),this.toast.add({severity:`success`,detail:this.t(`shares.share_revoked`),life:3e3})}})}},g_={class:`flex flex-col gap-6`},__={key:0,class:`flex flex-col gap-4`},v_={class:`flex flex-col field-gap`},y_={class:`cui-label`},b_={class:`flex flex-col field-gap`},x_={class:`cui-label`},S_={class:`flex flex-col field-gap`},C_={class:`cui-label`},w_={class:`flex flex-col field-gap`},T_={class:`cui-label`},E_={key:1,class:`flex flex-col gap-4`},D_={class:`flex flex-col field-gap`},O_={class:`cui-label`},k_={class:`flex flex-col field-gap`},A_={class:`cui-label`},j_=hn({__name:`ShareForm`,props:{cameraId:{},cameraName:{},sources:{}},setup(e,{expose:t}){let n=new h_,r=e,{t:i}=$e(),a=on(`dialogRefProps`),{mutateAsync:o,isPending:s}=n.createShareQuery(),c=[{label:`1 `+i(`shares.hour`),value:1},{label:`24 `+i(`shares.hours`),value:24},{label:`7 `+i(`shares.days`),value:168},{label:`30 `+i(`shares.days`),value:720}],l=[{label:i(`shares.unlimited`),value:0},{label:`1`,value:1},{label:`5`,value:5},{label:`10`,value:10}],u=r.sources.map(e=>({label:e.name,value:e._id})),d=K(24),f=K(0),p=K(``),m=K(r.sources.find(e=>e.role===`high-resolution`)?._id??r.sources[0]?._id??``),h=K(null),g=U(()=>!!navigator.share),_=U(()=>!!(a.loading?.value||s.value));async function v(){if(h.value)try{await navigator.share({title:i(`shares.share_title`),text:`${h.value.link}\n\n${i(`shares.code`)}: ${h.value.code}`})}catch{}}async function y(){if(h.value)return;let e;try{e=await o({shareData:{cameraId:r.cameraId,sourceId:m.value,ttlHours:d.value,maxViewers:f.value,label:p.value||void 0}})}catch{return null}return h.value=e,a.confirmText.value=i(`shares.done`),null}return t({isLoading:_,onConfirm:y}),(e,t)=>{let n=gr,r=re,i=c_,a=ur,o=dr,s=br,_=ae;return F(),G(`div`,g_,[Z(h)?(F(),G(`div`,E_,[J(`div`,D_,[J(`label`,O_,L(e.$t(`shares.link`)),1),Y(o,null,{default:q(()=>[Y(r,{"model-value":Z(h).link,readonly:``,class:`w-full font-mono text-sm`},null,8,[`model-value`]),Y(a,null,{default:q(()=>[Y(i,{"action-text":e.$t(`components.form.tooltip.copied`),icon:Z(d_),"button-props":{severity:`secondary`,text:!0},onAction:t[4]||=e=>Z(zw)(Z(h).link)},null,8,[`action-text`,`icon`])]),_:1})]),_:1})]),J(`div`,k_,[J(`label`,A_,L(e.$t(`shares.code`)),1),Y(o,null,{default:q(()=>[Y(r,{"model-value":Z(h).code,readonly:``,class:`w-full font-mono text-lg tracking-widest text-center`},null,8,[`model-value`]),Y(a,null,{default:q(()=>[Y(i,{"action-text":e.$t(`components.form.tooltip.copied`),icon:Z(d_),"button-props":{severity:`secondary`,text:!0},onAction:t[5]||=e=>Z(zw)(Z(h).code)},null,8,[`action-text`,`icon`])]),_:1})]),_:1}),Y(s,{severity:`secondary`,variant:`simple`,size:`small`,class:`cui-input-hint`},{default:q(()=>[pn(L(e.$t(`shares.code_save_hint`)),1)]),_:1})]),Z(g)?(F(),B(_,{key:0,label:e.$t(`shares.share`),class:`w-full cui-button-medium`,onClick:v},null,8,[`label`])):V(``,!0)])):(F(),G(`div`,__,[J(`div`,v_,[J(`label`,y_,L(e.$t(`shares.source`)),1),Y(n,{modelValue:Z(m),"onUpdate:modelValue":t[0]||=e=>_n(m)?m.value=e:null,options:Z(u),"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`,`options`])]),J(`div`,b_,[J(`label`,x_,L(e.$t(`shares.ttl`)),1),Y(n,{modelValue:Z(d),"onUpdate:modelValue":t[1]||=e=>_n(d)?d.value=e:null,options:c,"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`])]),J(`div`,S_,[J(`label`,C_,L(e.$t(`shares.max_viewers`)),1),Y(n,{modelValue:Z(f),"onUpdate:modelValue":t[2]||=e=>_n(f)?f.value=e:null,options:l,"option-label":`label`,"option-value":`value`,class:`w-full`},null,8,[`modelValue`])]),J(`div`,w_,[J(`label`,T_,L(e.$t(`shares.label`)),1),Y(r,{modelValue:Z(p),"onUpdate:modelValue":t[3]||=e=>_n(p)?p.value=e:null,placeholder:e.$t(`shares.label_placeholder`),class:`w-full`},null,8,[`modelValue`,`placeholder`])])]))])}}}),M_=Symbol(`GridSearchState`),N_={backButton:!1,doubleClickZoom:!0,expandableCard:!1,flatCard:!1,resizable:!1,pipToggleButton:!1,cardClickAction:`redirect`,viewTransition:!1,cameraNameOverlay:!0,liveIndicatorOverlay:!1,detectionIndicatorOverlay:!1,boundingBoxOverlay:!0,showShortcuts:!1,toolbar:!0,toolbarDetectionButton:!0,toolbarPipToggleButton:!1,toolbarPipToggleActive:!1,toolbarSettingsButton:!0,toolbarShareButton:!0,toolbarShortcutsButton:!0,toolbarSnapshotButton:!0,toolbarTimelineButton:!0,toolbarZoneButton:!0,toolbarDescriptionButton:!1,control:!0,controlFastForwardButton:!0,controlFsButton:!0,controlMicrophoneButton:!0,controlPlayPauseButton:!0,controlPipButton:!0,controlRewindButton:!0,controlSpeakerButton:!0,subcontrol:!0,subcontrolActivityModeButton:!0,subcontrolPtzButton:!0,subcontrolQualityButton:!0,subcontrolStreamingModeButton:!0},P_=b(Symbol(`cui-camera-drawer`)),F_={position:`right`,showCloseIcon:!1,modal:!0,dismissable:!0,baseZIndex:1e3,blockScroll:!0,pt:{root:{class:`w-full sm:w-[400px]`}}};function I_(){let e=K(!1),t=U(()=>e.value);return P_.on(t=>{switch(t.type){case`close`:e.value=!1;break;case`open`:e.value=!0;break}}),{open:(t,n)=>{P_.emit({type:`open`,options:t,props:{...F_,...n}}),e.value=!0},close:()=>{P_.emit({type:`close`}),e.value=!1},isOpen:t,getEventBus:()=>P_}}var L_={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function R_(e,t){return F(),G(`svg`,L_,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M4.75 3.5c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h6.5c.69 0 1.25-.56 1.25-1.25v-1.5a.75.75 0 0 1 1.5 0v1.5A2.75 2.75 0 0 1 11.25 14h-6.5A2.75 2.75 0 0 1 2 11.25v-6.5A2.75 2.75 0 0 1 4.75 2h1.5a.75.75 0 0 1 0 1.5zM8 2.75A.75.75 0 0 1 8.75 2h4.5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0V4.561l-3.22 3.22A.75.75 0 1 1 8.22 6.72l3.22-3.22H8.75A.75.75 0 0 1 8 2.75`},null,-1)]])}var z_=W({name:`fluent-open16-filled`,render:R_}),B_={viewBox:`0 0 16 16`,width:`1.2em`,height:`1.2em`};function V_(e,t){return F(),G(`svg`,B_,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.75.75 0 0 1 1.042.018a.75.75 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06`},null,-1)]])}var H_=W({name:`octicon-chevron-left16`,render:V_}),U_=hn({render(){return Rt(`div`,{class:`flex items-center justify-center w-full h-full min-h-[100px]`},[Rt(wt,{class:`w-[24px] h-[24px] m-0`,strokeWidth:`5`})])}});function W_(e,t){return kn({loader:e,loadingComponent:U_,delay:t?.delay??150})}var G_=Symbol(`DialogStepper`);function K_(e){let t=K(e),n=K(void 0),r={},i=(e,t)=>{r[e]||(r[e]=[]),r[e].push(t)},a=(e,t)=>{let n=r[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}},o=(e,t)=>{let n=r[e];n&&n.forEach(e=>{e(t)})},s={currentTab:n,tabs:t,isMainTab:U(()=>!n.value),goToTab:e=>{let r=t.value.find(t=>t.id===e);r&&(n.value=e,o(`tabChange`,r))},goToMainTab:()=>{n.value=void 0,o(`tabChange`,void 0)},registerTab:e=>{t.value.some(t=>t.id===e.id)||t.value.push(e)},updateTabConfig:(e,n)=>{let r=t.value.findIndex(t=>t.id===e);r!==-1&&(t.value[r]={...t.value[r],...n},n.title&&o(`updateTabTitle`,{tabId:e,title:n.title}))},on:i,off:a,emit:o};return Mn(G_,s),s}var q_={class:`p-dialog-content non-draggable-region`},J_={key:0,class:`p-dialog-header-actions`},Y_={class:`p-dialog-title truncate min-w-0 flex-1`},X_={class:`p-dialog-header-actions ml-auto gap-2`},Z_={key:0,class:`text-wrap`},Q_={key:0,class:`flex items-center justify-center shrink-0 w-full p-5 pb-safe-offset-5 mt-5 self-end`,style:{background:`var(--border-color)`}},$_=hn({__name:`CuiDialog`,setup(e){let t=W_(()=>R(()=>import(`./CuiMarkdownContent-Xn_VHwym.js`),__vite__mapDeps([3,4,1,2,5,6]),import.meta.url)),n=rr(),r=ra(),{t:i}=$e(),{mdBreakpoint:a}=al(),{width:o,height:s}=rl(),{isElectronApp:l}=In(),u=on(`dialogRef`),d=un(`dialogHeader`),f=An(u.value.data),{contentText:p,contentProps:m,loading:h,disabled:g,cancelButtonProps:_,confirmButtonProps:v,hideCancelButton:y,hideConfirmButton:b,dialogContentClass:x,dialogContentStyle:S,cancelText:C,confirmText:w,stayActive:T,src:E,title:ee,fullscreen:D,tabs:O,goTo:te,draggable:ne,blockDragOnSelectors:re,rootId:ie,markdown:k,headerActions:oe}=f;Mn(`dialogRefProps`,f);let ce=vn({});Mn(`dialogHeaderToggles`,ce);let A=u.value.options.templates,le=ge(document.getElementById(`app`)),ue=K(!1),de=K(null),fe=K(!1),pe=K(ee.value),me=K(!1),j,{style:he,x:_e,y:ve}=c(d,{disabled:!ne?.value,containerElement(){return document.getElementById(`app`)},onStart(e,t){let n=t.target;if(n){if(n.closest(`button`))return!1;for(let e of re?.value??[])if(n.closest(e))return!1}},onMove(){me.value=!0}}),ye=U(()=>{let e=document.getElementById(ie?.value||``);if(!e)return 1/0;let t=e.offsetWidth;return le.width.value-t}),be=U(()=>{let e=document.getElementById(ie?.value||``);if(!e)return 1/0;let t=e.offsetHeight;return le.height.value-t}),xe=U(()=>!!(ue.value||h?.value||gn(de.value?.isLoading))),Se=U(()=>O.value!==void 0&&O.value.length>0),Ce=U(()=>C?.value?C.value:i(`components.form.button.close`)),we=U(()=>w?.value?w.value:i(`components.form.button.save`)),Te=U(()=>({..._?.value,label:Ce.value,loading:void 0,size:`small`,severity:_?.value&&`severity`in _.value?_.value.severity:`secondary`,class:void 0})),Ee=U(()=>({...v?.value,label:we.value,loading:void 0,size:`small`,severity:v?.value&&`severity`in v.value?v.value.severity:`success`,class:`ml-auto`,disabled:g.value}));function De(e){let t=de.value?.resolveGoTo?.();u.value.close(),n.push(t??e)}async function Oe(){try{ue.value=!0;let e=await de.value?.onCancel?.();u.value.close({status:`cancel`,data:e})}catch(e){r.add({severity:`error`,detail:e,life:3e3})}finally{ue.value=!1}}async function ke(){try{ue.value=!0;let e=await de.value?.onConfirm?.();if(e===null)return;T?.value?u.value.options.onConfirm?.(e):u.value.close({status:`confirm`,data:e})}catch(e){r.add({severity:`error`,detail:e,life:3e3})}finally{ue.value=!1}}function Ae(){let e=document.getElementById(ie?.value||``)?.closest(`.p-dialog-mask`);if(!e)return;let t=Array.from(document.querySelectorAll(`.p-dialog-mask`)),n=0;for(let e of t){let t=parseInt(e.style.zIndex,10)||0;t>n&&(n=t)}(parseInt(e.style.zIndex,10)||0)<n&&(e.style.zIndex=String(n+1))}return Se.value&&(j=K_(O.value??[]),P(j.isMainTab,e=>{fe.value=!e},{immediate:!0}),j.on(`updateTabTitle`,({tabId:e,title:t})=>{j?.currentTab.value===e&&ee?.value&&(pe.value=t)}),j.on(`tabChange`,e=>{pe.value=e?.title??ee.value})),P([he,o,s],()=>{if(!me.value)return;let e=document.getElementById(ie?.value||``);if(e){let t=Math.max(0,Math.min(_e.value,ye.value)),n=Math.max(0,Math.min(ve.value,be.value));e.style.left=`${t}px`,e.style.top=`${n}px`}}),Gt(()=>{let e=document.getElementById(ie?.value||``)?.closest(`.p-dialog-mask`);e&&(e.addEventListener(`pointerdown`,Ae),Ae())}),Yt(()=>{let e=document.getElementById(ie?.value||``)?.closest(`.p-dialog-mask`);e&&e.removeEventListener(`pointerdown`,Ae)}),(e,n)=>{let r=H_,i=ae,o=z_,s=Er,c=hl,f=se;return F(),G(`div`,q_,[J(`div`,{ref_key:`dialogHeader`,ref:d,class:I([`p-dialog-header justify-start gap-1`,{"cursor-move":Z(ne),"pt-6!":Z(l)&&(Z(D)||Z(a))}])},[Y(nn,{name:`slide-left`},{default:q(()=>[Z(fe)?(F(),G(`div`,J_,[Y(i,{severity:`secondary`,text:``,rounded:``,class:`p-dialog-back-button`,onClick:Z(j)?.goToMainTab},{icon:q(()=>[Y(r,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])])):V(``,!0)]),_:1}),J(`span`,Y_,L(Z(pe)),1),J(`div`,X_,[(F(!0),G(z,null,Lt(Z(oe)??[],(e,t)=>Tn((F(),B(i,{key:t,severity:`secondary`,text:``,rounded:``,loading:e.loading,class:I([`p-dialog-close-button`,{"!text-primary":e.toggle&&Z(ce)[t]}]),onClick:()=>{e.toggle&&(Z(ce)[t]=!Z(ce)[t]),e.onClick()}},{icon:q(()=>[(F(),B(cn(e.icon),{width:`100%`,height:`100%`}))]),_:2},1032,[`loading`,`class`,`onClick`])),[[f,e.tooltip?{value:e.tooltip}:void 0,void 0,{bottom:!0}]])),128)),Z(te)?Tn((F(),B(i,{key:0,severity:`secondary`,text:``,rounded:``,class:`p-dialog-close-button`,onClick:n[0]||=e=>De(Z(te))},{icon:q(()=>[Y(o,{width:`100%`,height:`100%`})]),_:1})),[[f,{value:e.$t(`components.dialog.open`)},void 0,{bottom:!0}]]):V(``,!0),Y(i,{severity:`secondary`,text:``,rounded:``,class:`p-dialog-close-button`,onClick:Z(u).close},{icon:q(()=>[Y(s,{width:`100%`,height:`100%`})]),_:1},8,[`onClick`])])],2),J(`div`,{class:I([`p-dialog-body flex justify-center w-full overflow-y-auto px-5 py-1 text-balance`,{"h-full":Z(D)},Z(x)]),style:X(Z(S))},[Z(p)&&!Z(k)?(F(),G(`span`,Z_,L(Z(p)),1)):Z(p)&&Z(k)?(F(),B(Z(t),{key:1,content:Z(p)},null,8,[`content`])):Z(E)?(F(),B(c,{key:2,src:Z(E),"image-container-class":`w-full h-full`},null,8,[`src`])):(F(),B(cn(Z(A)?.content),H({key:3,ref_key:`componentRef`,ref:de,class:`w-full h-full relative`},Z(m),Ht(Z(u).options.events||{})),null,16))],6),n[2]||=J(`div`,{class:`mt-auto`},null,-1),!Z(y)||!Z(b)?(F(),G(`div`,Q_,[Z(y)?V(``,!0):(F(),B(i,H({key:0},Z(Te),{class:`cui-button-medium`,onClick:Oe}),null,16)),n[1]||=J(`div`,{class:`ml-auto`},null,-1),Z(b)?V(``,!0):(F(),B(i,H({key:1},Z(Ee),{loading:Z(xe),disabled:Z(g),class:`cui-button-medium`,onClick:ke}),null,16,[`loading`,`disabled`]))])):V(``,!0)])}}}),ev={modal:!0,closable:!0,blockScroll:!0,draggable:!1,dismissableMask:!0,baseZIndex:1100,showHeader:!1},tv={pt:{root:{class:`p-dialog-maximized pt-safe border-none`}}},nv={pt:{root:{class:`shadow-xl shadow-black/30 overflow-hidden`}}},rv={mobile:{textDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...tv},imageDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...tv},componentDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...tv},stepperDialog:{style:{maxWidth:`none`,maxHeight:`100vh`},...tv}},desktop:{textDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`auto`},...nv},imageDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...nv},componentDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...nv},stepperDialog:{style:{maxWidth:`1000px`,maxHeight:`90vh`,width:`70vw`},...nv}}};function iv(){return{open:(e,t)=>{let n={content:e&&W(e),options:t||{},data:t&&t.data,close:e=>{ir.emit(`close`,{instance:n,params:e})}};return ir.emit(`open`,{instance:n}),n}}}function av(){let e=iv(),{mdBreakpoint:t}=al(),n=(e,t,n)=>{let r=vn({...e});n&&(t.pt.root.class=(t.pt.root.class?t.pt.root.class+` `:``)+`fixed mt-0`),xe(r.options.props,t)},r=(e,r,i,a)=>{let o={mobile:a?.mobile?{style:{...a.mobile},...tv}:void 0,desktop:a?.desktop?{style:{...a.desktop},...nv}:void 0};return P(t,t=>{if(t)switch(r){case`text`:n(e,o.mobile??rv.mobile.textDialog,i);break;case`image`:n(e,o.mobile??rv.mobile.imageDialog,i);break;case`component`:n(e,o.mobile??rv.mobile.componentDialog,i);break;case`stepper`:n(e,o.mobile??rv.mobile.stepperDialog,i);break;default:break}else switch(r){case`text`:n(e,o.desktop??rv.desktop.textDialog,i);break;case`image`:n(e,o.desktop??rv.desktop.imageDialog,i);break;case`component`:n(e,o.desktop??rv.desktop.componentDialog,i);break;case`stepper`:n(e,o.desktop??rv.desktop.stepperDialog,i);break;default:break}},{immediate:!0}),e};function i(){let e=document.activeElement;!(e instanceof HTMLElement)||e===document.body||e.closest(`button, a[href], input, select, textarea, [contenteditable="true"]`)||e.blur()}function a(t,n,a){let{component:o,data:s,onConfirm:c,onCancel:l,onSettled:u,events:d,...f}=n;i();let p={content:o?W(o):void 0};a?.pt||(a={...a,pt:{root:{}}});let m=Z(s.draggable)??!1;m&&(a.draggable=!0);let h=Z(s.dismissableMask);h!==void 0&&(a.dismissableMask=h);let g=Z(s.modal);g!==void 0&&(a.modal=g);let _=s.rootId??Pw(10);a.pt.root.id=_;let v=e.open($_,{data:An(vn({confirmText:s.confirmText??void 0,cancelText:s.cancelText??void 0,hideConfirmButton:s.hideConfirmButton??!1,hideCancelButton:s.hideCancelButton??!1,loading:s.loading??!1,disabled:s.disabled??!1,confirmButtonProps:s.confirmButtonProps??void 0,cancelButtonProps:s.cancelButtonProps??void 0,dialogContentClass:s.dialogContentClass??void 0,dialogContentStyle:s.dialogContentStyle??void 0,stayActive:s.stayActive??!1,fullscreen:s.fullscreen??!1,contentText:s.contentText??void 0,src:s.src??void 0,markdown:s.markdown??!1,contentProps:s.contentProps??void 0,tabs:s.tabs??void 0,rootId:_,...s})),props:a,templates:p,events:d,onConfirm:c,onCancel:l,onClose:e=>{if(e?.data?.status===`confirm`){let{status:t,...n}=e.data;c?.(n?.data??n)}else l?.();u?.(e?.data?.data??e?.data)}});return s.fullscreen?v:r(v,t,m,f?.dialogSize)}function o(e){let{data:t,...n}=e,r=structuredClone(ev);return r.style={...ev.style,width:`auto`,minWidth:`400px`},t.fullscreen&&(r.style={...r.style,maxWidth:`none`,maxHeight:`100vh`},r.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`text`,{data:t,...n},r)}function s(e){let{data:t,...n}=e,r=structuredClone(ev);return t.fullscreen&&(r.style={...r.style,maxWidth:`none`,maxHeight:`100vh`},r.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`image`,{data:t,...n},r)}function c(e,t){let{data:n,...r}=t,i=structuredClone(ev);return n.fullscreen&&(i.style={...i.style,maxWidth:`none`,maxHeight:`100vh`},i.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`component`,{component:e,data:n,...r},i)}function l(e,t){let{data:n,...r}=t,i=structuredClone(ev);return n.fullscreen&&(i.style={...i.style,maxWidth:`none`,maxHeight:`100vh`},i.pt={root:{class:`p-dialog-maximized pt-safe border-none`}}),a(`stepper`,{component:e,data:n,...r},i)}return{openTextDialog:o,openImageDialog:s,openComponentDialog:c,openStepperDialog:l}}var ov={key:`disabled`,class:`absolute inset-0 bg-black/80 flex items-center justify-center z-8 pointer-events-none`},sv={class:`flex flex-col items-center justify-center text-center gap-2`},cv={key:0,class:`text-white/50 text-sm max-w-xs`},lv={key:1,class:`text-white/30 text-xs max-w-xs`},uv={key:`sleep`,class:`absolute inset-0 bg-black/80 flex items-center justify-center z-7 pointer-events-none`},dv={class:`flex flex-col items-center justify-center text-center`},fv={key:0,class:`text-white/80 text-sm max-w-xs mt-3`},pv={key:`loading`,class:`absolute inset-0 flex flex-col items-center justify-center z-6 pointer-events-none`},mv={key:0,class:`mt-3 text-white text-sm text-shadow`},hv={key:`info`,class:`absolute w-full flex justify-center z-6 mt-4 pointer-events-none`},gv={class:`camera-card-info-box`},_v={id:`timeline-container`,key:`timeline`,class:`absolute inset-0 z-5`},vv={key:0,class:`ai-description-overlay`},yv={class:`min-w-0`},bv={class:`text-sm font-semibold text-white`},xv={class:`text-xs text-white/85 mt-1`},Sv=[`data-zoomable-content`],Cv={class:`absolute inset-0 z-3 pointer-events-none`},wv={key:0,class:`absolute inset-0 z-3 pointer-events-none overflow-hidden`},Tv={class:`w-full h-full blur-xs`},Ev={class:`absolute inset-0 flex items-center justify-center bg-black/60`},Dv={class:`flex flex-col items-center justify-center text-center`},Ov={key:2,class:`text-white/80 text-sm max-w-xs mt-3`},kv=[`data-player-id`],Av={key:1,class:`text-sm font-semibold p-2 bg-black/60 rounded-xl text-white`},jv={class:`relative flex items-center gap-1 px-3 pb-3 pt-8`},Mv={class:`flex items-center gap-0.5`},Nv={class:`flex items-center gap-0.5`},Pv={class:`flex flex-col min-w-[60px]`},Fv=[`onClick`],Iv={class:`flex flex-col`},Lv=[`disabled`],Rv=[`disabled`],zv=[`disabled`],Bv=[`disabled`],Vv=[`disabled`],Hv=[`disabled`],Uv=[`disabled`],Wv=[`disabled`],Gv=[`disabled`],Kv=[`disabled`],qv=[`disabled`],Jv={class:`flex items-center gap-2`},Yv={class:`text-base font-semibold`},Xv=2e3,Zv=300,Qv=50,$v=5,ey=200,ty=350,ny=ml(hn({__name:`CuiCameraCard`,props:Qt(Bt({cameraInfo:{},backButton:{type:Boolean},doubleClickZoom:{type:Boolean},expandableCard:{type:Boolean},expanded:{type:Boolean},flatCard:{type:Boolean},resizable:{type:Boolean},cardProps:{},routerLink:{},cardClickAction:{},viewTransition:{type:Boolean},cardBackgroundColor:{},control:{type:Boolean},controlFastForwardButton:{type:Boolean},controlFsButton:{type:Boolean},controlMicrophoneButton:{type:Boolean},controlPipButton:{type:Boolean},controlPlayPauseButton:{type:Boolean},controlRewindButton:{type:Boolean},controlSpeakerButton:{type:Boolean},subcontrol:{type:Boolean},subcontrolActivityModeButton:{type:Boolean},subcontrolPtzButton:{type:Boolean},subcontrolQualityButton:{type:Boolean},subcontrolStreamingModeButton:{type:Boolean},cameraNameOverlay:{type:Boolean},liveIndicatorOverlay:{type:Boolean},modeOverlay:{type:Boolean},detectionIndicatorOverlay:{type:Boolean},boundingBoxOverlay:{type:Boolean},showShortcuts:{type:Boolean},toolbar:{type:Boolean},toolbarClass:{type:[Boolean,null,String,Object,Array]},toolbarDetectionButton:{type:Boolean},toolbarPipToggleButton:{type:Boolean},toolbarPipToggleActive:{type:Boolean},toolbarSettingsButton:{type:Boolean},toolbarShareButton:{type:Boolean},toolbarShortcutsButton:{type:Boolean},toolbarSnapshotButton:{type:Boolean},toolbarStyle:{type:[Boolean,null,String,Object,Array]},toolbarTimelineButton:{type:Boolean},toolbarZoneButton:{type:Boolean},toolbarDescriptionButton:{type:Boolean},eventDescription:{},pipSourceRole:{},pipToggleButton:{type:Boolean},isolatedStream:{type:Boolean},nvrController:{}},N_),{activityMode:{default:`always-on`},activityModeModifiers:{},sourceRole:{},sourceRoleModifiers:{},streamingMode:{},streamingModeModifiers:{}}),emits:Qt([`streamFinishedLoading`,`expand`,`togglePip`,`muteChange`],[`update:activityMode`,`update:sourceRole`,`update:streamingMode`]),setup(e,{expose:t,emit:n}){On(e=>({v0783f19e:Z(Mn)}));let r=new Jh,a=e,o=n,s=Kt(e,`activityMode`),c=Kt(e,`sourceRole`),l=Kt(e,`streamingMode`),d=Nn(),f=rr(),p=I_(),h=av(),{mdBreakpoint:g}=al(),{isPipSupported:_,isAndroid:v}=ol(),{height:y}=rl(),{t:b}=$e(),{pressed:S}=i(),{cameraInfo:C,backButton:w,doubleClickZoom:T,expandableCard:E,flatCard:ee,resizable:O,cardProps:te,routerLink:ne,cardClickAction:re,viewTransition:ie,cardBackgroundColor:k,cameraNameOverlay:oe,liveIndicatorOverlay:ce,detectionIndicatorOverlay:A,boundingBoxOverlay:le,control:de,controlFastForwardButton:fe,controlFsButton:me,controlMicrophoneButton:j,controlPipButton:he,controlPlayPauseButton:_e,controlRewindButton:ve,controlSpeakerButton:ye,subcontrol:be,subcontrolActivityModeButton:Se,subcontrolPtzButton:Ce,subcontrolQualityButton:we,subcontrolStreamingModeButton:Te,toolbar:Ee,toolbarClass:De,toolbarDetectionButton:Oe,toolbarPipToggleButton:ke,toolbarPipToggleActive:je,toolbarSettingsButton:Me,toolbarShareButton:Ne,toolbarShortcutsButton:Fe,toolbarSnapshotButton:Ie,toolbarStyle:Re,toolbarTimelineButton:ze,toolbarZoneButton:Be,toolbarDescriptionButton:Ue,eventDescription:We,showShortcuts:Ke}=An(a);r.toggleQueryActivator(`getCameraQuery`,!1);let{data:qe,isBusy:Je}=r.getCameraQuery(typeof C.value==`string`?C.value:``),Ye=Pw(),Ze=[.25,.5,1,2,4,8],Qe=K(!1),et=un(`streamMenuRef`),tt=un(`detectionCanvasRef`),nt=un(`ptzRef`),rt=un(`playerContainerRef`),at=K(!1),ot=un(`arBoxRef`),st=un(`speedPopoverRef`),ct=un(`morePopoverRef`),ut=on(Ve,void 0),dt=on(Ge,void 0),ft=on(M_,void 0),pt=x(rt,{delayLeave:1e3}),mt=x(rt,{delayLeave:0}),ht=ge(rt),gt=ge(ot),_t=K(!1),vt=xn(),yt=K(!1),bt=K({x:0,y:0}),M=K(1),St=K(1),Ct=K(!1),Tt=K(!1),Et=K(!1),Dt=K(!1),Ot=K(0),kt=K(1),At=K(!1),jt=K(!1),Mt=K({x:0,y:0}),Rt=K({x:0,y:0}),zt=K(!1),Bt=K(0),Vt=K(1),Ht=K({x:0,y:0}),Ut=K({x:0,y:0}),Wt=K(0),N=K({x:0,y:0}),qt=K(!1),Jt=K(!1),Yt=K(!1),Qt=K(!1),$t=K(!1),en=K(!1),tn=K(!1),rn=K(!1),an=K(!0),R=K(!0),sn=K(!1),cn=K(!1),ln=K(!1),dn=K(!1),fn=K(!1),pn=!1,mn=[],hn=!1,gn=null,vn=U(()=>typeof C.value==`string`?C.value:C.value.name),yn=U(()=>typeof C.value==`string`?qe.value:C.value),bn=U(()=>{if(a.nvrController)return a.nvrController;if(!a.isolatedStream){if(ut){let e=yn.value,t=e?ut.value.get(e._id):void 0;if(t)return t}return dt}}),Sn=U(()=>bn.value?.mode.value??`idle`),Cn=U(()=>bn.value?.currentTimestamp.value??0),H=U(()=>Sn.value!==`idle`),W=U(()=>H.value&&(bn.value?.licenseRequired.value??!1)),En=U(()=>H.value&&!W.value&&(bn.value?.noData.value??!1)),Dn=U(()=>H.value&&(bn.value?.loading.value??!1)),kn=U(()=>l.value??yn.value?.interfaceSettings.streamingMode??`webrtc`),jn=U(()=>c.value??yn.value?.interfaceSettings.streamingSource??`high-resolution`),Mn=U(()=>yn.value?.interfaceSettings.aspectRatio.replace(`:`,`/`)??`16/9`),{camera:In,isLoading:Ln}=Xe(vn),Rn=u(),Q=lt({camera:vn,mode:kn,resolution:jn,activityMode:()=>s.value??`always-on`,activityConfig:{standbyTimeout:5e3,activityTimeout:5e3},autoStart:()=>Sn.value===`idle`&&!yn.value?.disabled,isolated:a.isolatedStream}),{status:zn,isPlaying:Bn,hasAudio:Vn,hasBackchannel:Hn,activeMode:Un,activeResolution:Wn,isReconnecting:Gn,inStandby:Kn}=Q,{start:qn}=Ae(()=>{rn.value=!1},Xv,{immediate:!1}),Yn=U(()=>!H.value&&(le.value&&ln.value||A.value)),Xn=U(()=>Yn.value?In.value:void 0),{sensor:Zn}=He(Xn),{sensor:Qn}=it(Xn),{sensor:$n}=xt(Xn),{sensor:er}=Le(Xn),{sensors:tr}=Pe(Xn),nr=U(()=>({height:Q.isFullscreen.value||M.value>1?`auto`:`100%`,aspectRatio:Mn.value})),ir=U(()=>!Q.paused.value),ar=U(()=>Q.isPip.value),or=U(()=>(In.value?.hasPtz.value??!1)&&Bl(void 0,`admin`)),sr=U(()=>In.value?.hasMotionSensor.value??!1),cr=U(()=>In.value?.hasObjectSensor.value??!1),lr=U(()=>In.value?.camera.value?.detectionZones??[]),ur=U(()=>In.value?.camera.value?.detectionLines??[]),dr=U(()=>a.expanded??Et.value),fr=U(()=>ln.value?[]:[`__none__`]),pr=U(()=>!!ft?.active.value),mr=U(()=>void 0),hr=U(()=>(pt.value||an.value)&&de.value&&!Jt.value),gr=U(()=>yn.value?.disabled===!0),_r=U(()=>yn.value?.detectionSettings?.snooze===!0),vr=U(()=>gr.value?!1:H.value?Dn.value:Ln.value||Je.value||!Bn.value||Gn.value),yr=U(()=>gr.value?!1:H.value?Dn.value:vr.value),br=U(()=>H.value?bn.value?.hasAudio.value??!1:Vn.value&&zn.value!==`error`),xr=U(()=>!!navigator.mediaDevices&&Hn.value),Sr=U(()=>!xr.value||vr.value||H.value),Cr=U(()=>H.value?Dn.value||cn.value:gr.value?!1:!Bn.value||cn.value),wr=U(()=>oe.value&&hr.value&&!g.value&&Hr.value&&!pr.value),Tr=U(()=>de.value&&(hr.value||dn.value||fn.value)&&!Kn.value&&!gr.value&&ht.width.value>=150&&!pr.value),Er=U(()=>Sn.value===`play`||Sn.value===`idle`&&ir.value),Dr=U(()=>Yt.value&&Hr.value&&or.value),Or=U(()=>A.value&&rn.value),kr=U(()=>{let e=Mn.value.split(`/`);return{w:parseFloat(e[0])||16,h:parseFloat(e[1])||9}}),Ar=U(()=>{let e=(O.value,ht.width.value||0);if(!e)return 0;let t=e*(kr.value.h/kr.value.w);return O.value?Math.min(t,y.value*.5):t}),jr=U(()=>y.value*.6),Mr=U(()=>{if(!O.value)return $v;let e=ht.width.value||0;if(!e)return $v;let t=Math.min(e*(kr.value.h/kr.value.w),y.value*.5);return t?Math.max(1,Math.min($v,jr.value/t)):$v}),Nr=U(()=>{if(!O.value)return 0;let e=ht.width.value||0;if(!e)return 0;let t=Math.min(e*(kr.value.h/kr.value.w),y.value*.5)*M.value;return Math.min(t,jr.value)}),Pr=U(()=>{if(Q.isFullscreen.value||!O.value)return{};let e=Nr.value;return e?{height:`${e}px`}:{}}),Fr=U(()=>({width:gt.width.value||0,height:gt.height.value||0})),Ir=U(()=>{let e=M.value;if(e<=1)return null;let t=bt.value,n=ht.width.value,r=ht.height.value;if(!n||!r)return null;let{width:i,height:a}=Fr.value;if(!i||!a)return null;let o=i*e,s=a*e,c=o>n,l=s>r,u=c?n/o*100:100,d=l?r/s*100:100,f=c?(1-n/o)/2*100-t.x/o*100:0,p=l?(1-r/s)/2*100-t.y/s*100:0;return{width:`${u}%`,height:`${d}%`,left:`${f}%`,top:`${p}%`}}),Lr=U(()=>{if(!O.value)return{aspectRatio:Mn.value};let e=M.value,t=bt.value;return e<=1?{aspectRatio:Mn.value}:{aspectRatio:Mn.value,transform:`scale(${e}) translate(${t.x/e}px, ${t.y/e}px)`,transformOrigin:`center center`,willChange:`transform`}}),Rr=U(()=>{let e=[];return Ue.value&&e.push({key:`ai-descriptions`,label:b(`components.player.ai_descriptions`),toggle:!0,toggleState:Qe.value,onClick:()=>{Qe.value=!Qe.value}}),Oe.value&&(sr.value||cr.value)&&e.push({key:`detections`,label:b(`components.player.detections`),toggle:!0,toggleState:ln.value,disabled:H.value,onClick:()=>Ai()}),Be.value&&e.push({key:`zones`,label:b(`components.player.zones`),toggle:!0,toggleState:en.value,onClick:()=>ji()}),e.push({key:`edit-shortcuts`,label:b(`components.player.edit_shortcuts`),toggle:!0,toggleState:Jt.value,onClick:()=>{Jt.value?Vi():(qt.value=!0,Jt.value=!0)}}),(Qt.value||!ze.value)&&e.push({key:`export`,label:b(`components.player.export`),toggle:!0,toggleState:tn.value,onClick:()=>{tn.value=!tn.value}}),e.push({key:`heatmap`,label:b(`components.player.heatmap`),toggle:!0,toggleState:$t.value,onClick:()=>{$t.value=!$t.value}}),e}),zr=U(()=>Rr.value.some(e=>e.toggle&&e.toggleState)),Br=U(()=>{let e={body:{class:`w-full h-full p-0 overflow-hidden justify-center`,style:{backgroundColor:k.value}},root:{class:{}},content:{class:`flex flex-col justify-center`}};return ee.value&&(e.root.class={...e.root.class,"!rounded-none !border-0":!0}),xe(e,te.value?.pt)}),Vr=U(()=>ht.width.value<ey),Hr=U(()=>ht.width.value>=ty),Ur=U(()=>re.value===`redirect`&&ne.value!==void 0),Wr=U(()=>re.value===`expand`&&E.value),Gr=U(()=>Ur.value||Wr.value),Kr=U(()=>re.value!==`redirect`&&ne.value!==void 0),qr=U(()=>Rn.value??`body`),Jr=U(()=>{let e=Hr.value;return{rewind:{inline:e,inMenu:!e},fastForward:{inline:e,inMenu:!e},speed:{inline:e,inMenu:!e},speaker:{inline:e,inMenu:!e},expand:{inline:e,inMenu:!e},microphone:{inline:e,inMenu:!e},pip:{inline:!1,inMenu:!0},quality:{inline:!1,inMenu:!0},streamingMode:{inline:!1,inMenu:!0},activityMode:{inline:!1,inMenu:!0},ptz:{inline:!1,inMenu:!0}}}),Yr=U(()=>{let e=Jr.value;return e.rewind.inMenu&&ve.value||e.fastForward.inMenu&&fe.value||e.speed.inMenu||e.speaker.inMenu&&ye.value||e.expand.inMenu&&E.value&&!Wr.value||e.microphone.inMenu&&j.value||e.pip.inMenu&&he.value||e.quality.inMenu&&be.value&&we.value||e.streamingMode.inMenu&&be.value&&Te.value||e.activityMode.inMenu&&be.value&&Se.value||e.ptz.inMenu&&be.value&&Ce.value&&or.value}),Xr=U(()=>jn.value);function Zr(){Ur.value?f.push(ne.value):Wr.value&&oi()}function Qr(){Q.toggleFullscreen()}function $r(){let e=f.options.history.state.back;typeof e==`string`&&e.startsWith(`/camview`)?f.back():f.push(`/home`)}function ei(){return s.value===`always-on`?b(`components.player.activity_mode_always_on`):s.value===`standby`?b(`components.player.activity_mode_standby`):b(`components.player.activity_mode_activity`)}function ti(){return Un.value===`mse`?b(`components.player.streaming_mode_mse`):Un.value===`webrtc`||Un.value===`webrtc/tcp`?b(`components.player.streaming_mode_webrtc`):Un.value===`webcodecs`?b(`components.player.streaming_mode_webcodecs`):b(`components.player.streaming_mode_unknown`)}function ni(){return Xr.value===`high-resolution`?b(`components.player.source_role_high`):Xr.value===`mid-resolution`?b(`components.player.source_role_mid`):Xr.value===`low-resolution`?b(`components.player.source_role_low`):b(`components.player.source_role_unknown`)}function $(e){if(!rt.value||e<=1)return{x:0,y:0};let t=rt.value.getBoundingClientRect(),{width:n,height:r}=Fr.value,i=n*e,a=r*e;return{x:Math.max(0,(i-t.width)/2),y:Math.max(0,(a-t.height)/2)}}function ri(e,t){let n=$(t);return{x:Math.max(-n.x,Math.min(n.x,e.x)),y:Math.max(-n.y,Math.min(n.y,e.y))}}function ii(e,t){let n=$(t);return{x:Math.max(-n.x,Math.min(n.x,e.x)),y:Math.max(-n.y,Math.min(n.y,e.y))}}function ai(e){if(!rt.value||Ct.value)return;let t=Mr.value,n=Math.max(1,Math.min(e.zoom,t));n<1.02&&(n=1);let r={x:e.pan.x,y:e.pan.y},i=St.value,a=Math.abs(e.zoom-n)>.001;if(n<=1){St.value=1,(bt.value.x!==0||bt.value.y!==0||M.value!==1)&&(Ct.value=!0,bt.value={x:0,y:0},M.value=1,requestAnimationFrame(()=>setTimeout(()=>Ct.value=!1,150)));return}if(n<i&&i>1){let e=(n-1)/(i-1);r.x=bt.value.x*e,r.y=bt.value.y*e}St.value=n;let o=ri(r,n);a?(Ct.value=!0,M.value=n,bt.value=o,requestAnimationFrame(()=>setTimeout(()=>Ct.value=!1,100))):bt.value=o}function oi(){if(!E.value)return;let e=!dr.value;a.expanded===void 0&&(Et.value=e),o(`expand`,e)}function si(e){O.value&&(Dt.value=!0,Ot.value=e.clientY,kt.value=M.value,document.addEventListener(`mousemove`,ui),document.addEventListener(`mouseup`,fi))}function ci(e){O.value&&(Dt.value=!0,Ot.value=e.touches[0].clientY,kt.value=M.value,document.addEventListener(`touchmove`,di,{passive:!1}),document.addEventListener(`touchend`,pi))}function li(e){let t=Ar.value;if(!t)return kt.value;let n=e/t;return Math.max(1,Math.min(Mr.value,kt.value+n))}function ui(e){if(!Dt.value)return;let t=li(e.clientY-Ot.value);M.value=t,St.value=t}function di(e){if(!Dt.value)return;e.preventDefault();let t=li(e.touches[0].clientY-Ot.value);M.value=t,St.value=t}function fi(){Dt.value=!1,document.removeEventListener(`mousemove`,ui),document.removeEventListener(`mouseup`,fi)}function pi(){Dt.value=!1,document.removeEventListener(`touchmove`,di),document.removeEventListener(`touchend`,pi)}function mi(e){let t=e[0].clientX-e[1].clientX,n=e[0].clientY-e[1].clientY;return Math.sqrt(t*t+n*n)}function hi(e){return{x:(e[0].clientX+e[1].clientX)/2,y:(e[0].clientY+e[1].clientY)/2}}function gi(e){if(O.value){if(jt.value=!1,e.touches.length===2){At.value=!1,zt.value=!0,Bt.value=mi(e.touches),Vt.value=M.value,Ht.value={...bt.value},Ut.value=hi(e.touches);return}e.touches.length===1&&M.value>1&&(At.value=!0,Mt.value={x:e.touches[0].clientX,y:e.touches[0].clientY},Rt.value={...bt.value})}}function _i(e){if(O.value){if(zt.value&&e.touches.length===2){e.preventDefault();let t=mi(e.touches)/Bt.value,n=Math.max(1,Math.min(Mr.value,Vt.value*t));if(n>M.value&&(Tt.value=!0),rt.value){let t=rt.value.getBoundingClientRect(),r=hi(e.touches),i=t.left+t.width/2,a=t.top+t.height/2,o=r.x-i,s=r.y-a,c=n/Vt.value,l={x:Ht.value.x-o*(c-1),y:Ht.value.y-s*(c-1)};M.value=n,St.value=n,bt.value=ii(l,n)}else M.value=n,St.value=n;return}if(At.value&&e.touches.length===1){let t=e.touches[0].clientX-Mt.value.x,n=e.touches[0].clientY-Mt.value.y;(Math.abs(t)>10||Math.abs(n)>10)&&(jt.value=!0);let r={x:Rt.value.x+t,y:Rt.value.y+n};bt.value=ii(r,M.value)}}}function vi(e){if(e.touches.length===1&&zt.value){zt.value=!1,Tt.value=!1,M.value>1&&(At.value=!0,jt.value=!1,Mt.value={x:e.touches[0].clientX,y:e.touches[0].clientY},Rt.value={...bt.value});return}if(e.touches.length===0&&e.changedTouches.length===1&&!jt.value&&!zt.value){let t=e.changedTouches[0],n=Date.now(),r={x:t.clientX,y:t.clientY},i=n-Wt.value,a=Math.sqrt((r.x-N.value.x)**2+(r.y-N.value.y)**2);i<Zv&&a<Qv?(Ci({clientX:r.x,clientY:r.y,preventDefault:()=>{},stopPropagation:()=>{}}),Wt.value=0,N.value={x:0,y:0}):(Wt.value=n,N.value=r)}At.value=!1,jt.value=!1,zt.value=!1,Tt.value=!1}function yi(e){!O.value||M.value<=1||(document.removeEventListener(`mousemove`,bi),document.removeEventListener(`mouseup`,xi),At.value=!0,Mt.value={x:e.clientX,y:e.clientY},Rt.value={...bt.value},document.addEventListener(`mousemove`,bi),document.addEventListener(`mouseup`,xi))}function bi(e){if(!At.value)return;let t=e.clientX-Mt.value.x,n=e.clientY-Mt.value.y,r={x:Rt.value.x+t,y:Rt.value.y+n};bt.value=ii(r,M.value)}function xi(){At.value=!1,document.removeEventListener(`mousemove`,bi),document.removeEventListener(`mouseup`,xi)}function Si(e){if(!O.value)return;e.preventDefault();let t=-e.deltaY*.002,n=Math.max(1,Math.min(Mr.value,M.value+t));if(n<1.02&&(n=1),n===M.value)return;let r=M.value;if(n<=1)M.value=1,bt.value={x:0,y:0};else if(n<r&&r>1){let e=(n-1)/(r-1),t={x:bt.value.x*e,y:bt.value.y*e};M.value=n,bt.value=ii(t,n)}else M.value=n;St.value=M.value}function Ci(e){if(T.value&&!(!O.value&&!mt.value||Qt.value||Dr.value||Kn.value||gr.value)){if(e.preventDefault(),e.stopPropagation(),Ct.value=!0,M.value>1.01)M.value=1,bt.value={x:0,y:0},St.value=1;else{if(!rt.value)return;O.value&&(Tt.value=!0);let t=rt.value.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=t.width/2,a=t.height/2,o=Mr.value,s=(i-n)*(o-1),c=(a-r)*(o-1);if(M.value=o,St.value=o,O.value){let e=Math.max(0,(t.width*o-t.width)/2);bt.value={x:Math.max(-e,Math.min(e,s)),y:Math.max(-0,Math.min(0,c))}}else{let e=$(o);bt.value={x:Math.max(-e.x,Math.min(e.x,s)),y:Math.max(-e.y,Math.min(e.y,c))}}}setTimeout(()=>{Ct.value=!1,Tt.value=!1},200)}}function wi(e){Q.reportActivity(!!e?.length)}function Ti(e){e?.length&&(rn.value=!0,qn())}function Ei(){gr.value||Q.resumeFromStandby()}async function Di(){let e=vn.value.replace(/ /g,`_`).toLowerCase();if(H.value){let t=await bn.value?.captureSnapshot();if(!t)return;let n=bn.value?.currentTimestamp.value;await gl({blob:t,filename:`${e}_${(n?new Date(n/1e3):new Date).toISOString()}.png`,mimeType:`image/png`});return}let t=Q.captureScreenshot();t&&await gl({dataUrl:t,filename:`${e}_${new Date().toISOString()}.png`,mimeType:`image/png`})}function Oi(){tt.value?.clear()}function ki(e,t){!Bn.value||H.value||tt.value?.draw(e,t)}function Ai(e){ln.value=e??!ln.value}function ji(e){en.value=e??!en.value}function Mi(e){R.value=e===void 0?!R.value:e,o(`muteChange`,R.value)}async function Ni(e,t=!1){if(Hn.value)if(sn.value=e===void 0?!sn.value:e,sn.value)try{vt.value=await navigator.mediaDevices.getUserMedia({audio:!0});let e=vt.value.getAudioTracks()[0];R.value=!t,await Q.setMicrophone(e),Fn()}catch(e){d.warn(vn.value,e),sn.value=!1}else vt.value?.getTracks().forEach(e=>e.stop()),vt.value=void 0,await Q.setMicrophone(null),Pn()}function Pi(e){s.value=e||(s.value===`always-on`?`standby`:s.value===`standby`?`activity`:`always-on`)}async function Fi(e){pn=!0;try{if(e){c.value=e,await Q.setResolution(e);return}let t=[];if(In.value?.lowResolutionSource.value&&t.push(`low-resolution`),In.value?.midResolutionSource.value&&t.push(`mid-resolution`),In.value?.highResolutionSource.value&&t.push(`high-resolution`),t.length===0)return;let n=Xr.value,r=t[(t.indexOf(n)+1)%t.length];c.value=r,await Q.setResolution(r)}finally{setTimeout(()=>pn=!1,2e3)}}async function Ii(e){let t=Un.value,n=e||(t===`mse`?`webrtc`:`mse`);await Q.setMode(n),l.value=n}async function Li(){Q.togglePip()}function Ri(){if(Sn.value!==`idle`){Sn.value===`play`?bn.value?.pause():Sn.value===`pause`?bn.value?.resume():Sn.value===`scrub`&&bn.value?.play(Cn.value);return}Q.paused.value?Q.play():Q.pause()}function zi(){Qr()}function Bi(e){qt.value=e===void 0?!qt.value:e,qt.value||(Jt.value=!1)}function Vi(){Jt.value&&=(qt.value=!0,!1)}function Hi(){Yt.value=!Yt.value}function Ui(){Qt.value=!Qt.value,Qt.value||(tn.value=!1)}function Wi(){if(bn.value){if(Sn.value===`idle`){let e=Date.now()*1e3;bn.value.play(e-3e7);return}bn.value.seek(bn.value.currentTimestamp.value-3e7)}}function Gi(){!bn.value||Sn.value===`idle`||bn.value.seek(bn.value.currentTimestamp.value+3e7)}function Ki(e){cn.value=e}function qi(e){ct.value?.hide(),Ft(()=>st.value?.toggle(e))}function Ji(){let e=In.value?.id;if(!e)return;let t=(In.value?.sources.value??[]).filter(e=>e.role!==`snapshot`).map(e=>({_id:e._id,name:e.name,role:e.role}));h.openComponentDialog(j_,{data:{title:b(`shares.create_share`),confirmText:b(`shares.create`),contentProps:{cameraId:e,cameraName:vn.value,sources:t}},dialogSize:{desktop:{width:`450px`}}})}return P(rt,e=>{Q.fullscreenElement.value=e??void 0},{immediate:!0}),P(Zg,e=>{!at.value||e||(at.value=!1,Q.paused.value&&Q.play())}),Nt(()=>{}),P(R,e=>Q.setMuted(e),{immediate:!0}),P([bn,()=>Q.containerElement.value],([e,t])=>{gn?.(),gn=e&&t?e.claimContainer(t):null},{immediate:!0,flush:`post`}),P([bn,R],([e,t])=>{e&&(e.muted.value=t)},{immediate:!0}),P(H,e=>{hn||(e?Q.stop():Q.start())},{flush:`sync`}),P([c,Wn],([e,t])=>{pn||e&&t&&e!==t&&(c.value=t)}),P([()=>H.value,Cn],([e])=>{if(!e)return;let t=Q.containerElement.value;if(!t)return;let n=t.querySelector(`canvas`);n&&n.width>0&&n.height>0&&(Q.nativeWidth.value!==n.width||Q.nativeHeight.value!==n.height)&&(Q.nativeWidth.value=n.width,Q.nativeHeight.value=n.height)},{flush:`post`}),P(Gn,async e=>{e&&await Ni(!1,!1)}),P(Sr,async e=>{e&&sn.value&&await Ni(!1,!1)}),P(Bn,e=>{e||Oi(),o(`streamFinishedLoading`,e)}),P(s,e=>{e&&Q.setActivityMode(e)}),P(()=>Zn.value?.properties.detections,e=>{if(qe.value?.detectionZones.length===0)return;let t=e??[];wi(t),Ti(t),ki(`motion`,t)},{deep:!0}),P(()=>Qn.value?.properties.detections,e=>{if(qe.value?.detectionZones.length===0)return;let t=e??[];wi(t),Ti(t),ki(`object`,t)},{deep:!0}),P(()=>$n.value?.properties.detections,e=>{ki(`face`,e??[])},{deep:!0}),P(()=>er.value?.properties.detections,e=>{ki(`license_plate`,e??[])},{deep:!0}),P(tr,e=>{mn.forEach(e=>e()),mn=e.map(e=>P(()=>e.properties.detections,e=>{ki(`classifier`,e??[])},{deep:!0}))}),P(g,()=>{g.value&&(Qt.value=!1)}),P(O,()=>{M.value=1,bt.value={x:0,y:0},St.value=1,At.value=!1,Dt.value=!1,Ct.value=!1,Tt.value=!1,document.removeEventListener(`mousemove`,bi),document.removeEventListener(`mouseup`,xi),document.removeEventListener(`mousemove`,ui),document.removeEventListener(`mouseup`,fi),document.removeEventListener(`touchmove`,di),document.removeEventListener(`touchend`,pi)}),P(()=>[mt.value,Qt.value,Dr.value,Kn.value,gr.value],([e,t,n,r,i])=>{At.value||Dt.value||S.value||(O.value?t||n||r||i:!e||t||n||r||i)&&(M.value!==1||bt.value.x!==0||bt.value.y!==0)&&(Ct.value=!0,M.value=1,bt.value={x:0,y:0},St.value=1,setTimeout(()=>Ct.value=!1,200))}),P(M,(e,t)=>{Ct.value||(e<=1?bt.value={x:0,y:0}:e<t&&(bt.value=ii(bt.value,e)))}),P(zn,e=>{e===`connecting`||e===`reconnecting`?yt.value=!0:e===`connected`&&(yt.value=!1)}),P(()=>Q.error.value,e=>{e&&d.error(vn.value,e)}),P(gr,(e,t)=>{t&&!e?Q.stream.value?.restart():!t&&e&&Q.stop()}),D(window,`blur`,()=>{At.value&&(At.value=!1,document.removeEventListener(`mousemove`,bi),document.removeEventListener(`mouseup`,xi)),Dt.value&&(Dt.value=!1,document.removeEventListener(`mousemove`,ui),document.removeEventListener(`mouseup`,fi),document.removeEventListener(`touchmove`,di),document.removeEventListener(`touchend`,pi))}),ue(`Escape`,()=>Vi()),Xt(()=>{_t.value=f.currentRoute.value.path.includes(vn.value),typeof C.value==`string`&&r.toggleQueryActivator(`getCameraQuery`,!0)}),Gt(()=>{setTimeout(()=>an.value=!1,1500)}),Zt(()=>{hn=!0,i_(Ye),gn?.(),gn=null,document.removeEventListener(`mousemove`,ui),document.removeEventListener(`mouseup`,fi),document.removeEventListener(`touchmove`,di),document.removeEventListener(`touchend`,pi),document.removeEventListener(`mousemove`,bi),document.removeEventListener(`mouseup`,xi),vt.value?.getTracks().forEach(e=>e.stop()),vt.value=void 0,mn.forEach(e=>e()),mn=[]}),t({activeResolution:Wn,showControl:Tr,micActive:sn,streamHasIntercom:xr,micButtonDisabled:Sr,isFullscreen:Q.isFullscreen,togglePlay:Ri,toggleSourceRole:Fi,togglePictureInPicture:Li,toggleActivityMode:Pi,toggleStreamingMode:Ii,toggleFs:zi,toggleMute:Mi,toggleMicrophone:Ni,toggleShortcuts:Bi,togglePtz:Hi,toggleFastForward:Gi,toggleRewind:Wi,toggleBbox:Ai,toggleZones:ji,toggleTimeline:Ui,timelineState:Qt,timelineScroll:Ki,captureScreenshot:Di,trimMode:tn}),(e,t)=>{let n=Yg,r=ae,i=Ll,a=jl,c=wt,l=Kg,u=nu,d=_g,f=op,h=Lf,g=Tf,v=_f,y=Tl,b=gf,x=pf,S=uf,C=sf,T=rf,ee=ef,D=Zd,te=Jd,re=Gd,k=Hd,oe=zd,A=Id,ue=Nd,de=Ad,ge=Dd,xe=wd,Oe=pe,Ae=xd,Pe=vd,Le=hd,Be=fd,Ve=ld,He=od,Ue=rd,Ge=ed,qe=Zu,Je=Ju,Xe=Gu,$e=Hu,it=ys,lt=zu,ut=Iu,dt=Nu,pt=Au,ht=Du,gt=wu,vt=xu,yt=Jn,xt=Ls,St=m,Et=vu,Dt=se;return F(),G(`div`,{style:X({viewTransitionName:Z(ie)?`camera-card-${Z(vn).replace(/[^a-zA-Z0-9-_]/g,`-`)}`:void 0,viewTransitionClass:Z(_t)&&Z(ie)?`active-transition`:void 0})},[Y(St,{class:`cui-card`,pt:Z(Br)},{content:q(()=>[Z(w)?(F(),B(r,{key:0,class:`dark-mode absolute top-[10px] left-4 z-6 bg-black/20 hover:bg-black/40 active:bg-black/60`,rounded:``,text:``,severity:`contrast`,onClick:$r},{icon:q(()=>[Y(n,{class:`w-6 h-6`})]),_:1})):V(``,!0),J(`div`,{id:`video-container`,ref_key:`playerContainerRef`,ref:rt,class:I([`bg-black flex items-center justify-center relative min-w-0`,{"detection-detected":Z(Or),"edit-mode":Z(Jt),"native-pip":Z(at),"overflow-visible":Z(Tt),"overflow-hidden":!Z(Tt),"resizable-mode":Z(O)}]),style:X([Z(Pr),{"--cam-ar-w":Z(kr).w,"--cam-ar-h":Z(kr).h}]),onClick:Ei},[Y(Pt,{name:`fade`},{default:q(()=>[Z(gr)&&!Z(H)?(F(),G(`div`,ov,[J(`div`,sv,[Y(i,{class:`text-white/60 w-[50px] h-[50px]`}),Z(Hr)?(F(),G(`p`,cv,L(e.$t(`views.camera.camera_disabled`)),1)):V(``,!0),Z(Hr)?(F(),G(`p`,lv,L(e.$t(`views.camera.camera_disabled_hint`)),1)):V(``,!0)])])):V(``,!0),Z(Kn)&&!Z(yn)?.disabled?(F(),G(`div`,uv,[J(`div`,dv,[Y(a,{class:`text-white w-[50px] h-[50px]`}),Z(Hr)?(F(),G(`p`,fv,L(e.$t(`components.player.stream_paused`)),1)):V(``,!0)])])):V(``,!0),Z(yr)&&!Z(Kn)&&!Z(gr)?(F(),G(`div`,pv,[Y(c,{class:I([`w-[30px] h-[30px] m-0`,Z(H)?`nvr-spinner`:``]),"stroke-width":`5`},null,8,[`class`]),Z(Gn)&&!Z(H)&&Z(Hr)?(F(),G(`span`,mv,L(e.$t(`components.player.reconnecting`))+`...`,1)):V(``,!0)])):V(``,!0),Z(mr)&&!Z(Kn)&&!Z(gr)?(F(),G(`div`,hv,[J(`span`,gv,L(Z(mr)),1)])):V(``,!0),Tn(J(`div`,_v,null,512),[[wn,Z(Qt)&&!Z(Dr)&&!Z(Kn)&&!Z(pr)&&!Z(Q).isFullscreen.value]]),Z(Dr)&&!Z(Qt)&&!Z(Kn)&&!Z(pr)&&Z(In)?(F(),G(`div`,{key:`ptz`,class:`absolute top-0 left-0 right-0 z-7`,style:X({bottom:Z(Tr)?`48px`:`0px`,transition:`bottom 0.2s ease`})},[Y(l,{ref_key:`ptzRef`,ref:nt,"camera-device":Z(In)},null,8,[`camera-device`])],4)):V(``,!0)]),_:1}),Y(nn,{"enter-active-class":`transition-all duration-300 ease-out`,"enter-from-class":`opacity-0 -translate-y-2`,"enter-to-class":`opacity-100 translate-y-0`,"leave-active-class":`transition-all duration-200 ease-in`,"leave-from-class":`opacity-100 translate-y-0`,"leave-to-class":`opacity-0 -translate-y-2`},{default:q(()=>[Z(Qe)&&Z(We)?(F(),G(`div`,vv,[Y(u,{class:`w-4 h-4 text-white/90 shrink-0 mt-0.5`}),J(`div`,yv,[J(`p`,bv,L(Z(We).title),1),J(`p`,xv,L(Z(We).description),1)])])):V(``,!0)]),_:1}),Y(Z(It),{ref_key:`arBoxRef`,ref:ot,pan:Z(bt),"onUpdate:pan":t[1]||=e=>_n(bt)?bt.value=e:null,zoom:Z(M),"onUpdate:zoom":t[2]||=e=>_n(M)?M.value=e:null,"data-native-pip-keep":``,disabled:Z(O)||Z(E)&&!Z(dr)||!Z(mt)||Z(Qt)||Z(Dr)||Z(Kn)||Z(pr)||Z(gr),"pan-enabled":Z(M)>1,"enable-control-button":!1,"dbl-click-enabled":!1,"min-zoom":1,"max-zoom":Z(Mr),selector:Z(O)?`disabled`:`[data-zoomable-content='${Z(Ye)}']`,"zoom-origin":`pointer`,class:I([`ar-box flex items-center justify-center`,{"zoom-constraining":Z(Ct),"touch-none":Z(O)}]),style:X(Z(nr)),onPanned:ai,onZoom:ai,onDblclick:Ci,onTouchstart:gi,onTouchmove:_i,onTouchend:vi,onMousedown:yi,onWheel:Si},{default:q(()=>[J(`div`,{"data-zoomable-content":Z(Ye),class:`relative h-full min-w-0`,style:X(Z(Lr))},[J(`div`,Cv,[!Z(Kn)&&!Z(gr)&&Z(Ke)?(F(),B(d,{key:0,"camera-name":Z(vn),visible:Z(qt),editing:Z(Jt),"interaction-locked":Z(M)>1},null,8,[`camera-name`,`visible`,`editing`,`interaction-locked`])):V(``,!0),Z(le)&&!Z(Kn)&&!Z(H)&&!Z(gr)?(F(),B(f,{key:1,ref_key:`detectionCanvasRef`,ref:tt,classes:Z(fr)},null,8,[`classes`])):V(``,!0),Z(en)&&!Z(Kn)&&!Z(gr)?(F(),B(h,{key:2,"camera-zones":Z(lr),"camera-lines":Z(ur)},null,8,[`camera-zones`,`camera-lines`])):V(``,!0),Z(ft)?.active.value&&!Z(gr)?(F(),B(g,{key:3,"model-value":Z(ft).regions.value,"onUpdate:modelValue":t[0]||=e=>{Z(ft)&&(Z(ft).regions.value=e)}},null,8,[`model-value`])):V(``,!0),Z($t)&&Z(yn)&&!Z(gr)?(F(),B(v,{key:4,"camera-id":Z(yn)._id},null,8,[`camera-id`])):V(``,!0)]),Z(En)||Z(W)?(F(),G(`div`,wv,[J(`div`,Tv,[Z(yn)?(F(),B(y,{key:0,camera:Z(yn),"show-loading-screen":!1,"image-style":{objectFit:`fill`}},null,8,[`camera`])):V(``,!0)]),J(`div`,Ev,[J(`div`,Dv,[Z(W)?(F(),B(b,{key:0,class:`text-white w-[50px] h-[50px]`})):(F(),B(x,{key:1,class:`text-white w-[50px] h-[50px]`})),Z(Hr)?(F(),G(`p`,Ov,L(Z(W)?e.$t(`components.player.license_required`):e.$t(`components.player.no_recording`)),1)):V(``,!0)])])])):V(``,!0),Z(yn)?(F(),B(y,{key:`snapshot`,ref:`snapshotRef`,camera:Z(yn),"show-loading-screen":!1,class:I([`absolute inset-0 cursor-[inherit] z-0`,{"cursor-pointer":Z(Gr),"pointer-events-none":!Z(Gr)}]),"image-style":{objectFit:`fill`},onClick:Zr},null,8,[`camera`,`class`])):V(``,!0),J(`div`,{ref:e=>{e&&(Z(Q).containerElement.value=e)},"data-player-id":Z(Ye),class:I([`w-full h-full cursor-[inherit] relative z-1`,{"cursor-pointer":Z(Gr)}]),onClick:Zr},null,10,kv)],12,Sv)]),_:1},8,[`pan`,`zoom`,`disabled`,`pan-enabled`,`max-zoom`,`selector`,`style`,`class`]),!Z(Kn)&&(Z(wr)||Z(ce))?(F(),G(`div`,{key:0,class:I([`absolute top-0 w-full p-4 flex items-center justify-between gap-2 pointer-events-none`,Z(gr)?`z-9`:`z-6`])},[Z(ce)?(F(),G(`div`,{key:0,class:I([`w-[10px] h-[10px] rounded-full shadow-md`,Z(gr)?`bg-gray-500`:Z(H)?`bg-sky-500`:Z(Bn)?`bg-red-500`:`bg-gray-500`])},null,2)):V(``,!0),Z(wr)?(F(),G(`span`,Av,L(Z(vn)),1)):V(``,!0)],2)):V(``,!0),Y(nn,{name:`fade-2`},{default:q(()=>[Z(Tr)&&!Z(Qt)?(F(),G(`div`,{key:0,class:I([`absolute bottom-0 inset-x-0 z-6 dark-mode`,{"control-bar-tiny":Z(Vr)}])},[t[29]||=J(`div`,{class:`control-bar-gradient pointer-events-none`},null,-1),J(`div`,jv,[J(`div`,Mv,[Z(ve)&&Z(Jr).rewind.inline?(F(),B(r,{key:0,disabled:!Z(bn),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:Wi},{icon:q(()=>[Y(S,{class:`w-[18px] h-[18px]`})]),_:1},8,[`disabled`])):V(``,!0),Z(_e)?(F(),B(r,{key:1,disabled:Z(vr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:Ri},{icon:q(()=>[Z(Er)?(F(),B(T,{key:1,class:`w-[18px] h-[18px]`})):(F(),B(C,{key:0,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):V(``,!0),Z(fe)&&Z(Jr).fastForward.inline?(F(),B(r,{key:2,disabled:Z(Sn)===`idle`,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:Gi},{icon:q(()=>[Y(ee,{class:`w-[18px] h-[18px]`})]),_:1},8,[`disabled`])):V(``,!0),Z(Jr).speed.inline?(F(),B(r,{key:3,disabled:Z(Sn)===`idle`,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,style:{"font-size":`12px`,"font-weight":`600`},onClick:t[3]||=e=>Z(st)?.toggle(e)},{icon:q(()=>[J(`span`,null,L(Z(bn)?.speed.value??1)+`×`,1)]),_:1},8,[`disabled`])):V(``,!0)]),t[28]||=J(`div`,{class:`flex-1`},null,-1),J(`div`,Nv,[Z(ye)&&Z(Jr).speaker.inline?(F(),B(r,{key:0,disabled:!Z(br)||Z(vr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[4]||=e=>Mi()},{icon:q(()=>[Z(R)?(F(),B(te,{key:1,class:`w-[18px] h-[18px]`})):(F(),B(D,{key:0,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):V(``,!0),Z(j)&&Z(Jr).microphone.inline?(F(),B(r,{key:1,disabled:Z(Sr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[5]||=e=>Ni(void 0,!0)},{icon:q(()=>[Z(sn)?(F(),B(re,{key:0,class:`w-[18px] h-[18px]`})):(F(),B(k,{key:1,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):V(``,!0),Z(E)&&Z(Jr).expand.inline&&!Z(Wr)?Tn((F(),B(r,{key:2,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:oi},{icon:q(()=>[Z(dr)?(F(),B(oe,{key:0,class:`w-[18px] h-[18px]`})):(F(),B(A,{key:1,class:`w-[18px] h-[18px]`}))]),_:1})),[[Dt,{value:Z(dr)?e.$t(`components.player.shrink`):e.$t(`components.player.expand`)},void 0,{top:!0}]]):V(``,!0),Z(Yr)?(F(),B(r,{key:3,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[6]||=e=>Z(ct)?.toggle(e)},{icon:q(()=>[Y(ue,{class:`w-[18px] h-[18px]`})]),_:1})):V(``,!0),Z(me)?(F(),B(r,{key:4,disabled:Z(vr),fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:zi},{icon:q(()=>[Z(Q).isFullscreen.value?(F(),B(ge,{key:1,class:`w-[18px] h-[18px]`})):(F(),B(de,{key:0,class:`w-[18px] h-[18px]`}))]),_:1},8,[`disabled`])):V(``,!0),Z(Kr)?Tn((F(),B(r,{key:5,fluid:``,text:``,severity:`contrast`,class:`control-bar-btn`,onClick:t[7]||=t=>e.$router.push(Z(ne))},{icon:q(()=>[Y(xe,{class:`w-[18px] h-[18px]`})]),_:1})),[[Dt,{value:e.$t(`components.player.open_camera`)},void 0,{top:!0}]]):V(``,!0)])]),Y(Oe,{ref_key:`speedPopoverRef`,ref:st,class:`more-menu-popover`,"append-to":Z(qr),onShow:t[8]||=e=>dn.value=!0,onHide:t[9]||=e=>dn.value=!1},{default:q(()=>[J(`div`,Pv,[(F(),G(z,null,Lt(Ze,e=>J(`button`,{key:e,class:I([`more-menu-item justify-center`,{"more-menu-item-active":(Z(bn)?.speed.value??1)===e}]),onClick:t=>{Z(bn)?.setSpeed(e),Z(st)?.hide()}},L(e)+`× `,11,Fv)),64))])]),_:1},8,[`append-to`]),Y(Oe,{ref_key:`morePopoverRef`,ref:ct,class:`more-menu-popover`,"append-to":Z(qr),onShow:t[22]||=e=>fn.value=!0,onHide:t[23]||=e=>fn.value=!1},{default:q(()=>[J(`div`,Iv,[Z(ve)&&Z(Jr).rewind.inMenu?(F(),G(`button`,{key:0,disabled:!Z(bn),class:`more-menu-item`,onClick:t[10]||=e=>{Wi(),Z(ct)?.hide()}},[Y(S,{class:`w-[18px] h-[18px] shrink-0`}),J(`span`,null,L(e.$t(`components.player.rewind`)),1)],8,Lv)):V(``,!0),Z(fe)&&Z(Jr).fastForward.inMenu?(F(),G(`button`,{key:1,disabled:Z(Sn)===`idle`,class:`more-menu-item`,onClick:t[11]||=e=>{Gi(),Z(ct)?.hide()}},[Y(ee,{class:`w-[18px] h-[18px] shrink-0`}),J(`span`,null,L(e.$t(`components.player.fast_forward`)),1)],8,Rv)):V(``,!0),Z(Jr).speed.inMenu?(F(),G(`button`,{key:2,disabled:Z(Sn)===`idle`,class:`more-menu-item`,onClick:t[12]||=e=>qi(e)},[Y(Ae,{class:`w-[18px] h-[18px] shrink-0`}),J(`span`,null,L(e.$t(`components.player.speed`))+` (`+L(Z(bn)?.speed.value??1)+`×)`,1)],8,zv)):V(``,!0),Z(ye)&&Z(Jr).speaker.inMenu?(F(),G(`button`,{key:3,disabled:!Z(br)||Z(vr),class:`more-menu-item`,onClick:t[13]||=e=>{Mi(),Z(ct)?.hide()}},[Z(R)?(F(),B(te,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(D,{key:0,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(Z(R)?e.$t(`components.form.tooltip.unmute`):e.$t(`components.form.tooltip.mute`)),1)],8,Bv)):V(``,!0),Z(E)&&Z(Jr).expand.inMenu&&!Z(Wr)?(F(),G(`button`,{key:4,class:`more-menu-item`,onClick:t[14]||=e=>{oi(),Z(ct)?.hide()}},[Z(dr)?(F(),B(oe,{key:0,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(A,{key:1,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(Z(dr)?e.$t(`components.player.shrink`):e.$t(`components.player.expand`)),1)])):V(``,!0),Z(j)&&Z(Jr).microphone.inMenu?(F(),G(`button`,{key:5,disabled:Z(Sr),class:`more-menu-item`,onClick:t[15]||=e=>{Ni(void 0,!0),Z(ct)?.hide()}},[Z(sn)?(F(),B(re,{key:0,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(k,{key:1,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(e.$t(`components.form.tooltip.intercom`)),1)],8,Vv)):V(``,!0),Z(he)&&Z(Jr).pip.inMenu?(F(),G(`button`,{key:6,disabled:!Z(_)||Z(vr)||Z(H),class:`more-menu-item`,onClick:t[16]||=e=>{Li(),Z(ct)?.hide()}},[Z(ar)?(F(),B(Le,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(Pe,{key:0,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(Z(ar)?e.$t(`components.player.hide_pip`):e.$t(`components.player.show_pip`)),1)],8,Hv)):V(``,!0),Z(be)&&Z(we)&&Z(Jr).quality.inMenu?(F(),G(`button`,{key:7,disabled:Z(vr),class:`more-menu-item`,onClick:t[17]||=e=>{Fi(),Z(ct)?.hide()}},[Z(Xr)===`low-resolution`?(F(),B(Be,{key:0,class:`w-[18px] h-[18px] shrink-0`})):Z(Xr)===`mid-resolution`?(F(),B(Ve,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(He,{key:2,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(ni()),1)],8,Uv)):V(``,!0),Z(be)&&Z(Te)&&Z(Jr).streamingMode.inMenu?(F(),G(`button`,{key:8,disabled:Z(vr)||Z(H),class:`more-menu-item`,onClick:t[18]||=e=>{Ii(),Z(ct)?.hide()}},[Z(Un)===`mse`?(F(),B(Ue,{key:0,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(Ge,{key:1,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(ti()),1)],8,Wv)):V(``,!0),Z(be)&&Z(Se)&&Z(Jr).activityMode.inMenu?(F(),G(`button`,{key:9,disabled:Z(vr)||Z(H),class:`more-menu-item`,onClick:t[19]||=e=>{Pi(),Z(ct)?.hide()}},[s.value===`always-on`?(F(),B(qe,{key:0,class:`w-[18px] h-[18px] shrink-0`})):s.value===`standby`?(F(),B(Je,{key:1,class:`w-[18px] h-[18px] shrink-0`})):(F(),B(Xe,{key:2,class:`w-[18px] h-[18px] shrink-0`})),J(`span`,null,L(ei()),1)],8,Gv)):V(``,!0),Z(be)&&Z(Ce)&&Z(or)&&Z(Jr).ptz.inMenu?(F(),G(`button`,{key:10,disabled:Z(vr)||Z(Qt)||Z(H),class:I([`more-menu-item`,{"more-menu-item-active":Z(Yt)}]),onClick:t[20]||=e=>{Hi(),Z(ct)?.hide()}},[Y($e,{class:`w-[18px] h-[18px] shrink-0`}),J(`span`,null,L(e.$t(`components.player.ptz`)),1)],10,Kv)):V(``,!0),Z(Yt)&&Z(or)&&Z(nt)?.hasHome?(F(),G(`button`,{key:11,disabled:Z(vr)||Z(nt)?.isLoading||Z(H),class:`more-menu-item`,onClick:t[21]||=e=>{Z(nt)?.goToHome(),Z(ct)?.hide()}},[Y(it,{class:`w-[18px] h-[18px] shrink-0`}),J(`span`,null,L(e.$t(`components.player.ptz_go_to_home`)),1)],8,qv)):V(``,!0)])]),_:1},8,[`append-to`])],2)):V(``,!0)]),_:1}),Y(nn,{name:`fade-2`},{default:q(()=>[Z(Ir)?(F(),G(`div`,{key:0,class:I([`zoom-minimap`,{"zoom-minimap-raised":Z(Tr)}])},[J(`div`,{class:`zoom-minimap-viewport`,style:X(Z(Ir))},null,4)],2)):V(``,!0)]),_:1})],6),Z(Ee)?(F(),G(`div`,{key:1,class:I([`relative w-full min-h-[60px] h-[60px] camera-toolbar-background border-t-[1px] border-color flex items-center justify-between py-2 px-4 gap-1 z-10`,Z(De),{"pointer-events-none opacity-50":Z(pr)}]),style:X([Z(Re)])},[Z(O)?(F(),G(`div`,{key:0,class:`absolute left-0 right-0 top-0.5 h-5 flex items-center justify-center cursor-ns-resize touch-none z-20`,onMousedown:si,onTouchstartPassive:ci},[...t[30]||=[J(`div`,{class:`w-9 h-1 rounded-full bg-surface-400/50`},null,-1)]],32)):V(``,!0),J(`div`,Jv,[Z(Cr)?(F(),B(c,{key:0,"stroke-width":`5`,class:I([`w-[10px] h-[10px]`,Z(H)?`nvr-spinner`:``])},null,8,[`class`])):(F(),G(`div`,{key:1,class:I([`w-[10px] h-[10px] rounded-full`,Z(gr)&&!Z(H)?`bg-gray-500`:Z(H)?`bg-sky-500`:`bg-primary-500`])},null,2)),J(`span`,Yv,L(Z(vn)),1),Z(gr)?Tn((F(),B(i,{key:2,class:`w-4 h-4 text-red-400`},null,512)),[[Dt,{value:e.$t(`views.camera.camera_disabled`)},void 0,{top:!0}]]):Z(_r)?Tn((F(),B(a,{key:3,class:`w-4 h-4 text-amber-400`},null,512)),[[Dt,{value:e.$t(`views.camera.camera_snoozed`)},void 0,{top:!0}]]):V(``,!0)]),t[31]||=J(`div`,{class:`ml-auto`},null,-1),Z(gr)?V(``,!0):(F(),G(z,{key:1},[Z(Ne)&&(`hasPermission`in e?e.hasPermission:Z(Bl))(void 0,`admin`)?Tn((F(),B(r,{key:0,fluid:``,text:``,severity:`contrast`,class:`cui-icon-lg not-hover:text-surface-400`,onClick:t[24]||=e=>Ji()},{icon:q(()=>[Y(lt,{width:`100%`,height:`100%`})]),_:1})),[[Dt,{value:e.$t(`components.player.share_camera`)},void 0,{top:!0}]]):V(``,!0),Z(ke)?Tn((F(),B(r,{key:1,fluid:``,text:``,severity:`contrast`,class:I([`cui-icon-lg not-hover:text-surface-400 flipped-h`,{active:Z(je)}]),onClick:t[25]||=e=>o(`togglePip`)},{icon:q(()=>[Y(ut,{width:`100%`,height:`100%`})]),_:1},8,[`class`])),[[Dt,{value:e.$t(`components.player.toggle_pip`)},void 0,{top:!0}]]):V(``,!0),Z(Ie)?Tn((F(),B(r,{key:2,fluid:``,text:``,severity:`contrast`,class:`cui-icon-lg not-hover:text-surface-400`,onClick:Di},{icon:q(()=>[Y(dt,{width:`100%`,height:`100%`})]),_:1})),[[Dt,{value:e.$t(`components.player.capture_snapshot`)},void 0,{top:!0}]]):V(``,!0),Z(Fe)?Tn((F(),B(r,{key:3,fluid:``,text:``,severity:Z(Jt)?`danger`:`contrast`,class:I([`cui-icon-lg`,{"not-hover:text-surface-400":!Z(Jt),active:Z(qt)&&!Z(Jt)}]),onClick:t[26]||=e=>Z(Jt)?Vi():Bi()},{icon:q(()=>[Z(Jt)?(F(),B(pt,{key:0,width:`100%`,height:`100%`})):Z(qt)?(F(),B(ht,{key:2,width:`100%`,height:`100%`})):(F(),B(ht,{key:1,width:`100%`,height:`100%`}))]),_:1},8,[`severity`,`class`])),[[Dt,{value:Z(Jt)?e.$t(`components.player.finish_editing`):e.$t(`components.player.shortcuts`)},void 0,{top:!0}]]):V(``,!0)],64)),Z(ze)?Tn((F(),B(r,{key:2,disabled:Z(Dr),fluid:``,text:``,severity:`contrast`,class:I([`cui-icon-lg not-hover:text-surface-400`,{active:Z(Qt)}]),onClick:Ui},{icon:q(()=>[Z(Qt)?(F(),B(vt,{key:1,width:`100%`,height:`100%`})):(F(),B(gt,{key:0,width:`100%`,height:`100%`}))]),_:1},8,[`disabled`,`class`])),[[Dt,{value:Z(Qt)?e.$t(`components.player.hide_timeline`):e.$t(`components.player.show_timeline`)},void 0,{top:!0}]]):V(``,!0),Z(gr)?V(``,!0):Tn((F(),B(r,{key:3,fluid:``,text:``,severity:`contrast`,class:I([`cui-icon-lg`,Z(zr)?`!text-primary`:`not-hover:text-surface-400`]),onClick:Z(et)?.toggleMenu},{icon:q(()=>[Y(ue,{width:`100%`,height:`100%`})]),_:1},8,[`class`,`onClick`])),[[Dt,{value:e.$t(`components.player.options`)},void 0,{top:!0}]]),Z(Me)&&(`hasPermission`in e?e.hasPermission:Z(Bl))(void 0,`admin`)?Tn((F(),B(r,{key:4,fluid:``,text:``,severity:`contrast`,class:I([`cui-icon-lg not-hover:text-surface-400`,{active:Z(p).isOpen.value}]),onClick:t[27]||=e=>Z(p).open({cameraName:Z(vn)})},{icon:q(()=>[Z(p).isOpen.value?(F(),B(xt,{key:1,width:`100%`,height:`100%`})):(F(),B(yt,{key:0,width:`100%`,height:`100%`}))]),_:1},8,[`class`])),[[Dt,{value:e.$t(`components.player.settings`)},void 0,{top:!0}]]):V(``,!0)],6)):V(``,!0)]),_:1},8,[`pt`]),Y(Et,{ref_key:`streamMenuRef`,ref:et,items:Z(Rr),popover:{pt:{content:{class:`p-0! rounded-xl! overflow-hidden!`}}}},null,8,[`items`])],4)}}}),[[`__scopeId`,`data-v-cd2f57e5`]]),ry={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function iy(e,t){return F(),G(`svg`,ry,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5l5-5m-5-7v12`},null,-1)]])}var ay=W({name:`tabler-download`,render:iy}),oy={class:`camera-stream-event-container`},sy={class:`stream-wrapper`},cy={key:0,class:`ai-description-overlay`},ly={class:`min-w-0`},uy={class:`text-sm font-semibold text-white`},dy={class:`text-xs text-white/85 mt-1`},fy=ml(hn({__name:`CameraStreamEvent`,props:{camera:{},eventTimestamp:{}},setup(e,{expose:t}){let n=e,r=Nn(),i=ra(),a=$e(),{t:o}=a,s=hr(),{mdBreakpoint:c}=al(),l=on(`dialogRefProps`),u=on(`dialogHeaderToggles`,{}),{plugin:d}=We(`@camera.ui/camera-ui-nvr`),{camera:f,eventTimestamp:p}=An(n),m=un(`cameraCardRef`),h=un(`cuiTimelineRef`),g=K(!1),_=K(),v=K(!1),y=!1,b=Ot(U(()=>f.value._id),{sourceRole:_}),x=U(()=>!!l.loading?.value),S=U(()=>u[0]??!1),C=U(()=>h.value?.currentEventDescription),w=U(()=>!!h.value?.currentEvent),T=U(()=>h.value?.isLive??!0),E=U(()=>({locale:a.locale.value,dayNames:s.config.locale?.dayNames,dayNamesShort:s.config.locale?.dayNamesShort,monthNames:s.config.locale?.monthNames,monthNamesShort:s.config.locale?.monthNamesShort}));async function ee(){if(v.value)return;let e=h.value?.currentEvent;if(!e)return;let t=d.value;if(t?.nvrExport){v.value=!0;try{let n=await t.nvrExport(e.cameraId,e.startMs*1e3,e.endMs*1e3);await gl({url:n.url,filename:n.filename})}catch(e){r.error(`Download failed:`,e),i.add({severity:`error`,summary:o(`views.recordings.download_failed`),detail:Bw(e),life:5e3})}finally{v.value=!1}}}function D(e){m.value?.timelineScroll(e)}function O(){let e=b.currentTimestamp.value>0?Math.floor(b.currentTimestamp.value/1e3):p.value;return e?`/cameras/${f.value.name}?startTs=${e}`:`/cameras/${f.value.name}`}return P([w,T,v],([e,t])=>{if(!l.headerActions)return;let n=[];n.push({icon:nu,tooltip:o(`components.player.ai_descriptions`),toggle:!0,onClick:()=>{}}),!t&&e&&d.value&&n.push({icon:ay,tooltip:o(`views.recordings.download`),onClick:ee,loading:v.value}),l.headerActions.value=n},{immediate:!0}),p.value&&(b.mode.value=`play`,b.loading.value=!0),P([d,p],([e,t])=>{!e||!t||y||(y=!0,b.play(t*1e3))},{immediate:!0}),Gt(()=>{setTimeout(()=>{g.value=!0},300)}),t({isLoading:x,resolveGoTo:O}),(e,t)=>{let n=ny,r=nu;return F(),G(`div`,oy,[J(`div`,sy,[(F(),B(n,{ref_key:`cameraCardRef`,ref:m,key:Z(f).name,"source-role":Z(_),"onUpdate:sourceRole":t[0]||=e=>_n(_)?_.value=e:null,"streaming-mode":`webrtc`,"camera-info":Z(f).name,"flat-card":``,"card-props":{pt:{root:{class:{"!rounded-md":!0}}}},"camera-name-overlay":!1,toolbar:!1,subcontrol:!0,"subcontrol-quality-button":!0,"subcontrol-activity-mode-button":!1,"subcontrol-ptz-button":!1,"subcontrol-streaming-mode-button":!1,"control-pip-button":!1,"control-microphone-button":!1},null,8,[`source-role`,`camera-info`])),Y(nn,{"enter-active-class":`transition-all duration-300 ease-out`,"enter-from-class":`opacity-0 -translate-y-2`,"enter-to-class":`opacity-100 translate-y-0`,"leave-active-class":`transition-all duration-200 ease-in`,"leave-from-class":`opacity-100 translate-y-0`,"leave-to-class":`opacity-0 -translate-y-2`},{default:q(()=>[Z(C)&&Z(S)?(F(),G(`div`,cy,[Y(r,{class:`w-4 h-4 text-white/90 shrink-0 mt-0.5`}),J(`div`,ly,[J(`p`,uy,L(Z(C).title),1),J(`p`,dy,L(Z(C).description),1)])])):V(``,!0)]),_:1})]),(F(),B(Z(gt),{ref_key:`cuiTimelineRef`,ref:h,key:Z(f).name,"camera-ids":[Z(f)._id],"initial-timestamp":Z(p),loading:!Z(g),type:Z(c)?`vertical`:`horizontal`,"ignore-bottom-safe-area":Z(c),"show-segments":!1,"show-zoom":!1,"show-date":!1,"md-breakpoint":Z(c),class:I([`flex w-full border-t-[1px] border-color shrink-0`,Z(c)?`h-full`:`h-[200px]`]),"card-class":{"mt-auto":!Z(c)},"flat-card":``,"locale-settings":Z(E),onScrolling:D},null,8,[`camera-ids`,`initial-timestamp`,`loading`,`type`,`ignore-bottom-safe-area`,`md-breakpoint`,`class`,`card-class`,`locale-settings`]))])}}}),[[`__scopeId`,`data-v-7965d949`]]),py={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function my(e,t){return F(),G(`svg`,py,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 12h4l3 8l4-16l3 8h4`},null,-1)]])}var hy=W({name:`tabler-activity`,render:my}),gy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _y(e,t){return F(),G(`svg`,gy,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M5 13a7 7 0 1 0 14 0a7 7 0 1 0-14 0`}),J(`path`,{d:`M12 10v3h2M7 4L4.25 6M17 4l2.75 2`})],-1)]])}var vy=W({name:`tabler-alarm`,render:_y}),yy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function by(e,t){return F(),G(`svg`,yy,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m12.802 2.165l5.575 2.389c.48.206.863.589 1.07 1.07l2.388 5.574c.22.512.22 1.092 0 1.604l-2.389 5.575c-.206.48-.589.863-1.07 1.07l-5.574 2.388c-.512.22-1.092.22-1.604 0l-5.575-2.389a2.04 2.04 0 0 1-1.07-1.07l-2.388-5.574a2.04 2.04 0 0 1 0-1.604l2.389-5.575c.206-.48.589-.863 1.07-1.07l5.574-2.388a2.04 2.04 0 0 1 1.604 0M12 8v4m0 4h.01`},null,-1)]])}var xy=W({name:`tabler-alert-octagon`,render:by}),Sy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cy(e,t){return F(),G(`svg`,Sy,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M16 4h4v4m-5 1l5-5M4 20l5-5m7 5h4v-4M4 4l16 16`},null,-1)]])}var wy=W({name:`tabler-arrows-cross`,render:Cy}),Ty={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ey(e,t){return F(),G(`svg`,Ty,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M6 19a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0M2 5h2.5l1.632 4.897A6 6 0 0 0 11.825 14H14.5a5.5 5.5 0 0 0 0-11H14v6M6 9h14M9 17l1-3m6 0l1 3`},null,-1)]])}var Dy=W({name:`tabler-baby-carriage`,render:Ey}),Oy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ky(e,t){return F(),G(`svg`,Oy,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3H4a4 4 0 0 0 2-3v-3a7 7 0 0 1 4-6M9 17v1a3 3 0 0 0 6 0v-1m6-10.273A11.05 11.05 0 0 0 18.206 3M3 6.727A11.05 11.05 0 0 1 5.792 3`},null,-1)]])}var Ay=W({name:`tabler-bell-ringing`,render:ky}),jy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function My(e,t){return F(),G(`svg`,jy,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M3 12h1m8-9v1m8 8h1M5.6 5.6l.7.7m12.1-.7l-.7.7M9 16a5 5 0 1 1 6 0a3.5 3.5 0 0 0-1 3a2 2 0 0 1-4 0a3.5 3.5 0 0 0-1-3m.7 1h4.6`},null,-1)]])}var Ny=W({name:`tabler-bulb`,render:My}),Py={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Fy(e,t){return F(),G(`svg`,Py,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M5 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0m10 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0`}),J(`path`,{d:`M5 17H3v-6l2-5h9l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H9m-6-6h15m-6 0V6`})],-1)]])}var Iy=W({name:`tabler-car`,render:Fy}),Ly={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ry(e,t){return F(),G(`svg`,Ly,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M8 17a2 2 0 1 0 4 0a2 2 0 1 0-4 0`}),J(`path`,{d:`m7 6l4 5h1a2 2 0 0 1 2 2v4h-2m-4 0H3m0-6h8m-6 0V6m2 0H3m11 2V6m5 6h2m-3.5 3.5L19 17m-1.5-8.5L19 7`})],-1)]])}var zy=W({name:`tabler-car-crash`,render:Ry}),By={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Vy(e,t){return F(),G(`svg`,By,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M20 3v10a8 8 0 1 1-16 0V3l3.432 3.432A7.96 7.96 0 0 1 12 5c1.769 0 3.403.574 4.728 1.546z`}),J(`path`,{d:`M2 16h5l-4 4m19-4h-5l4 4m-10-4a1 1 0 1 0 2 0a1 1 0 1 0-2 0m-2-5v.01m6-.01v.01`})],-1)]])}var Hy=W({name:`tabler-cat`,render:Vy}),Uy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Wy(e,t){return F(),G(`svg`,Uy,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M11 5h2m6 7q-1 8-5 8h-4q-4 0-5-8`}),J(`path`,{d:`M11 16q0 1 1 1c1 0 1-.333 1-1zm1 2v2m-2-9v.01m4-.01v.01M5 4l6 .97l-6.238 6.688a1.02 1.02 0 0 1-1.41.111a.95.95 0 0 1-.327-.954zm14 0l-6 .97l6.238 6.688c.358.408.989.458 1.41.111a.95.95 0 0 0 .327-.954z`})],-1)]])}var Gy=W({name:`tabler-dog`,render:Wy}),Ky={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function qy(e,t){return F(),G(`svg`,Ky,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14 12v.01M3 21h18M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16`},null,-1)]])}var Jy=W({name:`tabler-door`,render:qy}),Yy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xy(e,t){return F(),G(`svg`,Yy,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 10.941c2.333-3.308.167-7.823-1-8.941c0 3.395-2.235 5.299-3.667 6.706C5.903 10.114 5 12 5 14.294C5 17.998 8.134 21 12 21s7-3.002 7-6.706c0-1.712-1.232-4.403-2.333-5.588c-2.084 3.353-3.257 3.353-4.667 2.235`},null,-1)]])}var Zy=W({name:`tabler-flame`,render:Xy}),Qy={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function $y(e,t){return F(),G(`svg`,Qy,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M8 21h8m-4-5v5m5-16l1 6c0 .887-.233 1.685-.646 2.37m-2.083 1.886c-.941.48-2.064.744-3.271.744c-3.314 0-6-1.988-6-5l.711-4.268`}),J(`path`,{d:`M10.983 6.959q.494.04 1.017.041c2.761 0 5-.895 5-2s-2.239-2-5-2c-1.716 0-3.23.346-4.13.872M3 3l18 18`})],-1)]])}var eb=W({name:`tabler-glass-off`,render:$y}),tb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nb(e,t){return F(),G(`svg`,tb,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 21H6a3 3 0 0 1-3-3v-1h10v2a2 2 0 0 0 4 0V5a2 2 0 1 1 2 2h-2m2-4H8a3 3 0 0 0-3 3v11M9 7h4m-4 4h4`},null,-1)]])}var rb=W({name:`tabler-license`,render:nb}),ib={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function ab(e,t){return F(),G(`svg`,ib,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M8 9h8m-8 4h6m4-9a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-5l-5 3v-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3z`},null,-1)]])}var ob=W({name:`tabler-message`,render:ab}),sb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function cb(e,t){return F(),G(`svg`,sb,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M9 10h.01M15 10h.01M9.5 15.25a3.5 3.5 0 0 1 5 0m3.066 2.356a2 2 0 1 0 2.897.03L19 16z`}),J(`path`,{d:`M20.865 13.517A9 9 0 0 0 21 12a9 9 0 1 0-9 9c.69 0 1.36-.076 2-.222`})],-1)]])}var lb=W({name:`tabler-mood-cry`,render:cb}),ub={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function db(e,t){return F(),G(`svg`,ub,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m12 3l8 4.5v9L12 21l-8-4.5v-9zm0 9l8-4.5M12 12v9m0-9L4 7.5m12-2.25l-8 4.5`},null,-1)]])}var fb=W({name:`tabler-package`,render:db}),pb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function mb(e,t){return F(),G(`svg`,pb,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M12 3a12 12 0 0 0 8.5 3A12 12 0 0 1 12 21A12 12 0 0 1 3.5 6A12 12 0 0 0 12 3`}),J(`path`,{d:`M11 11a1 1 0 1 0 2 0a1 1 0 1 0-2 0m1 1v2.5`})],-1)]])}var hb=W({name:`tabler-shield-lock`,render:mb}),gb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _b(e,t){return F(),G(`svg`,gb,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M18 8a3 3 0 0 1 0 6m-8-6v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-5`}),J(`path`,{d:`m12 8l4.524-3.77A.9.9 0 0 1 18 4.922v12.156a.9.9 0 0 1-1.476.692L12 14H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z`})],-1)]])}var vb=W({name:`tabler-speakerphone`,render:_b}),yb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bb(e,t){return F(),G(`svg`,yb,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M6.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0-2 0`}),J(`path`,{d:`M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592-5.592a2.41 2.41 0 0 0 0-3.408l-7.71-7.71A2 2 0 0 0 11.172 3H6a3 3 0 0 0-3 3`})],-1)]])}var xb=W({name:`tabler-tag`,render:bb}),Sb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cb(e,t){return F(),G(`svg`,Sb,[...t[0]||=[J(`g`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`},[J(`path`,{d:`M6 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0`}),J(`path`,{d:`M2 12a6 6 0 0 1 6-6h8a6 6 0 0 1 6 6a6 6 0 0 1-6 6H8a6 6 0 0 1-6-6`})],-1)]])}var wb=W({name:`tabler-toggle-left`,render:Cb}),Tb={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Eb(e,t){return F(),G(`svg`,Tb,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M8 7a4 4 0 1 0 8 0a4 4 0 0 0-8 0M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2`},null,-1)]])}var Db=W({name:`tabler-user`,render:Eb}),Ob={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function kb(e,t){return F(),G(`svg`,Ob,[...t[0]||=[J(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M15 8a5 5 0 0 1 0 8m2.7-11a9 9 0 0 1 0 14M6 15H4a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h2l3.5-4.5A.8.8 0 0 1 11 5v14a.8.8 0 0 1-1.5.5z`},null,-1)]])}var Ab={motion:hy,person:Db,vehicle:Iy,animal:Gy,package:fb,audio:W({name:`tabler-volume`,render:kb}),face:Bs,license_plate:rb,contact:Jy,doorbell:Ay,switch:wb,light:Ny,siren:vb,security_system:hb,"line-crossing":wy,other:Pc,glass_break:eb,speaking:ob,gunshot:xy,dog_bark:Gy,baby_cry:Dy,alarm:vy,scream:lb,cat:Hy,car_alarm:zy,smoke_alarm:Zy},jb=xb;function Mb(){return{icons:Ab,generic:jb}}var Nb={class:`bg-neutral-900 w-[140px] h-[140px] rounded-xl overflow-hidden relative`},Pb={key:2,class:`w-full h-full flex items-center justify-center bg-neutral-800/80`},Fb={key:4,class:`absolute inset-0 z-[3] flex items-center justify-center pointer-events-none`},Ib={key:5,class:`absolute top-1.5 left-1.5 z-[3] flex items-center gap-1`},Lb={key:6,class:`absolute inset-0 bg-black/0 group-hover:bg-black/30 transition-colors duration-200 flex flex-col items-center justify-end pb-2 gap-1 z-[2] pointer-events-none`},Rb={class:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity duration-200`},zb={key:0,class:`text-[10px] text-white/50 font-medium truncate max-w-[100px]`},Bb={class:`text-xs text-white font-medium opacity-0 group-hover:opacity-100 transition-opacity duration-200 truncate max-w-[130px] px-1`},Vb={class:`mt-2 text-center`},Hb={class:`text-xs text-muted`},Ub=1e4,Wb=ml(hn({__name:`CameraEvent`,props:{event:{},cameraName:{},camera:{},loadThumbnails:{type:Function},clickDisabled:{type:Boolean}},setup(e){let t=e,n=av(),r=on(ut,void 0),i=un(`previewCanvasRef`),a=un(`cardRef`),o=K(!1),s=K(void 0),c=K(void 0),l=K(at(t.event)),u=K(`loading`),d,f=!1,{icons:p,generic:m}=Mb(),h=U(()=>p[l.value]??m),g=U(()=>new Date(t.event.startTime).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`})),_=U(()=>t.event.state===`active`),v=U(()=>!_.value&&t.event.segments?.some(e=>e?.description)),y=U(()=>t.event.segments?.find(e=>e?.description)?.description?.title);function b(){if(!r||!t.event.endTime)return;let e=i.value;e&&(o.value=!0,r.onHoverStart(e,t.event.cameraId,t.event.id,t.event.startTime,t.event.endTime))}function x(){r&&(o.value=!1,r.onHoverEnd())}async function C(e=2){let n=await t.loadThumbnails(t.event.id,t.event.startTime);if(n){let e=pt(n,t.event);if(e.url){s.value=e.url,c.value=e.label,l.value=e.type,u.value=`loaded`;return}}if(e>0)return await new Promise(e=>setTimeout(e,500)),C(e-1);u.value=`empty`}function w(){if(t.clickDisabled||!t.camera)return;let e=_.value&&Date.now()-t.event.startTime<Ub,r=t.event.segments?.find(e=>e?.description)?.description,i=[{icon:nu,toggle:!0,onClick:()=>{}}];d=n.openComponentDialog(fy,{data:{title:t.camera.name,stayActive:!0,hideCancelButton:!0,hideConfirmButton:!0,contentProps:{camera:t.camera,eventTimestamp:e?void 0:t.event.startTime},headerActions:r?i:void 0,draggable:!0,blockDragOnSelectors:[`.p-dialog-body`],dismissableMask:!1,modal:!1,dialogContentClass:`!px-0 h-full`,goTo:`/cameras/${t.camera.name}${e?``:`?startTs=${t.event.startTime}`}`},dialogSize:{desktop:{maxWidth:`800px`,maxHeight:`calc(100vh - max(1rem, env(safe-area-inset-top, 0px)) - max(1rem, env(safe-area-inset-bottom, 0px)))`,width:`50vw`}}})}let{stop:T}=E(a,([e])=>{e.isIntersecting&&!f&&(f=!0,T(),C())},{threshold:.1});return P(()=>t.event.state,(e,t)=>{t===`active`&&e===`ended`&&C()}),P(()=>t.event.lastUpdate,()=>{_.value&&f&&C()}),Gt(()=>{requestAnimationFrame(()=>{if(!f&&a.value){let e=a.value.getBoundingClientRect();e.right>0&&e.left<window.innerWidth&&e.bottom>0&&e.top<window.innerHeight&&(f=!0,T(),C())}})}),Yt(()=>{T(),d?.close()}),(e,n)=>{let l=ru,d=S,f=hl,p=wt;return F(),G(`div`,{ref_key:`cardRef`,ref:a,class:`camera-event-card relative group cursor-pointer`,onClick:w,onMouseenter:b,onMouseleave:x},[Z(y)?(F(),B(l,{key:0})):V(``,!0),J(`div`,Nb,[Z(u)===`loading`?(F(),B(d,{key:0,class:`w-full h-full rounded-xl`,width:`140px`,height:`140px`})):Z(s)?(F(),B(f,{key:1,src:Z(s),alt:t.cameraName,class:`pointer-events-none w-full h-full transition-transform duration-300 group-hover:scale-105`,"image-style":{objectFit:`cover`},width:`140px`,height:`140px`,"image-container-class":`w-full h-full`},null,8,[`src`,`alt`])):(F(),G(`div`,Pb,[(F(),B(cn(Z(h)),{class:`w-8 h-8 text-white/20`}))])),Z(r)?Tn((F(),G(`canvas`,{key:3,ref_key:`previewCanvasRef`,ref:i,class:`absolute inset-0 w-full h-full object-cover pointer-events-none z-[1]`},null,512)),[[wn,Z(o)]]):V(``,!0),Z(r)&&Z(o)&&Z(r).isLoading.value&&!Z(v)?(F(),G(`div`,Fb,[Y(p,{class:`w-[24px] h-[24px] m-0`,"stroke-width":`3`})])):V(``,!0),Z(_)?(F(),G(`div`,Ib,[...n[0]||=[J(`span`,{class:`relative flex h-2.5 w-2.5`},[J(`span`,{class:`animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75`}),J(`span`,{class:`relative inline-flex rounded-full h-2.5 w-2.5 bg-green-500`})],-1)]])):V(``,!0),Z(s)?(F(),G(`div`,Lb,[J(`div`,Rb,[(F(),B(cn(Z(h)),{class:`w-3.5 h-3.5 text-white/50`})),Z(c)?(F(),G(`span`,zb,L(Z(c)),1)):V(``,!0)]),J(`span`,Bb,L(t.cameraName),1)])):V(``,!0)]),J(`div`,Vb,[J(`p`,Hb,L(Z(g)),1)])],544)}}}),[[`__scopeId`,`data-v-9b0b497e`]]),Gb={key:0,class:`absolute top-[50px] left-[50%] translate-x-[-50%] z-2 px-3 py-2 text-shadow-md`},Kb={class:`text-sm text-color font-medium`},qb=152,Jb=172,Yb=5,Xb=hn({__name:`CuiCameraEvents`,props:{cameras:{}},setup(e){let t=e,{isTouch:n}=ol();if(!n.value&&typeof VideoDecoder<`u`){let e=ke({cacheSize:20});Mn(ut,e),nt(()=>e.dispose())}let r,{cameras:i}=An(t),a=un(`containerRef`),o=un(`scrollContainerRef`),s=K(!0),c=K(!1),l=K({left:0,right:0}),u=K(0),{width:d}=ge(a),f=U(()=>{let e=new Map;if(i.value)for(let t of i.value)e.set(t._id,t.name);return e}),p=U(()=>{let e=new Map;if(i.value)for(let t of i.value)e.set(t._id,t);return e}),{events:m,isLoading:h,hasMore:g,loadMore:_,loadThumbnails:v}=de({availableCameraIds:U(()=>i.value?.map(e=>e._id)??[]),realtime:!0,pageSize:U(()=>{let e=d.value||800;return Math.ceil(e/qb)+10}).value,filter:{hasDetections:!0}}),{start:y}=Ae(()=>{c.value=!1},100,{immediate:!1}),b=U(()=>m.value),x=U(()=>Math.ceil((d.value||800)/qb)),C=U(()=>b.value.length<x.value&&g.value),w=U(()=>!h.value&&b.value.length===0&&!g.value),T=U(()=>b.value.length===0?15:5),E=U(()=>{let{left:e}=l.value;return{left:`${-e}px`,width:`100dvw`,paddingLeft:`${e}px`}}),ee=U(()=>{let e=l.value.left+50,t=Math.min(Math.round(45/e*100),100),n=Math.min(Math.round(58/e*100),100);return{top:`-10px`,height:`calc(100% + 20px)`,left:`${-l.value.left}px`,width:`${e}px`,background:`linear-gradient(270deg, transparent 0%, rgba(var(--ground-background-val), 0.8) ${t}%, rgba(var(--ground-background-val), 0.9) ${n}%, rgba(var(--ground-background-val), 0.95) 100%)`}}),O=U(()=>Math.max(0,Math.floor(u.value/qb)-Yb)),te=U(()=>{let e=x.value;return Math.min(b.value.length,Math.ceil(u.value/qb)+e+Yb)}),ne=U(()=>b.value.slice(O.value,te.value)),re=U(()=>O.value*qb);function ie(){let e=a.value;if(!e)return;let t=e.getBoundingClientRect();l.value={left:t.left,right:window.innerWidth-t.right}}function k(){let e=o.value;e&&(u.value=0,Ft(()=>{e.scrollTo({left:0,behavior:`smooth`})}))}function oe(){let e=o.value;e&&(u.value=e.scrollLeft,s.value=e.scrollLeft<5)}function se(){yt(o,{disableTextSelect:!0,threshold:10,onSwipe:e=>{b.value.length===0&&(h.value||C.value||w.value)||(c.value=!0,o.value?.classList.add(`cursor-grabbing`),o.value?.scrollBy({left:-e.movementX,behavior:`smooth`}))},onSwipeEnd:()=>{o.value?.classList.remove(`cursor-grabbing`),y()}})}return D(window,`resize`,ie),D(o,`scroll`,oe,{passive:!0}),D(o,`wheel`,e=>{b.value.length===0&&(h.value||C.value||w.value)||Math.abs(e.deltaY)>Math.abs(e.deltaX)&&(e.preventDefault(),o.value?.scrollBy({left:e.deltaY}))},{passive:!1}),ft(o,_,{distance:300,direction:`right`,canLoadMore:()=>g.value}),P(d,()=>ie()),P(()=>b.value[0]?.id,e=>{if(!e||e===r)return;let t=r===void 0;if(r=e,t)return;let n=o.value,i=n?.scrollLeft||0;Ft(i<5?()=>{o.value?.scrollTo({left:0,behavior:`smooth`})}:()=>{n&&(n.scrollLeft=i+qb)})}),P([C,()=>h.value],([e,t])=>{e&&!t&&_()}),Gt(()=>{ie();let e=document.getElementById(`container`);e&&D(e,`transitionend`,ie),n.value||se()}),(e,t)=>{let n=S,r=Wb,i=$l,u=ae;return F(),G(`div`,{ref_key:`containerRef`,ref:a,class:`relative min-w-0`,style:X({height:`${Jb}px`})},[J(`div`,{ref_key:`scrollContainerRef`,ref:o,class:I([`absolute top-0 overflow-x-auto overflow-y-hidden hide-scrollbar overscroll-x-contain`,{"overflow-x-hidden!":Z(b).length===0&&(Z(h)||Z(C)||Z(w))}]),style:X(Z(E))},[J(`div`,{class:`relative`,style:X({width:`${Z(b).length*qb}px`,height:`${Jb}px`})},[J(`div`,{class:`absolute top-0 left-0 flex`,style:X({transform:`translateX(${Z(re)}px)`})},[Z(b).length===0&&(Z(h)||Z(C)||Z(w))?(F(!0),G(z,{key:0},Lt(Z(T),e=>(F(),G(`div`,{key:`skeleton-${e}`,class:`event-card flex flex-col items-center justify-center w-[140px] mr-3`},[Y(n,{class:`rounded-xl`,width:`140px`,height:`140px`,animation:Z(w)?`none`:`wave`},null,8,[`animation`]),Y(n,{class:`mt-2`,width:`50px`,height:`16px`,animation:Z(w)?`none`:`wave`},null,8,[`animation`])]))),128)):(F(!0),G(z,{key:1},Lt(Z(ne),e=>(F(),G(`div`,{key:e.id,class:`event-card flex-none w-[140px] mr-3`},[Y(r,{event:e,"camera-name":Z(f).get(e.cameraId),camera:Z(p).get(e.cameraId),"load-thumbnails":Z(v),"click-disabled":Z(c)},null,8,[`event`,`camera-name`,`camera`,`load-thumbnails`,`click-disabled`])]))),128))],4)],4)],6),Z(w)&&!Z(h)&&!Z(C)?(F(),G(`div`,Gb,[J(`span`,Kb,L(e.$t(`components.camera_events.no_events`)),1)])):V(``,!0),!Z(s)&&Z(l).left>0?(F(),G(`div`,{key:1,class:`absolute pointer-events-none z-1`,style:X(Z(ee))},null,4)):V(``,!0),Y(nn,{name:`fade-2`},{default:q(()=>[!Z(s)&&Z(b).length>0?(F(),B(u,{key:0,rounded:``,severity:`secondary`,class:`absolute left-1 cui-icon-md shadow-md z-2 opacity-70 hover:opacity-100 transition-opacity`,style:{top:`70px`,transform:`translateY(-50%)`},onClick:k},{icon:q(()=>[Y(i,{width:`100%`,height:`100%`})]),_:1})):V(``,!0)]),_:1})],4)}}}),Zb=vn(new Map),Qb=xn();function $b(){return{hasSlot:e=>(Zb.get(e)||0)>0,registerSlot:e=>{Zb.set(e,(Zb.get(e)||0)+1),Yt(()=>{let t=Zb.get(e)||0;t<=1?Zb.delete(e):Zb.set(e,t-1)})},registerScrollToTop:e=>{Qb.value=e,Yt(()=>{Qb.value===e&&(Qb.value=void 0)})},scrollToTop:()=>{Qb.value?Qb.value():window.scrollTo({top:0,behavior:`smooth`})}}}var ex=hn({__name:`CuiTopbarSlot`,props:{position:{}},setup(e){let t=e,{smBreakpoint:n}=al(),{registerSlot:r}=$b();return r(t.position),(t,r)=>Z(n)?(F(),B(Dn,{key:0,to:`#cui-topbar-${e.position}`,defer:``},[sn(t.$slots,`default`)],8,[`to`])):V(``,!0)}}),tx={viewBox:`0 0 12 12`,width:`1.2em`,height:`1.2em`};function nx(e,t){return F(),G(`svg`,tx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10M5 4h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1`},null,-1)]])}var rx=W({name:`fluent-record-stop-12-filled`,render:nx}),ix={viewBox:`0 0 20 20`,width:`1.2em`,height:`1.2em`};function ax(e,t){return F(),G(`svg`,ix,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6 3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm6.33 3.624a.5.5 0 0 1 .046.705l-3.5 4a.5.5 0 0 1-.73.025l-2-2a.5.5 0 1 1 .708-.708l1.622 1.622l3.148-3.597a.5.5 0 0 1 .705-.047M5.753 16c.55.614 1.347 1 2.236 1h4.5a4.5 4.5 0 0 0 4.5-4.5V8c0-.884-.383-1.68-.991-2.228V11q0 .15-.01.299v1.2a3.5 3.5 0 0 1-3.5 3.5h-1.434l-.056.001z`},null,-1)]])}var ox=W({name:`fluent-select-all-on-20-filled`,render:ax}),sx={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function cx(e,t){return F(),G(`svg`,sx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M2 10.5A4.5 4.5 0 0 1 6.5 6h10a4.5 4.5 0 0 1 4.5 4.5v11a4.5 4.5 0 0 1-4.5 4.5h-10A4.5 4.5 0 0 1 2 21.5zm27.996-.746c0-1.814-2.036-2.882-3.529-1.852l-3.967 2.74v10.716l3.968 2.74c1.492 1.03 3.528-.038 3.528-1.852z`},null,-1)]])}var lx=W({name:`fluent-video-32-filled`,render:cx}),ux={viewBox:`0 0 32 32`,width:`1.2em`,height:`1.2em`};function dx(e,t){return F(),G(`svg`,ux,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`m20.923 22.337l7.37 7.37a1 1 0 0 0 1.414-1.414l-26-26a1 1 0 0 0-1.414 1.414L4.884 6.3A4.5 4.5 0 0 0 2 10.5v11A4.5 4.5 0 0 0 6.5 26h10c2.2 0 4.03-1.578 4.423-3.663m1.577-3.374l5.52 5.519c1.056-.134 1.976-1.017 1.976-2.236V9.754c0-1.814-2.036-2.882-3.528-1.852l-3.968 2.74zM9.537 6L21 17.463V10.5A4.5 4.5 0 0 0 16.5 6z`},null,-1)]])}var fx=W({name:`fluent-video-off-32-filled`,render:dx}),px={viewBox:`0 0 20 20`,width:`1.2em`,height:`1.2em`};function mx(e,t){return F(),G(`svg`,px,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M10.5 4A2.5 2.5 0 0 1 13 6.5v7a2.5 2.5 0 0 1-2 2.45V12.5A3.5 3.5 0 0 0 7.5 9h-4c-.537 0-1.045.12-1.5.337V6.5A2.5 2.5 0 0 1 4.5 4zm3.5 8.082V7.93l2.77-2.313a.75.75 0 0 1 1.23.575v7.668a.75.75 0 0 1-1.236.57zM1 12.5A2.5 2.5 0 0 1 3.5 10h4a2.5 2.5 0 0 1 2.5 2.5v4A2.5 2.5 0 0 1 7.5 19h-4A2.5 2.5 0 0 1 1 16.5zm4.02.034a.45.45 0 0 0-.447-.037a.5.5 0 0 0-.156.108a.5.5 0 0 0-.145.357v3.075a.5.5 0 0 0 .145.358a.6.6 0 0 0 .158.11a.45.45 0 0 0 .323.02a.5.5 0 0 0 .13-.064l2.296-1.567a.47.47 0 0 0 .163-.185a.54.54 0 0 0-.003-.487a.5.5 0 0 0-.168-.182z`},null,-1)]])}var hx=W({name:`fluent-video-recording-20-filled`,render:mx}),gx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function _x(e,t){return F(),G(`svg`,gx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6 19a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7H6zM8 9h8v10H8zm7.5-5l-1-1h-5l-1 1H5v2h14V4z`},null,-1)]])}var vx=W({name:`mdi-delete-outline`,render:_x}),yx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function bx(e,t){return F(),G(`svg`,yx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M18 8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h9V6a3 3 0 0 0-3-3a3 3 0 0 0-3 3H7a5 5 0 0 1 5-5a5 5 0 0 1 5 5v2zm-6 9a2 2 0 0 0 2-2a2 2 0 0 0-2-2a2 2 0 0 0-2 2a2 2 0 0 0 2 2`},null,-1)]])}var xx=W({name:`mdi-lock-open`,render:bx}),Sx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Cx(e,t){return F(),G(`svg`,Sx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M21 3H3c-.6 0-1 .4-1 1v6c0 .6.4 1 1 1h18c.6 0 1-.4 1-1V4c0-.6-.4-1-1-1m0 10H3c-.6 0-1 .4-1 1v6c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-6c0-.6-.4-1-1-1`},null,-1)]])}var wx=W({name:`mdi-view-agenda`,render:Cx}),Tx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Ex(e,t){return F(),G(`svg`,Tx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M3 11h8V3H3m0 18h8v-8H3m10 8h8v-8h-8m0-10v8h8V3`},null,-1)]])}var Dx=W({name:`mdi-view-grid`,render:Ex}),Ox={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function kx(e,t){return F(),G(`svg`,Ox,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M7 12a2 2 0 1 1-4 0q0-.053.005-.102A1.996 1.996 0 0 1 5 10a2 2 0 0 1 2 2m7 0a2 2 0 1 1-4 0q0-.053.005-.102A1.996 1.996 0 0 1 12 10a2 2 0 0 1 2 2m7 0a2 2 0 1 1-4 0q0-.053.005-.102A1.996 1.996 0 0 1 19 10a2 2 0 0 1 2 2`},null,-1)]])}var Ax=W({name:`tabler-dots-filled`,render:kx}),jx={class:`flex flex-col`},Mx={class:`flex flex-row items-center justify-center gap-2`},Nx={key:0,class:`events-section mb-4`},Px={key:0,class:`page-title mb-2`},Fx={class:`flex flex-col flex-1 overflow-x-hidden`},Ix={key:0,class:`page-title`},Lx={class:`flex flex-1 min-h-0 flex-col items-center justify-center w-full gap-4 py-16`,key:`no-cameras`},Rx={class:`w-16 h-16 rounded-full bg-primary-500/10 flex items-center justify-center`},zx={class:`flex flex-col items-center gap-1 max-w-[400px] text-center`},Bx={class:`text-color font-semibold text-base`},Vx={class:`text-muted text-sm`},Hx={key:`defaultView`},Ux={key:`groupedView`,class:`flex flex-col gap-6`},Wx={class:`text-sm font-semibold text-muted uppercase tracking-wide mb-2`},Gx=ml(hn({__name:`Home`,setup(e){let t=W_(()=>R(()=>import(`./CameraConsole-e5MVc4mo.js`),__vite__mapDeps([7,1,2,8,9,10,11,12]),import.meta.url)),n=new Jh,r=I_(),i=av(),a=ra(),o=tn(),s=rr(),{t:c}=$e(),{smBreakpoint:l}=al(),{isTouch:u}=ol(),{width:d,height:f}=rl(),{uiSettings:p}=er(Yc()),{data:m,isLoading:h}=n.getCamerasQuery({page:1,pageSize:-1}),g=xn({}),_=U(()=>h.value),v=U(()=>Bl(void 0,`admin`)),y=U(()=>u.value?Tr:Cr),b=U(()=>p.value.cameras.viewMode??`default`),x=U(()=>`repeat(auto-fill, minmax(${l.value?`100%`:`300px`}, 1fr))`),C=U(()=>{let e=x.value;return T.value.length<2?`${e} 50%`:e}),w=U(()=>{let e=l.value?1:Math.max(1,Math.floor(d.value/300)),t=d.value/e*9/16+8;return e*Math.max(1,Math.ceil(f.value/t))}),T=U(()=>m.value?.result?ee(m.value.result,p.value.cameras.order||[]):[]),E=U(()=>{if(!m.value?.result)return[];let e=p.value.cameras.groupOrder||{},t=new Map;for(let e of m.value.result){let n=e.room||`Default`;t.has(n)||t.set(n,[]),t.get(n).push(e)}let n=[];for(let[r,i]of t){let t=e[r]||[];n.push({room:r,cameras:ee(i,t)})}return n.sort((e,t)=>e.room===`Default`?-1:t.room===`Default`?1:e.room.localeCompare(t.room)),n});function ee(e,t){return[...e].sort((e,n)=>{let r=t.indexOf(e._id),i=t.indexOf(n._id);return r!==-1&&i!==-1?r-i:r===-1?i===-1?e.name.localeCompare(n.name):1:-1})}function D(){p.value.cameras.viewMode=b.value==="default"?`grouped`:`default`}function O(e){let t=T.value.find(t=>t._id===e);return{camera:t,index:t?T.value.indexOf(t):-1}}function te(e,t){let{index:n}=O(e);if(n===-1||n===t)return;let r=T.value.map(e=>e._id),[i]=r.splice(n,1);r.splice(t,0,i),p.value.cameras.order=r}function ne(e,t){let n=E.value.find(t=>t.room===e);if(!n)return{camera:void 0,index:-1};let r=n.cameras.find(e=>e._id===t);return{camera:r,index:r?n.cameras.indexOf(r):-1}}function re(e,t,n){let{index:r}=ne(e,t);if(r===-1||r===n)return;let i=E.value.find(t=>t.room===e);if(!i)return;let a=i.cameras.map(e=>e._id),[o]=a.splice(r,1);a.splice(n,0,o);let s={...p.value.cameras.groupOrder||{}};s[e]=a,p.value.cameras.groupOrder=s}let ie=K(!1),k=K(new Set),oe=K(!1),se=U(()=>T.value.filter(e=>k.value.has(e._id))),ce=U(()=>T.value.length>0&&T.value.every(e=>k.value.has(e._id))),A=U(()=>se.value.length>0&&se.value.every(e=>e.disabled)),le=U(()=>se.value.length>0&&se.value.every(e=>e.detectionSettings?.snooze)),ue=U(()=>se.value.length>0&&se.value.every(e=>e.recordingSettings?.enabled!==!1));function de(){ie.value=!0}function fe(){ie.value=!1,k.value=new Set}function pe(){k.value=ce.value?new Set:new Set(T.value.map(e=>e._id))}function me(e){if(!ie.value){s.push(`/cameras/${e.name}`);return}let t=new Set(k.value);t.has(e._id)?t.delete(e._id):t.add(e._id),k.value=t}async function j(e,t){if(!(!se.value.length||oe.value)){oe.value=!0;try{for(let t of se.value)await e(t);a.add({severity:`success`,detail:t,life:3e3})}catch(e){a.add({severity:`error`,detail:Bw(e),life:4e3})}finally{oe.value=!1,await o.refetchQueries({queryKey:[`camerasList`]})}}}async function he(){let e=!A.value;await j(t=>Eh({cameraname:t.name,cameraData:{disabled:e}}),c(`components.toast.camera_updated`))}async function ge(){let e=!le.value;await j(t=>Eh({cameraname:t.name,cameraData:{detectionSettings:{snooze:e}}}),c(`components.toast.camera_updated`))}async function _e(){let e=!ue.value;await j(t=>Eh({cameraname:t.name,cameraData:{recordingSettings:{enabled:e}}}),c(`components.toast.camera_updated`))}function ve(){se.value.length&&i.openTextDialog({data:{title:c(`components.dialog.title.confirm`),contentText:c(`components.dialog.message.confirm_remove_selected`,{count:se.value.length}),confirmText:c(`components.form.button.remove`),confirmButtonProps:{severity:`danger`}},onConfirm:async()=>{await j(e=>Kh({cameraname:e.name}),c(`components.toast.cameras_removed`)),fe()}})}function ye(e){i.openComponentDialog(t,{data:{title:c(`components.dialog.title.log`),confirmText:c(`components.form.button.download`),loading:_,stayActive:!0,contentProps:{cameraName:e},dialogContentClass:`not-md:px-0 h-full md:h-[50vh]`}})}return(e,t)=>{let n=ex,i=Xb,a=S,o=vo,s=Xl,c=ae,u=ql,d=ul,f=ll;return F(),G(`div`,jx,[Y(n,{position:`center`},{default:q(()=>[J(`div`,Mx,[Y(Z(jn),{src:Z(Mw)(`logo_animated.svg`),width:`18px`,height:`18px`,title:`camera.ui`,"aria-label":`camera.ui`},null,8,[`src`]),t[2]||=J(`span`,{class:`font-semibold text-xl truncate`},`camera.ui`,-1)])]),_:1}),Z(p).cameras.showEvents&&(Z(_)||Z(T).length)?(F(),G(`div`,Nx,[Z(l)?V(``,!0):(F(),G(`h1`,Px,L(e.$t(`components.camera_events.title`)),1)),Y(i,{cameras:Z(m)?.result},null,8,[`cameras`])])):V(``,!0),J(`div`,Fx,[Z(_)||Z(T).length?(F(),G(`h1`,Ix,L(e.$t(`views.cameras.title`)),1)):V(``,!0),Y(nn,{name:`fade-2`,mode:`out-in`},{default:q(()=>[Z(_)?(F(),G(`div`,{key:`loading`,class:`grid w-full gap-2`,style:X({gridTemplateColumns:Z(x)})},[(F(!0),G(z,null,Lt(Z(w),e=>(F(),B(a,{key:e,class:`aspect-video !h-auto cui-card`}))),128))],4)):Z(T).length?Z(b)==="default"?(F(),G(`div`,Hx,[J(`div`,{class:`grid w-full gap-1`,style:X({gridTemplateColumns:Z(C)})},[Y(Z(xr),{backend:Z(y)},{default:q(()=>[Y(Pt,{name:`list`},{default:q(()=>[(F(!0),G(z,null,Lt(Z(T),e=>(F(),B(u,{key:e._id,camera:e,"find-card":O,"move-card":te,"no-drag":Z(p).cameras.dragDisabled||Z(ie),"selection-mode":Z(ie),selected:Z(k).has(e._id),"snapshot-ref":t=>Z(g)[e.name]=t,class:`shadow-lg rounded-xl transition-transform`,"view-transition":``,onRefreshSnapshot:t=>Z(g)[e.name]?.refresh(),onOpenConsole:t=>ye(e.name),onOpenSettings:t=>Z(r).open({cameraName:e.name}),onClick:t=>me(e)},null,8,[`camera`,`no-drag`,`selection-mode`,`selected`,`snapshot-ref`,`onRefreshSnapshot`,`onOpenConsole`,`onOpenSettings`,`onClick`]))),128))]),_:1})]),_:1},8,[`backend`])],4)])):(F(),G(`div`,Ux,[(F(!0),G(z,null,Lt(Z(E),t=>(F(),G(`div`,{key:t.room},[J(`h2`,Wx,L(t.room===`Default`?e.$t(`components.form.label.room_default`):t.room),1),J(`div`,{class:`grid w-full gap-1`,style:X({gridTemplateColumns:Z(C)})},[Y(Z(xr),{backend:Z(y)},{default:q(()=>[Y(Pt,{name:`list`},{default:q(()=>[(F(!0),G(z,null,Lt(t.cameras,e=>(F(),B(u,{key:e._id,camera:e,"find-card":e=>ne(t.room,e),"move-card":(e,n)=>re(t.room,e,n),"no-drag":Z(p).cameras.dragDisabled||Z(ie),"selection-mode":Z(ie),selected:Z(k).has(e._id),"snapshot-ref":t=>Z(g)[e.name]=t,class:`shadow-lg rounded-xl transition-transform`,"view-transition":``,onRefreshSnapshot:t=>Z(g)[e.name]?.refresh(),onOpenConsole:t=>ye(e.name),onOpenSettings:t=>Z(r).open({cameraName:e.name}),onClick:t=>me(e)},null,8,[`camera`,`find-card`,`move-card`,`no-drag`,`selection-mode`,`selected`,`snapshot-ref`,`onRefreshSnapshot`,`onOpenConsole`,`onOpenSettings`,`onClick`]))),128))]),_:2},1024)]),_:2},1032,[`backend`])],4)]))),128))])):(F(),G(`div`,Lx,[J(`div`,Rx,[Y(o,{class:`w-8 h-8 text-primary-500`})]),J(`div`,zx,[J(`span`,Bx,L(e.$t(`views.cameras.no_cameras`)),1),J(`span`,Vx,L(e.$t(`views.cameras.no_cameras_hint`)),1)]),Z(v)?(F(),B(c,{key:0,class:`cui-button-medium mt-2`,label:e.$t(`views.cameras.get_started`),onClick:t[0]||=t=>e.$router.push(`/cameras`)},{icon:q(()=>[Y(s,{class:`w-4 h-4`})]),_:1},8,[`label`])):V(``,!0)]))]),_:1})]),Z(T).length>1?(F(),B(f,{key:1,"force-visible":Z(ie)},{default:q(()=>[Z(ie)?(F(),G(z,{key:1},[Y(d,{grouped:``,"tooltip-props":{value:e.$t(`components.form.tooltip.cancel_selection`)},"button-props":{severity:`secondary`},icon:Z(Er),"icon-props":{width:`100%`,height:`100%`},onClick:fe},null,8,[`tooltip-props`,`icon`]),Y(d,{grouped:``,"tooltip-props":{value:Z(ce)?e.$t(`components.form.tooltip.deselect_all`):e.$t(`components.form.tooltip.select_all`)},"button-props":{severity:Z(ce)?`primary`:`secondary`},icon:Z(ox),"icon-props":{width:`100%`,height:`100%`},onClick:pe},null,8,[`tooltip-props`,`button-props`,`icon`]),Y(d,{grouped:``,"tooltip-props":{value:Z(A)?e.$t(`components.form.tooltip.enable_selected`):e.$t(`components.form.tooltip.disable_selected`)},"button-props":{severity:`secondary`,disabled:!Z(k).size||Z(oe)},icon:Z(A)?Z(lx):Z(fx),"icon-props":{width:`100%`,height:`100%`},onClick:he},null,8,[`tooltip-props`,`button-props`,`icon`]),Y(d,{grouped:``,"tooltip-props":{value:Z(le)?e.$t(`components.form.tooltip.unsnooze_selected`):e.$t(`components.form.tooltip.snooze_selected`)},"button-props":{severity:`secondary`,disabled:!Z(k).size||Z(oe)},icon:Z(jl),"icon-props":{width:`100%`,height:`100%`},onClick:ge},null,8,[`tooltip-props`,`button-props`,`icon`]),Y(d,{grouped:``,"tooltip-props":{value:Z(ue)?e.$t(`components.form.tooltip.recording_off_selected`):e.$t(`components.form.tooltip.recording_on_selected`)},"button-props":{severity:`secondary`,disabled:!Z(k).size||Z(oe)},icon:Z(ue)?Z(rx):Z(hx),"icon-props":{width:`100%`,height:`100%`},onClick:_e},null,8,[`tooltip-props`,`button-props`,`icon`]),Y(d,{grouped:``,"tooltip-props":{value:e.$t(`components.form.tooltip.delete_selected`)},"button-props":{severity:`danger`,disabled:!Z(k).size||Z(oe)},icon:Z(vx),"icon-props":{width:`100%`,height:`100%`},onClick:ve},null,8,[`tooltip-props`,`button-props`,`icon`])],64)):(F(),G(z,{key:0},[Y(d,{grouped:``,"tooltip-props":{value:Z(b)==="default"?e.$t(`components.form.tooltip.view_grouped`):e.$t(`components.form.tooltip.view_default`)},"button-props":{severity:Z(b)==="default"?`secondary`:`primary`},icon:Z(b)==="default"?Z(Dx):Z(wx),"icon-props":{width:`100%`,height:`100%`},onClick:D},null,8,[`tooltip-props`,`button-props`,`icon`]),Y(d,{grouped:``,"tooltip-props":{value:Z(p).cameras.dragDisabled?e.$t(`components.form.tooltip.enable_drag`):e.$t(`components.form.tooltip.disable_drag`)},"button-props":{severity:Z(p).cameras.dragDisabled?`secondary`:`success`},icon:Z(p).cameras.dragDisabled?Z(Zm):Z(xx),"icon-props":{width:`100%`,height:`100%`},onClick:t[1]||=e=>Z(p).cameras.dragDisabled=!Z(p).cameras.dragDisabled},null,8,[`tooltip-props`,`button-props`,`icon`]),Z(v)?(F(),B(d,{key:0,grouped:``,"tooltip-props":{value:e.$t(`components.form.tooltip.select_cameras`)},"button-props":{severity:`secondary`},icon:Z(Ax),"icon-props":{width:`100%`,height:`100%`},onClick:de},null,8,[`tooltip-props`,`icon`])):V(``,!0)],64))]),_:1},8,[`force-visible`])):V(``,!0)])}}}),[[`__scopeId`,`data-v-c4f38bd9`]]),Kx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function qx(e,t){return F(),G(`svg`,Kx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M6.5 20q-2.28 0-3.89-1.57Q1 16.85 1 14.58q0-1.95 1.17-3.48q1.18-1.53 3.08-1.95q.63-2.3 2.5-3.72Q9.63 4 12 4q2.93 0 4.96 2.04Q19 8.07 19 11q1.73.2 2.86 1.5q1.14 1.28 1.14 3q0 1.88-1.31 3.19T18.5 20m-12-2h12q1.05 0 1.77-.73q.73-.72.73-1.77t-.73-1.77Q19.55 13 18.5 13H17v-2q0-2.07-1.46-3.54Q14.08 6 12 6Q9.93 6 8.46 7.46Q7 8.93 7 11h-.5q-1.45 0-2.47 1.03Q3 13.05 3 14.5T4.03 17q1.02 1 2.47 1m5.5-6`},null,-1)]])}var Jx=W({name:`mdi-cloud-outline`,render:qx}),Yx={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function Xx(e,t){return F(),G(`svg`,Yx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M20 11v2H8l5.5 5.5l-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5L8 11z`},null,-1)]])}var Zx=W({name:`mdi-arrow-left`,render:Xx}),Qx={viewBox:`0 0 25 24`,width:`1.26em`,height:`1.2em`};function $x(e,t){return F(),G(`svg`,Qx,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M25.418 12v.03c0 .543-.156 1.05-.425 1.479l.007-.012a2.77 2.77 0 0 1-1.112 1.021l-.016.007c.108.403.17.865.17 1.343v.018v-.001a6.33 6.33 0 0 1-1.518 4.08l.007-.009a10.2 10.2 0 0 1-4.052 2.936l-.069.024c-1.635.686-3.535 1.085-5.529 1.085L12.728 24h.008l-.146.001c-1.991 0-3.888-.399-5.617-1.121l.096.036a10.26 10.26 0 0 1-4.101-2.944l-.013-.016a6.3 6.3 0 0 1-1.51-4.069v-.007q.002-.707.161-1.366l-.008.04a2.86 2.86 0 0 1-1.156-1.029l-.007-.011a2.8 2.8 0 0 1-.44-1.512c0-.777.314-1.481.823-1.991a2.7 2.7 0 0 1 1.952-.83h.05h-.003h.039c.799 0 1.519.343 2.019.889l.002.002a13.14 13.14 0 0 1 7.296-2.298h.008l1.646-7.39a.48.48 0 0 1 .211-.296l.002-.001a.46.46 0 0 1 .372-.071l-.003-.001l5.234 1.149c.174-.353.435-.639.757-.838l.009-.005c.319-.2.707-.319 1.123-.319c.585 0 1.116.235 1.501.617c.385.369.624.888.624 1.463v.036v-.002v.03c0 .578-.239 1.1-.624 1.472l-.001.001a2.1 2.1 0 0 1-1.504.624a2.12 2.12 0 0 1-1.497-.617a2.03 2.03 0 0 1-.617-1.461v-.038v.002l-4.738-1.05l-1.475 6.694c2.747.02 5.293.865 7.407 2.3l-.047-.03a2.8 2.8 0 0 1 2.031-.865c.78 0 1.486.317 1.997.83c.509.496.825 1.189.825 1.955v.039V12zM5.929 14.822v.032c0 .576.236 1.097.617 1.471a2.02 2.02 0 0 0 1.463.624h.036h-.002a2.13 2.13 0 0 0 2.128-2.128v-.034c0-.575-.239-1.094-.624-1.462l-.001-.001a2.06 2.06 0 0 0-1.471-.617h-.034h.002a2.13 2.13 0 0 0-2.114 2.113v.001zm11.489 5.036a.513.513 0 0 0 0-.738a.48.48 0 0 0-.341-.142h-.014h.001h-.008a.53.53 0 0 0-.361.142a3.54 3.54 0 0 1-1.694.876l-.023.004a9.26 9.26 0 0 1-4.604-.014l.064.014a3.55 3.55 0 0 1-1.721-.882l.002.002a.53.53 0 0 0-.361-.142h-.019a.48.48 0 0 0-.341.142a.47.47 0 0 0-.16.352v.014c0 .146.061.278.16.372a4.2 4.2 0 0 0 1.65.957l.03.008a8 8 0 0 0 1.695.414l.043.005q.666.064 1.29.064t1.29-.064a8.4 8.4 0 0 0 1.796-.437l-.058.019a4.2 4.2 0 0 0 1.685-.966l-.002.002zm-.042-2.908h.034c.575 0 1.094-.239 1.462-.624l.001-.001c.381-.374.617-.895.617-1.471v-.034v.002a2.13 2.13 0 0 0-2.113-2.114h-.033c-.576 0-1.097.236-1.471.617a2.02 2.02 0 0 0-.624 1.463v.036v-.002a2.13 2.13 0 0 0 2.128 2.128z`},null,-1)]])}var eS=W({name:`fontisto-reddit`,render:$x}),tS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function nS(e,t){return F(),G(`svg`,tS,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12`},null,-1)]])}var rS=W({name:`ic-baseline-discord`,render:nS}),iS={viewBox:`0 0 24 24`,width:`1.2em`,height:`1.2em`};function aS(e,t){return F(),G(`svg`,iS,[...t[0]||=[J(`path`,{fill:`currentColor`,d:`M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2`},null,-1)]])}var oS=W({name:`mdi-github`,render:aS}),sS={class:`flex justify-center items-center draggable-region`},cS={class:`card-background border-color relative w-full sm:w-[400px] sm:rounded-2xl sm:border-[1px] shadow-none sm:shadow-xl h-full sm:h-auto sm:my-4`},lS={class:`flex flex-col h-full p-10 non-draggable-region`},uS={class:`flex flex-col items-center justify-center mb-10`},dS={class:`flex justify-between items-center`},fS={class:`flex items-center gap-1 ml-auto`},pS=hn({__name:`CuiAuthCard`,props:{logoUrl:{}},setup(e){return(t,n)=>{let r=fr,i=oS,a=ae,o=rS,s=eS;return F(),G(`div`,sS,[J(`div`,cS,[J(`div`,lS,[J(`div`,uS,[Y(Z(jn),{src:e.logoUrl,height:`60px`,title:`camera.ui`,"aria-label":`camera.ui`,class:`hover:scale-105 active:scale-105 focus:scale-105 transition-all`},null,8,[`src`]),n[3]||=J(`span`,{class:`text-2xl ml-3 mt-2 font-bold text-color`},`camera.ui`,-1)]),sn(t.$slots,`default`),Y(r,{class:`mt-15`}),J(`div`,dS,[sn(t.$slots,`footer-left`),J(`div`,fS,[Y(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[0]||=e=>t.$router.absUrl(`https://github.com/cameraui/camera.ui`,!0)},{icon:q(()=>[Y(i,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1}),Y(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[1]||=e=>t.$router.absUrl(`https://discord.gg/bBGnGcbz8N`,!0)},{icon:q(()=>[Y(o,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1}),Y(a,{severity:`secondary`,class:`cui-icon-md`,text:``,rounded:``,onClick:n[2]||=e=>t.$router.absUrl(`https://reddit.com/r/cameraui/`,!0)},{icon:q(()=>[Y(s,{class:`text-muted`,width:`100%`,height:`100%`})]),_:1})])])]),n[4]||=J(`div`,{class:`bg-primary-500 opacity-0 sm:opacity-100 absolute blur-[20px] w-[200px] h-[30px] left-[50%] -translate-x-[50%] bottom-[25px] -z-1`},null,-1)])])}}});async function mS(){return{available:!1,enrolled:!1}}async function hS(e){return!1}async function gS(e){}async function _S(e,t){return null}var vS=`cui_device_id`,yS=null,bS=null;async function xS(){if(yS)return yS;let e=localStorage.getItem(vS);if(e)return yS=e,e;let t=ee();return localStorage.setItem(vS,t),yS=t,t}async function SS(){return bS||(bS=CS(navigator.userAgent),bS)}function CS(e){let t=/Edg\//.test(e)?`Edge`:/OPR\//.test(e)||/Opera/.test(e)?`Opera`:/Firefox\//.test(e)?`Firefox`:/Chrome\//.test(e)&&!/Chromium/.test(e)?`Chrome`:/Safari\//.test(e)&&!/Chrome\//.test(e)?`Safari`:`Browser`,n=/Windows NT/.test(e)?`Windows`:/Mac OS X/.test(e)?`macOS`:/Android/.test(e)?`Android`:/iPhone|iPad|iPod/.test(e)?`iOS`:/Linux/.test(e)?`Linux`:``;return n?`${t} on ${n}`:t}var wS=Ln({username:Rn().trim().min(1,`Username is required`),password:Rn().trim().min(1,`Password is required`),rememberMe:Q().optional()}).strict(),TS=Un,ES=Bn,DS=zn,OS=Vn;function kS(e){return`requires2fa`in e&&e.requires2fa===!0}async function AS(e){return(await $.get(`/instances`,{signal:e})).data}async function jS(e){return(await $.post(`/instances`,e)).data}async function MS({id:e,data:t}){return(await $.put(`/instances/${e}`,t)).data}async function NS(e){await $.delete(`/instances/${e}`)}async function PS(e){return(await $.patch(`/instances/${e}/favorite`)).data}async function FS(e,t){return(await $.post(`/instances/${e}/login`,t?{code:t}:{})).data}async function IS(e,t){return(await $.get(`/instances/${e}/status`,{signal:t})).data}var LS=class{_queryClient=tn();toast=ra();t=ea.global.t;listQuery(){return ia({queryKey:[`instances`],queryFn:({signal:e})=>AS(e)})}statusQueries(e){return fn({queries:U(()=>gn(e).map(e=>({queryKey:[`instances`,e.id,`status`],queryFn:({signal:t})=>IS(e.id,t),refetchInterval:15e3,retry:!1})))})}createMutation(){return N({mutationFn:jS,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]}),this.toast.add({severity:`success`,detail:this.t(`views.settings.instances.added`),life:3e3})}})}updateMutation(){return N({mutationFn:MS,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]}),this.toast.add({severity:`success`,detail:this.t(`views.settings.instances.updated`),life:3e3})}})}deleteMutation(){return N({mutationFn:async e=>{await NS(e),await this._queryClient.cancelQueries({queryKey:[`instances`,e,`status`]}),this._queryClient.removeQueries({queryKey:[`instances`,e,`status`]})},onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]}),this.toast.add({severity:`success`,detail:this.t(`views.settings.instances.removed`),life:3e3})}})}toggleFavoriteMutation(){return N({mutationFn:PS,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:[`instances`]})}})}loginMutation(){return N({mutationFn:e=>FS(e),onError:()=>{}})}},RS={class:`flex flex-col gap-6`},zS={class:`text-muted`},BS={class:`flex flex-col gap-2 justify-center items-center mt-2`},VS={class:`cui-label`},HS=hn({__name:`InstanceTwoFactorPrompt`,props:{instanceName:{}},setup(e,{expose:t}){let{instanceName:n}=An(e),r=K(``),i=U(()=>r.value.length<6);async function a(){return r.value.length<6?null:r.value}return t({isDisabled:i,onConfirm:a}),(e,t)=>{let i=yr;return F(),G(`div`,RS,[J(`p`,zS,L(e.$t(`instances.two_factor_hint`,{name:Z(n)})),1),J(`div`,BS,[J(`label`,VS,L(e.$t(`views.settings.security.enter_code`)),1),Y(i,{modelValue:Z(r),"onUpdate:modelValue":t[0]||=e=>_n(r)?r.value=e:null,length:6,"integer-only":``,class:`justify-center`},null,8,[`modelValue`])])])}}}),US=3e4,WS=5e3,GS=`__home__`,KS=new Set([`localhost`,`127.0.0.1`,`::1`]),qS=Nn(`Instances`);async function JS(e,t){try{let n=AbortSignal.timeout(WS),r=t?AbortSignal.any([n,t]):n,i=await fetch(`${e}/api/health`,{signal:r});return qS.debug(`[probe]`,`${e} → ${i.ok?`OK`:`HTTP ${i.status}`}`),i.ok}catch(t){let n=t instanceof Error?t.message:String(t);return qS.debug(`[probe]`,`${e} → FAIL`,n),!1}}function YS(e){return{access:e.access_token,accessExpiresAt:e.access_token_expires_at,refresh:e.refresh_token,refreshExpiresAt:e.refresh_token_expires_at}}function XS(e,t){return{_id:t?._id??``,username:t?.username??``,email:t?.email,role:t?.role??``,firstLogin:t?.firstLogin,avatar:t?.avatar,language:`auto`,access_token:e.access,refresh_token:e.refresh??``,token_type:`Bearer`,access_token_expires_at:e.accessExpiresAt??0,refresh_token_expires_at:e.refreshExpiresAt??0,internalAddresses:[],externalAddresses:[]}}var ZS=Xn(`instances`,()=>{let e=Dw(),t=ra(),n=av(),r=tn(),{t:i}=ea.global,a=Te(`instanceTokens`,{}),o=Te(`activeInstanceId`,null),s=K(!1),c=K(null),l=K(0),u=0,d=K(null),f=K([]),p=ct(`redirectInfo`,null,{serializer:{read:e=>e?JSON.parse(e):null,write:e=>JSON.stringify(e)}}),m=U(()=>o.value===null),h=U(()=>o.value===null?null:f.value.find(e=>e.id===o.value)?.url??null);async function g(){try{if(!Bl(void 0,`admin`))return;let e=await AS();f.value=e.instances,d.value=e.homeId,qS.debug(`[fetch]`,`loaded ${e.instances.length} instances`,{homeId:e.homeId})}catch(e){qS.warn(`[fetch]`,`failed`,e)}}let _=U(()=>{let e=d.value;return f.value.filter(t=>!(e&&t.remoteHomeId&&t.remoteHomeId===e)).map(e=>{let t=a.value[e.id];return{id:e.id,name:e.name,url:e.url,hasCredentials:!!e.credentials,favorite:e.favorite??!0,userData:t?.userData??null,lastConnectedAt:t?.lastConnectedAt??null,isHome:!1}})});function v(){let e=a.value[GS],t=o.value===null?Qr().target.value?.endpoint.url??e?.url??window.location.origin:e?.url??window.location.origin;return{id:`home`,name:i(`navigation.home`),url:t,hasCredentials:!1,favorite:!1,userData:e?.userData??null,lastConnectedAt:e?.lastConnectedAt??null,isHome:!0}}let y=U(()=>{if(o.value!==null){let e=_.value.find(e=>e.id===o.value);if(e)return e}return v()}),b=U(()=>_.value.filter(e=>e.favorite)),x=U(()=>b.value.length>0||o.value!==null||p.value!==null);function S(e){return f.value.find(t=>t.id===e)?.favorite??!0}async function C(e){let{favorite:t}=await PS(e),n=f.value.find(t=>t.id===e);n&&(n.favorite=t)}async function w(e){let t=await jS(e);return f.value=[...f.value,t],t}async function T(e){await NS(e),f.value=f.value.filter(t=>t.id!==e),delete a.value[e]}async function E(e,t){let n=await MS({id:e,data:t}),r=f.value.findIndex(t=>t.id===e);r!==-1&&(f.value[r]=n)}async function ee(e,t){let n=f.value.find(t=>t.id===e);return n?JS(n.url,t):!1}function D(){let t=Qr().target.value;if(!t?.tokens.access){qS.debug(`[save-tokens]`,`skipped — no live access token`);return}let n=o.value??GS;a.value[n]={userData:XS(t.tokens,e.user??void 0),lastConnectedAt:Date.now(),url:t.endpoint.url},qS.debug(`[save-tokens]`,`slot=${n} url=${t.endpoint.url}`)}function O(){if(o.value===null){Jr.value=null,qS.debug(`[restore-override]`,`no active instance — home target`);return}let e=a.value[o.value],t=e?.url??e?.userData?.internalAddresses?.[0]??e?.userData?.externalAddresses?.[0]??null;Jr.value=t,qS.debug(`[restore-override]`,`activeId=${o.value} → ${t??`no cached url`}`)}async function te(n){if(s.value){qS.warn(`[switch]`,`ignored — another switch is already in progress`);return}let d=n===null?v():_.value.find(e=>e.id===n)??v();if(n!==null&&re(d.url)&&!await oe(d.name)){qS.debug(`[switch]`,`URL handoff declined by user`);return}let f=++u;s.value=!0,c.value=d.name,qS.debug(`[switch]`,`START targetId=${n??`home`} gen=${f}`),qS.debug(`[switch]`,`target resolved — name="${d.name}" url=${d.url} hasCreds=${d.hasCredentials}`);try{if(n!==null){let e=await JS(d.url);if(f!==u){qS.debug(`[switch]`,`aborted after probe — newer gen=${u}`);return}if(!e){qS.warn(`[switch]`,`target unreachable — ${d.url}`),t.add({severity:`warn`,detail:i(`instances.unreachable`,{name:d.name}),life:3e3});return}}let c=null;if(n!==null&&d.hasCredentials)try{let e=await FS(n);if(kS(e)){qS.debug(`[switch]`,`remote requires 2FA — prompting for code`),s.value=!1;let t=await k(n,d.name);if(f!==u)return;if(s.value=!0,!t){qS.debug(`[switch]`,`2FA prompt cancelled — aborting switch`);return}e=t}kS(e)||(c=e,qS.debug(`[switch]`,`backend relay login OK`))}catch(e){qS.warn(`[switch]`,`backend relay login FAILED — will try cached tokens`,e)}if(f!==u){qS.debug(`[switch]`,`aborted after relay-login — newer gen=${u}`);return}D();let p=n??GS,m=c?YS(c):ne(p);if(qS.debug(`[switch]`,`tokens source: ${c?`fresh`:m?`cached`:`none`} (slot=${p})`),n!==null&&re(d.url)){qS.debug(`[switch]`,`URL handoff required — leaving SPA`),await se(d,c);return}let h=Qr();if(h.reset(),qS.debug(`[switch]`,`kernel RESET`),ht(),M(),je(),r.clear(),qS.debug(`[switch]`,`vue-query cleared`),o.value=n,Jr.value=n===null?null:d.url,qS.debug(`[switch]`,`activeId=${n} instanceOverride=${Jr.value??`null`}`),m&&c&&(a.value[p]={userData:c,lastConnectedAt:Date.now(),url:d.url},e.user={_id:c._id,username:c.username,role:c.role,firstLogin:c.firstLogin,avatar:c.avatar}),m){let e={url:d.url,mode:`direct-lan`,priority:0};qS.debug(`[switch]`,`seedAndRetry → ${e.url}`),await Promise.race([h.seedAndRetry({endpoint:e,tokens:m},n??`home`),new Promise((e,t)=>setTimeout(()=>t(Error(`switch_timeout`)),US))])}else{qS.warn(`[switch]`,`no tokens — boot + route to login`),h.boot(n??`home`),e.user=null,bw.push(`/`);return}if(f!==u){qS.debug(`[switch]`,`aborted after seedAndRetry — newer gen=${u}`);return}l.value++,qS.debug(`[switch]`,`DONE gen=${f} → /home`),bw.push(`/home`)}catch(e){(e instanceof Error?e.message:String(e))===`switch_timeout`?(qS.error(`[switch]`,`TIMEOUT after ${US}ms`),t.add({severity:`error`,detail:i(`instances.switch_timeout`,{name:c.value??``}),life:3e3})):(qS.error(`[switch]`,`failed`,e),t.add({severity:`error`,detail:e,life:3e3}))}finally{f===u&&(s.value=!1,c.value=null)}}function ne(e){let t=a.value[e];return t?.userData?.access_token?YS(t.userData):null}function re(e){try{let t=new URL(e),n=new URL(window.location.origin),r=n.protocol===`https:`&&t.protocol===`http:`,i=KS.has(t.hostname)&&!KS.has(n.hostname);return r||i}catch{return!1}}function ie(e){return new Promise(t=>{let r=!1,a=e=>{r||(r=!0,t(e))};n.openComponentDialog(HS,{data:{title:i(`instances.two_factor_title`),confirmText:i(`views.login.2fa_verify`),contentProps:{instanceName:e}},onConfirm:async e=>a(e??null),onCancel:async()=>a(null)})})}async function k(e,n){for(;;){let r=await ie(n);if(!r)return null;try{let t=await FS(e,r);if(!kS(t))return t}catch(e){qS.warn(`[2fa]`,`verification failed`,e),t.add({severity:`error`,detail:i(`instances.two_factor_failed`),life:3e3})}}}async function ae(e,n){return await k(e,n)?(t.add({severity:`success`,detail:i(`instances.two_factor_completed`,{name:n}),life:3e3}),await g().catch(()=>{}),!0):!1}function oe(e){return qS.warn(`[switch]`,`target "${e}" requires URL handoff — asking user confirmation`),new Promise(t=>{let r=!1,a=e=>{r||(r=!0,t(e))};n.openTextDialog({data:{title:i(`instances.insecure_handoff_title`),confirmText:i(`instances.insecure_handoff_confirm`),contentText:i(`instances.insecure_handoff_message`,{name:e}),confirmButtonProps:{severity:`danger`}},onConfirm:()=>a(!0),onCancel:()=>a(!1)})})}async function se(e,t){let n={_reset:!0,_sourceUrl:window.location.origin,_instanceName:e.name};t&&Object.assign(n,t);let r=encodeURIComponent(btoa(JSON.stringify(n))),i=`${e.url.split(`#`)[0]}#auth=${r}`;qS.debug(`[url-handoff]`,`→ ${e.url} (with token=${t?`yes`:`no`})`),window.location.href=i}function ce(){a.value={},o.value=null,Jr.value=null,p.value=null,f.value=[],d.value=null,qS.debug(`[reset]`,`store cleared`)}return{instances:_,activeInstance:y,activeId:o,activeUrl:h,isHomeActive:m,isMultiInstance:x,isSwitching:yn(s),switchTargetName:yn(c),switchKey:yn(l),serverHomeId:d,redirectInfo:p,serverInstances:f,instanceTokens:a,favoriteInstances:b,isFavorite:S,toggleFavorite:C,fetchInstances:g,addInstance:w,removeInstance:T,updateInstance:E,switchInstance:te,probeInstance:ee,complete2FALogin:ae,reset:ce,saveCurrentTokens:D,restoreActiveOverride:O}}),QS={key:`connecting`,class:`flex flex-col items-center justify-center h-full gap-4`},$S={class:`text-muted text-sm text-center`},eC={class:`flex flex-col gap-10 sm:gap-6 w-full mt-10 sm:mt-0`},tC={for:`username`,class:`cui-label`},nC={for:`password`,class:`cui-label`},rC={class:`flex flex-col gap-6 mt-10`},iC={class:`flex items-center field-checkbox-gap`},aC={for:`rememberMe`,class:`cui-label-checkbox`},oC={key:`2fa`,class:`flex flex-col h-full`},sC={class:`flex flex-col items-center text-center mt-10 sm:mt-0`},cC={class:`text-lg font-semibold mb-2`},lC={class:`text-muted text-sm`},uC={class:`flex flex-col items-center mt-10`},dC={class:`flex flex-col gap-3 mt-auto pt-10`},fC=6,pC=8,mC=ml(hn({__name:`Login`,setup(e){Nn();let t=ra();av();let{t:n}=$e(),r=Kw(),i=Ji(),{isNeedsAuth:a,isOnline:o,inTrouble:s}=i,c=Dw(),{loginLoading:l,requires2FA:u}=er(c),d=ZS(),f=un(`formRef`),m=K(``),h=K(``),g=K(!1),_=K(``),v=K(``),y=K(!1),b=K(!1),x=K(!1);K(!1);let S=U(()=>!d.isHomeActive||d.redirectInfo!==null),C=U(()=>y.value?v.value.trim().length===pC:_.value.length===fC),w=U(()=>r===`cloud`&&d.isHomeActive),T=U(()=>!o.value&&!a.value&&!l.value&&!u.value),E=U(()=>s.value?n(`connection.unreachable`):n(`connection.connecting_remote`)),ee=U(()=>!1);function D(){i.retry()}function O(){if(d.redirectInfo){let e=d.redirectInfo.sourceUrl;d.redirectInfo=null,window.location.href=e;return}d.switchInstance(null)}async function te(e){try{let[t,n]=await Promise.all([xS(),SS()]);return await c.login({username:e.username,password:e.password,kind:`web`,persistent:g.value,device:{id:t,name:n}}),!0}catch(e){return t.add({severity:`error`,detail:e,life:3e3}),!1}}async function ne(){await te({username:m.value,password:h.value})&&await oe({username:m.value,password:h.value})}async function ie(){let e=await k();if(e){b.value=!0;try{let t=await _S(e,n(`views.login.biometric_reason`));if(!t)return;m.value=t.username,h.value=t.password,await te(t)||(await gS(e),x.value=!1)}finally{b.value=!1}}}async function k(){return null}async function oe(e){}async function se(){window.location.href=ui}function ce(){y.value=!y.value,_.value=``,v.value=``}async function A(){if(C.value)try{await c.verify2FA(y.value?v.value.trim():_.value)}catch(e){t.add({severity:`error`,detail:Bw(e)??n(`views.login.2fa_invalid_code`),life:3e3}),_.value=``,v.value=``}}function le(){c.cancel2FA(),_.value=``,v.value=``,y.value=!1}return Gt(async()=>{}),(e,t)=>{let n=Zx,r=ae,i=Jx,a=wt,o=re,c=dr,d=vr,x=or,te=Bs,k=yr,oe=p;return F(),B(pS,{"logo-url":Z(Mw)(`logo_animated.svg`)},Sn({default:q(()=>[Y(nn,{name:`slide-fade`,mode:`out-in`},{default:q(()=>[Z(T)?(F(),G(`div`,QS,[Y(a,{"stroke-width":`4`,class:`!w-12 !h-12`}),J(`p`,$S,L(Z(E)),1),Z(s)?(F(),B(r,{key:0,size:`small`,severity:`secondary`,label:e.$t(`connection.retry`),onClick:D},null,8,[`label`])):V(``,!0)])):Z(u)?Tn((F(),G(`div`,oC,[J(`div`,sC,[J(`h2`,cC,L(e.$t(`views.login.2fa_title`)),1),J(`p`,lC,L(Z(y)?e.$t(`views.login.2fa_backup_description`):e.$t(`views.login.2fa_description`)),1)]),J(`div`,uC,[Z(y)?(F(),B(o,{key:1,modelValue:Z(v),"onUpdate:modelValue":t[4]||=e=>_n(v)?v.value=e:null,size:`large`,autocapitalize:`characters`,autocomplete:`one-time-code`,spellcheck:`false`,maxlength:pC,placeholder:e.$t(`views.login.2fa_backup_placeholder`),class:`text-center font-mono tracking-[0.3em] uppercase`,onKeyup:En(A,[`enter`])},null,8,[`modelValue`,`placeholder`])):(F(),B(k,{key:0,modelValue:Z(_),"onUpdate:modelValue":t[3]||=e=>_n(_)?_.value=e:null,length:fC,"integer-only":``,size:`large`,onComplete:A},null,8,[`modelValue`])),Y(r,{severity:`secondary`,text:``,size:`small`,class:`mt-4 text-xs`,label:Z(y)?e.$t(`views.login.2fa_use_app`):e.$t(`views.login.2fa_backup_hint`),onClick:ce},null,8,[`label`])]),J(`div`,dC,[Y(r,{class:`text-white font-semibold cui-button-large`,loading:Z(l),disabled:!Z(C),label:e.$t(`views.login.2fa_verify`),fluid:``,onClick:A},null,8,[`loading`,`disabled`,`label`]),Y(r,{severity:`secondary`,class:`cui-button-large`,text:``,label:e.$t(`components.form.button.cancel`),fluid:``,onClick:le},null,8,[`label`])])])),[[oe]]):(F(),B(Z(rn),{key:`login`,ref_key:`formRef`,ref:f,"validation-schema":Z(wS),class:`flex flex-col h-full`,onSubmit:ne},{default:q(()=>[J(`div`,eC,[Y(Z(Jt),{modelValue:Z(m),"onUpdate:modelValue":t[0]||=e=>_n(m)?m.value=e:null,modelModifiers:{trim:!0},name:`username`,as:`div`,class:`flex flex-col field-gap`},{default:q(({field:t,errors:n})=>[J(`label`,tC,L(e.$t(`components.form.label.username`)),1),Y(c,null,{default:q(()=>[Y(o,H({invalid:n.length>0,type:`text`,size:`large`,loading:Z(l)},t),null,16,[`invalid`,`loading`])]),_:2},1024),Y(nn,{name:`fade`},{default:q(()=>[Y(Z(Wt),{name:`username`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`]),Y(Z(Jt),{modelValue:Z(h),"onUpdate:modelValue":t[1]||=e=>_n(h)?h.value=e:null,name:`password`,as:`div`,class:`flex flex-col field-gap`},{default:q(({field:t,errors:n})=>[J(`label`,nC,L(e.$t(`components.form.label.password`)),1),Y(c,null,{default:q(()=>[Y(d,H({invalid:n.length>0,size:`large`,loading:Z(l),feedback:!1,"toggle-mask":``},t),null,16,[`invalid`,`loading`])]),_:2},1024),Y(nn,{name:`fade`},{default:q(()=>[Y(Z(Wt),{name:`password`,class:`cui-input-error`})]),_:1})]),_:1},8,[`modelValue`])]),J(`div`,rC,[Z(!1)?V(``,!0):(F(),B(Z(Jt),{key:0,"model-value":Z(g),name:`rememberMe`,type:`checkbox`,"checked-value":!0,"unchecked-value":!1,as:`div`,class:`flex flex-col field-gap`},{default:q(({field:n,errors:r})=>[J(`div`,iC,[Y(x,H({"model-value":Z(g)},n,{invalid:r.length>0,class:`mr-2`,binary:``,loading:Z(l),onValueChange:t[2]||=e=>g.value=e}),null,16,[`model-value`,`invalid`,`loading`]),J(`label`,aC,L(e.$t(`components.form.label.remember_me`)),1)]),Y(nn,{name:`fade`},{default:q(()=>[Y(Z(Wt),{name:`rememberMe`,class:`cui-input-checkbox-error`})]),_:1})]),_:1},8,[`model-value`])),Y(r,{type:`submit`,class:`text-white font-semibold cui-button-large`,loading:Z(l),label:e.$t(`components.form.button.login`),fluid:``},null,8,[`loading`,`label`]),Z(ee)?(F(),B(r,{key:1,type:`button`,severity:`secondary`,class:`cui-button-large`,text:``,loading:Z(b),label:e.$t(`components.form.button.biometric_login`),fluid:``,onClick:ie},{icon:q(()=>[Y(te,{class:`w-5 h-5 mr-2`})]),_:1},8,[`loading`,`label`])):V(``,!0)])]),_:1},8,[`validation-schema`]))]),_:1})]),_:2},[Z(S)||Z(w)?{name:`footer-left`,fn:q(()=>[Z(S)?(F(),B(r,{key:0,severity:`secondary`,text:``,size:`small`,class:`text-muted`,label:e.$t(`components.instance_switcher.go_back`),onClick:O},{icon:q(()=>[Y(n,{class:`w-4 h-4`})]),_:1},8,[`label`])):(F(),B(r,{key:1,severity:`secondary`,text:``,size:`small`,class:`text-muted`,label:e.$t(`views.login.pick_server`),onClick:se},{icon:q(()=>[Y(i,{class:`w-4 h-4`})]),_:1},8,[`label`]))]),key:`0`}:void 0]),1032,[`logo-url`])}}}),[[`__scopeId`,`data-v-65d1a94f`]]),hC=Xn(`routerState`,()=>{let e=K(!0),t=K(),n=K(),r=K(),i=K(),a=K(!1);function o(e,a){r.value=t.value,i.value=n.value,t.value=e,n.value=a}return{routerLoading:e,routeFrom:t,routeTo:n,previousRouteFrom:r,previousRouteTo:i,isTransitioning:a,setRoutes:o}}),gC=`false`,_C=`false`,vC=gC===`true`,yC=_C===`true`;function bC(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,vC||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await R(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-BMiTt6Ad.js`);return{Workbox:e}},__vite__mapDeps([13,1,2]),import.meta.url).then(({Workbox:e})=>new e(`./sw.js`,{scope:`./`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!yC)if(vC)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}c.register({immediate:t}).then(e=>{o?o(`./sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function xC(e={}){let{immediate:t=!0,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c=K(!1),l=K(!1);return{updateServiceWorker:bC({immediate:t,onNeedReload:n,onNeedRefresh(){c.value=!0,r?.()},onOfflineReady(){l.value=!0,i?.()},onRegistered:a,onRegisteredSW:o,onRegisterError:s}),offlineReady:l,needRefresh:c}}var SC=`updateChannel`;`${ui}`;var CC=Te(SC,`production`);async function wC(){}function TC(){return{channel:CC,isBeta:U(()=>CC.value===`beta`),ensureLoaded:async()=>{},setChannel:async e=>{e!==CC.value&&(CC.value=e,await wC())}}}var EC=Nn(`AppUpdate`),DC=3600*1e3,OC=`cui-sw-updated`,kC=K(!1),AC=K(!1),jC=async()=>{},MC;async function NC(){if(!(!MC||MC.installing||!navigator.onLine))try{await MC.update()}catch{}}async function PC(){if(!(AC.value||!kC.value)){AC.value=!0;try{await jC()}catch(e){EC.error(`apply failed`,e),AC.value=!1}}}function FC(){return{updateAvailable:kC,isApplying:AC,applyUpdate:PC}}function IC(){!kC.value||AC.value||PC()}function LC(){Ta()||RC()}function RC(){let{t:e}=ea.global,t=ra(),{needRefresh:n,updateServiceWorker:r}=xC({immediate:!0,onRegisteredSW(e,t){MC=t,MC&&setInterval(()=>NC(),DC)}});D(document,`visibilitychange`,()=>{document.visibilityState===`visible`&&NC()});let i=Ji();if(P(()=>i.isOnline.value,(e,t)=>{e&&!t&&NC()}),P(n,e=>{e&&(jC=async()=>{sessionStorage.setItem(OC,`1`);let e=!1,t=()=>{e||(e=!0,window.location.reload())};navigator.serviceWorker?.addEventListener(`controllerchange`,t,{once:!0}),await r(!1),setTimeout(t,2e4)},kC.value=!0)}),sessionStorage.getItem(OC)){sessionStorage.removeItem(OC);let n=new MutationObserver(()=>{document.querySelector(`[data-sonner-toaster]`)&&(n.disconnect(),t.add({severity:`success`,summary:e(`components.toast.title_success`),detail:e(`components.toast.update_installed_detail`),life:3e3}))});n.observe(document.body,{childList:!0,subtree:!0})}}var zC=()=>R(()=>import(`./404-9YR2yuVi.js`),__vite__mapDeps([14,9,2,1,15]),import.meta.url),BC=()=>R(()=>import(`./FirstSteps-DFfg4zRP.js`),__vite__mapDeps([16,9,2,1,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url),VC=()=>R(()=>import(`./Cameras-BH0Ae5cx.js`),__vite__mapDeps([34,9,2,1,17,24,35,19,36,37,18,29,38,39,40,25,26,27,41,42,43]),import.meta.url),HC=()=>R(()=>import(`./Camera-Dj4f6jSP.js`),__vite__mapDeps([44,9,2,1,17,18,19,45,46,47,48]),import.meta.url),UC=()=>R(()=>import(`./Camview-BmkHCnIA.js`),__vite__mapDeps([49,9,2,1,17,18,19,50,36,51,39,52,46,47,53,54,41,55,56,57,58]),import.meta.url),WC=()=>R(()=>import(`./Recordings-oa1jW60s.js`),__vite__mapDeps([59,9,2,1,19,41,60,17,61,62,63]),import.meta.url),GC=()=>R(()=>import(`./Faces-k6xFGoBN.js`),__vite__mapDeps([64,9,2,1,19,36,65,52,66,42,67]),import.meta.url),KC=()=>R(()=>import(`./Plugins-BMeUpZis.js`),__vite__mapDeps([68,9,2,1,19,65,69,70,36,71,72,73,74,75,76,77,78,79,80,66,42,81,82,35,24,18,83,84,85,86]),import.meta.url),qC=()=>R(()=>import(`./Plugin-Cs-vi0ov.js`),__vite__mapDeps([87,9,2,1,17,35,24,88,18,19,37,36,29,38,65,89,90,39,91,4,5,6,66,82,83,84,85,86,92]),import.meta.url),JC=()=>R(()=>import(`./Adminpanel-CKNwF9Ra.js`),__vite__mapDeps([93,9,2,1,35,24,21,22,65,31,66,94,18,19,29,26,95,96,97]),import.meta.url),YC=()=>R(()=>import(`./Config-CFNrNWvY.js`),__vite__mapDeps([98,2,9,1,17,18,19,21,22,29,80,66,45,53,36,54,41,55,99]),import.meta.url),XC=()=>R(()=>import(`./Logs-B-6Ku-as.js`),__vite__mapDeps([100,9,2,1,18,19,21,65,69,8,10,11,12,66,45,53,36,54,41,55,101,102]),import.meta.url),ZC=()=>R(()=>import(`./Terminal-BW210aW_.js`),__vite__mapDeps([103,9,2,1,17,18,19,10,11,66,81,45,53,36,54,41,55,102,104]),import.meta.url),QC=()=>R(()=>import(`./Automations-Cg4Lzb1M.js`),__vite__mapDeps([105,9,2,1,18,19,36,106,107,88,71,108,109,110,111,69,112,66,42,67]),import.meta.url),$C=()=>R(()=>import(`./Automation-C6ag7k7_.js`),__vite__mapDeps([113,9,2,1,18,19,36,114,106,107,88,71,108,109,110,115,35,24,111,116,117,118,119,66,42,120,81,121]),import.meta.url),ew=()=>R(()=>import(`./Instances-CbK1g4IM.js`),__vite__mapDeps([122,9,2,1,19,36,69,66,42,67,85]),import.meta.url),tw=()=>R(()=>import(`./Workers-BaT-k-h7.js`),__vite__mapDeps([123,9,2,1,19,65,25,26,27,66,94,18,29,95,96,97,124]),import.meta.url),nw=()=>R(()=>import(`./Settings-Cu4k98YQ.js`),__vite__mapDeps([125,9,2,1,18,62,126]),import.meta.url),rw=()=>R(()=>import(`./Menu-eNDXPuYN.js`),__vite__mapDeps([127,9,2,1,18,128,90,96]),import.meta.url),iw=()=>R(()=>import(`./About-ClX7-pcf.js`),__vite__mapDeps([129,9,2,1,19,130,131,17,66]),import.meta.url),aw=()=>R(()=>import(`./Console-DDsPYJgK.js`),__vite__mapDeps([132,9,2,1,19,133,69,66,53,36,54,41,55,101]),import.meta.url),ow=()=>R(()=>import(`./SettingsAccount-BR97Mvsw.js`),__vite__mapDeps([134,23,9,2,1,24,18,19,25,26,27,28,17,29,30,31,32]),import.meta.url),sw=()=>R(()=>import(`./SettingsAppearance-CvqBMYa0.js`),__vite__mapDeps([135,33,9,2,1,18,19,29]),import.meta.url),cw=()=>R(()=>import(`./SettingsBackup-BQZ17oo9.js`),__vite__mapDeps([136,9,2,1,19,20,21,22,137,91,78,138]),import.meta.url),lw=()=>R(()=>import(`./SettingsRecordings-BlsL_XbW.js`),__vite__mapDeps([139,9,2,1,19,37,17,35,24,18,36,29,38,25,26,27,140,95,83,84]),import.meta.url),uw=()=>R(()=>import(`./SettingsRemote-PJZ9QEdM.js`),__vite__mapDeps([141,9,2,1,17,35,24,19,21,28,29,18,30,142]),import.meta.url),dw=()=>R(()=>import(`./SettingsMqtt-CswzO2yF.js`),__vite__mapDeps([143,9,2,1,35,24,19,144]),import.meta.url),fw=()=>R(()=>import(`./SettingsSystem-BOovn83d.js`),__vite__mapDeps([145,9,2,1,17,19,21,22,130,131]),import.meta.url),pw=()=>R(()=>import(`./SettingsUsers-4PxUV0xb.js`),__vite__mapDeps([146,9,2,1,17,19,52,25,26,27]),import.meta.url),mw=()=>R(()=>import(`./SettingsNotifications-BZAmBizt.js`),__vite__mapDeps([147,9,2,1,17,19,148,52,25,26,27,149]),import.meta.url),hw=()=>R(()=>import(`./SettingsPermissions-BO45j_2T.js`),__vite__mapDeps([150,9,2,1,19,149,17]),import.meta.url),{smBreakpoint:gw}=al(),_w=[{name:`NotFound`,path:`/:pathMatch(.*)*`,component:zC,meta:{name:`notfound`,auth:{requiresAuth:!1,role:`none`}}},{name:`Login`,path:`/login`,alias:`/`,component:mC,meta:{name:`login`,auth:{requiresAuth:!1,role:`none`},ui:{background:U(()=>gw.value?`var(--card-background)`:void 0)}}},{name:`FirstSteps`,path:`/first-steps`,component:BC,meta:{name:`firststeps`,auth:{requiresAuth:!0,role:`user`}}},{name:`Home`,path:`/home`,component:Gx,meta:{name:`home`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!0,padding:!0,allowOverflowX:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:gs,active:ys}},bottombar:{icon:{default:gs,active:ys}}}},{name:`Cameras`,path:`/cameras`,component:VC,meta:{name:`cameras`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:fo,active:vo}},bottombar:{icon:{default:fo,active:vo}}}},{name:`Camera`,path:`/cameras/:cameraname`,component:HC,meta:{name:`camera`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{disableScroll:!0,ignoreSafeAreaBottom:U(()=>gw.value),noExtraPadding:U(()=>gw.value)},showNavbar:!0,showTopbar:U(()=>!gw.value),showBottombar:U(()=>!gw.value),showRouterLoading:!0}}},{name:`Camview`,path:`/camview`,component:UC,meta:{name:`camview`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{disableScroll:!0},background:`#000000`,showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:uc,active:sc}},bottombar:{icon:{default:uc,active:sc}}}},{name:`Recordings`,path:`/recordings`,component:WC,meta:{name:`recordings`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!1,padding:!1},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:gc,active:pc}},bottombar:{icon:{default:gc,active:pc}}}},{name:`About`,path:`/about`,component:iw,meta:{name:`about`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Faces`,path:`/faces`,component:GC,meta:{name:`faces`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},menu:{icon:{default:Bs,active:Bs}},navbar:{position:`top`,icon:{default:Bs,active:Bs}}}},{name:`Plugins`,path:`/plugins`,component:KC,meta:{name:`plugins`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`top`,icon:{default:Pc,active:Lc}},menu:{icon:{default:Pc,active:Lc}}}},{name:`ScopedPlugin`,path:`/plugins/:scope/:pluginname`,component:qC,meta:{name:`plugin`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Plugin`,path:`/plugins/:pluginname`,component:qC,meta:{name:`plugin`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0}}},{name:`Adminpanel`,path:`/admin`,component:JC,meta:{name:`adminpanel`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:jc,active:Oc}},menu:{icon:{default:jc,active:Oc}}}},{name:`Config`,path:`/config`,component:YC,meta:{name:`config`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Qs,active:Ys}},menu:{icon:{default:Qs,active:Ys}}}},{name:`Logs`,path:`/logs`,component:XC,meta:{name:`logs`,auth:{requiresAuth:!0,role:`admin`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:zo,active:Xo}},menu:{icon:{default:zo,active:Xo}}}},{name:`Console`,path:`/console`,component:aw,meta:{name:`console`,auth:{requiresAuth:!0,role:`user`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Ps,active:js}},menu:{icon:{default:Ps,active:js}}}},{name:`Terminal`,path:`/terminal`,component:ZC,meta:{name:`terminal`,disabledInElectron:!0,auth:{requiresAuth:!0,role:`admin`},ui:{background:`#000000`,containerSettings:{disableScroll:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Ho,active:ts}},menu:{icon:{default:Ho,active:ts}}}},{name:`Automations`,path:`/automations`,component:QC,meta:{name:`automations`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:ss,active:is}},menu:{icon:{default:ss,active:is}}}},{name:`Automation`,path:`/automations/:id`,component:$C,meta:{name:`automation`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{disableScroll:!0,paddingBottom:!1},showNavbar:!0,showTopbar:!0,showBottombar:!0}}},{name:`Instances`,path:`/instances`,component:ew,meta:{name:`instances`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:ho,active:xo}},menu:{icon:{default:ho,active:xo}}}},{name:`Workers`,path:`/workers`,component:tw,meta:{name:`workers`,auth:{requiresAuth:!0,role:`admin`},ui:{containerSettings:{showTitle:!0,padding:!0},showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoading:!0},navbar:{position:`bottom`,group:`more`,icon:{default:Io,active:Go}},menu:{icon:{default:Io,active:Go}}}},{name:`Menu`,path:`/menu`,component:rw,meta:{name:`menu`,auth:{requiresAuth:!0,role:`user`},ui:{containerSettings:{padding:!1},showNavbar:!1,showTopbar:!0,showBottombar:!0,showRouterLoading:!0,minifiedTopbar:!0},bottombar:{icon:{default:Tc,active:Tc}}}},{name:`Settings`,path:`/settings`,component:nw,meta:{name:`settings`,path:`/settings/account`,auth:{requiresAuth:!0,role:`user`},navbar:{position:`bottom`,icon:{default:Jn,active:Ls}},menu:{icon:{default:Jn,active:Ls}}},children:[{name:`SettingsAccount`,path:`account`,component:ow,meta:{name:`account`,description:`account_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Ts,active:Ss}}}},{name:`SettingsAppearance`,path:`appearance`,component:sw,meta:{name:`appearance`,description:`appearance_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Ao,active:No}}}},{name:`SettingsUsers`,path:`user`,component:pw,meta:{name:`user`,description:`user_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:ic,active:tc}}}},{name:`SettingsNotifications`,path:`notifications`,component:mw,meta:{name:`notifications`,description:`notifications_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Kn,active:Os}}}},{name:`SettingsPermissions`,path:`permissions`,component:hw,meta:{name:`permissions`,description:`permissions_description`,auth:{requiresAuth:!0,role:`user`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Ks,active:Us}}}},{name:`SettingsRecordings`,path:`recordings`,component:lw,meta:{name:`recordings`,description:`recordings_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:gc,active:pc}}}},{name:`SettingsRemote`,path:`remote`,component:uw,meta:{name:`remote`,description:`remote_access_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:ps,active:us}}}},{name:`SettingsMqtt`,path:`mqtt`,component:dw,meta:{name:`mqtt`,description:`mqtt_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:qn,active:qn}}}},{name:`SettingsBackup`,path:`backup`,component:cw,meta:{name:`backup`,description:`backup_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:wo,active:Do}}}},{name:`SettingsSystem`,path:`system`,component:fw,meta:{name:`system`,description:`system_description`,auth:{requiresAuth:!0,role:`admin`},ui:{showNavbar:!0,showTopbar:!0,showBottombar:!0,showRouterLoadingSub:!0},settingsBar:{icon:{default:Sc,active:yc}}}}]}];function vw(e){let t=e.toLowerCase();return t===`/home`?{group:`main`,key:`home`,ignore:`camview`}:t===`/camview`?{group:`main`,key:`camview`,ignore:`home`}:t.startsWith(`/cameras/`)?{group:`main`,key:`cameras`}:t===`/menu`?{group:`menu`,key:`menu`,depth:0}:t===`/faces`?{group:`menu`,key:`faces`,depth:1}:t===`/plugins`?{group:`menu`,key:`plugins`,depth:1}:t.startsWith(`/plugins/`)?{group:`menu`,key:`plugin-detail`,depth:2}:t.startsWith(`/settings`)?{group:`menu`,key:`settings`,depth:1}:t===`/admin`?{group:`menu`,key:`admin`,depth:1}:t===`/config`?{group:`menu`,key:`config`,depth:1}:t===`/console`?{group:`menu`,key:`console`,depth:1}:t===`/terminal`?{group:`menu`,key:`terminal`,depth:1}:t===`/instances`?{group:`menu`,key:`instances`,depth:1}:t===`/workers`?{group:`menu`,key:`workers`,depth:1}:t===`/automations`?{group:`menu`,key:`automations`,depth:1}:t===`/about`?{group:`menu`,key:`about`,depth:1}:t.startsWith(`/automations/`)?{group:`menu`,key:`automation-detail`,depth:2}:null}var yw=new Map,bw=Zn({history:$n(wa()),routes:_w,scrollBehavior:async(e,t,n)=>{if(n)return n;if(t.path===e.path||e.path===`/`)return{top:0,left:0};await y(10);let r=yw.get(e.path);return r===void 0?{top:0,left:0,behavior:`smooth`}:(yw.delete(e.path),{top:r,left:0})}});bw.absUrl=(e=`#`,t=!0)=>{let n=document.createElement(`a`);n.href=e,n.target=t&&e!==`#`?`_blank`:``,t&&(n.rel=`noopener noreferrer`),n.click()},bw.beforeEach(async(e,t)=>{let n=tn(),r=Dw(),i=hC();if(e.meta.disabledInElectron&&n.getQueryData([`api`])?.electron)return`/home`;let a=e.name.toLowerCase();if(i.routerLoading=!0,i.setRoutes(t.fullPath,e.fullPath),yw.set(t.path,window.scrollY),r.user){if(e.path!==t.path&&n.cancelQueries(void 0,{revert:!1}),r.user.firstLogin&&e.path!==`/first-steps`)return`/first-steps`;if(!r.user.firstLogin&&e.path===`/first-steps`||e.meta.auth?.requiresAuth&&e.meta.auth.role&&r.user.role!==e.meta.auth.role&&r.user.role!==`admin`&&r.user.role!==`master`||a===`login`)return`/home`;if(e.path===`/settings`){let e=Yc().uiSettings.interface.selectedSettingsView;return`/settings/${qc.includes(e)?e:`account`}`}}else if(a!==`login`)return`/`}),bw.beforeResolve(async(e,t)=>{let n=vw(t.path),r=vw(e.path);if(!n||!r||n.group!==r.group||n.key===r.key||n.ignore===r.key||r.ignore===n.key)return;if(n.group===`menu`&&n.depth!==void 0&&r.depth!==void 0){if(window.innerWidth>640||n.depth===r.depth)return;let e=r.depth>n.depth?`forward`:`back`;document.documentElement.dataset.menuDirection=e}if(e.path===`/home`&&!tn().getQueriesData({queryKey:[`camerasList`]}).some(([,e])=>e!=null))return;let i=!!document.documentElement.dataset.menuDirection,a=hC();a.isTransitioning=!0;let o=qt();await o.captured,o.finished.finally(()=>{a.isTransitioning=!1,i&&delete document.documentElement.dataset.menuDirection})});function xw(e){let t=e instanceof Error?e.message:String(e);return/dynamically imported module|importing a module script failed|failed to (load|fetch) module script|expected a javascript|chunkloaderror|loading( css)? chunk/i.test(t)}bw.afterEach(()=>{let e=hC();e.routerLoading=!1,Ji().bannerMode.value===null&&IC()}),bw.onError((e,t)=>{let n=hC();n.routerLoading=!1,xw(e)&&Vc(()=>window.location.assign(t.fullPath))});var Sw={de:Vt,en:$t},Cw=`selectedLanguage`;function ww(){let e=localStorage.getItem(Cw);if(!e)return null;try{let t=JSON.parse(e);return typeof t==`string`?t:null}catch{return e}}function Tw(){return typeof window>`u`?null:new URLSearchParams(window.location.search).get(`cui_lang`)||(Oa()?ww():null)}var Ew=Xn(`locale`,()=>{let e=Dw(),t=hr(),{electron:n}=In(),r=ea.global,i=Te(`language`,`auto`),a=U(()=>i.value===`auto`?Qi():i.value),o=U(()=>[{label:r.t(`components.form.label.language_system`),value:`auto`},...Xi.map(e=>({label:Zi[e],value:e}))]),s=null;function c(e){n?.send(`change-language`,e),r.locale.value=e}async function l(e){let n=Sw[e];n&&(t.config.locale=n)}function u(e){s=e,i.value=e}function d(e){u(Qi(e))}P(i,t=>{t!==s&&(s=t,e.isLoggedIn&&e.updateUser({preferences:{language:t}}))}),P(a,e=>{c(e),l(e)});let f=Tw();return f&&d(f),Oa()&&typeof window<`u`&&window.addEventListener(`storage`,e=>{if(e.key!==Cw)return;let t=ww();t&&d(t)}),c(a.value),l(a.value),Za(`/camera.ui`).on(`user-language`,e=>{e?.language&&u(e.language)}),{language:i,languageOptions:o,locale:a,applyServerLanguage:u,applyHostLanguage:d,setI18Nlocale:c,setPrimeVueLocale:l}}),Dw=Xn(`auth`,()=>{let e=new Ca,t=Ji(),n=Te(`user`,null,{serializer:{read:e=>e?JSON.parse(e):null,write:e=>JSON.stringify(e)}}),r=K(null),i=K(!1),a=K(!1),o=K(!1),{mutateAsync:s,isPending:c}=e.patchUserQuery(),l=U(()=>n.value!==null&&!t.isNeedsAuth.value),u=U(()=>r.value!==null),d=U(()=>i.value||a.value||o.value||c.value);function f(e){!e?._id||!e.username||!e.role||(n.value={_id:e._id,username:e.username,email:e.email,role:e.role,firstLogin:e.firstLogin,avatar:e.avatar},e.language&&Ew().applyServerLanguage(e.language))}async function p(e){if(!l.value){i.value=!0;try{let t=await La(e);if(Pa(t)){r.value={tempToken:t.tempToken};return}f(t.user),bw.push(`/home`)}finally{i.value=!1}}}async function m(e){if(r.value){a.value=!0;try{f((await Ra(r.value.tempToken,e)).user),r.value=null,bw.push(`/home`)}finally{a.value=!1}}}function h(){r.value=null}async function g(){o.value=!0;try{await za()}finally{n.value=null,r.value=null,o.value=!1,$c(),bw.push(`/`)}}async function _(e,t){n.value&&(e&&await s({username:n.value.username,userData:e}),t&&await s({username:n.value.username,userData:t},{onSuccess:()=>{let e=t.get(`upload`);if(e&&n.value){let t=e.type.split(`/`).pop();n.value.avatar=`${n.value._id}_avatar.${t}`}}}))}return P(n,(e,n)=>{i.value||o.value||e===null&&n!==null&&(r.value=null,$c(),t.isNeedsAuth.value||(t.reset(),t.boot(`default`)),bw.push(`/`))}),P(()=>t.isNeedsAuth.value,e=>{e&&n.value!==null&&(n.value=null)}),{user:n,isLoggedIn:l,requires2FA:u,pending2FA:r,loginLoading:d,login:p,logout:g,verify2FA:m,cancel2FA:h,updateUser:_,setUserFromLogin:f}});function Ow(){let e=Ji().proxySession.value;return e?`&session=${encodeURIComponent(e)}`:``}function kw(e){if(dn.isCancel(e))return!0;if(e instanceof Error){let t=e;if(t.code===`ERR_CANCELED`||t.code===`ECONNABORTED`||t.message===`Request aborted`||t.message===`canceled`)return!0}return!1}function Aw(e){let t=e instanceof Date?e:new Date(e);if(Number.isNaN(t.getTime()))return``;let n=Math.round((t.getTime()-Date.now())/1e3),r=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let[e,t]of[[`year`,3600*24*365],[`month`,3600*24*30],[`week`,3600*24*7],[`day`,3600*24],[`hour`,3600],[`minute`,60],[`second`,1]])if(Math.abs(n)>=t||e===`second`)return r.format(Math.round(n/t),e);return r.format(0,`second`)}function jw(e){return new Intl.NumberFormat(void 0,{notation:`compact`,maximumFractionDigits:1}).format(e)}function Mw(e=`logo-512.png`){if(e.startsWith(`data:`)||e.startsWith(`blob:`)||e.startsWith(`http:`)||e.startsWith(`https:`))return e;let t=Dw(),n=Ji(),r=n.endpoint.value??location.origin,i=n.accessToken.value;if(e.startsWith(location.origin))return r+e;if((e===`ERROR`||e===``)&&(e=`logo-256.png`),e===`avatar`){let n=t.user?.avatar;if(i&&n&&n!==`logo-256.png`)return`${r}/api/files/${n}?token=${i}${Ow()}`;e=`logo-256.png`}if(e.includes(`avatar`)){if(i)return`${r}/api/files/${e}?token=${i}${Ow()}`;e=`logo-256.png`}let a=`/src/assets/images/${e}`,o=Object.assign({"/src/assets/css/extras.css":kr,"/src/assets/css/inter.css":Ar,"/src/assets/css/main.css":jr,"/src/assets/css/markdown.css":Mr,"/src/assets/css/overrides.css":Nr,"/src/assets/css/tailwind.css":Or,"/src/assets/css/theme.css":Pr,"/src/assets/css/transitions.css":Fr,"/src/assets/css/utils.css":Ir,"/src/assets/images/camera-preview.png":ji,"/src/assets/images/error-256.png":Ni,"/src/assets/images/logo-256.png":Fi,"/src/assets/images/logo-512.png":Li,"/src/assets/images/logo.png":zi,"/src/assets/images/logo.svg":Vi,"/src/assets/images/logo_animated.svg":Ui,"/src/assets/images/logo_loading_circle.svg":Gi});return o[a]?o[a].default:``}async function Nw(e){return new Promise(t=>{e.preventDefault();let n=e.target?.files;if(n){let e=n[0],r=new FileReader;e?(r.onload=e=>{t(e.target?.result?e.target?.result:void 0)},r.readAsDataURL(e)):t(void 0)}})}function Pw(e=10){return Array.from({length:e},()=>Math.floor(Math.random()*25+10).toString(36)).join(``)}function Fw(e,t=new WeakMap){if(typeof e!=`object`||!e)return e;if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=[];return t.set(e,n),e.forEach((e,r)=>{n[r]=Fw(e,t)}),n}let n={};return t.set(e,n),Object.keys(e).forEach(r=>{n[r]=Fw(e[r],t)}),n}function Iw(e){switch(e){case`error`:return`error`;case`info`:return`info`;case`success`:return`success`;case`warning`:return`warn`;default:return`info`}}function Lw(e){let t=document.createElement(`textarea`);t.value=e,t.setAttribute(`inputmode`,`none`),t.style.position=`fixed`,t.style.top=`0`,t.style.left=`-9999px`,t.style.fontSize=`12pt`,document.body.appendChild(t),t.focus({preventScroll:!0}),t.select(),t.setSelectionRange(0,e.length);let n=!1;try{n=document.execCommand(`copy`)}catch{n=!1}return t.remove(),n}function Rw(e){if(!e)return!1;let t=Lw(e);return navigator.clipboard?.writeText(e).catch(()=>{}),t}async function zw(e){if(!e)return!1;let t=Lw(e),n=!1;if(navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e),n=!0}catch{n=!1}return t||n}function Bw(e,t){if(typeof e==`object`&&e){let t=e.response?.data;if(typeof t?.message==`string`)return t.message;if(`message`in e&&typeof e.message==`string`)return e.message}return t??String(e)}function Vw(e,t){return async n=>{let r=n.endpoint.url,i=n.lastTokens?.access??``;try{if(await e.authCheck(r,i,n.signal),!n.lastTokens?.access)throw s(`needs-auth`,`no tokens`);return n.lastTokens}catch(e){if(le(e)||n.signal.aborted)throw e;if(kw(e))throw s(`aborted`,`request canceled`);let i=dn.isAxiosError(e)?e.response?.status:void 0;if(!n.lastTokens?.access)throw typeof i==`number`?s(`needs-auth`,`no tokens`):s(`transient`,e instanceof Error?e.message:`auth/check failed`);if(i===401&&n.lastTokens.refresh)try{let e=await t.getFreshTokens({endpoint:r,refreshToken:n.lastTokens.refresh,base:n.lastTokens,signal:n.signal});return{...n.lastTokens,...e}}catch(e){if(n.signal.aborted)throw e;if(kw(e))throw s(`aborted`,`refresh canceled`);let t=dn.isAxiosError(e)?e.response?.status:void 0;throw t===401||t===403?s(`needs-auth`,`refresh rejected`):s(`transient`,e instanceof Error?e.message:`refresh failed`)}throw i===401||i===403?s(`needs-auth`,`tokens expired`):s(`transient`,e instanceof Error?e.message:`auth/check failed`)}}}function Hw(e){let t=yi(),n=Qa(e.initialSession),r=mi(),i=no({api:t,cloudSession:n,readL1AccessToken:void 0,onL1Unavailable:async()=>{window.location.href=e.initialSession.cloudApiBase?`${e.initialSession.cloudApiBase}/`:`/`},logger:e.logger}),a=hi(),o=e.initialSession.serverId,s=Ai({api:t,cloudSession:n,cloudSessionLifecycle:i,storage:a,serverId:o,logger:e.logger}),c=Ja(t);return{options:{adapters:{storage:a,visibilitySource:gi(),networkSource:r.networkSource,networkChangeSource:r.networkChangeSource},callbacks:{discover:s,probe:Vw(t,c),refresh:c.refresh,bindRefresh:c.bindCoordination,onConnectionReset:c.clear,onWake:()=>i.wake()},storageNamespace:o,logger:e.logger},api:t,cloudSession:n,cloudSessionLifecycle:i}}var Uw=null;async function Ww(e={}){if(Uw)return Uw;let t=await Wa();if(t.mode===`cloud`){if(!t.cloudSession)throw window.location.href=ui,Error(`cloud handoff incomplete — bouncing to cloud frontend`);let{options:n,api:r,cloudSession:i}=Hw({initialSession:t.cloudSession,logger:e.logger});return Uw={connection:Zr(n),api:r,mode:`cloud`,cloudSession:i},Uw}if(!t.directEndpointUrl)throw Error(`direct mode detected but no endpoint URL resolved`);let{options:n,api:r}=Ya(t.directEndpointUrl,e.logger);return Uw={connection:Zr(n),api:r,mode:`direct`},Uw}function Gw(){if(!Uw)throw Error(`getBootResult(): app not booted — call bootApp() first`);return Uw}function Kw(){return Gw().mode}var qw=3,Jw=5,Yw=null;function Xw(){return Yw||(Yw=Zw().finally(()=>{Yw=null}),Yw)}async function Zw(){let e=Gw();if(e.mode!==`cloud`||!e.cloudSession)return null;let t=e.cloudSession.state.value;if(!t)return null;let n=null;if(t.proxyRefreshToken&&t.cloudApiBase)try{n=await e.api.refreshProxy(t.cloudApiBase,t.proxyRefreshToken)}catch{}if(!n)return null;e.cloudSession.set({...t,proxyUrl:n.proxyUrl,proxyToken:n.proxyToken,proxyRefreshToken:n.proxyRefreshToken??t.proxyRefreshToken,proxyTokenExpiresAt:n.proxyTokenExpiresAt,proxyRefreshTokenExpiresAt:n.proxyRefreshTokenExpiresAt??t.proxyRefreshTokenExpiresAt});let r=e.connection.kernel,i=r.phase,a=i.kind===`online`?i.target:null;return a&&r.dispatch({type:`TOKENS_REFRESHED`,tokens:{...a.tokens,proxySession:n.proxyToken,proxySessionExpiresAt:n.proxyTokenExpiresAt,proxyRefresh:n.proxyRefreshToken??a.tokens.proxyRefresh}}),n.proxyToken}function Qw(){let e=ni();e.interceptors.response.use(e=>e,async t=>{let n=t.config,r=ai(t);if(t.response?.status===401&&r?.message===`Session expired`&&typeof r.redirect==`string`&&n&&!n._proxyRetry){let r=await Xw();return r?(n._proxyRetry=!0,n.headers&&(n.headers[`X-Proxy-Session`]=r),e(n)):Promise.reject(t)}if(ci(t)||li(t))return await co(),Promise.reject(t);if(si(t)&&n){let r=n._tunnelRetries??0;if(n._tunnelRetries=r+1,r>=qw)return Promise.reject(t);let i=t.response?.headers?.[`retry-after`],a=Number.parseInt(i??``,10)||Jw;return await new Promise(e=>setTimeout(e,a*1e3)),e(n)}return Promise.reject(t)})}export{d_ as $,$ as $n,Tl as $t,gS as A,vo as An,zd as At,$b as B,Ea as Bn,Ju as Bt,ZS as C,Os as Cn,fm as Ct,ES as D,Go as Dn,sf as Dt,DS as E,is as En,Tf as Et,Ax as F,oo as Fn,ld as Ft,av as G,ta as Gn,fu as Gt,fy as H,Oa as Hn,xu as Ht,Dx as I,io as In,od as It,F_ as J,Ji as Jn,Bl as Jt,W_ as K,ra as Kn,ru as Kt,vx as L,so as Ln,rd as Lt,oS as M,fo as Mn,Ad as Mt,Zx as N,co as Nn,Dd as Nt,OS as O,Ho as On,Gd as Ot,Jx as P,ao as Pn,fd as Pt,h_ as Q,fi as Qn,Ol as Qt,ox as R,Za as Rn,ed as Rt,hC as S,js as Sn,hm as St,TS as T,us as Tn,op as Tt,ay as U,Ca as Un,vu as Ut,Mb as V,Ta as Vn,wu as Vt,ny as W,ia as Wn,pu as Wt,N_ as X,ui as Xn,Pl as Xt,I_ as Y,Hi as Yn,Ll as Yt,M_ as Z,pi as Zn,jl as Zt,bw as _,pc as _n,Am as _t,Rw as a,al as an,fh as at,FC as b,Bs as bn,xm as bt,jw as c,il as cn,rh as ct,kw as d,Xc as dn,Jm as dt,gl as en,Qr as er,c_ as et,Iw as f,qc as fn,Gm as ft,Ew as g,Lc as gn,Nm as gt,Dw as h,Hc as hn,Im as ht,zw as i,ll as in,qr as ir,Ch as it,hS as j,ho as jn,Id as jt,mS as k,xo as kn,Hd as kt,Aw as l,rl as ln,eh as lt,Nw as m,Vc as mn,zm as mt,Ww as n,ml as nn,Jr as nr,bh as nt,Fw as o,sl as on,lh as ot,Pw as p,Yc as pn,Hm as pt,z_ as q,ea as qn,nu as qt,Kw as r,ul as rn,ei as rr,xh as rt,Bw as s,ol as sn,oh as st,Qw as t,hl as tn,$r as tr,Jh as tt,Mw as u,el as un,Zm as ut,_w as v,sc as vn,Dm as vt,LS as w,ps as wn,em as wt,TC as x,Ls as xn,vm as xt,LC as y,Us as yn,wm as yt,ex as z,Na as zn,Zu as zt};
|