@camera.ui/server 0.0.63 → 0.0.65
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/README.md +29 -0
- package/dist/interface/assets/main.BJSPOiOB.0.0.65.css +1 -0
- package/dist/interface/index.html +44 -44
- package/dist/interface/js/{@intlify.BkGPX90O.0.0.63.js → @intlify.BIbPqCER.0.0.65.js} +4 -4
- package/dist/interface/js/{@primeuix.BkBDkSvZ.0.0.63.js → @primeuix.bRNqZjQz.0.0.65.js} +43 -43
- package/dist/interface/js/{@primevue.D_7clQ9D.0.0.63.js → @primevue.nr37tGdz.0.0.65.js} +8 -8
- package/dist/interface/js/@tanstack.BlGunTa7.0.0.65.js +1 -0
- package/dist/interface/js/{@vee-validate.DLXLKcbH.0.0.63.js → @vee-validate.CM3rjqgU.0.0.65.js} +2 -2
- package/dist/interface/js/@vue.BxBKarQv.0.0.65.js +17 -0
- package/dist/interface/js/@vueuse.CT4ArM_v.0.0.65.js +1 -0
- package/dist/interface/js/Adminpanel.Hao0o9sq.0.0.65.js +1 -0
- package/dist/interface/js/{Camera.CyBZZ28c.0.0.63.js → Camera.DlM_BanJ.0.0.65.js} +1 -1
- package/dist/interface/js/{Cameras.xyNhttxc.0.0.63.js → Cameras.Cvg5uMvR.0.0.65.js} +3 -3
- package/dist/interface/js/Cammesh.C7rHisuG.0.0.65.js +1 -0
- package/dist/interface/js/Camview.BRwFhhGH.0.0.65.js +1 -0
- package/dist/interface/js/Config.DD7ZQYIb.0.0.65.js +2 -0
- package/dist/interface/js/Console.QIMOqe_j.0.0.65.js +4 -0
- package/dist/interface/js/{CuiConsole.tVTZVJ2r.0.0.63.js → CuiConsole.DFTuJye2.0.0.65.js} +1 -1
- package/dist/interface/js/{CuiPluginCard.BxI4Y206.0.0.63.js → CuiPluginCard.DbxiKfJr.0.0.65.js} +2 -2
- package/dist/interface/js/{CuiTimeline.Ddo5H5eu.0.0.63.js → CuiTimeline.CoOU089I.0.0.65.js} +1 -1
- package/dist/interface/js/{FirstSteps.BLNp-T2e.0.0.63.js → FirstSteps.cJvnvd0p.0.0.65.js} +1 -1
- package/dist/interface/js/{Plugin.BzcStDGT.0.0.63.js → Plugin.BeWKpCW0.0.0.65.js} +1 -1
- package/dist/interface/js/{Plugins.Bru4qZHM.0.0.63.js → Plugins.B2csFQ62.0.0.65.js} +1 -1
- package/dist/interface/js/Recordings.QK0SFOP1.0.0.65.js +1 -0
- package/dist/interface/js/{Settings.A2rkEnZf.0.0.63.js → Settings.BcPlqzDA.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsAccount.kSQHHipN.0.0.63.js → SettingsAccount.CT1-o1T3.0.0.65.js} +1 -1
- package/dist/interface/js/SettingsAppearance.Ch77J-K9.0.0.65.js +1 -0
- package/dist/interface/js/{SettingsAppearance.vue_vue_type_script_setup_true_lang.rhYz8TOv.0.0.63.js → SettingsAppearance.vue_vue_type_script_setup_true_lang.Dasx97LK.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsBackup.BrO__F6s.0.0.63.js → SettingsBackup.Vq3t50X5.0.0.65.js} +1 -1
- package/dist/interface/js/SettingsRecordings.BySo0NsX.0.0.65.js +1 -0
- package/dist/interface/js/{SettingsRemote.Cc_G0w05.0.0.63.js → SettingsRemote.KojIuybJ.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsSystem.Bc3mt8Pc.0.0.63.js → SettingsSystem.YAXxE6CS.0.0.65.js} +1 -1
- package/dist/interface/js/{SettingsUsers.DUeBe8dg.0.0.63.js → SettingsUsers.CMKXsKiJ.0.0.65.js} +1 -1
- package/dist/interface/js/{VersionsHandler.vue_vue_type_script_setup_true_lang.CQoernTX.0.0.63.js → VersionsHandler.vue_vue_type_script_setup_true_lang.Cf81Fg_-.0.0.65.js} +2 -2
- package/dist/interface/js/{ace-builds.Ci20Oe4V.0.0.63.js → ace-builds.BXuWnsHa.0.0.65.js} +57 -56
- package/dist/interface/js/ace.config.Ckh2Op_e.0.0.65.js +1 -0
- package/dist/interface/js/{backup.DXMIOgSB.0.0.63.js → backup.DjiTbs1Q.0.0.65.js} +1 -1
- package/dist/interface/js/{chart.js.DZ1vEHB7.0.0.63.js → chart.js.COWP81wl.0.0.65.js} +1 -1
- package/dist/interface/js/{close-circle.DfpkK7eV.0.0.63.js → close-circle.Bt0DolDf.0.0.65.js} +1 -1
- package/dist/interface/js/{dnd-core.DRZXbJM9.0.0.63.js → dnd-core.CIZI_Pnh.0.0.65.js} +1 -1
- package/dist/interface/js/{draggabilly.o_TJc_mc.0.0.63.js → draggabilly.jXME3Xl7.0.0.65.js} +1 -1
- package/dist/interface/js/{engine.io-client.DKSc90ta.0.0.63.js → engine.io-client.Bwq6EbBZ.0.0.65.js} +1 -1
- package/dist/interface/js/{fast-deep-equal.BkqdlJZE.0.0.63.js → fast-deep-equal.wMnqc5nP.0.0.65.js} +1 -1
- package/dist/interface/js/{highlight.js.DyOtvXLH.0.0.63.js → highlight.js.BJ--bJsY.0.0.65.js} +1 -1
- package/dist/interface/js/{linkify-it.DGDBcHC0.0.0.63.js → linkify-it.BgSGKsum.0.0.65.js} +1 -1
- package/dist/interface/js/main.DteM3Tyw.0.0.65.js +31 -0
- package/dist/interface/js/{markdown-it.M3A8AdOh.0.0.63.js → markdown-it.CC2C4XG8.0.0.65.js} +1 -1
- package/dist/interface/js/{nprogress.IzIs0JFK.0.0.63.js → nprogress.Y-YIR5w8.0.0.65.js} +1 -1
- package/dist/interface/js/{pinia.DVtqAP8S.0.0.63.js → pinia.B3xyHOOv.0.0.65.js} +3 -3
- package/dist/interface/js/primevue.NVdW9OqK.0.0.65.js +142 -0
- package/dist/interface/js/{qrcode.J-jUQ3O7.0.0.63.js → qrcode.BsXR3CD9.0.0.65.js} +1 -1
- package/dist/interface/js/{react-dnd-touch-backend.r6ZvPP1w.0.0.63.js → react-dnd-touch-backend.C5TP3QMu.0.0.65.js} +1 -1
- package/dist/interface/js/{refresh-rounded.Cj4edEnQ.0.0.63.js → refresh-rounded.DOZ-DEFG.0.0.65.js} +1 -1
- package/dist/interface/js/{rxjs.B3taOakU.0.0.63.js → rxjs.CUmmYmXR.0.0.65.js} +1 -1
- package/dist/interface/js/{socket.io-client.CoxRrB0i.0.0.63.js → socket.io-client.Bd1Z4yya.0.0.65.js} +1 -1
- package/dist/interface/js/{socket.io-parser.CS2MblGy.0.0.63.js → socket.io-parser.Brq8Mynw.0.0.65.js} +1 -1
- package/dist/interface/js/{system.DjVJ4skZ.0.0.63.js → system.Ch6phD20.0.0.65.js} +1 -1
- package/dist/interface/js/{trash-fill.DQ11gskZ.0.0.63.js → trash-fill.CK6-EpFr.0.0.65.js} +1 -1
- package/dist/interface/js/{unidragger.DbVT_hUC.0.0.63.js → unidragger.BlS0U2Yu.0.0.65.js} +1 -1
- package/dist/interface/js/{vee-validate.DJQ5Z65z.0.0.63.js → vee-validate.Ba-stGSk.0.0.65.js} +2 -2
- package/dist/interface/js/{vue-chartjs.DZnMEgA0.0.0.63.js → vue-chartjs._SToXEZB.0.0.65.js} +1 -1
- package/dist/interface/js/vue-i18n.Bdweqx4L.0.0.65.js +5 -0
- package/dist/interface/js/{vue-inline-svg.DwQ6AJRv.0.0.63.js → vue-inline-svg.dmm7rA4k.0.0.65.js} +1 -1
- package/dist/interface/js/{vue-router.CtXJ7SHU.0.0.63.js → vue-router.BnioVTWI.0.0.65.js} +1 -1
- package/dist/interface/js/vue-zoomable.BYLfof9a.0.0.65.js +1 -0
- package/dist/interface/js/{vue3-dnd.CJgQfdRH.0.0.63.js → vue3-dnd.BltUqrfR.0.0.65.js} +1 -1
- package/dist/interface/js/zod.2bfLsWMZ.0.0.65.js +1 -0
- package/dist/interface/js/{zoom-out.Uoc_DZyc.0.0.63.js → zoom-out.B7PvyI4N.0.0.65.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +23 -23
- package/dist/server/requirements.txt +2 -2
- package/dist/server/src/api/controllers/cameras.controller.d.ts +1 -0
- package/dist/server/src/api/controllers/cameras.controller.js +27 -0
- package/dist/server/src/api/controllers/cameras.controller.js.map +1 -1
- package/dist/server/src/api/database/index.js +10 -2
- package/dist/server/src/api/database/index.js.map +1 -1
- package/dist/server/src/api/go2rtc/api/streams.d.ts +2 -0
- package/dist/server/src/api/go2rtc/api/streams.js +44 -0
- package/dist/server/src/api/go2rtc/api/streams.js.map +1 -1
- package/dist/server/src/api/routes/cameras.routes.js +6 -0
- package/dist/server/src/api/routes/cameras.routes.js.map +1 -1
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +8 -0
- package/dist/server/src/api/schemas/go2rtc.schema.js +6 -0
- package/dist/server/src/api/schemas/go2rtc.schema.js.map +1 -1
- package/dist/server/src/api/services/cameras.service.d.ts +1 -0
- package/dist/server/src/api/services/cameras.service.js +38 -8
- package/dist/server/src/api/services/cameras.service.js.map +1 -1
- package/dist/server/src/camera/controller.d.ts +1 -3
- package/dist/server/src/camera/controller.js +5 -11
- package/dist/server/src/camera/controller.js.map +1 -1
- package/dist/server/src/camera/device.d.ts +1 -1
- package/dist/server/src/camera/device.js +2 -2
- package/dist/server/src/camera/device.js.map +1 -1
- package/dist/server/src/camera/frameWorker.js +17 -2
- package/dist/server/src/camera/frameWorker.js.map +1 -1
- package/dist/server/src/camera/iou.js +13 -14
- package/dist/server/src/camera/iou.js.map +1 -1
- package/dist/server/src/camera/utils.js.map +1 -1
- package/dist/server/src/decoder/wasm/build/decoder.js +4 -4
- package/dist/server/src/decoder/wasm/build/decoder.wasm +0 -0
- package/dist/server/src/services/config/index.js +11 -0
- package/dist/server/src/services/config/index.js.map +1 -1
- package/dist/server/src/services/config/types.d.ts +4 -0
- package/package.json +23 -23
- package/dist/interface/assets/main.DYKKLRxP.0.0.63.css +0 -1
- package/dist/interface/assets/mode-json.Br7xisR1.0.0.63.js +0 -275
- package/dist/interface/assets/worker-json.DgwNIOck.0.0.63.js +0 -1626
- package/dist/interface/js/@tanstack.BSC4wwmS.0.0.63.js +0 -1
- package/dist/interface/js/@vue.Dh6viqaK.0.0.63.js +0 -17
- package/dist/interface/js/@vueuse.BKr_9ZHe.0.0.63.js +0 -1
- package/dist/interface/js/Adminpanel.CgnDDe0k.0.0.63.js +0 -1
- package/dist/interface/js/Cammesh.CrlhW6m8.0.0.63.js +0 -1
- package/dist/interface/js/Camview.C8yUnqeH.0.0.63.js +0 -1
- package/dist/interface/js/Config.BHb_92sr.0.0.63.js +0 -2
- package/dist/interface/js/Console.gVRCs4SQ.0.0.63.js +0 -4
- package/dist/interface/js/Recordings.BfDGF8yy.0.0.63.js +0 -1
- package/dist/interface/js/SettingsAppearance.DrK-Y9Dz.0.0.63.js +0 -1
- package/dist/interface/js/SettingsRecordings.CKLA9Mcy.0.0.63.js +0 -1
- package/dist/interface/js/ace.config.D89CcLgS.0.0.63.js +0 -1
- package/dist/interface/js/main.nKfYd2aY.0.0.63.js +0 -31
- package/dist/interface/js/primevue.CoZ9R2Q2.0.0.63.js +0 -142
- package/dist/interface/js/vue-i18n.0nnpASs4.0.0.63.js +0 -5
- package/dist/interface/js/vue-zoomable.CyClhEiW.0.0.63.js +0 -1
- package/dist/interface/js/zod.sy4ilHCy.0.0.63.js +0 -1
- package/dist/server/src/camera/session.d.ts +0 -37
- package/dist/server/src/camera/session.js +0 -160
- package/dist/server/src/camera/session.js.map +0 -1
- /package/dist/interface/assets/{@xterm.DYP7pi_n.0.0.63.css → @xterm.DYP7pi_n.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.BKek2EMH.0.0.63.css → Adminpanel.BKek2EMH.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Cameras.BDWZJqPN.0.0.63.css → Cameras.BDWZJqPN.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Camview.Cvhuou6V.0.0.63.css → Camview.Cvhuou6V.0.0.65.css} +0 -0
- /package/dist/interface/assets/{CuiConsole.DCYyxdVg.0.0.63.css → CuiConsole.DCYyxdVg.0.0.65.css} +0 -0
- /package/dist/interface/assets/{CuiPluginCard.yF8V0SZY.0.0.63.css → CuiPluginCard.yF8V0SZY.0.0.65.css} +0 -0
- /package/dist/interface/assets/{CuiTimeline.BkIwlYtw.0.0.63.css → CuiTimeline.BkIwlYtw.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Plugin.DJElsAn5.0.0.63.css → Plugin.DJElsAn5.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Plugins.BwPlcRrV.0.0.63.css → Plugins.BwPlcRrV.0.0.65.css} +0 -0
- /package/dist/interface/assets/{Settings.CkgfRkQr.0.0.63.css → Settings.CkgfRkQr.0.0.65.css} +0 -0
- /package/dist/interface/assets/{SettingsAccount.CDZT7gN-.0.0.63.css → SettingsAccount.CDZT7gN-.0.0.65.css} +0 -0
- /package/dist/interface/assets/{SettingsBackup.CX0rT0QJ.0.0.63.css → SettingsBackup.CX0rT0QJ.0.0.65.css} +0 -0
- /package/dist/interface/assets/{highlight.Ch2EwETz.0.0.63.css → highlight.Ch2EwETz.0.0.65.css} +0 -0
- /package/dist/interface/assets/{logo-256.BCQk9H1-.0.0.63.png → logo-256.BCQk9H1-.0.0.65.png} +0 -0
- /package/dist/interface/assets/{logo-512.DLKVOU2S.0.0.63.png → logo-512.DLKVOU2S.0.0.65.png} +0 -0
- /package/dist/interface/assets/{logo.DmEiRk0z.0.0.63.png → logo.DmEiRk0z.0.0.65.png} +0 -0
- /package/dist/interface/assets/{mode-yaml.CIYL8U3d.0.0.63.js → mode-yaml.CIYL8U3d.0.0.65.js} +0 -0
- /package/dist/interface/assets/{worker-base.jEXLGV2h.0.0.63.js → worker-base.jEXLGV2h.0.0.65.js} +0 -0
- /package/dist/interface/assets/{worker-yaml.B3uUYINB.0.0.63.js → worker-yaml.B3uUYINB.0.0.65.js} +0 -0
- /package/dist/interface/js/{@babel.l0sNRNKZ.0.0.63.js → @babel.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{@kurkle.D8fDXNIl.0.0.63.js → @kurkle.D8fDXNIl.0.0.65.js} +0 -0
- /package/dist/interface/js/{@react-dnd.CcwRs9xb.0.0.63.js → @react-dnd.CcwRs9xb.0.0.65.js} +0 -0
- /package/dist/interface/js/{@socket.io.Dkula2eQ.0.0.63.js → @socket.io.Dkula2eQ.0.0.65.js} +0 -0
- /package/dist/interface/js/{@xterm.BXZNujCq.0.0.63.js → @xterm.tD6mXzBA.0.0.65.js} +0 -0
- /package/dist/interface/js/{axios.DHr9lByg.0.0.63.js → axios.DHr9lByg.0.0.65.js} +0 -0
- /package/dist/interface/js/{birpc.l0sNRNKZ.0.0.63.js → birpc.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{compare-versions.DqEOhma6.0.0.63.js → compare-versions.DqEOhma6.0.0.65.js} +0 -0
- /package/dist/interface/js/{dijkstrajs.C00ieaqj.0.0.63.js → dijkstrajs.C00ieaqj.0.0.65.js} +0 -0
- /package/dist/interface/js/{engine.io-parser.BiEtp6m2.0.0.63.js → engine.io-parser.BiEtp6m2.0.0.65.js} +0 -0
- /package/dist/interface/js/{entities.C20TfXL6.0.0.63.js → entities.C20TfXL6.0.0.65.js} +0 -0
- /package/dist/interface/js/{ev-emitter.X5f1qa-c.0.0.63.js → ev-emitter.X5f1qa-c.0.0.65.js} +0 -0
- /package/dist/interface/js/{get-size.D1dS-IaP.0.0.63.js → get-size.D1dS-IaP.0.0.65.js} +0 -0
- /package/dist/interface/js/{hookable.l0sNRNKZ.0.0.63.js → hookable.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{mdurl.k9Sl0PQj.0.0.63.js → mdurl.k9Sl0PQj.0.0.65.js} +0 -0
- /package/dist/interface/js/{perfect-debounce.l0sNRNKZ.0.0.63.js → perfect-debounce.l0sNRNKZ.0.0.65.js} +0 -0
- /package/dist/interface/js/{primelocale.Bga3dOQu.0.0.63.js → primelocale.Bga3dOQu.0.0.65.js} +0 -0
- /package/dist/interface/js/{punycode.js.Dj65hjkv.0.0.63.js → punycode.js.Dj65hjkv.0.0.65.js} +0 -0
- /package/dist/interface/js/{react-dnd-html5-backend.1HQjlkwI.0.0.63.js → react-dnd-html5-backend.1HQjlkwI.0.0.65.js} +0 -0
- /package/dist/interface/js/{redux.BFxtlG_c.0.0.63.js → redux.BFxtlG_c.0.0.65.js} +0 -0
- /package/dist/interface/js/{tslib.9k7AwCpt.0.0.63.js → tslib.9k7AwCpt.0.0.65.js} +0 -0
- /package/dist/interface/js/{uc.micro.kMc2yuuw.0.0.63.js → uc.micro.kMc2yuuw.0.0.65.js} +0 -0
- /package/dist/interface/js/{uuid.C6aID195.0.0.63.js → uuid.C6aID195.0.0.65.js} +0 -0
- /package/dist/interface/js/{vue.l0sNRNKZ.0.0.63.js → vue.l0sNRNKZ.0.0.65.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as te}from"./@xterm.
|
|
1
|
+
import{g as te}from"./@xterm.tD6mXzBA.0.0.65.js";import{r as ee}from"./dijkstrajs.C00ieaqj.0.0.65.js";var V={},Q,Bt;function ne(){return Bt||(Bt=1,Q=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Q}var $={},F={},At;function v(){if(At)return F;At=1;let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return F.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},F.getSymbolTotalCodewords=function(n){return o[n]},F.getBCHDigit=function(u){let n=0;for(;u!==0;)n++,u>>>=1;return n},F.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');r=n},F.isKanjiModeEnabled=function(){return typeof r<"u"},F.toSJIS=function(n){return r(n)},F}var W={},Rt;function wt(){return Rt||(Rt=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+u)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,t){if(r.isValid(n))return n;try{return o(n)}catch{return t}}}(W)),W}var Z,pt;function re(){if(pt)return Z;pt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const u=Math.floor(o/8);return(this.buffer[u]>>>7-o%8&1)===1},put:function(o,u){for(let n=0;n<u;n++)this.putBit((o>>>u-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),o&&(this.buffer[u]|=128>>>this.length%8),this.length++}},Z=r,Z}var X,It;function oe(){if(It)return X;It=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,u,n,t){const e=o*this.size+u;this.data[e]=n,t&&(this.reservedBit[e]=!0)},r.prototype.get=function(o,u){return this.data[o*this.size+u]},r.prototype.xor=function(o,u,n){this.data[o*this.size+u]^=n},r.prototype.isReserved=function(o,u){return this.reservedBit[o*this.size+u]},X=r,X}var x={},Tt;function ie(){return Tt||(Tt=1,function(r){const o=v().getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,e=o(n),i=e===145?26:Math.ceil((e-13)/(2*t-2))*2,a=[e-7];for(let s=1;s<t-1;s++)a[s]=a[s-1]-i;return a.push(6),a.reverse()},r.getPositions=function(n){const t=[],e=r.getRowColCoords(n),i=e.length;for(let a=0;a<i;a++)for(let s=0;s<i;s++)a===0&&s===0||a===0&&s===i-1||a===i-1&&s===0||t.push([e[a],e[s]]);return t}}(x)),x}var tt={},Nt;function ue(){if(Nt)return tt;Nt=1;const r=v().getSymbolSize,o=7;return tt.getPositions=function(n){const t=r(n);return[[0,0],[t-o,0],[0,t-o]]},tt}var et={},Mt;function se(){return Mt||(Mt=1,function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const e=t.size;let i=0,a=0,s=0,c=null,E=null;for(let p=0;p<e;p++){a=s=0,c=E=null;for(let y=0;y<e;y++){let f=t.get(p,y);f===c?a++:(a>=5&&(i+=o.N1+(a-5)),c=f,a=1),f=t.get(y,p),f===E?s++:(s>=5&&(i+=o.N1+(s-5)),E=f,s=1)}a>=5&&(i+=o.N1+(a-5)),s>=5&&(i+=o.N1+(s-5))}return i},r.getPenaltyN2=function(t){const e=t.size;let i=0;for(let a=0;a<e-1;a++)for(let s=0;s<e-1;s++){const c=t.get(a,s)+t.get(a,s+1)+t.get(a+1,s)+t.get(a+1,s+1);(c===4||c===0)&&i++}return i*o.N2},r.getPenaltyN3=function(t){const e=t.size;let i=0,a=0,s=0;for(let c=0;c<e;c++){a=s=0;for(let E=0;E<e;E++)a=a<<1&2047|t.get(c,E),E>=10&&(a===1488||a===93)&&i++,s=s<<1&2047|t.get(E,c),E>=10&&(s===1488||s===93)&&i++}return i*o.N3},r.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let s=0;s<i;s++)e+=t.data[s];return Math.abs(Math.ceil(e*100/i/5)-10)*o.N4};function u(n,t,e){switch(n){case r.Patterns.PATTERN000:return(t+e)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return e%3===0;case r.Patterns.PATTERN011:return(t+e)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(e/3))%2===0;case r.Patterns.PATTERN101:return t*e%2+t*e%3===0;case r.Patterns.PATTERN110:return(t*e%2+t*e%3)%2===0;case r.Patterns.PATTERN111:return(t*e%3+(t+e)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(t,e){const i=e.size;for(let a=0;a<i;a++)for(let s=0;s<i;s++)e.isReserved(s,a)||e.xor(s,a,u(t,s,a))},r.getBestMask=function(t,e){const i=Object.keys(r.Patterns).length;let a=0,s=1/0;for(let c=0;c<i;c++){e(c),r.applyMask(c,t);const E=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(c,t),E<s&&(s=E,a=c)}return a}}(et)),et}var Y={},St;function Gt(){if(St)return Y;St=1;const r=wt(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Y.getBlocksCount=function(t,e){switch(e){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},Y.getTotalCodewordsCount=function(t,e){switch(e){case r.L:return u[(t-1)*4+0];case r.M:return u[(t-1)*4+1];case r.Q:return u[(t-1)*4+2];case r.H:return u[(t-1)*4+3];default:return}},Y}var nt={},H={},Pt;function ae(){if(Pt)return H;Pt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return function(){let n=1;for(let t=0;t<255;t++)r[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),H.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},H.exp=function(n){return r[n]},H.mul=function(n,t){return n===0||t===0?0:r[o[n]+o[t]]},H}var bt;function ce(){return bt||(bt=1,function(r){const o=ae();r.mul=function(n,t){const e=new Uint8Array(n.length+t.length-1);for(let i=0;i<n.length;i++)for(let a=0;a<t.length;a++)e[i+a]^=o.mul(n[i],t[a]);return e},r.mod=function(n,t){let e=new Uint8Array(n);for(;e.length-t.length>=0;){const i=e[0];for(let s=0;s<t.length;s++)e[s]^=o.mul(t[s],i);let a=0;for(;a<e.length&&e[a]===0;)a++;e=e.slice(a)}return e},r.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let e=0;e<n;e++)t=r.mul(t,new Uint8Array([1,o.exp(e)]));return t}}(nt)),nt}var rt,Lt;function le(){if(Lt)return rt;Lt=1;const r=ce();function o(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const e=r.mod(t,this.genPoly),i=this.degree-e.length;if(i>0){const a=new Uint8Array(this.degree);return a.set(e,i),a}return e},rt=o,rt}var ot={},it={},ut={},Dt;function Qt(){return Dt||(Dt=1,ut.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),ut}var L={},qt;function $t(){if(qt)return L;qt=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
|
|
2
2
|
]))+`;L.KANJI=new RegExp(u,"g"),L.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),L.BYTE=new RegExp(n,"g"),L.NUMERIC=new RegExp(r,"g"),L.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+u+"$"),e=new RegExp("^"+r+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return L.testKanji=function(s){return t.test(s)},L.testNumeric=function(s){return e.test(s)},L.testAlphanumeric=function(s){return i.test(s)},L}var Ut;function k(){return Ut||(Ut=1,function(r){const o=Qt(),u=$t();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(e,i){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!o.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?e.ccBits[0]:i<27?e.ccBits[1]:e.ccBits[2]},r.getBestModeForData=function(e){return u.testNumeric(e)?r.NUMERIC:u.testAlphanumeric(e)?r.ALPHANUMERIC:u.testKanji(e)?r.KANJI:r.BYTE},r.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},r.isValid=function(e){return e&&e.bit&&e.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(e,i){if(r.isValid(e))return e;try{return n(e)}catch{return i}}}(it)),it}var Ft;function fe(){return Ft||(Ft=1,function(r){const o=v(),u=Gt(),n=wt(),t=k(),e=Qt(),i=7973,a=o.getBCHDigit(i);function s(y,f,M){for(let S=1;S<=40;S++)if(f<=r.getCapacity(S,M,y))return S}function c(y,f){return t.getCharCountIndicator(y,f)+4}function E(y,f){let M=0;return y.forEach(function(S){const b=c(S.mode,f);M+=b+S.getBitsLength()}),M}function p(y,f){for(let M=1;M<=40;M++)if(E(y,M)<=r.getCapacity(M,f,t.MIXED))return M}r.from=function(f,M){return e.isValid(f)?parseInt(f,10):M},r.getCapacity=function(f,M,S){if(!e.isValid(f))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=t.BYTE);const b=o.getSymbolTotalCodewords(f),I=u.getTotalCodewordsCount(f,M),N=(b-I)*8;if(S===t.MIXED)return N;const R=N-c(S,f);switch(S){case t.NUMERIC:return Math.floor(R/10*3);case t.ALPHANUMERIC:return Math.floor(R/11*2);case t.KANJI:return Math.floor(R/13);case t.BYTE:default:return Math.floor(R/8)}},r.getBestVersionForData=function(f,M){let S;const b=n.from(M,n.M);if(Array.isArray(f)){if(f.length>1)return p(f,b);if(f.length===0)return 1;S=f[0]}else S=f;return s(S.mode,S.getLength(),b)},r.getEncodedBits=function(f){if(!e.isValid(f)||f<7)throw new Error("Invalid QR Code version");let M=f<<12;for(;o.getBCHDigit(M)-a>=0;)M^=i<<o.getBCHDigit(M)-a;return f<<12|M}}(ot)),ot}var st={},vt;function de(){if(vt)return st;vt=1;const r=v(),o=1335,u=21522,n=r.getBCHDigit(o);return st.getEncodedBits=function(e,i){const a=e.bit<<3|i;let s=a<<10;for(;r.getBCHDigit(s)-n>=0;)s^=o<<r.getBCHDigit(s)-n;return(a<<10|s)^u},st}var at={},ct,kt;function ge(){if(kt)return ct;kt=1;const r=k();function o(u){this.mode=r.NUMERIC,this.data=u.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(n){let t,e,i;for(t=0;t+3<=this.data.length;t+=3)e=this.data.substr(t,3),i=parseInt(e,10),n.put(i,10);const a=this.data.length-t;a>0&&(e=this.data.substr(t),i=parseInt(e,10),n.put(i,a*3+1))},ct=o,ct}var lt,zt;function he(){if(zt)return lt;zt=1;const r=k(),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(n){this.mode=r.ALPHANUMERIC,this.data=n}return u.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let i=o.indexOf(this.data[e])*45;i+=o.indexOf(this.data[e+1]),t.put(i,11)}this.data.length%2&&t.put(o.indexOf(this.data[e]),6)},lt=u,lt}var ft,Vt;function me(){if(Vt)return ft;Vt=1;const r=k();function o(u){this.mode=r.BYTE,typeof u=="string"?this.data=new TextEncoder().encode(u):this.data=new Uint8Array(u)}return o.getBitsLength=function(n){return n*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(u){for(let n=0,t=this.data.length;n<t;n++)u.put(this.data[n],8)},ft=o,ft}var dt,Kt;function we(){if(Kt)return dt;Kt=1;const r=k(),o=v();function u(n){this.mode=r.KANJI,this.data=n}return u.getBitsLength=function(t){return t*13},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(n){let t;for(t=0;t<this.data.length;t++){let e=o.toSJIS(this.data[t]);if(e>=33088&&e<=40956)e-=33088;else if(e>=57408&&e<=60351)e-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
3
3
|
Make sure your charset is UTF-8`);e=(e>>>8&255)*192+(e&255),n.put(e,13)}},dt=u,dt}var Ht;function Ce(){return Ht||(Ht=1,function(r){const o=k(),u=ge(),n=he(),t=me(),e=we(),i=$t(),a=v(),s=ee();function c(I){return unescape(encodeURIComponent(I)).length}function E(I,N,R){const B=[];let P;for(;(P=I.exec(R))!==null;)B.push({data:P[0],index:P.index,mode:N,length:P[0].length});return B}function p(I){const N=E(i.NUMERIC,o.NUMERIC,I),R=E(i.ALPHANUMERIC,o.ALPHANUMERIC,I);let B,P;return a.isKanjiModeEnabled()?(B=E(i.BYTE,o.BYTE,I),P=E(i.KANJI,o.KANJI,I)):(B=E(i.BYTE_KANJI,o.BYTE,I),P=[]),N.concat(R,B,P).sort(function(w,m){return w.index-m.index}).map(function(w){return{data:w.data,mode:w.mode,length:w.length}})}function y(I,N){switch(N){case o.NUMERIC:return u.getBitsLength(I);case o.ALPHANUMERIC:return n.getBitsLength(I);case o.KANJI:return e.getBitsLength(I);case o.BYTE:return t.getBitsLength(I)}}function f(I){return I.reduce(function(N,R){const B=N.length-1>=0?N[N.length-1]:null;return B&&B.mode===R.mode?(N[N.length-1].data+=R.data,N):(N.push(R),N)},[])}function M(I){const N=[];for(let R=0;R<I.length;R++){const B=I[R];switch(B.mode){case o.NUMERIC:N.push([B,{data:B.data,mode:o.ALPHANUMERIC,length:B.length},{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.ALPHANUMERIC:N.push([B,{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.KANJI:N.push([B,{data:B.data,mode:o.BYTE,length:c(B.data)}]);break;case o.BYTE:N.push([{data:B.data,mode:o.BYTE,length:c(B.data)}])}}return N}function S(I,N){const R={},B={start:{}};let P=["start"];for(let d=0;d<I.length;d++){const w=I[d],m=[];for(let l=0;l<w.length;l++){const A=w[l],g=""+d+l;m.push(g),R[g]={node:A,lastCount:0},B[g]={};for(let C=0;C<P.length;C++){const h=P[C];R[h]&&R[h].node.mode===A.mode?(B[h][g]=y(R[h].lastCount+A.length,A.mode)-y(R[h].lastCount,A.mode),R[h].lastCount+=A.length):(R[h]&&(R[h].lastCount=A.length),B[h][g]=y(A.length,A.mode)+4+o.getCharCountIndicator(A.mode,N))}}P=m}for(let d=0;d<P.length;d++)B[P[d]].end=0;return{map:B,table:R}}function b(I,N){let R;const B=o.getBestModeForData(I);if(R=o.from(N,B),R!==o.BYTE&&R.bit<B.bit)throw new Error('"'+I+'" cannot be encoded with mode '+o.toString(R)+`.
|
|
4
4
|
Suggested mode is: `+o.toString(B));switch(R===o.KANJI&&!a.isKanjiModeEnabled()&&(R=o.BYTE),R){case o.NUMERIC:return new u(I);case o.ALPHANUMERIC:return new n(I);case o.KANJI:return new e(I);case o.BYTE:return new t(I)}}r.fromArray=function(N){return N.reduce(function(R,B){return typeof B=="string"?R.push(b(B,null)):B.data&&R.push(b(B.data,B.mode)),R},[])},r.fromString=function(N,R){const B=p(N,a.isKanjiModeEnabled()),P=M(B),d=S(P,R),w=s.find_path(d.map,"start","end"),m=[];for(let l=1;l<w.length-1;l++)m.push(d.table[w[l]].node);return r.fromArray(f(m))},r.rawSplit=function(N){return r.fromArray(p(N,a.isKanjiModeEnabled()))}}(at)),at}var Jt;function Ee(){if(Jt)return $;Jt=1;const r=v(),o=wt(),u=re(),n=oe(),t=ie(),e=ue(),i=se(),a=Gt(),s=le(),c=fe(),E=de(),p=k(),y=Ce();function f(d,w){const m=d.size,l=e.getPositions(w);for(let A=0;A<l.length;A++){const g=l[A][0],C=l[A][1];for(let h=-1;h<=7;h++)if(!(g+h<=-1||m<=g+h))for(let T=-1;T<=7;T++)C+T<=-1||m<=C+T||(h>=0&&h<=6&&(T===0||T===6)||T>=0&&T<=6&&(h===0||h===6)||h>=2&&h<=4&&T>=2&&T<=4?d.set(g+h,C+T,!0,!0):d.set(g+h,C+T,!1,!0))}}function M(d){const w=d.size;for(let m=8;m<w-8;m++){const l=m%2===0;d.set(m,6,l,!0),d.set(6,m,l,!0)}}function S(d,w){const m=t.getPositions(w);for(let l=0;l<m.length;l++){const A=m[l][0],g=m[l][1];for(let C=-2;C<=2;C++)for(let h=-2;h<=2;h++)C===-2||C===2||h===-2||h===2||C===0&&h===0?d.set(A+C,g+h,!0,!0):d.set(A+C,g+h,!1,!0)}}function b(d,w){const m=d.size,l=c.getEncodedBits(w);let A,g,C;for(let h=0;h<18;h++)A=Math.floor(h/3),g=h%3+m-8-3,C=(l>>h&1)===1,d.set(A,g,C,!0),d.set(g,A,C,!0)}function I(d,w,m){const l=d.size,A=E.getEncodedBits(w,m);let g,C;for(g=0;g<15;g++)C=(A>>g&1)===1,g<6?d.set(g,8,C,!0):g<8?d.set(g+1,8,C,!0):d.set(l-15+g,8,C,!0),g<8?d.set(8,l-g-1,C,!0):g<9?d.set(8,15-g-1+1,C,!0):d.set(8,15-g-1,C,!0);d.set(l-8,8,1,!0)}function N(d,w){const m=d.size;let l=-1,A=m-1,g=7,C=0;for(let h=m-1;h>0;h-=2)for(h===6&&h--;;){for(let T=0;T<2;T++)if(!d.isReserved(A,h-T)){let U=!1;C<w.length&&(U=(w[C]>>>g&1)===1),d.set(A,h-T,U),g--,g===-1&&(C++,g=7)}if(A+=l,A<0||m<=A){A-=l,l=-l;break}}}function R(d,w,m){const l=new u;m.forEach(function(T){l.put(T.mode.bit,4),l.put(T.getLength(),p.getCharCountIndicator(T.mode,d)),T.write(l)});const A=r.getSymbolTotalCodewords(d),g=a.getTotalCodewordsCount(d,w),C=(A-g)*8;for(l.getLengthInBits()+4<=C&&l.put(0,4);l.getLengthInBits()%8!==0;)l.putBit(0);const h=(C-l.getLengthInBits())/8;for(let T=0;T<h;T++)l.put(T%2?17:236,8);return B(l,d,w)}function B(d,w,m){const l=r.getSymbolTotalCodewords(w),A=a.getTotalCodewordsCount(w,m),g=l-A,C=a.getBlocksCount(w,m),h=l%C,T=C-h,U=Math.floor(l/C),K=Math.floor(g/C),Zt=K+1,Ct=U-K,Xt=new s(Ct);let _=0;const J=new Array(C),Et=new Array(C);let O=0;const xt=new Uint8Array(d.buffer);for(let z=0;z<C;z++){const G=z<T?K:Zt;J[z]=xt.slice(_,_+G),Et[z]=Xt.encode(J[z]),_+=G,O=Math.max(O,G)}const j=new Uint8Array(l);let yt=0,D,q;for(D=0;D<O;D++)for(q=0;q<C;q++)D<J[q].length&&(j[yt++]=J[q][D]);for(D=0;D<Ct;D++)for(q=0;q<C;q++)j[yt++]=Et[q][D];return j}function P(d,w,m,l){let A;if(Array.isArray(d))A=y.fromArray(d);else if(typeof d=="string"){let U=w;if(!U){const K=y.rawSplit(d);U=c.getBestVersionForData(K,m)}A=y.fromString(d,U||40)}else throw new Error("Invalid data");const g=c.getBestVersionForData(A,m);if(!g)throw new Error("The amount of data is too big to be stored in a QR Code");if(!w)w=g;else if(w<g)throw new Error(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as M}from"./@react-dnd.CcwRs9xb.0.0.63.js";var l;(function(s){s.mouse="mouse",s.touch="touch",s.keyboard="keyboard"})(l||(l={}));class N{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,o){this.args=e,this.context=o}}function w(s,e,o,n){return Math.sqrt(Math.pow(Math.abs(o-s),2)+Math.pow(Math.abs(n-e),2))}function C(s,e,o,n,t){if(!t)return!1;const i=Math.atan2(n-e,o-s)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const x={Left:1},D={Left:0};function b(s){return s.button===void 0||s.button===D.Left}function L(s){return s.buttons===void 0||(s.buttons&x.Left)===0}function y(s){return!!s.targetTouches}const P=1;function _(s){const e=s.nodeType===P?s:s.parentElement;if(!e)return;const{top:o,left:n}=e.getBoundingClientRect();return{x:n,y:o}}function k(s,e){if(s.targetTouches.length===1)return S(s.targetTouches[0]);if(e&&s.touches.length===1&&s.touches[0].target===e.target)return S(s.touches[0])}function S(s,e){return y(s)?k(s,e):{x:s.clientX,y:s.clientY}}const T=(()=>{let s=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return s=!0,!0}}))}catch{}return s})(),v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(M(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.addEventListener(r,n,i)})}removeEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,o){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,o),this.addEventListener(o,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(o,"start",n)}}connectDragPreview(e,o,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,o),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,o){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,d;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,g=c&&o.contains(c);if(c===o||g)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,o),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,o,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&_(i)},this.handleTopMoveStartCapture=t=>{b(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!b(t))return;const i=S(t);i&&(y(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!b(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,d=S(t,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&C(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const g=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,g):this.document.elementsFromPoint(d.x,d.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let h=E[u];for(h!=null&&p.push(h);h;)h=h.parentElement,h&&p.indexOf(h)===-1&&p.push(h)}const m=p.filter(u=>g.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,h,O)=>O.indexOf(u)===h);if(r)for(const u in this.targetNodes){const h=this.targetNodes.get(u);if(c&&h&&h.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:d})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!L(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new N(n,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const A=function(e,o={},n={}){return new f(e,o,n)};export{A as T};
|
|
1
|
+
import{i as M}from"./@react-dnd.CcwRs9xb.0.0.65.js";var l;(function(s){s.mouse="mouse",s.touch="touch",s.keyboard="keyboard"})(l||(l={}));class N{get delay(){var e;return(e=this.args.delay)!==null&&e!==void 0?e:0}get scrollAngleRanges(){return this.args.scrollAngleRanges}get getDropTargetElementsAtPoint(){return this.args.getDropTargetElementsAtPoint}get ignoreContextMenu(){var e;return(e=this.args.ignoreContextMenu)!==null&&e!==void 0?e:!1}get enableHoverOutsideTarget(){var e;return(e=this.args.enableHoverOutsideTarget)!==null&&e!==void 0?e:!1}get enableKeyboardEvents(){var e;return(e=this.args.enableKeyboardEvents)!==null&&e!==void 0?e:!1}get enableMouseEvents(){var e;return(e=this.args.enableMouseEvents)!==null&&e!==void 0?e:!1}get enableTouchEvents(){var e;return(e=this.args.enableTouchEvents)!==null&&e!==void 0?e:!0}get touchSlop(){return this.args.touchSlop||0}get delayTouchStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayTouchStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get delayMouseStart(){var e,o,n,t;return(t=(n=(e=this.args)===null||e===void 0?void 0:e.delayMouseStart)!==null&&n!==void 0?n:(o=this.args)===null||o===void 0?void 0:o.delay)!==null&&t!==void 0?t:0}get window(){if(this.context&&this.context.window)return this.context.window;if(typeof window<"u")return window}get document(){var e;if(!((e=this.context)===null||e===void 0)&&e.document)return this.context.document;if(this.window)return this.window.document}get rootElement(){var e;return((e=this.args)===null||e===void 0?void 0:e.rootElement)||this.document}constructor(e,o){this.args=e,this.context=o}}function w(s,e,o,n){return Math.sqrt(Math.pow(Math.abs(o-s),2)+Math.pow(Math.abs(n-e),2))}function C(s,e,o,n,t){if(!t)return!1;const i=Math.atan2(n-e,o-s)*180/Math.PI+180;for(let a=0;a<t.length;++a){const r=t[a];if(r&&(r.start==null||i>=r.start)&&(r.end==null||i<=r.end))return!0}return!1}const x={Left:1},D={Left:0};function b(s){return s.button===void 0||s.button===D.Left}function L(s){return s.buttons===void 0||(s.buttons&x.Left)===0}function y(s){return!!s.targetTouches}const P=1;function _(s){const e=s.nodeType===P?s:s.parentElement;if(!e)return;const{top:o,left:n}=e.getBoundingClientRect();return{x:n,y:o}}function k(s,e){if(s.targetTouches.length===1)return S(s.targetTouches[0]);if(e&&s.touches.length===1&&s.touches[0].target===e.target)return S(s.touches[0])}function S(s,e){return y(s)?k(s,e):{x:s.clientX,y:s.clientY}}const T=(()=>{let s=!1;try{addEventListener("test",()=>{},Object.defineProperty({},"passive",{get(){return s=!0,!0}}))}catch{}return s})(),v={[l.mouse]:{start:"mousedown",move:"mousemove",end:"mouseup",contextmenu:"contextmenu"},[l.touch]:{start:"touchstart",move:"touchmove",end:"touchend"},[l.keyboard]:{keydown:"keydown"}};class f{profile(){var e;return{sourceNodes:this.sourceNodes.size,sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,targetNodes:this.targetNodes.size,dragOverTargetIds:((e=this.dragOverTargetIds)===null||e===void 0?void 0:e.length)||0}}get document(){return this.options.document}setup(){const e=this.options.rootElement;e&&(M(!f.isSetUp,"Cannot have two Touch backends at the same time."),f.isSetUp=!0,this.addEventListener(e,"start",this.getTopMoveStartHandler()),this.addEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.addEventListener(e,"move",this.handleTopMove),this.addEventListener(e,"move",this.handleTopMoveCapture,!0),this.addEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.addEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.addEventListener(e,"keydown",this.handleCancelOnEscape,!0))}teardown(){const e=this.options.rootElement;e&&(f.isSetUp=!1,this._mouseClientOffset={},this.removeEventListener(e,"start",this.handleTopMoveStartCapture,!0),this.removeEventListener(e,"start",this.handleTopMoveStart),this.removeEventListener(e,"move",this.handleTopMoveCapture,!0),this.removeEventListener(e,"move",this.handleTopMove),this.removeEventListener(e,"end",this.handleTopMoveEndCapture,!0),this.options.enableMouseEvents&&!this.options.ignoreContextMenu&&this.removeEventListener(e,"contextmenu",this.handleTopMoveEndCapture),this.options.enableKeyboardEvents&&this.removeEventListener(e,"keydown",this.handleCancelOnEscape,!0),this.uninstallSourceNodeRemovalObserver())}addEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.addEventListener(r,n,i)})}removeEventListener(e,o,n,t=!1){const i=T?{capture:t,passive:!1}:t;this.listenerTypes.forEach(function(a){const r=v[a][o];r&&e.removeEventListener(r,n,i)})}connectDragSource(e,o){const n=this.handleMoveStart.bind(this,e);return this.sourceNodes.set(e,o),this.addEventListener(o,"start",n),()=>{this.sourceNodes.delete(e),this.removeEventListener(o,"start",n)}}connectDragPreview(e,o,n){return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,o),()=>{this.sourcePreviewNodes.delete(e),this.sourcePreviewNodeOptions.delete(e)}}connectDropTarget(e,o){const n=this.options.rootElement;if(!this.document||!n)return()=>{};const t=i=>{if(!this.document||!n||!this.monitor.isDragging())return;let a;switch(i.type){case v.mouse.move:a={x:i.clientX,y:i.clientY};break;case v.touch.move:var r,d;a={x:((r=i.touches[0])===null||r===void 0?void 0:r.clientX)||0,y:((d=i.touches[0])===null||d===void 0?void 0:d.clientY)||0};break}const c=a!=null?this.document.elementFromPoint(a.x,a.y):void 0,g=c&&o.contains(c);if(c===o||g)return this.handleMove(i,e)};return this.addEventListener(this.document.body,"move",t),this.targetNodes.set(e,o),()=>{this.document&&(this.targetNodes.delete(e),this.removeEventListener(this.document.body,"move",t))}}getTopMoveStartHandler(){return!this.options.delayTouchStart&&!this.options.delayMouseStart?this.handleTopMoveStart:this.handleTopMoveStartDelay}installSourceNodeRemovalObserver(e){this.uninstallSourceNodeRemovalObserver(),this.draggedSourceNode=e,this.draggedSourceNodeRemovalObserver=new MutationObserver(()=>{e&&!e.parentElement&&(this.resurrectSourceNode(),this.uninstallSourceNodeRemovalObserver())}),!(!e||!e.parentElement)&&this.draggedSourceNodeRemovalObserver.observe(e.parentElement,{childList:!0})}resurrectSourceNode(){this.document&&this.draggedSourceNode&&(this.draggedSourceNode.style.display="none",this.draggedSourceNode.removeAttribute("data-reactid"),this.document.body.appendChild(this.draggedSourceNode))}uninstallSourceNodeRemovalObserver(){this.draggedSourceNodeRemovalObserver&&this.draggedSourceNodeRemovalObserver.disconnect(),this.draggedSourceNodeRemovalObserver=void 0,this.draggedSourceNode=void 0}constructor(e,o,n){this.getSourceClientOffset=t=>{const i=this.sourceNodes.get(t);return i&&_(i)},this.handleTopMoveStartCapture=t=>{b(t)&&(this.moveStartSourceIds=[])},this.handleMoveStart=t=>{Array.isArray(this.moveStartSourceIds)&&this.moveStartSourceIds.unshift(t)},this.handleTopMoveStart=t=>{if(!b(t))return;const i=S(t);i&&(y(t)&&(this.lastTargetTouchFallback=t.targetTouches[0]),this._mouseClientOffset=i),this.waitingForDelay=!1},this.handleTopMoveStartDelay=t=>{if(!b(t))return;const i=t.type===v.touch.start?this.options.delayTouchStart:this.options.delayMouseStart;this.timeout=setTimeout(this.handleTopMoveStart.bind(this,t),i),this.waitingForDelay=!0},this.handleTopMoveCapture=()=>{this.dragOverTargetIds=[]},this.handleMove=(t,i)=>{this.dragOverTargetIds&&this.dragOverTargetIds.unshift(i)},this.handleTopMove=t=>{if(this.timeout&&clearTimeout(this.timeout),!this.document||this.waitingForDelay)return;const{moveStartSourceIds:i,dragOverTargetIds:a}=this,r=this.options.enableHoverOutsideTarget,d=S(t,this.lastTargetTouchFallback);if(!d)return;if(this._isScrolling||!this.monitor.isDragging()&&C(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y,this.options.scrollAngleRanges)){this._isScrolling=!0;return}if(!this.monitor.isDragging()&&this._mouseClientOffset.hasOwnProperty("x")&&i&&w(this._mouseClientOffset.x||0,this._mouseClientOffset.y||0,d.x,d.y)>(this.options.touchSlop?this.options.touchSlop:0)&&(this.moveStartSourceIds=void 0,this.actions.beginDrag(i,{clientOffset:this._mouseClientOffset,getSourceClientOffset:this.getSourceClientOffset,publishSource:!1})),!this.monitor.isDragging())return;const c=this.sourceNodes.get(this.monitor.getSourceId());this.installSourceNodeRemovalObserver(c),this.actions.publishDragSource(),t.cancelable&&t.preventDefault();const g=(a||[]).map(u=>this.targetNodes.get(u)).filter(u=>!!u),E=this.options.getDropTargetElementsAtPoint?this.options.getDropTargetElementsAtPoint(d.x,d.y,g):this.document.elementsFromPoint(d.x,d.y),p=[];for(const u in E){if(!E.hasOwnProperty(u))continue;let h=E[u];for(h!=null&&p.push(h);h;)h=h.parentElement,h&&p.indexOf(h)===-1&&p.push(h)}const m=p.filter(u=>g.indexOf(u)>-1).map(u=>this._getDropTargetId(u)).filter(u=>!!u).filter((u,h,O)=>O.indexOf(u)===h);if(r)for(const u in this.targetNodes){const h=this.targetNodes.get(u);if(c&&h&&h.contains(c)&&m.indexOf(u)===-1){m.unshift(u);break}}m.reverse(),this.actions.hover(m,{clientOffset:d})},this._getDropTargetId=t=>{const i=this.targetNodes.keys();let a=i.next();for(;a.done===!1;){const r=a.value;if(t===this.targetNodes.get(r))return r;a=i.next()}},this.handleTopMoveEndCapture=t=>{if(this._isScrolling=!1,this.lastTargetTouchFallback=void 0,!!L(t)){if(!this.monitor.isDragging()||this.monitor.didDrop()){this.moveStartSourceIds=void 0;return}t.cancelable&&t.preventDefault(),this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.drop(),this.actions.endDrag()}},this.handleCancelOnEscape=t=>{t.key==="Escape"&&this.monitor.isDragging()&&(this._mouseClientOffset={},this.uninstallSourceNodeRemovalObserver(),this.actions.endDrag())},this.options=new N(n,o),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.sourceNodes=new Map,this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.targetNodes=new Map,this.listenerTypes=[],this._mouseClientOffset={},this._isScrolling=!1,this.options.enableMouseEvents&&this.listenerTypes.push(l.mouse),this.options.enableTouchEvents&&this.listenerTypes.push(l.touch),this.options.enableKeyboardEvents&&this.listenerTypes.push(l.keyboard)}}const A=function(e,o={},n={}){return new f(e,o,n)};export{A as T};
|
package/dist/interface/js/{refresh-rounded.Cj4edEnQ.0.0.63.js → refresh-rounded.DOZ-DEFG.0.0.65.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as t,c as n,d as o,e as r}from"./@vue.
|
|
1
|
+
import{F as t,c as n,d as o,e as r}from"./@vue.BxBKarQv.0.0.65.js";const a={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function l(s,e){return o(),n("svg",a,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M18 10h-4V6a2 2 0 0 0-4 0l.071 4H6a2 2 0 0 0 0 4l4.071-.071L10 18a2 2 0 0 0 4 0v-4.071L18 14a2 2 0 0 0 0-4"},null,-1)]))}const u=t({name:"typcn-plus",render:l}),i={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function c(s,e){return o(),n("svg",i,e[0]||(e[0]=[r("path",{fill:"currentColor",d:"M12 20q-3.35 0-5.675-2.325T4 12t2.325-5.675T12 4q1.725 0 3.3.712T18 6.75V5q0-.425.288-.712T19 4t.713.288T20 5v5q0 .425-.288.713T19 11h-5q-.425 0-.712-.288T13 10t.288-.712T14 9h3.2q-.8-1.4-2.187-2.2T12 6Q9.5 6 7.75 7.75T6 12t1.75 4.25T12 18q1.7 0 3.113-.862t2.187-2.313q.2-.35.563-.487t.737-.013q.4.125.575.525t-.025.75q-1.025 2-2.925 3.2T12 20"},null,-1)]))}const d=t({name:"material-symbols-refresh-rounded",render:c});export{d as _,u as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{_ as E,a as v,b as d,c as O}from"./tslib.9k7AwCpt.0.0.
|
|
1
|
+
import{_ as E,a as v,b as d,c as O}from"./tslib.9k7AwCpt.0.0.65.js";function f(e){return typeof e=="function"}function M(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var b=M(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
2
2
|
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
3
3
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function P(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var m=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=E(s),c=a.next();!c.done;c=a.next()){var U=c.value;U.remove(this)}}catch(u){t={error:u}}finally{try{c&&!c.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}else s.remove(this);var S=this.initialTeardown;if(f(S))try{S()}catch(u){i=u instanceof b?u.errors:[u]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=E(g),l=p.next();!l.done;l=p.next()){var F=l.value;try{_(F)}catch(u){i=i??[],u instanceof b?i=v(v([],d(i)),d(u.errors)):i.push(u)}}}catch(u){n={error:u}}finally{try{l&&!l.done&&(o=p.return)&&o.call(p)}finally{if(n)throw n.error}}}if(i)throw new b(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&P(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&P(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();m.EMPTY;function T(e){return e instanceof m||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function _(e){f(e)?e():e.unsubscribe()}var R={Promise:void 0},Y={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,v([e,t],d(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function j(e){Y.setTimeout(function(){throw e})}function x(){}function k(e){e()}var w=function(e){O(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,T(r)&&r.add(n)):n.destination=I,n}return t.create=function(r,n,o){return new y(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(m),B=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){h(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){h(n)}else h(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){h(r)}},e}(),y=function(e){O(t,e);function t(r,n,o){var i=e.call(this)||this,s;return f(r)||!r?s={next:r??void 0,error:n??void 0,complete:o??void 0}:s=r,i.destination=new B(s),i}return t}(w);function h(e){j(e)}function H(e){throw e}var I={closed:!0,next:x,error:H,complete:x},V=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function q(e){return e}function D(e){return e.length===0?q:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var L=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o=this,i=J(t)?t:new y(t,r,n);return k(function(){var s=o,a=s.operator,c=s.source;i.add(a?a.call(i,c):c?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=A(r),new r(function(o,i){var s=new y({next:function(a){try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});n.subscribe(s)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[V]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return D(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=A(t),new t(function(n,o){var i;r.subscribe(function(s){return i=s},function(s){return o(s)},function(){return n(i)})})},e.create=function(t){return new e(t)},e}();function A(e){var t;return(t=e??R.Promise)!==null&&t!==void 0?t:Promise}function G(e){return e&&f(e.next)&&f(e.error)&&f(e.complete)}function J(e){return e&&e instanceof w||G(e)&&T(e)}export{L as O};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as k,i as b,S as v,n as E}from"./engine.io-client.DKSc90ta.0.0.63.js";import"./engine.io-parser.BiEtp6m2.0.0.63.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.63.js";import{P as c,p as O}from"./socket.io-parser.CS2MblGy.0.0.63.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
|
|
1
|
+
import{p as k,i as b,S as v,n as E}from"./engine.io-client.Bwq6EbBZ.0.0.65.js";import"./engine.io-parser.BiEtp6m2.0.0.65.js";import{E as _}from"./@socket.io.Dkula2eQ.0.0.65.js";import{P as c,p as O}from"./socket.io-parser.Brq8Mynw.0.0.65.js";function w(i,t="",e){let s=i;e=e||typeof location<"u"&&location,i==null&&(i=e.protocol+"//"+e.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=e.protocol+i:i=e.host+i),/^(https?|wss?):\/\//.test(i)||(typeof e<"u"?i=e.protocol+"//"+i:i="https://"+i),s=k(i)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+t,s.href=s.protocol+"://"+o+(e&&e.port===s.port?"":":"+s.port),s}function a(i,t,e){return i.on(t,e),function(){i.off(t,e)}}const L=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class y extends _{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[a(t,"open",this.onopen.bind(this)),a(t,"packet",this.onpacket.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,n,o;if(L.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const r={type:c.EVENT,data:e};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof e[e.length-1]=="function"){const m=this.ids++,g=e.pop();this._registerAckCallback(m,g),r.id=m}const h=(n=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||n===void 0?void 0:n.writable,f=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!h||(f?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,e){var s;const n=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(n===void 0){this.acks[t]=e;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let h=0;h<this.sendBuffer.length;h++)this.sendBuffer[h].id===t&&this.sendBuffer.splice(h,1);e.call(this,new Error("operation has timed out"))},n),r=(...h)=>{this.io.clearTimeoutFn(o),e.apply(this,h)};r.withError=!0,this.acks[t]=r}emitWithAck(t,...e){return new Promise((s,n)=>{const o=(r,h)=>r?n(r):s(h);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;typeof t[t.length-1]=="function"&&(e=t.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((n,...o)=>s!==this._queue[0]?void 0:(n!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(n)):(this._queue.shift(),e&&e(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const e=this._queue[0];e.pending&&!t||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:c.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(s=>String(s.id)===t)){const s=this.acks[t];delete this.acks[t],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case c.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c.EVENT:case c.BINARY_EVENT:this.onevent(t);break;case c.ACK:case c.BINARY_ACK:this.onack(t);break;case c.DISCONNECT:this.ondisconnect();break;case c.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const e=t.data||[];t.id!=null&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const s of e)s.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let s=!1;return function(...n){s||(s=!0,e.packet({type:c.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];typeof e=="function"&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s])return e.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const s of e)s.apply(this,t.data)}}}function u(i){i=i||{},this.ms=i.min||100,this.max=i.max||1e4,this.factor=i.factor||2,this.jitter=i.jitter>0&&i.jitter<=1?i.jitter:0,this.attempts=0}u.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),e=Math.floor(t*this.jitter*i);i=(Math.floor(t*10)&1)==0?i-e:i+e}return Math.min(i,this.max)|0};u.prototype.reset=function(){this.attempts=0};u.prototype.setMin=function(i){this.ms=i};u.prototype.setMax=function(i){this.max=i};u.prototype.setJitter=function(i){this.jitter=i};class p extends _{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(e=t,t=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,b(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((s=e.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new u({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||O;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(e=this.backoff)===null||e===void 0||e.setMin(t),this)}randomizationFactor(t){var e;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(e=this.backoff)===null||e===void 0||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(e=this.backoff)===null||e===void 0||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new v(this.uri,this.opts);const e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const n=a(e,"open",function(){s.onopen(),t&&t()}),o=h=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",h),t?t(h):this.maybeReconnectOnOpen()},r=a(e,"error",o);if(this._timeout!==!1){const h=this._timeout,f=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),e.close()},h);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(n),this.subs.push(r),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(a(t,"ping",this.onping.bind(this)),a(t,"data",this.ondata.bind(this)),a(t,"error",this.onerror.bind(this)),a(t,"close",this.onclose.bind(this)),a(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(e){this.onclose("parse error",e)}}ondecoded(t){E(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new y(this,t,e),this.nsps[t]=s),s}_destroy(t){const e=Object.keys(this.nsps);for(const s of e)if(this.nsps[s].active)return;this._close()}_packet(t){const e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(n=>{n?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",n)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const d={};function l(i,t){typeof i=="object"&&(t=i,i=void 0),t=t||{};const e=w(i,t.path||"/socket.io"),s=e.source,n=e.id,o=e.path,r=d[n]&&o in d[n].nsps,h=t.forceNew||t["force new connection"]||t.multiplex===!1||r;let f;return h?f=new p(s,t):(d[n]||(d[n]=new p(s,t)),f=d[n]),e.query&&!t.query&&(t.query=e.queryKey),f.socket(e.path,t)}Object.assign(l,{Manager:p,Socket:y,io:l,connect:l});export{p as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as N}from"./@socket.io.Dkula2eQ.0.0.
|
|
1
|
+
import{E as N}from"./@socket.io.Dkula2eQ.0.0.65.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var y=Object.defineProperty;var i=(t,e,n)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>i(t,typeof e!="symbol"?e+"":e,n);import{c as m,
|
|
1
|
+
var y=Object.defineProperty;var i=(t,e,n)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var a=(t,e,n)=>i(t,typeof e!="symbol"?e+"":e,n);import{c as m,a2 as s}from"./main.DteM3Tyw.0.0.65.js";import{u as d,a as o,b as r}from"./@tanstack.BlGunTa7.0.0.65.js";import{u as l}from"./vue-i18n.Bdweqx4L.0.0.65.js";import{r as p}from"./@vue.BxBKarQv.0.0.65.js";const h=async()=>(await s.get("/system")).data,g=async t=>(await s.patch("/system",t)).data,f=async({serverData:t})=>(await s.post("/system/update",t)).data,v=async({signal:t})=>(await s.get("/system/version",{signal:t})).data,Q=async()=>(await s.delete("/system/log")).data,w=async({signal:t})=>(await s.get("/system/log/download",{signal:t})).data,S=async()=>(await s.post("/system/cert",{responseType:"arraybuffer"})).data,q=async({signal:t})=>(await s.get("/system/go2rtc",{signal:t})).data,F=async()=>(await s.put("/system/restart")).data,_=async()=>(await s.put("/system/restart/go2rtc")).data,b=async()=>(await s.put("/system/reset")).data;class G{constructor(){a(this,"_queryClient",d());a(this,"t",l().t);a(this,"toast",m());a(this,"queryActivator",p([{name:"downloadLogQuery",enabled:!0},{name:"getGo2RtcInfoQuery",enabled:!0},{name:"checkVersionQuery",enabled:!0},{name:"getSystemInfoQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getSystemInfoQuery(){return o({queryKey:["system"],queryFn:h})}patchSystemInfoQuery(){return r({mutationFn:g,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}updateServerQuery(){return r({mutationFn:f,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_updated"),life:3e3})}})}downloadLogQuery(){return o({queryKey:["logs","system"],queryFn:({signal:e})=>w({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="downloadLogQuery"&&e.enabled)})}downloadCertQuery(){return r({mutationFn:S})}clearLogQuery(){return r({mutationFn:Q,onSuccess:async()=>{await this._queryClient.refetchQueries({queryKey:["logs","system"],exact:!0}),this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.log_cleared"),life:3e3})}})}checkVersionQuery(){return o({queryKey:["version"],queryFn:({signal:e})=>v({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="checkVersionQuery"&&e.enabled)})}getGo2RtcInfoQuery(){return o({queryKey:["go2rtc"],queryFn:({signal:e})=>q({signal:e}),enabled:()=>this.queryActivator.value.some(e=>e.name==="getGo2RtcInfoQuery"&&e.enabled)})}restartGo2RtcQuery(){return r({mutationFn:_,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.go2rtc_restarted"),life:3e3})}})}restartServerQuery(){return r({mutationFn:F,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_restarted"),life:3e3})}})}resetServerQuery(){return r({mutationFn:b,onSuccess:async()=>{this.toast.add({severity:"success",summary:this.t("components.toast.title_success"),detail:this.t("components.toast.server_resetted"),life:3e3})}})}toggleQueryActivator(e,n){const c=this.queryActivator.value.find(u=>u.name===e);c&&(c.enabled=n)}}export{G as S,S as d,F as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as a,c as o,d as l,e as r}from"./@vue.
|
|
1
|
+
import{F as a,c as o,d as l,e as r}from"./@vue.BxBKarQv.0.0.65.js";const n={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"};function t(s,e){return l(),o("svg",n,e[0]||(e[0]=[r("path",{fill:"currentColor","fill-rule":"evenodd",d:"M8.106 2.553A1 1 0 0 1 9 2h6a1 1 0 0 1 .894.553L17.618 6H20a1 1 0 1 1 0 2h-1v11a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V8H4a1 1 0 0 1 0-2h2.382zM14.382 4l1 2H8.618l1-2zM11 11a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0zm4 0a1 1 0 1 0-2 0v6a1 1 0 1 0 2 0z","clip-rule":"evenodd"},null,-1)]))}const i=a({name:"iconamoon-trash-fill",render:t});export{i as T};
|
package/dist/interface/js/{vee-validate.DJQ5Z65z.0.0.63.js → vee-validate.Ba-stGSk.0.0.65.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{B as tn,
|
|
1
|
+
import{B as tn,v as be,Q as rn,a3 as Pe,r as le,b as we,k as E,A as m,h as P,o as An,f as Be,w as Ve,a as Gn,i as En,C as Kn,n as se,z as Yn,a4 as Qn,g as Re,a5 as Je}from"./@vue.BxBKarQv.0.0.65.js";/**
|
|
2
2
|
* vee-validate v4.15.0
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
5
|
-
*/function q(e){return typeof e=="function"}function Fn(e){return e==null}const pe=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function an(e){return Number(e)>=0}function Xn(e){const n=parseFloat(e);return isNaN(n)?e:n}function Jn(e){return typeof e=="object"&&e!==null}function Zn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function hn(e){if(!Jn(e)||Zn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Ee(e,n){return Object.keys(n).forEach(t=>{if(hn(n[t])&&hn(e[t])){e[t]||(e[t]={}),Ee(e[t],n[t]);return}e[t]=n[t]}),e}function Ae(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let r=1;r<n.length;r++){if(an(n[r])){t+=`[${n[r]}]`;continue}t+=`.${n[r]}`}return t}const xn={};function et(e){return xn[e]}function mn(e,n,t){typeof t.value=="object"&&(t.value=F(t.value)),!t.enumerable||t.get||t.set||!t.configurable||!t.writable||n==="__proto__"?Object.defineProperty(e,n,t):e[n]=t.value}function F(e){if(typeof e!="object")return e;var n=0,t,r,l,u=Object.prototype.toString.call(e);if(u==="[object Object]"?l=Object.create(e.__proto__||null):u==="[object Array]"?l=Array(e.length):u==="[object Set]"?(l=new Set,e.forEach(function(s){l.add(F(s))})):u==="[object Map]"?(l=new Map,e.forEach(function(s,d){l.set(F(d),F(s))})):u==="[object Date]"?l=new Date(+e):u==="[object RegExp]"?l=new RegExp(e.source,e.flags):u==="[object DataView]"?l=new e.constructor(F(e.buffer)):u==="[object ArrayBuffer]"?l=e.slice(0):u.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)mn(l,r[n],Object.getOwnPropertyDescriptor(e,r[n]));for(n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++)Object.hasOwnProperty.call(l,t=r[n])&&l[t]===e[t]||mn(l,t,Object.getOwnPropertyDescriptor(e,t))}return l||e}const Ue=Symbol("vee-validate-form"),nt=Symbol("vee-validate-form-context"),tt=Symbol("vee-validate-field-instance"),ke=Symbol("Default empty value"),rt=typeof window<"u";function Ze(e){return q(e)&&!!e.__locatorRef}function ue(e){return!!e&&q(e.parse)&&e.__type==="VVTypedSchema"}function Ne(e){return!!e&&q(e.validate)}function Fe(e){return e==="checkbox"||e==="radio"}function it(e){return pe(e)||Array.isArray(e)}function at(e){return Array.isArray(e)?e.length===0:pe(e)&&Object.keys(e).length===0}function De(e){return/^\[.+\]$/i.test(e)}function lt(e){return In(e)&&e.multiple}function In(e){return e.tagName==="SELECT"}function ut(e,n){const t=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&t}function ot(e,n){return!ut(e,n)&&n.type!=="file"&&!Fe(n.type)}function Cn(e){return ln(e)&&e.target&&"submit"in e.target}function ln(e){return e?!!(typeof Event<"u"&&q(Event)&&e instanceof Event||e&&e.srcElement):!1}function yn(e,n){return n in e&&e[n]!==ke}function Y(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var t,r,l;if(Array.isArray(e)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(!Y(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!Y(r[1],n.get(r[0])))return!1;return!0}if(bn(e)&&bn(n))return!(e.size!==n.size||e.name!==n.name||e.lastModified!==n.lastModified||e.type!==n.type);if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),t=l.length-gn(e,l),t!==Object.keys(n).length-gn(n,Object.keys(n)))return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=t;r--!==0;){var u=l[r];if(!Y(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function gn(e,n){let t=0;for(let l=n.length;l--!==0;){var r=n[l];e[r]===void 0&&t++}return t}function bn(e){return rt?e instanceof File:!1}function un(e){return De(e)?e.replace(/\[|\]/gi,""):e}function X(e,n,t){return e?De(n)?e[un(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,u)=>it(l)&&u in l?l[u]:t,e):t}function he(e,n,t){if(De(n)){e[un(n)]=t;return}const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let u=0;u<r.length;u++){if(u===r.length-1){l[r[u]]=t;return}(!(r[u]in l)||Fn(l[r[u]]))&&(l[r[u]]=an(r[u+1])?[]:{}),l=l[r[u]]}}function Qe(e,n){if(Array.isArray(e)&&an(n)){e.splice(Number(n),1);return}pe(e)&&delete e[n]}function On(e,n){if(De(n)){delete e[un(n)];return}const t=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let u=0;u<t.length;u++){if(u===t.length-1){Qe(r,t[u]);break}if(!(t[u]in r)||Fn(r[t[u]]))break;r=r[t[u]]}const l=t.map((u,s)=>X(e,t.slice(0,s).join(".")));for(let u=l.length-1;u>=0;u--)if(at(l[u])){if(u===0){Qe(e,t[0]);continue}Qe(l[u-1],t[u-1])}}function ne(e){return Object.keys(e)}function Mn(e,n=void 0){const t=Re();return(t==null?void 0:t.provides[e])||En(e,n)}function Vn(e,n,t){if(Array.isArray(e)){const r=[...e],l=r.findIndex(u=>Y(u,n));return l>=0?r.splice(l,1):r.push(n),r}return Y(e,n)?t:n}function pn(e,n=0){let t=null,r=[];return function(...l){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...l);r.forEach(s=>s(u)),r=[]},n),new Promise(u=>r.push(u))}}function st(e,n){return pe(n)&&n.number?Xn(e):e}function xe(e,n){let t;return async function(...l){const u=e(...l);t=u;const s=await u;return u!==t?s:(t=void 0,n(s,l))}}function en(e){return Array.isArray(e)?e:e?[e]:[]}function Ce(e,n){const t={};for(const r in e)n.includes(r)||(t[r]=e[r]);return t}function dt(e){let n=null,t=[];return function(...r){const l=se(()=>{if(n!==l)return;const u=e(...r);t.forEach(s=>s(u)),t=[],n=null});return n=l,new Promise(u=>t.push(u))}}function on(e,n,t){return n.slots.default?typeof e=="string"||!e?n.slots.default(t()):{default:()=>{var r,l;return(l=(r=n.slots).default)===null||l===void 0?void 0:l.call(r,t())}}:n.slots.default}function Xe(e){if(Pn(e))return e._value}function Pn(e){return"_value"in e}function ct(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Te(e){if(!ln(e))return e;const n=e.target;if(Fe(n.type)&&Pn(n))return Xe(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(lt(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Xe);if(In(n)){const t=Array.from(n.options).find(r=>r.selected);return t?Xe(t):n.value}return ct(n)}function wn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?pe(e)&&e._$$isNormalized?e:pe(e)?Object.keys(e).reduce((t,r)=>{const l=ft(e[r]);return e[r]!==!1&&(t[r]=Sn(l)),t},n):typeof e!="string"?n:e.split("|").reduce((t,r)=>{const l=vt(r);return l.name&&(t[l.name]=Sn(l.params)),t},n):n}function ft(e){return e===!0?[]:Array.isArray(e)||pe(e)?e:[e]}function Sn(e){const n=t=>typeof t=="string"&&t[0]==="@"?ht(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}const vt=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function ht(e){const n=t=>{var r;return(r=X(t,e))!==null&&r!==void 0?r:t[e]};return n.__locatorRef=e,n}function mt(e){return Array.isArray(e)?e.filter(Ze):ne(e).filter(n=>Ze(e[n])).map(n=>e[n])}const yt={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let gt=Object.assign({},yt);const Oe=()=>gt;async function Bn(e,n,t={}){const r=t==null?void 0:t.bails,l={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:r??!0,formData:(t==null?void 0:t.values)||{}},u=await bt(l,e);return Object.assign(Object.assign({},u),{valid:!u.errors.length})}async function bt(e,n){const t=e.rules;if(ue(t)||Ne(t))return Vt(n,Object.assign(Object.assign({},e),{rules:t}));if(q(t)||Array.isArray(t)){const d={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},v=Array.isArray(t)?t:[t],c=v.length,y=[];for(let V=0;V<c;V++){const A=v[V],O=await A(n,d);if(!(typeof O!="string"&&!Array.isArray(O)&&O)){if(Array.isArray(O))y.push(...O);else{const $=typeof O=="string"?O:Nn(d);y.push($)}if(e.bails)return{errors:y}}}return{errors:y}}const r=Object.assign(Object.assign({},e),{rules:wn(t)}),l=[],u=Object.keys(r.rules),s=u.length;for(let d=0;d<s;d++){const v=u[d],c=await pt(r,n,{name:v,params:r.rules[v]});if(c.error&&(l.push(c.error),e.bails))return{errors:l}}return{errors:l}}function Ot(e){return!!e&&e.name==="ValidationError"}function kn(e){return{__type:"VVTypedSchema",async parse(t,r){var l;try{return{output:await e.validate(t,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(u){if(!Ot(u))throw u;if(!(!((l=u.inner)===null||l===void 0)&&l.length)&&u.errors.length)return{errors:[{path:u.path,errors:u.errors}]};const s=u.inner.reduce((d,v)=>{const c=v.path||"";return d[c]||(d[c]={errors:[],path:c}),d[c].errors.push(...v.errors),d},{});return{errors:Object.values(s)}}}}}async function Vt(e,n){const r=await(ue(n.rules)?n.rules:kn(n.rules)).parse(e,{formData:n.formData}),l=[];for(const u of r.errors)u.errors.length&&l.push(...u.errors);return{value:r.value,errors:l}}async function pt(e,n,t){const r=et(t.name);if(!r)throw new Error(`No such validator '${t.name}' exists.`);const l=St(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:l})},s=await r(n,l,u);return typeof s=="string"?{error:s}:{error:s?void 0:Nn(u)}}function Nn(e){const n=Oe().generateMessage;return n?n(e):"Field is invalid"}function St(e,n){const t=r=>Ze(r)?r(n):r;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((r,l)=>(r[l]=t(e[l]),r),{})}async function _t(e,n){const r=await(ue(e)?e:kn(e)).parse(F(n),{formData:F(n)}),l={},u={};for(const s of r.errors){const d=s.errors,v=(s.path||"").replace(/\["(\d+)"\]/g,(c,y)=>`[${y}]`);l[v]={valid:!d.length,errors:d},d.length&&(u[v]=d[0])}return{valid:!r.errors.length,results:l,errors:u,values:r.value,source:"schema"}}async function jt(e,n,t){const l=ne(e).map(async c=>{var y,V,A;const O=(y=t==null?void 0:t.names)===null||y===void 0?void 0:y[c],I=await Bn(X(n,c),e[c],{name:(O==null?void 0:O.name)||c,label:O==null?void 0:O.label,values:n,bails:(A=(V=t==null?void 0:t.bailsMap)===null||V===void 0?void 0:V[c])!==null&&A!==void 0?A:!0});return Object.assign(Object.assign({},I),{path:c})});let u=!0;const s=await Promise.all(l),d={},v={};for(const c of s)d[c.path]={valid:c.valid,errors:c.errors},c.valid||(u=!1,v[c.path]=c.errors[0]);return{valid:u,results:d,errors:v,source:"schema"}}let _n=0;function At(e,n){const{value:t,initialValue:r,setInitialValue:l}=Et(e,n.modelValue,n.form);if(!n.form){let v=function(O){var I;"value"in O&&(t.value=O.value),"errors"in O&&y(O.errors),"touched"in O&&(A.touched=(I=O.touched)!==null&&I!==void 0?I:A.touched),"initialValue"in O&&l(O.initialValue)};const{errors:c,setErrors:y}=Ct(),V=_n>=Number.MAX_SAFE_INTEGER?0:++_n,A=It(t,r,c,n.schema);return{id:V,path:e,value:t,initialValue:r,meta:A,flags:{pendingUnmount:{[V]:!1},pendingReset:!1},errors:c,setState:v}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),s=E(()=>u.errors);function d(v){var c,y,V;"value"in v&&(t.value=v.value),"errors"in v&&((c=n.form)===null||c===void 0||c.setFieldError(P(e),v.errors)),"touched"in v&&((y=n.form)===null||y===void 0||y.setFieldTouched(P(e),(V=v.touched)!==null&&V!==void 0?V:!1)),"initialValue"in v&&l(v.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:s,meta:u,initialValue:r,flags:u.__flags,setState:d}}function Et(e,n,t){const r=le(P(n));function l(){return t?X(t.initialValues.value,P(e),P(r)):P(r)}function u(c){if(!t){r.value=c;return}t.setFieldInitialValue(P(e),c,!0)}const s=E(l);if(!t)return{value:le(l()),initialValue:s,setInitialValue:u};const d=Ft(n,t,s,e);return t.stageInitialValue(P(e),d,!0),{value:E({get(){return X(t.values,P(e))},set(c){t.setFieldValue(P(e),c,!1)}}),initialValue:s,setInitialValue:u}}function Ft(e,n,t,r){return Be(e)?P(e):e!==void 0?e:X(n.values,P(r),P(t))}function It(e,n,t,r){const l=E(()=>{var s,d,v;return(v=(d=(s=m(r))===null||s===void 0?void 0:s.describe)===null||d===void 0?void 0:d.call(s).required)!==null&&v!==void 0?v:!1}),u=we({touched:!1,pending:!1,valid:!0,required:l,validated:!!P(t).length,initialValue:E(()=>P(n)),dirty:E(()=>!Y(P(e),P(n)))});return Ve(t,s=>{u.valid=!s.length},{immediate:!0,flush:"sync"}),u}function Ct(){const e=le([]);return{errors:e,setErrors:n=>{e.value=en(n)}}}function Mt(e,n,t){return Fe(t==null?void 0:t.type)?wt(e,n,t):Tn(e,n,t)}function Tn(e,n,t){const{initialValue:r,validateOnMount:l,bails:u,type:s,checkedValue:d,label:v,validateOnValueUpdate:c,uncheckedValue:y,controlled:V,keepValueOnUnmount:A,syncVModel:O,form:I}=Pt(t),$=V?Mn(Ue):void 0,p=I||$,D=E(()=>Ae(m(e))),R=E(()=>{if(m(p==null?void 0:p.schema))return;const j=P(n);return Ne(j)||ue(j)||q(j)||Array.isArray(j)?j:wn(j)}),de=!q(R.value)&&ue(m(n)),{id:G,value:J,initialValue:Z,meta:k,setState:ie,errors:U,flags:z}=At(D,{modelValue:r,form:p,bails:u,label:v,type:s,validate:R.value?N:void 0,schema:de?n:void 0}),L=E(()=>U.value[0]);O&&Bt({value:J,prop:O,handleChange:_,shouldValidate:()=>c&&!z.pendingReset});const ae=(h,j=!1)=>{k.touched=!0,j&&x()};async function ce(h){var j,M;if(p!=null&&p.validateSchema){const{results:C}=await p.validateSchema(h);return(j=C[m(D)])!==null&&j!==void 0?j:{valid:!0,errors:[]}}return R.value?Bn(J.value,R.value,{name:m(D),label:m(v),values:(M=p==null?void 0:p.values)!==null&&M!==void 0?M:{},bails:u}):{valid:!0,errors:[]}}const x=xe(async()=>(k.pending=!0,k.validated=!0,ce("validated-only")),h=>(z.pendingUnmount[K.id]||(ie({errors:h.errors}),k.pending=!1,k.valid=h.valid),h)),ee=xe(async()=>ce("silent"),h=>(k.valid=h.valid,h));function N(h){return(h==null?void 0:h.mode)==="silent"?ee():x()}function _(h,j=!0){const M=Te(h);_e(M,j)}An(()=>{if(l)return x();(!p||!p.validateSchema)&&ee()});function me(h){k.touched=h}function fe(h){var j;const M=h&&"value"in h?h.value:Z.value;ie({value:F(M),initialValue:F(M),touched:(j=h==null?void 0:h.touched)!==null&&j!==void 0?j:!1,errors:(h==null?void 0:h.errors)||[]}),k.pending=!1,k.validated=!1,ee()}const ye=Re();function _e(h,j=!0){J.value=ye&&O?st(h,ye.props.modelModifiers):h,(j?x:ee)()}function Ie(h){ie({errors:Array.isArray(h)?h:[h]})}const sn=E({get(){return J.value},set(h){_e(h,c)}}),K={id:G,name:D,label:v,value:sn,meta:k,errors:U,errorMessage:L,type:s,checkedValue:d,uncheckedValue:y,bails:u,keepValueOnUnmount:A,resetField:fe,handleReset:()=>fe(),validate:N,handleChange:_,handleBlur:ae,setState:ie,setTouched:me,setErrors:Ie,setValue:_e};if(Je(tt,K),Be(n)&&typeof P(n)!="function"&&Ve(n,(h,j)=>{Y(h,j)||(k.validated?x():ee())},{deep:!0}),!p)return K;const ze=E(()=>{const h=R.value;return!h||q(h)||Ne(h)||ue(h)||Array.isArray(h)?{}:Object.keys(h).reduce((j,M)=>{const C=mt(h[M]).map(ve=>ve.__locatorRef).reduce((ve,oe)=>{const te=X(p.values,oe)||p.values[oe];return te!==void 0&&(ve[oe]=te),ve},{});return Object.assign(j,C),j},{})});return Ve(ze,(h,j)=>{if(!Object.keys(h).length)return;!Y(h,j)&&(k.validated?x():ee())}),Qn(()=>{var h;const j=(h=m(K.keepValueOnUnmount))!==null&&h!==void 0?h:m(p.keepValuesOnUnmount),M=m(D);if(j||!p||z.pendingUnmount[K.id]){p==null||p.removePathState(M,G);return}z.pendingUnmount[K.id]=!0;const C=p.getPathState(M);if(Array.isArray(C==null?void 0:C.id)&&(C!=null&&C.multiple)?C!=null&&C.id.includes(K.id):(C==null?void 0:C.id)===K.id){if(C!=null&&C.multiple&&Array.isArray(C.value)){const oe=C.value.findIndex(te=>Y(te,m(K.checkedValue)));if(oe>-1){const te=[...C.value];te.splice(oe,1),p.setFieldValue(M,te)}Array.isArray(C.id)&&C.id.splice(C.id.indexOf(K.id),1)}else p.unsetPathValue(m(D));p.removePathState(M,G)}}),K}function Pt(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),r=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",l=t&&!("initialValue"in(e||{}))?nn(Re(),r):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:l});const u="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,d=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:l,controlled:s??!0,checkedValue:u,syncVModel:d})}function wt(e,n,t){const r=t!=null&&t.standalone?void 0:Mn(Ue),l=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function s(d){const v=d.handleChange,c=E(()=>{const V=m(d.value),A=m(l);return Array.isArray(V)?V.findIndex(O=>Y(O,A))>=0:Y(A,V)});function y(V,A=!0){var O,I;if(c.value===((O=V==null?void 0:V.target)===null||O===void 0?void 0:O.checked)){A&&d.validate();return}const $=m(e),p=r==null?void 0:r.getPathState($),D=Te(V);let R=(I=m(l))!==null&&I!==void 0?I:D;r&&(p!=null&&p.multiple)&&p.type==="checkbox"?R=Vn(X(r.values,$)||[],R,void 0):(t==null?void 0:t.type)==="checkbox"&&(R=Vn(m(d.value),R,m(u))),v(R,A)}return Object.assign(Object.assign({},d),{checked:c,checkedValue:l,uncheckedValue:u,handleChange:y})}return s(Tn(e,n,t))}function Bt({prop:e,value:n,handleChange:t,shouldValidate:r}){const l=Re();if(!l||!e)return;const u=typeof e=="string"?e:"modelValue",s=`update:${u}`;u in l.props&&(Ve(n,d=>{Y(d,nn(l,u))||l.emit(s,d)}),Ve(()=>nn(l,u),d=>{if(d===ke&&n.value===void 0)return;const v=d===ke?void 0:d;Y(v,n.value)||t(v,r())}))}function nn(e,n){if(e)return e.props[n]}const kt=tn({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Oe().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:ke},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const t=be(e,"rules"),r=be(e,"name"),l=be(e,"label"),u=be(e,"uncheckedValue"),s=be(e,"keepValue"),{errors:d,value:v,errorMessage:c,validate:y,handleChange:V,handleBlur:A,setTouched:O,resetField:I,handleReset:$,meta:p,checked:D,setErrors:R,setValue:de}=Mt(r,t,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Tt(e,n),checkedValue:n.attrs.value,uncheckedValue:u,label:l,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:s,syncVModel:!0}),G=function(z,L=!0){V(z,L)},J=E(()=>{const{validateOnInput:U,validateOnChange:z,validateOnBlur:L,validateOnModelUpdate:ae}=Nt(e);function ce(_){A(_,L),q(n.attrs.onBlur)&&n.attrs.onBlur(_)}function x(_){G(_,U),q(n.attrs.onInput)&&n.attrs.onInput(_)}function ee(_){G(_,z),q(n.attrs.onChange)&&n.attrs.onChange(_)}const N={name:e.name,onBlur:ce,onInput:x,onChange:ee};return N["onUpdate:modelValue"]=_=>G(_,ae),N}),Z=E(()=>{const U=Object.assign({},J.value);Fe(n.attrs.type)&&D&&(U.checked=D.value);const z=jn(e,n);return ot(z,n.attrs)&&(U.value=v.value),U}),k=E(()=>Object.assign(Object.assign({},J.value),{modelValue:v.value}));function ie(){return{field:Z.value,componentField:k.value,value:v.value,meta:p,errors:d.value,errorMessage:c.value,validate:y,resetField:I,handleChange:G,handleInput:U=>G(U,!1),handleReset:$,handleBlur:J.value.onBlur,setTouched:O,setErrors:R,setValue:de}}return n.expose({value:v,meta:p,errors:d,errorMessage:c,setErrors:R,setTouched:O,setValue:de,reset:I,validate:y,handleChange:V}),()=>{const U=rn(jn(e,n)),z=on(U,n,ie);return U?Pe(U,Object.assign(Object.assign({},n.attrs),Z.value),z):z}}});function jn(e,n){let t=e.as||"";return!e.as&&!n.slots.default&&(t="input"),t}function Nt(e){var n,t,r,l;const{validateOnInput:u,validateOnChange:s,validateOnBlur:d,validateOnModelUpdate:v}=Oe();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:u,validateOnChange:(t=e.validateOnChange)!==null&&t!==void 0?t:s,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:d,validateOnModelUpdate:(l=e.validateOnModelUpdate)!==null&&l!==void 0?l:v}}function Tt(e,n){return Fe(n.attrs.type)?yn(e,"modelValue")?e.modelValue:void 0:yn(e,"modelValue")?e.modelValue:n.attrs.value}const Ht=kt;let Rt=0;const Me=["bails","fieldsCount","id","multiple","type","validate"];function Rn(e){const n=(e==null?void 0:e.initialValues)||{},t=Object.assign({},m(n)),r=P(e==null?void 0:e.validationSchema);return r&&ue(r)&&q(r.cast)?F(r.cast(t)||{}):F(t)}function Ut(e){var n;const t=Rt++,r=(e==null?void 0:e.name)||"Form";let l=0;const u=le(!1),s=le(!1),d=le(0),v=[],c=we(Rn(e)),y=le([]),V=le({}),A=le({}),O=dt(()=>{A.value=y.value.reduce((a,i)=>(a[Ae(m(i.path))]=i,a),{})});function I(a,i){const o=_(a);if(!o){typeof a=="string"&&(V.value[Ae(a)]=en(i));return}if(typeof a=="string"){const f=Ae(a);V.value[f]&&delete V.value[f]}o.errors=en(i),o.valid=!o.errors.length}function $(a){ne(a).forEach(i=>{I(i,a[i])})}e!=null&&e.initialErrors&&$(e.initialErrors);const p=E(()=>{const a=y.value.reduce((i,o)=>(o.errors.length&&(i[m(o.path)]=o.errors),i),{});return Object.assign(Object.assign({},V.value),a)}),D=E(()=>ne(p.value).reduce((a,i)=>{const o=p.value[i];return o!=null&&o.length&&(a[i]=o[0]),a},{})),R=E(()=>y.value.reduce((a,i)=>(a[m(i.path)]={name:m(i.path)||"",label:i.label||""},a),{})),de=E(()=>y.value.reduce((a,i)=>{var o;return a[m(i.path)]=(o=i.bails)!==null&&o!==void 0?o:!0,a},{})),G=Object.assign({},(e==null?void 0:e.initialErrors)||{}),J=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:Z,originalInitialValues:k,setInitialValues:ie}=zt(y,c,e),U=Dt(y,c,k,D),z=E(()=>y.value.reduce((a,i)=>{const o=X(c,m(i.path));return he(a,m(i.path),o),a},{})),L=e==null?void 0:e.validationSchema;function ae(a,i){var o,f;const b=E(()=>X(Z.value,m(a))),S=A.value[m(a)],g=(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="radio";if(S&&g){S.multiple=!0;const re=l++;return Array.isArray(S.id)?S.id.push(re):S.id=[S.id,re],S.fieldsCount++,S.__flags.pendingUnmount[re]=!1,S}const B=E(()=>X(c,m(a))),T=m(a),W=fe.findIndex(re=>re===T);W!==-1&&fe.splice(W,1);const w=E(()=>{var re,je,He,Ge;const Ke=m(L);if(ue(Ke))return(je=(re=Ke.describe)===null||re===void 0?void 0:re.call(Ke,m(a)).required)!==null&&je!==void 0?je:!1;const Ye=m(i==null?void 0:i.schema);return ue(Ye)&&(Ge=(He=Ye.describe)===null||He===void 0?void 0:He.call(Ye).required)!==null&&Ge!==void 0?Ge:!1}),H=l++,Q=we({id:H,path:a,touched:!1,pending:!1,valid:!0,validated:!!(!((o=G[T])===null||o===void 0)&&o.length),required:w,initialValue:b,errors:Yn([]),bails:(f=i==null?void 0:i.bails)!==null&&f!==void 0?f:!1,label:i==null?void 0:i.label,type:(i==null?void 0:i.type)||"default",value:B,multiple:!1,__flags:{pendingUnmount:{[H]:!1},pendingReset:!1},fieldsCount:1,validate:i==null?void 0:i.validate,dirty:E(()=>!Y(P(B),P(b)))});return y.value.push(Q),A.value[T]=Q,O(),D.value[T]&&!G[T]&&se(()=>{ge(T,{mode:"silent"})}),Be(a)&&Ve(a,re=>{O();const je=F(B.value);A.value[re]=Q,se(()=>{he(c,re,je)})}),Q}const ce=pn(fn,5),x=pn(fn,5),ee=xe(async a=>await(a==="silent"?ce():x()),(a,[i])=>{const o=ne(j.errorBag.value),b=[...new Set([...ne(a.results),...y.value.map(S=>S.path),...o])].sort().reduce((S,g)=>{var B;const T=g,W=_(T)||me(T),w=((B=a.results[T])===null||B===void 0?void 0:B.errors)||[],H=m(W==null?void 0:W.path)||T,Q=Lt({errors:w,valid:!w.length},S.results[H]);return S.results[H]=Q,Q.valid||(S.errors[H]=Q.errors[0]),W&&V.value[H]&&delete V.value[H],W?(W.valid=Q.valid,i==="silent"||i==="validated-only"&&!W.validated||I(W,Q.errors),S):(I(H,w),S)},{valid:a.valid,results:{},errors:{},source:a.source});return a.values&&(b.values=a.values,b.source=a.source),ne(b.results).forEach(S=>{var g;const B=_(S);B&&i!=="silent"&&(i==="validated-only"&&!B.validated||I(B,(g=b.results[S])===null||g===void 0?void 0:g.errors))}),b});function N(a){y.value.forEach(a)}function _(a){const i=typeof a=="string"?Ae(a):a;return typeof i=="string"?A.value[i]:i}function me(a){return y.value.filter(o=>a.startsWith(m(o.path))).reduce((o,f)=>o?f.path.length>o.path.length?f:o:f,void 0)}let fe=[],ye;function _e(a){return fe.push(a),ye||(ye=se(()=>{[...fe].sort().reverse().forEach(o=>{On(c,o)}),fe=[],ye=null})),ye}function Ie(a){return function(o,f){return function(S){return S instanceof Event&&(S.preventDefault(),S.stopPropagation()),N(g=>g.touched=!0),u.value=!0,d.value++,Se().then(g=>{const B=F(c);if(g.valid&&typeof o=="function"){const T=F(z.value);let W=a?T:B;return g.values&&(W=g.source==="schema"?g.values:Object.assign({},W,g.values)),o(W,{evt:S,controlledValues:T,setErrors:$,setFieldError:I,setTouched:Le,setFieldTouched:te,setValues:ve,setFieldValue:M,resetForm:$e,resetField:dn})}!g.valid&&typeof f=="function"&&f({values:B,evt:S,errors:g.errors,results:g.results})}).then(g=>(u.value=!1,g),g=>{throw u.value=!1,g})}}}const K=Ie(!1);K.withControlled=Ie(!0);function ze(a,i){const o=y.value.findIndex(b=>b.path===a&&(Array.isArray(b.id)?b.id.includes(i):b.id===i)),f=y.value[o];if(!(o===-1||!f)){if(se(()=>{ge(a,{mode:"silent",warn:!1})}),f.multiple&&f.fieldsCount&&f.fieldsCount--,Array.isArray(f.id)){const b=f.id.indexOf(i);b>=0&&f.id.splice(b,1),delete f.__flags.pendingUnmount[i]}(!f.multiple||f.fieldsCount<=0)&&(y.value.splice(o,1),cn(a),O(),delete A.value[a])}}function h(a){ne(A.value).forEach(i=>{i.startsWith(a)&&delete A.value[i]}),y.value=y.value.filter(i=>!i.path.startsWith(a)),se(()=>{O()})}const j={name:r,formId:t,values:c,controlledValues:z,errorBag:p,errors:D,schema:L,submitCount:d,meta:U,isSubmitting:u,isValidating:s,fieldArrays:v,keepValuesOnUnmount:J,validateSchema:P(L)?ee:void 0,validate:Se,setFieldError:I,validateField:ge,setFieldValue:M,setValues:ve,setErrors:$,setFieldTouched:te,setTouched:Le,resetForm:$e,resetField:dn,handleSubmit:K,useFieldModel:qn,defineInputBinds:Wn,defineComponentBinds:Hn,defineField:We,stageInitialValue:Ln,unsetInitialValue:cn,setFieldInitialValue:qe,createPathState:ae,getPathState:_,unsetPathValue:_e,removePathState:ze,initialValues:Z,getAllPathStates:()=>y.value,destroyPath:h,isFieldTouched:Un,isFieldDirty:Dn,isFieldValid:zn};function M(a,i,o=!0){const f=F(i),b=typeof a=="string"?a:a.path;_(b)||ae(b),he(c,b,f),o&&ge(b)}function C(a,i=!0){ne(c).forEach(o=>{delete c[o]}),ne(a).forEach(o=>{M(o,a[o],!1)}),i&&Se()}function ve(a,i=!0){Ee(c,a),v.forEach(o=>o&&o.reset()),i&&Se()}function oe(a,i){const o=_(m(a))||ae(a);return E({get(){return o.value},set(f){var b;const S=m(a);M(S,f,(b=m(i))!==null&&b!==void 0?b:!1)}})}function te(a,i){const o=_(a);o&&(o.touched=i)}function Un(a){const i=_(a);return i?i.touched:y.value.filter(o=>o.path.startsWith(a)).some(o=>o.touched)}function Dn(a){const i=_(a);return i?i.dirty:y.value.filter(o=>o.path.startsWith(a)).some(o=>o.dirty)}function zn(a){const i=_(a);return i?i.valid:y.value.filter(o=>o.path.startsWith(a)).every(o=>o.valid)}function Le(a){if(typeof a=="boolean"){N(i=>{i.touched=a});return}ne(a).forEach(i=>{te(i,!!a[i])})}function dn(a,i){var o;const f=i&&"value"in i?i.value:X(Z.value,a),b=_(a);b&&(b.__flags.pendingReset=!0),qe(a,F(f),!0),M(a,f,!1),te(a,(o=i==null?void 0:i.touched)!==null&&o!==void 0?o:!1),I(a,(i==null?void 0:i.errors)||[]),se(()=>{b&&(b.__flags.pendingReset=!1)})}function $e(a,i){let o=F(a!=null&&a.values?a.values:k.value);o=i!=null&&i.force?o:Ee(k.value,o),o=ue(L)&&q(L.cast)?L.cast(o):o,ie(o,{force:i==null?void 0:i.force}),N(f=>{var b;f.__flags.pendingReset=!0,f.validated=!1,f.touched=((b=a==null?void 0:a.touched)===null||b===void 0?void 0:b[m(f.path)])||!1,M(m(f.path),X(o,m(f.path)),!1),I(m(f.path),void 0)}),i!=null&&i.force?C(o,!1):ve(o,!1),$((a==null?void 0:a.errors)||{}),d.value=(a==null?void 0:a.submitCount)||0,se(()=>{Se({mode:"silent"}),N(f=>{f.__flags.pendingReset=!1})})}async function Se(a){const i=(a==null?void 0:a.mode)||"force";if(i==="force"&&N(g=>g.validated=!0),j.validateSchema)return j.validateSchema(i);s.value=!0;const o=await Promise.all(y.value.map(g=>g.validate?g.validate(a).then(B=>({key:m(g.path),valid:B.valid,errors:B.errors,value:B.value})):Promise.resolve({key:m(g.path),valid:!0,errors:[],value:void 0})));s.value=!1;const f={},b={},S={};for(const g of o)f[g.key]={valid:g.valid,errors:g.errors},g.value&&he(S,g.key,g.value),g.errors.length&&(b[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:f,errors:b,values:S,source:"fields"}}async function ge(a,i){var o;const f=_(a);if(f&&(i==null?void 0:i.mode)!=="silent"&&(f.validated=!0),L){const{results:b}=await ee((i==null?void 0:i.mode)||"validated-only");return b[a]||{errors:[],valid:!0}}return f!=null&&f.validate?f.validate(i):(!f&&(o=i==null?void 0:i.warn),Promise.resolve({errors:[],valid:!0}))}function cn(a){On(Z.value,a)}function Ln(a,i,o=!1){qe(a,i),he(c,a,i),o&&!(e!=null&&e.initialValues)&&he(k.value,a,F(i))}function qe(a,i,o=!1){he(Z.value,a,F(i)),o&&he(k.value,a,F(i))}async function fn(){const a=P(L);if(!a)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const i=Ne(a)||ue(a)?await _t(a,c):await jt(a,c,{names:R.value,bailsMap:de.value});return s.value=!1,i}const $n=K((a,{evt:i})=>{Cn(i)&&i.target.submit()});An(()=>{if(e!=null&&e.initialErrors&&$(e.initialErrors),e!=null&&e.initialTouched&&Le(e.initialTouched),e!=null&&e.validateOnMount){Se();return}j.validateSchema&&j.validateSchema("silent")}),Be(L)&&Ve(L,()=>{var a;(a=j.validateSchema)===null||a===void 0||a.call(j,"validated-only")}),Je(Ue,j);function We(a,i){const o=q(i)||i==null?void 0:i.label,f=_(m(a))||ae(a,{label:o}),b=()=>q(i)?i(Ce(f,Me)):i||{};function S(){var w;f.touched=!0,((w=b().validateOnBlur)!==null&&w!==void 0?w:Oe().validateOnBlur)&&ge(m(f.path))}function g(){var w;((w=b().validateOnInput)!==null&&w!==void 0?w:Oe().validateOnInput)&&se(()=>{ge(m(f.path))})}function B(){var w;((w=b().validateOnChange)!==null&&w!==void 0?w:Oe().validateOnChange)&&se(()=>{ge(m(f.path))})}const T=E(()=>{const w={onChange:B,onInput:g,onBlur:S};return q(i)?Object.assign(Object.assign({},w),i(Ce(f,Me)).props||{}):i!=null&&i.props?Object.assign(Object.assign({},w),i.props(Ce(f,Me))):w});return[oe(a,()=>{var w,H,Q;return(Q=(w=b().validateOnModelUpdate)!==null&&w!==void 0?w:(H=Oe())===null||H===void 0?void 0:H.validateOnModelUpdate)!==null&&Q!==void 0?Q:!0}),T]}function qn(a){return Array.isArray(a)?a.map(i=>oe(i,!0)):oe(a)}function Wn(a,i){const[o,f]=We(a,i);function b(){f.value.onBlur()}function S(B){const T=Te(B);M(m(a),T,!1),f.value.onInput()}function g(B){const T=Te(B);M(m(a),T,!1),f.value.onChange()}return E(()=>Object.assign(Object.assign({},f.value),{onBlur:b,onInput:S,onChange:g,value:o.value}))}function Hn(a,i){const[o,f]=We(a,i),b=_(m(a));function S(g){o.value=g}return E(()=>{const g=q(i)?i(Ce(b,Me)):i||{};return Object.assign({[g.model||"modelValue"]:o.value,[`onUpdate:${g.model||"modelValue"}`]:S},f.value)})}const vn=Object.assign(Object.assign({},j),{values:Gn(c),handleReset:()=>$e(),submitForm:$n});return Je(nt,vn),vn}function Dt(e,n,t,r){const l={touched:"some",pending:"some",valid:"every"},u=E(()=>!Y(n,P(t)));function s(){const v=e.value;return ne(l).reduce((c,y)=>{const V=l[y];return c[y]=v[V](A=>A[y]),c},{})}const d=we(s());return Kn(()=>{const v=s();d.touched=v.touched,d.valid=v.valid,d.pending=v.pending}),E(()=>Object.assign(Object.assign({initialValues:P(t)},d),{valid:d.valid&&!ne(r.value).length,dirty:u.value}))}function zt(e,n,t){const r=Rn(t),l=le(r),u=le(F(r));function s(d,v){v!=null&&v.force?(l.value=F(d),u.value=F(d)):(l.value=Ee(F(l.value)||{},F(d)),u.value=Ee(F(u.value)||{},F(d))),v!=null&&v.updateFields&&e.value.forEach(c=>{if(c.touched)return;const V=X(l.value,m(c.path));he(n,m(c.path),F(V))})}return{initialValues:l,originalInitialValues:u,setInitialValues:s}}function Lt(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}const $t=tn({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,n){const t=be(e,"validationSchema"),r=be(e,"keepValues"),{errors:l,errorBag:u,values:s,meta:d,isSubmitting:v,isValidating:c,submitCount:y,controlledValues:V,validate:A,validateField:O,handleReset:I,resetForm:$,handleSubmit:p,setErrors:D,setFieldError:R,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetField:k}=Ut({validationSchema:t.value?t:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),ie=p((N,{evt:_})=>{Cn(_)&&_.target.submit()},e.onInvalidSubmit),U=e.onSubmit?p(e.onSubmit,e.onInvalidSubmit):ie;function z(N){ln(N)&&N.preventDefault(),I(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function L(N,_){return p(typeof N=="function"&&!_?N:_,e.onInvalidSubmit)(N)}function ae(){return F(s)}function ce(){return F(d.value)}function x(){return F(l.value)}function ee(){return{meta:d.value,errors:l.value,errorBag:u.value,values:s,isSubmitting:v.value,isValidating:c.value,submitCount:y.value,controlledValues:V.value,validate:A,validateField:O,handleSubmit:L,handleReset:I,submitForm:ie,setErrors:D,setFieldError:R,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetForm:$,resetField:k,getValues:ae,getMeta:ce,getErrors:x}}return n.expose({setFieldError:R,setErrors:D,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetForm:$,validate:A,validateField:O,resetField:k,getValues:ae,getMeta:ce,getErrors:x,values:s,meta:d,errors:l}),function(){const _=e.as==="form"?e.as:e.as?rn(e.as):null,me=on(_,n,ee);return _?Pe(_,Object.assign(Object.assign(Object.assign({},_==="form"?{novalidate:!0}:{}),n.attrs),{onSubmit:U,onReset:z}),me):me}}}),Gt=$t,qt=tn({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const t=En(Ue,void 0),r=E(()=>t==null?void 0:t.errors.value[e.name]);function l(){return{message:r.value}}return()=>{if(!r.value)return;const u=e.as?rn(e.as):e.as,s=on(u,n,l),d=Object.assign({role:"alert"},n.attrs);return!u&&(Array.isArray(s)||!s)&&(s!=null&&s.length)?s:(Array.isArray(s)||!s)&&!(s!=null&&s.length)?Pe(u||"span",d,r.value):Pe(u,d,s)}}}),Kt=qt;export{Kt as E,Gt as F,Ht as a,un as c,De as i};
|
|
5
|
+
*/function W(e){return typeof e=="function"}function Fn(e){return e==null}const pe=e=>e!==null&&!!e&&typeof e=="object"&&!Array.isArray(e);function an(e){return Number(e)>=0}function Xn(e){const n=parseFloat(e);return isNaN(n)?e:n}function Jn(e){return typeof e=="object"&&e!==null}function Zn(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function hn(e){if(!Jn(e)||Zn(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}function Ee(e,n){return Object.keys(n).forEach(t=>{if(hn(n[t])&&hn(e[t])){e[t]||(e[t]={}),Ee(e[t],n[t]);return}e[t]=n[t]}),e}function Ae(e){const n=e.split(".");if(!n.length)return"";let t=String(n[0]);for(let r=1;r<n.length;r++){if(an(n[r])){t+=`[${n[r]}]`;continue}t+=`.${n[r]}`}return t}const xn={};function et(e){return xn[e]}function mn(e,n,t){typeof t.value=="object"&&(t.value=F(t.value)),!t.enumerable||t.get||t.set||!t.configurable||!t.writable||n==="__proto__"?Object.defineProperty(e,n,t):e[n]=t.value}function F(e){if(typeof e!="object")return e;var n=0,t,r,l,u=Object.prototype.toString.call(e);if(u==="[object Object]"?l=Object.create(e.__proto__||null):u==="[object Array]"?l=Array(e.length):u==="[object Set]"?(l=new Set,e.forEach(function(s){l.add(F(s))})):u==="[object Map]"?(l=new Map,e.forEach(function(s,d){l.set(F(d),F(s))})):u==="[object Date]"?l=new Date(+e):u==="[object RegExp]"?l=new RegExp(e.source,e.flags):u==="[object DataView]"?l=new e.constructor(F(e.buffer)):u==="[object ArrayBuffer]"?l=e.slice(0):u.slice(-6)==="Array]"&&(l=new e.constructor(e)),l){for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)mn(l,r[n],Object.getOwnPropertyDescriptor(e,r[n]));for(n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++)Object.hasOwnProperty.call(l,t=r[n])&&l[t]===e[t]||mn(l,t,Object.getOwnPropertyDescriptor(e,t))}return l||e}const Ue=Symbol("vee-validate-form"),nt=Symbol("vee-validate-form-context"),tt=Symbol("vee-validate-field-instance"),ke=Symbol("Default empty value"),rt=typeof window<"u";function Ze(e){return W(e)&&!!e.__locatorRef}function ue(e){return!!e&&W(e.parse)&&e.__type==="VVTypedSchema"}function Ne(e){return!!e&&W(e.validate)}function Fe(e){return e==="checkbox"||e==="radio"}function it(e){return pe(e)||Array.isArray(e)}function at(e){return Array.isArray(e)?e.length===0:pe(e)&&Object.keys(e).length===0}function De(e){return/^\[.+\]$/i.test(e)}function lt(e){return In(e)&&e.multiple}function In(e){return e.tagName==="SELECT"}function ut(e,n){const t=![!1,null,void 0,0].includes(n.multiple)&&!Number.isNaN(n.multiple);return e==="select"&&"multiple"in n&&t}function ot(e,n){return!ut(e,n)&&n.type!=="file"&&!Fe(n.type)}function Cn(e){return ln(e)&&e.target&&"submit"in e.target}function ln(e){return e?!!(typeof Event<"u"&&W(Event)&&e instanceof Event||e&&e.srcElement):!1}function yn(e,n){return n in e&&e[n]!==ke}function Y(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var t,r,l;if(Array.isArray(e)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(!Y(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!Y(r[1],n.get(r[0])))return!1;return!0}if(bn(e)&&bn(n))return!(e.size!==n.size||e.name!==n.name||e.lastModified!==n.lastModified||e.type!==n.type);if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(t=e.length,t!=n.length)return!1;for(r=t;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),t=l.length-gn(e,l),t!==Object.keys(n).length-gn(n,Object.keys(n)))return!1;for(r=t;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[r]))return!1;for(r=t;r--!==0;){var u=l[r];if(!Y(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function gn(e,n){let t=0;for(let l=n.length;l--!==0;){var r=n[l];e[r]===void 0&&t++}return t}function bn(e){return rt?e instanceof File:!1}function un(e){return De(e)?e.replace(/\[|\]/gi,""):e}function X(e,n,t){return e?De(n)?e[un(n)]:(n||"").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((l,u)=>it(l)&&u in l?l[u]:t,e):t}function he(e,n,t){if(De(n)){e[un(n)]=t;return}const r=n.split(/\.|\[(\d+)\]/).filter(Boolean);let l=e;for(let u=0;u<r.length;u++){if(u===r.length-1){l[r[u]]=t;return}(!(r[u]in l)||Fn(l[r[u]]))&&(l[r[u]]=an(r[u+1])?[]:{}),l=l[r[u]]}}function Qe(e,n){if(Array.isArray(e)&&an(n)){e.splice(Number(n),1);return}pe(e)&&delete e[n]}function On(e,n){if(De(n)){delete e[un(n)];return}const t=n.split(/\.|\[(\d+)\]/).filter(Boolean);let r=e;for(let u=0;u<t.length;u++){if(u===t.length-1){Qe(r,t[u]);break}if(!(t[u]in r)||Fn(r[t[u]]))break;r=r[t[u]]}const l=t.map((u,s)=>X(e,t.slice(0,s).join(".")));for(let u=l.length-1;u>=0;u--)if(at(l[u])){if(u===0){Qe(e,t[0]);continue}Qe(l[u-1],t[u-1])}}function ne(e){return Object.keys(e)}function Mn(e,n=void 0){const t=Re();return(t==null?void 0:t.provides[e])||En(e,n)}function Vn(e,n,t){if(Array.isArray(e)){const r=[...e],l=r.findIndex(u=>Y(u,n));return l>=0?r.splice(l,1):r.push(n),r}return Y(e,n)?t:n}function pn(e,n=0){let t=null,r=[];return function(...l){return t&&clearTimeout(t),t=setTimeout(()=>{const u=e(...l);r.forEach(s=>s(u)),r=[]},n),new Promise(u=>r.push(u))}}function st(e,n){return pe(n)&&n.number?Xn(e):e}function xe(e,n){let t;return async function(...l){const u=e(...l);t=u;const s=await u;return u!==t?s:(t=void 0,n(s,l))}}function en(e){return Array.isArray(e)?e:e?[e]:[]}function Ce(e,n){const t={};for(const r in e)n.includes(r)||(t[r]=e[r]);return t}function dt(e){let n=null,t=[];return function(...r){const l=se(()=>{if(n!==l)return;const u=e(...r);t.forEach(s=>s(u)),t=[],n=null});return n=l,new Promise(u=>t.push(u))}}function on(e,n,t){return n.slots.default?typeof e=="string"||!e?n.slots.default(t()):{default:()=>{var r,l;return(l=(r=n.slots).default)===null||l===void 0?void 0:l.call(r,t())}}:n.slots.default}function Xe(e){if(Pn(e))return e._value}function Pn(e){return"_value"in e}function ct(e){return e.type==="number"||e.type==="range"?Number.isNaN(e.valueAsNumber)?e.value:e.valueAsNumber:e.value}function Te(e){if(!ln(e))return e;const n=e.target;if(Fe(n.type)&&Pn(n))return Xe(n);if(n.type==="file"&&n.files){const t=Array.from(n.files);return n.multiple?t:t[0]}if(lt(n))return Array.from(n.options).filter(t=>t.selected&&!t.disabled).map(Xe);if(In(n)){const t=Array.from(n.options).find(r=>r.selected);return t?Xe(t):n.value}return ct(n)}function wn(e){const n={};return Object.defineProperty(n,"_$$isNormalized",{value:!0,writable:!1,enumerable:!1,configurable:!1}),e?pe(e)&&e._$$isNormalized?e:pe(e)?Object.keys(e).reduce((t,r)=>{const l=ft(e[r]);return e[r]!==!1&&(t[r]=Sn(l)),t},n):typeof e!="string"?n:e.split("|").reduce((t,r)=>{const l=vt(r);return l.name&&(t[l.name]=Sn(l.params)),t},n):n}function ft(e){return e===!0?[]:Array.isArray(e)||pe(e)?e:[e]}function Sn(e){const n=t=>typeof t=="string"&&t[0]==="@"?ht(t.slice(1)):t;return Array.isArray(e)?e.map(n):e instanceof RegExp?[e]:Object.keys(e).reduce((t,r)=>(t[r]=n(e[r]),t),{})}const vt=e=>{let n=[];const t=e.split(":")[0];return e.includes(":")&&(n=e.split(":").slice(1).join(":").split(",")),{name:t,params:n}};function ht(e){const n=t=>{var r;return(r=X(t,e))!==null&&r!==void 0?r:t[e]};return n.__locatorRef=e,n}function mt(e){return Array.isArray(e)?e.filter(Ze):ne(e).filter(n=>Ze(e[n])).map(n=>e[n])}const yt={generateMessage:({field:e})=>`${e} is not valid.`,bails:!0,validateOnBlur:!0,validateOnChange:!0,validateOnInput:!1,validateOnModelUpdate:!0};let gt=Object.assign({},yt);const Oe=()=>gt;async function Bn(e,n,t={}){const r=t==null?void 0:t.bails,l={name:(t==null?void 0:t.name)||"{field}",rules:n,label:t==null?void 0:t.label,bails:r??!0,formData:(t==null?void 0:t.values)||{}},u=await bt(l,e);return Object.assign(Object.assign({},u),{valid:!u.errors.length})}async function bt(e,n){const t=e.rules;if(ue(t)||Ne(t))return Vt(n,Object.assign(Object.assign({},e),{rules:t}));if(W(t)||Array.isArray(t)){const d={field:e.label||e.name,name:e.name,label:e.label,form:e.formData,value:n},v=Array.isArray(t)?t:[t],c=v.length,y=[];for(let V=0;V<c;V++){const A=v[V],O=await A(n,d);if(!(typeof O!="string"&&!Array.isArray(O)&&O)){if(Array.isArray(O))y.push(...O);else{const $=typeof O=="string"?O:Nn(d);y.push($)}if(e.bails)return{errors:y}}}return{errors:y}}const r=Object.assign(Object.assign({},e),{rules:wn(t)}),l=[],u=Object.keys(r.rules),s=u.length;for(let d=0;d<s;d++){const v=u[d],c=await pt(r,n,{name:v,params:r.rules[v]});if(c.error&&(l.push(c.error),e.bails))return{errors:l}}return{errors:l}}function Ot(e){return!!e&&e.name==="ValidationError"}function kn(e){return{__type:"VVTypedSchema",async parse(t,r){var l;try{return{output:await e.validate(t,{abortEarly:!1,context:(r==null?void 0:r.formData)||{}}),errors:[]}}catch(u){if(!Ot(u))throw u;if(!(!((l=u.inner)===null||l===void 0)&&l.length)&&u.errors.length)return{errors:[{path:u.path,errors:u.errors}]};const s=u.inner.reduce((d,v)=>{const c=v.path||"";return d[c]||(d[c]={errors:[],path:c}),d[c].errors.push(...v.errors),d},{});return{errors:Object.values(s)}}}}}async function Vt(e,n){const r=await(ue(n.rules)?n.rules:kn(n.rules)).parse(e,{formData:n.formData}),l=[];for(const u of r.errors)u.errors.length&&l.push(...u.errors);return{value:r.value,errors:l}}async function pt(e,n,t){const r=et(t.name);if(!r)throw new Error(`No such validator '${t.name}' exists.`);const l=St(t.params,e.formData),u={field:e.label||e.name,name:e.name,label:e.label,value:n,form:e.formData,rule:Object.assign(Object.assign({},t),{params:l})},s=await r(n,l,u);return typeof s=="string"?{error:s}:{error:s?void 0:Nn(u)}}function Nn(e){const n=Oe().generateMessage;return n?n(e):"Field is invalid"}function St(e,n){const t=r=>Ze(r)?r(n):r;return Array.isArray(e)?e.map(t):Object.keys(e).reduce((r,l)=>(r[l]=t(e[l]),r),{})}async function _t(e,n){const r=await(ue(e)?e:kn(e)).parse(F(n),{formData:F(n)}),l={},u={};for(const s of r.errors){const d=s.errors,v=(s.path||"").replace(/\["(\d+)"\]/g,(c,y)=>`[${y}]`);l[v]={valid:!d.length,errors:d},d.length&&(u[v]=d[0])}return{valid:!r.errors.length,results:l,errors:u,values:r.value,source:"schema"}}async function jt(e,n,t){const l=ne(e).map(async c=>{var y,V,A;const O=(y=t==null?void 0:t.names)===null||y===void 0?void 0:y[c],I=await Bn(X(n,c),e[c],{name:(O==null?void 0:O.name)||c,label:O==null?void 0:O.label,values:n,bails:(A=(V=t==null?void 0:t.bailsMap)===null||V===void 0?void 0:V[c])!==null&&A!==void 0?A:!0});return Object.assign(Object.assign({},I),{path:c})});let u=!0;const s=await Promise.all(l),d={},v={};for(const c of s)d[c.path]={valid:c.valid,errors:c.errors},c.valid||(u=!1,v[c.path]=c.errors[0]);return{valid:u,results:d,errors:v,source:"schema"}}let _n=0;function At(e,n){const{value:t,initialValue:r,setInitialValue:l}=Et(e,n.modelValue,n.form);if(!n.form){let v=function(O){var I;"value"in O&&(t.value=O.value),"errors"in O&&y(O.errors),"touched"in O&&(A.touched=(I=O.touched)!==null&&I!==void 0?I:A.touched),"initialValue"in O&&l(O.initialValue)};const{errors:c,setErrors:y}=Ct(),V=_n>=Number.MAX_SAFE_INTEGER?0:++_n,A=It(t,r,c,n.schema);return{id:V,path:e,value:t,initialValue:r,meta:A,flags:{pendingUnmount:{[V]:!1},pendingReset:!1},errors:c,setState:v}}const u=n.form.createPathState(e,{bails:n.bails,label:n.label,type:n.type,validate:n.validate,schema:n.schema}),s=E(()=>u.errors);function d(v){var c,y,V;"value"in v&&(t.value=v.value),"errors"in v&&((c=n.form)===null||c===void 0||c.setFieldError(P(e),v.errors)),"touched"in v&&((y=n.form)===null||y===void 0||y.setFieldTouched(P(e),(V=v.touched)!==null&&V!==void 0?V:!1)),"initialValue"in v&&l(v.initialValue)}return{id:Array.isArray(u.id)?u.id[u.id.length-1]:u.id,path:e,value:t,errors:s,meta:u,initialValue:r,flags:u.__flags,setState:d}}function Et(e,n,t){const r=le(P(n));function l(){return t?X(t.initialValues.value,P(e),P(r)):P(r)}function u(c){if(!t){r.value=c;return}t.setFieldInitialValue(P(e),c,!0)}const s=E(l);if(!t)return{value:le(l()),initialValue:s,setInitialValue:u};const d=Ft(n,t,s,e);return t.stageInitialValue(P(e),d,!0),{value:E({get(){return X(t.values,P(e))},set(c){t.setFieldValue(P(e),c,!1)}}),initialValue:s,setInitialValue:u}}function Ft(e,n,t,r){return Be(e)?P(e):e!==void 0?e:X(n.values,P(r),P(t))}function It(e,n,t,r){const l=E(()=>{var s,d,v;return(v=(d=(s=m(r))===null||s===void 0?void 0:s.describe)===null||d===void 0?void 0:d.call(s).required)!==null&&v!==void 0?v:!1}),u=we({touched:!1,pending:!1,valid:!0,required:l,validated:!!P(t).length,initialValue:E(()=>P(n)),dirty:E(()=>!Y(P(e),P(n)))});return Ve(t,s=>{u.valid=!s.length},{immediate:!0,flush:"sync"}),u}function Ct(){const e=le([]);return{errors:e,setErrors:n=>{e.value=en(n)}}}function Mt(e,n,t){return Fe(t==null?void 0:t.type)?wt(e,n,t):Tn(e,n,t)}function Tn(e,n,t){const{initialValue:r,validateOnMount:l,bails:u,type:s,checkedValue:d,label:v,validateOnValueUpdate:c,uncheckedValue:y,controlled:V,keepValueOnUnmount:A,syncVModel:O,form:I}=Pt(t),$=V?Mn(Ue):void 0,p=I||$,D=E(()=>Ae(m(e))),R=E(()=>{if(m(p==null?void 0:p.schema))return;const j=P(n);return Ne(j)||ue(j)||W(j)||Array.isArray(j)?j:wn(j)}),de=!W(R.value)&&ue(m(n)),{id:G,value:J,initialValue:Z,meta:k,setState:ie,errors:U,flags:z}=At(D,{modelValue:r,form:p,bails:u,label:v,type:s,validate:R.value?N:void 0,schema:de?n:void 0}),L=E(()=>U.value[0]);O&&Bt({value:J,prop:O,handleChange:_,shouldValidate:()=>c&&!z.pendingReset});const ae=(h,j=!1)=>{k.touched=!0,j&&x()};async function ce(h){var j,M;if(p!=null&&p.validateSchema){const{results:C}=await p.validateSchema(h);return(j=C[m(D)])!==null&&j!==void 0?j:{valid:!0,errors:[]}}return R.value?Bn(J.value,R.value,{name:m(D),label:m(v),values:(M=p==null?void 0:p.values)!==null&&M!==void 0?M:{},bails:u}):{valid:!0,errors:[]}}const x=xe(async()=>(k.pending=!0,k.validated=!0,ce("validated-only")),h=>(z.pendingUnmount[K.id]||(ie({errors:h.errors}),k.pending=!1,k.valid=h.valid),h)),ee=xe(async()=>ce("silent"),h=>(k.valid=h.valid,h));function N(h){return(h==null?void 0:h.mode)==="silent"?ee():x()}function _(h,j=!0){const M=Te(h);_e(M,j)}An(()=>{if(l)return x();(!p||!p.validateSchema)&&ee()});function me(h){k.touched=h}function fe(h){var j;const M=h&&"value"in h?h.value:Z.value;ie({value:F(M),initialValue:F(M),touched:(j=h==null?void 0:h.touched)!==null&&j!==void 0?j:!1,errors:(h==null?void 0:h.errors)||[]}),k.pending=!1,k.validated=!1,ee()}const ye=Re();function _e(h,j=!0){J.value=ye&&O?st(h,ye.props.modelModifiers):h,(j?x:ee)()}function Ie(h){ie({errors:Array.isArray(h)?h:[h]})}const sn=E({get(){return J.value},set(h){_e(h,c)}}),K={id:G,name:D,label:v,value:sn,meta:k,errors:U,errorMessage:L,type:s,checkedValue:d,uncheckedValue:y,bails:u,keepValueOnUnmount:A,resetField:fe,handleReset:()=>fe(),validate:N,handleChange:_,handleBlur:ae,setState:ie,setTouched:me,setErrors:Ie,setValue:_e};if(Je(tt,K),Be(n)&&typeof P(n)!="function"&&Ve(n,(h,j)=>{Y(h,j)||(k.validated?x():ee())},{deep:!0}),!p)return K;const ze=E(()=>{const h=R.value;return!h||W(h)||Ne(h)||ue(h)||Array.isArray(h)?{}:Object.keys(h).reduce((j,M)=>{const C=mt(h[M]).map(ve=>ve.__locatorRef).reduce((ve,oe)=>{const te=X(p.values,oe)||p.values[oe];return te!==void 0&&(ve[oe]=te),ve},{});return Object.assign(j,C),j},{})});return Ve(ze,(h,j)=>{if(!Object.keys(h).length)return;!Y(h,j)&&(k.validated?x():ee())}),Qn(()=>{var h;const j=(h=m(K.keepValueOnUnmount))!==null&&h!==void 0?h:m(p.keepValuesOnUnmount),M=m(D);if(j||!p||z.pendingUnmount[K.id]){p==null||p.removePathState(M,G);return}z.pendingUnmount[K.id]=!0;const C=p.getPathState(M);if(Array.isArray(C==null?void 0:C.id)&&(C!=null&&C.multiple)?C!=null&&C.id.includes(K.id):(C==null?void 0:C.id)===K.id){if(C!=null&&C.multiple&&Array.isArray(C.value)){const oe=C.value.findIndex(te=>Y(te,m(K.checkedValue)));if(oe>-1){const te=[...C.value];te.splice(oe,1),p.setFieldValue(M,te)}Array.isArray(C.id)&&C.id.splice(C.id.indexOf(K.id),1)}else p.unsetPathValue(m(D));p.removePathState(M,G)}}),K}function Pt(e){const n=()=>({initialValue:void 0,validateOnMount:!1,bails:!0,label:void 0,validateOnValueUpdate:!0,keepValueOnUnmount:void 0,syncVModel:!1,controlled:!0}),t=!!(e!=null&&e.syncVModel),r=typeof(e==null?void 0:e.syncVModel)=="string"?e.syncVModel:(e==null?void 0:e.modelPropName)||"modelValue",l=t&&!("initialValue"in(e||{}))?nn(Re(),r):e==null?void 0:e.initialValue;if(!e)return Object.assign(Object.assign({},n()),{initialValue:l});const u="valueProp"in e?e.valueProp:e.checkedValue,s="standalone"in e?!e.standalone:e.controlled,d=(e==null?void 0:e.modelPropName)||(e==null?void 0:e.syncVModel)||!1;return Object.assign(Object.assign(Object.assign({},n()),e||{}),{initialValue:l,controlled:s??!0,checkedValue:u,syncVModel:d})}function wt(e,n,t){const r=t!=null&&t.standalone?void 0:Mn(Ue),l=t==null?void 0:t.checkedValue,u=t==null?void 0:t.uncheckedValue;function s(d){const v=d.handleChange,c=E(()=>{const V=m(d.value),A=m(l);return Array.isArray(V)?V.findIndex(O=>Y(O,A))>=0:Y(A,V)});function y(V,A=!0){var O,I;if(c.value===((O=V==null?void 0:V.target)===null||O===void 0?void 0:O.checked)){A&&d.validate();return}const $=m(e),p=r==null?void 0:r.getPathState($),D=Te(V);let R=(I=m(l))!==null&&I!==void 0?I:D;r&&(p!=null&&p.multiple)&&p.type==="checkbox"?R=Vn(X(r.values,$)||[],R,void 0):(t==null?void 0:t.type)==="checkbox"&&(R=Vn(m(d.value),R,m(u))),v(R,A)}return Object.assign(Object.assign({},d),{checked:c,checkedValue:l,uncheckedValue:u,handleChange:y})}return s(Tn(e,n,t))}function Bt({prop:e,value:n,handleChange:t,shouldValidate:r}){const l=Re();if(!l||!e)return;const u=typeof e=="string"?e:"modelValue",s=`update:${u}`;u in l.props&&(Ve(n,d=>{Y(d,nn(l,u))||l.emit(s,d)}),Ve(()=>nn(l,u),d=>{if(d===ke&&n.value===void 0)return;const v=d===ke?void 0:d;Y(v,n.value)||t(v,r())}))}function nn(e,n){if(e)return e.props[n]}const kt=tn({name:"Field",inheritAttrs:!1,props:{as:{type:[String,Object],default:void 0},name:{type:String,required:!0},rules:{type:[Object,String,Function],default:void 0},validateOnMount:{type:Boolean,default:!1},validateOnBlur:{type:Boolean,default:void 0},validateOnChange:{type:Boolean,default:void 0},validateOnInput:{type:Boolean,default:void 0},validateOnModelUpdate:{type:Boolean,default:void 0},bails:{type:Boolean,default:()=>Oe().bails},label:{type:String,default:void 0},uncheckedValue:{type:null,default:void 0},modelValue:{type:null,default:ke},modelModifiers:{type:null,default:()=>({})},"onUpdate:modelValue":{type:null,default:void 0},standalone:{type:Boolean,default:!1},keepValue:{type:Boolean,default:void 0}},setup(e,n){const t=be(e,"rules"),r=be(e,"name"),l=be(e,"label"),u=be(e,"uncheckedValue"),s=be(e,"keepValue"),{errors:d,value:v,errorMessage:c,validate:y,handleChange:V,handleBlur:A,setTouched:O,resetField:I,handleReset:$,meta:p,checked:D,setErrors:R,setValue:de}=Mt(r,t,{validateOnMount:e.validateOnMount,bails:e.bails,standalone:e.standalone,type:n.attrs.type,initialValue:Tt(e,n),checkedValue:n.attrs.value,uncheckedValue:u,label:l,validateOnValueUpdate:e.validateOnModelUpdate,keepValueOnUnmount:s,syncVModel:!0}),G=function(z,L=!0){V(z,L)},J=E(()=>{const{validateOnInput:U,validateOnChange:z,validateOnBlur:L,validateOnModelUpdate:ae}=Nt(e);function ce(_){A(_,L),W(n.attrs.onBlur)&&n.attrs.onBlur(_)}function x(_){G(_,U),W(n.attrs.onInput)&&n.attrs.onInput(_)}function ee(_){G(_,z),W(n.attrs.onChange)&&n.attrs.onChange(_)}const N={name:e.name,onBlur:ce,onInput:x,onChange:ee};return N["onUpdate:modelValue"]=_=>G(_,ae),N}),Z=E(()=>{const U=Object.assign({},J.value);Fe(n.attrs.type)&&D&&(U.checked=D.value);const z=jn(e,n);return ot(z,n.attrs)&&(U.value=v.value),U}),k=E(()=>Object.assign(Object.assign({},J.value),{modelValue:v.value}));function ie(){return{field:Z.value,componentField:k.value,value:v.value,meta:p,errors:d.value,errorMessage:c.value,validate:y,resetField:I,handleChange:G,handleInput:U=>G(U,!1),handleReset:$,handleBlur:J.value.onBlur,setTouched:O,setErrors:R,setValue:de}}return n.expose({value:v,meta:p,errors:d,errorMessage:c,setErrors:R,setTouched:O,setValue:de,reset:I,validate:y,handleChange:V}),()=>{const U=rn(jn(e,n)),z=on(U,n,ie);return U?Pe(U,Object.assign(Object.assign({},n.attrs),Z.value),z):z}}});function jn(e,n){let t=e.as||"";return!e.as&&!n.slots.default&&(t="input"),t}function Nt(e){var n,t,r,l;const{validateOnInput:u,validateOnChange:s,validateOnBlur:d,validateOnModelUpdate:v}=Oe();return{validateOnInput:(n=e.validateOnInput)!==null&&n!==void 0?n:u,validateOnChange:(t=e.validateOnChange)!==null&&t!==void 0?t:s,validateOnBlur:(r=e.validateOnBlur)!==null&&r!==void 0?r:d,validateOnModelUpdate:(l=e.validateOnModelUpdate)!==null&&l!==void 0?l:v}}function Tt(e,n){return Fe(n.attrs.type)?yn(e,"modelValue")?e.modelValue:void 0:yn(e,"modelValue")?e.modelValue:n.attrs.value}const Ht=kt;let Rt=0;const Me=["bails","fieldsCount","id","multiple","type","validate"];function Rn(e){const n=(e==null?void 0:e.initialValues)||{},t=Object.assign({},m(n)),r=P(e==null?void 0:e.validationSchema);return r&&ue(r)&&W(r.cast)?F(r.cast(t)||{}):F(t)}function Ut(e){var n;const t=Rt++,r=(e==null?void 0:e.name)||"Form";let l=0;const u=le(!1),s=le(!1),d=le(0),v=[],c=we(Rn(e)),y=le([]),V=le({}),A=le({}),O=dt(()=>{A.value=y.value.reduce((a,i)=>(a[Ae(m(i.path))]=i,a),{})});function I(a,i){const o=_(a);if(!o){typeof a=="string"&&(V.value[Ae(a)]=en(i));return}if(typeof a=="string"){const f=Ae(a);V.value[f]&&delete V.value[f]}o.errors=en(i),o.valid=!o.errors.length}function $(a){ne(a).forEach(i=>{I(i,a[i])})}e!=null&&e.initialErrors&&$(e.initialErrors);const p=E(()=>{const a=y.value.reduce((i,o)=>(o.errors.length&&(i[m(o.path)]=o.errors),i),{});return Object.assign(Object.assign({},V.value),a)}),D=E(()=>ne(p.value).reduce((a,i)=>{const o=p.value[i];return o!=null&&o.length&&(a[i]=o[0]),a},{})),R=E(()=>y.value.reduce((a,i)=>(a[m(i.path)]={name:m(i.path)||"",label:i.label||""},a),{})),de=E(()=>y.value.reduce((a,i)=>{var o;return a[m(i.path)]=(o=i.bails)!==null&&o!==void 0?o:!0,a},{})),G=Object.assign({},(e==null?void 0:e.initialErrors)||{}),J=(n=e==null?void 0:e.keepValuesOnUnmount)!==null&&n!==void 0?n:!1,{initialValues:Z,originalInitialValues:k,setInitialValues:ie}=zt(y,c,e),U=Dt(y,c,k,D),z=E(()=>y.value.reduce((a,i)=>{const o=X(c,m(i.path));return he(a,m(i.path),o),a},{})),L=e==null?void 0:e.validationSchema;function ae(a,i){var o,f;const b=E(()=>X(Z.value,m(a))),S=A.value[m(a)],g=(i==null?void 0:i.type)==="checkbox"||(i==null?void 0:i.type)==="radio";if(S&&g){S.multiple=!0;const re=l++;return Array.isArray(S.id)?S.id.push(re):S.id=[S.id,re],S.fieldsCount++,S.__flags.pendingUnmount[re]=!1,S}const B=E(()=>X(c,m(a))),T=m(a),q=fe.findIndex(re=>re===T);q!==-1&&fe.splice(q,1);const w=E(()=>{var re,je,He,Ge;const Ke=m(L);if(ue(Ke))return(je=(re=Ke.describe)===null||re===void 0?void 0:re.call(Ke,m(a)).required)!==null&&je!==void 0?je:!1;const Ye=m(i==null?void 0:i.schema);return ue(Ye)&&(Ge=(He=Ye.describe)===null||He===void 0?void 0:He.call(Ye).required)!==null&&Ge!==void 0?Ge:!1}),H=l++,Q=we({id:H,path:a,touched:!1,pending:!1,valid:!0,validated:!!(!((o=G[T])===null||o===void 0)&&o.length),required:w,initialValue:b,errors:Yn([]),bails:(f=i==null?void 0:i.bails)!==null&&f!==void 0?f:!1,label:i==null?void 0:i.label,type:(i==null?void 0:i.type)||"default",value:B,multiple:!1,__flags:{pendingUnmount:{[H]:!1},pendingReset:!1},fieldsCount:1,validate:i==null?void 0:i.validate,dirty:E(()=>!Y(P(B),P(b)))});return y.value.push(Q),A.value[T]=Q,O(),D.value[T]&&!G[T]&&se(()=>{ge(T,{mode:"silent"})}),Be(a)&&Ve(a,re=>{O();const je=F(B.value);A.value[re]=Q,se(()=>{he(c,re,je)})}),Q}const ce=pn(fn,5),x=pn(fn,5),ee=xe(async a=>await(a==="silent"?ce():x()),(a,[i])=>{const o=ne(j.errorBag.value),b=[...new Set([...ne(a.results),...y.value.map(S=>S.path),...o])].sort().reduce((S,g)=>{var B;const T=g,q=_(T)||me(T),w=((B=a.results[T])===null||B===void 0?void 0:B.errors)||[],H=m(q==null?void 0:q.path)||T,Q=Lt({errors:w,valid:!w.length},S.results[H]);return S.results[H]=Q,Q.valid||(S.errors[H]=Q.errors[0]),q&&V.value[H]&&delete V.value[H],q?(q.valid=Q.valid,i==="silent"||i==="validated-only"&&!q.validated||I(q,Q.errors),S):(I(H,w),S)},{valid:a.valid,results:{},errors:{},source:a.source});return a.values&&(b.values=a.values,b.source=a.source),ne(b.results).forEach(S=>{var g;const B=_(S);B&&i!=="silent"&&(i==="validated-only"&&!B.validated||I(B,(g=b.results[S])===null||g===void 0?void 0:g.errors))}),b});function N(a){y.value.forEach(a)}function _(a){const i=typeof a=="string"?Ae(a):a;return typeof i=="string"?A.value[i]:i}function me(a){return y.value.filter(o=>a.startsWith(m(o.path))).reduce((o,f)=>o?f.path.length>o.path.length?f:o:f,void 0)}let fe=[],ye;function _e(a){return fe.push(a),ye||(ye=se(()=>{[...fe].sort().reverse().forEach(o=>{On(c,o)}),fe=[],ye=null})),ye}function Ie(a){return function(o,f){return function(S){return S instanceof Event&&(S.preventDefault(),S.stopPropagation()),N(g=>g.touched=!0),u.value=!0,d.value++,Se().then(g=>{const B=F(c);if(g.valid&&typeof o=="function"){const T=F(z.value);let q=a?T:B;return g.values&&(q=g.source==="schema"?g.values:Object.assign({},q,g.values)),o(q,{evt:S,controlledValues:T,setErrors:$,setFieldError:I,setTouched:Le,setFieldTouched:te,setValues:ve,setFieldValue:M,resetForm:$e,resetField:dn})}!g.valid&&typeof f=="function"&&f({values:B,evt:S,errors:g.errors,results:g.results})}).then(g=>(u.value=!1,g),g=>{throw u.value=!1,g})}}}const K=Ie(!1);K.withControlled=Ie(!0);function ze(a,i){const o=y.value.findIndex(b=>b.path===a&&(Array.isArray(b.id)?b.id.includes(i):b.id===i)),f=y.value[o];if(!(o===-1||!f)){if(se(()=>{ge(a,{mode:"silent",warn:!1})}),f.multiple&&f.fieldsCount&&f.fieldsCount--,Array.isArray(f.id)){const b=f.id.indexOf(i);b>=0&&f.id.splice(b,1),delete f.__flags.pendingUnmount[i]}(!f.multiple||f.fieldsCount<=0)&&(y.value.splice(o,1),cn(a),O(),delete A.value[a])}}function h(a){ne(A.value).forEach(i=>{i.startsWith(a)&&delete A.value[i]}),y.value=y.value.filter(i=>!i.path.startsWith(a)),se(()=>{O()})}const j={name:r,formId:t,values:c,controlledValues:z,errorBag:p,errors:D,schema:L,submitCount:d,meta:U,isSubmitting:u,isValidating:s,fieldArrays:v,keepValuesOnUnmount:J,validateSchema:P(L)?ee:void 0,validate:Se,setFieldError:I,validateField:ge,setFieldValue:M,setValues:ve,setErrors:$,setFieldTouched:te,setTouched:Le,resetForm:$e,resetField:dn,handleSubmit:K,useFieldModel:Wn,defineInputBinds:qn,defineComponentBinds:Hn,defineField:qe,stageInitialValue:Ln,unsetInitialValue:cn,setFieldInitialValue:We,createPathState:ae,getPathState:_,unsetPathValue:_e,removePathState:ze,initialValues:Z,getAllPathStates:()=>y.value,destroyPath:h,isFieldTouched:Un,isFieldDirty:Dn,isFieldValid:zn};function M(a,i,o=!0){const f=F(i),b=typeof a=="string"?a:a.path;_(b)||ae(b),he(c,b,f),o&&ge(b)}function C(a,i=!0){ne(c).forEach(o=>{delete c[o]}),ne(a).forEach(o=>{M(o,a[o],!1)}),i&&Se()}function ve(a,i=!0){Ee(c,a),v.forEach(o=>o&&o.reset()),i&&Se()}function oe(a,i){const o=_(m(a))||ae(a);return E({get(){return o.value},set(f){var b;const S=m(a);M(S,f,(b=m(i))!==null&&b!==void 0?b:!1)}})}function te(a,i){const o=_(a);o&&(o.touched=i)}function Un(a){const i=_(a);return i?i.touched:y.value.filter(o=>o.path.startsWith(a)).some(o=>o.touched)}function Dn(a){const i=_(a);return i?i.dirty:y.value.filter(o=>o.path.startsWith(a)).some(o=>o.dirty)}function zn(a){const i=_(a);return i?i.valid:y.value.filter(o=>o.path.startsWith(a)).every(o=>o.valid)}function Le(a){if(typeof a=="boolean"){N(i=>{i.touched=a});return}ne(a).forEach(i=>{te(i,!!a[i])})}function dn(a,i){var o;const f=i&&"value"in i?i.value:X(Z.value,a),b=_(a);b&&(b.__flags.pendingReset=!0),We(a,F(f),!0),M(a,f,!1),te(a,(o=i==null?void 0:i.touched)!==null&&o!==void 0?o:!1),I(a,(i==null?void 0:i.errors)||[]),se(()=>{b&&(b.__flags.pendingReset=!1)})}function $e(a,i){let o=F(a!=null&&a.values?a.values:k.value);o=i!=null&&i.force?o:Ee(k.value,o),o=ue(L)&&W(L.cast)?L.cast(o):o,ie(o,{force:i==null?void 0:i.force}),N(f=>{var b;f.__flags.pendingReset=!0,f.validated=!1,f.touched=((b=a==null?void 0:a.touched)===null||b===void 0?void 0:b[m(f.path)])||!1,M(m(f.path),X(o,m(f.path)),!1),I(m(f.path),void 0)}),i!=null&&i.force?C(o,!1):ve(o,!1),$((a==null?void 0:a.errors)||{}),d.value=(a==null?void 0:a.submitCount)||0,se(()=>{Se({mode:"silent"}),N(f=>{f.__flags.pendingReset=!1})})}async function Se(a){const i=(a==null?void 0:a.mode)||"force";if(i==="force"&&N(g=>g.validated=!0),j.validateSchema)return j.validateSchema(i);s.value=!0;const o=await Promise.all(y.value.map(g=>g.validate?g.validate(a).then(B=>({key:m(g.path),valid:B.valid,errors:B.errors,value:B.value})):Promise.resolve({key:m(g.path),valid:!0,errors:[],value:void 0})));s.value=!1;const f={},b={},S={};for(const g of o)f[g.key]={valid:g.valid,errors:g.errors},g.value&&he(S,g.key,g.value),g.errors.length&&(b[g.key]=g.errors[0]);return{valid:o.every(g=>g.valid),results:f,errors:b,values:S,source:"fields"}}async function ge(a,i){var o;const f=_(a);if(f&&(i==null?void 0:i.mode)!=="silent"&&(f.validated=!0),L){const{results:b}=await ee((i==null?void 0:i.mode)||"validated-only");return b[a]||{errors:[],valid:!0}}return f!=null&&f.validate?f.validate(i):(!f&&(o=i==null?void 0:i.warn),Promise.resolve({errors:[],valid:!0}))}function cn(a){On(Z.value,a)}function Ln(a,i,o=!1){We(a,i),he(c,a,i),o&&!(e!=null&&e.initialValues)&&he(k.value,a,F(i))}function We(a,i,o=!1){he(Z.value,a,F(i)),o&&he(k.value,a,F(i))}async function fn(){const a=P(L);if(!a)return{valid:!0,results:{},errors:{},source:"none"};s.value=!0;const i=Ne(a)||ue(a)?await _t(a,c):await jt(a,c,{names:R.value,bailsMap:de.value});return s.value=!1,i}const $n=K((a,{evt:i})=>{Cn(i)&&i.target.submit()});An(()=>{if(e!=null&&e.initialErrors&&$(e.initialErrors),e!=null&&e.initialTouched&&Le(e.initialTouched),e!=null&&e.validateOnMount){Se();return}j.validateSchema&&j.validateSchema("silent")}),Be(L)&&Ve(L,()=>{var a;(a=j.validateSchema)===null||a===void 0||a.call(j,"validated-only")}),Je(Ue,j);function qe(a,i){const o=W(i)||i==null?void 0:i.label,f=_(m(a))||ae(a,{label:o}),b=()=>W(i)?i(Ce(f,Me)):i||{};function S(){var w;f.touched=!0,((w=b().validateOnBlur)!==null&&w!==void 0?w:Oe().validateOnBlur)&&ge(m(f.path))}function g(){var w;((w=b().validateOnInput)!==null&&w!==void 0?w:Oe().validateOnInput)&&se(()=>{ge(m(f.path))})}function B(){var w;((w=b().validateOnChange)!==null&&w!==void 0?w:Oe().validateOnChange)&&se(()=>{ge(m(f.path))})}const T=E(()=>{const w={onChange:B,onInput:g,onBlur:S};return W(i)?Object.assign(Object.assign({},w),i(Ce(f,Me)).props||{}):i!=null&&i.props?Object.assign(Object.assign({},w),i.props(Ce(f,Me))):w});return[oe(a,()=>{var w,H,Q;return(Q=(w=b().validateOnModelUpdate)!==null&&w!==void 0?w:(H=Oe())===null||H===void 0?void 0:H.validateOnModelUpdate)!==null&&Q!==void 0?Q:!0}),T]}function Wn(a){return Array.isArray(a)?a.map(i=>oe(i,!0)):oe(a)}function qn(a,i){const[o,f]=qe(a,i);function b(){f.value.onBlur()}function S(B){const T=Te(B);M(m(a),T,!1),f.value.onInput()}function g(B){const T=Te(B);M(m(a),T,!1),f.value.onChange()}return E(()=>Object.assign(Object.assign({},f.value),{onBlur:b,onInput:S,onChange:g,value:o.value}))}function Hn(a,i){const[o,f]=qe(a,i),b=_(m(a));function S(g){o.value=g}return E(()=>{const g=W(i)?i(Ce(b,Me)):i||{};return Object.assign({[g.model||"modelValue"]:o.value,[`onUpdate:${g.model||"modelValue"}`]:S},f.value)})}const vn=Object.assign(Object.assign({},j),{values:Gn(c),handleReset:()=>$e(),submitForm:$n});return Je(nt,vn),vn}function Dt(e,n,t,r){const l={touched:"some",pending:"some",valid:"every"},u=E(()=>!Y(n,P(t)));function s(){const v=e.value;return ne(l).reduce((c,y)=>{const V=l[y];return c[y]=v[V](A=>A[y]),c},{})}const d=we(s());return Kn(()=>{const v=s();d.touched=v.touched,d.valid=v.valid,d.pending=v.pending}),E(()=>Object.assign(Object.assign({initialValues:P(t)},d),{valid:d.valid&&!ne(r.value).length,dirty:u.value}))}function zt(e,n,t){const r=Rn(t),l=le(r),u=le(F(r));function s(d,v){v!=null&&v.force?(l.value=F(d),u.value=F(d)):(l.value=Ee(F(l.value)||{},F(d)),u.value=Ee(F(u.value)||{},F(d))),v!=null&&v.updateFields&&e.value.forEach(c=>{if(c.touched)return;const V=X(l.value,m(c.path));he(n,m(c.path),F(V))})}return{initialValues:l,originalInitialValues:u,setInitialValues:s}}function Lt(e,n){return n?{valid:e.valid&&n.valid,errors:[...e.errors,...n.errors]}:e}const $t=tn({name:"Form",inheritAttrs:!1,props:{as:{type:null,default:"form"},validationSchema:{type:Object,default:void 0},initialValues:{type:Object,default:void 0},initialErrors:{type:Object,default:void 0},initialTouched:{type:Object,default:void 0},validateOnMount:{type:Boolean,default:!1},onSubmit:{type:Function,default:void 0},onInvalidSubmit:{type:Function,default:void 0},keepValues:{type:Boolean,default:!1},name:{type:String,default:"Form"}},setup(e,n){const t=be(e,"validationSchema"),r=be(e,"keepValues"),{errors:l,errorBag:u,values:s,meta:d,isSubmitting:v,isValidating:c,submitCount:y,controlledValues:V,validate:A,validateField:O,handleReset:I,resetForm:$,handleSubmit:p,setErrors:D,setFieldError:R,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetField:k}=Ut({validationSchema:t.value?t:void 0,initialValues:e.initialValues,initialErrors:e.initialErrors,initialTouched:e.initialTouched,validateOnMount:e.validateOnMount,keepValuesOnUnmount:r,name:e.name}),ie=p((N,{evt:_})=>{Cn(_)&&_.target.submit()},e.onInvalidSubmit),U=e.onSubmit?p(e.onSubmit,e.onInvalidSubmit):ie;function z(N){ln(N)&&N.preventDefault(),I(),typeof n.attrs.onReset=="function"&&n.attrs.onReset()}function L(N,_){return p(typeof N=="function"&&!_?N:_,e.onInvalidSubmit)(N)}function ae(){return F(s)}function ce(){return F(d.value)}function x(){return F(l.value)}function ee(){return{meta:d.value,errors:l.value,errorBag:u.value,values:s,isSubmitting:v.value,isValidating:c.value,submitCount:y.value,controlledValues:V.value,validate:A,validateField:O,handleSubmit:L,handleReset:I,submitForm:ie,setErrors:D,setFieldError:R,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetForm:$,resetField:k,getValues:ae,getMeta:ce,getErrors:x}}return n.expose({setFieldError:R,setErrors:D,setFieldValue:de,setValues:G,setFieldTouched:J,setTouched:Z,resetForm:$,validate:A,validateField:O,resetField:k,getValues:ae,getMeta:ce,getErrors:x,values:s,meta:d,errors:l}),function(){const _=e.as==="form"?e.as:e.as?rn(e.as):null,me=on(_,n,ee);return _?Pe(_,Object.assign(Object.assign(Object.assign({},_==="form"?{novalidate:!0}:{}),n.attrs),{onSubmit:U,onReset:z}),me):me}}}),Gt=$t,Wt=tn({name:"ErrorMessage",props:{as:{type:String,default:void 0},name:{type:String,required:!0}},setup(e,n){const t=En(Ue,void 0),r=E(()=>t==null?void 0:t.errors.value[e.name]);function l(){return{message:r.value}}return()=>{if(!r.value)return;const u=e.as?rn(e.as):e.as,s=on(u,n,l),d=Object.assign({role:"alert"},n.attrs);return!u&&(Array.isArray(s)||!s)&&(s!=null&&s.length)?s:(Array.isArray(s)||!s)&&!(s!=null&&s.length)?Pe(u||"span",d,r.value):Pe(u,d,s)}}}),Kt=Wt;export{Kt as E,Gt as F,Ht as a,un as c,De as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as P,B as T}from"./chart.js.
|
|
1
|
+
import{C as P,B as T}from"./chart.js.COWP81wl.0.0.65.js";import{B as O,z as C,a3 as D,a6 as j,r as q,o as A,a7 as K,w as R,D as h,a8 as w,n as U}from"./@vue.BxBKarQv.0.0.65.js";const L={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},k={ariaLabel:{type:String},ariaDescribedby:{type:String}},z={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...L,...k},N=j[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function u(t){return w(t)?h(t):t}function $(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return w(e)?new Proxy(t,{}):t}function E(t,e){const s=t.options;s&&e&&Object.assign(s,e)}function B(t,e){t.labels=e}function S(t,e,s){const o=[];t.datasets=e.map(n=>{const a=t.datasets.find(c=>c[s]===n[s]);return!a||!n.data||o.includes(a)?{...n}:(o.push(a),Object.assign(a,n),a)})}function F(t,e){const s={labels:[],datasets:[]};return B(s,t.labels),S(s,t.datasets,e),s}const G=O({props:z,setup(t,e){let{expose:s,slots:o}=e;const n=q(null),a=C(null);s({chart:a});const c=()=>{if(!n.value)return;const{type:r,data:p,options:y,plugins:f,datasetIdKey:v}=t,b=F(p,v),i=$(b,p);a.value=new P(n.value,{type:r,data:i,options:{...y},plugins:f})},d=()=>{const r=h(a.value);r&&(t.destroyDelay>0?setTimeout(()=>{r.destroy(),a.value=null},t.destroyDelay):(r.destroy(),a.value=null))},I=r=>{r.update(t.updateMode)};return A(c),K(d),R([()=>t.options,()=>t.data],(r,p)=>{let[y,f]=r,[v,b]=p;const i=h(a.value);if(!i)return;let g=!1;if(y){const l=u(y),m=u(v);l&&l!==m&&(E(i,l),g=!0)}if(f){const l=u(f.labels),m=u(b.labels),x=u(f.datasets),M=u(b.datasets);l!==m&&(B(i.config.data,l),g=!0),x&&x!==M&&(S(i.config.data,x,t.datasetIdKey),g=!0)}g&&U(()=>{I(i)})},{deep:!0}),()=>D("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:n},[D("p",{},[o.default?o.default():""])])}});function H(t,e){return P.register(e),O({props:L,setup(s,o){let{expose:n}=o;const a=C(null),c=d=>{a.value=d==null?void 0:d.chart};return n({chart:a}),()=>D(G,N({ref:c},{type:t,...s}))}})}const V=H("bar",T);export{V as B};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{c as kt,i as L,m as M,a as k,b as d,D as Ve,d as y,e as Z,f as U,u as H,g as ee,h as P,j as N,k as q,l as te,n as ht,o as p,p as de,q as Ee,r as G,s as Q,A as Ot,t as Nt,v as yt,N as pt,w as xe,x as Ie,C as Pt,y as Fe,z as Le,M as Re,B as Te,E as ve,F as ke,G as he,H as Mt,I as St,J as Dt,K as Ct,L as At,O as Wt,P as Ut,Q as j,R as Vt,S as xt,T as wt}from"./@intlify.BIbPqCER.0.0.65.js";import{y as $t,r as Ht,z as Yt,k as Y,w as ne,f as jt,B as ie,g as B,a3 as we,X as $e,i as Gt,o as Bt,a7 as Xt,R as zt,a9 as Jt}from"./@vue.BxBKarQv.0.0.65.js";/*!
|
|
2
|
+
* vue-i18n v11.1.5
|
|
3
|
+
* (c) 2025 kazuya kawaguchi
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/const Kt="11.1.5";function qt(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(j().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(j().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(j().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(j().__INTLIFY_PROD_DEVTOOLS__=!1)}const T={UNEXPECTED_RETURN_TYPE:Pt,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function h(e,...t){return kt(e,null,void 0)}const re=M("__translateVNode"),se=M("__datetimeParts"),le=M("__numberParts"),He=M("__setPluralRules"),Ye=M("__injectWithOption"),oe=M("__dispose");function X(e){if(!p(e)||Q(e))return e;for(const t in e)if(te(e,t))if(!t.includes("."))p(e[t])&&X(e[t]);else{const c=t.split("."),l=c.length-1;let a=e,r=!1;for(let s=0;s<l;s++){if(c[s]==="__proto__")throw new Error(`unsafe key: ${c[s]}`);if(c[s]in a||(a[c[s]]=N()),!p(a[c[s]])){r=!0;break}a=a[c[s]]}if(r||(Q(a)?Ot.includes(c[l])||delete e[t]:(a[c[l]]=e[t],delete e[t])),!Q(a)){const s=a[c[l]];p(s)&&X(s)}}return e}function ue(e,t){const{messages:c,__i18n:l,messageResolver:a,flatJson:r}=t,s=k(c)?c:y(l)?N():{[e]:N()};if(y(l)&&l.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:u,resource:m}=i;u?(s[u]=s[u]||N(),q(m,s[u])):q(m,s)}else d(i)&&q(JSON.parse(i),s)}),a==null&&r)for(const i in s)te(s,i)&&X(s[i]);return s}function je(e){return e.type}function Ge(e,t,c){let l=p(t.messages)?t.messages:N();"__i18nGlobal"in c&&(l=ue(e.locale.value,{messages:l,__i18n:c.__i18nGlobal}));const a=Object.keys(l);a.length&&a.forEach(r=>{e.mergeLocaleMessage(r,l[r])});{if(p(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(s=>{e.mergeDateTimeFormat(s,t.datetimeFormats[s])})}if(p(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(s=>{e.mergeNumberFormat(s,t.numberFormats[s])})}}}function Oe(e){return zt(Jt,null,e,0)}const Ne="__INTLIFY_META__",ye=()=>[],Qt=()=>!1;let pe=0;function Pe(e){return(t,c,l,a)=>e(c,l,B()||void 0,a)}const Zt=()=>{const e=B();let t=null;return e&&(t=je(e)[Ne])?{[Ne]:t}:null};function _e(e={}){const{__root:t,__injectWithOption:c}=e,l=t===void 0,a=e.flatJson,r=ee?Ht:Yt;let s=L(e.inheritLocale)?e.inheritLocale:!0;const i=r(t&&s?t.locale.value:d(e.locale)?e.locale:Ve),u=r(t&&s?t.fallbackLocale.value:d(e.fallbackLocale)||y(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),m=r(ue(i.value,e)),b=r(k(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),f=r(k(e.numberFormats)?e.numberFormats:{[i.value]:{}});let E=t?t.missingWarn:L(e.missingWarn)||Z(e.missingWarn)?e.missingWarn:!0,R=t?t.fallbackWarn:L(e.fallbackWarn)||Z(e.fallbackWarn)?e.fallbackWarn:!0,O=t?t.fallbackRoot:L(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,z=U(e.missing)?e.missing:null,A=U(e.missing)?Pe(e.missing):null,S=U(e.postTranslation)?e.postTranslation:null,V=t?t.warnHtmlMessage:L(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const w=t?t.modifiers:k(e.modifiers)?e.modifiers:{};let $=e.pluralRules||t&&t.pluralRules,_;_=(()=>{l&&Ie(null);const n={version:Kt,locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:w,pluralRules:$,missing:A===null?void 0:A,missingWarn:E,fallbackWarn:R,fallbackFormat:v,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:V,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};n.datetimeFormats=b.value,n.numberFormats=f.value,n.__datetimeFormatters=k(_)?_.__datetimeFormatters:void 0,n.__numberFormatters=k(_)?_.__numberFormatters:void 0;const o=ht(n);return l&&Ie(o),o})(),H(_,i.value,u.value);function ae(){return[i.value,u.value,m.value,b.value,f.value]}const ze=Y({get:()=>i.value,set:n=>{_.locale=n,i.value=n}}),Je=Y({get:()=>u.value,set:n=>{_.fallbackLocale=n,u.value=n,H(_,i.value,n)}}),Ke=Y(()=>m.value),qe=Y(()=>b.value),Qe=Y(()=>f.value);function Ze(){return U(S)?S:null}function et(n){S=n,_.postTranslation=n}function tt(){return z}function at(n){n!==null&&(A=Pe(n)),z=n,_.missing=A}const D=(n,o,g,I,C,K)=>{ae();let W;try{__INTLIFY_PROD_DEVTOOLS__&&Nt(Zt()),l||(_.fallbackContext=t?yt():void 0),W=n(_)}finally{__INTLIFY_PROD_DEVTOOLS__,l||(_.fallbackContext=void 0)}if(g!=="translate exists"&&G(W)&&W===pt||g==="translate exists"&&!W){const[vt,Ra]=o();return t&&O?I(t):C(vt)}else{if(K(W))return W;throw h(T.UNEXPECTED_RETURN_TYPE)}};function ge(...n){return D(o=>Reflect.apply(Le,null,[o,...n]),()=>Fe(...n),"translate",o=>Reflect.apply(o.t,o,[...n]),o=>o,o=>d(o))}function nt(...n){const[o,g,I]=n;if(I&&!p(I))throw h(T.INVALID_ARGUMENT);return ge(o,g,P({resolvedMessage:!0},I||{}))}function rt(...n){return D(o=>Reflect.apply(ve,null,[o,...n]),()=>Te(...n),"datetime format",o=>Reflect.apply(o.d,o,[...n]),()=>Re,o=>d(o)||y(o))}function st(...n){return D(o=>Reflect.apply(he,null,[o,...n]),()=>ke(...n),"number format",o=>Reflect.apply(o.n,o,[...n]),()=>Re,o=>d(o)||y(o))}function lt(n){return n.map(o=>d(o)||G(o)||L(o)?Oe(String(o)):o)}const ot={normalize:lt,interpolate:n=>n,type:"vnode"};function ct(...n){return D(o=>{let g;const I=o;try{I.processor=ot,g=Reflect.apply(Le,null,[I,...n])}finally{I.processor=null}return g},()=>Fe(...n),"translate",o=>o[re](...n),o=>[Oe(o)],o=>y(o))}function it(...n){return D(o=>Reflect.apply(he,null,[o,...n]),()=>ke(...n),"number format",o=>o[le](...n),ye,o=>d(o)||y(o))}function ut(...n){return D(o=>Reflect.apply(ve,null,[o,...n]),()=>Te(...n),"datetime format",o=>o[se](...n),ye,o=>d(o)||y(o))}function _t(n){$=n,_.pluralRules=$}function mt(n,o){return D(()=>{if(!n)return!1;const g=d(o)?o:i.value,I=be(g),C=_.messageResolver(I,n);return Q(C)||Mt(C)||d(C)},()=>[n],"translate exists",g=>Reflect.apply(g.te,g,[n,o]),Qt,g=>L(g))}function ft(n){let o=null;const g=xe(_,u.value,i.value);for(let I=0;I<g.length;I++){const C=m.value[g[I]]||{},K=_.messageResolver(C,n);if(K!=null){o=K;break}}return o}function gt(n){const o=ft(n);return o??(t?t.tm(n)||{}:{})}function be(n){return m.value[n]||{}}function bt(n,o){if(a){const g={[n]:o};for(const I in g)te(g,I)&&X(g[I]);o=g[n]}m.value[n]=o,_.messages=m.value}function dt(n,o){m.value[n]=m.value[n]||{};const g={[n]:o};if(a)for(const I in g)te(g,I)&&X(g[I]);o=g[n],q(o,m.value[n]),_.messages=m.value}function Et(n){return b.value[n]||{}}function It(n,o){b.value[n]=o,_.datetimeFormats=b.value,de(_,n,o)}function Ft(n,o){b.value[n]=P(b.value[n]||{},o),_.datetimeFormats=b.value,de(_,n,o)}function Lt(n){return f.value[n]||{}}function Rt(n,o){f.value[n]=o,_.numberFormats=f.value,Ee(_,n,o)}function Tt(n,o){f.value[n]=P(f.value[n]||{},o),_.numberFormats=f.value,Ee(_,n,o)}pe++,t&&ee&&(ne(t.locale,n=>{s&&(i.value=n,_.locale=n,H(_,i.value,u.value))}),ne(t.fallbackLocale,n=>{s&&(u.value=n,_.fallbackLocale=n,H(_,i.value,u.value))}));const F={id:pe,locale:ze,fallbackLocale:Je,get inheritLocale(){return s},set inheritLocale(n){s=n,n&&t&&(i.value=t.locale.value,u.value=t.fallbackLocale.value,H(_,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:Ke,get modifiers(){return w},get pluralRules(){return $||{}},get isGlobal(){return l},get missingWarn(){return E},set missingWarn(n){E=n,_.missingWarn=E},get fallbackWarn(){return R},set fallbackWarn(n){R=n,_.fallbackWarn=R},get fallbackRoot(){return O},set fallbackRoot(n){O=n},get fallbackFormat(){return v},set fallbackFormat(n){v=n,_.fallbackFormat=v},get warnHtmlMessage(){return V},set warnHtmlMessage(n){V=n,_.warnHtmlMessage=n},get escapeParameter(){return x},set escapeParameter(n){x=n,_.escapeParameter=n},t:ge,getLocaleMessage:be,setLocaleMessage:bt,mergeLocaleMessage:dt,getPostTranslationHandler:Ze,setPostTranslationHandler:et,getMissingHandler:tt,setMissingHandler:at,[He]:_t};return F.datetimeFormats=qe,F.numberFormats=Qe,F.rt=nt,F.te=mt,F.tm=gt,F.d=rt,F.n=st,F.getDateTimeFormat=Et,F.setDateTimeFormat=It,F.mergeDateTimeFormat=Ft,F.getNumberFormat=Lt,F.setNumberFormat=Rt,F.mergeNumberFormat=Tt,F[Ye]=c,F[re]=ct,F[se]=ut,F[le]=it,F}function ea(e){const t=d(e.locale)?e.locale:Ve,c=d(e.fallbackLocale)||y(e.fallbackLocale)||k(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,l=U(e.missing)?e.missing:void 0,a=L(e.silentTranslationWarn)||Z(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=L(e.silentFallbackWarn)||Z(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,s=L(e.fallbackRoot)?e.fallbackRoot:!0,i=!!e.formatFallbackMessages,u=k(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,b=U(e.postTranslation)?e.postTranslation:void 0,f=d(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,E=!!e.escapeParameterHtml,R=L(e.sync)?e.sync:!0;let O=e.messages;if(k(e.sharedMessages)){const w=e.sharedMessages;O=Object.keys(w).reduce((_,J)=>{const ae=_[J]||(_[J]={});return P(ae,w[J]),_},O||{})}const{__i18n:v,__root:z,__injectWithOption:A}=e,S=e.datetimeFormats,V=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:c,messages:O,flatJson:x,datetimeFormats:S,numberFormats:V,missing:l,missingWarn:a,fallbackWarn:r,fallbackRoot:s,fallbackFormat:i,modifiers:u,pluralRules:m,postTranslation:b,warnHtmlMessage:f,escapeParameter:E,messageResolver:e.messageResolver,inheritLocale:R,__i18n:v,__root:z,__injectWithOption:A}}function ce(e={}){const t=_e(ea(e)),{__extender:c}=e,l={id:t.id,get locale(){return t.locale.value},set locale(a){t.locale.value=a},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(a){t.fallbackLocale.value=a},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(a){t.setMissingHandler(a)},get silentTranslationWarn(){return L(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(a){t.missingWarn=L(a)?!a:a},get silentFallbackWarn(){return L(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(a){t.fallbackWarn=L(a)?!a:a},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(a){t.fallbackFormat=a},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(a){t.setPostTranslationHandler(a)},get sync(){return t.inheritLocale},set sync(a){t.inheritLocale=a},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(a){t.warnHtmlMessage=a!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(a){t.escapeParameter=a},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...a){return Reflect.apply(t.t,t,[...a])},rt(...a){return Reflect.apply(t.rt,t,[...a])},te(a,r){return t.te(a,r)},tm(a){return t.tm(a)},getLocaleMessage(a){return t.getLocaleMessage(a)},setLocaleMessage(a,r){t.setLocaleMessage(a,r)},mergeLocaleMessage(a,r){t.mergeLocaleMessage(a,r)},d(...a){return Reflect.apply(t.d,t,[...a])},getDateTimeFormat(a){return t.getDateTimeFormat(a)},setDateTimeFormat(a,r){t.setDateTimeFormat(a,r)},mergeDateTimeFormat(a,r){t.mergeDateTimeFormat(a,r)},n(...a){return Reflect.apply(t.n,t,[...a])},getNumberFormat(a){return t.getNumberFormat(a)},setNumberFormat(a,r){t.setNumberFormat(a,r)},mergeNumberFormat(a,r){t.mergeNumberFormat(a,r)}};return l.__extender=c,l}function ta(e,t,c){return{beforeCreate(){const l=B();if(!l)throw h(T.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=Me(e,r);else{r.__injectWithOption=!0,r.__extender=c.__vueI18nExtend,this.$i18n=ce(r);const s=this.$i18n;s.__extender&&(s.__disposer=s.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Me(e,a);else{this.$i18n=ce({__i18n:a.__i18n,__injectWithOption:!0,__extender:c.__vueI18nExtend,__root:t});const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Ge(t,a,a),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$te=(r,s)=>this.$i18n.te(r,s),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r),c.__setInstance(l,this.$i18n)},mounted(){},unmounted(){const l=B();if(!l)throw h(T.UNEXPECTED_ERROR);const a=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__disposer&&(a.__disposer(),delete a.__disposer,delete a.__extender),c.__deleteInstance(l),delete this.$i18n}}}function Me(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[He](t.pluralizationRules||e.pluralizationRules);const c=ue(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(c).forEach(l=>e.mergeLocaleMessage(l,c[l])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(l=>e.mergeDateTimeFormat(l,t.datetimeFormats[l])),t.numberFormats&&Object.keys(t.numberFormats).forEach(l=>e.mergeNumberFormat(l,t.numberFormats[l])),e}const me={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function aa({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((l,a)=>[...l,...a.type===$e?a.children:[a]],[]):t.reduce((c,l)=>{const a=e[l];return a&&(c[l]=a()),c},N())}function Be(){return $e}const na=ie({name:"i18n-t",props:P({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>G(e)||!isNaN(e)}},me),setup(e,t){const{slots:c,attrs:l}=t,a=e.i18n||fe({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(c).filter(f=>f[0]!=="_"),s=N();e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=d(e.plural)?+e.plural:e.plural);const i=aa(t,r),u=a[re](e.keypath,i,s),m=P(N(),l),b=d(e.tag)||p(e.tag)?e.tag:Be();return we(b,m,u)}}}),Se=na;function ra(e){return y(e)&&!d(e[0])}function Xe(e,t,c,l){const{slots:a,attrs:r}=t;return()=>{const s={part:!0};let i=N();e.locale&&(s.locale=e.locale),d(e.format)?s.key=e.format:p(e.format)&&(d(e.format.key)&&(s.key=e.format.key),i=Object.keys(e.format).reduce((E,R)=>c.includes(R)?P(N(),E,{[R]:e.format[R]}):E,N()));const u=l(e.value,s,i);let m=[s.key];y(u)?m=u.map((E,R)=>{const O=a[E.type],v=O?O({[E.type]:E.value,index:R,parts:u}):[E.value];return ra(v)&&(v[0].key=`${E.type}-${R}`),v}):d(u)&&(m=[u]);const b=P(N(),r),f=d(e.tag)||p(e.tag)?e.tag:Be();return we(f,b,m)}}const sa=ie({name:"i18n-n",props:P({value:{type:Number,required:!0},format:{type:[String,Object]}},me),setup(e,t){const c=e.i18n||fe({useScope:e.scope,__useComponent:!0});return Xe(e,t,St,(...l)=>c[le](...l))}}),De=sa;function la(e,t){const c=e;if(e.mode==="composition")return c.__getInstance(t)||e.global;{const l=c.__getInstance(t);return l!=null?l.__composer:e.global.__composer}}function oa(e){const t=s=>{const{instance:i,value:u}=s;if(!i||!i.$)throw h(T.UNEXPECTED_ERROR);const m=la(e,i.$),b=Ce(u);return[Reflect.apply(m.t,m,[...Ae(b)]),m]};return{created:(s,i)=>{const[u,m]=t(i);ee&&e.global===m&&(s.__i18nWatcher=ne(m.locale,()=>{i.instance&&i.instance.$forceUpdate()})),s.__composer=m,s.textContent=u},unmounted:s=>{ee&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:i})=>{if(s.__composer){const u=s.__composer,m=Ce(i);s.textContent=Reflect.apply(u.t,u,[...Ae(m)])}},getSSRProps:s=>{const[i]=t(s);return{textContent:i}}}}function Ce(e){if(d(e))return{path:e};if(k(e)){if(!("path"in e))throw h(T.REQUIRED_VALUE,"path");return e}else throw h(T.INVALID_VALUE)}function Ae(e){const{path:t,locale:c,args:l,choice:a,plural:r}=e,s={},i=l||{};return d(c)&&(s.locale=c),G(a)&&(s.plural=a),G(r)&&(s.plural=r),[t,i,s]}function ca(e,t,...c){const l=k(c[0])?c[0]:{};(L(l.globalInstall)?l.globalInstall:!0)&&([Se.name,"I18nT"].forEach(r=>e.component(r,Se)),[De.name,"I18nN"].forEach(r=>e.component(r,De)),[Ue.name,"I18nD"].forEach(r=>e.component(r,Ue))),e.directive("t",oa(t))}const ia=M("global-vue-i18n");function ka(e={}){const t=__VUE_I18N_LEGACY_API__&&L(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,c=L(e.globalInjection)?e.globalInjection:!0,l=new Map,[a,r]=ua(e,t),s=M("");function i(f){return l.get(f)||null}function u(f,E){l.set(f,E)}function m(f){l.delete(f)}const b={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(f,...E){if(f.__VUE_I18N_SYMBOL__=s,f.provide(f.__VUE_I18N_SYMBOL__,b),k(E[0])){const v=E[0];b.__composerExtend=v.__composerExtend,b.__vueI18nExtend=v.__vueI18nExtend}let R=null;!t&&c&&(R=Ia(f,b.global)),__VUE_I18N_FULL_INSTALL__&&ca(f,b,...E),__VUE_I18N_LEGACY_API__&&t&&f.mixin(ta(r,r.__composer,b));const O=f.unmount;f.unmount=()=>{R&&R(),b.dispose(),O()}},get global(){return r},dispose(){a.stop()},__instances:l,__getInstance:i,__setInstance:u,__deleteInstance:m};return b}function fe(e={}){const t=B();if(t==null)throw h(T.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw h(T.NOT_INSTALLED);const c=_a(t),l=fa(c),a=je(t),r=ma(e,a);if(r==="global")return Ge(l,e,a),l;if(r==="parent"){let u=ga(c,t,e.__useComponent);return u==null&&(u=l),u}const s=c;let i=s.__getInstance(t);if(i==null){const u=P({},e);"__i18n"in a&&(u.__i18n=a.__i18n),l&&(u.__root=l),i=_e(u),s.__composerExtend&&(i[oe]=s.__composerExtend(i)),da(s,t,i),s.__setInstance(t,i)}return i}function ua(e,t){const c=$t(),l=__VUE_I18N_LEGACY_API__&&t?c.run(()=>ce(e)):c.run(()=>_e(e));if(l==null)throw h(T.UNEXPECTED_ERROR);return[c,l]}function _a(e){const t=Gt(e.isCE?ia:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw h(e.isCE?T.NOT_INSTALLED_WITH_PROVIDE:T.UNEXPECTED_ERROR);return t}function ma(e,t){return Dt(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function fa(e){return e.mode==="composition"?e.global:e.global.__composer}function ga(e,t,c=!1){let l=null;const a=t.root;let r=ba(t,c);for(;r!=null;){const s=e;if(e.mode==="composition")l=s.__getInstance(r);else if(__VUE_I18N_LEGACY_API__){const i=s.__getInstance(r);i!=null&&(l=i.__composer,c&&l&&!l[Ye]&&(l=null))}if(l!=null||a===r)break;r=r.parent}return l}function ba(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function da(e,t,c){Bt(()=>{},t),Xt(()=>{const l=c;e.__deleteInstance(t);const a=l[oe];a&&(a(),delete l[oe])},t)}const Ea=["locale","fallbackLocale","availableLocales"],We=["t","rt","d","n","tm","te"];function Ia(e,t){const c=Object.create(null);return Ea.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r)throw h(T.UNEXPECTED_ERROR);const s=jt(r.value)?{get(){return r.value.value},set(i){r.value.value=i}}:{get(){return r.get&&r.get()}};Object.defineProperty(c,a,s)}),e.config.globalProperties.$i18n=c,We.forEach(a=>{const r=Object.getOwnPropertyDescriptor(t,a);if(!r||!r.value)throw h(T.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,r)}),()=>{delete e.config.globalProperties.$i18n,We.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}const Fa=ie({name:"i18n-d",props:P({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},me),setup(e,t){const c=e.i18n||fe({useScope:e.scope,__useComponent:!0});return Xe(e,t,Ct,(...l)=>c[se](...l))}}),Ue=Fa;qt();At(xt);Wt(wt);Ut(xe);if(__INTLIFY_PROD_DEVTOOLS__){const e=j();e.__INTLIFY__=!0,Vt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{ka as c,fe as u};
|
package/dist/interface/js/{vue-inline-svg.DwQ6AJRv.0.0.63.js → vue-inline-svg.dmm7rA4k.0.0.65.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as M,aa as P,r as x,w as $,n as N,M as C,d as G,a3 as H}from"./@vue.
|
|
1
|
+
import{B as M,aa as P,r as x,w as $,n as N,M as C,d as G,a3 as H}from"./@vue.BxBKarQv.0.0.65.js";const h={};function O(n){return n.getIsPending!==void 0}function _(n){if(O(n))return n;let l=!0,r=n.then(t=>(l=!1,t),t=>{throw l=!1,t});return r.getIsPending=function(){return l},r}function A(n){let l={};const r=n.attributes;if(!r)return l;for(let t=r.length-1;t>=0;t--)l[r[t].name]=r[t].value;return l}function D(n){return Object.keys(n).reduce((l,r)=>(n[r]!==!1&&n[r]!==null&&n[r]!==void 0&&(l[r]=n[r]),l),{})}function V(n,l){const{class:r,style:t,...d}=A(n),{class:p,style:o,...m}=D(l);return{class:[r,p],style:[t,o],...d,...m}}const F=M({inheritAttrs:!1,__name:"InlineSvg",props:{src:{},title:{default:void 0},transformSource:{type:Function,default:n=>n},keepDuringLoading:{type:Boolean,default:!0},uniqueIds:{type:[Boolean,String],default:!1},uniqueIdsBase:{default:""}},emits:["loaded","unloaded","error"],setup(n,{expose:l,emit:r}){const t=n,d=r,p=P(),o=x(),m=x(),w=x(),I=Math.random().toString(36).substring(2);l({svgElSource:o,request:w}),$(()=>t.src,e=>{y(e)}),y(t.src);function k(e){if(e=e.cloneNode(!0),t.uniqueIds){const u=typeof t.uniqueIds=="string"?t.uniqueIds:I;e=B(e,u,t.uniqueIdsBase)}return e=t.transformSource(e),t.title&&q(e,t.title),e.innerHTML}function y(e){h[e]||(h[e]=E(e)),o.value&&h[e].getIsPending()&&!t.keepDuringLoading&&(o.value=null,d("unloaded")),h[e].then(u=>{o.value=u,N(()=>{d("loaded",m.value)})}).catch(u=>{o.value&&(o.value=void 0,d("unloaded")),delete h[e],d("error",u)})}function E(e){return _(new Promise((u,a)=>{const s=new XMLHttpRequest;s.open("GET",e,!0),w.value=s,s.onload=()=>{if(s.status>=200&&s.status<400)try{let v=new DOMParser().parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];v?u(v):a(new Error('Loaded file is not valid SVG"'))}catch(v){a(v)}else a(new Error("Error loading SVG"))},s.onerror=a,s.send()}))}const S=()=>o.value?H("svg",{...V(o.value,p),innerHTML:k(o.value),ref:m}):null;function q(e,u){const a=e.getElementsByTagName("title");if(a.length)a[0].textContent=u;else{const s=document.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=u,e.insertBefore(s,e.firstChild)}}function B(e,u,a=""){const s=["id","href","xlink:href","xlink:role","xlink:arcrole"],v=["href","xlink:href"],T=(c,g)=>v.includes(c)&&(g?!g.includes("#"):!1);return[...e.children].forEach(c=>{var g;if((g=c.attributes)!=null&&g.length){const b=Object.values(c.attributes).map(f=>{const i=/url\((.*?)\)/.exec(f.value);return i!=null&&i[1]&&(f.value=f.value.replace(i[0],`url(${a}${i[1]}_${u})`)),f});s.forEach(f=>{const i=b.find(L=>L.name===f);i&&!T(f,i.value)&&(i.value=`${i.value}_${u}`)})}return c.children.length?B(c,u,a):c}),e}return(e,u)=>(G(),C(S))}});export{F as R};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as z,
|
|
1
|
+
import{i as z,z as ot,B as Ve,h as W,s as st,b as it,k as N,a3 as qe,a5 as le,r as ct,w as at,n as lt}from"./@vue.BxBKarQv.0.0.65.js";/*!
|
|
2
2
|
* vue-router v4.5.1
|
|
3
3
|
* (c) 2025 Eduardo San Martin Morote
|
|
4
4
|
* @license MIT
|