camera.ui3 0.0.34-alpha.1 → 0.0.34-alpha.2

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 (242) hide show
  1. package/dist/interface/@tanstack.DaYhomXG.0.0.34-alpha.2.js +1 -0
  2. package/dist/interface/{@vee-validate.BYAqeMXW.0.0.34-alpha.1.js → @vee-validate.BgfhJ3tv.0.0.34-alpha.2.js} +1 -1
  3. package/dist/interface/@vue.D0DP0v6_.0.0.34-alpha.2.js +17 -0
  4. package/dist/interface/{@vueform.BsJeH1VL.0.0.34-alpha.1.js → @vueform.B9nWZDbJ.0.0.34-alpha.2.js} +1 -1
  5. package/dist/interface/{@vueuse.C89QVsKq.0.0.34-alpha.1.js → @vueuse.Di3-85fa.0.0.34-alpha.2.js} +1 -1
  6. package/dist/interface/{Account.Dl_h4WcJ.0.0.34-alpha.1.js → Account.Dt2M2G9T.0.0.34-alpha.2.js} +1 -1
  7. package/dist/interface/{Adminpanel.B2CrHAQm.0.0.34-alpha.1.js → Adminpanel.C3sidzLi.0.0.34-alpha.2.js} +2 -2
  8. package/dist/interface/{Appearance.8KGURqrg.0.0.34-alpha.1.js → Appearance.DcUS-yy7.0.0.34-alpha.2.js} +1 -1
  9. package/dist/interface/{Backup.ByUwt7pB.0.0.34-alpha.1.js → Backup.DDEr-2_6.0.0.34-alpha.2.js} +1 -1
  10. package/dist/interface/Camera.CLxaywAi.0.0.34-alpha.2.js +1 -0
  11. package/dist/interface/Cameras.CKQTl7Gl.0.0.34-alpha.2.js +1 -0
  12. package/dist/interface/Camview.BuKRBlZg.0.0.34-alpha.2.js +1 -0
  13. package/dist/interface/{Config.n7S8GG-f.0.0.34-alpha.1.js → Config.B9PNvDV2.0.0.34-alpha.2.js} +1 -1
  14. package/dist/interface/Console.DnRRAJB4.0.0.34-alpha.2.js +4 -0
  15. package/dist/interface/{FirstSteps.DBHaCFiB.0.0.34-alpha.1.js → FirstSteps.YGowg836.0.0.34-alpha.2.js} +1 -1
  16. package/dist/interface/{NewCamera.DXZTbw6t.0.0.34-alpha.1.js → NewCamera.fxgE3DwM.0.0.34-alpha.2.js} +2 -2
  17. package/dist/interface/Plugin.CKc5qj6D.0.0.34-alpha.2.js +1 -0
  18. package/dist/interface/Plugins.DjzGLIs2.0.0.34-alpha.2.js +1 -0
  19. package/dist/interface/Recordings.MD4_BOBv.0.0.34-alpha.2.js +1 -0
  20. package/dist/interface/Recordings.jFnATBbC.0.0.34-alpha.2.js +1 -0
  21. package/dist/interface/{Settings.Brji5kRj.0.0.34-alpha.1.js → Settings.CNd6al6p.0.0.34-alpha.2.js} +1 -1
  22. package/dist/interface/{System.DYvfAoEM.0.0.34-alpha.1.js → System.BjAkow0D.0.0.34-alpha.2.js} +1 -1
  23. package/dist/interface/{User.Mr1DinvX.0.0.34-alpha.1.js → User.BtpdbtGz.0.0.34-alpha.2.js} +1 -1
  24. package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.DaPxq8EI.0.0.34-alpha.1.js → VConfigEditor.vue_vue_type_script_setup_true_lang.DYl7B603.0.0.34-alpha.2.js} +2 -2
  25. package/dist/interface/{VConsole.sVPWAfNY.0.0.34-alpha.1.js → VConsole.BA0SOrQC.0.0.34-alpha.2.js} +1 -1
  26. package/dist/interface/VPlayer.CSx272u1.0.0.34-alpha.2.js +4 -0
  27. package/dist/interface/VPluginCard.Bump1l-o.0.0.34-alpha.2.js +4 -0
  28. package/dist/interface/{ace-builds.Cnj3uJ-i.0.0.34-alpha.1.js → ace-builds.CRQWwDGY.0.0.34-alpha.2.js} +1 -1
  29. package/dist/interface/{apexcharts.CMLplPnj.0.0.34-alpha.1.js → apexcharts.DXGZ805q.0.0.34-alpha.2.js} +1 -1
  30. package/dist/interface/assets/Cameras.0.0.34-alpha.2.CF0l3cIy.css +1 -0
  31. package/dist/interface/assets/Console.0.0.34-alpha.2.DJvMOm8N.css +1 -0
  32. package/dist/interface/assets/{VPlayer.0.0.34-alpha.1.DmbaAA_3.css → VPlayer.0.0.34-alpha.2.Pcy9j9b5.css} +1 -1
  33. package/dist/interface/assets/VPluginCard.0.0.34-alpha.2.W0BxyDkV.css +1 -0
  34. package/dist/interface/assets/main.0.0.34-alpha.2.D6i_pncP.css +1 -0
  35. package/dist/interface/{dnd-core.DXuprW1u.0.0.34-alpha.1.js → dnd-core.CsRU4im_.0.0.34-alpha.2.js} +1 -1
  36. package/dist/interface/{draggabilly.B4gt8cuQ.0.0.34-alpha.1.js → draggabilly.l2s5eYjI.0.0.34-alpha.2.js} +1 -1
  37. package/dist/interface/{engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js → engine.io-client.Dwbs-ZkK.0.0.34-alpha.2.js} +1 -1
  38. package/dist/interface/{ev-emitter.CCoflQaJ.0.0.34-alpha.1.js → ev-emitter.DepL03rS.0.0.34-alpha.2.js} +1 -1
  39. package/dist/interface/{fast-deep-equal.A6REbYuf.0.0.34-alpha.1.js → fast-deep-equal.CmcaBmI9.0.0.34-alpha.2.js} +1 -1
  40. package/dist/interface/{highlight.js.ChQi-SWt.0.0.34-alpha.1.js → highlight.js.DZ1tIawt.0.0.34-alpha.2.js} +1 -1
  41. package/dist/interface/index.html +31 -31
  42. package/dist/interface/{linkify-it.V_1DZtim.0.0.34-alpha.1.js → linkify-it.BGRcCXsE.0.0.34-alpha.2.js} +1 -1
  43. package/dist/interface/main.CHr8NDgU.0.0.34-alpha.2.js +5 -0
  44. package/dist/interface/{markdown-it.BSp5IUES.0.0.34-alpha.1.js → markdown-it.BuMckFhq.0.0.34-alpha.2.js} +1 -1
  45. package/dist/interface/{nprogress.BMn57QX7.0.0.34-alpha.1.js → nprogress.CKm3qYbh.0.0.34-alpha.2.js} +1 -1
  46. package/dist/interface/{pinia.C5B5h5W-.0.0.34-alpha.1.js → pinia.CgXasWeS.0.0.34-alpha.2.js} +1 -1
  47. package/dist/interface/plugins.OB3Qt6a7.0.0.34-alpha.2.js +1 -0
  48. package/dist/interface/{qrcode.CoLGEQa3.0.0.34-alpha.1.js → qrcode.xTmFSDRr.0.0.34-alpha.2.js} +1 -1
  49. package/dist/interface/{react-dnd-touch-backend.CC-llxq1.0.0.34-alpha.1.js → react-dnd-touch-backend.pfTbNVbd.0.0.34-alpha.2.js} +1 -1
  50. package/dist/interface/{rxjs.DhS72WZW.0.0.34-alpha.1.js → rxjs.D38gERkL.0.0.34-alpha.2.js} +1 -1
  51. package/dist/interface/{socket.io-client.DA70sIzA.0.0.34-alpha.1.js → socket.io-client.DyznceoQ.0.0.34-alpha.2.js} +1 -1
  52. package/dist/interface/{socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js → socket.io-parser.DxT7zcFX.0.0.34-alpha.2.js} +1 -1
  53. package/dist/interface/sw.js +1 -1
  54. package/dist/interface/system.DZXlNuRR.0.0.34-alpha.2.js +1 -0
  55. package/dist/interface/{unidragger.B5ZpJ0o9.0.0.34-alpha.1.js → unidragger.D0z7py8V.0.0.34-alpha.2.js} +1 -1
  56. package/dist/interface/{v-calendar.BP5jhivB.0.0.34-alpha.1.js → v-calendar.B8iX5lRb.0.0.34-alpha.2.js} +1 -1
  57. package/dist/interface/{vee-validate.dtT7hUg2.0.0.34-alpha.1.js → vee-validate.DKbtKMvz.0.0.34-alpha.2.js} +1 -1
  58. package/dist/interface/{vue-i18n.CISOas5G.0.0.34-alpha.1.js → vue-i18n.BH1Ai61X.0.0.34-alpha.2.js} +1 -1
  59. package/dist/interface/{vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js → vue-inline-svg.DuJxxmO_.0.0.34-alpha.2.js} +1 -1
  60. package/dist/interface/{vue-router.CA6UHABl.0.0.34-alpha.1.js → vue-router.C0Bd386U.0.0.34-alpha.2.js} +1 -1
  61. package/dist/interface/{vue3-apexcharts.D_2v4auN.0.0.34-alpha.1.js → vue3-apexcharts.BvLojs3t.0.0.34-alpha.2.js} +1 -1
  62. package/dist/interface/{vue3-dnd.CcvZ77YQ.0.0.34-alpha.1.js → vue3-dnd.DMur3pq_.0.0.34-alpha.2.js} +1 -1
  63. package/dist/interface/{vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js → vue3-toastify.CQn1aNYZ.0.0.34-alpha.2.js} +1 -1
  64. package/dist/interface/vuetify.BawD4IXx.0.0.34-alpha.2.js +5 -0
  65. package/dist/server/bin/cameraui.d.ts +3 -2
  66. package/dist/server/bin/cameraui.js +59 -76
  67. package/dist/server/bin/cameraui.js.map +1 -1
  68. package/dist/server/bin/fork.js +1 -4
  69. package/dist/server/bin/fork.js.map +1 -1
  70. package/dist/server/bin/installer/win32.js +3 -3
  71. package/dist/server/bin/installer/win32.js.map +1 -1
  72. package/dist/server/bin/logger.d.ts +3 -2
  73. package/dist/server/bin/logger.js +33 -20
  74. package/dist/server/bin/logger.js.map +1 -1
  75. package/dist/server/package.json +15 -11
  76. package/dist/server/requirements.txt +3 -2
  77. package/dist/server/src/api/controllers/cameras.controller.d.ts +2 -0
  78. package/dist/server/src/api/controllers/cameras.controller.js +67 -11
  79. package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
  80. package/dist/server/src/api/controllers/frameWorkers.controller.d.ts +1 -1
  81. package/dist/server/src/api/controllers/frameWorkers.controller.js +14 -6
  82. package/dist/server/src/api/controllers/frameWorkers.controller.js.map +1 -1
  83. package/dist/server/src/api/controllers/plugins.controller.d.ts +2 -0
  84. package/dist/server/src/api/controllers/plugins.controller.js +61 -2
  85. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
  86. package/dist/server/src/api/controllers/system.controller.d.ts +2 -2
  87. package/dist/server/src/api/controllers/system.controller.js +18 -40
  88. package/dist/server/src/api/controllers/system.controller.js.map +1 -1
  89. package/dist/server/src/api/database/checks.d.ts +55 -0
  90. package/dist/server/src/api/database/checks.js +183 -0
  91. package/dist/server/src/api/database/checks.js.map +1 -0
  92. package/dist/server/src/api/database/index.d.ts +2 -1
  93. package/dist/server/src/api/database/index.js +6 -2
  94. package/dist/server/src/api/database/index.js.map +1 -1
  95. package/dist/server/src/api/database/migration.d.ts +1 -0
  96. package/dist/server/src/api/database/migration.js +17 -0
  97. package/dist/server/src/api/database/migration.js.map +1 -1
  98. package/dist/server/src/api/database/selfcheck.d.ts +48 -0
  99. package/dist/server/src/api/database/selfcheck.js +398 -0
  100. package/dist/server/src/api/database/selfcheck.js.map +1 -0
  101. package/dist/server/src/api/routes/cameras.routes.js +12 -0
  102. package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
  103. package/dist/server/src/api/routes/plugins.routes.js +24 -0
  104. package/dist/server/src/api/routes/plugins.routes.js.map +1 -1
  105. package/dist/server/src/api/schemas/cameras.schema.d.ts +13 -13
  106. package/dist/server/src/api/schemas/cameras.schema.js +2 -2
  107. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  108. package/dist/server/src/api/services/cameras.service.d.ts +1 -0
  109. package/dist/server/src/api/services/cameras.service.js +13 -2
  110. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  111. package/dist/server/src/api/services/plugins.service.d.ts +1 -0
  112. package/dist/server/src/api/services/plugins.service.js +8 -3
  113. package/dist/server/src/api/services/plugins.service.js.map +1 -1
  114. package/dist/server/src/api/types/index.d.ts +0 -5
  115. package/dist/server/src/api/websocket/index.js +1 -0
  116. package/dist/server/src/api/websocket/index.js.map +1 -1
  117. package/dist/server/src/api/websocket/nsp/logs.d.ts +7 -1
  118. package/dist/server/src/api/websocket/nsp/logs.js +70 -51
  119. package/dist/server/src/api/websocket/nsp/logs.js.map +1 -1
  120. package/dist/server/src/api/websocket/nsp/metrics.d.ts +1 -1
  121. package/dist/server/src/api/websocket/nsp/metrics.js +15 -13
  122. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  123. package/dist/server/src/api/websocket/nsp/plugins.js +3 -3
  124. package/dist/server/src/api/websocket/nsp/plugins.js.map +1 -1
  125. package/dist/server/src/api/websocket/nsp/status.d.ts +1 -1
  126. package/dist/server/src/api/websocket/nsp/status.js +8 -6
  127. package/dist/server/src/api/websocket/nsp/status.js.map +1 -1
  128. package/dist/server/src/api.d.ts +5 -14
  129. package/dist/server/src/api.js +43 -24
  130. package/dist/server/src/api.js.map +1 -1
  131. package/dist/server/src/camera/controller.d.ts +16 -3
  132. package/dist/server/src/camera/controller.js +105 -17
  133. package/dist/server/src/camera/controller.js.map +1 -1
  134. package/dist/server/src/{decoder/worker.d.ts → camera/frameWorker.d.ts} +8 -5
  135. package/dist/server/src/{decoder/worker.js → camera/frameWorker.js} +124 -50
  136. package/dist/server/src/camera/frameWorker.js.map +1 -0
  137. package/dist/server/src/go2rtc/index.js +18 -5
  138. package/dist/server/src/go2rtc/index.js.map +1 -1
  139. package/dist/server/src/main.js +23 -51
  140. package/dist/server/src/main.js.map +1 -1
  141. package/dist/server/src/nats/index.js +1 -0
  142. package/dist/server/src/nats/index.js.map +1 -1
  143. package/dist/server/src/nats/proxy/cameraDevice.js +34 -42
  144. package/dist/server/src/nats/proxy/cameraDevice.js.map +1 -1
  145. package/dist/server/src/nats/server.js +29 -18
  146. package/dist/server/src/nats/server.js.map +1 -1
  147. package/dist/server/src/plugins/index.d.ts +2 -4
  148. package/dist/server/src/plugins/index.js +22 -29
  149. package/dist/server/src/plugins/index.js.map +1 -1
  150. package/dist/server/src/plugins/plugin.d.ts +5 -0
  151. package/dist/server/src/plugins/plugin.js +40 -6
  152. package/dist/server/src/plugins/plugin.js.map +1 -1
  153. package/dist/server/src/plugins/worker.d.ts +16 -2
  154. package/dist/server/src/plugins/worker.js +180 -40
  155. package/dist/server/src/plugins/worker.js.map +1 -1
  156. package/dist/server/src/services/config/constants.d.ts +1 -0
  157. package/dist/server/src/services/config/constants.js +3 -2
  158. package/dist/server/src/services/config/constants.js.map +1 -1
  159. package/dist/server/src/services/config/index.d.ts +11 -2
  160. package/dist/server/src/services/config/index.js +53 -6
  161. package/dist/server/src/services/config/index.js.map +1 -1
  162. package/dist/server/src/services/config/types.d.ts +7 -0
  163. package/dist/server/src/services/config/types.js.map +1 -1
  164. package/localdeps.txt +1 -0
  165. package/package.json +15 -11
  166. package/dist/interface/@tanstack.CxmCad5b.0.0.34-alpha.1.js +0 -1
  167. package/dist/interface/@vue.DNK0rzTJ.0.0.34-alpha.1.js +0 -17
  168. package/dist/interface/Camera.DdT22vMP.0.0.34-alpha.1.js +0 -1
  169. package/dist/interface/Cameras.BsZY_8-0.0.0.34-alpha.1.js +0 -1
  170. package/dist/interface/Camview.BgyUqS9_.0.0.34-alpha.1.js +0 -1
  171. package/dist/interface/Console.C5qRkDn7.0.0.34-alpha.1.js +0 -4
  172. package/dist/interface/Plugin.9gJauF_V.0.0.34-alpha.1.js +0 -1
  173. package/dist/interface/Plugins.Ek1Yocg_.0.0.34-alpha.1.js +0 -1
  174. package/dist/interface/Recordings.BIdhE95Q.0.0.34-alpha.1.js +0 -1
  175. package/dist/interface/Recordings.DVu_tzMT.0.0.34-alpha.1.js +0 -1
  176. package/dist/interface/VPlayer.DlJrYynC.0.0.34-alpha.1.js +0 -1
  177. package/dist/interface/VPluginCard.BXrvS7zB.0.0.34-alpha.1.js +0 -4
  178. package/dist/interface/assets/Cameras.0.0.34-alpha.1.BgZN27ly.css +0 -1
  179. package/dist/interface/assets/Console.0.0.34-alpha.1.Cjiivzet.css +0 -1
  180. package/dist/interface/assets/VPluginCard.0.0.34-alpha.1.BpMChOJT.css +0 -1
  181. package/dist/interface/assets/main.0.0.34-alpha.1.Degnpyky.css +0 -1
  182. package/dist/interface/main.bKEuHXmK.0.0.34-alpha.1.js +0 -5
  183. package/dist/interface/plugins.BbNP66vO.0.0.34-alpha.1.js +0 -1
  184. package/dist/interface/system.BkLh9FNA.0.0.34-alpha.1.js +0 -1
  185. package/dist/interface/vuetify.DiAVhTT5.0.0.34-alpha.1.js +0 -5
  186. package/dist/server/src/decoder/index.d.ts +0 -11
  187. package/dist/server/src/decoder/index.js +0 -32
  188. package/dist/server/src/decoder/index.js.map +0 -1
  189. package/dist/server/src/decoder/types.d.ts +0 -7
  190. package/dist/server/src/decoder/types.js +0 -2
  191. package/dist/server/src/decoder/types.js.map +0 -1
  192. package/dist/server/src/decoder/worker.js.map +0 -1
  193. /package/dist/interface/{@babel.l0sNRNKZ.0.0.34-alpha.1.js → @babel.l0sNRNKZ.0.0.34-alpha.2.js} +0 -0
  194. /package/dist/interface/{@intlify.sEJX3RNi.0.0.34-alpha.1.js → @intlify.sEJX3RNi.0.0.34-alpha.2.js} +0 -0
  195. /package/dist/interface/{@mdi.C1UTQKuc.0.0.34-alpha.1.js → @mdi.C1UTQKuc.0.0.34-alpha.2.js} +0 -0
  196. /package/dist/interface/{@popperjs.l0sNRNKZ.0.0.34-alpha.1.js → @popperjs.l0sNRNKZ.0.0.34-alpha.2.js} +0 -0
  197. /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.34-alpha.1.js → @react-dnd.CcwRs9xb.0.0.34-alpha.2.js} +0 -0
  198. /package/dist/interface/{@socket.io.Dkula2eQ.0.0.34-alpha.1.js → @socket.io.Dkula2eQ.0.0.34-alpha.2.js} +0 -0
  199. /package/dist/interface/{@turf.l0sNRNKZ.0.0.34-alpha.1.js → @turf.l0sNRNKZ.0.0.34-alpha.2.js} +0 -0
  200. /package/dist/interface/{@xterm.CEvrn8WJ.0.0.34-alpha.1.js → @xterm.Dv6b8EJg.0.0.34-alpha.2.js} +0 -0
  201. /package/dist/interface/assets/{@vueform.0.0.34-alpha.1.h7tNX9p6.css → @vueform.0.0.34-alpha.2.h7tNX9p6.css} +0 -0
  202. /package/dist/interface/assets/{@xterm.0.0.34-alpha.1.CGrrDQr5.css → @xterm.0.0.34-alpha.2.CGrrDQr5.css} +0 -0
  203. /package/dist/interface/assets/{Account.0.0.34-alpha.1.Ce3OmKrC.css → Account.0.0.34-alpha.2.Ce3OmKrC.css} +0 -0
  204. /package/dist/interface/assets/{Adminpanel.0.0.34-alpha.1.BCpVV7QL.css → Adminpanel.0.0.34-alpha.2.BCpVV7QL.css} +0 -0
  205. /package/dist/interface/assets/{Backup.0.0.34-alpha.1.BIwaSlv3.css → Backup.0.0.34-alpha.2.BIwaSlv3.css} +0 -0
  206. /package/dist/interface/assets/{Camera.0.0.34-alpha.1.D49XscoW.css → Camera.0.0.34-alpha.2.D49XscoW.css} +0 -0
  207. /package/dist/interface/assets/{Camview.0.0.34-alpha.1.BdTE1Iny.css → Camview.0.0.34-alpha.2.BdTE1Iny.css} +0 -0
  208. /package/dist/interface/assets/{Config.0.0.34-alpha.1.BtdZEuQO.css → Config.0.0.34-alpha.2.BtdZEuQO.css} +0 -0
  209. /package/dist/interface/assets/{FirstSteps.0.0.34-alpha.1.CCo2y-sU.css → FirstSteps.0.0.34-alpha.2.CCo2y-sU.css} +0 -0
  210. /package/dist/interface/assets/{NewCamera.0.0.34-alpha.1.W16dakdJ.css → NewCamera.0.0.34-alpha.2.W16dakdJ.css} +0 -0
  211. /package/dist/interface/assets/{Plugin.0.0.34-alpha.1.BtRA6zDt.css → Plugin.0.0.34-alpha.2.BtRA6zDt.css} +0 -0
  212. /package/dist/interface/assets/{Plugins.0.0.34-alpha.1.Cwu0aGUO.css → Plugins.0.0.34-alpha.2.Cwu0aGUO.css} +0 -0
  213. /package/dist/interface/assets/{Settings.0.0.34-alpha.1.DTRm1psP.css → Settings.0.0.34-alpha.2.DTRm1psP.css} +0 -0
  214. /package/dist/interface/assets/{User.0.0.34-alpha.1.DPDcJbx8.css → User.0.0.34-alpha.2.DPDcJbx8.css} +0 -0
  215. /package/dist/interface/assets/{VConsole.0.0.34-alpha.1.e0RL6-05.css → VConsole.0.0.34-alpha.2.e0RL6-05.css} +0 -0
  216. /package/dist/interface/assets/{highlight.0.0.34-alpha.1.DgoK_Xib.css → highlight.0.0.34-alpha.2.DgoK_Xib.css} +0 -0
  217. /package/dist/interface/assets/{logo-256.0.0.34-alpha.1.BCQk9H1-.png → logo-256.0.0.34-alpha.2.BCQk9H1-.png} +0 -0
  218. /package/dist/interface/assets/{logo-512.0.0.34-alpha.1.DLKVOU2S.png → logo-512.0.0.34-alpha.2.DLKVOU2S.png} +0 -0
  219. /package/dist/interface/assets/{logo.0.0.34-alpha.1.DmEiRk0z.png → logo.0.0.34-alpha.2.DmEiRk0z.png} +0 -0
  220. /package/dist/interface/assets/{mode-json.0.0.34-alpha.1.Br7xisR1.js → mode-json.0.0.34-alpha.2.Br7xisR1.js} +0 -0
  221. /package/dist/interface/assets/{mode-yaml.0.0.34-alpha.1.CIYL8U3d.js → mode-yaml.0.0.34-alpha.2.CIYL8U3d.js} +0 -0
  222. /package/dist/interface/assets/{vue3-toastify.0.0.34-alpha.1.DTY1DMRs.css → vue3-toastify.0.0.34-alpha.2.DTY1DMRs.css} +0 -0
  223. /package/dist/interface/assets/{vuetify.0.0.34-alpha.1.B_k2Rcut.css → vuetify.0.0.34-alpha.2.B_k2Rcut.css} +0 -0
  224. /package/dist/interface/{axios.C-n2IhIP.0.0.34-alpha.1.js → axios.C-n2IhIP.0.0.34-alpha.2.js} +0 -0
  225. /package/dist/interface/{compare-versions.DqEOhma6.0.0.34-alpha.1.js → compare-versions.DqEOhma6.0.0.34-alpha.2.js} +0 -0
  226. /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.34-alpha.1.js → dijkstrajs.D_NXgYpA.0.0.34-alpha.2.js} +0 -0
  227. /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js → engine.io-parser.BiEtp6m2.0.0.34-alpha.2.js} +0 -0
  228. /package/dist/interface/{entities.C20TfXL6.0.0.34-alpha.1.js → entities.C20TfXL6.0.0.34-alpha.2.js} +0 -0
  229. /package/dist/interface/{get-size.D1dS-IaP.0.0.34-alpha.1.js → get-size.D1dS-IaP.0.0.34-alpha.2.js} +0 -0
  230. /package/dist/interface/{mdurl.k9Sl0PQj.0.0.34-alpha.1.js → mdurl.k9Sl0PQj.0.0.34-alpha.2.js} +0 -0
  231. /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.1.js → point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.2.js} +0 -0
  232. /package/dist/interface/{punycode.js.Dj65hjkv.0.0.34-alpha.1.js → punycode.js.Dj65hjkv.0.0.34-alpha.2.js} +0 -0
  233. /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.1.js → react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.2.js} +0 -0
  234. /package/dist/interface/{redux.CuxFRhX_.0.0.34-alpha.1.js → redux.CuxFRhX_.0.0.34-alpha.2.js} +0 -0
  235. /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.34-alpha.1.js → sweepline-intersections.l0sNRNKZ.0.0.34-alpha.2.js} +0 -0
  236. /package/dist/interface/{tslib.9k7AwCpt.0.0.34-alpha.1.js → tslib.9k7AwCpt.0.0.34-alpha.2.js} +0 -0
  237. /package/dist/interface/{types.Cz9TaZAP.0.0.34-alpha.1.js → types.Cz9TaZAP.0.0.34-alpha.2.js} +0 -0
  238. /package/dist/interface/{uc.micro.kMc2yuuw.0.0.34-alpha.1.js → uc.micro.kMc2yuuw.0.0.34-alpha.2.js} +0 -0
  239. /package/dist/interface/{utils.mAKpSMLY.0.0.34-alpha.1.js → utils.mAKpSMLY.0.0.34-alpha.2.js} +0 -0
  240. /package/dist/interface/{uuid.DvF23Exx.0.0.34-alpha.1.js → uuid.DvF23Exx.0.0.34-alpha.2.js} +0 -0
  241. /package/dist/interface/{vue.l0sNRNKZ.0.0.34-alpha.1.js → vue.l0sNRNKZ.0.0.34-alpha.2.js} +0 -0
  242. /package/dist/interface/{zod.DnW1_kUe.0.0.34-alpha.1.js → zod.DnW1_kUe.0.0.34-alpha.2.js} +0 -0
@@ -1,17 +0,0 @@
1
- /**
2
- * @vue/shared v3.5.11
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **//*! #__NO_SIDE_EFFECTS__ */function bs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const J={},mt=[],Be=()=>{},mo=()=>!1,In=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),ie=Object.assign,xs=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_o=Object.prototype.hasOwnProperty,Y=(e,t)=>_o.call(e,t),D=Array.isArray,_t=e=>Et(e)==="[object Map]",Fn=e=>Et(e)==="[object Set]",er=e=>Et(e)==="[object Date]",yo=e=>Et(e)==="[object RegExp]",$=e=>typeof e=="function",se=e=>typeof e=="string",$e=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",Cs=e=>(X(e)||$(e))&&$(e.then)&&$(e.catch),Hr=Object.prototype.toString,Et=e=>Hr.call(e),bo=e=>Et(e).slice(8,-1),Vr=e=>Et(e)==="[object Object]",Ts=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lt=bs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vo=/-(\w)/g,we=Mn(e=>e.replace(vo,(t,n)=>n?n.toUpperCase():"")),xo=/\B([A-Z])/g,We=Mn(e=>e.replace(xo,"-$1").toLowerCase()),On=Mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),kn=Mn(e=>e?`on${On(e)}`:""),be=(e,t)=>!Object.is(e,t),yt=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},jr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Co=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kr=e=>{const t=se(e)?Number(e):NaN;return isNaN(t)?e:t};let tr;const kr=()=>tr||(tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ws(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?Eo(s):ws(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(se(e)||X(e))return e}const To=/;(?![^(]*\))/g,wo=/:([^]+)/,So=/\/\*[^]*?\*\//g;function Eo(e){const t={};return e.replace(So,"").split(To).forEach(n=>{if(n){const s=n.split(wo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ss(e){let t="";if(se(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const s=Ss(e[n]);s&&(t+=s+" ")}else if(X(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Ao="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Io=bs(Ao);function Ur(e){return!!e||e===""}function Fo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Tt(e[s],t[s]);return n}function Tt(e,t){if(e===t)return!0;let n=er(e),s=er(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=$e(e),s=$e(t),n||s)return e===t;if(n=D(e),s=D(t),n||s)return n&&s?Fo(e,t):!1;if(n=X(e),s=X(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Tt(e[o],t[o]))return!1}}return String(e)===String(t)}function Wr(e,t){return e.findIndex(n=>Tt(n,t))}const Gr=e=>!!(e&&e.__v_isRef===!0),Mo=e=>se(e)?e:e==null?"":D(e)||X(e)&&(e.toString===Hr||!$(e.toString))?Gr(e)?Mo(e.value):JSON.stringify(e,qr,2):String(e),qr=(e,t)=>Gr(t)?qr(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Un(s,i)+" =>"]=r,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Un(n))}:$e(t)?Un(t):X(t)&&!D(t)&&!Vr(t)?String(t):t,Un=(e,t="")=>{var n;return $e(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.11
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let me;class Jr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){me=this}off(){me=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function lf(e){return new Jr(e)}function Oo(){return me}function cf(e,t=!1){me&&me.cleanups.push(e)}let te;const Wn=new WeakSet;class Yr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,me&&me.active&&me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Wn.has(this)&&(Wn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,nr(this),Zr(this);const t=te,n=Pe;te=this,Pe=!0;try{return this.fn()}finally{Qr(this),te=t,Pe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Is(t);this.deps=this.depsTail=void 0,nr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Wn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ns(this)&&this.run()}get dirty(){return ns(this)}}let zr=0,Bt,$t;function Xr(e,t=!1){if(e.flags|=8,t){e.next=$t,$t=e;return}e.next=Bt,Bt=e}function Es(){zr++}function As(){if(--zr>0)return;if($t){let t=$t;for($t=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Bt;){let t=Bt;for(Bt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Zr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qr(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Is(s),Po(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ns(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ei(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ei(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===kt))return;e.globalVersion=kt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ns(e)){e.flags&=-3;return}const n=te,s=Pe;te=e,Pe=!0;try{Zr(e);const r=e.fn(e._value);(t.version===0||be(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Pe=s,Qr(e),e.flags&=-3}}function Is(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s),!n.subs&&n.computed){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Is(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Po(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Pe=!0;const ti=[];function et(){ti.push(Pe),Pe=!1}function tt(){const e=ti.pop();Pe=e===void 0?!0:e}function nr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let kt=0;class Ro{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Pn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!te||!Pe||te===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink=new Ro(te,this),te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,ni(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,kt++,this.notify(t)}notify(t){Es();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{As()}}}function ni(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ni(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const pn=new WeakMap,ct=Symbol(""),ss=Symbol(""),Ut=Symbol("");function pe(e,t,n){if(Pe&&te){let s=pn.get(e);s||pn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Pn),r.map=s,r.key=n),r.track()}}function ke(e,t,n,s,r,i){const o=pn.get(e);if(!o){kt++;return}const l=c=>{c&&c.trigger()};if(Es(),t==="clear")o.forEach(l);else{const c=D(e),h=c&&Ts(n);if(c&&n==="length"){const u=Number(s);o.forEach((a,p)=>{(p==="length"||p===Ut||!$e(p)&&p>=u)&&l(a)})}else switch(n!==void 0&&l(o.get(n)),h&&l(o.get(Ut)),t){case"add":c?h&&l(o.get("length")):(l(o.get(ct)),_t(e)&&l(o.get(ss)));break;case"delete":c||(l(o.get(ct)),_t(e)&&l(o.get(ss)));break;case"set":_t(e)&&l(o.get(ct));break}}As()}function Do(e,t){const n=pn.get(e);return n&&n.get(t)}function pt(e){const t=G(e);return t===e?t:(pe(t,"iterate",Ut),Ie(e)?t:t.map(he))}function Rn(e){return pe(e=G(e),"iterate",Ut),e}const No={__proto__:null,[Symbol.iterator](){return Gn(this,Symbol.iterator,he)},concat(...e){return pt(this).concat(...e.map(t=>D(t)?pt(t):t))},entries(){return Gn(this,"entries",e=>(e[1]=he(e[1]),e))},every(e,t){return He(this,"every",e,t,void 0,arguments)},filter(e,t){return He(this,"filter",e,t,n=>n.map(he),arguments)},find(e,t){return He(this,"find",e,t,he,arguments)},findIndex(e,t){return He(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return He(this,"findLast",e,t,he,arguments)},findLastIndex(e,t){return He(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return He(this,"forEach",e,t,void 0,arguments)},includes(...e){return qn(this,"includes",e)},indexOf(...e){return qn(this,"indexOf",e)},join(e){return pt(this).join(e)},lastIndexOf(...e){return qn(this,"lastIndexOf",e)},map(e,t){return He(this,"map",e,t,void 0,arguments)},pop(){return Ot(this,"pop")},push(...e){return Ot(this,"push",e)},reduce(e,...t){return sr(this,"reduce",e,t)},reduceRight(e,...t){return sr(this,"reduceRight",e,t)},shift(){return Ot(this,"shift")},some(e,t){return He(this,"some",e,t,void 0,arguments)},splice(...e){return Ot(this,"splice",e)},toReversed(){return pt(this).toReversed()},toSorted(e){return pt(this).toSorted(e)},toSpliced(...e){return pt(this).toSpliced(...e)},unshift(...e){return Ot(this,"unshift",e)},values(){return Gn(this,"values",he)}};function Gn(e,t,n){const s=Rn(e),r=s[t]();return s!==e&&!Ie(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Lo=Array.prototype;function He(e,t,n,s,r,i){const o=Rn(e),l=o!==e&&!Ie(e),c=o[t];if(c!==Lo[t]){const a=c.apply(e,i);return l?he(a):a}let h=n;o!==e&&(l?h=function(a,p){return n.call(this,he(a),p,e)}:n.length>2&&(h=function(a,p){return n.call(this,a,p,e)}));const u=c.call(o,h,s);return l&&r?r(u):u}function sr(e,t,n,s){const r=Rn(e);let i=n;return r!==e&&(Ie(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,he(l),c,e)}),r[t](i,...s)}function qn(e,t,n){const s=G(e);pe(s,"iterate",Ut);const r=s[t](...n);return(r===-1||r===!1)&&Rs(n[0])?(n[0]=G(n[0]),s[t](...n)):r}function Ot(e,t,n=[]){et(),Es();const s=G(e)[t].apply(e,n);return As(),tt(),s}const Bo=bs("__proto__,__v_isRef,__isVue"),si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($e));function $o(e){$e(e)||(e=String(e));const t=G(this);return pe(t,"has",e),t.hasOwnProperty(e)}class ri{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Xo:ci:i?li:oi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=D(t);if(!r){let c;if(o&&(c=No[n]))return c;if(n==="hasOwnProperty")return $o}const l=Reflect.get(t,n,ue(t)?t:s);return($e(n)?si.has(n):Bo(n))||(r||pe(t,"get",n),i)?l:ue(l)?o&&Ts(n)?l:l.value:X(l)?r?fi(l):Os(l):l}}class ii extends ri{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=at(i);if(!Ie(s)&&!at(s)&&(i=G(i),s=G(s)),!D(t)&&ue(i)&&!ue(s))return c?!1:(i.value=s,!0)}const o=D(t)&&Ts(n)?Number(n)<t.length:Y(t,n),l=Reflect.set(t,n,s,ue(t)?t:r);return t===G(r)&&(o?be(s,i)&&ke(t,"set",n,s):ke(t,"add",n,s)),l}deleteProperty(t,n){const s=Y(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&ke(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!$e(n)||!si.has(n))&&pe(t,"has",n),s}ownKeys(t){return pe(t,"iterate",D(t)?"length":ct),Reflect.ownKeys(t)}}class Ho extends ri{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Vo=new ii,jo=new Ho,Ko=new ii(!0);const Fs=e=>e,Dn=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,s=!1){e=e.__v_raw;const r=G(e),i=G(t);n||(be(t,i)&&pe(r,"get",t),pe(r,"get",i));const{has:o}=Dn(r),l=s?Fs:n?Ds:he;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function en(e,t=!1){const n=this.__v_raw,s=G(n),r=G(e);return t||(be(e,r)&&pe(s,"has",e),pe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function tn(e,t=!1){return e=e.__v_raw,!t&&pe(G(e),"iterate",ct),Reflect.get(e,"size",e)}function rr(e,t=!1){!t&&!Ie(e)&&!at(e)&&(e=G(e));const n=G(this);return Dn(n).has.call(n,e)||(n.add(e),ke(n,"add",e,e)),this}function ir(e,t,n=!1){!n&&!Ie(t)&&!at(t)&&(t=G(t));const s=G(this),{has:r,get:i}=Dn(s);let o=r.call(s,e);o||(e=G(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,t),o?be(t,l)&&ke(s,"set",e,t):ke(s,"add",e,t),this}function or(e){const t=G(this),{has:n,get:s}=Dn(t);let r=n.call(t,e);r||(e=G(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&ke(t,"delete",e,void 0),i}function lr(){const e=G(this),t=e.size!==0,n=e.clear();return t&&ke(e,"clear",void 0,void 0),n}function nn(e,t){return function(s,r){const i=this,o=i.__v_raw,l=G(o),c=t?Fs:e?Ds:he;return!e&&pe(l,"iterate",ct),o.forEach((h,u)=>s.call(r,c(h),c(u),i))}}function sn(e,t,n){return function(...s){const r=this.__v_raw,i=G(r),o=_t(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,h=r[e](...s),u=n?Fs:t?Ds:he;return!t&&pe(i,"iterate",c?ss:ct),{next(){const{value:a,done:p}=h.next();return p?{value:a,done:p}:{value:l?[u(a[0]),u(a[1])]:u(a),done:p}},[Symbol.iterator](){return this}}}}function qe(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ko(){const e={get(i){return Qt(this,i)},get size(){return tn(this)},has:en,add:rr,set:ir,delete:or,clear:lr,forEach:nn(!1,!1)},t={get(i){return Qt(this,i,!1,!0)},get size(){return tn(this)},has:en,add(i){return rr.call(this,i,!0)},set(i,o){return ir.call(this,i,o,!0)},delete:or,clear:lr,forEach:nn(!1,!0)},n={get(i){return Qt(this,i,!0)},get size(){return tn(this,!0)},has(i){return en.call(this,i,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:nn(!0,!1)},s={get(i){return Qt(this,i,!0,!0)},get size(){return tn(this,!0)},has(i){return en.call(this,i,!0)},add:qe("add"),set:qe("set"),delete:qe("delete"),clear:qe("clear"),forEach:nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=sn(i,!1,!1),n[i]=sn(i,!0,!1),t[i]=sn(i,!1,!0),s[i]=sn(i,!0,!0)}),[e,n,t,s]}const[Uo,Wo,Go,qo]=ko();function Ms(e,t){const n=t?e?qo:Go:e?Wo:Uo;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Y(n,r)&&r in s?n:s,r,i)}const Jo={get:Ms(!1,!1)},Yo={get:Ms(!1,!0)},zo={get:Ms(!0,!1)};const oi=new WeakMap,li=new WeakMap,ci=new WeakMap,Xo=new WeakMap;function Zo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Qo(e){return e.__v_skip||!Object.isExtensible(e)?0:Zo(bo(e))}function Os(e){return at(e)?e:Ps(e,!1,Vo,Jo,oi)}function el(e){return Ps(e,!1,Ko,Yo,li)}function fi(e){return Ps(e,!0,jo,zo,ci)}function Ps(e,t,n,s,r){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Qo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function bt(e){return at(e)?bt(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function Rs(e){return e?!!e.__v_raw:!1}function G(e){const t=e&&e.__v_raw;return t?G(t):e}function tl(e){return!Y(e,"__v_skip")&&Object.isExtensible(e)&&jr(e,"__v_skip",!0),e}const he=e=>X(e)?Os(e):e,Ds=e=>X(e)?fi(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function nl(e){return ui(e,!1)}function ff(e){return ui(e,!0)}function ui(e,t){return ue(e)?e:new sl(e,t)}class sl{constructor(t,n){this.dep=new Pn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:G(t),this._value=n?t:he(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ie(t)||at(t);t=s?t:G(t),be(t,n)&&(this._rawValue=t,this._value=s?t:he(t),this.dep.trigger())}}function ai(e){return ue(e)?e.value:e}function uf(e){return $(e)?e():ai(e)}const rl={get:(e,t,n)=>t==="__v_raw"?e:ai(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ue(r)&&!ue(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function di(e){return bt(e)?e:new Proxy(e,rl)}class il{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Pn,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function ol(e){return new il(e)}function af(e){const t=D(e)?new Array(e.length):{};for(const n in e)t[n]=hi(e,n);return t}class ll{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Do(G(this._object),this._key)}}class cl{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function df(e,t,n){return ue(e)?e:$(e)?new cl(e):X(e)&&arguments.length>1?hi(e,t,n):nl(e)}function hi(e,t,n){const s=e[t];return ue(s)?s:new ll(e,t,n)}class fl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Pn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=kt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&te!==this)return Xr(this,!0),!0}get value(){const t=this.dep.track();return ei(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ul(e,t,n=!1){let s,r;return $(e)?s=e:(s=e.get,r=e.set),new fl(s,r,n)}const rn={},gn=new WeakMap;let lt;function al(e,t=!1,n=lt){if(n){let s=gn.get(n);s||gn.set(n,s=[]),s.push(e)}}function dl(e,t,n=J){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,h=b=>r?b:Ie(b)||r===!1||r===0?Ke(b,1):Ke(b);let u,a,p,_,C=!1,P=!1;if(ue(e)?(a=()=>e.value,C=Ie(e)):bt(e)?(a=()=>h(e),C=!0):D(e)?(P=!0,C=e.some(b=>bt(b)||Ie(b)),a=()=>e.map(b=>{if(ue(b))return b.value;if(bt(b))return h(b);if($(b))return c?c(b,2):b()})):$(e)?t?a=c?()=>c(e,2):e:a=()=>{if(p){et();try{p()}finally{tt()}}const b=lt;lt=u;try{return c?c(e,3,[_]):e(_)}finally{lt=b}}:a=Be,t&&r){const b=a,w=r===!0?1/0:r;a=()=>Ke(b(),w)}const W=Oo(),H=()=>{u.stop(),W&&xs(W.effects,u)};if(i&&t){const b=t;t=(...w)=>{b(...w),H()}}let E=P?new Array(e.length).fill(rn):rn;const F=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const w=u.run();if(r||C||(P?w.some((R,j)=>be(R,E[j])):be(w,E))){p&&p();const R=lt;lt=u;try{const j=[w,E===rn?void 0:P&&E[0]===rn?[]:E,_];c?c(t,3,j):t(...j),E=w}finally{lt=R}}}else u.run()};return l&&l(F),u=new Yr(a),u.scheduler=o?()=>o(F,!1):F,_=b=>al(b,!1,u),p=u.onStop=()=>{const b=gn.get(u);if(b){if(c)c(b,4);else for(const w of b)w();gn.delete(u)}},t?s?F(!0):E=u.run():o?o(F.bind(null,!0),!0):u.run(),H.pause=u.pause.bind(u),H.resume=u.resume.bind(u),H.stop=H,H}function Ke(e,t=1/0,n){if(t<=0||!X(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ue(e))Ke(e.value,t,n);else if(D(e))for(let s=0;s<e.length;s++)Ke(e[s],t,n);else if(Fn(e)||_t(e))e.forEach(s=>{Ke(s,t,n)});else if(Vr(e)){for(const s in e)Ke(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ke(e[s],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.11
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function Jt(e,t,n,s){try{return s?e(...s):e()}catch(r){Yt(r,t,n)}}function Re(e,t,n,s){if($(e)){const r=Jt(e,t,n,s);return r&&Cs(r)&&r.catch(i=>{Yt(i,t,n)}),r}if(D(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Re(e[i],t,n,s));return r}}function Yt(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||J;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let a=0;a<u.length;a++)if(u[a](e,c,h)===!1)return}l=l.parent}if(i){et(),Jt(i,null,10,[e,c,h]),tt();return}}hl(e,n,r,s,o)}function hl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const _e=[];let Le=-1;const vt=[];let ze=null,gt=0;const pi=Promise.resolve();let mn=null;function pl(e){const t=mn||pi;return e?t.then(this?e.bind(this):e):t}function gl(e){let t=Le+1,n=_e.length;for(;t<n;){const s=t+n>>>1,r=_e[s],i=Wt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Ns(e){if(!(e.flags&1)){const t=Wt(e),n=_e[_e.length-1];!n||!(e.flags&2)&&t>=Wt(n)?_e.push(e):_e.splice(gl(t),0,e),e.flags|=1,gi()}}function gi(){mn||(mn=pi.then(_i))}function rs(e){D(e)?vt.push(...e):ze&&e.id===-1?ze.splice(gt+1,0,e):e.flags&1||(vt.push(e),e.flags|=1),gi()}function cr(e,t,n=Le+1){for(;n<_e.length;n++){const s=_e[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;_e.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function mi(e){if(vt.length){const t=[...new Set(vt)].sort((n,s)=>Wt(n)-Wt(s));if(vt.length=0,ze){ze.push(...t);return}for(ze=t,gt=0;gt<ze.length;gt++){const n=ze[gt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ze=null,gt=0}}const Wt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function _i(e){try{for(Le=0;Le<_e.length;Le++){const t=_e[Le];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Jt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Le<_e.length;Le++){const t=_e[Le];t&&(t.flags&=-2)}Le=-1,_e.length=0,mi(),mn=null,(_e.length||vt.length)&&_i()}}let oe=null,yi=null;function _n(e){const t=oe;return oe=e,yi=e&&e.type.__scopeId||null,t}function ml(e,t=oe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&br(-1);const i=_n(t);let o;try{o=e(...r)}finally{_n(i),s._d&&br(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function hf(e,t){if(oe===null)return e;const n=jn(oe),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=J]=t[r];i&&($(i)&&(i={mounted:i,updated:i}),i.deep&&Ke(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function rt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(et(),Re(c,n,8,[e.el,l,e,t]),tt())}}const bi=Symbol("_vte"),vi=e=>e.__isTeleport,Ht=e=>e&&(e.disabled||e.disabled===""),_l=e=>e&&(e.defer||e.defer===""),fr=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ur=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,is=(e,t)=>{const n=e&&e.to;return se(n)?t?t(n):null:n},yl={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,h){const{mc:u,pc:a,pbc:p,o:{insert:_,querySelector:C,createText:P,createComment:W}}=h,H=Ht(t.props);let{shapeFlag:E,children:F,dynamicChildren:b}=t;if(e==null){const w=t.el=P(""),R=t.anchor=P("");_(w,n,s),_(R,n,s);const j=(M,L)=>{E&16&&(r&&r.isCE&&(r.ce._teleportTarget=M),u(F,M,L,r,i,o,l,c))},K=()=>{const M=t.target=is(t.props,C),L=xi(M,t,P,_);M&&(o!=="svg"&&fr(M)?o="svg":o!=="mathml"&&ur(M)&&(o="mathml"),H||(j(M,L),fn(t)))};H&&(j(n,R),fn(t)),_l(t.props)?le(K,i):K()}else{t.el=e.el,t.targetStart=e.targetStart;const w=t.anchor=e.anchor,R=t.target=e.target,j=t.targetAnchor=e.targetAnchor,K=Ht(e.props),M=K?n:R,L=K?w:j;if(o==="svg"||fr(R)?o="svg":(o==="mathml"||ur(R))&&(o="mathml"),b?(p(e.dynamicChildren,b,M,r,i,o,l),Us(e,t,!0)):c||a(e,t,M,L,r,i,o,l,!1),H)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):on(t,n,w,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=is(t.props,C);k&&on(t,k,null,h,0)}else K&&on(t,R,j,h,1);fn(t)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:h,targetAnchor:u,target:a,props:p}=e;if(a&&(r(h),r(u)),i&&r(c),o&16){const _=i||!Ht(p);for(let C=0;C<l.length;C++){const P=l[C];s(P,t,n,_,!!P.dynamicChildren)}}},move:on,hydrate:bl};function on(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:h,props:u}=e,a=i===2;if(a&&s(o,t,n),(!a||Ht(u))&&c&16)for(let p=0;p<h.length;p++)r(h[p],t,n,2);a&&s(l,t,n)}function bl(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:h,createText:u}},a){const p=t.target=is(t.props,c);if(p){const _=p._lpa||p.firstChild;if(t.shapeFlag&16)if(Ht(t.props))t.anchor=a(o(e),t,l(e),n,s,r,i),t.targetStart=_,t.targetAnchor=_&&o(_);else{t.anchor=o(e);let C=_;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}C=o(C)}t.targetAnchor||xi(p,t,u,h),a(_&&o(_),t,p,n,s,r,i)}fn(t)}return t.anchor&&o(t.anchor)}const pf=yl;function fn(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function xi(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[bi]=i,e&&(s(r,e),s(i,e)),i}const Xe=Symbol("_leaveCb"),ln=Symbol("_enterCb");function Ci(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bn(()=>{e.isMounted=!0}),$s(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],Ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},wi=e=>{const t=e.subTree;return t.component?wi(t.component):t},vl={name:"BaseTransition",props:Ti,setup(e,{slots:t}){const n=At(),s=Ci();return()=>{const r=t.default&&Ls(t.default(),!0);if(!r||!r.length)return;const i=Si(r),o=G(e),{mode:l}=o;if(s.isLeaving)return Jn(i);const c=ar(i);if(!c)return Jn(i);let h=Gt(c,o,s,n,p=>h=p);c.type!==ce&&Qe(c,h);const u=n.subTree,a=u&&ar(u);if(a&&a.type!==ce&&!Oe(c,a)&&wi(n).type!==ce){const p=Gt(a,o,s,n);if(Qe(a,p),l==="out-in"&&c.type!==ce)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave},Jn(i);l==="in-out"&&c.type!==ce&&(p.delayLeave=(_,C,P)=>{const W=Ei(s,a);W[String(a.key)]=a,_[Xe]=()=>{C(),_[Xe]=void 0,delete h.delayedLeave},h.delayedLeave=P})}return i}}};function Si(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ce){t=n;break}}return t}const xl=vl;function Ei(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Gt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:h,onAfterEnter:u,onEnterCancelled:a,onBeforeLeave:p,onLeave:_,onAfterLeave:C,onLeaveCancelled:P,onBeforeAppear:W,onAppear:H,onAfterAppear:E,onAppearCancelled:F}=t,b=String(e.key),w=Ei(n,e),R=(M,L)=>{M&&Re(M,s,9,L)},j=(M,L)=>{const k=L[1];R(M,L),D(M)?M.every(O=>O.length<=1)&&k():M.length<=1&&k()},K={mode:o,persisted:l,beforeEnter(M){let L=c;if(!n.isMounted)if(i)L=W||c;else return;M[Xe]&&M[Xe](!0);const k=w[b];k&&Oe(e,k)&&k.el[Xe]&&k.el[Xe](),R(L,[M])},enter(M){let L=h,k=u,O=a;if(!n.isMounted)if(i)L=H||h,k=E||u,O=F||a;else return;let q=!1;const re=M[ln]=Se=>{q||(q=!0,Se?R(O,[M]):R(k,[M]),K.delayedLeave&&K.delayedLeave(),M[ln]=void 0)};L?j(L,[M,re]):re()},leave(M,L){const k=String(e.key);if(M[ln]&&M[ln](!0),n.isUnmounting)return L();R(p,[M]);let O=!1;const q=M[Xe]=re=>{O||(O=!0,L(),re?R(P,[M]):R(C,[M]),M[Xe]=void 0,w[k]===e&&delete w[k])};w[k]=e,_?j(_,[M,q]):q()},clone(M){const L=Gt(M,t,n,s,r);return r&&r(L),L}};return K}function Jn(e){if(Nn(e))return e=Ue(e),e.children=null,e}function ar(e){if(!Nn(e))return vi(e.type)&&e.children?Si(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&$(n.default))return n.default()}}function Qe(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qe(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ls(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ye?(o.patchFlag&128&&r++,s=s.concat(Ls(o.children,t,l))):(t||o.type!==ce)&&s.push(l!=null?Ue(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function gf(e,t){return $(e)?ie({name:e.name},t,{setup:e}):e}function Ai(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function os(e,t,n,s,r=!1){if(D(e)){e.forEach((C,P)=>os(C,t&&(D(t)?t[P]:t),n,s,r));return}if(ft(s)&&!r)return;const i=s.shapeFlag&4?jn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,h=t&&t.r,u=l.refs===J?l.refs={}:l.refs,a=l.setupState,p=G(a),_=a===J?()=>!1:C=>Y(p,C);if(h!=null&&h!==c&&(se(h)?(u[h]=null,_(h)&&(a[h]=null)):ue(h)&&(h.value=null)),$(c))Jt(c,l,12,[o,u]);else{const C=se(c),P=ue(c);if(C||P){const W=()=>{if(e.f){const H=C?_(c)?a[c]:u[c]:c.value;r?D(H)&&xs(H,i):D(H)?H.includes(i)||H.push(i):C?(u[c]=[i],_(c)&&(a[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else C?(u[c]=o,_(c)&&(a[c]=o)):P&&(c.value=o,e.k&&(u[e.k]=o))};o?(W.id=-1,le(W,n)):W()}}}const ft=e=>!!e.type.__asyncLoader,Nn=e=>e.type.__isKeepAlive,Cl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=At(),s=n.ctx;if(!s.renderer)return()=>{const E=t.default&&t.default();return E&&E.length===1?E[0]:E};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:h,um:u,o:{createElement:a}}}=s,p=a("div");s.activate=(E,F,b,w,R)=>{const j=E.component;h(E,F,b,0,l),c(j.vnode,E,F,b,j,l,w,E.slotScopeIds,R),le(()=>{j.isDeactivated=!1,j.a&&yt(j.a);const K=E.props&&E.props.onVnodeMounted;K&&Ae(K,j.parent,E)},l)},s.deactivate=E=>{const F=E.component;vn(F.m),vn(F.a),h(E,p,null,1,l),le(()=>{F.da&&yt(F.da);const b=E.props&&E.props.onVnodeUnmounted;b&&Ae(b,F.parent,E),F.isDeactivated=!0},l)};function _(E){Yn(E),u(E,n,l,!0)}function C(E){r.forEach((F,b)=>{const w=ms(F.type);w&&!E(w)&&P(b)})}function P(E){const F=r.get(E);F&&(!o||!Oe(F,o))?_(F):o&&Yn(o),r.delete(E),i.delete(E)}an(()=>[e.include,e.exclude],([E,F])=>{E&&C(b=>Dt(E,b)),F&&C(b=>!Dt(F,b))},{flush:"post",deep:!0});let W=null;const H=()=>{W!=null&&(xn(n.subTree.type)?le(()=>{r.set(W,cn(n.subTree))},n.subTree.suspense):r.set(W,cn(n.subTree)))};return Bn(H),Bs(H),$s(()=>{r.forEach(E=>{const{subTree:F,suspense:b}=n,w=cn(F);if(E.type===w.type&&E.key===w.key){Yn(w);const R=w.component.da;R&&le(R,b);return}_(E)})}),()=>{if(W=null,!t.default)return o=null;const E=t.default(),F=E[0];if(E.length>1)return o=null,E;if(!dt(F)||!(F.shapeFlag&4)&&!(F.shapeFlag&128))return o=null,F;let b=cn(F);if(b.type===ce)return o=null,b;const w=b.type,R=ms(ft(b)?b.type.__asyncResolved||{}:w),{include:j,exclude:K,max:M}=e;if(j&&(!R||!Dt(j,R))||K&&R&&Dt(K,R))return b.shapeFlag&=-257,o=b,F;const L=b.key==null?w:b.key,k=r.get(L);return b.el&&(b=Ue(b),F.shapeFlag&128&&(F.ssContent=b)),W=L,k?(b.el=k.el,b.component=k.component,b.transition&&Qe(b,b.transition),b.shapeFlag|=512,i.delete(L),i.add(L)):(i.add(L),M&&i.size>parseInt(M,10)&&P(i.values().next().value)),b.shapeFlag|=256,o=b,xn(F.type)?F:b}}},mf=Cl;function Dt(e,t){return D(e)?e.some(n=>Dt(n,t)):se(e)?e.split(",").includes(t):yo(e)?(e.lastIndex=0,e.test(t)):!1}function Tl(e,t){Ii(e,"a",t)}function wl(e,t){Ii(e,"da",t)}function Ii(e,t,n=fe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ln(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Nn(r.parent.vnode)&&Sl(s,t,n,r),r=r.parent}}function Sl(e,t,n,s){const r=Ln(t,e,s,!0);Hs(()=>{xs(s[t],r)},n)}function Yn(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function cn(e){return e.shapeFlag&128?e.ssContent:e}function Ln(e,t,n=fe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{et();const l=ht(n),c=Re(t,n,e,o);return l(),tt(),c});return s?r.unshift(i):r.push(i),i}}const Ge=e=>(t,n=fe)=>{(!Vn||e==="sp")&&Ln(e,(...s)=>t(...s),n)},Fi=Ge("bm"),Bn=Ge("m"),El=Ge("bu"),Bs=Ge("u"),$s=Ge("bum"),Hs=Ge("um"),Al=Ge("sp"),Il=Ge("rtg"),Fl=Ge("rtc");function Ml(e,t=fe){Ln("ec",e,t)}const Vs="components",Ol="directives";function _f(e,t){return js(Vs,e,!0,t)||e}const Mi=Symbol.for("v-ndc");function yf(e){return se(e)?js(Vs,e,!1)||e:e||Mi}function bf(e){return js(Ol,e)}function js(e,t,n=!0,s=!1){const r=oe||fe;if(r){const i=r.type;if(e===Vs){const l=ms(i,!1);if(l&&(l===t||l===we(t)||l===On(we(t))))return i}const o=dr(r[e]||i[e],t)||dr(r.appContext[e],t);return!o&&s?i:o}}function dr(e,t){return e&&(e[t]||e[we(t)]||e[On(we(t))])}function vf(e,t,n,s){let r;const i=n,o=D(e);if(o||se(e)){const l=o&&bt(e);let c=!1;l&&(c=!Ie(e),e=Rn(e)),r=new Array(e.length);for(let h=0,u=e.length;h<u;h++)r[h]=t(c?he(e[h]):e[h],h,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(X(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];r[c]=t(e[u],u,c,i)}}else r=[];return r}function xf(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(D(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Cf(e,t,n={},s,r){if(oe.ce||oe.parent&&ft(oe.parent)&&oe.parent.ce)return t!=="default"&&(n.name=t),Cn(),ds(ye,null,[ae("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),Cn();const o=i&&Oi(i(n)),l=ds(ye,{key:(n.key||o&&o.key||`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Oi(e){return e.some(t=>dt(t)?!(t.type===ce||t.type===ye&&!Oi(t.children)):!0)?e:null}const ls=e=>e?Zi(e)?jn(e):ls(e.parent):null,Vt=ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ls(e.parent),$root:e=>ls(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ks(e),$forceUpdate:e=>e.f||(e.f=()=>{Ns(e.update)}),$nextTick:e=>e.n||(e.n=pl.bind(e.proxy)),$watch:e=>tc.bind(e)}),zn=(e,t)=>e!==J&&!e.__isScriptSetup&&Y(e,t),Pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let h;if(t[0]!=="$"){const _=o[t];if(_!==void 0)switch(_){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(zn(s,t))return o[t]=1,s[t];if(r!==J&&Y(r,t))return o[t]=2,r[t];if((h=e.propsOptions[0])&&Y(h,t))return o[t]=3,i[t];if(n!==J&&Y(n,t))return o[t]=4,n[t];cs&&(o[t]=0)}}const u=Vt[t];let a,p;if(u)return t==="$attrs"&&pe(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==J&&Y(n,t))return o[t]=4,n[t];if(p=c.config.globalProperties,Y(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return zn(r,t)?(r[t]=n,!0):s!==J&&Y(s,t)?(s[t]=n,!0):Y(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==J&&Y(e,o)||zn(t,o)||(l=i[0])&&Y(l,o)||Y(s,o)||Y(Vt,o)||Y(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Y(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yn(e){return D(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Tf(e,t){return!e||!t?e||t:D(e)&&D(t)?e.concat(t):ie({},yn(e),yn(t))}function wf(e){const t=At();let n=e();return ps(),Cs(n)&&(n=n.catch(s=>{throw ht(t),s})),[n,()=>ht(t)]}let cs=!0;function Rl(e){const t=Ks(e),n=e.proxy,s=e.ctx;cs=!1,t.beforeCreate&&hr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:h,created:u,beforeMount:a,mounted:p,beforeUpdate:_,updated:C,activated:P,deactivated:W,beforeDestroy:H,beforeUnmount:E,destroyed:F,unmounted:b,render:w,renderTracked:R,renderTriggered:j,errorCaptured:K,serverPrefetch:M,expose:L,inheritAttrs:k,components:O,directives:q,filters:re}=t;if(h&&Dl(h,s,null),o)for(const Z in o){const Q=o[Z];$(Q)&&(s[Z]=Q.bind(n))}if(r){const Z=r.call(n,n);X(Z)&&(e.data=Os(Z))}if(cs=!0,i)for(const Z in i){const Q=i[Z],nt=$(Q)?Q.bind(n,n):$(Q.get)?Q.get.bind(n,n):Be,Xt=!$(Q)&&$(Q.set)?Q.set.bind(n):Be,st=Ec({get:nt,set:Xt});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>st.value,set:De=>st.value=De})}if(l)for(const Z in l)Pi(l[Z],s,n,Z);if(c){const Z=$(c)?c.call(n):c;Reflect.ownKeys(Z).forEach(Q=>{Vl(Q,Z[Q])})}u&&hr(u,e,"c");function ne(Z,Q){D(Q)?Q.forEach(nt=>Z(nt.bind(n))):Q&&Z(Q.bind(n))}if(ne(Fi,a),ne(Bn,p),ne(El,_),ne(Bs,C),ne(Tl,P),ne(wl,W),ne(Ml,K),ne(Fl,R),ne(Il,j),ne($s,E),ne(Hs,b),ne(Al,M),D(L))if(L.length){const Z=e.exposed||(e.exposed={});L.forEach(Q=>{Object.defineProperty(Z,Q,{get:()=>n[Q],set:nt=>n[Q]=nt})})}else e.exposed||(e.exposed={});w&&e.render===Be&&(e.render=w),k!=null&&(e.inheritAttrs=k),O&&(e.components=O),q&&(e.directives=q),M&&Ai(e)}function Dl(e,t,n=Be){D(e)&&(e=fs(e));for(const s in e){const r=e[s];let i;X(r)?"default"in r?i=un(r.from||s,r.default,!0):i=un(r.from||s):i=un(r),ue(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function hr(e,t,n){Re(D(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Pi(e,t,n,s){let r=s.includes(".")?Ui(n,s):()=>n[s];if(se(e)){const i=t[e];$(i)&&an(r,i)}else if($(e))an(r,e.bind(n));else if(X(e))if(D(e))e.forEach(i=>Pi(i,t,n,s));else{const i=$(e.handler)?e.handler.bind(n):t[e.handler];$(i)&&an(r,i,e)}}function Ks(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(h=>bn(c,h,o,!0)),bn(c,t,o)),X(t)&&i.set(t,c),c}function bn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&bn(e,i,n,!0),r&&r.forEach(o=>bn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Nl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Nl={data:pr,props:gr,emits:gr,methods:Nt,computed:Nt,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:Nt,directives:Nt,watch:Bl,provide:pr,inject:Ll};function pr(e,t){return t?e?function(){return ie($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Ll(e,t){return Nt(fs(e),fs(t))}function fs(e){if(D(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function Nt(e,t){return e?ie(Object.create(null),e,t):t}function gr(e,t){return e?D(e)&&D(t)?[...new Set([...e,...t])]:ie(Object.create(null),yn(e),yn(t??{})):t}function Bl(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=ge(e[s],t[s]);return n}function Ri(){return{app:null,config:{isNativeTag:mo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let $l=0;function Hl(e,t){return function(s,r=null){$(s)||(s=ie({},s)),r!=null&&!X(r)&&(r=null);const i=Ri(),o=new WeakSet,l=[];let c=!1;const h=i.app={_uid:$l++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Ic,get config(){return i.config},set config(u){},use(u,...a){return o.has(u)||(u&&$(u.install)?(o.add(u),u.install(h,...a)):$(u)&&(o.add(u),u(h,...a))),h},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),h},component(u,a){return a?(i.components[u]=a,h):i.components[u]},directive(u,a){return a?(i.directives[u]=a,h):i.directives[u]},mount(u,a,p){if(!c){const _=h._ceVNode||ae(s,r);return _.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),a&&t?t(_,u):e(_,u,p),c=!0,h._container=u,u.__vue_app__=h,jn(_.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Re(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,a){return i.provides[u]=a,h},runWithContext(u){const a=ut;ut=h;try{return u()}finally{ut=a}}};return h}}let ut=null;function Vl(e,t){if(fe){let n=fe.provides;const s=fe.parent&&fe.parent.provides;s===n&&(n=fe.provides=Object.create(s)),n[e]=t}}function un(e,t,n=!1){const s=fe||oe;if(s||ut){const r=ut?ut._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(s&&s.proxy):t}}function Sf(){return!!(fe||oe||ut)}const Di={},Ni=()=>Object.create(Di),Li=e=>Object.getPrototypeOf(e)===Di;function jl(e,t,n,s=!1){const r={},i=Ni();e.propsDefaults=Object.create(null),Bi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:el(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Kl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=G(r),[c]=e.propsOptions;let h=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let a=0;a<u.length;a++){let p=u[a];if($n(e.emitsOptions,p))continue;const _=t[p];if(c)if(Y(i,p))_!==i[p]&&(i[p]=_,h=!0);else{const C=we(p);r[C]=us(c,l,C,_,e,!1)}else _!==i[p]&&(i[p]=_,h=!0)}}}else{Bi(e,t,r,i)&&(h=!0);let u;for(const a in l)(!t||!Y(t,a)&&((u=We(a))===a||!Y(t,u)))&&(c?n&&(n[a]!==void 0||n[u]!==void 0)&&(r[a]=us(c,l,a,void 0,e,!0)):delete r[a]);if(i!==l)for(const a in i)(!t||!Y(t,a))&&(delete i[a],h=!0)}h&&ke(e.attrs,"set","")}function Bi(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Lt(c))continue;const h=t[c];let u;r&&Y(r,u=we(c))?!i||!i.includes(u)?n[u]=h:(l||(l={}))[u]=h:$n(e.emitsOptions,c)||(!(c in s)||h!==s[c])&&(s[c]=h,o=!0)}if(i){const c=G(n),h=l||J;for(let u=0;u<i.length;u++){const a=i[u];n[a]=us(r,c,a,h[a],e,!Y(h,a))}}return o}function us(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=Y(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&$(c)){const{propsDefaults:h}=r;if(n in h)s=h[n];else{const u=ht(r);s=h[n]=c.call(null,t),u()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===We(n))&&(s=!0))}return s}const kl=new WeakMap;function $i(e,t,n=!1){const s=n?kl:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!$(e)){const u=a=>{c=!0;const[p,_]=$i(a,t,!0);ie(o,p),_&&l.push(..._)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return X(e)&&s.set(e,mt),mt;if(D(i))for(let u=0;u<i.length;u++){const a=we(i[u]);mr(a)&&(o[a]=J)}else if(i)for(const u in i){const a=we(u);if(mr(a)){const p=i[u],_=o[a]=D(p)||$(p)?{type:p}:ie({},p),C=_.type;let P=!1,W=!0;if(D(C))for(let H=0;H<C.length;++H){const E=C[H],F=$(E)&&E.name;if(F==="Boolean"){P=!0;break}else F==="String"&&(W=!1)}else P=$(C)&&C.name==="Boolean";_[0]=P,_[1]=W,(P||Y(_,"default"))&&l.push(a)}}const h=[o,l];return X(e)&&s.set(e,h),h}function mr(e){return e[0]!=="$"&&!Lt(e)}const Hi=e=>e[0]==="_"||e==="$stable",ks=e=>D(e)?e.map(Me):[Me(e)],Ul=(e,t,n)=>{if(t._n)return t;const s=ml((...r)=>ks(t(...r)),n);return s._c=!1,s},Vi=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Hi(r))continue;const i=e[r];if($(i))t[r]=Ul(r,i,s);else if(i!=null){const o=ks(i);t[r]=()=>o}}},ji=(e,t)=>{const n=ks(t);e.slots.default=()=>n},Ki=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},Wl=(e,t,n)=>{const s=e.slots=Ni();if(e.vnode.shapeFlag&32){const r=t._;r?(Ki(s,t,n),n&&jr(s,"_",r,!0)):Vi(t,s)}else t&&ji(e,t)},Gl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=J;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ki(r,t,n):(i=!t.$stable,Vi(t,r)),o=t}else t&&(ji(e,t),o={default:1});if(i)for(const l in r)!Hi(l)&&o[l]==null&&delete r[l]},le=dc;function ql(e){return Jl(e)}function Jl(e,t){const n=kr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:h,setElementText:u,parentNode:a,nextSibling:p,setScopeId:_=Be,insertStaticContent:C}=e,P=(f,d,g,v=null,m=null,y=null,A=void 0,S=null,T=!!d.dynamicChildren)=>{if(f===d)return;f&&!Oe(f,d)&&(v=Zt(f),De(f,m,y,!0),f=null),d.patchFlag===-2&&(T=!1,d.dynamicChildren=null);const{type:x,ref:B,shapeFlag:I}=d;switch(x){case Hn:W(f,d,g,v);break;case ce:H(f,d,g,v);break;case jt:f==null&&E(d,g,v,A);break;case ye:O(f,d,g,v,m,y,A,S,T);break;default:I&1?w(f,d,g,v,m,y,A,S,T):I&6?q(f,d,g,v,m,y,A,S,T):(I&64||I&128)&&x.process(f,d,g,v,m,y,A,S,T,Ft)}B!=null&&m&&os(B,f&&f.ref,y,d||f,!d)},W=(f,d,g,v)=>{if(f==null)s(d.el=l(d.children),g,v);else{const m=d.el=f.el;d.children!==f.children&&h(m,d.children)}},H=(f,d,g,v)=>{f==null?s(d.el=c(d.children||""),g,v):d.el=f.el},E=(f,d,g,v)=>{[f.el,f.anchor]=C(f.children,d,g,v,f.el,f.anchor)},F=({el:f,anchor:d},g,v)=>{let m;for(;f&&f!==d;)m=p(f),s(f,g,v),f=m;s(d,g,v)},b=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),r(f),f=g;r(d)},w=(f,d,g,v,m,y,A,S,T)=>{d.type==="svg"?A="svg":d.type==="math"&&(A="mathml"),f==null?R(d,g,v,m,y,A,S,T):M(f,d,m,y,A,S,T)},R=(f,d,g,v,m,y,A,S)=>{let T,x;const{props:B,shapeFlag:I,transition:N,dirs:V}=f;if(T=f.el=o(f.type,y,B&&B.is,B),I&8?u(T,f.children):I&16&&K(f.children,T,null,v,m,Xn(f,y),A,S),V&&rt(f,null,v,"created"),j(T,f,f.scopeId,A,v),B){for(const ee in B)ee!=="value"&&!Lt(ee)&&i(T,ee,null,B[ee],y,v);"value"in B&&i(T,"value",null,B.value,y),(x=B.onVnodeBeforeMount)&&Ae(x,v,f)}V&&rt(f,null,v,"beforeMount");const U=Yl(m,N);U&&N.beforeEnter(T),s(T,d,g),((x=B&&B.onVnodeMounted)||U||V)&&le(()=>{x&&Ae(x,v,f),U&&N.enter(T),V&&rt(f,null,v,"mounted")},m)},j=(f,d,g,v,m)=>{if(g&&_(f,g),v)for(let y=0;y<v.length;y++)_(f,v[y]);if(m){let y=m.subTree;if(d===y||xn(y.type)&&(y.ssContent===d||y.ssFallback===d)){const A=m.vnode;j(f,A,A.scopeId,A.slotScopeIds,m.parent)}}},K=(f,d,g,v,m,y,A,S,T=0)=>{for(let x=T;x<f.length;x++){const B=f[x]=S?Ze(f[x]):Me(f[x]);P(null,B,d,g,v,m,y,A,S)}},M=(f,d,g,v,m,y,A)=>{const S=d.el=f.el;let{patchFlag:T,dynamicChildren:x,dirs:B}=d;T|=f.patchFlag&16;const I=f.props||J,N=d.props||J;let V;if(g&&it(g,!1),(V=N.onVnodeBeforeUpdate)&&Ae(V,g,d,f),B&&rt(d,f,g,"beforeUpdate"),g&&it(g,!0),(I.innerHTML&&N.innerHTML==null||I.textContent&&N.textContent==null)&&u(S,""),x?L(f.dynamicChildren,x,S,g,v,Xn(d,m),y):A||Q(f,d,S,null,g,v,Xn(d,m),y,!1),T>0){if(T&16)k(S,I,N,g,m);else if(T&2&&I.class!==N.class&&i(S,"class",null,N.class,m),T&4&&i(S,"style",I.style,N.style,m),T&8){const U=d.dynamicProps;for(let ee=0;ee<U.length;ee++){const z=U[ee],xe=I[z],de=N[z];(de!==xe||z==="value")&&i(S,z,xe,de,m,g)}}T&1&&f.children!==d.children&&u(S,d.children)}else!A&&x==null&&k(S,I,N,g,m);((V=N.onVnodeUpdated)||B)&&le(()=>{V&&Ae(V,g,d,f),B&&rt(d,f,g,"updated")},v)},L=(f,d,g,v,m,y,A)=>{for(let S=0;S<d.length;S++){const T=f[S],x=d[S],B=T.el&&(T.type===ye||!Oe(T,x)||T.shapeFlag&70)?a(T.el):g;P(T,x,B,null,v,m,y,A,!0)}},k=(f,d,g,v,m)=>{if(d!==g){if(d!==J)for(const y in d)!Lt(y)&&!(y in g)&&i(f,y,d[y],null,m,v);for(const y in g){if(Lt(y))continue;const A=g[y],S=d[y];A!==S&&y!=="value"&&i(f,y,S,A,m,v)}"value"in g&&i(f,"value",d.value,g.value,m)}},O=(f,d,g,v,m,y,A,S,T)=>{const x=d.el=f?f.el:l(""),B=d.anchor=f?f.anchor:l("");let{patchFlag:I,dynamicChildren:N,slotScopeIds:V}=d;V&&(S=S?S.concat(V):V),f==null?(s(x,g,v),s(B,g,v),K(d.children||[],g,B,m,y,A,S,T)):I>0&&I&64&&N&&f.dynamicChildren?(L(f.dynamicChildren,N,g,m,y,A,S),(d.key!=null||m&&d===m.subTree)&&Us(f,d,!0)):Q(f,d,g,B,m,y,A,S,T)},q=(f,d,g,v,m,y,A,S,T)=>{d.slotScopeIds=S,f==null?d.shapeFlag&512?m.ctx.activate(d,g,v,A,T):re(d,g,v,m,y,A,T):Se(f,d,T)},re=(f,d,g,v,m,y,A)=>{const S=f.component=vc(f,v,m);if(Nn(f)&&(S.ctx.renderer=Ft),xc(S,!1,A),S.asyncDep){if(m&&m.registerDep(S,ne,A),!f.el){const T=S.subTree=ae(ce);H(null,T,d,g)}}else ne(S,f,d,g,m,y,A)},Se=(f,d,g)=>{const v=d.component=f.component;if(oc(f,d,g))if(v.asyncDep&&!v.asyncResolved){Z(v,d,g);return}else v.next=d,v.update();else d.el=f.el,v.vnode=d},ne=(f,d,g,v,m,y,A)=>{const S=()=>{if(f.isMounted){let{next:I,bu:N,u:V,parent:U,vnode:ee}=f;{const Ce=ki(f);if(Ce){I&&(I.el=ee.el,Z(f,I,A)),Ce.asyncDep.then(()=>{f.isUnmounted||S()});return}}let z=I,xe;it(f,!1),I?(I.el=ee.el,Z(f,I,A)):I=ee,N&&yt(N),(xe=I.props&&I.props.onVnodeBeforeUpdate)&&Ae(xe,U,I,ee),it(f,!0);const de=Zn(f),Fe=f.subTree;f.subTree=de,P(Fe,de,a(Fe.el),Zt(Fe),f,m,y),I.el=de.el,z===null&&Ws(f,de.el),V&&le(V,m),(xe=I.props&&I.props.onVnodeUpdated)&&le(()=>Ae(xe,U,I,ee),m)}else{let I;const{el:N,props:V}=d,{bm:U,m:ee,parent:z,root:xe,type:de}=f,Fe=ft(d);if(it(f,!1),U&&yt(U),!Fe&&(I=V&&V.onVnodeBeforeMount)&&Ae(I,z,d),it(f,!0),N&&Xs){const Ce=()=>{f.subTree=Zn(f),Xs(N,f.subTree,f,m,null)};Fe&&de.__asyncHydrate?de.__asyncHydrate(N,f,Ce):Ce()}else{xe.ce&&xe.ce._injectChildStyle(de);const Ce=f.subTree=Zn(f);P(null,Ce,g,v,f,m,y),d.el=Ce.el}if(ee&&le(ee,m),!Fe&&(I=V&&V.onVnodeMounted)){const Ce=d;le(()=>Ae(I,z,Ce),m)}(d.shapeFlag&256||z&&ft(z.vnode)&&z.vnode.shapeFlag&256)&&f.a&&le(f.a,m),f.isMounted=!0,d=g=v=null}};f.scope.on();const T=f.effect=new Yr(S);f.scope.off();const x=f.update=T.run.bind(T),B=f.job=T.runIfDirty.bind(T);B.i=f,B.id=f.uid,T.scheduler=()=>Ns(B),it(f,!0),x()},Z=(f,d,g)=>{d.component=f;const v=f.vnode.props;f.vnode=d,f.next=null,Kl(f,d.props,v,g),Gl(f,d.children,g),et(),cr(f),tt()},Q=(f,d,g,v,m,y,A,S,T=!1)=>{const x=f&&f.children,B=f?f.shapeFlag:0,I=d.children,{patchFlag:N,shapeFlag:V}=d;if(N>0){if(N&128){Xt(x,I,g,v,m,y,A,S,T);return}else if(N&256){nt(x,I,g,v,m,y,A,S,T);return}}V&8?(B&16&&It(x,m,y),I!==x&&u(g,I)):B&16?V&16?Xt(x,I,g,v,m,y,A,S,T):It(x,m,y,!0):(B&8&&u(g,""),V&16&&K(I,g,v,m,y,A,S,T))},nt=(f,d,g,v,m,y,A,S,T)=>{f=f||mt,d=d||mt;const x=f.length,B=d.length,I=Math.min(x,B);let N;for(N=0;N<I;N++){const V=d[N]=T?Ze(d[N]):Me(d[N]);P(f[N],V,g,null,m,y,A,S,T)}x>B?It(f,m,y,!0,!1,I):K(d,g,v,m,y,A,S,T,I)},Xt=(f,d,g,v,m,y,A,S,T)=>{let x=0;const B=d.length;let I=f.length-1,N=B-1;for(;x<=I&&x<=N;){const V=f[x],U=d[x]=T?Ze(d[x]):Me(d[x]);if(Oe(V,U))P(V,U,g,null,m,y,A,S,T);else break;x++}for(;x<=I&&x<=N;){const V=f[I],U=d[N]=T?Ze(d[N]):Me(d[N]);if(Oe(V,U))P(V,U,g,null,m,y,A,S,T);else break;I--,N--}if(x>I){if(x<=N){const V=N+1,U=V<B?d[V].el:v;for(;x<=N;)P(null,d[x]=T?Ze(d[x]):Me(d[x]),g,U,m,y,A,S,T),x++}}else if(x>N)for(;x<=I;)De(f[x],m,y,!0),x++;else{const V=x,U=x,ee=new Map;for(x=U;x<=N;x++){const Te=d[x]=T?Ze(d[x]):Me(d[x]);Te.key!=null&&ee.set(Te.key,x)}let z,xe=0;const de=N-U+1;let Fe=!1,Ce=0;const Mt=new Array(de);for(x=0;x<de;x++)Mt[x]=0;for(x=V;x<=I;x++){const Te=f[x];if(xe>=de){De(Te,m,y,!0);continue}let Ne;if(Te.key!=null)Ne=ee.get(Te.key);else for(z=U;z<=N;z++)if(Mt[z-U]===0&&Oe(Te,d[z])){Ne=z;break}Ne===void 0?De(Te,m,y,!0):(Mt[Ne-U]=x+1,Ne>=Ce?Ce=Ne:Fe=!0,P(Te,d[Ne],g,null,m,y,A,S,T),xe++)}const Zs=Fe?zl(Mt):mt;for(z=Zs.length-1,x=de-1;x>=0;x--){const Te=U+x,Ne=d[Te],Qs=Te+1<B?d[Te+1].el:v;Mt[x]===0?P(null,Ne,g,Qs,m,y,A,S,T):Fe&&(z<0||x!==Zs[z]?st(Ne,g,Qs,2):z--)}}},st=(f,d,g,v,m=null)=>{const{el:y,type:A,transition:S,children:T,shapeFlag:x}=f;if(x&6){st(f.component.subTree,d,g,v);return}if(x&128){f.suspense.move(d,g,v);return}if(x&64){A.move(f,d,g,Ft);return}if(A===ye){s(y,d,g);for(let I=0;I<T.length;I++)st(T[I],d,g,v);s(f.anchor,d,g);return}if(A===jt){F(f,d,g);return}if(v!==2&&x&1&&S)if(v===0)S.beforeEnter(y),s(y,d,g),le(()=>S.enter(y),m);else{const{leave:I,delayLeave:N,afterLeave:V}=S,U=()=>s(y,d,g),ee=()=>{I(y,()=>{U(),V&&V()})};N?N(y,U,ee):ee()}else s(y,d,g)},De=(f,d,g,v=!1,m=!1)=>{const{type:y,props:A,ref:S,children:T,dynamicChildren:x,shapeFlag:B,patchFlag:I,dirs:N,cacheIndex:V}=f;if(I===-2&&(m=!1),S!=null&&os(S,null,g,f,!0),V!=null&&(d.renderCache[V]=void 0),B&256){d.ctx.deactivate(f);return}const U=B&1&&N,ee=!ft(f);let z;if(ee&&(z=A&&A.onVnodeBeforeUnmount)&&Ae(z,d,f),B&6)go(f.component,g,v);else{if(B&128){f.suspense.unmount(g,v);return}U&&rt(f,null,d,"beforeUnmount"),B&64?f.type.remove(f,d,g,Ft,v):x&&!x.hasOnce&&(y!==ye||I>0&&I&64)?It(x,d,g,!1,!0):(y===ye&&I&384||!m&&B&16)&&It(T,d,g),v&&Js(f)}(ee&&(z=A&&A.onVnodeUnmounted)||U)&&le(()=>{z&&Ae(z,d,f),U&&rt(f,null,d,"unmounted")},g)},Js=f=>{const{type:d,el:g,anchor:v,transition:m}=f;if(d===ye){po(g,v);return}if(d===jt){b(f);return}const y=()=>{r(g),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:A,delayLeave:S}=m,T=()=>A(g,y);S?S(f.el,y,T):T()}else y()},po=(f,d)=>{let g;for(;f!==d;)g=p(f),r(f),f=g;r(d)},go=(f,d,g)=>{const{bum:v,scope:m,job:y,subTree:A,um:S,m:T,a:x}=f;vn(T),vn(x),v&&yt(v),m.stop(),y&&(y.flags|=8,De(A,f,d,g)),S&&le(S,d),le(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},It=(f,d,g,v=!1,m=!1,y=0)=>{for(let A=y;A<f.length;A++)De(f[A],d,g,v,m)},Zt=f=>{if(f.shapeFlag&6)return Zt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),g=d&&d[bi];return g?p(g):d};let Kn=!1;const Ys=(f,d,g)=>{f==null?d._vnode&&De(d._vnode,null,null,!0):P(d._vnode||null,f,d,null,null,null,g),d._vnode=f,Kn||(Kn=!0,cr(),mi(),Kn=!1)},Ft={p:P,um:De,m:st,r:Js,mt:re,mc:K,pc:Q,pbc:L,n:Zt,o:e};let zs,Xs;return{render:Ys,hydrate:zs,createApp:Hl(Ys,zs)}}function Xn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function it({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Us(e,t,n=!1){const s=e.children,r=t.children;if(D(s)&&D(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ze(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Us(o,l)),l.type===Hn&&(l.el=o.el)}}function zl(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const h=e[s];if(h!==0){if(r=n[n.length-1],e[r]<h){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<h?i=l+1:o=l;h<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function ki(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ki(t)}function vn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Xl=Symbol.for("v-scx"),Zl=()=>un(Xl);function Ef(e,t){return zt(e,null,t)}function Ql(e,t){return zt(e,null,{flush:"post"})}function ec(e,t){return zt(e,null,{flush:"sync"})}function an(e,t,n){return zt(e,t,n)}function zt(e,t,n=J){const{immediate:s,deep:r,flush:i,once:o}=n,l=ie({},n);let c;if(Vn)if(i==="sync"){const p=Zl();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||s)l.once=!0;else{const p=()=>{};return p.stop=Be,p.resume=Be,p.pause=Be,p}const h=fe;l.call=(p,_,C)=>Re(p,h,_,C);let u=!1;i==="post"?l.scheduler=p=>{le(p,h&&h.suspense)}:i!=="sync"&&(u=!0,l.scheduler=(p,_)=>{_?p():Ns(p)}),l.augmentJob=p=>{t&&(p.flags|=4),u&&(p.flags|=2,h&&(p.id=h.uid,p.i=h))};const a=dl(e,t,l);return c&&c.push(a),a}function tc(e,t,n){const s=this.proxy,r=se(e)?e.includes(".")?Ui(s,e):()=>s[e]:e.bind(s,s);let i;$(t)?i=t:(i=t.handler,n=t);const o=ht(this),l=zt(r,i.bind(s),n);return o(),l}function Ui(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function Af(e,t,n=J){const s=At(),r=we(t),i=We(t),o=Wi(e,t),l=ol((c,h)=>{let u,a=J,p;return ec(()=>{const _=e[t];be(u,_)&&(u=_,h())}),{get(){return c(),n.get?n.get(u):u},set(_){const C=n.set?n.set(_):_;if(!be(C,u)&&!(a!==J&&be(_,a)))return;const P=s.vnode.props;P&&(t in P||r in P||i in P)&&(`onUpdate:${t}`in P||`onUpdate:${r}`in P||`onUpdate:${i}`in P)||(u=_,h()),s.emit(`update:${t}`,C),be(_,C)&&be(_,a)&&!be(C,p)&&h(),a=_,p=C}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||J:l,done:!1}:{done:!0}}}},l}const Wi=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${We(t)}Modifiers`];function nc(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||J;let r=n;const i=t.startsWith("update:"),o=i&&Wi(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>se(u)?u.trim():u)),o.number&&(r=n.map(Co)));let l,c=s[l=kn(t)]||s[l=kn(we(t))];!c&&i&&(c=s[l=kn(We(t))]),c&&Re(c,e,6,r);const h=s[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Re(h,e,6,r)}}function Gi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!$(e)){const c=h=>{const u=Gi(h,t,!0);u&&(l=!0,ie(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(X(e)&&s.set(e,null),null):(D(i)?i.forEach(c=>o[c]=null):ie(o,i),X(e)&&s.set(e,o),o)}function $n(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),Y(e,t[0].toLowerCase()+t.slice(1))||Y(e,We(t))||Y(e,t))}function Zn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:h,renderCache:u,props:a,data:p,setupState:_,ctx:C,inheritAttrs:P}=e,W=_n(e);let H,E;try{if(n.shapeFlag&4){const b=r||s,w=b;H=Me(h.call(w,b,u,a,_,p,C)),E=l}else{const b=t;H=Me(b.length>1?b(a,{attrs:l,slots:o,emit:c}):b(a,null)),E=t.props?l:rc(l)}}catch(b){Kt.length=0,Yt(b,e,1),H=ae(ce)}let F=H;if(E&&P!==!1){const b=Object.keys(E),{shapeFlag:w}=F;b.length&&w&7&&(i&&b.some(vs)&&(E=ic(E,i)),F=Ue(F,E,!1,!0))}return n.dirs&&(F=Ue(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&Qe(F,n.transition),H=F,_n(W),H}function sc(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(dt(r)){if(r.type!==ce||r.children==="v-if"){if(n)return;n=r}}else return}return n}const rc=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},ic=(e,t)=>{const n={};for(const s in e)(!vs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function oc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?_r(s,o,h):!!o;if(c&8){const u=t.dynamicProps;for(let a=0;a<u.length;a++){const p=u[a];if(o[p]!==s[p]&&!$n(h,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?_r(s,o,h):!0:!!o;return!1}function _r(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!$n(n,i))return!0}return!1}function Ws({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const xn=e=>e.__isSuspense;let as=0;const lc={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,h){if(e==null)cc(t,n,s,r,i,o,l,c,h);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}fc(e,t,n,s,r,o,l,c,h)}},hydrate:uc,normalize:ac},If=lc;function qt(e,t){const n=e.props&&e.props[t];$(n)&&n()}function cc(e,t,n,s,r,i,o,l,c){const{p:h,o:{createElement:u}}=c,a=u("div"),p=e.suspense=qi(e,r,s,t,a,n,i,o,l,c);h(null,p.pendingBranch=e.ssContent,a,null,s,p,i,o),p.deps>0?(qt(e,"onPending"),qt(e,"onFallback"),h(null,e.ssFallback,t,n,s,null,i,o),xt(p,e.ssFallback)):p.resolve(!1,!0)}function fc(e,t,n,s,r,i,o,l,{p:c,um:h,o:{createElement:u}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const p=t.ssContent,_=t.ssFallback,{activeBranch:C,pendingBranch:P,isInFallback:W,isHydrating:H}=a;if(P)a.pendingBranch=p,Oe(p,P)?(c(P,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0?a.resolve():W&&(H||(c(C,_,n,s,r,null,i,o,l),xt(a,_)))):(a.pendingId=as++,H?(a.isHydrating=!1,a.activeBranch=P):h(P,r,a),a.deps=0,a.effects.length=0,a.hiddenContainer=u("div"),W?(c(null,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0?a.resolve():(c(C,_,n,s,r,null,i,o,l),xt(a,_))):C&&Oe(p,C)?(c(C,p,n,s,r,a,i,o,l),a.resolve(!0)):(c(null,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0&&a.resolve()));else if(C&&Oe(p,C))c(C,p,n,s,r,a,i,o,l),xt(a,p);else if(qt(t,"onPending"),a.pendingBranch=p,p.shapeFlag&512?a.pendingId=p.component.suspenseId:a.pendingId=as++,c(null,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0)a.resolve();else{const{timeout:E,pendingId:F}=a;E>0?setTimeout(()=>{a.pendingId===F&&a.fallback(_)},E):E===0&&a.fallback(_)}}function qi(e,t,n,s,r,i,o,l,c,h,u=!1){const{p:a,m:p,um:_,n:C,o:{parentNode:P,remove:W}}=h;let H;const E=hc(e);E&&t&&t.pendingBranch&&(H=t.pendingId,t.deps++);const F=e.props?Kr(e.props.timeout):void 0,b=i,w={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:r,deps:0,pendingId:as++,timeout:typeof F=="number"?F:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(R=!1,j=!1){const{vnode:K,activeBranch:M,pendingBranch:L,pendingId:k,effects:O,parentComponent:q,container:re}=w;let Se=!1;w.isHydrating?w.isHydrating=!1:R||(Se=M&&L.transition&&L.transition.mode==="out-in",Se&&(M.transition.afterLeave=()=>{k===w.pendingId&&(p(L,re,i===b?C(M):i,0),rs(O))}),M&&(P(M.el)===re&&(i=C(M)),_(M,q,w,!0)),Se||p(L,re,i,0)),xt(w,L),w.pendingBranch=null,w.isInFallback=!1;let ne=w.parent,Z=!1;for(;ne;){if(ne.pendingBranch){ne.effects.push(...O),Z=!0;break}ne=ne.parent}!Z&&!Se&&rs(O),w.effects=[],E&&t&&t.pendingBranch&&H===t.pendingId&&(t.deps--,t.deps===0&&!j&&t.resolve()),qt(K,"onResolve")},fallback(R){if(!w.pendingBranch)return;const{vnode:j,activeBranch:K,parentComponent:M,container:L,namespace:k}=w;qt(j,"onFallback");const O=C(K),q=()=>{w.isInFallback&&(a(null,R,L,O,M,null,k,l,c),xt(w,R))},re=R.transition&&R.transition.mode==="out-in";re&&(K.transition.afterLeave=q),w.isInFallback=!0,_(K,M,null,!0),re||q()},move(R,j,K){w.activeBranch&&p(w.activeBranch,R,j,K),w.container=R},next(){return w.activeBranch&&C(w.activeBranch)},registerDep(R,j,K){const M=!!w.pendingBranch;M&&w.deps++;const L=R.vnode.el;R.asyncDep.catch(k=>{Yt(k,R,0)}).then(k=>{if(R.isUnmounted||w.isUnmounted||w.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:O}=R;gs(R,k,!1),L&&(O.el=L);const q=!L&&R.subTree.el;j(R,O,P(L||R.subTree.el),L?null:C(R.subTree),w,o,K),q&&W(q),Ws(R,O.el),M&&--w.deps===0&&w.resolve()})},unmount(R,j){w.isUnmounted=!0,w.activeBranch&&_(w.activeBranch,n,R,j),w.pendingBranch&&_(w.pendingBranch,n,R,j)}};return w}function uc(e,t,n,s,r,i,o,l,c){const h=t.suspense=qi(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),u=c(e,h.pendingBranch=t.ssContent,n,h,i,o);return h.deps===0&&h.resolve(!1,!0),u}function ac(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=yr(s?n.default:n),e.ssFallback=s?yr(n.fallback):ae(ce)}function yr(e){let t;if($(e)){const n=wt&&e._c;n&&(e._d=!1,Cn()),e=e(),n&&(e._d=!0,t=ve,Ji())}return D(e)&&(e=sc(e)),e=Me(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function dc(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):rs(e)}function xt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,Ws(s,r))}function hc(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ye=Symbol.for("v-fgt"),Hn=Symbol.for("v-txt"),ce=Symbol.for("v-cmt"),jt=Symbol.for("v-stc"),Kt=[];let ve=null;function Cn(e=!1){Kt.push(ve=e?null:[])}function Ji(){Kt.pop(),ve=Kt[Kt.length-1]||null}let wt=1;function br(e){wt+=e,e<0&&ve&&(ve.hasOnce=!0)}function Yi(e){return e.dynamicChildren=wt>0?ve||mt:null,Ji(),wt>0&&ve&&ve.push(e),e}function Ff(e,t,n,s,r,i){return Yi(Xi(e,t,n,s,r,i,!0))}function ds(e,t,n,s,r){return Yi(ae(e,t,n,s,r,!0))}function dt(e){return e?e.__v_isVNode===!0:!1}function Oe(e,t){return e.type===t.type&&e.key===t.key}const zi=({key:e})=>e??null,dn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?se(e)||ue(e)||$(e)?{i:oe,r:e,k:t,f:!!n}:e:null);function Xi(e,t=null,n=null,s=0,r=null,i=e===ye?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zi(t),ref:t&&dn(t),scopeId:yi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:oe};return l?(Gs(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=se(n)?8:16),wt>0&&!o&&ve&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ve.push(c),c}const ae=pc;function pc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Mi)&&(e=ce),dt(e)){const l=Ue(e,t,!0);return n&&Gs(l,n),wt>0&&!i&&ve&&(l.shapeFlag&6?ve[ve.indexOf(e)]=l:ve.push(l)),l.patchFlag=-2,l}if(Sc(e)&&(e=e.__vccOpts),t){t=gc(t);let{class:l,style:c}=t;l&&!se(l)&&(t.class=Ss(l)),X(c)&&(Rs(c)&&!D(c)&&(c=ie({},c)),t.style=ws(c))}const o=se(e)?1:xn(e)?128:vi(e)?64:X(e)?4:$(e)?2:0;return Xi(e,t,n,s,r,o,i,!0)}function gc(e){return e?Rs(e)||Li(e)?ie({},e):e:null}function Ue(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,h=t?_c(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&zi(h),ref:t&&t.ref?n&&i?D(i)?i.concat(dn(t)):[i,dn(t)]:dn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ue(e.ssContent),ssFallback:e.ssFallback&&Ue(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Qe(u,c.clone(u)),u}function mc(e=" ",t=0){return ae(Hn,null,e,t)}function Mf(e,t){const n=ae(jt,null,e);return n.staticCount=t,n}function Of(e="",t=!1){return t?(Cn(),ds(ce,null,e)):ae(ce,null,e)}function Me(e){return e==null||typeof e=="boolean"?ae(ce):D(e)?ae(ye,null,e.slice()):dt(e)?Ze(e):ae(Hn,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ue(e)}function Gs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(D(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Gs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Li(t)?t._ctx=oe:r===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $(t)?(t={default:t,_ctx:oe},n=32):(t=String(t),s&64?(n=16,t=[mc(t)]):n=8);e.children=t,e.shapeFlag|=n}function _c(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Ss([t.class,s.class]));else if(r==="style")t.style=ws([t.style,s.style]);else if(In(r)){const i=t[r],o=s[r];o&&i!==o&&!(D(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function Ae(e,t,n,s=null){Re(e,t,7,[n,s])}const yc=Ri();let bc=0;function vc(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||yc,i={uid:bc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Jr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:$i(s,r),emitsOptions:Gi(s,r),emit:null,emitted:null,propsDefaults:J,inheritAttrs:s.inheritAttrs,ctx:J,data:J,props:J,attrs:J,slots:J,refs:J,setupState:J,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=nc.bind(null,i),e.ce&&e.ce(i),i}let fe=null;const At=()=>fe||oe;let Tn,hs;{const e=kr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Tn=t("__VUE_INSTANCE_SETTERS__",n=>fe=n),hs=t("__VUE_SSR_SETTERS__",n=>Vn=n)}const ht=e=>{const t=fe;return Tn(e),e.scope.on(),()=>{e.scope.off(),Tn(t)}},ps=()=>{fe&&fe.scope.off(),Tn(null)};function Zi(e){return e.vnode.shapeFlag&4}let Vn=!1;function xc(e,t=!1,n=!1){t&&hs(t);const{props:s,children:r}=e.vnode,i=Zi(e);jl(e,s,i,t),Wl(e,r,n);const o=i?Cc(e,t):void 0;return t&&hs(!1),o}function Cc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Pl);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?wc(e):null,i=ht(e);et();const o=Jt(s,e,0,[e.props,r]);if(tt(),i(),Cs(o)){if(ft(e)||Ai(e),o.then(ps,ps),t)return o.then(l=>{gs(e,l,t)}).catch(l=>{Yt(l,e,0)});e.asyncDep=o}else gs(e,o,t)}else Qi(e,t)}function gs(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=di(t)),Qi(e,n)}let vr;function Qi(e,t,n){const s=e.type;if(!e.render){if(!t&&vr&&!s.render){const r=s.template||Ks(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,h=ie(ie({isCustomElement:i,delimiters:l},o),c);s.render=vr(r,h)}}e.render=s.render||Be}{const r=ht(e);et();try{Rl(e)}finally{tt(),r()}}}const Tc={get(e,t){return pe(e,"get",""),e[t]}};function wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Tc),slots:e.slots,emit:e.emit,expose:t}}function jn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(di(tl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vt)return Vt[n](e)},has(t,n){return n in t||n in Vt}})):e.proxy}function ms(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function Sc(e){return $(e)&&"__vccOpts"in e}const Ec=(e,t)=>ul(e,t,Vn);function Ac(e,t,n){const s=arguments.length;return s===2?X(t)&&!D(t)?dt(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&dt(n)&&(n=[n]),ae(e,t,n))}const Ic="3.5.11";/**
14
- * @vue/runtime-dom v3.5.11
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let _s;const xr=typeof window<"u"&&window.trustedTypes;if(xr)try{_s=xr.createPolicy("vue",{createHTML:e=>e})}catch{}const eo=_s?e=>_s.createHTML(e):e=>e,Fc="http://www.w3.org/2000/svg",Mc="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Cr=je&&je.createElement("template"),Oc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?je.createElementNS(Fc,e):t==="mathml"?je.createElementNS(Mc,e):n?je.createElement(e,{is:n}):je.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Cr.innerHTML=eo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Cr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Je="transition",Pt="animation",St=Symbol("_vtc"),to={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},no=ie({},Ti,to),Pc=e=>(e.displayName="Transition",e.props=no,e),Pf=Pc((e,{slots:t})=>Ac(xl,so(e),t)),ot=(e,t=[])=>{D(e)?e.forEach(n=>n(...t)):e&&e(...t)},Tr=e=>e?D(e)?e.some(t=>t.length>1):e.length>1:!1;function so(e){const t={};for(const O in e)O in to||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:h=o,appearToClass:u=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=e,C=Rc(r),P=C&&C[0],W=C&&C[1],{onBeforeEnter:H,onEnter:E,onEnterCancelled:F,onLeave:b,onLeaveCancelled:w,onBeforeAppear:R=H,onAppear:j=E,onAppearCancelled:K=F}=t,M=(O,q,re)=>{Ye(O,q?u:l),Ye(O,q?h:o),re&&re()},L=(O,q)=>{O._isLeaving=!1,Ye(O,a),Ye(O,_),Ye(O,p),q&&q()},k=O=>(q,re)=>{const Se=O?j:E,ne=()=>M(q,O,re);ot(Se,[q,ne]),wr(()=>{Ye(q,O?c:i),Ve(q,O?u:l),Tr(Se)||Sr(q,s,P,ne)})};return ie(t,{onBeforeEnter(O){ot(H,[O]),Ve(O,i),Ve(O,o)},onBeforeAppear(O){ot(R,[O]),Ve(O,c),Ve(O,h)},onEnter:k(!1),onAppear:k(!0),onLeave(O,q){O._isLeaving=!0;const re=()=>L(O,q);Ve(O,a),Ve(O,p),io(),wr(()=>{O._isLeaving&&(Ye(O,a),Ve(O,_),Tr(b)||Sr(O,s,W,re))}),ot(b,[O,re])},onEnterCancelled(O){M(O,!1),ot(F,[O])},onAppearCancelled(O){M(O,!0),ot(K,[O])},onLeaveCancelled(O){L(O),ot(w,[O])}})}function Rc(e){if(e==null)return null;if(X(e))return[Qn(e.enter),Qn(e.leave)];{const t=Qn(e);return[t,t]}}function Qn(e){return Kr(e)}function Ve(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[St]||(e[St]=new Set)).add(t)}function Ye(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[St];n&&(n.delete(t),n.size||(e[St]=void 0))}function wr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Dc=0;function Sr(e,t,n,s){const r=e._endId=++Dc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ro(e,t);if(!o)return s();const h=o+"end";let u=0;const a=()=>{e.removeEventListener(h,p),i()},p=_=>{_.target===e&&++u>=c&&a()};setTimeout(()=>{u<c&&a()},l+1),e.addEventListener(h,p)}function ro(e,t){const n=window.getComputedStyle(e),s=C=>(n[C]||"").split(", "),r=s(`${Je}Delay`),i=s(`${Je}Duration`),o=Er(r,i),l=s(`${Pt}Delay`),c=s(`${Pt}Duration`),h=Er(l,c);let u=null,a=0,p=0;t===Je?o>0&&(u=Je,a=o,p=i.length):t===Pt?h>0&&(u=Pt,a=h,p=c.length):(a=Math.max(o,h),u=a>0?o>h?Je:Pt:null,p=u?u===Je?i.length:c.length:0);const _=u===Je&&/\b(transform|all)(,|$)/.test(s(`${Je}Property`).toString());return{type:u,timeout:a,propCount:p,hasTransform:_}}function Er(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ar(n)+Ar(e[s])))}function Ar(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function io(){return document.body.offsetHeight}function Nc(e,t,n){const s=e[St];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const wn=Symbol("_vod"),oo=Symbol("_vsh"),Rf={beforeMount(e,{value:t},{transition:n}){e[wn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Rt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Rt(e,!0),s.enter(e)):s.leave(e,()=>{Rt(e,!1)}):Rt(e,t))},beforeUnmount(e,{value:t}){Rt(e,t)}};function Rt(e,t){e.style.display=t?e[wn]:"none",e[oo]=!t}const lo=Symbol("");function Df(e){const t=At();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Sn(i,r))},s=()=>{const r=e(t.proxy);t.ce?Sn(t.ce,r):ys(t.subTree,r),n(r)};Fi(()=>{Ql(s)}),Bn(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Hs(()=>r.disconnect())})}function ys(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ys(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Sn(e.el,t);else if(e.type===ye)e.children.forEach(n=>ys(n,t));else if(e.type===jt){let{el:n,anchor:s}=e;for(;n&&(Sn(n,t),n!==s);)n=n.nextSibling}}function Sn(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[lo]=s}}const Lc=/(^|;)\s*display\s*:/;function Bc(e,t,n){const s=e.style,r=se(n);let i=!1;if(n&&!r){if(t)if(se(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&hn(s,l,"")}else for(const o in t)n[o]==null&&hn(s,o,"");for(const o in n)o==="display"&&(i=!0),hn(s,o,n[o])}else if(r){if(t!==n){const o=s[lo];o&&(n+=";"+o),s.cssText=n,i=Lc.test(n)}}else t&&e.removeAttribute("style");wn in e&&(e[wn]=i?s.display:"",e[oo]&&(s.display="none"))}const Ir=/\s*!important$/;function hn(e,t,n){if(D(n))n.forEach(s=>hn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=$c(e,t);Ir.test(n)?e.setProperty(We(s),n.replace(Ir,""),"important"):e[s]=n}}const Fr=["Webkit","Moz","ms"],es={};function $c(e,t){const n=es[t];if(n)return n;let s=we(t);if(s!=="filter"&&s in e)return es[t]=s;s=On(s);for(let r=0;r<Fr.length;r++){const i=Fr[r]+s;if(i in e)return es[t]=i}return t}const Mr="http://www.w3.org/1999/xlink";function Or(e,t,n,s,r,i=Io(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Mr,t.slice(6,t.length)):e.setAttributeNS(Mr,t,n):n==null||i&&!Ur(n)?e.removeAttribute(t):e.setAttribute(t,i?"":$e(n)?String(n):n)}function Pr(e,t,n,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?eo(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Ur(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function qs(e,t,n,s){e.addEventListener(t,n,s)}function Hc(e,t,n,s){e.removeEventListener(t,n,s)}const Rr=Symbol("_vei");function Vc(e,t,n,s,r=null){const i=e[Rr]||(e[Rr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=jc(t);if(s){const h=i[t]=Uc(s,r);qs(e,l,h,c)}else o&&(Hc(e,l,o,c),i[t]=void 0)}}const Dr=/(?:Once|Passive|Capture)$/;function jc(e){let t;if(Dr.test(e)){t={};let s;for(;s=e.match(Dr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):We(e.slice(2)),t]}let ts=0;const Kc=Promise.resolve(),kc=()=>ts||(Kc.then(()=>ts=0),ts=Date.now());function Uc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Re(Wc(s,n.value),t,5,[s])};return n.value=e,n.attached=kc(),n}function Wc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Nc(e,s,o):t==="style"?Bc(e,n,s):In(t)?vs(t)||Vc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):qc(e,t,s,o))?(Pr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Or(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!se(s))?Pr(e,we(t),s):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Or(e,t,s,o))};function qc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nr(t)&&$(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Nr(t)&&se(n)?!1:t in e}const co=new WeakMap,fo=new WeakMap,En=Symbol("_moveCb"),Lr=Symbol("_enterCb"),Jc=e=>(delete e.props.mode,e),Yc=Jc({name:"TransitionGroup",props:ie({},no,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=At(),s=Ci();let r,i;return Bs(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Qc(r[0].el,n.vnode.el,o))return;r.forEach(zc),r.forEach(Xc);const l=r.filter(Zc);io(),l.forEach(c=>{const h=c.el,u=h.style;Ve(h,o),u.transform=u.webkitTransform=u.transitionDuration="";const a=h[En]=p=>{p&&p.target!==h||(!p||/transform$/.test(p.propertyName))&&(h.removeEventListener("transitionend",a),h[En]=null,Ye(h,o))};h.addEventListener("transitionend",a)})}),()=>{const o=G(e),l=so(o);let c=o.tag||ye;if(r=[],i)for(let h=0;h<i.length;h++){const u=i[h];u.el&&u.el instanceof Element&&(r.push(u),Qe(u,Gt(u,l,s,n)),co.set(u,u.el.getBoundingClientRect()))}i=t.default?Ls(t.default()):[];for(let h=0;h<i.length;h++){const u=i[h];u.key!=null&&Qe(u,Gt(u,l,s,n))}return ae(c,null,i)}}}),Nf=Yc;function zc(e){const t=e.el;t[En]&&t[En](),t[Lr]&&t[Lr]()}function Xc(e){fo.set(e,e.el.getBoundingClientRect())}function Zc(e){const t=co.get(e),n=fo.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Qc(e,t,n){const s=e.cloneNode(),r=e[St];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=ro(s);return i.removeChild(s),o}const An=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>yt(t,n):t},Ct=Symbol("_assign"),Lf={deep:!0,created(e,t,n){e[Ct]=An(n),qs(e,"change",()=>{const s=e._modelValue,r=uo(e),i=e.checked,o=e[Ct];if(D(s)){const l=Wr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const h=[...s];h.splice(l,1),o(h)}}else if(Fn(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(ao(e,i))})},mounted:Br,beforeUpdate(e,t,n){e[Ct]=An(n),Br(e,t,n)}};function Br(e,{value:t},n){e._modelValue=t;let s;D(t)?s=Wr(t,n.props.value)>-1:Fn(t)?s=t.has(n.props.value):s=Tt(t,ao(e,!0)),e.checked!==s&&(e.checked=s)}const Bf={created(e,{value:t},n){e.checked=Tt(t,n.props.value),e[Ct]=An(n),qs(e,"change",()=>{e[Ct](uo(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[Ct]=An(s),t!==n&&(e.checked=Tt(t,s.props.value))}};function uo(e){return"_value"in e?e._value:e.value}function ao(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ef=["ctrl","shift","alt","meta"],tf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>ef.some(n=>e[`${n}Key`]&&!t.includes(n))},$f=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=tf[t[o]];if(l&&l(r,t))return}return e(r,...i)})},nf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=We(r.key);if(t.some(o=>o===i||nf[o]===i))return e(r)})},sf=ie({patchProp:Gc},Oc);let $r;function ho(){return $r||($r=ql(sf))}const Vf=(...e)=>{ho().render(...e)},jf=(...e)=>{const t=ho().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=of(s);if(!r)return;const i=t._component;!$(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,rf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function rf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function of(e){return se(e)?document.querySelector(e):e}export{Pf as $,df as A,fi as B,At as C,ff as D,Os as E,Ef as F,gf as G,tl as H,bt as I,G as J,yf as K,Ac as L,uf as M,Vl as N,$s as O,ye as P,Hs as Q,ae as R,Fi as S,Hn as T,dt as U,jf as V,Ue as W,ce as X,On as Y,we as Z,Nf as _,un as a,bf as a0,Bs as a1,wl as a2,Tl as a3,pf as a4,_f as a5,Vf as a6,mc as a7,El as a8,Mo as a9,ds as aa,ml as ab,ws as ac,vf as ad,Tf as ae,Af as af,Lf as ag,Df as ah,Mf as ai,Bf as aj,mf as ak,If as al,xf as am,wf as an,Cn as b,Ec as c,Ff as d,hf as e,Xi as f,Ss as g,Sf as h,ue as i,Cf as j,Of as k,Hf as l,_c as m,pl as n,cf as o,$f as p,ol as q,nl as r,el as s,af as t,ai as u,Rf as v,an as w,Bn as x,Oo as y,lf as z};
@@ -1 +0,0 @@
1
- import{r as u,x as xe,Q as dt,G as me,t as _e,D as Ce,c as H,w as Y,O as pt,b as c,d as P,R as E,ab as z,e as ye,v as ft,u as t,a7 as se,a9 as B,f as b,p as fe,ac as I,aa as j,P as be,ad as Pe,k as ee,n as he,aj as ht,i as Oe,a5 as gt,g as ge,E as xt,ak as _t}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import{D as yt,E as bt,F as Pt,C as Le,G as wt}from"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import{a as Tt,f as Ve,k as De,l as St,m as Ht,n as Et,o as $t,p as Ft,q as kt,d as we,i as zt}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{s as Ct}from"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import{k as Lt,j as Re,e as Dt,l as Ot,m as Vt,n as Rt,p as Mt}from"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import{b as ie,e as re,B as Gt,C as At,V as Te,D as It,E as Nt,R as Wt}from"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import{C as Me,_ as Ge}from"./VPlayer.DlJrYynC.0.0.34-alpha.1.js";import{u as Ae}from"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./qrcode.CoLGEQa3.0.0.34-alpha.1.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.1.js";import"./plugins.BbNP66vO.0.0.34-alpha.1.js";import"./draggabilly.B4gt8cuQ.0.0.34-alpha.1.js";import"./get-size.D1dS-IaP.0.0.34-alpha.1.js";import"./unidragger.B5ZpJ0o9.0.0.34-alpha.1.js";import"./ev-emitter.CCoflQaJ.0.0.34-alpha.1.js";const jt=e=>{let $=null,G=0,O=0,f=0;const F=.95,w=u(),x=s=>{w.value="onTouchStart",$!==null&&(cancelAnimationFrame($),$=null),G=s.touches[0].pageY,O=G},C=s=>{w.value="onTouchMove";const i=s.touches[0].pageY,h=i-O;O=i,e.value&&(e.value.scrollTop-=h),f=h},_=()=>{w.value="onTouchEnd",Math.abs(f)>.5&&T()},T=()=>{f*=F,e.value&&(e.value.scrollTop-=f),Math.abs(f)>.5&&($=requestAnimationFrame(T))};return xe(()=>{e.value&&(e.value.addEventListener("touchstart",x),e.value.addEventListener("touchmove",C),e.value.addEventListener("touchend",_))}),dt(()=>{e.value&&(e.value.removeEventListener("touchstart",x),e.value.removeEventListener("touchmove",C),e.value.removeEventListener("touchend",_)),$!==null&&cancelAnimationFrame($)}),{currentTouchEvent:w}};var r=(e=>(e[e.HEIGHT=8]="HEIGHT",e[e.WIDTH=85]="WIDTH",e.COLOR="#000000",e[e.OFFSET=50]="OFFSET",e[e.TIME_OFFSET=15]="TIME_OFFSET",e[e.TIME_START_POSITION=15]="TIME_START_POSITION",e[e.MAX_SCROLL_PX=720]="MAX_SCROLL_PX",e))(r||{}),Ie=(e=>(e.type="seconds",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=15e3]="duration",e[e.timeMsFactor=15e3]="timeMsFactor",e[e.timeMsPerTick=1e3]="timeMsPerTick",e[e.timeMsPerPx=125]="timeMsPerPx",e[e.pxPerSecond=8]="pxPerSecond",e))(Ie||{}),Ne=(e=>(e.type="two-minutes",e[e.bigTickInterval=4]="bigTickInterval",e[e.labelInterval=8]="labelInterval",e[e.duration=12e4]="duration",e[e.timeMsFactor=12e4]="timeMsFactor",e[e.timeMsPerTick=15e3]="timeMsPerTick",e[e.timeMsPerPx=1875]="timeMsPerPx",e[e.pxPerSecond=.5333333333333333]="pxPerSecond",e))(Ne||{}),We=(e=>(e.type="fifteen-minutes",e[e.bigTickInterval=5]="bigTickInterval",e[e.labelInterval=15]="labelInterval",e[e.duration=9e5]="duration",e[e.timeMsFactor=9e5]="timeMsFactor",e[e.timeMsPerTick=6e4]="timeMsPerTick",e[e.timeMsPerPx=7500]="timeMsPerPx",e[e.pxPerSecond=.13333333333333333]="pxPerSecond",e))(We||{}),je=(e=>(e.type="thirty-minutes",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=9]="labelInterval",e[e.duration=18e5]="duration",e[e.timeMsFactor=18e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(je||{}),Be=(e=>(e.type="hours",e[e.bigTickInterval=3]="bigTickInterval",e[e.labelInterval=18]="labelInterval",e[e.duration=36e5]="duration",e[e.timeMsFactor=36e5]="timeMsFactor",e[e.timeMsPerTick=2e5]="timeMsPerTick",e[e.timeMsPerPx=25e3]="timeMsPerPx",e[e.pxPerSecond=.04]="pxPerSecond",e))(Be||{});const Bt={class:"relative h-full w-full"},Qt={class:"absolute z-3 top-0 left-0 right-0 w-full"},Ut={key:1},Xt={key:0,class:"relative h-full"},qt=["data-tick-index"],Yt=["data-tick-index"],Jt={key:0,class:"tick-label"},Zt={key:1,class:"relative h-full"},Kt=me({__name:"VLiveTimeline",props:{dateModel:{default:()=>new Date},modifier:{default:0},segment:{default:"0"}},emits:["is-loading","is-scrolling"],setup(e,{emit:$}){const G=e,O=$,{theme:f}=Ct(Tt()),{dateModel:F,modifier:w}=_e(G),x=u(0),C=u(0),_=u(new Date),T=u(0),s=Ce(),i=u(!1),h=u([]),S=u(!1),R=u(0),N=u(0),Q=u(new Date),A=u(0),K=u(0),k=u({timestamp:Date.now(),live:!0}),p=u(null),n=Ce([]),J=u(0),V=u(1);let te,ae;const{y,isScrolling:U}=Lt(p),Se=Re(p),{width:Qe,height:Ue}=Dt(),Xe=Ot({touch:!1,target:p}),{pressed:Z}=Vt({touch:!1,target:p}),{currentTouchEvent:He}=jt(p),{mobileActive:Ee}=Ve(),ve=Rt(p,!1),le=H(()=>He.value==="onTouchStart"||He.value==="onTouchMove"),$e=H(()=>y.value>0?"#0173ff":"#df2a4c"),oe=H(()=>{var d;const a=_.value.getTime(),l=r.TIME_OFFSET*r.HEIGHT-1;let o=((d=s.value)==null?void 0:d.timestamp)||a;return y.value===0&&(o=a),s.value&&(s.value.timestamp=o),{px:l,timestamp:o}}),qe=H(()=>v.value.type==="seconds"),Fe=H(()=>r.HEIGHT*v.value.labelInterval),Ye=H(()=>v.value.pxPerSecond*x.value+K.value),Je=H(()=>v.value.pxPerSecond*x.value-R.value*r.HEIGHT-3+K.value),Ze=H(()=>{let a=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${r.WIDTH} ${Fe.value}" vector-effect="non-scaling-stroke" stroke-width="${1/(window.devicePixelRatio||1)}px" shape-rendering="crispEdges">`;if(!i.value)for(let l=0;l<v.value.labelInterval;l++){const o=l%v.value.labelInterval==0,d=0,g=o?4:l%v.value.bigTickInterval===0?2:1,m=l*r.HEIGHT+r.HEIGHT/2;a+=`<line x1="${d}" y1="${m}" x2="${2*g}" y2="${m}" stroke="${f.value==="light"?"#5b5b5b":"#888888"}" stroke-opacity="100%"/>`}return a+="</svg>",encodeURIComponent(a)}),Ke=H(()=>{var l;Qe.value,w==null||w.value;const a=(l=p.value)==null?void 0:l.getBoundingClientRect();return Ue.value-((a==null?void 0:a.top)||0)}),v=H(()=>ot(V.value));Y(i,a=>{ve.value=a,O("is-loading",a)}),Y(F,a=>{if(a){if(a.getTime()===oe.value.timestamp)return;a==null||a.setSeconds(0,0),de(a)}}),Y(Xe.y,(a,l)=>{if(Z.value&&a!==l&&p.value){let o=Math.abs(a-l);a<l&&(o=o*-1),p.value.scrollTop=p.value.scrollTop-=o}}),Y(U,a=>{O("is-scrolling",a),!a&&S.value&&(S.value=!1)}),Y(y,(a,l)=>{var g,m;if(a===0&&ne(-h.value.length),a!==l)if(a===0)k.value={timestamp:oe.value.timestamp,live:!0};else{const M=(a-l)*v.value.timeMsPerPx,L=S.value?k.value.timestamp:k.value.timestamp-M;k.value={timestamp:L,live:!1}}const d=(((g=p.value)==null?void 0:g.scrollHeight)||0)-(((m=p.value)==null?void 0:m.clientHeight)||0)-r.OFFSET*r.HEIGHT;a>=d&&ne(r.OFFSET)}),Y(V,async()=>{await pe(),y.value>0&&de(k.value.timestamp)});const et=()=>{V.value!==5&&(U.value||(V.value=(V.value||1)+1))},tt=()=>{V.value!==1&&(U.value||(V.value=(V.value||1)-1))},ke=a=>{var o;const l=(Ke.value||((o=p.value)==null?void 0:o.clientHeight)||0)+r.OFFSET*r.HEIGHT;a!==void 0?J.value+a*r.HEIGHT>=l&&(J.value+=a*r.HEIGHT):J.value=l},ne=(a,l,o)=>{var M;if(a===0)return;const d=Math.abs(a);let g=n.value.length-d,m=a<0;if(l){m||(m=!0,a=-a);for(let L=0;L<d;L++){const D=n.value[0],ue=D.index,W=D.timestamp,X=ue-1,q={index:X,format:v.value.type,timestamp:W+v.value.timeMsPerTick,label:X%v.value.labelInterval==0};n.value.unshift(q)}}if(ke(a),m)g!==0&&d===1?n.value.pop():n.value.splice(g,d),h.value=[];else{const L=(((M=p.value)==null?void 0:M.clientHeight)||0)+r.OFFSET*r.HEIGHT,D=Math.ceil(L/r.HEIGHT),ue=n.value.length>=D?0:D-n.value.length+1;for(let W=0;W<d;W++){const X=n.value[n.value.length-1],ce=X.index+1,ze={index:ce,format:v.value.type,timestamp:X.timestamp-v.value.timeMsPerTick,label:ce%v.value.labelInterval==0};W>=ue&&h.value.push(ze),n.value.push(ze)}}},at=a=>{let l;a&&typeof a!="number"&&(a=a.getTime()),a||(a=_.value.getTime());const o=n.value.map(m=>m.timestamp),d=kt(o,a),g=n.value.find(m=>m.timestamp===d.timestamp);return g&&(l={...g}),l},lt=a=>{typeof a!="number"&&(a=a.getTime());const l=oe.value.timestamp-a,o=new Date(oe.value.timestamp-l);return{y:l/v.value.timeMsPerTick*r.HEIGHT,timestamp:o.getTime()}},ot=a=>{switch(a){case 1:return Be;case 2:return je;case 3:return We;case 4:return Ne}return Ie},st=a=>new Promise(l=>{var X;it();let o=_.value.getTime();a&&(o=typeof a=="object"?a.getTime():a);const d=r.TIME_OFFSET*v.value.timeMsPerTick,g=new Date(o+d),M=rt(g).date.getTime(),L=Math.ceil(J.value/r.HEIGHT);for(let q=0;q<L;q++){const ce={index:q,format:v.value.type,timestamp:M-q*v.value.timeMsPerTick,label:q%v.value.labelInterval==0};n.value.push(ce)}const D=at(o);D&&(A.value=D.timestamp-o,s.value=D,s.value.timestamp=o);let W=(((X=s.value)==null?void 0:X.index)||0)*r.HEIGHT-r.TIME_OFFSET*r.HEIGHT;A.value<0?W+=A.value/v.value.timeMsPerPx:A.value>0&&(W-=A.value/v.value.timeMsPerPx),T.value=-(r.HEIGHT/2)-W,l()}),it=()=>{R.value=0,N.value=0,x.value=0,C.value=0,n.value=[]},rt=a=>{switch(v.value.type){case"seconds":return Ft(a);case"two-minutes":return $t(a);case"fifteen-minutes":return Et(a);case"thirty-minutes":return Ht(a);case"hours":return St(a)}},de=async(a,l="smooth",o=!1)=>{var g;if(a===0){(g=p.value)==null||g.scrollTo({top:0,behavior:"smooth"});return}S.value=o;const d=lt(a).y;if(d>=600){const m=r.OFFSET*v.value.timeMsPerTick,M=m/v.value.timeMsPerPx,L=typeof a=="object"?a.getTime():a;await pe(!0,L+m),S.value=!0,k.value.timestamp=L,he(()=>{var D;return(D=p.value)==null?void 0:D.scrollTo({top:M,behavior:l})});return}he(()=>{var m;return(m=p.value)==null?void 0:m.scrollTo({top:d,behavior:l})})},pe=async(a,l)=>{i.value=!0;const o=()=>{const m=new Date;return m.setMilliseconds(0),m};await new Promise(m=>{const M=new Date,L=1e3-M.getMilliseconds();setTimeout(()=>{new Date().getSeconds()===M.getSeconds()?setTimeout(m,1):m()},L)});const g=o();Q.value=g,_.value=g,mt(),ct(),await st(l||g),i.value=!1},nt=()=>{clearInterval(te),clearInterval(ae)},ut=()=>{const a=new Date;a.setMilliseconds(0),_.value=a,C.value++,!(i.value||ve.value||Z.value||le.value)&&(y.value===0?(x.value=C.value,k.value={timestamp:a.getTime(),live:!0}):y.value>0&&!U.value&&(console.log("updateClock"),x.value++,k.value={timestamp:k.value.timestamp+1e3,live:!1}))},ct=()=>{clearInterval(te),te=setInterval(ut,1e3)},mt=()=>{clearInterval(ae),ae=setInterval(vt,v.value.timeMsPerTick)},vt=()=>{if(i.value||ve.value||Z.value||le.value)return;const a=new Date;a.setMilliseconds(0),Q.value=a,N.value++,y.value===0?(ne(N.value-R.value,!0),s.value&&(s.value.index-=N.value-R.value),R.value=N.value):y.value>0&&!U.value&&(console.log("updateRotateTime"),ne(1,!0),R.value++,s.value&&s.value.index--)};return xe(()=>{i.value=!0,ke(),pe(),i.value=!1}),pt(()=>{nt()}),(a,l)=>(c(),P("div",Bt,[E(Gt,null,{default:z(()=>[ye(E(ie,{disabled:t(i)||t(U)||t(Z)||t(le),icon:"",class:"scroll-to-top z-10",size:"x-small",color:"#df2a4c",onClick:l[0]||(l[0]=o=>de(0))},{default:z(()=>[E(re,{size:"20"},{default:z(()=>[se(B(t(yt)),1)]),_:1})]),_:1},8,["disabled"]),[[ft,!t(k).live]])]),_:1}),b("div",{class:"flex flex-row timeline-btns z-10",style:I({right:t(Ee)?void 0:"20px",bottom:t(Ee)?void 0:"20px"})},[E(ie,{disabled:t(i)||t(V)===1||t(U)||t(Z)||t(le),icon:"",class:"zoom-button",onClick:fe(tt,["prevent"])},{default:z(()=>[E(re,{size:"20"},{default:z(()=>[se(B(t(bt)),1)]),_:1})]),_:1},8,["disabled"]),E(ie,{disabled:t(i)||t(V)===5||t(U)||t(Z)||t(le),icon:"",class:"ml-2 zoom-button",onClick:fe(et,["prevent"])},{default:z(()=>[E(re,{size:"20"},{default:z(()=>[se(B(t(Pt)),1)]),_:1})]),_:1},8,["disabled"])],4),b("div",Qt,[E(At,{active:t(i),indeterminate:t(i),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"])]),b("div",{class:"timeline-annotation z-2",style:I({top:`${t(oe).px}px`,backgroundColor:t($e)})},[b("div",{ref:"annotationLabel",class:"timeline-annotation-label",style:I({backgroundColor:t($e),width:t(i)?"20px":"60px",borderRadius:t(i)?"30px":void 0,left:"9px"})},[t(i)?(c(),j(Te,{key:0,indeterminate:"",color:"white",size:"10",width:"2"})):(c(),P("div",Ut,B(t(k).live?"LIVE":t(De)(t(k).timestamp,"HH:mm:ss")),1))],4)],4),b("div",{ref_key:"timeline",ref:p,class:"timeline hide-scrollbar disable-overflow-scroll w-full h-full relative",style:I({cursor:t(i)?"default":t(Z)?"grabbing":"grab"})},[b("div",{class:"timeline-overlay z-1 pointer-events-none",style:I({width:`${t(Se).width.value}px`,height:`${t(Se).height.value}px`})},null,4),a.segment==="0"?(c(),P("div",Xt,[b("div",{class:"timeline-scale",style:I({height:`${t(J)}px`,width:`${t(r).WIDTH}px`,maskImage:`url('data:image/svg+xml,${t(Ze)}')`,maskSize:`${t(r).WIDTH}px ${t(Fe)}px`,maskPosition:`0px ${t(T)+t(Ye)}px`})},null,4),(c(!0),P(be,null,Pe(t(n),(o,d)=>(c(),P("div",{key:o.index,"data-tick-index":o.index,class:"tick-container flex justify-center items-center absolute",style:I({height:`${t(r).HEIGHT}px`,top:`${t(T)+t(Je)+d*t(r).HEIGHT}px`})},[b("div",{"data-tick-index":`${o.index}`,class:"tick-line relative"},[o.label&&!t(i)?(c(),P("div",Jt,B(t(De)(o.timestamp,t(qe)?"HH:mm:ss":"HH:mm")),1)):ee("",!0)],8,Yt)],12,qt))),128))])):(c(),P("div",Zt))],4)]))}}),ea=we(Kt,[["__scopeId","data-v-b788f197"]]),ta={class:"vue-ios13-segmented-control"},aa=["id","name","value"],la=["for"],oa=me({__name:"VSegmentedControl",props:{modelValue:{},segments:{}},emits:["update:modelValue"],setup(e,{emit:$}){const G=e,O=$,f=u(0),{modelValue:F,segments:w}=_e(G),x=H({get(){return F.value},set(s){O("update:modelValue",s)}}),C=H(()=>w.value.findIndex(s=>s.id===F.value)),_=H(()=>{let s=f.value*C.value;return f.value*C.value<0&&(s=0),`transform:translateX(${s}px)`}),T=()=>{he(()=>{const s=document.querySelector(`input[type='radio'][value='${F.value}']`);f.value=s&&s.offsetWidth})};return Y([w,F],()=>{T()},{deep:!0}),Mt(window,"resize",T),(s,i)=>(c(),P("div",ta,[b("span",{class:"selection-pill",style:I(t(_))},null,4),(c(!0),P(be,null,Pe(t(w),h=>(c(),P("div",{key:h.id,class:"option"},[ye(b("input",{id:h.id,"onUpdate:modelValue":i[0]||(i[0]=S=>Oe(x)?x.value=S:null),type:"radio",name:h.title,value:h.id},null,8,aa),[[ht,t(x)]]),b("label",{for:h.id,class:"w-full cursor-pointer"},[b("span",{style:I(t(x)===h.id?"color: var(--color-segment-text);":"color: var(--color-segment-disabled-text)")},B(h.title),5)],8,la)]))),128))]))}}),sa={key:0,class:"w-full flex items-center justify-center mt-10"},ia={class:"flex flex-col justify-center items-center"},ra=me({__name:"VCameraCarousel",props:{showLabel:{type:Boolean,default:!1}},setup(e){const $=new Me,G=Ae(),O=e,{showLabel:f}=_e(O),F=u({page:1,pageSize:-1}),{data:w,isLoading:x}=$.getCamerasQuery(F),C=H(()=>{var _;return(_=w.value)==null?void 0:_.result.findIndex(T=>T.name===G.params.cameraname)});return(_,T)=>{const s=Ge,i=gt("router-link");return t(x)?(c(),P("div",sa,[E(Te,{color:"#df2a4c",indeterminate:""})])):(c(),j(Nt,{key:1,"model-value":t(C),class:"mt-3","show-arrows":"",mandatory:"force"},{default:z(()=>{var h;return[(c(!0),P(be,null,Pe(((h=t(w))==null?void 0:h.result)||[],(S,R)=>(c(),j(It,{key:S.name,value:R},{default:z(({toggle:N,isSelected:Q})=>[b("div",ia,[E(i,{to:`/cameras/${S.name}`,onClick:N},{default:z(()=>[ye(E(s,{class:"ma-3","current-camera":S.name,"border-radius":8,border:!1,target:"snapshot",style:{width:"140px"}},null,8,["current-camera"]),[[Wt]])]),_:2},1032,["to","onClick"]),t(f)?(c(),P("div",{key:0,class:ge(["add-transition slide-item-title",{"slide-item-title-active":Q}])},B(S.name||_.$t("general.loading")),3)):ee("",!0)])]),_:2},1032,["value"]))),128))]}),_:1},8,["model-value"]))}}}),na=we(ra,[["__scopeId","data-v-ec891350"]]),ua={key:0,class:"flex items-center justify-center w-full h-full"},ca={key:1,class:"w-full h-full"},ma={class:"absolute z-5 left-1 top-2"},va={class:"left-content"},da={key:0,class:"timeline-toggle"},pa={class:"flex flex-col items-center h-full sidebar camera-no-outside"},fa={key:0,class:"sidebar-header px-1 py-3 relative"},ha=me({__name:"Camera",setup(e){const $=new Me,G=Ae(),{desktopActive:O,mobileActive:f,tabletActive:F,extraSmallMobileActive:w}=Ve(),{t:x}=zt.global,C=u(new Date),_=u(),T=u(0),s=u("0"),i=u(!1),h=u(null),S=u(!1),R=u(!1),N=xt([{title:x("views.camera.timeline"),id:"0"},{title:x("views.camera.detections"),id:"1"}]),Q=Re(_),A=H(()=>G.params.cameraname),{data:K,isLoading:k}=$.getCameraQuery(A);return Y(f,p=>{p&&(i.value=!0)},{immediate:!0}),xe(async()=>{setTimeout(()=>{_.value=document.querySelector(".player-container-main")},100)}),(p,n)=>{const J=Ge,V=na,te=oa,ae=ea;return c(),P("main",{class:ge(["w-full h-full",{"p-3":!t(f)}])},[!t(K)||t(k)?(c(),P("div",ua,[E(Te,{color:"#df2a4c",indeterminate:""})])):(c(),P("div",ca,[b("div",{class:ge(["relative z-5 w-full h-full flex flex-col md:flex-row overflow-hidden",{"gap-4":t(O)}])},[b("div",ma,[t(w)?(c(),j(ie,{key:0,size:"32",icon:"",density:"compact",variant:"elevated",class:"no-drag camera-no-outside opacity-50",onClick:n[0]||(n[0]=fe(y=>p.$router.push("/cameras"),["prevent"]))},{default:z(()=>[E(re,{size:"24"},{default:z(()=>[se(B(t(Le)),1)]),_:1})]),_:1})):ee("",!0)]),b("div",va,[(c(),j(J,{key:t(A),"show-title":"",settings:"",share:"",snapshot:"",target:"stream","current-camera":t(K).name,"timeline-scrolling":t(R)||t(S),"border-radius":t(f)?0:3,"enable-control":"",shortcuts:"",motions:"",objects:"",zones:"","auto-hide-control":!1,"source-role":t(K).interface.streamingSource,onResize:n[1]||(n[1]=y=>T.value=y)},null,8,["current-camera","timeline-scrolling","border-radius","source-role"])),(c(),j(_t,null,[t(f)?ee("",!0):(c(),j(V,{key:0,"show-label":"","focus-index":""}))],1024))]),b("div",{class:"right-content",style:I(t(F)?`height: ${t(Q).height.value}px; width: ${t(Q).width.value/3}px; right: ${t(i)?0:-2-t(Q).width.value/3}px`:"")},[t(F)?(c(),P("div",da,[E(ie,{class:"camera-no-outside",color:"#212121",size:"30",variant:"elevated",icon:"",onClick:n[2]||(n[2]=y=>i.value=!t(i))},{default:z(()=>[E(re,{color:"#fff",size:"20"},{default:z(()=>[se(B(t(i)?t(wt):t(Le)),1)]),_:1})]),_:1})])):ee("",!0),b("div",pa,[!t(f)&&!t(F)?(c(),P("div",fa,[(c(),j(te,{key:t(A),modelValue:t(s),"onUpdate:modelValue":n[3]||(n[3]=y=>Oe(s)?s.value=y:null),segments:t(N)},null,8,["modelValue","segments"]))])):ee("",!0),(c(),j(ae,{key:t(A),ref_key:"timeline",ref:h,"date-model":t(C),modifier:t(T),segment:t(s),onIsScrolling:n[4]||(n[4]=y=>R.value=y),onIsLoading:n[5]||(n[5]=y=>S.value=y)},null,8,["date-model","modifier","segment"]))])],4)],2)]))],2)}}}),Za=we(ha,[["__scopeId","data-v-ab440271"]]);export{Za as default};
@@ -1 +0,0 @@
1
- import{C as j,_ as I}from"./VPlayer.DlJrYynC.0.0.34-alpha.1.js";import{e as L,d as M,f as N,h as T,j as D}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{s as P}from"./utils.mAKpSMLY.0.0.34-alpha.1.js";import{j as Q}from"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import{A as B,R as G,e as O,b as F}from"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import{G as R,t as K,r as E,c as C,x as U,b as t,d as s,u as e,P as h,ad as g,R as i,f as m,a9 as d,e as q,k as _,g as u,ab as $,_ as H,ac as z,aa as J,a7 as W}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import{e as X}from"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import{s as Y}from"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import"./qrcode.CoLGEQa3.0.0.34-alpha.1.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./plugins.BbNP66vO.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./draggabilly.B4gt8cuQ.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./get-size.D1dS-IaP.0.0.34-alpha.1.js";import"./unidragger.B5ZpJ0o9.0.0.34-alpha.1.js";import"./ev-emitter.CCoflQaJ.0.0.34-alpha.1.js";import"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";const Z={key:0,class:"camera-events hide-scrollbar flex flex-auto flex-row"},ee={key:1,class:"disabled-text"},te={key:2,class:"camera-events hide-scrollbar flex flex-auto flex-row"},se=["onClick"],ae=R({__name:"VCameraEvents",props:{showAll:{type:Boolean,default:!1},camera:{}},setup(V){const y=V,{camera:a,showAll:f}=K(y),p=E(!0),l=E(null),x=Q(l),n=C(()=>{const o=[];for(let r=0;r<50;r++)o.push({camera:"Kamera 1",title:"Event 1",type:"motion",timestamp:Date.now(),image:void 0});return o}),w=C(()=>f.value||n.value.some(o=>o.camera===(a==null?void 0:a.value))),c=C(()=>Math.ceil(x.width.value/150)),S=o=>{console.log(o)},k=o=>!!(f.value||a!=null&&a.value&&o===a.value);return U(async()=>{await P(1500),p.value=!1}),(o,r)=>{const A=L;return t(),s("div",{ref_key:"main",ref:l,class:"camera-events-container"},[e(p)?(t(),s("div",Z,[(t(!0),s(h,null,g(e(c),(v,b)=>(t(),s("div",{key:b,class:"mx-1 flex flex-col justify-center items-center"},[i(B,{elevation:1,height:"140px",type:"image",class:"camera-event-card"}),i(B,{elevation:0,type:"text",style:{background:"none"}})]))),128))])):!e(p)&&(!e(w)||!e(n).length)?(t(),s("div",ee,[m("span",null,d(o.$t("components.camera_events.no_events")),1)])):(t(),s("div",te,[(t(!0),s(h,null,g(e(n),(v,b)=>(t(),s("div",{key:b,class:"mx-1 text-center"},[k(v.camera)?q((t(),s("div",{key:0,class:"camera-event-card cursor-pointer",onClick:ce=>S(v)},[i(A,{style:{background:"var(--background-img)","border-radius":"5px"},src:v.image,width:"100%",height:"100%","aspect-ratio":"1/1","spinner-size":"15","spinner-width":"2","error-style":"","placeholder-style":"",cover:""},null,8,["src"])],8,se)),[[G]]):_("",!0),r[0]||(r[0]=m("span",{class:"text-sm text-passive"},"12:01:45",-1))]))),128))]))],512)}}}),oe=M(ae,[["__scopeId","data-v-ebd7b0ef"]]),re={class:"page-title"},ne={class:"page-title"},ie={key:"new-camera",class:"w-full flex justify-center items-center mt-3"},le=R({__name:"Cameras",setup(V){const y=new j,{smallMobileActive:a,extraSmallMobileActive:f}=N(),p=T(),{uiSettings:l}=Y(p),x=E({page:1,pageSize:-1}),{data:n,isLoading:w}=y.getCamerasQuery(x);return(c,S)=>{const k=oe,o=I;return t(),s("main",{class:u(["w-full h-full",{"px-0":e(a)}])},[e(l).cameras.showEvents?(t(),s("div",{key:0,class:u(["mb-3 flex items-center",{"px-2":e(a)}]),style:{height:"30px"}},[m("h1",re,d(c.$t("views.cameras.events")),1)],2)):_("",!0),e(l).cameras.showEvents?(t(),s("div",{key:1,class:u(["w-full mb-3",{"px-2":e(a)}])},[i(k,{"show-all":""})],2)):_("",!0),m("div",{class:u(["mb-3 flex items-center",{"px-2":e(a)}]),style:{height:"30px"}},[m("h1",ne,d(c.$t(`views.${String(c.$route.name).toLowerCase()}.title`)),1)],2),i(H,{name:"fade",tag:"div"},{default:$(()=>[e(w)||!e(n)?(t(),s("div",{key:0,class:"grid",style:z(`grid-template-columns: repeat(auto-fit, minmax(${e(a)?"100%":"300px"}, 1fr))`)},[(t(),s(h,null,g(8,r=>i(B,{key:r,elevation:1,type:"image",class:"w-full h-full aspect-video"})),64))],4)):e(n).result.length?(t(),s("div",{key:2,class:"grid",style:z(`grid-template-columns: repeat(auto-fit, minmax(${e(a)?"100%":"300px"}, 1fr)) ${e(n).result.length===1?"50%":""}`)},[(t(!0),s(h,null,g(e(n).result,r=>(t(),s("div",{key:r.name,class:"relative item"},[i(o,{"absolute-title":"","show-title":"","show-tooltips":!1,"clickable-title":"","clickable-container":"","refresh-snapshot":"",settings:"","current-camera":r.name,"border-radius":e(a)?0:3,border:!1,target:"snapshot","button-elevation":"1"},null,8,["current-camera","border-radius"])]))),128))],4)):(t(),s("div",{key:1,class:u({"disabled-text":!0,"px-2":e(a)})},d(c.$t("views.cameras.no_cameras")),3)),m("div",ie,[e(D)(void 0,"admin")&&(!e(l).interface.showBottomBarOnMobile||e(l).interface.showBottomBarOnMobile&&!e(f))?(t(),J(F,{key:0,to:"/new-camera",variant:"text",color:"#df2a4c",icon:""},{default:$(()=>[i(O,{size:"30"},{default:$(()=>[W(d(e(X)),1)]),_:1})]),_:1})):_("",!0)])]),_:1})],2)}}}),Ue=M(le,[["__scopeId","data-v-37b58447"]]);export{Ue as default};
@@ -1 +0,0 @@
1
- import{G as ce,r as f,Q as vt,b as r,d as S,f as i,R as n,ab as l,a7 as W,a9 as g,u as e,p as ee,t as pe,c as N,w as J,ac as ge,aa as L,ad as ve,g as ie,P as fe,_ as ft,k as H,ah as pt,$ as gt,i as ke,m as Re}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import{H as Qe,I as _t,J as wt,s as yt,K as je,D as ht,L as xt,M as bt,N as Vt,O as kt,P as Dt,Q as Ct,R as $t,S as zt,T as Mt,U as Pt,V as St}from"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import{e as X,b as te,o as $e,F as Oe,G as We,f as ye,j as Be,V as Ft,c as Ee,n as Le,H as It,I as At}from"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import{d as de,h as He,s as Ne,f as De,t as he,u as Tt,U as Rt,v as Bt,w as Et}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{F as Ue,a as Lt}from"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import{_ as Pe,C as Ut}from"./VPlayer.DlJrYynC.0.0.34-alpha.1.js";import{H as Ye}from"./react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.1.js";import{T as qe}from"./react-dnd-touch-backend.CC-llxq1.0.0.34-alpha.1.js";import{u as Ge,a as Xe,D as Je}from"./vue3-dnd.CcvZ77YQ.0.0.34-alpha.1.js";import{s as ze}from"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import{l as Ke,q as Ze,j as et,s as tt,e as Qt}from"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./qrcode.CoLGEQa3.0.0.34-alpha.1.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.1.js";import"./plugins.BbNP66vO.0.0.34-alpha.1.js";import"./draggabilly.B4gt8cuQ.0.0.34-alpha.1.js";import"./get-size.D1dS-IaP.0.0.34-alpha.1.js";import"./unidragger.B5ZpJ0o9.0.0.34-alpha.1.js";import"./ev-emitter.CCoflQaJ.0.0.34-alpha.1.js";import"./@react-dnd.CcwRs9xb.0.0.34-alpha.1.js";import"./dnd-core.DXuprW1u.0.0.34-alpha.1.js";import"./redux.CuxFRhX_.0.0.34-alpha.1.js";import"./fast-deep-equal.A6REbYuf.0.0.34-alpha.1.js";const jt={class:"mt-auto flex flex-col"},Ot={class:"relative flex flex-col items-center justify-center"},Wt=ce({__name:"VAudioVisualizer",emits:["listening"],setup(ae,{emit:U}){const q=U,C=f(),$=f(null),B=f(),u=f(!1),d=()=>{var o,s;(o=C.value)==null||o.close(),C.value=void 0,(s=B.value)==null||s.forEach(z=>z.stop()),B.value=void 0,u.value=!1,q("listening",!1)},w=(o,s,z,b,A,j)=>{const k=o.createLinearGradient(s,z,b,A);k.addColorStop(0,"#5b040f"),k.addColorStop(.5,"#b50b21"),k.addColorStop(.9,"#df2a4c"),k.addColorStop(1,"#df6380"),o.lineWidth=j,o.strokeStyle=k,o.beginPath(),o.moveTo(s,z),o.lineTo(b,A),o.stroke(),o.closePath()},y=async()=>{var o;if(u.value)d();else try{C.value&&d();let s;try{s=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(D){console.warn("Can not enable AudioVisualizer",D);return}u.value=!0,q("listening",!0),C.value=new AudioContext;let z=C.value.createAnalyser();z.fftSize=1024,B.value=s.getTracks(),C.value.createMediaStreamSource(s).connect(z);const A=90;let j=3,k;const V=(o=$.value)==null?void 0:o.getContext("2d"),M=()=>{if($.value&&V){const D=[],h=[];V.clearRect(0,0,$.value.width,$.value.height),requestAnimationFrame(M);let m=z.frequencyBinCount,v=new Uint8Array(m);z.getByteFrequencyData(v),D.push(v);for(let P=0;P<D[0].length;P++)h.push(0),D.forEach(R=>{h[P]+=R[P]});const _=$.value.width/2,F=$.value.height/2,T=30;V.beginPath(),V.arc(_,F,T,0,2*Math.PI),V.lineWidth=1,V.stroke(),V.closePath();for(let P=0;P<A;P++){k=h[P]*.4;let R=Math.PI*2/A,E=_+Math.cos(R*P)*T,Y=F+Math.sin(R*P)*T,se=_+Math.cos(R*P)*(T+k),re=F+Math.sin(R*P)*(T+k);w(V,E,Y,se,re,j)}u.value||V.clearRect(0,0,$.value.width,$.value.height)}};M()}catch(s){d(),console.error(s)}};return vt(()=>{d()}),(o,s)=>(r(),S("div",jt,[i("div",Ot,[n(te,{class:"mic-button",variant:"elevated",color:"white",icon:"",size:"60",onClick:ee(y,["prevent"])},{default:l(()=>[n(X,{size:"35"},{default:l(()=>[W(g(e(Qe)),1)]),_:1})]),_:1}),i("canvas",{ref_key:"canvas",ref:$,height:"300",width:"300"},null,512)])]))}}),Ht=de(Wt,[["__scopeId","data-v-5c30fb5d"]]),Nt=["data-handler-id"],Yt=ce({__name:"VDnDCard",props:{id:{},index:{},camera:{},moveCard:{type:Function}},setup(ae,{expose:U}){const q=He(),C=ae,{camera:$}=pe(C),{uiSettings:B}=ze(q),u=f(),d=f(),w=f(null);let y=null,o=0,s=0;const z=N(()=>B.value.camview.dragDisabled===!1),{x:b,y:A,sourceType:j}=Ke(),{top:k,left:V}=Ze(w),[M,D]=Ge({accept:"camera",collect(x){return{handlerId:x.getHandlerId()}},hover(x,oe){var be;if(!u.value)return;const le=x.index,ue=C.index;if(le===ue)return;const _e=(be=u.value)==null?void 0:be.getBoundingClientRect(),K=(_e.bottom-_e.top)/2,xe=oe.getClientOffset().y-_e.top;le<ue&&xe<K||le>ue&&xe>K||(C.moveCard(le,ue),x.index=ue)}}),[h,m]=Xe({type:"camera",canDrag(){return z.value},item:()=>({id:C.id,index:C.index}),collect:x=>({isDragging:x.isDragging()})}),{handlerId:v}=pe(M.value),_=N(()=>h.value.isDragging),F=N(()=>_.value&&j.value==="touch"),T=N(()=>e(_)?0:1);J(F,x=>{x?(y=P(),o=b.value-V.value,s=A.value-k.value):(E(y),y=null)}),J([b,A],()=>{R(y,o,s)});const P=()=>{if(w.value){const x=w.value.cloneNode(!0);return x.classList.add("drag-preview"),document.body.appendChild(x),x}return null},R=(x,oe,le)=>{x&&(x.style.left=`${b.value-oe}px`,x.style.top=`${A.value-le}px`)},E=x=>{x&&document.body.removeChild(x)},Y=x=>{u.value=m(D(x))};return U({togglePlayerMute:x=>{var oe;(oe=d.value)==null||oe.toggleMute(x)},toggleMicrophone:async(x,oe)=>{var le;await((le=d.value)==null?void 0:le.toggleMicrophone(x,oe))}}),(x,oe)=>(r(),S("div",{ref_key:"boxEl",ref:w},[i("div",{ref:Y,class:"camera-card",style:ge({opacity:e(T),color:"#000",cursor:e(B).camview.dragDisabled?"default":"grab"}),"data-handler-id":e(v)},[n(Pe,{ref_key:"playerRef",ref:d,"current-camera":e($).name,"border-radius":0,target:"stream","show-camera-name":"","enable-control":"","auto-hide-control":"","source-role":e($).interface.streamingSource,"show-mode":!1},null,8,["current-camera","source-role"])],12,Nt)],512))}}),qt=de(Yt,[["__scopeId","data-v-f1c0f202"]]),Gt={class:"conference"},Xt=ce({__name:"VDnD",props:{cameras:{},dbCameras:{},noDrag:{type:Boolean}},emits:["drag"],setup(ae,{expose:U,emit:q}){const{isTouch:C}=Ne(),{smallMobileActive:$}=De(),B=q,u=ae,{cameras:d,dbCameras:w,noDrag:y}=pe(u),o=f(null),s=f(null),z=f(2),b=f([]),A=f(),j=f(!1);let k;const V=et(s),{isFullscreen:M,toggle:D}=tt(o),{width:h}=Qt(),m=N(()=>y.value||j.value),v=N(()=>{if($.value)return"100%";const R=V.width.value-z.value*2,E=b.value.length,Y=Math.ceil(Math.sqrt(E)),se=(R-(Y+1)*z.value)/Y;return`${Math.floor(se)}px`});J(h,(R,E)=>{R!==E&&(j.value=!0,clearTimeout(k),k=setTimeout(()=>{j.value=!1},100))}),J(d,R=>{b.value=he(R).sort((E,Y)=>E.index-Y.index)},{immediate:!0,deep:!0});const _=(R,E)=>{const Y=b.value[R];b.value.splice(R,1),b.value.splice(E,0,Y),b.value=b.value.map((se,re)=>(se.index=re,se)).sort((se,re)=>se.index-re.index),B("drag",b.value)};return U({toggleFullscreen:async()=>{await D()},togglePlayerMute:R=>{for(const E of A.value||[])E.togglePlayerMute(R)},togglePlayerMicrophone:async(R,E)=>{for(const Y of A.value||[])await Y.toggleMicrophone(R,E)},isFullscreen:M,selectedCameras:b}),(R,E)=>(r(),L(e(Je),{backend:e(C)?e(qe):e(Ye)},{default:l(()=>[i("div",{ref_key:"cameraDnd",ref:o,class:"scenary"},[i("div",Gt,[n(ft,{ref_key:"dishEl",ref:s,name:"list",tag:"div",class:"dish"},{default:l(()=>[(r(!0),S(fe,null,ve(e(b),(Y,se)=>(r(),L(qt,{id:Y.cameraId,ref_for:!0,ref_key:"dndCards",ref:A,key:Y.cameraId,index:se,camera:e(w).find(re=>re._id===Y.cameraId),"move-card":_,style:ge({width:e(v)}),class:ie(["dnd-card",{"no-transition":e(m)}])},null,8,["id","index","camera","style","class"]))),128))]),_:1},512)])],512)]),_:1},8,["backend"]))}}),Jt=de(Xt,[["__scopeId","data-v-bb21ec2b"]]),Kt={class:"camera-snapshot"},Zt={class:"camera-info flex flex-row items-center"},ea={class:"text-passive truncate"},ta=ce({__name:"VViewDrag",props:{camera:{},isDropped:{type:Boolean},canDrag:{type:Boolean}},setup(ae){const U=ae,{isDropped:q,camera:C,canDrag:$}=pe(U),B=f(null);let u=null,d=0,w=0;const{x:y,y:o,sourceType:s}=Ke(),{top:z,left:b}=Ze(B),[A,j]=Xe(()=>({type:"camera",options:{dropEffect:"copy"},item:C.value,canDrag:$.value,collect:m=>({style:{opacity:m.isDragging()?.4:1},isDragging:m.isDragging()})})),k=N(()=>A.value.isDragging),V=N(()=>k.value&&s.value==="touch");J(V,m=>{m?(u=M(),d=y.value-b.value,w=o.value-z.value):(h(u),u=null)}),J([y,o],()=>{D(u,d,w)});const M=()=>{if(B.value){const m=B.value.cloneNode(!0);return m.classList.add("drag-preview"),document.body.appendChild(m),m}return null},D=(m,v,_)=>{m&&(m.style.left=`${y.value-v}px`,m.style.top=`${o.value-_}px`)},h=m=>{m&&document.body.removeChild(m)};return(m,v)=>{const _=Pe;return r(),S("div",{ref_key:"boxEl",ref:B},[i("div",{ref:e(j),style:ge({...e(A).style,cursor:e(q)?"default":"grab"}),class:"drag-box p-2 flex flex-row items-center relative"},[n(X,{size:"20",class:"text-passive mr-2"},{default:l(()=>[W(g(e(_t)),1)]),_:1}),i("div",Kt,[n(_,{"current-camera":e(C).name,"border-radius":6,target:"snapshot","show-mode":!1},null,8,["current-camera"])]),i("div",Zt,[i("span",ea,g(e(C).name),1),e(q)?(r(),L(X,{key:0,size:"25",class:"ml-auto text-green mr-4"},{default:l(()=>[W(g(e(wt)),1)]),_:1})):H("",!0)])],4)],512)}}}),aa=de(ta,[["__scopeId","data-v-7dfa63f3"]]),Me={WIDTH:400},sa={class:"camera-view-edit flex flex-col p-2"},la={class:"mb-4 text-lg"},oa={class:"text-passive mb-5 mt-5"},ra={class:"camera-container py-3"},na=ce({__name:"VViewSidebar",props:{cameras:{},droppedCameras:{},title:{}},setup(ae){pt(w=>({"7ea40162":e(B)}));const U=ae,{cameras:q,droppedCameras:C,title:$}=pe(U),B=f(`${Me.WIDTH}px`),u=f(!1),d=w=>C.value.some(y=>y.name===w.name);return(w,y)=>{const o=aa;return r(),S("div",sa,[i("b",la,g(e($)),1),i("span",oa,g(w.$t("components.view_box.available_streams")),1),i("div",ra,[(r(!0),S(fe,null,ve(e(q),(s,z)=>(r(),S("div",{key:z,class:"mb-4"},[n(o,{camera:s,"is-dropped":d(s),"can-drag":!d(s),class:ie({shake:e(u)})},null,8,["camera","is-dropped","can-drag","class"])]))),128))])])}}}),ia=de(na,[["__scopeId","data-v-420802a2"]]),ca={key:0,class:"overlay-button-text truncate",color:"#fff"},da={key:1,class:"w-full h-full flex items-center justify-center"},ua=ce({__name:"VViewCard",props:{lastDroppedCamera:{},editMode:{type:Boolean},cameras:{},droppedCameras:{},onDrop:{type:Function}},emits:["drop","remove"],setup(ae,{expose:U,emit:q}){const{desktopActive:C}=De(),$=q,B=ae,{lastDroppedCamera:u,editMode:d,cameras:w,droppedCameras:y}=pe(B),o=f(null),s=f(),{width:z}=et(o),[b,A]=Ge({accept:"camera",drop:B.onDrop,collect:v=>({isOver:v.isOver(),canDrop:v.canDrop()&&u.value===void 0}),canDrop:()=>u.value===void 0}),j=N(()=>b.value.canDrop&&b.value.isOver),k=N(()=>d.value?j.value?"#171717":"#202020":"#000"),V=N(()=>z.value<=200),M=N(()=>w.value.filter(v=>!D(v))),D=v=>y.value.some(_=>_.name===v.name);return U({togglePlayerMute:v=>{var _;(_=s.value)==null||_.toggleMute(v)},toggleMicrophone:async(v,_)=>{var F;await((F=s.value)==null?void 0:F.toggleMicrophone(v,_))}}),(v,_)=>(r(),S("div",{ref:e(A),style:ge({backgroundColor:e(k)}),class:"overflow-hidden"},[e(u)?(r(),S("div",{key:0,ref_key:"container",ref:o,class:"w-full h-full flex items-center justify-center relative"},[e(d)?(r(),L(te,{key:0,icon:e(V),size:e(V)?32:void 0,class:"overlay-button flex items-center justify-center",color:"#df2a4c",onClick:_[0]||(_[0]=ee(F=>$("remove",e(u)),["prevent"]))},{default:l(()=>[n(X,{size:"18"},{default:l(()=>[W(g(e(yt)),1)]),_:1}),e(V)?H("",!0):(r(),S("span",ca,g(e(u).name),1))]),_:1},8,["icon","size"])):H("",!0),n(gt,{name:"fade",mode:"in-out"},{default:l(()=>[e(u)?(r(),L(Pe,{key:0,ref_key:"playerRef",ref:s,class:ie({"camera-overlay":e(d)}),"current-camera":e(u).name,"border-radius":0,target:e(d)?"snapshot":"stream",style:ge({opacity:e(d)?.2:1}),"show-camera-name":!e(d),"enable-control":!e(d),"auto-hide-control":"","source-role":e(u).interface.streamingSource,"show-mode":!1},null,8,["class","current-camera","target","style","show-camera-name","enable-control","source-role"])):H("",!0)]),_:1})],512)):!e(C)&&e(d)?(r(),S("div",da,[n(te,{icon:"",size:"32",color:"#df2a4c"},{default:l(()=>[n(X,{size:"18",color:"#ffff"},{default:l(()=>[W(g(e(je)),1)]),_:1}),n($e,{activator:"parent",class:"select-menu"},{default:l(()=>[n(Oe,{"onClick:select":_[1]||(_[1]=F=>$("drop",F.id))},{default:l(()=>[(r(!0),S(fe,null,ve(e(M),(F,T)=>(r(),L(ye,{key:T,value:F},{default:l(()=>[n(We,null,{default:l(()=>[W(g(F.name),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})])):H("",!0)],4))}}),ma=de(ua,[["__scopeId","data-v-4725d64a"]]),va=ce({__name:"VView",props:{cameras:{},viewSize:{},cards:{},title:{},editMode:{type:Boolean,default:!1}},emits:["drop","remove"],setup(ae,{expose:U,emit:q}){const{isTouch:C}=Ne(),{desktopActive:$}=De(),B=q,u=ae,{cameras:d,editMode:w,viewSize:y,cards:o,title:s}=pe(u),z=f(null),b=f(`${Me.WIDTH}px`),A=f(),{isFullscreen:j,toggle:k}=tt(z),V=N(()=>o.value.filter(m=>m.lastDroppedCamera).map(m=>m.lastDroppedCamera));return U({toggleFullscreen:async()=>{await k()},togglePlayerMute:m=>{for(const v of A.value||[])v.togglePlayerMute(m)},togglePlayerMicrophone:async(m,v)=>{for(const _ of A.value||[])await _.toggleMicrophone(m,v)},isFullscreen:j}),(m,v)=>{const _=ia;return r(),L(e(Je),{backend:e(C)?e(qe):e(Ye)},{default:l(()=>[i("div",{ref_key:"cameraView",ref:z,class:"view-container flex items-center mx-2",style:ge({width:e(w)&&e($)?`calc(100% - ${e(b)})`:void 0})},[i("div",{class:ie(`view-wrap w-full camera-view-${e(y)}`)},[(r(!0),S(fe,null,ve(e(o),(F,T)=>(r(),L(ma,{ref_for:!0,ref_key:"dragContainer",ref:A,key:T,class:ie(`div${T+1}-${e(y)}`),"last-dropped-camera":F.lastDroppedCamera,cameras:e(d),"dropped-cameras":e(V),"edit-mode":e(w),onDrop:P=>B("drop",T,P),onRemove:v[0]||(v[0]=P=>B("remove",P))},null,8,["class","last-dropped-camera","cameras","dropped-cameras","edit-mode","onDrop"]))),128))],2)],4),e(w)&&e($)?(r(),L(_,{key:0,cameras:e(d),"dropped-cameras":e(V),title:e(s),class:"view-box",style:ge({"margin-right":e(w)?"0px":`-${e(Me).WIDTH}px`})},null,8,["cameras","dropped-cameras","title","style"])):H("",!0)]),_:1},8,["backend"])}}}),fa=de(va,[["__scopeId","data-v-8ef83e91"]]),pa={class:"w-full h-full"},ga={class:"camview-topbar p-2 flex flex-row items-center"},_a={class:"flex w-full justify-start items-center"},wa={class:"camview-title truncate"},ya={style:{margin:"5px"}},ha={class:"flex flex-row w-full justify-start items-center"},xa={class:"menu-item"},ba={class:"flex w-full justify-start items-center"},Va={class:"camview-title truncate"},ka={style:{margin:"5px"}},Da={class:"flex flex-row w-full justify-start items-center"},Ca={class:"icon-wrapper"},$a={class:"menu-item ml-2"},za={class:"flex flex-row w-full justify-start items-center"},Ma={class:"icon-wrapper"},Pa={class:"menu-item ml-2"},Sa={key:9,class:"flex flex-row items-center"},Fa={class:"text-white"},Ia={class:"h-full w-full inline-size mb-safe"},Aa={key:0,class:"h-full w-full flex items-center justify-center"},Ta={key:1,class:"w-full h-full"},Ra={key:0,class:"w-full h-full relative"},Ba={key:1,class:"w-full h-full flex flex-row"},Ea={key:2,class:"flex flex-col items-center justify-center w-full h-full"},La={class:"mt-5",style:{color:"#525252"}},Ua={class:"flex flex-col h-full w-full"},Qa={class:"relative"},ja={for:"name",class:"v-label"},Oa={key:0,class:"text-red text-center mb-5"},Wa={class:"view-scroll-container"},Ha={class:"view-select-container"},Na=["onClick"],Ya={class:"flex flex-col h-full w-full"},qa={class:"relative"},Ga={for:"name",class:"v-label"},Xa={key:0,class:"text-red text-center mb-5"},Ja={class:"flex flex-col"},Ka=ce({__name:"Camview",setup(ae){var Se;const U=new Rt,q=new Ut,{smallMobileActive:C}=De(),$=Tt(),B=He(),{uiSettings:u}=ze(B),{loginState:d}=ze($),w=f(),y=f(),o=f(),s=f({}),z=f(!1),b=f({page:1,pageSize:-1}),A=f([1,4,6,7,9,10,12,13,15,16,20,26]),j=f(!1),k=f(!1),V=f(!0),M=f(!1),D=f(!1),h=f(!1),m=f(!1),v=f(!1),_=f(!1),F=f([]),T=f([]),{data:P,isLoading:R}=q.getCamerasQuery(b),{data:E,isLoading:Y}=U.getViewsQuery(((Se=d.value.user)==null?void 0:Se.username)||"",b),{mutate:se,isPending:re}=U.removeViewQuery(),{mutateAsync:x,isPending:oe}=U.createViewQuery(),{mutateAsync:le,isPending:ue}=U.patchViewQuery(),{mutateAsync:_e}=U.patchViewQuerySilent(),K=N(()=>M.value||h.value||D.value),ne=N(()=>R.value||Y.value||re.value||oe.value||ue.value),xe=N(()=>{var a,t;return((a=y.value)==null?void 0:a.isFullscreen)||((t=y.value)==null?void 0:t.isFullscreen)||!1}),be=N(()=>navigator.mediaDevices!==void 0),I=N(()=>{var t,p;const a=((t=E.value)==null?void 0:t.result.find(Q=>Q._id===u.value.camview.viewid))||((p=E.value)==null?void 0:p.result[0]);return a?(s.value=a,u.value.camview.viewid=a._id):s.value={},a}),Ce=N(()=>K.value&&s.value.viewSize>0?s.value.viewSize:I.value?I.value.viewSize:1);J(d,a=>{U.toggleQueryActivator("getUserQuery",a!==null)}),J([Ce,I,P,K,u],()=>{var t,p,Q;if(((t=I.value)==null?void 0:t.type)==="dnd"&&!M.value&&!h.value)return;const a=Array.from({length:Ce.value}).map((O,Z)=>({accept:"camera",index:Z,lastDroppedCamera:void 0}));if(!h.value&&!m.value)for(const O of((p=I.value)==null?void 0:p.cameras)||[])a[O.index].lastDroppedCamera=(Q=P.value)==null?void 0:Q.result.find(Z=>Z._id===O.cameraId);F.value=a},{deep:!0,immediate:!0}),J(s,a=>{var t,p,Q;if(Object.keys(a).length===0)(t=o.value)==null||t.resetForm(),j.value=!1,k.value=!1;else{for(const[O,Z]of Object.entries(a))(p=o.value)==null||p.setFieldValue(O,Z);a.viewSize&&(j.value=!1),(Q=a.cameras)!=null&&Q.length&&(k.value=!1)}},{deep:!0}),J([m,h],([a,t])=>{(!a&&!t||a)&&(s.value={},j.value=!1)}),J([v,D],()=>{D.value||(T.value=[],s.value={},k.value=!1)}),J(v,a=>{a||(D.value=!1)}),J(D,a=>{var t;a?(T.value=((t=P.value)==null?void 0:t.result.filter(p=>{var Q;return(Q=I.value)==null?void 0:Q.cameras.some(O=>O.cameraId===p._id)}))||[],v.value=!0):(T.value=[],v.value=!1)}),J(T,a=>{a.length&&(k.value=!1)}),J(K,a=>{a&&I.value&&!h.value&&(s.value=he(I.value))}),J(d,a=>{a.user?U.toggleQueryActivator("getUserQuery",!0):U.toggleQueryActivator("getUserQuery",!1)},{immediate:!0,deep:!0});const at=async a=>{if(!I.value||!d.value.user)return;const t=he(I.value);t.cameras=a;const p=await _e({username:d.value.user.username,viewid:t._id,viewData:t});we(p)},st=(a,t)=>{F.value[a].lastDroppedCamera=t},lt=a=>{F.value=F.value.map(t=>{var p;return((p=t.lastDroppedCamera)==null?void 0:p.name)===a.name&&(t.lastDroppedCamera=void 0),t})},ot=async()=>{var p;if(!o.value||!d.value.user)return;const a=T.value.map((Q,O)=>({cameraId:Q._id,index:O}));s.value.cameras=a,s.value.type="dnd",s.value.viewSize=1,o.value.setFieldValue("type","dnd"),o.value.setFieldValue("viewSize",1),o.value.setFieldValue("cameras",a);const t=await o.value.validate();if(t){if(((p=E.value)==null?void 0:p.result.find(Z=>Z.name===s.value.name))&&!D.value){o.value.setFieldError("name","View already exists");return}if(a.length===0){k.value=!0;return}if(!t.valid)return;const O=he(s.value);if(O._id){const Z=await le({username:d.value.user.username,viewid:O._id,viewData:O});we(Z)}else{const Z=await x({username:d.value.user.username,viewData:O});we(Z)}v.value=!1}},rt=async()=>{var t,p;if(!o.value)return;s.value.cameras=[],s.value.type="view",o.value.setFieldValue("type","view"),o.value.setFieldValue("cameras",[]);const a=await o.value.validate();if(a){if((t=E.value)==null?void 0:t.result.find(O=>O.name===s.value.name)){o.value.setFieldError("name","View already exists");return}if(!a.valid){((p=a.results.viewSize)==null?void 0:p.valid)===!1&&(j.value=!0);return}m.value=!1,h.value=!0}},nt=async()=>{if(!o.value||!d.value.user||Object.keys(s.value).length===0)return;const a=F.value.filter(p=>p.lastDroppedCamera).map(p=>({cameraId:p.lastDroppedCamera._id,index:p.index})).sort((p,Q)=>p.index-Q.index);if(!a.length)return;o.value.setFieldValue("name",s.value.name),o.value.setFieldValue("cameras",a);const t=await o.value.validate();if(t!=null&&t.valid){const p=he(s.value);if(p.cameras=a,p._id){const Q=await le({username:d.value.user.username,viewid:p._id,viewData:p});we(Q)}else{const Q=await x({username:d.value.user.username,viewData:p});we(Q)}}else console.error("result",t)},we=a=>{u.value.camview.viewid=a._id,m.value=!1,v.value=!1,h.value=!1,M.value=!1},it=()=>{!I.value||!d.value.user||se({username:d.value.user.username,viewid:I.value._id},{onSuccess:a=>{a.length?u.value.camview.viewid=a[0]._id:u.value.camview.viewid=void 0}})},ct=a=>{u.value.camview.viewid=a._id},dt=async()=>{y.value?await y.value.toggleFullscreen():w.value&&await w.value.toggleFullscreen()},ut=()=>{V.value=!V.value,y.value?y.value.togglePlayerMute(V.value):w.value&&w.value.togglePlayerMute(V.value)},mt=async a=>{y.value?await y.value.togglePlayerMicrophone(a):w.value&&await w.value.togglePlayerMicrophone(a)};return(a,t)=>{const p=Et,Q=Ht;return r(),S("main",pa,[n(e(Lt),{ref_key:"viewVeeForm",ref:o,class:"h-full w-full","validation-schema":e(Bt),"initial-values":e(s)},{default:l(()=>{var O,Z,Fe,Ie,Ae,Te;return[i("div",ga,[!e(h)&&e(I)?(r(),L(te,{key:0,size:"small",variant:"flat",style:{background:"rgba(var(--color-rgb), 0.1)","padding-left":"8px"}},{default:l(()=>[i("div",_a,[e(K)?H("",!0):(r(),L(X,{key:0,size:"18",class:"text-color mr-1"},{default:l(()=>[W(g(e(z)?e(ht):e(xt)),1)]),_:1})),i("span",wa,g(e(I).name),1)]),e(K)?H("",!0):(r(),L($e,{key:0,activator:"parent",width:"324",offset:"5",location:"bottom",class:"select-menu","onUpdate:modelValue":t[0]||(t[0]=c=>z.value=c)},{default:l(()=>[n(Be,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:l(()=>{var c;return[i("div",ya,[(r(!0),S(fe,null,ve(((c=e(E))==null?void 0:c.result)||[],(G,me)=>(r(),L(ye,{key:me,active:G._id===e(I)._id,value:G,style:{"border-radius":"5px !important"},disabled:e(ne),onClick:ee(Ve=>ct(G),["prevent"])},{default:l(()=>[i("div",ha,[i("span",xa,g(G.name),1)])]),_:2},1032,["active","value","disabled","onClick"]))),128))])]}),_:1})]),_:1}))]),_:1})):e(h)&&e(s).name?(r(),L(te,{key:1,size:"small",variant:"flat",style:{background:"rgba(var(--color-rgb), 0.1)","padding-left":"8px"}},{default:l(()=>[i("div",ba,[i("span",Va,g(e(s).name),1)])]),_:1})):H("",!0),t[20]||(t[20]=i("div",{class:"ml-auto"},null,-1)),!e(K)&&((O=e(I))==null?void 0:O.type)==="dnd"?(r(),L(te,{key:2,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[1]||(t[1]=ee(c=>e(u).camview.dragDisabled=!e(u).camview.dragDisabled,["prevent"]))},{default:l(()=>[n(X,{size:"18"},{default:l(()=>[W(g(e(u).camview.dragDisabled?e(bt):e(Vt)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)?(r(),L(te,{key:3,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[2]||(t[2]=ee(c=>ut(),["prevent"]))},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(V)?e(kt):e(Dt)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)&&e(be)?(r(),L(te,{key:4,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[3]||(t[3]=ee(c=>_.value=!0,["prevent"]))},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(Qe)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)?(r(),L(te,{key:5,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[4]||(t[4]=ee(c=>dt(),["prevent"]))},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(xe)?e(Ct):e($t)),1)]),_:1})]),_:1})):H("",!0),!e(K)&&e(I)?(r(),L(te,{key:6,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[5]||(t[5]=ee(c=>it(),["prevent"]))},{default:l(()=>[n(X,{size:"20"},{default:l(()=>[W(g(e(zt)),1)]),_:1})]),_:1})):H("",!0),!e(D)&&!e(M)&&!e(h)&&e(I)?(r(),L(te,{key:7,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text",onClick:t[6]||(t[6]=ee(c=>{var G;return((G=e(I))==null?void 0:G.type)==="dnd"?D.value=!e(D):M.value=!e(M)},["prevent"]))},{default:l(()=>[n(X,{size:"19"},{default:l(()=>[W(g(e(Mt)),1)]),_:1})]),_:1})):H("",!0),!e(D)&&!e(M)&&!e(h)?(r(),L(te,{key:8,class:"disabled-text mr-2",size:"30",rounded:"",density:"compact",variant:"text"},{default:l(()=>[n(X,{size:"22"},{default:l(()=>[W(g(e(je)),1)]),_:1}),n($e,{activator:"parent",offset:"5",location:"bottom",class:"select-menu"},{default:l(()=>[n(Be,{width:"200",style:{border:"1px solid var(--background-timeline)","border-radius":"10px"},elevation:"3"},{default:l(()=>[i("div",ka,[n(ye,{style:{"border-radius":"5px !important"},disabled:e(ne),onClick:t[7]||(t[7]=ee(c=>m.value=!0,["prevent"]))},{default:l(()=>[i("div",Da,[i("div",Ca,[n(X,{size:"20",class:"text-passive"},{default:l(()=>[W(g(e(Pt)),1)]),_:1})]),i("span",$a,g(a.$t("views.camview.new_view")),1)])]),_:1},8,["disabled"]),t[19]||(t[19]=i("div",{class:"my-1"},null,-1)),n(ye,{style:{"border-radius":"5px !important"},disabled:e(ne),onClick:t[8]||(t[8]=ee(c=>v.value=!0,["prevent"]))},{default:l(()=>[i("div",za,[i("div",Ma,[n(X,{size:"20",class:"text-passive"},{default:l(()=>[W(g(e(St)),1)]),_:1})]),i("span",Pa,g(a.$t("views.camview.new_dnd")),1)])]),_:1},8,["disabled"])])]),_:1})]),_:1})]),_:1})):H("",!0),e(M)||e(h)?(r(),S("div",Sa,[n(te,{class:"disabled-text mr-2",size:"small",variant:"flat",border:"",onClick:t[9]||(t[9]=ee(c=>e(M)?M.value=!1:h.value=!1,["prevent"]))},{default:l(()=>[W(g(a.$t("components.form.button.cancel")),1)]),_:1}),n(te,{disabled:e(F).every(c=>c.lastDroppedCamera===void 0),class:"disabled-text",size:"small",color:"#df2a4c",variant:"flat",border:"",onClick:t[10]||(t[10]=ee(c=>nt(),["prevent"]))},{default:l(()=>[i("span",Fa,g(a.$t("components.form.button.save")),1)]),_:1},8,["disabled"])])):H("",!0)]),i("div",{class:ie(["camview-container",{"px-0":e(C)}])},[i("div",Ia,[e(ne)||!e(E)?(r(),S("div",Aa,[n(Ft,{color:"#df2a4c",indeterminate:""})])):(r(),S("div",Ta,[!e(h)&&!e(M)&&(e(D)||((Z=e(I))==null?void 0:Z.type)==="dnd")?(r(),S("div",Ra,[n(Jt,{ref_key:"dndRef",ref:w,cameras:((Fe=e(I))==null?void 0:Fe.cameras)||[],"db-cameras":((Ie=e(P))==null?void 0:Ie.result)||[],"no-drag":e(u).camview.dragDisabled,onDrag:at},null,8,["cameras","db-cameras","no-drag"])])):!e(D)&&(e(h)||e(M)||((Ae=e(I))==null?void 0:Ae.type)==="view")?(r(),S("div",Ba,[(r(),L(fa,{ref_key:"viewRef",ref:y,key:e(u).camview.viewid+(e(h)?"-new":e(M)?"-edit":"-view"),cameras:((Te=e(P))==null?void 0:Te.result)||[],"edit-mode":e(h)||e(M),"view-size":e(h)?e(s).viewSize:e(Ce),title:e(s).name,cards:e(F),onDrop:st,onRemove:lt},null,8,["cameras","edit-mode","view-size","title","cards"]))])):(r(),S("div",Ea,[i("span",La,g(a.$t("views.camview.no_views_configured")),1)]))]))])],2),n(p,{modelValue:e(m),"onUpdate:modelValue":t[12]||(t[12]=c=>ke(m)?m.value=c:null),title:e(K)?a.$t("components.dialog.title.edit_view"):a.$t("components.dialog.title.new_view"),"confirm-text":"components.form.button.next",loading:e(ne),onConfirm:t[13]||(t[13]=c=>rt())},{content:l(()=>[i("div",Ua,[i("div",Qa,[n(e(Ue),{modelValue:e(s).name,"onUpdate:modelValue":t[11]||(t[11]=c=>e(s).name=c),name:"name"},{default:l(({field:c,errorMessage:G,errors:me})=>[i("label",ja,g(a.$t("components.form.label.name")),1),n(Ee,Re({loading:e(ne),variant:"outlined",name:"name",type:"text",density:"compact"},c,{error:me.length>0,"error-messages":G}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),n(Le,{class:"my-5"}),e(j)?(r(),S("span",Oa,g(a.$t("components.form.error.no_view_selected")),1)):H("",!0),i("div",Wa,[i("div",Ha,[(r(!0),S(fe,null,ve(e(A),c=>(r(),S("div",{key:c,class:"view-select-item h-full w-full",onClick:ee(G=>e(s).viewSize=c,["prevent"])},[i("div",{class:ie(["view-select-item-icon w-full h-full p-3",{"selected-view":e(s).viewSize===c}])},[n(X,{class:"disabled-text",style:{width:"100%",height:"100%"}},{default:l(()=>[W(g(`$cuiGrid${c}`),1)]),_:2},1024)],2),i("span",{class:ie(["view-select-item-label disabled-text mt-2 px-2 py-1",{"selected-view-label":e(s).viewSize===c}])},g(c)+" "+g(a.$t("views.camview.cameras")),3)],8,Na))),128))])])])]),_:1},8,["modelValue","title","loading"]),n(p,{modelValue:e(v),"onUpdate:modelValue":t[16]||(t[16]=c=>ke(v)?v.value=c:null),title:e(K)?a.$t("components.dialog.title.edit_dnd"):a.$t("components.dialog.title.new_dnd"),"confirm-text":"components.form.button.save",loading:e(ne),onConfirm:t[17]||(t[17]=c=>ot())},{content:l(()=>[i("div",Ya,[i("div",qa,[n(e(Ue),{modelValue:e(s).name,"onUpdate:modelValue":t[14]||(t[14]=c=>e(s).name=c),name:"name"},{default:l(({field:c,errorMessage:G,errors:me})=>[i("label",Ga,g(a.$t("components.form.label.name")),1),n(Ee,Re({loading:e(ne),variant:"outlined",name:"name",type:"text",density:"compact"},c,{error:me.length>0,"error-messages":G}),null,16,["loading","error","error-messages"])]),_:1},8,["modelValue"])]),n(Le,{class:"mb-10 mt-5"}),e(k)?(r(),S("span",Xa,g(a.$t("components.form.error.no_cameras_selected")),1)):H("",!0),n(Oe,{selected:e(T),"onUpdate:selected":t[15]||(t[15]=c=>ke(T)?T.value=c:null),"select-strategy":"classic",class:"py-0 mb-5",density:"compact"},{default:l(()=>{var c;return[(r(!0),S(fe,null,ve(((c=e(P))==null?void 0:c.result)||[],(G,me)=>(r(),L(ye,{key:me,value:G,active:e(T).some(Ve=>Ve.name===G.name)},{prepend:l(({isActive:Ve})=>[n(It,{start:""},{default:l(()=>[n(At,{"model-value":Ve,color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),default:l(()=>[n(We,null,{default:l(()=>[W(g(G.name),1)]),_:2},1024)]),_:2},1032,["value","active"]))),128))]}),_:1},8,["selected"])])]),_:1},8,["modelValue","title","loading"]),n(p,{modelValue:e(_),"onUpdate:modelValue":t[18]||(t[18]=c=>ke(_)?_.value=c:null),title:a.$t("components.dialog.title.intercom"),loading:e(ne),"hide-confirm-button":""},{content:l(()=>[i("div",Ja,[i("span",null,g(a.$t("components.dialog.message.intercom_info")),1),n(Q,{onListening:mt})])]),_:1},8,["modelValue","title","loading"])]}),_:1},8,["validation-schema","initial-values"])])}}}),Qs=de(Ka,[["__scopeId","data-v-35de00f9"]]);export{Qs as default};
@@ -1,4 +0,0 @@
1
- import{y as $,h as A,f as E,w as I,B as U,d as N}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{G as P,r as b,c as z,S as F,Q as G,b as H,d as j,R as t,u as o,f as S,ab as a,ac as W,i as Z,e as q,v as J,a7 as u,a9 as m,m as K,p as _}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import{L as X,_ as Y,$ as oo,a0 as eo,F as to,E as ao}from"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import{S as no}from"./system.BkLh9FNA.0.0.34-alpha.1.js";import{V as so}from"./VConsole.sVPWAfNY.0.0.34-alpha.1.js";import{s as lo}from"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import{B as io,O as ro,b as y,e as p,P as co}from"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";const mo={class:"w-full h-full"},uo=P({__name:"Console",setup(po){const f=new no,x=$(),L=A(),{extraSmallMobileActive:B}=E(),{uiSettings:r}=lo(L),c=b(null),d=b(),g=b(!1),C=z(()=>({fontSize:r.value.console.zoom}));f.toggleQueryActivator("downloadLogQuery",!1);const{data:w,isLoading:V,suspense:Q}=f.downloadLogQuery(),{mutate:T,isPending:h}=f.clearLogQuery(),v=z(()=>V.value||h.value),D=async()=>{T(void 0,{onSuccess:()=>{g.value=!1}})},M=async()=>{try{if(f.toggleQueryActivator("downloadLogQuery",!0),await Q(),w.value){const n=w.value,e=window.URL.createObjectURL(new Blob([n])),s=document.createElement("a");s.href=e,s.setAttribute("download","camera.ui.log.txt"),document.body.appendChild(s),s.click(),s.remove()}}finally{f.toggleQueryActivator("downloadLogQuery",!1)}},O=()=>{r.value.console.zoom!==8&&r.value.console.zoom--},R=()=>{r.value.console.zoom!==20&&r.value.console.zoom++};return F(()=>{var n,e,s,i;d.value=x.connectToNamespace("/logs"),(n=d.value)==null||n.socket.on("stdout",l=>{var k;(k=c.value)==null||k.writeTerminal(l)}),(e=d.value)==null||e.socket.on("disconnect",()=>{var l;(l=c.value)==null||l.writeTerminal(`
2
- \rWebsocket failed to connect! Is the server running?
3
- \r
4
- \r`)}),(s=d.value)==null||s.socket.on("clear-log",()=>{var l;(l=c.value)==null||l.clearTerminal()}),(i=d.value)==null||i.socket.emit("get-log")}),G(()=>{var n,e;(e=(n=d.value)==null?void 0:n.end)==null||e.call(n)}),(n,e)=>{const s=I;return H(),j("main",mo,[t(so,{ref_key:"consoleRef",ref:c,class:"text-editor",options:o(C)},null,8,["options"]),S("div",{class:"text-editor-buttons flex flex-col",style:W({bottom:o(B)&&o(r).interface.showBottomBarOnMobile?`calc(1rem + ${o(U).HEIGHT}px + env(safe-area-inset-bottom, 0px))`:"calc(1rem + env(safe-area-inset-bottom, 0px))"})},[t(io,null,{default:a(()=>[q(t(y,{icon:"",class:"mb-1 hover-box",onClick:e[0]||(e[0]=i=>{var l;return(l=o(c))==null?void 0:l.scrollToBottom()})},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(X)),1)]),_:1})]),_:1},512),[[J,o(c)&&!o(c).atBottom]])]),_:1}),t(ro,{location:"top center",transition:"fade-transition","close-on-content-click":!1},{activator:a(({props:i})=>[t(co,K(i,{size:"default",icon:"",style:{height:"48px !important"},class:"hover-box"}),{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(Y)),1)]),_:1})]),_:2},1040)]),default:a(()=>[t(y,{key:"1",loading:o(v),color:"success",icon:"",onClick:_(M,["prevent"])},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(oo)),1)]),_:1})]),_:1},8,["loading"]),t(y,{key:"2",loading:o(v),color:"red",icon:"",onClick:e[1]||(e[1]=_(i=>g.value=!0,["prevent"]))},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(eo)),1)]),_:1})]),_:1},8,["loading"]),t(y,{key:"3",loading:o(v),icon:"",disabled:o(r).console.zoom===20,onClick:_(R,["prevent"])},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(to)),1)]),_:1})]),_:1},8,["loading","disabled"]),t(y,{key:"4",loading:o(v),disabled:o(r).console.zoom===8,icon:"",onClick:_(O,["prevent"])},{default:a(()=>[t(p,{size:"20"},{default:a(()=>[u(m(o(ao)),1)]),_:1})]),_:1},8,["loading","disabled"])]),_:1})],4),t(s,{modelValue:o(g),"onUpdate:modelValue":e[2]||(e[2]=i=>Z(g)?g.value=i:null),title:n.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.clear",loading:o(v),onConfirm:e[3]||(e[3]=i=>D())},{content:a(()=>[S("span",null,m(n.$t("components.dialog.message.confirm_clear_log")),1)]),_:1},8,["modelValue","title","loading"])])}}}),Fo=N(uo,[["__scopeId","data-v-b3c06bbb"]]);export{Fo as default};
@@ -1 +0,0 @@
1
- import{a as we,b as at,C as lt,d as it,e as rt,g as ut}from"./VPlayer.DlJrYynC.0.0.34-alpha.1.js";import{_ as ct}from"./VPluginCard.BXrvS7zB.0.0.34-alpha.1.js";import{G as $e,t as Ee,r as l,c as Y,w as X,b as a,d as u,f as s,u as e,a9 as d,k as w,g as G,a7 as R,R as f,ab as g,p as S,aa as O,n as te,i as fe,S as dt,Q as ft,ac as Be,P as Pe,ad as De}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import{X as Fe,k as ce,i as oe,c as Ne}from"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import{i as ze}from"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import{P as ke}from"./plugins.BbNP66vO.0.0.34-alpha.1.js";import{A as Me,M as Ve,i as Ue,d as Ie,z as Je,C as Le,w as Ye,D as Re,E as je,y as mt,f as pt,F as vt}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{e as ae,b as me,V as de,S as gt,U as _t,C as ht,w as yt,F as He,f as qe,H as bt,I as xt,n as wt,x as $t}from"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import{H as se,t as kt,y as It,j as Ct,p as St}from"./highlight.js.ChQi-SWt.0.0.34-alpha.1.js";import{M as Pt}from"./markdown-it.BSp5IUES.0.0.34-alpha.1.js";import{u as Dt}from"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import{t as Vt}from"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import"./qrcode.CoLGEQa3.0.0.34-alpha.1.js";import"./dijkstrajs.D_NXgYpA.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./draggabilly.B4gt8cuQ.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./get-size.D1dS-IaP.0.0.34-alpha.1.js";import"./unidragger.B5ZpJ0o9.0.0.34-alpha.1.js";import"./ev-emitter.CCoflQaJ.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang.DaPxq8EI.0.0.34-alpha.1.js";import"./ace-builds.Cnj3uJ-i.0.0.34-alpha.1.js";import"./@vueform.BsJeH1VL.0.0.34-alpha.1.js";import"./system.BkLh9FNA.0.0.34-alpha.1.js";import"./VConsole.sVPWAfNY.0.0.34-alpha.1.js";import"./types.Cz9TaZAP.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./mdurl.k9Sl0PQj.0.0.34-alpha.1.js";import"./uc.micro.kMc2yuuw.0.0.34-alpha.1.js";import"./entities.C20TfXL6.0.0.34-alpha.1.js";import"./linkify-it.V_1DZtim.0.0.34-alpha.1.js";import"./punycode.js.Dj65hjkv.0.0.34-alpha.1.js";const Lt={class:"w-full"},jt={key:0,class:"w-full"},zt={class:"flex flex-col justify-center items-center mb-5"},Et={for:"restoreInput",class:"cursor-pointer text-center text-sm"},Ft=["accept"],Ot={key:0,class:"text-red text-sm"},At={key:1,class:"w-full flex flex-col items-center justify-center"},Tt={class:"relative mb-4 w-full"},Qt=["src","type"],Bt={class:"flex items-center justify-center"},Nt={class:"mx-2"},Mt={class:"disabled-text"},Ut={class:"mt-10"},Jt={class:"box-title w-full mb-3"},Rt={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},Ht=$e({__name:"VAudioDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(null),j=l(Me.join(",")),Q=l(""),z=l({}),h=l(!1),D=l(),_=l(!0),{mutateAsync:E,isPending:B}=A.detectAudioQuery(),{data:F,isLoading:U}=A.getPluginInterfaceQuery(T.value,{type:"audioDetection"}),H=Y(()=>B.value||U.value||h.value),x=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),Z(),Q.value="",D.value=void 0)},V=n=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],n.dataTransfer)if(n.dataTransfer.files.length>1)p.value=!0;else{const t=n.dataTransfer.files[0];Me.includes(t.type)&&t.size<=Ve?(i.value.push(t),te(()=>{I(t)})):t.size>Ve?y.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,y.value=!1,i.value=[];const t=n.target;if(t&&t.files){if(((o=t.files)==null?void 0:o.length)>1)p.value=!0;else if(t.files.length===1){const m=t.files[0];m.size<=Ve?(i.value.push(m),te(()=>{I(m)})):y.value=!0}}},Z=()=>{$.value&&($.value.value="")},W=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",I=n=>{h.value=!0;const t=new Audio;t.src=URL.createObjectURL(n),t.onloadedmetadata=()=>{D.value={mimeType:n.type},h.value=!1}},q=async n=>{if(!i.value.length){P.value=!0;return}h.value=!0;const t=new FormData;t.append("upload",i.value[0]),t.append("config",JSON.stringify(n)),t.append("metadata",JSON.stringify(D.value));try{await E({pluginName:T.value,formData:t})?ze.info(Ue.global.t("components.detection_interface.audio_detected")):ze.info(Ue.global.t("components.detection_interface.audio_not_detected"))}catch(o){console.error("Error detecting audio",o)}finally{h.value=!1}};return X(i,n=>{n.length>0?(P.value=!1,_.value=!1):(Q.value="",D.value=void 0,_.value=!0)},{immediate:!0,deep:!0}),(n,t)=>{const o=we;return a(),u("div",Lt,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=S(m=>V(m),["prevent"])),onDragover:t[2]||(t[2]=S(m=>b.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=S(m=>b.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=S(m=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",At,[s("div",Tt,[s("audio",{ref_key:"audioPlayer",ref:k,controls:"",class:"w-full"},[s("source",{src:e(Q),type:e(i)[0].type},null,8,Qt),t[5]||(t[5]=R(" Your browser does not support the audio element. "))],512)]),s("div",Bt,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=S(m=>x(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",Nt,d(e(i)[0].name),1),s("span",Mt,"("+d(W(e(i)[0].size))+")",1)])])):(a(),u("div",jt,[s("div",zt,[s("label",Et,d(n.$t("components.detection_interface.drop_or_select_audio_to_detect")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(j),onChange:K},null,40,Ft),e(p)?(a(),u("p",Ot,d(n.$t("components.detection_interface.only_one_audio_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.audio_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(n.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",Ut,[s("div",Jt,d(n.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?(a(),O(o,{key:1,config:e(z),"ui-schema":e(F),loading:e(H),"save-button-label":n.$t("components.detection_interface.detect_audio"),"disable-button":e(_),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:q},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",Rt,d(n.$t("components.detection_interface.no_interface_config")),1))])])}}}),qt=Ie(Ht,[["__scopeId","data-v-6f1f3d41"]]),Yt={class:"w-full"},Xt={key:0,class:"w-full"},Gt={class:"flex flex-col justify-center items-center mb-5"},Kt={for:"restoreInput",class:"cursor-pointer text-center text-sm"},Zt=["accept"],Wt={key:0,class:"text-red text-sm"},en={key:1,class:"w-full flex flex-col items-center justify-center"},tn={class:"relative mb-4"},nn=["src"],on={class:"flex items-center justify-center"},sn={class:"mx-2"},an={class:"disabled-text"},ln={class:"mt-10"},rn={class:"box-title w-full mb-3"},un={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},cn={class:"relative"},dn=["src"],fn=$e({__name:"VObjectDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(Je.join(",")),j=l(""),Q=l({}),z=l(!1),h=l(),D=l([]),_=l(!1),E=l(!0),{mutateAsync:B,isPending:F}=A.detectObjectsQuery(),{data:U,isLoading:H}=A.getPluginInterfaceQuery(T.value,{type:"objectDetection"}),x=Y(()=>F.value||H.value||z.value),V=t=>{const o=i.value.findIndex(m=>m.name===t);o>-1&&(i.value.splice(o,1),W(),j.value="",h.value=void 0)},K=t=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],t.dataTransfer)if(t.dataTransfer.files.length>1)p.value=!0;else{const o=t.dataTransfer.files[0];Je.includes(o.type)&&o.size<=Le?(i.value.push(o),te(()=>{I(o)})):o.size>Le?y.value=!0:p.value=!0}},Z=t=>{var m;p.value=!1,y.value=!1,i.value=[];const o=t.target;if(o&&o.files){if(((m=o.files)==null?void 0:m.length)>1)p.value=!0;else if(o.files.length===1){const L=o.files[0];L.size<=Le?(i.value.push(L),te(()=>{I(L)})):y.value=!0}}},W=()=>{$.value&&($.value.value="")},I=t=>{z.value=!0;const o=new Image;o.src=URL.createObjectURL(t),o.onload=()=>{j.value=o.src,h.value={width:o.width,height:o.height},z.value=!1}},q=t=>t<1024?t+" bytes":t<1048576?(t/1024).toFixed(1)+" KB":(t/1048576).toFixed(1)+" MB",n=async t=>{if(!i.value.length){P.value=!0;return}z.value=!0;const o=new FormData;o.append("upload",i.value[0]),o.append("config",JSON.stringify(t)),o.append("metadata",JSON.stringify(h.value));try{const m=await B({pluginName:T.value,formData:o});_.value=!0,setTimeout(()=>{D.value=m},300)}catch(m){console.error("Error detecting objects",m)}finally{z.value=!1}};return X(i,t=>{t.length>0?(P.value=!1,E.value=!1):(j.value="",h.value=void 0,E.value=!0)},{immediate:!0,deep:!0}),(t,o)=>{const m=we,L=at,Ce=Ye;return a(),u("div",Yt,[s("div",{class:"file-upload-box p-4",onDrop:o[1]||(o[1]=S(J=>K(J),["prevent"])),onDragover:o[2]||(o[2]=S(J=>b.value=!0,["prevent"])),onDragenter:o[3]||(o[3]=S(J=>b.value=!0,["prevent"])),onDragleave:o[4]||(o[4]=S(J=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",en,[s("div",tn,[s("img",{src:e(j),alt:"Preview",class:"w-full"},null,8,nn)]),s("div",on,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:o[0]||(o[0]=S(J=>V(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",sn,d(e(i)[0].name),1),s("span",an,"("+d(q(e(i)[0].size))+")",1)])])):(a(),u("div",Xt,[s("div",Gt,[s("label",Kt,d(t.$t("components.detection_interface.drop_or_select_image_to_detect_objects")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(k),onChange:Z},null,40,Zt),e(p)?(a(),u("p",Wt,d(t.$t("components.detection_interface.only_one_image_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(t.$t("components.detection_interface.image_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(t.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",ln,[s("div",rn,d(t.$t("components.detection_interface.interface_config")),1),e(U)&&Object.keys(e(U)).length?(a(),O(m,{key:1,config:e(Q),"ui-schema":e(U),loading:e(x),"save-button-label":t.$t("components.detection_interface.detect_objects"),"disable-button":e(E),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:n},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",un,d(t.$t("components.detection_interface.no_interface_config")),1))]),f(Ce,{modelValue:e(_),"onUpdate:modelValue":o[5]||(o[5]=J=>fe(_)?_.value=J:null),title:t.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",cn,[f(L,{detections:e(D)},null,8,["detections"]),s("img",{src:e(j),alt:"Preview",class:"w-full"},null,8,dn)])]),_:1},8,["modelValue","title"])])}}}),mn=Ie(fn,[["__scopeId","data-v-0c981869"]]),pn={class:"w-full"},vn={key:0,class:"w-full"},gn={class:"flex flex-col justify-center items-center mb-5"},_n={for:"restoreInput",class:"cursor-pointer text-center text-sm"},hn=["accept"],yn={key:0,class:"text-red text-sm"},bn={key:1,class:"w-full flex flex-col items-center justify-center"},xn={class:"relative mb-4 w-full"},wn={class:"flex items-center justify-center"},$n={class:"mx-2"},kn={class:"disabled-text"},In={class:"mt-10"},Cn={class:"box-title w-full mb-3"},Sn={key:0,class:"flex items-center justify-center text-sm text-passive mt-5"},Pn={class:"relative"},Dn=$e({__name:"VMotionDetectionInterface",props:{pluginName:{}},setup(ne){const A=new ke,C=ne,{pluginName:T}=Ee(C),i=l([]),b=l(!1),p=l(!1),P=l(!1),y=l(!1),$=l(null),k=l(null),j=l(null),Q=l(Re.join(",")),z=l({}),h=l(!1),D=l(!1),_=l(!0),{mutateAsync:E,isPending:B}=A.detectMotionQuery(),{data:F,isLoading:U}=A.getPluginInterfaceQuery(T.value,{type:"motionDetection"}),H=Y(()=>B.value||U.value||h.value),x=n=>{const t=i.value.findIndex(o=>o.name===n);t>-1&&(i.value.splice(t,1),Z(),k.value.src="")},V=n=>{if(b.value=!1,p.value=!1,y.value=!1,i.value=[],n.dataTransfer)if(n.dataTransfer.files.length>1)p.value=!0;else{const t=n.dataTransfer.files[0];Re.includes(t.type)&&t.size<=je?(i.value.push(t),te(()=>{I(t)})):t.size>je?y.value=!0:p.value=!0}},K=n=>{var o;p.value=!1,y.value=!1,i.value=[];const t=n.target;if(t&&t.files){if(((o=t.files)==null?void 0:o.length)>1)p.value=!0;else if(t.files.length===1){const m=t.files[0];m.size<=je?(i.value.push(m),te(()=>{I(m)})):y.value=!0}}},Z=()=>{$.value&&($.value.value="")},W=n=>n<1024?n+" bytes":n<1048576?(n/1024).toFixed(1)+" KB":(n/1048576).toFixed(1)+" MB",I=n=>{h.value=!0,k.value.src=URL.createObjectURL(n),k.value.load(),k.value.onloadeddata=()=>{h.value=!1}},q=async n=>{if(!i.value.length){P.value=!0;return}h.value=!0;const t=new FormData;t.append("upload",i.value[0]),t.append("config",JSON.stringify(n));try{const o=await E({pluginName:T.value,formData:t}),m=new Blob([o],{type:"video/mp4"});D.value=!0,setTimeout(()=>{j.value&&(j.value.src=URL.createObjectURL(m),j.value.load())},300)}catch(o){console.error("Error detecting motion",o)}finally{h.value=!1}};return X(i,n=>{n.length>0?(P.value=!1,_.value=!1):_.value=!0},{immediate:!0,deep:!0}),(n,t)=>{const o=we,m=Ye;return a(),u("div",pn,[s("div",{class:"file-upload-box p-4",onDrop:t[1]||(t[1]=S(L=>V(L),["prevent"])),onDragover:t[2]||(t[2]=S(L=>b.value=!0,["prevent"])),onDragenter:t[3]||(t[3]=S(L=>b.value=!0,["prevent"])),onDragleave:t[4]||(t[4]=S(L=>b.value=!1,["prevent"]))},[e(i).length?(a(),u("div",bn,[s("div",xn,[s("video",{ref_key:"videoPlayer",ref:k,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)]),s("div",wn,[f(me,{size:"28",variant:"text",color:"red",rounded:"",onClick:t[0]||(t[0]=S(L=>x(e(i)[0].name),["stop"]))},{default:g(()=>[f(ae,{size:"20"},{default:g(()=>[R(d(e(Fe)),1)]),_:1})]),_:1}),s("b",$n,d(e(i)[0].name),1),s("span",kn,"("+d(W(e(i)[0].size))+")",1)])])):(a(),u("div",vn,[s("div",gn,[s("label",_n,d(n.$t("components.detection_interface.drop_or_select_video_to_detect_motion")),1),s("input",{id:"restoreInput",ref_key:"fileInput",ref:$,type:"file",class:"d-none",accept:e(Q),onChange:K},null,40,hn),e(p)?(a(),u("p",yn,d(n.$t("components.detection_interface.only_one_video_allowed")),1)):w("",!0),e(P)?(a(),u("p",{key:1,class:G(["text-red text-sm",{"mt-2":e(p)}])},d(n.$t("components.detection_interface.video_required")),3)):w("",!0),e(y)?(a(),u("p",{key:2,class:G(["text-red text-sm",{"mt-2":e(p)||e(P)}])},d(n.$t("components.detection_interface.file_size_error")),3)):w("",!0)])]))],32),s("div",In,[s("div",Cn,d(n.$t("components.detection_interface.interface_config")),1),e(F)&&Object.keys(e(F)).length?(a(),O(o,{key:1,config:e(z),"ui-schema":e(F),loading:e(H),"save-button-label":n.$t("components.detection_interface.detect_motion"),"disable-button":e(_),"save-button-color":"#df2a4c","show-button":"",onOnFormSubmit:q},null,8,["config","ui-schema","loading","save-button-label","disable-button"])):(a(),u("div",Sn,d(n.$t("components.detection_interface.no_interface_config")),1))]),f(m,{modelValue:e(D),"onUpdate:modelValue":t[5]||(t[5]=L=>fe(D)?D.value=L:null),title:n.$t("components.dialog.title.result"),"hide-confirm-button":"",width:"auto"},{content:g(()=>[s("div",Pn,[s("video",{ref_key:"videoPlayerResult",ref:j,controls:"",class:"w-full"},"Your browser does not support the video tag.",512)])]),_:1},8,["modelValue","title"])])}}}),Vn=Ie(Dn,[["__scopeId","data-v-18a3da94"]]),Ln={key:0,class:"flex items-center justify-center w-full h-full"},jn={key:1,class:"h-full w-full"},zn={class:"page-title"},En={class:"flex flex-col flex-1 inner-component mt-0 p-4"},Fn={class:"box-title w-full mb-3"},On={key:0,class:"w-full h-full flex items-center justify-center"},An={key:1},Tn={class:"options-segments flex items-center justify-between"},Qn={class:"flex flex-col items-center justify-center"},Bn={class:"options-segments-text mt-2"},Nn={key:1},Mn={key:2},Un={key:3},Jn={key:4},Rn={class:"w-full full-inner-height"},Hn={class:"flex flex-col md:flex-row gap-2 h-full"},qn={class:"flex flex-col flex-1",style:{height:"200px","max-height":"200px"}},Yn={key:0,class:"w-full h-full flex items-center justify-center inner-component mt-0"},Xn={class:"flex flex-col flex-1 inner-component mt-0 p-4"},Gn={class:"box-title w-full mb-3"},Kn={key:0,class:"w-full h-full flex items-center justify-center"},Zn=["innerHTML"],Wn={class:"flex flex-col flex-1 inner-component mt-0 p-4"},eo={class:"box-title w-full mb-3"},to={key:0,class:"w-full h-full flex items-center justify-center"},no=["innerHTML"],oo=["data-ignore-id"],so=$e({__name:"Plugin",setup(ne){se.registerLanguage("typescript",kt),se.registerLanguage("yaml",It),se.registerLanguage("json",Ct),se.registerLanguage("python",St);const A=new lt,C=new ke,T=mt(),i=Dt(),{mobileActive:b,smallMobileActive:p}=pt(),P=l(vt()),y=l(),$=l(!1),k=l([]),j=l(!1),Q=l(i.params.scope),z=l(i.params.pluginname),h=l(),D=l([]),_=l({name:"settings",icon:ce,isInterface:!1}),E=l(!1),B=l(),F=l(),[U,H]=Vt(),x=Y(()=>Q.value?`${Q.value}/${z.value}`:z.value);C.toggleQueryActivator("getPluginContractQuery",!1);const{data:V,isLoading:K}=C.getPluginQuery(x),{data:Z,isLoading:W}=C.getPluginConfigJsonQuery(x),{data:I,isLoading:q}=C.getPluginSchemaQuery(x),{data:n}=C.getPluginContractQuery(x),{data:t,isLoading:o}=C.getPluginReadmeQuery(x),{data:m,isLoading:L}=C.getPluginChangelogQuery(x),{mutateAsync:Ce,isPending:J}=C.actionButtonQuery(),{mutate:Xe,isPending:Ge}=C.patchPluginConfigQuery(),{mutate:Ke,isPending:Ze}=A.addCameraExtensionQuery(),{mutate:We,isPending:et}=A.removeCameraExtensionQuery(),Oe=Y(()=>!!(K.value||W.value||q.value||o.value||L.value)),pe=Y(()=>!!(Ze.value||et.value)),le=Y(()=>!!($.value||J.value||Ge.value)),ve=Y(()=>{var r,c,N;return!!(I.value||(r=n.value)!=null&&r.cameras.length||(c=n.value)!=null&&c.contract.extension||(N=n.value)!=null&&N.contract.supportAdditionalCameras)}),Se=Pt("commonmark",{highlight(r,c){if(c&&se.getLanguage(c))try{return'<pre><code class="hljs">'+se.highlight(r,{language:c,ignoreIllegals:!0}).value+"</code></pre>"}catch{}return'<pre><code class="hljs">'+Se.utils.escapeHtml(r)+"</code></pre>"}});X(()=>i.params.pluginname,()=>{z.value=i.params.pluginname},{deep:!0,immediate:!0}),X(h,r=>{te(()=>j.value=!!r)}),X(I,()=>{q.value?C.toggleQueryActivator("getPluginContractQuery",!1):C.toggleQueryActivator("getPluginContractQuery",!0)},{deep:!0,immediate:!0}),X(n,()=>{var ge,_e,he,ye,be,xe,ie,re,ue,v;const r=[];let c=!1,N=!1;((ge=n.value)==null?void 0:ge.contract.extension)==="motionDetection"&&(N=!0,r.push({name:"motion_detection",icon:oe,isInterface:!0}),_.value={name:"motion_detection",icon:oe,isInterface:!0}),((_e=n.value)==null?void 0:_e.contract.extension)==="objectDetection"&&(N=!0,r.push({name:"object_detection",icon:oe,isInterface:!0}),_.value={name:"object_detection",icon:oe,isInterface:!0}),((he=n.value)==null?void 0:he.contract.extension)==="audioDetection"&&(N=!0,r.push({name:"audio_detection",icon:oe,isInterface:!0}),_.value={name:"audio_detection",icon:oe,isInterface:!0}),I.value&&I.value.schema&&Object.keys(I.value.schema).length&&(r.push({name:"settings",icon:ce,isInterface:!1}),c=!0,N||(_.value={name:"settings",icon:ce,isInterface:!1})),((ye=n.value)!=null&&ye.cameras.length||(be=n.value)!=null&&be.contract.extension||(xe=n.value)!=null&&xe.contract.supportAdditionalCameras)&&(r.push({name:"cameras",icon:Ne,isInterface:!1}),!c&&!N&&(_.value={name:"cameras",icon:Ne,isInterface:!1})),D.value=r,((ie=n.value)!=null&&ie.contract.extension||(re=n.value)!=null&&re.contract.supportAdditionalCameras)&&((ue=n.value)!=null&&ue.cameras.length)&&(k.value=(v=n.value)==null?void 0:v.cameras.filter(ee=>ee.extensions.plugins.includes(x.value)).map(ee=>ee.name))},{deep:!0,immediate:!0}),X(E,r=>{r||(B.value=void 0,F.value=void 0)});const tt=async r=>{if(!I.value)return;$.value=!0;const c=ut(I.value.schema,r);Xe({pluginName:x.value,configData:c},{onSettled:()=>{$.value=!1}})},nt=async r=>{$.value=!0,await Ce({pluginName:x.value,actionId:r.actionId,payload:r.payload},{onSuccess:c=>{c!=null&&c.toast&&ze[c.toast.type](c.toast.message),c!=null&&c.schema&&Object.keys(c.schema).length&&(F.value=r.payload,B.value=c,E.value=!0)},onSettled:()=>{$.value=!1}})},ot=async r=>{V.value&&(k.value.includes(r.name)?We({cameraname:r.name,pluginname:V.value.pluginName},{onSuccess:()=>{k.value=k.value.filter(c=>c!==r.name)}}):Ke({cameraname:r.name,pluginname:V.value.pluginName},{onSuccess:()=>{k.value=[...k.value,r.name]}}))};return dt(()=>{y.value=T.connectToNamespace("/plugins")}),ft(()=>{var r,c;(c=(r=y.value)==null?void 0:r.end)==null||c.call(r)}),(r,c)=>{var ie,re,ue;const N=we,ge=Vn,_e=mn,he=qt,ye=ct,be=it,xe=rt;return a(),u("main",{class:G(["w-full h-full",{"px-0":e(p)}])},[e(Oe)?(a(),u("div",Ln,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",jn,[s("div",{class:G(["mb-3 flex w-full items-center",{"px-2":e(p)}]),style:{height:"30px"}},[s("h1",zn,d((ie=e(V))==null?void 0:ie.displayName),1)],2),f(e(U),null,{default:g(()=>[s("div",{class:"plugin-settings-box flex flex-col gap-2 h-full",style:Be({width:e(ve)&&!e(b)?"40%":"100%"})},[s("div",En,[s("div",Fn,d(r.$t("views.plugin.plugin_settings")),1),e(V)?(a(),u("div",An,[s("div",Tn,[f(gt,{modelValue:e(_),"onUpdate:modelValue":c[0]||(c[0]=v=>fe(_)?_.value=v:null),height:"100%",grow:"","slider-color":"#df2a4c","hide-slider":e(pe)||e(le)},{default:g(()=>[(a(!0),u(Pe,null,De(e(D),(v,ee)=>(a(),O(_t,{key:ee,value:v,disabled:e(Oe)||v.isInterface&&e(V).disabled,"min-width":"auto"},{default:g(()=>[s("div",Qn,[f(ae,{size:"20"},{default:g(()=>[R(d(v.icon),1)]),_:2},1024),s("span",Bn,d(v.isInterface?r.$t("views.plugin.segment_tab_interface"):r.$t(`views.plugin.segment_tab_${v.name.toLowerCase()}`)),1)])]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue","hide-slider"])]),e(pe)||e(le)?(a(),O(ht,{key:0,height:"2",color:"#df2a4c",indeterminate:"",style:{"margin-top":"-2px"}})):w("",!0),f(yt,{modelValue:e(_),"onUpdate:modelValue":c[1]||(c[1]=v=>fe(_)?_.value=v:null),class:"box-content w-full flex-1 mt-3",continuous:""},{default:g(()=>[(a(!0),u(Pe,null,De(e(D),(v,ee)=>(a(),O($t,{key:ee,value:{name:v.name,icon:v.icon,isInterface:v.isInterface},disabled:v.isInterface&&e(V).disabled},{default:g(()=>{var Ae;return[v.name==="settings"&&e(I)?(a(),O(N,{key:0,config:e(Z)||{},"ui-schema":e(I),loading:e(le),onOnFormSubmit:tt,onOnSubmit:nt},null,8,["config","ui-schema","loading"])):w("",!0),v.name==="cameras"?(a(),u("div",Nn,[(a(!0),u(Pe,null,De((Ae=e(n))==null?void 0:Ae.cameras,M=>{var Te,Qe;return a(),u("div",{key:M.name},[!((Te=e(n))!=null&&Te.contract.extension)&&!((Qe=e(n))!=null&&Qe.contract.supportAdditionalCameras)?(a(),O(He,{key:0,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onClick:select":()=>r.$router.push(`/cameras/${M.name}`)},{default:g(()=>[f(qe,{value:M.name,class:"px-2"},{append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:S(st=>h.value=M.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[R(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[R(d(M.name)+" ",1)]),_:2},1032,["value"])]),_:2},1032,["disabled","onClick:select"])):(a(),O(He,{key:1,"select-strategy":"classic",class:"py-0",disabled:e(pe)||e(le),"onUpdate:selected":()=>ot(M)},{default:g(()=>[f(qe,{class:"px-2",value:e(V).pluginName,active:e(k).includes(M.name)},{prepend:g(()=>[f(bt,{start:""},{default:g(()=>[f(xt,{"model-value":e(k).includes(M.name),color:"#df2a4c"},null,8,["model-value"])]),_:2},1024)]),append:g(()=>[f(me,{class:"ml-auto",size:"28",rounded:"",density:"compact",variant:"text",onClick:S(st=>h.value=M.name,["stop"])},{default:g(()=>[f(ae,{size:"18"},{default:g(()=>[R(d(e(ce)),1)]),_:1})]),_:2},1032,["onClick"])]),default:g(()=>[R(d(M.name)+" ",1)]),_:2},1032,["value","active"])]),_:2},1032,["disabled","onUpdate:selected"])),f(wt,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"my-1"})])}),128))])):w("",!0),v.name==="motion_detection"?(a(),u("div",Mn,[f(ge,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0),v.name==="object_detection"?(a(),u("div",Un,[f(_e,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0),v.name==="audio_detection"?(a(),u("div",Jn,[f(he,{"plugin-name":e(x)},null,8,["plugin-name"])])):w("",!0)]}),_:2},1032,["value","disabled"]))),128))]),_:1},8,["modelValue"])])):(a(),u("div",On,[f(de,{color:"#df2a4c",indeterminate:""})]))])],4)]),_:1}),s("div",Rn,[s("div",Hn,[s("div",{class:"w-full flex flex-col gap-2 h-full",style:Be({width:e(ve)&&!e(b)?"60%":"100%"})},[s("div",qn,[e(V)?(a(),O(ye,{key:1,ref:"pluginRef",plugin:e(V),"min-height":"175px",height:"100%",width:"100%","border-radius":"4px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":"",onIsLoading:c[2]||(c[2]=v=>$.value=v)},null,8,["plugin"])):(a(),u("div",Yn,[f(de,{color:"#df2a4c",indeterminate:""})]))]),e(ve)&&e(b)?(a(),O(e(H),{key:0})):w("",!0),s("div",Xn,[s("div",Gn,d(r.$t("views.plugin.readme")),1),e(o)?(a(),u("div",Kn,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",{key:1,class:"box-content w-full h-full flex-1 markdown-body pt-1",innerHTML:e(Se).render(e(t)||r.$t("views.plugin.no_readme"))},null,8,Zn))]),s("div",Wn,[s("div",eo,d(r.$t("views.plugin.changelog")),1),e(L)?(a(),u("div",to,[f(de,{color:"#df2a4c",indeterminate:""})])):(a(),u("div",{key:1,class:"box-content w-full h-full flex-1 markdown-body pt-1",innerHTML:e(Se).render(e(m)||r.$t("views.plugin.no_changelog"))},null,8,no))])],4),e(ve)&&!e(b)?(a(),O(e(H),{key:0})):w("",!0)])])])),e(h)?(a(),u("div",{key:2,"data-ignore-id":e(P)},[f(be,{"camera-name":e(h),show:e(j),onClose:c[3]||(c[3]=v=>h.value=void 0)},null,8,["camera-name","show"])],8,oo)):w("",!0),(ue=(re=e(B))==null?void 0:re.schema)!=null&&ue.config?(a(),O(xe,{key:3,modelValue:e(E),"onUpdate:modelValue":c[4]||(c[4]=v=>fe(E)?E.value=v:null),"ui-schema":{schema:e(B).schema},"plugin-config":e(F)||{},"plugin-name":e(x)},null,8,["modelValue","ui-schema","plugin-config","plugin-name"])):w("",!0)],2)}}}),ts=Ie(so,[["__scopeId","data-v-aa826472"]]);export{ts as default};
@@ -1 +0,0 @@
1
- import{f as S,d as C,y as I,w as R}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{_ as Q}from"./VPluginCard.BXrvS7zB.0.0.34-alpha.1.js";import{P as z}from"./plugins.BbNP66vO.0.0.34-alpha.1.js";import{c as T,Q as j,m as A,n as F,C as U,b as G,A as q,e as E}from"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import{G as B,r,w as H,b as s,d as i,R as l,ab as f,f as n,a9 as c,u as e,i as L,a7 as M,ac as k,P,ad as $,k as J,S as K,Q as O,g as V,_ as W,p as X}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import{e as Y}from"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";import"./VConfigEditor.vue_vue_type_script_setup_true_lang.DaPxq8EI.0.0.34-alpha.1.js";import"./ace-builds.Cnj3uJ-i.0.0.34-alpha.1.js";import"./@vueform.BsJeH1VL.0.0.34-alpha.1.js";import"./system.BkLh9FNA.0.0.34-alpha.1.js";import"./VConsole.sVPWAfNY.0.0.34-alpha.1.js";import"./types.Cz9TaZAP.0.0.34-alpha.1.js";const Z={class:"v-label"},ee={class:"flex flex-row items-center justify-center w-full mt-8"},te={class:"flex flex-col items-center justify-center w-full mt-3"},le={key:0,class:"my-3"},oe={key:1,class:"search-container w-full overflow-scroll hide-scrollbar"},se=B({__name:"VPluginSearch",setup(N){const a=new z,{smallMobileActive:v}=S(),y=r({page:1,pageSize:-1}),w=r({}),u=r(""),d=r([]),{data:g,isLoading:p}=a.searchPluginsQuery(w,y);H(g,t=>{t!=null&&t.result&&(d.value=t.result.filter(o=>!o.installPath))},{immediate:!0,deep:!0});const h=t=>{t.preventDefault(),w.value.pluginname=u.value??""};return(t,o)=>{const x=Q;return s(),i("div",null,[l(j,{class:"ml-auto",onSubmit:h},{default:f(()=>[n("label",Z,c(t.$t("components.form.label.name")),1),l(T,{modelValue:e(u),"onUpdate:modelValue":o[0]||(o[0]=_=>L(u)?u.value=_:null),placeholder:"camera-ui-","hide-details":"",clearable:"",solo:"",variant:"outlined",density:"comfortable","onClick:clear":h},null,8,["modelValue"])]),_:1}),n("div",ee,[n("h3",null,c(t.$t("components.plugin_search.plugins")),1),l(A,{size:"small",class:"ml-auto",color:"#df2a4c"},{default:f(()=>[M(c(e(d).length),1)]),_:1})]),l(F,{style:{"border-color":"rgba(var(--color-rgb), 0.1)",opacity:"1"},class:"mt-3"}),l(U,{active:e(p),indeterminate:e(p),color:"#df2a4c",height:"2px"},null,8,["active","indeterminate"]),n("div",te,[!e(p)&&!e(d).length?(s(),i("div",le,c(t.$t("views.plugins.no_plugins")),1)):e(p)?J("",!0):(s(),i("div",oe,[n("div",{class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(v)?"100%":"450px"}, 1fr))`)},[(s(!0),i(P,null,$(e(d),(_,m)=>(s(),i("div",{key:m,class:"relative"},[l(x,{plugin:_,height:"200px","max-height":"200px",width:"100%",background:"var(--background-inner-component-card)","min-width":e(v)?"100%":"450px","show-install-button":"","show-plugin-type":!1,"show-plugin-code":!1,"show-full-plugin-name":""},null,8,["plugin","min-width"])]))),128))],4)]))])])}}}),ie=C(se,[["__scopeId","data-v-0d35625b"]]),ae={class:"page-title"},ne={class:"w-full flex justify-center items-center mt-3"},re=B({__name:"Plugins",setup(N){const{smallMobileActive:a}=S(),v=I(),y=new z,w=r(null),u=r(),d=r({page:1,pageSize:-1}),g=r(!1),{data:p,isLoading:h}=y.getPluginsQuery(d);return K(()=>{u.value=v.connectToNamespace("/plugins")}),O(()=>{var t,o;(o=(t=u.value)==null?void 0:t.end)==null||o.call(t)}),(t,o)=>{const x=ie,_=R;return s(),i("main",{class:V(["w-full h-full",{"px-0":e(a)}])},[n("div",{class:V(["mb-3 flex w-full items-center",{"px-2":e(a)}]),style:{height:"30px"}},[n("h1",ae,c(t.$t(`views.${String(t.$route.name).toLowerCase()}.title`)),1)],2),l(W,{name:"fade",tag:"div"},{default:f(()=>{var m;return[e(h)?(s(),i("div",{key:0,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(a)?"100%":"450px"}, 1fr))`)},[(s(),i(P,null,$(15,b=>l(q,{key:b,elevation:1,type:"image",class:"relative",style:{"border-radius":"8px",overflow:"hidden"},height:175})),64))],4)):(m=e(p))!=null&&m.result.length?(s(),i("div",{key:2,class:"grid gap-2",style:k(`grid-template-columns: repeat(auto-fill, minmax(${e(a)?"100%":"450px"}, 1fr))`)},[(s(!0),i(P,null,$(e(p).result,(b,D)=>(s(),i("div",{key:D,class:"relative"},[l(Q,{ref_for:!0,ref_key:"pluginRef",ref:w,plugin:b,height:"200px","max-height":"200px",width:"100%","min-width":e(a)?"100%":"450px","border-radius":e(a)?"0px":"8px","show-toggle":"","show-settings":"","show-logo":"","show-plugin-status":"","show-logs":"","show-configs":""},null,8,["plugin","min-width","border-radius"])]))),128))],4)):(s(),i("div",{key:1,class:V(["disabled-text",{"px-2":e(a)}])},c(t.$t("views.plugins.no_plugins")),3))]}),_:1}),n("div",ne,[l(G,{variant:"text",color:"#df2a4c",icon:"",onClick:o[0]||(o[0]=X(m=>g.value=!0,["prevent"]))},{default:f(()=>[l(E,{size:"30"},{default:f(()=>[M(c(e(Y)),1)]),_:1})]),_:1})]),l(_,{modelValue:e(g),"onUpdate:modelValue":o[1]||(o[1]=m=>L(g)?g.value=m:null),title:t.$t("components.dialog.title.search_plugin"),"hide-confirm-button":"",loading:e(h),fullscreen:""},{content:f(()=>[l(x)]),_:1},8,["modelValue","title","loading"])],2)}}}),qe=C(re,[["__scopeId","data-v-8648604f"]]);export{qe as default};
@@ -1 +0,0 @@
1
- import{d as r}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{d as o,b as t}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";const i={};function m(p,e){return t(),o("div",null,"Test")}const F=r(i,[["render",m]]);export{F as default};
@@ -1 +0,0 @@
1
- import{f as p}from"./main.bKEuHXmK.0.0.34-alpha.1.js";import{G as m,b as s,d as a,f as r,a9 as l,g as i,u as e}from"./@vue.DNK0rzTJ.0.0.34-alpha.1.js";import"./vue3-toastify.BnsRFQgq.0.0.34-alpha.1.js";import"./vue-i18n.CISOas5G.0.0.34-alpha.1.js";import"./@intlify.sEJX3RNi.0.0.34-alpha.1.js";import"./axios.C-n2IhIP.0.0.34-alpha.1.js";import"./@tanstack.CxmCad5b.0.0.34-alpha.1.js";import"./pinia.C5B5h5W-.0.0.34-alpha.1.js";import"./vue-router.CA6UHABl.0.0.34-alpha.1.js";import"./@vueuse.C89QVsKq.0.0.34-alpha.1.js";import"./nprogress.BMn57QX7.0.0.34-alpha.1.js";import"./@xterm.CEvrn8WJ.0.0.34-alpha.1.js";import"./vuetify.DiAVhTT5.0.0.34-alpha.1.js";import"./@mdi.C1UTQKuc.0.0.34-alpha.1.js";import"./vee-validate.dtT7hUg2.0.0.34-alpha.1.js";import"./@vee-validate.BYAqeMXW.0.0.34-alpha.1.js";import"./zod.DnW1_kUe.0.0.34-alpha.1.js";import"./uuid.DvF23Exx.0.0.34-alpha.1.js";import"./socket.io-client.DA70sIzA.0.0.34-alpha.1.js";import"./engine.io-client.C6Wzx_jT.0.0.34-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.34-alpha.1.js";import"./socket.io-parser.Lr_NuxFX.0.0.34-alpha.1.js";import"./rxjs.DhS72WZW.0.0.34-alpha.1.js";import"./tslib.9k7AwCpt.0.0.34-alpha.1.js";import"./vue-inline-svg.DY4V2SdK.0.0.34-alpha.1.js";import"./v-calendar.BP5jhivB.0.0.34-alpha.1.js";const n={class:"page-title"},F=m({__name:"Recordings",setup(c){const{smallMobileActive:t}=p();return(o,f)=>(s(),a("main",{class:i(["w-full h-full",{"px-0":e(t)}])},[r("div",{class:i(["flex w-full items-center",{"px-2":e(t)}]),style:{height:"30px"}},[r("h1",n,l(o.$t(`views.${String(o.$route.name).toLowerCase()}.title`)),1)],2)],2))}});export{F as default};