camera.ui3 0.0.34-alpha.4 → 0.0.34-alpha.6
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/dist/interface/{@tanstack.B8dQBg4b.0.0.34-alpha.4.js → @tanstack.COISQUaa.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{@vee-validate.Cd0PG5JL.0.0.34-alpha.4.js → @vee-validate.vQEQxxhx.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{@vue.38WdTUyF.0.0.34-alpha.4.js → @vue.2olsU3zX.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{@vueform.BxOaa1cs.0.0.34-alpha.4.js → @vueform.CPzo51Ad.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{@vueuse.C5t4Wg1V.0.0.34-alpha.4.js → @vueuse.D9NHhWYc.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Account.CPGH5peU.0.0.34-alpha.4.js → Account.C8tdLL9c.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Adminpanel.BvJD6oTF.0.0.34-alpha.4.js → Adminpanel.CCt65nrb.0.0.34-alpha.6.js} +2 -2
- package/dist/interface/{Appearance.CkfZ61d-.0.0.34-alpha.4.js → Appearance.HvJsFiT3.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Backup.Dwm2c8Zl.0.0.34-alpha.4.js → Backup.CSkOoG27.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Camera.DkSEtuiE.0.0.34-alpha.4.js → Camera.CpRZjMgc.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Cameras.gBiSkHZR.0.0.34-alpha.4.js → Cameras.DjwMkoT7.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Camview.BMJhrSd5.0.0.34-alpha.4.js → Camview.o4nbp_Qw.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Config.BgGP3KXS.0.0.34-alpha.4.js → Config.CQCi3KNu.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Console.BI7LpwWP.0.0.34-alpha.4.js → Console.Dkyww3wB.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{FirstSteps.t2f8qntP.0.0.34-alpha.4.js → FirstSteps.Bmr0_gA-.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{NewCamera.CPuV5WYE.0.0.34-alpha.4.js → NewCamera.Bs1_J7Ad.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Plugin.D7P_QWc3.0.0.34-alpha.4.js → Plugin.C8Vz5xoF.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{Plugins.C6K3ZMlK.0.0.34-alpha.4.js → Plugins.CZL0KQFh.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/Recordings.B6pZqLF3.0.0.34-alpha.6.js +1 -0
- package/dist/interface/Recordings.BEvZE5cV.0.0.34-alpha.6.js +1 -0
- package/dist/interface/{Settings.OXavxlbC.0.0.34-alpha.4.js → Settings.C997IgdZ.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{System.D9SRKA5j.0.0.34-alpha.4.js → System.DuQ37voG.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{User.B0spV3S0.0.0.34-alpha.4.js → User.DlMcGeNz.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{VConfigEditor.vue_vue_type_script_setup_true_lang.D80ZnF-I.0.0.34-alpha.4.js → VConfigEditor.vue_vue_type_script_setup_true_lang.xZXGs5pk.0.0.34-alpha.6.js} +2 -2
- package/dist/interface/{VConsole.DRD2SXa_.0.0.34-alpha.4.js → VConsole.DNiPpzW6.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{VPlayer.DUNwZEpc.0.0.34-alpha.4.js → VPlayer.CUKkadJU.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{VPluginCard.IEOR5CmC.0.0.34-alpha.4.js → VPluginCard.B7M71ABH.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{ace-builds.DMzidMtr.0.0.34-alpha.4.js → ace-builds.DndaCQ18.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{apexcharts.C1dQ5zIU.0.0.34-alpha.4.js → apexcharts.6HWN1GNB.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/assets/{VPlayer.0.0.34-alpha.4.Dd4uebkL.css → VPlayer.0.0.34-alpha.6.DNtDNhfg.css} +1 -1
- package/dist/interface/{dnd-core.C9ORME3x.0.0.34-alpha.4.js → dnd-core.DjhjiPK9.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{draggabilly.BMe74e1L.0.0.34-alpha.4.js → draggabilly.CzAcRWAL.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{engine.io-client.CEf8giGf.0.0.34-alpha.4.js → engine.io-client.CMjMz_QZ.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{ev-emitter.ugXzzJzv.0.0.34-alpha.4.js → ev-emitter.DdBIoR-C.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{fast-deep-equal.U25fXdCW.0.0.34-alpha.4.js → fast-deep-equal.BPvnHGwn.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{highlight.js.CQUP85me.0.0.34-alpha.4.js → highlight.js.D0GppvQT.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/index.html +32 -32
- package/dist/interface/{linkify-it.DpT9Ry-Z.0.0.34-alpha.4.js → linkify-it.BnwKCzGP.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{main.2HASoNLf.0.0.34-alpha.4.js → main.CjELdG9A.0.0.34-alpha.6.js} +3 -3
- package/dist/interface/{markdown-it.DgB-lbou.0.0.34-alpha.4.js → markdown-it.BmdsAkr5.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{nprogress.BqUgJKe9.0.0.34-alpha.4.js → nprogress.CO0HPuzU.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{pinia.Dye_uuQS.0.0.34-alpha.4.js → pinia.CBIup3aH.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{plugins.DrzRqqj1.0.0.34-alpha.4.js → plugins.DkVCVMms.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{qrcode.DpdrUpsD.0.0.34-alpha.4.js → qrcode.BgXQ059Y.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{react-dnd-touch-backend.DVO3PHHX.0.0.34-alpha.4.js → react-dnd-touch-backend.CuSdTpqi.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{rxjs.pmJBk3Sg.0.0.34-alpha.4.js → rxjs.DKQuv6LI.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{socket.io-client.CDWOo7bs.0.0.34-alpha.4.js → socket.io-client.Ba2QhaSK.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{socket.io-parser.nV5rgBGd.0.0.34-alpha.4.js → socket.io-parser.CT0tlhnF.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/sw.js +1 -1
- package/dist/interface/{system.XI0ySjhp.0.0.34-alpha.4.js → system.DBHlJaL3.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{unidragger.Cj4g6i_z.0.0.34-alpha.4.js → unidragger.bJ3WxeD3.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vee-validate.BbFAArYk.0.0.34-alpha.4.js → vee-validate.CghN0yPF.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vue-i18n.BhYwipWO.0.0.34-alpha.4.js → vue-i18n.DvwV0jjJ.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vue-inline-svg.KV3n1JVk.0.0.34-alpha.4.js → vue-inline-svg.DXN-QH0U.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vue-router.DDrhhYTH.0.0.34-alpha.4.js → vue-router.DbntwPAd.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vue3-apexcharts.Cd9x19mq.0.0.34-alpha.4.js → vue3-apexcharts.Ep6IiXnK.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vue3-dnd.ax_m5eGZ.0.0.34-alpha.4.js → vue3-dnd._duUsn6W.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vue3-toastify.Q4LBRehM.0.0.34-alpha.4.js → vue3-toastify.B0t5Ra1T.0.0.34-alpha.6.js} +1 -1
- package/dist/interface/{vuetify.CWmFhFZT.0.0.34-alpha.4.js → vuetify.dlIDGkOi.0.0.34-alpha.6.js} +1 -1
- package/dist/server/package.json +1 -1
- package/dist/server/src/api/schemas/cameras.schema.d.ts +26 -26
- package/dist/server/src/api/schemas/config.schema.d.ts +6 -6
- package/dist/server/src/api/schemas/go2rtc.schema.d.ts +121 -121
- package/dist/server/src/services/config/constants.d.ts +1 -1
- package/dist/server/src/services/config/constants.js +3 -1
- package/dist/server/src/services/config/constants.js.map +1 -1
- package/dist/server/src/services/config/index.d.ts +1 -0
- package/dist/server/src/services/config/index.js +6 -4
- package/dist/server/src/services/config/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/interface/Recordings.Bj1-XgFE.0.0.34-alpha.4.js +0 -1
- package/dist/interface/Recordings.BkxTcfvY.0.0.34-alpha.4.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.34-alpha.4.js → @babel.l0sNRNKZ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{@intlify.DXtFJcML.0.0.34-alpha.4.js → @intlify.DXtFJcML.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{@mdi.C1UTQKuc.0.0.34-alpha.4.js → @mdi.C1UTQKuc.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.34-alpha.4.js → @react-dnd.CcwRs9xb.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.34-alpha.4.js → @socket.io.Dkula2eQ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{@turf.l0sNRNKZ.0.0.34-alpha.4.js → @turf.l0sNRNKZ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{@xterm.dNDqC2Qx.0.0.34-alpha.4.js → @xterm.DqCFPTCA.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.34-alpha.4.CroAHJs8.css → @vueform.0.0.34-alpha.6.CroAHJs8.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.34-alpha.4.CFbL2ovg.css → @xterm.0.0.34-alpha.6.CFbL2ovg.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.34-alpha.4.J7oAjogS.css → Account.0.0.34-alpha.6.J7oAjogS.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.34-alpha.4.a3t1v3MB.css → Adminpanel.0.0.34-alpha.6.a3t1v3MB.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.34-alpha.4.CX0rT0QJ.css → Backup.0.0.34-alpha.6.CX0rT0QJ.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.34-alpha.4.D1I-fW4q.css → Camera.0.0.34-alpha.6.D1I-fW4q.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.34-alpha.4.Buf1Dgce.css → Cameras.0.0.34-alpha.6.Buf1Dgce.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.34-alpha.4.B7Cja2ry.css → Camview.0.0.34-alpha.6.B7Cja2ry.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.34-alpha.4.DNGo2krN.css → Config.0.0.34-alpha.6.DNGo2krN.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.34-alpha.4.Bh8l9QnM.css → Console.0.0.34-alpha.6.Bh8l9QnM.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.34-alpha.4.sPEcItZ6.css → FirstSteps.0.0.34-alpha.6.sPEcItZ6.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.34-alpha.4.Cq8GzeJ7.css → NewCamera.0.0.34-alpha.6.Cq8GzeJ7.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.34-alpha.4.DJbgaQc1.css → Plugin.0.0.34-alpha.6.DJbgaQc1.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.34-alpha.4.DXSoO9M1.css → Plugins.0.0.34-alpha.6.DXSoO9M1.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.34-alpha.4.CVmui2kE.css → Settings.0.0.34-alpha.6.CVmui2kE.css} +0 -0
- /package/dist/interface/assets/{User.0.0.34-alpha.4.BiGtIFqt.css → User.0.0.34-alpha.6.BiGtIFqt.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.34-alpha.4.BCqKHpmJ.css → VConsole.0.0.34-alpha.6.BCqKHpmJ.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.34-alpha.4.C8Lj6X-J.css → VPluginCard.0.0.34-alpha.6.C8Lj6X-J.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.34-alpha.4.Ch2EwETz.css → highlight.0.0.34-alpha.6.Ch2EwETz.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.34-alpha.4.BCQk9H1-.png → logo-256.0.0.34-alpha.6.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.34-alpha.4.DLKVOU2S.png → logo-512.0.0.34-alpha.6.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.34-alpha.4.DmEiRk0z.png → logo.0.0.34-alpha.6.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.34-alpha.4.DNhh__S1.css → main.0.0.34-alpha.6.DNhh__S1.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.34-alpha.4.Br7xisR1.js → mode-json.0.0.34-alpha.6.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.34-alpha.4.CIYL8U3d.js → mode-yaml.0.0.34-alpha.6.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.34-alpha.4.DHXAGmwn.css → vue3-toastify.0.0.34-alpha.6.DHXAGmwn.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.34-alpha.4.CgGsw6iO.css → vuetify.0.0.34-alpha.6.CgGsw6iO.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.34-alpha.4.js → axios.C-n2IhIP.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{birpc.l0sNRNKZ.0.0.34-alpha.4.js → birpc.l0sNRNKZ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.34-alpha.4.js → compare-versions.DqEOhma6.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.34-alpha.4.js → dijkstrajs.D_NXgYpA.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.34-alpha.4.js → engine.io-parser.BiEtp6m2.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.34-alpha.4.js → entities.C20TfXL6.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.34-alpha.4.js → get-size.D1dS-IaP.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{hookable.B8xFkYCm.0.0.34-alpha.4.js → hookable.B8xFkYCm.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.34-alpha.4.js → mdurl.k9Sl0PQj.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{perfect-debounce.Cp2ysxOb.0.0.34-alpha.4.js → perfect-debounce.Cp2ysxOb.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.4.js → point-in-polygon-hao.l0sNRNKZ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.34-alpha.4.js → punycode.js.Dj65hjkv.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.4.js → react-dnd-html5-backend.1HQjlkwI.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.34-alpha.4.js → redux.CuxFRhX_.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{sweepline-intersections.l0sNRNKZ.0.0.34-alpha.4.js → sweepline-intersections.l0sNRNKZ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.34-alpha.4.js → tslib.9k7AwCpt.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{types.Cz9TaZAP.0.0.34-alpha.4.js → types.Cz9TaZAP.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.34-alpha.4.js → uc.micro.kMc2yuuw.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{utils.mAKpSMLY.0.0.34-alpha.4.js → utils.mAKpSMLY.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.34-alpha.4.js → uuid.DvF23Exx.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.34-alpha.4.js → vue.l0sNRNKZ.0.0.34-alpha.6.js} +0 -0
- /package/dist/interface/{zod.DnW1_kUe.0.0.34-alpha.4.js → zod.DnW1_kUe.0.0.34-alpha.6.js} +0 -0
package/dist/interface/{vue3-dnd.ax_m5eGZ.0.0.34-alpha.4.js → vue3-dnd._duUsn6W.0.0.34-alpha.6.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as R}from"./dnd-core.C9ORME3x.0.0.34-alpha.4.js";import{N as E,a as x,G as N,P as j,i as U,u as o,c as l,F as f,r as F,E as V}from"./@vue.38WdTUyF.0.0.34-alpha.4.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.34-alpha.4.js";import{e as P}from"./fast-deep-equal.U25fXdCW.0.0.34-alpha.4.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){E(M,t)}function Y(){return x(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function G(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return G(t)||L(t,r)||z(t,r)||B()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function X(t){return"manager"in t&&t.manager}function J(t){if(X(t)){var r=t.manager;return[r,!1]}var e=K(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function K(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=N({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(J(r),2),a=i[0],u=i[1];u&&++S,j(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function Q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){Q(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function Ne(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function je(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ne(n,r),je(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Ge(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(t,r){return Ye(t)||Ge(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Be(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Xe(){var t=d();return l(function(){return new te(o(t))})}function Je(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Ke(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Xe(),n=Je(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ke(n,r)]}export{rt as D,nt as a,it as u};
|
|
1
|
+
import{c as R}from"./dnd-core.DjhjiPK9.0.0.34-alpha.6.js";import{N as E,a as x,G as N,P as j,i as U,u as o,c as l,F as f,r as F,E as V}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";import{i as g,s as C}from"./@react-dnd.CcwRs9xb.0.0.34-alpha.6.js";import{e as P}from"./fast-deep-equal.BPvnHGwn.0.0.34-alpha.6.js";function b(t,r,e){return Array.isArray(t)?(t.length=Math.max(t.length,r),t.splice(r,1,e),e):(t[r]=e,e)}var M=Symbol.for("DndContextType");function W(t){E(M,t)}function Y(){return x(M)}function T(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function G(t){if(Array.isArray(t))return t}function L(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(t,r){return G(t)||L(t,r)||z(t,r)||B()}function z(t,r){if(t){if(typeof t=="string")return T(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return T(t,r)}}var S=0,p=Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");function X(t){return"manager"in t&&t.manager}function J(t){if(X(t)){var r=t.manager;return[r,!1]}var e=K(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}function K(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A(),e=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=r;return i[p]||(i[p]=R(t,r,e,n)),i[p]}function A(){return typeof globalThis<"u"?globalThis:typeof global<"u"?global:window}const rt=N({name:"DndProvider",props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(r,e){var n=e.slots,i=q(J(r),2),a=i[0],u=i[1];u&&++S,j(function(){if(u){var s=A();--S===0&&(s[p]=null)}}),W(a);var c;return function(){var s;return(c=(s=n.default)===null||s===void 0?void 0:s.call(n))!==null&&c!==void 0?c:null}}});function Q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var D=!1,y=!1,Z=function(){function t(e){Q(this,t),this.sourceId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.sourceId=n},r.getHandlerId=function(){return this.sourceId},r.canDrag=function(){g(!D,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return D=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{D=!1}},r.isDragging=function(){if(!this.sourceId)return!1;g(!y,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return y=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{y=!1}},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.isDraggingSource=function(n){return this.internalMonitor.isDraggingSource(n)},r.isOverTarget=function(n,i){return this.internalMonitor.isOverTarget(n,i)},r.getTargetIds=function(){return this.internalMonitor.getTargetIds()},r.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},r.getSourceId=function(){return this.internalMonitor.getSourceId()},r.subscribeToOffsetChange=function(n){return this.internalMonitor.subscribeToOffsetChange(n)},r.canDragSource=function(n){return this.internalMonitor.canDragSource(n)},r.canDropOnTarget=function(n){return this.internalMonitor.canDropOnTarget(n)},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}();function ee(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var m=!1,te=function(){function t(e){ee(this,t),this.targetId=null,this.internalMonitor=e.getMonitor()}var r=t.prototype;return r.receiveHandlerId=function(n){this.targetId=n},r.getHandlerId=function(){return this.targetId},r.subscribeToStateChange=function(n,i){return this.internalMonitor.subscribeToStateChange(n,i)},r.canDrop=function(){if(!this.targetId)return!1;g(!m,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return m=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{m=!1}},r.isOver=function(n){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,n):!1},r.getItemType=function(){return this.internalMonitor.getItemType()},r.getItem=function(){return this.internalMonitor.getItem()},r.getDropResult=function(){return this.internalMonitor.getDropResult()},r.didDrop=function(){return this.internalMonitor.didDrop()},r.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},r.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},r.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},r.getClientOffset=function(){return this.internalMonitor.getClientOffset()},r.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},t}(),re=function(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t};function ne(t){return t?t.__v_isVNode===!0:!1}function ie(t){return t?t.__v_skip:!1}function oe(t){return ne(t)&&re(t.type)!=="symbol"}function ae(){throw new Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.")}function ue(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(ie(r)&&ae(),!oe(r)){var n=r;return t(n,e),n}}}function k(t){var r={};return Object.keys(t).forEach(function(e){var n=t[e];if(e.endsWith("Ref"))r[e]=t[e];else{var i=ue(n);r[e]=function(){return i}}}),r}function ce(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function se(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function le(t,r,e){return r&&se(t.prototype,r),t}var fe=function(){function t(e){var n=this;ce(this,t),this.hooks=k({dragSource:function(i,a){n.clearDragSource(),n.dragSourceOptions=a||null,n.dragSourceNode=i,n.reconnectDragSource()},dragPreview:function(i,a){n.clearDragPreview(),n.dragPreviewOptions=a||null,n.dragPreviewNode=i,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=e}var r=t.prototype;return r.receiveHandlerId=function(n){this.handlerId!==n&&(this.handlerId=n,this.reconnect())},r.reconnect=function(){var n=this.reconnectDragSource();this.reconnectDragPreview(n)},r.reconnectDragSource=function(){var n=this.dragSource,i=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return i&&this.disconnectDragSource(),this.handlerId?n?(i&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=n,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,n,this.dragSourceOptions)),i):(this.lastConnectedDragSource=n,i):i},r.reconnectDragPreview=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=this.dragPreview,a=n||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(a&&this.disconnectDragPreview(),!!this.handlerId){if(!i){this.lastConnectedDragPreview=i;return}a&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=i,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,i,this.dragPreviewOptions))}},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},r.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},r.didDragSourceOptionsChange=function(){return!C(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},r.didDragPreviewOptionsChange=function(){return!C(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},r.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},r.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},r.clearDragSource=function(){this.dragSourceNode=null},r.clearDragPreview=function(){this.dragPreviewNode=null},le(t,[{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(n){this.dragSourceOptionsInternal=n}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(n){this.dragPreviewOptionsInternal=n}},{key:"dragSource",get:function(){return this.dragSourceNode}},{key:"dragPreview",get:function(){return this.dragPreviewNode}}]),t}();function ge(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function de(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function he(t,r,e){return r&&de(t.prototype,r),t}var pe=function(){function t(e){var n=this;ge(this,t),this.hooks=k({dropTarget:function(i,a){n.clearDropTarget(),n.dropTargetOptions=a,U(i)?n.dropTargetRef=i:n.dropTargetNode=i,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=e}var r=t.prototype;return r.reconnect=function(){var n=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();n&&this.disconnectDropTarget();var i=this.dropTarget;if(this.handlerId){if(!i){this.lastConnectedDropTarget=i;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=i,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,i,this.dropTargetOptions))}},r.receiveHandlerId=function(n){n!==this.handlerId&&(this.handlerId=n,this.reconnect())},r.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},r.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},r.didOptionsChange=function(){return!C(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},r.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},r.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},he(t,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(n){this.dropTargetOptionsInternal=n}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),t}();function ve(t,r,e){var n=o(e).getRegistry(),i=n.addTarget(o(t),o(r));return[i,function(){return n.removeTarget(i)}]}function De(t,r,e){var n=e.getRegistry(),i=n.addSource(t,r);return[i,function(){return n.removeSource(i)}]}function ye(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var me=function(){function t(e,n,i){ye(this,t),this.spec=e,this.monitor=n,this.connector=i}var r=t.prototype;return r.beginDrag=function(){var n=this.spec,i=this.monitor,a=null;return typeof n.item=="object"?a=n.item:typeof n.item=="function"?a=n.item(i):a={},a??null},r.canDrag=function(){var n=this.spec,i=this.monitor;return typeof n.canDrag=="boolean"?n.canDrag:typeof n.canDrag=="function"?n.canDrag(i):!0},r.isDragging=function(n,i){var a=this.spec,u=this.monitor,c=a.isDragging;return c?c(u):i===n.getSourceId()},r.endDrag=function(){var n=this.spec,i=this.monitor,a=this.connector,u=n.end;u&&u(i.getItem(),i),a.reconnect()},t}();function Ce(t,r,e){var n=l(function(){return new me(o(t),o(r),o(e))});return f(function(){n.value.spec=o(t)}),n}function d(){var t=Y();return g(t!=null,"Expected drag drop context"),t}function Ie(t){return l(function(){var r=o(t).type;return g(r!=null,"spec.type must be defined"),r})}function O(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function be(t){if(Array.isArray(t))return t}function Te(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Se(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Oe(t,r){return be(t)||Te(t,r)||we(t,r)||Se()}function we(t,r){if(t){if(typeof t=="string")return O(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return O(t,r)}}function _e(t,r,e){var n=d(),i=Ce(t,r,e),a=Ie(t);f(function(c){if(o(a)!=null){var s=Oe(De(o(a),o(i),o(n)),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)}})}function H(t){return l(function(){return typeof t=="function"?t():t})}function Pe(){var t=d();return l(function(){return new Z(o(t))})}function Me(t,r){var e=d(),n=l(function(){return new fe(o(e).getBackend())});return f(function(i){n.value.dragSourceOptions=o(t)||null,o(n).reconnect(),i(function(){n.value.disconnectDragSource()})}),f(function(i){n.value.dragPreviewOptions=o(r)||null,o(n).reconnect(),i(function(){n.value.disconnectDragPreview()})}),n}function Ae(t,r,e){var n=F(o(r)(o(t))),i=function(){var a=o(r)(o(t));P(n.value,a)||(n.value=a,e&&e())};return f(i),[n,i]}function w(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function ke(t){if(Array.isArray(t))return t}function He(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function $e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Re(t,r){return ke(t)||He(t,r)||Ee(t,r)||$e()}function Ee(t,r){if(t){if(typeof t=="string")return w(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return w(t,r)}}function xe(t,r,e){var n=Re(Ae(t,r,e),2),i=n[0],a=n[1];return f(function(c){var s=o(t).getHandlerId();s!=null&&c(o(t).subscribeToStateChange(a,{handlerIds:[s]}))}),i}function $(t,r,e){var n=function(){return{}};return xe(r,t||n,function(){return o(e).reconnect()})}function I(t,r){var e=V({el:null,options:o(r)});f(function(){t(e)},{flush:"post"});var n=function(i,a){b(e,"el",i);var u=o(r)||a;return P(e.options,u)||b(e,"options",u),o(i)};return n}function Ne(t,r){return I(function(e){o(t).hooks.dragSource()(e.el,e.options)},l(function(){return o(r).options}))}function je(t,r){return I(function(e){o(t).hooks.dragPreview()(e.el,e.options)},l(function(){return o(r).previewOptions}))}function nt(t){var r=H(t),e=Pe(),n=Me(l(function(){return o(r).options}),l(function(){return o(r).previewOptions}));return _e(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ne(n,r),je(n,r)]}function Ue(t){return l(function(){var r=o(t).accept;return g(r!=null,"accept must be defined"),Array.isArray(r)?r:[r]})}function Fe(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var Ve=function(){function t(e,n){Fe(this,t),this.spec=e,this.monitor=n}var r=t.prototype;return r.canDrop=function(){var n=this.spec,i=this.monitor;return n.canDrop?n.canDrop(i.getItem(),i):!0},r.hover=function(){var n=this.spec,i=this.monitor;n.hover&&n.hover(i.getItem(),i)},r.drop=function(){var n=this.spec,i=this.monitor;if(n.drop)return n.drop(i.getItem(),i)},t}();function We(t,r){var e=l(function(){return new Ve(o(t),o(r))});return f(function(){e.value.spec=o(t)}),e}function _(t,r){(r==null||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}function Ye(t){if(Array.isArray(t))return t}function Ge(t,r){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n=[],i=!0,a=!1,u,c;try{for(e=e.call(t);!(i=(u=e.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(s){a=!0,c=s}finally{try{!i&&e.return!=null&&e.return()}finally{if(a)throw c}}return n}}function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Be(t,r){return Ye(t)||Ge(t,r)||qe(t,r)||Le()}function qe(t,r){if(t){if(typeof t=="string")return _(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);if(e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set")return Array.from(e);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _(t,r)}}function ze(t,r,e){var n=d(),i=We(t,r),a=Ue(t);f(function(c){var s=Be(ve(a,i,n),2),h=s[0],v=s[1];o(r).receiveHandlerId(h),o(e).receiveHandlerId(h),c(v)})}function Xe(){var t=d();return l(function(){return new te(o(t))})}function Je(t){var r=d(),e=l(function(){return new pe(o(r).getBackend())});return f(function(n){e.value.dropTargetOptions=o(t)||null,e.value.reconnect(),n(function(){return e.value.disconnectDropTarget()})}),e}function Ke(t,r){return I(function(e){o(t).hooks.dropTarget()(e.el,e.options)},l(function(){return o(r).options}))}function it(t){var r=H(t),e=Xe(),n=Je(l(function(){return o(r).options}));return ze(r,e,n),[$(l(function(){return o(r).collect||function(){return{}}}),e,n),Ke(n,r)]}export{rt as D,nt as a,it as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as F,G as W,R as u,n as at,J as T,m as b,U as ut,V as Tt,c as f,x as dt,P as ct,Q as _t,r as $,L as H,F as z,W as At}from"./@vue.38WdTUyF.0.0.34-alpha.4.js";const x={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},m={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ht={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},pt={dangerouslyHTMLString:!1,multiple:!0,position:x.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Nt={rtl:!1,newestOnTop:!1,toastClassName:""},ft={...pt,...Nt};({...pt,type:m.DEFAULT});var s=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(s||{}),Z=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Z||{});const It={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Lt={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Ot={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},bt={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},rt="Toastify--animate Toastify__none-enter";function mt(t,e=!1){var n;let o=It;if(!t||typeof t=="string")switch(t){case"flip":o=bt;break;case"zoom":o=Ot;break;case"slide":o=Lt;break}else o=t;if(e)o.enter=rt;else if(o.enter===rt){const i=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${i}-enter`}return o}function Pt(t){return t.containerId||String(t.position)}const J="will-unmount";function qt(t=x.TOP_RIGHT){return!!document.querySelector(`.${s.CSS_NAMESPACE}__toast-container--${t}`)}function $t(t=x.TOP_RIGHT){return`${s.CSS_NAMESPACE}__toast-container--${t}`}function Bt(t,e,n=!1){const o=[`${s.CSS_NAMESPACE}__toast-container`,`${s.CSS_NAMESPACE}__toast-container--${t}`,n?`${s.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return B(e)?e({position:t,rtl:n,defaultClassName:o}):`${o} ${e||""}`}function Mt(t){var e;const{position:n,containerClassName:o,rtl:i=!1,style:a={}}=t,c=s.CSS_NAMESPACE,g=$t(n),l=document.querySelector(`.${c}`),S=document.querySelector(`.${g}`),y=!!S&&!((e=S.className)!=null&&e.includes(J)),A=l||document.createElement("div"),p=document.createElement("div");p.className=Bt(n,o,i),p.dataset.testid=`${s.CSS_NAMESPACE}__toast-container--${n}`,p.id=Pt(t);for(const C in a)if(Object.prototype.hasOwnProperty.call(a,C)){const h=a[C];p.style[C]=h}return l||(A.className=s.CSS_NAMESPACE,document.body.appendChild(A)),y||A.appendChild(p),p}function tt(t){var e,n,o;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",tt,!1);try{k[i].unmount(),(o=document.getElementById(i))==null||o.remove(),delete k[i],delete d[i]}catch{}}const k=F({});function wt(t,e){const n=document.getElementById(String(e));n&&(k[n.id]=t)}function et(t,e=!0){const n=String(t);if(!k[n])return;const o=document.getElementById(n);o&&o.classList.add(J),e?(Rt(t),o&&o.addEventListener("animationend",tt,!1)):tt(n),_.items=_.items.filter(i=>i.containerId!==t)}function Ft(t){for(const e in k)et(e,t);_.items=[]}function vt(t,e){const n=document.getElementById(t.toastId);if(n){let o=t;o={...o,...mt(o.transition)};const i=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${i}`,e&&e(n)}}function Rt(t){for(const e in d)if(e===t)for(const n of d[e]||[])vt(n)}function Ut(t){const e=w().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function st(t){return document.getElementById(t)}function Dt(t){const e=st(t.containerId);return e&&e.classList.contains(J)}function lt(t){var e;const n=ut(t.content)?T(t.content.props):null;return n??T((e=t.data)!=null?e:{})}function kt(t){return t?_.items.filter(e=>e.containerId===t).length>0:_.items.length>0}function xt(){if(_.items.length>0){const t=_.items.shift();j(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const d=F({}),_=F({items:[]});function w(){const t=T(d);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function Ht(t){return w().find(e=>e.toastId===t)}function j(t,e={}){if(Dt(e)){const n=st(e.containerId);n&&n.addEventListener("animationend",nt.bind(null,t,e),!1)}else nt(t,e)}function nt(t,e={}){const n=st(e.containerId);n&&n.removeEventListener("animationend",nt.bind(null,t,e),!1);const o=d[e.containerId]||[],i=o.length>0;if(!i&&!qt(e.position)){const a=Mt(e),c=Tt(re,e);c.mount(a),wt(c,a.id)}i&&!e.updateId&&(e.position=o[0].position),at(()=>{e.updateId?v.update(e):v.add(t,e)})}const v={add(t,e){const{containerId:n=""}=e;n&&(d[n]=d[n]||[],d[n].find(o=>o.toastId===e.toastId)||setTimeout(()=>{var o,i;e.newestOnTop?(o=d[n])==null||o.unshift(e):(i=d[n])==null||i.push(e),e.onOpen&&e.onOpen(lt(e))},e.delay||0))},remove(t){if(t){const e=Ut(t);if(e){const n=d[e];let o=n.find(i=>i.toastId===t);d[e]=n.filter(i=>i.toastId!==t),!d[e].length&&!kt(e)&&et(e,!1),xt(),at(()=>{o!=null&&o.onClose&&(o.onClose(lt(o)),o=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){d[e]=d[e]||[];const n=d[e].find(a=>a.toastId===t.toastId),o=(n==null?void 0:n.position)!==t.position||(n==null?void 0:n.transition)!==t.transition,i={...t,disabledEnterTransition:!o,updateId:void 0};v.dismissForce(t==null?void 0:t.toastId),setTimeout(()=>{r(i.content,i)},t.delay||0)}},clear(t,e=!0){t?et(t,e):Ft(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",v.dismissCallback,!1),setTimeout(()=>{v.remove(n)}))},dismiss(t){if(t){const e=w();for(const n of e)if(n.toastId===t){vt(n,o=>{o.addEventListener("animationend",v.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=w();for(const n of e)if(n.toastId===t){const o=document.getElementById(t);o&&(o.remove(),o.removeEventListener("animationend",v.dismissCallback,!1),v.remove(t));break}}}},yt=F({}),K=F({});function Et(){return Math.random().toString(36).substring(2,9)}function zt(t){return typeof t=="number"&&!isNaN(t)}function ot(t){return typeof t=="string"}function B(t){return typeof t=="function"}function Q(...t){return b(...t)}function G(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function jt(t={}){yt[`${s.CSS_NAMESPACE}-default-options`]=t}function Gt(){return yt[`${s.CSS_NAMESPACE}-default-options`]||ft}function Vt(){return document.documentElement.classList.contains("dark")?"dark":"light"}var V=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(V||{});const gt={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:x.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:M.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:m.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},Kt={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:m.DEFAULT},theme:{type:String,required:!1,default:M.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Wt=W({name:"ProgressBar",props:Kt,setup(t,{attrs:e}){const n=$(),o=f(()=>t.hide?"true":"false"),i=f(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=f(()=>[`${s.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${s.CSS_NAMESPACE}__progress-bar--controlled`:`${s.CSS_NAMESPACE}__progress-bar--animated`,`${s.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${s.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),c=f(()=>`${a.value} ${(e==null?void 0:e.class)||""}`),g=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),g())},S=f(()=>t.controlledProgress?null:l),y=f(()=>t.controlledProgress?l:null);return z(()=>{n.value&&(g(),n.value.onanimationend=S.value,n.value.ontransitionend=y.value)}),()=>u("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:c.value,style:i.value},null)}}),Jt=W({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:M.AUTO},type:{type:String,required:!1,default:M.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u("button",{class:`${s.CSS_NAMESPACE}__close-button ${s.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),X=({theme:t,type:e,path:n,...o})=>u("svg",b({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},o),[u("path",{d:n},null)]);function Qt(t){return u(X,b(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Xt(t){return u(X,b(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function Yt(t){return u(X,b(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Zt(t){return u(X,b(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function te(){return u("div",{class:`${s.CSS_NAMESPACE}__spinner`},null)}const it={info:Xt,warning:Qt,success:Yt,error:Zt,spinner:te},ee=t=>t in it;function ne({theme:t,type:e,isLoading:n,icon:o}){let i;const a={theme:t,type:e};return n?i=it.spinner():o===!1?i=void 0:G(o)?i=T(o):B(o)?i=o(a):ut(o)?i=At(o,a):ot(o)||zt(o)?i=o:ee(e)&&(i=it[e](a)),i}const oe=()=>{};function ie(t,e,n=s.COLLAPSE_DURATION){const{scrollHeight:o,style:i}=t,a=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function ae(t){const e=$(!1),n=$(!1),o=$(!1),i=$(V.Enter),a=F({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||s.COLLAPSE_DURATION}),c=a.done||oe,g=f(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=f(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),S=f(()=>t.pauseOnHover?{onMouseenter:I,onMouseleave:N}:{});function y(){const E=g.value.split(" ");p().addEventListener(Z.ENTRANCE_ANIMATION_END,N,{once:!0});const L=q=>{const U=p();q.target===U&&(U.dispatchEvent(new Event(Z.ENTRANCE_ANIMATION_END)),U.removeEventListener("animationend",L),U.removeEventListener("animationcancel",L),i.value===V.Enter&&q.type!=="animationcancel"&&U.classList.remove(...E))},O=()=>{const q=p();q.classList.add(...E),q.addEventListener("animationend",L),q.addEventListener("animationcancel",L)};t.pauseOnFocusLoss&&C(),O()}function A(){if(!p())return;const E=()=>{const O=p();O.removeEventListener("animationend",E),a.collapse?ie(O,c,a.collapseDuration):c()},L=()=>{const O=p();i.value=V.Exit,O&&(O.className+=` ${l.value}`,O.addEventListener("animationend",E))};n.value||(o.value?E():setTimeout(L))}function p(){return t.toastRef.value}function C(){document.hasFocus()||I(),window.addEventListener("focus",N),window.addEventListener("blur",I)}function h(){window.removeEventListener("focus",N),window.removeEventListener("blur",I)}function N(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function I(){e.value=!1}function R(E){E&&(E.stopPropagation(),E.preventDefault()),n.value=!1}return z(A),z(()=>{const E=w();n.value=E.findIndex(L=>L.toastId===a.toastId)>-1}),z(()=>{t.isLoading!==void 0&&(t.loading.value?I():N())}),dt(y),ct(()=>{t.pauseOnFocusLoss&&h()}),{isIn:n,isRunning:e,hideToast:R,eventHandlers:S}}const se=W({name:"ToastItem",inheritAttrs:!1,props:gt,setup(t){const e=$(),n=f(()=>!!t.isLoading),o=f(()=>t.progress!==void 0&&t.progress!==null),i=f(()=>ne(t)),a=f(()=>[`${s.CSS_NAMESPACE}__toast`,`${s.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${s.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:c,isIn:g,hideToast:l,eventHandlers:S}=ae({toastRef:e,loading:n,done:()=>{v.remove(t.toastId)},...mt(t.transition,t.disabledEnterTransition),...t});return()=>u("div",b({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:y=>{t.closeOnClick&&l(),t.onClick&&t.onClick(y)}},S.value),[u("div",{role:t.role,"data-testid":"toast-body",class:`${s.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u("div",{"data-testid":`toast-icon-${t.type}`,class:[`${s.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${s.CSS_NAMESPACE}--animate-icon ${s.CSS_NAMESPACE}__zoom-enter`].join(" ")},[G(i.value)?H(T(i.value),{theme:t.theme,type:t.type}):B(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),u("div",{"data-testid":"toast-content"},[G(t.content)?H(T(t.content),{toastProps:T(t),closeToast:l,data:t.data}):B(t.content)?t.content({toastProps:T(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?H("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u(Jt,{theme:t.theme,closeToast:y=>{y.stopPropagation(),y.preventDefault(),l()}},null),G(t.closeButton)?H(T(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):B(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u(Wt,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:g.value,type:t.type,hide:t.hideProgressBar,isRunning:c.value,autoClose:t.autoClose,controlledProgress:o.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let D=0;function St(){typeof window>"u"||(D&&window.cancelAnimationFrame(D),D=window.requestAnimationFrame(St),K.lastUrl!==window.location.href&&(K.lastUrl=window.location.href,v.clear()))}const re=W({name:"ToastifyContainer",inheritAttrs:!1,props:gt,setup(t){const e=f(()=>t.containerId),n=f(()=>d[e.value]||[]),o=f(()=>n.value.filter(i=>i.position===t.position));return dt(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(St)}),ct(()=>{typeof window<"u"&&D&&(window.cancelAnimationFrame(D),K.lastUrl="")}),()=>u(_t,null,[o.value.map(i=>{const{toastId:a=""}=i;return u(se,b({key:a},i),null)})])}});let Y=!1;function Ct(){const t=[];return w().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(J)&&t.push(e)}),t}function le(t){const e=Ct().length,n=t??0;return n>0&&e+_.items.length>=n}function ue(t){le(t.limit)&&!t.updateId&&_.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function P(t,e,n={}){if(Y)return;n=Q(Gt(),{type:e},T(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Et()),n={...n,content:t,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Vt()),ue(n),K.lastUrl=window.location.href,n.multiple?_.items.length?n.updateId&&j(t,n):j(t,n):(Y=!0,r.clearAll(void 0,!1),setTimeout(()=>{j(t,n)},0),setTimeout(()=>{Y=!1},390)),n.toastId}const r=(t,e)=>P(t,m.DEFAULT,e);r.info=(t,e)=>P(t,m.DEFAULT,{...e,type:m.INFO});r.error=(t,e)=>P(t,m.DEFAULT,{...e,type:m.ERROR});r.warning=(t,e)=>P(t,m.DEFAULT,{...e,type:m.WARNING});r.warn=r.warning;r.success=(t,e)=>P(t,m.DEFAULT,{...e,type:m.SUCCESS});r.loading=(t,e)=>P(t,m.DEFAULT,Q(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));r.dark=(t,e)=>P(t,m.DEFAULT,Q(e,{theme:M.DARK}));r.remove=t=>{t?v.dismiss(t):v.clear()};r.clearAll=(t,e)=>{at(()=>{v.clear(t,e)})};r.isActive=t=>{let e=!1;return e=Ct().findIndex(n=>n.toastId===t)>-1,e};r.update=(t,e={})=>{setTimeout(()=>{const n=Ht(t);if(n){const o=T(n),{content:i}=o,a={...o,...e,toastId:e.toastId||t,updateId:Et()},c=a.render||i;delete a.render,P(c,a.type,a)}},0)};r.done=t=>{r.update(t,{isLoading:!1,progress:1})};r.promise=de;function de(t,{pending:e,error:n,success:o},i){var a,c,g;let l;const S={...i||{},autoClose:!1};e&&(l=ot(e)?r.loading(e,S):r.loading(e.render,{...S,...e}));const y={autoClose:(a=i==null?void 0:i.autoClose)!=null?a:!0,closeOnClick:(c=i==null?void 0:i.closeOnClick)!=null?c:!0,closeButton:(g=i==null?void 0:i.autoClose)!=null?g:null,isLoading:void 0,draggable:null,delay:100},A=(C,h,N)=>{if(h==null){r.remove(l);return}const I={type:C,...y,...i,data:N},R=ot(h)?{render:h}:h;return l?r.update(l,{...I,...R,isLoading:!1}):r(R.render,{...I,...R,isLoading:!1}),N},p=B(t)?t():t;return p.then(C=>{A("success",o,C)}).catch(C=>{A("error",n,C)}),p}r.POSITION=x;r.THEME=M;r.TYPE=m;r.TRANSITIONS=ht;const ce={install(t,e={}){pe(e)}};typeof window<"u"&&(window.Vue3Toastify=ce);function pe(t={}){const e=Q(ft,t);jt(e)}export{ce as c,pe as f,r as i};
|
|
1
|
+
import{E as F,G as W,R as u,n as at,J as T,m as b,U as ut,V as Tt,c as f,x as dt,P as ct,Q as _t,r as $,L as H,F as z,W as At}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";const x={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},M={LIGHT:"light",DARK:"dark",COLORED:"colored",AUTO:"auto"},m={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},ht={BOUNCE:"bounce",SLIDE:"slide",FLIP:"flip",ZOOM:"zoom",NONE:"none"},pt={dangerouslyHTMLString:!1,multiple:!0,position:x.TOP_RIGHT,autoClose:5e3,transition:"bounce",hideProgressBar:!1,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,className:"",bodyClassName:"",style:{},progressClassName:"",progressStyle:{},role:"alert",theme:"light"},Nt={rtl:!1,newestOnTop:!1,toastClassName:""},ft={...pt,...Nt};({...pt,type:m.DEFAULT});var s=(t=>(t[t.COLLAPSE_DURATION=300]="COLLAPSE_DURATION",t[t.DEBOUNCE_DURATION=50]="DEBOUNCE_DURATION",t.CSS_NAMESPACE="Toastify",t))(s||{}),Z=(t=>(t.ENTRANCE_ANIMATION_END="d",t))(Z||{});const It={enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0},Lt={enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0},Ot={enter:"Toastify--animate Toastify__zoom-enter",exit:"Toastify--animate Toastify__zoom-exit"},bt={enter:"Toastify--animate Toastify__flip-enter",exit:"Toastify--animate Toastify__flip-exit"},rt="Toastify--animate Toastify__none-enter";function mt(t,e=!1){var n;let o=It;if(!t||typeof t=="string")switch(t){case"flip":o=bt;break;case"zoom":o=Ot;break;case"slide":o=Lt;break}else o=t;if(e)o.enter=rt;else if(o.enter===rt){const i=(n=o.exit.split("__")[1])==null?void 0:n.split("-")[0];o.enter=`Toastify--animate Toastify__${i}-enter`}return o}function Pt(t){return t.containerId||String(t.position)}const J="will-unmount";function qt(t=x.TOP_RIGHT){return!!document.querySelector(`.${s.CSS_NAMESPACE}__toast-container--${t}`)}function $t(t=x.TOP_RIGHT){return`${s.CSS_NAMESPACE}__toast-container--${t}`}function Bt(t,e,n=!1){const o=[`${s.CSS_NAMESPACE}__toast-container`,`${s.CSS_NAMESPACE}__toast-container--${t}`,n?`${s.CSS_NAMESPACE}__toast-container--rtl`:null].filter(Boolean).join(" ");return B(e)?e({position:t,rtl:n,defaultClassName:o}):`${o} ${e||""}`}function Mt(t){var e;const{position:n,containerClassName:o,rtl:i=!1,style:a={}}=t,c=s.CSS_NAMESPACE,g=$t(n),l=document.querySelector(`.${c}`),S=document.querySelector(`.${g}`),y=!!S&&!((e=S.className)!=null&&e.includes(J)),A=l||document.createElement("div"),p=document.createElement("div");p.className=Bt(n,o,i),p.dataset.testid=`${s.CSS_NAMESPACE}__toast-container--${n}`,p.id=Pt(t);for(const C in a)if(Object.prototype.hasOwnProperty.call(a,C)){const h=a[C];p.style[C]=h}return l||(A.className=s.CSS_NAMESPACE,document.body.appendChild(A)),y||A.appendChild(p),p}function tt(t){var e,n,o;const i=typeof t=="string"?t:((e=t.currentTarget)==null?void 0:e.id)||((n=t.target)==null?void 0:n.id),a=document.getElementById(i);a&&a.removeEventListener("animationend",tt,!1);try{k[i].unmount(),(o=document.getElementById(i))==null||o.remove(),delete k[i],delete d[i]}catch{}}const k=F({});function wt(t,e){const n=document.getElementById(String(e));n&&(k[n.id]=t)}function et(t,e=!0){const n=String(t);if(!k[n])return;const o=document.getElementById(n);o&&o.classList.add(J),e?(Rt(t),o&&o.addEventListener("animationend",tt,!1)):tt(n),_.items=_.items.filter(i=>i.containerId!==t)}function Ft(t){for(const e in k)et(e,t);_.items=[]}function vt(t,e){const n=document.getElementById(t.toastId);if(n){let o=t;o={...o,...mt(o.transition)};const i=o.appendPosition?`${o.exit}--${o.position}`:o.exit;n.className+=` ${i}`,e&&e(n)}}function Rt(t){for(const e in d)if(e===t)for(const n of d[e]||[])vt(n)}function Ut(t){const e=w().find(n=>n.toastId===t);return e==null?void 0:e.containerId}function st(t){return document.getElementById(t)}function Dt(t){const e=st(t.containerId);return e&&e.classList.contains(J)}function lt(t){var e;const n=ut(t.content)?T(t.content.props):null;return n??T((e=t.data)!=null?e:{})}function kt(t){return t?_.items.filter(e=>e.containerId===t).length>0:_.items.length>0}function xt(){if(_.items.length>0){const t=_.items.shift();j(t==null?void 0:t.toastContent,t==null?void 0:t.toastProps)}}const d=F({}),_=F({items:[]});function w(){const t=T(d);return Object.values(t).reduce((e,n)=>[...e,...n],[])}function Ht(t){return w().find(e=>e.toastId===t)}function j(t,e={}){if(Dt(e)){const n=st(e.containerId);n&&n.addEventListener("animationend",nt.bind(null,t,e),!1)}else nt(t,e)}function nt(t,e={}){const n=st(e.containerId);n&&n.removeEventListener("animationend",nt.bind(null,t,e),!1);const o=d[e.containerId]||[],i=o.length>0;if(!i&&!qt(e.position)){const a=Mt(e),c=Tt(re,e);c.mount(a),wt(c,a.id)}i&&!e.updateId&&(e.position=o[0].position),at(()=>{e.updateId?v.update(e):v.add(t,e)})}const v={add(t,e){const{containerId:n=""}=e;n&&(d[n]=d[n]||[],d[n].find(o=>o.toastId===e.toastId)||setTimeout(()=>{var o,i;e.newestOnTop?(o=d[n])==null||o.unshift(e):(i=d[n])==null||i.push(e),e.onOpen&&e.onOpen(lt(e))},e.delay||0))},remove(t){if(t){const e=Ut(t);if(e){const n=d[e];let o=n.find(i=>i.toastId===t);d[e]=n.filter(i=>i.toastId!==t),!d[e].length&&!kt(e)&&et(e,!1),xt(),at(()=>{o!=null&&o.onClose&&(o.onClose(lt(o)),o=void 0)})}}},update(t={}){const{containerId:e=""}=t;if(e&&t.updateId){d[e]=d[e]||[];const n=d[e].find(a=>a.toastId===t.toastId),o=(n==null?void 0:n.position)!==t.position||(n==null?void 0:n.transition)!==t.transition,i={...t,disabledEnterTransition:!o,updateId:void 0};v.dismissForce(t==null?void 0:t.toastId),setTimeout(()=>{r(i.content,i)},t.delay||0)}},clear(t,e=!0){t?et(t,e):Ft(e)},dismissCallback(t){var e;const n=(e=t.currentTarget)==null?void 0:e.id,o=document.getElementById(n);o&&(o.removeEventListener("animationend",v.dismissCallback,!1),setTimeout(()=>{v.remove(n)}))},dismiss(t){if(t){const e=w();for(const n of e)if(n.toastId===t){vt(n,o=>{o.addEventListener("animationend",v.dismissCallback,!1)});break}}},dismissForce(t){if(t){const e=w();for(const n of e)if(n.toastId===t){const o=document.getElementById(t);o&&(o.remove(),o.removeEventListener("animationend",v.dismissCallback,!1),v.remove(t));break}}}},yt=F({}),K=F({});function Et(){return Math.random().toString(36).substring(2,9)}function zt(t){return typeof t=="number"&&!isNaN(t)}function ot(t){return typeof t=="string"}function B(t){return typeof t=="function"}function Q(...t){return b(...t)}function G(t){return typeof t=="object"&&(!!(t!=null&&t.render)||!!(t!=null&&t.setup)||typeof(t==null?void 0:t.type)=="object")}function jt(t={}){yt[`${s.CSS_NAMESPACE}-default-options`]=t}function Gt(){return yt[`${s.CSS_NAMESPACE}-default-options`]||ft}function Vt(){return document.documentElement.classList.contains("dark")?"dark":"light"}var V=(t=>(t[t.Enter=0]="Enter",t[t.Exit=1]="Exit",t))(V||{});const gt={containerId:{type:[String,Number],required:!1,default:""},clearOnUrlChange:{type:Boolean,required:!1,default:!0},disabledEnterTransition:{type:Boolean,required:!1,default:!1},dangerouslyHTMLString:{type:Boolean,required:!1,default:!1},multiple:{type:Boolean,required:!1,default:!0},limit:{type:Number,required:!1,default:void 0},position:{type:String,required:!1,default:x.TOP_LEFT},bodyClassName:{type:String,required:!1,default:""},autoClose:{type:[Number,Boolean],required:!1,default:!1},closeButton:{type:[Boolean,Function,Object],required:!1,default:void 0},transition:{type:[String,Object],required:!1,default:"bounce"},hideProgressBar:{type:Boolean,required:!1,default:!1},pauseOnHover:{type:Boolean,required:!1,default:!0},pauseOnFocusLoss:{type:Boolean,required:!1,default:!0},closeOnClick:{type:Boolean,required:!1,default:!0},progress:{type:Number,required:!1,default:void 0},progressClassName:{type:String,required:!1,default:""},toastStyle:{type:Object,required:!1,default(){return{}}},progressStyle:{type:Object,required:!1,default(){return{}}},role:{type:String,required:!1,default:"alert"},theme:{type:String,required:!1,default:M.AUTO},content:{type:[String,Object,Function],required:!1,default:""},toastId:{type:[String,Number],required:!1,default:""},data:{type:[Object,String],required:!1,default(){return{}}},type:{type:String,required:!1,default:m.DEFAULT},icon:{type:[Boolean,String,Number,Object,Function],required:!1,default:void 0},delay:{type:Number,required:!1,default:void 0},onOpen:{type:Function,required:!1,default:void 0},onClose:{type:Function,required:!1,default:void 0},onClick:{type:Function,required:!1,default:void 0},isLoading:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},toastClassName:{type:String,required:!1,default:""},updateId:{type:[String,Number],required:!1,default:""}},Kt={autoClose:{type:[Number,Boolean],required:!0},isRunning:{type:Boolean,required:!1,default:void 0},type:{type:String,required:!1,default:m.DEFAULT},theme:{type:String,required:!1,default:M.AUTO},hide:{type:Boolean,required:!1,default:void 0},className:{type:[String,Function],required:!1,default:""},controlledProgress:{type:Boolean,required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:void 0},isIn:{type:Boolean,required:!1,default:void 0},progress:{type:Number,required:!1,default:void 0},closeToast:{type:Function,required:!1,default:void 0}},Wt=W({name:"ProgressBar",props:Kt,setup(t,{attrs:e}){const n=$(),o=f(()=>t.hide?"true":"false"),i=f(()=>({...e.style||{},animationDuration:`${t.autoClose===!0?5e3:t.autoClose}ms`,animationPlayState:t.isRunning?"running":"paused",opacity:t.hide||t.autoClose===!1?0:1,transform:t.controlledProgress?`scaleX(${t.progress})`:"none"})),a=f(()=>[`${s.CSS_NAMESPACE}__progress-bar`,t.controlledProgress?`${s.CSS_NAMESPACE}__progress-bar--controlled`:`${s.CSS_NAMESPACE}__progress-bar--animated`,`${s.CSS_NAMESPACE}__progress-bar-theme--${t.theme}`,`${s.CSS_NAMESPACE}__progress-bar--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__progress-bar--rtl`:null].filter(Boolean).join(" ")),c=f(()=>`${a.value} ${(e==null?void 0:e.class)||""}`),g=()=>{n.value&&(n.value.onanimationend=null,n.value.ontransitionend=null)},l=()=>{t.isIn&&t.closeToast&&t.autoClose!==!1&&(t.closeToast(),g())},S=f(()=>t.controlledProgress?null:l),y=f(()=>t.controlledProgress?l:null);return z(()=>{n.value&&(g(),n.value.onanimationend=S.value,n.value.ontransitionend=y.value)}),()=>u("div",{ref:n,role:"progressbar","aria-hidden":o.value,"aria-label":"notification timer",class:c.value,style:i.value},null)}}),Jt=W({name:"CloseButton",inheritAttrs:!1,props:{theme:{type:String,required:!1,default:M.AUTO},type:{type:String,required:!1,default:M.LIGHT},ariaLabel:{type:String,required:!1,default:"close"},closeToast:{type:Function,required:!1,default:void 0}},setup(t){return()=>u("button",{class:`${s.CSS_NAMESPACE}__close-button ${s.CSS_NAMESPACE}__close-button--${t.theme}`,type:"button",onClick:e=>{e.stopPropagation(),t.closeToast&&t.closeToast(e)},"aria-label":t.ariaLabel},[u("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},[u("path",{"fill-rule":"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"},null)])])}}),X=({theme:t,type:e,path:n,...o})=>u("svg",b({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${e})`},o),[u("path",{d:n},null)]);function Qt(t){return u(X,b(t,{path:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}),null)}function Xt(t){return u(X,b(t,{path:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}),null)}function Yt(t){return u(X,b(t,{path:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}),null)}function Zt(t){return u(X,b(t,{path:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}),null)}function te(){return u("div",{class:`${s.CSS_NAMESPACE}__spinner`},null)}const it={info:Xt,warning:Qt,success:Yt,error:Zt,spinner:te},ee=t=>t in it;function ne({theme:t,type:e,isLoading:n,icon:o}){let i;const a={theme:t,type:e};return n?i=it.spinner():o===!1?i=void 0:G(o)?i=T(o):B(o)?i=o(a):ut(o)?i=At(o,a):ot(o)||zt(o)?i=o:ee(e)&&(i=it[e](a)),i}const oe=()=>{};function ie(t,e,n=s.COLLAPSE_DURATION){const{scrollHeight:o,style:i}=t,a=n;requestAnimationFrame(()=>{i.minHeight="initial",i.height=o+"px",i.transition=`all ${a}ms`,requestAnimationFrame(()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(e,a)})})}function ae(t){const e=$(!1),n=$(!1),o=$(!1),i=$(V.Enter),a=F({...t,appendPosition:t.appendPosition||!1,collapse:typeof t.collapse>"u"?!0:t.collapse,collapseDuration:t.collapseDuration||s.COLLAPSE_DURATION}),c=a.done||oe,g=f(()=>a.appendPosition?`${a.enter}--${a.position}`:a.enter),l=f(()=>a.appendPosition?`${a.exit}--${a.position}`:a.exit),S=f(()=>t.pauseOnHover?{onMouseenter:I,onMouseleave:N}:{});function y(){const E=g.value.split(" ");p().addEventListener(Z.ENTRANCE_ANIMATION_END,N,{once:!0});const L=q=>{const U=p();q.target===U&&(U.dispatchEvent(new Event(Z.ENTRANCE_ANIMATION_END)),U.removeEventListener("animationend",L),U.removeEventListener("animationcancel",L),i.value===V.Enter&&q.type!=="animationcancel"&&U.classList.remove(...E))},O=()=>{const q=p();q.classList.add(...E),q.addEventListener("animationend",L),q.addEventListener("animationcancel",L)};t.pauseOnFocusLoss&&C(),O()}function A(){if(!p())return;const E=()=>{const O=p();O.removeEventListener("animationend",E),a.collapse?ie(O,c,a.collapseDuration):c()},L=()=>{const O=p();i.value=V.Exit,O&&(O.className+=` ${l.value}`,O.addEventListener("animationend",E))};n.value||(o.value?E():setTimeout(L))}function p(){return t.toastRef.value}function C(){document.hasFocus()||I(),window.addEventListener("focus",N),window.addEventListener("blur",I)}function h(){window.removeEventListener("focus",N),window.removeEventListener("blur",I)}function N(){(!t.loading.value||t.isLoading===void 0)&&(e.value=!0)}function I(){e.value=!1}function R(E){E&&(E.stopPropagation(),E.preventDefault()),n.value=!1}return z(A),z(()=>{const E=w();n.value=E.findIndex(L=>L.toastId===a.toastId)>-1}),z(()=>{t.isLoading!==void 0&&(t.loading.value?I():N())}),dt(y),ct(()=>{t.pauseOnFocusLoss&&h()}),{isIn:n,isRunning:e,hideToast:R,eventHandlers:S}}const se=W({name:"ToastItem",inheritAttrs:!1,props:gt,setup(t){const e=$(),n=f(()=>!!t.isLoading),o=f(()=>t.progress!==void 0&&t.progress!==null),i=f(()=>ne(t)),a=f(()=>[`${s.CSS_NAMESPACE}__toast`,`${s.CSS_NAMESPACE}__toast-theme--${t.theme}`,`${s.CSS_NAMESPACE}__toast--${t.type}`,t.rtl?`${s.CSS_NAMESPACE}__toast--rtl`:void 0,t.toastClassName||""].filter(Boolean).join(" ")),{isRunning:c,isIn:g,hideToast:l,eventHandlers:S}=ae({toastRef:e,loading:n,done:()=>{v.remove(t.toastId)},...mt(t.transition,t.disabledEnterTransition),...t});return()=>u("div",b({id:t.toastId,class:a.value,style:t.toastStyle||{},ref:e,"data-testid":`toast-item-${t.toastId}`,onClick:y=>{t.closeOnClick&&l(),t.onClick&&t.onClick(y)}},S.value),[u("div",{role:t.role,"data-testid":"toast-body",class:`${s.CSS_NAMESPACE}__toast-body ${t.bodyClassName||""}`},[i.value!=null&&u("div",{"data-testid":`toast-icon-${t.type}`,class:[`${s.CSS_NAMESPACE}__toast-icon`,t.isLoading?"":`${s.CSS_NAMESPACE}--animate-icon ${s.CSS_NAMESPACE}__zoom-enter`].join(" ")},[G(i.value)?H(T(i.value),{theme:t.theme,type:t.type}):B(i.value)?i.value({theme:t.theme,type:t.type}):i.value]),u("div",{"data-testid":"toast-content"},[G(t.content)?H(T(t.content),{toastProps:T(t),closeToast:l,data:t.data}):B(t.content)?t.content({toastProps:T(t),closeToast:l,data:t.data}):t.dangerouslyHTMLString?H("div",{innerHTML:t.content}):t.content])]),(t.closeButton===void 0||t.closeButton===!0)&&u(Jt,{theme:t.theme,closeToast:y=>{y.stopPropagation(),y.preventDefault(),l()}},null),G(t.closeButton)?H(T(t.closeButton),{closeToast:l,type:t.type,theme:t.theme}):B(t.closeButton)?t.closeButton({closeToast:l,type:t.type,theme:t.theme}):null,u(Wt,{className:t.progressClassName,style:t.progressStyle,rtl:t.rtl,theme:t.theme,isIn:g.value,type:t.type,hide:t.hideProgressBar,isRunning:c.value,autoClose:t.autoClose,controlledProgress:o.value,progress:t.progress,closeToast:t.isLoading?void 0:l},null)])}});let D=0;function St(){typeof window>"u"||(D&&window.cancelAnimationFrame(D),D=window.requestAnimationFrame(St),K.lastUrl!==window.location.href&&(K.lastUrl=window.location.href,v.clear()))}const re=W({name:"ToastifyContainer",inheritAttrs:!1,props:gt,setup(t){const e=f(()=>t.containerId),n=f(()=>d[e.value]||[]),o=f(()=>n.value.filter(i=>i.position===t.position));return dt(()=>{typeof window<"u"&&t.clearOnUrlChange&&window.requestAnimationFrame(St)}),ct(()=>{typeof window<"u"&&D&&(window.cancelAnimationFrame(D),K.lastUrl="")}),()=>u(_t,null,[o.value.map(i=>{const{toastId:a=""}=i;return u(se,b({key:a},i),null)})])}});let Y=!1;function Ct(){const t=[];return w().forEach(e=>{const n=document.getElementById(e.containerId);n&&!n.classList.contains(J)&&t.push(e)}),t}function le(t){const e=Ct().length,n=t??0;return n>0&&e+_.items.length>=n}function ue(t){le(t.limit)&&!t.updateId&&_.items.push({toastId:t.toastId,containerId:t.containerId,toastContent:t.content,toastProps:t})}function P(t,e,n={}){if(Y)return;n=Q(Gt(),{type:e},T(n)),(!n.toastId||typeof n.toastId!="string"&&typeof n.toastId!="number")&&(n.toastId=Et()),n={...n,content:t,containerId:n.containerId||String(n.position)};const o=Number(n==null?void 0:n.progress);return o<0&&(n.progress=0),o>1&&(n.progress=1),n.theme==="auto"&&(n.theme=Vt()),ue(n),K.lastUrl=window.location.href,n.multiple?_.items.length?n.updateId&&j(t,n):j(t,n):(Y=!0,r.clearAll(void 0,!1),setTimeout(()=>{j(t,n)},0),setTimeout(()=>{Y=!1},390)),n.toastId}const r=(t,e)=>P(t,m.DEFAULT,e);r.info=(t,e)=>P(t,m.DEFAULT,{...e,type:m.INFO});r.error=(t,e)=>P(t,m.DEFAULT,{...e,type:m.ERROR});r.warning=(t,e)=>P(t,m.DEFAULT,{...e,type:m.WARNING});r.warn=r.warning;r.success=(t,e)=>P(t,m.DEFAULT,{...e,type:m.SUCCESS});r.loading=(t,e)=>P(t,m.DEFAULT,Q(e,{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1}));r.dark=(t,e)=>P(t,m.DEFAULT,Q(e,{theme:M.DARK}));r.remove=t=>{t?v.dismiss(t):v.clear()};r.clearAll=(t,e)=>{at(()=>{v.clear(t,e)})};r.isActive=t=>{let e=!1;return e=Ct().findIndex(n=>n.toastId===t)>-1,e};r.update=(t,e={})=>{setTimeout(()=>{const n=Ht(t);if(n){const o=T(n),{content:i}=o,a={...o,...e,toastId:e.toastId||t,updateId:Et()},c=a.render||i;delete a.render,P(c,a.type,a)}},0)};r.done=t=>{r.update(t,{isLoading:!1,progress:1})};r.promise=de;function de(t,{pending:e,error:n,success:o},i){var a,c,g;let l;const S={...i||{},autoClose:!1};e&&(l=ot(e)?r.loading(e,S):r.loading(e.render,{...S,...e}));const y={autoClose:(a=i==null?void 0:i.autoClose)!=null?a:!0,closeOnClick:(c=i==null?void 0:i.closeOnClick)!=null?c:!0,closeButton:(g=i==null?void 0:i.autoClose)!=null?g:null,isLoading:void 0,draggable:null,delay:100},A=(C,h,N)=>{if(h==null){r.remove(l);return}const I={type:C,...y,...i,data:N},R=ot(h)?{render:h}:h;return l?r.update(l,{...I,...R,isLoading:!1}):r(R.render,{...I,...R,isLoading:!1}),N},p=B(t)?t():t;return p.then(C=>{A("success",o,C)}).catch(C=>{A("error",n,C)}),p}r.POSITION=x;r.THEME=M;r.TYPE=m;r.TRANSITIONS=ht;const ce={install(t,e={}){pe(e)}};typeof window<"u"&&(window.Vue3Toastify=ce);function pe(t={}){const e=Q(ft,t);jt(e)}export{ce as c,pe as f,r as i};
|
package/dist/interface/{vuetify.CWmFhFZT.0.0.34-alpha.4.js → vuetify.dlIDGkOi.0.0.34-alpha.6.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as oe,U as pr,X as Ir,E as ot,c as b,F as Re,t as Dn,Y as ka,D as K,u as Ae,A as Lr,r as W,a as de,N as Se,G as Ar,Z as vi,L as $t,R as u,i as Bt,m as H,_ as Va,$ as kt,B as O,w as Y,S as mi,n as Ce,O as qe,e as ke,a0 as rt,v as tt,C as Pa,o as De,z as pa,J as we,x as Rt,a1 as Tr,T as _r,K as Er,H as Br,W as Dr,a2 as gi,a3 as Mr,a4 as Fr,a5 as Or,a6 as hi,a7 as xn,a8 as $r,p as ll,a9 as Rr}from"./@vue.38WdTUyF.0.0.34-alpha.4.js";function D(e,n){return t=>Object.keys(e).reduce((a,l)=>{const o=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return t&&l in t?a[l]={...o,default:t[l]}:a[l]=o,n&&!a[l].source&&(a[l].source=n),a},{})}const Q=D({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ce=typeof window<"u",Ia=ce&&"IntersectionObserver"in window,Nr=ce&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function yi(e,n,t){const a=n.length-1;if(a<0)return e===void 0?t:e;for(let l=0;l<a;l++){if(e==null)return t;e=e[n[l]]}return e==null||e[n[a]]===void 0?t:e[n[a]]}function mt(e,n){if(e===n)return!0;if(e instanceof Date&&n instanceof Date&&e.getTime()!==n.getTime()||e!==Object(e)||n!==Object(n))return!1;const t=Object.keys(e);return t.length!==Object.keys(n).length?!1:t.every(a=>mt(e[a],n[a]))}function Vt(e,n,t){return e==null||!n||typeof n!="string"?t:e[n]!==void 0?e[n]:(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),yi(e,n.split("."),t))}function _e(e,n,t){if(n===!0)return e===void 0?t:e;if(n==null||typeof n=="boolean")return t;if(e!==Object(e)){if(typeof n!="function")return t;const l=n(e,t);return typeof l>"u"?t:l}if(typeof n=="string")return Vt(e,n,t);if(Array.isArray(n))return yi(e,n,t);if(typeof n!="function")return t;const a=n(e,t);return typeof a>"u"?t:a}function _t(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(t,a)=>n+a)}function Z(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${n}`:void 0}function La(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function il(e){let n;return e!==null&&typeof e=="object"&&((n=Object.getPrototypeOf(e))===Object.prototype||n===null)}function bi(e){if(e&&"$el"in e){const n=e.$el;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n.nextElementSibling:n}return e}const ol=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),rl=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Si(e){return Object.keys(e)}function qn(e,n){return n.every(t=>e.hasOwnProperty(t))}function Aa(e,n){const t={},a=new Set(Object.keys(e));for(const l of n)a.has(l)&&(t[l]=e[l]);return t}function sa(e,n,t){const a=Object.create(null),l=Object.create(null);for(const i in e)n.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(t!=null&&t.some(o=>o===i))?a[i]=e[i]:l[i]=e[i];return[a,l]}function He(e,n){const t={...e};return n.forEach(a=>delete t[a]),t}function Hr(e,n){const t={};return n.forEach(a=>t[a]=e[a]),t}const Ci=/^on[^a-z]/,Mn=e=>Ci.test(e),zr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Wr=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function jr(e){return e.isComposing&&Wr.includes(e.key)}function Ta(e){const[n,t]=sa(e,[Ci]),a=He(n,zr),[l,i]=sa(t,["class","style","id",/^data-/]);return Object.assign(l,n),Object.assign(i,a),[l,i]}function Ve(e){return e==null?[]:Array.isArray(e)?e:[e]}function Gr(e,n){let t=0;const a=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e(...i),Ae(n))};return a.clear=()=>{clearTimeout(t)},a.immediate=e,a}function Ee(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(n,Math.min(t,e))}function sl(e){const n=e.toString().trim();return n.includes(".")?n.length-n.indexOf(".")-1:0}function ul(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+t.repeat(Math.max(0,n-e.length))}function cl(e,n){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,n-e.length))+e}function Ur(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const t=[];let a=0;for(;a<e.length;)t.push(e.substr(a,n)),a+=n;return t}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const a={};for(const l in e)a[l]=e[l];for(const l in n){const i=e[l],o=n[l];if(il(i)&&il(o)){a[l]=Le(i,o,t);continue}if(t&&Array.isArray(i)&&Array.isArray(o)){a[l]=t(i,o);continue}a[l]=o}return a}function xi(e){return e.map(n=>n.type===oe?xi(n.children):n).flat()}function xt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(xt.cache.has(e))return xt.cache.get(e);const n=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return xt.cache.set(e,n),n}xt.cache=new Map;function Kt(e,n){if(!n||typeof n!="object")return[];if(Array.isArray(n))return n.map(t=>Kt(e,t)).flat(1);if(n.suspense)return Kt(e,n.ssContent);if(Array.isArray(n.children))return n.children.map(t=>Kt(e,t)).flat(1);if(n.component){if(Object.getOwnPropertySymbols(n.component.provides).includes(e))return[n.component];if(n.component.subTree)return Kt(e,n.component.subTree).flat(1)}return[]}function _a(e){const n=ot({}),t=b(e);return Re(()=>{for(const a in t.value)n[a]=t.value[a]},{flush:"sync"}),Dn(n)}function wn(e,n){return e.includes(n)}function wi(e){return e[2].toLowerCase()+e.slice(3)}const Pe=()=>[Function,Array];function dl(e,n){return n="on"+ka(n),!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function Kr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(Array.isArray(e))for(const l of e)l(...t);else typeof e=="function"&&e(...t)}function Zt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${n?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function ki(e,n,t){let a,l=e.indexOf(document.activeElement);const i=n==="next"?1:-1;do l+=i,a=e[l];while((!a||a.offsetParent==null||!((t==null?void 0:t(a))??!0))&&l<e.length&&l>=0);return a}function Yt(e,n){var a,l,i,o;const t=Zt(e);if(!n)(e===document.activeElement||!e.contains(document.activeElement))&&((a=t[0])==null||a.focus());else if(n==="first")(l=t[0])==null||l.focus();else if(n==="last")(i=t.at(-1))==null||i.focus();else if(typeof n=="number")(o=t[n])==null||o.focus();else{const r=ki(t,n);r?r.focus():Yt(e,n==="next"?"first":"last")}}function vn(e){return e==null||typeof e=="string"&&e.trim()===""}function Yr(){}function kn(e,n){if(!(ce&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${n})`)))return null;try{return!!e&&e.matches(n)}catch{return null}}function Ea(e){return e.some(n=>pr(n)?n.type===Ir?!1:n.type!==oe||Ea(n.children):!0)?e:null}function Zr(e,n){if(!ce||e===0)return n(),()=>{};const t=window.setTimeout(n,e);return()=>window.clearTimeout(t)}function qr(e,n){const t=e.clientX,a=e.clientY,l=n.getBoundingClientRect(),i=l.left,o=l.top,r=l.right,s=l.bottom;return t>=i&&t<=r&&a>=o&&a<=s}function ua(){const e=K(),n=t=>{e.value=t};return Object.defineProperty(n,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(n,"el",{enumerable:!0,get:()=>bi(e.value)}),n}function ca(e){const n=e.key.length===1,t=!e.ctrlKey&&!e.metaKey&&!e.altKey;return n&&t}const Vi=["top","bottom"],Xr=["start","end","left","right"];function da(e,n){let[t,a]=e.split(" ");return a||(a=wn(Vi,t)?"start":wn(Xr,t)?"top":"center"),{side:fl(t,n),align:fl(a,n)}}function fl(e,n){return e==="start"?n?"right":"left":e==="end"?n?"left":"right":e}function Xn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Qn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function vl(e){return{side:e.align,align:e.side}}function ml(e){return wn(Vi,e.side)?"y":"x"}class wt{constructor(n){let{x:t,y:a,width:l,height:i}=n;this.x=t,this.y=a,this.width=l,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function gl(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function Pi(e){return Array.isArray(e)?new wt({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Ba(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),a=t.transform;if(a){let l,i,o,r,s;if(a.startsWith("matrix3d("))l=a.slice(9,-1).split(/, /),i=+l[0],o=+l[5],r=+l[12],s=+l[13];else if(a.startsWith("matrix("))l=a.slice(7,-1).split(/, /),i=+l[0],o=+l[3],r=+l[4],s=+l[5];else return new wt(n);const c=t.transformOrigin,d=n.x-r-(1-i)*parseFloat(c),v=n.y-s-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=i?n.width/i:e.offsetWidth+1,m=o?n.height/o:e.offsetHeight+1;return new wt({x:d,y:v,width:f,height:m})}else return new wt(n)}function Ct(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let a;try{a=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(l=>{a.onfinish=()=>{l(a)}})),a}const bn=new WeakMap;function Qr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);if(n[t]==null)l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))});else if(!l||![...l].some(i=>i[0]===a&&i[1]===n[t])){e.addEventListener(a,n[t]);const i=l||new Set;i.add([a,n[t]]),bn.has(e)||bn.set(e,i)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function Jr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))})}else e.removeAttribute(t)})}const At=2.4,hl=.2126729,yl=.7151522,bl=.072175,es=.55,ts=.58,ns=.57,as=.62,mn=.03,Sl=1.45,ls=5e-4,is=1.25,os=1.25,Cl=.078,xl=12.82051282051282,gn=.06,wl=.001;function kl(e,n){const t=(e.r/255)**At,a=(e.g/255)**At,l=(e.b/255)**At,i=(n.r/255)**At,o=(n.g/255)**At,r=(n.b/255)**At;let s=t*hl+a*yl+l*bl,c=i*hl+o*yl+r*bl;if(s<=mn&&(s+=(mn-s)**Sl),c<=mn&&(c+=(mn-c)**Sl),Math.abs(c-s)<ls)return 0;let d;if(c>s){const v=(c**es-s**ts)*is;d=v<wl?0:v<Cl?v-v*xl*gn:v-gn}else{const v=(c**as-s**ns)*os;d=v>-wl?0:v>-Cl?v-v*xl*gn:v+gn}return d*100}function rs(e,n){n=Array.isArray(n)?n.slice(0,-1).map(t=>`'${t}'`).join(", ")+` or '${n.at(-1)}'`:`'${n}'`}const Vn=.20689655172413793,ss=e=>e>Vn**3?Math.cbrt(e):e/(3*Vn**2)+4/29,us=e=>e>Vn?e**3:3*Vn**2*(e-4/29);function pi(e){const n=ss,t=n(e[1]);return[116*t-16,500*(n(e[0]/.95047)-t),200*(t-n(e[2]/1.08883))]}function Ii(e){const n=us,t=(e[0]+16)/116;return[n(t+e[1]/500)*.95047,n(t),n(t-e[2]/200)*1.08883]}const cs=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],ds=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,fs=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],vs=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Li(e){const n=Array(3),t=ds,a=cs;for(let l=0;l<3;++l)n[l]=Math.round(Ee(t(a[l][0]*e[0]+a[l][1]*e[1]+a[l][2]*e[2]))*255);return{r:n[0],g:n[1],b:n[2]}}function Da(e){let{r:n,g:t,b:a}=e;const l=[0,0,0],i=vs,o=fs;n=i(n/255),t=i(t/255),a=i(a/255);for(let r=0;r<3;++r)l[r]=o[r][0]*n+o[r][1]*t+o[r][2]*a;return l}function fa(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ms(e){return fa(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Vl=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,gs={rgb:(e,n,t,a)=>({r:e,g:n,b:t,a}),rgba:(e,n,t,a)=>({r:e,g:n,b:t,a}),hsl:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsla:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsv:(e,n,t,a)=>qt({h:e,s:n,v:t,a}),hsva:(e,n,t,a)=>qt({h:e,s:n,v:t,a})};function et(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Vl.test(e)){const{groups:n}=e.match(Vl),{fn:t,values:a}=n,l=a.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(t)?parseFloat(i)/100:parseFloat(i));return gs[t](...l)}else if(typeof e=="string"){let n=e.startsWith("#")?e.slice(1):e;return[3,4].includes(n.length)?n=n.split("").map(t=>t+t).join(""):[6,8].includes(n.length),ys(n)}else if(typeof e=="object"){if(qn(e,["r","g","b"]))return e;if(qn(e,["h","s","l"]))return qt(Ai(e));if(qn(e,["h","s","v"]))return qt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
1
|
+
import{Q as oe,U as pr,X as Ir,E as ot,c as b,F as Re,t as Dn,Y as ka,D as K,u as Ae,A as Lr,r as W,a as de,N as Se,G as Ar,Z as vi,L as $t,R as u,i as Bt,m as H,_ as Va,$ as kt,B as O,w as Y,S as mi,n as Ce,O as qe,e as ke,a0 as rt,v as tt,C as Pa,o as De,z as pa,J as we,x as Rt,a1 as Tr,T as _r,K as Er,H as Br,W as Dr,a2 as gi,a3 as Mr,a4 as Fr,a5 as Or,a6 as hi,a7 as xn,a8 as $r,p as ll,a9 as Rr}from"./@vue.2olsU3zX.0.0.34-alpha.6.js";function D(e,n){return t=>Object.keys(e).reduce((a,l)=>{const o=typeof e[l]=="object"&&e[l]!=null&&!Array.isArray(e[l])?e[l]:{type:e[l]};return t&&l in t?a[l]={...o,default:t[l]}:a[l]=o,n&&!a[l].source&&(a[l].source=n),a},{})}const Q=D({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component"),ce=typeof window<"u",Ia=ce&&"IntersectionObserver"in window,Nr=ce&&("ontouchstart"in window||window.navigator.maxTouchPoints>0);function yi(e,n,t){const a=n.length-1;if(a<0)return e===void 0?t:e;for(let l=0;l<a;l++){if(e==null)return t;e=e[n[l]]}return e==null||e[n[a]]===void 0?t:e[n[a]]}function mt(e,n){if(e===n)return!0;if(e instanceof Date&&n instanceof Date&&e.getTime()!==n.getTime()||e!==Object(e)||n!==Object(n))return!1;const t=Object.keys(e);return t.length!==Object.keys(n).length?!1:t.every(a=>mt(e[a],n[a]))}function Vt(e,n,t){return e==null||!n||typeof n!="string"?t:e[n]!==void 0?e[n]:(n=n.replace(/\[(\w+)\]/g,".$1"),n=n.replace(/^\./,""),yi(e,n.split("."),t))}function _e(e,n,t){if(n===!0)return e===void 0?t:e;if(n==null||typeof n=="boolean")return t;if(e!==Object(e)){if(typeof n!="function")return t;const l=n(e,t);return typeof l>"u"?t:l}if(typeof n=="string")return Vt(e,n,t);if(Array.isArray(n))return yi(e,n,t);if(typeof n!="function")return t;const a=n(e,t);return typeof a>"u"?t:a}function _t(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:e},(t,a)=>n+a)}function Z(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(!(e==null||e===""))return isNaN(+e)?String(e):isFinite(+e)?`${Number(e)}${n}`:void 0}function La(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function il(e){let n;return e!==null&&typeof e=="object"&&((n=Object.getPrototypeOf(e))===Object.prototype||n===null)}function bi(e){if(e&&"$el"in e){const n=e.$el;return(n==null?void 0:n.nodeType)===Node.TEXT_NODE?n.nextElementSibling:n}return e}const ol=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16}),rl=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Si(e){return Object.keys(e)}function qn(e,n){return n.every(t=>e.hasOwnProperty(t))}function Aa(e,n){const t={},a=new Set(Object.keys(e));for(const l of n)a.has(l)&&(t[l]=e[l]);return t}function sa(e,n,t){const a=Object.create(null),l=Object.create(null);for(const i in e)n.some(o=>o instanceof RegExp?o.test(i):o===i)&&!(t!=null&&t.some(o=>o===i))?a[i]=e[i]:l[i]=e[i];return[a,l]}function He(e,n){const t={...e};return n.forEach(a=>delete t[a]),t}function Hr(e,n){const t={};return n.forEach(a=>t[a]=e[a]),t}const Ci=/^on[^a-z]/,Mn=e=>Ci.test(e),zr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],Wr=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function jr(e){return e.isComposing&&Wr.includes(e.key)}function Ta(e){const[n,t]=sa(e,[Ci]),a=He(n,zr),[l,i]=sa(t,["class","style","id",/^data-/]);return Object.assign(l,n),Object.assign(i,a),[l,i]}function Ve(e){return e==null?[]:Array.isArray(e)?e:[e]}function Gr(e,n){let t=0;const a=function(){for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];clearTimeout(t),t=setTimeout(()=>e(...i),Ae(n))};return a.clear=()=>{clearTimeout(t)},a.immediate=e,a}function Ee(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(n,Math.min(t,e))}function sl(e){const n=e.toString().trim();return n.includes(".")?n.length-n.indexOf(".")-1:0}function ul(e,n){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return e+t.repeat(Math.max(0,n-e.length))}function cl(e,n){return(arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0").repeat(Math.max(0,n-e.length))+e}function Ur(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const t=[];let a=0;for(;a<e.length;)t.push(e.substr(a,n)),a+=n;return t}function Le(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0;const a={};for(const l in e)a[l]=e[l];for(const l in n){const i=e[l],o=n[l];if(il(i)&&il(o)){a[l]=Le(i,o,t);continue}if(t&&Array.isArray(i)&&Array.isArray(o)){a[l]=t(i,o);continue}a[l]=o}return a}function xi(e){return e.map(n=>n.type===oe?xi(n.children):n).flat()}function xt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(xt.cache.has(e))return xt.cache.get(e);const n=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return xt.cache.set(e,n),n}xt.cache=new Map;function Kt(e,n){if(!n||typeof n!="object")return[];if(Array.isArray(n))return n.map(t=>Kt(e,t)).flat(1);if(n.suspense)return Kt(e,n.ssContent);if(Array.isArray(n.children))return n.children.map(t=>Kt(e,t)).flat(1);if(n.component){if(Object.getOwnPropertySymbols(n.component.provides).includes(e))return[n.component];if(n.component.subTree)return Kt(e,n.component.subTree).flat(1)}return[]}function _a(e){const n=ot({}),t=b(e);return Re(()=>{for(const a in t.value)n[a]=t.value[a]},{flush:"sync"}),Dn(n)}function wn(e,n){return e.includes(n)}function wi(e){return e[2].toLowerCase()+e.slice(3)}const Pe=()=>[Function,Array];function dl(e,n){return n="on"+ka(n),!!(e[n]||e[`${n}Once`]||e[`${n}Capture`]||e[`${n}OnceCapture`]||e[`${n}CaptureOnce`])}function Kr(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),a=1;a<n;a++)t[a-1]=arguments[a];if(Array.isArray(e))for(const l of e)l(...t);else typeof e=="function"&&e(...t)}function Zt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const t=["button","[href]",'input:not([type="hidden"])',"select","textarea","[tabindex]"].map(a=>`${a}${n?':not([tabindex="-1"])':""}:not([disabled])`).join(", ");return[...e.querySelectorAll(t)]}function ki(e,n,t){let a,l=e.indexOf(document.activeElement);const i=n==="next"?1:-1;do l+=i,a=e[l];while((!a||a.offsetParent==null||!((t==null?void 0:t(a))??!0))&&l<e.length&&l>=0);return a}function Yt(e,n){var a,l,i,o;const t=Zt(e);if(!n)(e===document.activeElement||!e.contains(document.activeElement))&&((a=t[0])==null||a.focus());else if(n==="first")(l=t[0])==null||l.focus();else if(n==="last")(i=t.at(-1))==null||i.focus();else if(typeof n=="number")(o=t[n])==null||o.focus();else{const r=ki(t,n);r?r.focus():Yt(e,n==="next"?"first":"last")}}function vn(e){return e==null||typeof e=="string"&&e.trim()===""}function Yr(){}function kn(e,n){if(!(ce&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${n})`)))return null;try{return!!e&&e.matches(n)}catch{return null}}function Ea(e){return e.some(n=>pr(n)?n.type===Ir?!1:n.type!==oe||Ea(n.children):!0)?e:null}function Zr(e,n){if(!ce||e===0)return n(),()=>{};const t=window.setTimeout(n,e);return()=>window.clearTimeout(t)}function qr(e,n){const t=e.clientX,a=e.clientY,l=n.getBoundingClientRect(),i=l.left,o=l.top,r=l.right,s=l.bottom;return t>=i&&t<=r&&a>=o&&a<=s}function ua(){const e=K(),n=t=>{e.value=t};return Object.defineProperty(n,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(n,"el",{enumerable:!0,get:()=>bi(e.value)}),n}function ca(e){const n=e.key.length===1,t=!e.ctrlKey&&!e.metaKey&&!e.altKey;return n&&t}const Vi=["top","bottom"],Xr=["start","end","left","right"];function da(e,n){let[t,a]=e.split(" ");return a||(a=wn(Vi,t)?"start":wn(Xr,t)?"top":"center"),{side:fl(t,n),align:fl(a,n)}}function fl(e,n){return e==="start"?n?"right":"left":e==="end"?n?"left":"right":e}function Xn(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function Qn(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function vl(e){return{side:e.align,align:e.side}}function ml(e){return wn(Vi,e.side)?"y":"x"}class wt{constructor(n){let{x:t,y:a,width:l,height:i}=n;this.x=t,this.y=a,this.width=l,this.height=i}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function gl(e,n){return{x:{before:Math.max(0,n.left-e.left),after:Math.max(0,e.right-n.right)},y:{before:Math.max(0,n.top-e.top),after:Math.max(0,e.bottom-n.bottom)}}}function Pi(e){return Array.isArray(e)?new wt({x:e[0],y:e[1],width:0,height:0}):e.getBoundingClientRect()}function Ba(e){const n=e.getBoundingClientRect(),t=getComputedStyle(e),a=t.transform;if(a){let l,i,o,r,s;if(a.startsWith("matrix3d("))l=a.slice(9,-1).split(/, /),i=+l[0],o=+l[5],r=+l[12],s=+l[13];else if(a.startsWith("matrix("))l=a.slice(7,-1).split(/, /),i=+l[0],o=+l[3],r=+l[4],s=+l[5];else return new wt(n);const c=t.transformOrigin,d=n.x-r-(1-i)*parseFloat(c),v=n.y-s-(1-o)*parseFloat(c.slice(c.indexOf(" ")+1)),f=i?n.width/i:e.offsetWidth+1,m=o?n.height/o:e.offsetHeight+1;return new wt({x:d,y:v,width:f,height:m})}else return new wt(n)}function Ct(e,n,t){if(typeof e.animate>"u")return{finished:Promise.resolve()};let a;try{a=e.animate(n,t)}catch{return{finished:Promise.resolve()}}return typeof a.finished>"u"&&(a.finished=new Promise(l=>{a.onfinish=()=>{l(a)}})),a}const bn=new WeakMap;function Qr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);if(n[t]==null)l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))});else if(!l||![...l].some(i=>i[0]===a&&i[1]===n[t])){e.addEventListener(a,n[t]);const i=l||new Set;i.add([a,n[t]]),bn.has(e)||bn.set(e,i)}}else n[t]==null?e.removeAttribute(t):e.setAttribute(t,n[t])})}function Jr(e,n){Object.keys(n).forEach(t=>{if(Mn(t)){const a=wi(t),l=bn.get(e);l==null||l.forEach(i=>{const[o,r]=i;o===a&&(e.removeEventListener(a,r),l.delete(i))})}else e.removeAttribute(t)})}const At=2.4,hl=.2126729,yl=.7151522,bl=.072175,es=.55,ts=.58,ns=.57,as=.62,mn=.03,Sl=1.45,ls=5e-4,is=1.25,os=1.25,Cl=.078,xl=12.82051282051282,gn=.06,wl=.001;function kl(e,n){const t=(e.r/255)**At,a=(e.g/255)**At,l=(e.b/255)**At,i=(n.r/255)**At,o=(n.g/255)**At,r=(n.b/255)**At;let s=t*hl+a*yl+l*bl,c=i*hl+o*yl+r*bl;if(s<=mn&&(s+=(mn-s)**Sl),c<=mn&&(c+=(mn-c)**Sl),Math.abs(c-s)<ls)return 0;let d;if(c>s){const v=(c**es-s**ts)*is;d=v<wl?0:v<Cl?v-v*xl*gn:v-gn}else{const v=(c**as-s**ns)*os;d=v>-wl?0:v>-Cl?v-v*xl*gn:v+gn}return d*100}function rs(e,n){n=Array.isArray(n)?n.slice(0,-1).map(t=>`'${t}'`).join(", ")+` or '${n.at(-1)}'`:`'${n}'`}const Vn=.20689655172413793,ss=e=>e>Vn**3?Math.cbrt(e):e/(3*Vn**2)+4/29,us=e=>e>Vn?e**3:3*Vn**2*(e-4/29);function pi(e){const n=ss,t=n(e[1]);return[116*t-16,500*(n(e[0]/.95047)-t),200*(t-n(e[2]/1.08883))]}function Ii(e){const n=us,t=(e[0]+16)/116;return[n(t+e[1]/500)*.95047,n(t),n(t-e[2]/200)*1.08883]}const cs=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],ds=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,fs=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],vs=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function Li(e){const n=Array(3),t=ds,a=cs;for(let l=0;l<3;++l)n[l]=Math.round(Ee(t(a[l][0]*e[0]+a[l][1]*e[1]+a[l][2]*e[2]))*255);return{r:n[0],g:n[1],b:n[2]}}function Da(e){let{r:n,g:t,b:a}=e;const l=[0,0,0],i=vs,o=fs;n=i(n/255),t=i(t/255),a=i(a/255);for(let r=0;r<3;++r)l[r]=o[r][0]*n+o[r][1]*t+o[r][2]*a;return l}function fa(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function ms(e){return fa(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Vl=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,gs={rgb:(e,n,t,a)=>({r:e,g:n,b:t,a}),rgba:(e,n,t,a)=>({r:e,g:n,b:t,a}),hsl:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsla:(e,n,t,a)=>Pl({h:e,s:n,l:t,a}),hsv:(e,n,t,a)=>qt({h:e,s:n,v:t,a}),hsva:(e,n,t,a)=>qt({h:e,s:n,v:t,a})};function et(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Vl.test(e)){const{groups:n}=e.match(Vl),{fn:t,values:a}=n,l=a.split(/,\s*/).map(i=>i.endsWith("%")&&["hsl","hsla","hsv","hsva"].includes(t)?parseFloat(i)/100:parseFloat(i));return gs[t](...l)}else if(typeof e=="string"){let n=e.startsWith("#")?e.slice(1):e;return[3,4].includes(n.length)?n=n.split("").map(t=>t+t).join(""):[6,8].includes(n.length),ys(n)}else if(typeof e=="object"){if(qn(e,["r","g","b"]))return e;if(qn(e,["h","s","l"]))return qt(Ai(e));if(qn(e,["h","s","v"]))return qt(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
|
|
2
2
|
Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function qt(e){const{h:n,s:t,v:a,a:l}=e,i=r=>{const s=(r+n/60)%6;return a-a*t*Math.max(Math.min(s,4-s,1),0)},o=[i(5),i(3),i(1)].map(r=>Math.round(r*255));return{r:o[0],g:o[1],b:o[2],a:l}}function Pl(e){return qt(Ai(e))}function Ai(e){const{h:n,s:t,l:a,a:l}=e,i=a+t*Math.min(a,1-a),o=i===0?0:2-2*a/i;return{h:n,s:o,v:i,a:l}}function hn(e){const n=Math.round(e).toString(16);return("00".substr(0,2-n.length)+n).toUpperCase()}function hs(e){let{r:n,g:t,b:a,a:l}=e;return`#${[hn(n),hn(t),hn(a),l!==void 0?hn(Math.round(l*255)):""].join("")}`}function ys(e){e=bs(e);let[n,t,a,l]=Ur(e,2).map(i=>parseInt(i,16));return l=l===void 0?l:l/255,{r:n,g:t,b:a,a:l}}function bs(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(n=>n+n).join("")),e.length!==6&&(e=ul(ul(e,6),8,"F")),e}function Ss(e,n){const t=pi(Da(e));return t[0]=t[0]+n*10,Li(Ii(t))}function Cs(e,n){const t=pi(Da(e));return t[0]=t[0]-n*10,Li(Ii(t))}function xs(e){const n=et(e);return Da(n)[1]}function Ti(e){const n=Math.abs(kl(et(0),et(e)));return Math.abs(kl(et(16777215),et(e)))>Math.min(n,50)?"#fff":"#000"}function be(e,n){const t=Lr();if(!t)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return t}function nt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const n=be(e).type;return xt((n==null?void 0:n.aliasName)||(n==null?void 0:n.name))}let _i=0,Sn=new WeakMap;function ze(){const e=be("getUid");if(Sn.has(e))return Sn.get(e);{const n=_i++;return Sn.set(e,n),n}}ze.reset=()=>{_i=0,Sn=new WeakMap};function ws(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:be("injectSelf");const{provides:t}=n;if(t&&e in t)return t[e]}const Dt=Symbol.for("vuetify:defaults");function ks(e){return W(e)}function Ma(){const e=de(Dt);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Ze(e,n){const t=Ma(),a=W(e),l=b(()=>{if(Ae(n==null?void 0:n.disabled))return t.value;const o=Ae(n==null?void 0:n.scoped),r=Ae(n==null?void 0:n.reset),s=Ae(n==null?void 0:n.root);if(a.value==null&&!(o||r||s))return t.value;let c=Le(a.value,{prev:t.value});if(o)return c;if(r||s){const d=Number(r||1/0);for(let v=0;v<=d&&!(!c||!("prev"in c));v++)c=c.prev;return c&&typeof s=="string"&&s in c&&(c=Le(Le(c,{prev:c}),c[s])),c}return c.prev?Le(c.prev,c):c});return Se(Dt,l),l}function Vs(e,n){var t,a;return typeof((t=e.props)==null?void 0:t[n])<"u"||typeof((a=e.props)==null?void 0:a[xt(n)])<"u"}function Ps(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ma();const a=be("useDefaults");if(n=n??a.type.name??a.type.__name,!n)throw new Error("[Vuetify] Could not determine component name");const l=b(()=>{var s;return(s=t.value)==null?void 0:s[e._as??n]}),i=new Proxy(e,{get(s,c){var v,f,m,g,h,y,S;const d=Reflect.get(s,c);return c==="class"||c==="style"?[(v=l.value)==null?void 0:v[c],d].filter(C=>C!=null):typeof c=="string"&&!Vs(a.vnode,c)?((f=l.value)==null?void 0:f[c])!==void 0?(m=l.value)==null?void 0:m[c]:((h=(g=t.value)==null?void 0:g.global)==null?void 0:h[c])!==void 0?(S=(y=t.value)==null?void 0:y.global)==null?void 0:S[c]:d:d}}),o=K();Re(()=>{if(l.value){const s=Object.entries(l.value).filter(c=>{let[d]=c;return d.startsWith(d[0].toUpperCase())});o.value=s.length?Object.fromEntries(s):void 0}else o.value=void 0});function r(){const s=ws(Dt,a);Se(Dt,b(()=>o.value?Le((s==null?void 0:s.value)??{},o.value):s==null?void 0:s.value))}return{props:i,provideSubDefaults:r}}function Nt(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=D(e.props??{},e.name)();const n=Object.keys(e.props).filter(t=>t!=="class"&&t!=="style");e.filterProps=function(a){return Aa(a,n)},e.props._as=String,e.setup=function(a,l){const i=Ma();if(!i.value)return e._setup(a,l);const{props:o,provideSubDefaults:r}=Ps(a,a._as??e.name,i),s=e._setup(o,l);return r(),s}}return e}function z(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n=>(e?Nt:Ar)(n)}function ps(e,n){return n.props=e,n}function Fa(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",t=arguments.length>2?arguments[2]:void 0;return z()({name:t??ka(vi(e.replace(/__/g,"-"))),props:{tag:{type:String,default:n},...Q()},setup(a,l){let{slots:i}=l;return()=>{var o;return $t(a.tag,{class:[e,a.class],style:a.style},(o=i.default)==null?void 0:o.call(i))}}})}function Ei(e){if(typeof e.getRootNode!="function"){for(;e.parentNode;)e=e.parentNode;return e!==document?null:document}const n=e.getRootNode();return n!==document&&n.getRootNode({composed:!0})!==document?null:n}const Xt="cubic-bezier(0.4, 0, 0.2, 1)",Is="cubic-bezier(0.0, 0, 0.2, 1)",Ls="cubic-bezier(0.4, 0, 1, 1)";function pl(e,n,t){return Object.keys(e).filter(a=>Mn(a)&&a.endsWith(n)).reduce((a,l)=>(a[l.slice(0,-n.length)]=i=>e[l](i,t(i)),a),{})}function Bi(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;e;){if(n?As(e):Oa(e))return e;e=e.parentElement}return document.scrollingElement}function Pn(e,n){const t=[];if(n&&e&&!n.contains(e))return t;for(;e&&(Oa(e)&&t.push(e),e!==n);)e=e.parentElement;return t}function Oa(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return n.overflowY==="scroll"||n.overflowY==="auto"&&e.scrollHeight>e.clientHeight}function As(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const n=window.getComputedStyle(e);return["scroll","auto"].includes(n.overflowY)}function Ts(e){for(;e;){if(window.getComputedStyle(e).position==="fixed")return!0;e=e.offsetParent}return!1}function j(e){const n=be("useRender");n.render=e}const Xe=D({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Qe(e){return{dimensionStyles:b(()=>{const t={},a=Z(e.height),l=Z(e.maxHeight),i=Z(e.maxWidth),o=Z(e.minHeight),r=Z(e.minWidth),s=Z(e.width);return a!=null&&(t.height=a),l!=null&&(t.maxHeight=l),i!=null&&(t.maxWidth=i),o!=null&&(t.minHeight=o),r!=null&&(t.minWidth=r),s!=null&&(t.width=s),t})}}function _s(e){return{aspectStyles:b(()=>{const n=Number(e.aspectRatio);return n?{paddingBottom:String(1/n*100)+"%"}:void 0})}}const Di=D({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...Q(),...Xe()},"VResponsive"),Il=z()({name:"VResponsive",props:Di(),setup(e,n){let{slots:t}=n;const{aspectStyles:a}=_s(e),{dimensionStyles:l}=Qe(e);return j(()=>{var i;return u("div",{class:["v-responsive",{"v-responsive--inline":e.inline},e.class],style:[l.value,e.style]},[u("div",{class:"v-responsive__sizer",style:a.value},null),(i=t.additional)==null?void 0:i.call(t),t.default&&u("div",{class:["v-responsive__content",e.contentClass]},[t.default()])])}),{}}});function $a(e){return _a(()=>{const n=[],t={};if(e.value.background)if(fa(e.value.background)){if(t.backgroundColor=e.value.background,!e.value.text&&ms(e.value.background)){const a=et(e.value.background);if(a.a==null||a.a===1){const l=Ti(a);t.color=l,t.caretColor=l}}}else n.push(`bg-${e.value.background}`);return e.value.text&&(fa(e.value.text)?(t.color=e.value.text,t.caretColor=e.value.text):n.push(`text-${e.value.text}`)),{colorClasses:n,colorStyles:t}})}function Ne(e,n){const t=b(()=>({text:Bt(e)?e.value:n?e[n]:null})),{colorClasses:a,colorStyles:l}=$a(t);return{textColorClasses:a,textColorStyles:l}}function Be(e,n){const t=b(()=>({background:Bt(e)?e.value:n?e[n]:null})),{colorClasses:a,colorStyles:l}=$a(t);return{backgroundColorClasses:a,backgroundColorStyles:l}}const Me=D({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function We(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt();return{roundedClasses:b(()=>{const a=Bt(e)?e.value:e.rounded,l=Bt(e)?e.value:e.tile,i=[];if(a===!0||a==="")i.push(`${n}--rounded`);else if(typeof a=="string"||a===0)for(const o of String(a).split(" "))i.push(`rounded-${o}`);else(l||a===!1)&&i.push("rounded-0");return i})}}const gt=D({transition:{type:[Boolean,String,Object],default:"fade-transition",validator:e=>e!==!0}},"transition"),Ke=(e,n)=>{let{slots:t}=n;const{transition:a,disabled:l,group:i,...o}=e,{component:r=i?Va:kt,...s}=typeof a=="object"?a:{};return $t(r,H(typeof a=="string"?{name:l?"":a}:s,typeof a=="string"?{}:Object.fromEntries(Object.entries({disabled:l,group:i}).filter(c=>{let[d,v]=c;return v!==void 0})),o),t)};function Es(e,n){if(!Ia)return;const t=n.modifiers||{},a=n.value,{handler:l,options:i}=typeof a=="object"?a:{handler:a,options:{}},o=new IntersectionObserver(function(){var v;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;const c=(v=e._observe)==null?void 0:v[n.instance.$.uid];if(!c)return;const d=r.some(f=>f.isIntersecting);l&&(!t.quiet||c.init)&&(!t.once||d||c.init)&&l(d,r,s),d&&t.once?Mi(e,n):c.init=!0},i);e._observe=Object(e._observe),e._observe[n.instance.$.uid]={init:!1,observer:o},o.observe(e)}function Mi(e,n){var a;const t=(a=e._observe)==null?void 0:a[n.instance.$.uid];t&&(t.observer.unobserve(e),delete e._observe[n.instance.$.uid])}const Fi={mounted:Es,unmounted:Mi},Bs=D({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...Di(),...Q(),...Me(),...gt()},"VImg"),Oi=z()({name:"VImg",directives:{intersect:Fi},props:Bs(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,n){let{emit:t,slots:a}=n;const{backgroundColorClasses:l,backgroundColorStyles:i}=Be(O(e,"color")),{roundedClasses:o}=We(e),r=be("VImg"),s=K(""),c=W(),d=K(e.eager?"loading":"idle"),v=K(),f=K(),m=b(()=>e.src&&typeof e.src=="object"?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)}),g=b(()=>m.value.aspect||v.value/f.value||0);Y(()=>e.src,()=>{h(d.value!=="idle")}),Y(g,(A,E)=>{!A&&E&&c.value&&P(c.value)}),mi(()=>h());function h(A){if(!(e.eager&&A)&&!(Ia&&!A&&!e.eager)){if(d.value="loading",m.value.lazySrc){const E=new Image;E.src=m.value.lazySrc,P(E,null)}m.value.src&&Ce(()=>{var E;t("loadstart",((E=c.value)==null?void 0:E.currentSrc)||m.value.src),setTimeout(()=>{var M;if(!r.isUnmounted)if((M=c.value)!=null&&M.complete){if(c.value.naturalWidth||S(),d.value==="error")return;g.value||P(c.value,null),d.value==="loading"&&y()}else g.value||P(c.value),C()})})}}function y(){var A;r.isUnmounted||(C(),P(c.value),d.value="loaded",t("load",((A=c.value)==null?void 0:A.currentSrc)||m.value.src))}function S(){var A;r.isUnmounted||(d.value="error",t("error",((A=c.value)==null?void 0:A.currentSrc)||m.value.src))}function C(){const A=c.value;A&&(s.value=A.currentSrc||A.src)}let L=-1;qe(()=>{clearTimeout(L)});function P(A){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const M=()=>{if(clearTimeout(L),r.isUnmounted)return;const{naturalHeight:R,naturalWidth:U}=A;R||U?(v.value=U,f.value=R):!A.complete&&d.value==="loading"&&E!=null?L=window.setTimeout(M,E):(A.currentSrc.endsWith(".svg")||A.currentSrc.startsWith("data:image/svg+xml"))&&(v.value=1,f.value=1)};M()}const w=b(()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover})),V=()=>{var M;if(!m.value.src||d.value==="idle")return null;const A=u("img",{class:["v-img__img",w.value],style:{objectPosition:e.position},src:m.value.src,srcset:m.value.srcset,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:c,onLoad:y,onError:S},null),E=(M=a.sources)==null?void 0:M.call(a);return u(Ke,{transition:e.transition,appear:!0},{default:()=>[ke(E?u("picture",{class:"v-img__picture"},[E,A]):A,[[tt,d.value==="loaded"]])]})},_=()=>u(Ke,{transition:e.transition},{default:()=>[m.value.lazySrc&&d.value!=="loaded"&&u("img",{class:["v-img__img","v-img__img--preload",w.value],style:{objectPosition:e.position},src:m.value.lazySrc,alt:e.alt,crossorigin:e.crossorigin,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),x=()=>a.placeholder?u(Ke,{transition:e.transition,appear:!0},{default:()=>[(d.value==="loading"||d.value==="error"&&!a.error)&&u("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,k=()=>a.error?u(Ke,{transition:e.transition,appear:!0},{default:()=>[d.value==="error"&&u("div",{class:"v-img__error"},[a.error()])]}):null,p=()=>e.gradient?u("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,I=K(!1);{const A=Y(g,E=>{E&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{I.value=!0})}),A())})}return j(()=>{const A=Il.filterProps(e);return ke(u(Il,H({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!I.value},l.value,o.value,e.class],style:[{width:Z(e.width==="auto"?v.value:e.width)},i.value,e.style]},A,{aspectRatio:g.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>u(oe,null,[u(V,null,null),u(_,null,null),u(p,null,null),u(x,null,null),u(k,null,null)]),default:a.default}),[[rt("intersect"),{handler:h,options:e.options},null,{once:!0}]])}),{currentSrc:s,image:c,state:d,naturalWidth:v,naturalHeight:f}}});function $i(e,n){const t=W(),a=K(!1);if(Ia){const l=new IntersectionObserver(i=>{a.value=!!i.find(o=>o.isIntersecting)},n);qe(()=>{l.disconnect()}),Y(t,(i,o)=>{o&&(l.unobserve(o),a.value=!1),i&&l.observe(i)},{flush:"post"})}return{intersectionRef:t,isIntersecting:a}}function Pt(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const t=ua(),a=W();if(ce){const l=new ResizeObserver(i=>{e==null||e(i,l),i.length&&(n==="content"?a.value=i[0].contentRect:a.value=i[0].target.getBoundingClientRect())});qe(()=>{l.disconnect()}),Y(()=>t.el,(i,o)=>{o&&(l.unobserve(o),a.value=void 0),i&&l.observe(i)},{flush:"post"})}return{resizeRef:t,contentRect:Pa(a)}}const Ds=["x-small","small","default","large","x-large"],Ht=D({size:{type:[String,Number],default:"default"}},"size");function ln(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nt();return _a(()=>{let t,a;return wn(Ds,e.size)?t=`${n}--size-${e.size}`:e.size&&(a={width:Z(e.size),height:Z(e.size)}),{sizeClasses:t,sizeStyles:a}})}const me=D({tag:{type:String,default:"div"}},"tag"),Qt=Symbol.for("vuetify:theme"),he=D({theme:String},"theme");function Ll(){return{defaultTheme:"light",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#a3a3a3","on-surface-variant":"#424242",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#212529","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}}}}function Ms(){var a,l;let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ll();const n=Ll();if(!e)return{...n,isDisabled:!0};const t={};for(const[i,o]of Object.entries(e.themes??{})){const r=o.dark||i==="dark"?(a=n.themes)==null?void 0:a.dark:(l=n.themes)==null?void 0:l.light;t[i]=Le(r,o)}return Le(n,{...e,themes:t})}function Fs(e){const n=Ms(e),t=W(n.defaultTheme),a=W(n.themes),l=b(()=>{const d={};for(const[v,f]of Object.entries(a.value)){const m=d[v]={...f,colors:{...f.colors}};if(n.variations)for(const g of n.variations.colors){const h=m.colors[g];if(h)for(const y of["lighten","darken"]){const S=y==="lighten"?Ss:Cs;for(const C of _t(n.variations[y],1))m.colors[`${g}-${y}-${C}`]=hs(S(et(h),C))}}for(const g of Object.keys(m.colors)){if(/^on-[a-z]/.test(g)||m.colors[`on-${g}`])continue;const h=`on-${g}`,y=et(m.colors[g]);m.colors[h]=Ti(y)}}return d}),i=b(()=>l.value[t.value]),o=b(()=>{var g;const d=[];(g=i.value)!=null&&g.dark&&St(d,":root",["color-scheme: dark"]),St(d,":root",Al(i.value));for(const[h,y]of Object.entries(l.value))St(d,`.v-theme--${h}`,[`color-scheme: ${y.dark?"dark":"normal"}`,...Al(y)]);const v=[],f=[],m=new Set(Object.values(l.value).flatMap(h=>Object.keys(h.colors)));for(const h of m)/^on-[a-z]/.test(h)?St(f,`.${h}`,[`color: rgb(var(--v-theme-${h})) !important`]):(St(v,`.bg-${h}`,[`--v-theme-overlay-multiplier: var(--v-theme-${h}-overlay-multiplier)`,`background-color: rgb(var(--v-theme-${h})) !important`,`color: rgb(var(--v-theme-on-${h})) !important`]),St(f,`.text-${h}`,[`color: rgb(var(--v-theme-${h})) !important`]),St(f,`.border-${h}`,[`--v-border-color: var(--v-theme-${h})`]));return d.push(...v,...f),d.map((h,y)=>y===0?h:` ${h}`).join("")});function r(){return{style:[{children:o.value,id:"vuetify-theme-stylesheet",nonce:n.cspNonce||!1}]}}function s(d){if(n.isDisabled)return;const v=d._context.provides.usehead;if(v)if(v.push){const f=v.push(r);ce&&Y(o,()=>{f.patch(r)})}else ce?(v.addHeadObjs(b(r)),Re(()=>v.updateDOM())):v.addHeadObjs(r());else{let m=function(){if(typeof document<"u"&&!f){const g=document.createElement("style");g.type="text/css",g.id="vuetify-theme-stylesheet",n.cspNonce&&g.setAttribute("nonce",n.cspNonce),f=g,document.head.appendChild(f)}f&&(f.innerHTML=o.value)},f=ce?document.getElementById("vuetify-theme-stylesheet"):null;ce?Y(o,m,{immediate:!0}):m()}}const c=b(()=>n.isDisabled?void 0:`v-theme--${t.value}`);return{install:s,isDisabled:n.isDisabled,name:t,themes:a,current:i,computedThemes:l,themeClasses:c,styles:o,global:{name:t,current:i}}}function xe(e){be("provideTheme");const n=de(Qt,null);if(!n)throw new Error("Could not find Vuetify theme injection");const t=b(()=>e.theme??n.name.value),a=b(()=>n.themes.value[t.value]),l=b(()=>n.isDisabled?void 0:`v-theme--${t.value}`),i={...n,name:t,current:a,themeClasses:l};return Se(Qt,i),i}function Os(){be("useTheme");const e=de(Qt,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}function St(e,n,t){e.push(`${n} {
|
|
3
3
|
`,...t.map(a=>` ${a};
|
|
4
4
|
`),`}
|
package/dist/server/package.json
CHANGED
|
@@ -235,10 +235,10 @@ export declare const interfaceSettingsSchema: zod.ZodObject<{
|
|
|
235
235
|
streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
|
|
236
236
|
streamingSource: zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">]>;
|
|
237
237
|
}, "strip", zod.ZodTypeAny, {
|
|
238
|
-
streamingMode: "
|
|
238
|
+
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
239
239
|
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
240
240
|
}, {
|
|
241
|
-
streamingMode: "
|
|
241
|
+
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
242
242
|
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
243
243
|
}>;
|
|
244
244
|
export declare const cameraInfoSchema: zod.ZodObject<{
|
|
@@ -365,10 +365,10 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
365
365
|
streamingMode: zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>;
|
|
366
366
|
streamingSource: zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">]>;
|
|
367
367
|
}, "strip", zod.ZodTypeAny, {
|
|
368
|
-
streamingMode: "
|
|
368
|
+
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
369
369
|
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
370
370
|
}, {
|
|
371
|
-
streamingMode: "
|
|
371
|
+
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
372
372
|
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
373
373
|
}>>;
|
|
374
374
|
activityZones: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
@@ -481,6 +481,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
481
481
|
resolution: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180";
|
|
482
482
|
}>>;
|
|
483
483
|
}, "strict", zod.ZodTypeAny, {
|
|
484
|
+
type: "camera" | "doorbell";
|
|
484
485
|
info: {
|
|
485
486
|
model?: string | undefined;
|
|
486
487
|
manufacturer?: string | undefined;
|
|
@@ -489,11 +490,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
489
490
|
firmwareVersion?: string | undefined;
|
|
490
491
|
supportUrl?: string | undefined;
|
|
491
492
|
};
|
|
492
|
-
interface: {
|
|
493
|
-
streamingMode: "webrtc" | "mse" | "hls" | "mp4" | "mjpeg" | "webrtc/tcp";
|
|
494
|
-
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
495
|
-
};
|
|
496
|
-
type: "camera" | "doorbell";
|
|
497
493
|
name: string;
|
|
498
494
|
_id: string;
|
|
499
495
|
pluginId: string;
|
|
@@ -523,6 +519,10 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
523
519
|
recording: {
|
|
524
520
|
enabled: boolean;
|
|
525
521
|
};
|
|
522
|
+
interface: {
|
|
523
|
+
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
524
|
+
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
525
|
+
};
|
|
526
526
|
activityZones: {
|
|
527
527
|
name: string;
|
|
528
528
|
regions: {
|
|
@@ -560,6 +560,7 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
560
560
|
_id?: string | undefined;
|
|
561
561
|
internal?: boolean | undefined;
|
|
562
562
|
}[];
|
|
563
|
+
type?: "camera" | "doorbell" | undefined;
|
|
563
564
|
info?: {
|
|
564
565
|
model?: string | undefined;
|
|
565
566
|
manufacturer?: string | undefined;
|
|
@@ -568,11 +569,6 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
568
569
|
firmwareVersion?: string | undefined;
|
|
569
570
|
supportUrl?: string | undefined;
|
|
570
571
|
} | undefined;
|
|
571
|
-
interface?: {
|
|
572
|
-
streamingMode: "webrtc" | "mse" | "hls" | "mp4" | "mjpeg" | "webrtc/tcp";
|
|
573
|
-
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
574
|
-
} | undefined;
|
|
575
|
-
type?: "camera" | "doorbell" | undefined;
|
|
576
572
|
_id?: string | undefined;
|
|
577
573
|
nativeId?: string | undefined;
|
|
578
574
|
pluginId?: string | undefined;
|
|
@@ -595,6 +591,10 @@ export declare const createCameraSchema: zod.ZodObject<{
|
|
|
595
591
|
recording?: {
|
|
596
592
|
enabled?: boolean | undefined;
|
|
597
593
|
} | undefined;
|
|
594
|
+
interface?: {
|
|
595
|
+
streamingMode: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp";
|
|
596
|
+
streamingSource: "high-resolution" | "mid-resolution" | "low-resolution";
|
|
597
|
+
} | undefined;
|
|
598
598
|
activityZones?: {
|
|
599
599
|
name: string;
|
|
600
600
|
regions: {
|
|
@@ -710,10 +710,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
710
710
|
streamingMode: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"mse">, zod.ZodLiteral<"webrtc">, zod.ZodLiteral<"webrtc/tcp">, zod.ZodLiteral<"mjpeg">, zod.ZodLiteral<"hls">, zod.ZodLiteral<"mp4">]>>;
|
|
711
711
|
streamingSource: zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"high-resolution">, zod.ZodLiteral<"mid-resolution">, zod.ZodLiteral<"low-resolution">]>>;
|
|
712
712
|
}, "strip", zod.ZodTypeAny, {
|
|
713
|
-
streamingMode?: "
|
|
713
|
+
streamingMode?: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp" | undefined;
|
|
714
714
|
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
715
715
|
}, {
|
|
716
|
-
streamingMode?: "
|
|
716
|
+
streamingMode?: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp" | undefined;
|
|
717
717
|
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
718
718
|
}>>;
|
|
719
719
|
recording: zod.ZodOptional<zod.ZodObject<{
|
|
@@ -833,6 +833,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
833
833
|
resolution?: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180" | undefined;
|
|
834
834
|
}>>;
|
|
835
835
|
}, "strict", zod.ZodTypeAny, {
|
|
836
|
+
type?: "camera" | "doorbell" | undefined;
|
|
836
837
|
info?: {
|
|
837
838
|
model?: string | undefined;
|
|
838
839
|
manufacturer?: string | undefined;
|
|
@@ -841,11 +842,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
841
842
|
firmwareVersion?: string | undefined;
|
|
842
843
|
supportUrl?: string | undefined;
|
|
843
844
|
} | undefined;
|
|
844
|
-
interface?: {
|
|
845
|
-
streamingMode?: "webrtc" | "mse" | "hls" | "mp4" | "mjpeg" | "webrtc/tcp" | undefined;
|
|
846
|
-
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
847
|
-
} | undefined;
|
|
848
|
-
type?: "camera" | "doorbell" | undefined;
|
|
849
845
|
name?: string | undefined;
|
|
850
846
|
disabled?: boolean | undefined;
|
|
851
847
|
snapshotTTL?: number | undefined;
|
|
@@ -868,6 +864,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
868
864
|
recording?: {
|
|
869
865
|
enabled?: boolean | undefined;
|
|
870
866
|
} | undefined;
|
|
867
|
+
interface?: {
|
|
868
|
+
streamingMode?: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp" | undefined;
|
|
869
|
+
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
870
|
+
} | undefined;
|
|
871
871
|
activityZones?: {
|
|
872
872
|
name: string;
|
|
873
873
|
regions: {
|
|
@@ -896,6 +896,7 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
896
896
|
resolution?: "3840x2160" | "3072x1728" | "2560x1440" | "1920x1080" | "1440x1080" | "1280x720" | "960x540" | "640x480" | "640x360" | "320x240" | "320x180" | undefined;
|
|
897
897
|
} | undefined;
|
|
898
898
|
}, {
|
|
899
|
+
type?: "camera" | "doorbell" | undefined;
|
|
899
900
|
info?: {
|
|
900
901
|
model?: string | undefined;
|
|
901
902
|
manufacturer?: string | undefined;
|
|
@@ -904,11 +905,6 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
904
905
|
firmwareVersion?: string | undefined;
|
|
905
906
|
supportUrl?: string | undefined;
|
|
906
907
|
} | undefined;
|
|
907
|
-
interface?: {
|
|
908
|
-
streamingMode?: "webrtc" | "mse" | "hls" | "mp4" | "mjpeg" | "webrtc/tcp" | undefined;
|
|
909
|
-
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
910
|
-
} | undefined;
|
|
911
|
-
type?: "camera" | "doorbell" | undefined;
|
|
912
908
|
name?: string | undefined;
|
|
913
909
|
disabled?: boolean | undefined;
|
|
914
910
|
snapshotTTL?: number | undefined;
|
|
@@ -931,6 +927,10 @@ export declare const patchCameraSchema: zod.ZodObject<{
|
|
|
931
927
|
recording?: {
|
|
932
928
|
enabled?: boolean | undefined;
|
|
933
929
|
} | undefined;
|
|
930
|
+
interface?: {
|
|
931
|
+
streamingMode?: "mp4" | "hls" | "mjpeg" | "webrtc" | "mse" | "webrtc/tcp" | undefined;
|
|
932
|
+
streamingSource?: "high-resolution" | "mid-resolution" | "low-resolution" | undefined;
|
|
933
|
+
} | undefined;
|
|
934
934
|
activityZones?: {
|
|
935
935
|
name: string;
|
|
936
936
|
regions: {
|
|
@@ -4,10 +4,10 @@ export declare const loggerSchema: zod.ZodObject<{
|
|
|
4
4
|
level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>>>;
|
|
5
5
|
disableTimestamps: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
6
6
|
}, "strict", zod.ZodTypeAny, {
|
|
7
|
-
level: "
|
|
7
|
+
level: "info" | "debug" | "warn" | "error" | "trace";
|
|
8
8
|
disableTimestamps: boolean;
|
|
9
9
|
}, {
|
|
10
|
-
level?: "
|
|
10
|
+
level?: "info" | "debug" | "warn" | "error" | "trace" | undefined;
|
|
11
11
|
disableTimestamps?: boolean | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
export declare const iConfigSSLSchema: zod.ZodObject<{
|
|
@@ -56,10 +56,10 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
56
56
|
level: zod.ZodDefault<zod.ZodOptional<zod.ZodUnion<[zod.ZodLiteral<"info">, zod.ZodLiteral<"debug">, zod.ZodLiteral<"warn">, zod.ZodLiteral<"error">, zod.ZodLiteral<"trace">]>>>;
|
|
57
57
|
disableTimestamps: zod.ZodDefault<zod.ZodOptional<zod.ZodBoolean>>;
|
|
58
58
|
}, "strict", zod.ZodTypeAny, {
|
|
59
|
-
level: "
|
|
59
|
+
level: "info" | "debug" | "warn" | "error" | "trace";
|
|
60
60
|
disableTimestamps: boolean;
|
|
61
61
|
}, {
|
|
62
|
-
level?: "
|
|
62
|
+
level?: "info" | "debug" | "warn" | "error" | "trace" | undefined;
|
|
63
63
|
disableTimestamps?: boolean | undefined;
|
|
64
64
|
}>>;
|
|
65
65
|
plugins: zod.ZodDefault<zod.ZodObject<{
|
|
@@ -84,7 +84,7 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
84
84
|
addresses: string[];
|
|
85
85
|
};
|
|
86
86
|
logger: {
|
|
87
|
-
level: "
|
|
87
|
+
level: "info" | "debug" | "warn" | "error" | "trace";
|
|
88
88
|
disableTimestamps: boolean;
|
|
89
89
|
};
|
|
90
90
|
plugins: {
|
|
@@ -101,7 +101,7 @@ export declare const patchConfigSchema: zod.ZodObject<{
|
|
|
101
101
|
};
|
|
102
102
|
port?: number | undefined;
|
|
103
103
|
logger?: {
|
|
104
|
-
level?: "
|
|
104
|
+
level?: "info" | "debug" | "warn" | "error" | "trace" | undefined;
|
|
105
105
|
disableTimestamps?: boolean | undefined;
|
|
106
106
|
} | undefined;
|
|
107
107
|
plugins?: {
|