@camera.ui/server 0.0.21 → 0.0.22-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/@tanstack.DlheOlVk.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{@vee-validate.Bhj8jpyd.0.0.21.js → @vee-validate.CBoqAk51.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/@vue.CvjRlaU6.0.0.22-alpha.1.js +17 -0
- package/dist/interface/@vueform.20m7Hn_5.0.0.22-alpha.1.js +1 -0
- package/dist/interface/@vueuse.-m94veKi.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Account.CvNGInZy.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Adminpanel.B38rrP4P.0.0.22-alpha.1.js +2 -0
- package/dist/interface/Appearance.kFVBM4J9.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Backup.lo3nC5DR.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Camera.BukjTYOy.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Cameras.HNjLEphi.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Camview.BXcJwv3e.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Config.Bwtjrsr9.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Console.DOkTKmKh.0.0.22-alpha.1.js +4 -0
- package/dist/interface/FirstSteps.BXQqfdBY.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{NewCamera.DPS3-wh_.0.0.21.js → NewCamera.BoQ_EpL5.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/Plugin.DlATvyTj.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Plugins.BekJdBK8.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Recordings.B4YRWWi3.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Recordings.U1858KpO.0.0.22-alpha.1.js +1 -0
- package/dist/interface/Settings.CiF0fVqP.0.0.22-alpha.1.js +1 -0
- package/dist/interface/System.Ca9T8x4i.0.0.22-alpha.1.js +4 -0
- package/dist/interface/User.C_3ugpqz.0.0.22-alpha.1.js +1 -0
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.EB4E_zDr.0.0.22-alpha.1.js +2 -0
- package/dist/interface/VConsole.DJWV6CZ9.0.0.22-alpha.1.js +1 -0
- package/dist/interface/VPlayer.CpZzx0nW.0.0.22-alpha.1.js +1 -0
- package/dist/interface/VPluginCard.Cm4M7xYg.0.0.22-alpha.1.js +4 -0
- package/dist/interface/{ace-builds.BmojU4Jg.0.0.21.js → ace-builds.GNWBVG5S.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/{apexcharts.DhKkSvF3.0.0.21.js → apexcharts.BMrxVPFF.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/assets/{Account.0.0.21.BCEftDNE.css → Account.0.0.22-alpha.1.Ce3OmKrC.css} +1 -1
- package/dist/interface/assets/Adminpanel.0.0.22-alpha.1.CXsTAXPL.css +1 -0
- package/dist/interface/assets/FirstSteps.0.0.22-alpha.1.B3-pv8-a.css +1 -0
- package/dist/interface/assets/User.0.0.22-alpha.1.DPDcJbx8.css +1 -0
- package/dist/interface/assets/{VPlayer.0.0.21.YEg8PV4J.css → VPlayer.0.0.22-alpha.1.CZXlTn4I.css} +1 -1
- package/dist/interface/assets/VPluginCard.0.0.22-alpha.1.CIL48ca_.css +1 -0
- package/dist/interface/assets/{main.0.0.21.DtbCLMJ4.css → main.0.0.22-alpha.1.BOf8IWhK.css} +1 -1
- package/dist/interface/dnd-core.DMTh_43Y.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{draggabilly.BDgfDhhK.0.0.21.js → draggabilly.Bp5rpROY.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/engine.io-client.CY7UpWto.0.0.22-alpha.1.js +1 -0
- package/dist/interface/ev-emitter.D9A4-Zp4.0.0.22-alpha.1.js +1 -0
- package/dist/interface/fast-deep-equal.CynR0Ykh.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{highlight.js.CHwq6JI2.0.0.21.js → highlight.js.BcAmtPT9.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/index.html +33 -33
- package/dist/interface/linkify-it.zJgnXBKD.0.0.22-alpha.1.js +1 -0
- package/dist/interface/main.D-V5Qegn.0.0.22-alpha.1.js +4 -0
- package/dist/interface/{markdown-it.XbfW1O-u.0.0.21.js → markdown-it.DSn07YT-.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/{nprogress.DFm9JrvH.0.0.21.js → nprogress.B-sfF0qV.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/{pinia.iqT2IUT_.0.0.21.js → pinia.Dn9R-5lV.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/plugins.9yif7gTi.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{qrcode.D_xjAaj4.0.0.21.js → qrcode.BcJHYbhe.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/react-dnd-touch-backend.B9_17rX-.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{rxjs.CHJZJw42.0.0.21.js → rxjs.BlwZeIMX.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/socket.io-client.ZxUZ7LHn.0.0.22-alpha.1.js +1 -0
- package/dist/interface/socket.io-parser.DbDzb_0x.0.0.22-alpha.1.js +1 -0
- package/dist/interface/sw.js +1 -1
- package/dist/interface/system.D_1Xg-Sy.0.0.22-alpha.1.js +1 -0
- package/dist/interface/ui.BA2qa-Pn.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{unidragger.DgaqjYhU.0.0.21.js → unidragger.BfsybYBO.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/v-calendar.CemaWgJz.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{vee-validate.BrNA99ic.0.0.21.js → vee-validate.CpAAwmyb.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/{vue-i18n.DOZ0hlVo.0.0.21.js → vue-i18n.mw20Rif9.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/vue-inline-svg.Br_paQwQ.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{vue-router.DXb5cBCV.0.0.21.js → vue-router.BchJROVt.0.0.22-alpha.1.js} +1 -1
- package/dist/interface/vue3-apexcharts.BiZhZbF2.0.0.22-alpha.1.js +1 -0
- package/dist/interface/vue3-dnd.DpYuZy8Q.0.0.22-alpha.1.js +1 -0
- package/dist/interface/vue3-toastify.DdCHHmXT.0.0.22-alpha.1.js +1 -0
- package/dist/interface/{vuetify.DG3Q_AcB.0.0.21.js → vuetify.red0JsnZ.0.0.22-alpha.1.js} +1 -1
- package/dist/server/package.json +3 -3
- package/dist/server/src/api/index.js +2 -2
- package/dist/server/src/api/index.js.map +1 -1
- package/dist/server/src/api/schemas/system.schema.js +1 -1
- package/dist/server/src/api/schemas/system.schema.js.map +1 -1
- package/dist/server/src/api/services/system.service.js +1 -0
- package/dist/server/src/api/services/system.service.js.map +1 -1
- package/dist/server/src/polyglot/node/plugins/schema.d.ts +1 -1
- package/dist/server/src/polyglot/node/plugins/schema.js +21 -24
- package/dist/server/src/polyglot/node/plugins/schema.js.map +1 -1
- package/package.json +3 -3
- package/dist/interface/@tanstack.Db5-y9Td.0.0.21.js +0 -1
- package/dist/interface/@vue.CstzJJLy.0.0.21.js +0 -17
- package/dist/interface/@vueform.rHY9ThRK.0.0.21.js +0 -1
- package/dist/interface/@vueuse.BSHZWpEW.0.0.21.js +0 -1
- package/dist/interface/Account.DntB361w.0.0.21.js +0 -1
- package/dist/interface/Adminpanel.D_KzBgKW.0.0.21.js +0 -2
- package/dist/interface/Appearance.C9qOPL8n.0.0.21.js +0 -1
- package/dist/interface/Backup.asG2YPhr.0.0.21.js +0 -1
- package/dist/interface/Camera.D4YBqaTu.0.0.21.js +0 -1
- package/dist/interface/Cameras.B8tRL7zX.0.0.21.js +0 -1
- package/dist/interface/Camview.R0qZcrJT.0.0.21.js +0 -1
- package/dist/interface/Config.zY6v3TsE.0.0.21.js +0 -1
- package/dist/interface/Console.DwmXKAQ0.0.0.21.js +0 -4
- package/dist/interface/FirstSteps.N7muLUb6.0.0.21.js +0 -1
- package/dist/interface/Plugin.BqnYkHSV.0.0.21.js +0 -1
- package/dist/interface/Plugins.Bcx9MOD3.0.0.21.js +0 -1
- package/dist/interface/Recordings.4TcgnJFE.0.0.21.js +0 -1
- package/dist/interface/Recordings.DmtITCKt.0.0.21.js +0 -1
- package/dist/interface/Settings.Dt1J9AUk.0.0.21.js +0 -1
- package/dist/interface/System.CDJ292BO.0.0.21.js +0 -4
- package/dist/interface/User.CcVzizUi.0.0.21.js +0 -1
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.yY_5fe42.0.0.21.js +0 -2
- package/dist/interface/VConsole.BETtczza.0.0.21.js +0 -1
- package/dist/interface/VPlayer.CbwMAvar.0.0.21.js +0 -1
- package/dist/interface/VPluginCard.hCf927zd.0.0.21.js +0 -4
- package/dist/interface/assets/Adminpanel.0.0.21.DGj4gqg2.css +0 -1
- package/dist/interface/assets/FirstSteps.0.0.21.27JF_jaE.css +0 -1
- package/dist/interface/assets/User.0.0.21.3wRfclxd.css +0 -1
- package/dist/interface/assets/VPluginCard.0.0.21.Dc6BSSnE.css +0 -1
- package/dist/interface/dnd-core.DoDahmRR.0.0.21.js +0 -1
- package/dist/interface/engine.io-client.DupVZd5o.0.0.21.js +0 -1
- package/dist/interface/ev-emitter.C109cicA.0.0.21.js +0 -1
- package/dist/interface/fast-deep-equal._S_8HYP3.0.0.21.js +0 -1
- package/dist/interface/linkify-it.BDB4YvsL.0.0.21.js +0 -1
- package/dist/interface/main.CbGkT7fx.0.0.21.js +0 -4
- package/dist/interface/plugins.Df6CKYq1.0.0.21.js +0 -1
- package/dist/interface/react-dnd-touch-backend.Bc0QTQd4.0.0.21.js +0 -1
- package/dist/interface/socket.io-client.Cz04X2l4.0.0.21.js +0 -1
- package/dist/interface/socket.io-parser.DZQcEBbb.0.0.21.js +0 -1
- package/dist/interface/system.kX9ptxTR.0.0.21.js +0 -1
- package/dist/interface/ui.CZNRTjos.0.0.21.js +0 -1
- package/dist/interface/v-calendar.67YJCGSL.0.0.21.js +0 -1
- package/dist/interface/vue-inline-svg.QIicrHDv.0.0.21.js +0 -1
- package/dist/interface/vue3-apexcharts.BPl8ZkGp.0.0.21.js +0 -1
- package/dist/interface/vue3-dnd.CbKwOFn3.0.0.21.js +0 -1
- package/dist/interface/vue3-toastify.C6SkNcR9.0.0.21.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.21.js → @babel.l0sNRNKZ.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{@intlify.YW_pt133.0.0.21.js → @intlify.YW_pt133.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{@mdi.DnMbZhUH.0.0.21.js → @mdi.DnMbZhUH.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{@popperjs.BQBsAJpH.0.0.21.js → @popperjs.BQBsAJpH.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.21.js → @react-dnd.CcwRs9xb.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.21.js → @socket.io.Dkula2eQ.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{@xterm.CBiKmcul.0.0.21.js → @xterm.DV-IE8JS.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.21.h7tNX9p6.css → @vueform.0.0.22-alpha.1.h7tNX9p6.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.21.CGrrDQr5.css → @xterm.0.0.22-alpha.1.CGrrDQr5.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.21.BIwaSlv3.css → Backup.0.0.22-alpha.1.BIwaSlv3.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.21.BDtUJ-lA.css → Camera.0.0.22-alpha.1.BDtUJ-lA.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.21.Djx0F2MM.css → Cameras.0.0.22-alpha.1.Djx0F2MM.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.21.Ce_V-Nxj.css → Camview.0.0.22-alpha.1.Ce_V-Nxj.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.21.k4QpWumg.css → Config.0.0.22-alpha.1.k4QpWumg.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.21.DWrfRWs9.css → Console.0.0.22-alpha.1.DWrfRWs9.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.21.DJ3tUBT_.css → NewCamera.0.0.22-alpha.1.DJ3tUBT_.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.21.BtRA6zDt.css → Plugin.0.0.22-alpha.1.BtRA6zDt.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.21.Cwu0aGUO.css → Plugins.0.0.22-alpha.1.Cwu0aGUO.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.21.DC_-E3CR.css → Settings.0.0.22-alpha.1.DC_-E3CR.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.21.BZT1WyS-.css → VConsole.0.0.22-alpha.1.BZT1WyS-.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.21.DgoK_Xib.css → highlight.0.0.22-alpha.1.DgoK_Xib.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.21.BCQk9H1-.png → logo-256.0.0.22-alpha.1.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.21.DLKVOU2S.png → logo-512.0.0.22-alpha.1.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.21.DmEiRk0z.png → logo.0.0.22-alpha.1.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.21.Br7xisR1.js → mode-json.0.0.22-alpha.1.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.21.CIYL8U3d.js → mode-yaml.0.0.22-alpha.1.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{v-calendar.0.0.21.CtSuDYZU.css → v-calendar.0.0.22-alpha.1.CtSuDYZU.css} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.21.DTY1DMRs.css → vue3-toastify.0.0.22-alpha.1.DTY1DMRs.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.21.Cd1awv3t.css → vuetify.0.0.22-alpha.1.Cd1awv3t.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.21.js → axios.C-n2IhIP.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.21.js → compare-versions.DqEOhma6.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.21.js → dijkstrajs.D_NXgYpA.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.21.js → engine.io-parser.BiEtp6m2.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.21.js → entities.C20TfXL6.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.21.js → get-size.D1dS-IaP.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.21.js → mdurl.k9Sl0PQj.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.21.js → punycode.js.Dj65hjkv.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.21.js → react-dnd-html5-backend.1HQjlkwI.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.21.js → redux.CuxFRhX_.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.21.js → tslib.9k7AwCpt.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.21.js → uc.micro.kMc2yuuw.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{utils.BvINh1mj.0.0.21.js → utils.BvINh1mj.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.21.js → uuid.DvF23Exx.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.21.js → vue.l0sNRNKZ.0.0.22-alpha.1.js} +0 -0
- /package/dist/interface/{zod.BaF2dDCd.0.0.21.js → zod.BaF2dDCd.0.0.22-alpha.1.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var he=s=>{throw TypeError(s)};var Gt=(s,t,e)=>t.has(s)||he("Cannot "+e);var r=(s,t,e)=>(Gt(s,t,"read from private field"),e?e.call(s):t.get(s)),f=(s,t,e)=>t.has(s)?he("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(s):t.set(s,e),h=(s,t,e,i)=>(Gt(s,t,"write to private field"),i?i.call(s,e):t.set(s,e),e),y=(s,t,e)=>(Gt(s,t,"access private method"),e);var Kt=(s,t,e,i)=>({set _(n){h(s,t,n,e)},get _(){return r(s,t,i)}});import{i as Re,u as ze,h as Ye,a as Je,r as Xe,n as Ze,c as De,b as Ee,w as mt,o as Me,t as Ae,d as Ue}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";var At=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(s){return this.listeners.add(s),this.onSubscribe(),()=>{this.listeners.delete(s),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yt=typeof window>"u"||"Deno"in globalThis;function L(){}function ts(s,t){return typeof s=="function"?s(t):s}function Bt(s){return typeof s=="number"&&s>=0&&s!==1/0}function qe(s,t){return Math.max(s+(t||0)-Date.now(),0)}function vt(s,t){return typeof s=="function"?s(t):s}function N(s,t){return typeof s=="function"?s(t):s}function ce(s,t){const{type:e="all",exact:i,fetchStatus:n,predicate:a,queryKey:u,stale:l}=s;if(u){if(i){if(t.queryHash!==ae(u,t.options))return!1}else if(!qt(t.queryKey,u))return!1}if(e!=="all"){const O=t.isActive();if(e==="active"&&!O||e==="inactive"&&O)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||n&&n!==t.state.fetchStatus||a&&!a(t))}function le(s,t){const{exact:e,status:i,predicate:n,mutationKey:a}=s;if(a){if(!t.options.mutationKey)return!1;if(e){if(pt(t.options.mutationKey)!==pt(a))return!1}else if(!qt(t.options.mutationKey,a))return!1}return!(i&&t.state.status!==i||n&&!n(t))}function ae(s,t){return((t==null?void 0:t.queryKeyHashFn)||pt)(s)}function pt(s){return JSON.stringify(s,(t,e)=>$t(e)?Object.keys(e).sort().reduce((i,n)=>(i[n]=e[n],i),{}):e)}function qt(s,t){return s===t?!0:typeof s!=typeof t?!1:s&&t&&typeof s=="object"&&typeof t=="object"?!Object.keys(t).some(e=>!qt(s[e],t[e])):!1}function Ie(s,t){if(s===t)return s;const e=fe(s)&&fe(t);if(e||$t(s)&&$t(t)){const i=e?s:Object.keys(s),n=i.length,a=e?t:Object.keys(t),u=a.length,l=e?[]:{};let O=0;for(let v=0;v<u;v++){const p=e?v:a[v];(!e&&i.includes(p)||e)&&s[p]===void 0&&t[p]===void 0?(l[p]=void 0,O++):(l[p]=Ie(s[p],t[p]),l[p]===s[p]&&s[p]!==void 0&&O++)}return n===u&&O===n?s:l}return t}function Ht(s,t){if(!t||Object.keys(s).length!==Object.keys(t).length)return!1;for(const e in s)if(s[e]!==t[e])return!1;return!0}function fe(s){return Array.isArray(s)&&s.length===Object.keys(s).length}function $t(s){if(!de(s))return!1;const t=s.constructor;if(t===void 0)return!0;const e=t.prototype;return!(!de(e)||!e.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(s)!==Object.prototype)}function de(s){return Object.prototype.toString.call(s)==="[object Object]"}function es(s){return new Promise(t=>{setTimeout(t,s)})}function Vt(s,t,e){return typeof e.structuralSharing=="function"?e.structuralSharing(s,t):e.structuralSharing!==!1?Ie(s,t):t}function ss(s,t,e=0){const i=[...s,t];return e&&i.length>e?i.slice(1):i}function is(s,t,e=0){const i=[t,...s];return e&&i.length>e?i.slice(0,-1):i}var Te=Symbol();function je(s,t){return!s.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!s.queryFn||s.queryFn===Te?()=>Promise.reject(new Error(`Missing queryFn: '${s.queryHash}'`)):s.queryFn}var ut,Z,bt,ve,rs=(ve=class extends At{constructor(){super();f(this,ut);f(this,Z);f(this,bt);h(this,bt,t=>{if(!yt&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}})}onSubscribe(){r(this,Z)||this.setEventListener(r(this,bt))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,Z))==null||t.call(this),h(this,Z,void 0))}setEventListener(t){var e;h(this,bt,t),(e=r(this,Z))==null||e.call(this),h(this,Z,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){r(this,ut)!==t&&(h(this,ut,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){var t;return typeof r(this,ut)=="boolean"?r(this,ut):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ut=new WeakMap,Z=new WeakMap,bt=new WeakMap,ve),ue=new rs,gt,tt,Ot,be,ns=(be=class extends At{constructor(){super();f(this,gt,!0);f(this,tt);f(this,Ot);h(this,Ot,t=>{if(!yt&&window.addEventListener){const e=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",i)}}})}onSubscribe(){r(this,tt)||this.setEventListener(r(this,Ot))}onUnsubscribe(){var t;this.hasListeners()||((t=r(this,tt))==null||t.call(this),h(this,tt,void 0))}setEventListener(t){var e;h(this,Ot,t),(e=r(this,tt))==null||e.call(this),h(this,tt,t(this.setOnline.bind(this)))}setOnline(t){r(this,gt)!==t&&(h(this,gt,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return r(this,gt)}},gt=new WeakMap,tt=new WeakMap,Ot=new WeakMap,be),Nt=new ns;function as(s){return Math.min(1e3*2**s,3e4)}function xe(s){return(s??"online")==="online"?Nt.isOnline():!0}var Ke=class extends Error{constructor(s){super("CancelledError"),this.revert=s==null?void 0:s.revert,this.silent=s==null?void 0:s.silent}};function _t(s){return s instanceof Ke}function Le(s){let t=!1,e=0,i=!1,n,a,u;const l=new Promise((C,S)=>{a=C,u=S}),O=C=>{var S;i||(P(new Ke(C)),(S=s.abort)==null||S.call(s))},v=()=>{t=!0},p=()=>{t=!1},c=()=>ue.isFocused()&&(s.networkMode==="always"||Nt.isOnline())&&s.canRun(),o=()=>xe(s.networkMode)&&s.canRun(),d=C=>{var S;i||(i=!0,(S=s.onSuccess)==null||S.call(s,C),n==null||n(),a(C))},P=C=>{var S;i||(i=!0,(S=s.onError)==null||S.call(s,C),n==null||n(),u(C))},D=()=>new Promise(C=>{var S;n=Q=>{(i||c())&&C(Q)},(S=s.onPause)==null||S.call(s)}).then(()=>{var C;n=void 0,i||(C=s.onContinue)==null||C.call(s)}),F=()=>{if(i)return;let C;const S=e===0?s.initialPromise:void 0;try{C=S??s.fn()}catch(Q){C=Promise.reject(Q)}Promise.resolve(C).then(d).catch(Q=>{var g;if(i)return;const E=s.retry??(yt?0:3),M=s.retryDelay??as,G=typeof M=="function"?M(e,Q):M,W=E===!0||typeof E=="number"&&e<E||typeof E=="function"&&E(e,Q);if(t||!W){P(Q);return}e++,(g=s.onFail)==null||g.call(s,e,Q),es(G).then(()=>c()?void 0:D()).then(()=>{t?P(Q):F()})})};return{promise:l,cancel:O,continue:()=>(n==null||n(),l),cancelRetry:v,continueRetry:p,canStart:o,start:()=>(o()?F():D().then(F),l)}}function us(){let s=[],t=0,e=o=>{o()},i=o=>{o()},n=o=>setTimeout(o,0);const a=o=>{n=o},u=o=>{let d;t++;try{d=o()}finally{t--,t||v()}return d},l=o=>{t?s.push(o):n(()=>{e(o)})},O=o=>(...d)=>{l(()=>{o(...d)})},v=()=>{const o=s;s=[],o.length&&n(()=>{i(()=>{o.forEach(d=>{e(d)})})})};return{batch:u,batchCalls:O,schedule:l,setNotifyFunction:o=>{e=o},setBatchNotifyFunction:o=>{i=o},setScheduler:a}}var A=us(),ot,ge,ke=(ge=class{constructor(){f(this,ot)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bt(this.gcTime)&&h(this,ot,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(s){this.gcTime=Math.max(this.gcTime||0,s??(yt?1/0:5*60*1e3))}clearGcTimeout(){r(this,ot)&&(clearTimeout(r(this,ot)),h(this,ot,void 0))}},ot=new WeakMap,ge),Ct,wt,K,U,It,ht,H,z,Oe,os=(Oe=class extends ke{constructor(t){super();f(this,H);f(this,Ct);f(this,wt);f(this,K);f(this,U);f(this,It);f(this,ht);h(this,ht,!1),h(this,It,t.defaultOptions),this.setOptions(t.options),this.observers=[],h(this,K,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,h(this,Ct,hs(this.options)),this.state=t.state??r(this,Ct),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=r(this,U))==null?void 0:t.promise}setOptions(t){this.options={...r(this,It),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&r(this,K).remove(this)}setData(t,e){const i=Vt(this.state.data,t,this.options);return y(this,H,z).call(this,{data:i,type:"success",dataUpdatedAt:e==null?void 0:e.updatedAt,manual:e==null?void 0:e.manual}),i}setState(t,e){y(this,H,z).call(this,{type:"setState",state:t,setStateOptions:e})}cancel(t){var i,n;const e=(i=r(this,U))==null?void 0:i.promise;return(n=r(this,U))==null||n.cancel(t),e?e.then(L).catch(L):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(r(this,Ct))}isActive(){return this.observers.some(t=>N(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!qe(this.state.dataUpdatedAt,t)}onFocus(){var e;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}onOnline(){var e;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(e=r(this,U))==null||e.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),r(this,K).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(r(this,U)&&(r(this,ht)?r(this,U).cancel({revert:!0}):r(this,U).cancelRetry()),this.scheduleGc()),r(this,K).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||y(this,H,z).call(this,{type:"invalidate"})}fetch(t,e){var O,v,p;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(e!=null&&e.cancelRefetch))this.cancel({silent:!0});else if(r(this,U))return r(this,U).continueRetry(),r(this,U).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(o=>o.options.queryFn);c&&this.setOptions(c.options)}const i=new AbortController,n=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(h(this,ht,!0),i.signal)})},a=()=>{const c=je(this.options,e),o={queryKey:this.queryKey,meta:this.meta};return n(o),h(this,ht,!1),this.options.persister?this.options.persister(c,o,this):c(o)},u={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};n(u),(O=this.options.behavior)==null||O.onFetch(u,this),h(this,wt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=u.fetchOptions)==null?void 0:v.meta))&&y(this,H,z).call(this,{type:"fetch",meta:(p=u.fetchOptions)==null?void 0:p.meta});const l=c=>{var o,d,P,D;_t(c)&&c.silent||y(this,H,z).call(this,{type:"error",error:c}),_t(c)||((d=(o=r(this,K).config).onError)==null||d.call(o,c,this),(D=(P=r(this,K).config).onSettled)==null||D.call(P,this.state.data,c,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return h(this,U,Le({initialPromise:e==null?void 0:e.initialPromise,fn:u.fetchFn,abort:i.abort.bind(i),onSuccess:c=>{var o,d,P,D;if(c===void 0){l(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(F){l(F);return}(d=(o=r(this,K).config).onSuccess)==null||d.call(o,c,this),(D=(P=r(this,K).config).onSettled)==null||D.call(P,c,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(c,o)=>{y(this,H,z).call(this,{type:"failed",failureCount:c,error:o})},onPause:()=>{y(this,H,z).call(this,{type:"pause"})},onContinue:()=>{y(this,H,z).call(this,{type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0})),r(this,U).start()}},Ct=new WeakMap,wt=new WeakMap,K=new WeakMap,U=new WeakMap,It=new WeakMap,ht=new WeakMap,H=new WeakSet,z=function(t){const e=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...He(i.data,this.options),fetchMeta:t.meta??null};case"success":return{...i,data:t.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=t.error;return _t(n)&&n.revert&&r(this,wt)?{...r(this,wt),fetchStatus:"idle"}:{...i,error:n,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=e(this.state),A.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),r(this,K).notify({query:this,type:"updated",action:t})})},Oe);function He(s,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xe(t.networkMode)?"fetching":"paused",...s===void 0&&{error:null,status:"pending"}}}function hs(s){const t=typeof s.initialData=="function"?s.initialData():s.initialData,e=t!==void 0,i=e?typeof s.initialDataUpdatedAt=="function"?s.initialDataUpdatedAt():s.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:e?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:e?"success":"pending",fetchStatus:"idle"}}var _,Ce,Ne=(Ce=class extends At{constructor(e={}){super();f(this,_);this.config=e,h(this,_,new Map)}build(e,i,n){const a=i.queryKey,u=i.queryHash??ae(a,i);let l=this.get(u);return l||(l=new os({cache:this,queryKey:a,queryHash:u,options:e.defaultQueryOptions(i),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){r(this,_).has(e.queryHash)||(r(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const i=r(this,_).get(e.queryHash);i&&(e.destroy(),i===e&&r(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return r(this,_).get(e)}getAll(){return[...r(this,_).values()]}find(e){const i={exact:!0,...e};return this.getAll().find(n=>ce(i,n))}findAll(e={}){const i=this.getAll();return Object.keys(e).length>0?i.filter(n=>ce(e,n)):i}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}onFocus(){A.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){A.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},_=new WeakMap,Ce),B,q,ct,$,X,we,cs=(we=class extends ke{constructor(t){super();f(this,$);f(this,B);f(this,q);f(this,ct);this.mutationId=t.mutationId,h(this,q,t.mutationCache),h(this,B,[]),this.state=t.state||Ge(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){r(this,B).includes(t)||(r(this,B).push(t),this.clearGcTimeout(),r(this,q).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){h(this,B,r(this,B).filter(e=>e!==t)),this.scheduleGc(),r(this,q).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){r(this,B).length||(this.state.status==="pending"?this.scheduleGc():r(this,q).remove(this))}continue(){var t;return((t=r(this,ct))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var n,a,u,l,O,v,p,c,o,d,P,D,F,C,S,Q,E,M,G,W;h(this,ct,Le({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(g,k)=>{y(this,$,X).call(this,{type:"failed",failureCount:g,error:k})},onPause:()=>{y(this,$,X).call(this,{type:"pause"})},onContinue:()=>{y(this,$,X).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>r(this,q).canRun(this)}));const e=this.state.status==="pending",i=!r(this,ct).canStart();try{if(!e){y(this,$,X).call(this,{type:"pending",variables:t,isPaused:i}),await((a=(n=r(this,q).config).onMutate)==null?void 0:a.call(n,t,this));const k=await((l=(u=this.options).onMutate)==null?void 0:l.call(u,t));k!==this.state.context&&y(this,$,X).call(this,{type:"pending",context:k,variables:t,isPaused:i})}const g=await r(this,ct).start();return await((v=(O=r(this,q).config).onSuccess)==null?void 0:v.call(O,g,t,this.state.context,this)),await((c=(p=this.options).onSuccess)==null?void 0:c.call(p,g,t,this.state.context)),await((d=(o=r(this,q).config).onSettled)==null?void 0:d.call(o,g,null,this.state.variables,this.state.context,this)),await((D=(P=this.options).onSettled)==null?void 0:D.call(P,g,null,t,this.state.context)),y(this,$,X).call(this,{type:"success",data:g}),g}catch(g){try{throw await((C=(F=r(this,q).config).onError)==null?void 0:C.call(F,g,t,this.state.context,this)),await((Q=(S=this.options).onError)==null?void 0:Q.call(S,g,t,this.state.context)),await((M=(E=r(this,q).config).onSettled)==null?void 0:M.call(E,void 0,g,this.state.variables,this.state.context,this)),await((W=(G=this.options).onSettled)==null?void 0:W.call(G,void 0,g,t,this.state.context)),g}finally{y(this,$,X).call(this,{type:"error",error:g})}}finally{r(this,q).runNext(this)}}},B=new WeakMap,q=new WeakMap,ct=new WeakMap,$=new WeakSet,X=function(t){const e=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),A.batch(()=>{r(this,B).forEach(i=>{i.onMutationUpdate(t)}),r(this,q).notify({mutation:this,type:"updated",action:t})})},we);function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var x,Tt,Qe,_e=(Qe=class extends At{constructor(e={}){super();f(this,x);f(this,Tt);this.config=e,h(this,x,new Map),h(this,Tt,Date.now())}build(e,i,n){const a=new cs({mutationCache:this,mutationId:++Kt(this,Tt)._,options:e.defaultMutationOptions(i),state:n});return this.add(a),a}add(e){const i=Lt(e),n=r(this,x).get(i)??[];n.push(e),r(this,x).set(i,n),this.notify({type:"added",mutation:e})}remove(e){var n;const i=Lt(e);if(r(this,x).has(i)){const a=(n=r(this,x).get(i))==null?void 0:n.filter(u=>u!==e);a&&(a.length===0?r(this,x).delete(i):r(this,x).set(i,a))}this.notify({type:"removed",mutation:e})}canRun(e){var n;const i=(n=r(this,x).get(Lt(e)))==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===e}runNext(e){var n;const i=(n=r(this,x).get(Lt(e)))==null?void 0:n.find(a=>a!==e&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}clear(){A.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...r(this,x).values()].flat()}find(e){const i={exact:!0,...e};return this.getAll().find(n=>le(i,n))}findAll(e={}){return this.getAll().filter(i=>le(e,i))}notify(e){A.batch(()=>{this.listeners.forEach(i=>{i(e)})})}resumePausedMutations(){const e=this.getAll().filter(i=>i.state.isPaused);return A.batch(()=>Promise.all(e.map(i=>i.continue().catch(L))))}},x=new WeakMap,Tt=new WeakMap,Qe);function Lt(s){var t;return((t=s.options.scope)==null?void 0:t.id)??String(s.mutationId)}function ls(s){return{onFetch:(t,e)=>{const i=async()=>{var P,D,F,C,S;const n=t.options,a=(F=(D=(P=t.fetchOptions)==null?void 0:P.meta)==null?void 0:D.fetchMore)==null?void 0:F.direction,u=((C=t.state.data)==null?void 0:C.pages)||[],l=((S=t.state.data)==null?void 0:S.pageParams)||[],O={pages:[],pageParams:[]};let v=!1;const p=Q=>{Object.defineProperty(Q,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},c=je(t.options,t.fetchOptions),o=async(Q,E,M)=>{if(v)return Promise.reject();if(E==null&&Q.pages.length)return Promise.resolve(Q);const G={queryKey:t.queryKey,pageParam:E,direction:M?"backward":"forward",meta:t.options.meta};p(G);const W=await c(G),{maxPages:g}=t.options,k=M?is:ss;return{pages:k(Q.pages,W,g),pageParams:k(Q.pageParams,E,g)}};let d;if(a&&u.length){const Q=a==="backward",E=Q?fs:ye,M={pages:u,pageParams:l},G=E(n,M);d=await o(M,G,Q)}else{d=await o(O,l[0]??n.initialPageParam);const Q=s??u.length;for(let E=1;E<Q;E++){const M=ye(n,d);if(M==null)break;d=await o(d,M)}}return d};t.options.persister?t.fetchFn=()=>{var n,a;return(a=(n=t.options).persister)==null?void 0:a.call(n,i,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},e)}:t.fetchFn=i}}}function ye(s,{pages:t,pageParams:e}){const i=t.length-1;return t.length>0?s.getNextPageParam(t[i],t,e[i],e):void 0}function fs(s,{pages:t,pageParams:e}){var i;return t.length>0?(i=s.getPreviousPageParam)==null?void 0:i.call(s,t[0],t,e[0],e):void 0}var R,et,st,Qt,St,it,Pt,Ft,Se,ds=(Se=class{constructor(t={}){f(this,R);f(this,et);f(this,st);f(this,Qt);f(this,St);f(this,it);f(this,Pt);f(this,Ft);h(this,R,t.queryCache||new Ne),h(this,et,t.mutationCache||new _e),h(this,st,t.defaultOptions||{}),h(this,Qt,new Map),h(this,St,new Map),h(this,it,0)}mount(){Kt(this,it)._++,r(this,it)===1&&(h(this,Pt,ue.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onFocus())})),h(this,Ft,Nt.subscribe(async t=>{t&&(await this.resumePausedMutations(),r(this,R).onOnline())})))}unmount(){var t,e;Kt(this,it)._--,r(this,it)===0&&((t=r(this,Pt))==null||t.call(this),h(this,Pt,void 0),(e=r(this,Ft))==null||e.call(this),h(this,Ft,void 0))}isFetching(t){return r(this,R).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return r(this,et).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const e=this.getQueryData(t.queryKey);if(e===void 0)return this.fetchQuery(t);{const i=this.defaultQueryOptions(t),n=r(this,R).build(this,i);return t.revalidateIfStale&&n.isStaleByTime(vt(i.staleTime,n))&&this.prefetchQuery(i),Promise.resolve(e)}}getQueriesData(t){return r(this,R).findAll(t).map(({queryKey:e,state:i})=>{const n=i.data;return[e,n]})}setQueryData(t,e,i){const n=this.defaultQueryOptions({queryKey:t}),a=r(this,R).get(n.queryHash),u=a==null?void 0:a.state.data,l=ts(e,u);if(l!==void 0)return r(this,R).build(this,n).setData(l,{...i,manual:!0})}setQueriesData(t,e,i){return A.batch(()=>r(this,R).findAll(t).map(({queryKey:n})=>[n,this.setQueryData(n,e,i)]))}getQueryState(t){var i;const e=this.defaultQueryOptions({queryKey:t});return(i=r(this,R).get(e.queryHash))==null?void 0:i.state}removeQueries(t){const e=r(this,R);A.batch(()=>{e.findAll(t).forEach(i=>{e.remove(i)})})}resetQueries(t,e){const i=r(this,R),n={type:"active",...t};return A.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries(n,e)))}cancelQueries(t={},e={}){const i={revert:!0,...e},n=A.batch(()=>r(this,R).findAll(t).map(a=>a.cancel(i)));return Promise.all(n).then(L).catch(L)}invalidateQueries(t={},e={}){return A.batch(()=>{if(r(this,R).findAll(t).forEach(n=>{n.invalidate()}),t.refetchType==="none")return Promise.resolve();const i={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(i,e)})}refetchQueries(t={},e){const i={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},n=A.batch(()=>r(this,R).findAll(t).filter(a=>!a.isDisabled()).map(a=>{let u=a.fetch(void 0,i);return i.throwOnError||(u=u.catch(L)),a.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(n).then(L)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const i=r(this,R).build(this,e);return i.isStaleByTime(vt(e.staleTime,i))?i.fetch(e):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(L).catch(L)}fetchInfiniteQuery(t){return t.behavior=ls(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(L).catch(L)}resumePausedMutations(){return Nt.isOnline()?r(this,et).resumePausedMutations():Promise.resolve()}getQueryCache(){return r(this,R)}getMutationCache(){return r(this,et)}getDefaultOptions(){return r(this,st)}setDefaultOptions(t){h(this,st,t)}setQueryDefaults(t,e){r(this,Qt).set(pt(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...r(this,Qt).values()];let i={};return e.forEach(n=>{qt(t,n.queryKey)&&(i={...i,...n.defaultOptions})}),i}setMutationDefaults(t,e){r(this,St).set(pt(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...r(this,St).values()];let i={};return e.forEach(n=>{qt(t,n.mutationKey)&&(i={...i,...n.defaultOptions})}),i}defaultQueryOptions(t){if(t._defaulted)return t;const e={...r(this,st).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=ae(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.enabled!==!0&&e.queryFn===Te&&(e.enabled=!1),e}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...r(this,st).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){r(this,R).clear(),r(this,et).clear()}},R=new WeakMap,et=new WeakMap,st=new WeakMap,Qt=new WeakMap,St=new WeakMap,it=new WeakMap,Pt=new WeakMap,Ft=new WeakMap,Se),T,b,jt,I,lt,Rt,V,xt,Dt,Et,ft,dt,rt,Mt,w,Ut,Wt,zt,Yt,Jt,Xt,Zt,te,Be,Pe,ys=(Pe=class extends At{constructor(t,e){super();f(this,w);f(this,T);f(this,b);f(this,jt);f(this,I);f(this,lt);f(this,Rt);f(this,V);f(this,xt);f(this,Dt);f(this,Et);f(this,ft);f(this,dt);f(this,rt);f(this,Mt,new Set);this.options=e,h(this,T,t),h(this,V,null),this.bindMethods(),this.setOptions(e)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(r(this,b).addObserver(this),pe(r(this,b),this.options)?y(this,w,Ut).call(this):this.updateResult(),y(this,w,Jt).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ee(r(this,b),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ee(r(this,b),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,y(this,w,Xt).call(this),y(this,w,Zt).call(this),r(this,b).removeObserver(this)}setOptions(t,e){const i=this.options,n=r(this,b);if(this.options=r(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof N(this.options.enabled,r(this,b))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");y(this,w,te).call(this),r(this,b).setOptions(this.options),i._defaulted&&!Ht(this.options,i)&&r(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:r(this,b),observer:this});const a=this.hasListeners();a&&me(r(this,b),n,this.options,i)&&y(this,w,Ut).call(this),this.updateResult(e),a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||vt(this.options.staleTime,r(this,b))!==vt(i.staleTime,r(this,b)))&&y(this,w,Wt).call(this);const u=y(this,w,zt).call(this);a&&(r(this,b)!==n||N(this.options.enabled,r(this,b))!==N(i.enabled,r(this,b))||u!==r(this,rt))&&y(this,w,Yt).call(this,u)}getOptimisticResult(t){const e=r(this,T).getQueryCache().build(r(this,T),t),i=this.createResult(e,t);return ms(this,i)&&(h(this,I,i),h(this,Rt,this.options),h(this,lt,r(this,b).state)),i}getCurrentResult(){return r(this,I)}trackResult(t,e){const i={};return Object.keys(t).forEach(n=>{Object.defineProperty(i,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),e==null||e(n),t[n])})}),i}trackProp(t){r(this,Mt).add(t)}getCurrentQuery(){return r(this,b)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=r(this,T).defaultQueryOptions(t),i=r(this,T).getQueryCache().build(r(this,T),e);return i.isFetchingOptimistic=!0,i.fetch().then(()=>this.createResult(i,e))}fetch(t){return y(this,w,Ut).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),r(this,I)))}createResult(t,e){var W;const i=r(this,b),n=this.options,a=r(this,I),u=r(this,lt),l=r(this,Rt),v=t!==i?t.state:r(this,jt),{state:p}=t;let c={...p},o=!1,d;if(e._optimisticResults){const g=this.hasListeners(),k=!g&&pe(t,e),We=g&&me(t,i,e,n);(k||We)&&(c={...c,...He(p.data,t.options)}),e._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:P,errorUpdatedAt:D,status:F}=c;if(e.select&&c.data!==void 0)if(a&&c.data===(u==null?void 0:u.data)&&e.select===r(this,xt))d=r(this,Dt);else try{h(this,xt,e.select),d=e.select(c.data),d=Vt(a==null?void 0:a.data,d,e),h(this,Dt,d),h(this,V,null)}catch(g){h(this,V,g)}else d=c.data;if(e.placeholderData!==void 0&&d===void 0&&F==="pending"){let g;if(a!=null&&a.isPlaceholderData&&e.placeholderData===(l==null?void 0:l.placeholderData))g=a.data;else if(g=typeof e.placeholderData=="function"?e.placeholderData((W=r(this,Et))==null?void 0:W.state.data,r(this,Et)):e.placeholderData,e.select&&g!==void 0)try{g=e.select(g),h(this,V,null)}catch(k){h(this,V,k)}g!==void 0&&(F="success",d=Vt(a==null?void 0:a.data,g,e),o=!0)}r(this,V)&&(P=r(this,V),d=r(this,Dt),D=Date.now(),F="error");const C=c.fetchStatus==="fetching",S=F==="pending",Q=F==="error",E=S&&C,M=d!==void 0;return{status:F,fetchStatus:c.fetchStatus,isPending:S,isSuccess:F==="success",isError:Q,isInitialLoading:E,isLoading:E,data:d,dataUpdatedAt:c.dataUpdatedAt,error:P,errorUpdatedAt:D,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>v.dataUpdateCount||c.errorUpdateCount>v.errorUpdateCount,isFetching:C,isRefetching:C&&!S,isLoadingError:Q&&!M,isPaused:c.fetchStatus==="paused",isPlaceholderData:o,isRefetchError:Q&&M,isStale:oe(t,e),refetch:this.refetch}}updateResult(t){const e=r(this,I),i=this.createResult(r(this,b),this.options);if(h(this,lt,r(this,b).state),h(this,Rt,this.options),r(this,lt).data!==void 0&&h(this,Et,r(this,b)),Ht(i,e))return;h(this,I,i);const n={},a=()=>{if(!e)return!0;const{notifyOnChangeProps:u}=this.options,l=typeof u=="function"?u():u;if(l==="all"||!l&&!r(this,Mt).size)return!0;const O=new Set(l??r(this,Mt));return this.options.throwOnError&&O.add("error"),Object.keys(r(this,I)).some(v=>{const p=v;return r(this,I)[p]!==e[p]&&O.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(n.listeners=!0),y(this,w,Be).call(this,{...n,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&y(this,w,Jt).call(this)}},T=new WeakMap,b=new WeakMap,jt=new WeakMap,I=new WeakMap,lt=new WeakMap,Rt=new WeakMap,V=new WeakMap,xt=new WeakMap,Dt=new WeakMap,Et=new WeakMap,ft=new WeakMap,dt=new WeakMap,rt=new WeakMap,Mt=new WeakMap,w=new WeakSet,Ut=function(t){y(this,w,te).call(this);let e=r(this,b).fetch(this.options,t);return t!=null&&t.throwOnError||(e=e.catch(L)),e},Wt=function(){y(this,w,Xt).call(this);const t=vt(this.options.staleTime,r(this,b));if(yt||r(this,I).isStale||!Bt(t))return;const i=qe(r(this,I).dataUpdatedAt,t)+1;h(this,ft,setTimeout(()=>{r(this,I).isStale||this.updateResult()},i))},zt=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(r(this,b)):this.options.refetchInterval)??!1},Yt=function(t){y(this,w,Zt).call(this),h(this,rt,t),!(yt||N(this.options.enabled,r(this,b))===!1||!Bt(r(this,rt))||r(this,rt)===0)&&h(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||ue.isFocused())&&y(this,w,Ut).call(this)},r(this,rt)))},Jt=function(){y(this,w,Wt).call(this),y(this,w,Yt).call(this,y(this,w,zt).call(this))},Xt=function(){r(this,ft)&&(clearTimeout(r(this,ft)),h(this,ft,void 0))},Zt=function(){r(this,dt)&&(clearInterval(r(this,dt)),h(this,dt,void 0))},te=function(){const t=r(this,T).getQueryCache().build(r(this,T),this.options);if(t===r(this,b))return;const e=r(this,b);h(this,b,t),h(this,jt,t.state),this.hasListeners()&&(e==null||e.removeObserver(this),t.addObserver(this))},Be=function(t){A.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(r(this,I))}),r(this,T).getQueryCache().notify({query:r(this,b),type:"observerResultsUpdated"})})},Pe);function ps(s,t){return N(t.enabled,s)!==!1&&s.state.data===void 0&&!(s.state.status==="error"&&t.retryOnMount===!1)}function pe(s,t){return ps(s,t)||s.state.data!==void 0&&ee(s,t,t.refetchOnMount)}function ee(s,t,e){if(N(t.enabled,s)!==!1){const i=typeof e=="function"?e(s):e;return i==="always"||i!==!1&&oe(s,t)}return!1}function me(s,t,e,i){return(s!==t||N(i.enabled,s)===!1)&&(!e.suspense||s.state.status!=="error")&&oe(s,e)}function oe(s,t){return N(t.enabled,s)!==!1&&s.isStaleByTime(vt(t.staleTime,s))}function ms(s,t){return!Ht(s.getCurrentResult(),t)}var nt,at,j,Y,J,kt,se,Fe,vs=(Fe=class extends At{constructor(t,e){super();f(this,J);f(this,nt);f(this,at);f(this,j);f(this,Y);h(this,nt,t),this.setOptions(e),this.bindMethods(),y(this,J,kt).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var i;const e=this.options;this.options=r(this,nt).defaultMutationOptions(t),Ht(this.options,e)||r(this,nt).getMutationCache().notify({type:"observerOptionsUpdated",mutation:r(this,j),observer:this}),e!=null&&e.mutationKey&&this.options.mutationKey&&pt(e.mutationKey)!==pt(this.options.mutationKey)?this.reset():((i=r(this,j))==null?void 0:i.state.status)==="pending"&&r(this,j).setOptions(this.options)}onUnsubscribe(){var t;this.hasListeners()||(t=r(this,j))==null||t.removeObserver(this)}onMutationUpdate(t){y(this,J,kt).call(this),y(this,J,se).call(this,t)}getCurrentResult(){return r(this,at)}reset(){var t;(t=r(this,j))==null||t.removeObserver(this),h(this,j,void 0),y(this,J,kt).call(this),y(this,J,se).call(this)}mutate(t,e){var i;return h(this,Y,e),(i=r(this,j))==null||i.removeObserver(this),h(this,j,r(this,nt).getMutationCache().build(r(this,nt),this.options)),r(this,j).addObserver(this),r(this,j).execute(t)}},nt=new WeakMap,at=new WeakMap,j=new WeakMap,Y=new WeakMap,J=new WeakSet,kt=function(){var e;const t=((e=r(this,j))==null?void 0:e.state)??Ge();h(this,at,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},se=function(t){A.batch(()=>{var e,i,n,a,u,l,O,v;if(r(this,Y)&&this.hasListeners()){const p=r(this,at).variables,c=r(this,at).context;(t==null?void 0:t.type)==="success"?((i=(e=r(this,Y)).onSuccess)==null||i.call(e,t.data,p,c),(a=(n=r(this,Y)).onSettled)==null||a.call(n,t.data,null,p,c)):(t==null?void 0:t.type)==="error"&&((l=(u=r(this,Y)).onError)==null||l.call(u,t.error,p,c),(v=(O=r(this,Y)).onSettled)==null||v.call(O,void 0,t.error,p,c))}this.listeners.forEach(p=>{p(r(this,at))})})},Fe),bs="VUE_QUERY_CLIENT";function $e(s){const t=s?`:${s}`:"";return`${bs}${t}`}function ie(s,t){Object.keys(s).forEach(e=>{s[e]=t[e]})}function re(s,t,e="",i=0){if(t){const n=t(s,e,i);if(n===void 0&&Re(s)||n!==void 0)return n}if(Array.isArray(s))return s.map((n,a)=>re(n,t,String(a),i+1));if(typeof s=="object"&&Os(s)){const n=Object.entries(s).map(([a,u])=>[a,re(u,t,a,i+1)]);return Object.fromEntries(n)}return s}function gs(s,t){return re(s,t)}function m(s,t=!1){return gs(s,(e,i,n)=>{if(n===1&&i==="queryKey")return m(e,!0);if(t&&Cs(e))return m(e(),t);if(Re(e))return m(ze(e),t)})}function Os(s){if(Object.prototype.toString.call(s)!=="[object Object]")return!1;const t=Object.getPrototypeOf(s);return t===null||t===Object.prototype}function Cs(s){return typeof s=="function"}function ne(s,t){return typeof s=="function"?s(...t):!!s}function Ve(s=""){if(!Ye())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=$e(s),e=Je(t);if(!e)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return e}var ws=class extends Ne{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Qs=class extends _e{find(s){return super.find(m(s))}findAll(s={}){return super.findAll(m(s))}},Ss=class extends ds{constructor(s={}){const t={defaultOptions:s.defaultOptions,queryCache:s.queryCache||new ws,mutationCache:s.mutationCache||new Qs};super(t),this.isRestoring=Xe(!1)}isFetching(s={}){return super.isFetching(m(s))}isMutating(s={}){return super.isMutating(m(s))}getQueryData(s){return super.getQueryData(m(s))}ensureQueryData(s){return super.ensureQueryData(m(s))}getQueriesData(s){return super.getQueriesData(m(s))}setQueryData(s,t,e={}){return super.setQueryData(m(s),t,m(e))}setQueriesData(s,t,e={}){return super.setQueriesData(m(s),t,m(e))}getQueryState(s){return super.getQueryState(m(s))}removeQueries(s={}){return super.removeQueries(m(s))}resetQueries(s={},t={}){return super.resetQueries(m(s),m(t))}cancelQueries(s={},t={}){return super.cancelQueries(m(s),m(t))}invalidateQueries(s={},t={}){const e=m(s),i=m(t);if(super.invalidateQueries({...e,refetchType:"none"},i),e.refetchType==="none")return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return Ze().then(()=>super.refetchQueries(n,i))}refetchQueries(s={},t={}){return super.refetchQueries(m(s),m(t))}fetchQuery(s){return super.fetchQuery(m(s))}prefetchQuery(s){return super.prefetchQuery(m(s))}fetchInfiniteQuery(s){return super.fetchInfiniteQuery(m(s))}prefetchInfiniteQuery(s){return super.prefetchInfiniteQuery(m(s))}setDefaultOptions(s){super.setDefaultOptions(m(s))}setQueryDefaults(s,t){super.setQueryDefaults(m(s),m(t))}getQueryDefaults(s){return super.getQueryDefaults(m(s))}setMutationDefaults(s,t){super.setMutationDefaults(m(s),m(t))}getMutationDefaults(s){return super.getMutationDefaults(m(s))}},As={install:(s,t={})=>{const e=$e(t.queryClientKey);let i;if("queryClient"in t&&t.queryClient)i=t.queryClient;else{const u="queryClientConfig"in t?t.queryClientConfig:void 0;i=new Ss(u)}yt||i.mount();let n=()=>{};if(t.clientPersister){i.isRestoring.value=!0;const[u,l]=t.clientPersister(i);n=u,l.then(()=>{var O;i.isRestoring.value=!1,(O=t.clientPersisterOnSuccess)==null||O.call(t,i)})}const a=()=>{i.unmount(),n()};if(s.onUnmount)s.onUnmount(a);else{const u=s.unmount;s.unmount=function(){a(),u()}}s.provide(e,i)}};function Ps(s,t,e){const i=Ve(),n=De(()=>{const o=m(t);typeof o.enabled=="function"&&(o.enabled=o.enabled());const d=i.defaultQueryOptions(o);return d._optimisticResults=i.isRestoring.value?"isRestoring":"optimistic",d}),a=new s(i,n.value),u=Ee(a.getCurrentResult());let l=()=>{};mt(i.isRestoring,o=>{o||(l(),l=a.subscribe(d=>{ie(u,d)}))},{immediate:!0});const O=()=>{a.setOptions(n.value),ie(u,a.getCurrentResult())};mt(n,O),Me(()=>{l()});const v=(...o)=>(O(),u.refetch(...o)),p=()=>new Promise((o,d)=>{let P=()=>{};const D=()=>{if(n.value.enabled!==!1){a.setOptions(n.value);const F=a.getOptimisticResult(n.value);F.isStale?(P(),a.fetchOptimistic(n.value).then(o,C=>{ne(n.value.throwOnError,[C,a.getCurrentQuery()])?d(C):o(a.getCurrentResult())})):(P(),o(F))}};D(),P=mt(n,D)});mt(()=>u.error,o=>{if(u.isError&&!u.isFetching&&ne(n.value.throwOnError,[o,a.getCurrentQuery()]))throw o});const c=Ae(Ue(u));for(const o in u)typeof u[o]=="function"&&(c[o]=u[o]);return c.suspense=p,c.refetch=v,c}function Us(s,t){return Ps(ys,s)}function qs(s,t){const e=Ve(),i=De(()=>e.defaultMutationOptions(m(s))),n=new vs(e,i.value),a=Ee(n.getCurrentResult()),u=n.subscribe(v=>{ie(a,v)}),l=(v,p)=>{n.mutate(v,p).catch(()=>{})};mt(i,()=>{n.setOptions(i.value)}),Me(()=>{u()});const O=Ae(Ue(a));return mt(()=>a.error,v=>{if(v&&ne(i.value.throwOnError,[v]))throw v}),{...O,mutate:l,mutateAsync:a.mutate,reset:a.reset}}export{Ss as Q,As as V,Us as a,qs as b,Ve as u};
|
package/dist/interface/{@vee-validate.Bhj8jpyd.0.0.21.js → @vee-validate.CBoqAk51.0.0.22-alpha.1.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as s,a as h,b as a}from"./zod.BaF2dDCd.0.0.
|
|
1
|
+
import{Z as s,a as h,b as a}from"./zod.BaF2dDCd.0.0.22-alpha.1.js";import{i as j,c as y}from"./vee-validate.CpAAwmyb.0.0.22-alpha.1.js";/**
|
|
2
2
|
* vee-validate v4.13.2
|
|
3
3
|
* (c) 2024 Abdelrahman Awad
|
|
4
4
|
* @license MIT
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @vue/shared v3.5.1
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function xs(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const q={},gt=[],Le=()=>{},go=()=>!1,In=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Cs=e=>e.startsWith("onUpdate:"),ie=Object.assign,Ts=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},mo=Object.prototype.hasOwnProperty,z=(e,t)=>mo.call(e,t),D=Array.isArray,mt=e=>St(e)==="[object Map]",Fn=e=>St(e)==="[object Set]",tr=e=>St(e)==="[object Date]",yo=e=>St(e)==="[object RegExp]",$=e=>typeof e=="function",ne=e=>typeof e=="string",Be=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",ws=e=>(Z(e)||$(e))&&$(e.then)&&$(e.catch),Vr=Object.prototype.toString,St=e=>Vr.call(e),_o=e=>St(e).slice(8,-1),Hr=e=>St(e)==="[object Object]",Es=e=>ne(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lt=xs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),On=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bo=/-(\w)/g,Ae=On(e=>e.replace(bo,(t,n)=>n?n.toUpperCase():"")),vo=/\B([A-Z])/g,Ue=On(e=>e.replace(vo,"-$1").toLowerCase()),Mn=On(e=>e.charAt(0).toUpperCase()+e.slice(1)),fn=On(e=>e?`on${Mn(e)}`:""),_e=(e,t)=>!Object.is(e,t),yt=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},jr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},xo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Kr=e=>{const t=ne(e)?Number(e):NaN;return isNaN(t)?e:t};let nr;const kr=()=>nr||(nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Pn(e){if(D(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ne(s)?Eo(s):Pn(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ne(e)||Z(e))return e}const Co=/;(?![^(]*\))/g,To=/:([^]+)/,wo=/\/\*[^]*?\*\//g;function Eo(e){const t={};return e.replace(wo,"").split(Co).forEach(n=>{if(n){const s=n.split(To);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rn(e){let t="";if(ne(e))t=e;else if(D(e))for(let n=0;n<e.length;n++){const s=Rn(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function of(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ne(t)&&(e.class=Rn(t)),n&&(e.style=Pn(n)),e}const So="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ao=xs(So);function Ur(e){return!!e||e===""}function Io(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ct(e[s],t[s]);return n}function Ct(e,t){if(e===t)return!0;let n=tr(e),s=tr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Be(e),s=Be(t),n||s)return e===t;if(n=D(e),s=D(t),n||s)return n&&s?Io(e,t):!1;if(n=Z(e),s=Z(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Ct(e[o],t[o]))return!1}}return String(e)===String(t)}function Wr(e,t){return e.findIndex(n=>Ct(n,t))}const Gr=e=>!!(e&&e.__v_isRef===!0),Fo=e=>ne(e)?e:e==null?"":D(e)||Z(e)&&(e.toString===Vr||!$(e.toString))?Gr(e)?Fo(e.value):JSON.stringify(e,qr,2):String(e),qr=(e,t)=>Gr(t)?qr(e,t.value):mt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Wn(s,i)+" =>"]=r,n),{})}:Fn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Wn(n))}:Be(t)?Wn(t):Z(t)&&!D(t)&&!Hr(t)?String(t):t,Wn=(e,t="")=>{var n;return Be(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.1
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let me;class Jr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=me,!t&&me&&(this.index=(me.scopes||(me.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=me;try{return me=this,t()}finally{me=n}}}on(){me=this}off(){me=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function lf(e){return new Jr(e)}function Oo(){return me}function cf(e,t=!1){me&&me.cleanups.push(e)}let te;const Gn=new WeakSet;class Yr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.nextEffect=void 0,this.cleanup=void 0,this.scheduler=void 0,me&&me.active&&me.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Gn.has(this)&&(Gn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||(this.flags|=8,this.nextEffect=Bt,Bt=this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,sr(this),Zr(this);const t=te,n=Me;te=this,Me=!0;try{return this.fn()}finally{Xr(this),te=t,Me=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Is(t);this.deps=this.depsTail=void 0,sr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Gn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ss(this)&&this.run()}get dirty(){return ss(this)}}let zr=0,Bt;function Ss(){zr++}function As(){if(--zr>0)return;let e;for(;Bt;){let t=Bt;for(Bt=void 0;t;){const n=t.nextEffect;if(t.nextEffect=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Zr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xr(e){let t,n=e.depsTail;for(let s=n;s;s=s.prevDep)s.version===-1?(s===n&&(n=s.prevDep),Is(s),Mo(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0;e.deps=t,e.depsTail=n}function ss(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&Qr(t.dep.computed)===!1||t.dep.version!==t.version)return!0;return!!e._dirty}function Qr(e){if(e.flags&2)return!1;if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kt))return;e.globalVersion=Kt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&!ss(e)){e.flags&=-3;return}const n=te,s=Me;te=e,Me=!0;try{Zr(e);const r=e.fn();(t.version===0||_e(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{te=n,Me=s,Xr(e),e.flags&=-3}}function Is(e){const{dep:t,prevSub:n,nextSub:s}=e;if(n&&(n.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=n,e.nextSub=void 0),t.subs===e&&(t.subs=n),!t.subs&&t.computed){t.computed.flags&=-5;for(let r=t.computed.deps;r;r=r.nextDep)Is(r)}}function Mo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Me=!0;const ei=[];function Xe(){ei.push(Me),Me=!1}function Qe(){const e=ei.pop();Me=e===void 0?!0:e}function sr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=te;te=void 0;try{t()}finally{te=n}}}let Kt=0;class Dn{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0}track(t){if(!te||!Me)return;let n=this.activeLink;if(n===void 0||n.sub!==te)n=this.activeLink={dep:this,sub:te,version:this.version,nextDep:void 0,prevDep:void 0,nextSub:void 0,prevSub:void 0,prevActiveLink:void 0},te.deps?(n.prevDep=te.depsTail,te.depsTail.nextDep=n,te.depsTail=n):te.deps=te.depsTail=n,te.flags&4&&ti(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=te.depsTail,n.nextDep=void 0,te.depsTail.nextDep=n,te.depsTail=n,te.deps===n&&(te.deps=s)}return n}trigger(t){this.version++,Kt++,this.notify(t)}notify(t){Ss();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()}finally{As()}}}function ti(e){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ti(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}const gn=new WeakMap,lt=Symbol(""),rs=Symbol(""),kt=Symbol("");function he(e,t,n){if(Me&&te){let s=gn.get(e);s||gn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=new Dn),r.track()}}function Ke(e,t,n,s,r,i){const o=gn.get(e);if(!o){Kt++;return}let l=[];if(t==="clear")l=[...o.values()];else{const c=D(e),h=c&&Es(n);if(c&&n==="length"){const u=Number(s);o.forEach((a,p)=>{(p==="length"||p===kt||!Be(p)&&p>=u)&&l.push(a)})}else{const u=a=>a&&l.push(a);switch(n!==void 0&&u(o.get(n)),h&&u(o.get(kt)),t){case"add":c?h&&u(o.get("length")):(u(o.get(lt)),mt(e)&&u(o.get(rs)));break;case"delete":c||(u(o.get(lt)),mt(e)&&u(o.get(rs)));break;case"set":mt(e)&&u(o.get(lt));break}}}Ss();for(const c of l)c.trigger();As()}function Po(e,t){var n;return(n=gn.get(e))==null?void 0:n.get(t)}function ht(e){const t=J(e);return t===e?t:(he(t,"iterate",kt),Pe(e)?t:t.map(de))}function Nn(e){return he(e=J(e),"iterate",kt),e}const Ro={__proto__:null,[Symbol.iterator](){return qn(this,Symbol.iterator,de)},concat(...e){return ht(this).concat(...e.map(t=>D(t)?ht(t):t))},entries(){return qn(this,"entries",e=>(e[1]=de(e[1]),e))},every(e,t){return $e(this,"every",e,t,void 0,arguments)},filter(e,t){return $e(this,"filter",e,t,n=>n.map(de),arguments)},find(e,t){return $e(this,"find",e,t,de,arguments)},findIndex(e,t){return $e(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return $e(this,"findLast",e,t,de,arguments)},findLastIndex(e,t){return $e(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return $e(this,"forEach",e,t,void 0,arguments)},includes(...e){return Jn(this,"includes",e)},indexOf(...e){return Jn(this,"indexOf",e)},join(e){return ht(this).join(e)},lastIndexOf(...e){return Jn(this,"lastIndexOf",e)},map(e,t){return $e(this,"map",e,t,void 0,arguments)},pop(){return Mt(this,"pop")},push(...e){return Mt(this,"push",e)},reduce(e,...t){return rr(this,"reduce",e,t)},reduceRight(e,...t){return rr(this,"reduceRight",e,t)},shift(){return Mt(this,"shift")},some(e,t){return $e(this,"some",e,t,void 0,arguments)},splice(...e){return Mt(this,"splice",e)},toReversed(){return ht(this).toReversed()},toSorted(e){return ht(this).toSorted(e)},toSpliced(...e){return ht(this).toSpliced(...e)},unshift(...e){return Mt(this,"unshift",e)},values(){return qn(this,"values",de)}};function qn(e,t,n){const s=Nn(e),r=s[t]();return s!==e&&!Pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Do=Array.prototype;function $e(e,t,n,s,r,i){const o=Nn(e),l=o!==e&&!Pe(e),c=o[t];if(c!==Do[t]){const a=c.apply(e,i);return l?de(a):a}let h=n;o!==e&&(l?h=function(a,p){return n.call(this,de(a),p,e)}:n.length>2&&(h=function(a,p){return n.call(this,a,p,e)}));const u=c.call(o,h,s);return l&&r?r(u):u}function rr(e,t,n,s){const r=Nn(e);let i=n;return r!==e&&(Pe(e)?n.length>3&&(i=function(o,l,c){return n.call(this,o,l,c,e)}):i=function(o,l,c){return n.call(this,o,de(l),c,e)}),r[t](i,...s)}function Jn(e,t,n){const s=J(e);he(s,"iterate",kt);const r=s[t](...n);return(r===-1||r===!1)&&Rs(n[0])?(n[0]=J(n[0]),s[t](...n)):r}function Mt(e,t,n=[]){Xe(),Ss();const s=J(e)[t].apply(e,n);return As(),Qe(),s}const No=xs("__proto__,__v_isRef,__isVue"),ni=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Be));function Lo(e){Be(e)||(e=String(e));const t=J(this);return he(t,"has",e),t.hasOwnProperty(e)}class si{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Yo:li:i?oi:ii).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=D(t);if(!r){let c;if(o&&(c=Ro[n]))return c;if(n==="hasOwnProperty")return Lo}const l=Reflect.get(t,n,ue(t)?t:s);return(Be(n)?ni.has(n):No(n))||(r||he(t,"get",n),i)?l:ue(l)?o&&Es(n)?l:l.value:Z(l)?r?ci(l):Ms(l):l}}class ri extends si{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=ut(i);if(!Pe(s)&&!ut(s)&&(i=J(i),s=J(s)),!D(t)&&ue(i)&&!ue(s))return c?!1:(i.value=s,!0)}const o=D(t)&&Es(n)?Number(n)<t.length:z(t,n),l=Reflect.set(t,n,s,ue(t)?t:r);return t===J(r)&&(o?_e(s,i)&&Ke(t,"set",n,s):Ke(t,"add",n,s)),l}deleteProperty(t,n){const s=z(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ke(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Be(n)||!ni.has(n))&&he(t,"has",n),s}ownKeys(t){return he(t,"iterate",D(t)?"length":lt),Reflect.ownKeys(t)}}class Bo extends si{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const $o=new ri,Vo=new Bo,Ho=new ri(!0);const Fs=e=>e,Ln=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,s=!1){e=e.__v_raw;const r=J(e),i=J(t);n||(_e(t,i)&&he(r,"get",t),he(r,"get",i));const{has:o}=Ln(r),l=s?Fs:n?Ds:de;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function en(e,t=!1){const n=this.__v_raw,s=J(n),r=J(e);return t||(_e(e,r)&&he(s,"has",e),he(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function tn(e,t=!1){return e=e.__v_raw,!t&&he(J(e),"iterate",lt),Reflect.get(e,"size",e)}function ir(e,t=!1){!t&&!Pe(e)&&!ut(e)&&(e=J(e));const n=J(this);return Ln(n).has.call(n,e)||(n.add(e),Ke(n,"add",e,e)),this}function or(e,t,n=!1){!n&&!Pe(t)&&!ut(t)&&(t=J(t));const s=J(this),{has:r,get:i}=Ln(s);let o=r.call(s,e);o||(e=J(e),o=r.call(s,e));const l=i.call(s,e);return s.set(e,t),o?_e(t,l)&&Ke(s,"set",e,t):Ke(s,"add",e,t),this}function lr(e){const t=J(this),{has:n,get:s}=Ln(t);let r=n.call(t,e);r||(e=J(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Ke(t,"delete",e,void 0),i}function cr(){const e=J(this),t=e.size!==0,n=e.clear();return t&&Ke(e,"clear",void 0,void 0),n}function nn(e,t){return function(s,r){const i=this,o=i.__v_raw,l=J(o),c=t?Fs:e?Ds:de;return!e&&he(l,"iterate",lt),o.forEach((h,u)=>s.call(r,c(h),c(u),i))}}function sn(e,t,n){return function(...s){const r=this.__v_raw,i=J(r),o=mt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,h=r[e](...s),u=n?Fs:t?Ds:de;return!t&&he(i,"iterate",c?rs:lt),{next(){const{value:a,done:p}=h.next();return p?{value:a,done:p}:{value:l?[u(a[0]),u(a[1])]:u(a),done:p}},[Symbol.iterator](){return this}}}}function Ge(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function jo(){const e={get(i){return Qt(this,i)},get size(){return tn(this)},has:en,add:ir,set:or,delete:lr,clear:cr,forEach:nn(!1,!1)},t={get(i){return Qt(this,i,!1,!0)},get size(){return tn(this)},has:en,add(i){return ir.call(this,i,!0)},set(i,o){return or.call(this,i,o,!0)},delete:lr,clear:cr,forEach:nn(!1,!0)},n={get(i){return Qt(this,i,!0)},get size(){return tn(this,!0)},has(i){return en.call(this,i,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:nn(!0,!1)},s={get(i){return Qt(this,i,!0,!0)},get size(){return tn(this,!0)},has(i){return en.call(this,i,!0)},add:Ge("add"),set:Ge("set"),delete:Ge("delete"),clear:Ge("clear"),forEach:nn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=sn(i,!1,!1),n[i]=sn(i,!0,!1),t[i]=sn(i,!1,!0),s[i]=sn(i,!0,!0)}),[e,n,t,s]}const[Ko,ko,Uo,Wo]=jo();function Os(e,t){const n=t?e?Wo:Uo:e?ko:Ko;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(z(n,r)&&r in s?n:s,r,i)}const Go={get:Os(!1,!1)},qo={get:Os(!1,!0)},Jo={get:Os(!0,!1)};const ii=new WeakMap,oi=new WeakMap,li=new WeakMap,Yo=new WeakMap;function zo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zo(e){return e.__v_skip||!Object.isExtensible(e)?0:zo(_o(e))}function Ms(e){return ut(e)?e:Ps(e,!1,$o,Go,ii)}function Xo(e){return Ps(e,!1,Ho,qo,oi)}function ci(e){return Ps(e,!0,Vo,Jo,li)}function Ps(e,t,n,s,r){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Zo(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function _t(e){return ut(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function ut(e){return!!(e&&e.__v_isReadonly)}function Pe(e){return!!(e&&e.__v_isShallow)}function Rs(e){return e?!!e.__v_raw:!1}function J(e){const t=e&&e.__v_raw;return t?J(t):e}function Qo(e){return Object.isExtensible(e)&&jr(e,"__v_skip",!0),e}const de=e=>Z(e)?Ms(e):e,Ds=e=>Z(e)?ci(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function el(e){return fi(e,!1)}function ff(e){return fi(e,!0)}function fi(e,t){return ue(e)?e:new tl(e,t)}class tl{constructor(t,n){this.dep=new Dn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:J(t),this._value=n?t:de(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Pe(t)||ut(t);t=s?t:J(t),_e(t,n)&&(this._rawValue=t,this._value=s?t:de(t),this.dep.trigger())}}function ui(e){return ue(e)?e.value:e}function uf(e){return $(e)?e():ui(e)}const nl={get:(e,t,n)=>ui(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ue(r)&&!ue(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ai(e){return _t(e)?e:new Proxy(e,nl)}class sl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Dn,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function rl(e){return new sl(e)}function af(e){const t=D(e)?new Array(e.length):{};for(const n in e)t[n]=di(e,n);return t}class il{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Po(J(this._object),this._key)}}class ol{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function df(e,t,n){return ue(e)?e:$(e)?new ol(e):Z(e)&&arguments.length>1?di(e,t,n):el(e)}function di(e,t,n){const s=e[t];return ue(s)?s:new il(e,t,n)}class ll{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Dn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kt-1,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){te!==this&&(this.flags|=16,this.dep.notify())}get value(){const t=this.dep.track();return Qr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function cl(e,t,n=!1){let s,r;return $(e)?s=e:(s=e.get,r=e.set),new ll(s,r,n)}const rn={},mn=new WeakMap;let it;function fl(e,t=!1,n=it){if(n){let s=mn.get(n);s||mn.set(n,s=[]),s.push(e)}}function ul(e,t,n=q){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,h=_=>r?_:Pe(_)||r===!1||r===0?je(_,1):je(_);let u,a,p,y,w=!1,P=!1;if(ue(e)?(a=()=>e.value,w=Pe(e)):_t(e)?(a=()=>h(e),w=!0):D(e)?(P=!0,w=e.some(_=>_t(_)||Pe(_)),a=()=>e.map(_=>{if(ue(_))return _.value;if(_t(_))return h(_);if($(_))return c?c(_,2):_()})):$(e)?t?a=c?()=>c(e,2):e:a=()=>{if(p){Xe();try{p()}finally{Qe()}}const _=it;it=u;try{return c?c(e,3,[y]):e(y)}finally{it=_}}:a=Le,t&&r){const _=a,T=r===!0?1/0:r;a=()=>je(_(),T)}const U=Oo(),j=()=>{u.stop(),U&&Ts(U.effects,u)};if(i)if(t){const _=t;t=(...T)=>{_(...T),j()}}else{const _=a;a=()=>{_(),j()}}let S=P?new Array(e.length).fill(rn):rn;const F=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const T=u.run();if(r||w||(P?T.some((R,H)=>_e(R,S[H])):_e(T,S))){p&&p();const R=it;it=u;try{const H=[T,S===rn?void 0:P&&S[0]===rn?[]:S,y];c?c(t,3,H):t(...H),S=T}finally{it=R}}}else u.run()};return l&&l(F),u=new Yr(a),u.scheduler=o?()=>o(F,!1):F,y=_=>fl(_,!1,u),p=u.onStop=()=>{const _=mn.get(u);if(_){if(c)c(_,4);else for(const T of _)T();mn.delete(u)}},t?s?F(!0):S=u.run():o?o(F.bind(null,!0),!0):u.run(),j.pause=u.pause.bind(u),j.resume=u.resume.bind(u),j.stop=j,j}function je(e,t=1/0,n){if(t<=0||!Z(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ue(e))je(e.value,t,n);else if(D(e))for(let s=0;s<e.length;s++)je(e[s],t,n);else if(Fn(e)||mt(e))e.forEach(s=>{je(s,t,n)});else if(Hr(e)){for(const s in e)je(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&je(e[s],t,n)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.1
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function Jt(e,t,n,s){try{return s?e(...s):e()}catch(r){Yt(r,t,n)}}function Re(e,t,n,s){if($(e)){const r=Jt(e,t,n,s);return r&&ws(r)&&r.catch(i=>{Yt(i,t,n)}),r}if(D(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Re(e[i],t,n,s));return r}}function Yt(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||q;if(t){let l=t.parent;const c=t.proxy,h=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let a=0;a<u.length;a++)if(u[a](e,c,h)===!1)return}l=l.parent}if(i){Xe(),Jt(i,null,10,[e,c,h]),Qe();return}}al(e,n,r,s,o)}function al(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}let Ut=!1,is=!1;const Te=[];let ot=0;const bt=[];let Ye=null,pt=0;const hi=Promise.resolve();let Ns=null;function dl(e){const t=Ns||hi;return e?t.then(this?e.bind(this):e):t}function hl(e){let t=Ut?ot+1:0,n=Te.length;for(;t<n;){const s=t+n>>>1,r=Te[s],i=Wt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Ls(e){if(!(e.flags&1)){const t=Wt(e),n=Te[Te.length-1];!n||!(e.flags&2)&&t>=Wt(n)?Te.push(e):Te.splice(hl(t),0,e),e.flags&4||(e.flags|=1),pi()}}function pi(){!Ut&&!is&&(is=!0,Ns=hi.then(mi))}function os(e){D(e)?bt.push(...e):Ye&&e.id===-1?Ye.splice(pt+1,0,e):e.flags&1||(bt.push(e),e.flags&4||(e.flags|=1)),pi()}function fr(e,t,n=Ut?ot+1:0){for(;n<Te.length;n++){const s=Te[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Te.splice(n,1),n--,s(),s.flags&=-2}}}function gi(e){if(bt.length){const t=[...new Set(bt)].sort((n,s)=>Wt(n)-Wt(s));if(bt.length=0,Ye){Ye.push(...t);return}for(Ye=t,pt=0;pt<Ye.length;pt++){const n=Ye[pt];n.flags&8||n(),n.flags&=-2}Ye=null,pt=0}}const Wt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function mi(e){is=!1,Ut=!0;try{for(ot=0;ot<Te.length;ot++){const t=Te[ot];t&&!(t.flags&8)&&(Jt(t,t.i,t.i?15:14),t.flags&=-2)}}finally{ot=0,Te.length=0,gi(),Ut=!1,Ns=null,(Te.length||bt.length)&&mi()}}let oe=null,yi=null;function yn(e){const t=oe;return oe=e,yi=e&&e.type.__scopeId||null,t}function pl(e,t=oe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&vr(-1);const i=yn(t);let o;try{o=e(...r)}finally{yn(i),s._d&&vr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function hf(e,t){if(oe===null)return e;const n=kn(oe),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=q]=t[r];i&&($(i)&&(i={mounted:i,updated:i}),i.deep&&je(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function nt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(Xe(),Re(c,n,8,[e.el,l,e,t]),Qe())}}const _i=Symbol("_vte"),bi=e=>e.__isTeleport,$t=e=>e&&(e.disabled||e.disabled===""),gl=e=>e&&(e.defer||e.defer===""),ur=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ar=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ls=(e,t)=>{const n=e&&e.to;return ne(n)?t?t(n):null:n},ml={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,h){const{mc:u,pc:a,pbc:p,o:{insert:y,querySelector:w,createText:P,createComment:U}}=h,j=$t(t.props);let{shapeFlag:S,children:F,dynamicChildren:_}=t;if(e==null){const T=t.el=P(""),R=t.anchor=P("");y(T,n,s),y(R,n,s);const H=(M,L)=>{S&16&&u(F,M,L,r,i,o,l,c)},K=()=>{const M=t.target=ls(t.props,w),L=vi(M,t,P,y);M&&(o!=="svg"&&ur(M)?o="svg":o!=="mathml"&&ar(M)&&(o="mathml"),j||(H(M,L),un(t)))};j&&(H(n,R),un(t)),gl(t.props)?le(K,i):K()}else{t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,R=t.target=e.target,H=t.targetAnchor=e.targetAnchor,K=$t(e.props),M=K?n:R,L=K?T:H;if(o==="svg"||ur(R)?o="svg":(o==="mathml"||ar(R))&&(o="mathml"),_?(p(e.dynamicChildren,_,M,r,i,o,l),Ws(e,t,!0)):c||a(e,t,M,L,r,i,o,l,!1),j)K?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):on(t,n,T,h,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=ls(t.props,w);k&&on(t,k,null,h,0)}else K&&on(t,R,H,h,1);un(t)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:c,targetStart:h,targetAnchor:u,target:a,props:p}=e;if(a&&(r(h),r(u)),i&&r(c),o&16){const y=i||!$t(p);for(let w=0;w<l.length;w++){const P=l[w];s(P,t,n,y,!!P.dynamicChildren)}}},move:on,hydrate:yl};function on(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:c,children:h,props:u}=e,a=i===2;if(a&&s(o,t,n),(!a||$t(u))&&c&16)for(let p=0;p<h.length;p++)r(h[p],t,n,2);a&&s(l,t,n)}function yl(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:c,insert:h,createText:u}},a){const p=t.target=ls(t.props,c);if(p){const y=p._lpa||p.firstChild;if(t.shapeFlag&16)if($t(t.props))t.anchor=a(o(e),t,l(e),n,s,r,i),t.targetStart=y,t.targetAnchor=y&&o(y);else{t.anchor=o(e);let w=y;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,p._lpa=t.targetAnchor&&o(t.targetAnchor);break}}w=o(w)}t.targetAnchor||vi(p,t,u,h),a(y&&o(y),t,p,n,s,r,i)}un(t)}return t.anchor&&o(t.anchor)}const pf=ml;function un(e){const t=e.ctx;if(t&&t.ut){let n=e.targetStart;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}function vi(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[_i]=i,e&&(s(r,e),s(i,e)),i}const ze=Symbol("_leaveCb"),ln=Symbol("_enterCb");function xi(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Vn(()=>{e.isMounted=!0}),Vs(()=>{e.isUnmounting=!0}),e}const Ee=[Function,Array],Ci={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ee,onEnter:Ee,onAfterEnter:Ee,onEnterCancelled:Ee,onBeforeLeave:Ee,onLeave:Ee,onAfterLeave:Ee,onLeaveCancelled:Ee,onBeforeAppear:Ee,onAppear:Ee,onAfterAppear:Ee,onAppearCancelled:Ee},Ti=e=>{const t=e.subTree;return t.component?Ti(t.component):t},_l={name:"BaseTransition",props:Ci,setup(e,{slots:t}){const n=At(),s=xi();return()=>{const r=t.default&&Bs(t.default(),!0);if(!r||!r.length)return;const i=wi(r),o=J(e),{mode:l}=o;if(s.isLeaving)return Yn(i);const c=dr(i);if(!c)return Yn(i);let h=Gt(c,o,s,n,p=>h=p);c.type!==ce&&at(c,h);const u=n.subTree,a=u&&dr(u);if(a&&a.type!==ce&&!Oe(c,a)&&Ti(n).type!==ce){const p=Gt(a,o,s,n);if(at(a,p),l==="out-in"&&c.type!==ce)return s.isLeaving=!0,p.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update()},Yn(i);l==="in-out"&&c.type!==ce&&(p.delayLeave=(y,w,P)=>{const U=Ei(s,a);U[String(a.key)]=a,y[ze]=()=>{w(),y[ze]=void 0,delete h.delayedLeave},h.delayedLeave=P})}return i}}};function wi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ce){t=n;break}}return t}const bl=_l;function Ei(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Gt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:h,onAfterEnter:u,onEnterCancelled:a,onBeforeLeave:p,onLeave:y,onAfterLeave:w,onLeaveCancelled:P,onBeforeAppear:U,onAppear:j,onAfterAppear:S,onAppearCancelled:F}=t,_=String(e.key),T=Ei(n,e),R=(M,L)=>{M&&Re(M,s,9,L)},H=(M,L)=>{const k=L[1];R(M,L),D(M)?M.every(O=>O.length<=1)&&k():M.length<=1&&k()},K={mode:o,persisted:l,beforeEnter(M){let L=c;if(!n.isMounted)if(i)L=U||c;else return;M[ze]&&M[ze](!0);const k=T[_];k&&Oe(e,k)&&k.el[ze]&&k.el[ze](),R(L,[M])},enter(M){let L=h,k=u,O=a;if(!n.isMounted)if(i)L=j||h,k=S||u,O=F||a;else return;let G=!1;const re=M[ln]=we=>{G||(G=!0,we?R(O,[M]):R(k,[M]),K.delayedLeave&&K.delayedLeave(),M[ln]=void 0)};L?H(L,[M,re]):re()},leave(M,L){const k=String(e.key);if(M[ln]&&M[ln](!0),n.isUnmounting)return L();R(p,[M]);let O=!1;const G=M[ze]=re=>{O||(O=!0,L(),re?R(P,[M]):R(w,[M]),M[ze]=void 0,T[k]===e&&delete T[k])};T[k]=e,y?H(y,[M,G]):G()},clone(M){const L=Gt(M,t,n,s,r);return r&&r(L),L}};return K}function Yn(e){if(Bn(e))return e=ke(e),e.children=null,e}function dr(e){if(!Bn(e))return bi(e.type)&&e.children?wi(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&$(n.default))return n.default()}}function at(e,t){e.shapeFlag&6&&e.component?at(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Bs(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===ye?(o.patchFlag&128&&r++,s=s.concat(Bs(o.children,t,l))):(t||o.type!==ce)&&s.push(l!=null?ke(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function gf(e,t){return $(e)?ie({name:e.name},t,{setup:e}):e}function Si(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function cs(e,t,n,s,r=!1){if(D(e)){e.forEach((y,w)=>cs(y,t&&(D(t)?t[w]:t),n,s,r));return}if(ct(s)&&!r)return;const i=s.shapeFlag&4?kn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,h=t&&t.r,u=l.refs===q?l.refs={}:l.refs,a=l.setupState,p=a===q?()=>!1:y=>z(a,y)&&!(Object.getOwnPropertyDescriptor(u,y)||q).get;if(h!=null&&h!==c&&(ne(h)?(u[h]=null,p(h)&&(a[h]=null)):ue(h)&&(h.value=null)),$(c))Jt(c,l,12,[o,u]);else{const y=ne(c),w=ue(c);if(y||w){const P=()=>{if(e.f){const U=y?p(c)?a[c]:u[c]:c.value;r?D(U)&&Ts(U,i):D(U)?U.includes(i)||U.push(i):y?(u[c]=[i],p(c)&&(a[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else y?(u[c]=o,p(c)&&(a[c]=o)):w&&(c.value=o,e.k&&(u[e.k]=o))};o?(P.id=-1,le(P,n)):P()}}}const ct=e=>!!e.type.__asyncLoader,Bn=e=>e.type.__isKeepAlive,vl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=At(),s=n.ctx;if(!s.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:h,um:u,o:{createElement:a}}}=s,p=a("div");s.activate=(S,F,_,T,R)=>{const H=S.component;h(S,F,_,0,l),c(H.vnode,S,F,_,H,l,T,S.slotScopeIds,R),le(()=>{H.isDeactivated=!1,H.a&&yt(H.a);const K=S.props&&S.props.onVnodeMounted;K&&Se(K,H.parent,S)},l)},s.deactivate=S=>{const F=S.component;vn(F.m),vn(F.a),h(S,p,null,1,l),le(()=>{F.da&&yt(F.da);const _=S.props&&S.props.onVnodeUnmounted;_&&Se(_,F.parent,S),F.isDeactivated=!0},l)};function y(S){zn(S),u(S,n,l,!0)}function w(S){r.forEach((F,_)=>{const T=_s(F.type);T&&!S(T)&&P(_)})}function P(S){const F=r.get(S);F&&(!o||!Oe(F,o))?y(F):o&&zn(o),r.delete(S),i.delete(S)}dn(()=>[e.include,e.exclude],([S,F])=>{S&&w(_=>Dt(S,_)),F&&w(_=>!Dt(F,_))},{flush:"post",deep:!0});let U=null;const j=()=>{U!=null&&(xn(n.subTree.type)?le(()=>{r.set(U,cn(n.subTree))},n.subTree.suspense):r.set(U,cn(n.subTree)))};return Vn(j),$s(j),Vs(()=>{r.forEach(S=>{const{subTree:F,suspense:_}=n,T=cn(F);if(S.type===T.type&&S.key===T.key){zn(T);const R=T.component.da;R&&le(R,_);return}y(S)})}),()=>{if(U=null,!t.default)return null;const S=t.default(),F=S[0];if(S.length>1)return o=null,S;if(!wt(F)||!(F.shapeFlag&4)&&!(F.shapeFlag&128))return o=null,F;let _=cn(F);if(_.type===ce)return o=null,_;const T=_.type,R=_s(ct(_)?_.type.__asyncResolved||{}:T),{include:H,exclude:K,max:M}=e;if(H&&(!R||!Dt(H,R))||K&&R&&Dt(K,R))return _.shapeFlag&=-257,o=_,F;const L=_.key==null?T:_.key,k=r.get(L);return _.el&&(_=ke(_),F.shapeFlag&128&&(F.ssContent=_)),U=L,k?(_.el=k.el,_.component=k.component,_.transition&&at(_,_.transition),_.shapeFlag|=512,i.delete(L),i.add(L)):(i.add(L),M&&i.size>parseInt(M,10)&&P(i.values().next().value)),_.shapeFlag|=256,o=_,xn(F.type)?F:_}}},mf=vl;function Dt(e,t){return D(e)?e.some(n=>Dt(n,t)):ne(e)?e.split(",").includes(t):yo(e)?(e.lastIndex=0,e.test(t)):!1}function xl(e,t){Ai(e,"a",t)}function Cl(e,t){Ai(e,"da",t)}function Ai(e,t,n=fe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if($n(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Bn(r.parent.vnode)&&Tl(s,t,n,r),r=r.parent}}function Tl(e,t,n,s){const r=$n(t,e,s,!0);Hs(()=>{Ts(s[t],r)},n)}function zn(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function cn(e){return e.shapeFlag&128?e.ssContent:e}function $n(e,t,n=fe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Xe();const l=dt(n),c=Re(t,n,e,o);return l(),Qe(),c});return s?r.unshift(i):r.push(i),i}}const We=e=>(t,n=fe)=>{(!Kn||e==="sp")&&$n(e,(...s)=>t(...s),n)},Ii=We("bm"),Vn=We("m"),wl=We("bu"),$s=We("u"),Vs=We("bum"),Hs=We("um"),El=We("sp"),Sl=We("rtg"),Al=We("rtc");function Il(e,t=fe){$n("ec",e,t)}const js="components",Fl="directives";function yf(e,t){return Ks(js,e,!0,t)||e}const Fi=Symbol.for("v-ndc");function _f(e){return ne(e)?Ks(js,e,!1)||e:e||Fi}function bf(e){return Ks(Fl,e)}function Ks(e,t,n=!0,s=!1){const r=oe||fe;if(r){const i=r.type;if(e===js){const l=_s(i,!1);if(l&&(l===t||l===Ae(t)||l===Mn(Ae(t))))return i}const o=hr(r[e]||i[e],t)||hr(r.appContext[e],t);return!o&&s?i:o}}function hr(e,t){return e&&(e[t]||e[Ae(t)]||e[Mn(Ae(t))])}function vf(e,t,n,s){let r;const i=n,o=D(e);if(o||ne(e)){const l=o&&_t(e);l&&(e=Nn(e)),r=new Array(e.length);for(let c=0,h=e.length;c<h;c++)r[c]=t(l?de(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(Z(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,h=l.length;c<h;c++){const u=l[c];r[c]=t(e[u],u,c,i)}}else r=[];return r}function xf(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(D(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Cf(e,t,n={},s,r){if(oe.ce||oe.parent&&ct(oe.parent)&&oe.parent.ce)return t!=="default"&&(n.name=t),Cn(),ps(ye,null,[ae("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),Cn();const o=i&&Oi(i(n)),l=ps(ye,{key:(n.key||o&&o.key||`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Oi(e){return e.some(t=>wt(t)?!(t.type===ce||t.type===ye&&!Oi(t.children)):!0)?e:null}function Tf(e,t){const n={};for(const s in e)n[/[A-Z]/.test(s)?`on:${s}`:fn(s)]=e[s];return n}const fs=e=>e?Zi(e)?kn(e):fs(e.parent):null,Vt=ie(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>fs(e.parent),$root:e=>fs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ks(e),$forceUpdate:e=>e.f||(e.f=()=>{Ls(e.update)}),$nextTick:e=>e.n||(e.n=dl.bind(e.proxy)),$watch:e=>Ql.bind(e)}),Zn=(e,t)=>e!==q&&!e.__isScriptSetup&&z(e,t),Ol={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let h;if(t[0]!=="$"){const y=o[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Zn(s,t))return o[t]=1,s[t];if(r!==q&&z(r,t))return o[t]=2,r[t];if((h=e.propsOptions[0])&&z(h,t))return o[t]=3,i[t];if(n!==q&&z(n,t))return o[t]=4,n[t];us&&(o[t]=0)}}const u=Vt[t];let a,p;if(u)return t==="$attrs"&&he(e.attrs,"get",""),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==q&&z(n,t))return o[t]=4,n[t];if(p=c.config.globalProperties,z(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Zn(r,t)?(r[t]=n,!0):s!==q&&z(s,t)?(s[t]=n,!0):z(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==q&&z(e,o)||Zn(t,o)||(l=i[0])&&z(l,o)||z(s,o)||z(Vt,o)||z(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function _n(e){return D(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function wf(e,t){return!e||!t?e||t:D(e)&&D(t)?e.concat(t):ie({},_n(e),_n(t))}function Ef(e){const t=At();let n=e();return ms(),ws(n)&&(n=n.catch(s=>{throw dt(t),s})),[n,()=>dt(t)]}let us=!0;function Ml(e){const t=ks(e),n=e.proxy,s=e.ctx;us=!1,t.beforeCreate&&pr(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:h,created:u,beforeMount:a,mounted:p,beforeUpdate:y,updated:w,activated:P,deactivated:U,beforeDestroy:j,beforeUnmount:S,destroyed:F,unmounted:_,render:T,renderTracked:R,renderTriggered:H,errorCaptured:K,serverPrefetch:M,expose:L,inheritAttrs:k,components:O,directives:G,filters:re}=t;if(h&&Pl(h,s,null),o)for(const X in o){const Q=o[X];$(Q)&&(s[X]=Q.bind(n))}if(r){const X=r.call(n,n);Z(X)&&(e.data=Ms(X))}if(us=!0,i)for(const X in i){const Q=i[X],et=$(Q)?Q.bind(n,n):$(Q.get)?Q.get.bind(n,n):Le,Zt=!$(Q)&&$(Q.set)?Q.set.bind(n):Le,tt=wc({get:et,set:Zt});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>tt.value,set:De=>tt.value=De})}if(l)for(const X in l)Mi(l[X],s,n,X);if(c){const X=$(c)?c.call(n):c;Reflect.ownKeys(X).forEach(Q=>{$l(Q,X[Q])})}u&&pr(u,e,"c");function se(X,Q){D(Q)?Q.forEach(et=>X(et.bind(n))):Q&&X(Q.bind(n))}if(se(Ii,a),se(Vn,p),se(wl,y),se($s,w),se(xl,P),se(Cl,U),se(Il,K),se(Al,R),se(Sl,H),se(Vs,S),se(Hs,_),se(El,M),D(L))if(L.length){const X=e.exposed||(e.exposed={});L.forEach(Q=>{Object.defineProperty(X,Q,{get:()=>n[Q],set:et=>n[Q]=et})})}else e.exposed||(e.exposed={});T&&e.render===Le&&(e.render=T),k!=null&&(e.inheritAttrs=k),O&&(e.components=O),G&&(e.directives=G),M&&Si(e)}function Pl(e,t,n=Le){D(e)&&(e=as(e));for(const s in e){const r=e[s];let i;Z(r)?"default"in r?i=an(r.from||s,r.default,!0):i=an(r.from||s):i=an(r),ue(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function pr(e,t,n){Re(D(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Mi(e,t,n,s){let r=s.includes(".")?ki(n,s):()=>n[s];if(ne(e)){const i=t[e];$(i)&&dn(r,i)}else if($(e))dn(r,e.bind(n));else if(Z(e))if(D(e))e.forEach(i=>Mi(i,t,n,s));else{const i=$(e.handler)?e.handler.bind(n):t[e.handler];$(i)&&dn(r,i,e)}}function ks(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(h=>bn(c,h,o,!0)),bn(c,t,o)),Z(t)&&i.set(t,c),c}function bn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&bn(e,i,n,!0),r&&r.forEach(o=>bn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Rl[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Rl={data:gr,props:mr,emits:mr,methods:Nt,computed:Nt,beforeCreate:ge,created:ge,beforeMount:ge,mounted:ge,beforeUpdate:ge,updated:ge,beforeDestroy:ge,beforeUnmount:ge,destroyed:ge,unmounted:ge,activated:ge,deactivated:ge,errorCaptured:ge,serverPrefetch:ge,components:Nt,directives:Nt,watch:Nl,provide:gr,inject:Dl};function gr(e,t){return t?e?function(){return ie($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function Dl(e,t){return Nt(as(e),as(t))}function as(e){if(D(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ge(e,t){return e?[...new Set([].concat(e,t))]:t}function Nt(e,t){return e?ie(Object.create(null),e,t):t}function mr(e,t){return e?D(e)&&D(t)?[...new Set([...e,...t])]:ie(Object.create(null),_n(e),_n(t??{})):t}function Nl(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=ge(e[s],t[s]);return n}function Pi(){return{app:null,config:{isNativeTag:go,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Ll=0;function Bl(e,t){return function(s,r=null){$(s)||(s=ie({},s)),r!=null&&!Z(r)&&(r=null);const i=Pi(),o=new WeakSet,l=[];let c=!1;const h=i.app={_uid:Ll++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Sc,get config(){return i.config},set config(u){},use(u,...a){return o.has(u)||(u&&$(u.install)?(o.add(u),u.install(h,...a)):$(u)&&(o.add(u),u(h,...a))),h},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),h},component(u,a){return a?(i.components[u]=a,h):i.components[u]},directive(u,a){return a?(i.directives[u]=a,h):i.directives[u]},mount(u,a,p){if(!c){const y=h._ceVNode||ae(s,r);return y.appContext=i,p===!0?p="svg":p===!1&&(p=void 0),a&&t?t(y,u):e(y,u,p),c=!0,h._container=u,u.__vue_app__=h,kn(y.component)}},onUnmount(u){l.push(u)},unmount(){c&&(Re(l,h._instance,16),e(null,h._container),delete h._container.__vue_app__)},provide(u,a){return i.provides[u]=a,h},runWithContext(u){const a=ft;ft=h;try{return u()}finally{ft=a}}};return h}}let ft=null;function $l(e,t){if(fe){let n=fe.provides;const s=fe.parent&&fe.parent.provides;s===n&&(n=fe.provides=Object.create(s)),n[e]=t}}function an(e,t,n=!1){const s=fe||oe;if(s||ft){const r=ft?ft._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&$(t)?t.call(s&&s.proxy):t}}function Sf(){return!!(fe||oe||ft)}const Ri={},Di=()=>Object.create(Ri),Ni=e=>Object.getPrototypeOf(e)===Ri;function Vl(e,t,n,s=!1){const r={},i=Di();e.propsDefaults=Object.create(null),Li(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Xo(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Hl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=J(r),[c]=e.propsOptions;let h=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let a=0;a<u.length;a++){let p=u[a];if(Hn(e.emitsOptions,p))continue;const y=t[p];if(c)if(z(i,p))y!==i[p]&&(i[p]=y,h=!0);else{const w=Ae(p);r[w]=ds(c,l,w,y,e,!1)}else y!==i[p]&&(i[p]=y,h=!0)}}}else{Li(e,t,r,i)&&(h=!0);let u;for(const a in l)(!t||!z(t,a)&&((u=Ue(a))===a||!z(t,u)))&&(c?n&&(n[a]!==void 0||n[u]!==void 0)&&(r[a]=ds(c,l,a,void 0,e,!0)):delete r[a]);if(i!==l)for(const a in i)(!t||!z(t,a))&&(delete i[a],h=!0)}h&&Ke(e.attrs,"set","")}function Li(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Lt(c))continue;const h=t[c];let u;r&&z(r,u=Ae(c))?!i||!i.includes(u)?n[u]=h:(l||(l={}))[u]=h:Hn(e.emitsOptions,c)||(!(c in s)||h!==s[c])&&(s[c]=h,o=!0)}if(i){const c=J(n),h=l||q;for(let u=0;u<i.length;u++){const a=i[u];n[a]=ds(r,c,a,h[a],e,!z(h,a))}}return o}function ds(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=z(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&$(c)){const{propsDefaults:h}=r;if(n in h)s=h[n];else{const u=dt(r);s=h[n]=c.call(null,t),u()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Ue(n))&&(s=!0))}return s}const jl=new WeakMap;function Bi(e,t,n=!1){const s=n?jl:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!$(e)){const u=a=>{c=!0;const[p,y]=Bi(a,t,!0);ie(o,p),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return Z(e)&&s.set(e,gt),gt;if(D(i))for(let u=0;u<i.length;u++){const a=Ae(i[u]);yr(a)&&(o[a]=q)}else if(i)for(const u in i){const a=Ae(u);if(yr(a)){const p=i[u],y=o[a]=D(p)||$(p)?{type:p}:ie({},p),w=y.type;let P=!1,U=!0;if(D(w))for(let j=0;j<w.length;++j){const S=w[j],F=$(S)&&S.name;if(F==="Boolean"){P=!0;break}else F==="String"&&(U=!1)}else P=$(w)&&w.name==="Boolean";y[0]=P,y[1]=U,(P||z(y,"default"))&&l.push(a)}}const h=[o,l];return Z(e)&&s.set(e,h),h}function yr(e){return e[0]!=="$"&&!Lt(e)}const $i=e=>e[0]==="_"||e==="$stable",Us=e=>D(e)?e.map(Fe):[Fe(e)],Kl=(e,t,n)=>{if(t._n)return t;const s=pl((...r)=>Us(t(...r)),n);return s._c=!1,s},Vi=(e,t,n)=>{const s=e._ctx;for(const r in e){if($i(r))continue;const i=e[r];if($(i))t[r]=Kl(r,i,s);else if(i!=null){const o=Us(i);t[r]=()=>o}}},Hi=(e,t)=>{const n=Us(t);e.slots.default=()=>n},ji=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},kl=(e,t,n)=>{const s=e.slots=Di();if(e.vnode.shapeFlag&32){const r=t._;r?(ji(s,t,n),n&&jr(s,"_",r,!0)):Vi(t,s)}else t&&Hi(e,t)},Ul=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ji(r,t,n):(i=!t.$stable,Vi(t,r)),o=t}else t&&(Hi(e,t),o={default:1});if(i)for(const l in r)!$i(l)&&o[l]==null&&delete r[l]},le=uc;function Wl(e){return Gl(e)}function Gl(e,t){const n=kr();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:h,setElementText:u,parentNode:a,nextSibling:p,setScopeId:y=Le,insertStaticContent:w}=e,P=(f,d,g,v=null,m=null,b=null,A=void 0,E=null,C=!!d.dynamicChildren)=>{if(f===d)return;f&&!Oe(f,d)&&(v=Xt(f),De(f,m,b,!0),f=null),d.patchFlag===-2&&(C=!1,d.dynamicChildren=null);const{type:x,ref:B,shapeFlag:I}=d;switch(x){case jn:U(f,d,g,v);break;case ce:j(f,d,g,v);break;case Ht:f==null&&S(d,g,v,A);break;case ye:O(f,d,g,v,m,b,A,E,C);break;default:I&1?T(f,d,g,v,m,b,A,E,C):I&6?G(f,d,g,v,m,b,A,E,C):(I&64||I&128)&&x.process(f,d,g,v,m,b,A,E,C,Ft)}B!=null&&m&&cs(B,f&&f.ref,b,d||f,!d)},U=(f,d,g,v)=>{if(f==null)s(d.el=l(d.children),g,v);else{const m=d.el=f.el;d.children!==f.children&&h(m,d.children)}},j=(f,d,g,v)=>{f==null?s(d.el=c(d.children||""),g,v):d.el=f.el},S=(f,d,g,v)=>{[f.el,f.anchor]=w(f.children,d,g,v,f.el,f.anchor)},F=({el:f,anchor:d},g,v)=>{let m;for(;f&&f!==d;)m=p(f),s(f,g,v),f=m;s(d,g,v)},_=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=p(f),r(f),f=g;r(d)},T=(f,d,g,v,m,b,A,E,C)=>{d.type==="svg"?A="svg":d.type==="math"&&(A="mathml"),f==null?R(d,g,v,m,b,A,E,C):M(f,d,m,b,A,E,C)},R=(f,d,g,v,m,b,A,E)=>{let C,x;const{props:B,shapeFlag:I,transition:N,dirs:V}=f;if(C=f.el=o(f.type,b,B&&B.is,B),I&8?u(C,f.children):I&16&&K(f.children,C,null,v,m,Xn(f,b),A,E),V&&nt(f,null,v,"created"),H(C,f,f.scopeId,A,v),B){for(const ee in B)ee!=="value"&&!Lt(ee)&&i(C,ee,null,B[ee],b,v);"value"in B&&i(C,"value",null,B.value,b),(x=B.onVnodeBeforeMount)&&Se(x,v,f)}V&&nt(f,null,v,"beforeMount");const W=ql(m,N);W&&N.beforeEnter(C),s(C,d,g),((x=B&&B.onVnodeMounted)||W||V)&&le(()=>{x&&Se(x,v,f),W&&N.enter(C),V&&nt(f,null,v,"mounted")},m)},H=(f,d,g,v,m)=>{if(g&&y(f,g),v)for(let b=0;b<v.length;b++)y(f,v[b]);if(m){let b=m.subTree;if(d===b||xn(b.type)&&(b.ssContent===d||b.ssFallback===d)){const A=m.vnode;H(f,A,A.scopeId,A.slotScopeIds,m.parent)}}},K=(f,d,g,v,m,b,A,E,C=0)=>{for(let x=C;x<f.length;x++){const B=f[x]=E?Ze(f[x]):Fe(f[x]);P(null,B,d,g,v,m,b,A,E)}},M=(f,d,g,v,m,b,A)=>{const E=d.el=f.el;let{patchFlag:C,dynamicChildren:x,dirs:B}=d;C|=f.patchFlag&16;const I=f.props||q,N=d.props||q;let V;if(g&&st(g,!1),(V=N.onVnodeBeforeUpdate)&&Se(V,g,d,f),B&&nt(d,f,g,"beforeUpdate"),g&&st(g,!0),(I.innerHTML&&N.innerHTML==null||I.textContent&&N.textContent==null)&&u(E,""),x?L(f.dynamicChildren,x,E,g,v,Xn(d,m),b):A||Q(f,d,E,null,g,v,Xn(d,m),b,!1),C>0){if(C&16)k(E,I,N,g,m);else if(C&2&&I.class!==N.class&&i(E,"class",null,N.class,m),C&4&&i(E,"style",I.style,N.style,m),C&8){const W=d.dynamicProps;for(let ee=0;ee<W.length;ee++){const Y=W[ee],ve=I[Y],pe=N[Y];(pe!==ve||Y==="value")&&i(E,Y,ve,pe,m,g)}}C&1&&f.children!==d.children&&u(E,d.children)}else!A&&x==null&&k(E,I,N,g,m);((V=N.onVnodeUpdated)||B)&&le(()=>{V&&Se(V,g,d,f),B&&nt(d,f,g,"updated")},v)},L=(f,d,g,v,m,b,A)=>{for(let E=0;E<d.length;E++){const C=f[E],x=d[E],B=C.el&&(C.type===ye||!Oe(C,x)||C.shapeFlag&70)?a(C.el):g;P(C,x,B,null,v,m,b,A,!0)}},k=(f,d,g,v,m)=>{if(d!==g){if(d!==q)for(const b in d)!Lt(b)&&!(b in g)&&i(f,b,d[b],null,m,v);for(const b in g){if(Lt(b))continue;const A=g[b],E=d[b];A!==E&&b!=="value"&&i(f,b,E,A,m,v)}"value"in g&&i(f,"value",d.value,g.value,m)}},O=(f,d,g,v,m,b,A,E,C)=>{const x=d.el=f?f.el:l(""),B=d.anchor=f?f.anchor:l("");let{patchFlag:I,dynamicChildren:N,slotScopeIds:V}=d;V&&(E=E?E.concat(V):V),f==null?(s(x,g,v),s(B,g,v),K(d.children||[],g,B,m,b,A,E,C)):I>0&&I&64&&N&&f.dynamicChildren?(L(f.dynamicChildren,N,g,m,b,A,E),(d.key!=null||m&&d===m.subTree)&&Ws(f,d,!0)):Q(f,d,g,B,m,b,A,E,C)},G=(f,d,g,v,m,b,A,E,C)=>{d.slotScopeIds=E,f==null?d.shapeFlag&512?m.ctx.activate(d,g,v,A,C):re(d,g,v,m,b,A,C):we(f,d,C)},re=(f,d,g,v,m,b,A)=>{const E=f.component=_c(f,v,m);if(Bn(f)&&(E.ctx.renderer=Ft),bc(E,!1,A),E.asyncDep){if(m&&m.registerDep(E,se,A),!f.el){const C=E.subTree=ae(ce);j(null,C,d,g)}}else se(E,f,d,g,m,b,A)},we=(f,d,g)=>{const v=d.component=f.component;if(rc(f,d,g))if(v.asyncDep&&!v.asyncResolved){X(v,d,g);return}else v.next=d,v.update();else d.el=f.el,v.vnode=d},se=(f,d,g,v,m,b,A)=>{const E=()=>{if(f.isMounted){let{next:I,bu:N,u:V,parent:W,vnode:ee}=f;{const xe=Ki(f);if(xe){I&&(I.el=ee.el,X(f,I,A)),xe.asyncDep.then(()=>{f.isUnmounted||E()});return}}let Y=I,ve;st(f,!1),I?(I.el=ee.el,X(f,I,A)):I=ee,N&&yt(N),(ve=I.props&&I.props.onVnodeBeforeUpdate)&&Se(ve,W,I,ee),st(f,!0);const pe=Qn(f),Ie=f.subTree;f.subTree=pe,P(Ie,pe,a(Ie.el),Xt(Ie),f,m,b),I.el=pe.el,Y===null&&Gs(f,pe.el),V&&le(V,m),(ve=I.props&&I.props.onVnodeUpdated)&&le(()=>Se(ve,W,I,ee),m)}else{let I;const{el:N,props:V}=d,{bm:W,m:ee,parent:Y,root:ve,type:pe}=f,Ie=ct(d);if(st(f,!1),W&&yt(W),!Ie&&(I=V&&V.onVnodeBeforeMount)&&Se(I,Y,d),st(f,!0),N&&Xs){const xe=()=>{f.subTree=Qn(f),Xs(N,f.subTree,f,m,null)};Ie?pe.__asyncHydrate(N,f,xe):xe()}else{ve.ce&&ve.ce._injectChildStyle(pe);const xe=f.subTree=Qn(f);P(null,xe,g,v,f,m,b),d.el=xe.el}if(ee&&le(ee,m),!Ie&&(I=V&&V.onVnodeMounted)){const xe=d;le(()=>Se(I,Y,xe),m)}(d.shapeFlag&256||Y&&ct(Y.vnode)&&Y.vnode.shapeFlag&256)&&f.a&&le(f.a,m),f.isMounted=!0,d=g=v=null}};f.scope.on();const C=f.effect=new Yr(E);f.scope.off();const x=f.update=C.run.bind(C),B=f.job=C.runIfDirty.bind(C);B.i=f,B.id=f.uid,C.scheduler=()=>Ls(B),st(f,!0),x()},X=(f,d,g)=>{d.component=f;const v=f.vnode.props;f.vnode=d,f.next=null,Hl(f,d.props,v,g),Ul(f,d.children,g),Xe(),fr(f),Qe()},Q=(f,d,g,v,m,b,A,E,C=!1)=>{const x=f&&f.children,B=f?f.shapeFlag:0,I=d.children,{patchFlag:N,shapeFlag:V}=d;if(N>0){if(N&128){Zt(x,I,g,v,m,b,A,E,C);return}else if(N&256){et(x,I,g,v,m,b,A,E,C);return}}V&8?(B&16&&It(x,m,b),I!==x&&u(g,I)):B&16?V&16?Zt(x,I,g,v,m,b,A,E,C):It(x,m,b,!0):(B&8&&u(g,""),V&16&&K(I,g,v,m,b,A,E,C))},et=(f,d,g,v,m,b,A,E,C)=>{f=f||gt,d=d||gt;const x=f.length,B=d.length,I=Math.min(x,B);let N;for(N=0;N<I;N++){const V=d[N]=C?Ze(d[N]):Fe(d[N]);P(f[N],V,g,null,m,b,A,E,C)}x>B?It(f,m,b,!0,!1,I):K(d,g,v,m,b,A,E,C,I)},Zt=(f,d,g,v,m,b,A,E,C)=>{let x=0;const B=d.length;let I=f.length-1,N=B-1;for(;x<=I&&x<=N;){const V=f[x],W=d[x]=C?Ze(d[x]):Fe(d[x]);if(Oe(V,W))P(V,W,g,null,m,b,A,E,C);else break;x++}for(;x<=I&&x<=N;){const V=f[I],W=d[N]=C?Ze(d[N]):Fe(d[N]);if(Oe(V,W))P(V,W,g,null,m,b,A,E,C);else break;I--,N--}if(x>I){if(x<=N){const V=N+1,W=V<B?d[V].el:v;for(;x<=N;)P(null,d[x]=C?Ze(d[x]):Fe(d[x]),g,W,m,b,A,E,C),x++}}else if(x>N)for(;x<=I;)De(f[x],m,b,!0),x++;else{const V=x,W=x,ee=new Map;for(x=W;x<=N;x++){const Ce=d[x]=C?Ze(d[x]):Fe(d[x]);Ce.key!=null&&ee.set(Ce.key,x)}let Y,ve=0;const pe=N-W+1;let Ie=!1,xe=0;const Ot=new Array(pe);for(x=0;x<pe;x++)Ot[x]=0;for(x=V;x<=I;x++){const Ce=f[x];if(ve>=pe){De(Ce,m,b,!0);continue}let Ne;if(Ce.key!=null)Ne=ee.get(Ce.key);else for(Y=W;Y<=N;Y++)if(Ot[Y-W]===0&&Oe(Ce,d[Y])){Ne=Y;break}Ne===void 0?De(Ce,m,b,!0):(Ot[Ne-W]=x+1,Ne>=xe?xe=Ne:Ie=!0,P(Ce,d[Ne],g,null,m,b,A,E,C),ve++)}const Qs=Ie?Jl(Ot):gt;for(Y=Qs.length-1,x=pe-1;x>=0;x--){const Ce=W+x,Ne=d[Ce],er=Ce+1<B?d[Ce+1].el:v;Ot[x]===0?P(null,Ne,g,er,m,b,A,E,C):Ie&&(Y<0||x!==Qs[Y]?tt(Ne,g,er,2):Y--)}}},tt=(f,d,g,v,m=null)=>{const{el:b,type:A,transition:E,children:C,shapeFlag:x}=f;if(x&6){tt(f.component.subTree,d,g,v);return}if(x&128){f.suspense.move(d,g,v);return}if(x&64){A.move(f,d,g,Ft);return}if(A===ye){s(b,d,g);for(let I=0;I<C.length;I++)tt(C[I],d,g,v);s(f.anchor,d,g);return}if(A===Ht){F(f,d,g);return}if(v!==2&&x&1&&E)if(v===0)E.beforeEnter(b),s(b,d,g),le(()=>E.enter(b),m);else{const{leave:I,delayLeave:N,afterLeave:V}=E,W=()=>s(b,d,g),ee=()=>{I(b,()=>{W(),V&&V()})};N?N(b,W,ee):ee()}else s(b,d,g)},De=(f,d,g,v=!1,m=!1)=>{const{type:b,props:A,ref:E,children:C,dynamicChildren:x,shapeFlag:B,patchFlag:I,dirs:N,cacheIndex:V}=f;if(I===-2&&(m=!1),E!=null&&cs(E,null,g,f,!0),V!=null&&(d.renderCache[V]=void 0),B&256){d.ctx.deactivate(f);return}const W=B&1&&N,ee=!ct(f);let Y;if(ee&&(Y=A&&A.onVnodeBeforeUnmount)&&Se(Y,d,f),B&6)po(f.component,g,v);else{if(B&128){f.suspense.unmount(g,v);return}W&&nt(f,null,d,"beforeUnmount"),B&64?f.type.remove(f,d,g,Ft,v):x&&!x.hasOnce&&(b!==ye||I>0&&I&64)?It(x,d,g,!1,!0):(b===ye&&I&384||!m&&B&16)&&It(C,d,g),v&&Ys(f)}(ee&&(Y=A&&A.onVnodeUnmounted)||W)&&le(()=>{Y&&Se(Y,d,f),W&&nt(f,null,d,"unmounted")},g)},Ys=f=>{const{type:d,el:g,anchor:v,transition:m}=f;if(d===ye){ho(g,v);return}if(d===Ht){_(f);return}const b=()=>{r(g),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(f.shapeFlag&1&&m&&!m.persisted){const{leave:A,delayLeave:E}=m,C=()=>A(g,b);E?E(f.el,b,C):C()}else b()},ho=(f,d)=>{let g;for(;f!==d;)g=p(f),r(f),f=g;r(d)},po=(f,d,g)=>{const{bum:v,scope:m,job:b,subTree:A,um:E,m:C,a:x}=f;vn(C),vn(x),v&&yt(v),m.stop(),b&&(b.flags|=8,De(A,f,d,g)),E&&le(E,d),le(()=>{f.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},It=(f,d,g,v=!1,m=!1,b=0)=>{for(let A=b;A<f.length;A++)De(f[A],d,g,v,m)},Xt=f=>{if(f.shapeFlag&6)return Xt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=p(f.anchor||f.el),g=d&&d[_i];return g?p(g):d};let Un=!1;const zs=(f,d,g)=>{f==null?d._vnode&&De(d._vnode,null,null,!0):P(d._vnode||null,f,d,null,null,null,g),d._vnode=f,Un||(Un=!0,fr(),gi(),Un=!1)},Ft={p:P,um:De,m:tt,r:Ys,mt:re,mc:K,pc:Q,pbc:L,n:Xt,o:e};let Zs,Xs;return{render:zs,hydrate:Zs,createApp:Bl(zs,Zs)}}function Xn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function st({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ql(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ws(e,t,n=!1){const s=e.children,r=t.children;if(D(s)&&D(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ze(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Ws(o,l)),l.type===jn&&(l.el=o.el)}}function Jl(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const h=e[s];if(h!==0){if(r=n[n.length-1],e[r]<h){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<h?i=l+1:o=l;h<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Ki(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ki(t)}function vn(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Yl=Symbol.for("v-scx"),zl=()=>an(Yl);function Af(e,t){return zt(e,null,t)}function Zl(e,t){return zt(e,null,{flush:"post"})}function Xl(e,t){return zt(e,null,{flush:"sync"})}function dn(e,t,n){return zt(e,t,n)}function zt(e,t,n=q){const{immediate:s,deep:r,flush:i,once:o}=n,l=ie({},n);let c;if(Kn)if(i==="sync"){const p=zl();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!t||s)l.once=!0;else return{stop:Le,resume:Le,pause:Le};const h=fe;l.call=(p,y,w)=>Re(p,h,y,w);let u=!1;i==="post"?l.scheduler=p=>{le(p,h&&h.suspense)}:i!=="sync"&&(u=!0,l.scheduler=(p,y)=>{y?p():Ls(p)}),l.augmentJob=p=>{t&&(p.flags|=4),u&&(p.flags|=2,h&&(p.id=h.uid,p.i=h))};const a=ul(e,t,l);return c&&c.push(a),a}function Ql(e,t,n){const s=this.proxy,r=ne(e)?e.includes(".")?ki(s,e):()=>s[e]:e.bind(s,s);let i;$(t)?i=t:(i=t.handler,n=t);const o=dt(this),l=zt(r,i.bind(s),n);return o(),l}function ki(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function If(e,t,n=q){const s=At(),r=Ae(t),i=Ue(t),o=Ui(e,t),l=rl((c,h)=>{let u,a=q,p;return Xl(()=>{const y=e[t];_e(u,y)&&(u=y,h())}),{get(){return c(),n.get?n.get(u):u},set(y){const w=n.set?n.set(y):y;if(!_e(w,u)&&!(a!==q&&_e(y,a)))return;const P=s.vnode.props;P&&(t in P||r in P||i in P)&&(`onUpdate:${t}`in P||`onUpdate:${r}`in P||`onUpdate:${i}`in P)||(u=y,h()),s.emit(`update:${t}`,w),_e(y,w)&&_e(y,a)&&!_e(w,p)&&h(),a=y,p=w}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||q:l,done:!1}:{done:!0}}}},l}const Ui=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ae(t)}Modifiers`]||e[`${Ue(t)}Modifiers`];function ec(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||q;let r=n;const i=t.startsWith("update:"),o=i&&Ui(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>ne(u)?u.trim():u)),o.number&&(r=n.map(xo)));let l,c=s[l=fn(t)]||s[l=fn(Ae(t))];!c&&i&&(c=s[l=fn(Ue(t))]),c&&Re(c,e,6,r);const h=s[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Re(h,e,6,r)}}function Wi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!$(e)){const c=h=>{const u=Wi(h,t,!0);u&&(l=!0,ie(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(Z(e)&&s.set(e,null),null):(D(i)?i.forEach(c=>o[c]=null):ie(o,i),Z(e)&&s.set(e,o),o)}function Hn(e,t){return!e||!In(t)?!1:(t=t.slice(2).replace(/Once$/,""),z(e,t[0].toLowerCase()+t.slice(1))||z(e,Ue(t))||z(e,t))}function Qn(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:h,renderCache:u,props:a,data:p,setupState:y,ctx:w,inheritAttrs:P}=e,U=yn(e);let j,S;try{if(n.shapeFlag&4){const _=r||s,T=_;j=Fe(h.call(T,_,u,a,y,p,w)),S=l}else{const _=t;j=Fe(_.length>1?_(a,{attrs:l,slots:o,emit:c}):_(a,null)),S=t.props?l:nc(l)}}catch(_){jt.length=0,Yt(_,e,1),j=ae(ce)}let F=j;if(S&&P!==!1){const _=Object.keys(S),{shapeFlag:T}=F;_.length&&T&7&&(i&&_.some(Cs)&&(S=sc(S,i)),F=ke(F,S,!1,!0))}return n.dirs&&(F=ke(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&(F.transition=n.transition),j=F,yn(U),j}function tc(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(wt(r)){if(r.type!==ce||r.children==="v-if"){if(n)return;n=r}}else return}return n}const nc=e=>{let t;for(const n in e)(n==="class"||n==="style"||In(n))&&((t||(t={}))[n]=e[n]);return t},sc=(e,t)=>{const n={};for(const s in e)(!Cs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function rc(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?_r(s,o,h):!!o;if(c&8){const u=t.dynamicProps;for(let a=0;a<u.length;a++){const p=u[a];if(o[p]!==s[p]&&!Hn(h,p))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?_r(s,o,h):!0:!!o;return!1}function _r(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!Hn(n,i))return!0}return!1}function Gs({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const xn=e=>e.__isSuspense;let hs=0;const ic={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,h){if(e==null)oc(t,n,s,r,i,o,l,c,h);else{if(i&&i.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}lc(e,t,n,s,r,o,l,c,h)}},hydrate:cc,normalize:fc},Ff=ic;function qt(e,t){const n=e.props&&e.props[t];$(n)&&n()}function oc(e,t,n,s,r,i,o,l,c){const{p:h,o:{createElement:u}}=c,a=u("div"),p=e.suspense=Gi(e,r,s,t,a,n,i,o,l,c);h(null,p.pendingBranch=e.ssContent,a,null,s,p,i,o),p.deps>0?(qt(e,"onPending"),qt(e,"onFallback"),h(null,e.ssFallback,t,n,s,null,i,o),vt(p,e.ssFallback)):p.resolve(!1,!0)}function lc(e,t,n,s,r,i,o,l,{p:c,um:h,o:{createElement:u}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const p=t.ssContent,y=t.ssFallback,{activeBranch:w,pendingBranch:P,isInFallback:U,isHydrating:j}=a;if(P)a.pendingBranch=p,Oe(p,P)?(c(P,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0?a.resolve():U&&(j||(c(w,y,n,s,r,null,i,o,l),vt(a,y)))):(a.pendingId=hs++,j?(a.isHydrating=!1,a.activeBranch=P):h(P,r,a),a.deps=0,a.effects.length=0,a.hiddenContainer=u("div"),U?(c(null,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0?a.resolve():(c(w,y,n,s,r,null,i,o,l),vt(a,y))):w&&Oe(p,w)?(c(w,p,n,s,r,a,i,o,l),a.resolve(!0)):(c(null,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0&&a.resolve()));else if(w&&Oe(p,w))c(w,p,n,s,r,a,i,o,l),vt(a,p);else if(qt(t,"onPending"),a.pendingBranch=p,p.shapeFlag&512?a.pendingId=p.component.suspenseId:a.pendingId=hs++,c(null,p,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0)a.resolve();else{const{timeout:S,pendingId:F}=a;S>0?setTimeout(()=>{a.pendingId===F&&a.fallback(y)},S):S===0&&a.fallback(y)}}function Gi(e,t,n,s,r,i,o,l,c,h,u=!1){const{p:a,m:p,um:y,n:w,o:{parentNode:P,remove:U}}=h;let j;const S=ac(e);S&&t&&t.pendingBranch&&(j=t.pendingId,t.deps++);const F=e.props?Kr(e.props.timeout):void 0,_=i,T={vnode:e,parent:t,parentComponent:n,namespace:o,container:s,hiddenContainer:r,deps:0,pendingId:hs++,timeout:typeof F=="number"?F:-1,activeBranch:null,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(R=!1,H=!1){const{vnode:K,activeBranch:M,pendingBranch:L,pendingId:k,effects:O,parentComponent:G,container:re}=T;let we=!1;T.isHydrating?T.isHydrating=!1:R||(we=M&&L.transition&&L.transition.mode==="out-in",we&&(M.transition.afterLeave=()=>{k===T.pendingId&&(p(L,re,i===_?w(M):i,0),os(O))}),M&&(P(M.el)!==T.hiddenContainer&&(i=w(M)),y(M,G,T,!0)),we||p(L,re,i,0)),vt(T,L),T.pendingBranch=null,T.isInFallback=!1;let se=T.parent,X=!1;for(;se;){if(se.pendingBranch){se.effects.push(...O),X=!0;break}se=se.parent}!X&&!we&&os(O),T.effects=[],S&&t&&t.pendingBranch&&j===t.pendingId&&(t.deps--,t.deps===0&&!H&&t.resolve()),qt(K,"onResolve")},fallback(R){if(!T.pendingBranch)return;const{vnode:H,activeBranch:K,parentComponent:M,container:L,namespace:k}=T;qt(H,"onFallback");const O=w(K),G=()=>{T.isInFallback&&(a(null,R,L,O,M,null,k,l,c),vt(T,R))},re=R.transition&&R.transition.mode==="out-in";re&&(K.transition.afterLeave=G),T.isInFallback=!0,y(K,M,null,!0),re||G()},move(R,H,K){T.activeBranch&&p(T.activeBranch,R,H,K),T.container=R},next(){return T.activeBranch&&w(T.activeBranch)},registerDep(R,H,K){const M=!!T.pendingBranch;M&&T.deps++;const L=R.vnode.el;R.asyncDep.catch(k=>{Yt(k,R,0)}).then(k=>{if(R.isUnmounted||T.isUnmounted||T.pendingId!==R.suspenseId)return;R.asyncResolved=!0;const{vnode:O}=R;ys(R,k,!1),L&&(O.el=L);const G=!L&&R.subTree.el;H(R,O,P(L||R.subTree.el),L?null:w(R.subTree),T,o,K),G&&U(G),Gs(R,O.el),M&&--T.deps===0&&T.resolve()})},unmount(R,H){T.isUnmounted=!0,T.activeBranch&&y(T.activeBranch,n,R,H),T.pendingBranch&&y(T.pendingBranch,n,R,H)}};return T}function cc(e,t,n,s,r,i,o,l,c){const h=t.suspense=Gi(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),u=c(e,h.pendingBranch=t.ssContent,n,h,i,o);return h.deps===0&&h.resolve(!1,!0),u}function fc(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=br(s?n.default:n),e.ssFallback=s?br(n.fallback):ae(ce)}function br(e){let t;if($(e)){const n=Tt&&e._c;n&&(e._d=!1,Cn()),e=e(),n&&(e._d=!0,t=be,qi())}return D(e)&&(e=tc(e)),e=Fe(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function uc(e,t){t&&t.pendingBranch?D(e)?t.effects.push(...e):t.effects.push(e):os(e)}function vt(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let r=t.el;for(;!r&&t.component;)t=t.component.subTree,r=t.el;n.el=r,s&&s.subTree===n&&(s.vnode.el=r,Gs(s,r))}function ac(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ye=Symbol.for("v-fgt"),jn=Symbol.for("v-txt"),ce=Symbol.for("v-cmt"),Ht=Symbol.for("v-stc"),jt=[];let be=null;function Cn(e=!1){jt.push(be=e?null:[])}function qi(){jt.pop(),be=jt[jt.length-1]||null}let Tt=1;function vr(e){Tt+=e,e<0&&be&&(be.hasOnce=!0)}function Ji(e){return e.dynamicChildren=Tt>0?be||gt:null,qi(),Tt>0&&be&&be.push(e),e}function Of(e,t,n,s,r,i){return Ji(zi(e,t,n,s,r,i,!0))}function ps(e,t,n,s,r){return Ji(ae(e,t,n,s,r,!0))}function wt(e){return e?e.__v_isVNode===!0:!1}function Oe(e,t){return e.type===t.type&&e.key===t.key}const Yi=({key:e})=>e??null,hn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ne(e)||ue(e)||$(e)?{i:oe,r:e,k:t,f:!!n}:e:null);function zi(e,t=null,n=null,s=0,r=null,i=e===ye?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Yi(t),ref:t&&hn(t),scopeId:yi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:oe};return l?(qs(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=ne(n)?8:16),Tt>0&&!o&&be&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&be.push(c),c}const ae=dc;function dc(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Fi)&&(e=ce),wt(e)){const l=ke(e,t,!0);return n&&qs(l,n),Tt>0&&!i&&be&&(l.shapeFlag&6?be[be.indexOf(e)]=l:be.push(l)),l.patchFlag=-2,l}if(Tc(e)&&(e=e.__vccOpts),t){t=hc(t);let{class:l,style:c}=t;l&&!ne(l)&&(t.class=Rn(l)),Z(c)&&(Rs(c)&&!D(c)&&(c=ie({},c)),t.style=Pn(c))}const o=ne(e)?1:xn(e)?128:bi(e)?64:Z(e)?4:$(e)?2:0;return zi(e,t,n,s,r,o,i,!0)}function hc(e){return e?Rs(e)||Ni(e)?ie({},e):e:null}function ke(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,h=t?gc(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Yi(h),ref:t&&t.ref?n&&i?D(i)?i.concat(hn(t)):[i,hn(t)]:hn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ke(e.ssContent),ssFallback:e.ssFallback&&ke(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&at(u,c.clone(u)),u}function pc(e=" ",t=0){return ae(jn,null,e,t)}function Mf(e,t){const n=ae(Ht,null,e);return n.staticCount=t,n}function Pf(e="",t=!1){return t?(Cn(),ps(ce,null,e)):ae(ce,null,e)}function Fe(e){return e==null||typeof e=="boolean"?ae(ce):D(e)?ae(ye,null,e.slice()):typeof e=="object"?Ze(e):ae(jn,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ke(e)}function qs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(D(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),qs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Ni(t)?t._ctx=oe:r===3&&oe&&(oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $(t)?(t={default:t,_ctx:oe},n=32):(t=String(t),s&64?(n=16,t=[pc(t)]):n=8);e.children=t,e.shapeFlag|=n}function gc(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=Rn([t.class,s.class]));else if(r==="style")t.style=Pn([t.style,s.style]);else if(In(r)){const i=t[r],o=s[r];o&&i!==o&&!(D(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function Se(e,t,n,s=null){Re(e,t,7,[n,s])}const mc=Pi();let yc=0;function _c(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||mc,i={uid:yc++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Jr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Bi(s,r),emitsOptions:Wi(s,r),emit:null,emitted:null,propsDefaults:q,inheritAttrs:s.inheritAttrs,ctx:q,data:q,props:q,attrs:q,slots:q,refs:q,setupState:q,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=ec.bind(null,i),e.ce&&e.ce(i),i}let fe=null;const At=()=>fe||oe;let Tn,gs;{const e=kr(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Tn=t("__VUE_INSTANCE_SETTERS__",n=>fe=n),gs=t("__VUE_SSR_SETTERS__",n=>Kn=n)}const dt=e=>{const t=fe;return Tn(e),e.scope.on(),()=>{e.scope.off(),Tn(t)}},ms=()=>{fe&&fe.scope.off(),Tn(null)};function Zi(e){return e.vnode.shapeFlag&4}let Kn=!1;function bc(e,t=!1,n=!1){t&&gs(t);const{props:s,children:r}=e.vnode,i=Zi(e);Vl(e,s,i,t),kl(e,r,n);const o=i?vc(e,t):void 0;return t&&gs(!1),o}function vc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ol);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Cc(e):null,i=dt(e);Xe();const o=Jt(s,e,0,[e.props,r]);if(Qe(),i(),ws(o)){if(ct(e)||Si(e),o.then(ms,ms),t)return o.then(l=>{ys(e,l,t)}).catch(l=>{Yt(l,e,0)});e.asyncDep=o}else ys(e,o,t)}else Xi(e,t)}function ys(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=ai(t)),Xi(e,n)}let xr;function Xi(e,t,n){const s=e.type;if(!e.render){if(!t&&xr&&!s.render){const r=s.template||ks(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,h=ie(ie({isCustomElement:i,delimiters:l},o),c);s.render=xr(r,h)}}e.render=s.render||Le}{const r=dt(e);Xe();try{Ml(e)}finally{Qe(),r()}}}const xc={get(e,t){return he(e,"get",""),e[t]}};function Cc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xc),slots:e.slots,emit:e.emit,expose:t}}function kn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ai(Qo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Vt)return Vt[n](e)},has(t,n){return n in t||n in Vt}})):e.proxy}function _s(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function Tc(e){return $(e)&&"__vccOpts"in e}const wc=(e,t)=>cl(e,t,Kn);function Ec(e,t,n){const s=arguments.length;return s===2?Z(t)&&!D(t)?wt(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&wt(n)&&(n=[n]),ae(e,t,n))}const Sc="3.5.1";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.1
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let bs;const Cr=typeof window<"u"&&window.trustedTypes;if(Cr)try{bs=Cr.createPolicy("vue",{createHTML:e=>e})}catch{}const Qi=bs?e=>bs.createHTML(e):e=>e,Ac="http://www.w3.org/2000/svg",Ic="http://www.w3.org/1998/Math/MathML",He=typeof document<"u"?document:null,Tr=He&&He.createElement("template"),Fc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?He.createElementNS(Ac,e):t==="mathml"?He.createElementNS(Ic,e):n?He.createElement(e,{is:n}):He.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>He.createTextNode(e),createComment:e=>He.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>He.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Tr.innerHTML=Qi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Tr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qe="transition",Pt="animation",Et=Symbol("_vtc"),eo={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},to=ie({},Ci,eo),Oc=e=>(e.displayName="Transition",e.props=to,e),Rf=Oc((e,{slots:t})=>Ec(bl,no(e),t)),rt=(e,t=[])=>{D(e)?e.forEach(n=>n(...t)):e&&e(...t)},wr=e=>e?D(e)?e.some(t=>t.length>1):e.length>1:!1;function no(e){const t={};for(const O in e)O in eo||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:h=o,appearToClass:u=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,w=Mc(r),P=w&&w[0],U=w&&w[1],{onBeforeEnter:j,onEnter:S,onEnterCancelled:F,onLeave:_,onLeaveCancelled:T,onBeforeAppear:R=j,onAppear:H=S,onAppearCancelled:K=F}=t,M=(O,G,re)=>{Je(O,G?u:l),Je(O,G?h:o),re&&re()},L=(O,G)=>{O._isLeaving=!1,Je(O,a),Je(O,y),Je(O,p),G&&G()},k=O=>(G,re)=>{const we=O?H:S,se=()=>M(G,O,re);rt(we,[G,se]),Er(()=>{Je(G,O?c:i),Ve(G,O?u:l),wr(we)||Sr(G,s,P,se)})};return ie(t,{onBeforeEnter(O){rt(j,[O]),Ve(O,i),Ve(O,o)},onBeforeAppear(O){rt(R,[O]),Ve(O,c),Ve(O,h)},onEnter:k(!1),onAppear:k(!0),onLeave(O,G){O._isLeaving=!0;const re=()=>L(O,G);Ve(O,a),Ve(O,p),ro(),Er(()=>{O._isLeaving&&(Je(O,a),Ve(O,y),wr(_)||Sr(O,s,U,re))}),rt(_,[O,re])},onEnterCancelled(O){M(O,!1),rt(F,[O])},onAppearCancelled(O){M(O,!0),rt(K,[O])},onLeaveCancelled(O){L(O),rt(T,[O])}})}function Mc(e){if(e==null)return null;if(Z(e))return[es(e.enter),es(e.leave)];{const t=es(e);return[t,t]}}function es(e){return Kr(e)}function Ve(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Et]||(e[Et]=new Set)).add(t)}function Je(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Et];n&&(n.delete(t),n.size||(e[Et]=void 0))}function Er(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Pc=0;function Sr(e,t,n,s){const r=e._endId=++Pc,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=so(e,t);if(!o)return s();const h=o+"end";let u=0;const a=()=>{e.removeEventListener(h,p),i()},p=y=>{y.target===e&&++u>=c&&a()};setTimeout(()=>{u<c&&a()},l+1),e.addEventListener(h,p)}function so(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),r=s(`${qe}Delay`),i=s(`${qe}Duration`),o=Ar(r,i),l=s(`${Pt}Delay`),c=s(`${Pt}Duration`),h=Ar(l,c);let u=null,a=0,p=0;t===qe?o>0&&(u=qe,a=o,p=i.length):t===Pt?h>0&&(u=Pt,a=h,p=c.length):(a=Math.max(o,h),u=a>0?o>h?qe:Pt:null,p=u?u===qe?i.length:c.length:0);const y=u===qe&&/\b(transform|all)(,|$)/.test(s(`${qe}Property`).toString());return{type:u,timeout:a,propCount:p,hasTransform:y}}function Ar(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ir(n)+Ir(e[s])))}function Ir(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ro(){return document.body.offsetHeight}function Rc(e,t,n){const s=e[Et];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const wn=Symbol("_vod"),io=Symbol("_vsh"),Df={beforeMount(e,{value:t},{transition:n}){e[wn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Rt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Rt(e,!0),s.enter(e)):s.leave(e,()=>{Rt(e,!1)}):Rt(e,t))},beforeUnmount(e,{value:t}){Rt(e,t)}};function Rt(e,t){e.style.display=t?e[wn]:"none",e[io]=!t}const oo=Symbol("");function Nf(e){const t=At();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>En(i,r))},s=()=>{const r=e(t.proxy);t.ce?En(t.ce,r):vs(t.subTree,r),n(r)};Ii(()=>{Zl(s)}),Vn(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Hs(()=>r.disconnect())})}function vs(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{vs(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)En(e.el,t);else if(e.type===ye)e.children.forEach(n=>vs(n,t));else if(e.type===Ht){let{el:n,anchor:s}=e;for(;n&&(En(n,t),n!==s);)n=n.nextSibling}}function En(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const r in t)n.setProperty(`--${r}`,t[r]),s+=`--${r}: ${t[r]};`;n[oo]=s}}const Dc=/(^|;)\s*display\s*:/;function Nc(e,t,n){const s=e.style,r=ne(n);let i=!1;if(n&&!r){if(t)if(ne(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&pn(s,l,"")}else for(const o in t)n[o]==null&&pn(s,o,"");for(const o in n)o==="display"&&(i=!0),pn(s,o,n[o])}else if(r){if(t!==n){const o=s[oo];o&&(n+=";"+o),s.cssText=n,i=Dc.test(n)}}else t&&e.removeAttribute("style");wn in e&&(e[wn]=i?s.display:"",e[io]&&(s.display="none"))}const Fr=/\s*!important$/;function pn(e,t,n){if(D(n))n.forEach(s=>pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Lc(e,t);Fr.test(n)?e.setProperty(Ue(s),n.replace(Fr,""),"important"):e[s]=n}}const Or=["Webkit","Moz","ms"],ts={};function Lc(e,t){const n=ts[t];if(n)return n;let s=Ae(t);if(s!=="filter"&&s in e)return ts[t]=s;s=Mn(s);for(let r=0;r<Or.length;r++){const i=Or[r]+s;if(i in e)return ts[t]=i}return t}const Mr="http://www.w3.org/1999/xlink";function Pr(e,t,n,s,r,i=Ao(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Mr,t.slice(6,t.length)):e.setAttributeNS(Mr,t,n):n==null||i&&!Ur(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Be(n)?String(n):n)}function Bc(e,t,n,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Qi(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const o=r==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(o!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=Ur(n):n==null&&o==="string"?(n="",i=!0):o==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(t)}function Js(e,t,n,s){e.addEventListener(t,n,s)}function $c(e,t,n,s){e.removeEventListener(t,n,s)}const Rr=Symbol("_vei");function Vc(e,t,n,s,r=null){const i=e[Rr]||(e[Rr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Hc(t);if(s){const h=i[t]=kc(s,r);Js(e,l,h,c)}else o&&($c(e,l,o,c),i[t]=void 0)}}const Dr=/(?:Once|Passive|Capture)$/;function Hc(e){let t;if(Dr.test(e)){t={};let s;for(;s=e.match(Dr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ue(e.slice(2)),t]}let ns=0;const jc=Promise.resolve(),Kc=()=>ns||(jc.then(()=>ns=0),ns=Date.now());function kc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Re(Uc(s,n.value),t,5,[s])};return n.value=e,n.attached=Kc(),n}function Uc(e,t){if(D(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Nr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Rc(e,s,o):t==="style"?Nc(e,n,s):In(t)?Cs(t)||Vc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gc(e,t,s,o))?(Bc(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pr(e,t,s,o,i,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Pr(e,t,s,o))};function Gc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Nr(t)&&$(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Nr(t)&&ne(n)?!1:!!(t in e||e._isVueCE&&(/[A-Z]/.test(t)||!ne(n)))}const lo=new WeakMap,co=new WeakMap,Sn=Symbol("_moveCb"),Lr=Symbol("_enterCb"),qc=e=>(delete e.props.mode,e),Jc=qc({name:"TransitionGroup",props:ie({},to,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=At(),s=xi();let r,i;return $s(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Xc(r[0].el,n.vnode.el,o))return;r.forEach(Yc),r.forEach(zc);const l=r.filter(Zc);ro(),l.forEach(c=>{const h=c.el,u=h.style;Ve(h,o),u.transform=u.webkitTransform=u.transitionDuration="";const a=h[Sn]=p=>{p&&p.target!==h||(!p||/transform$/.test(p.propertyName))&&(h.removeEventListener("transitionend",a),h[Sn]=null,Je(h,o))};h.addEventListener("transitionend",a)})}),()=>{const o=J(e),l=no(o);let c=o.tag||ye;if(r=[],i)for(let h=0;h<i.length;h++){const u=i[h];u.el&&u.el instanceof Element&&(r.push(u),at(u,Gt(u,l,s,n)),lo.set(u,u.el.getBoundingClientRect()))}i=t.default?Bs(t.default()):[];for(let h=0;h<i.length;h++){const u=i[h];u.key!=null&&at(u,Gt(u,l,s,n))}return ae(c,null,i)}}}),Lf=Jc;function Yc(e){const t=e.el;t[Sn]&&t[Sn](),t[Lr]&&t[Lr]()}function zc(e){co.set(e,e.el.getBoundingClientRect())}function Zc(e){const t=lo.get(e),n=co.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Xc(e,t,n){const s=e.cloneNode(),r=e[Et];r&&r.forEach(l=>{l.split(/\s+/).forEach(c=>c&&s.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=so(s);return i.removeChild(s),o}const An=e=>{const t=e.props["onUpdate:modelValue"]||!1;return D(t)?n=>yt(t,n):t},xt=Symbol("_assign"),Bf={deep:!0,created(e,t,n){e[xt]=An(n),Js(e,"change",()=>{const s=e._modelValue,r=fo(e),i=e.checked,o=e[xt];if(D(s)){const l=Wr(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const h=[...s];h.splice(l,1),o(h)}}else if(Fn(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(uo(e,i))})},mounted:Br,beforeUpdate(e,t,n){e[xt]=An(n),Br(e,t,n)}};function Br(e,{value:t,oldValue:n},s){e._modelValue=t;let r;D(t)?r=Wr(t,s.props.value)>-1:Fn(t)?r=t.has(s.props.value):r=Ct(t,uo(e,!0)),e.checked!==r&&(e.checked=r)}const $f={created(e,{value:t},n){e.checked=Ct(t,n.props.value),e[xt]=An(n),Js(e,"change",()=>{e[xt](fo(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[xt]=An(s),t!==n&&(e.checked=Ct(t,s.props.value))}};function fo(e){return"_value"in e?e._value:e.value}function uo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Qc=["ctrl","shift","alt","meta"],ef={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Qc.some(n=>e[`${n}Key`]&&!t.includes(n))},Vf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=ef[t[o]];if(l&&l(r,t))return}return e(r,...i)})},tf={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hf=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=Ue(r.key);if(t.some(o=>o===i||tf[o]===i))return e(r)})},nf=ie({patchProp:Wc},Fc);let $r;function ao(){return $r||($r=Wl(nf))}const jf=(...e)=>{ao().render(...e)},Kf=(...e)=>{const t=ao().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=rf(s);if(!r)return;const i=t._component;!$(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,sf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function sf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function rf(e){return ne(e)?document.querySelector(e):e}export{uf as $,lf as A,df as B,At as C,ff as D,Af as E,gf as F,Qo as G,_t as H,J as I,yf as J,of as K,hc as L,ae as M,ye as N,ps as O,$l as P,vf as Q,pl as R,_f as S,Fo as T,Hs as U,pc as V,Rf as W,Pn as X,bf as Y,Tf as Z,Ec as _,an as a,Vs as a0,jn as a1,Xo as a2,Ii as a3,wt as a4,Kf as a5,ke as a6,ce as a7,Mn as a8,Ae as a9,Lf as aa,$s as ab,Cl as ac,xl as ad,pf as ae,jf as af,wl as ag,Rs as ah,wf as ai,If as aj,Bf as ak,Nf as al,Mf as am,$f as an,mf as ao,Ff as ap,xf as aq,Ef as ar,Ms as b,wc as c,ci as d,Cn as e,Of as f,hf as g,Sf as h,ue as i,zi as j,Rn as k,Cf as l,Pf as m,dl as n,cf as o,gc as p,Hf as q,el as r,Vf as s,af as t,ui as u,Df as v,dn as w,rl as x,Vn as y,Oo as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as v,c as b,e as S,f as V,g as D,v as B,j as p,k as y,l as w,m as C,p as N,q as j,s as T}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";var L={name:"Toggle",emits:["input","update:modelValue","change"],props:{value:{validator:function(e){return n=>["number","string","boolean"].indexOf(typeof n)!==-1||n==null},required:!1},modelValue:{validator:function(e){return n=>["number","string","boolean"].indexOf(typeof n)!==-1||n==null},required:!1},id:{type:[String,Number],required:!1,default:"toggle"},name:{type:[String,Number],required:!1,default:"toggle"},disabled:{type:Boolean,required:!1,default:!1},required:{type:Boolean,required:!1,default:!1},falseValue:{type:[String,Number,Boolean],required:!1,default:!1},trueValue:{type:[String,Number,Boolean],required:!1,default:!0},onLabel:{type:[String,Object],required:!1,default:""},offLabel:{type:[String,Object],required:!1,default:""},classes:{type:Object,required:!1,default:()=>({})},labelledby:{type:String,required:!1},describedby:{type:String,required:!1},aria:{required:!1,type:Object,default:()=>({})}},setup(e,n){const a=function(d,o,c){const{value:r,modelValue:u,falseValue:t,trueValue:l,disabled:f}=v(d),i=u&&u.value!==void 0?u:r,s=b(()=>i.value===l.value),h=g=>{o.emit("input",g),o.emit("update:modelValue",g),o.emit("change",g)},k=()=>{h(l.value)},m=()=>{h(t.value)};return[null,void 0,!1,0,"0","off"].indexOf(i.value)!==-1&&[t.value,l.value].indexOf(i.value)===-1&&m(),[!0,1,"1","on"].indexOf(i.value)!==-1&&[t.value,l.value].indexOf(i.value)===-1&&k(),{externalValue:i,checked:s,update:h,check:k,uncheck:m,handleInput:g=>{h(g.target.checked?l.value:t.value)},handleClick:()=>{f.value||(s.value?m():k())}}}(e,n),O=function(d,o,c){const{trueValue:r,falseValue:u,onLabel:t,offLabel:l}=v(d),f=c.checked,i=c.update;return{label:b(()=>{let s=f.value?t.value:l.value;return s||(s=" "),s}),toggle:()=>{i(f.value?u.value:r.value)},on:()=>{i(r.value)},off:()=>{i(u.value)}}}(e,0,{checked:a.checked,update:a.update}),q=function(d,o,c){const r=v(d),u=r.disabled,t=c.checked,l=b(()=>({container:"toggle-container",toggle:"toggle",toggleOn:"toggle-on",toggleOff:"toggle-off",toggleOnDisabled:"toggle-on-disabled",toggleOffDisabled:"toggle-off-disabled",handle:"toggle-handle",handleOn:"toggle-handle-on",handleOff:"toggle-handle-off",handleOnDisabled:"toggle-handle-on-disabled",handleOffDisabled:"toggle-handle-off-disabled",label:"toggle-label",...r.classes.value}));return{classList:b(()=>({container:l.value.container,toggle:[l.value.toggle,u.value?t.value?l.value.toggleOnDisabled:l.value.toggleOffDisabled:t.value?l.value.toggleOn:l.value.toggleOff],handle:[l.value.handle,u.value?t.value?l.value.handleOnDisabled:l.value.handleOffDisabled:t.value?l.value.handleOn:l.value.handleOff],label:l.value.label}))}}(e,0,{checked:a.checked}),x=function(d,o,c){const{disabled:r}=v(d),u=c.check,t=c.uncheck,l=c.checked;return{handleSpace:()=>{r.value||(l.value?t():u())}}}(e,0,{check:a.check,uncheck:a.uncheck,checked:a.checked});return{...a,...q,...O,...x}}};const M=["tabindex","aria-checked","aria-describedby","aria-labelledby"],z=["id","name","value","checked","disabled"],H=["innerHTML"],K=["checked"];L.render=function(e,n,a,O,q,x){return S(),V("div",N({class:e.classList.container,tabindex:a.disabled?void 0:0,"aria-checked":e.checked,"aria-describedby":a.describedby,"aria-labelledby":a.labelledby,role:"switch"},a.aria,{onKeypress:n[1]||(n[1]=j(T((...d)=>e.handleSpace&&e.handleSpace(...d),["prevent"]),["space"]))}),[D(p("input",{type:"checkbox",id:a.id,name:a.name,value:a.trueValue,checked:e.checked,disabled:a.disabled},null,8,z),[[B,!1]]),p("div",{class:y(e.classList.toggle),onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[p("span",{class:y(e.classList.handle)},null,2),w(e.$slots,"label",{checked:e.checked,classList:e.classList},()=>[p("span",{class:y(e.classList.label),innerHTML:e.label},null,10,H)]),a.required?(S(),V("input",{key:0,type:"checkbox",style:{appearance:"none",height:"1px",margin:"0",padding:"0",fontSize:"0",background:"transparent",position:"absolute",width:"100%",bottom:"0",outline:"none"},checked:e.checked,"aria-hidden":"true",tabindex:"-1",required:""},null,8,K)):C("v-if",!0)],2)],16,M)},L.__file="src/Toggle.vue";export{L as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{x as pe,y as he,n as we,z as ge,o as Fe,A as Le,i as ne,u as He,B as Pe,d as ye,r as h,c as A,C as Se,w as R,D as oe,b as K,E as re,F as ie}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";import{n as Y}from"./nprogress.B-sfF0qV.0.0.22-alpha.1.js";function N(e){return ge()?(Fe(e),!0):!1}function Mt(e){let n=0,t,o;const s=()=>{n-=1,o&&n<=0&&(o.stop(),t=void 0,o=void 0)};return(...r)=>(n+=1,o||(o=Le(!0),t=o.run(()=>e(...r))),N(s),t)}function We(e,n,{enumerable:t=!1,unwrap:o=!0}={}){for(const[s,r]of Object.entries(n))s!=="value"&&(ne(r)&&o?Object.defineProperty(e,s,{get(){return r.value},set(a){r.value=a},enumerable:t}):Object.defineProperty(e,s,{value:r,enumerable:t}));return e}function Re(e,n){if(typeof Symbol<"u"){const t={...e};return Object.defineProperty(t,Symbol.iterator,{enumerable:!1,value(){let o=0;return{next:()=>({value:n[o++],done:o>n.length})}}}),t}else return Object.assign([...n],e)}function x(e){return typeof e=="function"?e():He(e)}const V=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ce=e=>e!=null,Ye=Object.prototype.toString,be=e=>Ye.call(e)==="[object Object]",W=()=>{},B=Ne();function Ne(){var e,n;return V&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((n=window==null?void 0:window.navigator)==null?void 0:n.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function le(e,n){function t(...o){return new Promise((s,r)=>{Promise.resolve(e(()=>n.apply(this,o),{fn:n,thisArg:this,args:o})).then(s).catch(r)})}return t}const Ee=e=>e();function ze(e,n={}){let t,o,s=W;const r=l=>{clearTimeout(l),s(),s=W};return l=>{const i=x(e),u=x(n.maxWait);return t&&r(t),i<=0||u!==void 0&&u<=0?(o&&(r(o),o=null),Promise.resolve(l())):new Promise((d,f)=>{s=n.rejectOnCancel?f:d,u&&!o&&(o=setTimeout(()=>{t&&r(t),o=null,d(l())},u)),t=setTimeout(()=>{o&&r(o),o=null,d(l())},i)})}}function Ie(...e){let n=0,t,o=!0,s=W,r,a,l,i,u;!ne(e[0])&&typeof e[0]=="object"?{delay:a,trailing:l=!0,leading:i=!0,rejectOnCancel:u=!1}=e[0]:[a,l=!0,i=!0,u=!1]=e;const d=()=>{t&&(clearTimeout(t),t=void 0,s(),s=W)};return c=>{const m=x(a),p=Date.now()-n,w=()=>r=c();return d(),m<=0?(n=Date.now(),w()):(p>m&&(i||!o)?(n=Date.now(),w()):l&&(r=new Promise((S,v)=>{s=u?v:S,t=setTimeout(()=>{n=Date.now(),o=!0,S(w()),d()},Math.max(0,m-p))})),!i&&!t&&(t=setTimeout(()=>o=!0,m)),o=!1,r)}}function Xe(e=Ee){const n=h(!0);function t(){n.value=!1}function o(){n.value=!0}const s=(...r)=>{n.value&&e(...r)};return{isActive:ye(n),pause:t,resume:o,eventFilter:s}}const _e={mounted:"mounted",updated:"updated",unmounted:"unmounted"};function $e(e){const n=Object.create(null);return t=>n[t]||(n[t]=e(t))}const je=/-(\w)/g,Be=$e(e=>e.replace(je,(n,t)=>t?t.toUpperCase():""));function Ve(e){return Se()}function Me(...e){if(e.length!==1)return Pe(...e);const n=e[0];return typeof n=="function"?ye(pe(()=>({get:n,set:W}))):h(n)}function qe(e,n=200,t={}){return le(ze(n,t),e)}function Ue(e,n=200,t=!1,o=!0,s=!1){return le(Ie(n,t,o,s),e)}function xt(e,n={}){let t=e,o,s;const r=pe((c,m)=>(o=c,s=m,{get(){return a()},set(p){l(p)}}));function a(c=!0){return c&&o(),t}function l(c,m=!0){var p,w;if(c===t)return;const S=t;((p=n.onBeforeChange)==null?void 0:p.call(n,c,S))!==!1&&(t=c,(w=n.onChanged)==null||w.call(n,c,S),m&&s())}return We(r,{get:a,set:l,untrackedGet:()=>a(!1),silentSet:c=>l(c,!1),peek:()=>a(!1),lay:c=>l(c,!1)},{enumerable:!0})}function Ge(e,n,t={}){const{eventFilter:o=Ee,...s}=t;return R(e,le(o,n),s)}function Je(e,n,t={}){const{eventFilter:o,...s}=t,{eventFilter:r,pause:a,resume:l,isActive:i}=Xe(o);return{stop:Ge(e,n,{...s,eventFilter:r}),pause:a,resume:l,isActive:i}}function q(e,n=!0,t){Ve()?he(e,t):n?e():we(e)}const Ke=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[T\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/i,Qe=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function Ze(e,n,t,o){let s=e<12?"AM":"PM";return o&&(s=s.split("").reduce((r,a)=>r+=`${a}.`,"")),t?s.toLowerCase():s}function I(e){const n=["th","st","nd","rd"],t=e%100;return e+(n[(t-20)%10]||n[t]||n[0])}function et(e,n,t={}){var o;const s=e.getFullYear(),r=e.getMonth(),a=e.getDate(),l=e.getHours(),i=e.getMinutes(),u=e.getSeconds(),d=e.getMilliseconds(),f=e.getDay(),c=(o=t.customMeridiem)!=null?o:Ze,m={Yo:()=>I(s),YY:()=>String(s).slice(-2),YYYY:()=>s,M:()=>r+1,Mo:()=>I(r+1),MM:()=>`${r+1}`.padStart(2,"0"),MMM:()=>e.toLocaleDateString(x(t.locales),{month:"short"}),MMMM:()=>e.toLocaleDateString(x(t.locales),{month:"long"}),D:()=>String(a),Do:()=>I(a),DD:()=>`${a}`.padStart(2,"0"),H:()=>String(l),Ho:()=>I(l),HH:()=>`${l}`.padStart(2,"0"),h:()=>`${l%12||12}`.padStart(1,"0"),ho:()=>I(l%12||12),hh:()=>`${l%12||12}`.padStart(2,"0"),m:()=>String(i),mo:()=>I(i),mm:()=>`${i}`.padStart(2,"0"),s:()=>String(u),so:()=>I(u),ss:()=>`${u}`.padStart(2,"0"),SSS:()=>`${d}`.padStart(3,"0"),d:()=>f,dd:()=>e.toLocaleDateString(x(t.locales),{weekday:"narrow"}),ddd:()=>e.toLocaleDateString(x(t.locales),{weekday:"short"}),dddd:()=>e.toLocaleDateString(x(t.locales),{weekday:"long"}),A:()=>c(l,i),AA:()=>c(l,i,!1,!0),a:()=>c(l,i,!0),aa:()=>c(l,i,!0,!0)};return n.replace(Qe,(p,w)=>{var S,v;return(v=w??((S=m[p])==null?void 0:S.call(m)))!=null?v:p})}function tt(e){if(e===null)return new Date(Number.NaN);if(e===void 0)return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){const n=e.match(Ke);if(n){const t=n[2]-1||0,o=(n[7]||"0").substring(0,3);return new Date(n[1],t,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(e)}function Dt(e,n="HH:mm:ss",t={}){return A(()=>et(tt(x(e)),x(n),t))}function Ot(e,n,t){let o;ne(t)?o={evaluating:t}:o=t||{};const{lazy:s=!1,evaluating:r=void 0,shallow:a=!0,onError:l=W}=o,i=h(!s),u=a?oe(n):h(n);let d=0;return re(async f=>{if(!i.value)return;d++;const c=d;let m=!1;r&&Promise.resolve().then(()=>{r.value=!0});try{const p=await e(w=>{f(()=>{r&&(r.value=!1),m||w()})});c===d&&(u.value=p)}catch(p){l(p)}finally{r&&c===d&&(r.value=!1),m=!0}}),s?A(()=>(i.value=!0,u.value)):u}function Tt(e={}){const{inheritAttrs:n=!0}=e,t=oe(),o=ie({setup(r,{slots:a}){return()=>{t.value=a.default}}}),s=ie({inheritAttrs:n,setup(r,{attrs:a,slots:l}){return()=>{var i;t.value;const u=(i=t.value)==null?void 0:i.call(t,{...nt(a),$slots:l});return n&&(u==null?void 0:u.length)===1?u[0]:u}}});return Re({define:o,reuse:s},[o,s])}function nt(e){const n={};for(const t in e)n[Be(t)]=e[t];return n}function L(e){var n;const t=x(e);return(n=t==null?void 0:t.$el)!=null?n:t}const H=V?window:void 0,xe=V?window.document:void 0;function M(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=H):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(d=>d()),r.length=0},l=(d,f,c,m)=>(d.addEventListener(f,c,m),()=>d.removeEventListener(f,c,m)),i=R(()=>[L(n),x(s)],([d,f])=>{if(a(),!d)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(m=>o.map(p=>l(d,m,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}let ae=!1;function At(e,n,t={}){const{window:o=H,ignore:s=[],capture:r=!0,detectIframe:a=!1}=t;if(!o)return W;B&&!ae&&(ae=!0,Array.from(o.document.body.children).forEach(c=>c.addEventListener("click",W)),o.document.documentElement.addEventListener("click",W));let l=!0;const i=c=>s.some(m=>{if(typeof m=="string")return Array.from(o.document.querySelectorAll(m)).some(p=>p===c.target||c.composedPath().includes(p));{const p=L(m);return p&&(c.target===p||c.composedPath().includes(p))}}),d=[M(o,"click",c=>{const m=L(e);if(!(!m||m===c.target||c.composedPath().includes(m))){if(c.detail===0&&(l=!i(c)),!l){l=!0;return}n(c)}},{passive:!0,capture:r}),M(o,"pointerdown",c=>{const m=L(e);l=!i(c)&&!!(m&&!c.composedPath().includes(m))},{passive:!0}),a&&M(o,"blur",c=>{setTimeout(()=>{var m;const p=L(e);((m=o.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(p!=null&&p.contains(o.document.activeElement))&&n(c)},0)})].filter(Boolean);return()=>d.forEach(c=>c())}function ot(e){return typeof e=="function"?e:typeof e=="string"?n=>n.key===e:Array.isArray(e)?n=>e.includes(n.key):()=>!0}function kt(...e){let n,t,o={};e.length===3?(n=e[0],t=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(n=!0,t=e[0],o=e[1]):(n=e[0],t=e[1]):(n=!0,t=e[0]);const{target:s=H,eventName:r="keydown",passive:a=!1,dedupe:l=!1}=o,i=ot(n);return M(s,r,d=>{d.repeat&&x(l)||i(d)&&t(d)},a)}function rt(){const e=h(!1),n=Se();return n&&he(()=>{e.value=!0},n),e}function U(e){const n=rt();return A(()=>(n.value,!!e()))}function lt(e,n,t={}){const{window:o=H,...s}=t;let r;const a=U(()=>o&&"MutationObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=A(()=>{const c=x(e),m=(Array.isArray(c)?c:[c]).map(L).filter(Ce);return new Set(m)}),u=R(()=>i.value,c=>{l(),a.value&&c.size&&(r=new MutationObserver(n),c.forEach(m=>r.observe(m,s)))},{immediate:!0,flush:"post"}),d=()=>r==null?void 0:r.takeRecords(),f=()=>{u(),l()};return N(f),{isSupported:a,stop:f,takeRecords:d}}function st(e,n={}){const{window:t=H}=n,o=U(()=>t&&"matchMedia"in t&&typeof t.matchMedia=="function");let s;const r=h(!1),a=u=>{r.value=u.matches},l=()=>{s&&("removeEventListener"in s?s.removeEventListener("change",a):s.removeListener(a))},i=re(()=>{o.value&&(l(),s=t.matchMedia(x(e)),"addEventListener"in s?s.addEventListener("change",a):s.addListener(a),r.value=s.matches)});return N(()=>{i(),l(),s=void 0}),r}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__",ut=it();function it(){return J in G||(G[J]=G[J]||{}),G[J]}function at(e,n){return ut[e]||n}function ct(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ft={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},ce="vueuse-storage";function dt(e,n,t,o={}){var s;const{flush:r="pre",deep:a=!0,listenToStorageChanges:l=!0,writeDefaults:i=!0,mergeDefaults:u=!1,shallow:d,window:f=H,eventFilter:c,onError:m=y=>{console.error(y)},initOnMounted:p}=o,w=(d?oe:h)(typeof n=="function"?n():n);if(!t)try{t=at("getDefaultStorage",()=>{var y;return(y=H)==null?void 0:y.localStorage})()}catch(y){m(y)}if(!t)return w;const S=x(n),v=ct(S),E=(s=o.serializer)!=null?s:ft[v],{pause:k,resume:D}=Je(w,()=>T(w.value),{flush:r,deep:a,eventFilter:c});f&&l&&q(()=>{t instanceof Storage?M(f,"storage",P):M(f,ce,_),p&&P()}),p||P();function g(y,O){if(f){const F={key:e,oldValue:y,newValue:O,storageArea:t};f.dispatchEvent(t instanceof Storage?new StorageEvent("storage",F):new CustomEvent(ce,{detail:F}))}}function T(y){try{const O=t.getItem(e);if(y==null)g(O,null),t.removeItem(e);else{const F=E.write(y);O!==F&&(t.setItem(e,F),g(O,F))}}catch(O){m(O)}}function b(y){const O=y?y.newValue:t.getItem(e);if(O==null)return i&&S!=null&&t.setItem(e,E.write(S)),S;if(!y&&u){const F=E.read(O);return typeof u=="function"?u(F,S):v==="object"&&!Array.isArray(F)?{...S,...F}:F}else return typeof O!="string"?O:E.read(O)}function P(y){if(!(y&&y.storageArea!==t)){if(y&&y.key==null){w.value=S;return}if(!(y&&y.key!==e)){k();try{(y==null?void 0:y.newValue)!==E.write(w.value)&&(w.value=b(y))}catch(O){m(O)}finally{y?we(D):D()}}}}function _(y){P(y.detail)}return w}function Ft(e={}){const{document:n=xe}=e;if(!n)return h("visible");const t=h(n.visibilityState);return M(n,"visibilitychange",()=>{t.value=n.visibilityState}),t}function De(e,n,t={}){const{window:o=H,...s}=t;let r;const a=U(()=>o&&"ResizeObserver"in o),l=()=>{r&&(r.disconnect(),r=void 0)},i=A(()=>{const f=x(e);return Array.isArray(f)?f.map(c=>L(c)):[L(f)]}),u=R(i,f=>{if(l(),a.value&&o){r=new ResizeObserver(n);for(const c of f)c&&r.observe(c,s)}},{immediate:!0,flush:"post"}),d=()=>{l(),u()};return N(d),{isSupported:a,stop:d}}function Lt(e,n={}){const{reset:t=!0,windowResize:o=!0,windowScroll:s=!0,immediate:r=!0,updateTiming:a="sync"}=n,l=h(0),i=h(0),u=h(0),d=h(0),f=h(0),c=h(0),m=h(0),p=h(0);function w(){const v=L(e);if(!v){t&&(l.value=0,i.value=0,u.value=0,d.value=0,f.value=0,c.value=0,m.value=0,p.value=0);return}const E=v.getBoundingClientRect();l.value=E.height,i.value=E.bottom,u.value=E.left,d.value=E.right,f.value=E.top,c.value=E.width,m.value=E.x,p.value=E.y}function S(){a==="sync"?w():a==="next-frame"&&requestAnimationFrame(()=>w())}return De(e,S),R(()=>L(e),v=>!v&&S()),lt(e,S,{attributeFilter:["style","class"]}),s&&M("scroll",S,{capture:!0,passive:!0}),o&&M("resize",S,{passive:!0}),q(()=>{r&&S()}),{height:l,bottom:i,left:u,right:d,top:f,width:c,x:m,y:p,update:S}}function Ht(e,n={width:0,height:0},t={}){const{window:o=H,box:s="content-box"}=t,r=A(()=>{var f,c;return(c=(f=L(e))==null?void 0:f.namespaceURI)==null?void 0:c.includes("svg")}),a=h(n.width),l=h(n.height),{stop:i}=De(e,([f])=>{const c=s==="border-box"?f.borderBoxSize:s==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(o&&r.value){const m=L(e);if(m){const p=m.getBoundingClientRect();a.value=p.width,l.value=p.height}}else if(c){const m=Array.isArray(c)?c:[c];a.value=m.reduce((p,{inlineSize:w})=>p+w,0),l.value=m.reduce((p,{blockSize:w})=>p+w,0)}else a.value=f.contentRect.width,l.value=f.contentRect.height},t);q(()=>{const f=L(e);f&&(a.value="offsetWidth"in f?f.offsetWidth:n.width,l.value="offsetHeight"in f?f.offsetHeight:n.height)});const u=R(()=>L(e),f=>{a.value=f?n.width:0,l.value=f?n.height:0});function d(){i(),u()}return{width:a,height:l,stop:d}}const j=new Map;function Pt(e){const n=ge();function t(l){var i;const u=j.get(e)||new Set;u.add(l),j.set(e,u);const d=()=>s(l);return(i=n==null?void 0:n.cleanups)==null||i.push(d),d}function o(l){function i(...u){s(i),l(...u)}return t(i)}function s(l){const i=j.get(e);i&&(i.delete(l),i.size||r())}function r(){j.delete(e)}function a(l,i){var u;(u=j.get(e))==null||u.forEach(d=>d(l,i))}return{on:t,once:o,off:s,emit:a,reset:r}}const fe=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function Wt(e,n={}){const{document:t=xe,autoExit:o=!1}=n,s=A(()=>{var v;return(v=L(e))!=null?v:t==null?void 0:t.querySelector("html")}),r=h(!1),a=A(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(v=>t&&v in t||s.value&&v in s.value)),l=A(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(v=>t&&v in t||s.value&&v in s.value)),i=A(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(v=>t&&v in t||s.value&&v in s.value)),u=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(v=>t&&v in t),d=U(()=>s.value&&t&&a.value!==void 0&&l.value!==void 0&&i.value!==void 0),f=()=>u?(t==null?void 0:t[u])===s.value:!1,c=()=>{if(i.value){if(t&&t[i.value]!=null)return t[i.value];{const v=s.value;if((v==null?void 0:v[i.value])!=null)return!!v[i.value]}}return!1};async function m(){if(!(!d.value||!r.value)){if(l.value)if((t==null?void 0:t[l.value])!=null)await t[l.value]();else{const v=s.value;(v==null?void 0:v[l.value])!=null&&await v[l.value]()}r.value=!1}}async function p(){if(!d.value||r.value)return;c()&&await m();const v=s.value;a.value&&(v==null?void 0:v[a.value])!=null&&(await v[a.value](),r.value=!0)}async function w(){await(r.value?m():p())}const S=()=>{const v=c();(!v||v&&f())&&(r.value=v)};return M(t,fe,S,!1),M(()=>L(s),fe,S,!1),o&&N(m),{isSupported:d,isFullscreen:r,enter:p,exit:m,toggle:w}}const de=1;function Rt(e,n={}){const{throttle:t=0,idle:o=200,onStop:s=W,onScroll:r=W,offset:a={left:0,right:0,top:0,bottom:0},eventListenerOptions:l={capture:!1,passive:!0},behavior:i="auto",window:u=H,onError:d=b=>{console.error(b)}}=n,f=h(0),c=h(0),m=A({get(){return f.value},set(b){w(b,void 0)}}),p=A({get(){return c.value},set(b){w(void 0,b)}});function w(b,P){var _,y,O,F;if(!u)return;const C=x(e);if(!C)return;(O=C instanceof Document?u.document.body:C)==null||O.scrollTo({top:(_=x(P))!=null?_:p.value,left:(y=x(b))!=null?y:m.value,behavior:x(i)});const $=((F=C==null?void 0:C.document)==null?void 0:F.documentElement)||(C==null?void 0:C.documentElement)||C;m!=null&&(f.value=$.scrollLeft),p!=null&&(c.value=$.scrollTop)}const S=h(!1),v=K({left:!0,right:!1,top:!0,bottom:!1}),E=K({left:!1,right:!1,top:!1,bottom:!1}),k=b=>{S.value&&(S.value=!1,E.left=!1,E.right=!1,E.top=!1,E.bottom=!1,s(b))},D=qe(k,t+o),g=b=>{var P;if(!u)return;const _=((P=b==null?void 0:b.document)==null?void 0:P.documentElement)||(b==null?void 0:b.documentElement)||L(b),{display:y,flexDirection:O}=getComputedStyle(_),F=_.scrollLeft;E.left=F<f.value,E.right=F>f.value;const C=Math.abs(F)<=(a.left||0),$=Math.abs(F)+_.clientWidth>=_.scrollWidth-(a.right||0)-de;y==="flex"&&O==="row-reverse"?(v.left=$,v.right=C):(v.left=C,v.right=$),f.value=F;let z=_.scrollTop;b===u.document&&!z&&(z=u.document.body.scrollTop),E.top=z<c.value,E.bottom=z>c.value;const se=Math.abs(z)<=(a.top||0),ue=Math.abs(z)+_.clientHeight>=_.scrollHeight-(a.bottom||0)-de;y==="flex"&&O==="column-reverse"?(v.top=ue,v.bottom=se):(v.top=se,v.bottom=ue),c.value=z},T=b=>{var P;if(!u)return;const _=(P=b.target.documentElement)!=null?P:b.target;g(_),S.value=!0,D(b),r(b)};return M(e,"scroll",t?Ue(T,t,!0,!1):T,l),q(()=>{try{const b=x(e);if(!b)return;g(b)}catch(b){d(b)}}),M(e,"scrollend",k,l),{x:m,y:p,isScrolling:S,arrivedState:v,directions:E,measure(){const b=x(e);u&&b&&g(b)}}}function Q(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Ct(e,n,t={}){const{window:o=H}=t;return dt(e,n,o==null?void 0:o.localStorage,t)}const vt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function mt(e={}){const{type:n="page",touch:t=!0,resetOnTouchEnds:o=!1,initialValue:s={x:0,y:0},window:r=H,target:a=r,scroll:l=!0,eventFilter:i}=e;let u=null;const d=h(s.x),f=h(s.y),c=h(null),m=typeof n=="function"?n:vt[n],p=g=>{const T=m(g);u=g,T&&([d.value,f.value]=T,c.value="mouse")},w=g=>{if(g.touches.length>0){const T=m(g.touches[0]);T&&([d.value,f.value]=T,c.value="touch")}},S=()=>{if(!u||!r)return;const g=m(u);u instanceof MouseEvent&&g&&(d.value=g[0]+r.scrollX,f.value=g[1]+r.scrollY)},v=()=>{d.value=s.x,f.value=s.y},E=i?g=>i(()=>p(g),{}):g=>p(g),k=i?g=>i(()=>w(g),{}):g=>w(g),D=i?()=>i(()=>S(),{}):()=>S();if(a){const g={passive:!0};M(a,["mousemove","dragover"],E,g),t&&n!=="movement"&&(M(a,["touchstart","touchmove"],k,g),o&&M(a,"touchend",v,g)),l&&n==="page"&&M(r,"scroll",D,{passive:!0})}return{x:d,y:f,sourceType:c}}function Yt(e,n={}){const{handleOutside:t=!0,window:o=H}=n,s=n.type||"page",{x:r,y:a,sourceType:l}=mt(n),i=h(e??(o==null?void 0:o.document.body)),u=h(0),d=h(0),f=h(0),c=h(0),m=h(0),p=h(0),w=h(!0);let S=()=>{};return o&&(S=R([i,r,a],()=>{const v=L(i);if(!v||!(v instanceof HTMLElement))return;const{left:E,top:k,width:D,height:g}=v.getBoundingClientRect();f.value=E+(s==="page"?o.pageXOffset:0),c.value=k+(s==="page"?o.pageYOffset:0),m.value=g,p.value=D;const T=r.value-f.value,b=a.value-c.value;w.value=D===0||g===0||T<0||b<0||T>D||b>g,(t||!w.value)&&(u.value=T,d.value=b)},{immediate:!0}),M(document,"mouseleave",()=>{w.value=!0})),{x:r,y:a,sourceType:l,elementX:u,elementY:d,elementPositionX:f,elementPositionY:c,elementHeight:m,elementWidth:p,isOutside:w,stop:S}}function Nt(e={}){const{touch:n=!0,drag:t=!0,capture:o=!1,initialValue:s=!1,window:r=H}=e,a=h(s),l=h(null);if(!r)return{pressed:a,sourceType:l};const i=f=>()=>{a.value=!0,l.value=f},u=()=>{a.value=!1,l.value=null},d=A(()=>L(e.target)||r);return M(d,"mousedown",i("mouse"),{passive:!0,capture:o}),M(r,"mouseleave",u,{passive:!0,capture:o}),M(r,"mouseup",u,{passive:!0,capture:o}),t&&(M(d,"dragstart",i("mouse"),{passive:!0,capture:o}),M(r,"drop",u,{passive:!0,capture:o}),M(r,"dragend",u,{passive:!0,capture:o})),n&&(M(d,"touchstart",i("touch"),{passive:!0,capture:o}),M(r,"touchend",u,{passive:!0,capture:o}),M(r,"touchcancel",u,{passive:!0,capture:o})),{pressed:a,sourceType:l}}function zt(e={}){const{window:n=H}=e,t=U(()=>n&&"screen"in n&&"orientation"in n.screen),o=t.value?n.screen.orientation:{},s=h(o.type),r=h(o.angle||0);return t.value&&M(n,"orientationchange",()=>{s.value=o.type,r.value=o.angle}),{isSupported:t,orientation:s,angle:r,lockOrientation:i=>t.value&&typeof o.lock=="function"?o.lock(i):Promise.reject(new Error("Not supported")),unlockOrientation:()=>{t.value&&typeof o.unlock=="function"&&o.unlock()}}}function Oe(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:Oe(t)}}function pt(e){const n=e||window.event,t=n.target;return Oe(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const Z=new WeakMap;function It(e,n=!1){const t=h(n);let o=null,s="";R(Me(e),l=>{const i=Q(x(l));if(i){const u=i;if(Z.get(u)||Z.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=Q(x(e));!l||t.value||(B&&(o=M(l,"touchmove",i=>{pt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=Q(x(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,Z.delete(l),t.value=!1)};return N(a),A({get(){return t.value},set(l){l?r():a()}})}function Xt(e,n={}){const{threshold:t=50,onSwipe:o,onSwipeEnd:s,onSwipeStart:r,passive:a=!0,window:l=H}=n,i=K({x:0,y:0}),u=K({x:0,y:0}),d=A(()=>i.x-u.x),f=A(()=>i.y-u.y),{max:c,abs:m}=Math,p=A(()=>c(m(d.value),m(f.value))>=t),w=h(!1),S=A(()=>p.value?m(d.value)>m(f.value)?d.value>0?"left":"right":f.value>0?"up":"down":"none"),v=_=>[_.touches[0].clientX,_.touches[0].clientY],E=(_,y)=>{i.x=_,i.y=y},k=(_,y)=>{u.x=_,u.y=y};let D;const g=ht(l==null?void 0:l.document);a?D=g?{passive:!0}:{capture:!1}:D=g?{passive:!1,capture:!0}:{capture:!0};const T=_=>{w.value&&(s==null||s(_,S.value)),w.value=!1},b=[M(e,"touchstart",_=>{if(_.touches.length!==1)return;D.capture&&!D.passive&&_.preventDefault();const[y,O]=v(_);E(y,O),k(y,O),r==null||r(_)},D),M(e,"touchmove",_=>{if(_.touches.length!==1)return;const[y,O]=v(_);k(y,O),!w.value&&p.value&&(w.value=!0),w.value&&(o==null||o(_))},D),M(e,["touchend","touchcancel"],T,D)];return{isPassiveEventSupported:g,isSwiping:w,direction:S,coordsStart:i,coordsEnd:u,lengthX:d,lengthY:f,stop:()=>b.forEach(_=>_())}}function ht(e){if(!e)return!1;let n=!1;const t={get passive(){return n=!0,!1}};return e.addEventListener("x",W,t),e.removeEventListener("x",W),n}function $t(e={}){const{window:n=H,behavior:t="auto"}=e;if(!n)return{x:h(0),y:h(0)};const o=h(n.scrollX),s=h(n.scrollY),r=A({get(){return o.value},set(l){scrollTo({left:l,behavior:t})}}),a=A({get(){return s.value},set(l){scrollTo({top:l,behavior:t})}});return M(n,"scroll",()=>{o.value=n.scrollX,s.value=n.scrollY},{capture:!1,passive:!0}),{x:r,y:a}}function jt(e={}){const{window:n=H,initialWidth:t=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:r=!0,type:a="inner"}=e,l=h(t),i=h(o),u=()=>{n&&(a==="outer"?(l.value=n.outerWidth,i.value=n.outerHeight):r?(l.value=n.innerWidth,i.value=n.innerHeight):(l.value=n.document.documentElement.clientWidth,i.value=n.document.documentElement.clientHeight))};if(u(),q(u),M("resize",u,{passive:!0}),s){const d=st("(orientation: portrait)");R(d,()=>u())}return{width:l,height:i}}function Bt(e=null,n){const t=h(e),o=A({set:r=>r?Y.start():Y.done(),get:()=>typeof t.value=="number"&&t.value<1});n&&Y.configure(n);const s=Y.set;return Y.set=r=>(t.value=r,s.call(Y,r)),re(()=>{typeof t.value=="number"&&V&&s.call(Y,t.value)}),N(Y.remove),{isLoading:o,progress:t,start:Y.start,done:Y.done,remove:()=>{t.value=null,Y.remove()}}}function Te(e){var n;const t=x(e);return(n=t==null?void 0:t.$el)!=null?n:t}const Ae=V?window:void 0;function X(...e){let n,t,o,s;if(typeof e[0]=="string"||Array.isArray(e[0])?([t,o,s]=e,n=Ae):[n,t,o,s]=e,!n)return W;Array.isArray(t)||(t=[t]),Array.isArray(o)||(o=[o]);const r=[],a=()=>{r.forEach(d=>d()),r.length=0},l=(d,f,c,m)=>(d.addEventListener(f,c,m),()=>d.removeEventListener(f,c,m)),i=R(()=>[Te(n),x(s)],([d,f])=>{if(a(),!d)return;const c=be(f)?{...f}:f;r.push(...t.flatMap(m=>o.map(p=>l(d,m,p,c))))},{immediate:!0,flush:"post"}),u=()=>{i(),a()};return N(u),u}const wt=500,gt=10;function ve(e,n,t){var o,s;const r=A(()=>Te(e));let a,l,i,u=!1;function d(){a&&(clearTimeout(a),a=void 0),l=void 0,i=void 0,u=!1}function f(v){var E,k,D;const[g,T,b]=[i,l,u];if(d(),!(t!=null&&t.onMouseUp)||!T||!g||(E=t==null?void 0:t.modifiers)!=null&&E.self&&v.target!==r.value)return;(k=t==null?void 0:t.modifiers)!=null&&k.prevent&&v.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&v.stopPropagation();const P=v.x-T.x,_=v.y-T.y,y=Math.sqrt(P*P+_*_);t.onMouseUp(v.timeStamp-g,y,b)}function c(v){var E,k,D,g;(E=t==null?void 0:t.modifiers)!=null&&E.self&&v.target!==r.value||(d(),(k=t==null?void 0:t.modifiers)!=null&&k.prevent&&v.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&v.stopPropagation(),l={x:v.x,y:v.y},i=v.timeStamp,a=setTimeout(()=>{u=!0,n(v)},(g=t==null?void 0:t.delay)!=null?g:wt))}function m(v){var E,k,D,g;if((E=t==null?void 0:t.modifiers)!=null&&E.self&&v.target!==r.value||!l||(t==null?void 0:t.distanceThreshold)===!1)return;(k=t==null?void 0:t.modifiers)!=null&&k.prevent&&v.preventDefault(),(D=t==null?void 0:t.modifiers)!=null&&D.stop&&v.stopPropagation();const T=v.x-l.x,b=v.y-l.y;Math.sqrt(T*T+b*b)>=((g=t==null?void 0:t.distanceThreshold)!=null?g:gt)&&d()}const p={capture:(o=t==null?void 0:t.modifiers)==null?void 0:o.capture,once:(s=t==null?void 0:t.modifiers)==null?void 0:s.once},w=[X(r,"pointerdown",c,p),X(r,"pointermove",m,p),X(r,["pointerup","pointerleave"],f,p)];return()=>w.forEach(v=>v())}const Vt={[_e.mounted](e,n){typeof n.value=="function"?ve(e,n.value,{modifiers:n.modifiers}):ve(e,...n.value)}};function me(e,n={}){const{delayEnter:t=0,delayLeave:o=0,window:s=Ae}=n,r=h(!1);let a;const l=i=>{const u=i?t:o;a&&(clearTimeout(a),a=void 0),u?a=setTimeout(()=>r.value=i,u):r.value=i};return s&&(X(e,"mouseenter",()=>l(!0),{passive:!0}),X(e,"mouseleave",()=>l(!1),{passive:!0})),r}const qt={[_e.mounted](e,n){const t=n.value;if(typeof t=="function"){const o=me(e);R(o,s=>t(s))}else{const[o,s]=t,r=me(e,s);R(r,a=>o(a))}}};function ee(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function ke(e){const n=window.getComputedStyle(e);if(n.overflowX==="scroll"||n.overflowY==="scroll"||n.overflowX==="auto"&&e.clientWidth<e.scrollWidth||n.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!t||t.tagName==="BODY"?!1:ke(t)}}function yt(e){const n=e||window.event,t=n.target;return ke(t)?!1:n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)}const te=new WeakMap;function St(e,n=!1){const t=h(n);let o=null,s="";R(Me(e),l=>{const i=ee(x(l));if(i){const u=i;if(te.get(u)||te.set(u,u.style.overflow),u.style.overflow!=="hidden"&&(s=u.style.overflow),u.style.overflow==="hidden")return t.value=!0;if(t.value)return u.style.overflow="hidden"}},{immediate:!0});const r=()=>{const l=ee(x(e));!l||t.value||(B&&(o=X(l,"touchmove",i=>{yt(i)},{passive:!1})),l.style.overflow="hidden",t.value=!0)},a=()=>{const l=ee(x(e));!l||!t.value||(B&&(o==null||o()),l.style.overflow=s,te.delete(l),t.value=!1)};return N(a),A({get(){return t.value},set(l){l?r():a()}})}function bt(){let e=!1;const n=h(!1);return(t,o)=>{if(n.value=o.value,e)return;e=!0;const s=St(t,o.value);R(n,r=>s.value=r)}}bt();export{Ft as A,De as B,Dt as a,st as b,Mt as c,zt as d,jt as e,Pt as f,Xt as g,$t as h,Bt as i,Ht as j,It as k,mt as l,Yt as m,Nt as n,At as o,Rt as p,kt as q,xt as r,M as s,Lt as t,Ct as u,Wt as v,Tt as w,Ot as x,qt as y,Vt as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as ee,u as se,c as oe,r as re,_ as ae,d as te}from"./main.D-V5Qegn.0.0.22-alpha.1.js";import{F as ne,r as g,J as le,e as P,O as ie,R as t,u as e,j as o,T as d,M as r,p as b,f as me,m as de,V as M,s as ue,k as j}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";import{m as E,a as N,X as R}from"./@mdi.DnMbZhUH.0.0.22-alpha.1.js";import{F as f,a as ce}from"./vee-validate.CpAAwmyb.0.0.22-alpha.1.js";import{i as D}from"./vue3-toastify.DdCHHmXT.0.0.22-alpha.1.js";import{s as pe}from"./pinia.Dn9R-5lV.0.0.22-alpha.1.js";import{c as T,d as U,e as J,z as X,V as q,b as G}from"./vuetify.red0JsnZ.0.0.22-alpha.1.js";import{u as fe}from"./vue-i18n.mw20Rif9.0.0.22-alpha.1.js";import"./axios.C-n2IhIP.0.0.22-alpha.1.js";import"./@tanstack.DlheOlVk.0.0.22-alpha.1.js";import"./vue-router.BchJROVt.0.0.22-alpha.1.js";import"./@vueuse.-m94veKi.0.0.22-alpha.1.js";import"./nprogress.B-sfF0qV.0.0.22-alpha.1.js";import"./@xterm.DV-IE8JS.0.0.22-alpha.1.js";import"./@vee-validate.CBoqAk51.0.0.22-alpha.1.js";import"./zod.BaF2dDCd.0.0.22-alpha.1.js";import"./uuid.DvF23Exx.0.0.22-alpha.1.js";import"./socket.io-client.ZxUZ7LHn.0.0.22-alpha.1.js";import"./engine.io-client.CY7UpWto.0.0.22-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.1.js";import"./socket.io-parser.DbDzb_0x.0.0.22-alpha.1.js";import"./rxjs.BlwZeIMX.0.0.22-alpha.1.js";import"./tslib.9k7AwCpt.0.0.22-alpha.1.js";import"./vue-inline-svg.Br_paQwQ.0.0.22-alpha.1.js";import"./v-calendar.CemaWgJz.0.0.22-alpha.1.js";import"./@popperjs.BQBsAJpH.0.0.22-alpha.1.js";import"./@intlify.YW_pt133.0.0.22-alpha.1.js";const ve={class:"relative"},ge={class:"subview-title text-color"},be={class:"image-upload ml-auto"},_e={for:"file-input"},he={class:"inner-component p-4"},ye={class:"relative"},we={for:"username",class:"v-label"},xe={class:"relative"},ke={for:"password",class:"v-label"},Ce={class:"relative"},Me={for:"passwordConfirm",class:"v-label"},Ve={class:"relative"},$e={for:"sessionTimer",class:"v-label"},Le={key:0,style:{"padding-top":"22px"}},Se={class:"relative"},Fe={class:"flex flex-row"},Ie={class:"v-label m-0 mb-0 ml-2",for:"rememberMe"},Te={class:"text-sm"},ze={class:"relative"},Oe={class:"flex flex-row"},Ae={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},Be={class:"text-sm"},Pe=ne({__name:"Account",setup(je){var O,A;const{smallMobileActive:z}=ee(),V=se(),H=fe(),{loginState:a}=pe(V),$=g("avatar"),w=g(),L=g(),_=g(!1),x=g(!1),k=g(!1);let S=((O=a.value.user)==null?void 0:O.rememberMe)??!1,F=((A=a.value.user)==null?void 0:A.oneLogin)??!1;const K=()=>{a.value.user&&(a.value.user.rememberMe=!a.value.user.rememberMe)},Q=()=>{a.value.user&&(a.value.user.oneLogin=!a.value.user.oneLogin)},W=()=>{L.value&&(L.value.resetForm(),$.value="avatar",w.value=void 0),a.value.user&&(a.value.user.rememberMe=S,a.value.user.oneLogin=F)},Y=async n=>{var u;const s=(u=n.target)==null?void 0:u.files;w.value=s==null?void 0:s[0],$.value=await re(n)},Z=async n=>{var h,y,l,i,m,p,C;_.value=!0;let s;const u={...n};delete u.upload;const I=((h=a.value.user)==null?void 0:h.username)!==u.username||u.password&&u.passwordConfirm,v=Object.entries(u).some(([,c])=>c!==void 0);if(w.value&&(s=new FormData,s.append("upload",w.value)),!v&&!s){_.value=!1;return}try{await V.updateUser(u,s,!0),D.success(H.t("components.toast.profile_updated")),S=((y=a.value.user)==null?void 0:y.rememberMe)??S,F=((l=a.value.user)==null?void 0:l.oneLogin)??F,I&&V.logout()}catch(c){D.error(((m=(i=c.response)==null?void 0:i.data)==null?void 0:m.message)??c.message??c),console.error(((C=(p=c.response)==null?void 0:p.data)==null?void 0:C.message)??c.message??c)}_.value=!1};return(n,s)=>{const u=ae,I=le("v-number-input");return P(),ie(e(ce),{ref_key:"form",ref:L,class:"flex flex-col w-full","validation-schema":e(oe),onSubmit:s[3]||(s[3]=v=>Z(v))},{default:t(()=>{var v,h,y;return[o("div",ve,[o("span",ge,d(n.$t("views.settings.profile")),1),o("div",be,[o("label",_e,[r(u,{src:e($),size:"4rem",style:{"border-radius":"4rem",border:"1px solid var(--border)"}},null,8,["src"]),r(e(f),{id:"file-input",type:"file",name:"upload",accept:"image/png,image/jpeg,image/jpg",onChange:s[0]||(s[0]=l=>Y(l))})])]),o("div",he,[o("div",ye,[o("label",we,d(n.$t("components.form.label.username")),1),r(e(f),{name:"username",value:(v=e(a).user)==null?void 0:v.username},{default:t(({field:l,errorMessage:i,errors:m})=>[r(T,b({name:"username",variant:"outlined",density:"compact"},l,{type:"text",error:m.length>0,"error-messages":i}),null,16,["error","error-messages"])]),_:1},8,["value"])]),s[4]||(s[4]=o("div",{class:"py-1"},null,-1)),o("div",xe,[o("label",ke,d(n.$t("components.form.label.new_password")),1),r(e(f),{name:"password"},{default:t(({field:l,errorMessage:i,errors:m})=>[r(T,b({name:"password",variant:"outlined",density:"compact"},l,{type:e(x)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(x)?e(E):e(N),"onClick:appendInner":s[1]||(s[1]=p=>x.value=!e(x))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s[5]||(s[5]=o("div",{class:"py-1"},null,-1)),o("div",Ce,[o("label",Me,d(n.$t("components.form.label.new_password_confirm")),1),r(e(f),{name:"passwordConfirm"},{default:t(({field:l,errorMessage:i,errors:m})=>[r(T,b({name:"passwordConfirm",variant:"outlined",density:"compact"},l,{type:e(k)?"text":"password",error:m.length>0,"error-messages":i,"append-inner-icon":e(k)?e(E):e(N),"onClick:appendInner":s[2]||(s[2]=p=>k.value=!e(k))}),null,16,["type","error","error-messages","append-inner-icon"])]),_:1})]),s[6]||(s[6]=o("div",{class:"py-1"},null,-1)),o("div",Ve,[o("label",$e,d(n.$t("components.form.label.session_timer")),1),r(e(f),{name:"sessionTimer",value:(h=e(a).user)==null?void 0:h.sessionTimer},{default:t(({field:l,errorMessage:i,errors:m,value:p,setValue:C})=>{var c,B;return[r(I,b({name:"sessionTimer",variant:"outlined",density:"compact"},l,{type:"number",step:600,error:m.length>0,"error-messages":i,disabled:(c=e(a).user)==null?void 0:c.rememberMe,"hide-details":(B=e(a).user)==null?void 0:B.rememberMe,onChange:()=>p===""?C(14400):void 0}),null,16,["error","error-messages","disabled","hide-details","onChange"])]}),_:1},8,["value"])]),s[7]||(s[7]=o("div",{class:"py-1"},null,-1)),(y=e(a).user)!=null&&y.rememberMe?(P(),me("div",Le)):de("",!0),o("div",Se,[r(e(f),{name:"rememberMe",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>[o("div",Fe,[r(U,b({"model-value":e(a).user.rememberMe,name:"rememberMe"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:K}),null,16,["model-value","error","error-messages"]),o("label",Ie,d(n.$t("components.form.label.remember_me")),1)])]),_:1}),r(X,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[r(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[M(d(e(R)),1)]),_:1})]),default:t(()=>[o("span",Te,d(n.$t("components.form.hint.remember_me")),1)]),_:1})]),s[8]||(s[8]=o("div",{class:"py-2"},null,-1)),o("div",ze,[r(e(f),{name:"oneLogin",type:"checkbox","checked-value":!0,"unchecked-value":!1},{default:t(({field:l,errorMessage:i,errors:m})=>{var p;return[o("div",Oe,[r(U,b({"model-value":(p=e(a).user)==null?void 0:p.oneLogin,name:"oneLogin"},l,{color:"#df2a4c",type:"checkbox",error:m.length>0,"error-messages":i,"hide-details":"",onChange:Q}),null,16,["model-value","error","error-messages"]),o("label",Ae,d(n.$t("components.form.label.one_login")),1)])]}),_:1}),r(X,{variant:"tonal",color:"#df2a4c"},{prepend:t(()=>[r(J,{color:"#df2a4c",size:"20",class:"mt-1"},{default:t(()=>[M(d(e(R)),1)]),_:1})]),default:t(()=>[o("span",Be,d(n.$t("components.form.hint.one_login")),1)]),_:1})]),s[9]||(s[9]=o("div",{class:"py-2"},null,-1))])]),o("div",{class:j(["flex flex-row my-5",{"mr-3":e(z)}])},[r(G,{class:"ml-auto mr-2 text-color bg-color-lighten",elevation:"0",tonal:"",style:{border:"1px solid rgba(var(--border-rgb), 0.75)"},loading:e(_),onClick:ue(W,["prevent"])},{loader:t(()=>[r(q,{class:"text-color",size:"14",width:"2",indeterminate:""})]),default:t(()=>[M(d(n.$t("components.form.button.cancel")),1)]),_:1},8,["loading"]),r(G,{class:j(["text-white bg-color-primary",{"mr-2":e(z)}]),loading:e(_),elevation:"0",tonal:"",style:{border:"1px solid var(--color-primary-darken-2)"},type:"submit"},{loader:t(()=>[r(q,{color:"#fff",size:"14",width:"2",indeterminate:""})]),default:t(()=>[M(d(n.$t("components.form.button.save")),1)]),_:1},8,["loading","class"])],2)]}),_:1},8,["validation-schema"])}}}),ps=te(Pe,[["__scopeId","data-v-cafc8a1b"]]);export{ps as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["vue3-apexcharts.BiZhZbF2.0.0.22-alpha.1.js","apexcharts.BMrxVPFF.0.0.22-alpha.1.js","@xterm.DV-IE8JS.0.0.22-alpha.1.js","assets/@xterm.0.0.22-alpha.1.CGrrDQr5.css","@vue.CvjRlaU6.0.0.22-alpha.1.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var be=Object.defineProperty;var xe=(g,r,m)=>r in g?be(g,r,{enumerable:!0,configurable:!0,writable:!0,value:m}):g[r]=m;var ce=(g,r,m)=>xe(g,typeof r!="symbol"?r+"":r,m);import{F as K,t as ve,r as c,b as Y,c as A,J as fe,e as L,O as P,R as o,j as x,u as a,V as $,T as W,f as ee,m as he,g as te,s as M,M as p,ar as ke,B as _e,w as G,a3 as J,p as ue,ap as Q,U as we,k as de}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";import{ay as We,at as me}from"./@mdi.DnMbZhUH.0.0.22-alpha.1.js";import{i as U,u as Le,s as ae,O as Ne,Q as Se,d as X,a as Te,N as Ce,y as H,P as f,x as ge,f as Pe}from"./main.D-V5Qegn.0.0.22-alpha.1.js";import{s as ye}from"./pinia.Dn9R-5lV.0.0.22-alpha.1.js";import{l as se,T as oe,b as re,e as ne,a0 as Oe,a1 as Z,X as pe,m as j}from"./vuetify.red0JsnZ.0.0.22-alpha.1.js";import{i as ie}from"./vue3-toastify.DdCHHmXT.0.0.22-alpha.1.js";import{P as De}from"./plugins.9yif7gTi.0.0.22-alpha.1.js";import{u as Ee,a as Re,b as $e}from"./@tanstack.DlheOlVk.0.0.22-alpha.1.js";import{S as Ie}from"./system.D_1Xg-Sy.0.0.22-alpha.1.js";import"./vue-i18n.mw20Rif9.0.0.22-alpha.1.js";import"./@intlify.YW_pt133.0.0.22-alpha.1.js";import"./axios.C-n2IhIP.0.0.22-alpha.1.js";import"./vue-router.BchJROVt.0.0.22-alpha.1.js";import"./@vueuse.-m94veKi.0.0.22-alpha.1.js";import"./nprogress.B-sfF0qV.0.0.22-alpha.1.js";import"./@xterm.DV-IE8JS.0.0.22-alpha.1.js";import"./vee-validate.CpAAwmyb.0.0.22-alpha.1.js";import"./@vee-validate.CBoqAk51.0.0.22-alpha.1.js";import"./zod.BaF2dDCd.0.0.22-alpha.1.js";import"./uuid.DvF23Exx.0.0.22-alpha.1.js";import"./socket.io-client.ZxUZ7LHn.0.0.22-alpha.1.js";import"./engine.io-client.CY7UpWto.0.0.22-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.1.js";import"./socket.io-parser.DbDzb_0x.0.0.22-alpha.1.js";import"./rxjs.BlwZeIMX.0.0.22-alpha.1.js";import"./tslib.9k7AwCpt.0.0.22-alpha.1.js";import"./vue-inline-svg.Br_paQwQ.0.0.22-alpha.1.js";import"./v-calendar.CemaWgJz.0.0.22-alpha.1.js";import"./@popperjs.BQBsAJpH.0.0.22-alpha.1.js";var I=(g=>(g.READY="ready",g.RESTARTING="restarting",g.STARTING="starting",g.STARTED="started",g.STOPPED="stopped",g.ERROR="error",g.UNKNOWN="unknown",g))(I||{});const Ae={class:"flex items-center first-item"},Fe={key:1},Ve={class:"text-center pt-2"},Qe=K({__name:"VUserTable",props:{loading:{type:Boolean,default:!1}},setup(g){const r=g,{t:m}=U.global,S=new Se,C=Le(),{isTouch:N}=ae(),{loginState:u}=ye(C),{loading:h}=ve(r),l=c({pageSize:5,page:1}),y=Y([{title:m("components.user_table.title_username"),align:"start",key:"username",value:"decoded.username",sortable:!0},{title:m("components.user_table.title_role"),align:"start",key:"role",value:"decoded.role",sortable:!0},{title:m("components.user_table.title_address"),align:"start",key:"address",value:"clientData.address",sortable:!0},{title:m("components.user_table.title_device"),align:"start",key:"device",value:"clientData.device",sortable:!0},{title:"",align:"end",key:"delete",value:"delete",width:"120px",sortable:!1}]),_=A(()=>O.value||i.value||h.value),k=A(()=>{var D;const R=Math.ceil((((D=w.value)==null?void 0:D.pagination.totalItems)||0)/l.value.pageSize);return R===1&&(l.value.page=1),R}),T=A(()=>{var R;return(R=w.value)==null?void 0:R.result.map(D=>({encoded:D.token,decoded:Ne(D.token.access_token),clientData:D.clientData}))}),{data:w,isLoading:i,isPlaceholderData:v}=S.listQuery(l,!0),{mutate:F,isPending:O}=S.logoutTokenQuery(),z=()=>{l.value.page=Math.max(l.value.page-1,1)},B=()=>{v.value||(l.value.page=l.value.page+1)};return(R,D)=>{const V=fe("router-link");return L(),P(Z,{"items-per-page":a(l).pageSize,headers:a(y),items:a(T),class:"elevation-0","item-value":"username","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.username":o(({item:E})=>[x("div",Ae,[E.encoded.access_token===a(u).access_token?(L(),P(V,{key:0,to:"/settings/account"},{default:o(()=>[$(W(E.decoded.username),1)]),_:2},1024)):(L(),ee("div",Fe,W(E.decoded.username),1)),E.encoded.access_token===a(u).access_token?(L(),P(se,{key:2,color:"#df2a4c",class:"ml-2",inline:"",content:R.$t("components.user_table.you")},null,8,["content"])):he("",!0)])]),"item.delete":o(({item:E})=>[te((L(),P(re,{color:"#df2a4c",density:"compact",loading:a(_),icon:"",onClick:M(q=>a(F)({id:E.encoded._id,access_token:E.encoded.access_token}),["prevent"])},{default:o(()=>[p(ne,{size:"20"},{default:o(()=>[$(W(a(We)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(N),text:R.$t("components.form.tooltip.restart")}]])]),bottom:o(()=>[x("div",Ve,[p(Oe,{modelValue:a(l).page,"onUpdate:modelValue":D[0]||(D[0]=E=>a(l).page=E),length:a(k),onPrev:M(z,["prevent"]),onNext:M(B,["prevent"])},null,8,["modelValue","length"])])]),_:1},8,["items-per-page","headers","items"])}}}),je=X(Qe,[["__scopeId","data-v-0f04954a"]]),ze={key:0,class:"text-disabled"},le=K({__name:"VMetricCharts",props:{type:{},processInfo:{},maxDataPoints:{default:30},width:{default:200},height:{default:25},chartType:{default:"bar"}},async setup(g){let r,m;const S=([r,m]=ke(()=>Ce(()=>import("./vue3-apexcharts.BiZhZbF2.0.0.22-alpha.1.js"),__vite__mapDeps([0,1,2,3,4]))),r=await r,m(),r).default,C=Te(),N=g,{theme:u}=ye(C),{type:h,processInfo:l,maxDataPoints:y,chartType:_}=ve(N),k=A(()=>{const v=(l.value||[]).map(O=>h.value==="cpu"?O.cpuLoad:O.memLoad).slice(-y.value);return[{data:[...v,...Array(y.value-v.length).fill(0)].map(O=>parseFloat(O))}]}),T=A(()=>{const v=(l.value||[]).map(O=>O.timestamp).slice(-y.value);return[{data:[...v,...Array(y.value-v.length).fill(0)]}]}),w=A(()=>({chart:{type:_.value,sparkline:{enabled:!0}},plotOptions:{bar:{columnWidth:"80%"}},colors:[({value:i})=>i>=90?"#FA5252":i>=50?"#FF9966":"#df2a4c"],xaxis:{crosshairs:{width:1},axisBorder:{show:!1},axisTicks:{show:!1},categories:T.value[0].data},yaxis:{show:!1,labels:{formatter:i=>Math.ceil(i).toString()},min:0},tooltip:{theme:u.value,fixed:{enabled:!1},marker:{show:!1},y:{title:{formatter:function(){return""}},formatter:i=>`${i} %`},x:{formatter:i=>new Date(i).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}}}));return(i,v)=>(L(),ee("div",null,[!a(l)||!a(l).length?(L(),ee("span",ze,W(i.$t("components.charts.no_data")),1)):(L(),P(a(S),{key:1,type:a(_),options:a(w),series:a(k),height:i.height,width:i.width,"data-no-clone":""},null,8,["type","options","series","height","width"]))]))}}),Be={class:"flex items-center first-item"},Ke=K({__name:"VPluginTable",setup(g){const{t:r}=U.global,{isTouch:m}=ae(),S=H(),C=new De,N=c(),u=c(),h=c({}),l=c([]),y=c(30),_=c(200),k=c(32),T={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},w=c({}),i=c({}),v=A(()=>Object.values(w.value).filter(e=>{var t;const s=(t=O.value)==null?void 0:t.result.find(n=>n.pluginName===e.name);if(s&&!s.disabled)return e}).filter(Boolean)),F=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:O,isLoading:z,suspense:B}=C.getPluginsQuery(_e({page:1,pageSize:-1})),{mutateAsync:R}=C.restartPluginQuery(),D=A(()=>e=>l.value.includes(e));G(i,e=>{for(const[s,t]of Object.entries(e))w.value[s]=t[t.length-1]??{name:s,...T}},{deep:!0,immediate:!0}),G(O,e=>{if(e)for(const s of e.result)s.disabled||(i.value[s.pluginName]||(i.value[s.pluginName]=[]),h.value[s.pluginName]||(h.value[s.pluginName]={name:s.pluginName,status:f.UNKNOWN}))},{deep:!0,immediate:!0});const V=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return"#9d5752";case f.STARTING:return"orange";case f.READY:return"yellow";case f.STARTED:return"green";case f.STOPPED:return"red";case f.DISABLED:return"#2196f3";case f.UNKNOWN:return"gray";default:return"gray"}},E=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return r("components.process_table.status_error");case f.STOPPED:return r("components.process_table.status_stopped");case f.READY:return r("components.process_table.status_ready");case f.STARTING:return r("components.process_table.status_starting");case f.STARTED:return r("components.process_table.status_started");default:return r("components.process_table.status_unknown")}},q=async e=>{var s,t,n,d;l.value.push(e);try{await R({pluginName:e})}catch(b){console.error(((t=(s=b.response)==null?void 0:s.data)==null?void 0:t.message)??b.message??b),ie.error(((d=(n=b.response)==null?void 0:n.data)==null?void 0:d.message)??b.message??b)}finally{l.value=l.value.filter(b=>b!==e)}};return J(async()=>{if(N.value=S.getExistingNamespace("/metrics"),u.value=S.getExistingNamespace("/status"),!N.value)throw new Error("Not connected to metrics!");if(!u.value)throw new Error("Not connected to status!");await B(),await new Promise(e=>setTimeout(e,10)),u.value.socket.emit("get-plugin-process-status"),u.value.socket.on("plugin-process-status",e=>{for(const[s,t]of Object.entries(e))h.value[s]=t}),N.value.request("get-plugins-process-info").subscribe(e=>{i.value=e}),N.value.socket.on("process-infos",e=>{const s=e.plugins;Object.keys(i.value).forEach(t=>{s[t]||delete i.value[t]}),Object.keys(w.value).forEach(t=>{s[t]||delete w.value[t]});for(const[t,n]of Object.entries(s))i.value[t]||(i.value[t]=[]),i.value[t].push(n)})}),(e,s)=>{const t=fe("router-link"),n=le;return L(),P(Z,{"items-per-page":-1,headers:a(F),items:a(v),class:"elevation-0",loading:a(z),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":o(({item:d})=>[x("div",Be,[p(pe,{location:"top",text:E(d.name)},{activator:o(({props:b})=>[p(se,ue(b,{color:V(d.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),p(t,{to:`/plugins/${d.name}`,class:"ml-1"},{default:o(()=>[$(W(d.name),1)]),_:2},1032,["to"])])]),"item.cpuLoad":o(({item:d})=>[p(j,{color:parseFloat(d.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(d.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(({item:d})=>[(L(),P(Q,null,{default:o(()=>[p(n,{type:"cpu","max-data-points":a(y),"process-info":a(i)[d.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":o(({item:d})=>[p(j,{color:parseFloat(d.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(d.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(({item:d})=>[(L(),P(Q,null,{default:o(()=>[p(n,{type:"memory","max-data-points":a(y),"process-info":a(i)[d.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":o(({item:d})=>[te((L(),P(re,{color:"#df2a4c",density:"compact",loading:a(D)(d.name),icon:"",onClick:M(b=>q(d.name),["prevent"])},{default:o(()=>[p(ne,{size:"20"},{default:o(()=>[$(W(a(me)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(m),text:e.$t("components.form.tooltip.restart")}]])]),bottom:o(()=>s[0]||(s[0]=[])),_:1},8,["headers","items","loading"])}}}),qe=X(Ke,[["__scopeId","data-v-2b785e39"]]),Me=async({parameter:g,signal:r})=>(await ge.get("/frameworkers",{params:g,signal:r})).data,Ge=async({frameWorkerName:g})=>(await ge.put(`/frameworkers/${g}/restart`)).data;class Ue{constructor(){ce(this,"_queryClient",Ee());ce(this,"queryActivator",c([{name:"getFrameWorkersQuery",enabled:!0}]))}get queryClient(){return this._queryClient}getFrameWorkersQuery(r){return Re({queryKey:["frameWorkerList",r],queryFn:({signal:m})=>Me({parameter:a(r),signal:m}),placeholderData:m=>m,enabled:()=>this.queryActivator.value.some(m=>m.name==="getFrameWorkersQuery"&&m.enabled)})}restartFrameWorkerQuery(){return $e({mutationFn:Ge,onSuccess:async(r,m)=>{await this._queryClient.refetchQueries({queryKey:["frameWorkers",m.frameWorkerName]}),ie.success(U.global.t("components.toast.frame_worker_restarted"))}})}toggleQueryActivator(r,m){const S=this.queryActivator.value.find(C=>C.name===r);S&&(S.enabled=m)}}const Ye={class:"flex items-center first-item"},Je={class:"ml-1"},Xe=K({__name:"VFrameWorkerTable",setup(g){const{t:r}=U.global,m=H(),{isTouch:S}=ae(),C=new Ue,N=c(),u=c(),h=c({}),l=c([]),y=c(30),_=c(200),k=c(32),T={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},w=c({}),i=c({}),v=A(()=>Object.values(w.value).filter(Boolean)),F=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:_.value+k.value,minWidth:_.value+k.value,maxWidth:_.value+k.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{data:O,isLoading:z,suspense:B}=C.getFrameWorkersQuery(_e({page:1,pageSize:-1})),{mutateAsync:R}=C.restartFrameWorkerQuery(),D=A(()=>e=>l.value.includes(e));G(i,e=>{for(const[s,t]of Object.entries(e))w.value[s]=t[t.length-1]??{name:s,...T}},{deep:!0,immediate:!0}),G(O,e=>{if(e)for(const s of e.result)i.value[s.name]||(i.value[s.name]=[]),h.value[s.name]||(h.value[s.name]={name:s.name,status:f.UNKNOWN})},{deep:!0,immediate:!0});const V=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return"#9d5752";case f.STARTING:return"orange";case f.READY:return"yellow";case f.STARTED:return"green";case f.STOPPED:return"red";case f.DISABLED:return"#2196f3";case f.UNKNOWN:return"gray";default:return"gray"}},E=e=>{var t;switch(((t=h.value[e])==null?void 0:t.status)??f.UNKNOWN){case f.ERROR:return r("components.process_table.status_error");case f.STOPPED:return r("components.process_table.status_stopped");case f.READY:return r("components.process_table.status_ready");case f.STARTING:return r("components.process_table.status_starting");case f.STARTED:return r("components.process_table.status_started");default:return r("components.process_table.status_unknown")}},q=async e=>{var s,t,n,d;l.value.push(e);try{await R({frameWorkerName:e})}catch(b){console.error(((t=(s=b.response)==null?void 0:s.data)==null?void 0:t.message)??b.message??b),ie.error(((d=(n=b.response)==null?void 0:n.data)==null?void 0:d.message)??b.message??b)}finally{l.value=l.value.filter(b=>b!==e)}};return J(async()=>{if(N.value=m.getExistingNamespace("/metrics"),u.value=m.getExistingNamespace("/status"),!N.value)throw new Error("Not connected to metrics!");if(!u.value)throw new Error("Not connected to status!");await B(),await new Promise(e=>setTimeout(e,10)),u.value.socket.emit("get-frameworker-process-status"),u.value.socket.on("frameworker-process-status",e=>{for(const[s,t]of Object.entries(e))h.value[s]=t}),N.value.request("get-frameworker-process-info").subscribe(e=>{i.value=e}),N.value.socket.on("process-infos",e=>{const s=e.workers;Object.keys(i.value).forEach(t=>{s[t]||delete i.value[t]}),Object.keys(w.value).forEach(t=>{s[t]||delete w.value[t]});for(const[t,n]of Object.entries(s))i.value[t]||(i.value[t]=[]),i.value[t].push(n)})}),(e,s)=>{const t=le;return L(),P(Z,{"items-per-page":-1,headers:a(F),items:a(v),class:"elevation-0",loading:a(z),"hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":o(({item:n})=>[x("div",Ye,[p(pe,{location:"top",text:E(n.name)},{activator:o(({props:d})=>[p(se,ue(d,{color:V(n.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),x("div",Je,W(n.name),1)])]),"item.cpuLoad":o(({item:n})=>[p(j,{color:parseFloat(n.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(({item:n})=>[(L(),P(Q,null,{default:o(()=>[p(t,{type:"cpu","max-data-points":a(y),"process-info":a(i)[n.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":o(({item:n})=>[p(j,{color:parseFloat(n.memLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(({item:n})=>[(L(),P(Q,null,{default:o(()=>[p(t,{type:"memory","max-data-points":a(y),"process-info":a(i)[n.name]},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":o(({item:n})=>[te((L(),P(re,{color:"#df2a4c",density:"compact",loading:a(D)(n.name),icon:"",onClick:M(d=>q(n.name),["prevent"])},{default:o(()=>[p(ne,{size:"20"},{default:o(()=>[$(W(a(me)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(S),text:e.$t("components.form.tooltip.restart")}]])]),bottom:o(()=>s[0]||(s[0]=[])),_:1},8,["headers","items","loading"])}}}),He=X(Xe,[["__scopeId","data-v-eaa0affd"]]),Ze={class:"flex items-center first-item"},et={class:"ml-1"},tt=K({__name:"VProcessTable",setup(g){const{t:r}=U.global,m=H(),{isTouch:S}=ae(),C=new Ie,N=c(),u=c(),h=c(30),l=c(200),y=c(32),_=c(I.UNKNOWN),k=c(I.UNKNOWN),T=c(I.UNKNOWN),w={pid:-1,cpuLoad:"0.00",memLoad:"0.00",timestamp:0},i=c({server:{name:"server",...w},go2rtc:{name:"go2rtc",...w},nats:{name:"nats",...w}}),v=c({server:[],go2rtc:[],nats:[]}),F=A(()=>Object.values(i.value).filter(Boolean)),O=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_pid"),align:"start",key:"pid",value:"pid",width:"100px",minWidth:"100px",maxWidth:"100px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:l.value+y.value,minWidth:l.value+y.value,maxWidth:l.value+y.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:l.value+y.value,minWidth:l.value+y.value,maxWidth:l.value+y.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]),{mutateAsync:z,isPending:B}=C.restartGo2RtcQuery(),{mutateAsync:R,isPending:D}=C.restartServerQuery();G(v,e=>{i.value.server=e.server[e.server.length-1]??{...w,name:"server"},i.value.go2rtc=e.go2rtc[e.go2rtc.length-1]??{...w,name:"go2rtc"},i.value.nats=e.nats[e.nats.length-1]??{...w,name:"nats"}},{deep:!0,immediate:!0});const V=e=>{switch(e){case"server":return _.value;case"go2rtc":return k.value;case"nats":return T.value;default:return I.UNKNOWN}},E=e=>{switch(V(e)){case I.ERROR:return"#9d5752";case I.STARTING:return"orange";case I.READY:return"yellow";case I.STARTED:return"green";case I.STOPPED:return"red";case I.UNKNOWN:return"gray";default:return"gray"}},q=async e=>{var s,t,n,d;try{e==="server"?await R():await z()}catch(b){console.error(((t=(s=b.response)==null?void 0:s.data)==null?void 0:t.message)??b.message??b),ie.error(((d=(n=b.response)==null?void 0:n.data)==null?void 0:d.message)??b.message??b)}};return J(async()=>{if(N.value=m.getExistingNamespace("/metrics"),u.value=m.getExistingNamespace("/status"),!N.value)throw new Error("Not connected to metrics!");if(!u.value)throw new Error("Not connected to status!");await new Promise(e=>setTimeout(e,10)),u.value.socket.emit("get-process-status"),u.value.socket.on("process-status",e=>{e.server&&(_.value=e.server.status),e.go2rtc&&(k.value=e.go2rtc.status),e.nats&&(T.value=e.nats.status)}),N.value.request("get-server-process-info").subscribe(e=>{v.value=e}),N.value.socket.on("process-infos",e=>{const s=e.server,t=e.go2rtc,n=e.nats;v.value.server.push(s),v.value.go2rtc.push(t),v.value.nats.push(n)})}),(e,s)=>{const t=le;return L(),P(Z,{"items-per-page":-1,headers:a(O),items:a(F),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.name":o(({item:n})=>[x("div",Ze,[p(pe,{location:"top",text:e.$t(`components.process_table.status_${V(n.name)}`)},{activator:o(({props:d})=>[p(se,ue(d,{color:E(n.name),dot:"",inline:""}),null,16,["color"])]),_:2},1032,["text"]),x("div",et,W(n.name),1)])]),"item.cpuLoad":o(({item:n})=>[p(j,{color:parseFloat(n.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(({item:n})=>[(L(),P(Q,null,{default:o(()=>[p(t,{type:"cpu","max-data-points":a(h),"process-info":n.name==="server"?a(v).server:n.name==="go2rtc"?a(v).go2rtc:a(v).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.memLoad":o(({item:n})=>[p(j,{color:parseFloat(n.cpuLoad)>=15?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(n.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(({item:n})=>[(L(),P(Q,null,{default:o(()=>[p(t,{type:"memory","max-data-points":a(h),"process-info":n.name==="server"?a(v).server:n.name==="go2rtc"?a(v).go2rtc:a(v).nats},null,8,["max-data-points","process-info"])]),_:2},1024))]),"item.restart":o(({item:n})=>[n.name!=="nats"?te((L(),P(re,{key:0,color:"#df2a4c",density:"compact",loading:n.name==="server"?a(D):a(B),icon:"",onClick:M(d=>q(n.name),["prevent"])},{default:o(()=>[p(ne,{size:"20"},{default:o(()=>[$(W(a(me)),1)]),_:1})]),_:2},1032,["loading","onClick"])),[[oe,{disabled:a(S),text:e.$t("components.form.tooltip.restart")}]]):he("",!0)]),bottom:o(()=>s[0]||(s[0]=[])),_:1},8,["headers","items"])}}}),at=X(tt,[["__scopeId","data-v-19e4bd2a"]]),st=K({__name:"VSystemMetricsTable",setup(g){const{t:r}=U.global,m=H(),S=c(),C=c(),N=c(30),u=c(200),h=c(32),l={cpuLoad:"0.00",memLoad:"0.00",timestamp:0},y=c([{name:"server",...l}]),_=c([]),k=Y([{title:r("components.process_table.title_name"),align:"start",key:"name",value:"name",minWidth:"200px",sortable:!0},{title:r("components.process_table.title_cpu"),align:"start",key:"cpuLoad",value:"cpuLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"cpuLoadChart",value:"cpuLoadChart",width:u.value+h.value,minWidth:u.value+h.value,maxWidth:u.value+h.value,sortable:!1},{title:r("components.process_table.title_memory"),align:"start",key:"memLoad",value:"memLoad",width:"103px",minWidth:"103px",maxWidth:"103px",sortable:!0},{title:"",align:"start",key:"memLoadChart",value:"memLoadChart",width:u.value+h.value,minWidth:u.value+h.value,maxWidth:u.value+h.value,sortable:!1},{title:"",align:"end",key:"restart",value:"restart",width:"60px",minWidth:"60px",maxWidth:"60px",sortable:!1}]);return G(_,T=>{y.value=[T[T.length-1]??{...l,name:"system"}]},{deep:!0,immediate:!0}),J(async()=>{if(S.value=m.getExistingNamespace("/metrics"),C.value=m.getExistingNamespace("/status"),!S.value)throw new Error("Not connected to metrics!");if(!C.value)throw new Error("Not connected to status!");await new Promise(T=>setTimeout(T,10)),S.value.request("get-system-info").subscribe(T=>{_.value=T}),S.value.socket.on("system-infos",T=>{_.value.push(T)})}),(T,w)=>{const i=le;return L(),P(Z,{"items-per-page":-1,headers:a(k),items:a(y),class:"elevation-0","hide-default-footer":"","mobile-breakpoint":"sm",hover:""},{"item.cpuLoad":o(({item:v})=>[p(j,{color:parseFloat(v.cpuLoad)>=75?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(v.cpuLoad)+" %",1)]),_:2},1032,["color"])]),"item.cpuLoadChart":o(()=>[(L(),P(Q,null,{default:o(()=>[p(i,{type:"cpu","max-data-points":a(N),"process-info":a(_)},null,8,["max-data-points","process-info"])]),_:1}))]),"item.memLoad":o(({item:v})=>[p(j,{color:parseFloat(v.memLoad)>=75?"red":void 0,density:"compact",size:"small"},{default:o(()=>[$(W(v.memLoad)+" %",1)]),_:2},1032,["color"])]),"item.memLoadChart":o(()=>[(L(),P(Q,null,{default:o(()=>[p(i,{type:"memory","max-data-points":a(N),"process-info":a(_)},null,8,["max-data-points","process-info"])]),_:1}))]),bottom:o(()=>w[0]||(w[0]=[])),_:1},8,["headers","items"])}}}),ot=X(st,[["__scopeId","data-v-ab47f1e3"]]),rt={class:"h-full w-full inline-size mb-safe"},nt={class:"page-title"},it={class:"subview-title text-color"},lt={class:"inner-component p-4"},ct={class:"mt-10"},ut={class:"subview-title text-color"},mt={class:"inner-component p-4"},pt={class:"mt-10"},dt={class:"subview-title text-color"},vt={class:"inner-component p-4"},ft={class:"mt-10"},ht={class:"subview-title text-color"},_t={class:"inner-component p-4"},gt={class:"mt-10"},yt={class:"subview-title text-color"},bt={class:"inner-component p-4"},Ht=K({__name:"Adminpanel",setup(g){const r=H(),{smallMobileActive:m}=Pe(),S=c(),C=c(),N=c(!1);return J(()=>{S.value=r.connectToNamespace("/metrics"),C.value=r.connectToNamespace("/status")}),we(()=>{var u,h,l,y;(h=(u=S.value)==null?void 0:u.end)==null||h.call(u),(y=(l=C.value)==null?void 0:l.end)==null||y.call(l)}),(u,h)=>{const l=ot,y=at,_=He,k=qe,T=je;return L(),ee("main",{class:de(["w-full h-full",{"px-0":a(m)}])},[x("div",rt,[x("div",{class:de(["mb-3 flex w-full items-center",{"px-2":a(m)}]),style:{height:"30px"}},[x("h1",nt,W(u.$t(`views.${String(u.$route.name).toLowerCase()}.title`)),1)],2),x("div",null,[x("span",it,W(u.$t("views.adminpanel.system")),1),x("div",lt,[p(l)])]),x("div",ct,[x("span",ut,W(u.$t("views.adminpanel.main_processes")),1),x("div",mt,[p(y)])]),x("div",pt,[x("span",dt,W(u.$t("views.adminpanel.frameworker")),1),x("div",vt,[p(_)])]),x("div",ft,[x("span",ht,W(u.$t("views.adminpanel.plugins")),1),x("div",_t,[p(k)])]),x("div",gt,[x("span",yt,W(u.$t("views.adminpanel.currently_loggedin_users")),1),x("div",bt,[p(T,{loading:a(N)},null,8,["loading"])])])])],2)}}});export{Ht as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as b,e as _,f as h,j as e,T as i,M as r,u as t,i as d,s as p}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";import{b as V,a as g}from"./main.D-V5Qegn.0.0.22-alpha.1.js";import{s as u}from"./pinia.Dn9R-5lV.0.0.22-alpha.1.js";import{y as c,d as y}from"./vuetify.red0JsnZ.0.0.22-alpha.1.js";import"./vue3-toastify.DdCHHmXT.0.0.22-alpha.1.js";import"./vue-i18n.mw20Rif9.0.0.22-alpha.1.js";import"./@intlify.YW_pt133.0.0.22-alpha.1.js";import"./axios.C-n2IhIP.0.0.22-alpha.1.js";import"./@tanstack.DlheOlVk.0.0.22-alpha.1.js";import"./vue-router.BchJROVt.0.0.22-alpha.1.js";import"./@vueuse.-m94veKi.0.0.22-alpha.1.js";import"./nprogress.B-sfF0qV.0.0.22-alpha.1.js";import"./@xterm.DV-IE8JS.0.0.22-alpha.1.js";import"./@mdi.DnMbZhUH.0.0.22-alpha.1.js";import"./vee-validate.CpAAwmyb.0.0.22-alpha.1.js";import"./@vee-validate.CBoqAk51.0.0.22-alpha.1.js";import"./zod.BaF2dDCd.0.0.22-alpha.1.js";import"./uuid.DvF23Exx.0.0.22-alpha.1.js";import"./socket.io-client.ZxUZ7LHn.0.0.22-alpha.1.js";import"./engine.io-client.CY7UpWto.0.0.22-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.1.js";import"./socket.io-parser.DbDzb_0x.0.0.22-alpha.1.js";import"./rxjs.BlwZeIMX.0.0.22-alpha.1.js";import"./tslib.9k7AwCpt.0.0.22-alpha.1.js";import"./vue-inline-svg.Br_paQwQ.0.0.22-alpha.1.js";import"./v-calendar.CemaWgJz.0.0.22-alpha.1.js";import"./@popperjs.BQBsAJpH.0.0.22-alpha.1.js";const w={class:"subview-title text-color"},$={class:"inner-component p-4"},k={class:"relative"},x={for:"theme",class:"v-label"},S={class:"ml-auto flex"},B={class:"flex flex-row"},M={class:"v-label m-0 mb-0 ml-2",for:"oneLogin"},T={class:"subview-title text-color"},U={class:"inner-component p-4"},C={class:"relative"},K={for:"language",class:"v-label"},me=b({__name:"Appearance",setup(L){const{locale:n,languages:v}=u(V()),{colors:f,theme:m,autoMode:a}=u(g());return(l,o)=>(_(),h("div",null,[e("div",null,[e("span",w,i(l.$t("views.settings.theme")),1),e("div",$,[e("div",k,[e("label",x,i(l.$t("components.form.label.theme")),1),r(c,{modelValue:t(m),"onUpdate:modelValue":o[0]||(o[0]=s=>d(m)?m.value=s:null),variant:"outlined",density:"compact",name:"theme","hide-details":"",items:t(f),disabled:t(a),onKeydown:p(()=>null,["prevent"])},null,8,["modelValue","items","disabled"])]),o[3]||(o[3]=e("div",{class:"py-2"},null,-1)),e("div",null,[e("div",S,[e("div",B,[r(y,{modelValue:t(a),"onUpdate:modelValue":o[1]||(o[1]=s=>d(a)?a.value=s:null),color:"#df2a4c",type:"checkbox","hide-details":""},null,8,["modelValue"]),e("span",M,i(l.$t("components.form.label.system_preference")),1)])])])])]),o[4]||(o[4]=e("div",{class:"my-8"},null,-1)),e("div",null,[e("span",T,i(l.$t("views.settings.locale")),1),e("div",U,[e("div",C,[e("label",K,i(l.$t("components.form.label.language")),1),r(c,{modelValue:t(n),"onUpdate:modelValue":o[2]||(o[2]=s=>d(n)?n.value=s:null),variant:"outlined",density:"compact",name:"language","hide-details":"",items:t(v),onKeydown:p(()=>null,["prevent"])},null,8,["modelValue","items"])])])])]))}});export{me as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{x as j,X as T,w as R}from"./main.D-V5Qegn.0.0.22-alpha.1.js";import{F as L,t as U,r as f,e as v,f as I,j as a,M as g,R as k,T as r,u,m as C,O as D,s as b,V as B,ae as J,i as E}from"./@vue.CvjRlaU6.0.0.22-alpha.1.js";import{i as F}from"./vue3-toastify.DdCHHmXT.0.0.22-alpha.1.js";import{r as M}from"./system.D_1Xg-Sy.0.0.22-alpha.1.js";import{aA as A,Y as X}from"./@mdi.DnMbZhUH.0.0.22-alpha.1.js";import{e as O,a2 as Y,b as z,n as q}from"./vuetify.red0JsnZ.0.0.22-alpha.1.js";import{u as G}from"./vue-i18n.mw20Rif9.0.0.22-alpha.1.js";import"./axios.C-n2IhIP.0.0.22-alpha.1.js";import"./@tanstack.DlheOlVk.0.0.22-alpha.1.js";import"./pinia.Dn9R-5lV.0.0.22-alpha.1.js";import"./vue-router.BchJROVt.0.0.22-alpha.1.js";import"./@vueuse.-m94veKi.0.0.22-alpha.1.js";import"./nprogress.B-sfF0qV.0.0.22-alpha.1.js";import"./@xterm.DV-IE8JS.0.0.22-alpha.1.js";import"./vee-validate.CpAAwmyb.0.0.22-alpha.1.js";import"./@vee-validate.CBoqAk51.0.0.22-alpha.1.js";import"./zod.BaF2dDCd.0.0.22-alpha.1.js";import"./uuid.DvF23Exx.0.0.22-alpha.1.js";import"./socket.io-client.ZxUZ7LHn.0.0.22-alpha.1.js";import"./engine.io-client.CY7UpWto.0.0.22-alpha.1.js";import"./engine.io-parser.BiEtp6m2.0.0.22-alpha.1.js";import"./@socket.io.Dkula2eQ.0.0.22-alpha.1.js";import"./socket.io-parser.DbDzb_0x.0.0.22-alpha.1.js";import"./rxjs.BlwZeIMX.0.0.22-alpha.1.js";import"./tslib.9k7AwCpt.0.0.22-alpha.1.js";import"./vue-inline-svg.Br_paQwQ.0.0.22-alpha.1.js";import"./v-calendar.CemaWgJz.0.0.22-alpha.1.js";import"./@popperjs.BQBsAJpH.0.0.22-alpha.1.js";import"./@intlify.YW_pt133.0.0.22-alpha.1.js";const H=async w=>(await j.post("/backup/download",{localStorage:w},{responseType:"arraybuffer"})).data,K=async w=>(await j.post("/backup/restore",w)).data,P={class:"w-full"},Q={class:"flex flex-col justify-center items-center mb-5"},W={for:"restoreInput",class:"cursor-pointer text-center"},Z=["accept"],ee={key:0,class:"text-red"},te={class:"mx-2"},oe={class:"disabled-text"},se=L({__name:"VUploadFiles",props:{multiple:{type:Boolean,default:!1},accept:{},icon:{default:A}},emits:["files-uploaded"],setup(w,{expose:x,emit:V}){const p=V,S=w,{accept:y,multiple:h}=U(S),$=f(!1),_=f(!1),i=f([]),e=f(null),s=n=>{const t=i.value.findIndex(l=>l.name===n);t>-1&&(i.value.splice(t,1),o())},d=n=>{if($.value=!1,_.value=!1,i.value=[],console.log(n),n.dataTransfer)if(!h.value&&n.dataTransfer.files.length>1)_.value=!0;else{for(const[,t]of Object.entries(n.dataTransfer.files))i.value.push(t);p("files-uploaded",i.value)}},m=n=>{var l;_.value=!1,i.value=[];const t=n.target;if(t&&t.files)if(!h.value&&((l=t.files)==null?void 0:l.length)>1)_.value=!0;else{for(const[,N]of Object.entries(t.files))i.value.push(N);p("files-uploaded",i.value)}},o=()=>{e.value&&(e.value.value="")};return x({reset:()=>{i.value=[],o()}}),(n,t)=>(v(),I("div",{class:"file-upload-box p-4",onDrop:t[0]||(t[0]=b(l=>d(l),["prevent"])),onDragover:t[1]||(t[1]=b(l=>$.value=!0,["prevent"])),onDragenter:t[2]||(t[2]=b(l=>$.value=!0,["prevent"])),onDragleave:t[3]||(t[3]=b(l=>$.value=!1,["prevent"]))},[a("div",P,[a("div",Q,[g(O,{class:"mt-5",size:"60"},{default:k(()=>[B(r(n.icon),1)]),_:1}),a("label",W,r(n.$t("components.upload_files.drop_or_select_file")),1),a("input",{id:"restoreInput",ref_key:"fileInput",ref:e,type:"file",class:"d-none",accept:u(y),onChange:m},null,40,Z),u(_)?(v(),I("p",ee,r(n.$t("components.upload_files.only_one_file_allowed")),1)):C("",!0)]),u(i).length>0?(v(),D(Y,{key:0,items:u(i),"max-height":"150","item-height":"50"},{default:k(({item:l})=>[(v(),I("div",{key:l.name,class:"w-full flex flex-row items-center justify-start p-2"},[g(z,{size:"28",variant:"text",color:"red",rounded:"",onClick:b(N=>s(l.name),["stop"])},{default:k(()=>[g(O,{size:"20"},{default:k(()=>[B(r(u(X)),1)]),_:1})]),_:2},1032,["onClick"]),a("b",te,r(l.name),1),a("span",oe,"("+r(l.size)+" bytes)",1)])),u(i).length>1?(v(),D(q,{key:0})):C("",!0)]),_:1},8,["items"])):C("",!0)])],32))}}),ae={key:0,class:"flex w-full h-full justify-center items-center fixed top-0 left-0",style:{"z-index":"9000"}},le={class:"subview-title text-color"},ne={class:"inner-component p-4 flex flex-col"},re={class:"text-sm"},ie={class:"subview-title text-color"},ce={class:"inner-component p-4 flex flex-col"},ue={class:"text-sm"},pe={class:"subview-title text-color"},de={class:"inner-component p-4"},me={class:"text-sm"},Ae=L({__name:"Backup",setup(w){const{t:x}=G(),V=f(null),p=f(!1),S=f(!1),y=f(!1),h=f([]),$=async()=>{var e,s,d,m;p.value=!0;try{const o={};if(localStorage.getItem("ui")){const l=localStorage.getItem("ui");o.ui=JSON.parse(l)}if(localStorage.getItem("locale")){const l=localStorage.getItem("locale");o.locale=l}if(localStorage.getItem("theme")){const l=localStorage.getItem("theme");o.theme=JSON.parse(l)}const c=await H(o),n=window.URL.createObjectURL(new Blob([c])),t=document.createElement("a");t.href=n,t.setAttribute("download","cameraui-backup.tar.gz"),document.body.appendChild(t),t.click(),t.remove()}catch(o){console.error(((s=(e=o.response)==null?void 0:e.data)==null?void 0:s.message)??o.message??o),F.error(((m=(d=o.response)==null?void 0:d.data)==null?void 0:m.message)??o.message??o)}p.value=!1},_=async()=>{var e,s,d,m,o;p.value=!0;try{const c=new FormData;c.append("upload",h.value[0]);const n=await K(c);i(n),(e=V.value)==null||e.reset(),F.success(x("components.toast.backup_restored")),S.value=!0,M()}catch(c){console.error(((d=(s=c.response)==null?void 0:s.data)==null?void 0:d.message)??c.message??c),F.error(((o=(m=c.response)==null?void 0:m.data)==null?void 0:o.message)??c.message??c),p.value=!1,S.value=!1}},i=e=>{e.theme&&localStorage.setItem("theme",JSON.stringify(e.theme)),e.locale&&localStorage.setItem("locale",e.locale),e.ui&&localStorage.setItem("ui",JSON.stringify(e.ui))};return(e,s)=>{const d=T,m=R;return v(),I("div",null,[(v(),D(J,{to:".app"},[u(S)?(v(),I("div",ae,[g(d,{reload:""})])):C("",!0)])),a("div",null,[a("span",le,r(e.$t("views.settings.create_backup")),1),a("div",ne,[a("span",re,r(e.$t("views.settings.create_backup_info")),1),s[4]||(s[4]=a("br",null,null,-1)),g(z,{loading:u(p),class:"mt-5 ml-auto",color:"#df2a4c",onClick:b($,["prevent"])},{default:k(()=>[B(r(e.$t("components.form.button.download_backup_archive")),1)]),_:1},8,["loading"])])]),s[5]||(s[5]=a("div",{class:"my-8"},null,-1)),a("div",null,[a("span",ie,r(e.$t("views.settings.restore_backup")),1),a("div",ce,[a("span",ue,r(e.$t("views.settings.restore_backup_info")),1),g(se,{ref_key:"input",ref:V,class:"mt-5",accept:"application/gzip, .tar, .tar.gz",onFilesUploaded:s[0]||(s[0]=o=>h.value=o)},null,512),g(z,{loading:u(p),disabled:!u(h).length,class:"mt-5 ml-auto",color:"#df2a4c",onClick:s[1]||(s[1]=b(o=>y.value=!0,["prevent"]))},{default:k(()=>[B(r(e.$t("components.form.button.restore_backup_archive")),1)]),_:1},8,["loading","disabled"])])]),s[6]||(s[6]=a("div",{class:"my-8"},null,-1)),a("div",null,[a("span",pe,r(e.$t("views.settings.sheduled_backup")),1),a("div",de,[a("span",me,r(e.$t("views.settings.sheduled_backup_info")),1)])]),g(m,{modelValue:u(y),"onUpdate:modelValue":s[2]||(s[2]=o=>E(y)?y.value=o:null),title:e.$t("components.dialog.title.confirm"),"confirm-text":"components.form.button.restore_and_restart",loading:u(p),onConfirm:s[3]||(s[3]=o=>_())},{content:k(()=>[a("span",null,r(e.$t("components.dialog.message.confirm_restore")),1)]),_:1},8,["modelValue","title","loading"])])}}});export{Ae as default};
|