@camera.ui/server 0.0.62 → 0.0.63-internal.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/interface/index.html +44 -44
  2. package/dist/interface/js/{@primevue.BuwQUdCW.0.0.62.js → @primevue.ttnqVLGy.0.0.63-internal.0.js} +1 -1
  3. package/dist/interface/js/@tanstack.CTxTG8tn.0.0.63-internal.0.js +1 -0
  4. package/dist/interface/js/{@vee-validate.t1cmvT8p.0.0.62.js → @vee-validate.if_ULCcL.0.0.63-internal.0.js} +1 -1
  5. package/dist/interface/js/@vueuse.BiJ8xsBO.0.0.63-internal.0.js +1 -0
  6. package/dist/interface/js/Adminpanel.C9CL6v9f.0.0.63-internal.0.js +1 -0
  7. package/dist/interface/js/Camera.CVd7djdv.0.0.63-internal.0.js +1 -0
  8. package/dist/interface/js/{Cameras.B_1CznMm.0.0.62.js → Cameras.B52BCEgS.0.0.63-internal.0.js} +1 -1
  9. package/dist/interface/js/Cammesh.DhYufB64.0.0.63-internal.0.js +1 -0
  10. package/dist/interface/js/Camview.DKi0BY0W.0.0.63-internal.0.js +1 -0
  11. package/dist/interface/js/Config.DCqiAzrO.0.0.63-internal.0.js +2 -0
  12. package/dist/interface/js/Console.Bb9M2y99.0.0.63-internal.0.js +4 -0
  13. package/dist/interface/js/CuiConsole.BDN8DeOc.0.0.63-internal.0.js +1 -0
  14. package/dist/interface/js/CuiPluginCard.BhOuuz6A.0.0.63-internal.0.js +4 -0
  15. package/dist/interface/js/CuiTimeline.Cg27bh5j.0.0.63-internal.0.js +1 -0
  16. package/dist/interface/js/FirstSteps.BMJbhP8e.0.0.63-internal.0.js +1 -0
  17. package/dist/interface/js/Plugin.D82HHdpA.0.0.63-internal.0.js +1 -0
  18. package/dist/interface/js/Plugins.Bu0DCv0S.0.0.63-internal.0.js +1 -0
  19. package/dist/interface/js/Recordings.Df0Q71eL.0.0.63-internal.0.js +1 -0
  20. package/dist/interface/js/Settings.Buv9D6Gd.0.0.63-internal.0.js +1 -0
  21. package/dist/interface/js/SettingsAccount.CIBnSC_t.0.0.63-internal.0.js +1 -0
  22. package/dist/interface/js/SettingsAppearance._m67WknM.0.0.63-internal.0.js +1 -0
  23. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.D9psyMQ8.0.0.63-internal.0.js +1 -0
  24. package/dist/interface/js/SettingsBackup.DOlIcOD_.0.0.63-internal.0.js +1 -0
  25. package/dist/interface/js/SettingsRecordings.WQ32hWkt.0.0.63-internal.0.js +1 -0
  26. package/dist/interface/js/SettingsRemote.BbpDV3dY.0.0.63-internal.0.js +1 -0
  27. package/dist/interface/js/SettingsSystem.D5isIkUa.0.0.63-internal.0.js +1 -0
  28. package/dist/interface/js/SettingsUsers.C3PJhQqO.0.0.63-internal.0.js +1 -0
  29. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.kStn8vdC.0.0.63-internal.0.js +4 -0
  30. package/dist/interface/js/{ace-builds.CrJdRLLO.0.0.62.js → ace-builds.DVG1D-mZ.0.0.63-internal.0.js} +2 -2
  31. package/dist/interface/js/ace.config.DNihWwBq.0.0.63-internal.0.js +1 -0
  32. package/dist/interface/js/backup.exJSH3bi.0.0.63-internal.0.js +1 -0
  33. package/dist/interface/js/{chart.js.haJ6Wc0P.0.0.62.js → chart.js.DR4T5MI5.0.0.63-internal.0.js} +1 -1
  34. package/dist/interface/js/close-circle.BtEU763k.0.0.63-internal.0.js +1 -0
  35. package/dist/interface/js/dnd-core.DD8Wdzkl.0.0.63-internal.0.js +1 -0
  36. package/dist/interface/js/{draggabilly.CzDdWnHk.0.0.62.js → draggabilly.CofelTvT.0.0.63-internal.0.js} +1 -1
  37. package/dist/interface/js/engine.io-client.BkwlnD1F.0.0.63-internal.0.js +1 -0
  38. package/dist/interface/js/fast-deep-equal.5Biilj8y.0.0.63-internal.0.js +1 -0
  39. package/dist/interface/js/{highlight.js.Cw6-xZQC.0.0.62.js → highlight.js.43RbAYuY.0.0.63-internal.0.js} +1 -1
  40. package/dist/interface/js/linkify-it.DPd6CNOE.0.0.63-internal.0.js +1 -0
  41. package/dist/interface/js/{main.C-fBYELA.0.0.62.js → main.Cg-KFXG3.0.0.63-internal.0.js} +3 -3
  42. package/dist/interface/js/{markdown-it.DS1iZu0j.0.0.62.js → markdown-it.BXV_l9cc.0.0.63-internal.0.js} +1 -1
  43. package/dist/interface/js/{nprogress.Beu8xHzs.0.0.62.js → nprogress.ig2CXOoL.0.0.63-internal.0.js} +1 -1
  44. package/dist/interface/js/{pinia.CY9KHlVM.0.0.62.js → pinia.pqSsOFLB.0.0.63-internal.0.js} +1 -1
  45. package/dist/interface/js/{primevue.BUCB2iYc.0.0.62.js → primevue.f23wRZfa.0.0.63-internal.0.js} +1 -1
  46. package/dist/interface/js/{qrcode.caI-y3YK.0.0.62.js → qrcode.BW6Q6A4B.0.0.63-internal.0.js} +1 -1
  47. package/dist/interface/js/react-dnd-touch-backend.C4pqdYbb.0.0.63-internal.0.js +1 -0
  48. package/dist/interface/js/refresh-rounded.Dmmk-Mc1.0.0.63-internal.0.js +1 -0
  49. package/dist/interface/js/{rxjs.N4IEvpuL.0.0.62.js → rxjs.Npfw5pj3.0.0.63-internal.0.js} +1 -1
  50. package/dist/interface/js/socket.io-client.CwltQSxD.0.0.63-internal.0.js +1 -0
  51. package/dist/interface/js/socket.io-parser.AG_riFB1.0.0.63-internal.0.js +1 -0
  52. package/dist/interface/js/system.CHZ5yzEQ.0.0.63-internal.0.js +1 -0
  53. package/dist/interface/js/trash-fill.DkUzYW8d.0.0.63-internal.0.js +1 -0
  54. package/dist/interface/js/{unidragger.Dm1cQX8w.0.0.62.js → unidragger.BGgU3_VA.0.0.63-internal.0.js} +1 -1
  55. package/dist/interface/js/{vee-validate.Bf0LCjSi.0.0.62.js → vee-validate.C-8MGG76.0.0.63-internal.0.js} +1 -1
  56. package/dist/interface/js/vue-chartjs.D4sVpvVe.0.0.63-internal.0.js +1 -0
  57. package/dist/interface/js/{vue-i18n.CU18JdrZ.0.0.62.js → vue-i18n.xox7B9R9.0.0.63-internal.0.js} +1 -1
  58. package/dist/interface/js/vue-inline-svg.BH2BZf-J.0.0.63-internal.0.js +1 -0
  59. package/dist/interface/js/{vue-router.BVIizPV2.0.0.62.js → vue-router.D80ZmMz-.0.0.63-internal.0.js} +1 -1
  60. package/dist/interface/js/vue-zoomable.DCwOki9q.0.0.63-internal.0.js +1 -0
  61. package/dist/interface/js/vue3-dnd.C7__OO52.0.0.63-internal.0.js +1 -0
  62. package/dist/interface/js/zoom-out.Bbs83Nmt.0.0.63-internal.0.js +1 -0
  63. package/dist/interface/sw.js +1 -1
  64. package/dist/server/package.json +4 -4
  65. package/dist/server/requirements.txt +1 -1
  66. package/package.json +4 -4
  67. package/dist/interface/js/@tanstack.BaNxyuPE.0.0.62.js +0 -1
  68. package/dist/interface/js/@vueuse.BtjxvMs8.0.0.62.js +0 -1
  69. package/dist/interface/js/Adminpanel.CLXXXEqh.0.0.62.js +0 -1
  70. package/dist/interface/js/Camera.DFvIfRlx.0.0.62.js +0 -1
  71. package/dist/interface/js/Cammesh.5Nu7BvO2.0.0.62.js +0 -1
  72. package/dist/interface/js/Camview.1KwPSAuq.0.0.62.js +0 -1
  73. package/dist/interface/js/Config.BjvgJ7tP.0.0.62.js +0 -2
  74. package/dist/interface/js/Console.DxEIEx5s.0.0.62.js +0 -4
  75. package/dist/interface/js/CuiConsole.DB_LUtKP.0.0.62.js +0 -1
  76. package/dist/interface/js/CuiPluginCard.2M69fHiD.0.0.62.js +0 -4
  77. package/dist/interface/js/CuiTimeline.IRM5cySh.0.0.62.js +0 -1
  78. package/dist/interface/js/FirstSteps.Cz_f6ZeW.0.0.62.js +0 -1
  79. package/dist/interface/js/Plugin.oKtFiHyL.0.0.62.js +0 -1
  80. package/dist/interface/js/Plugins.Dif4kK99.0.0.62.js +0 -1
  81. package/dist/interface/js/Recordings.A56G0sQE.0.0.62.js +0 -1
  82. package/dist/interface/js/Settings.OfXv9Gqh.0.0.62.js +0 -1
  83. package/dist/interface/js/SettingsAccount.CLl6vRgC.0.0.62.js +0 -1
  84. package/dist/interface/js/SettingsAppearance.BJWEvI29.0.0.62.js +0 -1
  85. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.CSaP8zS_.0.0.62.js +0 -1
  86. package/dist/interface/js/SettingsBackup.U7cL8QlC.0.0.62.js +0 -1
  87. package/dist/interface/js/SettingsRecordings.BW5lSo1M.0.0.62.js +0 -1
  88. package/dist/interface/js/SettingsRemote.Cr8-AnCP.0.0.62.js +0 -1
  89. package/dist/interface/js/SettingsSystem.BoAzFghc.0.0.62.js +0 -1
  90. package/dist/interface/js/SettingsUsers.a5zO3GRJ.0.0.62.js +0 -1
  91. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.DkeX4Aoe.0.0.62.js +0 -4
  92. package/dist/interface/js/ace.config.DueIG4UH.0.0.62.js +0 -1
  93. package/dist/interface/js/backup.DKt2AMd9.0.0.62.js +0 -1
  94. package/dist/interface/js/close-circle.Cg59V8CM.0.0.62.js +0 -1
  95. package/dist/interface/js/dnd-core.DC5aa7s6.0.0.62.js +0 -1
  96. package/dist/interface/js/engine.io-client.BU9iRZgW.0.0.62.js +0 -1
  97. package/dist/interface/js/fast-deep-equal.DfeJtEah.0.0.62.js +0 -1
  98. package/dist/interface/js/linkify-it.CF3_WZzP.0.0.62.js +0 -1
  99. package/dist/interface/js/react-dnd-touch-backend.tRp9nfp7.0.0.62.js +0 -1
  100. package/dist/interface/js/refresh-rounded.CVoXrijh.0.0.62.js +0 -1
  101. package/dist/interface/js/socket.io-client.wbvvPxi5.0.0.62.js +0 -1
  102. package/dist/interface/js/socket.io-parser.DhatnF7V.0.0.62.js +0 -1
  103. package/dist/interface/js/system.DycFtj7i.0.0.62.js +0 -1
  104. package/dist/interface/js/trash-fill.pRvrAuMe.0.0.62.js +0 -1
  105. package/dist/interface/js/vue-chartjs.CA2iHC3A.0.0.62.js +0 -1
  106. package/dist/interface/js/vue-inline-svg.CHxn1TlX.0.0.62.js +0 -1
  107. package/dist/interface/js/vue-zoomable.BDc3ilR2.0.0.62.js +0 -1
  108. package/dist/interface/js/vue3-dnd.BXX1gprq.0.0.62.js +0 -1
  109. package/dist/interface/js/zoom-out.Z1yZWL3r.0.0.62.js +0 -1
  110. /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.62.css → @xterm.DYP7pi_n.0.0.63-internal.0.css} +0 -0
  111. /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.62.css → Adminpanel.BKek2EMH.0.0.63-internal.0.css} +0 -0
  112. /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.62.css → Cameras.BDWZJqPN.0.0.63-internal.0.css} +0 -0
  113. /package/dist/interface/assets/{Camview.Cvhuou6V.0.0.62.css → Camview.Cvhuou6V.0.0.63-internal.0.css} +0 -0
  114. /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.62.css → CuiConsole.DCYyxdVg.0.0.63-internal.0.css} +0 -0
  115. /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.62.css → CuiPluginCard.yF8V0SZY.0.0.63-internal.0.css} +0 -0
  116. /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.62.css → CuiTimeline.BkIwlYtw.0.0.63-internal.0.css} +0 -0
  117. /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.62.css → Plugin.DJElsAn5.0.0.63-internal.0.css} +0 -0
  118. /package/dist/interface/assets/{Plugins.BwPlcRrV.0.0.62.css → Plugins.BwPlcRrV.0.0.63-internal.0.css} +0 -0
  119. /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.62.css → Settings.CkgfRkQr.0.0.63-internal.0.css} +0 -0
  120. /package/dist/interface/assets/{SettingsAccount.CDZT7gN-.0.0.62.css → SettingsAccount.CDZT7gN-.0.0.63-internal.0.css} +0 -0
  121. /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.62.css → SettingsBackup.CX0rT0QJ.0.0.63-internal.0.css} +0 -0
  122. /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.62.css → highlight.Ch2EwETz.0.0.63-internal.0.css} +0 -0
  123. /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.62.png → logo-256.BCQk9H1-.0.0.63-internal.0.png} +0 -0
  124. /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.62.png → logo-512.DLKVOU2S.0.0.63-internal.0.png} +0 -0
  125. /package/dist/interface/assets/{logo.DmEiRk0z.0.0.62.png → logo.DmEiRk0z.0.0.63-internal.0.png} +0 -0
  126. /package/dist/interface/assets/{main.DYKKLRxP.0.0.62.css → main.DYKKLRxP.0.0.63-internal.0.css} +0 -0
  127. /package/dist/interface/assets/{mode-json.Br7xisR1.0.0.62.js → mode-json.Br7xisR1.0.0.63-internal.0.js} +0 -0
  128. /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.62.js → mode-yaml.CIYL8U3d.0.0.63-internal.0.js} +0 -0
  129. /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.62.js → worker-base.jEXLGV2h.0.0.63-internal.0.js} +0 -0
  130. /package/dist/interface/assets/{worker-json.DgwNIOck.0.0.62.js → worker-json.DgwNIOck.0.0.63-internal.0.js} +0 -0
  131. /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.62.js → worker-yaml.B3uUYINB.0.0.63-internal.0.js} +0 -0
  132. /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.62.js → @babel.l0sNRNKZ.0.0.63-internal.0.js} +0 -0
  133. /package/dist/interface/js/{@intlify.BkGPX90O.0.0.62.js → @intlify.BkGPX90O.0.0.63-internal.0.js} +0 -0
  134. /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.62.js → @kurkle.D8fDXNIl.0.0.63-internal.0.js} +0 -0
  135. /package/dist/interface/js/{@primeuix.BkBDkSvZ.0.0.62.js → @primeuix.BkBDkSvZ.0.0.63-internal.0.js} +0 -0
  136. /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.62.js → @react-dnd.CcwRs9xb.0.0.63-internal.0.js} +0 -0
  137. /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.62.js → @socket.io.Dkula2eQ.0.0.63-internal.0.js} +0 -0
  138. /package/dist/interface/js/{@vue.Dh6viqaK.0.0.62.js → @vue.Dh6viqaK.0.0.63-internal.0.js} +0 -0
  139. /package/dist/interface/js/{@xterm.yTQ_L3LT.0.0.62.js → @xterm.DBOyTbbO.0.0.63-internal.0.js} +0 -0
  140. /package/dist/interface/js/{axios.DHr9lByg.0.0.62.js → axios.DHr9lByg.0.0.63-internal.0.js} +0 -0
  141. /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.62.js → birpc.l0sNRNKZ.0.0.63-internal.0.js} +0 -0
  142. /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.62.js → compare-versions.DqEOhma6.0.0.63-internal.0.js} +0 -0
  143. /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.62.js → dijkstrajs.C00ieaqj.0.0.63-internal.0.js} +0 -0
  144. /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.62.js → engine.io-parser.BiEtp6m2.0.0.63-internal.0.js} +0 -0
  145. /package/dist/interface/js/{entities.C20TfXL6.0.0.62.js → entities.C20TfXL6.0.0.63-internal.0.js} +0 -0
  146. /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.62.js → ev-emitter.X5f1qa-c.0.0.63-internal.0.js} +0 -0
  147. /package/dist/interface/js/{get-size.D1dS-IaP.0.0.62.js → get-size.D1dS-IaP.0.0.63-internal.0.js} +0 -0
  148. /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.62.js → hookable.l0sNRNKZ.0.0.63-internal.0.js} +0 -0
  149. /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.62.js → mdurl.k9Sl0PQj.0.0.63-internal.0.js} +0 -0
  150. /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.62.js → perfect-debounce.l0sNRNKZ.0.0.63-internal.0.js} +0 -0
  151. /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.62.js → primelocale.Bga3dOQu.0.0.63-internal.0.js} +0 -0
  152. /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.62.js → punycode.js.Dj65hjkv.0.0.63-internal.0.js} +0 -0
  153. /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.62.js → react-dnd-html5-backend.1HQjlkwI.0.0.63-internal.0.js} +0 -0
  154. /package/dist/interface/js/{redux.BFxtlG_c.0.0.62.js → redux.BFxtlG_c.0.0.63-internal.0.js} +0 -0
  155. /package/dist/interface/js/{tslib.9k7AwCpt.0.0.62.js → tslib.9k7AwCpt.0.0.63-internal.0.js} +0 -0
  156. /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.62.js → uc.micro.kMc2yuuw.0.0.63-internal.0.js} +0 -0
  157. /package/dist/interface/js/{uuid.C6aID195.0.0.62.js → uuid.C6aID195.0.0.63-internal.0.js} +0 -0
  158. /package/dist/interface/js/{vue.l0sNRNKZ.0.0.62.js → vue.l0sNRNKZ.0.0.63-internal.0.js} +0 -0
  159. /package/dist/interface/js/{zod.sy4ilHCy.0.0.62.js → zod.sy4ilHCy.0.0.63-internal.0.js} +0 -0
@@ -333,50 +333,50 @@
333
333
  media="screen and (prefers-color-scheme: dark) and (device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)"
334
334
  href="/pwa/apple-splash-portrait-dark-640x1136.png"
335
335
  />
336
- <script type="module" crossorigin src="/js/main.C-fBYELA.0.0.62.js"></script>
337
- <link rel="modulepreload" crossorigin href="/js/@vue.Dh6viqaK.0.0.62.js">
338
- <link rel="modulepreload" crossorigin href="/js/@tanstack.BaNxyuPE.0.0.62.js">
339
- <link rel="modulepreload" crossorigin href="/js/@primeuix.BkBDkSvZ.0.0.62.js">
340
- <link rel="modulepreload" crossorigin href="/js/@primevue.BuwQUdCW.0.0.62.js">
341
- <link rel="modulepreload" crossorigin href="/js/primevue.BUCB2iYc.0.0.62.js">
342
- <link rel="modulepreload" crossorigin href="/js/@xterm.yTQ_L3LT.0.0.62.js">
343
- <link rel="modulepreload" crossorigin href="/js/nprogress.Beu8xHzs.0.0.62.js">
344
- <link rel="modulepreload" crossorigin href="/js/@vueuse.BtjxvMs8.0.0.62.js">
345
- <link rel="modulepreload" crossorigin href="/js/axios.DHr9lByg.0.0.62.js">
346
- <link rel="modulepreload" crossorigin href="/js/@intlify.BkGPX90O.0.0.62.js">
347
- <link rel="modulepreload" crossorigin href="/js/vue-i18n.CU18JdrZ.0.0.62.js">
348
- <link rel="modulepreload" crossorigin href="/js/pinia.CY9KHlVM.0.0.62.js">
349
- <link rel="modulepreload" crossorigin href="/js/vue-router.BVIizPV2.0.0.62.js">
350
- <link rel="modulepreload" crossorigin href="/js/vue-inline-svg.CHxn1TlX.0.0.62.js">
351
- <link rel="modulepreload" crossorigin href="/js/vee-validate.Bf0LCjSi.0.0.62.js">
352
- <link rel="modulepreload" crossorigin href="/js/zod.sy4ilHCy.0.0.62.js">
353
- <link rel="modulepreload" crossorigin href="/js/@vee-validate.t1cmvT8p.0.0.62.js">
354
- <link rel="modulepreload" crossorigin href="/js/uuid.C6aID195.0.0.62.js">
355
- <link rel="modulepreload" crossorigin href="/js/engine.io-parser.BiEtp6m2.0.0.62.js">
356
- <link rel="modulepreload" crossorigin href="/js/@socket.io.Dkula2eQ.0.0.62.js">
357
- <link rel="modulepreload" crossorigin href="/js/engine.io-client.BU9iRZgW.0.0.62.js">
358
- <link rel="modulepreload" crossorigin href="/js/socket.io-parser.DhatnF7V.0.0.62.js">
359
- <link rel="modulepreload" crossorigin href="/js/socket.io-client.wbvvPxi5.0.0.62.js">
360
- <link rel="modulepreload" crossorigin href="/js/tslib.9k7AwCpt.0.0.62.js">
361
- <link rel="modulepreload" crossorigin href="/js/rxjs.N4IEvpuL.0.0.62.js">
362
- <link rel="modulepreload" crossorigin href="/js/highlight.js.Cw6-xZQC.0.0.62.js">
363
- <link rel="modulepreload" crossorigin href="/js/mdurl.k9Sl0PQj.0.0.62.js">
364
- <link rel="modulepreload" crossorigin href="/js/uc.micro.kMc2yuuw.0.0.62.js">
365
- <link rel="modulepreload" crossorigin href="/js/entities.C20TfXL6.0.0.62.js">
366
- <link rel="modulepreload" crossorigin href="/js/linkify-it.CF3_WZzP.0.0.62.js">
367
- <link rel="modulepreload" crossorigin href="/js/punycode.js.Dj65hjkv.0.0.62.js">
368
- <link rel="modulepreload" crossorigin href="/js/markdown-it.DS1iZu0j.0.0.62.js">
369
- <link rel="modulepreload" crossorigin href="/js/dijkstrajs.C00ieaqj.0.0.62.js">
370
- <link rel="modulepreload" crossorigin href="/js/qrcode.caI-y3YK.0.0.62.js">
371
- <link rel="modulepreload" crossorigin href="/js/get-size.D1dS-IaP.0.0.62.js">
372
- <link rel="modulepreload" crossorigin href="/js/ev-emitter.X5f1qa-c.0.0.62.js">
373
- <link rel="modulepreload" crossorigin href="/js/unidragger.Dm1cQX8w.0.0.62.js">
374
- <link rel="modulepreload" crossorigin href="/js/draggabilly.CzDdWnHk.0.0.62.js">
375
- <link rel="modulepreload" crossorigin href="/js/vue-zoomable.BDc3ilR2.0.0.62.js">
376
- <link rel="modulepreload" crossorigin href="/js/primelocale.Bga3dOQu.0.0.62.js">
377
- <link rel="stylesheet" crossorigin href="/assets/@xterm.DYP7pi_n.0.0.62.css">
378
- <link rel="stylesheet" crossorigin href="/assets/highlight.Ch2EwETz.0.0.62.css">
379
- <link rel="stylesheet" crossorigin href="/assets/main.DYKKLRxP.0.0.62.css">
336
+ <script type="module" crossorigin src="/js/main.Cg-KFXG3.0.0.63-internal.0.js"></script>
337
+ <link rel="modulepreload" crossorigin href="/js/@vue.Dh6viqaK.0.0.63-internal.0.js">
338
+ <link rel="modulepreload" crossorigin href="/js/@tanstack.CTxTG8tn.0.0.63-internal.0.js">
339
+ <link rel="modulepreload" crossorigin href="/js/@primeuix.BkBDkSvZ.0.0.63-internal.0.js">
340
+ <link rel="modulepreload" crossorigin href="/js/@primevue.ttnqVLGy.0.0.63-internal.0.js">
341
+ <link rel="modulepreload" crossorigin href="/js/primevue.f23wRZfa.0.0.63-internal.0.js">
342
+ <link rel="modulepreload" crossorigin href="/js/@xterm.DBOyTbbO.0.0.63-internal.0.js">
343
+ <link rel="modulepreload" crossorigin href="/js/nprogress.ig2CXOoL.0.0.63-internal.0.js">
344
+ <link rel="modulepreload" crossorigin href="/js/@vueuse.BiJ8xsBO.0.0.63-internal.0.js">
345
+ <link rel="modulepreload" crossorigin href="/js/axios.DHr9lByg.0.0.63-internal.0.js">
346
+ <link rel="modulepreload" crossorigin href="/js/@intlify.BkGPX90O.0.0.63-internal.0.js">
347
+ <link rel="modulepreload" crossorigin href="/js/vue-i18n.xox7B9R9.0.0.63-internal.0.js">
348
+ <link rel="modulepreload" crossorigin href="/js/pinia.pqSsOFLB.0.0.63-internal.0.js">
349
+ <link rel="modulepreload" crossorigin href="/js/vue-router.D80ZmMz-.0.0.63-internal.0.js">
350
+ <link rel="modulepreload" crossorigin href="/js/vue-inline-svg.BH2BZf-J.0.0.63-internal.0.js">
351
+ <link rel="modulepreload" crossorigin href="/js/vee-validate.C-8MGG76.0.0.63-internal.0.js">
352
+ <link rel="modulepreload" crossorigin href="/js/zod.sy4ilHCy.0.0.63-internal.0.js">
353
+ <link rel="modulepreload" crossorigin href="/js/@vee-validate.if_ULCcL.0.0.63-internal.0.js">
354
+ <link rel="modulepreload" crossorigin href="/js/uuid.C6aID195.0.0.63-internal.0.js">
355
+ <link rel="modulepreload" crossorigin href="/js/engine.io-parser.BiEtp6m2.0.0.63-internal.0.js">
356
+ <link rel="modulepreload" crossorigin href="/js/@socket.io.Dkula2eQ.0.0.63-internal.0.js">
357
+ <link rel="modulepreload" crossorigin href="/js/engine.io-client.BkwlnD1F.0.0.63-internal.0.js">
358
+ <link rel="modulepreload" crossorigin href="/js/socket.io-parser.AG_riFB1.0.0.63-internal.0.js">
359
+ <link rel="modulepreload" crossorigin href="/js/socket.io-client.CwltQSxD.0.0.63-internal.0.js">
360
+ <link rel="modulepreload" crossorigin href="/js/tslib.9k7AwCpt.0.0.63-internal.0.js">
361
+ <link rel="modulepreload" crossorigin href="/js/rxjs.Npfw5pj3.0.0.63-internal.0.js">
362
+ <link rel="modulepreload" crossorigin href="/js/highlight.js.43RbAYuY.0.0.63-internal.0.js">
363
+ <link rel="modulepreload" crossorigin href="/js/mdurl.k9Sl0PQj.0.0.63-internal.0.js">
364
+ <link rel="modulepreload" crossorigin href="/js/uc.micro.kMc2yuuw.0.0.63-internal.0.js">
365
+ <link rel="modulepreload" crossorigin href="/js/entities.C20TfXL6.0.0.63-internal.0.js">
366
+ <link rel="modulepreload" crossorigin href="/js/linkify-it.DPd6CNOE.0.0.63-internal.0.js">
367
+ <link rel="modulepreload" crossorigin href="/js/punycode.js.Dj65hjkv.0.0.63-internal.0.js">
368
+ <link rel="modulepreload" crossorigin href="/js/markdown-it.BXV_l9cc.0.0.63-internal.0.js">
369
+ <link rel="modulepreload" crossorigin href="/js/dijkstrajs.C00ieaqj.0.0.63-internal.0.js">
370
+ <link rel="modulepreload" crossorigin href="/js/qrcode.BW6Q6A4B.0.0.63-internal.0.js">
371
+ <link rel="modulepreload" crossorigin href="/js/get-size.D1dS-IaP.0.0.63-internal.0.js">
372
+ <link rel="modulepreload" crossorigin href="/js/ev-emitter.X5f1qa-c.0.0.63-internal.0.js">
373
+ <link rel="modulepreload" crossorigin href="/js/unidragger.BGgU3_VA.0.0.63-internal.0.js">
374
+ <link rel="modulepreload" crossorigin href="/js/draggabilly.CofelTvT.0.0.63-internal.0.js">
375
+ <link rel="modulepreload" crossorigin href="/js/vue-zoomable.DCwOki9q.0.0.63-internal.0.js">
376
+ <link rel="modulepreload" crossorigin href="/js/primelocale.Bga3dOQu.0.0.63-internal.0.js">
377
+ <link rel="stylesheet" crossorigin href="/assets/@xterm.DYP7pi_n.0.0.63-internal.0.css">
378
+ <link rel="stylesheet" crossorigin href="/assets/highlight.Ch2EwETz.0.0.63-internal.0.css">
379
+ <link rel="stylesheet" crossorigin href="/assets/main.DYKKLRxP.0.0.63-internal.0.css">
380
380
  <link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
381
381
  <body>
382
382
  <div id="app" class="app"></div>
@@ -1,4 +1,4 @@
1
- import{e as te,r as H,a as ne,s as $1,b as re,i as oe,c as ie,d as ae,f as O,g as F,m as s1,h as I,j as u1,E as le,k as se,l as N,n as ue,o as Z1,u as de,p as B1,t as ce,q as R,v as E,w as b1,x as F1,y as R1,z as fe,A as pe}from"./@primeuix.BkBDkSvZ.0.0.62.js";import{r as o1,a as me,g as w1,o as Ce,n as ve,w as K,i as ge,b as he,m as g,u as ye,c as h,d as y,e as v}from"./@vue.Dh6viqaK.0.0.62.js";var j={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Qt={AND:"and",OR:"or"};function S1(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=$e(n))||e){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(s){throw s},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{e as te,r as H,a as ne,s as $1,b as re,i as oe,c as ie,d as ae,f as O,g as F,m as s1,h as I,j as u1,E as le,k as se,l as N,n as ue,o as Z1,u as de,p as B1,t as ce,q as R,v as E,w as b1,x as F1,y as R1,z as fe,A as pe}from"./@primeuix.BkBDkSvZ.0.0.63-internal.0.js";import{r as o1,a as me,g as w1,o as Ce,n as ve,w as K,i as ge,b as he,m as g,u as ye,c as h,d as y,e as v}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";var j={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},Qt={AND:"and",OR:"or"};function S1(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=$e(n))||e){t&&(n=t);var r=0,o=function(){};return{s:o,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(s){throw s},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,u=!0,l=!1;return{s:function(){t=t.call(n)},n:function(){var s=t.next();return u=s.done,s},e:function(s){l=!0,i=s},f:function(){try{u||t.return==null||t.return()}finally{if(l)throw i}}}}function $e(n,e){if(n){if(typeof n=="string")return _1(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_1(n,e):void 0}}function _1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}var Yt={filter:function(e,t,r,o,i){var u=[];if(!e)return u;var l=S1(e),a;try{for(l.s();!(a=l.n()).done;){var s=a.value;if(typeof s=="string"){if(this.filters[o](s,r,i)){u.push(s);continue}}else{var c=S1(t),d;try{for(c.s();!(d=c.n()).done;){var f=d.value,m=ne(s,f);if(this.filters[o](m,r,i)){u.push(s);break}}}catch(C){c.e(C)}finally{c.f()}}}}catch(C){l.e(C)}finally{l.f()}return u},filters:{startsWith:function(e,t,r){if(t==null||t==="")return!0;if(e==null)return!1;var o=H(t.toString()).toLocaleLowerCase(r),i=H(e.toString()).toLocaleLowerCase(r);return i.slice(0,o.length)===o},contains:function(e,t,r){if(t==null||t==="")return!0;if(e==null)return!1;var o=H(t.toString()).toLocaleLowerCase(r),i=H(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)!==-1},notContains:function(e,t,r){if(t==null||t==="")return!0;if(e==null)return!1;var o=H(t.toString()).toLocaleLowerCase(r),i=H(e.toString()).toLocaleLowerCase(r);return i.indexOf(o)===-1},endsWith:function(e,t,r){if(t==null||t==="")return!0;if(e==null)return!1;var o=H(t.toString()).toLocaleLowerCase(r),i=H(e.toString()).toLocaleLowerCase(r);return i.indexOf(o,i.length-o.length)!==-1},equals:function(e,t,r){return t==null||t===""?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()===t.getTime():H(e.toString()).toLocaleLowerCase(r)==H(t.toString()).toLocaleLowerCase(r)},notEquals:function(e,t,r){return t==null||t===""?!1:e==null?!0:e.getTime&&t.getTime?e.getTime()!==t.getTime():H(e.toString()).toLocaleLowerCase(r)!=H(t.toString()).toLocaleLowerCase(r)},in:function(e,t){if(t==null||t.length===0)return!0;for(var r=0;r<t.length;r++)if(te(e,t[r]))return!0;return!1},between:function(e,t){return t==null||t[0]==null||t[1]==null?!0:e==null?!1:e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1]},lt:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<t.getTime():e<t},lte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t},gt:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>t.getTime():e>t},gte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t},dateIs:function(e,t){return t==null?!0:e==null?!1:e.toDateString()===t.toDateString()},dateIsNot:function(e,t){return t==null?!0:e==null?!1:e.toDateString()!==t.toDateString()},dateBefore:function(e,t){return t==null?!0:e==null?!1:e.getTime()<t.getTime()},dateAfter:function(e,t){return t==null?!0:e==null?!1:e.getTime()>t.getTime()}},register:function(e,t){this.filters[e]=t}};function G(n){"@babel/helpers - typeof";return G=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(n)}function L1(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function T1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?L1(Object(t),!0).forEach(function(r){be(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):L1(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function be(n,e,t){return(e=we(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function we(n){var e=Se(n,"string");return G(e)=="symbol"?e:e+""}function Se(n,e){if(G(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(G(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function _e(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;w1()&&w1().components?Ce(n):e?n():ve(n)}var Le=0;function Te(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=o1(!1),r=o1(n),o=o1(null),i=ie()?window.document:void 0,u=e.document,l=u===void 0?i:u,a=e.immediate,s=a===void 0?!0:a,c=e.manual,d=c===void 0?!1:c,f=e.name,m=f===void 0?"style_".concat(++Le):f,C=e.id,T=C===void 0?void 0:C,_=e.media,P=_===void 0?void 0:_,M=e.nonce,V=M===void 0?void 0:M,p=e.first,L=p===void 0?!1:p,A=e.onMounted,Z=A===void 0?void 0:A,p1=e.onUpdated,i1=p1===void 0?void 0:p1,m1=e.onLoad,a1=m1===void 0?void 0:m1,C1=e.props,Q1=C1===void 0?{}:C1,v1=function(){},g1=function(J1){var X1=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(l){var n1=T1(T1({},Q1),X1),U=n1.name||m,y1=n1.id||T,ee=n1.nonce||V;o.value=l.querySelector('style[data-primevue-style-id="'.concat(U,'"]'))||l.getElementById(y1)||l.createElement("style"),o.value.isConnected||(r.value=J1||n,$1(o.value,{type:"text/css",id:y1,media:P,nonce:ee}),L?l.head.prepend(o.value):l.head.appendChild(o.value),re(o.value,"data-primevue-style-id",U),$1(o.value,n1),o.value.onload=function(l1){return a1==null?void 0:a1(l1,{name:U})},Z==null||Z(U)),!t.value&&(v1=K(r,function(l1){o.value.textContent=l1,i1==null||i1(U)},{immediate:!0}),t.value=!0)}},Y1=function(){!l||!t.value||(v1(),oe(o.value)&&l.head.removeChild(o.value),t.value=!1,o.value=null)};return s&&!d&&_e(g1),{id:T,name:m,el:o,css:r,unload:Y1,load:g1,isLoaded:me(t)}}function z(n){"@babel/helpers - typeof";return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}function P1(n,e){return Ve(n)||xe(n,e)||Oe(n,e)||Pe()}function Pe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(n,e){if(n){if(typeof n=="string")return O1(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O1(n,e):void 0}}function O1(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function xe(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,i,u,l=[],a=!0,s=!1;try{if(i=(t=t.call(n)).next,e!==0)for(;!(a=(r=i.call(t)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(c){s=!0,o=c}finally{try{if(!a&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(s)throw o}}return l}}function Ve(n){if(Array.isArray(n))return n}function x1(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function d1(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?x1(Object(t),!0).forEach(function(r){Me(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):x1(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Me(n,e,t){return(e=je(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function je(n){var e=Ae(n,"string");return z(e)=="symbol"?e:e+""}function Ae(n,e){if(z(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(z(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}var He=function(e){var t=e.dt;return`
4
4
  .p-hidden-accessible {
@@ -0,0 +1 @@
1
+ var be=s=>{throw TypeError(s)};var Yt=(s,t,e)=>t.has(s)||be("Cannot "+e);var r=(s,t,e)=>(Yt(s,t,"read from private field"),e?e.call(s):t.get(s)),l=(s,t,e)=>t.has(s)?be("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),o=(s,t,e,i)=>(Yt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),p=(s,t,e)=>(Yt(s,t,"access private method"),e);var $t=(s,t,e,i)=>({set _(n){o(s,t,n,e)},get _(){return r(s,t,i)}});import{f as xe,h as ns,j as as,i as us,r as os,n as hs,k as Ke,s as ke,b as Le,w as Ot,l as He,p as _e,a as Ge,t as Ne}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";var jt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},vt=typeof window>"u"||"Deno"in globalThis;function H(){}function cs(s,t){return typeof s=="function"?s(t):s}function Xt(s){return typeof s=="number"&&s>=0&&s!==1/0}function $e(s,t){return Math.max(s+(t||0)-Date.now(),0)}function Ct(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ge(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:h}=s;if(u){if(i){if(t.queryHash!==ye(u,t.options))return!1}else if(!Kt(t.queryKey,u))return!1}if(e!=="all"){const d=t.isActive();if(e==="active"&&!d||e==="inactive"&&d)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||n&&n!==t.state.fetchStatus||a&&!a(t))}function Oe(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(bt(t.options.mutationKey)!==bt(a))return!1}else if(!Kt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ye(s,t){return((t==null?void 0:t.queryKeyHashFn)||bt)(s)}function bt(s){return JSON.stringify(s,(t,e)=>Zt(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function Kt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?Object.keys(t).every(e=>Kt(s[e],t[e])):!1}function Be(s,t){if(s===t)return s;const e=Ce(s)&&Ce(t);if(e||Zt(s)&&Zt(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,h=e?[]:{};let d=0;for(let w=0;w<u;w++){const y=e?w:a[w];(!e&&i.includes(y)||e)&&s[y]===void 0&&t[y]===void 0?(h[y]=void 0,d++):(h[y]=Be(s[y],t[y]),h[y]===s[y]&&s[y]!==void 0&&d++)}return n===u&&d===n?s:h}return t}function zt(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function Ce(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function Zt(s){if(!we(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!we(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function we(s){return Object.prototype.toString.call(s)==="[object Object]"}function ls(s){return new Promise(t=>{setTimeout(t,s)})}function te(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Be(s,t):t}function fs(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function ds(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var pe=Symbol();function Ve(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===pe?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}function ee(s,t){return typeof s=="function"?s(...t):!!s}var ht,Z,wt,De,ys=(De=class extends jt{constructor(){super();l(this,ht);l(this,Z);l(this,wt);o(this,wt,t=>{if(!vt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,wt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),o(this,Z,void 0))}setEventListener(t){var e;o(this,wt,t),(e=r(this,Z))==null||e.call(this),o(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ht)!==t&&(o(this,ht,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ht)=="boolean"?r(this,ht):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ht=new WeakMap,Z=new WeakMap,wt=new WeakMap,De),me=new ys,Qt,tt,St,Fe,ps=(Fe=class extends jt{constructor(){super();l(this,Qt,!0);l(this,tt);l(this,St);o(this,St,t=>{if(!vt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,St))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),o(this,tt,void 0))}setEventListener(t){var e;o(this,St,t),(e=r(this,tt))==null||e.call(this),o(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,Qt)!==t&&(o(this,Qt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,Qt)}},Qt=new WeakMap,tt=new WeakMap,St=new WeakMap,Fe),Wt=new ps;function se(){let s,t;const e=new Promise((n,a)=>{s=n,t=a});e.status="pending",e.catch(()=>{});function i(n){Object.assign(e,n),delete e.resolve,delete e.reject}return e.resolve=n=>{i({status:"fulfilled",value:n}),s(n)},e.reject=n=>{i({status:"rejected",reason:n}),t(n)},e}function ms(s){return Math.min(1e3*2**s,3e4)}function ze(s){return(s??"online")==="online"?Wt.isOnline():!0}var We=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function Jt(s){return s instanceof We}function Ye(s){let t=!1,e=0,i=!1,n;const a=se(),u=m=>{var g;i||(O(new We(m)),(g=s.abort)==null||g.call(s))},h=()=>{t=!0},d=()=>{t=!1},w=()=>me.isFocused()&&(s.networkMode==="always"||Wt.isOnline())&&s.canRun(),y=()=>ze(s.networkMode)&&s.canRun(),c=m=>{var g;i||(i=!0,(g=s.onSuccess)==null||g.call(s,m),n==null||n(),a.resolve(m))},O=m=>{var g;i||(i=!0,(g=s.onError)==null||g.call(s,m),n==null||n(),a.reject(m))},f=()=>new Promise(m=>{var g;n=D=>{(i||w())&&m(D)},(g=s.onPause)==null||g.call(s)}).then(()=>{var m;n=void 0,i||(m=s.onContinue)==null||m.call(s)}),Q=()=>{if(i)return;let m;const g=e===0?s.initialPromise:void 0;try{m=g??s.fn()}catch(D){m=Promise.reject(D)}Promise.resolve(m).then(c).catch(D=>{var k;if(i)return;const F=s.retry??(vt?0:3),S=s.retryDelay??ms,M=typeof S=="function"?S(e,D):S,K=F===!0||typeof F=="number"&&e<F||typeof F=="function"&&F(e,D);if(t||!K){O(D);return}e++,(k=s.onFail)==null||k.call(s,e,D),ls(M).then(()=>w()?void 0:f()).then(()=>{t?O(D):Q()})})};return{promise:a,cancel:u,continue:()=>(n==null||n(),a),cancelRetry:h,continueRetry:d,canStart:y,start:()=>(y()?Q():f().then(Q),a)}}var vs=s=>setTimeout(s,0);function bs(){let s=[],t=0,e=h=>{h()},i=h=>{h()},n=vs;const a=h=>{t?s.push(h):n(()=>{e(h)})},u=()=>{const h=s;s=[],h.length&&n(()=>{i(()=>{h.forEach(d=>{e(d)})})})};return{batch:h=>{let d;t++;try{d=h()}finally{t--,t||u()}return d},batchCalls:h=>(...d)=>{a(()=>{h(...d)})},schedule:a,setNotifyFunction:h=>{e=h},setBatchNotifyFunction:h=>{i=h},setScheduler:h=>{n=h}}}var A=bs(),ct,Me,Je=(Me=class{constructor(){l(this,ct)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Xt(this.gcTime)&&o(this,ct,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(vt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ct)&&(clearTimeout(r(this,ct)),o(this,ct,void 0))}},ct=new WeakMap,Me),Rt,Pt,L,lt,q,kt,ft,_,z,Ee,gs=(Ee=class extends Je{constructor(t){super();l(this,_);l(this,Rt);l(this,Pt);l(this,L);l(this,lt);l(this,q);l(this,kt);l(this,ft);o(this,ft,!1),o(this,kt,t.defaultOptions),this.setOptions(t.options),this.observers=[],o(this,lt,t.client),o(this,L,r(this,lt).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,o(this,Rt,Os(this.options)),this.state=t.state??r(this,Rt),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,q))==null?void 0:t.promise}setOptions(t){this.options={...r(this,kt),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,L).remove(this)}setData(t,e){const i=te(this.state.data,t,this.options);return p(this,_,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){p(this,_,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,q))==null?void 0:i.promise;return(n=r(this,q))==null||n.cancel(t),e?e.then(H).catch(H):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,Rt))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===pe||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$e(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,q))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,q))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,L).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,q)&&(r(this,ft)?r(this,q).cancel({revert:!0}):r(this,q).cancelRetry()),this.scheduleGc()),r(this,L).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(this,_,z).call(this,{type:"invalidate"})}fetch(t,e){var d,w,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,q))return r(this,q).continueRetry(),r(this,q).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(O=>O.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(o(this,ft,!0),i.signal)})},a=()=>{const c=Ve(this.options,e),O={client:r(this,lt),queryKey:this.queryKey,meta:this.meta};return n(O),o(this,ft,!1),this.options.persister?this.options.persister(c,O,this):c(O)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:r(this,lt),state:this.state,fetchFn:a};n(u),(d=this.options.behavior)==null||d.onFetch(u,this),o(this,Pt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=u.fetchOptions)==null?void 0:w.meta))&&p(this,_,z).call(this,{type:"fetch",meta:(y=u.fetchOptions)==null?void 0:y.meta});const h=c=>{var O,f,Q,m;Jt(c)&&c.silent||p(this,_,z).call(this,{type:"error",error:c}),Jt(c)||((f=(O=r(this,L).config).onError)==null||f.call(O,c,this),(m=(Q=r(this,L).config).onSettled)==null||m.call(Q,this.state.data,c,this)),this.scheduleGc()};return o(this,q,Ye({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var O,f,Q,m;if(c===void 0){h(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(g){h(g);return}(f=(O=r(this,L).config).onSuccess)==null||f.call(O,c,this),(m=(Q=r(this,L).config).onSettled)==null||m.call(Q,c,this.state.error,this),this.scheduleGc()},onError:h,onFail:(c,O)=>{p(this,_,z).call(this,{type:"failed",failureCount:c,error:O})},onPause:()=>{p(this,_,z).call(this,{type:"pause"})},onContinue:()=>{p(this,_,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,q).start()}},Rt=new WeakMap,Pt=new WeakMap,L=new WeakMap,lt=new WeakMap,q=new WeakMap,kt=new WeakMap,ft=new WeakMap,_=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Xe(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return Jt(n)&&n.revert&&r(this,Pt)?{...r(this,Pt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,L).notify({query:this,type:"updated",action:t})})},Ee);function Xe(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ze(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function Os(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var $,Ae,Ze=(Ae=class extends jt{constructor(e={}){super();l(this,$);this.config=e,o(this,$,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ye(a,i);let h=this.get(u);return h||(h=new gs({client:e,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(h)),h}add(e){r(this,$).has(e.queryHash)||(r(this,$).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,$).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,$).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,$).get(e)}getAll(){return[...r(this,$).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ge(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ge(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$=new WeakMap,Ae),B,I,dt,V,X,Ue,Cs=(Ue=class extends Je{constructor(t){super();l(this,V);l(this,B);l(this,I);l(this,dt);this.mutationId=t.mutationId,o(this,I,t.mutationCache),o(this,B,[]),this.state=t.state||ts(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,I).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){o(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,I).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,I).remove(this))}continue(){var t;return((t=r(this,dt))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var a,u,h,d,w,y,c,O,f,Q,m,g,D,F,S,M,K,k,Tt,U;const e=()=>{p(this,V,X).call(this,{type:"continue"})};o(this,dt,Ye({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(P,E)=>{p(this,V,X).call(this,{type:"failed",failureCount:P,error:E})},onPause:()=>{p(this,V,X).call(this,{type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,I).canRun(this)}));const i=this.state.status==="pending",n=!r(this,dt).canStart();try{if(i)e();else{p(this,V,X).call(this,{type:"pending",variables:t,isPaused:n}),await((u=(a=r(this,I).config).onMutate)==null?void 0:u.call(a,t,this));const E=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t));E!==this.state.context&&p(this,V,X).call(this,{type:"pending",context:E,variables:t,isPaused:n})}const P=await r(this,dt).start();return await((y=(w=r(this,I).config).onSuccess)==null?void 0:y.call(w,P,t,this.state.context,this)),await((O=(c=this.options).onSuccess)==null?void 0:O.call(c,P,t,this.state.context)),await((Q=(f=r(this,I).config).onSettled)==null?void 0:Q.call(f,P,null,this.state.variables,this.state.context,this)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,P,null,t,this.state.context)),p(this,V,X).call(this,{type:"success",data:P}),P}catch(P){try{throw await((F=(D=r(this,I).config).onError)==null?void 0:F.call(D,P,t,this.state.context,this)),await((M=(S=this.options).onError)==null?void 0:M.call(S,P,t,this.state.context)),await((k=(K=r(this,I).config).onSettled)==null?void 0:k.call(K,void 0,P,this.state.variables,this.state.context,this)),await((U=(Tt=this.options).onSettled)==null?void 0:U.call(Tt,void 0,P,t,this.state.context)),P}finally{p(this,V,X).call(this,{type:"error",error:P})}}finally{r(this,I).runNext(this)}}},B=new WeakMap,I=new WeakMap,dt=new WeakMap,V=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,I).notify({mutation:this,type:"updated",action:t})})},Ue);function ts(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var W,G,Lt,qe,es=(qe=class extends jt{constructor(e={}){super();l(this,W);l(this,G);l(this,Lt);this.config=e,o(this,W,new Set),o(this,G,new Map),o(this,Lt,0)}build(e,i,n){const a=new Cs({mutationCache:this,mutationId:++$t(this,Lt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){r(this,W).add(e);const i=Bt(e);if(typeof i=="string"){const n=r(this,G).get(i);n?n.push(e):r(this,G).set(i,[e])}this.notify({type:"added",mutation:e})}remove(e){if(r(this,W).delete(e)){const i=Bt(e);if(typeof i=="string"){const n=r(this,G).get(i);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&r(this,G).delete(i)}}this.notify({type:"removed",mutation:e})}canRun(e){const i=Bt(e);if(typeof i=="string"){const n=r(this,G).get(i),a=n==null?void 0:n.find(u=>u.state.status==="pending");return!a||a===e}else return!0}runNext(e){var n;const i=Bt(e);if(typeof i=="string"){const a=(n=r(this,G).get(i))==null?void 0:n.find(u=>u!==e&&u.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){A.batch(()=>{r(this,W).forEach(e=>{this.notify({type:"removed",mutation:e})}),r(this,W).clear(),r(this,G).clear()})}getAll(){return Array.from(r(this,W))}find(e){const i={exact:!0,...e};return this.getAll().find(n=>Oe(i,n))}findAll(e={}){return this.getAll().filter(i=>Oe(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(H))))}},W=new WeakMap,G=new WeakMap,Lt=new WeakMap,qe);function Bt(s){var t;return(t=s.options.scope)==null?void 0:t.id}function Qe(s){return{onFetch:(t,e)=>{var y,c,O,f,Q;const i=t.options,n=(O=(c=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:c.fetchMore)==null?void 0:O.direction,a=((f=t.state.data)==null?void 0:f.pages)||[],u=((Q=t.state.data)==null?void 0:Q.pageParams)||[];let h={pages:[],pageParams:[]},d=0;const w=async()=>{let m=!1;const g=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?m=!0:t.signal.addEventListener("abort",()=>{m=!0}),t.signal)})},D=Ve(t.options,t.fetchOptions),F=async(S,M,K)=>{if(m)return Promise.reject();if(M==null&&S.pages.length)return Promise.resolve(S);const k={client:t.client,queryKey:t.queryKey,pageParam:M,direction:K?"backward":"forward",meta:t.options.meta};g(k);const Tt=await D(k),{maxPages:U}=t.options,P=K?ds:fs;return{pages:P(S.pages,Tt,U),pageParams:P(S.pageParams,M,U)}};if(n&&a.length){const S=n==="backward",M=S?ws:Se,K={pages:a,pageParams:u},k=M(i,K);h=await F(K,k,S)}else{const S=s??a.length;do{const M=d===0?u[0]??i.initialPageParam:Se(i,h);if(d>0&&M==null)break;h=await F(h,M),d++}while(d<S)}return h};t.options.persister?t.fetchFn=()=>{var m,g;return(g=(m=t.options).persister)==null?void 0:g.call(m,w,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=w}}}function Se(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function ws(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Dt,Ft,it,Mt,Et,Ie,Qs=(Ie=class{constructor(t={}){l(this,R);l(this,et);l(this,st);l(this,Dt);l(this,Ft);l(this,it);l(this,Mt);l(this,Et);o(this,R,t.queryCache||new Ze),o(this,et,t.mutationCache||new es),o(this,st,t.defaultOptions||{}),o(this,Dt,new Map),o(this,Ft,new Map),o(this,it,0)}mount(){$t(this,it)._++,r(this,it)===1&&(o(this,Mt,me.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),o(this,Et,Wt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;$t(this,it)._--,r(this,it)===0&&((t=r(this,Mt))==null||t.call(this),o(this,Mt,void 0),(e=r(this,Et))==null||e.call(this),o(this,Et,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),i=r(this,R).build(this,e),n=i.state.data;return n===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(Ct(e.staleTime,i))&&this.prefetchQuery(e),Promise.resolve(n))}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),u=a==null?void 0:a.state.data,h=cs(e,u);if(h!==void 0)return r(this,R).build(this,n).setData(h,{...i,manual:!0})}setQueriesData(t,e,i){return A.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R);return A.batch(()=>(i.findAll(t).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(H).catch(H)}invalidateQueries(t,e={}){return A.batch(()=>(r(this,R).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},e)))}refetchQueries(t,e={}){const i={...e,cancelRefetch:e.cancelRefetch??!0},n=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(H)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(H)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(Ct(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(H).catch(H)}fetchInfiniteQuery(t){return t.behavior=Qe(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(H).catch(H)}ensureInfiniteQueryData(t){return t.behavior=Qe(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Wt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){o(this,st,t)}setQueryDefaults(t,e){r(this,Dt).set(bt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Dt).values()],i={};return e.forEach(n=>{Kt(t,n.queryKey)&&Object.assign(i,n.defaultOptions)}),i}setMutationDefaults(t,e){r(this,Ft).set(bt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,Ft).values()],i={};return e.forEach(n=>{Kt(t,n.mutationKey)&&Object.assign(i,n.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ye(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===pe&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Dt=new WeakMap,Ft=new WeakMap,it=new WeakMap,Mt=new WeakMap,Et=new WeakMap,Ie),T,b,Ht,j,yt,At,rt,nt,_t,Ut,qt,pt,mt,at,It,C,xt,ie,re,ne,ae,ue,oe,he,ss,je,Ss=(je=class extends jt{constructor(t,e){super();l(this,C);l(this,T);l(this,b);l(this,Ht);l(this,j);l(this,yt);l(this,At);l(this,rt);l(this,nt);l(this,_t);l(this,Ut);l(this,qt);l(this,pt);l(this,mt);l(this,at);l(this,It,new Set);this.options=e,o(this,T,t),o(this,nt,null),o(this,rt,se()),this.options.experimental_prefetchInRender||r(this,rt).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),Re(r(this,b),this.options)?p(this,C,xt).call(this):this.updateResult(),p(this,C,ae).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ce(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ce(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,p(this,C,ue).call(this),p(this,C,oe).call(this),r(this,b).removeObserver(this)}setOptions(t){const e=this.options,i=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");p(this,C,he).call(this),r(this,b).setOptions(this.options),e._defaulted&&!zt(this.options,e)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const n=this.hasListeners();n&&Pe(r(this,b),i,this.options,e)&&p(this,C,xt).call(this),this.updateResult(),n&&(r(this,b)!==i||N(this.options.enabled,r(this,b))!==N(e.enabled,r(this,b))||Ct(this.options.staleTime,r(this,b))!==Ct(e.staleTime,r(this,b)))&&p(this,C,ie).call(this);const a=p(this,C,re).call(this);n&&(r(this,b)!==i||N(this.options.enabled,r(this,b))!==N(e.enabled,r(this,b))||a!==r(this,at))&&p(this,C,ne).call(this,a)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return Ps(this,i)&&(o(this,j,i),o(this,At,this.options),o(this,yt,r(this,b).state)),i}getCurrentResult(){return r(this,j)}trackResult(t,e){return new Proxy(t,{get:(i,n)=>(this.trackProp(n),e==null||e(n),Reflect.get(i,n))})}trackProp(t){r(this,It).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.fetch().then(()=>this.createResult(i,e))}fetch(t){return p(this,C,xt).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,j)))}createResult(t,e){var P;const i=r(this,b),n=this.options,a=r(this,j),u=r(this,yt),h=r(this,At),w=t!==i?t.state:r(this,Ht),{state:y}=t;let c={...y},O=!1,f;if(e._optimisticResults){const E=this.hasListeners(),Gt=!E&&Re(t,e),gt=E&&Pe(t,i,e,n);(Gt||gt)&&(c={...c,...Xe(y.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:Q,errorUpdatedAt:m,status:g}=c;f=c.data;let D=!1;if(e.placeholderData!==void 0&&f===void 0&&g==="pending"){let E;a!=null&&a.isPlaceholderData&&e.placeholderData===(h==null?void 0:h.placeholderData)?(E=a.data,D=!0):E=typeof e.placeholderData=="function"?e.placeholderData((P=r(this,qt))==null?void 0:P.state.data,r(this,qt)):e.placeholderData,E!==void 0&&(g="success",f=te(a==null?void 0:a.data,E,e),O=!0)}if(e.select&&f!==void 0&&!D)if(a&&f===(u==null?void 0:u.data)&&e.select===r(this,_t))f=r(this,Ut);else try{o(this,_t,e.select),f=e.select(f),f=te(a==null?void 0:a.data,f,e),o(this,Ut,f),o(this,nt,null)}catch(E){o(this,nt,E)}r(this,nt)&&(Q=r(this,nt),f=r(this,Ut),m=Date.now(),g="error");const F=c.fetchStatus==="fetching",S=g==="pending",M=g==="error",K=S&&F,k=f!==void 0,U={status:g,fetchStatus:c.fetchStatus,isPending:S,isSuccess:g==="success",isError:M,isInitialLoading:K,isLoading:K,data:f,dataUpdatedAt:c.dataUpdatedAt,error:Q,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>w.dataUpdateCount||c.errorUpdateCount>w.errorUpdateCount,isFetching:F,isRefetching:F&&!S,isLoadingError:M&&!k,isPaused:c.fetchStatus==="paused",isPlaceholderData:O,isRefetchError:M&&k,isStale:ve(t,e),refetch:this.refetch,promise:r(this,rt)};if(this.options.experimental_prefetchInRender){const E=Nt=>{U.status==="error"?Nt.reject(U.error):U.data!==void 0&&Nt.resolve(U.data)},Gt=()=>{const Nt=o(this,rt,U.promise=se());E(Nt)},gt=r(this,rt);switch(gt.status){case"pending":t.queryHash===i.queryHash&&E(gt);break;case"fulfilled":(U.status==="error"||U.data!==gt.value)&&Gt();break;case"rejected":(U.status!=="error"||U.error!==gt.reason)&&Gt();break}}return U}updateResult(){const t=r(this,j),e=this.createResult(r(this,b),this.options);if(o(this,yt,r(this,b).state),o(this,At,this.options),r(this,yt).data!==void 0&&o(this,qt,r(this,b)),zt(e,t))return;o(this,j,e);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:n}=this.options,a=typeof n=="function"?n():n;if(a==="all"||!a&&!r(this,It).size)return!0;const u=new Set(a??r(this,It));return this.options.throwOnError&&u.add("error"),Object.keys(r(this,j)).some(h=>{const d=h;return r(this,j)[d]!==t[d]&&u.has(d)})};p(this,C,ss).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&p(this,C,ae).call(this)}},T=new WeakMap,b=new WeakMap,Ht=new WeakMap,j=new WeakMap,yt=new WeakMap,At=new WeakMap,rt=new WeakMap,nt=new WeakMap,_t=new WeakMap,Ut=new WeakMap,qt=new WeakMap,pt=new WeakMap,mt=new WeakMap,at=new WeakMap,It=new WeakMap,C=new WeakSet,xt=function(t){p(this,C,he).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(H)),e},ie=function(){p(this,C,ue).call(this);const t=Ct(this.options.staleTime,r(this,b));if(vt||r(this,j).isStale||!Xt(t))return;const i=$e(r(this,j).dataUpdatedAt,t)+1;o(this,pt,setTimeout(()=>{r(this,j).isStale||this.updateResult()},i))},re=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},ne=function(t){p(this,C,oe).call(this),o(this,at,t),!(vt||N(this.options.enabled,r(this,b))===!1||!Xt(r(this,at))||r(this,at)===0)&&o(this,mt,setInterval(()=>{(this.options.refetchIntervalInBackground||me.isFocused())&&p(this,C,xt).call(this)},r(this,at)))},ae=function(){p(this,C,ie).call(this),p(this,C,ne).call(this,p(this,C,re).call(this))},ue=function(){r(this,pt)&&(clearTimeout(r(this,pt)),o(this,pt,void 0))},oe=function(){r(this,mt)&&(clearInterval(r(this,mt)),o(this,mt,void 0))},he=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);o(this,b,t),o(this,Ht,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},ss=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,j))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},je);function Rs(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function Re(s,t){return Rs(s,t)||s.state.data!==void 0&&ce(s,t,t.refetchOnMount)}function ce(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&ve(s,t)}return!1}function Pe(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&ve(s,e)}function ve(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(Ct(t.staleTime,s))}function Ps(s,t){return!zt(s.getCurrentResult(),t)}var ut,ot,x,Y,J,Vt,le,Te,Ds=(Te=class extends jt{constructor(t,e){super();l(this,J);l(this,ut);l(this,ot);l(this,x);l(this,Y);o(this,ut,t),this.setOptions(e),this.bindMethods(),p(this,J,Vt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,ut).defaultMutationOptions(t),zt(this.options,e)||r(this,ut).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,x),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&bt(e.mutationKey)!==bt(this.options.mutationKey)?this.reset():((i=r(this,x))==null?void 0:i.state.status)==="pending"&&r(this,x).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,x))==null||t.removeObserver(this)}onMutationUpdate(t){p(this,J,Vt).call(this),p(this,J,le).call(this,t)}getCurrentResult(){return r(this,ot)}reset(){var t;(t=r(this,x))==null||t.removeObserver(this),o(this,x,void 0),p(this,J,Vt).call(this),p(this,J,le).call(this)}mutate(t,e){var i;return o(this,Y,e),(i=r(this,x))==null||i.removeObserver(this),o(this,x,r(this,ut).getMutationCache().build(r(this,ut),this.options)),r(this,x).addObserver(this),r(this,x).execute(t)}},ut=new WeakMap,ot=new WeakMap,x=new WeakMap,Y=new WeakMap,J=new WeakSet,Vt=function(){var e;const t=((e=r(this,x))==null?void 0:e.state)??ts();o(this,ot,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},le=function(t){A.batch(()=>{var e,i,n,a,u,h,d,w;if(r(this,Y)&&this.hasListeners()){const y=r(this,ot).variables,c=r(this,ot).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,y,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,y,c)):(t==null?void 0:t.type)==="error"&&((h=(u=r(this,Y)).onError)==null||h.call(u,t.error,y,c),(w=(d=r(this,Y)).onSettled)==null||w.call(d,void 0,t.error,y,c))}this.listeners.forEach(y=>{y(r(this,ot))})})},Te),Fs="VUE_QUERY_CLIENT";function is(s){const t=s?`:${s}`:"";return`${Fs}${t}`}function fe(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function de(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&xe(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>de(n,t,String(a),i+1));if(typeof s=="object"&&Es(s)){const n=Object.entries(s).map(([a,u])=>[a,de(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function Ms(s,t){return de(s,t)}function v(s,t=!1){return Ms(s,(e,i,n)=>{if(n===1&&i==="queryKey")return v(e,!0);if(t&&As(e))return v(e(),t);if(xe(e))return v(ns(e),t)})}function Es(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function As(s){return typeof s=="function"}function rs(s=""){if(!as())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=is(s),e=us(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var Us=class extends Ze{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},qs=class extends es{find(s){return super.find(v(s))}findAll(s={}){return super.findAll(v(s))}},Is=class extends Qs{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new Us,mutationCache:s.mutationCache||new qs};super(t),this.isRestoring=os(!1)}isFetching(s={}){return super.isFetching(v(s))}isMutating(s={}){return super.isMutating(v(s))}getQueryData(s){return super.getQueryData(v(s))}ensureQueryData(s){return super.ensureQueryData(v(s))}getQueriesData(s){return super.getQueriesData(v(s))}setQueryData(s,t,e={}){return super.setQueryData(v(s),t,v(e))}setQueriesData(s,t,e={}){return super.setQueriesData(v(s),t,v(e))}getQueryState(s){return super.getQueryState(v(s))}removeQueries(s={}){return super.removeQueries(v(s))}resetQueries(s={},t={}){return super.resetQueries(v(s),v(t))}cancelQueries(s={},t={}){return super.cancelQueries(v(s),v(t))}invalidateQueries(s={},t={}){const e=v(s),i=v(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return hs().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(v(s),v(t))}fetchQuery(s){return super.fetchQuery(v(s))}prefetchQuery(s){return super.prefetchQuery(v(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(v(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(v(s))}setDefaultOptions(s){super.setDefaultOptions(v(s))}setQueryDefaults(s,t){super.setQueryDefaults(v(s),v(t))}getQueryDefaults(s){return super.getQueryDefaults(v(s))}setMutationDefaults(s,t){super.setMutationDefaults(v(s),v(t))}getMutationDefaults(s){return super.getMutationDefaults(v(s))}},Hs={install:(s,t={})=>{const e=is(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Is(u)}vt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,h]=t.clientPersister(i);n=u,h.then(()=>{var d;i.isRestoring.value=!1,(d=t.clientPersisterOnSuccess)==null||d.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function js(s,t,e){const i=rs(),n=Ke(()=>{const f=v(t);typeof f.enabled=="function"&&(f.enabled=f.enabled());const Q=i.defaultQueryOptions(f);return Q._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",Q}),a=new s(i,n.value),u=n.value.shallow?ke(a.getCurrentResult()):Le(a.getCurrentResult());let h=()=>{};Ot(i.isRestoring,f=>{f||(h(),h=a.subscribe(Q=>{fe(u,Q)}))},{immediate:!0});const d=()=>{a.setOptions(n.value),fe(u,a.getCurrentResult())};Ot(n,d),He(()=>{h()});const w=(...f)=>(d(),u.refetch(...f)),y=()=>new Promise((f,Q)=>{let m=()=>{};const g=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const D=a.getOptimisticResult(n.value);D.isStale?(m(),a.fetchOptimistic(n.value).then(f,F=>{ee(n.value.throwOnError,[F,a.getCurrentQuery()])?Q(F):f(a.getCurrentResult())})):(m(),f(D))}};g(),m=Ot(n,g)});Ot(()=>u.error,f=>{if(u.isError&&!u.isFetching&&ee(n.value.throwOnError,[f,a.getCurrentQuery()]))throw f});const c=n.value.shallow?_e(u):Ge(u),O=Ne(c);for(const f in u)typeof u[f]=="function"&&(O[f]=u[f]);return O.suspense=y,O.refetch=w,O}function _s(s,t){return js(Ss,s)}function Gs(s,t){const e=rs(),i=Ke(()=>e.defaultMutationOptions(v(s))),n=new Ds(e,i.value),a=i.value.shallow?ke(n.getCurrentResult()):Le(n.getCurrentResult()),u=n.subscribe(y=>{fe(a,y)}),h=(y,c)=>{n.mutate(y,c).catch(()=>{})};Ot(i,()=>{n.setOptions(i.value)}),He(()=>{u()});const d=i.value.shallow?_e(a):Ge(a),w=Ne(d);return Ot(()=>a.error,y=>{if(y&&ee(i.value.throwOnError,[y]))throw y}),{...w,mutate:h,mutateAsync:a.mutate,reset:a.reset}}export{Hs as V,_s as a,Gs as b,rs as u};
@@ -1,4 +1,4 @@
1
- import{Z as s,a as h,b as a}from"./zod.sy4ilHCy.0.0.62.js";import{i as j,c as y}from"./vee-validate.Bf0LCjSi.0.0.62.js";/**
1
+ import{Z as s,a as h,b as a}from"./zod.sy4ilHCy.0.0.63-internal.0.js";import{i as j,c as y}from"./vee-validate.C-8MGG76.0.0.63-internal.0.js";/**
2
2
  * vee-validate v4.15.0
3
3
  * (c) 2024 Abdelrahman Awad
4
4
  * @license MIT
@@ -0,0 +1 @@
1
+ import{n as De,a as q,w as z,q as Ve,r as Q,v as ke,x as Be,y as E,f as le,p as Fe,z as Re,l as Xe,A as x,k as T,g as re,j as Pe,i as qe,o as de,b as G,B as we,C as ee,h as Ae,D as Ue}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";import{n as N}from"./nprogress.ig2CXOoL.0.0.63-internal.0.js";function L(e){return Re()?(Xe(e),!0):!1}const ie=new WeakMap,Ge=(...e)=>{var n;const t=e[0],l=(n=re())==null?void 0:n.proxy;if(l==null&&!Pe())throw new Error("injectLocal must be called in setup");return l&&ie.has(l)&&t in ie.get(l)?ie.get(l)[t]:qe(...e)};function $t(e){let n=0,t,l;const i=()=>{n-=1,l&&n<=0&&(l.stop(),t=void 0,l=void 0)};return(...s)=>(n+=1,l||(l=Be(!0),t=l.run(()=>e(...s))),L(i),t)}function Ze(e,n,{enumerable:t=!1,unwrap:l=!0}={}){for(const[i,s]of Object.entries(n))i!=="value"&&(le(s)&&l?Object.defineProperty(e,i,{get(){return s.value},set(a){s.value=a},enumerable:t}):Object.defineProperty(e,i,{value:s,enumerable:t}));return e}function Je(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let l=0;return{next:()=>({value:n[l++],done:l>n.length})}}}),t}else return Object.assign([...n],e)}const $=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ve=e=>e!=null,Ke=Object.prototype.toString,Ce=e=>Ke.call(e)==="[object Object]",ge=()=>+Date.now(),A=()=>{},fe=Qe();function Qe(){var e,n;return $&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function se(...e){if(e.length!==1)return Ve(...e);const n=e[0];return typeof n=="function"?q(ke(()=>({get:n,set:A}))):Q(n)}function ue(e,n){function t(...l){return new Promise((i,s)=>{Promise.resolve(e(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(i).catch(s)})}return t}const We=e=>e();function et(e,n={}){let t,l,i=A;const s=r=>{clearTimeout(r),i(),i=A};let a;return r=>{const u=x(e),c=x(n.maxWait);return t&&s(t),u<=0||c!==void 0&&c<=0?(l&&(s(l),l=null),Promise.resolve(r())):new Promise((v,f)=>{i=n.rejectOnCancel?f:v,a=r,c&&!l&&(l=setTimeout(()=>{t&&s(t),l=null,v(a())},c)),t=setTimeout(()=>{l&&s(l),l=null,v(r())},u)})}}function Le(...e){let n=0,t,l=!0,i=A,s,a,o,r,u;!le(e[0])&&typeof e[0]=="object"?{delay:a,trailing:o=!0,leading:r=!0,rejectOnCancel:u=!1}=e[0]:[a,o=!0,r=!0,u=!1]=e;const c=()=>{t&&(clearTimeout(t),t=void 0,i(),i=A)};return f=>{const p=x(a),h=Date.now()-n,y=()=>s=f();return c(),p<=0?(n=Date.now(),y()):(h>p&&(r||!l)?(n=Date.now(),y()):o&&(s=new Promise((w,m)=>{i=u?m:w,t=setTimeout(()=>{n=Date.now(),l=!0,w(y()),c()},Math.max(0,p-h))})),!r&&!t&&(t=setTimeout(()=>l=!0,p)),l=!1,s)}}function tt(e=We,n={}){const{initialState:t="active"}=n,l=se(t==="active");function i(){l.value=!1}function s(){l.value=!0}const a=(...o)=>{l.value&&e(...o)};return{isActive:q(l),pause:i,resume:s,eventFilter:a}}function nt(e){let n;function t(){return n||(n=e()),n}return t.reset=async()=>{const l=n;n=void 0,l&&await l},t}function ye(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Y(e){return Array.isArray(e)?e:[e]}function ot(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const lt=/-(\w)/g,rt=ot(e=>e.replace(lt,(n,t)=>t?t.toUpperCase():""));function st(e){return re()}function ut(e,n=200,t={}){return ue(et(n,t),e)}function it(e,n=200,t=!1,l=!0,i=!1){return ue(Le(n,t,l,i),e)}function jt(e,n={}){let t=e,l,i;const s=ke((f,p)=>(l=f,i=p,{get(){return a()},set(h){o(h)}}));function a(f=!0){return f&&l(),t}function o(f,p=!0){var h,y;if(f===t)return;const w=t;((h=n.onBeforeChange)==null?void 0:h.call(n,f,w))!==!1&&(t=f,(y=n.onChanged)==null||y.call(n,f,w),p&&i())}return Ze(s,{get:a,set:o,untrackedGet:()=>a(!1),silentSet:f=>o(f,!1),peek:()=>a(!1),lay:f=>o(f,!1)},{enumerable:!0})}function at(e,n,t={}){const{eventFilter:l=We,...i}=t;return z(e,ue(l,n),i)}function ct(e,n,t={}){const{eventFilter:l,initialState:i="active",...s}=t,{eventFilter:a,pause:o,resume:r,isActive:u}=tt(l,{initialState:i});return{stop:at(e,n,{...s,eventFilter:a}),pause:o,resume:r,isActive:u}}function Z(e,n=!0,t){st()?de(e,t):n?e():De(e)}const ft=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,dt=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|z{1,4}|SSS/g;function vt(e,n,t,l){let i=e<12?"AM":"PM";return l&&(i=i.split("").reduce((s,a)=>s+=`${a}.`,"")),t?i.toLowerCase():i}function B(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function mt(e,n,t={}){var l;const i=e.getFullYear(),s=e.getMonth(),a=e.getDate(),o=e.getHours(),r=e.getMinutes(),u=e.getSeconds(),c=e.getMilliseconds(),v=e.getDay(),f=(l=t.customMeridiem)!=null?l:vt,p=y=>{var w;return(w=y.split(" ")[1])!=null?w:""},h={Yo:()=>B(i),YY:()=>String(i).slice(-2),YYYY:()=>i,M:()=>s+1,Mo:()=>B(s+1),MM:()=>`${s+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(x(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(x(t.locales),{month:"long"}),D:()=>String(a),Do:()=>B(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(o),Ho:()=>B(o),HH:()=>`${o}`.padStart(2,"0"),h:()=>`${o%12||12}`.padStart(1,"0"),ho:()=>B(o%12||12),hh:()=>`${o%12||12}`.padStart(2,"0"),m:()=>String(r),mo:()=>B(r),mm:()=>`${r}`.padStart(2,"0"),s:()=>String(u),so:()=>B(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${c}`.padStart(3,"0"),d:()=>v,dd:()=>e.toLocaleDateString(x(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(x(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(x(t.locales),{weekday:"long"}),A:()=>f(o,r),AA:()=>f(o,r,!1,!0),a:()=>f(o,r,!0),aa:()=>f(o,r,!0,!0),z:()=>p(e.toLocaleDateString(x(t.locales),{timeZoneName:"shortOffset"})),zz:()=>p(e.toLocaleDateString(x(t.locales),{timeZoneName:"shortOffset"})),zzz:()=>p(e.toLocaleDateString(x(t.locales),{timeZoneName:"shortOffset"})),zzzz:()=>p(e.toLocaleDateString(x(t.locales),{timeZoneName:"longOffset"}))};return n.replace(dt,(y,w)=>{var m,d;return(d=w??((m=h[y])==null?void 0:m.call(h)))!=null?d:y})}function pt(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(ft);if(n){const t=n[2]-1||0,l=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,l)}}return new Date(e)}function Vt(e,n="HH:mm:ss",t={}){return T(()=>mt(pt(x(e)),x(n),t))}function Bt(e,n=1e3,t={}){const{immediate:l=!0,immediateCallback:i=!1}=t;let s=null;const a=E(!1);function o(){s&&(clearInterval(s),s=null)}function r(){a.value=!1,o()}function u(){const c=x(n);c<=0||(a.value=!0,i&&e(),o(),a.value&&(s=setInterval(e,c)))}if(l&&$&&u(),le(n)||typeof n=="function"){const c=z(n,()=>{a.value&&$&&u()});L(c)}return L(r),{isActive:Fe(a),pause:r,resume:u}}function ht(e,n,t={}){const{immediate:l=!0,immediateCallback:i=!1}=t,s=E(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function r(){s.value=!1,o()}function u(...c){i&&e(),o(),s.value=!0,a=setTimeout(()=>{s.value=!1,a=null,e(...c)},x(n))}return l&&(s.value=!0,$&&u()),L(r),{isPending:Fe(s),start:u,stop:r}}function He(e,n,t){return z(e,n,{...t,immediate:!0})}function Xt(e,n,t){let l;le(t)?l={evaluating:t}:l=t||{};const{lazy:i=!1,evaluating:s=void 0,shallow:a=!0,onError:o=A}=l,r=E(!i),u=a?E(n):Q(n);let c=0;return ee(async v=>{if(!r.value)return;c++;const f=c;let p=!1;s&&Promise.resolve().then(()=>{s.value=!0});try{const h=await e(y=>{v(()=>{s&&(s.value=!1),p||y()})});f===c&&(u.value=h)}catch(h){o(h)}finally{s&&f===c&&(s.value=!1),p=!0}}),i?T(()=>(r.value=!0,u.value)):u}function qt(e={}){const{inheritAttrs:n=!0}=e,t=E(),l=we({setup(s,{slots:a}){return()=>{t.value=a.default}}}),i=we({inheritAttrs:n,props:e.props,setup(s,{attrs:a,slots:o}){return()=>{var r;t.value;const u=(r=t.value)==null?void 0:r.call(t,{...e.props==null?wt(a):s,$slots:o});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Je({define:l,reuse:i},[l,i])}function wt(e){const n={};for(const t in e)n[rt(t)]=e[t];return n}const H=$?window:void 0,ze=$?window.document:void 0,Ie=$?window.navigator:void 0;function C(e){var n;const t=x(e);return(n=t==null?void 0:t.$el)!=null?n:t}function O(...e){const n=[],t=()=>{n.forEach(o=>o()),n.length=0},l=(o,r,u,c)=>(o.addEventListener(r,u,c),()=>o.removeEventListener(r,u,c)),i=T(()=>{const o=Y(x(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0}),s=He(()=>{var o,r;return[(r=(o=i.value)==null?void 0:o.map(u=>C(u)))!=null?r:[H].filter(u=>u!=null),Y(x(i.value?e[1]:e[0])),Y(Ae(i.value?e[2]:e[1])),x(i.value?e[3]:e[2])]},([o,r,u,c])=>{if(t(),!(o!=null&&o.length)||!(r!=null&&r.length)||!(u!=null&&u.length))return;const v=Ce(c)?{...c}:c;n.push(...o.flatMap(f=>r.flatMap(p=>u.map(h=>l(f,p,h,v)))))},{flush:"post"}),a=()=>{s(),t()};return L(t),a}let be=!1;function Ut(e,n,t={}){const{window:l=H,ignore:i=[],capture:s=!0,detectIframe:a=!1,controls:o=!1}=t;if(!l)return o?{stop:A,cancel:A,trigger:A}:A;if(fe&&!be){be=!0;const w={passive:!0};Array.from(l.document.body.children).forEach(m=>O(m,"click",A,w)),O(l.document.documentElement,"click",A,w)}let r=!0;const u=w=>x(i).some(m=>{if(typeof m=="string")return Array.from(l.document.querySelectorAll(m)).some(d=>d===w.target||w.composedPath().includes(d));{const d=C(m);return d&&(w.target===d||w.composedPath().includes(d))}});function c(w){const m=x(w);return m&&m.$.subTree.shapeFlag===16}function v(w,m){const d=x(w),S=d.$.subTree&&d.$.subTree.children;return S==null||!Array.isArray(S)?!1:S.some(k=>k.el===m.target||m.composedPath().includes(k.el))}const f=w=>{const m=C(e);if(w.target!=null&&!(!(m instanceof Element)&&c(e)&&v(e,w))&&!(!m||m===w.target||w.composedPath().includes(m))){if("detail"in w&&w.detail===0&&(r=!u(w)),!r){r=!0;return}n(w)}};let p=!1;const h=[O(l,"click",w=>{p||(p=!0,setTimeout(()=>{p=!1},0),f(w))},{passive:!0,capture:s}),O(l,"pointerdown",w=>{const m=C(e);r=!u(w)&&!!(m&&!w.composedPath().includes(m))},{passive:!0}),a&&O(l,"blur",w=>{setTimeout(()=>{var m;const d=C(e);((m=l.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(d!=null&&d.contains(l.document.activeElement))&&n(w)},0)},{passive:!0})].filter(Boolean),y=()=>h.forEach(w=>w());return o?{stop:y,cancel:()=>{r=!1},trigger:w=>{r=!0,f(w),r=!1}}:y}function gt(){const e=E(!1),n=re();return n&&de(()=>{e.value=!0},n),e}function X(e){const n=gt();return T(()=>(n.value,!!e()))}function Ne(e,n,t={}){const{window:l=H,...i}=t;let s;const a=X(()=>l&&"MutationObserver"in l),o=()=>{s&&(s.disconnect(),s=void 0)},r=T(()=>{const f=x(e),p=Y(f).map(C).filter(ve);return new Set(p)}),u=z(()=>r.value,f=>{o(),a.value&&f.size&&(s=new MutationObserver(n),f.forEach(p=>s.observe(p,i)))},{immediate:!0,flush:"post"}),c=()=>s==null?void 0:s.takeRecords(),v=()=>{u(),o()};return L(v),{isSupported:a,stop:v,takeRecords:c}}function yt(e,n,t={}){const{window:l=H,document:i=l==null?void 0:l.document,flush:s="sync"}=t;if(!l||!i)return A;let a;const o=c=>{a==null||a(),a=c},r=ee(()=>{const c=C(e);if(c){const{stop:v}=Ne(i,f=>{f.map(h=>[...h.removedNodes]).flat().some(h=>h===c||h.contains(c))&&n(f)},{window:l,childList:!0,subtree:!0});o(v)}},{flush:s}),u=()=>{r(),o()};return L(u),u}const bt=Symbol("vueuse-ssr-width");function St(){const e=Pe()?Ge(bt,null):null;return typeof e=="number"?e:void 0}function Et(e,n={}){const{window:t=H,ssrWidth:l=St()}=n,i=X(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function"),s=E(typeof l=="number"),a=E(),o=E(!1),r=u=>{o.value=u.matches};return ee(()=>{if(s.value){s.value=!i.value;const u=x(e).split(",");o.value=u.some(c=>{const v=c.includes("not all"),f=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(f||p);return f&&h&&(h=l>=ye(f[1])),p&&h&&(h=l<=ye(p[1])),v?!h:h});return}i.value&&(a.value=t.matchMedia(x(e)),o.value=a.value.matches)}),O(a,"change",r,{passive:!0}),T(()=>o.value)}function Se(e,n={}){const{controls:t=!1,navigator:l=Ie}=n,i=X(()=>l&&"permissions"in l),s=E(),a=typeof e=="string"?{name:e}:e,o=E(),r=()=>{var c,v;o.value=(v=(c=s.value)==null?void 0:c.state)!=null?v:"prompt"};O(s,"change",r,{passive:!0});const u=nt(async()=>{if(i.value){if(!s.value)try{s.value=await l.permissions.query(a)}catch{s.value=void 0}finally{r()}if(t)return Ue(s.value)}});return u(),t?{state:o,isSupported:i,query:u}:o}function Gt(e={}){const{navigator:n=Ie,read:t=!1,source:l,copiedDuring:i=1500,legacy:s=!1}=e,a=X(()=>n&&"clipboard"in n),o=Se("clipboard-read"),r=Se("clipboard-write"),u=T(()=>a.value||s),c=E(""),v=E(!1),f=ht(()=>v.value=!1,i,{immediate:!1});async function p(){let d=!(a.value&&m(o.value));if(!d)try{c.value=await n.clipboard.readText()}catch{d=!0}d&&(c.value=w())}u.value&&t&&O(["copy","cut"],p,{passive:!0});async function h(d=x(l)){if(u.value&&d!=null){let S=!(a.value&&m(r.value));if(!S)try{await n.clipboard.writeText(d)}catch{S=!0}S&&y(d),c.value=d,v.value=!0,f.start()}}function y(d){const S=document.createElement("textarea");S.value=d??"",S.style.position="absolute",S.style.opacity="0",document.body.appendChild(S),S.select(),document.execCommand("copy"),S.remove()}function w(){var d,S,k;return(k=(S=(d=document==null?void 0:document.getSelection)==null?void 0:d.call(document))==null?void 0:S.toString())!=null?k:""}function m(d){return d==="granted"||d==="prompt"}return{isSupported:u,text:c,copied:v,copy:h}}const ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oe="__vueuse_ssr_handlers__",xt=Mt();function Mt(){return oe in ne||(ne[oe]=ne[oe]||{}),ne[oe]}function _t(e,n){return xt[e]||n}function Ot(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const Tt={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Ee="vueuse-storage";function Dt(e,n,t,l={}){var i;const{flush:s="pre",deep:a=!0,listenToStorageChanges:o=!0,writeDefaults:r=!0,mergeDefaults:u=!1,shallow:c,window:v=H,eventFilter:f,onError:p=M=>{console.error(M)},initOnMounted:h}=l,y=(c?E:Q)(typeof n=="function"?n():n),w=T(()=>x(e));if(!t)try{t=_t("getDefaultStorage",()=>{var M;return(M=H)==null?void 0:M.localStorage})()}catch(M){p(M)}if(!t)return y;const m=x(n),d=Ot(m),S=(i=l.serializer)!=null?i:Tt[d],{pause:k,resume:R}=ct(y,()=>g(y.value),{flush:s,deep:a,eventFilter:f});z(w,()=>_(),{flush:s}),v&&o&&Z(()=>{t instanceof Storage?O(v,"storage",_,{passive:!0}):O(v,Ee,P),h&&_()}),h||_();function W(M,F){if(v){const D={key:w.value,oldValue:M,newValue:F,storageArea:t};v.dispatchEvent(t instanceof Storage?new StorageEvent("storage",D):new CustomEvent(Ee,{detail:D}))}}function g(M){try{const F=t.getItem(w.value);if(M==null)W(F,null),t.removeItem(w.value);else{const D=S.write(M);F!==D&&(t.setItem(w.value,D),W(F,D))}}catch(F){p(F)}}function b(M){const F=M?M.newValue:t.getItem(w.value);if(F==null)return r&&m!=null&&t.setItem(w.value,S.write(m)),m;if(!M&&u){const D=S.read(F);return typeof u=="function"?u(D,m):d==="object"&&!Array.isArray(D)?{...m,...D}:D}else return typeof F!="string"?F:S.read(F)}function _(M){if(!(M&&M.storageArea!==t)){if(M&&M.key==null){y.value=m;return}if(!(M&&M.key!==w.value)){k();try{(M==null?void 0:M.newValue)!==S.write(y.value)&&(y.value=b(M))}catch(F){p(F)}finally{M?De(R):R()}}}}function P(M){_(M.detail)}return y}function Zt(e={}){const{document:n=ze}=e;if(!n)return E("visible");const t=E(n.visibilityState);return O(n,"visibilitychange",()=>{t.value=n.visibilityState},{passive:!0}),t}function Ye(e,n,t={}){const{window:l=H,...i}=t;let s;const a=X(()=>l&&"ResizeObserver"in l),o=()=>{s&&(s.disconnect(),s=void 0)},r=T(()=>{const v=x(e);return Array.isArray(v)?v.map(f=>C(f)):[C(v)]}),u=z(r,v=>{if(o(),a.value&&l){s=new ResizeObserver(n);for(const f of v)f&&s.observe(f,i)}},{immediate:!0,flush:"post"}),c=()=>{o(),u()};return L(c),{isSupported:a,stop:c}}function Jt(e,n={}){const{reset:t=!0,windowResize:l=!0,windowScroll:i=!0,immediate:s=!0,updateTiming:a="sync"}=n,o=E(0),r=E(0),u=E(0),c=E(0),v=E(0),f=E(0),p=E(0),h=E(0);function y(){const m=C(e);if(!m){t&&(o.value=0,r.value=0,u.value=0,c.value=0,v.value=0,f.value=0,p.value=0,h.value=0);return}const d=m.getBoundingClientRect();o.value=d.height,r.value=d.bottom,u.value=d.left,c.value=d.right,v.value=d.top,f.value=d.width,p.value=d.x,h.value=d.y}function w(){a==="sync"?y():a==="next-frame"&&requestAnimationFrame(()=>y())}return Ye(e,w),z(()=>C(e),m=>!m&&w()),Ne(e,w,{attributeFilter:["style","class"]}),i&&O("scroll",w,{capture:!0,passive:!0}),l&&O("resize",w,{passive:!0}),Z(()=>{s&&w()}),{height:o,bottom:r,left:u,right:c,top:v,width:f,x:p,y:h,update:w}}function Kt(e,n={}){const{delayEnter:t=0,delayLeave:l=0,triggerOnRemoval:i=!1,window:s=H}=n,a=E(!1);let o;const r=u=>{const c=u?t:l;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>a.value=u,c):a.value=u};return s&&(O(e,"mouseenter",()=>r(!0),{passive:!0}),O(e,"mouseleave",()=>r(!1),{passive:!0}),i&&yt(T(()=>C(e)),()=>r(!1))),a}function Qt(e,n={width:0,height:0},t={}){const{window:l=H,box:i="content-box"}=t,s=T(()=>{var v,f;return(f=(v=C(e))==null?void 0:v.namespaceURI)==null?void 0:f.includes("svg")}),a=E(n.width),o=E(n.height),{stop:r}=Ye(e,([v])=>{const f=i==="border-box"?v.borderBoxSize:i==="content-box"?v.contentBoxSize:v.devicePixelContentBoxSize;if(l&&s.value){const p=C(e);if(p){const h=p.getBoundingClientRect();a.value=h.width,o.value=h.height}}else if(f){const p=Y(f);a.value=p.reduce((h,{inlineSize:y})=>h+y,0),o.value=p.reduce((h,{blockSize:y})=>h+y,0)}else a.value=v.contentRect.width,o.value=v.contentRect.height},t);Z(()=>{const v=C(e);v&&(a.value="offsetWidth"in v?v.offsetWidth:n.width,o.value="offsetHeight"in v?v.offsetHeight:n.height)});const u=z(()=>C(e),v=>{a.value=v?n.width:0,o.value=v?n.height:0});function c(){r(),u()}return{width:a,height:o,stop:c}}const K=new Map;function en(e){const n=Re();function t(o){var r;const u=K.get(e)||new Set;u.add(o),K.set(e,u);const c=()=>i(o);return(r=n==null?void 0:n.cleanups)==null||r.push(c),c}function l(o){function r(...u){i(r),o(...u)}return t(r)}function i(o){const r=K.get(e);r&&(r.delete(o),r.size||s())}function s(){K.delete(e)}function a(o,r){var u;(u=K.get(e))==null||u.forEach(c=>c(o,r))}return{on:t,once:l,off:i,emit:a,reset:s}}const xe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function tn(e,n={}){const{document:t=ze,autoExit:l=!1}=n,i=T(()=>{var d;return(d=C(e))!=null?d:t==null?void 0:t.documentElement}),s=E(!1),a=T(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(d=>t&&d in t||i.value&&d in i.value)),o=T(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(d=>t&&d in t||i.value&&d in i.value)),r=T(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(d=>t&&d in t||i.value&&d in i.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(d=>t&&d in t),c=X(()=>i.value&&t&&a.value!==void 0&&o.value!==void 0&&r.value!==void 0),v=()=>u?(t==null?void 0:t[u])===i.value:!1,f=()=>{if(r.value){if(t&&t[r.value]!=null)return t[r.value];{const d=i.value;if((d==null?void 0:d[r.value])!=null)return!!d[r.value]}}return!1};async function p(){if(!(!c.value||!s.value)){if(o.value)if((t==null?void 0:t[o.value])!=null)await t[o.value]();else{const d=i.value;(d==null?void 0:d[o.value])!=null&&await d[o.value]()}s.value=!1}}async function h(){if(!c.value||s.value)return;f()&&await p();const d=i.value;a.value&&(d==null?void 0:d[a.value])!=null&&(await d[a.value](),s.value=!0)}async function y(){await(s.value?p():h())}const w=()=>{const d=f();(!d||d&&v())&&(s.value=d)},m={capture:!1,passive:!0};return O(t,xe,w,m),O(()=>C(i),xe,w,m),l&&L(p),{isSupported:c,isFullscreen:s,enter:h,exit:p,toggle:y}}const kt=["mousemove","mousedown","resize","keydown","touchstart","wheel"],Ft=6e4;function nn(e=Ft,n={}){const{initialState:t=!1,listenForVisibilityChange:l=!0,events:i=kt,window:s=H,eventFilter:a=Le(50)}=n,o=E(t),r=E(ge());let u;const c=()=>{o.value=!1,clearTimeout(u),u=setTimeout(()=>o.value=!0,e)},v=ue(a,()=>{r.value=ge(),c()});if(s){const f=s.document,p={passive:!0};for(const h of i)O(s,h,v,p);l&&O(f,"visibilitychange",()=>{f.hidden||v()},p),c()}return{idle:o,lastActive:r,reset:c}}const Me=1;function on(e,n={}){const{throttle:t=0,idle:l=200,onStop:i=A,onScroll:s=A,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:r="auto",window:u=H,onError:c=g=>{console.error(g)}}=n,v=E(0),f=E(0),p=T({get(){return v.value},set(g){y(g,void 0)}}),h=T({get(){return f.value},set(g){y(void 0,g)}});function y(g,b){var _,P,M,F;if(!u)return;const D=x(e);if(!D)return;(M=D instanceof Document?u.document.body:D)==null||M.scrollTo({top:(_=x(b))!=null?_:h.value,left:(P=x(g))!=null?P:p.value,behavior:x(r)});const I=((F=D==null?void 0:D.document)==null?void 0:F.documentElement)||(D==null?void 0:D.documentElement)||D;p!=null&&(v.value=I.scrollLeft),h!=null&&(f.value=I.scrollTop)}const w=E(!1),m=G({left:!0,right:!1,top:!0,bottom:!1}),d=G({left:!1,right:!1,top:!1,bottom:!1}),S=g=>{w.value&&(w.value=!1,d.left=!1,d.right=!1,d.top=!1,d.bottom=!1,i(g))},k=ut(S,t+l),R=g=>{var b;if(!u)return;const _=((b=g==null?void 0:g.document)==null?void 0:b.documentElement)||(g==null?void 0:g.documentElement)||C(g),{display:P,flexDirection:M,direction:F}=getComputedStyle(_),D=F==="rtl"?-1:1,I=_.scrollLeft;d.left=I<v.value,d.right=I>v.value;const J=Math.abs(I*D)<=(a.left||0),me=Math.abs(I*D)+_.clientWidth>=_.scrollWidth-(a.right||0)-Me;P==="flex"&&M==="row-reverse"?(m.left=me,m.right=J):(m.left=J,m.right=me),v.value=I;let V=_.scrollTop;g===u.document&&!V&&(V=u.document.body.scrollTop),d.top=V<f.value,d.bottom=V>f.value;const pe=Math.abs(V)<=(a.top||0),he=Math.abs(V)+_.clientHeight>=_.scrollHeight-(a.bottom||0)-Me;P==="flex"&&M==="column-reverse"?(m.top=he,m.bottom=pe):(m.top=pe,m.bottom=he),f.value=V},W=g=>{var b;if(!u)return;const _=(b=g.target.documentElement)!=null?b:g.target;R(_),w.value=!0,k(g),s(g)};return O(e,"scroll",t?it(W,t,!0,!1):W,o),Z(()=>{try{const g=x(e);if(!g)return;R(g)}catch(g){c(g)}}),O(e,"scrollend",S,o),{x:p,y:h,isScrolling:w,arrivedState:m,directions:d,measure(){const g=x(e);u&&g&&R(g)}}}function ln(e,n,t={}){const{window:l=H}=t;return Dt(e,n,l==null?void 0:l.localStorage,t)}const Rt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof MouseEvent?[e.movementX,e.movementY]:null};function rn(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:l=!1,initialValue:i={x:0,y:0},window:s=H,target:a=s,scroll:o=!0,eventFilter:r}=e;let u=null,c=0,v=0;const f=E(i.x),p=E(i.y),h=E(null),y=typeof n=="function"?n:Rt[n],w=g=>{const b=y(g);u=g,b&&([f.value,p.value]=b,h.value="mouse"),s&&(c=s.scrollX,v=s.scrollY)},m=g=>{if(g.touches.length>0){const b=y(g.touches[0]);b&&([f.value,p.value]=b,h.value="touch")}},d=()=>{if(!u||!s)return;const g=y(u);u instanceof MouseEvent&&g&&(f.value=g[0]+s.scrollX-c,p.value=g[1]+s.scrollY-v)},S=()=>{f.value=i.x,p.value=i.y},k=r?g=>r(()=>w(g),{}):g=>w(g),R=r?g=>r(()=>m(g),{}):g=>m(g),W=r?()=>r(()=>d(),{}):()=>d();if(a){const g={passive:!0};O(a,["mousemove","dragover"],k,g),t&&n!=="movement"&&(O(a,["touchstart","touchmove"],R,g),l&&O(a,"touchend",S,g)),o&&n==="page"&&O(s,"scroll",W,g)}return{x:f,y:p,sourceType:h}}function sn(e={}){const{window:n=H}=e,t=X(()=>n&&"screen"in n&&"orientation"in n.screen),l=t.value?n.screen.orientation:{},i=Q(l.type),s=E(l.angle||0);return t.value&&O(n,"orientationchange",()=>{i.value=l.type,s.value=l.angle},{passive:!0}),{isSupported:t,orientation:i,angle:s,lockOrientation:r=>t.value&&typeof l.lock=="function"?l.lock(r):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof l.unlock=="function"&&l.unlock()}}}function un(e,n={}){const t=se(e),{threshold:l=50,onSwipe:i,onSwipeEnd:s,onSwipeStart:a,disableTextSelect:o=!1}=n,r=G({x:0,y:0}),u=(b,_)=>{r.x=b,r.y=_},c=G({x:0,y:0}),v=(b,_)=>{c.x=b,c.y=_},f=T(()=>r.x-c.x),p=T(()=>r.y-c.y),{max:h,abs:y}=Math,w=T(()=>h(y(f.value),y(p.value))>=l),m=E(!1),d=E(!1),S=T(()=>w.value?y(f.value)>y(p.value)?f.value>0?"left":"right":p.value>0?"up":"down":"none"),k=b=>{var _,P,M;const F=b.buttons===0,D=b.buttons===1;return(M=(P=(_=n.pointerTypes)==null?void 0:_.includes(b.pointerType))!=null?P:F||D)!=null?M:!0},R={passive:!0},W=[O(e,"pointerdown",b=>{if(!k(b))return;d.value=!0;const _=b.target;_==null||_.setPointerCapture(b.pointerId);const{clientX:P,clientY:M}=b;u(P,M),v(P,M),a==null||a(b)},R),O(e,"pointermove",b=>{if(!k(b)||!d.value)return;const{clientX:_,clientY:P}=b;v(_,P),!m.value&&w.value&&(m.value=!0),m.value&&(i==null||i(b))},R),O(e,"pointerup",b=>{k(b)&&(m.value&&(s==null||s(b,S.value)),d.value=!1,m.value=!1)},R)];Z(()=>{var b,_,P,M,F,D,I,J;(_=(b=t.value)==null?void 0:b.style)==null||_.setProperty("touch-action","none"),o&&((M=(P=t.value)==null?void 0:P.style)==null||M.setProperty("-webkit-user-select","none"),(D=(F=t.value)==null?void 0:F.style)==null||D.setProperty("-ms-user-select","none"),(J=(I=t.value)==null?void 0:I.style)==null||J.setProperty("user-select","none"))});const g=()=>W.forEach(b=>b());return{isSwiping:q(m),direction:q(S),posStart:q(r),posEnd:q(c),distanceX:f,distanceY:p,stop:g}}function an(e,n={}){const{threshold:t=50,onSwipe:l,onSwipeEnd:i,onSwipeStart:s,passive:a=!0}=n,o=G({x:0,y:0}),r=G({x:0,y:0}),u=T(()=>o.x-r.x),c=T(()=>o.y-r.y),{max:v,abs:f}=Math,p=T(()=>v(f(u.value),f(c.value))>=t),h=E(!1),y=T(()=>p.value?f(u.value)>f(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),w=g=>[g.touches[0].clientX,g.touches[0].clientY],m=(g,b)=>{o.x=g,o.y=b},d=(g,b)=>{r.x=g,r.y=b},S={passive:a,capture:!a},k=g=>{h.value&&(i==null||i(g,y.value)),h.value=!1},R=[O(e,"touchstart",g=>{if(g.touches.length!==1)return;const[b,_]=w(g);m(b,_),d(b,_),s==null||s(g)},S),O(e,"touchmove",g=>{if(g.touches.length!==1)return;const[b,_]=w(g);d(b,_),S.capture&&!S.passive&&Math.abs(u.value)>Math.abs(c.value)&&g.preventDefault(),!h.value&&p.value&&(h.value=!0),h.value&&(l==null||l(g))},S),O(e,["touchend","touchcancel"],k,S)];return{isSwiping:h,direction:y,coordsStart:o,coordsEnd:r,lengthX:u,lengthY:c,stop:()=>R.forEach(g=>g()),isPassiveEventSupported:!0}}function cn(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:l=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:s=!0,type:a="inner"}=e,o=E(t),r=E(l),u=()=>{if(n)if(a==="outer")o.value=n.outerWidth,r.value=n.outerHeight;else if(a==="visual"&&n.visualViewport){const{width:v,height:f,scale:p}=n.visualViewport;o.value=Math.round(v*p),r.value=Math.round(f*p)}else s?(o.value=n.innerWidth,r.value=n.innerHeight):(o.value=n.document.documentElement.clientWidth,r.value=n.document.documentElement.clientHeight)};u(),Z(u);const c={passive:!0};if(O("resize",u,c),n&&a==="visual"&&n.visualViewport&&O(n.visualViewport,"resize",u,c),i){const v=Et("(orientation: portrait)");z(v,()=>u())}return{width:o,height:r}}const te=$?window:void 0;function j(e){var n;const t=x(e);return(n=t==null?void 0:t.$el)!=null?n:t}function U(...e){const n=[],t=()=>{n.forEach(o=>o()),n.length=0},l=(o,r,u,c)=>(o.addEventListener(r,u,c),()=>o.removeEventListener(r,u,c)),i=T(()=>{const o=Y(x(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0}),s=He(()=>{var o,r;return[(r=(o=i.value)==null?void 0:o.map(u=>j(u)))!=null?r:[te].filter(u=>u!=null),Y(x(i.value?e[1]:e[0])),Y(Ae(i.value?e[2]:e[1])),x(i.value?e[3]:e[2])]},([o,r,u,c])=>{if(t(),!(o!=null&&o.length)||!(r!=null&&r.length)||!(u!=null&&u.length))return;const v=Ce(c)?{...c}:c;n.push(...o.flatMap(f=>r.flatMap(p=>u.map(h=>l(f,p,h,v)))))},{flush:"post"}),a=()=>{s(),t()};return L(t),a}const Pt=500,At=10;function _e(e,n,t){var l,i;const s=T(()=>j(e));let a,o,r,u=!1;function c(){a&&(clearTimeout(a),a=void 0),o=void 0,r=void 0,u=!1}function v(m){var d,S,k;const[R,W,g]=[r,o,u];if(c(),!(t!=null&&t.onMouseUp)||!W||!R||(d=t==null?void 0:t.modifiers)!=null&&d.self&&m.target!==s.value)return;(S=t==null?void 0:t.modifiers)!=null&&S.prevent&&m.preventDefault(),(k=t==null?void 0:t.modifiers)!=null&&k.stop&&m.stopPropagation();const b=m.x-W.x,_=m.y-W.y,P=Math.sqrt(b*b+_*_);t.onMouseUp(m.timeStamp-R,P,g)}function f(m){var d,S,k,R;(d=t==null?void 0:t.modifiers)!=null&&d.self&&m.target!==s.value||(c(),(S=t==null?void 0:t.modifiers)!=null&&S.prevent&&m.preventDefault(),(k=t==null?void 0:t.modifiers)!=null&&k.stop&&m.stopPropagation(),o={x:m.x,y:m.y},r=m.timeStamp,a=setTimeout(()=>{u=!0,n(m)},(R=t==null?void 0:t.delay)!=null?R:Pt))}function p(m){var d,S,k,R;if((d=t==null?void 0:t.modifiers)!=null&&d.self&&m.target!==s.value||!o||(t==null?void 0:t.distanceThreshold)===!1)return;(S=t==null?void 0:t.modifiers)!=null&&S.prevent&&m.preventDefault(),(k=t==null?void 0:t.modifiers)!=null&&k.stop&&m.stopPropagation();const W=m.x-o.x,g=m.y-o.y;Math.sqrt(W*W+g*g)>=((R=t==null?void 0:t.distanceThreshold)!=null?R:At)&&c()}const h={capture:(l=t==null?void 0:t.modifiers)==null?void 0:l.capture,once:(i=t==null?void 0:t.modifiers)==null?void 0:i.once},y=[U(s,"pointerdown",f,h),U(s,"pointermove",p,h),U(s,["pointerup","pointerleave"],v,h)];return()=>y.forEach(m=>m())}const fn={mounted(e,n){typeof n.value=="function"?_e(e,n.value,{modifiers:n.modifiers}):_e(e,...n.value)}};function Ct(){const e=E(!1),n=re();return n&&de(()=>{e.value=!0},n),e}function $e(e){const n=Ct();return T(()=>(n.value,!!e()))}function Wt(e,n,t={}){const{window:l=te,...i}=t;let s;const a=$e(()=>l&&"MutationObserver"in l),o=()=>{s&&(s.disconnect(),s=void 0)},r=T(()=>{const f=x(e),p=Y(f).map(j).filter(ve);return new Set(p)}),u=z(()=>r.value,f=>{o(),a.value&&f.size&&(s=new MutationObserver(n),f.forEach(p=>s.observe(p,i)))},{immediate:!0,flush:"post"}),c=()=>s==null?void 0:s.takeRecords(),v=()=>{u(),o()};return L(v),{isSupported:a,stop:v,takeRecords:c}}function Lt(e,n,t={}){const{window:l=te,document:i=l==null?void 0:l.document,flush:s="sync"}=t;if(!l||!i)return A;let a;const o=c=>{a==null||a(),a=c},r=ee(()=>{const c=j(e);if(c){const{stop:v}=Wt(i,f=>{f.map(h=>[...h.removedNodes]).flat().some(h=>h===c||h.contains(c))&&n(f)},{window:l,childList:!0,subtree:!0});o(v)}},{flush:s}),u=()=>{r(),o()};return L(u),u}function Oe(e,n={}){const{delayEnter:t=0,delayLeave:l=0,triggerOnRemoval:i=!1,window:s=te}=n,a=E(!1);let o;const r=u=>{const c=u?t:l;o&&(clearTimeout(o),o=void 0),c?o=setTimeout(()=>a.value=u,c):a.value=u};return s&&(U(e,"mouseenter",()=>r(!0),{passive:!0}),U(e,"mouseleave",()=>r(!1),{passive:!0}),i&&Lt(T(()=>j(e)),()=>r(!1))),a}const dn={mounted(e,n){const t=n.value;if(typeof t=="function"){const l=Oe(e);z(l,i=>t(i))}else{const[l,i]=t,s=Oe(e,i);z(s,a=>l(a))}}};function Te(e,n,t={}){const{root:l,rootMargin:i="0px",threshold:s=0,window:a=te,immediate:o=!0}=t,r=$e(()=>a&&"IntersectionObserver"in a),u=T(()=>{const h=x(e);return Y(h).map(j).filter(ve)});let c=A;const v=E(o),f=r.value?z(()=>[u.value,j(l),v.value],([h,y])=>{if(c(),!v.value||!h.length)return;const w=new IntersectionObserver(n,{root:j(y),rootMargin:i,threshold:s});h.forEach(m=>m&&w.observe(m)),c=()=>{w.disconnect(),c=A}},{immediate:o,flush:"post"}):A,p=()=>{c(),f(),v.value=!1};return L(p),{isSupported:r,isActive:v,pause(){c(),v.value=!1},resume(){v.value=!0},stop:p}}function ae(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const vn={mounted(e,n){typeof n.value=="function"?Te(e,n.value):Te(e,...n.value)}};function je(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:je(t)}}function Ht(e){const n=e||window.event,t=n.target;return je(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const ce=new WeakMap;function zt(e,n=!1){const t=E(n);let l=null,i="";z(se(e),o=>{const r=ae(x(o));if(r){const u=r;if(ce.get(u)||ce.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(i=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const s=()=>{const o=ae(x(e));!o||t.value||(fe&&(l=U(o,"touchmove",r=>{Ht(r)},{passive:!1})),o.style.overflow="hidden",t.value=!0)},a=()=>{const o=ae(x(e));!o||!t.value||(fe&&(l==null||l()),o.style.overflow=i,ce.delete(o),t.value=!1)};return L(a),T({get(){return t.value},set(o){o?s():a()}})}function It(){let e=!1;const n=E(!1);return(t,l)=>{if(n.value=l.value,e)return;e=!0;const i=zt(t,l.value);z(n,s=>i.value=s)}}It();function mn(e,n){const t=Q(void 0),l=e.subscribe({next:i=>t.value=i,error:void 0});return L(()=>{l.unsubscribe()}),t}function pn(e=null,n){const t=se(e),l=T({set:s=>s?N.start():N.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&N.configure(n);const i=N.set;return N.set=s=>(t.value=s,i.call(N,s)),ee(()=>{typeof t.value=="number"&&$&&i.call(N,t.value)}),L(N.remove),{isLoading:l,progress:t,start:N.start,done:N.done,remove:()=>{t.value=null,N.remove()}}}export{rn as A,on as B,Bt as C,Ye as D,ut as E,Vt as a,cn as b,$t as c,sn as d,en as e,Et as f,vn as g,an as h,un as i,qt as j,Xt as k,Jt as l,Qt as m,fn as n,Ut as o,mn as p,Zt as q,jt as r,Kt as s,tn as t,ln as u,dn as v,nn as w,O as x,Gt as y,pn as z};
@@ -0,0 +1 @@
1
+ var Ye=Object.defineProperty;var Je=(o,i,l)=>i in o?Ye(o,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):o[i]=l;var J=(o,i,l)=>Je(o,typeof i!="symbol"?i+"":i,l);import{r as Xe,M as Ze,c as et,h as tt,k as st,b as at,N as rt,a as ot}from"./primevue.f23wRZfa.0.0.63-internal.0.js";import{C as nt,a as it,L as ct,b as lt,p as ut}from"./chart.js.DR4T5MI5.0.0.63-internal.0.js";import{B as pt}from"./vue-chartjs.D4sVpvVe.0.0.63-internal.0.js";import{B as ne,t as de,k as L,c as w,M as X,h as r,d,I as x,W as ge,R as O,N as G,X as mt,Z as ft,O as te,m as K,L as dt,e as v,Q as gt,F as ve,r as p,y as me,w as se,ad as vt,a7 as yt}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";import{z as _t,a1 as ht,c as kt,a3 as ye,f as wt,u as bt,h as Pt,al as Nt,a4 as Ct,ak as u}from"./main.Cg-KFXG3.0.0.63-internal.0.js";import{s as _e}from"./pinia.pqSsOFLB.0.0.63-internal.0.js";import{u as St,a as xt,b as Rt}from"./@tanstack.CTxTG8tn.0.0.63-internal.0.js";import{u as he}from"./vue-i18n.xox7B9R9.0.0.63-internal.0.js";import{S as Ot}from"./system.CHZ5yzEQ.0.0.63-internal.0.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.0.js";import"./@primevue.ttnqVLGy.0.0.63-internal.0.js";import"./@kurkle.D8fDXNIl.0.0.63-internal.0.js";import"./@vueuse.BiJ8xsBO.0.0.63-internal.0.js";import"./nprogress.ig2CXOoL.0.0.63-internal.0.js";import"./@xterm.DBOyTbbO.0.0.63-internal.0.js";import"./axios.DHr9lByg.0.0.63-internal.0.js";import"./vue-router.D80ZmMz-.0.0.63-internal.0.js";import"./vue-inline-svg.BH2BZf-J.0.0.63-internal.0.js";import"./vee-validate.C-8MGG76.0.0.63-internal.0.js";import"./@vee-validate.if_ULCcL.0.0.63-internal.0.js";import"./zod.sy4ilHCy.0.0.63-internal.0.js";import"./uuid.C6aID195.0.0.63-internal.0.js";import"./socket.io-client.CwltQSxD.0.0.63-internal.0.js";import"./engine.io-client.BkwlnD1F.0.0.63-internal.0.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.0.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.0.js";import"./socket.io-parser.AG_riFB1.0.0.63-internal.0.js";import"./rxjs.Npfw5pj3.0.0.63-internal.0.js";import"./tslib.9k7AwCpt.0.0.63-internal.0.js";import"./highlight.js.43RbAYuY.0.0.63-internal.0.js";import"./markdown-it.BXV_l9cc.0.0.63-internal.0.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.0.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.0.js";import"./entities.C20TfXL6.0.0.63-internal.0.js";import"./linkify-it.DPd6CNOE.0.0.63-internal.0.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.0.js";import"./qrcode.BW6Q6A4B.0.0.63-internal.0.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.0.js";import"./draggabilly.CofelTvT.0.0.63-internal.0.js";import"./get-size.D1dS-IaP.0.0.63-internal.0.js";import"./unidragger.BGgU3_VA.0.0.63-internal.0.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.0.js";import"./vue-zoomable.DCwOki9q.0.0.63-internal.0.js";import"./primelocale.Bga3dOQu.0.0.63-internal.0.js";import"./@intlify.BkGPX90O.0.0.63-internal.0.js";function Wt(o){const l=o.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),N=decodeURIComponent(atob(l).split("").map(b=>"%"+("00"+b.charCodeAt(0).toString(16)).slice(-2)).join(""));return JSON.parse(N)}var f=(o=>(o.READY="ready",o.RESTARTING="restarting",o.STARTING="starting",o.STARTED="started",o.STOPPED="stopped",o.ERROR="error",o.UNKNOWN="unknown",o))(f||{});const $t={key:0,class:"text-muted"},Dt=ne({__name:"ChartWrapper",props:{data:{},options:{},width:{default:200},height:{default:25}},setup(o){nt.register(it,ct,lt,ut);const i=o,{data:l,options:N,width:b,height:c}=de(i),j=L(()=>{var F;return((F=l.value.datasets)==null?void 0:F[0].data)??[]});return(F,Q)=>r(j).length?(d(),X(r(pt),{key:1,data:r(l),options:r(N),height:r(c),width:r(b),style:ge({maxWidth:`${r(b)}px`,minWidth:`${r(b)}px`,minHeight:`${r(c)}px`,maxHeight:`${r(c)}px`})},null,8,["data","options","height","width","style"])):(d(),w("span",$t,x(F.$t("components.charts.no_data")),1))}}),Tt=_t(Dt,[["__scopeId","data-v-c8f94fe9"]]),At=o=>o.type==="category",Lt=o=>o.type==="action",ke=o=>o.type==="chart",Ft=o=>o.type==="indicator",Et={key:0},It={key:1},Qt={key:0},Bt=ne({__name:"CuiChartTable",props:{headers:{},items:{},loading:{type:Boolean},paginator:{type:Boolean},totalRecords:{},rows:{default:5},pagination:{},chartData:{}},emits:["update:page"],setup(o,{emit:i}){const l=ht(),N=i,b=o,{theme:c}=_e(l),{headers:j,items:F,loading:Q,chartData:C,paginator:z,pagination:g,totalRecords:h}=de(b),U={bodyRow:{class:"text-sm text-secondary"},column:{columnTitle:{class:"text-sm"}}},ae=L(()=>{var W,$;const E=((W=g.value)==null?void 0:W.pageSize)??5;return((($=g.value)==null?void 0:$.page)??1)*(E-1)}),re=(E,S)=>{var D,T,A,_;const W=`${S.name}_${E.for}`,$=((_=(A=(T=(D=C.value)==null?void 0:D[W])==null?void 0:T.datasets)==null?void 0:A[0])==null?void 0:_.data)??[],q=Math.max(...$.map(R=>Number(R)||0)),y=Math.ceil(q/10)*10;return{animation:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"point",intersect:!1,backgroundColor:c.value==="dark"?"#2e2e2e":"#f1f5f9",titleColor:c.value==="dark"?"#ffffff":"#000000",bodyColor:c.value==="dark"?"#ffffff":"#000000",displayColors:!1,padding:8,callbacks:{title:R=>{const a=R[0].label;if(a&&!isNaN(Number(a))){const I=new Date(Number(a)).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),m=R[0].raw;return[`${I}`,`${m.toFixed(2)}%`].join(" - ")}return""}}}},scales:{x:{display:!1,grid:{display:!1}},y:{display:!1,min:0,max:y||100,grid:{display:!1}}}}};return(E,S)=>{const W=ot,$=tt,q=st,y=Tt,D=at,T=rt,A=Ze,_=Xe,R=et;return d(),w("div",null,[O(_,{class:"cui-card"},{content:G(()=>[O(A,{lazy:"",value:r(F),loading:r(Q),paginator:r(z),"total-records":r(h),first:r(ae),pt:U,rows:E.rows,"striped-row":"",scrollable:"","paginator-template":"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink",onPage:S[0]||(S[0]=a=>N("update:page",a))},{loading:G(()=>[O(W,{class:"w-[30px] h-[30px]","stroke-width":"5"})]),default:G(()=>[(d(!0),w(mt,null,ft(r(j),(a,I)=>(d(),X(T,K({key:I,field:a.field,header:a.name,ref_for:!0},a.columnProps,{"header-class":"p-2 h-7 min-h-7 max-h-7",class:"p-2 h-7 min-h-7 max-h-7"}),{body:G(({data:m})=>{var k,H,V,M;return[r(Ft)(a)?(d(),w("div",K({key:0,ref_for:!0},a.props),[dt(O($,{style:ge({background:((k=a.color)==null?void 0:k.call(a,m))??"gray"})},null,8,["style"]),[[R,{value:(H=a.tooltip)==null?void 0:H.call(a,m)}]])],16)):r(At)(a)?(d(),w("div",K({key:1,ref_for:!0},a.props),[a.asChip?(d(),X(q,K({key:0,ref_for:!0},a.chipProps),{default:G(()=>[v("span",null,x(a.altName?a.altName:typeof a.field=="string"?m[a.field]:a.field(m)),1),a.suffix?(d(),w("span",Et,x(a.suffix),1)):te("",!0)]),_:2},1040)):(d(),w("span",It,[v("span",null,x(a.altName?a.altName:typeof a.field=="string"?m[a.field]:a.field(m)),1),a.suffix?(d(),w("span",Qt,x(a.suffix),1)):te("",!0)]))],16)):r(ke)(a)&&r(C)&&r(C)[`${m.name}_${a.for}`]?(d(),w("div",K({key:2,ref_for:!0},a.props),[O(y,{data:r(C)[`${m.name}_${a.for}`],options:re(a,m),height:25},null,8,["data","options"])],16)):r(Lt)(a)?(d(),w("div",K({key:3,ref_for:!0},a.props),[(V=a.disabled)!=null&&V.call(a,m)?te("",!0):(d(),X(D,K({key:0,rounded:"",loading:(M=a.loading)==null?void 0:M.call(a,m),ref_for:!0},a.buttonProps,{class:"text-white cui-icon-md",onClick:ie=>a.action(m)}),{icon:G(()=>[(d(),X(gt(a.icon)))]),_:2},1040,["loading","onClick"]))],16)):te("",!0)]}),_:2},1040,["field","header"]))),128))]),_:1},8,["value","loading","paginator","total-records","first","rows"])]),_:1})])}}}),Kt={viewBox:"0 0 1024 1024",width:"1.2em",height:"1.2em"};function jt(o,i){return d(),w("svg",Kt,i[0]||(i[0]=[v("path",{fill:"currentColor",d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8c-7 8.5-14.5 16.7-22.4 24.5a353.8 353.8 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.8 353.8 0 0 1-112.7-75.9a353.3 353.3 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8s94.3 9.3 137.9 27.8c42.2 17.8 80.1 43.4 112.7 75.9c7.9 7.9 15.3 16.1 22.4 24.5c3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82C271.7 82.6 79.6 277.1 82 516.4C84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7c3.4-5.3-.4-12.3-6.7-12.3m88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6"},null,-1)]))}const zt=ve({name:"ant-design-logout-outlined",render:jt}),qt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Gt(o,i){return d(),w("svg",qt,i[0]||(i[0]=[v("path",{fill:"currentColor",d:"M12 5V3.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V7c3.31 0 6 2.69 6 6c0 2.72-1.83 5.02-4.31 5.75c-.42.12-.69.52-.69.95c0 .65.62 1.16 1.25.97A7.99 7.99 0 0 0 20 13c0-4.42-3.58-8-8-8m-6 8c0-1.34.44-2.58 1.19-3.59c.3-.4.26-.95-.09-1.31c-.42-.42-1.14-.38-1.5.1a7.99 7.99 0 0 0 4.15 12.47c.63.19 1.25-.32 1.25-.97c0-.43-.27-.83-.69-.95C7.83 18.02 6 15.72 6 13"},null,-1)]))}const Ut=ve({name:"ic-round-restart-alt",render:Gt}),Ht=async({parameter:o,signal:i})=>(await ye.get("/frameworkers",{params:o,signal:i})).data,Vt=async({frameWorkerName:o})=>(await ye.put(`/frameworkers/${o}/restart`)).data;class Mt{constructor(){J(this,"_queryClient",St());J(this,"t",he().t);J(this,"toast",kt());J(this,"queryActivator",p([{name:"getFrameWorkersQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getFrameWorkersQuery(i){return xt({queryKey:["frameWorkerList",i],queryFn:({signal:l})=>Ht({parameter:r(i),signal:l}),placeholderData:l=>l,enabled:()=>this.queryActivator.value.some(l=>l.name==="getFrameWorkersQuery"&&l.enabled)})}restartFrameWorkerQuery(){return Rt({mutationFn:Vt,onSuccess:async(i,l)=>{await this._queryClient.refetchQueries({queryKey:["frameWorkers",l.frameWorkerName]}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.frame_worker_restarted"),life:3e3})}})}toggleQueryActivator(i,l){const N=this.queryActivator.value.find(b=>b.name===i);N&&(N.enabled=l)}}const Yt={class:"page-title"},Jt={class:"flex flex-col gap-6"},Xt={class:"card-title"},Zt={class:"card-title"},es={class:"card-title"},ts={class:"card-title"},ss={class:"card-title"},fe=30,Ms=ne({__name:"Adminpanel",setup(o){const i=new Nt,l=new Ct,N=new Mt,b=new Ot,{t:c}=he(),j=wt(),F=bt(),{mdBreakpoint:Q}=Pt(),C={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},{accessToken:z}=_e(F),g=me(),h=me(),U=p({pageSize:5,page:1}),ae=p({pageSize:5,page:1}),re=p({pageSize:5,page:1}),E=p([{name:"system",type:"system",...C}]),S=p([]),W=p(f.UNKNOWN),$=p(f.UNKNOWN),q=p(f.UNKNOWN),y=p({"camera.ui":[],go2rtc:[],nats:[]}),D=p({"camera.ui":{name:"camera.ui",type:"core",...C},go2rtc:{name:"go2rtc",type:"core",...C},nats:{name:"nats",type:"core",...C}}),T=p({}),A=p([]),_=p({}),R=p({}),a=p({}),I=p([]),m=p({}),k=p({}),{data:H,isFetching:V}=i.listQuery(U),{data:M,isFetching:ie,suspense:we}=l.getPluginsQuery(re),{data:be,isFetching:Pe,suspense:Ne}=N.getFrameWorkersQuery(ae),{mutate:Ce,isPending:Se}=i.logoutTokenQuery(),{mutate:xe}=l.restartPluginQuery(),{mutate:Re}=N.restartFrameWorkerQuery(),{mutate:Oe,isPending:We}=b.restartGo2RtcQuery(),{mutate:$e,isPending:De}=b.restartServerQuery(),Te=L(()=>[{type:"indicator",field:"status",columnProps:{alignFrozen:"left",frozen:!Q.value,headerClass:"w-5 max-w-5",class:"w-5 max-w-5"},color(e){return e.encoded.access_token===z.value?"var(--primary-500)":"transparent"},tooltip(e){if(e.encoded.access_token===z.value)return c("components.user_table.you")}},{type:"category",field:e=>e.decoded.username,name:c("components.user_table.title_username"),columnProps:{alignFrozen:"left",frozen:!Q.value,headerClass:"w-40 min-w-40 max-w-40",class:"w-40 min-w-40 max-w-40"},props:{class:"font-bold text-color"}},{type:"category",field:e=>{var t;return((t=e.clientData)==null?void 0:t.address)??""},name:c("components.user_table.title_address"),columnProps:{headerClass:"min-w-30",class:"min-w-30"}},{type:"category",field:e=>{var t;return((t=e.clientData)==null?void 0:t.device)??""},name:c("components.user_table.title_device"),columnProps:{headerClass:"min-w-40",class:"min-w-40"}},{type:"action",field:"logout",icon:zt,columnProps:{class:"text-right"},loading(){return!!(Se.value||V.value)},disabled(){return!1},action(e){Ce({id:e.encoded._id,access_token:e.encoded.access_token})}}]),Ae=L(()=>{var e;return(e=H.value)==null?void 0:e.result.map(t=>({encoded:t.token,decoded:Wt(t.token.access_token),clientData:t.clientData})).sort((t,s)=>t.encoded.access_token===z.value?-1:s.encoded.access_token===z.value?1:0)}),Y=L(()=>e=>{let t=[{type:"indicator",field:"status",columnProps:{alignFrozen:"left",frozen:!Q.value,headerClass:"w-5 max-w-5",class:"w-5 max-w-5"},color(s){return Ie(ce(e,s.name))},tooltip(s){return Qe(ce(e,s.name))}},{type:"category",field:"name",altName:e==="system"?c("components.process_table.system"):void 0,name:c("components.process_table.title_name"),columnProps:{alignFrozen:"left",frozen:!Q.value,headerClass:"w-40 min-w-40 max-w-40",class:"w-40 min-w-40 max-w-40"},props:{class:"font-bold text-color"}},{type:"category",field:"pid",name:c("components.process_table.title_pid"),columnProps:{headerClass:"min-w-20",class:"min-w-20"}},{type:"category",field:"cpuLoad",suffix:"%",name:c("components.process_table.title_cpu"),asChip:!0,columnProps:{headerClass:"min-w-30",class:"min-w-30"}},{type:"chart",field:"cpu_chart",for:"cpuLoad",columnProps:{headerClass:"min-w-[250px]",class:"min-w-[250px]"}},{type:"category",field:"memLoad",suffix:"%",name:c("components.process_table.title_memory"),asChip:!0,columnProps:{headerClass:"min-w-30",class:"min-w-30"}},{type:"chart",field:"memory_chart",for:"memLoad",columnProps:{headerClass:"min-w-[250px]",class:"min-w-[250px]"}},{type:"action",field:"restart",icon:Ut,columnProps:{class:"text-right"},loading(s){return e==="core"?s.name==="camera.ui"?De.value:We.value:e==="frameworker"?Fe.value(s.name):e==="plugins"?Le.value(s.name):!1},disabled(s){return s.name==="nats"},action(s){s.type==="core"&&Be(s.name),s.type==="frameworker"&&Ke(s.name),s.type==="plugin"&&je(s.name)}}];return e==="system"&&(t=t.filter(s=>s.field!=="pid"&&s.field!=="restart"&&s.field!=="status")),t}),Z=L(()=>e=>{switch(e){case"system":return E.value;case"core":return Object.values(D.value).filter(Boolean);case"frameworker":return Object.values(R.value).filter(Boolean);case"plugins":return Object.values(m.value).filter(t=>{var n;const s=(n=M.value)==null?void 0:n.result.find(P=>P.pluginName===t.name);return s&&!s.disabled}).filter(Boolean);default:return[]}}),ee=L(()=>e=>{let t={};switch(e){case"system":t={system:S.value};break;case"core":t=y.value;break;case"frameworker":t=_.value;break;case"plugins":t=k.value;break}return Object.keys(t).reduce((s,n)=>(Y.value(e).filter(ke).forEach(He=>{const oe=He.for,le=t[n].slice(-30).filter(B=>B[oe]!==void 0).map(B=>parseFloat(B[oe])),ue=t[n].slice(-30).map(B=>B.timestamp),Ve=[...le,...Array(fe-le.length).fill(0)],Me=[...ue,...Array(fe-ue.length).fill(null)];s[`${n}_${oe}`]={labels:Me,datasets:[{data:Ve,backgroundColor:B=>{const pe=B.raw;return pe>=90?"#FA5252":pe>=50?"#FF9966":"#df2a4c"},borderWidth:0,borderRadius:3,barPercentage:.8,categoryPercentage:.8,maxBarThickness:4,barThickness:4}]}}),s),{})}),Le=L(()=>e=>I.value.includes(e)),Fe=L(()=>e=>A.value.includes(e));se(_,e=>{for(const[t,s]of Object.entries(e))R.value[t]=s[s.length-1]??{...C,name:t,type:"frameworker"}},{deep:!0,immediate:!0}),se(k,e=>{for(const[t,s]of Object.entries(e))m.value[t]=s[s.length-1]??{...C,name:t,type:"plugin"}},{deep:!0,immediate:!0}),se(be,e=>{if(e)for(const t of e.result)_.value[t.name]||(_.value[t.name]=[]),T.value[t.name]||(T.value[t.name]={name:t.name,status:u.UNKNOWN})},{deep:!0,immediate:!0}),se(M,e=>{if(e)for(const t of e.result)t.disabled||(k.value[t.pluginName]||(k.value[t.pluginName]=[]),a.value[t.pluginName]||(a.value[t.pluginName]={name:t.pluginName,status:u.UNKNOWN}))},{deep:!0,immediate:!0});const Ee=(e,t)=>{const s=e.page+1;U.value.page=s},ce=(e,t)=>{var s,n;if(e==="core")switch(t){case"camera.ui":return W.value;case"go2rtc":return $.value;case"nats":return q.value;default:return f.UNKNOWN}else{if(e==="frameworker")return((s=T.value[t])==null?void 0:s.status)??u.UNKNOWN;if(e==="plugins")return((n=a.value[t])==null?void 0:n.status)??u.UNKNOWN}return f.UNKNOWN},Ie=e=>{switch(e){case u.ERROR:case f.ERROR:return"#9d5752";case f.STOPPED:case u.STOPPED:case u.STOPPING:return"red";case u.READY:case f.READY:return"yellow";case u.STARTING:case f.STARTING:return"orange";case u.STARTED:case f.STARTED:return"green";case u.UNKNOWN:case u.DISABLED:case f.UNKNOWN:return"gray";default:return"gray"}},Qe=e=>{switch(e){case u.ERROR:case f.ERROR:return c("components.process_table.status_error");case u.STOPPED:case f.STOPPED:return c("components.process_table.status_stopped");case u.STOPPING:return c("components.process_table.status_stopping");case u.READY:case f.READY:return c("components.process_table.status_ready");case u.STARTING:case f.STARTING:return c("components.process_table.status_starting");case u.STARTED:case f.STARTED:return c("components.process_table.status_started");case u.DISABLED:return c("components.process_table.status_disabled");case u.UNKNOWN:case f.UNKNOWN:return c("components.process_table.status_unknown");default:return c("components.process_table.status_unknown")}},Be=async e=>{e==="camera.ui"?$e():e==="go2rtc"&&Oe()},Ke=async e=>{A.value.push(e),Re({frameWorkerName:e},{onSettled(){A.value=A.value.filter(t=>t!==e)}})},je=async e=>{I.value.push(e),xe({pluginName:e},{onSettled(){I.value=I.value.filter(t=>t!==e)}})},ze=()=>{!g.value||!h.value||(g.value.request("get-system-info").subscribe(e=>{S.value=e}),g.value.socket.on("system-infos-realtime",e=>{E.value=[e]}),g.value.socket.on("system-infos",e=>{e.name=c("components.process_table.system"),S.value.push(e),S.value=S.value.slice(-30)}))},qe=()=>{!g.value||!h.value||(h.value.socket.emit("get-process-status"),h.value.socket.on("process-status",e=>{e["camera.ui"]&&(W.value=e["camera.ui"].status),e.go2rtc&&($.value=e.go2rtc.status),e.nats&&(q.value=e.nats.status)}),g.value.request("get-server-process-info").subscribe(e=>{y.value=e}))},Ge=()=>{!g.value||!h.value||(h.value.socket.emit("get-frameworker-process-status"),h.value.socket.on("frameworker-process-status",e=>{for(const[t,s]of Object.entries(e))T.value[t]=s}),g.value.request("get-frameworker-process-info").subscribe(e=>{_.value=e}))},Ue=()=>{!g.value||!h.value||(h.value.socket.emit("get-plugin-process-status"),h.value.socket.on("plugin-process-status",e=>{for(const[t,s]of Object.entries(e))a.value[t]=s}),g.value.request("get-plugins-process-info").subscribe(e=>{k.value=e}))};return vt(async()=>{g.value=j.connectToNamespace("/metrics"),h.value=j.connectToNamespace("/status"),await Promise.all([we(),Ne()]),await new Promise(e=>setTimeout(e,10)),ze(),qe(),Ge(),Ue(),g.value.socket.on("process-infos-realtime",e=>{e["camera.ui"]&&(D.value["camera.ui"]=e["camera.ui"]),e.go2rtc&&(D.value.go2rtc=e.go2rtc),e.nats&&(D.value.nats=e.nats);const t=e.workers||{};Object.entries(t).forEach(([n,P])=>{R.value[n]=P});const s=e.plugins||{};Object.entries(s).forEach(([n,P])=>{m.value[n]=P})}),g.value.socket.on("process-infos",e=>{e["camera.ui"]&&(y.value["camera.ui"].push(e["camera.ui"]),y.value["camera.ui"]=y.value["camera.ui"].slice(-30)),e.go2rtc&&(y.value.go2rtc.push(e.go2rtc),y.value.go2rtc=y.value.go2rtc.slice(-30)),e.nats&&(y.value.nats.push(e.nats),y.value.nats=y.value.nats.slice(-30));const t=e.workers||{};Object.entries(t).forEach(([n,P])=>{_.value[n]||(_.value[n]=[]),_.value[n].push(P),_.value[n]=_.value[n].slice(-30)});const s=e.plugins||{};Object.entries(s).forEach(([n,P])=>{k.value[n]||(k.value[n]=[]),k.value[n].push(P),k.value[n]=k.value[n].slice(-30)})})}),yt(()=>{var e,t,s,n;(t=(e=g.value)==null?void 0:e.end)==null||t.call(e),(n=(s=h.value)==null?void 0:s.end)==null||n.call(s)}),(e,t)=>{var n;const s=Bt;return d(),w("div",null,[v("h1",Yt,x(e.$t(`views.${String(e.$route.name).toLowerCase()}.title`)),1),v("div",Jt,[v("div",null,[v("span",Xt,x(e.$t("views.adminpanel.general")),1),O(s,{items:r(Z)("system"),headers:r(Y)("system"),"chart-data":r(ee)("system")},null,8,["items","headers","chart-data"])]),v("div",null,[v("span",Zt,x(e.$t("views.adminpanel.core")),1),O(s,{items:r(Z)("core"),headers:r(Y)("core"),"chart-data":r(ee)("core")},null,8,["items","headers","chart-data"])]),v("div",null,[v("span",es,x(e.$t("views.adminpanel.frameworker")),1),O(s,{items:r(Z)("frameworker"),headers:r(Y)("frameworker"),"chart-data":r(ee)("frameworker"),loading:r(Pe)},null,8,["items","headers","chart-data","loading"])]),v("div",null,[v("span",ts,x(e.$t("views.adminpanel.plugins")),1),O(s,{items:r(Z)("plugins"),headers:r(Y)("plugins"),"chart-data":r(ee)("plugins"),loading:r(ie)},null,8,["items","headers","chart-data","loading"])]),v("div",null,[v("span",ss,x(e.$t("views.adminpanel.logged_in_users")),1),O(s,{items:r(Ae),headers:r(Te),loading:r(V),paginator:"",pagination:r(U),"total-records":(n=r(H))==null?void 0:n.pagination.totalItems,"onUpdate:page":t[0]||(t[0]=P=>Ee(P))},null,8,["items","headers","loading","pagination","total-records"])])])])}}});export{Ms as default};
@@ -0,0 +1 @@
1
+ import{_ as z}from"./CuiTimeline.Cg27bh5j.0.0.63-internal.0.js";import{r as N,M as E,N as I}from"./primevue.f23wRZfa.0.0.63-internal.0.js";import{C as Q,x as V,w as A,h as D,T as H,y as L}from"./main.Cg-KFXG3.0.0.63-internal.0.js";import{B as S,t as M,r as O,k as C,c as b,d as o,R as l,N as i,h as e,e as c,I as R,ac as $,M as m,O as T,W as B,P as _,ai as W,T as j}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";import{a as F}from"./vue-router.D80ZmMz-.0.0.63-internal.0.js";import{l as G}from"./@vueuse.BiJ8xsBO.0.0.63-internal.0.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.0.js";import"./@primevue.ttnqVLGy.0.0.63-internal.0.js";import"./vue-i18n.xox7B9R9.0.0.63-internal.0.js";import"./@intlify.BkGPX90O.0.0.63-internal.0.js";import"./@tanstack.CTxTG8tn.0.0.63-internal.0.js";import"./axios.DHr9lByg.0.0.63-internal.0.js";import"./pinia.pqSsOFLB.0.0.63-internal.0.js";import"./vue-inline-svg.BH2BZf-J.0.0.63-internal.0.js";import"./vee-validate.C-8MGG76.0.0.63-internal.0.js";import"./@vee-validate.if_ULCcL.0.0.63-internal.0.js";import"./zod.sy4ilHCy.0.0.63-internal.0.js";import"./uuid.C6aID195.0.0.63-internal.0.js";import"./socket.io-client.CwltQSxD.0.0.63-internal.0.js";import"./engine.io-client.BkwlnD1F.0.0.63-internal.0.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.0.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.0.js";import"./socket.io-parser.AG_riFB1.0.0.63-internal.0.js";import"./rxjs.Npfw5pj3.0.0.63-internal.0.js";import"./tslib.9k7AwCpt.0.0.63-internal.0.js";import"./highlight.js.43RbAYuY.0.0.63-internal.0.js";import"./@xterm.DBOyTbbO.0.0.63-internal.0.js";import"./markdown-it.BXV_l9cc.0.0.63-internal.0.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.0.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.0.js";import"./entities.C20TfXL6.0.0.63-internal.0.js";import"./linkify-it.DPd6CNOE.0.0.63-internal.0.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.0.js";import"./qrcode.BW6Q6A4B.0.0.63-internal.0.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.0.js";import"./draggabilly.CofelTvT.0.0.63-internal.0.js";import"./get-size.D1dS-IaP.0.0.63-internal.0.js";import"./unidragger.BGgU3_VA.0.0.63-internal.0.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.0.js";import"./vue-zoomable.DCwOki9q.0.0.63-internal.0.js";import"./primelocale.Bga3dOQu.0.0.63-internal.0.js";import"./nprogress.ig2CXOoL.0.0.63-internal.0.js";const K={class:"w-full h-full"},Z={class:"flex flex-wrap items-center justify-between gap-2"},q={class:"text-xl font-bold"},J=["onClick"],U=S({__name:"CuiCameraTable",props:{cardProps:{}},setup(x){const h=new Q,t=x,{cardProps:a}=M(t),p=O({page:1,pageSize:-1}),{data:d,isFetching:g}=h.getCamerasQuery(p),n=C(()=>g.value),v=C(()=>{var s;return V({body:{class:"w-full h-full overflow-hidden"},root:{class:{}}},(s=a.value)==null?void 0:s.pt)});return(r,s)=>{const w=A,u=I,y=E,P=N;return o(),b("div",K,[l(P,{class:"cui-card",pt:e(v)},{content:i(()=>{var k;return[l(y,{loading:e(n),value:(k=e(d))==null?void 0:k.result,"striped-rows":"","show-headers":!1},{header:i(()=>[c("div",Z,[c("span",q,R(r.$t("components.camera_table.cameras")),1)])]),default:i(()=>[l(u,{class:"w-[50px]"},{body:i(({data:f})=>[l(w,{"camera-name":f.name,class:"rounded-md overflow-hidden",width:"50px"},null,8,["camera-name"])]),_:1}),l(u,{field:"name",header:r.$t("components.camera_table.name"),class:"w-full p-0 pl-4"},{body:i(({data:f})=>[c("div",{class:"w-full h-full cursor-pointer pr-4 py-3",onClick:Y=>r.$router.push(`/cameras/${f.name}`)},R(f.name),9,J)]),_:1},8,["header"])]),_:1},8,["loading","value"])]}),_:1},8,["pt"])])}}}),X={class:"w-full h-full flex flex-col lg:flex-row gap-0 lg:gap-2 relative"},Oe=S({__name:"Camera",setup(x){const h=F(),{mdBreakpoint:t,xmdBreakpoint:a}=D(),p=$("cameraCardRef"),d=$("timelineRef"),g=G(d),n=C(()=>h.params.cameraname),v=r=>{var s;(s=p.value)==null||s.timelineScroll(r)};return(r,s)=>{const w=L,u=U,y=z;return o(),b("div",{class:_({"p-2":!e(t)})},[c("div",X,[c("div",{class:_(["w-full flex flex-col gap-2",{"h-full":!e(t)}]),style:B({paddingRight:!e(t)&&!e(a)?`calc(${e(g).width.value}px + 0.5rem)`:"0px"})},[(o(),m(w,{ref_key:"cameraCardRef",ref:p,key:e(n),"camera-info":e(n),"flat-card":e(t),"card-props":{pt:{root:{class:{"!rounded-md":!0}}}},"toolbar-timeline-button":e(a),"camera-name-overlay":!1},null,8,["camera-info","flat-card","toolbar-timeline-button"])),(o(),m(W,null,[e(t)?T("",!0):(o(),m(u,{key:0,"card-props":{pt:{root:{class:{"!rounded-md":!0}}}}}))],1024))],6),e(a)?T("",!0):(o(),b("div",{key:0,id:"camera-sidebar",ref_key:"timelineRef",ref:d,class:_(["min-w-[300px]",{"border-t-[1px] border-color":e(t),"lg:fixed lg:right-safe-offset-2 lg:bottom-safe-offset-2":!e(t)&&!e(a)}]),style:B({height:`calc(100% - ${e(H).HEIGHT}px - 1rem - env(safe-area-inset-top) - env(safe-area-inset-bottom))`})},null,6))]),(o(),m(j,{to:e(a)?"#timeline-container":"#camera-sidebar",defer:""},[(o(),m(y,{key:e(n),"flat-card":e(t)||e(a),type:e(a)?"horizontal":"vertical","show-segments":!e(t)&&!e(a),"show-zoom":!e(t)&&!e(a),class:_({"absolute bottom-0 left-0 w-full":e(a),"h-full":!e(a)}),height:e(a)?"200px":void 0,transparent:e(a),"dark-mode":e(a),"overlay-class":e(a)?"timeline-overlay":void 0,onScrolling:v},null,8,["flat-card","type","show-segments","show-zoom","class","height","transparent","dark-mode","overlay-class"]))],8,["to"]))],2)}}});export{Oe as default};
@@ -1,4 +1,4 @@
1
- import{L as Ue,r as je,l as De,e as qe,m as Fe,b as ke,a as to,M as no,N as ao,c as Ee,f as so,t as ro,u as io,v as co,k as lo,w as uo,p as mo,n as po,j as ho,O as fo}from"./primevue.BUCB2iYc.0.0.62.js";import{_ as We,a as _o}from"./refresh-rounded.CVoXrijh.0.0.62.js";import{e as go,s as vo,_ as bo,f as wo,h as Le,C as Ce,r as ye,d as He,i as ze,j as yo,k as xo,c as Ne,a as Ke,l as ko,m as Co,n as Ye,o as So,p as To,q as $o,t as Ro,B as Po,b as we,v as Ao,S as Io,w as Mo}from"./main.C-fBYELA.0.0.62.js";import{i as Ho}from"./@vueuse.BtjxvMs8.0.0.62.js";import{B as se,t as Ve,ac as de,r as D,k as Q,o as Xe,c as p,d as s,e as a,h as e,X as ue,Z as me,R as o,I as w,i as Qe,y as Je,a7 as jo,F as J,ab as Eo,w as Ze,N as t,f as ne,M as g,L as G,O as _,m as X,V as N,P as xe,H as Be,$ as Lo,a1 as Vo,W as Ie}from"./@vue.Dh6viqaK.0.0.62.js";import{_ as Go}from"./CuiConsole.DB_LUtKP.0.0.62.js";import{F as eo,a as F,E as K}from"./vee-validate.Bf0LCjSi.0.0.62.js";import{u as Ge}from"./vue-i18n.CU18JdrZ.0.0.62.js";import{s as Bo}from"./pinia.CY9KHlVM.0.0.62.js";import"./@primeuix.BkBDkSvZ.0.0.62.js";import"./@primevue.BuwQUdCW.0.0.62.js";import"./@tanstack.BaNxyuPE.0.0.62.js";import"./axios.DHr9lByg.0.0.62.js";import"./vue-router.BVIizPV2.0.0.62.js";import"./vue-inline-svg.CHxn1TlX.0.0.62.js";import"./@vee-validate.t1cmvT8p.0.0.62.js";import"./zod.sy4ilHCy.0.0.62.js";import"./uuid.C6aID195.0.0.62.js";import"./socket.io-client.wbvvPxi5.0.0.62.js";import"./engine.io-client.BU9iRZgW.0.0.62.js";import"./engine.io-parser.BiEtp6m2.0.0.62.js";import"./@socket.io.Dkula2eQ.0.0.62.js";import"./socket.io-parser.DhatnF7V.0.0.62.js";import"./rxjs.N4IEvpuL.0.0.62.js";import"./tslib.9k7AwCpt.0.0.62.js";import"./highlight.js.Cw6-xZQC.0.0.62.js";import"./@xterm.yTQ_L3LT.0.0.62.js";import"./markdown-it.DS1iZu0j.0.0.62.js";import"./mdurl.k9Sl0PQj.0.0.62.js";import"./uc.micro.kMc2yuuw.0.0.62.js";import"./entities.C20TfXL6.0.0.62.js";import"./linkify-it.CF3_WZzP.0.0.62.js";import"./punycode.js.Dj65hjkv.0.0.62.js";import"./qrcode.caI-y3YK.0.0.62.js";import"./dijkstrajs.C00ieaqj.0.0.62.js";import"./draggabilly.CzDdWnHk.0.0.62.js";import"./get-size.D1dS-IaP.0.0.62.js";import"./unidragger.Dm1cQX8w.0.0.62.js";import"./ev-emitter.X5f1qa-c.0.0.62.js";import"./vue-zoomable.BDc3ilR2.0.0.62.js";import"./primelocale.Bga3dOQu.0.0.62.js";import"./nprogress.Beu8xHzs.0.0.62.js";import"./@intlify.BkGPX90O.0.0.62.js";const Oe=["bubble://","cui://","doorbird://","dvrip://","echo:","eseecloud://","exec:","expr:","ffmpeg:","flussonic://","gopro://","hass:","homekit://","http://","https://","httpx://","isapi://","ivideon:","kasa://","nest:","onvif://","ring:","roborock://","rtmp://","rtsp://","rtspx://","tapo://","tcp://","tuya://","webrtc:","webtorrent:"],Oo=["#backchannel=","#header=","#media=audio","#media=video","#timeout=10","#timeout=20","#timeout=30","#transport="],Me=["#audio=aac","#audio=aac/16000","#audio=mp3","#audio=opus","#audio=pcm","#audio=pcm/8000","#audio=pcm/16000","#audio=pcm/48000","#audio=pcma","#audio=pcma/8000","#audio=pcma/16000","#audio=pcma/48000","#audio=pcml","#audio=pcml/8000","#audio=pcml/44100","#audio=pcmu","#audio=pcmu/8000","#audio=pcmu/16000","#audio=pcmu/48000","#drawtext","#hardware","#hardware=cuda","#hardware=dxva2","#hardware=rkmpp","#hardware=v4l2m2m","#hardware=vaapi","#hardware=videotoolbox","#height=","#raw=","#rotate=-90","#rotate=90","#rotate=180","#rotate=270","#video=copy","#video=h264","#video=h265","#video=mjpeg","#width="],Uo=["client_id=","client_private=","device_id=","device_public="],Do=["#header="],qo=["client_id=","client_secret=","refresh_token=","project_id=","device_id="],Fo=["device_id=","refresh_token="],Wo=["#client_id=","#format=openipc","#format=wyze","#format=kinesis","#ice_servers="],zo={class:"relative h-[165px]"},No={key:0,class:"flex w-full h-full"},Ko={class:"flex w-full items-center justify-center mt-[5px]"},Yo={key:1,class:"flex w-full h-full"},Xo=["onClick"],Qo={class:"w-full text-center"},Jo={class:"text-xs text-muted"},Zo=se({__name:"CuiCameraEvents",props:{cameraId:{}},setup(T){const{isTouch:c}=go(),j=T,{cameraId:E}=Ve(j),R=de("scrollContainerRef"),B=D(!0);let P,$=!1;const L=Array.from({length:50},(m,C)=>({id:C.toString(),camera:"Kamera "+(C%5+1),title:"Event "+(C+1),type:"motion",image:"test",timestamp:Date.now()-C*6e4})),M=Q(()=>E.value?L.filter(m=>m.camera===E.value):L),O=()=>{Ho(R,{disableTextSelect:!0,threshold:10,onSwipe:m=>{var C,H;(C=R.value)==null||C.classList.add("cursor-grabbing"),$=!0,(H=R.value)==null||H.scrollBy({left:-m.movementX,behavior:"smooth"})},onSwipeEnd:()=>{var m;(m=R.value)==null||m.classList.remove("cursor-grabbing"),clearTimeout(P),P=setTimeout(()=>{$=!1},10)}})},b=m=>new Date(m).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"}),y=m=>{$||console.log(m)};return Xe(async()=>{await vo(1500),B.value=!1,c.value||O()}),(m,C)=>{const H=Ue,u=bo;return s(),p("div",zo,[a("div",{ref_key:"scrollContainerRef",ref:R,class:"w-full max-w-full overflow-x-auto overflow-y-hidden snap-x snap-mandatory hide-scrollbar"},[e(B)?(s(),p("div",No,[(s(),p(ue,null,me(50,S=>a("div",{key:S,class:"flex-none w-[140px] mr-3 snap-start"},[o(H,{width:"140px",height:"140px"}),a("div",Ko,[o(H,{width:"40px",height:"12px"})])])),64))])):(s(),p("div",Yo,[(s(!0),p(ue,null,me(e(M),S=>(s(),p("div",{key:S.id,class:"flex-none w-[140px] mr-3 snap-start"},[a("div",{class:"bg-neutral-900 rounded overflow-hidden cursor-pointer w-[140px] h-[140px]",onClick:f=>y(S)},[o(u,{src:S.image,class:"pointer-events-none w-full h-full",cover:"",alt:"Event Vorschau",width:"140px",height:"140px","image-container-class":"w-full h-full"},null,8,["src"])],8,Xo),a("div",Qo,[a("span",Jo,w(b(S.timestamp)),1)])]))),128))]))],512),C[0]||(C[0]=a("div",{class:"absolute -top-[3px] right-0 w-10 h-[171px] pointer-events-none",style:{background:"linear-gradient(to right, transparent, var(--ground-background))"}},null,-1))])}}}),et=se({__name:"CameraConsole",props:{cameraName:{}},setup(T,{expose:c}){const j=new Ce,E=wo(),{mdBreakpoint:R}=Le(),B=Qe("dialogRefProps"),P=T,{cameraName:$}=Ve(P),L=de("consoleRef"),M=Je(),{data:O,isFetching:b,suspense:y}=j.downloadLogQuery($),m=Q(()=>{var u;return!!((u=B.loading)!=null&&u.value||b.value)}),C=Q(()=>({fontSize:R.value?12:14})),H=async()=>{try{if(j.toggleQueryActivator("downloadLogQuery",!0),await y(),O.value){const u=O.value,S=window.URL.createObjectURL(new Blob([u])),f=document.createElement("a");f.href=S,f.setAttribute("download",`camera.ui.${$.value}.log.txt`),document.body.appendChild(f),f.click(),f.remove()}}finally{j.toggleQueryActivator("downloadLogQuery",!1)}};return Xe(()=>{var u,S,f,W,oe;M.value=E.connectToNamespace("/logs"),(u=M.value)==null||u.socket.on(`stdout/${$.value}`,A=>{var Z;(Z=L.value)==null||Z.writeTerminal(A)}),(S=M.value)==null||S.socket.on("stdout",A=>{var Z;(Z=L.value)==null||Z.writeTerminal(A)}),(f=M.value)==null||f.socket.on("disconnect",()=>{var A;(A=L.value)==null||A.writeTerminal(`\r
1
+ import{L as Ue,r as je,l as De,e as qe,m as Fe,b as ke,a as to,M as no,N as ao,c as Ee,f as so,t as ro,u as io,v as co,k as lo,w as uo,p as mo,n as po,j as ho,O as fo}from"./primevue.f23wRZfa.0.0.63-internal.0.js";import{_ as We,a as _o}from"./refresh-rounded.Dmmk-Mc1.0.0.63-internal.0.js";import{e as go,s as vo,_ as bo,f as wo,h as Le,C as Ce,r as ye,d as He,i as ze,j as yo,k as xo,c as Ne,a as Ke,l as ko,m as Co,n as Ye,o as So,p as To,q as $o,t as Ro,B as Po,b as we,v as Ao,S as Io,w as Mo}from"./main.Cg-KFXG3.0.0.63-internal.0.js";import{i as Ho}from"./@vueuse.BiJ8xsBO.0.0.63-internal.0.js";import{B as se,t as Ve,ac as de,r as D,k as Q,o as Xe,c as p,d as s,e as a,h as e,X as ue,Z as me,R as o,I as w,i as Qe,y as Je,a7 as jo,F as J,ab as Eo,w as Ze,N as t,f as ne,M as g,L as G,O as _,m as X,V as N,P as xe,H as Be,$ as Lo,a1 as Vo,W as Ie}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";import{_ as Go}from"./CuiConsole.BDN8DeOc.0.0.63-internal.0.js";import{F as eo,a as F,E as K}from"./vee-validate.C-8MGG76.0.0.63-internal.0.js";import{u as Ge}from"./vue-i18n.xox7B9R9.0.0.63-internal.0.js";import{s as Bo}from"./pinia.pqSsOFLB.0.0.63-internal.0.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.0.js";import"./@primevue.ttnqVLGy.0.0.63-internal.0.js";import"./@tanstack.CTxTG8tn.0.0.63-internal.0.js";import"./axios.DHr9lByg.0.0.63-internal.0.js";import"./vue-router.D80ZmMz-.0.0.63-internal.0.js";import"./vue-inline-svg.BH2BZf-J.0.0.63-internal.0.js";import"./@vee-validate.if_ULCcL.0.0.63-internal.0.js";import"./zod.sy4ilHCy.0.0.63-internal.0.js";import"./uuid.C6aID195.0.0.63-internal.0.js";import"./socket.io-client.CwltQSxD.0.0.63-internal.0.js";import"./engine.io-client.BkwlnD1F.0.0.63-internal.0.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.0.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.0.js";import"./socket.io-parser.AG_riFB1.0.0.63-internal.0.js";import"./rxjs.Npfw5pj3.0.0.63-internal.0.js";import"./tslib.9k7AwCpt.0.0.63-internal.0.js";import"./highlight.js.43RbAYuY.0.0.63-internal.0.js";import"./@xterm.DBOyTbbO.0.0.63-internal.0.js";import"./markdown-it.BXV_l9cc.0.0.63-internal.0.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.0.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.0.js";import"./entities.C20TfXL6.0.0.63-internal.0.js";import"./linkify-it.DPd6CNOE.0.0.63-internal.0.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.0.js";import"./qrcode.BW6Q6A4B.0.0.63-internal.0.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.0.js";import"./draggabilly.CofelTvT.0.0.63-internal.0.js";import"./get-size.D1dS-IaP.0.0.63-internal.0.js";import"./unidragger.BGgU3_VA.0.0.63-internal.0.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.0.js";import"./vue-zoomable.DCwOki9q.0.0.63-internal.0.js";import"./primelocale.Bga3dOQu.0.0.63-internal.0.js";import"./nprogress.ig2CXOoL.0.0.63-internal.0.js";import"./@intlify.BkGPX90O.0.0.63-internal.0.js";const Oe=["bubble://","cui://","doorbird://","dvrip://","echo:","eseecloud://","exec:","expr:","ffmpeg:","flussonic://","gopro://","hass:","homekit://","http://","https://","httpx://","isapi://","ivideon:","kasa://","nest:","onvif://","ring:","roborock://","rtmp://","rtsp://","rtspx://","tapo://","tcp://","tuya://","webrtc:","webtorrent:"],Oo=["#backchannel=","#header=","#media=audio","#media=video","#timeout=10","#timeout=20","#timeout=30","#transport="],Me=["#audio=aac","#audio=aac/16000","#audio=mp3","#audio=opus","#audio=pcm","#audio=pcm/8000","#audio=pcm/16000","#audio=pcm/48000","#audio=pcma","#audio=pcma/8000","#audio=pcma/16000","#audio=pcma/48000","#audio=pcml","#audio=pcml/8000","#audio=pcml/44100","#audio=pcmu","#audio=pcmu/8000","#audio=pcmu/16000","#audio=pcmu/48000","#drawtext","#hardware","#hardware=cuda","#hardware=dxva2","#hardware=rkmpp","#hardware=v4l2m2m","#hardware=vaapi","#hardware=videotoolbox","#height=","#raw=","#rotate=-90","#rotate=90","#rotate=180","#rotate=270","#video=copy","#video=h264","#video=h265","#video=mjpeg","#width="],Uo=["client_id=","client_private=","device_id=","device_public="],Do=["#header="],qo=["client_id=","client_secret=","refresh_token=","project_id=","device_id="],Fo=["device_id=","refresh_token="],Wo=["#client_id=","#format=openipc","#format=wyze","#format=kinesis","#ice_servers="],zo={class:"relative h-[165px]"},No={key:0,class:"flex w-full h-full"},Ko={class:"flex w-full items-center justify-center mt-[5px]"},Yo={key:1,class:"flex w-full h-full"},Xo=["onClick"],Qo={class:"w-full text-center"},Jo={class:"text-xs text-muted"},Zo=se({__name:"CuiCameraEvents",props:{cameraId:{}},setup(T){const{isTouch:c}=go(),j=T,{cameraId:E}=Ve(j),R=de("scrollContainerRef"),B=D(!0);let P,$=!1;const L=Array.from({length:50},(m,C)=>({id:C.toString(),camera:"Kamera "+(C%5+1),title:"Event "+(C+1),type:"motion",image:"test",timestamp:Date.now()-C*6e4})),M=Q(()=>E.value?L.filter(m=>m.camera===E.value):L),O=()=>{Ho(R,{disableTextSelect:!0,threshold:10,onSwipe:m=>{var C,H;(C=R.value)==null||C.classList.add("cursor-grabbing"),$=!0,(H=R.value)==null||H.scrollBy({left:-m.movementX,behavior:"smooth"})},onSwipeEnd:()=>{var m;(m=R.value)==null||m.classList.remove("cursor-grabbing"),clearTimeout(P),P=setTimeout(()=>{$=!1},10)}})},b=m=>new Date(m).toLocaleTimeString("de-DE",{hour:"2-digit",minute:"2-digit"}),y=m=>{$||console.log(m)};return Xe(async()=>{await vo(1500),B.value=!1,c.value||O()}),(m,C)=>{const H=Ue,u=bo;return s(),p("div",zo,[a("div",{ref_key:"scrollContainerRef",ref:R,class:"w-full max-w-full overflow-x-auto overflow-y-hidden snap-x snap-mandatory hide-scrollbar"},[e(B)?(s(),p("div",No,[(s(),p(ue,null,me(50,S=>a("div",{key:S,class:"flex-none w-[140px] mr-3 snap-start"},[o(H,{width:"140px",height:"140px"}),a("div",Ko,[o(H,{width:"40px",height:"12px"})])])),64))])):(s(),p("div",Yo,[(s(!0),p(ue,null,me(e(M),S=>(s(),p("div",{key:S.id,class:"flex-none w-[140px] mr-3 snap-start"},[a("div",{class:"bg-neutral-900 rounded overflow-hidden cursor-pointer w-[140px] h-[140px]",onClick:f=>y(S)},[o(u,{src:S.image,class:"pointer-events-none w-full h-full",cover:"",alt:"Event Vorschau",width:"140px",height:"140px","image-container-class":"w-full h-full"},null,8,["src"])],8,Xo),a("div",Qo,[a("span",Jo,w(b(S.timestamp)),1)])]))),128))]))],512),C[0]||(C[0]=a("div",{class:"absolute -top-[3px] right-0 w-10 h-[171px] pointer-events-none",style:{background:"linear-gradient(to right, transparent, var(--ground-background))"}},null,-1))])}}}),et=se({__name:"CameraConsole",props:{cameraName:{}},setup(T,{expose:c}){const j=new Ce,E=wo(),{mdBreakpoint:R}=Le(),B=Qe("dialogRefProps"),P=T,{cameraName:$}=Ve(P),L=de("consoleRef"),M=Je(),{data:O,isFetching:b,suspense:y}=j.downloadLogQuery($),m=Q(()=>{var u;return!!((u=B.loading)!=null&&u.value||b.value)}),C=Q(()=>({fontSize:R.value?12:14})),H=async()=>{try{if(j.toggleQueryActivator("downloadLogQuery",!0),await y(),O.value){const u=O.value,S=window.URL.createObjectURL(new Blob([u])),f=document.createElement("a");f.href=S,f.setAttribute("download",`camera.ui.${$.value}.log.txt`),document.body.appendChild(f),f.click(),f.remove()}}finally{j.toggleQueryActivator("downloadLogQuery",!1)}};return Xe(()=>{var u,S,f,W,oe;M.value=E.connectToNamespace("/logs"),(u=M.value)==null||u.socket.on(`stdout/${$.value}`,A=>{var Z;(Z=L.value)==null||Z.writeTerminal(A)}),(S=M.value)==null||S.socket.on("stdout",A=>{var Z;(Z=L.value)==null||Z.writeTerminal(A)}),(f=M.value)==null||f.socket.on("disconnect",()=>{var A;(A=L.value)==null||A.writeTerminal(`\r
2
2
  Websocket failed to connect! Is the server running?\r
3
3
  \r
4
4
  `)}),(W=M.value)==null||W.socket.on("clear-log",()=>{var A;(A=L.value)==null||A.clearTerminal()}),(oe=M.value)==null||oe.socket.emit("get-camera-log",$.value,{sinceLastStart:!0})}),jo(()=>{var u,S;(S=(u=M.value)==null?void 0:u.end)==null||S.call(u)}),c({isLoading:m,onConfirm:H}),(u,S)=>{const f=Go;return s(),p("div",null,[o(f,{ref_key:"consoleRef",ref:L,options:e(C),class:"bg-black !w-full"},null,8,["options"])])}}}),ot={viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"},tt=["id"],nt=["mask"];function at(T,c){return s(),p("svg",ot,[a("defs",null,[a("mask",{id:T.idMap.ipSGopro0},c[0]||(c[0]=[Eo('<g fill="none"><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M5 7h13v34H5z"></path><rect width="19" height="22" x="24" y="13" fill="#fff" stroke="#fff" stroke-width="4" rx="3"></rect><circle cx="33.5" cy="24.5" r="3.5" fill="#000" stroke="#000" stroke-width="4"></circle><path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" d="M18 24h6"></path><rect width="5" height="5" x="9" y="15" fill="#fff" rx="2.5"></rect></g>',1)]),8,tt)]),a("path",{fill:"currentColor",d:"M0 0h48v48H0z",mask:"url(#"+T.idMap.ipSGopro0+")"},null,8,nt)])}const st=J({name:"icon-park-solid-gopro",render:at,setup(){return{idMap:{ipSGopro0:"uicons-"+Math.random().toString(36).substr(2,10)}}}}),rt={viewBox:"0 0 256 295",width:"1.05em",height:"1.2em"};function it(T,c){return s(),p("svg",rt,c[0]||(c[0]=[a("path",{fill:"#EB324B",d:"M125.331 293.51c-3.118-1.658-121.475-70.037-122.633-70.849c-2.463-1.729-2.297 3.704-2.297-75.23c0-78.936-.166-73.502 2.297-75.232c.61-.427 28.67-16.687 62.355-36.133C107.32 11.668 126.75.658 127.751.54c1.811-.214-4.43-3.711 67.33 37.72c42.38 24.468 59.226 34.391 59.85 35.255l.869 1.202v145.427l-.869 1.202c-.624.864-17.465 10.784-59.851 35.255c-67.06 38.716-65.522 37.846-66.92 37.853c-.573.004-1.846-.421-2.829-.944"},null,-1),a("path",{fill:"#333943",d:"M126.397 275.238c-.44-.188-24.952-14.3-54.47-31.361c-34.351-19.855-53.962-31.413-54.485-32.113c-.813-1.09-.816-1.326-.816-64.334c0-63.047.002-63.243.818-64.335c.525-.703 20.06-12.217 54.485-32.112c29.517-17.06 54.116-31.194 54.665-31.411s1.553-.29 2.232-.163c.967.181 104.484 59.604 108.805 62.458c.584.386 1.247 1.188 1.475 1.783c.276.722.456 22.028.54 64.05l.129 62.968l-.839 1.132c-.553.747-12.01 7.575-33.653 20.056c-81.042 46.735-75.862 43.807-77.41 43.75c-.37-.015-1.035-.18-1.476-.368m2.77-69.648c1.108-2.144 5.303-7.487 8.675-11.05c1.858-1.962 8.967-8.558 15.798-14.658c15.764-14.076 20.858-19.385 26.141-27.244c6.775-10.078 10.003-22.102 8.497-31.649c-1.65-10.458-8.018-19.169-17.411-23.816c-4.05-2.004-6.983-2.692-12.42-2.914c-3.993-.163-5.418-.051-8.413.66c-8.679 2.059-16.207 7.752-20.303 15.353c-.683 1.267-1.394 2.304-1.58 2.304s-.785-.883-1.332-1.962c-1.429-2.82-5.446-7.664-7.916-9.544c-6.925-5.274-12.884-7.18-21.304-6.817c-5.447.235-8.748 1.08-13.113 3.36c-7.469 3.9-13.574 11.516-15.849 19.77c-.893 3.24-.993 13.34-.169 17.027c1.92 8.59 6.36 17.046 13.251 25.24c3.87 4.6 11.215 11.695 22.243 21.481c13.554 12.028 18.433 17.105 22.404 23.312c.802 1.254 1.628 2.28 1.836 2.28s.642-.51.964-1.133"},null,-1),a("path",{fill:"#252A32",d:"M151.605 228.562c-12.322-11.157-22.463-20.551-22.536-20.877c-.146-.653 1.673-3.682 4.067-6.771c3.656-4.717 8.413-9.417 20.1-19.861c19.503-17.427 24.871-23.372 30.363-33.623c3.733-6.968 5.5-13.982 5.49-21.786c-.007-5.914-.768-9.263-3.275-14.435c-.632-1.303-1.099-2.488-1.037-2.635c.113-.268 52.387 48.13 53.696 49.715c.651.788.7 2.65.699 26.344c-.002 23.55-.056 25.582-.701 26.626c-.512.829-9.06 5.96-31.948 19.182c-17.187 9.928-31.534 18.13-31.882 18.228c-.41.115-8.524-6.968-23.036-20.107"},null,-1)]))}const ct=J({name:"logos-webtorrent",render:it}),lt={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100"},dt=["id"],ut=["id"],mt=["fill","mask"],pt=se({__name:"CuiOnvifIcon",setup(T){const c=D(ye(10)),j=D(ye(10));return(E,R)=>(s(),p("svg",lt,[a("defs",null,[a("linearGradient",{id:e(c),x1:"0%",y1:"0%",x2:"100%",y2:"100%"},R[0]||(R[0]=[a("stop",{offset:"0%",style:{"stop-color":"#29abe2"}},null,-1),a("stop",{offset:"100%",style:{"stop-color":"#4f2d7f"}},null,-1)]),8,dt),a("mask",{id:e(j)},R[1]||(R[1]=[a("rect",{width:"100%",height:"100%",fill:"white"},null,-1),a("circle",{cx:"54",cy:"46",r:"32",fill:"black"},null,-1)]),8,ut)]),a("circle",{cx:"50",cy:"50",r:"40",fill:`url(#${e(c)})`,mask:`url(#${e(j)})`},null,8,mt)]))}}),ht={viewBox:"0 0 512 512",width:"1.2em",height:"1.2em"};function ft(T,c){return s(),p("svg",ht,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M201.459 35.184L93.114 161.545v53.47L254.041 30.733L512 8.902L133.866 406.659l49.874 2.877l274.62-283.015v268.646l-30.716 28.864l78.027 4.612v74.455l-243.583-20.63l123.746-120.395v-59.74L209.185 478L0 460.29L336.764 93.876l-55.874 3.3L37.697 366.981V137.742l22.881-27.544l-56.254 3.326V51.871z"},null,-1)]))}const _t=J({name:"file-icons-ffmpeg",render:ft}),gt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function vt(T,c){return s(),p("svg",gt,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M11.971.302a.72.72 0 0 0-.444.155L.984 8.82a.7.7 0 0 0-.139.146c.11-.156.037-.046-.048.015c-.084.06-.2.136-.313.22a2 2 0 0 0-.178.141c-.064.057-.143.098-.24.32a.76.76 0 0 0-.026.549c.08.233.277.384.405.441c.253.114.353.079.463.071c.399.022.737-.019.922 0c.077.009.087.017.097.02c.032 3.58.004 7.167.014 10.76a1 1 0 0 0 .014.14c0-.002-.027.367-.033.764c-.003.199-.009.43.137.721c.147.29.565.551.909.559h14.717c1.148-.035 2.39.083 3.686-.07a.717.717 0 0 0 .632-.712v-1.493a2.7 2.7 0 0 0 0-.514v-.025c-.007-2.132-.002-4.268 0-6.406v-1.993l-.002.054c.059-.776-.031-1.39.053-1.803c.041-.01.1-.013.216-.014c.24-.002.601.065 1.055.008l.072-.013a.74.74 0 0 0 .33-.16a.83.83 0 0 0 .27-.524c.027-.383-.132-.498-.202-.58c-.14-.164-.237-.22-.344-.297c-.106-.078-.213-.15-.291-.207c-.08-.058-.143-.133-.076-.05a1 1 0 0 0-.064-.07c-.351-.334-.713-.553-.974-.76c-.23-.18-.358-.33-.434-.497V4.802a1.5 1.5 0 0 0 .023-.493a1.1 1.1 0 0 0-.344-.65c-.344-.297-.711-.293-1.036-.24c-.247-.027-.551.012-.779.23c-.294.28-.29.573-.291.748c-.002.174.017.304.026.398c.008.093-.009.152.012.066a.7.7 0 0 0-.007.313c.034.168-.022.475-.074.583l-.008-.004L12.416.456a.72.72 0 0 0-.445-.154m-.05 2.058c.18-.001.368.043.537.124c2.047 1.552 4.053 3.19 6.103 4.79l-.037-.031c.498.445 1.033.776 1.411 1.115c.375.336.575.614.615 1.025c.007.563.003 1.127.006 1.69q-.017.385.003.716c.004.891.012 1.781.01 2.673v6.867a1.2 1.2 0 0 1-.157.468c-.136.215-.272.314-.523.318c-5.108.018-10.22.003-15.332.008a1 1 0 0 0-.115.009a1.08 1.08 0 0 1-.758-.175c-.2-.143-.305-.31-.303-.562v-.008c-.016-3.27-.002-6.545-.007-9.822l-.002.05c.047-.678-.027-1.31-.004-1.836c.022-.51.11-.872.378-1.183c2.52-2.058 5.115-4.05 7.68-6.093a.84.84 0 0 1 .495-.143m.053 3.088a.72.72 0 0 0-.445.153L7.586 8.706l-.047.04c-.318.3-1.048.59-1.515 1.39a.7.7 0 0 0-.098.354c-.027 2.82-.004 5.633-.012 8.44a.717.717 0 0 0 .717.717h10.682a.717.717 0 0 0 .717-.716v-3.438c-.025-1.683.053-3.415-.042-5.166a.72.72 0 0 0-.26-.514c-.222-.184-.45-.358-.673-.539c-.06-.052-.118-.108-.177-.155c-.124-.102-.24-.184-.358-.272c-.64-.512-1.278-1.026-1.921-1.53q-.314-.253-.644-.505c-.513-.402-1.029-.803-1.536-1.208a.72.72 0 0 0-.445-.156m.016 1.89a.9.9 0 0 1 .325.06c.858.563 1.673 1.31 2.598 2.006l-.06-.05c.297.28.591.486.856.68l.356.283c.218.19.368.365.438.562c.063 1.936.01 3.9.029 5.886v.037c.023.358.006.751-.068.975c-.069.207-.078.248-.27.284c-2.468.053-4.956.008-7.458.023l-.041.002c-.365.023-.765.005-.985-.071c-.211-.073-.244-.069-.275-.297c-.05-1.596-.008-3.22-.023-4.863l-.002.063c.079-.997-.077-1.768.13-2.264c.794-.76 1.788-1.412 2.753-2.206l-.068.05c.436-.281.76-.606 1.047-.827c.284-.217.491-.321.718-.333M.84 9.283c.005 0 .025.009.03.01H.82c-.008 0-.007-.01.022-.01m11.131.79a.7.7 0 0 0-.43.143l-1.824 1.368a.72.72 0 0 0-.286.573v3.191a.717.717 0 0 0 .729.717L13.809 16a.717.717 0 0 0 .703-.717v-3.126a.72.72 0 0 0-.286-.573l-1.824-1.368a.7.7 0 0 0-.43-.144m-10.677.31c-.02.022-.03.023-.03.023zm10.679 1.446c.353.166.668.434.976.782c.107.485.045 1.12.048 1.86c-.006-.002-.022-.012-.088.005c-.141.037-.442.037-.748.026l.02.001c-.455-.029-.856.022-1.078-.007a.5.5 0 0 1-.157-.042l-.002-.006c-.004-.705-.052-1.323.045-1.81c.346-.349.682-.655.984-.809m1.036 2.57c-.012.062-.002.073-.006.072z"},null,-1)]))}const bt=J({name:"cbi-homekit",render:vt}),wt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function yt(T,c){return s(),p("svg",wt,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M22.939 10.627L13.061.749a1.505 1.505 0 0 0-2.121 0l-9.879 9.878C.478 11.21 0 12.363 0 13.187v9c0 .826.675 1.5 1.5 1.5h9.227l-4.063-4.062a2 2 0 0 1-.664.113c-1.13 0-2.05-.92-2.05-2.05s.92-2.05 2.05-2.05s2.05.92 2.05 2.05c0 .233-.041.456-.113.665l3.163 3.163V9.928a2.05 2.05 0 0 1-1.15-1.84c0-1.13.92-2.05 2.05-2.05s2.05.92 2.05 2.05a2.05 2.05 0 0 1-1.15 1.84v8.127l3.146-3.146A2.05 2.05 0 0 1 18 12.239c1.13 0 2.05.92 2.05 2.05s-.92 2.05-2.05 2.05a2 2 0 0 1-.709-.13L12.9 20.602v3.088h9.6c.825 0 1.5-.675 1.5-1.5v-9c0-.825-.477-1.977-1.061-2.561z"},null,-1)]))}const xt=J({name:"simple-icons-homeassistant",render:yt}),kt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Ct(T,c){return s(),p("svg",kt,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M12 2C7.342 2 3.44 5.19 2.328 9.5h6.733A3.01 3.01 0 0 1 12 7.1a3.01 3.01 0 0 1 2.94 2.4h6.732C20.56 5.19 16.658 2 12 2m0 6.1c-1.11 0-2 .89-2 2s.89 2 2 2s2-.89 2-2s-.89-2-2-2m-9.875 2.4C2.051 10.99 2 11.489 2 12q.005.877.162 1.74l2.535-.451c.465 2.165 1.752 4.026 3.553 5.139a7.1 7.1 0 0 0 7.5 0c1.802-1.113 3.089-2.976 3.553-5.14l2.543.452A10 10 0 0 0 22 12c0-.511-.05-1.01-.125-1.5h-6.916c-.199 1.462-1.445 2.6-2.959 2.6s-2.76-1.138-2.959-2.6zm17.846 4.43a8.5 8.5 0 0 1-7.97 5.57a8.5 8.5 0 0 1-7.971-5.568l-1.495.267A10 10 0 0 0 12 22a10 10 0 0 0 9.463-6.803z"},null,-1)]))}const St=J({name:"cbi-roborock",render:Ct}),Tt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function $t(T,c){return s(),p("svg",Tt,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M24 16.375a3.05 3.05 0 0 1-.246 1.231a3.1 3.1 0 0 1-1.672 1.66a3.1 3.1 0 0 1-1.225.247a3.7 3.7 0 0 1-.71-.073a4 4 0 0 1-.739-.218a3.2 3.2 0 0 1-.676-.37a2 2 0 0 1-.507-.515a.46.46 0 0 1-.08-.275a.44.44 0 0 1 .152-.346a.5.5 0 0 1 .346-.138a.6.6 0 0 1 .201.04a.4.4 0 0 1 .186.17a.05.05 0 0 0 .016.032l.064.065a1.8 1.8 0 0 0 .798.507a3 3 0 0 0 .943.154a2.1 2.1 0 0 0 .846-.17a2.2 2.2 0 0 0 1.16-1.16a2.1 2.1 0 0 0 .176-.841v-1.109a3.1 3.1 0 0 1-.985.637a3.1 3.1 0 0 1-1.193.234a3.05 3.05 0 0 1-1.231-.246a3.14 3.14 0 0 1-1.66-1.66a3 3 0 0 1-.247-1.232v-2.544a3.1 3.1 0 0 1 .247-1.225a3.2 3.2 0 0 1 .668-1a3.2 3.2 0 0 1 .986-.669a3.15 3.15 0 0 1 2.463 0a3.1 3.1 0 0 1 1.668 1.668a3.1 3.1 0 0 1 .246 1.225v5.92zm-.967-5.92a2.1 2.1 0 0 0-.17-.846a2.2 2.2 0 0 0-1.16-1.16a2.2 2.2 0 0 0-1.692 0a2.2 2.2 0 0 0-1.166 1.16a2.1 2.1 0 0 0-.168.845v2.531a2.1 2.1 0 0 0 .168.853a2.2 2.2 0 0 0 .468.693a2.2 2.2 0 0 0 .694.467a2.2 2.2 0 0 0 1.692 0a2.2 2.2 0 0 0 1.16-1.16a2.1 2.1 0 0 0 .174-.853zm-7.252 5.356a.44.44 0 0 1-.154.363a.51.51 0 0 1-.66 0a.43.43 0 0 1-.153-.363v-5.356a2.1 2.1 0 0 0-.17-.846a2.2 2.2 0 0 0-1.16-1.16a2.2 2.2 0 0 0-1.692 0a2.2 2.2 0 0 0-1.16 1.16a2.1 2.1 0 0 0-.17.846v5.356a.43.43 0 0 1-.152.363a.51.51 0 0 1-.661 0a.43.43 0 0 1-.153-.363v-5.356a3.1 3.1 0 0 1 .246-1.225a3.2 3.2 0 0 1 .67-1a3.2 3.2 0 0 1 .984-.669a3.15 3.15 0 0 1 2.464 0a3.1 3.1 0 0 1 1.667 1.668a3.1 3.1 0 0 1 .247 1.225zm-8.383 0a.44.44 0 0 1-.152.363a.51.51 0 0 1-.662 0a.43.43 0 0 1-.152-.363V7.956a.44.44 0 0 1 .152-.363a.51.51 0 0 1 .662 0a.44.44 0 0 1 .152.363zM4.982 8.44a.46.46 0 0 1-.145.338a.48.48 0 0 1-.355.142a.5.5 0 0 1-.339-.145l-.016-.017a.2.2 0 0 0-.032-.024a.1.1 0 0 1-.033-.025a1.9 1.9 0 0 0-1.24-.43q-.871 0-1.363.595q-.491.596-.492 1.693v5.243a.44.44 0 0 1-.153.363a.53.53 0 0 1-.33.123a.53.53 0 0 1-.33-.123a.43.43 0 0 1-.153-.363v-5.243A4.4 4.4 0 0 1 .18 9.303a3 3 0 0 1 .53-1.031a2.55 2.55 0 0 1 .878-.706a2.8 2.8 0 0 1 1.231-.257a3.1 3.1 0 0 1 1.065.209a2.6 2.6 0 0 1 .934.58a.48.48 0 0 1 .163.343zm2.76-3.128a.826.826 0 0 1-.826.827a.826.826 0 0 1-.827-.827a.826.826 0 0 1 .827-.826a.826.826 0 0 1 .826.826"},null,-1)]))}const Rt=J({name:"simple-icons-ring",render:$t}),Pt={viewBox:"0 0 48 48",width:"1.2em",height:"1.2em"};function At(T,c){return s(),p("svg",Pt,c[0]||(c[0]=[a("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C12.955 4 4 12.955 4 24s8.955 20 20 20s20-8.955 20-20c0-1.341-.138-2.65-.389-3.917"},null,-1),a("path",{fill:"#FF3D00",d:"m6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C16.318 4 9.656 8.337 6.306 14.691"},null,-1),a("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.9 11.9 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44"},null,-1),a("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917"},null,-1)]))}const It=J({name:"flat-color-icons-google",render:At}),Mt={class:"flex flex-col gap-6 w-full h-full"},Ht={class:"flex flex-col w-full h-full gap-6"},jt={class:"h-[70px]"},Et={class:"cui-label"},Lt={class:"flex flex-col w-full h-[calc(100%-70px-1.25rem)]"},Vt={key:0,class:"flex w-full h-full items-center justify-center"},Gt={key:1,class:"flex flex-col w-full h-full items-center justify-center gap-4"},Bt={class:"text-muted"},Ot={class:"flex flex-col"},Ut={class:"font-medium truncate"},Dt={key:0,class:"text-xs text-muted truncate"},qt={key:1,class:"text-xs text-muted truncate"},Ft={key:0,class:"flex flex-col w-full py-4 gap-6"},Wt={for:"name",class:"cui-label"},zt={for:"url",class:"cui-label"},Nt={for:"username",class:"cui-label"},Kt={for:"password",class:"cui-label"},Yt={for:"pin",class:"cui-label"},Xt=se({__name:"DiscoverCameras",setup(T){const c=new Ce,j=Ne(),{t:E}=Ge(),{data:R,isFetching:B,refetch:P,isRefetching:$}=c.discoverCamerasQuery(),{mutateAsync:L,isPending:M}=c.pairCameraQuery(),O=de("formRef"),b=D(""),y=D(),m=D({}),C=D(),H=D(),u=D(),S=D(),f=Q(()=>B.value||$.value),W=Q(()=>M.value),oe=Q(()=>{var h;return!!((h=y.value)!=null&&h.url.includes("user:pass"))}),A=Q(()=>{var h,v,V;return((h=y.value)==null?void 0:h.type)==="Google"||((v=y.value)==null?void 0:v.type)==="Roborock"||((V=y.value)==null?void 0:V.type)==="Ring"}),Z=Q(()=>{var V,l;if(!((l=(V=R.value)==null?void 0:V.sources)!=null&&l.length))return[];let h=[{name:"Google Nest",type:"Google",url:"nest?:"},{name:"Ring",type:"Ring",url:"ring?:"},{name:"Roborock",type:"Roborock",url:"roborock://"},...He(R.value.sources)];if(!b.value)return h;const v=b.value.toLowerCase();return h=R.value.sources.filter(n=>(n.name??n.id??"Unknown").toLowerCase().includes(v)||n.url.toLowerCase().includes(v)||n.type&&n.type.toLowerCase().includes(v)),h});Ze(y,h=>{C.value=void 0,H.value=void 0,u.value=void 0,S.value=void 0,re(h==null?void 0:h.url)});const re=h=>{if(!h){m.value={};return}m.value[h]?m.value={}:m.value={[h]:!0}},ie=async()=>{try{y.value=void 0,await P()}catch{}},ce=async()=>{var v;const h=await((v=O.value)==null?void 0:v.validate());if(h!=null&&h.valid&&h.values)try{await L({cameraData:h.values}),await P()}catch{}else j.add({severity:"error",summary:E("components.toast.title_error"),detail:E("components.toast.validation_failed"),life:3e3}),console.log("Validation failed",h)};return(h,v)=>{const V=qe,l=ze,n=ke,i=We,I=Fe,U=De,pe=to,ae=It,ee=Rt,Se=St,he=xt,_e=bt,ge=_t,ve=pt,fe=ct,Te=st,$e=yo,be=ao,Re=so,Pe=no,Ae=je,Y=Ee;return s(),p("div",Mt,[o(Ae,{class:"cui-card",pt:{body:{class:"h-full"},content:{class:"h-full"}}},{content:t(()=>{var le,x;return[a("div",Ht,[a("div",jt,[a("label",Et,w(h.$t("components.dialog.components.new_camera.search_camera")),1),o(U,null,{default:t(()=>[o(V,{modelValue:e(b),"onUpdate:modelValue":v[0]||(v[0]=r=>ne(b)?b.value=r:null),modelModifiers:{trim:!0},loading:e(f),type:"text"},null,8,["modelValue","loading"]),o(I,null,{default:t(()=>[o(n,{text:"",rounded:"",severity:"secondary",disabled:e(f),class:"border-right-color",onClick:v[1]||(v[1]=r=>b.value="")},{icon:t(()=>[o(l)]),_:1},8,["disabled"]),o(n,{text:"",rounded:"",severity:"secondary",disabled:e(f),onClick:ie},{icon:t(()=>[o(i)]),_:1},8,["disabled"])]),_:1})]),_:1})]),a("div",Lt,[e(f)?(s(),p("div",Vt,[o(pe,{class:"w-[30px] h-[30px] m-0","stroke-width":"5"})])):(x=(le=e(R))==null?void 0:le.sources)!=null&&x.length?(s(),g(Pe,{key:2,selection:e(y),"onUpdate:selection":v[6]||(v[6]=r=>ne(y)?y.value=r:null),"expanded-rows":e(m),"onUpdate:expandedRows":v[7]||(v[7]=r=>ne(m)?m.value=r:null),value:e(Z),"data-key":"url",loading:e(f),scrollable:"","selection-mode":"single",class:"h-full",pt:{root:{class:"h-full"},tableContainer:{class:"h-full"},table:{class:"table-fixed"}}},{expansion:t(r=>[e(A)?(s(),p("div",Ft,"WIP")):_("",!0),o(e(eo),{ref_key:"formRef",ref:O,class:"flex flex-col w-full py-4 gap-6","validation-schema":e(xo)},{default:t(()=>[e(A)?_("",!0):(s(),g(e(F),{key:0,modelValue:e(C),"onUpdate:modelValue":v[2]||(v[2]=d=>ne(C)?C.value=d:null),modelModifiers:{trim:!0},name:"name",as:"div",class:"flex flex-col field-gap"},{default:t(({field:d,errors:k})=>[a("label",Wt,w(h.$t("components.form.label.name")),1),o(U,null,{default:t(()=>[o(V,X(d,{invalid:k.length>0,loading:e(W),type:"text"}),null,16,["invalid","loading"])]),_:2},1024),o(N,{name:"fade"},{default:t(()=>[o(e(K),{name:"name",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue"])),e(A)?_("",!0):(s(),g(e(F),{key:1,"model-value":r.data.url,name:"url",as:"div",class:"flex flex-col field-gap"},{default:t(({field:d,errors:k})=>[a("label",zt,w(h.$t("components.form.label.url")),1),o(U,null,{default:t(()=>[o(V,X(d,{invalid:k.length>0,loading:e(W),type:"text",readonly:""}),null,16,["invalid","loading"])]),_:2},1024),o(N,{name:"fade"},{default:t(()=>[o(e(K),{name:"url",class:"cui-input-error"})]),_:1})]),_:2},1032,["model-value"])),e(oe)?(s(),g(e(F),{key:2,modelValue:e(u),"onUpdate:modelValue":v[3]||(v[3]=d=>ne(u)?u.value=d:null),modelModifiers:{trim:!0},name:"username",as:"div",class:"flex flex-col field-gap"},{default:t(({field:d,errors:k})=>[a("label",Nt,w(h.$t("components.form.label.username")),1),o(U,null,{default:t(()=>[o(V,X(d,{invalid:k.length>0,loading:e(W),type:"text"}),null,16,["invalid","loading"])]),_:2},1024),o(N,{name:"fade"},{default:t(()=>[o(e(K),{name:"username",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue"])):_("",!0),e(oe)?(s(),g(e(F),{key:3,modelValue:e(S),"onUpdate:modelValue":v[4]||(v[4]=d=>ne(S)?S.value=d:null),name:"password",as:"div",class:"flex flex-col field-gap"},{default:t(({field:d,errors:k})=>[a("label",Kt,w(h.$t("components.form.label.password")),1),o(U,null,{default:t(()=>[o(Re,X({invalid:k.length>0},d,{loading:e(W),feedback:!1,"toggle-mask":""}),null,16,["invalid","loading"])]),_:2},1024),o(N,{name:"fade"},{default:t(()=>[o(e(K),{name:"password",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue"])):_("",!0),r.data.type==="HomeKit"?(s(),g(e(F),{key:4,modelValue:e(H),"onUpdate:modelValue":v[5]||(v[5]=d=>ne(H)?H.value=d:null),modelModifiers:{trim:!0},name:"pin",as:"div",class:"flex flex-col field-gap"},{default:t(({field:d,errors:k})=>[a("label",Yt,w(h.$t("components.form.label.pin")),1),o(U,null,{default:t(()=>[o(V,X(d,{invalid:k.length>0,loading:e(W),type:"text",maxlength:8}),null,16,["invalid","loading"])]),_:2},1024),o(N,{name:"fade"},{default:t(()=>[o(e(K),{name:"pin",class:"cui-input-error"})]),_:1})]),_:1},8,["modelValue"])):_("",!0),o(e(F),{modelValue:r.data.type,"onUpdate:modelValue":d=>r.data.type=d,name:"type",as:"div",class:"hidden"},null,8,["modelValue","onUpdate:modelValue"]),e(A)?_("",!0):(s(),g(n,{key:5,loading:e(W),label:h.$t("components.dialog.components.new_camera.add_camera"),class:"cui-button-md w-full md:w-auto md:ml-auto",onClick:ce},null,8,["loading","label"]))]),_:2},1032,["validation-schema"])]),default:t(()=>[o(be,{"header-class":"w-10"},{body:t(r=>[r.data.type==="Google"?G((s(),g(n,{key:0,text:"",rounded:"",class:"cui-icon-md"},{icon:t(()=>[o(ae,{width:"100%",height:"100%"})]),_:1})),[[Y,{value:"Google Nest"}]]):_("",!0),r.data.type==="Ring"?G((s(),g(n,{key:1,text:"",rounded:"",class:"cui-icon-md"},{icon:t(()=>[o(ee,{class:"text-blue-500",width:"100%",height:"100%"})]),_:1})),[[Y,{value:"Ring"}]]):_("",!0),r.data.type==="Roborock"?G((s(),g(n,{key:2,text:"",rounded:"",class:"cui-icon-md"},{icon:t(()=>[o(Se,{class:"text-red-500",width:"100%",height:"100%"})]),_:1})),[[Y,{value:"Roborock"}]]):_("",!0),r.data.type==="Hass"?G((s(),g(n,{key:3,text:"",rounded:"",class:"cui-icon-md"},{icon:t(()=>[o(he,{class:"text-sky-500",width:"100%",height:"100%"})]),_:1})),[[Y,{value:"Home Assistant"}]]):_("",!0),r.data.type==="HomeKit"?G((s(),g(n,{key:4,text:"",rounded:"",class:"cui-icon-md !bg-transparent"},{icon:t(()=>[o(_e,{class:"text-yellow-500",width:"100%",height:"100%"})]),_:1})),[[Y,{value:"HomeKit"}]]):_("",!0),r.data.type==="FFmpeg"?G((s(),g(n,{key:5,text:"",rounded:"",class:"cui-icon-md !bg-transparent"},{icon:t(()=>[o(ge,{class:"text-green-500",width:"100%",height:"100%"})]),_:1})),[[Y,{value:"FFmpeg"}]]):_("",!0),r.data.type==="Onvif"?G((s(),g(n,{key:6,text:"",rounded:"",class:"cui-icon-md !bg-transparent"},{icon:t(()=>[o(ve,{width:"100%",height:"100%"})]),_:1})),[[Y,{value:"Onvif"}]]):_("",!0),r.data.type==="Webtorrent"?G((s(),g(n,{key:7,text:"",rounded:"",class:"cui-icon-md !bg-transparent"},{icon:t(()=>[o(fe,{width:"100%",height:"100%"})]),_:1})),[[Y,{value:"WebTorrent"}]]):_("",!0),r.data.type==="GoPro"?G((s(),g(n,{key:8,text:"",rounded:"",class:"cui-icon-md !bg-transparent"},{icon:t(()=>[o(Te,{width:"100%",height:"100%"})]),_:1})),[[Y,{value:"GoPro"}]]):_("",!0),r.data.type==="DVRip"?G((s(),g(n,{key:9,text:"",rounded:"",class:"cui-icon-md !bg-transparent"},{icon:t(()=>[o($e,{width:"100%",height:"100%"})]),_:1})),[[Y,{value:"DVRip"}]]):_("",!0)]),_:1}),o(be,{field:"name",header:h.$t("components.form.label.camera")},{body:t(r=>[a("div",Ot,[a("span",Ut,w(r.data.name),1),r.data.type!=="Google"&&r.data.type!=="Roborock"&&r.data.type!=="Ring"?(s(),p("span",Dt,w(r.data.url),1)):_("",!0),r.data.info?(s(),p("span",qt,w(r.data.info),1)):_("",!0)])]),_:1},8,["header"])]),_:1},8,["selection","expanded-rows","value","loading"])):(s(),p("div",Gt,[a("span",Bt,w(h.$t("components.dialog.components.new_camera.no_cameras_found")),1),o(n,{severity:"primary",label:h.$t("components.dialog.components.new_camera.scan_again"),onClick:ie},null,8,["label"])]))])])]}),_:1})])}}}),Qt={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function Jt(T,c){return s(),p("svg",Qt,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M12.5 9q-.275 0-.425-.25t0-.5L15 3.175q.2-.325.5-.387t.65.112q1.725.775 3.05 2.162T21.25 8.2q.125.325-.038.563T20.7 9zm-3.575 1.225l-3-5.2q-.2-.325-.1-.65t.4-.525Q7.425 3 8.888 2.5T12 2q.375 0 .825.038t.75.087q.35.05.463.3t-.063.55L9.8 10.225q-.15.25-.437.25t-.438-.25M2.85 14q-.275 0-.5-.187t-.275-.463t-.062-.6T2 12q0-1.575.513-3.137T4.1 5.9q.275-.35.638-.35t.562.375l4.2 7.325q.15.25-.012.5T9.05 14zm5 7.1q-1.65-.8-3.025-2.175T2.75 15.8q-.125-.325.05-.562T3.325 15h8.15q.275 0 .425.25t0 .5l-2.875 5.025q-.2.325-.5.425t-.675-.1M12 22q-.35 0-.788-.038t-.762-.087q-.35-.05-.475-.3t.05-.55l4.125-7.2q.15-.25.5-.25t.5.25l2.95 5.125q.175.275.113.6t-.413.6q-1.15.85-2.687 1.35T12 22m6.775-3.875l-4.25-7.375q-.15-.25.013-.5t.437-.25h6.175q.275 0 .5.188t.275.462t.062.6T22 12q0 1.575-.513 3.163T19.9 18.125q-.2.275-.575.288t-.55-.288"},null,-1)]))}const Zt=J({name:"material-symbols-camera-rounded",render:Jt}),en={viewBox:"0 0 12 12",width:"1.2em",height:"1.2em"};function on(T,c){return s(),p("svg",en,c[0]||(c[0]=[a("path",{fill:"currentColor",d:"M2.22 4.47a.75.75 0 0 1 1.06 0L6 7.19l2.72-2.72a.75.75 0 0 1 1.06 1.06L6.53 8.78a.75.75 0 0 1-1.06 0L2.22 5.53a.75.75 0 0 1 0-1.06"},null,-1)]))}const tn=J({name:"fluent-chevron-down12-filled",render:on}),nn="#### Source: Bubble\n\nOther names: [ESeeCloud](http://www.eseecloud.com/), [dvr163](http://help.dvr163.com/).\n\n- you can skip `username`, `password`, `port`, `ch` and `stream` if they are default\n- setup separate streams for different channels and streams\n\n```yaml\nstreams:\n camera1: bubble://username:password@192.168.1.123:34567/bubble/live?ch=0&stream=0\n```\n\n_Source: [Go2Rtc Bubble](https://github.com/AlexxIT/go2rtc#source-bubble)_\n",an='#### Source: CUI\n\nThis source can be used to stream dynamically generated, go2rtc compatible, URLs. The source is just a placeholder for a `https://` URL.\n\n```yaml\nstreams:\n camera1: cui://192.168.1.123:34567/some-identifier-if-you-want\n```\n\nThe URL will be changed to `https://192.168.1.123:34567/some-identifier-if-you-want` and the response must be like this:\n\n```json\n{\n {\n "streamUrl": "rtsp://192.168.1.1:554/stream",\n }\n}\n```\n\nGo2rtc will then use the `streamUrl` to stream the video. The `streamUrl` can be any URL that is compatible with go2rtc. The response must be a valid JSON object with the `streamUrl` key.\n',sn=`#### Source: Doorbird
@@ -0,0 +1 @@
1
+ import{z as i}from"./main.Cg-KFXG3.0.0.63-internal.0.js";import{c as m,d as p,e as r,I as e}from"./@vue.Dh6viqaK.0.0.63-internal.0.js";import"./@tanstack.CTxTG8tn.0.0.63-internal.0.js";import"./primevue.f23wRZfa.0.0.63-internal.0.js";import"./@primeuix.BkBDkSvZ.0.0.63-internal.0.js";import"./@primevue.ttnqVLGy.0.0.63-internal.0.js";import"./@vueuse.BiJ8xsBO.0.0.63-internal.0.js";import"./nprogress.ig2CXOoL.0.0.63-internal.0.js";import"./@xterm.DBOyTbbO.0.0.63-internal.0.js";import"./axios.DHr9lByg.0.0.63-internal.0.js";import"./vue-i18n.xox7B9R9.0.0.63-internal.0.js";import"./@intlify.BkGPX90O.0.0.63-internal.0.js";import"./pinia.pqSsOFLB.0.0.63-internal.0.js";import"./vue-router.D80ZmMz-.0.0.63-internal.0.js";import"./vue-inline-svg.BH2BZf-J.0.0.63-internal.0.js";import"./vee-validate.C-8MGG76.0.0.63-internal.0.js";import"./@vee-validate.if_ULCcL.0.0.63-internal.0.js";import"./zod.sy4ilHCy.0.0.63-internal.0.js";import"./uuid.C6aID195.0.0.63-internal.0.js";import"./socket.io-client.CwltQSxD.0.0.63-internal.0.js";import"./engine.io-client.BkwlnD1F.0.0.63-internal.0.js";import"./engine.io-parser.BiEtp6m2.0.0.63-internal.0.js";import"./@socket.io.Dkula2eQ.0.0.63-internal.0.js";import"./socket.io-parser.AG_riFB1.0.0.63-internal.0.js";import"./rxjs.Npfw5pj3.0.0.63-internal.0.js";import"./tslib.9k7AwCpt.0.0.63-internal.0.js";import"./highlight.js.43RbAYuY.0.0.63-internal.0.js";import"./markdown-it.BXV_l9cc.0.0.63-internal.0.js";import"./mdurl.k9Sl0PQj.0.0.63-internal.0.js";import"./uc.micro.kMc2yuuw.0.0.63-internal.0.js";import"./entities.C20TfXL6.0.0.63-internal.0.js";import"./linkify-it.DPd6CNOE.0.0.63-internal.0.js";import"./punycode.js.Dj65hjkv.0.0.63-internal.0.js";import"./qrcode.BW6Q6A4B.0.0.63-internal.0.js";import"./dijkstrajs.C00ieaqj.0.0.63-internal.0.js";import"./draggabilly.CofelTvT.0.0.63-internal.0.js";import"./get-size.D1dS-IaP.0.0.63-internal.0.js";import"./unidragger.BGgU3_VA.0.0.63-internal.0.js";import"./ev-emitter.X5f1qa-c.0.0.63-internal.0.js";import"./vue-zoomable.DCwOki9q.0.0.63-internal.0.js";import"./primelocale.Bga3dOQu.0.0.63-internal.0.js";const s={},a={class:"page-title"};function n(t,o){return p(),m("div",null,[r("h1",a,e(t.$t(`views.${String(t.$route.name).toLowerCase()}.title`)),1),o[0]||(o[0]=r("span",{class:"text-muted"},"WIP",-1))])}const X=i(s,[["render",n]]);export{X as default};