camera.ui3 0.0.34-alpha.6 → 0.0.35-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/CONTRIBUTING.md +1 -0
- package/LICENSE.md +22 -0
- package/README.md +1 -0
- package/dist/{server/bin/cameraui.d.ts → cameraui.d.ts} +24 -17
- package/dist/{server/bin/cameraui.js → cameraui.js} +195 -208
- package/dist/cameraui.js.map +1 -0
- package/dist/installer/base.js.map +1 -0
- package/dist/{server/bin/installer → installer}/darwin.d.ts +0 -8
- package/dist/{server/bin/installer → installer}/darwin.js +9 -49
- package/dist/installer/darwin.js.map +1 -0
- package/dist/{server/bin/installer → installer}/freebsd.js +3 -2
- package/dist/installer/freebsd.js.map +1 -0
- package/dist/{server/bin/installer → installer}/linux.d.ts +1 -1
- package/dist/{server/bin/installer → installer}/linux.js +9 -24
- package/dist/installer/linux.js.map +1 -0
- package/dist/{server/bin/installer → installer}/win32.js +4 -2
- package/dist/installer/win32.js.map +1 -0
- package/dist/{server/bin/logger.js → logger.js} +2 -2
- package/dist/logger.js.map +1 -0
- package/dist/manager.d.ts +26 -0
- package/dist/manager.js +203 -0
- package/dist/manager.js.map +1 -0
- package/nodemon.json +14 -0
- package/package.json +21 -89
- package/dist/interface/@babel.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@intlify.DXtFJcML.0.0.34-alpha.6.js +0 -15
- package/dist/interface/@mdi.C1UTQKuc.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@react-dnd.CcwRs9xb.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@socket.io.Dkula2eQ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@tanstack.COISQUaa.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@turf.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@vee-validate.vQEQxxhx.0.0.34-alpha.6.js +0 -5
- package/dist/interface/@vue.2olsU3zX.0.0.34-alpha.6.js +0 -17
- package/dist/interface/@vueform.CPzo51Ad.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@vueuse.D9NHhWYc.0.0.34-alpha.6.js +0 -1
- package/dist/interface/@xterm.DqCFPTCA.0.0.34-alpha.6.js +0 -66
- package/dist/interface/Account.C8tdLL9c.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Adminpanel.CCt65nrb.0.0.34-alpha.6.js +0 -2
- package/dist/interface/Appearance.HvJsFiT3.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Backup.CSkOoG27.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Camera.CpRZjMgc.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Cameras.DjwMkoT7.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Camview.o4nbp_Qw.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Config.CQCi3KNu.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Console.Dkyww3wB.0.0.34-alpha.6.js +0 -4
- package/dist/interface/FirstSteps.Bmr0_gA-.0.0.34-alpha.6.js +0 -1
- package/dist/interface/NewCamera.Bs1_J7Ad.0.0.34-alpha.6.js +0 -448
- package/dist/interface/Plugin.C8Vz5xoF.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Plugins.CZL0KQFh.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Recordings.B6pZqLF3.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Recordings.BEvZE5cV.0.0.34-alpha.6.js +0 -1
- package/dist/interface/Settings.C997IgdZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/System.DuQ37voG.0.0.34-alpha.6.js +0 -4
- package/dist/interface/User.DlMcGeNz.0.0.34-alpha.6.js +0 -1
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.xZXGs5pk.0.0.34-alpha.6.js +0 -2
- package/dist/interface/VConsole.DNiPpzW6.0.0.34-alpha.6.js +0 -1
- package/dist/interface/VPlayer.CUKkadJU.0.0.34-alpha.6.js +0 -4
- package/dist/interface/VPluginCard.B7M71ABH.0.0.34-alpha.6.js +0 -4
- package/dist/interface/ace-builds.DndaCQ18.0.0.34-alpha.6.js +0 -970
- package/dist/interface/apexcharts.6HWN1GNB.0.0.34-alpha.6.js +0 -795
- package/dist/interface/assets/@vueform.0.0.34-alpha.6.CroAHJs8.css +0 -1
- package/dist/interface/assets/@xterm.0.0.34-alpha.6.CFbL2ovg.css +0 -32
- package/dist/interface/assets/Account.0.0.34-alpha.6.J7oAjogS.css +0 -1
- package/dist/interface/assets/Adminpanel.0.0.34-alpha.6.a3t1v3MB.css +0 -1
- package/dist/interface/assets/Backup.0.0.34-alpha.6.CX0rT0QJ.css +0 -1
- package/dist/interface/assets/Camera.0.0.34-alpha.6.D1I-fW4q.css +0 -1
- package/dist/interface/assets/Cameras.0.0.34-alpha.6.Buf1Dgce.css +0 -1
- package/dist/interface/assets/Camview.0.0.34-alpha.6.B7Cja2ry.css +0 -1
- package/dist/interface/assets/Config.0.0.34-alpha.6.DNGo2krN.css +0 -1
- package/dist/interface/assets/Console.0.0.34-alpha.6.Bh8l9QnM.css +0 -1
- package/dist/interface/assets/FirstSteps.0.0.34-alpha.6.sPEcItZ6.css +0 -1
- package/dist/interface/assets/NewCamera.0.0.34-alpha.6.Cq8GzeJ7.css +0 -1
- package/dist/interface/assets/Plugin.0.0.34-alpha.6.DJbgaQc1.css +0 -1
- package/dist/interface/assets/Plugins.0.0.34-alpha.6.DXSoO9M1.css +0 -1
- package/dist/interface/assets/Settings.0.0.34-alpha.6.CVmui2kE.css +0 -1
- package/dist/interface/assets/User.0.0.34-alpha.6.BiGtIFqt.css +0 -1
- package/dist/interface/assets/VConsole.0.0.34-alpha.6.BCqKHpmJ.css +0 -1
- package/dist/interface/assets/VPlayer.0.0.34-alpha.6.DNtDNhfg.css +0 -1
- package/dist/interface/assets/VPluginCard.0.0.34-alpha.6.C8Lj6X-J.css +0 -1
- package/dist/interface/assets/highlight.0.0.34-alpha.6.Ch2EwETz.css +0 -1
- package/dist/interface/assets/logo-256.0.0.34-alpha.6.BCQk9H1-.png +0 -0
- package/dist/interface/assets/logo-512.0.0.34-alpha.6.DLKVOU2S.png +0 -0
- package/dist/interface/assets/logo.0.0.34-alpha.6.DmEiRk0z.png +0 -0
- package/dist/interface/assets/main.0.0.34-alpha.6.DNhh__S1.css +0 -1
- package/dist/interface/assets/mode-json.0.0.34-alpha.6.Br7xisR1.js +0 -275
- package/dist/interface/assets/mode-yaml.0.0.34-alpha.6.CIYL8U3d.js +0 -395
- package/dist/interface/assets/vue3-toastify.0.0.34-alpha.6.DHXAGmwn.css +0 -1
- package/dist/interface/assets/vuetify.0.0.34-alpha.6.CgGsw6iO.css +0 -5
- package/dist/interface/axios.C-n2IhIP.0.0.34-alpha.6.js +0 -6
- package/dist/interface/birpc.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/browserconfig.xml +0 -11
- package/dist/interface/compare-versions.DqEOhma6.0.0.34-alpha.6.js +0 -1
- package/dist/interface/dijkstrajs.D_NXgYpA.0.0.34-alpha.6.js +0 -1
- package/dist/interface/dnd-core.DjhjiPK9.0.0.34-alpha.6.js +0 -1
- package/dist/interface/draggabilly.CzAcRWAL.0.0.34-alpha.6.js +0 -6
- package/dist/interface/engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js +0 -1
- package/dist/interface/entities.C20TfXL6.0.0.34-alpha.6.js +0 -1
- package/dist/interface/ev-emitter.DdBIoR-C.0.0.34-alpha.6.js +0 -1
- package/dist/interface/fast-deep-equal.BPvnHGwn.0.0.34-alpha.6.js +0 -1
- package/dist/interface/fonts/Inter/Inter-Regular.ttf +0 -0
- package/dist/interface/get-size.D1dS-IaP.0.0.34-alpha.6.js +0 -5
- package/dist/interface/highlight.js.D0GppvQT.0.0.34-alpha.6.js +0 -2
- package/dist/interface/hookable.B8xFkYCm.0.0.34-alpha.6.js +0 -1
- package/dist/interface/index.html +0 -374
- package/dist/interface/linkify-it.BnwKCzGP.0.0.34-alpha.6.js +0 -1
- package/dist/interface/main.CjELdG9A.0.0.34-alpha.6.js +0 -5
- package/dist/interface/manifest.webmanifest +0 -1
- package/dist/interface/markdown-it.BmdsAkr5.0.0.34-alpha.6.js +0 -15
- package/dist/interface/mdurl.k9Sl0PQj.0.0.34-alpha.6.js +0 -2
- package/dist/interface/nprogress.CO0HPuzU.0.0.34-alpha.6.js +0 -2
- package/dist/interface/perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js +0 -1
- package/dist/interface/pinia.CBIup3aH.0.0.34-alpha.6.js +0 -5
- package/dist/interface/plugins.DkVCVMms.0.0.34-alpha.6.js +0 -1
- package/dist/interface/point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/punycode.js.Dj65hjkv.0.0.34-alpha.6.js +0 -1
- package/dist/interface/pwa/apple-splash-landscape-dark-1136x640.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1334x750.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-1792x828.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2048x1536.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2160x1620.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2208x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2224x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2388x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2436x1125.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2532x1170.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2556x1179.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2688x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2732x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2778x1284.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-dark-2796x1290.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1136x640.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1334x750.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-1792x828.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2048x1536.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2160x1620.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2208x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2224x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2388x1668.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2436x1125.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2532x1170.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2556x1179.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2688x1242.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2732x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2778x1284.png +0 -0
- package/dist/interface/pwa/apple-splash-landscape-light-2796x1290.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1125x2436.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1170x2532.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1179x2556.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1242x2208.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1242x2688.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1284x2778.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1290x2796.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1536x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1620x2160.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1668x2224.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-1668x2388.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-2048x2732.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-640x1136.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-750x1334.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-dark-828x1792.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1125x2436.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1170x2532.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1179x2556.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1242x2208.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1242x2688.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1284x2778.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1290x2796.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1536x2048.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1620x2160.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1668x2224.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-1668x2388.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-2048x2732.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-640x1136.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-750x1334.png +0 -0
- package/dist/interface/pwa/apple-splash-portrait-light-828x1792.png +0 -0
- package/dist/interface/pwa/apple-touch-icon-180x180.png +0 -0
- package/dist/interface/pwa/favicon-16.ico +0 -0
- package/dist/interface/pwa/favicon-32.ico +0 -0
- package/dist/interface/pwa/favicon-48.ico +0 -0
- package/dist/interface/pwa/favicon-64.ico +0 -0
- package/dist/interface/pwa/logo.svg +0 -1
- package/dist/interface/pwa/maskable-icon-1240x600.png +0 -0
- package/dist/interface/pwa/maskable-icon-512x512.png +0 -0
- package/dist/interface/pwa/maskable-icon-620x300.png +0 -0
- package/dist/interface/pwa/pwa-1024x1024.png +0 -0
- package/dist/interface/pwa/pwa-120x120.png +0 -0
- package/dist/interface/pwa/pwa-144x144.png +0 -0
- package/dist/interface/pwa/pwa-152x152.png +0 -0
- package/dist/interface/pwa/pwa-167x167.png +0 -0
- package/dist/interface/pwa/pwa-180x180.png +0 -0
- package/dist/interface/pwa/pwa-192x192.png +0 -0
- package/dist/interface/pwa/pwa-24x24.png +0 -0
- package/dist/interface/pwa/pwa-300x300.png +0 -0
- package/dist/interface/pwa/pwa-36x36.png +0 -0
- package/dist/interface/pwa/pwa-48x48.png +0 -0
- package/dist/interface/pwa/pwa-50x50.png +0 -0
- package/dist/interface/pwa/pwa-64x64.png +0 -0
- package/dist/interface/pwa/pwa-72x72.png +0 -0
- package/dist/interface/pwa/pwa-88x88.png +0 -0
- package/dist/interface/pwa/pwa-96x96.png +0 -0
- package/dist/interface/qrcode.BgXQ059Y.0.0.34-alpha.6.js +0 -8
- package/dist/interface/react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.6.js +0 -2
- package/dist/interface/react-dnd-touch-backend.CuSdTpqi.0.0.34-alpha.6.js +0 -1
- package/dist/interface/redux.CuxFRhX_.0.0.34-alpha.6.js +0 -1
- package/dist/interface/registerSW.js +0 -1
- package/dist/interface/robots.txt +0 -2
- package/dist/interface/rxjs.DKQuv6LI.0.0.34-alpha.6.js +0 -3
- package/dist/interface/socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js +0 -1
- package/dist/interface/socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js +0 -1
- package/dist/interface/sw.js +0 -1
- package/dist/interface/sweepline-intersections.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/system.DBHlJaL3.0.0.34-alpha.6.js +0 -1
- package/dist/interface/tslib.9k7AwCpt.0.0.34-alpha.6.js +0 -1
- package/dist/interface/types.Cz9TaZAP.0.0.34-alpha.6.js +0 -1
- package/dist/interface/uc.micro.kMc2yuuw.0.0.34-alpha.6.js +0 -1
- package/dist/interface/unidragger.bJ3WxeD3.0.0.34-alpha.6.js +0 -5
- package/dist/interface/utils.mAKpSMLY.0.0.34-alpha.6.js +0 -1
- package/dist/interface/uuid.DvF23Exx.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vee-validate.CghN0yPF.0.0.34-alpha.6.js +0 -5
- package/dist/interface/vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js +0 -5
- package/dist/interface/vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue-router.DbntwPAd.0.0.34-alpha.6.js +0 -5
- package/dist/interface/vue.l0sNRNKZ.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue3-apexcharts.Ep6IiXnK.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue3-dnd._duUsn6W.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js +0 -1
- package/dist/interface/vuetify.dlIDGkOi.0.0.34-alpha.6.js +0 -5
- package/dist/interface/workbox-3e911b1d.js +0 -1
- package/dist/interface/zod.DnW1_kUe.0.0.34-alpha.6.js +0 -1
- package/dist/server/bin/cameraui.js.map +0 -1
- package/dist/server/bin/installer/base.js.map +0 -1
- package/dist/server/bin/installer/darwin.js.map +0 -1
- package/dist/server/bin/installer/freebsd.js.map +0 -1
- package/dist/server/bin/installer/linux.js.map +0 -1
- package/dist/server/bin/installer/win32.js.map +0 -1
- package/dist/server/bin/logger.js.map +0 -1
- package/dist/server/package.json +0 -139
- package/dist/server/requirements.txt +0 -14
- package/dist/server/src/api/controllers/api.controller.d.ts +0 -7
- package/dist/server/src/api/controllers/api.controller.js +0 -14
- package/dist/server/src/api/controllers/api.controller.js.map +0 -1
- package/dist/server/src/api/controllers/auth.controller.d.ts +0 -16
- package/dist/server/src/api/controllers/auth.controller.js +0 -233
- package/dist/server/src/api/controllers/auth.controller.js.map +0 -1
- package/dist/server/src/api/controllers/backup.controller.d.ts +0 -10
- package/dist/server/src/api/controllers/backup.controller.js +0 -52
- package/dist/server/src/api/controllers/backup.controller.js.map +0 -1
- package/dist/server/src/api/controllers/cameras.controller.d.ts +0 -38
- package/dist/server/src/api/controllers/cameras.controller.js +0 -632
- package/dist/server/src/api/controllers/cameras.controller.js.map +0 -1
- package/dist/server/src/api/controllers/config.controller.d.ts +0 -14
- package/dist/server/src/api/controllers/config.controller.js +0 -89
- package/dist/server/src/api/controllers/config.controller.js.map +0 -1
- package/dist/server/src/api/controllers/files.controller.d.ts +0 -8
- package/dist/server/src/api/controllers/files.controller.js +0 -28
- package/dist/server/src/api/controllers/files.controller.js.map +0 -1
- package/dist/server/src/api/controllers/frameWorkers.controller.d.ts +0 -11
- package/dist/server/src/api/controllers/frameWorkers.controller.js +0 -93
- package/dist/server/src/api/controllers/frameWorkers.controller.js.map +0 -1
- package/dist/server/src/api/controllers/plugins.controller.d.ts +0 -61
- package/dist/server/src/api/controllers/plugins.controller.js +0 -1353
- package/dist/server/src/api/controllers/plugins.controller.js.map +0 -1
- package/dist/server/src/api/controllers/system.controller.d.ts +0 -21
- package/dist/server/src/api/controllers/system.controller.js +0 -207
- package/dist/server/src/api/controllers/system.controller.js.map +0 -1
- package/dist/server/src/api/controllers/users.controller.d.ts +0 -28
- package/dist/server/src/api/controllers/users.controller.js +0 -509
- package/dist/server/src/api/controllers/users.controller.js.map +0 -1
- package/dist/server/src/api/database/checks.d.ts +0 -55
- package/dist/server/src/api/database/checks.js +0 -183
- package/dist/server/src/api/database/checks.js.map +0 -1
- package/dist/server/src/api/database/constants.d.ts +0 -8
- package/dist/server/src/api/database/constants.js +0 -9
- package/dist/server/src/api/database/constants.js.map +0 -1
- package/dist/server/src/api/database/index.d.ts +0 -31
- package/dist/server/src/api/database/index.js +0 -276
- package/dist/server/src/api/database/index.js.map +0 -1
- package/dist/server/src/api/database/migration.d.ts +0 -13
- package/dist/server/src/api/database/migration.js +0 -113
- package/dist/server/src/api/database/migration.js.map +0 -1
- package/dist/server/src/api/database/selfcheck.d.ts +0 -48
- package/dist/server/src/api/database/selfcheck.js +0 -397
- package/dist/server/src/api/database/selfcheck.js.map +0 -1
- package/dist/server/src/api/database/types.d.ts +0 -100
- package/dist/server/src/api/database/types.js +0 -2
- package/dist/server/src/api/database/types.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/application.d.ts +0 -9
- package/dist/server/src/api/go2rtc/api/application.js +0 -39
- package/dist/server/src/api/go2rtc/api/application.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/config.d.ts +0 -8
- package/dist/server/src/api/go2rtc/api/config.js +0 -44
- package/dist/server/src/api/go2rtc/api/config.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/index.d.ts +0 -1
- package/dist/server/src/api/go2rtc/api/index.js +0 -29
- package/dist/server/src/api/go2rtc/api/index.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/snapshot.d.ts +0 -8
- package/dist/server/src/api/go2rtc/api/snapshot.js +0 -34
- package/dist/server/src/api/go2rtc/api/snapshot.js.map +0 -1
- package/dist/server/src/api/go2rtc/api/streams.d.ts +0 -11
- package/dist/server/src/api/go2rtc/api/streams.js +0 -59
- package/dist/server/src/api/go2rtc/api/streams.js.map +0 -1
- package/dist/server/src/api/go2rtc/index.d.ts +0 -14
- package/dist/server/src/api/go2rtc/index.js +0 -30
- package/dist/server/src/api/go2rtc/index.js.map +0 -1
- package/dist/server/src/api/go2rtc/queue.d.ts +0 -10
- package/dist/server/src/api/go2rtc/queue.js +0 -38
- package/dist/server/src/api/go2rtc/queue.js.map +0 -1
- package/dist/server/src/api/go2rtc/types.d.ts +0 -92
- package/dist/server/src/api/go2rtc/types.js +0 -2
- package/dist/server/src/api/go2rtc/types.js.map +0 -1
- package/dist/server/src/api/index.d.ts +0 -20
- package/dist/server/src/api/index.js +0 -213
- package/dist/server/src/api/index.js.map +0 -1
- package/dist/server/src/api/middlewares/authPermission.middleware.d.ts +0 -5
- package/dist/server/src/api/middlewares/authPermission.middleware.js +0 -28
- package/dist/server/src/api/middlewares/authPermission.middleware.js.map +0 -1
- package/dist/server/src/api/middlewares/authValidation.middleware.d.ts +0 -4
- package/dist/server/src/api/middlewares/authValidation.middleware.js +0 -129
- package/dist/server/src/api/middlewares/authValidation.middleware.js.map +0 -1
- package/dist/server/src/api/middlewares/pagination.middleware.d.ts +0 -3
- package/dist/server/src/api/middlewares/pagination.middleware.js +0 -65
- package/dist/server/src/api/middlewares/pagination.middleware.js.map +0 -1
- package/dist/server/src/api/middlewares/socketAuth.middleware.d.ts +0 -41
- package/dist/server/src/api/middlewares/socketAuth.middleware.js +0 -81
- package/dist/server/src/api/middlewares/socketAuth.middleware.js.map +0 -1
- package/dist/server/src/api/plugins/header.plugin.d.ts +0 -2
- package/dist/server/src/api/plugins/header.plugin.js +0 -13
- package/dist/server/src/api/plugins/header.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/logger.plugin.d.ts +0 -7
- package/dist/server/src/api/plugins/logger.plugin.js +0 -29
- package/dist/server/src/api/plugins/logger.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/socket.plugin.d.ts +0 -11
- package/dist/server/src/api/plugins/socket.plugin.js +0 -12
- package/dist/server/src/api/plugins/socket.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/system.plugin.d.ts +0 -18
- package/dist/server/src/api/plugins/system.plugin.js +0 -22
- package/dist/server/src/api/plugins/system.plugin.js.map +0 -1
- package/dist/server/src/api/plugins/useragent.plugin.d.ts +0 -8
- package/dist/server/src/api/plugins/useragent.plugin.js +0 -10
- package/dist/server/src/api/plugins/useragent.plugin.js.map +0 -1
- package/dist/server/src/api/routes/api.routes.d.ts +0 -2
- package/dist/server/src/api/routes/api.routes.js +0 -7
- package/dist/server/src/api/routes/api.routes.js.map +0 -1
- package/dist/server/src/api/routes/auth.routes.d.ts +0 -2
- package/dist/server/src/api/routes/auth.routes.js +0 -47
- package/dist/server/src/api/routes/auth.routes.js.map +0 -1
- package/dist/server/src/api/routes/backup.routes.d.ts +0 -2
- package/dist/server/src/api/routes/backup.routes.js +0 -23
- package/dist/server/src/api/routes/backup.routes.js.map +0 -1
- package/dist/server/src/api/routes/cameras.routes.d.ts +0 -2
- package/dist/server/src/api/routes/cameras.routes.js +0 -217
- package/dist/server/src/api/routes/cameras.routes.js.map +0 -1
- package/dist/server/src/api/routes/config.routes.d.ts +0 -2
- package/dist/server/src/api/routes/config.routes.js +0 -55
- package/dist/server/src/api/routes/config.routes.js.map +0 -1
- package/dist/server/src/api/routes/files.routes.d.ts +0 -2
- package/dist/server/src/api/routes/files.routes.js +0 -12
- package/dist/server/src/api/routes/files.routes.js.map +0 -1
- package/dist/server/src/api/routes/frameWorkers.routes.d.ts +0 -2
- package/dist/server/src/api/routes/frameWorkers.routes.js +0 -33
- package/dist/server/src/api/routes/frameWorkers.routes.js.map +0 -1
- package/dist/server/src/api/routes/index.d.ts +0 -6
- package/dist/server/src/api/routes/index.js +0 -32
- package/dist/server/src/api/routes/index.js.map +0 -1
- package/dist/server/src/api/routes/plugins.routes.d.ts +0 -2
- package/dist/server/src/api/routes/plugins.routes.js +0 -363
- package/dist/server/src/api/routes/plugins.routes.js.map +0 -1
- package/dist/server/src/api/routes/system.routes.d.ts +0 -2
- package/dist/server/src/api/routes/system.routes.js +0 -83
- package/dist/server/src/api/routes/system.routes.js.map +0 -1
- package/dist/server/src/api/routes/users.routes.d.ts +0 -2
- package/dist/server/src/api/routes/users.routes.js +0 -139
- package/dist/server/src/api/routes/users.routes.js.map +0 -1
- package/dist/server/src/api/schemas/backup.schema.d.ts +0 -118
- package/dist/server/src/api/schemas/backup.schema.js +0 -75
- package/dist/server/src/api/schemas/backup.schema.js.map +0 -1
- package/dist/server/src/api/schemas/cameras.schema.d.ts +0 -980
- package/dist/server/src/api/schemas/cameras.schema.js +0 -333
- package/dist/server/src/api/schemas/cameras.schema.js.map +0 -1
- package/dist/server/src/api/schemas/config.schema.d.ts +0 -114
- package/dist/server/src/api/schemas/config.schema.js +0 -42
- package/dist/server/src/api/schemas/config.schema.js.map +0 -1
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +0 -703
- package/dist/server/src/api/schemas/go2rtc.schema.js +0 -180
- package/dist/server/src/api/schemas/go2rtc.schema.js.map +0 -1
- package/dist/server/src/api/schemas/plugins.schema.d.ts +0 -72
- package/dist/server/src/api/schemas/plugins.schema.js +0 -103
- package/dist/server/src/api/schemas/plugins.schema.js.map +0 -1
- package/dist/server/src/api/schemas/system.schema.d.ts +0 -9
- package/dist/server/src/api/schemas/system.schema.js +0 -8
- package/dist/server/src/api/schemas/system.schema.js.map +0 -1
- package/dist/server/src/api/schemas/users.schema.d.ts +0 -1013
- package/dist/server/src/api/schemas/users.schema.js +0 -157
- package/dist/server/src/api/schemas/users.schema.js.map +0 -1
- package/dist/server/src/api/services/auth.service.d.ts +0 -24
- package/dist/server/src/api/services/auth.service.js +0 -191
- package/dist/server/src/api/services/auth.service.js.map +0 -1
- package/dist/server/src/api/services/backup.service.d.ts +0 -11
- package/dist/server/src/api/services/backup.service.js +0 -109
- package/dist/server/src/api/services/backup.service.js.map +0 -1
- package/dist/server/src/api/services/cameras.service.d.ts +0 -57
- package/dist/server/src/api/services/cameras.service.js +0 -790
- package/dist/server/src/api/services/cameras.service.js.map +0 -1
- package/dist/server/src/api/services/plugins.service.d.ts +0 -26
- package/dist/server/src/api/services/plugins.service.js +0 -148
- package/dist/server/src/api/services/plugins.service.js.map +0 -1
- package/dist/server/src/api/services/system.service.d.ts +0 -7
- package/dist/server/src/api/services/system.service.js +0 -23
- package/dist/server/src/api/services/system.service.js.map +0 -1
- package/dist/server/src/api/services/users.service.d.ts +0 -25
- package/dist/server/src/api/services/users.service.js +0 -198
- package/dist/server/src/api/services/users.service.js.map +0 -1
- package/dist/server/src/api/types/index.d.ts +0 -592
- package/dist/server/src/api/types/index.js +0 -9
- package/dist/server/src/api/types/index.js.map +0 -1
- package/dist/server/src/api/utils/cameraSource.d.ts +0 -2
- package/dist/server/src/api/utils/cameraSource.js +0 -34
- package/dist/server/src/api/utils/cameraSource.js.map +0 -1
- package/dist/server/src/api/utils/cert.d.ts +0 -11
- package/dist/server/src/api/utils/cert.js +0 -204
- package/dist/server/src/api/utils/cert.js.map +0 -1
- package/dist/server/src/api/utils/constants.d.ts +0 -13
- package/dist/server/src/api/utils/constants.js +0 -14
- package/dist/server/src/api/utils/constants.js.map +0 -1
- package/dist/server/src/api/utils/fetch.d.ts +0 -2
- package/dist/server/src/api/utils/fetch.js +0 -24
- package/dist/server/src/api/utils/fetch.js.map +0 -1
- package/dist/server/src/api/utils/moveFiles.d.ts +0 -1
- package/dist/server/src/api/utils/moveFiles.js +0 -39
- package/dist/server/src/api/utils/moveFiles.js.map +0 -1
- package/dist/server/src/api/utils/parse.d.ts +0 -2
- package/dist/server/src/api/utils/parse.js +0 -12
- package/dist/server/src/api/utils/parse.js.map +0 -1
- package/dist/server/src/api/websocket/index.d.ts +0 -16
- package/dist/server/src/api/websocket/index.js +0 -76
- package/dist/server/src/api/websocket/index.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/logs.d.ts +0 -17
- package/dist/server/src/api/websocket/nsp/logs.js +0 -151
- package/dist/server/src/api/websocket/nsp/logs.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/main.d.ts +0 -7
- package/dist/server/src/api/websocket/nsp/main.js +0 -8
- package/dist/server/src/api/websocket/nsp/main.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/metrics.d.ts +0 -24
- package/dist/server/src/api/websocket/nsp/metrics.js +0 -169
- package/dist/server/src/api/websocket/nsp/metrics.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/notifications.d.ts +0 -12
- package/dist/server/src/api/websocket/nsp/notifications.js +0 -30
- package/dist/server/src/api/websocket/nsp/notifications.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/plugins.d.ts +0 -13
- package/dist/server/src/api/websocket/nsp/plugins.js +0 -28
- package/dist/server/src/api/websocket/nsp/plugins.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/server.d.ts +0 -26
- package/dist/server/src/api/websocket/nsp/server.js +0 -171
- package/dist/server/src/api/websocket/nsp/server.js.map +0 -1
- package/dist/server/src/api/websocket/nsp/status.d.ts +0 -15
- package/dist/server/src/api/websocket/nsp/status.js +0 -55
- package/dist/server/src/api/websocket/nsp/status.js.map +0 -1
- package/dist/server/src/api/websocket/types.d.ts +0 -41
- package/dist/server/src/api/websocket/types.js +0 -2
- package/dist/server/src/api/websocket/types.js.map +0 -1
- package/dist/server/src/api.d.ts +0 -28
- package/dist/server/src/api.js +0 -109
- package/dist/server/src/api.js.map +0 -1
- package/dist/server/src/camera/controller.d.ts +0 -62
- package/dist/server/src/camera/controller.js +0 -537
- package/dist/server/src/camera/controller.js.map +0 -1
- package/dist/server/src/camera/frameWorker.d.ts +0 -42
- package/dist/server/src/camera/frameWorker.js +0 -305
- package/dist/server/src/camera/frameWorker.js.map +0 -1
- package/dist/server/src/camera/types.d.ts +0 -11
- package/dist/server/src/camera/types.js +0 -2
- package/dist/server/src/camera/types.js.map +0 -1
- package/dist/server/src/go2rtc/index.d.ts +0 -25
- package/dist/server/src/go2rtc/index.js +0 -233
- package/dist/server/src/go2rtc/index.js.map +0 -1
- package/dist/server/src/go2rtc/types.d.ts +0 -14
- package/dist/server/src/go2rtc/types.js +0 -73
- package/dist/server/src/go2rtc/types.js.map +0 -1
- package/dist/server/src/main.d.ts +0 -2
- package/dist/server/src/main.js +0 -112
- package/dist/server/src/main.js.map +0 -1
- package/dist/server/src/nats/index.d.ts +0 -40
- package/dist/server/src/nats/index.js +0 -164
- package/dist/server/src/nats/index.js.map +0 -1
- package/dist/server/src/nats/proxy/cameraDevice.d.ts +0 -22
- package/dist/server/src/nats/proxy/cameraDevice.js +0 -254
- package/dist/server/src/nats/proxy/cameraDevice.js.map +0 -1
- package/dist/server/src/nats/proxy/coreManager.d.ts +0 -14
- package/dist/server/src/nats/proxy/coreManager.js +0 -68
- package/dist/server/src/nats/proxy/coreManager.js.map +0 -1
- package/dist/server/src/nats/proxy/deviceManager.d.ts +0 -14
- package/dist/server/src/nats/proxy/deviceManager.js +0 -101
- package/dist/server/src/nats/proxy/deviceManager.js.map +0 -1
- package/dist/server/src/nats/server.d.ts +0 -38
- package/dist/server/src/nats/server.js +0 -328
- package/dist/server/src/nats/server.js.map +0 -1
- package/dist/server/src/nats/types.d.ts +0 -18
- package/dist/server/src/nats/types.js +0 -2
- package/dist/server/src/nats/types.js.map +0 -1
- package/dist/server/src/nats/utils.d.ts +0 -2
- package/dist/server/src/nats/utils.js +0 -12
- package/dist/server/src/nats/utils.js.map +0 -1
- package/dist/server/src/nats/websocket.d.ts +0 -27
- package/dist/server/src/nats/websocket.js +0 -218
- package/dist/server/src/nats/websocket.js.map +0 -1
- package/dist/server/src/plugins/index.d.ts +0 -29
- package/dist/server/src/plugins/index.js +0 -243
- package/dist/server/src/plugins/index.js.map +0 -1
- package/dist/server/src/plugins/plugin.d.ts +0 -36
- package/dist/server/src/plugins/plugin.js +0 -193
- package/dist/server/src/plugins/plugin.js.map +0 -1
- package/dist/server/src/plugins/types.d.ts +0 -7
- package/dist/server/src/plugins/types.js +0 -3
- package/dist/server/src/plugins/types.js.map +0 -1
- package/dist/server/src/plugins/worker.d.ts +0 -55
- package/dist/server/src/plugins/worker.js +0 -444
- package/dist/server/src/plugins/worker.js.map +0 -1
- package/dist/server/src/services/config/constants.d.ts +0 -7
- package/dist/server/src/services/config/constants.js +0 -67
- package/dist/server/src/services/config/constants.js.map +0 -1
- package/dist/server/src/services/config/index.d.ts +0 -66
- package/dist/server/src/services/config/index.js +0 -462
- package/dist/server/src/services/config/index.js.map +0 -1
- package/dist/server/src/services/config/types.d.ts +0 -157
- package/dist/server/src/services/config/types.js +0 -11
- package/dist/server/src/services/config/types.js.map +0 -1
- package/dist/server/src/services/logger/index.d.ts +0 -16
- package/dist/server/src/services/logger/index.js +0 -67
- package/dist/server/src/services/logger/index.js.map +0 -1
- package/dist/server/src/types.d.ts +0 -7
- package/dist/server/src/types.js +0 -2
- package/dist/server/src/types.js.map +0 -1
- package/localdeps.txt +0 -6
- package/upgrade-server.sh +0 -206
- /package/dist/{server/bin/installer → installer}/base.d.ts +0 -0
- /package/dist/{server/bin/installer → installer}/base.js +0 -0
- /package/dist/{server/bin/installer → installer}/freebsd.d.ts +0 -0
- /package/dist/{server/bin/installer → installer}/win32.d.ts +0 -0
- /package/dist/{server/bin/logger.d.ts → logger.d.ts} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function C(n){let e=null;return()=>(e==null&&(e=n()),e)}function F(n,e){return n.filter(t=>t!==e)}function X(n,e){const t=new Set,i=s=>t.add(s);n.forEach(i),e.forEach(i);const r=[];return t.forEach(s=>r.push(s)),r}class j{enter(e){const t=this.entered.length,i=r=>this.isNodeInDocument(r)&&(!r.contains||r.contains(e));return this.entered=X(this.entered.filter(i),[e]),t===0&&this.entered.length>0}leave(e){const t=this.entered.length;return this.entered=F(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}reset(){this.entered=[]}constructor(e){this.entered=[],this.isNodeInDocument=e}}class z{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(e=>{Object.defineProperty(this.item,e,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`),null}})})}loadDataTransfer(e){if(e){const t={};Object.keys(this.config.exposeProperties).forEach(i=>{const r=this.config.exposeProperties[i];r!=null&&(t[i]={value:r(e,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,t)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(e,t){return t===e.getSourceId()}endDrag(){}constructor(e){this.config=e,this.item={},this.initializeExposedProperties()}}const P="__NATIVE_FILE__",b="__NATIVE_URL__",x="__NATIVE_TEXT__",_="__NATIVE_HTML__",I=Object.freeze(Object.defineProperty({__proto__:null,FILE:P,HTML:_,TEXT:x,URL:b},Symbol.toStringTag,{value:"Module"}));function N(n,e,t){const i=e.reduce((r,s)=>r||n.getData(s),"");return i??t}const w={[P]:{exposeProperties:{files:n=>Array.prototype.slice.call(n.files),items:n=>n.items,dataTransfer:n=>n},matchesTypes:["Files"]},[_]:{exposeProperties:{html:(n,e)=>N(n,e,""),dataTransfer:n=>n},matchesTypes:["Html","text/html"]},[b]:{exposeProperties:{urls:(n,e)=>N(n,e,"").split(`
|
|
2
|
-
`),dataTransfer:n=>n},matchesTypes:["Url","text/uri-list"]},[x]:{exposeProperties:{text:(n,e)=>N(n,e,""),dataTransfer:n=>n},matchesTypes:["Text","text/plain"]}};function B(n,e){const t=w[n];if(!t)throw new Error(`native type ${n} has no configuration`);const i=new z(t);return i.loadDataTransfer(e),i}function S(n){if(!n)return null;const e=Array.prototype.slice.call(n.types||[]);return Object.keys(w).filter(t=>{const i=w[t];return i!=null&&i.matchesTypes?i.matchesTypes.some(r=>e.indexOf(r)>-1):!1})[0]||null}const Y=C(()=>/firefox/i.test(navigator.userAgent)),M=C(()=>!!window.safari);class y{interpolate(e){const{xs:t,ys:i,c1s:r,c2s:s,c3s:d}=this;let o=t.length-1;if(e===t[o])return i[o];let c=0,u=d.length-1,h;for(;c<=u;){h=Math.floor(.5*(c+u));const a=t[h];if(a<e)c=h+1;else if(a>e)u=h-1;else return i[h]}o=Math.max(0,u);const f=e-t[o],l=f*f;return i[o]+r[o]*f+s[o]*l+d[o]*f*l}constructor(e,t){const{length:i}=e,r=[];for(let a=0;a<i;a++)r.push(a);r.sort((a,g)=>e[a]<e[g]?-1:1);const s=[],d=[];let o,c;for(let a=0;a<i-1;a++)o=e[a+1]-e[a],c=t[a+1]-t[a],s.push(o),d.push(c/o);const u=[d[0]];for(let a=0;a<s.length-1;a++){const g=d[a],v=d[a+1];if(g*v<=0)u.push(0);else{o=s[a];const p=s[a+1],m=o+p;u.push(3*m/((m+p)/g+(m+o)/v))}}u.push(d[d.length-1]);const h=[],f=[];let l;for(let a=0;a<u.length-1;a++){l=d[a];const g=u[a],v=1/s[a],p=g+u[a+1]-l-l;h.push((l-g-p)*v),f.push(p*v*v)}this.xs=e,this.ys=t,this.c1s=u,this.c2s=h,this.c3s=f}}const k=1;function H(n){const e=n.nodeType===k?n:n.parentElement;if(!e)return null;const{top:t,left:i}=e.getBoundingClientRect();return{x:i,y:t}}function E(n){return{x:n.clientX,y:n.clientY}}function U(n){var e;return n.nodeName==="IMG"&&(Y()||!(!((e=document.documentElement)===null||e===void 0)&&e.contains(n)))}function W(n,e,t,i){let r=n?e.width:t,s=n?e.height:i;return M()&&n&&(s/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:s}}function V(n,e,t,i,r){const s=U(e),o=H(s?n:e),c={x:t.x-o.x,y:t.y-o.y},{offsetWidth:u,offsetHeight:h}=n,{anchorX:f,anchorY:l}=i,{dragPreviewWidth:a,dragPreviewHeight:g}=W(s,e,u,h),v=()=>{let O=new y([0,.5,1],[c.y,c.y/h*g,c.y+g-h]).interpolate(l);return M()&&s&&(O+=(window.devicePixelRatio-1)*g),O},p=()=>new y([0,.5,1],[c.x,c.x/u*a,c.x+a-u]).interpolate(f),{offsetX:m,offsetY:D}=r,T=m===0||m,R=D===0||D;return{x:T?m:p(),y:R?D:v()}}class K{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var e;return!((e=this.globalContext)===null||e===void 0)&&e.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var e;return((e=this.optionsArgs)===null||e===void 0?void 0:e.rootElement)||this.window}constructor(e,t){this.ownerDocument=null,this.globalContext=e,this.optionsArgs=t}}function q(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function L(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},i=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(i=i.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),i.forEach(function(r){q(n,r,t[r])})}return n}class ${profile(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)===null||e===void 0?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)===null||t===void 0?void 0:t.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}teardown(){const e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)===null||t===void 0||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(e,t,i){return this.sourcePreviewNodeOptions.set(e,i),this.sourcePreviewNodes.set(e,t),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDragSource(e,t,i){this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,i);const r=d=>this.handleDragStart(d,e),s=d=>this.handleSelectStart(d);return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",s),()=>{this.sourceNodes.delete(e),this.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",s),t.setAttribute("draggable","false")}}connectDropTarget(e,t){const i=d=>this.handleDragEnter(d,e),r=d=>this.handleDragOver(d,e),s=d=>this.handleDrop(d,e);return t.addEventListener("dragenter",i),t.addEventListener("dragover",r),t.addEventListener("drop",s),()=>{t.removeEventListener("dragenter",i),t.removeEventListener("dragover",r),t.removeEventListener("drop",s)}}addEventListeners(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return L({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const e=this.monitor.getSourceId(),t=this.sourcePreviewNodeOptions.get(e);return L({anchorX:.5,anchorY:.5,captureDraggingState:!1},t||{})}isDraggingNativeItem(){const e=this.monitor.getItemType();return Object.keys(I).some(t=>I[t]===e)}beginDragNativeItem(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=B(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(e){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;const t=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var i;return(i=this.rootElement)===null||i===void 0?void 0:i.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},t)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)===null||e===void 0||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}handleDragEnter(e,t){this.dragEnterTargetIds.unshift(t)}handleDragOver(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}handleDrop(e,t){this.dropTargetIds.unshift(t)}constructor(e,t,i){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=r=>{const s=this.sourceNodes.get(r);return s&&H(s)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=r=>!!(r&&this.document&&this.document.body&&this.document.body.contains(r)),this.endDragIfSourceWasRemovedFromDOM=()=>{const r=this.currentDragSourceNode;r==null||this.isNodeInDocument(r)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=r=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(r||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=r=>{if(r.defaultPrevented)return;const{dragStartSourceIds:s}=this;this.dragStartSourceIds=null;const d=E(r);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(s||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:d});const{dataTransfer:o}=r,c=S(o);if(this.monitor.isDragging()){if(o&&typeof o.setDragImage=="function"){const h=this.monitor.getSourceId(),f=this.sourceNodes.get(h),l=this.sourcePreviewNodes.get(h)||f;if(l){const{anchorX:a,anchorY:g,offsetX:v,offsetY:p}=this.getCurrentSourcePreviewNodeOptions(),T=V(f,l,d,{anchorX:a,anchorY:g},{offsetX:v,offsetY:p});o.setDragImage(l,T.x,T.y)}}try{o==null||o.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(r.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(c)this.beginDragNativeItem(c);else{if(o&&!o.types&&(r.target&&!r.target.hasAttribute||!r.target.hasAttribute("draggable")))return;r.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=r=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}if(!this.enterLeaveCounter.enter(r.target)||this.monitor.isDragging())return;const{dataTransfer:o}=r,c=S(o);c&&this.beginDragNativeItem(c,o)},this.handleTopDragEnter=r=>{const{dragEnterTargetIds:s}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=r.altKey,s.length>0&&this.actions.hover(s,{clientOffset:E(r)}),s.some(o=>this.monitor.canDropOnTarget(o))&&(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=r=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var s;(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}},this.handleTopDragOver=r=>{const{dragOverTargetIds:s}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="none");return}this.altKeyPressed=r.altKey,this.lastClientOffset=E(r),this.scheduleHover(s),(s||[]).some(o=>this.monitor.canDropOnTarget(o))?(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?r.preventDefault():(r.preventDefault(),r.dataTransfer&&(r.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=r=>{this.isDraggingNativeItem()&&r.preventDefault(),this.enterLeaveCounter.leave(r.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=r=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var s;r.preventDefault(),(s=this.currentNativeSource)===null||s===void 0||s.loadDataTransfer(r.dataTransfer)}else S(r.dataTransfer)&&r.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=r=>{const{dropTargetIds:s}=this;this.dropTargetIds=[],this.actions.hover(s,{clientOffset:E(r)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=r=>{const s=r.target;typeof s.dragDrop=="function"&&(s.tagName==="INPUT"||s.tagName==="SELECT"||s.tagName==="TEXTAREA"||s.isContentEditable||(r.preventDefault(),s.dragDrop()))},this.options=new K(t,i),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new j(this.isNodeInDocument)}}const G=function(e,t,i){return new $(e,t,i)};export{G as H};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as O}from"./@react-dnd.CcwRs9xb.0.0.34-alpha.6.js";var l;(function(o){o.mouse="mouse",o.touch="touch",o.keyboard="keyboard"})(l||(l={}));class M{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,s,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(s=this.args)===null||s===void 0?void 0:s.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,s,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(s=this.args)===null||s===void 0?void 0:s.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,s){this.args=e,this.context=s}}function N(o,e,s,n){return Math.sqrt(Math.pow(Math.abs(s-o),2)+Math.pow(Math.abs(n-e),2))}function w(o,e,s,n,t){if(!t)return!1;const i=Math.atan2(n-e,s-o)*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 C={Left:1,Right:2,Center:4},x={Left:0,Center:1,Right:2};function T(o){return o.button===void 0||o.button===x.Left}function D(o){return o.buttons===void 0||(o.buttons&C.Left)===0}function b(o){return!!o.targetTouches}const L=1;function P(o){const e=o.nodeType===L?o:o.parentElement;if(!e)return;const{top:s,left:n}=e.getBoundingClientRect();return{x:n,y:s}}function _(o,e){if(o.targetTouches.length===1)return S(o.targetTouches[0]);if(e&&o.touches.length===1&&o.touches[0].target===e.target)return S(o.touches[0])}function S(o,e){return b(o)?_(o,e):{x:o.clientX,y:o.clientY}}const v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class g{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&&(O(!g.isSetUp,"Cannot have two Touch backends at the same time."),g.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&&(g.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,s,n,t=!1){const i=t;this.listenerTypes.forEach(function(a){const r=v[a][s];r&&e.addEventListener(r,n,i)})}removeEventListener(e,s,n,t=!1){const i=t;this.listenerTypes.forEach(function(a){const r=v[a][s];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,s){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,s),this.addEventListener(s,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(s,"start",n)}}connectDragPreview(e,s,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,s),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,s){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,h;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((h=i.touches[0])===null||h===void 0?void 0:h.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,f=c&&s.contains(c);if(c===s||f)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,s),()=>{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,s,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&P(i)},this.handleTopMoveStartCapture=t=>{T(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!T(t))return;const i=S(t);i&&(b(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!T(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,h=S(t,this.lastTargetTouchFallback);if(!h)return;if(this._isScrolling||!this.monitor.isDragging()&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,h.x,h.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&N(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,h.x,h.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 f=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(h.x,h.y,f):this.document.elementsFromPoint(h.x,h.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let d=E[u];for(d!=null&&p.push(d);d;)d=d.parentElement,d&&p.indexOf(d)===-1&&p.push(d)}const m=p.filter(u=>f.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,d,y)=>y.indexOf(u)===d);if(r)for(const u in this.targetNodes){const d=this.targetNodes.get(u);if(c&&d&&d.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:h})},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,!!D(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 M(n,s),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 k=function(e,s={},n={}){return new g(e,s,n)};export{k as T};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function n(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var N=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),l=function(){return Math.random().toString(36).substring(7).split("").join(".")},g={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function m(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function I(t,e,i){var b;if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(n(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(n(1));return i(I)(t,e)}if(typeof t!="function")throw new Error(n(2));var w=t,p=e,c=[],u=c,s=!1;function v(){u===c&&(u=c.slice())}function E(){if(s)throw new Error(n(3));return p}function O(r){if(typeof r!="function")throw new Error(n(4));if(s)throw new Error(n(5));var f=!0;return v(),u.push(r),function(){if(f){if(s)throw new Error(n(6));f=!1,v();var o=u.indexOf(r);u.splice(o,1),c=null}}}function y(r){if(!m(r))throw new Error(n(7));if(typeof r.type>"u")throw new Error(n(8));if(s)throw new Error(n(9));try{s=!0,p=w(p,r)}finally{s=!1}for(var f=c=u,a=0;a<f.length;a++){var o=f[a];o()}return r}function d(r){if(typeof r!="function")throw new Error(n(10));w=r,y({type:g.REPLACE})}function x(){var r,f=O;return r={subscribe:function(o){if(typeof o!="object"||o===null)throw new Error(n(11));function h(){o.next&&o.next(E())}h();var P=f(h);return{unsubscribe:P}}},r[N]=function(){return this},r}return y({type:g.INIT}),b={dispatch:y,subscribe:O,getState:E,replaceReducer:d},b[N]=x,b}export{I as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/sw.js', { scope: '/' })})}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{_,a as E,b as w,c as b}from"./tslib.9k7AwCpt.0.0.34-alpha.6.js";function l(e){return typeof e=="function"}function C(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 m=C(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 g(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var v=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 u=_(s),c=u.next();!c.done;c=u.next()){var y=c.value;y.remove(this)}}catch(a){t={error:a}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}else s.remove(this);var O=this.initialTeardown;if(l(O))try{O()}catch(a){i=a instanceof m?a.errors:[a]}var x=this._finalizers;if(x){this._finalizers=null;try{for(var p=_(x),f=p.next();!f.done;f=p.next()){var D=f.value;try{A(D)}catch(a){i=i??[],a instanceof m?i=E(E([],w(i)),w(a.errors)):i.push(a)}}}catch(a){n={error:a}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new m(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)A(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)&&g(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&g(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),F=v.EMPTY;function M(e){return e instanceof v||e&&"closed"in e&&l(e.remove)&&l(e.add)&&l(e.unsubscribe)}function A(e){l(e)?e():e.unsubscribe()}var R={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Y={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,E([e,t],w(r)))},clearTimeout:function(e){var t=Y.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function B(e){Y.setTimeout(function(){throw e})}function T(){}function d(e){e()}var k=function(e){b(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,M(r)&&r.add(n)):n.destination=G,n}return t.create=function(r,n,o){return new P(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}(v),H=Function.prototype.bind;function S(e,t){return H.call(e,t)}var V=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}(),P=function(e){b(t,e);function t(r,n,o){var i=e.call(this)||this,s;if(l(r)||!r)s={next:r??void 0,error:n??void 0,complete:o??void 0};else{var u;i&&R.useDeprecatedNextContext?(u=Object.create(r),u.unsubscribe=function(){return i.unsubscribe()},s={next:r.next&&S(r.next,u),error:r.error&&S(r.error,u),complete:r.complete&&S(r.complete,u)}):s=r}return i.destination=new V(s),i}return t}(k);function h(e){B(e)}function q(e){throw e}var G={closed:!0,next:T,error:q,complete:T},J=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function K(e){return e}function L(e){return e.length===0?K:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var j=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=W(t)?t:new P(t,r,n);return d(function(){var s=o,u=s.operator,c=s.source;i.add(u?u.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=I(r),new r(function(o,i){var s=new P({next:function(u){try{t(u)}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[J]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return L(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=I(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 I(e){var t;return(t=e??R.Promise)!==null&&t!==void 0?t:Promise}function Q(e){return e&&l(e.next)&&l(e.error)&&l(e.complete)}function W(e){return e&&e instanceof k||Q(e)&&M(e)}var X=C(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Z=function(e){b(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new U(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new X},t.prototype.next=function(r){var n=this;d(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var s=_(n.currentObservers),u=s.next();!u.done;u=s.next()){var c=u.value;c.next(r)}}catch(y){o={error:y}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;d(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;d(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,s=o.isStopped,u=o.observers;return i||s?F:(this.currentObservers=null,u.push(r),new v(function(){n.currentObservers=null,g(u,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,s=n.isStopped;o?r.error(i):s&&r.complete()},t.prototype.asObservable=function(){var r=new j;return r.source=this,r},t.create=function(r,n){return new U(r,n)},t}(j),U=function(e){b(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:F},t}(Z);export{j as O,Z as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{p as k,i as b,S as v,n as E}from"./engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js";import"./engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.34-alpha.6.js";import{P as c,p as O}from"./socket.io-parser.CT0tlhnF.0.0.34-alpha.6.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?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};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as N}from"./@socket.io.Dkula2eQ.0.0.34-alpha.6.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};
|
package/dist/interface/sw.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
if(!self.define){let a,e={};const s=(s,l)=>(s=new URL(s+".js",l).href,e[s]||new Promise((e=>{if("document"in self){const a=document.createElement("script");a.src=s,a.onload=e,document.head.appendChild(a)}else a=s,importScripts(s),e()})).then((()=>{let a=e[s];if(!a)throw new Error(`Module ${s} didn’t register its module`);return a})));self.define=(l,p)=>{const i=a||("document"in self?document.currentScript.src:"")||location.href;if(e[i])return;let r={};const c=a=>s(a,i),d={module:{uri:i},exports:r,require:c};e[i]=Promise.all(l.map((a=>d[a]||c(a)))).then((a=>(p(...a),r)))}}define(["./workbox-3e911b1d"],(function(a){"use strict";self.skipWaiting(),a.clientsClaim(),a.precacheAndRoute([{url:"@babel.l0sNRNKZ.0.0.34-alpha.6.js",revision:"68b329da9893e34099c7d8ad5cb9c940"},{url:"@intlify.DXtFJcML.0.0.34-alpha.6.js",revision:"94a3ea82ce92b0bb314922b0c0500e40"},{url:"@mdi.C1UTQKuc.0.0.34-alpha.6.js",revision:"1261c904970d1516433120db091f79be"},{url:"@react-dnd.CcwRs9xb.0.0.34-alpha.6.js",revision:"e298c89abc766898ace2a2e2546456c4"},{url:"@socket.io.Dkula2eQ.0.0.34-alpha.6.js",revision:"0ec353facc7dccc0a8bdec7158d33d6a"},{url:"@tanstack.COISQUaa.0.0.34-alpha.6.js",revision:"9022cb2cf06c790aed0a416f8fa1658c"},{url:"@turf.l0sNRNKZ.0.0.34-alpha.6.js",revision:"68b329da9893e34099c7d8ad5cb9c940"},{url:"@vee-validate.vQEQxxhx.0.0.34-alpha.6.js",revision:"7608d06e6262657b0d31c94773772c22"},{url:"@vue.2olsU3zX.0.0.34-alpha.6.js",revision:"60e164c11557a37c86b09dd8d9b29146"},{url:"@vueform.CPzo51Ad.0.0.34-alpha.6.js",revision:"b129981030ca7e059ab7f2b67ea3c33c"},{url:"@vueuse.D9NHhWYc.0.0.34-alpha.6.js",revision:"f561bc981ae6e7ab37496b78bc7dce2b"},{url:"@xterm.DqCFPTCA.0.0.34-alpha.6.js",revision:"a59fe338fd101774672d1f72c63a06d1"},{url:"Account.C8tdLL9c.0.0.34-alpha.6.js",revision:"86f842ef44d33b8ccb144120a0cc1e7f"},{url:"ace-builds.DndaCQ18.0.0.34-alpha.6.js",revision:"af8146c15a32f9fe088b163228c7db67"},{url:"Adminpanel.CCt65nrb.0.0.34-alpha.6.js",revision:"469fd913ad3a67719727874fd0a6afe3"},{url:"apexcharts.6HWN1GNB.0.0.34-alpha.6.js",revision:"f2e62ca4f056ca4e919433a92ef23153"},{url:"Appearance.HvJsFiT3.0.0.34-alpha.6.js",revision:"9c1dd901be06d376d0523e8cdbb3c27a"},{url:"assets/@vueform.0.0.34-alpha.6.CroAHJs8.css",revision:null},{url:"assets/@xterm.0.0.34-alpha.6.CFbL2ovg.css",revision:null},{url:"assets/Account.0.0.34-alpha.6.J7oAjogS.css",revision:null},{url:"assets/Adminpanel.0.0.34-alpha.6.a3t1v3MB.css",revision:null},{url:"assets/Backup.0.0.34-alpha.6.CX0rT0QJ.css",revision:null},{url:"assets/Camera.0.0.34-alpha.6.D1I-fW4q.css",revision:null},{url:"assets/Cameras.0.0.34-alpha.6.Buf1Dgce.css",revision:null},{url:"assets/Camview.0.0.34-alpha.6.B7Cja2ry.css",revision:null},{url:"assets/Config.0.0.34-alpha.6.DNGo2krN.css",revision:null},{url:"assets/Console.0.0.34-alpha.6.Bh8l9QnM.css",revision:null},{url:"assets/FirstSteps.0.0.34-alpha.6.sPEcItZ6.css",revision:null},{url:"assets/highlight.0.0.34-alpha.6.Ch2EwETz.css",revision:null},{url:"assets/logo-256.0.0.34-alpha.6.BCQk9H1-.png",revision:null},{url:"assets/logo-512.0.0.34-alpha.6.DLKVOU2S.png",revision:null},{url:"assets/logo.0.0.34-alpha.6.DmEiRk0z.png",revision:null},{url:"assets/main.0.0.34-alpha.6.DNhh__S1.css",revision:null},{url:"assets/mode-json.0.0.34-alpha.6.Br7xisR1.js",revision:null},{url:"assets/mode-yaml.0.0.34-alpha.6.CIYL8U3d.js",revision:null},{url:"assets/NewCamera.0.0.34-alpha.6.Cq8GzeJ7.css",revision:null},{url:"assets/Plugin.0.0.34-alpha.6.DJbgaQc1.css",revision:null},{url:"assets/Plugins.0.0.34-alpha.6.DXSoO9M1.css",revision:null},{url:"assets/Settings.0.0.34-alpha.6.CVmui2kE.css",revision:null},{url:"assets/User.0.0.34-alpha.6.BiGtIFqt.css",revision:null},{url:"assets/VConsole.0.0.34-alpha.6.BCqKHpmJ.css",revision:null},{url:"assets/VPlayer.0.0.34-alpha.6.DNtDNhfg.css",revision:null},{url:"assets/VPluginCard.0.0.34-alpha.6.C8Lj6X-J.css",revision:null},{url:"assets/vue3-toastify.0.0.34-alpha.6.DHXAGmwn.css",revision:null},{url:"assets/vuetify.0.0.34-alpha.6.CgGsw6iO.css",revision:null},{url:"axios.C-n2IhIP.0.0.34-alpha.6.js",revision:"19fe14a63649f72cc75f4abe8ed279c2"},{url:"Backup.CSkOoG27.0.0.34-alpha.6.js",revision:"21cdeb3bd1c43833bbbd1a21e1872de8"},{url:"birpc.l0sNRNKZ.0.0.34-alpha.6.js",revision:"68b329da9893e34099c7d8ad5cb9c940"},{url:"Camera.CpRZjMgc.0.0.34-alpha.6.js",revision:"8c27d2013be0d22f907ca7034b4003c1"},{url:"Cameras.DjwMkoT7.0.0.34-alpha.6.js",revision:"1c3e25ab36db15a509bfb72e9dfddc7a"},{url:"Camview.o4nbp_Qw.0.0.34-alpha.6.js",revision:"726f4a750b4fbfef7b7de71daeb99153"},{url:"compare-versions.DqEOhma6.0.0.34-alpha.6.js",revision:"975622890c8c52cc08cae5b40261000a"},{url:"Config.CQCi3KNu.0.0.34-alpha.6.js",revision:"3c5c11dcba4d1c1954f1ee29cd5a6c40"},{url:"Console.Dkyww3wB.0.0.34-alpha.6.js",revision:"776aaebb70423440abcda8a5167bbad1"},{url:"dijkstrajs.D_NXgYpA.0.0.34-alpha.6.js",revision:"aa5b0e41e1694409c5bed3fabdbde57a"},{url:"dnd-core.DjhjiPK9.0.0.34-alpha.6.js",revision:"274e890bba9605258484a3ea471cdfd0"},{url:"draggabilly.CzAcRWAL.0.0.34-alpha.6.js",revision:"00a5e2b496190eb89c79bf17f6669f82"},{url:"engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js",revision:"3239c19dd1e0d41ef269ca35e1eac23c"},{url:"engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js",revision:"624d075c84ba49aa6891e0e229436a78"},{url:"entities.C20TfXL6.0.0.34-alpha.6.js",revision:"5c9d5aea88d983e506b4a6b8e61c7ec7"},{url:"ev-emitter.DdBIoR-C.0.0.34-alpha.6.js",revision:"eb91a5316472bcda489369975de7ce3d"},{url:"fast-deep-equal.BPvnHGwn.0.0.34-alpha.6.js",revision:"edc54859030a62743ecd41f5977153bd"},{url:"FirstSteps.Bmr0_gA-.0.0.34-alpha.6.js",revision:"f28157dee32af6107add3cc990bfac76"},{url:"fonts/Inter/Inter-Regular.ttf",revision:"ea5879884a95551632e9eb1bba5b2128"},{url:"get-size.D1dS-IaP.0.0.34-alpha.6.js",revision:"d4a71c826a3f2a12a7cdea735caa7da1"},{url:"highlight.js.D0GppvQT.0.0.34-alpha.6.js",revision:"b787a33f4ffa742712799a7ec3e00489"},{url:"hookable.B8xFkYCm.0.0.34-alpha.6.js",revision:"ad2e7fef990d95c2acc8f7f7337fd66e"},{url:"index.html",revision:"1c8e2405dd3108a664aee300eeb861fc"},{url:"linkify-it.BnwKCzGP.0.0.34-alpha.6.js",revision:"18740a6b1c9efc84f946274fe9e22f1a"},{url:"main.CjELdG9A.0.0.34-alpha.6.js",revision:"4773788e884c33682694cf04674d8282"},{url:"markdown-it.BmdsAkr5.0.0.34-alpha.6.js",revision:"480a02c13f6cf4b15d166ff77b7cf2c2"},{url:"mdurl.k9Sl0PQj.0.0.34-alpha.6.js",revision:"0b8be71b53641e6e0706ab65af2abe93"},{url:"NewCamera.Bs1_J7Ad.0.0.34-alpha.6.js",revision:"6d3870a8f742e7f55dd9ba6712cb50a5"},{url:"nprogress.CO0HPuzU.0.0.34-alpha.6.js",revision:"35fd596fbe4fcf712771da761b058d79"},{url:"perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js",revision:"0109366a8a51aa46ffd0b9c5898801f7"},{url:"pinia.CBIup3aH.0.0.34-alpha.6.js",revision:"77f90613cf346411929539105e753f6a"},{url:"Plugin.C8Vz5xoF.0.0.34-alpha.6.js",revision:"ca143c1e535afdd03badcdc7ec804d68"},{url:"Plugins.CZL0KQFh.0.0.34-alpha.6.js",revision:"1e8e29ea0e64a8d00f66135cf25c1caa"},{url:"plugins.DkVCVMms.0.0.34-alpha.6.js",revision:"032b01e0af9a9034c0ed58a591a6e7b1"},{url:"point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.6.js",revision:"68b329da9893e34099c7d8ad5cb9c940"},{url:"punycode.js.Dj65hjkv.0.0.34-alpha.6.js",revision:"f1d63c51dc6b145df21082b261e02a24"},{url:"pwa/apple-splash-landscape-dark-1136x640.png",revision:"c6b193de9bd234c81fdea1d28fe7b88c"},{url:"pwa/apple-splash-landscape-dark-1334x750.png",revision:"d82dd37eb2bdf815c1e2ab367134cbbf"},{url:"pwa/apple-splash-landscape-dark-1792x828.png",revision:"281d292ea4448638bb250a3fca5f5f44"},{url:"pwa/apple-splash-landscape-dark-2048x1536.png",revision:"70f0181b7e075e3b64e261c4d4e3eada"},{url:"pwa/apple-splash-landscape-dark-2160x1620.png",revision:"ee54046f738fe4346d7febbfaa711244"},{url:"pwa/apple-splash-landscape-dark-2208x1242.png",revision:"2989b9f038112f8eed3694fa53b86e6a"},{url:"pwa/apple-splash-landscape-dark-2224x1668.png",revision:"1144751415d9c1f3d1bc34407b9a9539"},{url:"pwa/apple-splash-landscape-dark-2388x1668.png",revision:"e17cbe3b198574eb6fc822c17e22d935"},{url:"pwa/apple-splash-landscape-dark-2436x1125.png",revision:"85613cc4f5040791ef13e4b2a1ecc840"},{url:"pwa/apple-splash-landscape-dark-2532x1170.png",revision:"b89d280148f1bcb816c6364c37daefb6"},{url:"pwa/apple-splash-landscape-dark-2556x1179.png",revision:"02e2914d36b2aaf6da02799414a23738"},{url:"pwa/apple-splash-landscape-dark-2688x1242.png",revision:"dcd13ed9567fa4d98867f5c97cc89695"},{url:"pwa/apple-splash-landscape-dark-2732x2048.png",revision:"dc9fbb966dfc3350466279749c2946d7"},{url:"pwa/apple-splash-landscape-dark-2778x1284.png",revision:"19d1e7a02d9edd3354c61b7c54ea9c1e"},{url:"pwa/apple-splash-landscape-dark-2796x1290.png",revision:"22b9597a28c081730e3430e467b4e36d"},{url:"pwa/apple-splash-landscape-light-1136x640.png",revision:"c9b4c38f0a267051c0c83cc92c0f5767"},{url:"pwa/apple-splash-landscape-light-1334x750.png",revision:"f513cdc13ffaf0c2a82bb207e2a9a397"},{url:"pwa/apple-splash-landscape-light-1792x828.png",revision:"c6e29d789061fc48eb9f3a54cb1950be"},{url:"pwa/apple-splash-landscape-light-2048x1536.png",revision:"1b27b72b070b260eceeaab092a82663d"},{url:"pwa/apple-splash-landscape-light-2160x1620.png",revision:"31ac689a78386cf844e33f10fd5d2029"},{url:"pwa/apple-splash-landscape-light-2208x1242.png",revision:"653857094b0c183908571fea1aed7b2f"},{url:"pwa/apple-splash-landscape-light-2224x1668.png",revision:"ecf0efece27d70815f7401f7f3e40a24"},{url:"pwa/apple-splash-landscape-light-2388x1668.png",revision:"3733608412963cb747e32b2790013523"},{url:"pwa/apple-splash-landscape-light-2436x1125.png",revision:"459b9c158b3a52222787d00a276baa21"},{url:"pwa/apple-splash-landscape-light-2532x1170.png",revision:"b9e11e5a3435cf159f240b5f6da5dc76"},{url:"pwa/apple-splash-landscape-light-2556x1179.png",revision:"3f0efc9e8de850ae5d3a72a158d39055"},{url:"pwa/apple-splash-landscape-light-2688x1242.png",revision:"3757f5338eb50c9f6fb8ad0d72597465"},{url:"pwa/apple-splash-landscape-light-2732x2048.png",revision:"0e5ec355113efe5ce253583209a64bb8"},{url:"pwa/apple-splash-landscape-light-2778x1284.png",revision:"95d2479cf715c2ea0104fd5f55fa62b3"},{url:"pwa/apple-splash-landscape-light-2796x1290.png",revision:"a46e458259177e134ad383d133b29774"},{url:"pwa/apple-splash-portrait-dark-1125x2436.png",revision:"53ddd8644a89bfc79c8d1bfbaa51527b"},{url:"pwa/apple-splash-portrait-dark-1170x2532.png",revision:"476ac5131289040d8d88803c18dc20bb"},{url:"pwa/apple-splash-portrait-dark-1179x2556.png",revision:"8eac224083023d0d21374d9f9087bab5"},{url:"pwa/apple-splash-portrait-dark-1242x2208.png",revision:"1b7f03eaab3cf8af8aa6057fd97278d8"},{url:"pwa/apple-splash-portrait-dark-1242x2688.png",revision:"c56eb0a4a8b4c7bb850cbfc35dd62bba"},{url:"pwa/apple-splash-portrait-dark-1284x2778.png",revision:"d7230994de3c4c6016ac252431031ea7"},{url:"pwa/apple-splash-portrait-dark-1290x2796.png",revision:"e7f2a468891736413b1e0622a510fd5a"},{url:"pwa/apple-splash-portrait-dark-1536x2048.png",revision:"0b26c0a578f6b13b3df06abecc81fb82"},{url:"pwa/apple-splash-portrait-dark-1620x2160.png",revision:"1a9f84fba88d4cd5924cf5a39d541b46"},{url:"pwa/apple-splash-portrait-dark-1668x2224.png",revision:"1e7b39c9f5fdca7ddf23c1248f7628bf"},{url:"pwa/apple-splash-portrait-dark-1668x2388.png",revision:"fb7fb372580598abf8a1d8eb7305462a"},{url:"pwa/apple-splash-portrait-dark-2048x2732.png",revision:"60acb5fbde5bb76a368238c5e079c717"},{url:"pwa/apple-splash-portrait-dark-640x1136.png",revision:"b901a6f04ef976aa81573ec0f3c8f32b"},{url:"pwa/apple-splash-portrait-dark-750x1334.png",revision:"54f99ba556f7cc149eb03fe6207d411d"},{url:"pwa/apple-splash-portrait-dark-828x1792.png",revision:"543d10f74f6f098e49ba989899182dee"},{url:"pwa/apple-splash-portrait-light-1125x2436.png",revision:"1a02e33add13bccc9f407efcfd2cf890"},{url:"pwa/apple-splash-portrait-light-1170x2532.png",revision:"58d656b4de9b32a09fc2ea1028116dfb"},{url:"pwa/apple-splash-portrait-light-1179x2556.png",revision:"8d1fc622bdb48dda2461e4f47a49249a"},{url:"pwa/apple-splash-portrait-light-1242x2208.png",revision:"8fd1367cac03e5798973cfa4e0dec5b0"},{url:"pwa/apple-splash-portrait-light-1242x2688.png",revision:"2b320f74bc7da7bf0d1be699183416c3"},{url:"pwa/apple-splash-portrait-light-1284x2778.png",revision:"461b13cf0d9c293ca220700bb4148afa"},{url:"pwa/apple-splash-portrait-light-1290x2796.png",revision:"d57711837cf7e3801a9e8126b1695aaa"},{url:"pwa/apple-splash-portrait-light-1536x2048.png",revision:"42716fc23cfa58d3f154fea1875eb3f5"},{url:"pwa/apple-splash-portrait-light-1620x2160.png",revision:"41bdc2c492d374bf8c6b6875e2beb9f1"},{url:"pwa/apple-splash-portrait-light-1668x2224.png",revision:"a1b5adab2a71d0fa646e7b0e9a4fcb71"},{url:"pwa/apple-splash-portrait-light-1668x2388.png",revision:"5db134deca3d2e8a1ae2d8e67c77c420"},{url:"pwa/apple-splash-portrait-light-2048x2732.png",revision:"cf9c75c2e56f8d3af7d914a00ce30286"},{url:"pwa/apple-splash-portrait-light-640x1136.png",revision:"588e312fd0851d5767972a1efc33e6a3"},{url:"pwa/apple-splash-portrait-light-750x1334.png",revision:"191c785b1e7b47ac1b1d6bc2a84bde85"},{url:"pwa/apple-splash-portrait-light-828x1792.png",revision:"8deb1063185df6a2d3089a9fa33f6ad1"},{url:"pwa/apple-touch-icon-180x180.png",revision:"91aec7b3a553812fbd3cd72adb17fcc4"},{url:"pwa/favicon-16.ico",revision:"163ae861c5ab9f68ed21324c19dfe35d"},{url:"pwa/favicon-32.ico",revision:"874b054da3800e7c320445396a49de81"},{url:"pwa/favicon-48.ico",revision:"ae2747aeae28b34eed33001c91ec2f3b"},{url:"pwa/favicon-64.ico",revision:"6a697d7662ab5ee246918cdc7c412343"},{url:"pwa/logo.svg",revision:"1aa262f4a37293a91083eea10794d2ca"},{url:"pwa/maskable-icon-1240x600.png",revision:"f3188c7d8e5038f28068c7a3632dbe4b"},{url:"pwa/maskable-icon-512x512.png",revision:"e716feaa60f08d95d0909e1c85bf1f98"},{url:"pwa/maskable-icon-620x300.png",revision:"b4954ceadf0d6f2095c45f8cc8240337"},{url:"pwa/pwa-1024x1024.png",revision:"1ed367ae76416e79fd0bdd6ee70666bc"},{url:"pwa/pwa-120x120.png",revision:"3f5ec31f6bd07910482227b259344110"},{url:"pwa/pwa-144x144.png",revision:"4fdf5c8fb085f764ed7dd5a26698bff5"},{url:"pwa/pwa-152x152.png",revision:"4cf41c7b603d382e83e098affb7cb9da"},{url:"pwa/pwa-167x167.png",revision:"de6a5ca921b45fb3bd30d27c707981c6"},{url:"pwa/pwa-180x180.png",revision:"225b42752632e2866c4f8fe4ab2f62ee"},{url:"pwa/pwa-192x192.png",revision:"3d58c2dd940c535cc166cc8d0844429d"},{url:"pwa/pwa-24x24.png",revision:"bdb25f68ca300283b37041e47d3e6ba8"},{url:"pwa/pwa-300x300.png",revision:"7f79d74e34aedef57c98a1c9c156ba6b"},{url:"pwa/pwa-36x36.png",revision:"4d08bb198d4e54e4d12a0810fc59f059"},{url:"pwa/pwa-48x48.png",revision:"97d7369c892f1e0914c2617ff26feb3c"},{url:"pwa/pwa-50x50.png",revision:"a20fc2e6f26aa548f9cae07911087f6c"},{url:"pwa/pwa-64x64.png",revision:"f57763be3212fd4154c502d607e7ed38"},{url:"pwa/pwa-72x72.png",revision:"66698bb499639052ad337f7e9a7d7ea8"},{url:"pwa/pwa-88x88.png",revision:"6e8af0a85b0627a835b62067d5189cb4"},{url:"pwa/pwa-96x96.png",revision:"675ea863c25fa9ae31d4d76a47463c78"},{url:"qrcode.BgXQ059Y.0.0.34-alpha.6.js",revision:"d0449e32f2889850dacdd0a20de28438"},{url:"react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.6.js",revision:"75632bc200537797d2c878cacede62a5"},{url:"react-dnd-touch-backend.CuSdTpqi.0.0.34-alpha.6.js",revision:"cbe7e120a3ba1e813df8bdd309c0ecb0"},{url:"Recordings.B6pZqLF3.0.0.34-alpha.6.js",revision:"d6c66f51ef35119c6e8565e69cff80f6"},{url:"Recordings.BEvZE5cV.0.0.34-alpha.6.js",revision:"a906b586ac09a6225b3a0befb9d56bbe"},{url:"redux.CuxFRhX_.0.0.34-alpha.6.js",revision:"0fb9d1a1041755430923c52117ee1e4b"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"robots.txt",revision:"f77c87f977e0fcce05a6df46c885a129"},{url:"rxjs.DKQuv6LI.0.0.34-alpha.6.js",revision:"4011c2430228a203690a2368e25ee615"},{url:"Settings.C997IgdZ.0.0.34-alpha.6.js",revision:"f8e110114a349ceddbd583c1bdc9dcc2"},{url:"socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js",revision:"717ce0d6db219fef6cc3c8addc503103"},{url:"socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js",revision:"e1e0fca412d3b8c9d1c10de20d34471e"},{url:"sweepline-intersections.l0sNRNKZ.0.0.34-alpha.6.js",revision:"68b329da9893e34099c7d8ad5cb9c940"},{url:"system.DBHlJaL3.0.0.34-alpha.6.js",revision:"e7bf7189d3dde936c04f66b026837743"},{url:"System.DuQ37voG.0.0.34-alpha.6.js",revision:"28dc3711888d6bdb8bf02bdabb14581f"},{url:"tslib.9k7AwCpt.0.0.34-alpha.6.js",revision:"1c62ff7f1693c3ed04fd51c1e62f776f"},{url:"types.Cz9TaZAP.0.0.34-alpha.6.js",revision:"6651b30bd060dade2f1c3730202c508c"},{url:"uc.micro.kMc2yuuw.0.0.34-alpha.6.js",revision:"b6324b1a6b3dbbd69ffcb57015217b4a"},{url:"unidragger.bJ3WxeD3.0.0.34-alpha.6.js",revision:"518a376f1d0abd21ee9804bb0277ac79"},{url:"User.DlMcGeNz.0.0.34-alpha.6.js",revision:"3a7a9ed72c7f57f7a32a9594b4a85358"},{url:"utils.mAKpSMLY.0.0.34-alpha.6.js",revision:"c5d20a1a0605a78b11d5fe60abe5ab70"},{url:"uuid.DvF23Exx.0.0.34-alpha.6.js",revision:"a256a1ba1ffec8623c41723b4de020c1"},{url:"VConfigEditor.vue_vue_type_script_setup_true_lang.xZXGs5pk.0.0.34-alpha.6.js",revision:"41b9c9a1c9d7ac727fe696f4af0f2783"},{url:"VConsole.DNiPpzW6.0.0.34-alpha.6.js",revision:"ae6fb3e92a93708ae087e9d1c88bdd26"},{url:"vee-validate.CghN0yPF.0.0.34-alpha.6.js",revision:"eb091c49917d35df8559b407b769229d"},{url:"VPlayer.CUKkadJU.0.0.34-alpha.6.js",revision:"1a559d5450f6a7a0ffc823cc0590df58"},{url:"VPluginCard.B7M71ABH.0.0.34-alpha.6.js",revision:"3b7cc87d0dd6a3b54f5261ce5aa86b74"},{url:"vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js",revision:"7f4c1821f794316c32de789b71d2f12c"},{url:"vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js",revision:"3217c31577d8d86675b91975dbe3055d"},{url:"vue-router.DbntwPAd.0.0.34-alpha.6.js",revision:"f74c1c9bc30bd14fd36a1d4885717a41"},{url:"vue.l0sNRNKZ.0.0.34-alpha.6.js",revision:"68b329da9893e34099c7d8ad5cb9c940"},{url:"vue3-apexcharts.Ep6IiXnK.0.0.34-alpha.6.js",revision:"492ad3da5f4204931148dbe0312ab86a"},{url:"vue3-dnd._duUsn6W.0.0.34-alpha.6.js",revision:"798bf075e121b0713ffe4bd3ef85d60a"},{url:"vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js",revision:"13f7df4d919499c922b03d728a09d514"},{url:"vuetify.dlIDGkOi.0.0.34-alpha.6.js",revision:"69766aca66179c736ca71505528f0af4"},{url:"zod.DnW1_kUe.0.0.34-alpha.6.js",revision:"96742c2bb8ffd5e9ac68834362d33838"},{url:"pwa/maskable-icon-1240x600.png",revision:"f3188c7d8e5038f28068c7a3632dbe4b"},{url:"pwa/maskable-icon-512x512.png",revision:"e716feaa60f08d95d0909e1c85bf1f98"},{url:"pwa/maskable-icon-620x300.png",revision:"b4954ceadf0d6f2095c45f8cc8240337"},{url:"pwa/pwa-1024x1024.png",revision:"1ed367ae76416e79fd0bdd6ee70666bc"},{url:"pwa/pwa-120x120.png",revision:"3f5ec31f6bd07910482227b259344110"},{url:"pwa/pwa-144x144.png",revision:"4fdf5c8fb085f764ed7dd5a26698bff5"},{url:"pwa/pwa-152x152.png",revision:"4cf41c7b603d382e83e098affb7cb9da"},{url:"pwa/pwa-167x167.png",revision:"de6a5ca921b45fb3bd30d27c707981c6"},{url:"pwa/pwa-180x180.png",revision:"225b42752632e2866c4f8fe4ab2f62ee"},{url:"pwa/pwa-192x192.png",revision:"3d58c2dd940c535cc166cc8d0844429d"},{url:"pwa/pwa-24x24.png",revision:"bdb25f68ca300283b37041e47d3e6ba8"},{url:"pwa/pwa-300x300.png",revision:"7f79d74e34aedef57c98a1c9c156ba6b"},{url:"pwa/pwa-36x36.png",revision:"4d08bb198d4e54e4d12a0810fc59f059"},{url:"pwa/pwa-48x48.png",revision:"97d7369c892f1e0914c2617ff26feb3c"},{url:"pwa/pwa-50x50.png",revision:"a20fc2e6f26aa548f9cae07911087f6c"},{url:"pwa/pwa-64x64.png",revision:"f57763be3212fd4154c502d607e7ed38"},{url:"pwa/pwa-72x72.png",revision:"66698bb499639052ad337f7e9a7d7ea8"},{url:"pwa/pwa-88x88.png",revision:"6e8af0a85b0627a835b62067d5189cb4"},{url:"pwa/pwa-96x96.png",revision:"675ea863c25fa9ae31d4d76a47463c78"},{url:"manifest.webmanifest",revision:"ad90fad55e9565ed75e1d264f1ad5f24"}],{}),a.cleanupOutdatedCaches(),a.registerRoute(new a.NavigationRoute(a.createHandlerBoundToURL("index.html")))}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var m=Object.defineProperty;var l=(t,e,r)=>e in t?m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var c=(t,e,r)=>l(t,typeof e!="symbol"?e+"":e,r);import{i as a}from"./vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js";import{x as s,i as o}from"./main.CjELdG9A.0.0.34-alpha.6.js";import{u as d,a as u,b as n}from"./@tanstack.COISQUaa.0.0.34-alpha.6.js";import{r as p}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";const g=async()=>(await s.get("/system")).data,Q=async t=>(await s.patch("/system",t)).data,f=async({pluginData:t})=>(await s.post("/system/update",t)).data,w=async({signal:t})=>(await s.get("/system/version",{signal:t})).data,b=async()=>(await s.delete("/system/log")).data,q=async({signal:t})=>(await s.get("/system/log/download",{signal:t})).data,v=async()=>(await s.post("/system/cert",{responseType:"arraybuffer"})).data,h=async({signal:t})=>(await s.get("/system/go2rtc",{signal:t})).data,F=async()=>(await s.put("/system/restart")).data,S=async()=>(await s.put("/system/restart/go2rtc")).data;class L{constructor(){c(this,"_queryClient",d());c(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 u({queryKey:["system"],queryFn:g})}patchSystemInfoQuery(){return n({mutationFn:Q,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["system"],exact:!0}),a.success(o.global.t("components.toast.server_updated"))}})}updateServerQuery(){return n({mutationFn:f,onSuccess:async()=>{a.success(o.global.t("components.toast.server_updated"))}})}downloadLogQuery(){return u({queryKey:["logs","system"],queryFn:({signal:e})=>q({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="downloadLogQuery"&&e.enabled)})}downloadCertQuery(){return n({mutationFn:v})}clearLogQuery(){return n({mutationFn:b,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["logs","system"],exact:!0}),a.success(o.global.t("components.toast.log_cleared"))}})}checkVersionQuery(){return u({queryKey:["version"],queryFn:({signal:e})=>w({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="checkVersionQuery"&&e.enabled)})}getGo2RtcInfoQuery(){return u({queryKey:["go2rtc"],queryFn:({signal:e})=>h({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getGo2RtcInfoQuery"&&e.enabled)})}restartGo2RtcQuery(){return n({mutationFn:S,onSuccess:async()=>{a.success(o.global.t("components.toast.go2rtc_restarted"))}})}restartServerQuery(){return n({mutationFn:F,onSuccess:async()=>{a.success(o.global.t("components.toast.server_restarted"))}})}toggleQueryActivator(e,r){const y=this.queryActivator.value.find(i=>i.name===e);y&&(y.enabled=r)}}export{L as S,v as d,F as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var l=function(r,t){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])},l(r,t)};function c(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");l(r,t);function n(){this.constructor=r}r.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function s(r){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(r,t){var n=typeof Symbol=="function"&&r[Symbol.iterator];if(!n)return r;var e=n.call(r),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=e.next()).done;)i.push(o.value)}catch(u){a={error:u}}finally{try{o&&!o.done&&(n=e.return)&&n.call(e)}finally{if(a)throw a.error}}return i}function p(r,t,n){if(n||arguments.length===2)for(var e=0,o=t.length,i;e<o;e++)(i||!(e in t))&&(i||(i=Array.prototype.slice.call(t,0,e)),i[e]=t[e]);return r.concat(i||Array.prototype.slice.call(t))}export{s as _,p as a,f as b,c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(r=>(r.READY="ready",r.STARTING="starting",r.STARTED="started",r.STOPPED="stopped",r.ERROR="error",r.UNKNOWN="unknown",r.DISABLED="disabled",r))(e||{});export{e as P};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const u=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D=/[\0-\x1F\x7F-\x9F]/,F=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,E=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,C=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,A=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,B=Object.freeze(Object.defineProperty({__proto__:null,Any:u,Cc:D,Cf:F,P:E,S:C,Z:A},Symbol.toStringTag,{value:"Module"}));export{u as A,D as C,E as P,A as Z,C as r,B as u};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{c as E}from"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import{r as v}from"./ev-emitter.DdBIoR-C.0.0.34-alpha.6.js";var u={exports:{}};/*!
|
|
2
|
-
* Unidragger v3.0.1
|
|
3
|
-
* Draggable base class
|
|
4
|
-
* MIT license
|
|
5
|
-
*/var f;function T(){return f||(f=1,function(a){(function(r,o){a.exports?a.exports=o(r,v()):r.Unidragger=o(r,r.EvEmitter)})(typeof window<"u"?window:E,function(o,g){function p(){}let n=p.prototype=Object.create(g.prototype);n.handleEvent=function(t){let i="on"+t.type;this[i]&&this[i](t)};let h,s;"ontouchstart"in o?(h="touchstart",s=["touchmove","touchend","touchcancel"]):o.PointerEvent?(h="pointerdown",s=["pointermove","pointerup","pointercancel"]):(h="mousedown",s=["mousemove","mouseup"]),n.touchActionValue="none",n.bindHandles=function(){this._bindHandles("addEventListener",this.touchActionValue)},n.unbindHandles=function(){this._bindHandles("removeEventListener","")},n._bindHandles=function(t,i){this.handles.forEach(e=>{e[t](h,this),e[t]("click",this),o.PointerEvent&&(e.style.touchAction=i)})},n.bindActivePointerEvents=function(){s.forEach(t=>{o.addEventListener(t,this)})},n.unbindActivePointerEvents=function(){s.forEach(t=>{o.removeEventListener(t,this)})},n.withPointer=function(t,i){i.pointerId===this.pointerIdentifier&&this[t](i,i)},n.withTouch=function(t,i){let e;for(let c of i.changedTouches)c.identifier===this.pointerIdentifier&&(e=c);e&&this[t](i,e)},n.onmousedown=function(t){this.pointerDown(t,t)},n.ontouchstart=function(t){this.pointerDown(t,t.changedTouches[0])},n.onpointerdown=function(t){this.pointerDown(t,t)};const d=["TEXTAREA","INPUT","SELECT","OPTION"],l=["radio","checkbox","button","submit","image","file"];return n.pointerDown=function(t,i){let e=d.includes(t.target.nodeName),c=l.includes(t.target.type),m=!e||c;!this.isPointerDown&&!t.button&&m&&(this.isPointerDown=!0,this.pointerIdentifier=i.pointerId!==void 0?i.pointerId:i.identifier,this.pointerDownPointer={pageX:i.pageX,pageY:i.pageY},this.bindActivePointerEvents(),this.emitEvent("pointerDown",[t,i]))},n.onmousemove=function(t){this.pointerMove(t,t)},n.onpointermove=function(t){this.withPointer("pointerMove",t)},n.ontouchmove=function(t){this.withTouch("pointerMove",t)},n.pointerMove=function(t,i){let e={x:i.pageX-this.pointerDownPointer.pageX,y:i.pageY-this.pointerDownPointer.pageY};this.emitEvent("pointerMove",[t,i,e]),!this.isDragging&&this.hasDragStarted(e)&&this.dragStart(t,i),this.isDragging&&this.dragMove(t,i,e)},n.hasDragStarted=function(t){return Math.abs(t.x)>3||Math.abs(t.y)>3},n.dragStart=function(t,i){this.isDragging=!0,this.isPreventingClicks=!0,this.emitEvent("dragStart",[t,i])},n.dragMove=function(t,i,e){this.emitEvent("dragMove",[t,i,e])},n.onmouseup=function(t){this.pointerUp(t,t)},n.onpointerup=function(t){this.withPointer("pointerUp",t)},n.ontouchend=function(t){this.withTouch("pointerUp",t)},n.pointerUp=function(t,i){this.pointerDone(),this.emitEvent("pointerUp",[t,i]),this.isDragging?this.dragEnd(t,i):this.staticClick(t,i)},n.dragEnd=function(t,i){this.isDragging=!1,setTimeout(()=>delete this.isPreventingClicks),this.emitEvent("dragEnd",[t,i])},n.pointerDone=function(){this.isPointerDown=!1,delete this.pointerIdentifier,this.unbindActivePointerEvents(),this.emitEvent("pointerDone")},n.onpointercancel=function(t){this.withPointer("pointerCancel",t)},n.ontouchcancel=function(t){this.withTouch("pointerCancel",t)},n.pointerCancel=function(t,i){this.pointerDone(),this.emitEvent("pointerCancel",[t,i])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n.staticClick=function(t,i){let e=t.type==="mouseup";e&&this.isIgnoringMouseUp||(this.emitEvent("staticClick",[t,i]),e&&(this.isIgnoringMouseUp=!0,setTimeout(()=>{delete this.isIgnoringMouseUp},400)))},p})}(u)),u.exports}export{T as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(e){return new Promise(s=>setTimeout(s,e))}export{t as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var u=[];for(var o=0;o<256;++o)u.push((o+256).toString(16).slice(1));function c(n,d=0){return(u[n[d+0]]+u[n[d+1]]+u[n[d+2]]+u[n[d+3]]+"-"+u[n[d+4]]+u[n[d+5]]+"-"+u[n[d+6]]+u[n[d+7]]+"-"+u[n[d+8]]+u[n[d+9]]+"-"+u[n[d+10]]+u[n[d+11]]+u[n[d+12]]+u[n[d+13]]+u[n[d+14]]+u[n[d+15]]).toLowerCase()}var e,p=new Uint8Array(16);function y(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(p)}var i=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const r={randomUUID:i};function m(n,d,a){if(r.randomUUID&&!d&&!n)return r.randomUUID();n=n||{};var t=n.random||(n.rng||y)();return t[6]=t[6]&15|64,t[8]=t[8]&63|128,c(t)}export{m as v};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{G as Vt,B as ge,c as A,K as pt,L as St,M as m,u as P,x as _t,A as Te,N as Xe,i as Pe,w as Oe,O as Wt,r as le,E as we,n as se,C as qt,F as Ht,a as Gt,D as Kt}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";/**
|
|
2
|
-
* vee-validate v4.14.5
|
|
3
|
-
* (c) 2024 Abdelrahman Awad
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/function L(e){return typeof e=="function"}function jt(e){return e==null}const Ve=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function et(e){return Number(e)>=0}function Yt(e){const t=parseFloat(e);return isNaN(t)?e:t}function Xt(e){return typeof e=="object"&&e!==null}function xt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function st(e){if(!Xt(e)||xt(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ee(e,t){return Object.keys(t).forEach(n=>{if(st(t[n])&&st(e[n])){e[n]||(e[n]={}),Ee(e[n],t[n]);return}e[n]=t[n]}),e}function Ae(e){const t=e.split(".");if(!t.length)return"";let n=String(t[0]);for(let r=1;r<t.length;r++){if(et(t[r])){n+=`[${t[r]}]`;continue}n+=`.${t[r]}`}return n}const Jt={};function Qt(e){return Jt[e]}function dt(e,t,n){typeof n.value=="object"&&(n.value=j(n.value)),!n.enumerable||n.get||n.set||!n.configurable||!n.writable||t==="__proto__"?Object.defineProperty(e,t,n):e[t]=n.value}function j(e){if(typeof e!="object")return e;var t=0,n,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(v){l.add(j(v))})):u==="[object Map]"?(l=new Map,e.forEach(function(v,c){l.set(j(c),j(v))})):u==="[object Date]"?l=new Date(+e):u==="[object RegExp]"?l=new RegExp(e.source,e.flags):u==="[object DataView]"?l=new e.constructor(j(e.buffer)):u==="[object ArrayBuffer]"?l=e.slice(0):u.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(r=Object.getOwnPropertySymbols(e);t<r.length;t++)dt(l,r[t],Object.getOwnPropertyDescriptor(e,r[t]));for(t=0,r=Object.getOwnPropertyNames(e);t<r.length;t++)Object.hasOwnProperty.call(l,n=r[t])&&l[n]===e[n]||dt(l,n,Object.getOwnPropertyDescriptor(e,n))}return l||e}const tt=Symbol("vee-validate-form"),Zt=Symbol("vee-validate-form-context"),en=Symbol("vee-validate-field-instance"),Be=Symbol("Default empty value"),tn=typeof window<"u";function xe(e){return L(e)&&!!e.__locatorRef}function ue(e){return!!e&&L(e.parse)&&e.__type==="VVTypedSchema"}function ke(e){return!!e&&L(e.validate)}function Fe(e){return e==="checkbox"||e==="radio"}function nn(e){return Ve(e)||Array.isArray(e)}function rn(e){return Array.isArray(e)?e.length===0:Ve(e)&&Object.keys(e).length===0}function Re(e){return/^\[.+\]$/i.test(e)}function an(e){return At(e)&&e.multiple}function At(e){return e.tagName==="SELECT"}function ln(e,t){const n=![!1,null,void 0,0].includes(t.multiple)&&!Number.isNaN(t.multiple);return e==="select"&&"multiple"in t&&n}function un(e,t){return!ln(e,t)&&t.type!=="file"&&!Fe(t.type)}function Et(e){return nt(e)&&e.target&&"submit"in e.target}function nt(e){return e?!!(typeof Event<"u"&&L(Event)&&e instanceof Event||e&&e.srcElement):!1}function ct(e,t){return t in e&&e[t]!==Be}function K(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,l;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!K(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!K(r[1],t.get(r[0])))return!1;return!0}if(vt(e)&&vt(t))return!(e.size!==t.size||e.name!==t.name||e.lastModified!==t.lastModified||e.type!==t.type);if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(l=Object.keys(e),n=l.length-ft(e,l),n!==Object.keys(t).length-ft(t,Object.keys(t)))return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[r]))return!1;for(r=n;r--!==0;){var u=l[r];if(!K(e[u],t[u]))return!1}return!0}return e!==e&&t!==t}function ft(e,t){let n=0;for(let l=t.length;l--!==0;){var r=t[l];e[r]===void 0&&n++}return n}function vt(e){return tn?e instanceof File:!1}function rt(e){return Re(e)?e.replace(/\[|\]/gi,""):e}function J(e,t,n){return e?Re(t)?e[rt(t)]:(t||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,u)=>nn(l)&&u in l?l[u]:n,e):n}function ve(e,t,n){if(Re(t)){e[rt(t)]=n;return}const r=t.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let u=0;u<r.length;u++){if(u===r.length-1){l[r[u]]=n;return}(!(r[u]in l)||jt(l[r[u]]))&&(l[r[u]]=et(r[u+1])?[]:{}),l=l[r[u]]}}function Ke(e,t){if(Array.isArray(e)&&et(t)){e.splice(Number(t),1);return}Ve(e)&&delete e[t]}function ht(e,t){if(Re(t)){delete e[rt(t)];return}const n=t.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let u=0;u<n.length;u++){if(u===n.length-1){Ke(r,n[u]);break}if(!(n[u]in r)||jt(r[n[u]]))break;r=r[n[u]]}const l=n.map((u,v)=>J(e,n.slice(0,v).join(".")));for(let u=l.length-1;u>=0;u--)if(rn(l[u])){if(u===0){Ke(e,n[0]);continue}Ke(l[u-1],n[u-1])}}function ee(e){return Object.keys(e)}function Ft(e,t=void 0){const n=Te();return(n==null?void 0:n.provides[e])||Gt(e,t)}function mt(e,t,n){if(Array.isArray(e)){const r=[...e],l=r.findIndex(u=>K(u,t));return l>=0?r.splice(l,1):r.push(t),r}return K(e,t)?n:t}function yt(e,t=0){let n=null,r=[];return function(...l){return n&&clearTimeout(n),n=setTimeout(()=>{const u=e(...l);r.forEach(v=>v(u)),r=[]},t),new Promise(u=>r.push(u))}}function on(e,t){return Ve(t)&&t.number?Yt(e):e}function Je(e,t){let n;return async function(...l){const u=e(...l);n=u;const v=await u;return u!==n?v:(n=void 0,t(v,l))}}function Qe(e){return Array.isArray(e)?e:e?[e]:[]}function Ce(e,t){const n={};for(const r in e)t.includes(r)||(n[r]=e[r]);return n}function sn(e){let t=null,n=[];return function(...r){const l=se(()=>{if(t!==l)return;const u=e(...r);n.forEach(v=>v(u)),n=[],t=null});return t=l,new Promise(u=>n.push(u))}}function It(e,t,n){return t.slots.default?typeof e=="string"||!e?t.slots.default(n()):{default:()=>{var r,l;return(l=(r=t.slots).default)===null||l===void 0?void 0:l.call(r,n())}}:t.slots.default}function Ye(e){if(Ct(e))return e._value}function Ct(e){return"_value"in e}function dn(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Ne(e){if(!nt(e))return e;const t=e.target;if(Fe(t.type)&&Ct(t))return Ye(t);if(t.type==="file"&&t.files){const n=Array.from(t.files);return t.multiple?n:n[0]}if(an(t))return Array.from(t.options).filter(n=>n.selected&&!n.disabled).map(Ye);if(At(t)){const n=Array.from(t.options).find(r=>r.selected);return n?Ye(n):t.value}return dn(t)}function Mt(e){const t={};return Object.defineProperty(t,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?Ve(e)&&e._$$isNormalized?e:Ve(e)?Object.keys(e).reduce((n,r)=>{const l=cn(e[r]);return e[r]!==!1&&(n[r]=gt(l)),n},t):typeof e!="string"?t:e.split("|").reduce((n,r)=>{const l=fn(r);return l.name&&(n[l.name]=gt(l.params)),n},t):t}function cn(e){return e===!0?[]:Array.isArray(e)||Ve(e)?e:[e]}function gt(e){const t=n=>typeof n=="string"&&n[0]==="@"?vn(n.slice(1)):n;return Array.isArray(e)?e.map(t):e instanceof RegExp?[e]:Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{})}const fn=e=>{let t=[];const n=e.split(":")[0];return e.includes(":")&&(t=e.split(":").slice(1).join(":").split(",")),{name:n,params:t}};function vn(e){const t=n=>{var r;return(r=J(n,e))!==null&&r!==void 0?r:n[e]};return t.__locatorRef=e,t}function hn(e){return Array.isArray(e)?e.filter(xe):ee(e).filter(t=>xe(e[t])).map(t=>e[t])}const mn={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let yn=Object.assign({},mn);const be=()=>yn;async function Pt(e,t,n={}){const r=n==null?void 0:n.bails,l={name:(n==null?void 0:n.name)||"{field}",rules:t,label:n==null?void 0:n.label,bails:r??!0,formData:(n==null?void 0:n.values)||{}},u=await gn(l,e);return Object.assign(Object.assign({},u),{valid:!u.errors.length})}async function gn(e,t){const n=e.rules;if(ue(n)||ke(n))return On(t,Object.assign(Object.assign({},e),{rules:n}));if(L(n)||Array.isArray(n)){const c={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:t},s=Array.isArray(n)?n:[n],d=s.length,_=[];for(let O=0;O<d;O++){const E=s[O],b=await E(t,c);if(!(typeof b!="string"&&!Array.isArray(b)&&b)){if(Array.isArray(b))_.push(...b);else{const G=typeof b=="string"?b:Bt(c);_.push(G)}if(e.bails)return{errors:_}}}return{errors:_}}const r=Object.assign(Object.assign({},e),{rules:Mt(n)}),l=[],u=Object.keys(r.rules),v=u.length;for(let c=0;c<v;c++){const s=u[c],d=await Vn(r,t,{name:s,params:r.rules[s]});if(d.error&&(l.push(d.error),e.bails))return{errors:l}}return{errors:l}}function bn(e){return!!e&&e.name==="ValidationError"}function wt(e){return{__type:"VVTypedSchema",async parse(n,r){var l;try{return{output:await e.validate(n,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(u){if(!bn(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 v=u.inner.reduce((c,s)=>{const d=s.path||"";return c[d]||(c[d]={errors:[],path:d}),c[d].errors.push(...s.errors),c},{});return{errors:Object.values(v)}}}}}async function On(e,t){const r=await(ue(t.rules)?t.rules:wt(t.rules)).parse(e,{formData:t.formData}),l=[];for(const u of r.errors)u.errors.length&&l.push(...u.errors);return{value:r.value,errors:l}}async function Vn(e,t,n){const r=Qt(n.name);if(!r)throw new Error(`No such validator '${n.name}' exists.`);const l=pn(n.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:t,form:e.formData,rule:Object.assign(Object.assign({},n),{params:l})},v=await r(t,l,u);return typeof v=="string"?{error:v}:{error:v?void 0:Bt(u)}}function Bt(e){const t=be().generateMessage;return t?t(e):"Field is invalid"}function pn(e,t){const n=r=>xe(r)?r(t):r;return Array.isArray(e)?e.map(n):Object.keys(e).reduce((r,l)=>(r[l]=n(e[l]),r),{})}async function Sn(e,t){const r=await(ue(e)?e:wt(e)).parse(j(t),{formData:j(t)}),l={},u={};for(const v of r.errors){const c=v.errors,s=(v.path||"").replace(/\["(\d+)"\]/g,(d,_)=>`[${_}]`);l[s]={valid:!c.length,errors:c},c.length&&(u[s]=c[0])}return{valid:!r.errors.length,results:l,errors:u,values:r.value,source:"schema"}}async function _n(e,t,n){const l=ee(e).map(async d=>{var _,O,E;const b=(_=n==null?void 0:n.names)===null||_===void 0?void 0:_[d],B=await Pt(J(t,d),e[d],{name:(b==null?void 0:b.name)||d,label:b==null?void 0:b.label,values:t,bails:(E=(O=n==null?void 0:n.bailsMap)===null||O===void 0?void 0:O[d])!==null&&E!==void 0?E:!0});return Object.assign(Object.assign({},B),{path:d})});let u=!0;const v=await Promise.all(l),c={},s={};for(const d of v)c[d.path]={valid:d.valid,errors:d.errors},d.valid||(u=!1,s[d.path]=d.errors[0]);return{valid:u,results:c,errors:s,source:"schema"}}let bt=0;function jn(e,t){const{value:n,initialValue:r,setInitialValue:l}=An(e,t.modelValue,t.form);if(!t.form){let s=function(b){var B;"value"in b&&(n.value=b.value),"errors"in b&&_(b.errors),"touched"in b&&(E.touched=(B=b.touched)!==null&&B!==void 0?B:E.touched),"initialValue"in b&&l(b.initialValue)};const{errors:d,setErrors:_}=In(),O=bt>=Number.MAX_SAFE_INTEGER?0:++bt,E=Fn(n,r,d,t.schema);return{id:O,path:e,value:n,initialValue:r,meta:E,flags:{pendingUnmount:{[O]:!1},pendingReset:!1},errors:d,setState:s}}const u=t.form.createPathState(e,{bails:t.bails,label:t.label,type:t.type,validate:t.validate,schema:t.schema}),v=A(()=>u.errors);function c(s){var d,_,O;"value"in s&&(n.value=s.value),"errors"in s&&((d=t.form)===null||d===void 0||d.setFieldError(P(e),s.errors)),"touched"in s&&((_=t.form)===null||_===void 0||_.setFieldTouched(P(e),(O=s.touched)!==null&&O!==void 0?O:!1)),"initialValue"in s&&l(s.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:n,errors:v,meta:u,initialValue:r,flags:u.__flags,setState:c}}function An(e,t,n){const r=le(P(t));function l(){return n?J(n.initialValues.value,P(e),P(r)):P(r)}function u(d){if(!n){r.value=d;return}n.setFieldInitialValue(P(e),d,!0)}const v=A(l);if(!n)return{value:le(l()),initialValue:v,setInitialValue:u};const c=En(t,n,v,e);return n.stageInitialValue(P(e),c,!0),{value:A({get(){return J(n.values,P(e))},set(d){n.setFieldValue(P(e),d,!1)}}),initialValue:v,setInitialValue:u}}function En(e,t,n,r){return Pe(e)?P(e):e!==void 0?e:J(t.values,P(r),P(n))}function Fn(e,t,n,r){const l=A(()=>{var v,c,s;return(s=(c=(v=m(r))===null||v===void 0?void 0:v.describe)===null||c===void 0?void 0:c.call(v).required)!==null&&s!==void 0?s:!1}),u=we({touched:!1,pending:!1,valid:!0,required:l,validated:!!P(n).length,initialValue:A(()=>P(t)),dirty:A(()=>!K(P(e),P(t)))});return Oe(n,v=>{u.valid=!v.length},{immediate:!0,flush:"sync"}),u}function In(){const e=le([]);return{errors:e,setErrors:t=>{e.value=Qe(t)}}}function Cn(e,t,n){return Fe(n==null?void 0:n.type)?Pn(e,t,n):kt(e,t,n)}function kt(e,t,n){const{initialValue:r,validateOnMount:l,bails:u,type:v,checkedValue:c,label:s,validateOnValueUpdate:d,uncheckedValue:_,controlled:O,keepValueOnUnmount:E,syncVModel:b,form:B}=Mn(n),G=O?Ft(tt):void 0,V=B||G,$=A(()=>Ae(m(e))),R=A(()=>{if(m(V==null?void 0:V.schema))return;const S=P(t);return ke(S)||ue(S)||L(S)||Array.isArray(S)?S:Mt(S)}),oe=!L(R.value)&&ue(m(t)),{id:Y,value:z,initialValue:Q,meta:U,setState:re,errors:N,flags:C}=jn($,{modelValue:r,form:V,bails:u,label:s,type:v,validate:R.value?F:void 0,schema:oe?t:void 0}),te=A(()=>N.value[0]);b&&wn({value:z,prop:b,handleChange:M,shouldValidate:()=>d&&!C.pendingReset});const he=(h,S=!1)=>{U.touched=!0,S&&X()};async function de(h){var S,D;if(V!=null&&V.validateSchema){const{results:I}=await V.validateSchema(h);return(S=I[m($)])!==null&&S!==void 0?S:{valid:!0,errors:[]}}return R.value?Pt(z.value,R.value,{name:m($),label:m(s),values:(D=V==null?void 0:V.values)!==null&&D!==void 0?D:{},bails:u}):{valid:!0,errors:[]}}const X=Je(async()=>(U.pending=!0,U.validated=!0,de("validated-only")),h=>(C.pendingUnmount[Z.id]||(re({errors:h.errors}),U.pending=!1,U.valid=h.valid),h)),W=Je(async()=>de("silent"),h=>(U.valid=h.valid,h));function F(h){return(h==null?void 0:h.mode)==="silent"?W():X()}function M(h,S=!0){const D=Ne(h);pe(D,S)}_t(()=>{if(l)return X();(!V||!V.validateSchema)&&W()});function ie(h){U.touched=h}function me(h){var S;const D=h&&"value"in h?h.value:Q.value;re({value:j(D),initialValue:j(D),touched:(S=h==null?void 0:h.touched)!==null&&S!==void 0?S:!1,errors:(h==null?void 0:h.errors)||[]}),U.pending=!1,U.validated=!1,W()}const Ie=Te();function pe(h,S=!0){z.value=Ie&&b?on(h,Ie.props.modelModifiers):h,(S?X:W)()}function it(h){re({errors:Array.isArray(h)?h:[h]})}const _e=A({get(){return z.value},set(h){pe(h,d)}}),Z={id:Y,name:$,label:s,value:_e,meta:U,errors:N,errorMessage:te,type:v,checkedValue:c,uncheckedValue:_,bails:u,keepValueOnUnmount:E,resetField:me,handleReset:()=>me(),validate:F,handleChange:M,handleBlur:he,setState:re,setTouched:ie,setErrors:it,setValue:pe};if(Xe(en,Z),Pe(t)&&typeof P(t)!="function"&&Oe(t,(h,S)=>{K(h,S)||(U.validated?X():W())},{deep:!0}),!V)return Z;const Ue=A(()=>{const h=R.value;return!h||L(h)||ke(h)||ue(h)||Array.isArray(h)?{}:Object.keys(h).reduce((S,D)=>{const I=hn(h[D]).map(ce=>ce.__locatorRef).reduce((ce,ae)=>{const fe=J(V.values,ae)||V.values[ae];return fe!==void 0&&(ce[ae]=fe),ce},{});return Object.assign(S,I),S},{})});return Oe(Ue,(h,S)=>{if(!Object.keys(h).length)return;!K(h,S)&&(U.validated?X():W())}),Wt(()=>{var h;const S=(h=m(Z.keepValueOnUnmount))!==null&&h!==void 0?h:m(V.keepValuesOnUnmount),D=m($);if(S||!V||C.pendingUnmount[Z.id]){V==null||V.removePathState(D,Y);return}C.pendingUnmount[Z.id]=!0;const I=V.getPathState(D);if(Array.isArray(I==null?void 0:I.id)&&(I!=null&&I.multiple)?I!=null&&I.id.includes(Z.id):(I==null?void 0:I.id)===Z.id){if(I!=null&&I.multiple&&Array.isArray(I.value)){const ae=I.value.findIndex(fe=>K(fe,m(Z.checkedValue)));if(ae>-1){const fe=[...I.value];fe.splice(ae,1),V.setFieldValue(D,fe)}Array.isArray(I.id)&&I.id.splice(I.id.indexOf(Z.id),1)}else V.unsetPathValue(m($));V.removePathState(D,Y)}}),Z}function Mn(e){const t=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),n=!!(e!=null&&e.syncVModel),r=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",l=n&&!("initialValue"in(e||{}))?Ze(Te(),r):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},t()),{initialValue:l});const u="valueProp"in e?e.valueProp:e.checkedValue,v="standalone"in e?!e.standalone:e.controlled,c=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},t()),e||{}),{initialValue:l,controlled:v??!0,checkedValue:u,syncVModel:c})}function Pn(e,t,n){const r=n!=null&&n.standalone?void 0:Ft(tt),l=n==null?void 0:n.checkedValue,u=n==null?void 0:n.uncheckedValue;function v(c){const s=c.handleChange,d=A(()=>{const O=m(c.value),E=m(l);return Array.isArray(O)?O.findIndex(b=>K(b,E))>=0:K(E,O)});function _(O,E=!0){var b,B;if(d.value===((b=O==null?void 0:O.target)===null||b===void 0?void 0:b.checked)){E&&c.validate();return}const G=m(e),V=r==null?void 0:r.getPathState(G),$=Ne(O);let R=(B=m(l))!==null&&B!==void 0?B:$;r&&(V!=null&&V.multiple)&&V.type==="checkbox"?R=mt(J(r.values,G)||[],R,void 0):(n==null?void 0:n.type)==="checkbox"&&(R=mt(m(c.value),R,m(u))),s(R,E)}return Object.assign(Object.assign({},c),{checked:d,checkedValue:l,uncheckedValue:u,handleChange:_})}return v(kt(e,t,n))}function wn({prop:e,value:t,handleChange:n,shouldValidate:r}){const l=Te();if(!l||!e)return;const u=typeof e=="string"?e:"modelValue",v=`update:${u}`;u in l.props&&(Oe(t,c=>{K(c,Ze(l,u))||l.emit(v,c)}),Oe(()=>Ze(l,u),c=>{if(c===Be&&t.value===void 0)return;const s=c===Be?void 0:c;K(s,t.value)||n(s,r())}))}function Ze(e,t){if(e)return e.props[t]}const Bn=Vt({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:()=>be().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:Be},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,t){const n=ge(e,"rules"),r=ge(e,"name"),l=ge(e,"label"),u=ge(e,"uncheckedValue"),v=ge(e,"keepValue"),{errors:c,value:s,errorMessage:d,validate:_,handleChange:O,handleBlur:E,setTouched:b,resetField:B,handleReset:G,meta:V,checked:$,setErrors:R,setValue:oe}=Cn(r,n,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:t.attrs.type,initialValue:Nn(e,t),checkedValue:t.attrs.value,uncheckedValue:u,label:l,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:v,syncVModel:!0}),Y=function(C,te=!0){O(C,te)},z=A(()=>{const{validateOnInput:N,validateOnChange:C,validateOnBlur:te,validateOnModelUpdate:he}=kn(e);function de(M){E(M,te),L(t.attrs.onBlur)&&t.attrs.onBlur(M)}function X(M){Y(M,N),L(t.attrs.onInput)&&t.attrs.onInput(M)}function W(M){Y(M,C),L(t.attrs.onChange)&&t.attrs.onChange(M)}const F={name:e.name,onBlur:de,onInput:X,onChange:W};return F["onUpdate:modelValue"]=M=>Y(M,he),F}),Q=A(()=>{const N=Object.assign({},z.value);Fe(t.attrs.type)&&$&&(N.checked=$.value);const C=Ot(e,t);return un(C,t.attrs)&&(N.value=s.value),N}),U=A(()=>Object.assign(Object.assign({},z.value),{modelValue:s.value}));function re(){return{field:Q.value,componentField:U.value,value:s.value,meta:V,errors:c.value,errorMessage:d.value,validate:_,resetField:B,handleChange:Y,handleInput:N=>Y(N,!1),handleReset:G,handleBlur:z.value.onBlur,setTouched:b,setErrors:R,setValue:oe}}return t.expose({value:s,meta:V,errors:c,errorMessage:d,setErrors:R,setTouched:b,setValue:oe,reset:B,validate:_,handleChange:O}),()=>{const N=pt(Ot(e,t)),C=It(N,t,re);return N?St(N,Object.assign(Object.assign({},t.attrs),Q.value),C):C}}});function Ot(e,t){let n=e.as||"";return!e.as&&!t.slots.default&&(n="input"),n}function kn(e){var t,n,r,l;const{validateOnInput:u,validateOnChange:v,validateOnBlur:c,validateOnModelUpdate:s}=be();return{validateOnInput:(t=e.validateOnInput)!==null&&t!==void 0?t:u,validateOnChange:(n=e.validateOnChange)!==null&&n!==void 0?n:v,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:c,validateOnModelUpdate:(l=e.validateOnModelUpdate)!==null&&l!==void 0?l:s}}function Nn(e,t){return Fe(t.attrs.type)?ct(e,"modelValue")?e.modelValue:void 0:ct(e,"modelValue")?e.modelValue:t.attrs.value}const Wn=Bn;let Tn=0;const Me=["bails","fieldsCount","id","multiple","type","validate"];function Nt(e){const t=(e==null?void 0:e.initialValues)||{},n=Object.assign({},m(t)),r=P(e==null?void 0:e.validationSchema);return r&&ue(r)&&L(r.cast)?j(r.cast(n)||{}):j(n)}function Rn(e){var t;const n=Tn++;let r=0;const l=le(!1),u=le(!1),v=le(0),c=[],s=we(Nt(e)),d=le([]),_=le({}),O=le({}),E=sn(()=>{O.value=d.value.reduce((a,i)=>(a[Ae(m(i.path))]=i,a),{})});function b(a,i){const o=F(a);if(!o){typeof a=="string"&&(_.value[Ae(a)]=Qe(i));return}if(typeof a=="string"){const f=Ae(a);_.value[f]&&delete _.value[f]}o.errors=Qe(i),o.valid=!o.errors.length}function B(a){ee(a).forEach(i=>{b(i,a[i])})}e!=null&&e.initialErrors&&B(e.initialErrors);const G=A(()=>{const a=d.value.reduce((i,o)=>(o.errors.length&&(i[m(o.path)]=o.errors),i),{});return Object.assign(Object.assign({},_.value),a)}),V=A(()=>ee(G.value).reduce((a,i)=>{const o=G.value[i];return o!=null&&o.length&&(a[i]=o[0]),a},{})),$=A(()=>d.value.reduce((a,i)=>(a[m(i.path)]={name:m(i.path)||"",label:i.label||""},a),{})),R=A(()=>d.value.reduce((a,i)=>{var o;return a[m(i.path)]=(o=i.bails)!==null&&o!==void 0?o:!0,a},{})),oe=Object.assign({},(e==null?void 0:e.initialErrors)||{}),Y=(t=e==null?void 0:e.keepValuesOnUnmount)!==null&&t!==void 0?t:!1,{initialValues:z,originalInitialValues:Q,setInitialValues:U}=Dn(d,s,e),re=Un(d,s,Q,V),N=A(()=>d.value.reduce((a,i)=>{const o=J(s,m(i.path));return ve(a,m(i.path),o),a},{})),C=e==null?void 0:e.validationSchema;function te(a,i){var o,f;const g=A(()=>J(z.value,m(a))),p=O.value[m(a)],y=(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="radio";if(p&&y){p.multiple=!0;const ne=r++;return Array.isArray(p.id)?p.id.push(ne):p.id=[p.id,ne],p.fieldsCount++,p.__flags.pendingUnmount[ne]=!1,p}const k=A(()=>J(s,m(a))),T=m(a),q=ie.findIndex(ne=>ne===T);q!==-1&&ie.splice(q,1);const w=A(()=>{var ne,je,We,qe;const He=m(C);if(ue(He))return(je=(ne=He.describe)===null||ne===void 0?void 0:ne.call(He,m(a)).required)!==null&&je!==void 0?je:!1;const Ge=m(i==null?void 0:i.schema);return ue(Ge)&&(qe=(We=Ge.describe)===null||We===void 0?void 0:We.call(Ge).required)!==null&&qe!==void 0?qe:!1}),H=r++,x=we({id:H,path:a,touched:!1,pending:!1,valid:!0,validated:!!(!((o=oe[T])===null||o===void 0)&&o.length),required:w,initialValue:g,errors:Kt([]),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:k,multiple:!1,__flags:{pendingUnmount:{[H]:!1},pendingReset:!1},fieldsCount:1,validate:i==null?void 0:i.validate,dirty:A(()=>!K(P(k),P(g)))});return d.value.push(x),O.value[T]=x,E(),V.value[T]&&!oe[T]&&se(()=>{ye(T,{mode:"silent"})}),Pe(a)&&Oe(a,ne=>{E();const je=j(k.value);O.value[ne]=x,se(()=>{ve(s,ne,je)})}),x}const he=yt(ut,5),de=yt(ut,5),X=Je(async a=>await(a==="silent"?he():de()),(a,[i])=>{const o=ee(h.errorBag.value),g=[...new Set([...ee(a.results),...d.value.map(p=>p.path),...o])].sort().reduce((p,y)=>{var k;const T=y,q=F(T)||M(T),w=((k=a.results[T])===null||k===void 0?void 0:k.errors)||[],H=m(q==null?void 0:q.path)||T,x=zn({errors:w,valid:!w.length},p.results[H]);return p.results[H]=x,x.valid||(p.errors[H]=x.errors[0]),q&&_.value[H]&&delete _.value[H],q?(q.valid=x.valid,i==="silent"||i==="validated-only"&&!q.validated||b(q,x.errors),p):(b(H,w),p)},{valid:a.valid,results:{},errors:{},source:a.source});return a.values&&(g.values=a.values,g.source=a.source),ee(g.results).forEach(p=>{var y;const k=F(p);k&&i!=="silent"&&(i==="validated-only"&&!k.validated||b(k,(y=g.results[p])===null||y===void 0?void 0:y.errors))}),g});function W(a){d.value.forEach(a)}function F(a){const i=typeof a=="string"?Ae(a):a;return typeof i=="string"?O.value[i]:i}function M(a){return d.value.filter(o=>a.startsWith(m(o.path))).reduce((o,f)=>o?f.path.length>o.path.length?f:o:f,void 0)}let ie=[],me;function Ie(a){return ie.push(a),me||(me=se(()=>{[...ie].sort().reverse().forEach(o=>{ht(s,o)}),ie=[],me=null})),me}function pe(a){return function(o,f){return function(p){return p instanceof Event&&(p.preventDefault(),p.stopPropagation()),W(y=>y.touched=!0),l.value=!0,v.value++,Se().then(y=>{const k=j(s);if(y.valid&&typeof o=="function"){const T=j(N.value);let q=a?T:k;return y.values&&(q=y.source==="schema"?y.values:Object.assign({},q,y.values)),o(q,{evt:p,controlledValues:T,setErrors:B,setFieldError:b,setTouched:De,setFieldTouched:ae,setValues:I,setFieldValue:S,resetForm:ze,resetField:at})}!y.valid&&typeof f=="function"&&f({values:k,evt:p,errors:y.errors,results:y.results})}).then(y=>(l.value=!1,y),y=>{throw l.value=!1,y})}}}const _e=pe(!1);_e.withControlled=pe(!0);function Z(a,i){const o=d.value.findIndex(g=>g.path===a&&(Array.isArray(g.id)?g.id.includes(i):g.id===i)),f=d.value[o];if(!(o===-1||!f)){if(se(()=>{ye(a,{mode:"silent",warn:!1})}),f.multiple&&f.fieldsCount&&f.fieldsCount--,Array.isArray(f.id)){const g=f.id.indexOf(i);g>=0&&f.id.splice(g,1),delete f.__flags.pendingUnmount[i]}(!f.multiple||f.fieldsCount<=0)&&(d.value.splice(o,1),lt(a),E(),delete O.value[a])}}function Ue(a){ee(O.value).forEach(i=>{i.startsWith(a)&&delete O.value[i]}),d.value=d.value.filter(i=>!i.path.startsWith(a)),se(()=>{E()})}const h={formId:n,values:s,controlledValues:N,errorBag:G,errors:V,schema:C,submitCount:v,meta:re,isSubmitting:l,isValidating:u,fieldArrays:c,keepValuesOnUnmount:Y,validateSchema:P(C)?X:void 0,validate:Se,setFieldError:b,validateField:ye,setFieldValue:S,setValues:I,setErrors:B,setFieldTouched:ae,setTouched:De,resetForm:ze,resetField:at,handleSubmit:_e,useFieldModel:zt,defineInputBinds:Lt,defineComponentBinds:$t,defineField:$e,stageInitialValue:Ut,unsetInitialValue:lt,setFieldInitialValue:Le,createPathState:te,getPathState:F,unsetPathValue:Ie,removePathState:Z,initialValues:z,getAllPathStates:()=>d.value,destroyPath:Ue,isFieldTouched:fe,isFieldDirty:Tt,isFieldValid:Rt};function S(a,i,o=!0){const f=j(i),g=typeof a=="string"?a:a.path;F(g)||te(g),ve(s,g,f),o&&ye(g)}function D(a,i=!0){ee(s).forEach(o=>{delete s[o]}),ee(a).forEach(o=>{S(o,a[o],!1)}),i&&Se()}function I(a,i=!0){Ee(s,a),c.forEach(o=>o&&o.reset()),i&&Se()}function ce(a,i){const o=F(m(a))||te(a);return A({get(){return o.value},set(f){var g;const p=m(a);S(p,f,(g=m(i))!==null&&g!==void 0?g:!1)}})}function ae(a,i){const o=F(a);o&&(o.touched=i)}function fe(a){const i=F(a);return i?i.touched:d.value.filter(o=>o.path.startsWith(a)).some(o=>o.touched)}function Tt(a){const i=F(a);return i?i.dirty:d.value.filter(o=>o.path.startsWith(a)).some(o=>o.dirty)}function Rt(a){const i=F(a);return i?i.valid:d.value.filter(o=>o.path.startsWith(a)).every(o=>o.valid)}function De(a){if(typeof a=="boolean"){W(i=>{i.touched=a});return}ee(a).forEach(i=>{ae(i,!!a[i])})}function at(a,i){var o;const f=i&&"value"in i?i.value:J(z.value,a),g=F(a);g&&(g.__flags.pendingReset=!0),Le(a,j(f),!0),S(a,f,!1),ae(a,(o=i==null?void 0:i.touched)!==null&&o!==void 0?o:!1),b(a,(i==null?void 0:i.errors)||[]),se(()=>{g&&(g.__flags.pendingReset=!1)})}function ze(a,i){let o=j(a!=null&&a.values?a.values:Q.value);o=i!=null&&i.force?o:Ee(Q.value,o),o=ue(C)&&L(C.cast)?C.cast(o):o,U(o,{force:i==null?void 0:i.force}),W(f=>{var g;f.__flags.pendingReset=!0,f.validated=!1,f.touched=((g=a==null?void 0:a.touched)===null||g===void 0?void 0:g[m(f.path)])||!1,S(m(f.path),J(o,m(f.path)),!1),b(m(f.path),void 0)}),i!=null&&i.force?D(o,!1):I(o,!1),B((a==null?void 0:a.errors)||{}),v.value=(a==null?void 0:a.submitCount)||0,se(()=>{Se({mode:"silent"}),W(f=>{f.__flags.pendingReset=!1})})}async function Se(a){const i=(a==null?void 0:a.mode)||"force";if(i==="force"&&W(y=>y.validated=!0),h.validateSchema)return h.validateSchema(i);u.value=!0;const o=await Promise.all(d.value.map(y=>y.validate?y.validate(a).then(k=>({key:m(y.path),valid:k.valid,errors:k.errors,value:k.value})):Promise.resolve({key:m(y.path),valid:!0,errors:[],value:void 0})));u.value=!1;const f={},g={},p={};for(const y of o)f[y.key]={valid:y.valid,errors:y.errors},y.value&&ve(p,y.key,y.value),y.errors.length&&(g[y.key]=y.errors[0]);return{valid:o.every(y=>y.valid),results:f,errors:g,values:p,source:"fields"}}async function ye(a,i){var o;const f=F(a);if(f&&(i==null?void 0:i.mode)!=="silent"&&(f.validated=!0),C){const{results:g}=await X((i==null?void 0:i.mode)||"validated-only");return g[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 lt(a){ht(z.value,a)}function Ut(a,i,o=!1){Le(a,i),ve(s,a,i),o&&!(e!=null&&e.initialValues)&&ve(Q.value,a,j(i))}function Le(a,i,o=!1){ve(z.value,a,j(i)),o&&ve(Q.value,a,j(i))}async function ut(){const a=P(C);if(!a)return{valid:!0,results:{},errors:{},source:"none"};u.value=!0;const i=ke(a)||ue(a)?await Sn(a,s):await _n(a,s,{names:$.value,bailsMap:R.value});return u.value=!1,i}const Dt=_e((a,{evt:i})=>{Et(i)&&i.target.submit()});_t(()=>{if(e!=null&&e.initialErrors&&B(e.initialErrors),e!=null&&e.initialTouched&&De(e.initialTouched),e!=null&&e.validateOnMount){Se();return}h.validateSchema&&h.validateSchema("silent")}),Pe(C)&&Oe(C,()=>{var a;(a=h.validateSchema)===null||a===void 0||a.call(h,"validated-only")}),Xe(tt,h);function $e(a,i){const o=L(i)||i==null?void 0:i.label,f=F(m(a))||te(a,{label:o}),g=()=>L(i)?i(Ce(f,Me)):i||{};function p(){var w;f.touched=!0,((w=g().validateOnBlur)!==null&&w!==void 0?w:be().validateOnBlur)&&ye(m(f.path))}function y(){var w;((w=g().validateOnInput)!==null&&w!==void 0?w:be().validateOnInput)&&se(()=>{ye(m(f.path))})}function k(){var w;((w=g().validateOnChange)!==null&&w!==void 0?w:be().validateOnChange)&&se(()=>{ye(m(f.path))})}const T=A(()=>{const w={onChange:k,onInput:y,onBlur:p};return L(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[ce(a,()=>{var w,H,x;return(x=(w=g().validateOnModelUpdate)!==null&&w!==void 0?w:(H=be())===null||H===void 0?void 0:H.validateOnModelUpdate)!==null&&x!==void 0?x:!0}),T]}function zt(a){return Array.isArray(a)?a.map(i=>ce(i,!0)):ce(a)}function Lt(a,i){const[o,f]=$e(a,i);function g(){f.value.onBlur()}function p(k){const T=Ne(k);S(m(a),T,!1),f.value.onInput()}function y(k){const T=Ne(k);S(m(a),T,!1),f.value.onChange()}return A(()=>Object.assign(Object.assign({},f.value),{onBlur:g,onInput:p,onChange:y,value:o.value}))}function $t(a,i){const[o,f]=$e(a,i),g=F(m(a));function p(y){o.value=y}return A(()=>{const y=L(i)?i(Ce(g,Me)):i||{};return Object.assign({[y.model||"modelValue"]:o.value,[`onUpdate:${y.model||"modelValue"}`]:p},f.value)})}const ot=Object.assign(Object.assign({},h),{values:qt(s),handleReset:()=>ze(),submitForm:Dt});return Xe(Zt,ot),ot}function Un(e,t,n,r){const l={touched:"some",pending:"some",valid:"every"},u=A(()=>!K(t,P(n)));function v(){const s=e.value;return ee(l).reduce((d,_)=>{const O=l[_];return d[_]=s[O](E=>E[_]),d},{})}const c=we(v());return Ht(()=>{const s=v();c.touched=s.touched,c.valid=s.valid,c.pending=s.pending}),A(()=>Object.assign(Object.assign({initialValues:P(n)},c),{valid:c.valid&&!ee(r.value).length,dirty:u.value}))}function Dn(e,t,n){const r=Nt(n),l=le(r),u=le(j(r));function v(c,s){s!=null&&s.force?(l.value=j(c),u.value=j(c)):(l.value=Ee(j(l.value)||{},j(c)),u.value=Ee(j(u.value)||{},j(c))),s!=null&&s.updateFields&&e.value.forEach(d=>{if(d.touched)return;const O=J(l.value,m(d.path));ve(t,m(d.path),j(O))})}return{initialValues:l,originalInitialValues:u,setInitialValues:v}}function zn(e,t){return t?{valid:e.valid&&t.valid,errors:[...e.errors,...t.errors]}:e}const Ln=Vt({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}},setup(e,t){const n=ge(e,"validationSchema"),r=ge(e,"keepValues"),{errors:l,errorBag:u,values:v,meta:c,isSubmitting:s,isValidating:d,submitCount:_,controlledValues:O,validate:E,validateField:b,handleReset:B,resetForm:G,handleSubmit:V,setErrors:$,setFieldError:R,setFieldValue:oe,setValues:Y,setFieldTouched:z,setTouched:Q,resetField:U}=Rn({validationSchema:n.value?n:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r}),re=V((F,{evt:M})=>{Et(M)&&M.target.submit()},e.onInvalidSubmit),N=e.onSubmit?V(e.onSubmit,e.onInvalidSubmit):re;function C(F){nt(F)&&F.preventDefault(),B(),typeof t.attrs.onReset=="function"&&t.attrs.onReset()}function te(F,M){return V(typeof F=="function"&&!M?F:M,e.onInvalidSubmit)(F)}function he(){return j(v)}function de(){return j(c.value)}function X(){return j(l.value)}function W(){return{meta:c.value,errors:l.value,errorBag:u.value,values:v,isSubmitting:s.value,isValidating:d.value,submitCount:_.value,controlledValues:O.value,validate:E,validateField:b,handleSubmit:te,handleReset:B,submitForm:re,setErrors:$,setFieldError:R,setFieldValue:oe,setValues:Y,setFieldTouched:z,setTouched:Q,resetForm:G,resetField:U,getValues:he,getMeta:de,getErrors:X}}return t.expose({setFieldError:R,setErrors:$,setFieldValue:oe,setValues:Y,setFieldTouched:z,setTouched:Q,resetForm:G,validate:E,validateField:b,resetField:U,getValues:he,getMeta:de,getErrors:X,values:v,meta:c,errors:l}),function(){const M=e.as==="form"?e.as:e.as?pt(e.as):null,ie=It(M,t,W);return M?St(M,Object.assign(Object.assign(Object.assign({},M==="form"?{novalidate:!0}:{}),t.attrs),{onSubmit:N,onReset:C}),ie):ie}}}),qn=Ln;export{Wn as F,qn as a,rt as c,Re as i};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as F,i as U,b as E,c as T,d as y,e as bt,g as Se,s as dt,C as Et,f as vt,m as P,D as It,h as S,j as N,k as oe,l as H,u as A,n as G,N as Ot,o as pt,p as Y,q as B,r as Rt,t as ce,v as ue,w as Tt,x as Lt,y as Nt,z as ie,A as me,M as _e,B as fe,E as ge,F as be,G as de,H as Ft,I as yt,J as Pe,K as kt,L as St,O as Pt,P as Ee,Q as Dt,R as Ct}from"./@intlify.DXtFJcML.0.0.34-alpha.6.js";import{G as Z,L as De,A as ee,z as ht,a as Mt,x as At,P as Vt,c as V,w as J,Q as Ce,i as Ut,r as xt,D as wt,R as Wt,T as jt}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";/*!
|
|
2
|
-
* vue-i18n v10.0.4
|
|
3
|
-
* (c) 2024 kazuya kawaguchi
|
|
4
|
-
* Released under the MIT License.
|
|
5
|
-
*/const Ht="10.0.4";function Yt(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Se().__INTLIFY_PROD_DEVTOOLS__=!1)}const p={UNEXPECTED_RETURN_TYPE:Et,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function L(e,...a){return vt(e,null,void 0)}const K=P("__translateVNode"),q=P("__datetimeParts"),Q=P("__numberParts"),Gt=P("__setPluralRules"),Bt=P("__injectWithOption"),z=P("__dispose");function x(e){if(!T(e))return e;for(const a in e)if(B(e,a))if(!a.includes("."))T(e[a])&&x(e[a]);else{const u=a.split("."),l=u.length-1;let o=e,c=!1;for(let r=0;r<l;r++){if(u[r]in o||(o[u[r]]={}),!T(o[u[r]])){c=!0;break}o=o[u[r]]}c||(o[u[l]]=e[a],delete e[a]),T(o[u[l]])&&x(o[u[l]])}return e}function he(e,a){const{messages:u,__i18n:l,messageResolver:o,flatJson:c}=a,r=N(u)?u:S(l)?{}:{[e]:{}};if(S(l)&&l.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:i,resource:_}=s;i?(r[i]=r[i]||{},Y(_,r[i])):Y(_,r)}else E(s)&&Y(JSON.parse(s),r)}),o==null&&c)for(const s in r)B(r,s)&&x(r[s]);return r}function Me(e){return e.type}function $t(e,a,u){let l=T(a.messages)?a.messages:{};"__i18nGlobal"in u&&(l=he(e.locale.value,{messages:l,__i18n:u.__i18nGlobal}));const o=Object.keys(l);o.length&&o.forEach(c=>{e.mergeLocaleMessage(c,l[c])});{if(T(a.datetimeFormats)){const c=Object.keys(a.datetimeFormats);c.length&&c.forEach(r=>{e.mergeDateTimeFormat(r,a.datetimeFormats[r])})}if(T(a.numberFormats)){const c=Object.keys(a.numberFormats);c.length&&c.forEach(r=>{e.mergeNumberFormat(r,a.numberFormats[r])})}}}function ve(e){return Wt(jt,null,e,0)}const Ie="__INTLIFY_META__",Oe=()=>[],Xt=()=>!1;let pe=0;function Re(e){return(a,u,l,o)=>e(u,l,ee()||void 0,o)}const Jt=()=>{const e=ee();let a=null;return e&&(a=Me(e)[Ie])?{[Ie]:a}:null};function Ae(e={}){const{__root:a,__injectWithOption:u}=e,l=a===void 0,o=e.flatJson,c=G?xt:wt;let r=y(e.inheritLocale)?e.inheritLocale:!0;const s=c(a&&r?a.locale.value:E(e.locale)?e.locale:It),i=c(a&&r?a.fallbackLocale.value:E(e.fallbackLocale)||S(e.fallbackLocale)||N(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),_=c(he(s.value,e)),b=c(N(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=c(N(e.numberFormats)?e.numberFormats:{[s.value]:{}});let v=a?a.missingWarn:y(e.missingWarn)||oe(e.missingWarn)?e.missingWarn:!0,O=a?a.fallbackWarn:y(e.fallbackWarn)||oe(e.fallbackWarn)?e.fallbackWarn:!0,k=a?a.fallbackRoot:y(e.fallbackRoot)?e.fallbackRoot:!0,R=!!e.fallbackFormat,ne=H(e.missing)?e.missing:null,w=H(e.missing)?Re(e.missing):null,M=H(e.postTranslation)?e.postTranslation:null,$=a?a.warnHtmlMessage:y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,X=!!e.escapeParameter;const re=a?a.modifiers:N(e.modifiers)?e.modifiers:{};let W=e.pluralRules||a&&a.pluralRules,m;m=(()=>{l&&Ee(null);const t={version:Ht,locale:s.value,fallbackLocale:i.value,messages:_.value,modifiers:re,pluralRules:W,missing:w===null?void 0:w,missingWarn:v,fallbackWarn:O,fallbackFormat:R,unresolving:!0,postTranslation:M===null?void 0:M,warnHtmlMessage:$,escapeParameter:X,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=b.value,t.numberFormats=f.value,t.__datetimeFormatters=N(m)?m.__datetimeFormatters:void 0,t.__numberFormatters=N(m)?m.__numberFormatters:void 0;const n=Rt(t);return l&&Ee(n),n})(),A(m,s.value,i.value);function xe(){return[s.value,i.value,_.value,b.value,f.value]}const we=V({get:()=>s.value,set:t=>{s.value=t,m.locale=s.value}}),We=V({get:()=>i.value,set:t=>{i.value=t,m.fallbackLocale=i.value,A(m,s.value,t)}}),je=V(()=>_.value),He=V(()=>b.value),Ye=V(()=>f.value);function Ge(){return H(M)?M:null}function Be(t){M=t,m.postTranslation=t}function $e(){return ne}function Xe(t){t!==null&&(w=Re(t)),ne=t,m.missing=w}const D=(t,n,g,d,C,j)=>{xe();let h;try{__INTLIFY_PROD_DEVTOOLS__&&Tt(Jt()),l||(m.fallbackContext=a?Lt():void 0),h=t(m)}finally{__INTLIFY_PROD_DEVTOOLS__,l||(m.fallbackContext=void 0)}if(g!=="translate exists"&&U(h)&&h===Nt||g==="translate exists"&&!h){const[gt,ba]=n();return a&&k?d(a):C(gt)}else{if(j(h))return h;throw L(p.UNEXPECTED_RETURN_TYPE)}};function le(...t){return D(n=>Reflect.apply(me,null,[n,...t]),()=>ie(...t),"translate",n=>Reflect.apply(n.t,n,[...t]),n=>n,n=>E(n))}function Je(...t){const[n,g,d]=t;if(d&&!T(d))throw L(p.INVALID_ARGUMENT);return le(n,g,F({resolvedMessage:!0},d||{}))}function Ke(...t){return D(n=>Reflect.apply(ge,null,[n,...t]),()=>fe(...t),"datetime format",n=>Reflect.apply(n.d,n,[...t]),()=>_e,n=>E(n))}function qe(...t){return D(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"number format",n=>Reflect.apply(n.n,n,[...t]),()=>_e,n=>E(n))}function Qe(t){return t.map(n=>E(n)||U(n)||y(n)?ve(String(n)):n)}const ze={normalize:Qe,interpolate:t=>t,type:"vnode"};function Ze(...t){return D(n=>{let g;const d=n;try{d.processor=ze,g=Reflect.apply(me,null,[d,...t])}finally{d.processor=null}return g},()=>ie(...t),"translate",n=>n[K](...t),n=>[ve(n)],n=>S(n))}function et(...t){return D(n=>Reflect.apply(de,null,[n,...t]),()=>be(...t),"number format",n=>n[Q](...t),Oe,n=>E(n)||S(n))}function tt(...t){return D(n=>Reflect.apply(ge,null,[n,...t]),()=>fe(...t),"datetime format",n=>n[q](...t),Oe,n=>E(n)||S(n))}function at(t){W=t,m.pluralRules=W}function nt(t,n){return D(()=>{if(!t)return!1;const g=E(n)?n:s.value,d=se(g),C=m.messageResolver(d,t);return Ft(C)||yt(C)||E(C)},()=>[t],"translate exists",g=>Reflect.apply(g.te,g,[t,n]),Xt,g=>y(g))}function rt(t){let n=null;const g=Pe(m,i.value,s.value);for(let d=0;d<g.length;d++){const C=_.value[g[d]]||{},j=m.messageResolver(C,t);if(j!=null){n=j;break}}return n}function lt(t){const n=rt(t);return n??(a?a.tm(t)||{}:{})}function se(t){return _.value[t]||{}}function st(t,n){if(o){const g={[t]:n};for(const d in g)B(g,d)&&x(g[d]);n=g[t]}_.value[t]=n,m.messages=_.value}function ot(t,n){_.value[t]=_.value[t]||{};const g={[t]:n};if(o)for(const d in g)B(g,d)&&x(g[d]);n=g[t],Y(n,_.value[t]),m.messages=_.value}function ct(t){return b.value[t]||{}}function ut(t,n){b.value[t]=n,m.datetimeFormats=b.value,ce(m,t,n)}function it(t,n){b.value[t]=F(b.value[t]||{},n),m.datetimeFormats=b.value,ce(m,t,n)}function mt(t){return f.value[t]||{}}function _t(t,n){f.value[t]=n,m.numberFormats=f.value,ue(m,t,n)}function ft(t,n){f.value[t]=F(f.value[t]||{},n),m.numberFormats=f.value,ue(m,t,n)}pe++,a&&G&&(J(a.locale,t=>{r&&(s.value=t,m.locale=t,A(m,s.value,i.value))}),J(a.fallbackLocale,t=>{r&&(i.value=t,m.fallbackLocale=t,A(m,s.value,i.value))}));const I={id:pe,locale:we,fallbackLocale:We,get inheritLocale(){return r},set inheritLocale(t){r=t,t&&a&&(s.value=a.locale.value,i.value=a.fallbackLocale.value,A(m,s.value,i.value))},get availableLocales(){return Object.keys(_.value).sort()},messages:je,get modifiers(){return re},get pluralRules(){return W||{}},get isGlobal(){return l},get missingWarn(){return v},set missingWarn(t){v=t,m.missingWarn=v},get fallbackWarn(){return O},set fallbackWarn(t){O=t,m.fallbackWarn=O},get fallbackRoot(){return k},set fallbackRoot(t){k=t},get fallbackFormat(){return R},set fallbackFormat(t){R=t,m.fallbackFormat=R},get warnHtmlMessage(){return $},set warnHtmlMessage(t){$=t,m.warnHtmlMessage=t},get escapeParameter(){return X},set escapeParameter(t){X=t,m.escapeParameter=t},t:le,getLocaleMessage:se,setLocaleMessage:st,mergeLocaleMessage:ot,getPostTranslationHandler:Ge,setPostTranslationHandler:Be,getMissingHandler:$e,setMissingHandler:Xe,[Gt]:at};return I.datetimeFormats=He,I.numberFormats=Ye,I.rt=Je,I.te=nt,I.tm=lt,I.d=Ke,I.n=qe,I.getDateTimeFormat=ct,I.setDateTimeFormat=ut,I.mergeDateTimeFormat=it,I.getNumberFormat=mt,I.setNumberFormat=_t,I.mergeNumberFormat=ft,I[Bt]=u,I[K]=Ze,I[q]=tt,I[Q]=et,I}const te={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Kt({slots:e},a){return a.length===1&&a[0]==="default"?(e.default?e.default():[]).reduce((l,o)=>[...l,...o.type===Ce?o.children:[o]],[]):a.reduce((u,l)=>{const o=e[l];return o&&(u[l]=o()),u},{})}function Ve(){return Ce}const qt=Z({name:"i18n-t",props:F({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>U(e)||!isNaN(e)}},te),setup(e,a){const{slots:u,attrs:l}=a,o=e.i18n||ae({useScope:e.scope,__useComponent:!0});return()=>{const c=Object.keys(u).filter(f=>f!=="_"),r={};e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=E(e.plural)?+e.plural:e.plural);const s=Kt(a,c),i=o[K](e.keypath,s,r),_=F({},l),b=E(e.tag)||T(e.tag)?e.tag:Ve();return De(b,_,i)}}}),Te=qt;function Qt(e){return S(e)&&!E(e[0])}function Ue(e,a,u,l){const{slots:o,attrs:c}=a;return()=>{const r={part:!0};let s={};e.locale&&(r.locale=e.locale),E(e.format)?r.key=e.format:T(e.format)&&(E(e.format.key)&&(r.key=e.format.key),s=Object.keys(e.format).reduce((v,O)=>u.includes(O)?F({},v,{[O]:e.format[O]}):v,{}));const i=l(e.value,r,s);let _=[r.key];S(i)?_=i.map((v,O)=>{const k=o[v.type],R=k?k({[v.type]:v.value,index:O,parts:i}):[v.value];return Qt(R)&&(R[0].key=`${v.type}-${O}`),R}):E(i)&&(_=[i]);const b=F({},c),f=E(e.tag)||T(e.tag)?e.tag:Ve();return De(f,b,_)}}const zt=Z({name:"i18n-n",props:F({value:{type:Number,required:!0},format:{type:[String,Object]}},te),setup(e,a){const u=e.i18n||ae({useScope:e.scope,__useComponent:!0});return Ue(e,a,Ot,(...l)=>u[Q](...l))}}),Le=zt,Zt=Z({name:"i18n-d",props:F({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},te),setup(e,a){const u=e.i18n||ae({useScope:e.scope,__useComponent:!0});return Ue(e,a,pt,(...l)=>u[q](...l))}}),Ne=Zt;function ea(e,a){const u=e;if(e.mode==="composition")return u.__getInstance(a)||e.global;{const l=u.__getInstance(a);return l!=null?l.__composer:e.global.__composer}}function ta(e){const a=r=>{const{instance:s,value:i}=r;if(!s||!s.$)throw L(p.UNEXPECTED_ERROR);const _=ea(e,s.$),b=Fe(i);return[Reflect.apply(_.t,_,[...ye(b)]),_]};return{created:(r,s)=>{const[i,_]=a(s);G&&e.global===_&&(r.__i18nWatcher=J(_.locale,()=>{s.instance&&s.instance.$forceUpdate()})),r.__composer=_,r.textContent=i},unmounted:r=>{G&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:s})=>{if(r.__composer){const i=r.__composer,_=Fe(s);r.textContent=Reflect.apply(i.t,i,[...ye(_)])}},getSSRProps:r=>{const[s]=a(r);return{textContent:s}}}}function Fe(e){if(E(e))return{path:e};if(N(e)){if(!("path"in e))throw L(p.REQUIRED_VALUE,"path");return e}else throw L(p.INVALID_VALUE)}function ye(e){const{path:a,locale:u,args:l,choice:o,plural:c}=e,r={},s=l||{};return E(u)&&(r.locale=u),U(o)&&(r.plural=o),U(c)&&(r.plural=c),[a,s,r]}function aa(e,a,...u){const l=N(u[0])?u[0]:{};(y(l.globalInstall)?l.globalInstall:!0)&&([Te.name,"I18nT"].forEach(c=>e.component(c,Te)),[Le.name,"I18nN"].forEach(c=>e.component(c,Le)),[Ne.name,"I18nD"].forEach(c=>e.component(c,Ne))),e.directive("t",ta(a))}const na=P("global-vue-i18n");function va(e={},a){const u=y(e.globalInjection)?e.globalInjection:!0,l=new Map,[o,c]=ra(e),r=P("");function s(f){return l.get(f)||null}function i(f,v){l.set(f,v)}function _(f){l.delete(f)}const b={get mode(){return"composition"},async install(f,...v){if(f.__VUE_I18N_SYMBOL__=r,f.provide(f.__VUE_I18N_SYMBOL__,b),N(v[0])){const R=v[0];b.__composerExtend=R.__composerExtend,b.__vueI18nExtend=R.__vueI18nExtend}let O=null;u&&(O=_a(f,b.global)),aa(f,b,...v);const k=f.unmount;f.unmount=()=>{O&&O(),b.dispose(),k()}},get global(){return c},dispose(){o.stop()},__instances:l,__getInstance:s,__setInstance:i,__deleteInstance:_};return b}function ae(e={}){const a=ee();if(a==null)throw L(p.MUST_BE_CALL_SETUP_TOP);if(!a.isCE&&a.appContext.app!=null&&!a.appContext.app.__VUE_I18N_SYMBOL__)throw L(p.NOT_INSTALLED);const u=la(a),l=oa(u),o=Me(a),c=sa(e,o);if(c==="global")return $t(l,e,o),l;if(c==="parent"){let i=ca(u,a,e.__useComponent);return i==null&&(i=l),i}const r=u;let s=r.__getInstance(a);if(s==null){const i=F({},e);"__i18n"in o&&(i.__i18n=o.__i18n),l&&(i.__root=l),s=Ae(i),r.__composerExtend&&(s[z]=r.__composerExtend(s)),ia(r,a,s),r.__setInstance(a,s)}return s}function ra(e,a,u){const l=ht(),o=l.run(()=>Ae(e));if(o==null)throw L(p.UNEXPECTED_ERROR);return[l,o]}function la(e){const a=Mt(e.isCE?na:e.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw L(e.isCE?p.NOT_INSTALLED_WITH_PROVIDE:p.UNEXPECTED_ERROR);return a}function sa(e,a){return bt(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}function oa(e){return e.mode==="composition"?e.global:e.global.__composer}function ca(e,a,u=!1){let l=null;const o=a.root;let c=ua(a,u);for(;c!=null;){const r=e;if(e.mode==="composition"&&(l=r.__getInstance(c)),l!=null||o===c)break;c=c.parent}return l}function ua(e,a=!1){return e==null?null:a&&e.vnode.ctx||e.parent}function ia(e,a,u){At(()=>{},a),Vt(()=>{const l=u;e.__deleteInstance(a);const o=l[z];o&&(o(),delete l[z])},a)}const ma=["locale","fallbackLocale","availableLocales"],ke=["t","rt","d","n","tm","te"];function _a(e,a){const u=Object.create(null);return ma.forEach(o=>{const c=Object.getOwnPropertyDescriptor(a,o);if(!c)throw L(p.UNEXPECTED_ERROR);const r=Ut(c.value)?{get(){return c.value.value},set(s){c.value.value=s}}:{get(){return c.get&&c.get()}};Object.defineProperty(u,o,r)}),e.config.globalProperties.$i18n=u,ke.forEach(o=>{const c=Object.getOwnPropertyDescriptor(a,o);if(!c||!c.value)throw L(p.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,c)}),()=>{delete e.config.globalProperties.$i18n,ke.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}Yt();kt(Dt);St(Ct);Pt(Pe);if(__INTLIFY_PROD_DEVTOOLS__){const e=Se();e.__INTLIFY__=!0,dt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{va as c,ae as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{L as l}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";const i={};function u(e){return Object.keys(e).reduce((r,t)=>(e[t]!==!1&&e[t]!==null&&e[t]!==void 0&&(r[t]=e[t]),r),{})}const c={name:"InlineSvg",inheritAttrs:!1,render(){return this.svgElSource?l("svg",Object.assign({},this.getSvgAttrs(this.svgElSource),u(this.$attrs),{innerHTML:this.getSvgContent(this.svgElSource)})):null},props:{src:{type:String,required:!0},title:{type:String},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0}},emits:["loaded","unloaded","error"],data(){return{svgElSource:null,request:void 0}},watch:{src(e){this.getSource(e)}},mounted(){this.getSource(this.src)},methods:{getSvgAttrs(e){let r={};const t=e.attributes;if(!t)return r;for(let n=t.length-1;n>=0;n--)r[t[n].name]=t[n].value;return r},getSvgContent(e){return e=e.cloneNode(!0),e=this.transformSource(e),this.title&&a(e,this.title),e.innerHTML},getSource(e){i[e]||(i[e]=this.download(e)),this.svgElSource&&i[e].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded")),i[e].then(r=>{this.svgElSource=r,this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(r=>{this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete i[e],this.$emit("error",r)})},download(e){return g(new Promise((r,t)=>{const n=new XMLHttpRequest;n.open("GET",e,!0),this.request=n,n.onload=()=>{if(n.status>=200&&n.status<400)try{let o=new DOMParser().parseFromString(n.responseText,"text/xml").getElementsByTagName("svg")[0];o?r(o):t(new Error('Loaded file is not valid SVG"'))}catch(s){t(s)}else t(new Error("Error loading SVG"))},n.onerror=t,n.send()}))}}};function a(e,r){const t=e.getElementsByTagName("title");if(t.length)t[0].textContent=r;else{const n=document.createElementNS("http://www.w3.org/2000/svg","title");n.textContent=r,e.insertBefore(n,e.firstChild)}}function g(e){if(e.getIsPending)return e;let r=!0,t=e.then(n=>(r=!1,n),n=>{throw r=!1,n});return t.getIsPending=function(){return r},t}export{c as I};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{D as ot,u as W,s as st,n as ct,a as z,G as qe,E as it,c as N,L as Ge,N as le,r as at,w as lt}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";/*!
|
|
2
|
-
* vue-router v4.4.5
|
|
3
|
-
* (c) 2024 Eduardo San Martin Morote
|
|
4
|
-
* @license MIT
|
|
5
|
-
*/const G=typeof document<"u";function Ke(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&&Ke(e.default)}const P=Object.assign;function ue(e,t){const n={};for(const r in t){const o=t[r];n[r]=L(o)?o.map(e):e(o)}return n}const F=()=>{},L=Array.isArray,Ve=/#/g,ft=/&/g,ht=/\//g,pt=/=/g,dt=/\?/g,De=/\+/g,mt=/%5B/g,gt=/%5D/g,Ue=/%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(Ue,"^")}function pe(e){return ge(e).replace(De,"%2B").replace(Rt,"+").replace(Ve,"%23").replace(ft,"%26").replace(vt,"`").replace(Qe,"{").replace(We,"}").replace(Ue,"^")}function wt(e){return pe(e).replace(pt,"%3D")}function Pt(e){return ge(e).replace(Ve,"%23").replace(dt,"%3F")}function St(e){return e==null?"":Pt(e).replace(ht,"%2F")}function X(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const kt=/\/$/,Ct=e=>e.replace(kt,"");function fe(e,t,n="/"){let r,o={},a="",p="";const g=t.indexOf("#");let c=t.indexOf("?");return g<c&&g>=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,g>-1?g:t.length),o=e(a)),g>-1&&(r=r||t.slice(0,g),p=t.slice(g,t.length)),r=Ot(r??t,n),{fullPath:r+(a&&"?")+a+p,path:r,query:o,hash:X(p)}}function bt(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ke(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&&K(t.matched[r],n.matched[o])&&Fe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function K(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 L(e)?Ce(e,t):L(t)?Ce(t,e):e===t}function Ce(e,t){return L(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,p,g;for(p=0;p<r.length;p++)if(g=r[p],g!==".")if(g==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(p).join("/")}const H={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(G){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ct(e)}const Mt=/^[^#]+#/;function It(e,t){return e.replace(Mt,"#")+t}function Lt(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=Lt(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 be(e,t){return(history.state?history.state.position-t:-1)+e}const de=new Map;function Tt(e,t){de.set(e,t)}function $t(e){const t=de.get(e);return de.delete(e),t}let Ht=()=>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,c=o.slice(g);return c[0]!=="/"&&(c="/"+c),ke(c,"")}return ke(n,e)+r+o}function jt(e,t,n,r){let o=[],a=[],p=null;const g=({state:l})=>{const u=Ye(e,location),w=n.value,S=t.value;let b=0;if(l){if(n.value=u,t.value=l,p&&p===w){p=null;return}b=S?l.position-S.position:0}else r(u);o.forEach(A=>{A(n.value,w,{delta:b,type:Z.pop,direction:b?b>0?Y.forward:Y.back:Y.unknown})})};function c(){p=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 i(){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:c,listen:f,destroy:i}}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 Bt(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(c,f,h){const i=e.indexOf("#"),l=i>-1?(n.host&&document.querySelector("base")?e:e.slice(i))+c:Ht()+e+c;try{t[h?"replaceState":"pushState"](f,"",l),o.value=f}catch(u){console.error(u),n[h?"replace":"assign"](l)}}function p(c,f){const h=P({},t.state,Ae(o.value.back,c,o.value.forward,!0),f,{position:o.value.position});a(c,h,!0),r.value=c}function g(c,f){const h=P({},o.value,t.state,{forward:c,scroll:te()});a(h.current,h,!0);const i=P({},Ae(r.value,c,null),{position:h.position+1},f);a(c,i,!1),r.value=c}return{location:r,state:o,push:g,replace:p}}function zt(e){e=xt(e);const t=Bt(e),n=jt(e,t.state,t.location,t.replace);function r(a,p=!0){p||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 pn(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),zt(e)}function qt(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 V(e,t){return P(new Error,{type:e,[Ze]:!0},t)}function T(e,t){return e instanceof Error&&Ze in e&&(t==null||!!(e.type&t))}const Oe="[^/]+?",Gt={sensitive:!1,strict:!1,start:!0,end:!0},Kt=/[.+*?^${}()[\]/\\]/g;function Vt(e,t){const n=P({},Gt,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 i=0;i<f.length;i++){const l=f[i];let u=40+(n.sensitive?.25:0);if(l.type===0)i||(o+="/"),o+=l.value.replace(Kt,"\\$&"),u+=40;else if(l.type===1){const{value:w,repeatable:S,optional:b,regexp:A}=l;a.push({name:w,repeatable:S,optional:b});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 k=S?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;i||(k=b&&f.length<2?`(?:/${k})`:"/"+k),b&&(k+="?"),o+=k,u+=20,b&&(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+="(?:/|$)");const p=new RegExp(o,n.sensitive?"":"i");function g(f){const h=f.match(p),i={};if(!h)return null;for(let l=1;l<h.length;l++){const u=h[l]||"",w=a[l-1];i[w.name]=u&&w.repeatable?u.split("/"):u}return i}function c(f){let h="",i=!1;for(const l of e){(!i||!h.endsWith("/"))&&(h+="/"),i=!1;for(const u of l)if(u.type===0)h+=u.value;else if(u.type===1){const{value:w,repeatable:S,optional:b}=u,A=w in f?f[w]:"";if(L(A)&&!S)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const E=L(A)?A.join("/"):A;if(!E)if(b)l.length<2&&(h.endsWith("/")?h=h.slice(0,-1):i=!0);else throw new Error(`Missing required param "${w}"`);h+=E}}return h||"/"}return{re:p,score:r,keys:a,parse:g,stringify:c}}function Dt(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=Dt(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:""},Qt=/[a-zA-Z0-9_]/;function Wt(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 p(){a&&o.push(a),a=[]}let g=0,c,f="",h="";function i(){f&&(n===0?a.push({type:0,value:f}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${f}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:f,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),f="")}function l(){f+=c}for(;g<e.length;){if(c=e[g++],c==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:c==="/"?(f&&i(),p()):c===":"?(i(),n=1):l();break;case 4:l(),n=r;break;case 1:c==="("?n=2:Qt.test(c)?l():(i(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&g--);break;case 2:c===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+c:n=3:h+=c;break;case 3:i(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&g--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${f}"`),i(),p(),o}function Ft(e,t,n){const r=Vt(Wt(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 Yt(e,t){const n=[],r=new Map;t=Ne({strict:!1,end:!0,sensitive:!1},t);function o(i){return r.get(i)}function a(i,l,u){const w=!u,S=Ie(i);S.aliasOf=u&&u.record;const b=Ne(t,i),A=[S];if("alias"in i){const I=typeof i.alias=="string"?[i.alias]:i.alias;for(const B of I)A.push(Ie(P({},S,{components:u?u.record.components:S.components,path:B,aliasOf:u?u.record:S})))}let E,k;for(const I of A){const{path:B}=I;if(l&&B[0]!=="/"){const $=l.record.path,M=$[$.length-1]==="/"?"":"/";I.path=l.record.path+(B&&M+B)}if(E=Ft(I,l,b),u?u.alias.push(E):(k=k||E,k!==E&&k.alias.push(E),w&&i.name&&!Le(E)&&p(i.name)),et(E)&&c(E),S.children){const $=S.children;for(let M=0;M<$.length;M++)a($[M],E,u&&u.children[M])}u=u||E}return k?()=>{p(k)}:F}function p(i){if(Xe(i)){const l=r.get(i);l&&(r.delete(i),n.splice(n.indexOf(l),1),l.children.forEach(p),l.alias.forEach(p))}else{const l=n.indexOf(i);l>-1&&(n.splice(l,1),i.record.name&&r.delete(i.record.name),i.children.forEach(p),i.alias.forEach(p))}}function g(){return n}function c(i){const l=Jt(i,n);n.splice(l,0,i),i.record.name&&!Le(i)&&r.set(i.record.name,i)}function f(i,l){let u,w={},S,b;if("name"in i&&i.name){if(u=r.get(i.name),!u)throw V(1,{location:i});b=u.record.name,w=P(Me(l.params,u.keys.filter(k=>!k.optional).concat(u.parent?u.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),i.params&&Me(i.params,u.keys.map(k=>k.name))),S=u.stringify(w)}else if(i.path!=null)S=i.path,u=n.find(k=>k.re.test(S)),u&&(w=u.parse(S),b=u.record.name);else{if(u=l.name?r.get(l.name):n.find(k=>k.re.test(l.path)),!u)throw V(1,{location:i,currentLocation:l});b=u.record.name,w=P({},l.params,i.params),S=u.stringify(w)}const A=[];let E=u;for(;E;)A.unshift(E.record),E=E.parent;return{name:b,path:S,params:w,matched:A,meta:Zt(A)}}e.forEach(i=>a(i));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:f,removeRoute:p,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:Xt(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 Xt(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 Le(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zt(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 Jt(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=en(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function en(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 tn(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(De," "),p=a.indexOf("="),g=X(p<0?a:a.slice(0,p)),c=p<0?null:X(a.slice(p+1));if(g in t){let f=t[g];L(f)||(f=t[g]=[f]),f.push(c)}else t[g]=c}return t}function Te(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}(L(r)?r.map(a=>a&&pe(a)):[r&&pe(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function nn(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=L(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const rn=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=p=>p()){const p=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((g,c)=>{const f=l=>{l===!1?c(V(4,{from:n,to:t})):l instanceof Error?c(l):qt(l)?c(V(2,{from:t,to:l})):(p&&r.enterCallbacks[o]===p&&typeof l=="function"&&p.push(l),g())},h=a(()=>e.call(r&&r.instances[o],t,n,f));let i=Promise.resolve(h);e.length<3&&(i=i.then(f)),i.catch(l=>c(l))})}function he(e,t,n,r,o=a=>a()){const a=[];for(const p of e)for(const g in p.components){let c=p.components[g];if(!(t!=="beforeRouteEnter"&&!p.instances[g]))if(Ke(c)){const h=(c.__vccOpts||c)[t];h&&a.push(j(h,n,r,p,g,o))}else{let f=c();a.push(()=>f.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${g}" at "${p.path}"`);const i=ut(h)?h.default:h;p.mods[g]=h,p.components[g]=i;const u=(i.__vccOpts||i)[t];return u&&j(u,n,r,p,g,o)()}))}}return a}function He(e){const t=z(ne),n=z(ve),r=N(()=>{const c=W(e.to);return t.resolve(c)}),o=N(()=>{const{matched:c}=r.value,{length:f}=c,h=c[f-1],i=n.matched;if(!h||!i.length)return-1;const l=i.findIndex(K.bind(null,h));if(l>-1)return l;const u=je(c[f-2]);return f>1&&je(h)===u&&i[i.length-1].path!==u?i.findIndex(K.bind(null,c[f-2])):l}),a=N(()=>o.value>-1&&an(n.params,r.value.params)),p=N(()=>o.value>-1&&o.value===n.matched.length-1&&Fe(n.params,r.value.params));function g(c={}){return cn(c)?t[W(e.replace)?"replace":"push"](W(e.to)).catch(F):Promise.resolve()}return{route:r,href:N(()=>r.value.href),isActive:a,isExactActive:p,navigate:g}}const on=qe({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"}},useLink:He,setup(e,{slots:t}){const n=it(He(e)),{options:r}=z(ne),o=N(()=>({[Be(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Be(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&t.default(n);return e.custom?a:Ge("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(!L(o)||o.length!==r.length||r.some((a,p)=>a!==o[p]))return!1}return!0}function je(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Be=(e,t,n)=>e??t??n,ln=qe({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),p=N(()=>{let f=W(a);const{matched:h}=o.value;let i;for(;(i=h[f])&&!i.components;)f++;return f}),g=N(()=>o.value.matched[p.value]);le($e,N(()=>p.value+1)),le(rn,g),le(me,o);const c=at();return lt(()=>[c.value,g.value,e.name],([f,h,i],[l,u,w])=>{h&&(h.instances[i]=f,u&&u!==h&&f&&f===l&&(h.leaveGuards.size||(h.leaveGuards=u.leaveGuards),h.updateGuards.size||(h.updateGuards=u.updateGuards))),f&&h&&(!u||!K(h,u)||!l)&&(h.enterCallbacks[i]||[]).forEach(S=>S(f))},{flush:"post"}),()=>{const f=o.value,h=e.name,i=g.value,l=i&&i.components[h];if(!l)return ze(n.default,{Component:l,route:f});const u=i.props[h],w=u?u===!0?f.params:typeof u=="function"?u(f):u:null,b=Ge(l,P({},w,t,{onVnodeUnmounted:A=>{A.component.isUnmounted&&(i.instances[h]=null)},ref:c}));return ze(n.default,{Component:b,route:f})||b}}});function ze(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const un=ln;function dn(e){const t=Yt(e.routes,e),n=e.parseQuery||tn,r=e.stringifyQuery||Te,o=e.history,a=Q(),p=Q(),g=Q(),c=ot(H);let f=H;G&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=ue.bind(null,s=>""+s),i=ue.bind(null,St),l=ue.bind(null,X);function u(s,m){let d,v;return Xe(s)?(d=t.getRecordMatcher(s),v=m):v=s,t.addRoute(v,d)}function w(s){const m=t.getRecordMatcher(s);m&&t.removeRoute(m)}function S(){return t.getRoutes().map(s=>s.record)}function b(s){return!!t.getRecordMatcher(s)}function A(s,m){if(m=P({},m||c.value),typeof s=="string"){const y=fe(n,s,m.path),O=t.resolve({path:y.path},m),U=o.createHref(y.fullPath);return P(y,O,{params:l(O.params),hash:X(y.hash),redirectedFrom:void 0,href:U})}let d;if(s.path!=null)d=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];d=P({},s,{params:i(y)}),m.params=i(m.params)}const v=t.resolve(d,m),C=s.hash||"";v.params=h(l(v.params));const _=bt(r,P({},s,{hash:Et(C),path:v.path})),R=o.createHref(_);return P({fullPath:_,hash:C,query:r===Te?nn(s.query):s.query||{}},v,{redirectedFrom:void 0,href:R})}function E(s){return typeof s=="string"?fe(n,s,c.value.path):P({},s)}function k(s,m){if(f!==s)return V(8,{from:m,to:s})}function I(s){return M(s)}function B(s){return I(P(E(s),{replace:!0}))}function $(s){const m=s.matched[s.matched.length-1];if(m&&m.redirect){const{redirect:d}=m;let v=typeof d=="function"?d(s):d;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 d=f=A(s),v=c.value,C=s.state,_=s.force,R=s.replace===!0,y=$(d);if(y)return M(P(E(y),{state:typeof y=="object"?P({},C,y.state):C,force:_,replace:R}),m||d);const O=d;O.redirectedFrom=m;let U;return!_&&At(r,v,d)&&(U=V(16,{to:O,from:v}),Pe(v,v,!0,!1)),(U?Promise.resolve(U):ye(O,v)).catch(x=>T(x)?T(x,2)?x:ce(x):se(x,O,v)).then(x=>{if(x){if(T(x,2))return M(P({replace:R},E(x.to),{state:typeof x.to=="object"?P({},C,x.to.state):C,force:_}),m||O)}else x=Ee(O,v,!0,R,C);return Re(O,v,x),x})}function tt(s,m){const d=k(s,m);return d?Promise.reject(d):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 d;const[v,C,_]=fn(s,m);d=he(v.reverse(),"beforeRouteLeave",s,m);for(const y of v)y.leaveGuards.forEach(O=>{d.push(j(O,s,m))});const R=tt.bind(null,s,m);return d.push(R),q(d).then(()=>{d=[];for(const y of a.list())d.push(j(y,s,m));return d.push(R),q(d)}).then(()=>{d=he(C,"beforeRouteUpdate",s,m);for(const y of C)y.updateGuards.forEach(O=>{d.push(j(O,s,m))});return d.push(R),q(d)}).then(()=>{d=[];for(const y of _)if(y.beforeEnter)if(L(y.beforeEnter))for(const O of y.beforeEnter)d.push(j(O,s,m));else d.push(j(y.beforeEnter,s,m));return d.push(R),q(d)}).then(()=>(s.matched.forEach(y=>y.enterCallbacks={}),d=he(_,"beforeRouteEnter",s,m,re),d.push(R),q(d))).then(()=>{d=[];for(const y of p.list())d.push(j(y,s,m));return d.push(R),q(d)}).catch(y=>T(y,8)?y:Promise.reject(y))}function Re(s,m,d){g.list().forEach(v=>re(()=>v(s,m,d)))}function Ee(s,m,d,v,C){const _=k(s,m);if(_)return _;const R=m===H,y=G?history.state:{};d&&(v||R?o.replace(s.fullPath,P({scroll:R&&y&&y.scroll},C)):o.push(s.fullPath,C)),c.value=s,Pe(s,m,d,R),ce()}let D;function nt(){D||(D=o.listen((s,m,d)=>{if(!Se.listening)return;const v=A(s),C=$(v);if(C){M(P(C,{replace:!0}),v).catch(F);return}f=v;const _=c.value;G&&Tt(be(_.fullPath,d.delta),te()),ye(v,_).catch(R=>T(R,12)?R:T(R,2)?(M(R.to,v).then(y=>{T(y,20)&&!d.delta&&d.type===Z.pop&&o.go(-1,!1)}).catch(F),Promise.reject()):(d.delta&&o.go(-d.delta,!1),se(R,v,_))).then(R=>{R=R||Ee(v,_,!1),R&&(d.delta&&!T(R,8)?o.go(-d.delta,!1):d.type===Z.pop&&T(R,20)&&o.go(-1,!1)),Re(v,_,R)}).catch(F)}))}let oe=Q(),we=Q(),J;function se(s,m,d){ce(s);const v=we.list();return v.length?v.forEach(C=>C(s,m,d)):console.error(s),Promise.reject(s)}function rt(){return J&&c.value!==H?Promise.resolve():new Promise((s,m)=>{oe.add([s,m])})}function ce(s){return J||(J=!s,nt(),oe.list().forEach(([m,d])=>s?d(s):m()),oe.reset()),s}function Pe(s,m,d,v){const{scrollBehavior:C}=e;if(!G||!C)return Promise.resolve();const _=!d&&$t(be(s.fullPath,0))||(v||!d)&&history.state&&history.state.scroll||null;return ct().then(()=>C(s,m,_)).then(R=>R&&Nt(R)).catch(R=>se(R,s,m))}const ie=s=>o.go(s);let ae;const ee=new Set,Se={currentRoute:c,listening:!0,addRoute:u,removeRoute:w,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:S,resolve:A,options:e,push:I,replace:B,go:ie,back:()=>ie(-1),forward:()=>ie(1),beforeEach:a.add,beforeResolve:p.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(c)}),G&&!ae&&c.value===H&&(ae=!0,I(o.location).catch(C=>{}));const d={};for(const C in H)Object.defineProperty(d,C,{get:()=>c.value[C],enumerable:!0});s.provide(ne,m),s.provide(ve,st(d)),s.provide(me,c);const v=s.unmount;ee.add(s),s.unmount=function(){ee.delete(s),ee.size<1&&(f=H,D&&D(),D=null,c.value=H,ae=!1,J=!1),v()}}};function q(s){return s.reduce((m,d)=>m.then(()=>re(d)),Promise.resolve())}return Se}function fn(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let p=0;p<a;p++){const g=t.matched[p];g&&(e.matched.find(f=>K(f,g))?r.push(g):n.push(g));const c=e.matched[p];c&&(t.matched.find(f=>K(f,c))||o.push(c))}return[n,r,o]}function mn(){return z(ne)}function gn(e){return z(ve)}export{mn as a,pn as b,dn as c,gn as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{w as S}from"./apexcharts.6HWN1GNB.0.0.34-alpha.6.js";import{G as Y,r as w,S as Z,x as q,A as G,O as J,t as $,w as u,L as F,n as H}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import"./@xterm.DqCFPTCA.0.0.34-alpha.6.js";import"./perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js";import"./hookable.B8xFkYCm.0.0.34-alpha.6.js";const A=["animationEnd","beforeMount","mounted","updated","click","mouseMove","mouseLeave","legendClick","markerClick","selection","dataPointSelection","dataPointMouseEnter","dataPointMouseLeave","beforeZoom","beforeResetZoom","zoomed","scrolled","brushScrolled"],f=Y({name:"apexchart",props:{options:{type:Object},type:{type:String},series:{type:Array,required:!0},width:{default:"100%"},height:{default:"auto"}},emits:A,setup(o,{emit:O}){const g=w(null),n=w(null),v=e=>e&&typeof e=="object"&&!Array.isArray(e)&&e!=null,y=(e,t)=>{typeof Object.assign!="function"&&function(){Object.assign=function(a){if(a==null)throw new TypeError("Cannot convert undefined or null to object");let p=Object(a);for(let r=1;r<arguments.length;r++){let c=arguments[r];if(c!=null)for(let m in c)c.hasOwnProperty(m)&&(p[m]=c[m])}return p}}();let s=Object.assign({},e);return v(e)&&v(t)&&Object.keys(t).forEach(a=>{v(t[a])?a in e?s[a]=y(e[a],t[a]):Object.assign(s,{[a]:t[a]}):Object.assign(s,{[a]:t[a]})}),s},i=async()=>{if(await H(),n.value)return;const e={chart:{type:o.type||o.options.chart.type||"line",height:o.height,width:o.width,events:{}},series:o.series},t=o.options.chart?o.options.chart.events:null;A.forEach(a=>{let p=(...r)=>O(a,...r);e.chart.events[a]=(...r)=>{p(...r),t&&t.hasOwnProperty(a)&&t[a](...r)}});const s=y(o.options,e);return n.value=new S(g.value,s),n.value.render()},d=()=>(h(),i()),h=()=>{n.value.destroy()},b=(e,t)=>n.value.updateSeries(e,t),j=(e,t,s,a)=>n.value.updateOptions(e,t,s,a),x=e=>n.value.toggleSeries(e),P=e=>{n.value.showSeries(e)},C=e=>{n.value.hideSeries(e)},M=(e,t)=>n.value.appendSeries(e,t),k=()=>{n.value.resetSeries()},E=(e,t)=>{n.value.toggleDataPointSelection(e,t)},L=e=>n.value.appendData(e),D=(e,t)=>n.value.zoomX(e,t),R=e=>n.value.dataURI(e),X=e=>n.value.setLocale(e),z=(e,t)=>{n.value.addXaxisAnnotation(e,t)},I=(e,t)=>{n.value.addYaxisAnnotation(e,t)},U=(e,t)=>{n.value.addPointAnnotation(e,t)},B=(e,t)=>{n.value.removeAnnotation(e,t)},T=()=>{n.value.clearAnnotations()};Z(()=>{window.ApexCharts=S}),q(()=>{g.value=G().proxy.$el,i()}),J(()=>{n.value&&h()});const l=$(o);return u(l.options,()=>{!n.value&&o.options?i():n.value.updateOptions(o.options)}),u(l.series,()=>{!n.value&&o.series?i():n.value.updateSeries(o.series)},{deep:!0}),u(l.type,()=>{d()}),u(l.width,()=>{d()}),u(l.height,()=>{d()}),{chart:n,init:i,refresh:d,destroy:h,updateOptions:j,updateSeries:b,toggleSeries:x,showSeries:P,hideSeries:C,resetSeries:k,zoomX:D,toggleDataPointSelection:E,appendData:L,appendSeries:M,addXaxisAnnotation:z,addYaxisAnnotation:I,addPointAnnotation:U,removeAnnotation:B,clearAnnotations:T,setLocale:X,dataURI:R}},render(){return F("div",{class:"vue-apexcharts"})}}),K=o=>{o.component(f.name,f)};f.install=K;export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R}from"./dnd-core.DjhjiPK9.0.0.34-alpha.6.js";import{N as E,a as x,G as N,P as j,i as U,u as o,c as l,F as f,r as F,E as V}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.34-alpha.6.js";import{e as P}from"./fast-deep-equal.BPvnHGwn.0.0.34-alpha.6.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){E(M,t)}function Y(){return x(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 G(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 B(){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 G(t)||L(t,r)||z(t,r)||B()}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=N({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,j(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 Ne(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function je(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),Ne(n,r),je(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 Ge(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 Be(t,r){return Ye(t)||Ge(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=Be(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,nt as a,it as u};
|