@camera.ui/server 0.0.48 → 0.0.50-internal.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (873) hide show
  1. package/.prettierignore +12 -0
  2. package/.prettierrc.json +12 -0
  3. package/artillery.yaml +29 -0
  4. package/bin/cameraui-server.ts +11 -0
  5. package/dist/interface/assets/@xterm.DYP7pi_n.0.0.50-internal.0.css +32 -0
  6. package/dist/interface/assets/Adminpanel.BKek2EMH.0.0.50-internal.0.css +1 -0
  7. package/dist/interface/assets/Cameras.BDWZJqPN.0.0.50-internal.0.css +1 -0
  8. package/dist/interface/assets/Camview.BFUFMoNX.0.0.50-internal.0.css +1 -0
  9. package/dist/interface/assets/CuiConsole.DCYyxdVg.0.0.50-internal.0.css +1 -0
  10. package/dist/interface/assets/CuiPluginCard.yF8V0SZY.0.0.50-internal.0.css +1 -0
  11. package/dist/interface/assets/CuiTimeline.BkIwlYtw.0.0.50-internal.0.css +1 -0
  12. package/dist/interface/assets/Plugin.DJElsAn5.0.0.50-internal.0.css +1 -0
  13. package/dist/interface/assets/Plugins.0h77qnmN.0.0.50-internal.0.css +1 -0
  14. package/dist/interface/assets/Settings.CkgfRkQr.0.0.50-internal.0.css +1 -0
  15. package/dist/interface/assets/SettingsAccount.DeFul3eQ.0.0.50-internal.0.css +1 -0
  16. package/dist/interface/assets/main.Cip9LkS3.0.0.50-internal.0.css +1 -0
  17. package/dist/interface/assets/worker-base.jEXLGV2h.0.0.50-internal.0.js +1332 -0
  18. package/dist/interface/assets/worker-json.DgwNIOck.0.0.50-internal.0.js +1626 -0
  19. package/dist/interface/assets/worker-yaml.B3uUYINB.0.0.50-internal.0.js +5819 -0
  20. package/dist/interface/fonts/InterVariable.woff2 +0 -0
  21. package/dist/interface/index.html +48 -38
  22. package/dist/interface/js/@intlify.BkGPX90O.0.0.50-internal.0.js +15 -0
  23. package/dist/interface/js/@kurkle.D8fDXNIl.0.0.50-internal.0.js +6 -0
  24. package/dist/interface/js/@primeuix.BFAY2Bk9.0.0.50-internal.0.js +5722 -0
  25. package/dist/interface/js/@primevue.OhxoO3MD.0.0.50-internal.0.js +57 -0
  26. package/dist/interface/js/@tanstack.D1IL6eOv.0.0.50-internal.0.js +1 -0
  27. package/dist/interface/{@vee-validate.BEda0VqZ.0.0.48.js → js/@vee-validate.BGPyWWTh.0.0.50-internal.0.js} +2 -2
  28. package/dist/interface/js/@vue.B5vqhCp2.0.0.50-internal.0.js +17 -0
  29. package/dist/interface/js/@vueuse.BsKtqdiG.0.0.50-internal.0.js +1 -0
  30. package/dist/interface/{@xterm.Ct1qg4AD.0.0.48.js → js/@xterm.CAa7rpjv.0.0.50-internal.0.js} +8 -8
  31. package/dist/interface/js/Adminpanel.D93Kvbwp.0.0.50-internal.0.js +1 -0
  32. package/dist/interface/js/Camera.DF2l3OMA.0.0.50-internal.0.js +1 -0
  33. package/dist/interface/js/Cameras.YzvZccdv.0.0.50-internal.0.js +482 -0
  34. package/dist/interface/js/Cammesh.D-6dAROQ.0.0.50-internal.0.js +1 -0
  35. package/dist/interface/js/Camview.CB7_HnoQ.0.0.50-internal.0.js +1 -0
  36. package/dist/interface/js/Config.BwflsWTm.0.0.50-internal.0.js +2 -0
  37. package/dist/interface/js/Console.DZM8pN8Q.0.0.50-internal.0.js +4 -0
  38. package/dist/interface/js/CuiConsole.BXXU7Gth.0.0.50-internal.0.js +1 -0
  39. package/dist/interface/js/CuiPluginCard.YFOrpbVD.0.0.50-internal.0.js +4 -0
  40. package/dist/interface/js/CuiTimeline.VV5KSJd5.0.0.50-internal.0.js +1 -0
  41. package/dist/interface/js/FirstSteps.b-nvymgb.0.0.50-internal.0.js +1 -0
  42. package/dist/interface/js/Plugin.BOMpVEwM.0.0.50-internal.0.js +1 -0
  43. package/dist/interface/js/Plugins.DdPwaUDA.0.0.50-internal.0.js +1 -0
  44. package/dist/interface/js/Recordings.DhxjIW7e.0.0.50-internal.0.js +1 -0
  45. package/dist/interface/js/Settings.D24ttaPu.0.0.50-internal.0.js +1 -0
  46. package/dist/interface/js/SettingsAccount.ms3aqz4E.0.0.50-internal.0.js +1 -0
  47. package/dist/interface/js/SettingsAppearance.DsTjKXk1.0.0.50-internal.0.js +1 -0
  48. package/dist/interface/js/SettingsAppearance.vue_vue_type_script_setup_true_lang.CBQ6lL3T.0.0.50-internal.0.js +1 -0
  49. package/dist/interface/js/SettingsBackup.BPEc4Rjg.0.0.50-internal.0.js +1 -0
  50. package/dist/interface/js/SettingsRecordings.DgW7M0jj.0.0.50-internal.0.js +1 -0
  51. package/dist/interface/js/SettingsRemote.BL5nXbUT.0.0.50-internal.0.js +1 -0
  52. package/dist/interface/js/SettingsSystem.D7T0AIpm.0.0.50-internal.0.js +1 -0
  53. package/dist/interface/js/SettingsUsers.1u0vCOVG.0.0.50-internal.0.js +1 -0
  54. package/dist/interface/js/VersionsHandler.vue_vue_type_script_setup_true_lang.xDishkkS.0.0.50-internal.0.js +4 -0
  55. package/dist/interface/js/ace-builds.D1nmvCwb.0.0.50-internal.0.js +1090 -0
  56. package/dist/interface/js/ace.config.G96T2z54.0.0.50-internal.0.js +1 -0
  57. package/dist/interface/js/axios.DHr9lByg.0.0.50-internal.0.js +6 -0
  58. package/dist/interface/js/backup.B_Gzxtp_.0.0.50-internal.0.js +1 -0
  59. package/dist/interface/js/chart.js.CP_nMnnf.0.0.50-internal.0.js +13 -0
  60. package/dist/interface/js/close-circle.DYLuVIOg.0.0.50-internal.0.js +1 -0
  61. package/dist/interface/js/dnd-core.T9OeW7mu.0.0.50-internal.0.js +1 -0
  62. package/dist/interface/{draggabilly.PrP7w5-3.0.0.48.js → js/draggabilly.D3zGcBb3.0.0.50-internal.0.js} +1 -1
  63. package/dist/interface/js/engine.io-client.kITRnq-g.0.0.50-internal.0.js +1 -0
  64. package/dist/interface/js/fast-deep-equal.Bpc9mIsj.0.0.50-internal.0.js +1 -0
  65. package/dist/interface/js/highlight.js.BlSXU-Wb.0.0.50-internal.0.js +3 -0
  66. package/dist/interface/js/linkify-it.C3N1lWsJ.0.0.50-internal.0.js +1 -0
  67. package/dist/interface/js/main.D0YR3Jat.0.0.50-internal.0.js +31 -0
  68. package/dist/interface/{markdown-it.DU7e183f.0.0.48.js → js/markdown-it.Dj0dt5s2.0.0.50-internal.0.js} +1 -1
  69. package/dist/interface/{nprogress.DTGXmkhG.0.0.48.js → js/nprogress.BwQWDcGj.0.0.50-internal.0.js} +1 -1
  70. package/dist/interface/js/perfect-debounce.l0sNRNKZ.0.0.50-internal.0.js +1 -0
  71. package/dist/interface/js/pinia.DRh7plEC.0.0.50-internal.0.js +5 -0
  72. package/dist/interface/js/primelocale.Bga3dOQu.0.0.50-internal.0.js +1 -0
  73. package/dist/interface/js/primevue.Cl58krXf.0.0.50-internal.0.js +142 -0
  74. package/dist/interface/{qrcode.Bdg1zKx6.0.0.48.js → js/qrcode.C1sDj6P8.0.0.50-internal.0.js} +1 -1
  75. package/dist/interface/js/react-dnd-touch-backend.BA4WhUJo.0.0.50-internal.0.js +1 -0
  76. package/dist/interface/js/refresh-rounded.D_SmhhUf.0.0.50-internal.0.js +1 -0
  77. package/dist/interface/js/rxjs.C-fTBwEO.0.0.50-internal.0.js +3 -0
  78. package/dist/interface/js/socket.io-client.DKrRxgjP.0.0.50-internal.0.js +1 -0
  79. package/dist/interface/js/socket.io-parser.EXj3YDH2.0.0.50-internal.0.js +1 -0
  80. package/dist/interface/js/system.CY8rGd-Q.0.0.50-internal.0.js +1 -0
  81. package/dist/interface/js/trash-fill.CMnCN3Oy.0.0.50-internal.0.js +1 -0
  82. package/dist/interface/{unidragger.3FW7TOUy.0.0.48.js → js/unidragger.D0w6Tqtt.0.0.50-internal.0.js} +1 -1
  83. package/dist/interface/js/uuid.C6aID195.0.0.50-internal.0.js +1 -0
  84. package/dist/interface/js/vee-validate.BeiObIH8.0.0.50-internal.0.js +5 -0
  85. package/dist/interface/js/vue-chartjs.DtdZdiYw.0.0.50-internal.0.js +1 -0
  86. package/dist/interface/js/vue-i18n.BW2bx_6z.0.0.50-internal.0.js +5 -0
  87. package/dist/interface/js/vue-inline-svg.BJkQGmKz.0.0.50-internal.0.js +1 -0
  88. package/dist/interface/js/vue-router.B2mOXHaC.0.0.50-internal.0.js +5 -0
  89. package/dist/interface/js/vue-zoomable.BKDyCJE7.0.0.50-internal.0.js +1 -0
  90. package/dist/interface/js/vue.l0sNRNKZ.0.0.50-internal.0.js +1 -0
  91. package/dist/interface/js/vue3-dnd.DRK24CBp.0.0.50-internal.0.js +1 -0
  92. package/dist/interface/js/zod.SKKegNRO.0.0.50-internal.0.js +1 -0
  93. package/dist/interface/js/zoom-out.DxvzgVEo.0.0.50-internal.0.js +1 -0
  94. package/dist/interface/manifest.webmanifest +1 -1
  95. package/dist/interface/pwa/favicon-32.ico +0 -0
  96. package/dist/interface/pwa/favicon-48.ico +0 -0
  97. package/dist/interface/sw.js +1 -1
  98. package/dist/server/package.json +57 -45
  99. package/dist/server/requirements.txt +12 -11
  100. package/dist/server/src/__init__.py +0 -0
  101. package/dist/server/src/_camera_ui_tools/__init__.py +0 -0
  102. package/dist/server/src/_camera_ui_tools/camera_ui_common/__init__.py +28 -0
  103. package/dist/server/src/_camera_ui_tools/camera_ui_common/camera_utils/utils.py +52 -0
  104. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/__init__.py +0 -0
  105. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/object_path.py +198 -0
  106. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/reactive.py +42 -0
  107. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/signal_handler.py +92 -0
  108. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/subscribed.py +21 -0
  109. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/task.py +39 -0
  110. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/thread.py +10 -0
  111. package/dist/server/src/_camera_ui_tools/camera_ui_common/common_utils/utils.py +91 -0
  112. package/dist/server/src/_camera_ui_tools/camera_ui_common/logger_service/__init__.py +0 -0
  113. package/dist/server/src/_camera_ui_tools/camera_ui_common/logger_service/ansicolor.py +62 -0
  114. package/dist/server/src/_camera_ui_tools/camera_ui_common/logger_service/logger.py +178 -0
  115. package/dist/server/src/_camera_ui_tools/camera_ui_common/logger_service/test.py +116 -0
  116. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/__init__.py +350 -0
  117. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/__init__.py +0 -0
  118. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/base.py +237 -0
  119. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/client.py +256 -0
  120. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/connection.py +784 -0
  121. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/errors.py +745 -0
  122. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/messaging.py +57 -0
  123. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/rpc.py +227 -0
  124. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/base/rpc_generator.py +584 -0
  125. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/constants.py +96 -0
  126. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/typings.py +218 -0
  127. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/__init__.py +0 -0
  128. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/connection_state.py +86 -0
  129. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/logger.py +30 -0
  130. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/metrics.py +152 -0
  131. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/packer.py +20 -0
  132. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/routing.py +75 -0
  133. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/rpc.py +177 -0
  134. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/subscriptions.py +24 -0
  135. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/tasks.py +39 -0
  136. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/uid.py +37 -0
  137. package/dist/server/src/_camera_ui_tools/camera_ui_rpc_client/utils/validate.py +119 -0
  138. package/dist/server/src/_camera_ui_tools/camera_ui_types/__init__.py +1360 -0
  139. package/dist/server/src/_camera_ui_tools/camera_ui_types/hybrid_observer.py +338 -0
  140. package/dist/server/src/_camera_ui_tools/camera_ui_types/test.py +196 -0
  141. package/dist/server/src/api/controllers/auth.controller.d.ts +2 -2
  142. package/dist/server/src/api/controllers/auth.controller.js +49 -43
  143. package/dist/server/src/api/controllers/auth.controller.js.map +1 -1
  144. package/dist/server/src/api/controllers/backup.controller.js +1 -2
  145. package/dist/server/src/api/controllers/backup.controller.js.map +1 -1
  146. package/dist/server/src/api/controllers/cameras.controller.d.ts +13 -11
  147. package/dist/server/src/api/controllers/cameras.controller.js +314 -105
  148. package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
  149. package/dist/server/src/api/controllers/plugins.controller.d.ts +8 -8
  150. package/dist/server/src/api/controllers/plugins.controller.js +208 -244
  151. package/dist/server/src/api/controllers/plugins.controller.js.map +1 -1
  152. package/dist/server/src/api/controllers/system.controller.d.ts +1 -0
  153. package/dist/server/src/api/controllers/system.controller.js +22 -8
  154. package/dist/server/src/api/controllers/system.controller.js.map +1 -1
  155. package/dist/server/src/api/controllers/users.controller.d.ts +2 -2
  156. package/dist/server/src/api/controllers/users.controller.js +13 -25
  157. package/dist/server/src/api/controllers/users.controller.js.map +1 -1
  158. package/dist/server/src/api/database/checks.js +2 -2
  159. package/dist/server/src/api/database/checks.js.map +1 -1
  160. package/dist/server/src/api/database/index.d.ts +4 -7
  161. package/dist/server/src/api/database/index.js +59 -86
  162. package/dist/server/src/api/database/index.js.map +1 -1
  163. package/dist/server/src/api/database/migration.js +5 -141
  164. package/dist/server/src/api/database/migration.js.map +1 -1
  165. package/dist/server/src/api/database/selfcheck.js +5 -5
  166. package/dist/server/src/api/database/selfcheck.js.map +1 -1
  167. package/dist/server/src/api/database/types.d.ts +17 -25
  168. package/dist/server/src/api/go2rtc/api/discover.d.ts +30 -0
  169. package/dist/server/src/api/go2rtc/api/discover.js +162 -0
  170. package/dist/server/src/api/go2rtc/api/discover.js.map +1 -0
  171. package/dist/server/src/api/go2rtc/api/index.d.ts +1 -1
  172. package/dist/server/src/api/go2rtc/api/index.js +15 -4
  173. package/dist/server/src/api/go2rtc/api/index.js.map +1 -1
  174. package/dist/server/src/api/go2rtc/api/streams.d.ts +3 -1
  175. package/dist/server/src/api/go2rtc/api/streams.js +66 -9
  176. package/dist/server/src/api/go2rtc/api/streams.js.map +1 -1
  177. package/dist/server/src/api/go2rtc/index.d.ts +2 -0
  178. package/dist/server/src/api/go2rtc/index.js +3 -0
  179. package/dist/server/src/api/go2rtc/index.js.map +1 -1
  180. package/dist/server/src/api/go2rtc/queue.js +3 -3
  181. package/dist/server/src/api/go2rtc/queue.js.map +1 -1
  182. package/dist/server/src/api/go2rtc/types.d.ts +66 -11
  183. package/dist/server/src/api/index.d.ts +4 -0
  184. package/dist/server/src/api/index.js +45 -9
  185. package/dist/server/src/api/index.js.map +1 -1
  186. package/dist/server/src/api/middlewares/authPermission.middleware.d.ts +1 -0
  187. package/dist/server/src/api/middlewares/authPermission.middleware.js +11 -2
  188. package/dist/server/src/api/middlewares/authPermission.middleware.js.map +1 -1
  189. package/dist/server/src/api/middlewares/authValidation.middleware.js +20 -12
  190. package/dist/server/src/api/middlewares/authValidation.middleware.js.map +1 -1
  191. package/dist/server/src/api/middlewares/pagination.middleware.js +45 -53
  192. package/dist/server/src/api/middlewares/pagination.middleware.js.map +1 -1
  193. package/dist/server/src/api/plugins/proxy.plugin.d.ts +14 -0
  194. package/dist/server/src/api/plugins/proxy.plugin.js +200 -0
  195. package/dist/server/src/api/plugins/proxy.plugin.js.map +1 -0
  196. package/dist/server/src/api/routes/cameras.routes.js +56 -30
  197. package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
  198. package/dist/server/src/api/routes/plugins.routes.js +65 -63
  199. package/dist/server/src/api/routes/plugins.routes.js.map +1 -1
  200. package/dist/server/src/api/routes/system.routes.js +7 -1
  201. package/dist/server/src/api/routes/system.routes.js.map +1 -1
  202. package/dist/server/src/api/routes/users.routes.js +8 -8
  203. package/dist/server/src/api/routes/users.routes.js.map +1 -1
  204. package/dist/server/src/api/schemas/backup.schema.d.ts +3 -3
  205. package/dist/server/src/api/schemas/backup.schema.js +1 -1
  206. package/dist/server/src/api/schemas/backup.schema.js.map +1 -1
  207. package/dist/server/src/api/schemas/cameras.schema.d.ts +1413 -529
  208. package/dist/server/src/api/schemas/cameras.schema.js +229 -182
  209. package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
  210. package/dist/server/src/api/schemas/config.schema.d.ts +29 -41
  211. package/dist/server/src/api/schemas/config.schema.js +10 -21
  212. package/dist/server/src/api/schemas/config.schema.js.map +1 -1
  213. package/dist/server/src/api/schemas/go2rtc.schema.d.ts +194 -162
  214. package/dist/server/src/api/schemas/go2rtc.schema.js +33 -58
  215. package/dist/server/src/api/schemas/go2rtc.schema.js.map +1 -1
  216. package/dist/server/src/api/schemas/plugins.schema.d.ts +17 -17
  217. package/dist/server/src/api/schemas/plugins.schema.js +1 -1
  218. package/dist/server/src/api/schemas/plugins.schema.js.map +1 -1
  219. package/dist/server/src/api/schemas/storage.schema.d.ts +22 -0
  220. package/dist/server/src/api/schemas/storage.schema.js +5 -0
  221. package/dist/server/src/api/schemas/storage.schema.js.map +1 -0
  222. package/dist/server/src/api/schemas/system.schema.d.ts +171 -3
  223. package/dist/server/src/api/schemas/system.schema.js +30 -3
  224. package/dist/server/src/api/schemas/system.schema.js.map +1 -1
  225. package/dist/server/src/api/schemas/users.schema.d.ts +98 -254
  226. package/dist/server/src/api/schemas/users.schema.js +6 -6
  227. package/dist/server/src/api/schemas/users.schema.js.map +1 -1
  228. package/dist/server/src/api/services/auth.service.d.ts +5 -5
  229. package/dist/server/src/api/services/auth.service.js +26 -35
  230. package/dist/server/src/api/services/auth.service.js.map +1 -1
  231. package/dist/server/src/api/services/cameras.service.d.ts +11 -15
  232. package/dist/server/src/api/services/cameras.service.js +143 -274
  233. package/dist/server/src/api/services/cameras.service.js.map +1 -1
  234. package/dist/server/src/api/services/plugins.service.d.ts +3 -1
  235. package/dist/server/src/api/services/plugins.service.js +48 -50
  236. package/dist/server/src/api/services/plugins.service.js.map +1 -1
  237. package/dist/server/src/api/services/users.service.d.ts +1 -0
  238. package/dist/server/src/api/services/users.service.js +20 -14
  239. package/dist/server/src/api/services/users.service.js.map +1 -1
  240. package/dist/server/src/api/types/index.d.ts +57 -46
  241. package/dist/server/src/api/types/index.js +0 -4
  242. package/dist/server/src/api/types/index.js.map +1 -1
  243. package/dist/server/src/api/utils/cert.d.ts +5 -1
  244. package/dist/server/src/api/utils/cert.js +24 -26
  245. package/dist/server/src/api/utils/cert.js.map +1 -1
  246. package/dist/server/src/api/utils/constants.d.ts +4 -2
  247. package/dist/server/src/api/utils/constants.js +4 -2
  248. package/dist/server/src/api/utils/constants.js.map +1 -1
  249. package/dist/server/src/api/utils/fetch.d.ts +1 -1
  250. package/dist/server/src/api/utils/fetch.js +2 -2
  251. package/dist/server/src/api/utils/fetch.js.map +1 -1
  252. package/dist/server/src/api/websocket/index.d.ts +1 -0
  253. package/dist/server/src/api/websocket/index.js +14 -9
  254. package/dist/server/src/api/websocket/index.js.map +1 -1
  255. package/dist/server/src/api/websocket/nsp/logs.d.ts +10 -2
  256. package/dist/server/src/api/websocket/nsp/logs.js +75 -27
  257. package/dist/server/src/api/websocket/nsp/logs.js.map +1 -1
  258. package/dist/server/src/api/websocket/nsp/metrics.d.ts +20 -12
  259. package/dist/server/src/api/websocket/nsp/metrics.js +188 -117
  260. package/dist/server/src/api/websocket/nsp/metrics.js.map +1 -1
  261. package/dist/server/src/api/websocket/nsp/plugins.d.ts +1 -1
  262. package/dist/server/src/api/websocket/nsp/plugins.js +3 -5
  263. package/dist/server/src/api/websocket/nsp/plugins.js.map +1 -1
  264. package/dist/server/src/api/websocket/nsp/server.js +6 -0
  265. package/dist/server/src/api/websocket/nsp/server.js.map +1 -1
  266. package/dist/server/src/api/websocket/types.d.ts +4 -2
  267. package/dist/server/src/api.d.ts +3 -4
  268. package/dist/server/src/api.js +13 -13
  269. package/dist/server/src/api.js.map +1 -1
  270. package/dist/server/src/camera/classes.d.ts +2 -0
  271. package/dist/server/src/camera/classes.js +24 -0
  272. package/dist/server/src/camera/classes.js.map +1 -0
  273. package/dist/server/src/camera/controller.d.ts +30 -18
  274. package/dist/server/src/camera/controller.js +236 -202
  275. package/dist/server/src/camera/controller.js.map +1 -1
  276. package/dist/server/src/camera/device.d.ts +34 -0
  277. package/dist/server/src/camera/device.js +327 -0
  278. package/dist/server/src/camera/device.js.map +1 -0
  279. package/dist/server/src/camera/frameWorker.d.ts +32 -31
  280. package/dist/server/src/camera/frameWorker.js +257 -247
  281. package/dist/server/src/camera/frameWorker.js.map +1 -1
  282. package/dist/server/src/camera/index.d.ts +92 -0
  283. package/dist/server/src/camera/index.js +531 -0
  284. package/dist/server/src/camera/index.js.map +1 -0
  285. package/dist/server/src/camera/interfaces.d.ts +17 -0
  286. package/dist/server/src/camera/interfaces.js +99 -0
  287. package/dist/server/src/camera/interfaces.js.map +1 -0
  288. package/dist/server/src/camera/iou.d.ts +2 -0
  289. package/dist/server/src/camera/iou.js +123 -0
  290. package/dist/server/src/camera/iou.js.map +1 -0
  291. package/dist/server/src/camera/polygon.d.ts +4 -0
  292. package/dist/server/src/camera/polygon.js +192 -0
  293. package/dist/server/src/camera/polygon.js.map +1 -0
  294. package/dist/server/src/camera/python/__init__.py +0 -0
  295. package/dist/server/src/camera/python/classes.py +41 -0
  296. package/dist/server/src/camera/python/interfaces.py +130 -0
  297. package/dist/server/src/camera/python/iou.py +158 -0
  298. package/dist/server/src/camera/python/polygon.py +230 -0
  299. package/dist/server/src/camera/python/typings.py +50 -0
  300. package/dist/server/src/camera/python/video_frame.py +143 -0
  301. package/dist/server/src/camera/session.d.ts +37 -0
  302. package/dist/server/src/camera/session.js +160 -0
  303. package/dist/server/src/camera/session.js.map +1 -0
  304. package/dist/server/src/camera/streaming/fmp4-session.d.ts +17 -0
  305. package/dist/server/src/camera/streaming/fmp4-session.js +308 -0
  306. package/dist/server/src/camera/streaming/fmp4-session.js.map +1 -0
  307. package/dist/server/src/camera/streaming/peer-connection.d.ts +26 -0
  308. package/dist/server/src/camera/streaming/peer-connection.js +213 -0
  309. package/dist/server/src/camera/streaming/peer-connection.js.map +1 -0
  310. package/dist/server/src/camera/streaming/rtsp-session.d.ts +19 -0
  311. package/dist/server/src/camera/streaming/rtsp-session.js +253 -0
  312. package/dist/server/src/camera/streaming/rtsp-session.js.map +1 -0
  313. package/dist/server/src/camera/streaming/webrtc-connection.d.ts +44 -0
  314. package/dist/server/src/camera/streaming/webrtc-connection.js +177 -0
  315. package/dist/server/src/camera/streaming/webrtc-connection.js.map +1 -0
  316. package/dist/server/src/camera/streaming/werift-session.d.ts +19 -0
  317. package/dist/server/src/camera/streaming/werift-session.js +246 -0
  318. package/dist/server/src/camera/streaming/werift-session.js.map +1 -0
  319. package/dist/server/src/camera/types.d.ts +16 -10
  320. package/dist/server/src/camera/utils.d.ts +9 -0
  321. package/dist/server/src/camera/utils.js +416 -0
  322. package/dist/server/src/camera/utils.js.map +1 -0
  323. package/dist/server/src/camera/videoFrame.d.ts +18 -0
  324. package/dist/server/src/camera/videoFrame.js +88 -0
  325. package/dist/server/src/camera/videoFrame.js.map +1 -0
  326. package/dist/server/src/cloud/index.d.ts +12 -0
  327. package/dist/server/src/cloud/index.js +49 -0
  328. package/dist/server/src/cloud/index.js.map +1 -0
  329. package/dist/server/src/cloud/remote/cloudflare.d.ts +7 -0
  330. package/dist/server/src/cloud/remote/cloudflare.js +12 -0
  331. package/dist/server/src/cloud/remote/cloudflare.js.map +1 -0
  332. package/dist/server/src/cloud/remote/upnp.d.ts +7 -0
  333. package/dist/server/src/cloud/remote/upnp.js +12 -0
  334. package/dist/server/src/cloud/remote/upnp.js.map +1 -0
  335. package/dist/server/src/cloud/remote/utils.d.ts +3 -0
  336. package/dist/server/src/cloud/remote/utils.js +20 -0
  337. package/dist/server/src/cloud/remote/utils.js.map +1 -0
  338. package/dist/server/src/cloud/types.d.ts +15 -0
  339. package/dist/server/src/cloud/types.js +11 -0
  340. package/dist/server/src/cloud/types.js.map +1 -0
  341. package/dist/server/src/decoder/child.d.ts +1 -0
  342. package/dist/server/src/decoder/child.js +749 -0
  343. package/dist/server/src/decoder/child.js.map +1 -0
  344. package/dist/server/src/decoder/imageUtils.d.ts +22 -0
  345. package/dist/server/src/decoder/imageUtils.js +196 -0
  346. package/dist/server/src/decoder/imageUtils.js.map +1 -0
  347. package/dist/server/src/decoder/manager.d.ts +19 -0
  348. package/dist/server/src/decoder/manager.js +208 -0
  349. package/dist/server/src/decoder/manager.js.map +1 -0
  350. package/dist/server/src/decoder/python/__init__.py +0 -0
  351. package/dist/server/src/decoder/python/child.py +903 -0
  352. package/dist/server/src/decoder/python/image_utils.py +196 -0
  353. package/dist/server/src/decoder/python/pool.py +45 -0
  354. package/dist/server/src/decoder/python/typings.py +57 -0
  355. package/dist/server/src/decoder/python/utils.py +70 -0
  356. package/dist/server/src/decoder/types.d.ts +23 -0
  357. package/dist/server/src/decoder/types.js.map +1 -0
  358. package/dist/server/src/decoder/utils.d.ts +13 -0
  359. package/dist/server/src/decoder/utils.js +45 -0
  360. package/dist/server/src/decoder/utils.js.map +1 -0
  361. package/dist/server/src/decoder/wasm/build/decoder.d.ts +43 -0
  362. package/dist/server/src/decoder/wasm/build/decoder.js +108 -0
  363. package/dist/server/src/decoder/wasm/build/decoder.wasm +0 -0
  364. package/dist/server/src/decoder/worker.d.ts +1 -0
  365. package/dist/server/src/decoder/worker.js +79 -0
  366. package/dist/server/src/decoder/worker.js.map +1 -0
  367. package/dist/server/src/go2rtc/index.d.ts +1 -0
  368. package/dist/server/src/go2rtc/index.js +27 -9
  369. package/dist/server/src/go2rtc/index.js.map +1 -1
  370. package/dist/server/src/go2rtc/types.d.ts +5 -4
  371. package/dist/server/src/go2rtc/types.js +7 -2
  372. package/dist/server/src/go2rtc/types.js.map +1 -1
  373. package/dist/server/src/main.js +19 -5
  374. package/dist/server/src/main.js.map +1 -1
  375. package/dist/server/src/manager/coreManager.d.ts +16 -0
  376. package/dist/server/src/manager/coreManager.js +95 -0
  377. package/dist/server/src/manager/coreManager.js.map +1 -0
  378. package/dist/server/src/manager/deviceManager.d.ts +12 -0
  379. package/dist/server/src/manager/deviceManager.js +130 -0
  380. package/dist/server/src/manager/deviceManager.js.map +1 -0
  381. package/dist/server/src/manager/types.d.ts +15 -0
  382. package/dist/server/src/manager/types.js +2 -0
  383. package/dist/server/src/manager/types.js.map +1 -0
  384. package/dist/server/src/plugins/index.d.ts +3 -1
  385. package/dist/server/src/plugins/index.js +42 -21
  386. package/dist/server/src/plugins/index.js.map +1 -1
  387. package/dist/server/src/plugins/plugin.d.ts +3 -3
  388. package/dist/server/src/plugins/plugin.js +13 -20
  389. package/dist/server/src/plugins/plugin.js.map +1 -1
  390. package/dist/server/src/plugins/runtime/base.d.ts +54 -0
  391. package/dist/server/src/plugins/runtime/base.js +223 -0
  392. package/dist/server/src/plugins/runtime/base.js.map +1 -0
  393. package/dist/server/src/plugins/runtime/index.d.ts +5 -0
  394. package/dist/server/src/plugins/runtime/index.js +13 -0
  395. package/dist/server/src/plugins/runtime/index.js.map +1 -0
  396. package/dist/server/src/plugins/runtime/node/child.d.ts +22 -0
  397. package/dist/server/src/plugins/runtime/node/child.js +152 -0
  398. package/dist/server/src/plugins/runtime/node/child.js.map +1 -0
  399. package/dist/server/src/plugins/runtime/node/index.d.ts +7 -0
  400. package/dist/server/src/plugins/runtime/node/index.js +54 -0
  401. package/dist/server/src/plugins/runtime/node/index.js.map +1 -0
  402. package/dist/server/src/plugins/runtime/node/plugin.d.ts +24 -0
  403. package/dist/server/src/plugins/runtime/node/plugin.js +128 -0
  404. package/dist/server/src/plugins/runtime/node/plugin.js.map +1 -0
  405. package/dist/server/src/plugins/runtime/node/pluginApi.d.ts +16 -0
  406. package/dist/server/src/plugins/runtime/node/pluginApi.js +18 -0
  407. package/dist/server/src/plugins/runtime/node/pluginApi.js.map +1 -0
  408. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.d.ts +25 -0
  409. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js +230 -0
  410. package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js.map +1 -0
  411. package/dist/server/src/plugins/runtime/node/proxy/coreManager.d.ts +16 -0
  412. package/dist/server/src/plugins/runtime/node/proxy/coreManager.js +98 -0
  413. package/dist/server/src/plugins/runtime/node/proxy/coreManager.js.map +1 -0
  414. package/dist/server/src/plugins/runtime/node/proxy/deviceManager.d.ts +19 -0
  415. package/dist/server/src/plugins/runtime/node/proxy/deviceManager.js +144 -0
  416. package/dist/server/src/plugins/runtime/node/proxy/deviceManager.js.map +1 -0
  417. package/dist/server/src/plugins/runtime/node/storage.d.ts +34 -0
  418. package/dist/server/src/plugins/runtime/node/storage.js +313 -0
  419. package/dist/server/src/plugins/runtime/node/storage.js.map +1 -0
  420. package/dist/server/src/plugins/runtime/node/storageController.d.ts +18 -0
  421. package/dist/server/src/plugins/runtime/node/storageController.js +67 -0
  422. package/dist/server/src/plugins/runtime/node/storageController.js.map +1 -0
  423. package/dist/server/src/plugins/runtime/python/__init__.py +0 -0
  424. package/dist/server/src/plugins/runtime/python/child.py +248 -0
  425. package/dist/server/src/plugins/runtime/python/index.d.ts +9 -0
  426. package/dist/server/src/plugins/runtime/python/index.js +57 -0
  427. package/dist/server/src/plugins/runtime/python/index.js.map +1 -0
  428. package/dist/server/src/plugins/runtime/python/namespaces.py +101 -0
  429. package/dist/server/src/plugins/runtime/python/plugin.py +155 -0
  430. package/dist/server/src/plugins/runtime/python/plugin_api.py +29 -0
  431. package/dist/server/src/plugins/runtime/python/proxy/camera_device.py +1732 -0
  432. package/dist/server/src/plugins/runtime/python/proxy/core_manager.py +126 -0
  433. package/dist/server/src/plugins/runtime/python/proxy/device_manager.py +197 -0
  434. package/dist/server/src/plugins/runtime/python/schema.py +99 -0
  435. package/dist/server/src/plugins/runtime/python/storage.py +353 -0
  436. package/dist/server/src/plugins/runtime/python/storage_controller.py +102 -0
  437. package/dist/server/src/plugins/runtime/python/typings.py +195 -0
  438. package/dist/server/src/plugins/schema.d.ts +27 -34
  439. package/dist/server/src/plugins/schema.js +358 -369
  440. package/dist/server/src/plugins/schema.js.map +1 -1
  441. package/dist/server/src/plugins/types.d.ts +43 -1
  442. package/dist/server/src/plugins/types.js +16 -0
  443. package/dist/server/src/plugins/types.js.map +1 -1
  444. package/dist/server/src/plugins/worker.d.ts +12 -31
  445. package/dist/server/src/plugins/worker.js +89 -343
  446. package/dist/server/src/plugins/worker.js.map +1 -1
  447. package/dist/server/src/rpc/index.d.ts +32 -0
  448. package/dist/server/src/rpc/index.js +103 -0
  449. package/dist/server/src/rpc/index.js.map +1 -0
  450. package/dist/server/src/rpc/namespaces.d.ts +35 -0
  451. package/dist/server/src/rpc/namespaces.js +42 -0
  452. package/dist/server/src/rpc/namespaces.js.map +1 -0
  453. package/dist/server/src/{nats → rpc}/server.d.ts +6 -2
  454. package/dist/server/src/{nats → rpc}/server.js +76 -55
  455. package/dist/server/src/rpc/server.js.map +1 -0
  456. package/dist/server/src/rpc/types.d.ts +111 -0
  457. package/dist/server/src/rpc/types.js +2 -0
  458. package/dist/server/src/{nats → rpc}/types.js.map +1 -1
  459. package/dist/server/src/{nats → rpc}/utils.d.ts +1 -1
  460. package/dist/server/src/rpc/utils.js.map +1 -0
  461. package/dist/server/src/services/config/constants.js +12 -48
  462. package/dist/server/src/services/config/constants.js.map +1 -1
  463. package/dist/server/src/services/config/defaults.d.ts +12 -0
  464. package/dist/server/src/services/config/defaults.js +55 -0
  465. package/dist/server/src/services/config/defaults.js.map +1 -0
  466. package/dist/server/src/services/config/index.d.ts +57 -9
  467. package/dist/server/src/services/config/index.js +277 -130
  468. package/dist/server/src/services/config/index.js.map +1 -1
  469. package/dist/server/src/services/config/types.d.ts +10 -4
  470. package/dist/server/src/types.d.ts +3 -0
  471. package/dist/server/src/utils/path.d.ts +5 -0
  472. package/dist/server/src/utils/path.js +12 -0
  473. package/dist/server/src/utils/path.js.map +1 -0
  474. package/dist/server/src/utils/pythonInstaller.d.ts +46 -0
  475. package/dist/server/src/utils/pythonInstaller.js +463 -0
  476. package/dist/server/src/utils/pythonInstaller.js.map +1 -0
  477. package/eslint.config.js +103 -0
  478. package/localdeps.txt +10 -0
  479. package/mypy.ini +30 -0
  480. package/package.json +57 -45
  481. package/requirements.txt +15 -0
  482. package/ruff.toml +90 -0
  483. package/src/__init__.py +0 -0
  484. package/src/_camera_ui_tools/__init__.py +0 -0
  485. package/src/_camera_ui_tools/__pycache__/__init__.cpython-311.pyc +0 -0
  486. package/src/api/controllers/api.controller.ts +19 -0
  487. package/src/api/controllers/auth.controller.ts +294 -0
  488. package/src/api/controllers/backup.controller.ts +72 -0
  489. package/src/api/controllers/cameras.controller.ts +1029 -0
  490. package/src/api/controllers/config.controller.ts +102 -0
  491. package/src/api/controllers/files.controller.ts +35 -0
  492. package/src/api/controllers/frameWorkers.controller.ts +109 -0
  493. package/src/api/controllers/plugins.controller.ts +1206 -0
  494. package/src/api/controllers/system.controller.ts +273 -0
  495. package/src/api/controllers/users.controller.ts +648 -0
  496. package/src/api/database/checks.ts +268 -0
  497. package/src/api/database/constants.ts +8 -0
  498. package/src/api/database/index.ts +262 -0
  499. package/src/api/database/migration.ts +62 -0
  500. package/src/api/database/selfcheck.ts +492 -0
  501. package/src/api/database/types.ts +104 -0
  502. package/src/api/go2rtc/api/application.ts +48 -0
  503. package/src/api/go2rtc/api/config.ts +61 -0
  504. package/src/api/go2rtc/api/discover.ts +197 -0
  505. package/src/api/go2rtc/api/index.ts +49 -0
  506. package/src/api/go2rtc/api/snapshot.ts +44 -0
  507. package/src/api/go2rtc/api/streams.ts +168 -0
  508. package/src/api/go2rtc/index.ts +43 -0
  509. package/src/api/go2rtc/queue.ts +50 -0
  510. package/src/api/go2rtc/types.ts +174 -0
  511. package/src/api/index.ts +286 -0
  512. package/src/api/middlewares/authPermission.middleware.ts +46 -0
  513. package/src/api/middlewares/authValidation.middleware.ts +160 -0
  514. package/src/api/middlewares/pagination.middleware.ts +67 -0
  515. package/src/api/middlewares/socketAuth.middleware.ts +136 -0
  516. package/src/api/plugins/header.plugin.ts +15 -0
  517. package/src/api/plugins/logger.plugin.ts +44 -0
  518. package/src/api/plugins/proxy.plugin.ts +255 -0
  519. package/src/api/plugins/socket.plugin.ts +28 -0
  520. package/src/api/plugins/system.plugin.ts +48 -0
  521. package/src/api/plugins/useragent.plugin.ts +19 -0
  522. package/src/api/routes/api.routes.ts +10 -0
  523. package/src/api/routes/auth.routes.ts +56 -0
  524. package/src/api/routes/backup.routes.ts +28 -0
  525. package/src/api/routes/cameras.routes.ts +281 -0
  526. package/src/api/routes/config.routes.ts +66 -0
  527. package/src/api/routes/files.routes.ts +15 -0
  528. package/src/api/routes/frameWorkers.routes.ts +39 -0
  529. package/src/api/routes/index.ts +37 -0
  530. package/src/api/routes/plugins.routes.ts +420 -0
  531. package/src/api/routes/system.routes.ts +101 -0
  532. package/src/api/routes/users.routes.ts +167 -0
  533. package/src/api/schemas/backup.schema.ts +112 -0
  534. package/src/api/schemas/cameras.schema.ts +479 -0
  535. package/src/api/schemas/config.schema.ts +38 -0
  536. package/src/api/schemas/go2rtc.schema.ts +189 -0
  537. package/src/api/schemas/plugins.schema.ts +126 -0
  538. package/src/api/schemas/storage.schema.ts +11 -0
  539. package/src/api/schemas/system.schema.ts +45 -0
  540. package/src/api/schemas/users.schema.ts +185 -0
  541. package/src/api/services/auth.service.ts +210 -0
  542. package/src/api/services/backup.service.ts +144 -0
  543. package/src/api/services/cameras.service.ts +671 -0
  544. package/src/api/services/plugins.service.ts +470 -0
  545. package/src/api/services/system.service.ts +85 -0
  546. package/src/api/services/users.service.ts +276 -0
  547. package/src/api/types/index.ts +675 -0
  548. package/src/api/utils/cert.ts +254 -0
  549. package/src/api/utils/constants.ts +17 -0
  550. package/src/api/utils/fetch.ts +21 -0
  551. package/src/api/utils/moveFiles.ts +45 -0
  552. package/src/api/utils/parse.ts +17 -0
  553. package/src/api/websocket/index.ts +110 -0
  554. package/src/api/websocket/nsp/logs.ts +240 -0
  555. package/src/api/websocket/nsp/main.ts +27 -0
  556. package/src/api/websocket/nsp/metrics.ts +301 -0
  557. package/src/api/websocket/nsp/notifications.ts +43 -0
  558. package/src/api/websocket/nsp/plugins.ts +37 -0
  559. package/src/api/websocket/nsp/server.ts +220 -0
  560. package/src/api/websocket/nsp/status.ts +77 -0
  561. package/src/api/websocket/types.ts +55 -0
  562. package/src/api.ts +163 -0
  563. package/src/camera/classes.ts +32 -0
  564. package/src/camera/controller.ts +579 -0
  565. package/src/camera/device.ts +422 -0
  566. package/src/camera/frameWorker.ts +403 -0
  567. package/src/camera/index.ts +679 -0
  568. package/src/camera/interfaces.ts +95 -0
  569. package/src/camera/iou.ts +153 -0
  570. package/src/camera/polygon.ts +226 -0
  571. package/src/camera/python/__init__.py +0 -0
  572. package/src/camera/python/__pycache__/__init__.cpython-311.pyc +0 -0
  573. package/src/camera/python/__pycache__/classes.cpython-311.pyc +0 -0
  574. package/src/camera/python/__pycache__/delegate_controller.cpython-311.pyc +0 -0
  575. package/src/camera/python/__pycache__/interfaces.cpython-311.pyc +0 -0
  576. package/src/camera/python/__pycache__/iou.cpython-310.pyc +0 -0
  577. package/src/camera/python/__pycache__/iou.cpython-311.pyc +0 -0
  578. package/src/camera/python/__pycache__/iou2.cpython-310.pyc +0 -0
  579. package/src/camera/python/__pycache__/polygon.cpython-311.pyc +0 -0
  580. package/src/camera/python/__pycache__/typings.cpython-311.pyc +0 -0
  581. package/src/camera/python/__pycache__/video_frame.cpython-311.pyc +0 -0
  582. package/src/camera/python/classes.py +41 -0
  583. package/src/camera/python/interfaces.py +130 -0
  584. package/src/camera/python/iou.py +158 -0
  585. package/src/camera/python/polygon.py +230 -0
  586. package/src/camera/python/test/__pycache__/polygon.cpython-310.pyc +0 -0
  587. package/src/camera/python/test/iou_test.py +799 -0
  588. package/src/camera/python/test/polygon.py +238 -0
  589. package/src/camera/python/test/polygon_test.py +256 -0
  590. package/src/camera/python/test/polygon_test2.py +484 -0
  591. package/src/camera/python/typings.py +50 -0
  592. package/src/camera/python/video_frame.py +143 -0
  593. package/src/camera/session.ts +192 -0
  594. package/src/camera/streaming/fmp4-session.ts +390 -0
  595. package/src/camera/streaming/peer-connection.ts +273 -0
  596. package/src/camera/streaming/rtsp-session.ts +331 -0
  597. package/src/camera/streaming/webrtc-connection.ts +260 -0
  598. package/src/camera/streaming/werift-session.ts +317 -0
  599. package/src/camera/test/iou_test.ts +761 -0
  600. package/src/camera/test/polygon.test.ts +611 -0
  601. package/src/camera/test/polygon_test.ts +210 -0
  602. package/src/camera/types.ts +48 -0
  603. package/src/camera/utils.ts +489 -0
  604. package/src/camera/videoFrame.ts +123 -0
  605. package/src/cloud/index.ts +61 -0
  606. package/src/cloud/remote/cloudflare.ts +18 -0
  607. package/src/cloud/remote/upnp.ts +18 -0
  608. package/src/cloud/remote/utils.ts +24 -0
  609. package/src/cloud/types.ts +16 -0
  610. package/src/decoder/child.ts +883 -0
  611. package/src/decoder/imageUtils.ts +275 -0
  612. package/src/decoder/manager.ts +251 -0
  613. package/src/decoder/python/__init__.py +0 -0
  614. package/src/decoder/python/__pycache__/__init__.cpython-311.pyc +0 -0
  615. package/src/decoder/python/__pycache__/image_utils.cpython-311.pyc +0 -0
  616. package/src/decoder/python/__pycache__/typings.cpython-311.pyc +0 -0
  617. package/src/decoder/python/__pycache__/utils.cpython-311.pyc +0 -0
  618. package/src/decoder/python/child.py +903 -0
  619. package/src/decoder/python/image_utils.py +196 -0
  620. package/src/decoder/python/pool.py +45 -0
  621. package/src/decoder/python/test/group.py +62 -0
  622. package/src/decoder/python/test/motion.mp4 +0 -0
  623. package/src/decoder/python/test/motion2.mp4 +0 -0
  624. package/src/decoder/python/test/opencl.cl +70 -0
  625. package/src/decoder/python/test/opencl2.cl +130 -0
  626. package/src/decoder/python/test/test.py +427 -0
  627. package/src/decoder/python/test/test1.jpg +0 -0
  628. package/src/decoder/python/test/test1_resized.jpg +0 -0
  629. package/src/decoder/python/test/test2.jpg +0 -0
  630. package/src/decoder/python/test/test2.py +451 -0
  631. package/src/decoder/python/test/test2_resized.jpg +0 -0
  632. package/src/decoder/python/test/test3.jpg +0 -0
  633. package/src/decoder/python/test/utils.py +50 -0
  634. package/src/decoder/python/typings.py +57 -0
  635. package/src/decoder/python/utils.py +70 -0
  636. package/src/decoder/test/child.ts +117 -0
  637. package/src/decoder/test/ffmpeg.ts +371 -0
  638. package/src/decoder/test/test.ts +182 -0
  639. package/src/decoder/types.ts +27 -0
  640. package/src/decoder/utils.ts +64 -0
  641. package/src/decoder/wasm/asconfig.json +28 -0
  642. package/src/decoder/wasm/assembly/console.ts +1 -0
  643. package/src/decoder/wasm/assembly/index.ts +890 -0
  644. package/src/decoder/wasm/build/decoder.d.ts +43 -0
  645. package/src/decoder/wasm/build/decoder.js +108 -0
  646. package/src/decoder/wasm/build/decoder.wasm +0 -0
  647. package/src/decoder/wasm/tsconfig.json +5 -0
  648. package/src/decoder/worker.ts +113 -0
  649. package/src/go2rtc/index.ts +324 -0
  650. package/src/go2rtc/types.ts +88 -0
  651. package/src/main.ts +267 -0
  652. package/src/manager/coreManager.ts +78 -0
  653. package/src/manager/deviceManager.ts +132 -0
  654. package/src/manager/types.ts +17 -0
  655. package/src/plugins/index.ts +443 -0
  656. package/src/plugins/plugin.ts +177 -0
  657. package/src/plugins/runtime/base.ts +282 -0
  658. package/src/plugins/runtime/index.ts +15 -0
  659. package/src/plugins/runtime/node/child.ts +193 -0
  660. package/src/plugins/runtime/node/index.ts +67 -0
  661. package/src/plugins/runtime/node/plugin.ts +122 -0
  662. package/src/plugins/runtime/node/pluginApi.ts +27 -0
  663. package/src/plugins/runtime/node/proxy/cameraDevice.ts +299 -0
  664. package/src/plugins/runtime/node/proxy/coreManager.ts +128 -0
  665. package/src/plugins/runtime/node/proxy/deviceManager.ts +187 -0
  666. package/src/plugins/runtime/node/storage.ts +312 -0
  667. package/src/plugins/runtime/node/storageController.ts +91 -0
  668. package/src/plugins/runtime/python/__init__.py +0 -0
  669. package/src/plugins/runtime/python/__pycache__/__init__.cpython-311.pyc +0 -0
  670. package/src/plugins/runtime/python/__pycache__/camera_storage.cpython-311.pyc +0 -0
  671. package/src/plugins/runtime/python/__pycache__/config_service.cpython-311.pyc +0 -0
  672. package/src/plugins/runtime/python/__pycache__/constants.cpython-311.pyc +0 -0
  673. package/src/plugins/runtime/python/__pycache__/ipc.cpython-311.pyc +0 -0
  674. package/src/plugins/runtime/python/__pycache__/logger.cpython-311.pyc +0 -0
  675. package/src/plugins/runtime/python/__pycache__/message_queue.cpython-311.pyc +0 -0
  676. package/src/plugins/runtime/python/__pycache__/namespaces.cpython-311.pyc +0 -0
  677. package/src/plugins/runtime/python/__pycache__/plugin.cpython-311.pyc +0 -0
  678. package/src/plugins/runtime/python/__pycache__/plugin_api.cpython-311.pyc +0 -0
  679. package/src/plugins/runtime/python/__pycache__/plugin_logger.cpython-311.pyc +0 -0
  680. package/src/plugins/runtime/python/__pycache__/proxy_utils.cpython-311.pyc +0 -0
  681. package/src/plugins/runtime/python/__pycache__/schema.cpython-311.pyc +0 -0
  682. package/src/plugins/runtime/python/__pycache__/storage.cpython-311.pyc +0 -0
  683. package/src/plugins/runtime/python/__pycache__/storage_controller.cpython-311.pyc +0 -0
  684. package/src/plugins/runtime/python/__pycache__/typings.cpython-311.pyc +0 -0
  685. package/src/plugins/runtime/python/child.py +248 -0
  686. package/src/plugins/runtime/python/index.ts +73 -0
  687. package/src/plugins/runtime/python/namespaces.py +101 -0
  688. package/src/plugins/runtime/python/plugin.py +155 -0
  689. package/src/plugins/runtime/python/plugin_api.py +29 -0
  690. package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-310.pyc +0 -0
  691. package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-311.pyc +0 -0
  692. package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-38.pyc +0 -0
  693. package/src/plugins/runtime/python/proxy/__pycache__/camera_device.cpython-39.pyc +0 -0
  694. package/src/plugins/runtime/python/proxy/__pycache__/constants.cpython-311.pyc +0 -0
  695. package/src/plugins/runtime/python/proxy/__pycache__/constants.cpython-39.pyc +0 -0
  696. package/src/plugins/runtime/python/proxy/__pycache__/core_manager.cpython-311.pyc +0 -0
  697. package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-310.pyc +0 -0
  698. package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-311.pyc +0 -0
  699. package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-38.pyc +0 -0
  700. package/src/plugins/runtime/python/proxy/__pycache__/device_manager.cpython-39.pyc +0 -0
  701. package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-310.pyc +0 -0
  702. package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-311.pyc +0 -0
  703. package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-38.pyc +0 -0
  704. package/src/plugins/runtime/python/proxy/__pycache__/generate_keys.cpython-39.pyc +0 -0
  705. package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-310.pyc +0 -0
  706. package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-311.pyc +0 -0
  707. package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-38.pyc +0 -0
  708. package/src/plugins/runtime/python/proxy/__pycache__/message_queue.cpython-39.pyc +0 -0
  709. package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-310.pyc +0 -0
  710. package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-311.pyc +0 -0
  711. package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-38.pyc +0 -0
  712. package/src/plugins/runtime/python/proxy/__pycache__/plugins_manager.cpython-39.pyc +0 -0
  713. package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-310.pyc +0 -0
  714. package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-311.pyc +0 -0
  715. package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-38.pyc +0 -0
  716. package/src/plugins/runtime/python/proxy/__pycache__/system_manager.cpython-39.pyc +0 -0
  717. package/src/plugins/runtime/python/proxy/camera_device.py +1732 -0
  718. package/src/plugins/runtime/python/proxy/core_manager.py +126 -0
  719. package/src/plugins/runtime/python/proxy/device_manager.py +197 -0
  720. package/src/plugins/runtime/python/schema.py +99 -0
  721. package/src/plugins/runtime/python/storage.py +353 -0
  722. package/src/plugins/runtime/python/storage_controller.py +102 -0
  723. package/src/plugins/runtime/python/typings.py +195 -0
  724. package/src/plugins/schema.ts +472 -0
  725. package/src/plugins/types.ts +60 -0
  726. package/src/plugins/worker.ts +250 -0
  727. package/src/rpc/index.ts +149 -0
  728. package/src/rpc/namespaces.ts +79 -0
  729. package/src/rpc/server.ts +422 -0
  730. package/src/rpc/types.ts +119 -0
  731. package/src/rpc/utils.ts +16 -0
  732. package/src/services/config/constants.ts +47 -0
  733. package/src/services/config/defaults.ts +57 -0
  734. package/src/services/config/index.ts +744 -0
  735. package/src/services/config/types.ts +211 -0
  736. package/src/services/logger/index.ts +96 -0
  737. package/src/types.ts +47 -0
  738. package/src/utils/path.ts +16 -0
  739. package/src/utils/pythonInstaller.ts +597 -0
  740. package/tsconfig.json +37 -0
  741. package/types/fastify.d.ts +14 -0
  742. package/updates.config.js +3 -0
  743. package/dist/interface/@intlify.Do1-T-x0.0.0.48.js +0 -15
  744. package/dist/interface/@mdi.CbjpODVZ.0.0.48.js +0 -1
  745. package/dist/interface/@tanstack.B7j0RsPf.0.0.48.js +0 -1
  746. package/dist/interface/@vue.DRcZ6uZO.0.0.48.js +0 -17
  747. package/dist/interface/@vueform.B6V1sb13.0.0.48.js +0 -1
  748. package/dist/interface/@vueuse.C65DwZuy.0.0.48.js +0 -1
  749. package/dist/interface/Account.SjrtJ2E-.0.0.48.js +0 -1
  750. package/dist/interface/Adminpanel.2cW-TEJR.0.0.48.js +0 -2
  751. package/dist/interface/Appearance.BCjcy9_6.0.0.48.js +0 -1
  752. package/dist/interface/Backup.DPajlOJy.0.0.48.js +0 -1
  753. package/dist/interface/Camera.DL2k_Ka4.0.0.48.js +0 -1
  754. package/dist/interface/Cameras.Dfo9jtEF.0.0.48.js +0 -1
  755. package/dist/interface/Camview.D65EW1lh.0.0.48.js +0 -1
  756. package/dist/interface/Config.CN7-dqYR.0.0.48.js +0 -1
  757. package/dist/interface/Console.CR82nS2O.0.0.48.js +0 -4
  758. package/dist/interface/FirstSteps.CB5GkCCn.0.0.48.js +0 -1
  759. package/dist/interface/NewCamera.DZmwbpbF.0.0.48.js +0 -448
  760. package/dist/interface/Plugin.CFkM1eRw.0.0.48.js +0 -1
  761. package/dist/interface/Plugins.LYJU4g0H.0.0.48.js +0 -1
  762. package/dist/interface/Recordings.BxmCtPDw.0.0.48.js +0 -1
  763. package/dist/interface/Recordings.UIpgTeCh.0.0.48.js +0 -1
  764. package/dist/interface/Settings.BxGxkxQ-.0.0.48.js +0 -1
  765. package/dist/interface/System.HucLWbQx.0.0.48.js +0 -4
  766. package/dist/interface/User.BB8i1tjm.0.0.48.js +0 -1
  767. package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang._4BVZ2To.0.0.48.js +0 -2
  768. package/dist/interface/VConsole.wv8VCqg-.0.0.48.js +0 -1
  769. package/dist/interface/VPlayer.DyeXezbn.0.0.48.js +0 -4
  770. package/dist/interface/VPluginCard.B_Gjjpzq.0.0.48.js +0 -4
  771. package/dist/interface/ace-builds.DPqPJOIH.0.0.48.js +0 -970
  772. package/dist/interface/apexcharts.C_nN6CT2.0.0.48.js +0 -838
  773. package/dist/interface/assets/@vueform.0.0.48.CroAHJs8.css +0 -1
  774. package/dist/interface/assets/@xterm.0.0.48.CFbL2ovg.css +0 -32
  775. package/dist/interface/assets/Account.0.0.48.Bnw6Lbtd.css +0 -1
  776. package/dist/interface/assets/Adminpanel.0.0.48.a3t1v3MB.css +0 -1
  777. package/dist/interface/assets/Camera.0.0.48.Br9s6-lM.css +0 -1
  778. package/dist/interface/assets/Cameras.0.0.48.Buf1Dgce.css +0 -1
  779. package/dist/interface/assets/Camview.0.0.48.B7Cja2ry.css +0 -1
  780. package/dist/interface/assets/Config.0.0.48.DNGo2krN.css +0 -1
  781. package/dist/interface/assets/Console.0.0.48.Bh8l9QnM.css +0 -1
  782. package/dist/interface/assets/FirstSteps.0.0.48.Mu8VPl13.css +0 -1
  783. package/dist/interface/assets/NewCamera.0.0.48.B36nuN1T.css +0 -1
  784. package/dist/interface/assets/Plugin.0.0.48.YIpAU1_n.css +0 -1
  785. package/dist/interface/assets/Plugins.0.0.48.DXSoO9M1.css +0 -1
  786. package/dist/interface/assets/Settings.0.0.48.CVmui2kE.css +0 -1
  787. package/dist/interface/assets/User.0.0.48.BiGtIFqt.css +0 -1
  788. package/dist/interface/assets/VConsole.0.0.48.BCqKHpmJ.css +0 -1
  789. package/dist/interface/assets/VPlayer.0.0.48.C4lm2rVR.css +0 -1
  790. package/dist/interface/assets/VPluginCard.0.0.48.C8Lj6X-J.css +0 -1
  791. package/dist/interface/assets/main.0.0.48.OJngntGT.css +0 -1
  792. package/dist/interface/assets/vue3-toastify.0.0.48.DHXAGmwn.css +0 -1
  793. package/dist/interface/assets/vuetify.0.0.48.Dua9WSqa.css +0 -5
  794. package/dist/interface/axios.DIsA03vz.0.0.48.js +0 -6
  795. package/dist/interface/backup.Bk4AzYLT.0.0.48.js +0 -1
  796. package/dist/interface/dnd-core.Dmh1w8XK.0.0.48.js +0 -1
  797. package/dist/interface/engine.io-client.DRzsVXts.0.0.48.js +0 -1
  798. package/dist/interface/fast-deep-equal.BuOg6xuK.0.0.48.js +0 -1
  799. package/dist/interface/fonts/Inter/Inter-Regular.ttf +0 -0
  800. package/dist/interface/highlight.js.Cg6c_cCL.0.0.48.js +0 -2
  801. package/dist/interface/hookable.B8xFkYCm.0.0.48.js +0 -1
  802. package/dist/interface/linkify-it.D_vNtISo.0.0.48.js +0 -1
  803. package/dist/interface/main.mlm94TYK.0.0.48.js +0 -4
  804. package/dist/interface/perfect-debounce.Cp2ysxOb.0.0.48.js +0 -1
  805. package/dist/interface/pinia.BL6apvtP.0.0.48.js +0 -5
  806. package/dist/interface/plugins.Ch_0cv_L.0.0.48.js +0 -1
  807. package/dist/interface/react-dnd-touch-backend.BVVlM5Mg.0.0.48.js +0 -1
  808. package/dist/interface/rxjs.MDPuHaHC.0.0.48.js +0 -3
  809. package/dist/interface/socket.io-client.Bc7OYr1V.0.0.48.js +0 -1
  810. package/dist/interface/socket.io-parser.DPrtWC9i.0.0.48.js +0 -1
  811. package/dist/interface/system.C-onsBEc.0.0.48.js +0 -1
  812. package/dist/interface/types.Cz9TaZAP.0.0.48.js +0 -1
  813. package/dist/interface/utils.mAKpSMLY.0.0.48.js +0 -1
  814. package/dist/interface/uuid.Ch9TGLTe.0.0.48.js +0 -1
  815. package/dist/interface/vee-validate.Dzj4dBd6.0.0.48.js +0 -5
  816. package/dist/interface/vue-i18n.DtBWXzdw.0.0.48.js +0 -5
  817. package/dist/interface/vue-inline-svg.CPcaXOwr.0.0.48.js +0 -1
  818. package/dist/interface/vue-router.S61oR9AT.0.0.48.js +0 -5
  819. package/dist/interface/vue3-apexcharts.Dvg57mTV.0.0.48.js +0 -1
  820. package/dist/interface/vue3-dnd.CA2xeH6p.0.0.48.js +0 -1
  821. package/dist/interface/vue3-toastify.nL-I4C--.0.0.48.js +0 -1
  822. package/dist/interface/vuetify.DlOnqSL1.0.0.48.js +0 -5
  823. package/dist/interface/zod.bkdEMpUp.0.0.48.js +0 -1
  824. package/dist/server/src/api/utils/cameraSource.d.ts +0 -6
  825. package/dist/server/src/api/utils/cameraSource.js +0 -51
  826. package/dist/server/src/api/utils/cameraSource.js.map +0 -1
  827. package/dist/server/src/api/websocket/go2rtc.d.ts +0 -21
  828. package/dist/server/src/api/websocket/go2rtc.js +0 -88
  829. package/dist/server/src/api/websocket/go2rtc.js.map +0 -1
  830. package/dist/server/src/api/websocket/nsp/proxy.d.ts +0 -27
  831. package/dist/server/src/api/websocket/nsp/proxy.js +0 -127
  832. package/dist/server/src/api/websocket/nsp/proxy.js.map +0 -1
  833. package/dist/server/src/nats/index.d.ts +0 -40
  834. package/dist/server/src/nats/index.js +0 -164
  835. package/dist/server/src/nats/index.js.map +0 -1
  836. package/dist/server/src/nats/proxy/cameraDevice.d.ts +0 -22
  837. package/dist/server/src/nats/proxy/cameraDevice.js +0 -249
  838. package/dist/server/src/nats/proxy/cameraDevice.js.map +0 -1
  839. package/dist/server/src/nats/proxy/coreManager.d.ts +0 -14
  840. package/dist/server/src/nats/proxy/coreManager.js +0 -68
  841. package/dist/server/src/nats/proxy/coreManager.js.map +0 -1
  842. package/dist/server/src/nats/proxy/deviceManager.d.ts +0 -14
  843. package/dist/server/src/nats/proxy/deviceManager.js +0 -101
  844. package/dist/server/src/nats/proxy/deviceManager.js.map +0 -1
  845. package/dist/server/src/nats/server.js.map +0 -1
  846. package/dist/server/src/nats/types.d.ts +0 -18
  847. package/dist/server/src/nats/utils.js.map +0 -1
  848. /package/dist/interface/assets/{Backup.0.0.48.CX0rT0QJ.css → SettingsBackup.CX0rT0QJ.0.0.50-internal.0.css} +0 -0
  849. /package/dist/interface/assets/{highlight.0.0.48.Ch2EwETz.css → highlight.Ch2EwETz.0.0.50-internal.0.css} +0 -0
  850. /package/dist/interface/assets/{logo-256.0.0.48.BCQk9H1-.png → logo-256.BCQk9H1-.0.0.50-internal.0.png} +0 -0
  851. /package/dist/interface/assets/{logo-512.0.0.48.DLKVOU2S.png → logo-512.DLKVOU2S.0.0.50-internal.0.png} +0 -0
  852. /package/dist/interface/assets/{logo.0.0.48.DmEiRk0z.png → logo.DmEiRk0z.0.0.50-internal.0.png} +0 -0
  853. /package/dist/interface/assets/{mode-json.0.0.48.Br7xisR1.js → mode-json.Br7xisR1.0.0.50-internal.0.js} +0 -0
  854. /package/dist/interface/assets/{mode-yaml.0.0.48.CIYL8U3d.js → mode-yaml.CIYL8U3d.0.0.50-internal.0.js} +0 -0
  855. /package/dist/interface/{@babel.l0sNRNKZ.0.0.48.js → js/@babel.l0sNRNKZ.0.0.50-internal.0.js} +0 -0
  856. /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.48.js → js/@react-dnd.CcwRs9xb.0.0.50-internal.0.js} +0 -0
  857. /package/dist/interface/{@socket.io.Dkula2eQ.0.0.48.js → js/@socket.io.Dkula2eQ.0.0.50-internal.0.js} +0 -0
  858. /package/dist/interface/{birpc.l0sNRNKZ.0.0.48.js → js/birpc.l0sNRNKZ.0.0.50-internal.0.js} +0 -0
  859. /package/dist/interface/{compare-versions.DqEOhma6.0.0.48.js → js/compare-versions.DqEOhma6.0.0.50-internal.0.js} +0 -0
  860. /package/dist/interface/{dijkstrajs.C00ieaqj.0.0.48.js → js/dijkstrajs.C00ieaqj.0.0.50-internal.0.js} +0 -0
  861. /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.48.js → js/engine.io-parser.BiEtp6m2.0.0.50-internal.0.js} +0 -0
  862. /package/dist/interface/{entities.C20TfXL6.0.0.48.js → js/entities.C20TfXL6.0.0.50-internal.0.js} +0 -0
  863. /package/dist/interface/{ev-emitter.X5f1qa-c.0.0.48.js → js/ev-emitter.X5f1qa-c.0.0.50-internal.0.js} +0 -0
  864. /package/dist/interface/{get-size.D1dS-IaP.0.0.48.js → js/get-size.D1dS-IaP.0.0.50-internal.0.js} +0 -0
  865. /package/dist/interface/{vue.l0sNRNKZ.0.0.48.js → js/hookable.l0sNRNKZ.0.0.50-internal.0.js} +0 -0
  866. /package/dist/interface/{mdurl.k9Sl0PQj.0.0.48.js → js/mdurl.k9Sl0PQj.0.0.50-internal.0.js} +0 -0
  867. /package/dist/interface/{punycode.js.Dj65hjkv.0.0.48.js → js/punycode.js.Dj65hjkv.0.0.50-internal.0.js} +0 -0
  868. /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.48.js → js/react-dnd-html5-backend.1HQjlkwI.0.0.50-internal.0.js} +0 -0
  869. /package/dist/interface/{redux.BFxtlG_c.0.0.48.js → js/redux.BFxtlG_c.0.0.50-internal.0.js} +0 -0
  870. /package/dist/interface/{tslib.9k7AwCpt.0.0.48.js → js/tslib.9k7AwCpt.0.0.50-internal.0.js} +0 -0
  871. /package/dist/interface/{uc.micro.kMc2yuuw.0.0.48.js → js/uc.micro.kMc2yuuw.0.0.50-internal.0.js} +0 -0
  872. /package/dist/server/src/{nats → decoder}/types.js +0 -0
  873. /package/dist/server/src/{nats → rpc}/utils.js +0 -0
@@ -1,4 +1,4 @@
1
- import{g as te}from"./@xterm.Ct1qg4AD.0.0.48.js";import{r as ee}from"./dijkstrajs.C00ieaqj.0.0.48.js";var V={},Q,Bt;function ne(){return Bt||(Bt=1,Q=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Q}var $={},F={},At;function v(){if(At)return F;At=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return F.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},F.getSymbolTotalCodewords=function(n){return o[n]},F.getBCHDigit=function(u){let n=0;for(;u!==0;)n++,u>>>=1;return n},F.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');r=n},F.isKanjiModeEnabled=function(){return typeof r<"u"},F.toSJIS=function(n){return r(n)},F}var W={},Rt;function wt(){return Rt||(Rt=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+u)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,t){if(r.isValid(n))return n;try{return o(n)}catch{return t}}}(W)),W}var Z,pt;function re(){if(pt)return Z;pt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const u=Math.floor(o/8);return(this.buffer[u]>>>7-o%8&1)===1},put:function(o,u){for(let n=0;n<u;n++)this.putBit((o>>>u-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),o&&(this.buffer[u]|=128>>>this.length%8),this.length++}},Z=r,Z}var X,It;function oe(){if(It)return X;It=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,u,n,t){const e=o*this.size+u;this.data[e]=n,t&&(this.reservedBit[e]=!0)},r.prototype.get=function(o,u){return this.data[o*this.size+u]},r.prototype.xor=function(o,u,n){this.data[o*this.size+u]^=n},r.prototype.isReserved=function(o,u){return this.reservedBit[o*this.size+u]},X=r,X}var x={},Tt;function ie(){return Tt||(Tt=1,function(r){const o=v().getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,e=o(n),i=e===145?26:Math.ceil((e-13)/(2*t-2))*2,a=[e-7];for(let s=1;s<t-1;s++)a[s]=a[s-1]-i;return a.push(6),a.reverse()},r.getPositions=function(n){const t=[],e=r.getRowColCoords(n),i=e.length;for(let a=0;a<i;a++)for(let s=0;s<i;s++)a===0&&s===0||a===0&&s===i-1||a===i-1&&s===0||t.push([e[a],e[s]]);return t}}(x)),x}var tt={},Nt;function ue(){if(Nt)return tt;Nt=1;const r=v().getSymbolSize,o=7;return tt.getPositions=function(n){const t=r(n);return[[0,0],[t-o,0],[0,t-o]]},tt}var et={},Mt;function se(){return Mt||(Mt=1,function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const e=t.size;let i=0,a=0,s=0,c=null,E=null;for(let p=0;p<e;p++){a=s=0,c=E=null;for(let y=0;y<e;y++){let f=t.get(p,y);f===c?a++:(a>=5&&(i+=o.N1+(a-5)),c=f,a=1),f=t.get(y,p),f===E?s++:(s>=5&&(i+=o.N1+(s-5)),E=f,s=1)}a>=5&&(i+=o.N1+(a-5)),s>=5&&(i+=o.N1+(s-5))}return i},r.getPenaltyN2=function(t){const e=t.size;let i=0;for(let a=0;a<e-1;a++)for(let s=0;s<e-1;s++){const c=t.get(a,s)+t.get(a,s+1)+t.get(a+1,s)+t.get(a+1,s+1);(c===4||c===0)&&i++}return i*o.N2},r.getPenaltyN3=function(t){const e=t.size;let i=0,a=0,s=0;for(let c=0;c<e;c++){a=s=0;for(let E=0;E<e;E++)a=a<<1&2047|t.get(c,E),E>=10&&(a===1488||a===93)&&i++,s=s<<1&2047|t.get(E,c),E>=10&&(s===1488||s===93)&&i++}return i*o.N3},r.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let s=0;s<i;s++)e+=t.data[s];return Math.abs(Math.ceil(e*100/i/5)-10)*o.N4};function u(n,t,e){switch(n){case r.Patterns.PATTERN000:return(t+e)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return e%3===0;case r.Patterns.PATTERN011:return(t+e)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case r.Patterns.PATTERN101:return t*e%2+t*e%3===0;case r.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case r.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(t,e){const i=e.size;for(let a=0;a<i;a++)for(let s=0;s<i;s++)e.isReserved(s,a)||e.xor(s,a,u(t,s,a))},r.getBestMask=function(t,e){const i=Object.keys(r.Patterns).length;let a=0,s=1/0;for(let c=0;c<i;c++){e(c),r.applyMask(c,t);const E=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),E<s&&(s=E,a=c)}return a}}(et)),et}var Y={},St;function Gt(){if(St)return Y;St=1;const r=wt(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y.getBlocksCount=function(t,e){switch(e){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},Y.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return u[(t-1)*4+0];case r.M:return u[(t-1)*4+1];case r.Q:return u[(t-1)*4+2];case r.H:return u[(t-1)*4+3];default:return}},Y}var nt={},H={},Pt;function ae(){if(Pt)return H;Pt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return function(){let n=1;for(let t=0;t<255;t++)r[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),H.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},H.exp=function(n){return r[n]},H.mul=function(n,t){return n===0||t===0?0:r[o[n]+o[t]]},H}var bt;function ce(){return bt||(bt=1,function(r){const o=ae();r.mul=function(n,t){const e=new Uint8Array(n.length+t.length-1);for(let i=0;i<n.length;i++)for(let a=0;a<t.length;a++)e[i+a]^=o.mul(n[i],t[a]);return e},r.mod=function(n,t){let e=new Uint8Array(n);for(;e.length-t.length>=0;){const i=e[0];for(let s=0;s<t.length;s++)e[s]^=o.mul(t[s],i);let a=0;for(;a<e.length&&e[a]===0;)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let e=0;e<n;e++)t=r.mul(t,new Uint8Array([1,o.exp(e)]));return t}}(nt)),nt}var rt,Lt;function le(){if(Lt)return rt;Lt=1;const r=ce();function o(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const e=r.mod(t,this.genPoly),i=this.degree-e.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(e,i),a}return e},rt=o,rt}var ot={},it={},ut={},Dt;function Qt(){return Dt||(Dt=1,ut.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),ut}var L={},qt;function $t(){if(qt)return L;qt=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
1
+ import{g as te}from"./@xterm.CAa7rpjv.0.0.50-internal.0.js";import{r as ee}from"./dijkstrajs.C00ieaqj.0.0.50-internal.0.js";var V={},Q,Bt;function ne(){return Bt||(Bt=1,Q=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Q}var $={},F={},At;function v(){if(At)return F;At=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return F.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},F.getSymbolTotalCodewords=function(n){return o[n]},F.getBCHDigit=function(u){let n=0;for(;u!==0;)n++,u>>>=1;return n},F.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');r=n},F.isKanjiModeEnabled=function(){return typeof r<"u"},F.toSJIS=function(n){return r(n)},F}var W={},Rt;function wt(){return Rt||(Rt=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+u)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,t){if(r.isValid(n))return n;try{return o(n)}catch{return t}}}(W)),W}var Z,pt;function re(){if(pt)return Z;pt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const u=Math.floor(o/8);return(this.buffer[u]>>>7-o%8&1)===1},put:function(o,u){for(let n=0;n<u;n++)this.putBit((o>>>u-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),o&&(this.buffer[u]|=128>>>this.length%8),this.length++}},Z=r,Z}var X,It;function oe(){if(It)return X;It=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,u,n,t){const e=o*this.size+u;this.data[e]=n,t&&(this.reservedBit[e]=!0)},r.prototype.get=function(o,u){return this.data[o*this.size+u]},r.prototype.xor=function(o,u,n){this.data[o*this.size+u]^=n},r.prototype.isReserved=function(o,u){return this.reservedBit[o*this.size+u]},X=r,X}var x={},Tt;function ie(){return Tt||(Tt=1,function(r){const o=v().getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,e=o(n),i=e===145?26:Math.ceil((e-13)/(2*t-2))*2,a=[e-7];for(let s=1;s<t-1;s++)a[s]=a[s-1]-i;return a.push(6),a.reverse()},r.getPositions=function(n){const t=[],e=r.getRowColCoords(n),i=e.length;for(let a=0;a<i;a++)for(let s=0;s<i;s++)a===0&&s===0||a===0&&s===i-1||a===i-1&&s===0||t.push([e[a],e[s]]);return t}}(x)),x}var tt={},Nt;function ue(){if(Nt)return tt;Nt=1;const r=v().getSymbolSize,o=7;return tt.getPositions=function(n){const t=r(n);return[[0,0],[t-o,0],[0,t-o]]},tt}var et={},Mt;function se(){return Mt||(Mt=1,function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const e=t.size;let i=0,a=0,s=0,c=null,E=null;for(let p=0;p<e;p++){a=s=0,c=E=null;for(let y=0;y<e;y++){let f=t.get(p,y);f===c?a++:(a>=5&&(i+=o.N1+(a-5)),c=f,a=1),f=t.get(y,p),f===E?s++:(s>=5&&(i+=o.N1+(s-5)),E=f,s=1)}a>=5&&(i+=o.N1+(a-5)),s>=5&&(i+=o.N1+(s-5))}return i},r.getPenaltyN2=function(t){const e=t.size;let i=0;for(let a=0;a<e-1;a++)for(let s=0;s<e-1;s++){const c=t.get(a,s)+t.get(a,s+1)+t.get(a+1,s)+t.get(a+1,s+1);(c===4||c===0)&&i++}return i*o.N2},r.getPenaltyN3=function(t){const e=t.size;let i=0,a=0,s=0;for(let c=0;c<e;c++){a=s=0;for(let E=0;E<e;E++)a=a<<1&2047|t.get(c,E),E>=10&&(a===1488||a===93)&&i++,s=s<<1&2047|t.get(E,c),E>=10&&(s===1488||s===93)&&i++}return i*o.N3},r.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let s=0;s<i;s++)e+=t.data[s];return Math.abs(Math.ceil(e*100/i/5)-10)*o.N4};function u(n,t,e){switch(n){case r.Patterns.PATTERN000:return(t+e)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return e%3===0;case r.Patterns.PATTERN011:return(t+e)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case r.Patterns.PATTERN101:return t*e%2+t*e%3===0;case r.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case r.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(t,e){const i=e.size;for(let a=0;a<i;a++)for(let s=0;s<i;s++)e.isReserved(s,a)||e.xor(s,a,u(t,s,a))},r.getBestMask=function(t,e){const i=Object.keys(r.Patterns).length;let a=0,s=1/0;for(let c=0;c<i;c++){e(c),r.applyMask(c,t);const E=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),E<s&&(s=E,a=c)}return a}}(et)),et}var Y={},St;function Gt(){if(St)return Y;St=1;const r=wt(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y.getBlocksCount=function(t,e){switch(e){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},Y.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return u[(t-1)*4+0];case r.M:return u[(t-1)*4+1];case r.Q:return u[(t-1)*4+2];case r.H:return u[(t-1)*4+3];default:return}},Y}var nt={},H={},Pt;function ae(){if(Pt)return H;Pt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return function(){let n=1;for(let t=0;t<255;t++)r[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),H.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},H.exp=function(n){return r[n]},H.mul=function(n,t){return n===0||t===0?0:r[o[n]+o[t]]},H}var bt;function ce(){return bt||(bt=1,function(r){const o=ae();r.mul=function(n,t){const e=new Uint8Array(n.length+t.length-1);for(let i=0;i<n.length;i++)for(let a=0;a<t.length;a++)e[i+a]^=o.mul(n[i],t[a]);return e},r.mod=function(n,t){let e=new Uint8Array(n);for(;e.length-t.length>=0;){const i=e[0];for(let s=0;s<t.length;s++)e[s]^=o.mul(t[s],i);let a=0;for(;a<e.length&&e[a]===0;)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let e=0;e<n;e++)t=r.mul(t,new Uint8Array([1,o.exp(e)]));return t}}(nt)),nt}var rt,Lt;function le(){if(Lt)return rt;Lt=1;const r=ce();function o(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const e=r.mod(t,this.genPoly),i=this.degree-e.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(e,i),a}return e},rt=o,rt}var ot={},it={},ut={},Dt;function Qt(){return Dt||(Dt=1,ut.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),ut}var L={},qt;function $t(){if(qt)return L;qt=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
2
2
  ]))+`;L.KANJI=new RegExp(u,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(n,"g"),L.NUMERIC=new RegExp(r,"g"),L.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+u+"$"),e=new RegExp("^"+r+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(s){return t.test(s)},L.testNumeric=function(s){return e.test(s)},L.testAlphanumeric=function(s){return i.test(s)},L}var Ut;function k(){return Ut||(Ut=1,function(r){const o=Qt(),u=$t();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(e,i){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!o.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?e.ccBits[0]:i<27?e.ccBits[1]:e.ccBits[2]},r.getBestModeForData=function(e){return u.testNumeric(e)?r.NUMERIC:u.testAlphanumeric(e)?r.ALPHANUMERIC:u.testKanji(e)?r.KANJI:r.BYTE},r.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},r.isValid=function(e){return e&&e.bit&&e.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(e,i){if(r.isValid(e))return e;try{return n(e)}catch{return i}}}(it)),it}var Ft;function fe(){return Ft||(Ft=1,function(r){const o=v(),u=Gt(),n=wt(),t=k(),e=Qt(),i=7973,a=o.getBCHDigit(i);function s(y,f,M){for(let S=1;S<=40;S++)if(f<=r.getCapacity(S,M,y))return S}function c(y,f){return t.getCharCountIndicator(y,f)+4}function E(y,f){let M=0;return y.forEach(function(S){const b=c(S.mode,f);M+=b+S.getBitsLength()}),M}function p(y,f){for(let M=1;M<=40;M++)if(E(y,M)<=r.getCapacity(M,f,t.MIXED))return M}r.from=function(f,M){return e.isValid(f)?parseInt(f,10):M},r.getCapacity=function(f,M,S){if(!e.isValid(f))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=t.BYTE);const b=o.getSymbolTotalCodewords(f),I=u.getTotalCodewordsCount(f,M),N=(b-I)*8;if(S===t.MIXED)return N;const R=N-c(S,f);switch(S){case t.NUMERIC:return Math.floor(R/10*3);case t.ALPHANUMERIC:return Math.floor(R/11*2);case t.KANJI:return Math.floor(R/13);case t.BYTE:default:return Math.floor(R/8)}},r.getBestVersionForData=function(f,M){let S;const b=n.from(M,n.M);if(Array.isArray(f)){if(f.length>1)return p(f,b);if(f.length===0)return 1;S=f[0]}else S=f;return s(S.mode,S.getLength(),b)},r.getEncodedBits=function(f){if(!e.isValid(f)||f<7)throw new Error("Invalid QR Code version");let M=f<<12;for(;o.getBCHDigit(M)-a>=0;)M^=i<<o.getBCHDigit(M)-a;return f<<12|M}}(ot)),ot}var st={},vt;function de(){if(vt)return st;vt=1;const r=v(),o=1335,u=21522,n=r.getBCHDigit(o);return st.getEncodedBits=function(e,i){const a=e.bit<<3|i;let s=a<<10;for(;r.getBCHDigit(s)-n>=0;)s^=o<<r.getBCHDigit(s)-n;return(a<<10|s)^u},st}var at={},ct,kt;function ge(){if(kt)return ct;kt=1;const r=k();function o(u){this.mode=r.NUMERIC,this.data=u.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let t,e,i;for(t=0;t+3<=this.data.length;t+=3)e=this.data.substr(t,3),i=parseInt(e,10),n.put(i,10);const a=this.data.length-t;a>0&&(e=this.data.substr(t),i=parseInt(e,10),n.put(i,a*3+1))},ct=o,ct}var lt,zt;function he(){if(zt)return lt;zt=1;const r=k(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(n){this.mode=r.ALPHANUMERIC,this.data=n}return u.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=o.indexOf(this.data[e])*45;i+=o.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},lt=u,lt}var ft,Vt;function me(){if(Vt)return ft;Vt=1;const r=k();function o(u){this.mode=r.BYTE,typeof u=="string"?this.data=new TextEncoder().encode(u):this.data=new Uint8Array(u)}return o.getBitsLength=function(n){return n*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(u){for(let n=0,t=this.data.length;n<t;n++)u.put(this.data[n],8)},ft=o,ft}var dt,Kt;function we(){if(Kt)return dt;Kt=1;const r=k(),o=v();function u(n){this.mode=r.KANJI,this.data=n}return u.getBitsLength=function(t){return t*13},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=o.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3
3
  Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}},dt=u,dt}var Ht;function Ce(){return Ht||(Ht=1,function(r){const o=k(),u=ge(),n=he(),t=me(),e=we(),i=$t(),a=v(),s=ee();function c(I){return unescape(encodeURIComponent(I)).length}function E(I,N,R){const B=[];let P;for(;(P=I.exec(R))!==null;)B.push({data:P[0],index:P.index,mode:N,length:P[0].length});return B}function p(I){const N=E(i.NUMERIC,o.NUMERIC,I),R=E(i.ALPHANUMERIC,o.ALPHANUMERIC,I);let B,P;return a.isKanjiModeEnabled()?(B=E(i.BYTE,o.BYTE,I),P=E(i.KANJI,o.KANJI,I)):(B=E(i.BYTE_KANJI,o.BYTE,I),P=[]),N.concat(R,B,P).sort(function(w,m){return w.index-m.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function y(I,N){switch(N){case o.NUMERIC:return u.getBitsLength(I);case o.ALPHANUMERIC:return n.getBitsLength(I);case o.KANJI:return e.getBitsLength(I);case o.BYTE:return t.getBitsLength(I)}}function f(I){return I.reduce(function(N,R){const B=N.length-1>=0?N[N.length-1]:null;return B&&B.mode===R.mode?(N[N.length-1].data+=R.data,N):(N.push(R),N)},[])}function M(I){const N=[];for(let R=0;R<I.length;R++){const B=I[R];switch(B.mode){case o.NUMERIC:N.push([B,{data:B.data,mode:o.ALPHANUMERIC,length:B.length},{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.ALPHANUMERIC:N.push([B,{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.KANJI:N.push([B,{data:B.data,mode:o.BYTE,length:c(B.data)}]);break;case o.BYTE:N.push([{data:B.data,mode:o.BYTE,length:c(B.data)}])}}return N}function S(I,N){const R={},B={start:{}};let P=["start"];for(let d=0;d<I.length;d++){const w=I[d],m=[];for(let l=0;l<w.length;l++){const A=w[l],g=""+d+l;m.push(g),R[g]={node:A,lastCount:0},B[g]={};for(let C=0;C<P.length;C++){const h=P[C];R[h]&&R[h].node.mode===A.mode?(B[h][g]=y(R[h].lastCount+A.length,A.mode)-y(R[h].lastCount,A.mode),R[h].lastCount+=A.length):(R[h]&&(R[h].lastCount=A.length),B[h][g]=y(A.length,A.mode)+4+o.getCharCountIndicator(A.mode,N))}}P=m}for(let d=0;d<P.length;d++)B[P[d]].end=0;return{map:B,table:R}}function b(I,N){let R;const B=o.getBestModeForData(I);if(R=o.from(N,B),R!==o.BYTE&&R.bit<B.bit)throw new Error('"'+I+'" cannot be encoded with mode '+o.toString(R)+`.
4
4
  Suggested mode is: `+o.toString(B));switch(R===o.KANJI&&!a.isKanjiModeEnabled()&&(R=o.BYTE),R){case o.NUMERIC:return new u(I);case o.ALPHANUMERIC:return new n(I);case o.KANJI:return new e(I);case o.BYTE:return new t(I)}}r.fromArray=function(N){return N.reduce(function(R,B){return typeof B=="string"?R.push(b(B,null)):B.data&&R.push(b(B.data,B.mode)),R},[])},r.fromString=function(N,R){const B=p(N,a.isKanjiModeEnabled()),P=M(B),d=S(P,R),w=s.find_path(d.map,"start","end"),m=[];for(let l=1;l<w.length-1;l++)m.push(d.table[w[l]].node);return r.fromArray(f(m))},r.rawSplit=function(N){return r.fromArray(p(N,a.isKanjiModeEnabled()))}}(at)),at}var Jt;function Ee(){if(Jt)return $;Jt=1;const r=v(),o=wt(),u=re(),n=oe(),t=ie(),e=ue(),i=se(),a=Gt(),s=le(),c=fe(),E=de(),p=k(),y=Ce();function f(d,w){const m=d.size,l=e.getPositions(w);for(let A=0;A<l.length;A++){const g=l[A][0],C=l[A][1];for(let h=-1;h<=7;h++)if(!(g+h<=-1||m<=g+h))for(let T=-1;T<=7;T++)C+T<=-1||m<=C+T||(h>=0&&h<=6&&(T===0||T===6)||T>=0&&T<=6&&(h===0||h===6)||h>=2&&h<=4&&T>=2&&T<=4?d.set(g+h,C+T,!0,!0):d.set(g+h,C+T,!1,!0))}}function M(d){const w=d.size;for(let m=8;m<w-8;m++){const l=m%2===0;d.set(m,6,l,!0),d.set(6,m,l,!0)}}function S(d,w){const m=t.getPositions(w);for(let l=0;l<m.length;l++){const A=m[l][0],g=m[l][1];for(let C=-2;C<=2;C++)for(let h=-2;h<=2;h++)C===-2||C===2||h===-2||h===2||C===0&&h===0?d.set(A+C,g+h,!0,!0):d.set(A+C,g+h,!1,!0)}}function b(d,w){const m=d.size,l=c.getEncodedBits(w);let A,g,C;for(let h=0;h<18;h++)A=Math.floor(h/3),g=h%3+m-8-3,C=(l>>h&1)===1,d.set(A,g,C,!0),d.set(g,A,C,!0)}function I(d,w,m){const l=d.size,A=E.getEncodedBits(w,m);let g,C;for(g=0;g<15;g++)C=(A>>g&1)===1,g<6?d.set(g,8,C,!0):g<8?d.set(g+1,8,C,!0):d.set(l-15+g,8,C,!0),g<8?d.set(8,l-g-1,C,!0):g<9?d.set(8,15-g-1+1,C,!0):d.set(8,15-g-1,C,!0);d.set(l-8,8,1,!0)}function N(d,w){const m=d.size;let l=-1,A=m-1,g=7,C=0;for(let h=m-1;h>0;h-=2)for(h===6&&h--;;){for(let T=0;T<2;T++)if(!d.isReserved(A,h-T)){let U=!1;C<w.length&&(U=(w[C]>>>g&1)===1),d.set(A,h-T,U),g--,g===-1&&(C++,g=7)}if(A+=l,A<0||m<=A){A-=l,l=-l;break}}}function R(d,w,m){const l=new u;m.forEach(function(T){l.put(T.mode.bit,4),l.put(T.getLength(),p.getCharCountIndicator(T.mode,d)),T.write(l)});const A=r.getSymbolTotalCodewords(d),g=a.getTotalCodewordsCount(d,w),C=(A-g)*8;for(l.getLengthInBits()+4<=C&&l.put(0,4);l.getLengthInBits()%8!==0;)l.putBit(0);const h=(C-l.getLengthInBits())/8;for(let T=0;T<h;T++)l.put(T%2?17:236,8);return B(l,d,w)}function B(d,w,m){const l=r.getSymbolTotalCodewords(w),A=a.getTotalCodewordsCount(w,m),g=l-A,C=a.getBlocksCount(w,m),h=l%C,T=C-h,U=Math.floor(l/C),K=Math.floor(g/C),Zt=K+1,Ct=U-K,Xt=new s(Ct);let _=0;const J=new Array(C),Et=new Array(C);let O=0;const xt=new Uint8Array(d.buffer);for(let z=0;z<C;z++){const G=z<T?K:Zt;J[z]=xt.slice(_,_+G),Et[z]=Xt.encode(J[z]),_+=G,O=Math.max(O,G)}const j=new Uint8Array(l);let yt=0,D,q;for(D=0;D<O;D++)for(q=0;q<C;q++)D<J[q].length&&(j[yt++]=J[q][D]);for(D=0;D<Ct;D++)for(q=0;q<C;q++)j[yt++]=Et[q][D];return j}function P(d,w,m,l){let A;if(Array.isArray(d))A=y.fromArray(d);else if(typeof d=="string"){let U=w;if(!U){const K=y.rawSplit(d);U=c.getBestVersionForData(K,m)}A=y.fromString(d,U||40)}else throw new Error("Invalid data");const g=c.getBestVersionForData(A,m);if(!g)throw new Error("The amount of data is too big to be stored in a QR Code");if(!w)w=g;else if(w<g)throw new Error(`
@@ -0,0 +1 @@
1
+ import{i as M}from"./@react-dnd.CcwRs9xb.0.0.50-internal.0.js";var l;(function(s){s.mouse="mouse",s.touch="touch",s.keyboard="keyboard"})(l||(l={}));class N{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,o){this.args=e,this.context=o}}function w(s,e,o,n){return Math.sqrt(Math.pow(Math.abs(o-s),2)+Math.pow(Math.abs(n-e),2))}function C(s,e,o,n,t){if(!t)return!1;const i=Math.atan2(n-e,o-s)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const x={Left:1},D={Left:0};function b(s){return s.button===void 0||s.button===D.Left}function L(s){return s.buttons===void 0||(s.buttons&x.Left)===0}function y(s){return!!s.targetTouches}const P=1;function _(s){const e=s.nodeType===P?s:s.parentElement;if(!e)return;const{top:o,left:n}=e.getBoundingClientRect();return{x:n,y:o}}function k(s,e){if(s.targetTouches.length===1)return S(s.targetTouches[0]);if(e&&s.touches.length===1&&s.touches[0].target===e.target)return S(s.touches[0])}function S(s,e){return y(s)?k(s,e):{x:s.clientX,y:s.clientY}}const T=(()=>{let s=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return s=!0,!0}}))}catch{}return s})(),v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(M(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.addEventListener(r,n,i)})}removeEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,o){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,o),this.addEventListener(o,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(o,"start",n)}}connectDragPreview(e,o,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,o),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,o){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,d;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,g=c&&o.contains(c);if(c===o||g)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,o),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,o,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&_(i)},this.handleTopMoveStartCapture=t=>{b(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!b(t))return;const i=S(t);i&&(y(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!b(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,d=S(t,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&C(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const g=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,g):this.document.elementsFromPoint(d.x,d.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let h=E[u];for(h!=null&&p.push(h);h;)h=h.parentElement,h&&p.indexOf(h)===-1&&p.push(h)}const m=p.filter(u=>g.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,h,O)=>O.indexOf(u)===h);if(r)for(const u in this.targetNodes){const h=this.targetNodes.get(u);if(c&&h&&h.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:d})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!L(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new N(n,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const A=function(e,o={},n={}){return new f(e,o,n)};export{A as T};
@@ -0,0 +1 @@
1
+ import{F as t,c as n,d as o,e as r}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";const a={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function l(s,e){return o(),n("svg",a,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M18 10h-4V6a2 2 0 0 0-4 0l.071 4H6a2 2 0 0 0 0 4l4.071-.071L10 18a2 2 0 0 0 4 0v-4.071L18 14a2 2 0 0 0 0-4"},null,-1)]))}const u=t({name:"typcn-plus",render:l}),i={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function c(s,e){return o(),n("svg",i,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"},null,-1)]))}const d=t({name:"material-symbols-refresh-rounded",render:c});export{d as _,u as a};
@@ -0,0 +1,3 @@
1
+ import{_ as E,a as v,b as d,c as O}from"./tslib.9k7AwCpt.0.0.50-internal.0.js";function f(e){return typeof e=="function"}function M(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var b=M(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
2
+ `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
3
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function P(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var m=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=E(s),c=a.next();!c.done;c=a.next()){var U=c.value;U.remove(this)}}catch(u){t={error:u}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var S=this.initialTeardown;if(f(S))try{S()}catch(u){i=u instanceof b?u.errors:[u]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=E(g),l=p.next();!l.done;l=p.next()){var F=l.value;try{_(F)}catch(u){i=i??[],u instanceof b?i=v(v([],d(i)),d(u.errors)):i.push(u)}}}catch(u){n={error:u}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new b(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&P(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&P(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();m.EMPTY;function T(e){return e instanceof m||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function _(e){f(e)?e():e.unsubscribe()}var R={Promise:void 0},Y={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,v([e,t],d(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function j(e){Y.setTimeout(function(){throw e})}function x(){}function k(e){e()}var w=function(e){O(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,T(r)&&r.add(n)):n.destination=I,n}return t.create=function(r,n,o){return new y(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(m),B=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){h(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){h(n)}else h(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){h(r)}},e}(),y=function(e){O(t,e);function t(r,n,o){var i=e.call(this)||this,s;return f(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new B(s),i}return t}(w);function h(e){j(e)}function H(e){throw e}var I={closed:!0,next:x,error:H,complete:x},V=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function q(e){return e}function D(e){return e.length===0?q:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var L=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=J(t)?t:new y(t,r,n);return k(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=A(r),new r(function(o,i){var s=new y({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[V]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return D(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=A(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function A(e){var t;return(t=e??R.Promise)!==null&&t!==void 0?t:Promise}function G(e){return e&&f(e.next)&&f(e.error)&&f(e.complete)}function J(e){return e&&e instanceof w||G(e)&&T(e)}export{L as O};
@@ -0,0 +1 @@
1
+ import{p as k,i as b,S as v,n as E}from"./engine.io-client.kITRnq-g.0.0.50-internal.0.js";import"./engine.io-parser.BiEtp6m2.0.0.50-internal.0.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.50-internal.0.js";import{P as c,p as O}from"./socket.io-parser.EXj3YDH2.0.0.50-internal.0.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
@@ -0,0 +1 @@
1
+ import{E as N}from"./@socket.io.Dkula2eQ.0.0.50-internal.0.js";const A=typeof ArrayBuffer=="function",E=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,y=Object.prototype.toString,d=typeof Blob=="function"||typeof Blob<"u"&&y.call(Blob)==="[object BlobConstructor]",g=typeof File=="function"||typeof File<"u"&&y.call(File)==="[object FileConstructor]";function a(e){return A&&(e instanceof ArrayBuffer||E(e))||d&&e instanceof Blob||g&&e instanceof File}function u(e,r){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(u(e[t]))return!0;return!1}if(a(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return u(e.toJSON(),!0);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&u(e[t]))return!0;return!1}function w(e){const r=[],t=e.data,n=e;return n.data=f(t,r),n.attachments=r.length,{packet:n,buffers:r}}function f(e,r){if(!e)return e;if(a(e)){const t={_placeholder:!0,num:r.length};return r.push(e),t}else if(Array.isArray(e)){const t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=f(e[n],r);return t}else if(typeof e=="object"&&!(e instanceof Date)){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=f(e[n],r));return t}return e}function B(e,r){return e.data=l(e.data,r),delete e.attachments,e}function l(e,r){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<r.length)return r[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let t=0;t<e.length;t++)e[t]=l(e[t],r);else if(typeof e=="object")for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=l(e[t],r));return e}const C=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],R=5;var i;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(i||(i={}));class O{constructor(r){this.replacer=r}encode(r){return(r.type===i.EVENT||r.type===i.ACK)&&u(r)?this.encodeAsBinary({type:r.type===i.EVENT?i.BINARY_EVENT:i.BINARY_ACK,nsp:r.nsp,data:r.data,id:r.id}):[this.encodeAsString(r)]}encodeAsString(r){let t=""+r.type;return(r.type===i.BINARY_EVENT||r.type===i.BINARY_ACK)&&(t+=r.attachments+"-"),r.nsp&&r.nsp!=="/"&&(t+=r.nsp+","),r.id!=null&&(t+=r.id),r.data!=null&&(t+=JSON.stringify(r.data,this.replacer)),t}encodeAsBinary(r){const t=w(r),n=this.encodeAsString(t.packet),o=t.buffers;return o.unshift(n),o}}function p(e){return Object.prototype.toString.call(e)==="[object Object]"}class h extends N{constructor(r){super(),this.reviver=r}add(r){let t;if(typeof r=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(r);const n=t.type===i.BINARY_EVENT;n||t.type===i.BINARY_ACK?(t.type=n?i.EVENT:i.ACK,this.reconstructor=new m(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(a(r)||r.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(r),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+r)}decodeString(r){let t=0;const n={type:Number(r.charAt(0))};if(i[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===i.BINARY_EVENT||n.type===i.BINARY_ACK){const s=t+1;for(;r.charAt(++t)!=="-"&&t!=r.length;);const c=r.substring(s,t);if(c!=Number(c)||r.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(c)}if(r.charAt(t+1)==="/"){const s=t+1;for(;++t&&!(r.charAt(t)===","||t===r.length););n.nsp=r.substring(s,t)}else n.nsp="/";const o=r.charAt(t+1);if(o!==""&&Number(o)==o){const s=t+1;for(;++t;){const c=r.charAt(t);if(c==null||Number(c)!=c){--t;break}if(t===r.length)break}n.id=Number(r.substring(s,t+1))}if(r.charAt(++t)){const s=this.tryParse(r.substr(t));if(h.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return n}tryParse(r){try{return JSON.parse(r,this.reviver)}catch{return!1}}static isPayloadValid(r,t){switch(r){case i.CONNECT:return p(t);case i.DISCONNECT:return t===void 0;case i.CONNECT_ERROR:return typeof t=="string"||p(t);case i.EVENT:case i.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&C.indexOf(t[0])===-1);case i.ACK:case i.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class m{constructor(r){this.packet=r,this.buffers=[],this.reconPack=r}takeBinaryData(r){if(this.buffers.push(r),this.buffers.length===this.reconPack.attachments){const t=B(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const V=Object.freeze(Object.defineProperty({__proto__:null,Decoder:h,Encoder:O,get PacketType(){return i},protocol:R},Symbol.toStringTag,{value:"Module"}));export{i as P,V as p};
@@ -0,0 +1 @@
1
+ var y=Object.defineProperty;var i=(t,e,n)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>i(t,typeof e!="symbol"?e+"":e,n);import{c as m,a3 as s}from"./main.D0YR3Jat.0.0.50-internal.0.js";import{u as d,a as o,b as r}from"./@tanstack.D1IL6eOv.0.0.50-internal.0.js";import{u as l}from"./vue-i18n.BW2bx_6z.0.0.50-internal.0.js";import{r as p}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";const h=async()=>(await s.get("/system")).data,g=async t=>(await s.patch("/system",t)).data,f=async({serverData:t})=>(await s.post("/system/update",t)).data,v=async({signal:t})=>(await s.get("/system/version",{signal:t})).data,Q=async()=>(await s.delete("/system/log")).data,w=async({signal:t})=>(await s.get("/system/log/download",{signal:t})).data,S=async()=>(await s.post("/system/cert",{responseType:"arraybuffer"})).data,q=async({signal:t})=>(await s.get("/system/go2rtc",{signal:t})).data,F=async()=>(await s.put("/system/restart")).data,_=async()=>(await s.put("/system/restart/go2rtc")).data,b=async()=>(await s.put("/system/reset")).data;class G{constructor(){a(this,"_queryClient",d());a(this,"t",l().t);a(this,"toast",m());a(this,"queryActivator",p([{name:"downloadLogQuery",enabled:!0},{name:"getGo2RtcInfoQuery",enabled:!0},{name:"checkVersionQuery",enabled:!0},{name:"getSystemInfoQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getSystemInfoQuery(){return o({queryKey:["system"],queryFn:h})}patchSystemInfoQuery(){return r({mutationFn:g,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}updateServerQuery(){return r({mutationFn:f,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}downloadLogQuery(){return o({queryKey:["logs","system"],queryFn:({signal:e})=>w({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="downloadLogQuery"&&e.enabled)})}downloadCertQuery(){return r({mutationFn:S})}clearLogQuery(){return r({mutationFn:Q,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["logs","system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.log_cleared"),life:3e3})}})}checkVersionQuery(){return o({queryKey:["version"],queryFn:({signal:e})=>v({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="checkVersionQuery"&&e.enabled)})}getGo2RtcInfoQuery(){return o({queryKey:["go2rtc"],queryFn:({signal:e})=>q({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getGo2RtcInfoQuery"&&e.enabled)})}restartGo2RtcQuery(){return r({mutationFn:_,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.go2rtc_restarted"),life:3e3})}})}restartServerQuery(){return r({mutationFn:F,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_restarted"),life:3e3})}})}resetServerQuery(){return r({mutationFn:b,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_resetted"),life:3e3})}})}toggleQueryActivator(e,n){const c=this.queryActivator.value.find(u=>u.name===e);c&&(c.enabled=n)}}export{G as S,S as d,F as r};
@@ -0,0 +1 @@
1
+ import{F as a,c as o,d as l,e as r}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function t(s,e){return l(),o("svg",n,e[0]||(e[0]=[r("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8.106 2.553A1 1 0 0 1 9 2h6a1 1 0 0 1 .894.553L17.618 6H20a1 1 0 1 1 0 2h-1v11a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V8H4a1 1 0 0 1 0-2h2.382zM14.382 4l1 2H8.618l1-2zM11 11a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0zm4 0a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0z","clip-rule":"evenodd"},null,-1)]))}const i=a({name:"iconamoon-trash-fill",render:t});export{i as T};
@@ -1,4 +1,4 @@
1
- import{r as v}from"./ev-emitter.X5f1qa-c.0.0.48.js";var h={exports:{}};/*!
1
+ import{r as v}from"./ev-emitter.X5f1qa-c.0.0.50-internal.0.js";var h={exports:{}};/*!
2
2
  * Unidragger v3.0.1
3
3
  * Draggable base class
4
4
  * MIT license
@@ -0,0 +1 @@
1
+ const e=[];for(let n=0;n<256;++n)e.push((n+256).toString(16).slice(1));function r(n,t=0){return(e[n[t+0]]+e[n[t+1]]+e[n[t+2]]+e[n[t+3]]+"-"+e[n[t+4]]+e[n[t+5]]+"-"+e[n[t+6]]+e[n[t+7]]+"-"+e[n[t+8]]+e[n[t+9]]+"-"+e[n[t+10]]+e[n[t+11]]+e[n[t+12]]+e[n[t+13]]+e[n[t+14]]+e[n[t+15]]).toLowerCase()}let d;const y=new Uint8Array(16);function m(){if(!d){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");d=crypto.getRandomValues.bind(crypto)}return d(y)}const i=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),o={randomUUID:i};function U(n,t,g){var c;if(o.randomUUID&&!n)return o.randomUUID();n=n||{};const u=n.random??((c=n.rng)==null?void 0:c.call(n))??m();if(u.length<16)throw new Error("Random bytes length must be >= 16");return u[6]=u[6]&15|64,u[8]=u[8]&63|128,r(u)}export{U as v};
@@ -0,0 +1,5 @@
1
+ import{B as tn,q as be,Q as rn,a3 as Pe,r as le,b as we,k as E,A as m,h as P,o as An,f as Be,w as Ve,a as Gn,i as En,C as Kn,n as se,y as Yn,a4 as Qn,g as Re,a5 as Je}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";/**
2
+ * vee-validate v4.15.0
3
+ * (c) 2024 Abdelrahman Awad
4
+ * @license MIT
5
+ */function q(e){return typeof e=="function"}function Fn(e){return e==null}const pe=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function an(e){return Number(e)>=0}function Xn(e){const n=parseFloat(e);return isNaN(n)?e:n}function Jn(e){return typeof e=="object"&&e!==null}function Zn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function hn(e){if(!Jn(e)||Zn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Ee(e,n){return Object.keys(n).forEach(t=>{if(hn(n[t])&&hn(e[t])){e[t]||(e[t]={}),Ee(e[t],n[t]);return}e[t]=n[t]}),e}function Ae(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let r=1;r<n.length;r++){if(an(n[r])){t+=`[${n[r]}]`;continue}t+=`.${n[r]}`}return t}const xn={};function et(e){return xn[e]}function mn(e,n,t){typeof t.value=="object"&&(t.value=F(t.value)),!t.enumerable||t.get||t.set||!t.configurable||!t.writable||n==="__proto__"?Object.defineProperty(e,n,t):e[n]=t.value}function F(e){if(typeof e!="object")return e;var n=0,t,r,l,u=Object.prototype.toString.call(e);if(u==="[object Object]"?l=Object.create(e.__proto__||null):u==="[object Array]"?l=Array(e.length):u==="[object Set]"?(l=new Set,e.forEach(function(s){l.add(F(s))})):u==="[object Map]"?(l=new Map,e.forEach(function(s,d){l.set(F(d),F(s))})):u==="[object Date]"?l=new Date(+e):u==="[object RegExp]"?l=new RegExp(e.source,e.flags):u==="[object DataView]"?l=new e.constructor(F(e.buffer)):u==="[object ArrayBuffer]"?l=e.slice(0):u.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)mn(l,r[n],Object.getOwnPropertyDescriptor(e,r[n]));for(n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++)Object.hasOwnProperty.call(l,t=r[n])&&l[t]===e[t]||mn(l,t,Object.getOwnPropertyDescriptor(e,t))}return l||e}const Ue=Symbol("vee-validate-form"),nt=Symbol("vee-validate-form-context"),tt=Symbol("vee-validate-field-instance"),ke=Symbol("Default empty value"),rt=typeof window<"u";function Ze(e){return q(e)&&!!e.__locatorRef}function ue(e){return!!e&&q(e.parse)&&e.__type==="VVTypedSchema"}function Ne(e){return!!e&&q(e.validate)}function Fe(e){return e==="checkbox"||e==="radio"}function it(e){return pe(e)||Array.isArray(e)}function at(e){return Array.isArray(e)?e.length===0:pe(e)&&Object.keys(e).length===0}function De(e){return/^\[.+\]$/i.test(e)}function lt(e){return In(e)&&e.multiple}function In(e){return e.tagName==="SELECT"}function ut(e,n){const t=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&t}function ot(e,n){return!ut(e,n)&&n.type!=="file"&&!Fe(n.type)}function Cn(e){return ln(e)&&e.target&&"submit"in e.target}function ln(e){return e?!!(typeof Event<"u"&&q(Event)&&e instanceof Event||e&&e.srcElement):!1}function yn(e,n){return n in e&&e[n]!==ke}function Y(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var t,r,l;if(Array.isArray(e)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(!Y(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!Y(r[1],n.get(r[0])))return!1;return!0}if(bn(e)&&bn(n))return!(e.size!==n.size||e.name!==n.name||e.lastModified!==n.lastModified||e.type!==n.type);if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),t=l.length-gn(e,l),t!==Object.keys(n).length-gn(n,Object.keys(n)))return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=t;r--!==0;){var u=l[r];if(!Y(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function gn(e,n){let t=0;for(let l=n.length;l--!==0;){var r=n[l];e[r]===void 0&&t++}return t}function bn(e){return rt?e instanceof File:!1}function un(e){return De(e)?e.replace(/\[|\]/gi,""):e}function X(e,n,t){return e?De(n)?e[un(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,u)=>it(l)&&u in l?l[u]:t,e):t}function he(e,n,t){if(De(n)){e[un(n)]=t;return}const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let u=0;u<r.length;u++){if(u===r.length-1){l[r[u]]=t;return}(!(r[u]in l)||Fn(l[r[u]]))&&(l[r[u]]=an(r[u+1])?[]:{}),l=l[r[u]]}}function Qe(e,n){if(Array.isArray(e)&&an(n)){e.splice(Number(n),1);return}pe(e)&&delete e[n]}function On(e,n){if(De(n)){delete e[un(n)];return}const t=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let u=0;u<t.length;u++){if(u===t.length-1){Qe(r,t[u]);break}if(!(t[u]in r)||Fn(r[t[u]]))break;r=r[t[u]]}const l=t.map((u,s)=>X(e,t.slice(0,s).join(".")));for(let u=l.length-1;u>=0;u--)if(at(l[u])){if(u===0){Qe(e,t[0]);continue}Qe(l[u-1],t[u-1])}}function ne(e){return Object.keys(e)}function Mn(e,n=void 0){const t=Re();return(t==null?void 0:t.provides[e])||En(e,n)}function Vn(e,n,t){if(Array.isArray(e)){const r=[...e],l=r.findIndex(u=>Y(u,n));return l>=0?r.splice(l,1):r.push(n),r}return Y(e,n)?t:n}function pn(e,n=0){let t=null,r=[];return function(...l){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...l);r.forEach(s=>s(u)),r=[]},n),new Promise(u=>r.push(u))}}function st(e,n){return pe(n)&&n.number?Xn(e):e}function xe(e,n){let t;return async function(...l){const u=e(...l);t=u;const s=await u;return u!==t?s:(t=void 0,n(s,l))}}function en(e){return Array.isArray(e)?e:e?[e]:[]}function Ce(e,n){const t={};for(const r in e)n.includes(r)||(t[r]=e[r]);return t}function dt(e){let n=null,t=[];return function(...r){const l=se(()=>{if(n!==l)return;const u=e(...r);t.forEach(s=>s(u)),t=[],n=null});return n=l,new Promise(u=>t.push(u))}}function on(e,n,t){return n.slots.default?typeof e=="string"||!e?n.slots.default(t()):{default:()=>{var r,l;return(l=(r=n.slots).default)===null||l===void 0?void 0:l.call(r,t())}}:n.slots.default}function Xe(e){if(Pn(e))return e._value}function Pn(e){return"_value"in e}function ct(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Te(e){if(!ln(e))return e;const n=e.target;if(Fe(n.type)&&Pn(n))return Xe(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(lt(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Xe);if(In(n)){const t=Array.from(n.options).find(r=>r.selected);return t?Xe(t):n.value}return ct(n)}function wn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?pe(e)&&e._$$isNormalized?e:pe(e)?Object.keys(e).reduce((t,r)=>{const l=ft(e[r]);return e[r]!==!1&&(t[r]=Sn(l)),t},n):typeof e!="string"?n:e.split("|").reduce((t,r)=>{const l=vt(r);return l.name&&(t[l.name]=Sn(l.params)),t},n):n}function ft(e){return e===!0?[]:Array.isArray(e)||pe(e)?e:[e]}function Sn(e){const n=t=>typeof t=="string"&&t[0]==="@"?ht(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}const vt=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function ht(e){const n=t=>{var r;return(r=X(t,e))!==null&&r!==void 0?r:t[e]};return n.__locatorRef=e,n}function mt(e){return Array.isArray(e)?e.filter(Ze):ne(e).filter(n=>Ze(e[n])).map(n=>e[n])}const yt={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let gt=Object.assign({},yt);const Oe=()=>gt;async function Bn(e,n,t={}){const r=t==null?void 0:t.bails,l={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:r??!0,formData:(t==null?void 0:t.values)||{}},u=await bt(l,e);return Object.assign(Object.assign({},u),{valid:!u.errors.length})}async function bt(e,n){const t=e.rules;if(ue(t)||Ne(t))return Vt(n,Object.assign(Object.assign({},e),{rules:t}));if(q(t)||Array.isArray(t)){const d={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},v=Array.isArray(t)?t:[t],c=v.length,y=[];for(let V=0;V<c;V++){const A=v[V],O=await A(n,d);if(!(typeof O!="string"&&!Array.isArray(O)&&O)){if(Array.isArray(O))y.push(...O);else{const $=typeof O=="string"?O:Nn(d);y.push($)}if(e.bails)return{errors:y}}}return{errors:y}}const r=Object.assign(Object.assign({},e),{rules:wn(t)}),l=[],u=Object.keys(r.rules),s=u.length;for(let d=0;d<s;d++){const v=u[d],c=await pt(r,n,{name:v,params:r.rules[v]});if(c.error&&(l.push(c.error),e.bails))return{errors:l}}return{errors:l}}function Ot(e){return!!e&&e.name==="ValidationError"}function kn(e){return{__type:"VVTypedSchema",async parse(t,r){var l;try{return{output:await e.validate(t,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(u){if(!Ot(u))throw u;if(!(!((l=u.inner)===null||l===void 0)&&l.length)&&u.errors.length)return{errors:[{path:u.path,errors:u.errors}]};const s=u.inner.reduce((d,v)=>{const c=v.path||"";return d[c]||(d[c]={errors:[],path:c}),d[c].errors.push(...v.errors),d},{});return{errors:Object.values(s)}}}}}async function Vt(e,n){const r=await(ue(n.rules)?n.rules:kn(n.rules)).parse(e,{formData:n.formData}),l=[];for(const u of r.errors)u.errors.length&&l.push(...u.errors);return{value:r.value,errors:l}}async function pt(e,n,t){const r=et(t.name);if(!r)throw new Error(`No such validator '${t.name}' exists.`);const l=St(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:l})},s=await r(n,l,u);return typeof s=="string"?{error:s}:{error:s?void 0:Nn(u)}}function Nn(e){const n=Oe().generateMessage;return n?n(e):"Field is invalid"}function St(e,n){const t=r=>Ze(r)?r(n):r;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((r,l)=>(r[l]=t(e[l]),r),{})}async function _t(e,n){const r=await(ue(e)?e:kn(e)).parse(F(n),{formData:F(n)}),l={},u={};for(const s of r.errors){const d=s.errors,v=(s.path||"").replace(/\["(\d+)"\]/g,(c,y)=>`[${y}]`);l[v]={valid:!d.length,errors:d},d.length&&(u[v]=d[0])}return{valid:!r.errors.length,results:l,errors:u,values:r.value,source:"schema"}}async function jt(e,n,t){const l=ne(e).map(async c=>{var y,V,A;const O=(y=t==null?void 0:t.names)===null||y===void 0?void 0:y[c],I=await Bn(X(n,c),e[c],{name:(O==null?void 0:O.name)||c,label:O==null?void 0:O.label,values:n,bails:(A=(V=t==null?void 0:t.bailsMap)===null||V===void 0?void 0:V[c])!==null&&A!==void 0?A:!0});return Object.assign(Object.assign({},I),{path:c})});let u=!0;const s=await Promise.all(l),d={},v={};for(const c of s)d[c.path]={valid:c.valid,errors:c.errors},c.valid||(u=!1,v[c.path]=c.errors[0]);return{valid:u,results:d,errors:v,source:"schema"}}let _n=0;function At(e,n){const{value:t,initialValue:r,setInitialValue:l}=Et(e,n.modelValue,n.form);if(!n.form){let v=function(O){var I;"value"in O&&(t.value=O.value),"errors"in O&&y(O.errors),"touched"in O&&(A.touched=(I=O.touched)!==null&&I!==void 0?I:A.touched),"initialValue"in O&&l(O.initialValue)};const{errors:c,setErrors:y}=Ct(),V=_n>=Number.MAX_SAFE_INTEGER?0:++_n,A=It(t,r,c,n.schema);return{id:V,path:e,value:t,initialValue:r,meta:A,flags:{pendingUnmount:{[V]:!1},pendingReset:!1},errors:c,setState:v}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),s=E(()=>u.errors);function d(v){var c,y,V;"value"in v&&(t.value=v.value),"errors"in v&&((c=n.form)===null||c===void 0||c.setFieldError(P(e),v.errors)),"touched"in v&&((y=n.form)===null||y===void 0||y.setFieldTouched(P(e),(V=v.touched)!==null&&V!==void 0?V:!1)),"initialValue"in v&&l(v.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:s,meta:u,initialValue:r,flags:u.__flags,setState:d}}function Et(e,n,t){const r=le(P(n));function l(){return t?X(t.initialValues.value,P(e),P(r)):P(r)}function u(c){if(!t){r.value=c;return}t.setFieldInitialValue(P(e),c,!0)}const s=E(l);if(!t)return{value:le(l()),initialValue:s,setInitialValue:u};const d=Ft(n,t,s,e);return t.stageInitialValue(P(e),d,!0),{value:E({get(){return X(t.values,P(e))},set(c){t.setFieldValue(P(e),c,!1)}}),initialValue:s,setInitialValue:u}}function Ft(e,n,t,r){return Be(e)?P(e):e!==void 0?e:X(n.values,P(r),P(t))}function It(e,n,t,r){const l=E(()=>{var s,d,v;return(v=(d=(s=m(r))===null||s===void 0?void 0:s.describe)===null||d===void 0?void 0:d.call(s).required)!==null&&v!==void 0?v:!1}),u=we({touched:!1,pending:!1,valid:!0,required:l,validated:!!P(t).length,initialValue:E(()=>P(n)),dirty:E(()=>!Y(P(e),P(n)))});return Ve(t,s=>{u.valid=!s.length},{immediate:!0,flush:"sync"}),u}function Ct(){const e=le([]);return{errors:e,setErrors:n=>{e.value=en(n)}}}function Mt(e,n,t){return Fe(t==null?void 0:t.type)?wt(e,n,t):Tn(e,n,t)}function Tn(e,n,t){const{initialValue:r,validateOnMount:l,bails:u,type:s,checkedValue:d,label:v,validateOnValueUpdate:c,uncheckedValue:y,controlled:V,keepValueOnUnmount:A,syncVModel:O,form:I}=Pt(t),$=V?Mn(Ue):void 0,p=I||$,D=E(()=>Ae(m(e))),R=E(()=>{if(m(p==null?void 0:p.schema))return;const j=P(n);return Ne(j)||ue(j)||q(j)||Array.isArray(j)?j:wn(j)}),de=!q(R.value)&&ue(m(n)),{id:G,value:J,initialValue:Z,meta:k,setState:ie,errors:U,flags:z}=At(D,{modelValue:r,form:p,bails:u,label:v,type:s,validate:R.value?N:void 0,schema:de?n:void 0}),L=E(()=>U.value[0]);O&&Bt({value:J,prop:O,handleChange:_,shouldValidate:()=>c&&!z.pendingReset});const ae=(h,j=!1)=>{k.touched=!0,j&&x()};async function ce(h){var j,M;if(p!=null&&p.validateSchema){const{results:C}=await p.validateSchema(h);return(j=C[m(D)])!==null&&j!==void 0?j:{valid:!0,errors:[]}}return R.value?Bn(J.value,R.value,{name:m(D),label:m(v),values:(M=p==null?void 0:p.values)!==null&&M!==void 0?M:{},bails:u}):{valid:!0,errors:[]}}const x=xe(async()=>(k.pending=!0,k.validated=!0,ce("validated-only")),h=>(z.pendingUnmount[K.id]||(ie({errors:h.errors}),k.pending=!1,k.valid=h.valid),h)),ee=xe(async()=>ce("silent"),h=>(k.valid=h.valid,h));function N(h){return(h==null?void 0:h.mode)==="silent"?ee():x()}function _(h,j=!0){const M=Te(h);_e(M,j)}An(()=>{if(l)return x();(!p||!p.validateSchema)&&ee()});function me(h){k.touched=h}function fe(h){var j;const M=h&&"value"in h?h.value:Z.value;ie({value:F(M),initialValue:F(M),touched:(j=h==null?void 0:h.touched)!==null&&j!==void 0?j:!1,errors:(h==null?void 0:h.errors)||[]}),k.pending=!1,k.validated=!1,ee()}const ye=Re();function _e(h,j=!0){J.value=ye&&O?st(h,ye.props.modelModifiers):h,(j?x:ee)()}function Ie(h){ie({errors:Array.isArray(h)?h:[h]})}const sn=E({get(){return J.value},set(h){_e(h,c)}}),K={id:G,name:D,label:v,value:sn,meta:k,errors:U,errorMessage:L,type:s,checkedValue:d,uncheckedValue:y,bails:u,keepValueOnUnmount:A,resetField:fe,handleReset:()=>fe(),validate:N,handleChange:_,handleBlur:ae,setState:ie,setTouched:me,setErrors:Ie,setValue:_e};if(Je(tt,K),Be(n)&&typeof P(n)!="function"&&Ve(n,(h,j)=>{Y(h,j)||(k.validated?x():ee())},{deep:!0}),!p)return K;const ze=E(()=>{const h=R.value;return!h||q(h)||Ne(h)||ue(h)||Array.isArray(h)?{}:Object.keys(h).reduce((j,M)=>{const C=mt(h[M]).map(ve=>ve.__locatorRef).reduce((ve,oe)=>{const te=X(p.values,oe)||p.values[oe];return te!==void 0&&(ve[oe]=te),ve},{});return Object.assign(j,C),j},{})});return Ve(ze,(h,j)=>{if(!Object.keys(h).length)return;!Y(h,j)&&(k.validated?x():ee())}),Qn(()=>{var h;const j=(h=m(K.keepValueOnUnmount))!==null&&h!==void 0?h:m(p.keepValuesOnUnmount),M=m(D);if(j||!p||z.pendingUnmount[K.id]){p==null||p.removePathState(M,G);return}z.pendingUnmount[K.id]=!0;const C=p.getPathState(M);if(Array.isArray(C==null?void 0:C.id)&&(C!=null&&C.multiple)?C!=null&&C.id.includes(K.id):(C==null?void 0:C.id)===K.id){if(C!=null&&C.multiple&&Array.isArray(C.value)){const oe=C.value.findIndex(te=>Y(te,m(K.checkedValue)));if(oe>-1){const te=[...C.value];te.splice(oe,1),p.setFieldValue(M,te)}Array.isArray(C.id)&&C.id.splice(C.id.indexOf(K.id),1)}else p.unsetPathValue(m(D));p.removePathState(M,G)}}),K}function Pt(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),r=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",l=t&&!("initialValue"in(e||{}))?nn(Re(),r):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:l});const u="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,d=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:l,controlled:s??!0,checkedValue:u,syncVModel:d})}function wt(e,n,t){const r=t!=null&&t.standalone?void 0:Mn(Ue),l=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function s(d){const v=d.handleChange,c=E(()=>{const V=m(d.value),A=m(l);return Array.isArray(V)?V.findIndex(O=>Y(O,A))>=0:Y(A,V)});function y(V,A=!0){var O,I;if(c.value===((O=V==null?void 0:V.target)===null||O===void 0?void 0:O.checked)){A&&d.validate();return}const $=m(e),p=r==null?void 0:r.getPathState($),D=Te(V);let R=(I=m(l))!==null&&I!==void 0?I:D;r&&(p!=null&&p.multiple)&&p.type==="checkbox"?R=Vn(X(r.values,$)||[],R,void 0):(t==null?void 0:t.type)==="checkbox"&&(R=Vn(m(d.value),R,m(u))),v(R,A)}return Object.assign(Object.assign({},d),{checked:c,checkedValue:l,uncheckedValue:u,handleChange:y})}return s(Tn(e,n,t))}function Bt({prop:e,value:n,handleChange:t,shouldValidate:r}){const l=Re();if(!l||!e)return;const u=typeof e=="string"?e:"modelValue",s=`update:${u}`;u in l.props&&(Ve(n,d=>{Y(d,nn(l,u))||l.emit(s,d)}),Ve(()=>nn(l,u),d=>{if(d===ke&&n.value===void 0)return;const v=d===ke?void 0:d;Y(v,n.value)||t(v,r())}))}function nn(e,n){if(e)return e.props[n]}const kt=tn({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Oe().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:ke},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const t=be(e,"rules"),r=be(e,"name"),l=be(e,"label"),u=be(e,"uncheckedValue"),s=be(e,"keepValue"),{errors:d,value:v,errorMessage:c,validate:y,handleChange:V,handleBlur:A,setTouched:O,resetField:I,handleReset:$,meta:p,checked:D,setErrors:R,setValue:de}=Mt(r,t,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Tt(e,n),checkedValue:n.attrs.value,uncheckedValue:u,label:l,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:s,syncVModel:!0}),G=function(z,L=!0){V(z,L)},J=E(()=>{const{validateOnInput:U,validateOnChange:z,validateOnBlur:L,validateOnModelUpdate:ae}=Nt(e);function ce(_){A(_,L),q(n.attrs.onBlur)&&n.attrs.onBlur(_)}function x(_){G(_,U),q(n.attrs.onInput)&&n.attrs.onInput(_)}function ee(_){G(_,z),q(n.attrs.onChange)&&n.attrs.onChange(_)}const N={name:e.name,onBlur:ce,onInput:x,onChange:ee};return N["onUpdate:modelValue"]=_=>G(_,ae),N}),Z=E(()=>{const U=Object.assign({},J.value);Fe(n.attrs.type)&&D&&(U.checked=D.value);const z=jn(e,n);return ot(z,n.attrs)&&(U.value=v.value),U}),k=E(()=>Object.assign(Object.assign({},J.value),{modelValue:v.value}));function ie(){return{field:Z.value,componentField:k.value,value:v.value,meta:p,errors:d.value,errorMessage:c.value,validate:y,resetField:I,handleChange:G,handleInput:U=>G(U,!1),handleReset:$,handleBlur:J.value.onBlur,setTouched:O,setErrors:R,setValue:de}}return n.expose({value:v,meta:p,errors:d,errorMessage:c,setErrors:R,setTouched:O,setValue:de,reset:I,validate:y,handleChange:V}),()=>{const U=rn(jn(e,n)),z=on(U,n,ie);return U?Pe(U,Object.assign(Object.assign({},n.attrs),Z.value),z):z}}});function jn(e,n){let t=e.as||"";return!e.as&&!n.slots.default&&(t="input"),t}function Nt(e){var n,t,r,l;const{validateOnInput:u,validateOnChange:s,validateOnBlur:d,validateOnModelUpdate:v}=Oe();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:u,validateOnChange:(t=e.validateOnChange)!==null&&t!==void 0?t:s,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:d,validateOnModelUpdate:(l=e.validateOnModelUpdate)!==null&&l!==void 0?l:v}}function Tt(e,n){return Fe(n.attrs.type)?yn(e,"modelValue")?e.modelValue:void 0:yn(e,"modelValue")?e.modelValue:n.attrs.value}const Ht=kt;let Rt=0;const Me=["bails","fieldsCount","id","multiple","type","validate"];function Rn(e){const n=(e==null?void 0:e.initialValues)||{},t=Object.assign({},m(n)),r=P(e==null?void 0:e.validationSchema);return r&&ue(r)&&q(r.cast)?F(r.cast(t)||{}):F(t)}function Ut(e){var n;const t=Rt++,r=(e==null?void 0:e.name)||"Form";let l=0;const u=le(!1),s=le(!1),d=le(0),v=[],c=we(Rn(e)),y=le([]),V=le({}),A=le({}),O=dt(()=>{A.value=y.value.reduce((a,i)=>(a[Ae(m(i.path))]=i,a),{})});function I(a,i){const o=_(a);if(!o){typeof a=="string"&&(V.value[Ae(a)]=en(i));return}if(typeof a=="string"){const f=Ae(a);V.value[f]&&delete V.value[f]}o.errors=en(i),o.valid=!o.errors.length}function $(a){ne(a).forEach(i=>{I(i,a[i])})}e!=null&&e.initialErrors&&$(e.initialErrors);const p=E(()=>{const a=y.value.reduce((i,o)=>(o.errors.length&&(i[m(o.path)]=o.errors),i),{});return Object.assign(Object.assign({},V.value),a)}),D=E(()=>ne(p.value).reduce((a,i)=>{const o=p.value[i];return o!=null&&o.length&&(a[i]=o[0]),a},{})),R=E(()=>y.value.reduce((a,i)=>(a[m(i.path)]={name:m(i.path)||"",label:i.label||""},a),{})),de=E(()=>y.value.reduce((a,i)=>{var o;return a[m(i.path)]=(o=i.bails)!==null&&o!==void 0?o:!0,a},{})),G=Object.assign({},(e==null?void 0:e.initialErrors)||{}),J=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:Z,originalInitialValues:k,setInitialValues:ie}=zt(y,c,e),U=Dt(y,c,k,D),z=E(()=>y.value.reduce((a,i)=>{const o=X(c,m(i.path));return he(a,m(i.path),o),a},{})),L=e==null?void 0:e.validationSchema;function ae(a,i){var o,f;const b=E(()=>X(Z.value,m(a))),S=A.value[m(a)],g=(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="radio";if(S&&g){S.multiple=!0;const re=l++;return Array.isArray(S.id)?S.id.push(re):S.id=[S.id,re],S.fieldsCount++,S.__flags.pendingUnmount[re]=!1,S}const B=E(()=>X(c,m(a))),T=m(a),W=fe.findIndex(re=>re===T);W!==-1&&fe.splice(W,1);const w=E(()=>{var re,je,He,Ge;const Ke=m(L);if(ue(Ke))return(je=(re=Ke.describe)===null||re===void 0?void 0:re.call(Ke,m(a)).required)!==null&&je!==void 0?je:!1;const Ye=m(i==null?void 0:i.schema);return ue(Ye)&&(Ge=(He=Ye.describe)===null||He===void 0?void 0:He.call(Ye).required)!==null&&Ge!==void 0?Ge:!1}),H=l++,Q=we({id:H,path:a,touched:!1,pending:!1,valid:!0,validated:!!(!((o=G[T])===null||o===void 0)&&o.length),required:w,initialValue:b,errors:Yn([]),bails:(f=i==null?void 0:i.bails)!==null&&f!==void 0?f:!1,label:i==null?void 0:i.label,type:(i==null?void 0:i.type)||"default",value:B,multiple:!1,__flags:{pendingUnmount:{[H]:!1},pendingReset:!1},fieldsCount:1,validate:i==null?void 0:i.validate,dirty:E(()=>!Y(P(B),P(b)))});return y.value.push(Q),A.value[T]=Q,O(),D.value[T]&&!G[T]&&se(()=>{ge(T,{mode:"silent"})}),Be(a)&&Ve(a,re=>{O();const je=F(B.value);A.value[re]=Q,se(()=>{he(c,re,je)})}),Q}const ce=pn(fn,5),x=pn(fn,5),ee=xe(async a=>await(a==="silent"?ce():x()),(a,[i])=>{const o=ne(j.errorBag.value),b=[...new Set([...ne(a.results),...y.value.map(S=>S.path),...o])].sort().reduce((S,g)=>{var B;const T=g,W=_(T)||me(T),w=((B=a.results[T])===null||B===void 0?void 0:B.errors)||[],H=m(W==null?void 0:W.path)||T,Q=Lt({errors:w,valid:!w.length},S.results[H]);return S.results[H]=Q,Q.valid||(S.errors[H]=Q.errors[0]),W&&V.value[H]&&delete V.value[H],W?(W.valid=Q.valid,i==="silent"||i==="validated-only"&&!W.validated||I(W,Q.errors),S):(I(H,w),S)},{valid:a.valid,results:{},errors:{},source:a.source});return a.values&&(b.values=a.values,b.source=a.source),ne(b.results).forEach(S=>{var g;const B=_(S);B&&i!=="silent"&&(i==="validated-only"&&!B.validated||I(B,(g=b.results[S])===null||g===void 0?void 0:g.errors))}),b});function N(a){y.value.forEach(a)}function _(a){const i=typeof a=="string"?Ae(a):a;return typeof i=="string"?A.value[i]:i}function me(a){return y.value.filter(o=>a.startsWith(m(o.path))).reduce((o,f)=>o?f.path.length>o.path.length?f:o:f,void 0)}let fe=[],ye;function _e(a){return fe.push(a),ye||(ye=se(()=>{[...fe].sort().reverse().forEach(o=>{On(c,o)}),fe=[],ye=null})),ye}function Ie(a){return function(o,f){return function(S){return S instanceof Event&&(S.preventDefault(),S.stopPropagation()),N(g=>g.touched=!0),u.value=!0,d.value++,Se().then(g=>{const B=F(c);if(g.valid&&typeof o=="function"){const T=F(z.value);let W=a?T:B;return g.values&&(W=g.source==="schema"?g.values:Object.assign({},W,g.values)),o(W,{evt:S,controlledValues:T,setErrors:$,setFieldError:I,setTouched:Le,setFieldTouched:te,setValues:ve,setFieldValue:M,resetForm:$e,resetField:dn})}!g.valid&&typeof f=="function"&&f({values:B,evt:S,errors:g.errors,results:g.results})}).then(g=>(u.value=!1,g),g=>{throw u.value=!1,g})}}}const K=Ie(!1);K.withControlled=Ie(!0);function ze(a,i){const o=y.value.findIndex(b=>b.path===a&&(Array.isArray(b.id)?b.id.includes(i):b.id===i)),f=y.value[o];if(!(o===-1||!f)){if(se(()=>{ge(a,{mode:"silent",warn:!1})}),f.multiple&&f.fieldsCount&&f.fieldsCount--,Array.isArray(f.id)){const b=f.id.indexOf(i);b>=0&&f.id.splice(b,1),delete f.__flags.pendingUnmount[i]}(!f.multiple||f.fieldsCount<=0)&&(y.value.splice(o,1),cn(a),O(),delete A.value[a])}}function h(a){ne(A.value).forEach(i=>{i.startsWith(a)&&delete A.value[i]}),y.value=y.value.filter(i=>!i.path.startsWith(a)),se(()=>{O()})}const j={name:r,formId:t,values:c,controlledValues:z,errorBag:p,errors:D,schema:L,submitCount:d,meta:U,isSubmitting:u,isValidating:s,fieldArrays:v,keepValuesOnUnmount:J,validateSchema:P(L)?ee:void 0,validate:Se,setFieldError:I,validateField:ge,setFieldValue:M,setValues:ve,setErrors:$,setFieldTouched:te,setTouched:Le,resetForm:$e,resetField:dn,handleSubmit:K,useFieldModel:qn,defineInputBinds:Wn,defineComponentBinds:Hn,defineField:We,stageInitialValue:Ln,unsetInitialValue:cn,setFieldInitialValue:qe,createPathState:ae,getPathState:_,unsetPathValue:_e,removePathState:ze,initialValues:Z,getAllPathStates:()=>y.value,destroyPath:h,isFieldTouched:Un,isFieldDirty:Dn,isFieldValid:zn};function M(a,i,o=!0){const f=F(i),b=typeof a=="string"?a:a.path;_(b)||ae(b),he(c,b,f),o&&ge(b)}function C(a,i=!0){ne(c).forEach(o=>{delete c[o]}),ne(a).forEach(o=>{M(o,a[o],!1)}),i&&Se()}function ve(a,i=!0){Ee(c,a),v.forEach(o=>o&&o.reset()),i&&Se()}function oe(a,i){const o=_(m(a))||ae(a);return E({get(){return o.value},set(f){var b;const S=m(a);M(S,f,(b=m(i))!==null&&b!==void 0?b:!1)}})}function te(a,i){const o=_(a);o&&(o.touched=i)}function Un(a){const i=_(a);return i?i.touched:y.value.filter(o=>o.path.startsWith(a)).some(o=>o.touched)}function Dn(a){const i=_(a);return i?i.dirty:y.value.filter(o=>o.path.startsWith(a)).some(o=>o.dirty)}function zn(a){const i=_(a);return i?i.valid:y.value.filter(o=>o.path.startsWith(a)).every(o=>o.valid)}function Le(a){if(typeof a=="boolean"){N(i=>{i.touched=a});return}ne(a).forEach(i=>{te(i,!!a[i])})}function dn(a,i){var o;const f=i&&"value"in i?i.value:X(Z.value,a),b=_(a);b&&(b.__flags.pendingReset=!0),qe(a,F(f),!0),M(a,f,!1),te(a,(o=i==null?void 0:i.touched)!==null&&o!==void 0?o:!1),I(a,(i==null?void 0:i.errors)||[]),se(()=>{b&&(b.__flags.pendingReset=!1)})}function $e(a,i){let o=F(a!=null&&a.values?a.values:k.value);o=i!=null&&i.force?o:Ee(k.value,o),o=ue(L)&&q(L.cast)?L.cast(o):o,ie(o,{force:i==null?void 0:i.force}),N(f=>{var b;f.__flags.pendingReset=!0,f.validated=!1,f.touched=((b=a==null?void 0:a.touched)===null||b===void 0?void 0:b[m(f.path)])||!1,M(m(f.path),X(o,m(f.path)),!1),I(m(f.path),void 0)}),i!=null&&i.force?C(o,!1):ve(o,!1),$((a==null?void 0:a.errors)||{}),d.value=(a==null?void 0:a.submitCount)||0,se(()=>{Se({mode:"silent"}),N(f=>{f.__flags.pendingReset=!1})})}async function Se(a){const i=(a==null?void 0:a.mode)||"force";if(i==="force"&&N(g=>g.validated=!0),j.validateSchema)return j.validateSchema(i);s.value=!0;const o=await Promise.all(y.value.map(g=>g.validate?g.validate(a).then(B=>({key:m(g.path),valid:B.valid,errors:B.errors,value:B.value})):Promise.resolve({key:m(g.path),valid:!0,errors:[],value:void 0})));s.value=!1;const f={},b={},S={};for(const g of o)f[g.key]={valid:g.valid,errors:g.errors},g.value&&he(S,g.key,g.value),g.errors.length&&(b[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:f,errors:b,values:S,source:"fields"}}async function ge(a,i){var o;const f=_(a);if(f&&(i==null?void 0:i.mode)!=="silent"&&(f.validated=!0),L){const{results:b}=await ee((i==null?void 0:i.mode)||"validated-only");return b[a]||{errors:[],valid:!0}}return f!=null&&f.validate?f.validate(i):(!f&&(o=i==null?void 0:i.warn),Promise.resolve({errors:[],valid:!0}))}function cn(a){On(Z.value,a)}function Ln(a,i,o=!1){qe(a,i),he(c,a,i),o&&!(e!=null&&e.initialValues)&&he(k.value,a,F(i))}function qe(a,i,o=!1){he(Z.value,a,F(i)),o&&he(k.value,a,F(i))}async function fn(){const a=P(L);if(!a)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const i=Ne(a)||ue(a)?await _t(a,c):await jt(a,c,{names:R.value,bailsMap:de.value});return s.value=!1,i}const $n=K((a,{evt:i})=>{Cn(i)&&i.target.submit()});An(()=>{if(e!=null&&e.initialErrors&&$(e.initialErrors),e!=null&&e.initialTouched&&Le(e.initialTouched),e!=null&&e.validateOnMount){Se();return}j.validateSchema&&j.validateSchema("silent")}),Be(L)&&Ve(L,()=>{var a;(a=j.validateSchema)===null||a===void 0||a.call(j,"validated-only")}),Je(Ue,j);function We(a,i){const o=q(i)||i==null?void 0:i.label,f=_(m(a))||ae(a,{label:o}),b=()=>q(i)?i(Ce(f,Me)):i||{};function S(){var w;f.touched=!0,((w=b().validateOnBlur)!==null&&w!==void 0?w:Oe().validateOnBlur)&&ge(m(f.path))}function g(){var w;((w=b().validateOnInput)!==null&&w!==void 0?w:Oe().validateOnInput)&&se(()=>{ge(m(f.path))})}function B(){var w;((w=b().validateOnChange)!==null&&w!==void 0?w:Oe().validateOnChange)&&se(()=>{ge(m(f.path))})}const T=E(()=>{const w={onChange:B,onInput:g,onBlur:S};return q(i)?Object.assign(Object.assign({},w),i(Ce(f,Me)).props||{}):i!=null&&i.props?Object.assign(Object.assign({},w),i.props(Ce(f,Me))):w});return[oe(a,()=>{var w,H,Q;return(Q=(w=b().validateOnModelUpdate)!==null&&w!==void 0?w:(H=Oe())===null||H===void 0?void 0:H.validateOnModelUpdate)!==null&&Q!==void 0?Q:!0}),T]}function qn(a){return Array.isArray(a)?a.map(i=>oe(i,!0)):oe(a)}function Wn(a,i){const[o,f]=We(a,i);function b(){f.value.onBlur()}function S(B){const T=Te(B);M(m(a),T,!1),f.value.onInput()}function g(B){const T=Te(B);M(m(a),T,!1),f.value.onChange()}return E(()=>Object.assign(Object.assign({},f.value),{onBlur:b,onInput:S,onChange:g,value:o.value}))}function Hn(a,i){const[o,f]=We(a,i),b=_(m(a));function S(g){o.value=g}return E(()=>{const g=q(i)?i(Ce(b,Me)):i||{};return Object.assign({[g.model||"modelValue"]:o.value,[`onUpdate:${g.model||"modelValue"}`]:S},f.value)})}const vn=Object.assign(Object.assign({},j),{values:Gn(c),handleReset:()=>$e(),submitForm:$n});return Je(nt,vn),vn}function Dt(e,n,t,r){const l={touched:"some",pending:"some",valid:"every"},u=E(()=>!Y(n,P(t)));function s(){const v=e.value;return ne(l).reduce((c,y)=>{const V=l[y];return c[y]=v[V](A=>A[y]),c},{})}const d=we(s());return Kn(()=>{const v=s();d.touched=v.touched,d.valid=v.valid,d.pending=v.pending}),E(()=>Object.assign(Object.assign({initialValues:P(t)},d),{valid:d.valid&&!ne(r.value).length,dirty:u.value}))}function zt(e,n,t){const r=Rn(t),l=le(r),u=le(F(r));function s(d,v){v!=null&&v.force?(l.value=F(d),u.value=F(d)):(l.value=Ee(F(l.value)||{},F(d)),u.value=Ee(F(u.value)||{},F(d))),v!=null&&v.updateFields&&e.value.forEach(c=>{if(c.touched)return;const V=X(l.value,m(c.path));he(n,m(c.path),F(V))})}return{initialValues:l,originalInitialValues:u,setInitialValues:s}}function Lt(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}const $t=tn({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,n){const t=be(e,"validationSchema"),r=be(e,"keepValues"),{errors:l,errorBag:u,values:s,meta:d,isSubmitting:v,isValidating:c,submitCount:y,controlledValues:V,validate:A,validateField:O,handleReset:I,resetForm:$,handleSubmit:p,setErrors:D,setFieldError:R,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetField:k}=Ut({validationSchema:t.value?t:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),ie=p((N,{evt:_})=>{Cn(_)&&_.target.submit()},e.onInvalidSubmit),U=e.onSubmit?p(e.onSubmit,e.onInvalidSubmit):ie;function z(N){ln(N)&&N.preventDefault(),I(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function L(N,_){return p(typeof N=="function"&&!_?N:_,e.onInvalidSubmit)(N)}function ae(){return F(s)}function ce(){return F(d.value)}function x(){return F(l.value)}function ee(){return{meta:d.value,errors:l.value,errorBag:u.value,values:s,isSubmitting:v.value,isValidating:c.value,submitCount:y.value,controlledValues:V.value,validate:A,validateField:O,handleSubmit:L,handleReset:I,submitForm:ie,setErrors:D,setFieldError:R,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetForm:$,resetField:k,getValues:ae,getMeta:ce,getErrors:x}}return n.expose({setFieldError:R,setErrors:D,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetForm:$,validate:A,validateField:O,resetField:k,getValues:ae,getMeta:ce,getErrors:x,values:s,meta:d,errors:l}),function(){const _=e.as==="form"?e.as:e.as?rn(e.as):null,me=on(_,n,ee);return _?Pe(_,Object.assign(Object.assign(Object.assign({},_==="form"?{novalidate:!0}:{}),n.attrs),{onSubmit:U,onReset:z}),me):me}}}),Gt=$t,qt=tn({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const t=En(Ue,void 0),r=E(()=>t==null?void 0:t.errors.value[e.name]);function l(){return{message:r.value}}return()=>{if(!r.value)return;const u=e.as?rn(e.as):e.as,s=on(u,n,l),d=Object.assign({role:"alert"},n.attrs);return!u&&(Array.isArray(s)||!s)&&(s!=null&&s.length)?s:(Array.isArray(s)||!s)&&!(s!=null&&s.length)?Pe(u||"span",d,r.value):Pe(u,d,s)}}}),Kt=qt;export{Kt as E,Gt as F,Ht as a,un as c,De as i};
@@ -0,0 +1 @@
1
+ import{C as P,B as T}from"./chart.js.CP_nMnnf.0.0.50-internal.0.js";import{B as O,y as C,a3 as D,a6 as j,r as q,o as A,a7 as K,w as R,D as h,a8 as w,n as U}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";const L={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},k={ariaLabel:{type:String},ariaDescribedby:{type:String}},N={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...L,...k},$=j[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function u(t){return w(t)?h(t):t}function z(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return w(e)?new Proxy(t,{}):t}function E(t,e){const s=t.options;s&&e&&Object.assign(s,e)}function B(t,e){t.labels=e}function S(t,e,s){const o=[];t.datasets=e.map(n=>{const a=t.datasets.find(c=>c[s]===n[s]);return!a||!n.data||o.includes(a)?{...n}:(o.push(a),Object.assign(a,n),a)})}function F(t,e){const s={labels:[],datasets:[]};return B(s,t.labels),S(s,t.datasets,e),s}const G=O({props:N,setup(t,e){let{expose:s,slots:o}=e;const n=q(null),a=C(null);s({chart:a});const c=()=>{if(!n.value)return;const{type:r,data:p,options:y,plugins:f,datasetIdKey:v}=t,b=F(p,v),i=z(b,p);a.value=new P(n.value,{type:r,data:i,options:{...y},plugins:f})},d=()=>{const r=h(a.value);r&&(t.destroyDelay>0?setTimeout(()=>{r.destroy(),a.value=null},t.destroyDelay):(r.destroy(),a.value=null))},I=r=>{r.update(t.updateMode)};return A(c),K(d),R([()=>t.options,()=>t.data],(r,p)=>{let[y,f]=r,[v,b]=p;const i=h(a.value);if(!i)return;let g=!1;if(y){const l=u(y),m=u(v);l&&l!==m&&(E(i,l),g=!0)}if(f){const l=u(f.labels),m=u(b.labels),x=u(f.datasets),M=u(b.datasets);l!==m&&(B(i.config.data,l),g=!0),x&&x!==M&&(S(i.config.data,x,t.datasetIdKey),g=!0)}g&&U(()=>{I(i)})},{deep:!0}),()=>D("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[D("p",{},[o.default?o.default():""])])}});function H(t,e){return P.register(e),O({props:L,setup(s,o){let{expose:n}=o;const a=C(null),c=d=>{a.value=d==null?void 0:d.chart};return n({chart:a}),()=>D(G,$({ref:c},{type:t,...s}))}})}const V=H("bar",T);export{V as B};
@@ -0,0 +1,5 @@
1
+ import{c as kt,i as L,m as M,a as k,b as d,D as xe,d as P,e as Z,f as U,u as H,g as ee,h as p,j as N,k as q,l as te,n as ht,o as y,p as de,q as Ee,r as G,s as Q,A as Ot,t as Nt,v as yt,N as pt,w as Ve,x as Ie,C as Pt,y as Fe,z as Le,M as Re,B as Te,E as ve,F as ke,G as he,H as Mt,I as St,J as Dt,K as Ct,L as At,O as Wt,P as Ut,Q as j,R as xt,S as Vt,T as wt}from"./@intlify.BkGPX90O.0.0.50-internal.0.js";import{x as $t,r as Ht,y as Yt,k as Y,w as ne,f as jt,B as ie,g as B,a3 as we,X as $e,i as Gt,o as Bt,a7 as Xt,R as Jt,a9 as zt}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";/*!
2
+ * vue-i18n v11.1.3
3
+ * (c) 2025 kazuya kawaguchi
4
+ * Released under the MIT License.
5
+ */const Kt="11.1.3";function qt(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(j().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(j().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(j().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(j().__INTLIFY_PROD_DEVTOOLS__=!1)}const T={UNEXPECTED_RETURN_TYPE:Pt,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function h(e,...t){return kt(e,null,void 0)}const re=M("__translateVNode"),se=M("__datetimeParts"),le=M("__numberParts"),He=M("__setPluralRules"),Ye=M("__injectWithOption"),oe=M("__dispose");function X(e){if(!y(e)||Q(e))return e;for(const t in e)if(te(e,t))if(!t.includes("."))y(e[t])&&X(e[t]);else{const c=t.split("."),l=c.length-1;let a=e,r=!1;for(let s=0;s<l;s++){if(c[s]==="__proto__")throw new Error(`unsafe key: ${c[s]}`);if(c[s]in a||(a[c[s]]=N()),!y(a[c[s]])){r=!0;break}a=a[c[s]]}if(r||(Q(a)?Ot.includes(c[l])||delete e[t]:(a[c[l]]=e[t],delete e[t])),!Q(a)){const s=a[c[l]];y(s)&&X(s)}}return e}function ue(e,t){const{messages:c,__i18n:l,messageResolver:a,flatJson:r}=t,s=k(c)?c:P(l)?N():{[e]:N()};if(P(l)&&l.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:m}=i;u?(s[u]=s[u]||N(),q(m,s[u])):q(m,s)}else d(i)&&q(JSON.parse(i),s)}),a==null&&r)for(const i in s)te(s,i)&&X(s[i]);return s}function je(e){return e.type}function Ge(e,t,c){let l=y(t.messages)?t.messages:N();"__i18nGlobal"in c&&(l=ue(e.locale.value,{messages:l,__i18n:c.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(y(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(y(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Oe(e){return Jt(zt,null,e,0)}const Ne="__INTLIFY_META__",ye=()=>[],Qt=()=>!1;let pe=0;function Pe(e){return(t,c,l,a)=>e(c,l,B()||void 0,a)}const Zt=()=>{const e=B();let t=null;return e&&(t=je(e)[Ne])?{[Ne]:t}:null};function _e(e={}){const{__root:t,__injectWithOption:c}=e,l=t===void 0,a=e.flatJson,r=ee?Ht:Yt;let s=L(e.inheritLocale)?e.inheritLocale:!0;const i=r(t&&s?t.locale.value:d(e.locale)?e.locale:xe),u=r(t&&s?t.fallbackLocale.value:d(e.fallbackLocale)||P(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),m=r(ue(i.value,e)),b=r(k(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=r(k(e.numberFormats)?e.numberFormats:{[i.value]:{}});let E=t?t.missingWarn:L(e.missingWarn)||Z(e.missingWarn)?e.missingWarn:!0,R=t?t.fallbackWarn:L(e.fallbackWarn)||Z(e.fallbackWarn)?e.fallbackWarn:!0,O=t?t.fallbackRoot:L(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,J=U(e.missing)?e.missing:null,A=U(e.missing)?Pe(e.missing):null,S=U(e.postTranslation)?e.postTranslation:null,x=t?t.warnHtmlMessage:L(e.warnHtmlMessage)?e.warnHtmlMessage:!0,V=!!e.escapeParameter;const w=t?t.modifiers:k(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,_;_=(()=>{l&&Ie(null);const n={version:Kt,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:w,pluralRules:$,missing:A===null?void 0:A,missingWarn:E,fallbackWarn:R,fallbackFormat:v,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:x,escapeParameter:V,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};n.datetimeFormats=b.value,n.numberFormats=f.value,n.__datetimeFormatters=k(_)?_.__datetimeFormatters:void 0,n.__numberFormatters=k(_)?_.__numberFormatters:void 0;const o=ht(n);return l&&Ie(o),o})(),H(_,i.value,u.value);function ae(){return[i.value,u.value,m.value,b.value,f.value]}const Je=Y({get:()=>i.value,set:n=>{_.locale=n,i.value=n}}),ze=Y({get:()=>u.value,set:n=>{_.fallbackLocale=n,u.value=n,H(_,i.value,n)}}),Ke=Y(()=>m.value),qe=Y(()=>b.value),Qe=Y(()=>f.value);function Ze(){return U(S)?S:null}function et(n){S=n,_.postTranslation=n}function tt(){return J}function at(n){n!==null&&(A=Pe(n)),J=n,_.missing=A}const D=(n,o,g,I,C,K)=>{ae();let W;try{__INTLIFY_PROD_DEVTOOLS__&&Nt(Zt()),l||(_.fallbackContext=t?yt():void 0),W=n(_)}finally{__INTLIFY_PROD_DEVTOOLS__,l||(_.fallbackContext=void 0)}if(g!=="translate exists"&&G(W)&&W===pt||g==="translate exists"&&!W){const[vt,Ra]=o();return t&&O?I(t):C(vt)}else{if(K(W))return W;throw h(T.UNEXPECTED_RETURN_TYPE)}};function ge(...n){return D(o=>Reflect.apply(Le,null,[o,...n]),()=>Fe(...n),"translate",o=>Reflect.apply(o.t,o,[...n]),o=>o,o=>d(o))}function nt(...n){const[o,g,I]=n;if(I&&!y(I))throw h(T.INVALID_ARGUMENT);return ge(o,g,p({resolvedMessage:!0},I||{}))}function rt(...n){return D(o=>Reflect.apply(ve,null,[o,...n]),()=>Te(...n),"datetime format",o=>Reflect.apply(o.d,o,[...n]),()=>Re,o=>d(o))}function st(...n){return D(o=>Reflect.apply(he,null,[o,...n]),()=>ke(...n),"number format",o=>Reflect.apply(o.n,o,[...n]),()=>Re,o=>d(o))}function lt(n){return n.map(o=>d(o)||G(o)||L(o)?Oe(String(o)):o)}const ot={normalize:lt,interpolate:n=>n,type:"vnode"};function ct(...n){return D(o=>{let g;const I=o;try{I.processor=ot,g=Reflect.apply(Le,null,[I,...n])}finally{I.processor=null}return g},()=>Fe(...n),"translate",o=>o[re](...n),o=>[Oe(o)],o=>P(o))}function it(...n){return D(o=>Reflect.apply(he,null,[o,...n]),()=>ke(...n),"number format",o=>o[le](...n),ye,o=>d(o)||P(o))}function ut(...n){return D(o=>Reflect.apply(ve,null,[o,...n]),()=>Te(...n),"datetime format",o=>o[se](...n),ye,o=>d(o)||P(o))}function _t(n){$=n,_.pluralRules=$}function mt(n,o){return D(()=>{if(!n)return!1;const g=d(o)?o:i.value,I=be(g),C=_.messageResolver(I,n);return Q(C)||Mt(C)||d(C)},()=>[n],"translate exists",g=>Reflect.apply(g.te,g,[n,o]),Qt,g=>L(g))}function ft(n){let o=null;const g=Ve(_,u.value,i.value);for(let I=0;I<g.length;I++){const C=m.value[g[I]]||{},K=_.messageResolver(C,n);if(K!=null){o=K;break}}return o}function gt(n){const o=ft(n);return o??(t?t.tm(n)||{}:{})}function be(n){return m.value[n]||{}}function bt(n,o){if(a){const g={[n]:o};for(const I in g)te(g,I)&&X(g[I]);o=g[n]}m.value[n]=o,_.messages=m.value}function dt(n,o){m.value[n]=m.value[n]||{};const g={[n]:o};if(a)for(const I in g)te(g,I)&&X(g[I]);o=g[n],q(o,m.value[n]),_.messages=m.value}function Et(n){return b.value[n]||{}}function It(n,o){b.value[n]=o,_.datetimeFormats=b.value,de(_,n,o)}function Ft(n,o){b.value[n]=p(b.value[n]||{},o),_.datetimeFormats=b.value,de(_,n,o)}function Lt(n){return f.value[n]||{}}function Rt(n,o){f.value[n]=o,_.numberFormats=f.value,Ee(_,n,o)}function Tt(n,o){f.value[n]=p(f.value[n]||{},o),_.numberFormats=f.value,Ee(_,n,o)}pe++,t&&ee&&(ne(t.locale,n=>{s&&(i.value=n,_.locale=n,H(_,i.value,u.value))}),ne(t.fallbackLocale,n=>{s&&(u.value=n,_.fallbackLocale=n,H(_,i.value,u.value))}));const F={id:pe,locale:Je,fallbackLocale:ze,get inheritLocale(){return s},set inheritLocale(n){s=n,n&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,H(_,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:Ke,get modifiers(){return w},get pluralRules(){return $||{}},get isGlobal(){return l},get missingWarn(){return E},set missingWarn(n){E=n,_.missingWarn=E},get fallbackWarn(){return R},set fallbackWarn(n){R=n,_.fallbackWarn=R},get fallbackRoot(){return O},set fallbackRoot(n){O=n},get fallbackFormat(){return v},set fallbackFormat(n){v=n,_.fallbackFormat=v},get warnHtmlMessage(){return x},set warnHtmlMessage(n){x=n,_.warnHtmlMessage=n},get escapeParameter(){return V},set escapeParameter(n){V=n,_.escapeParameter=n},t:ge,getLocaleMessage:be,setLocaleMessage:bt,mergeLocaleMessage:dt,getPostTranslationHandler:Ze,setPostTranslationHandler:et,getMissingHandler:tt,setMissingHandler:at,[He]:_t};return F.datetimeFormats=qe,F.numberFormats=Qe,F.rt=nt,F.te=mt,F.tm=gt,F.d=rt,F.n=st,F.getDateTimeFormat=Et,F.setDateTimeFormat=It,F.mergeDateTimeFormat=Ft,F.getNumberFormat=Lt,F.setNumberFormat=Rt,F.mergeNumberFormat=Tt,F[Ye]=c,F[re]=ct,F[se]=ut,F[le]=it,F}function ea(e){const t=d(e.locale)?e.locale:xe,c=d(e.fallbackLocale)||P(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,l=U(e.missing)?e.missing:void 0,a=L(e.silentTranslationWarn)||Z(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=L(e.silentFallbackWarn)||Z(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=L(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=k(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,b=U(e.postTranslation)?e.postTranslation:void 0,f=d(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,E=!!e.escapeParameterHtml,R=L(e.sync)?e.sync:!0;let O=e.messages;if(k(e.sharedMessages)){const w=e.sharedMessages;O=Object.keys(w).reduce((_,z)=>{const ae=_[z]||(_[z]={});return p(ae,w[z]),_},O||{})}const{__i18n:v,__root:J,__injectWithOption:A}=e,S=e.datetimeFormats,x=e.numberFormats,V=e.flatJson;return{locale:t,fallbackLocale:c,messages:O,flatJson:V,datetimeFormats:S,numberFormats:x,missing:l,missingWarn:a,fallbackWarn:r,fallbackRoot:s,fallbackFormat:i,modifiers:u,pluralRules:m,postTranslation:b,warnHtmlMessage:f,escapeParameter:E,messageResolver:e.messageResolver,inheritLocale:R,__i18n:v,__root:J,__injectWithOption:A}}function ce(e={}){const t=_e(ea(e)),{__extender:c}=e,l={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return L(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=L(a)?!a:a},get silentFallbackWarn(){return L(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=L(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return l.__extender=c,l}function ta(e,t,c){return{beforeCreate(){const l=B();if(!l)throw h(T.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=Me(e,r);else{r.__injectWithOption=!0,r.__extender=c.__vueI18nExtend,this.$i18n=ce(r);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Me(e,a);else{this.$i18n=ce({__i18n:a.__i18n,__injectWithOption:!0,__extender:c.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Ge(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,s)=>this.$i18n.te(r,s),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),c.__setInstance(l,this.$i18n)},mounted(){},unmounted(){const l=B();if(!l)throw h(T.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),c.__deleteInstance(l),delete this.$i18n}}}function Me(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[He](t.pluralizationRules||e.pluralizationRules);const c=ue(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(c).forEach(l=>e.mergeLocaleMessage(l,c[l])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(l=>e.mergeDateTimeFormat(l,t.datetimeFormats[l])),t.numberFormats&&Object.keys(t.numberFormats).forEach(l=>e.mergeNumberFormat(l,t.numberFormats[l])),e}const me={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function aa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===$e?a.children:[a]],[]):t.reduce((c,l)=>{const a=e[l];return a&&(c[l]=a()),c},N())}function Be(){return $e}const na=ie({name:"i18n-t",props:p({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>G(e)||!isNaN(e)}},me),setup(e,t){const{slots:c,attrs:l}=t,a=e.i18n||fe({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(c).filter(f=>f!=="_"),s=N();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=d(e.plural)?+e.plural:e.plural);const i=aa(t,r),u=a[re](e.keypath,i,s),m=p(N(),l),b=d(e.tag)||y(e.tag)?e.tag:Be();return we(b,m,u)}}}),Se=na;function ra(e){return P(e)&&!d(e[0])}function Xe(e,t,c,l){const{slots:a,attrs:r}=t;return()=>{const s={part:!0};let i=N();e.locale&&(s.locale=e.locale),d(e.format)?s.key=e.format:y(e.format)&&(d(e.format.key)&&(s.key=e.format.key),i=Object.keys(e.format).reduce((E,R)=>c.includes(R)?p(N(),E,{[R]:e.format[R]}):E,N()));const u=l(e.value,s,i);let m=[s.key];P(u)?m=u.map((E,R)=>{const O=a[E.type],v=O?O({[E.type]:E.value,index:R,parts:u}):[E.value];return ra(v)&&(v[0].key=`${E.type}-${R}`),v}):d(u)&&(m=[u]);const b=p(N(),r),f=d(e.tag)||y(e.tag)?e.tag:Be();return we(f,b,m)}}const sa=ie({name:"i18n-n",props:p({value:{type:Number,required:!0},format:{type:[String,Object]}},me),setup(e,t){const c=e.i18n||fe({useScope:e.scope,__useComponent:!0});return Xe(e,t,St,(...l)=>c[le](...l))}}),De=sa;function la(e,t){const c=e;if(e.mode==="composition")return c.__getInstance(t)||e.global;{const l=c.__getInstance(t);return l!=null?l.__composer:e.global.__composer}}function oa(e){const t=s=>{const{instance:i,value:u}=s;if(!i||!i.$)throw h(T.UNEXPECTED_ERROR);const m=la(e,i.$),b=Ce(u);return[Reflect.apply(m.t,m,[...Ae(b)]),m]};return{created:(s,i)=>{const[u,m]=t(i);ee&&e.global===m&&(s.__i18nWatcher=ne(m.locale,()=>{i.instance&&i.instance.$forceUpdate()})),s.__composer=m,s.textContent=u},unmounted:s=>{ee&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:i})=>{if(s.__composer){const u=s.__composer,m=Ce(i);s.textContent=Reflect.apply(u.t,u,[...Ae(m)])}},getSSRProps:s=>{const[i]=t(s);return{textContent:i}}}}function Ce(e){if(d(e))return{path:e};if(k(e)){if(!("path"in e))throw h(T.REQUIRED_VALUE,"path");return e}else throw h(T.INVALID_VALUE)}function Ae(e){const{path:t,locale:c,args:l,choice:a,plural:r}=e,s={},i=l||{};return d(c)&&(s.locale=c),G(a)&&(s.plural=a),G(r)&&(s.plural=r),[t,i,s]}function ca(e,t,...c){const l=k(c[0])?c[0]:{};(L(l.globalInstall)?l.globalInstall:!0)&&([Se.name,"I18nT"].forEach(r=>e.component(r,Se)),[De.name,"I18nN"].forEach(r=>e.component(r,De)),[Ue.name,"I18nD"].forEach(r=>e.component(r,Ue))),e.directive("t",oa(t))}const ia=M("global-vue-i18n");function ka(e={}){const t=__VUE_I18N_LEGACY_API__&&L(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,c=L(e.globalInjection)?e.globalInjection:!0,l=new Map,[a,r]=ua(e,t),s=M("");function i(f){return l.get(f)||null}function u(f,E){l.set(f,E)}function m(f){l.delete(f)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...E){if(f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,b),k(E[0])){const v=E[0];b.__composerExtend=v.__composerExtend,b.__vueI18nExtend=v.__vueI18nExtend}let R=null;!t&&c&&(R=Ia(f,b.global)),__VUE_I18N_FULL_INSTALL__&&ca(f,b,...E),__VUE_I18N_LEGACY_API__&&t&&f.mixin(ta(r,r.__composer,b));const O=f.unmount;f.unmount=()=>{R&&R(),b.dispose(),O()}},get global(){return r},dispose(){a.stop()},__instances:l,__getInstance:i,__setInstance:u,__deleteInstance:m};return b}function fe(e={}){const t=B();if(t==null)throw h(T.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw h(T.NOT_INSTALLED);const c=_a(t),l=fa(c),a=je(t),r=ma(e,a);if(r==="global")return Ge(l,e,a),l;if(r==="parent"){let u=ga(c,t,e.__useComponent);return u==null&&(u=l),u}const s=c;let i=s.__getInstance(t);if(i==null){const u=p({},e);"__i18n"in a&&(u.__i18n=a.__i18n),l&&(u.__root=l),i=_e(u),s.__composerExtend&&(i[oe]=s.__composerExtend(i)),da(s,t,i),s.__setInstance(t,i)}return i}function ua(e,t){const c=$t(),l=__VUE_I18N_LEGACY_API__&&t?c.run(()=>ce(e)):c.run(()=>_e(e));if(l==null)throw h(T.UNEXPECTED_ERROR);return[c,l]}function _a(e){const t=Gt(e.isCE?ia:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw h(e.isCE?T.NOT_INSTALLED_WITH_PROVIDE:T.UNEXPECTED_ERROR);return t}function ma(e,t){return Dt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fa(e){return e.mode==="composition"?e.global:e.global.__composer}function ga(e,t,c=!1){let l=null;const a=t.root;let r=ba(t,c);for(;r!=null;){const s=e;if(e.mode==="composition")l=s.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const i=s.__getInstance(r);i!=null&&(l=i.__composer,c&&l&&!l[Ye]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function ba(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function da(e,t,c){Bt(()=>{},t),Xt(()=>{const l=c;e.__deleteInstance(t);const a=l[oe];a&&(a(),delete l[oe])},t)}const Ea=["locale","fallbackLocale","availableLocales"],We=["t","rt","d","n","tm","te"];function Ia(e,t){const c=Object.create(null);return Ea.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw h(T.UNEXPECTED_ERROR);const s=jt(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(c,a,s)}),e.config.globalProperties.$i18n=c,We.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw h(T.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,We.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const Fa=ie({name:"i18n-d",props:p({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},me),setup(e,t){const c=e.i18n||fe({useScope:e.scope,__useComponent:!0});return Xe(e,t,Ct,(...l)=>c[se](...l))}}),Ue=Fa;qt();At(Vt);Wt(wt);Ut(Ve);if(__INTLIFY_PROD_DEVTOOLS__){const e=j();e.__INTLIFY__=!0,xt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{ka as c,fe as u};
@@ -0,0 +1 @@
1
+ import{B as L,aa as M,r as y,w as P,n as $,M as N,d as C,a3 as D}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";const h={};function G(n){return n.getIsPending!==void 0}function H(n){if(G(n))return n;let u=!0,r=n.then(t=>(u=!1,t),t=>{throw u=!1,t});return r.getIsPending=function(){return u},r}function O(n){let u={};const r=n.attributes;if(!r)return u;for(let t=r.length-1;t>=0;t--)u[r[t].name]=r[t].value;return u}function _(n){return Object.keys(n).reduce((u,r)=>(n[r]!==!1&&n[r]!==null&&n[r]!==void 0&&(u[r]=n[r]),u),{})}function A(n,u){const{class:r,style:t,...f}=O(n),{class:p,style:l,...m}=_(u);return{class:[r,p],style:[t,l],...f,...m}}const j=L({inheritAttrs:!1,__name:"InlineSvg",props:{src:{},title:{default:void 0},transformSource:{type:Function,default:n=>n},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:""}},emits:["loaded","unloaded","error"],setup(n,{expose:u,emit:r}){const t=n,f=r,p=M(),l=y(),m=y(),S=Math.random().toString(36).substring(2);u({svgElSource:l,request:m}),P(()=>t.src,e=>{x(e)}),x(t.src);function B(e){if(e=e.cloneNode(!0),t.uniqueIds){const s=typeof t.uniqueIds=="string"?t.uniqueIds:S;e=w(e,s,t.uniqueIdsBase)}return e=t.transformSource(e),t.title&&E(e,t.title),e.innerHTML}function x(e){h[e]||(h[e]=k(e)),l.value&&h[e].getIsPending()&&!t.keepDuringLoading&&(l.value=null,f("unloaded")),h[e].then(s=>{l.value=s,$(()=>{f("loaded",document.querySelector("svg"))})}).catch(s=>{l.value&&(l.value=void 0,f("unloaded")),delete h[e],f("error",s)})}function k(e){return H(new Promise((s,a)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),m.value=o,o.onload=()=>{if(o.status>=200&&o.status<400)try{let g=new DOMParser().parseFromString(o.responseText,"text/xml").getElementsByTagName("svg")[0];g?s(g):a(new Error('Loaded file is not valid SVG"'))}catch(g){a(g)}else a(new Error("Error loading SVG"))},o.onerror=a,o.send()}))}const q=()=>l.value?D("svg",{...A(l.value,p),innerHTML:B(l.value)}):null;function E(e,s){const a=e.getElementsByTagName("title");if(a.length)a[0].textContent=s;else{const o=document.createElementNS("http://www.w3.org/2000/svg","title");o.textContent=s,e.insertBefore(o,e.firstChild)}}function w(e,s,a=""){const o=["id","href","xlink:href","xlink:role","xlink:arcrole"],g=["href","xlink:href"],I=(c,v)=>g.includes(c)&&(v?!v.includes("#"):!1);return[...e.children].forEach(c=>{var v;if((v=c.attributes)!=null&&v.length){const b=Object.values(c.attributes).map(d=>{const i=/url\((.*?)\)/.exec(d.value);return i!=null&&i[1]&&(d.value=d.value.replace(i[0],`url(${a}${i[1]}_${s})`)),d});o.forEach(d=>{const i=b.find(T=>T.name===d);i&&!I(d,i.value)&&(i.value=`${i.value}_${s}`)})}return c.children.length?w(c,s,a):c}),e}return(e,s)=>(C(),N(q))}});export{j as F};
@@ -0,0 +1,5 @@
1
+ import{i as z,y as ot,B as Ve,h as W,s as st,b as it,k as N,a3 as qe,a5 as le,r as ct,w as at,n as lt}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";/*!
2
+ * vue-router v4.5.1
3
+ * (c) 2025 Eduardo San Martin Morote
4
+ * @license MIT
5
+ */const q=typeof document<"u";function Ge(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ut(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ge(e.default)}const P=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=T(o)?o.map(e):e(o)}return n}const F=()=>{},T=Array.isArray,Ke=/#/g,ft=/&/g,ht=/\//g,dt=/=/g,pt=/\?/g,Ue=/\+/g,mt=/%5B/g,gt=/%5D/g,De=/%5E/g,vt=/%60/g,Qe=/%7B/g,yt=/%7C/g,We=/%7D/g,Rt=/%20/g;function ge(e){return encodeURI(""+e).replace(yt,"|").replace(mt,"[").replace(gt,"]")}function Et(e){return ge(e).replace(Qe,"{").replace(We,"}").replace(De,"^")}function de(e){return ge(e).replace(Ue,"%2B").replace(Rt,"+").replace(Ke,"%23").replace(ft,"%26").replace(vt,"`").replace(Qe,"{").replace(We,"}").replace(De,"^")}function wt(e){return de(e).replace(dt,"%3D")}function Pt(e){return ge(e).replace(Ke,"%23").replace(pt,"%3F")}function St(e){return e==null?"":Pt(e).replace(ht,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const bt=/\/$/,kt=e=>e.replace(bt,"");function fe(e,t,n="/"){let r,o={},a="",d="";const g=t.indexOf("#");let i=t.indexOf("?");return g<i&&g>=0&&(i=-1),i>-1&&(r=t.slice(0,i),a=t.slice(i+1,g>-1?g:t.length),o=e(a)),g>-1&&(r=r||t.slice(0,g),d=t.slice(g,t.length)),r=Ot(r??t,n),{fullPath:r+(a&&"?")+a+d,path:r,query:o,hash:X(d)}}function Ct(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function be(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function At(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&G(t.matched[r],n.matched[o])&&Fe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function G(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Fe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_t(e[n],t[n]))return!1;return!0}function _t(e,t){return T(e)?ke(e,t):T(t)?ke(t,e):e===t}function ke(e,t){return T(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Ot(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,d,g;for(d=0;d<r.length;d++)if(g=r[d],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(d).join("/")}const B={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Z;(function(e){e.pop="pop",e.push="push"})(Z||(Z={}));var Y;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y||(Y={}));function xt(e){if(!e)if(q){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),kt(e)}const Mt=/^[^#]+#/;function It(e,t){return e.replace(Mt,"#")+t}function Tt(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const te=()=>({left:window.scrollX,top:window.scrollY});function Nt(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Tt(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ce(e,t){return(history.state?history.state.position-t:-1)+e}const pe=new Map;function Lt(e,t){pe.set(e,t)}function $t(e){const t=pe.get(e);return pe.delete(e),t}let Bt=()=>location.protocol+"//"+location.host;function Ye(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let g=o.includes(e.slice(a))?e.slice(a).length:1,i=o.slice(g);return i[0]!=="/"&&(i="/"+i),be(i,"")}return be(n,e)+r+o}function jt(e,t,n,r){let o=[],a=[],d=null;const g=({state:l})=>{const u=Ye(e,location),w=n.value,S=t.value;let C=0;if(l){if(n.value=u,t.value=l,d&&d===w){d=null;return}C=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,w,{delta:C,type:Z.pop,direction:C?C>0?Y.forward:Y.back:Y.unknown})})};function i(){d=n.value}function f(l){o.push(l);const u=()=>{const w=o.indexOf(l);w>-1&&o.splice(w,1)};return a.push(u),u}function h(){const{history:l}=window;l.state&&l.replaceState(P({},l.state,{scroll:te()}),"")}function c(){for(const l of a)l();a=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:i,listen:f,destroy:c}}function Ae(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?te():null}}function Ht(e){const{history:t,location:n}=window,r={value:Ye(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(i,f,h){const c=e.indexOf("#"),l=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+i:Bt()+e+i;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function d(i,f){const h=P({},t.state,Ae(o.value.back,i,o.value.forward,!0),f,{position:o.value.position});a(i,h,!0),r.value=i}function g(i,f){const h=P({},o.value,t.state,{forward:i,scroll:te()});a(h.current,h,!0);const c=P({},Ae(r.value,i,null),{position:h.position+1},f);a(i,c,!1),r.value=i}return{location:r,state:o,push:g,replace:d}}function dn(e){e=xt(e);const t=Ht(e),n=jt(e,t.state,t.location,t.replace);function r(a,d=!0){d||n.pauseListeners(),history.go(a)}const o=P({location:"",base:e,go:r,createHref:It.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function zt(e){return typeof e=="string"||e&&typeof e=="object"}function Xe(e){return typeof e=="string"||typeof e=="symbol"}const Ze=Symbol("");var _e;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_e||(_e={}));function K(e,t){return P(new Error,{type:e,[Ze]:!0},t)}function L(e,t){return e instanceof Error&&Ze in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Vt={sensitive:!1,strict:!1,start:!0,end:!0},qt=/[.+*?^${}()[\]/\\]/g;function Gt(e,t){const n=P({},Vt,t),r=[];let o=n.start?"^":"";const a=[];for(const f of e){const h=f.length?[]:[90];n.strict&&!f.length&&(o+="/");for(let c=0;c<f.length;c++){const l=f[c];let u=40+(n.sensitive?.25:0);if(l.type===0)c||(o+="/"),o+=l.value.replace(qt,"\\$&"),u+=40;else if(l.type===1){const{value:w,repeatable:S,optional:C,regexp:A}=l;a.push({name:w,repeatable:S,optional:C});const E=A||Oe;if(E!==Oe){u+=10;try{new RegExp(`(${E})`)}catch(I){throw new Error(`Invalid custom RegExp for param "${w}" (${E}): `+I.message)}}let b=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;c||(b=C&&f.length<2?`(?:/${b})`:"/"+b),C&&(b+="?"),o+=b,u+=20,C&&(u+=-8),S&&(u+=-20),E===".*"&&(u+=-50)}h.push(u)}r.push(h)}if(n.strict&&n.end){const f=r.length-1;r[f][r[f].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const d=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(d),c={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",w=a[l-1];c[w.name]=u&&w.repeatable?u.split("/"):u}return c}function i(f){let h="",c=!1;for(const l of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:w,repeatable:S,optional:C}=u,A=w in f?f[w]:"";if(T(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=T(A)?A.join("/"):A;if(!E)if(C)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:d,score:r,keys:a,parse:g,stringify:i}}function Kt(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Je(e,t){let n=0;const r=e.score,o=t.score;for(;n<r.length&&n<o.length;){const a=Kt(r[n],o[n]);if(a)return a;n++}if(Math.abs(o.length-r.length)===1){if(xe(r))return 1;if(xe(o))return-1}return o.length-r.length}function xe(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Ut={type:0,value:""},Dt=/[a-zA-Z0-9_]/;function Qt(e){if(!e)return[[]];if(e==="/")return[[Ut]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(u){throw new Error(`ERR (${n})/"${f}": ${u}`)}let n=0,r=n;const o=[];let a;function d(){a&&o.push(a),a=[]}let g=0,i,f="",h="";function c(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=i}for(;g<e.length;){if(i=e[g++],i==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:i==="/"?(f&&c(),d()):i===":"?(c(),n=1):l();break;case 4:l(),n=r;break;case 1:i==="("?n=2:Dt.test(i)?l():(c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--);break;case 2:i===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+i:n=3:h+=i;break;case 3:c(),n=0,i!=="*"&&i!=="?"&&i!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),c(),d(),o}function Wt(e,t,n){const r=Gt(Qt(e.path),n),o=P(r,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ft(e,t){const n=[],r=new Map;t=Ne({strict:!1,end:!0,sensitive:!1},t);function o(c){return r.get(c)}function a(c,l,u){const w=!u,S=Ie(c);S.aliasOf=u&&u.record;const C=Ne(t,c),A=[S];if("alias"in c){const I=typeof c.alias=="string"?[c.alias]:c.alias;for(const H of I)A.push(Ie(P({},S,{components:u?u.record.components:S.components,path:H,aliasOf:u?u.record:S})))}let E,b;for(const I of A){const{path:H}=I;if(l&&H[0]!=="/"){const $=l.record.path,M=$[$.length-1]==="/"?"":"/";I.path=l.record.path+(H&&M+H)}if(E=Wt(I,l,C),u?u.alias.push(E):(b=b||E,b!==E&&b.alias.push(E),w&&c.name&&!Te(E)&&d(c.name)),et(E)&&i(E),S.children){const $=S.children;for(let M=0;M<$.length;M++)a($[M],E,u&&u.children[M])}u=u||E}return b?()=>{d(b)}:F}function d(c){if(Xe(c)){const l=r.get(c);l&&(r.delete(c),n.splice(n.indexOf(l),1),l.children.forEach(d),l.alias.forEach(d))}else{const l=n.indexOf(c);l>-1&&(n.splice(l,1),c.record.name&&r.delete(c.record.name),c.children.forEach(d),c.alias.forEach(d))}}function g(){return n}function i(c){const l=Zt(c,n);n.splice(l,0,c),c.record.name&&!Te(c)&&r.set(c.record.name,c)}function f(c,l){let u,w={},S,C;if("name"in c&&c.name){if(u=r.get(c.name),!u)throw K(1,{location:c});C=u.record.name,w=P(Me(l.params,u.keys.filter(b=>!b.optional).concat(u.parent?u.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),c.params&&Me(c.params,u.keys.map(b=>b.name))),S=u.stringify(w)}else if(c.path!=null)S=c.path,u=n.find(b=>b.re.test(S)),u&&(w=u.parse(S),C=u.record.name);else{if(u=l.name?r.get(l.name):n.find(b=>b.re.test(l.path)),!u)throw K(1,{location:c,currentLocation:l});C=u.record.name,w=P({},l.params,c.params),S=u.stringify(w)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:C,path:S,params:w,matched:A,meta:Xt(A)}}e.forEach(c=>a(c));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:d,clearRoutes:h,getRoutes:g,getRecordMatcher:o}}function Me(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ie(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yt(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Te(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xt(e){return e.reduce((t,n)=>P(t,n.meta),{})}function Ne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Zt(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Je(e,t[a])<0?r=a:n=a+1}const o=Jt(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function Jt(e){let t=e;for(;t=t.parent;)if(et(t)&&Je(e,t)===0)return t}function et({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function en(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<r.length;++o){const a=r[o].replace(Ue," "),d=a.indexOf("="),g=X(d<0?a:a.slice(0,d)),i=d<0?null:X(a.slice(d+1));if(g in t){let f=t[g];T(f)||(f=t[g]=[f]),f.push(i)}else t[g]=i}return t}function Le(e){let t="";for(let n in e){const r=e[n];if(n=wt(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(T(r)?r.map(a=>a&&de(a)):[r&&de(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function tn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=T(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const nn=Symbol(""),$e=Symbol(""),ne=Symbol(""),ve=Symbol(""),me=Symbol("");function Q(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function j(e,t,n,r,o,a=d=>d()){const d=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,i)=>{const f=l=>{l===!1?i(K(4,{from:n,to:t})):l instanceof Error?i(l):zt(l)?i(K(2,{from:t,to:l})):(d&&r.enterCallbacks[o]===d&&typeof l=="function"&&d.push(l),g())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let c=Promise.resolve(h);e.length<3&&(c=c.then(f)),c.catch(l=>i(l))})}function he(e,t,n,r,o=a=>a()){const a=[];for(const d of e)for(const g in d.components){let i=d.components[g];if(!(t!=="beforeRouteEnter"&&!d.instances[g]))if(Ge(i)){const h=(i.__vccOpts||i)[t];h&&a.push(j(h,n,r,d,g,o))}else{let f=i();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${g}" at "${d.path}"`);const c=ut(h)?h.default:h;d.mods[g]=h,d.components[g]=c;const u=(c.__vccOpts||c)[t];return u&&j(u,n,r,d,g,o)()}))}}return a}function Be(e){const t=z(ne),n=z(ve),r=N(()=>{const i=W(e.to);return t.resolve(i)}),o=N(()=>{const{matched:i}=r.value,{length:f}=i,h=i[f-1],c=n.matched;if(!h||!c.length)return-1;const l=c.findIndex(G.bind(null,h));if(l>-1)return l;const u=je(i[f-2]);return f>1&&je(h)===u&&c[c.length-1].path!==u?c.findIndex(G.bind(null,i[f-2])):l}),a=N(()=>o.value>-1&&an(n.params,r.value.params)),d=N(()=>o.value>-1&&o.value===n.matched.length-1&&Fe(n.params,r.value.params));function g(i={}){if(cn(i)){const f=t[W(e.replace)?"replace":"push"](W(e.to)).catch(F);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>f),f}return Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:d,navigate:g}}function rn(e){return e.length===1?e[0]:e}const on=Ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Be,setup(e,{slots:t}){const n=it(Be(e)),{options:r}=z(ne),o=N(()=>({[He(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[He(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&rn(t.default(n));return e.custom?a:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),sn=on;function cn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function an(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!T(o)||o.length!==r.length||r.some((a,d)=>a!==o[d]))return!1}return!0}function je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const He=(e,t,n)=>e??t??n,ln=Ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=z(me),o=N(()=>e.route||r.value),a=z($e,0),d=N(()=>{let f=W(a);const{matched:h}=o.value;let c;for(;(c=h[f])&&!c.components;)f++;return f}),g=N(()=>o.value.matched[d.value]);le($e,N(()=>d.value+1)),le(nn,g),le(me,o);const i=ct();return at(()=>[i.value,g.value,e.name],([f,h,c],[l,u,w])=>{h&&(h.instances[c]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!G(h,u)||!l)&&(h.enterCallbacks[c]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,c=g.value,l=c&&c.components[h];if(!l)return ze(n.default,{Component:l,route:f});const u=c.props[h],w=u?u===!0?f.params:typeof u=="function"?u(f):u:null,C=qe(l,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(c.instances[h]=null)},ref:i}));return ze(n.default,{Component:C,route:f})||C}}});function ze(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const un=ln;function pn(e){const t=Ft(e.routes,e),n=e.parseQuery||en,r=e.stringifyQuery||Le,o=e.history,a=Q(),d=Q(),g=Q(),i=ot(B);let f=B;q&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ue.bind(null,s=>""+s),c=ue.bind(null,St),l=ue.bind(null,X);function u(s,m){let p,v;return Xe(s)?(p=t.getRecordMatcher(s),v=m):v=s,t.addRoute(v,p)}function w(s){const m=t.getRecordMatcher(s);m&&t.removeRoute(m)}function S(){return t.getRoutes().map(s=>s.record)}function C(s){return!!t.getRecordMatcher(s)}function A(s,m){if(m=P({},m||i.value),typeof s=="string"){const y=fe(n,s,m.path),O=t.resolve({path:y.path},m),D=o.createHref(y.fullPath);return P(y,O,{params:l(O.params),hash:X(y.hash),redirectedFrom:void 0,href:D})}let p;if(s.path!=null)p=P({},s,{path:fe(n,s.path,m.path).path});else{const y=P({},s.params);for(const O in y)y[O]==null&&delete y[O];p=P({},s,{params:c(y)}),m.params=c(m.params)}const v=t.resolve(p,m),k=s.hash||"";v.params=h(l(v.params));const _=Ct(r,P({},s,{hash:Et(k),path:v.path})),R=o.createHref(_);return P({fullPath:_,hash:k,query:r===Le?tn(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?fe(n,s,i.value.path):P({},s)}function b(s,m){if(f!==s)return K(8,{from:m,to:s})}function I(s){return M(s)}function H(s){return I(P(E(s),{replace:!0}))}function $(s){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:p}=m;let v=typeof p=="function"?p(s):p;return typeof v=="string"&&(v=v.includes("?")||v.includes("#")?v=E(v):{path:v},v.params={}),P({query:s.query,hash:s.hash,params:v.path!=null?{}:s.params},v)}}function M(s,m){const p=f=A(s),v=i.value,k=s.state,_=s.force,R=s.replace===!0,y=$(p);if(y)return M(P(E(y),{state:typeof y=="object"?P({},k,y.state):k,force:_,replace:R}),m||p);const O=p;O.redirectedFrom=m;let D;return!_&&At(r,v,p)&&(D=K(16,{to:O,from:v}),Pe(v,v,!0,!1)),(D?Promise.resolve(D):ye(O,v)).catch(x=>L(x)?L(x,2)?x:ie(x):se(x,O,v)).then(x=>{if(x){if(L(x,2))return M(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},k,x.to.state):k,force:_}),m||O)}else x=Ee(O,v,!0,R,k);return Re(O,v,x),x})}function tt(s,m){const p=b(s,m);return p?Promise.reject(p):Promise.resolve()}function re(s){const m=ee.values().next().value;return m&&typeof m.runWithContext=="function"?m.runWithContext(s):s()}function ye(s,m){let p;const[v,k,_]=fn(s,m);p=he(v.reverse(),"beforeRouteLeave",s,m);for(const y of v)y.leaveGuards.forEach(O=>{p.push(j(O,s,m))});const R=tt.bind(null,s,m);return p.push(R),V(p).then(()=>{p=[];for(const y of a.list())p.push(j(y,s,m));return p.push(R),V(p)}).then(()=>{p=he(k,"beforeRouteUpdate",s,m);for(const y of k)y.updateGuards.forEach(O=>{p.push(j(O,s,m))});return p.push(R),V(p)}).then(()=>{p=[];for(const y of _)if(y.beforeEnter)if(T(y.beforeEnter))for(const O of y.beforeEnter)p.push(j(O,s,m));else p.push(j(y.beforeEnter,s,m));return p.push(R),V(p)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),p=he(_,"beforeRouteEnter",s,m,re),p.push(R),V(p))).then(()=>{p=[];for(const y of d.list())p.push(j(y,s,m));return p.push(R),V(p)}).catch(y=>L(y,8)?y:Promise.reject(y))}function Re(s,m,p){g.list().forEach(v=>re(()=>v(s,m,p)))}function Ee(s,m,p,v,k){const _=b(s,m);if(_)return _;const R=m===B,y=q?history.state:{};p&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},k)):o.push(s.fullPath,k)),i.value=s,Pe(s,m,p,R),ie()}let U;function nt(){U||(U=o.listen((s,m,p)=>{if(!Se.listening)return;const v=A(s),k=$(v);if(k){M(P(k,{replace:!0,force:!0}),v).catch(F);return}f=v;const _=i.value;q&&Lt(Ce(_.fullPath,p.delta),te()),ye(v,_).catch(R=>L(R,12)?R:L(R,2)?(M(P(E(R.to),{force:!0}),v).then(y=>{L(y,20)&&!p.delta&&p.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(p.delta&&o.go(-p.delta,!1),se(R,v,_))).then(R=>{R=R||Ee(v,_,!1),R&&(p.delta&&!L(R,8)?o.go(-p.delta,!1):p.type===Z.pop&&L(R,20)&&o.go(-1,!1)),Re(v,_,R)}).catch(F)}))}let oe=Q(),we=Q(),J;function se(s,m,p){ie(s);const v=we.list();return v.length?v.forEach(k=>k(s,m,p)):console.error(s),Promise.reject(s)}function rt(){return J&&i.value!==B?Promise.resolve():new Promise((s,m)=>{oe.add([s,m])})}function ie(s){return J||(J=!s,nt(),oe.list().forEach(([m,p])=>s?p(s):m()),oe.reset()),s}function Pe(s,m,p,v){const{scrollBehavior:k}=e;if(!q||!k)return Promise.resolve();const _=!p&&$t(Ce(s.fullPath,0))||(v||!p)&&history.state&&history.state.scroll||null;return lt().then(()=>k(s,m,_)).then(R=>R&&Nt(R)).catch(R=>se(R,s,m))}const ce=s=>o.go(s);let ae;const ee=new Set,Se={currentRoute:i,listening:!0,addRoute:u,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:S,resolve:A,options:e,push:I,replace:H,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:d.add,afterEach:g.add,onError:we.add,isReady:rt,install(s){const m=this;s.component("RouterLink",sn),s.component("RouterView",un),s.config.globalProperties.$router=m,Object.defineProperty(s.config.globalProperties,"$route",{enumerable:!0,get:()=>W(i)}),q&&!ae&&i.value===B&&(ae=!0,I(o.location).catch(k=>{}));const p={};for(const k in B)Object.defineProperty(p,k,{get:()=>i.value[k],enumerable:!0});s.provide(ne,m),s.provide(ve,st(p)),s.provide(me,i);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=B,U&&U(),U=null,i.value=B,ae=!1,J=!1),v()}}};function V(s){return s.reduce((m,p)=>m.then(()=>re(p)),Promise.resolve())}return Se}function fn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let d=0;d<a;d++){const g=t.matched[d];g&&(e.matched.find(f=>G(f,g))?r.push(g):n.push(g));const i=e.matched[d];i&&(t.matched.find(f=>G(f,i))||o.push(i))}return[n,r,o]}function mn(){return z(ne)}function gn(e){return z(ve)}export{gn as a,dn as b,pn as c,mn as u};
@@ -0,0 +1 @@
1
+ import{B as Z,r as w,k as b,c as E,w as _,o as S,d as g,G as B,M as D,O as Y,h,P as X,e as p,a1 as y,ab as C}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";const j={class:"controll"},L={class:"controll__item controll__item--circle"},M={class:"controll__pan controll__item--circle__inner"},T={class:"controll__pan__up controll__item--circle__inner__up"},O={class:"controll__pan__right controll__item--circle__inner__right"},H={class:"controll__pan__down controll__item--circle__inner__down"},$={class:"controll__pan__left controll__item--circle__inner__left"},W={class:"controll__home controll__item controll__item--list-item"},I={class:"controll__zoom-in controll__item controll__item--list-item"},U={class:"controll__zoom-in controll__item controll__item--list-item"},V=Z({__name:"ControlButtons",emits:["buttondown","buttonup"],setup(e,{emit:l}){const u=l;function r(a,o){u("buttondown",{key:o})}function t(a,o){u("buttonup",{key:o})}return(a,o)=>(g(),E("div",{id:"v-zoomable-control-btns",class:"controll__buttons",onDblclick:o[31]||(o[31]=y(()=>{},["stop"])),onMousedown:o[32]||(o[32]=y(()=>{},["stop"]))},[p("ul",j,[p("li",L,[p("ul",M,[p("li",T,[p("a",{onPointerdown:o[0]||(o[0]=n=>r(n,"pan-up")),onPointerup:o[1]||(o[1]=n=>t(n,"pan-up")),onPointercancel:o[2]||(o[2]=n=>t(n,"pan-up")),onPointerleave:o[3]||(o[3]=n=>t(n,"pan-up")),onContextmenu:o[4]||(o[4]=y(()=>{},["prevent"]))},o[33]||(o[33]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-up"},[p("polyline",{points:"18 15 12 9 6 15"})],-1)]),32)]),p("li",O,[p("a",{onPointerdown:o[5]||(o[5]=n=>r(n,"pan-right")),onPointerup:o[6]||(o[6]=n=>t(n,"pan-right")),onPointercancel:o[7]||(o[7]=n=>t(n,"pan-right")),onPointerleave:o[8]||(o[8]=n=>t(n,"pan-right")),onContextmenu:o[9]||(o[9]=y(()=>{},["prevent"]))},o[34]||(o[34]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-right"},[p("polyline",{points:"9 18 15 12 9 6"})],-1)]),32)]),p("li",H,[p("a",{onPointerdown:o[10]||(o[10]=n=>r(n,"pan-down")),onPointerup:o[11]||(o[11]=n=>t(n,"pan-down")),onPointercancel:o[12]||(o[12]=n=>t(n,"pan-down")),onPointerleave:o[13]||(o[13]=n=>t(n,"pan-down")),onContextmenu:o[14]||(o[14]=y(()=>{},["prevent"]))},o[35]||(o[35]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-down"},[p("polyline",{points:"6 9 12 15 18 9"})],-1)]),32)]),p("li",$,[p("a",{onPointerdown:o[15]||(o[15]=n=>r(n,"pan-left")),onPointercancel:o[16]||(o[16]=n=>t(n,"pan-left")),onPointerup:o[17]||(o[17]=n=>t(n,"pan-left")),onPointerleave:o[18]||(o[18]=n=>t(n,"pan-left")),onContextmenu:o[19]||(o[19]=y(()=>{},["prevent"]))},o[36]||(o[36]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-chevron-left"},[p("polyline",{points:"15 18 9 12 15 6"})],-1)]),32)])])]),p("li",W,[p("a",{onPointerdown:o[20]||(o[20]=n=>r(n,"home"))},o[37]||(o[37]=[C('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minimize-2" data-v-3ba139de><polyline points="4 14 10 14 10 20" data-v-3ba139de></polyline><polyline points="20 10 14 10 14 4" data-v-3ba139de></polyline><line x1="14" y1="10" x2="21" y2="3" data-v-3ba139de></line><line x1="3" y1="21" x2="10" y2="14" data-v-3ba139de></line></svg>',1)]),32)]),p("li",I,[p("a",{onPointerdown:o[21]||(o[21]=n=>r(n,"zoom-in")),onPointerup:o[22]||(o[22]=n=>t(n,"zoom-in")),onPointercancel:o[23]||(o[23]=n=>t(n,"zoom-in")),onPointerleave:o[24]||(o[24]=n=>t(n,"zoom-in")),onContextmenu:o[25]||(o[25]=y(()=>{},["prevent"]))},o[38]||(o[38]=[C('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-zoom-in" data-v-3ba139de><circle cx="11" cy="11" r="8" data-v-3ba139de></circle><line x1="21" y1="21" x2="16.65" y2="16.65" data-v-3ba139de></line><line x1="11" y1="8" x2="11" y2="14" data-v-3ba139de></line><line x1="8" y1="11" x2="14" y2="11" data-v-3ba139de></line></svg>',1)]),32)]),p("li",U,[p("a",{onPointerdown:o[26]||(o[26]=n=>r(n,"zoom-out")),onPointerup:o[27]||(o[27]=n=>t(n,"zoom-out")),onPointercancel:o[28]||(o[28]=n=>t(n,"zoom-out")),onPointerleave:o[29]||(o[29]=n=>t(n,"zoom-out")),onContextmenu:o[30]||(o[30]=y(()=>{},["prevent"]))},o[39]||(o[39]=[p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"feather feather-zoom-out"},[p("circle",{cx:"11",cy:"11",r:"8"}),p("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),p("line",{x1:"8",y1:"11",x2:"14",y2:"11"})],-1)]),32)])])],32))}}),N=(e,l)=>{const u=e.__vccOpts||e;for(const[r,t]of l)u[r]=t;return u},q=N(V,[["__scopeId","data-v-3ba139de"]]);function G(){let e=0;function l(r,t,a,o){r(),e=window.setTimeout(()=>{e=window.setInterval(()=>{t()},o)},a)}function u(){e&&(window.clearInterval(e),e=0)}return{startHold:l,clearHold:u}}const x="control-btn";function R({props:e,transform:l}){let u=G();function r(c){u.startHold(()=>{l.changeZoom(c*e.buttonZoomStep*.5,x)},()=>{l.changeZoom(c*e.buttonZoomStep*.5,x)},300,50)}function t(c){if(!e.disabled)switch(c.key){case"home":n();break;case"zoom-in":r(1);break;case"zoom-out":r(-1);break;case"pan-left":o({x:1,y:0});break;case"pan-right":o({x:-1,y:0});break;case"pan-up":o({x:0,y:1});break;case"pan-down":o({x:0,y:-1});break}}function a(c){u.clearHold()}function o(c){u.startHold(()=>{l.changePan(c.x*e.buttonPanStep,c.y*e.buttonPanStep,x)},()=>{l.changePan(c.x*e.buttonPanStep,c.y*e.buttonPanStep,x)},300,50)}function n(){l.goHome(x)}return{onButtonDown:t,onButtonUp:a}}function A({props:e,transform:l}){let u={x:0,y:0};function r(o){e.disabled||o.pointerType!=="mouse"||!e.mouseEnabled||(u={x:o.clientX,y:o.clientY},document.addEventListener("pointermove",a,{passive:!1}),document.addEventListener("pointerup",function(n){document.removeEventListener("pointermove",a)}),document.addEventListener("pointerleave",function(n){document.removeEventListener("pointermove",a)}),document.addEventListener("pointercancel",function(n){document.removeEventListener("pointermove",a)}))}function t(o){if(e.disabled||!e.dblClickEnabled||!e.zoomEnabled)return;const n={x:o.clientX,y:o.clientY};l.changeZoom(e.dblClickZoomStep,"dblClick",n)}function a(o){if(e.disabled||!e.panEnabled||o.pointerType!=="mouse"||!e.mouseEnabled)return;let n={x:o.clientX-u.x,y:o.clientY-u.y};l.changePan(n.x,n.y,o.pointerType),u={x:o.clientX,y:o.clientY},o.preventDefault()}return{onPointerDown:r,onDblClick:t}}function F({props:e,transform:l}){let u=w({}),r=w(0),t=null;function a(c){if(e.disabled||!e.touchEnabled||!e.panEnabled&&!e.zoomEnabled||(c.preventDefault(),c.touches.length<1))return;const i=c.touches.item(0);if(!i)return;let d=0,s={x:i.clientX,y:i.clientY};if(c.touches.length===2){const v=c.touches.item(1);let f=o({x:i?i.clientX:0,y:i?i.clientY:0},{x:v?v.clientX:0,y:v?v.clientY:0});r.value<=0?(r.value=f.distance,d=0):(d=f.distance/r.value*l.zoom.value-l.zoom.value,r.value=f.distance),s=f.center}if(e.zoomEnabled&&l.changeZoom(d,"touch",s),t===null){t={x:s.x,y:s.y};return}const m={x:s.x-t.x,y:s.y-t.y};e.panEnabled&&l.changePan(m.x,m.y,"touch"),t={x:s.x,y:s.y}}function o(c,i){let d=Math.sqrt(Math.pow(c.x-i.x,2)+Math.pow(c.y-i.y,2)),s={x:(c.x+i.x)/2,y:(c.y+i.y)/2};return{distance:d,center:s}}function n(c){e.disabled||!e.touchEnabled||(t=null,document.addEventListener("touchmove",a,{passive:!1}),document.addEventListener("touchend",function(i){c.touches.length<2&&(r.value=-1),document.removeEventListener("touchmove",a)}))}return{onTouchStart:n,touchCount:b(()=>Object.keys(u.value).length)}}function J({props:e,onChange:l,container:u,target:r}){const t=w({x:0,y:0}),a=w(0);S(()=>{a.value=e.minZoom,t.value={x:e.pan!=null?e.pan.x:e.initialPanX,y:e.pan!=null?e.pan.y:e.initialPanY},e.zoom?a.value=e.zoom:e.initialZoom>=e.minZoom&&e.initialZoom<=e.maxZoom&&(a.value=e.initialZoom)}),_(()=>e.zoom,()=>{isNaN(e.zoom)||(a.value=e.zoom)}),_(()=>e.pan,()=>{e.pan&&(t.value.x=e.pan.x,t.value.y=e.pan.y)},{deep:!0});function o(i,d,s){if(isNaN(i)||i===0)return;const m=a.value;let v=a.value+i;if(v>e.maxZoom?v=e.maxZoom:v<e.minZoom&&(v=e.minZoom),Math.abs(m-v)<1e-4)return;if(a.value=v,e.zoomOrigin==="center"&&(s=k(u.value)),e.zoomOrigin!=="content-center"){s||(s=k(u.value));const P=K(u.value,t.value),z={x:(v-m)*((P.x-s.x)/m),y:(v-m)*((P.y-s.y)/m)};n(z.x,z.y,"zoom")}let f={zoom:v,delta:{zoom:i,pan:{x:0,y:0}},pan:{x:t.value.x,y:t.value.y,deltaX:0,deltaY:0},type:d};l("zoom",f)}function n(i,d,s){isNaN(i)&&(i=0),isNaN(d)&&(d=0),t.value={x:t.value.x+i,y:t.value.y+d};let m={zoom:a.value,delta:{zoom:0,pan:{x:i,y:d}},pan:{x:t.value.x,y:t.value.y,deltaX:i,deltaY:d},type:s};l("panned",m)}function c(i){a.value=e.initialZoom,l("zoom",{zoom:a.value,pan:{x:t.value.x,y:t.value.y,deltaX:0,deltaY:0},type:i});let d={x:e.initialPanX-t.value.x,y:e.initialPanY-t.value.y};t.value={x:e.initialPanX,y:e.initialPanY},l("panned",{zoom:a.value,pan:{x:t.value.x,y:t.value.y,deltaX:d.x,deltaY:d.y},type:i})}return{zoom:b(()=>a.value),pan:b(()=>t.value),setZoom:i=>{a.value=i},setPan:i=>{t.value=i},changeZoom:o,changePan:n,goHome:c}}function k(e){const l=e.getBoundingClientRect();return{x:l.left+l.width/2,y:l.top+l.height/2}}function K(e,l){const u=k(e);return{x:u.x+l.x,y:u.y+l.y}}function Q({props:e,transform:l}){function u(r){if(e.disabled||!e.wheelEnabled||!e.zoomEnabled)return;const t=e.wheelZoomStep*-1*r.deltaY/Math.abs(r.deltaY),a={x:r.clientX,y:r.clientY};l.changeZoom(t,"wheel",a),r.preventDefault()}return{onWheel:u}}function oo({props:e,onChange:l,container:u,target:r}){const t=J({props:e,onChange:l,container:u,target:r}),a=F({props:e,transform:t}),o=Q({props:e,transform:t}),n=A({props:e,transform:t}),c=R({props:e,transform:t});return{zoom:t.zoom,pan:t.pan,setZoom:t.setZoom,setPan:t.setPan,onWheel:o.onWheel,onTouchStart:a.onTouchStart,onButtonUp:c.onButtonUp,onButtonDown:c.onButtonDown,onPointerDown:n.onPointerDown,onDblClick:n.onDblClick}}const eo=Z({__name:"VueZoomable",props:{zoom:{type:Number,default:null},pan:{type:Object,default:null},selector:{type:String,default:"* > *"},maxZoom:{type:Number,default:3},minZoom:{type:Number,default:.5},initialPanX:{type:Number,default:0},initialPanY:{type:Number,default:0},initialZoom:{type:Number,default:.5},dblClickZoomStep:{type:Number,default:.4},wheelZoomStep:{type:Number,default:.4},panEnabled:{type:Boolean,default:!0},zoomEnabled:{type:Boolean,default:!0},mouseEnabled:{type:Boolean,default:!0},touchEnabled:{type:Boolean,default:!0},dblClickEnabled:{type:Boolean,default:!0},wheelEnabled:{type:Boolean,default:!0},enableControlButton:{type:Boolean,default:!0},buttonPanStep:{type:Number,default:15},buttonZoomStep:{type:Number,default:.1},disabled:{type:Boolean,default:!1},zoomOrigin:{type:String,default:"pointer"}},emits:["panned","zoom","update:zoom","update:pan"],setup(e,{emit:l}){let u=l,r=e,t=w(),a=b(()=>{var d;return(d=t.value)==null?void 0:d.querySelector(r.selector)}),o=oo({props:r,onChange:n,container:t,target:a});function n(d,s){d==="zoom"?u("update:zoom",s.zoom):d==="panned"&&u("update:pan",s.pan),u(d,s)}let c=b(()=>`translate(${o.pan.value.x}px, ${o.pan.value.y}px) scale(${o.zoom.value})`);function i(){a.value&&(a.value.style.transform=c.value,a.value.style.transformOrigin="center center",a.value.style.transition="transform 0.07s ease-out",a.value.style.transformBox="fill-box")}return _(c,()=>{i()},{flush:"post"}),S(()=>{i()}),(d,s)=>(g(),E("div",{ref_key:"container",ref:t,class:X(d.$style.container),onDblclick:s[0]||(s[0]=(...m)=>h(o).onDblClick&&h(o).onDblClick(...m)),onPointerdown:s[1]||(s[1]=(...m)=>h(o).onPointerDown&&h(o).onPointerDown(...m)),onWheel:s[2]||(s[2]=(...m)=>h(o).onWheel&&h(o).onWheel(...m)),onTouchstart:s[3]||(s[3]=(...m)=>h(o).onTouchStart&&h(o).onTouchStart(...m))},[B(d.$slots,"default",{},void 0,!0),B(d.$slots,"buttons",{},()=>[h(r).enableControlButton?(g(),D(q,{key:0,onButtondown:h(o).onButtonDown,onButtonup:h(o).onButtonUp},null,8,["onButtondown","onButtonup"])):Y("",!0)],!0)],34))}}),to="_container_irdvc_2",no="_buttons_irdvc_11",ao={container:to,buttons:no},lo={$style:ao},io=N(eo,[["__cssModules",lo],["__scopeId","data-v-fce7d501"]]);export{io as m};
@@ -0,0 +1 @@
1
+ import{c as R}from"./dnd-core.T9OeW7mu.0.0.50-internal.0.js";import{i as E,a5 as x,B as j,a7 as N,f as U,h as o,k as l,C as f,r as F,b as V}from"./@vue.B5vqhCp2.0.0.50-internal.0.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.50-internal.0.js";import{e as P}from"./fast-deep-equal.Bpc9mIsj.0.0.50-internal.0.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){x(M,t)}function Y(){return E(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function B(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return B(t)||L(t,r)||z(t,r)||G()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function X(t){return"manager"in t&&t.manager}function J(t){if(X(t)){var r=t.manager;return[r,!1]}var e=K(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function K(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=j({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(J(r),2),a=i[0],u=i[1];u&&++S,N(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function Q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){Q(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function je(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function Ne(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),je(n,r),Ne(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Be(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ge(t,r){return Ye(t)||Be(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Ge(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Xe(){var t=d();return l(function(){return new te(o(t))})}function Je(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Ke(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Xe(),n=Je(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ke(n,r)]}export{rt as D,it as a,nt as u};