From 54cf6fe5388f9366460c76cd8cc59a6c68d5d564 Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Sun, 14 Dec 2025 00:15:19 +0800 Subject: [PATCH] feat(app): migrate schedules and screenshots (stage 4) --- app-frontend/src/api/schedules.js | 42 ++ app-frontend/src/api/screenshots.js | 17 + app-frontend/src/pages/SchedulesPage.vue | 596 +++++++++++++++++- app-frontend/src/pages/ScreenshotsPage.vue | 247 +++++++- static/app/.vite/manifest.json | 39 +- static/app/assets/AccountsPage-Bcis23qR.js | 1 + static/app/assets/AccountsPage-C2BSK5Ns.js | 1 - ...Page-DYohZsxn.js => LoginPage-BNb9NBzk.js} | 2 +- ...e-CGBzvBqd.js => RegisterPage-CFiuiL-s.js} | 2 +- ...k6uyu.js => ResetPasswordPage-DeWXyaHc.js} | 2 +- static/app/assets/SchedulesPage-BAj1X6GW.css | 1 - static/app/assets/SchedulesPage-BXyRqadY.js | 1 + static/app/assets/SchedulesPage-DHlqgLCv.js | 1 - static/app/assets/SchedulesPage-Gu_OsDUd.css | 1 + .../app/assets/ScreenshotsPage-B66M6Olm.css | 1 + static/app/assets/ScreenshotsPage-BwyU04c1.js | 1 + .../app/assets/ScreenshotsPage-CmPGicmh.css | 1 - static/app/assets/ScreenshotsPage-jZuEr5af.js | 1 - ...i4AM-j.js => VerifyResultPage-DgCNTQ4L.js} | 2 +- static/app/assets/accounts-DI7tHfNj.js | 1 + .../{auth-yhlOdREj.js => auth-CgGRYkq1.js} | 2 +- .../{index-DvbGwVAp.js => index-BstQMnWL.js} | 4 +- static/app/index.html | 2 +- 23 files changed, 924 insertions(+), 44 deletions(-) create mode 100644 app-frontend/src/api/schedules.js create mode 100644 app-frontend/src/api/screenshots.js create mode 100644 static/app/assets/AccountsPage-Bcis23qR.js delete mode 100644 static/app/assets/AccountsPage-C2BSK5Ns.js rename static/app/assets/{LoginPage-DYohZsxn.js => LoginPage-BNb9NBzk.js} (98%) rename static/app/assets/{RegisterPage-CGBzvBqd.js => RegisterPage-CFiuiL-s.js} (97%) rename static/app/assets/{ResetPasswordPage-ClLk6uyu.js => ResetPasswordPage-DeWXyaHc.js} (96%) delete mode 100644 static/app/assets/SchedulesPage-BAj1X6GW.css create mode 100644 static/app/assets/SchedulesPage-BXyRqadY.js delete mode 100644 static/app/assets/SchedulesPage-DHlqgLCv.js create mode 100644 static/app/assets/SchedulesPage-Gu_OsDUd.css create mode 100644 static/app/assets/ScreenshotsPage-B66M6Olm.css create mode 100644 static/app/assets/ScreenshotsPage-BwyU04c1.js delete mode 100644 static/app/assets/ScreenshotsPage-CmPGicmh.css delete mode 100644 static/app/assets/ScreenshotsPage-jZuEr5af.js rename static/app/assets/{VerifyResultPage-B_i4AM-j.js => VerifyResultPage-DgCNTQ4L.js} (97%) create mode 100644 static/app/assets/accounts-DI7tHfNj.js rename static/app/assets/{auth-yhlOdREj.js => auth-CgGRYkq1.js} (91%) rename static/app/assets/{index-DvbGwVAp.js => index-BstQMnWL.js} (99%) diff --git a/app-frontend/src/api/schedules.js b/app-frontend/src/api/schedules.js new file mode 100644 index 0000000..67dbc92 --- /dev/null +++ b/app-frontend/src/api/schedules.js @@ -0,0 +1,42 @@ +import { publicApi } from './http' + +export async function fetchSchedules() { + const { data } = await publicApi.get('/schedules') + return data +} + +export async function createSchedule(payload) { + const { data } = await publicApi.post('/schedules', payload) + return data +} + +export async function updateSchedule(scheduleId, payload) { + const { data } = await publicApi.put(`/schedules/${scheduleId}`, payload) + return data +} + +export async function deleteSchedule(scheduleId) { + const { data } = await publicApi.delete(`/schedules/${scheduleId}`) + return data +} + +export async function toggleSchedule(scheduleId, payload) { + const { data } = await publicApi.post(`/schedules/${scheduleId}/toggle`, payload) + return data +} + +export async function runScheduleNow(scheduleId) { + const { data } = await publicApi.post(`/schedules/${scheduleId}/run`, {}) + return data +} + +export async function fetchScheduleLogs(scheduleId, params = {}) { + const { data } = await publicApi.get(`/schedules/${scheduleId}/logs`, { params }) + return data +} + +export async function clearScheduleLogs(scheduleId) { + const { data } = await publicApi.delete(`/schedules/${scheduleId}/logs`) + return data +} + diff --git a/app-frontend/src/api/screenshots.js b/app-frontend/src/api/screenshots.js new file mode 100644 index 0000000..9fc4ac8 --- /dev/null +++ b/app-frontend/src/api/screenshots.js @@ -0,0 +1,17 @@ +import { publicApi } from './http' + +export async function fetchScreenshots() { + const { data } = await publicApi.get('/screenshots') + return data +} + +export async function deleteScreenshot(filename) { + const { data } = await publicApi.delete(`/screenshots/${encodeURIComponent(filename)}`) + return data +} + +export async function clearScreenshots() { + const { data } = await publicApi.post('/screenshots/clear', {}) + return data +} + diff --git a/app-frontend/src/pages/SchedulesPage.vue b/app-frontend/src/pages/SchedulesPage.vue index 0a96322..e0b13f5 100644 --- a/app-frontend/src/pages/SchedulesPage.vue +++ b/app-frontend/src/pages/SchedulesPage.vue @@ -1,20 +1,598 @@ + + - diff --git a/app-frontend/src/pages/ScreenshotsPage.vue b/app-frontend/src/pages/ScreenshotsPage.vue index bc849a1..b7125c2 100644 --- a/app-frontend/src/pages/ScreenshotsPage.vue +++ b/app-frontend/src/pages/ScreenshotsPage.vue @@ -1,20 +1,253 @@ + + - diff --git a/static/app/.vite/manifest.json b/static/app/.vite/manifest.json index 1297fe7..34a4023 100644 --- a/static/app/.vite/manifest.json +++ b/static/app/.vite/manifest.json @@ -1,6 +1,13 @@ { - "_auth-yhlOdREj.js": { - "file": "assets/auth-yhlOdREj.js", + "_accounts-DI7tHfNj.js": { + "file": "assets/accounts-DI7tHfNj.js", + "name": "accounts", + "imports": [ + "index.html" + ] + }, + "_auth-CgGRYkq1.js": { + "file": "assets/auth-CgGRYkq1.js", "name": "auth", "imports": [ "index.html" @@ -11,7 +18,7 @@ "name": "password" }, "index.html": { - "file": "assets/index-DvbGwVAp.js", + "file": "assets/index-BstQMnWL.js", "name": "index", "src": "index.html", "isEntry": true, @@ -29,11 +36,12 @@ ] }, "src/pages/AccountsPage.vue": { - "file": "assets/AccountsPage-C2BSK5Ns.js", + "file": "assets/AccountsPage-Bcis23qR.js", "name": "AccountsPage", "src": "src/pages/AccountsPage.vue", "isDynamicEntry": true, "imports": [ + "_accounts-DI7tHfNj.js", "index.html" ], "css": [ @@ -41,13 +49,13 @@ ] }, "src/pages/LoginPage.vue": { - "file": "assets/LoginPage-DYohZsxn.js", + "file": "assets/LoginPage-BNb9NBzk.js", "name": "LoginPage", "src": "src/pages/LoginPage.vue", "isDynamicEntry": true, "imports": [ "index.html", - "_auth-yhlOdREj.js", + "_auth-CgGRYkq1.js", "_password-7ryi82gE.js" ], "css": [ @@ -55,26 +63,26 @@ ] }, "src/pages/RegisterPage.vue": { - "file": "assets/RegisterPage-CGBzvBqd.js", + "file": "assets/RegisterPage-CFiuiL-s.js", "name": "RegisterPage", "src": "src/pages/RegisterPage.vue", "isDynamicEntry": true, "imports": [ "index.html", - "_auth-yhlOdREj.js" + "_auth-CgGRYkq1.js" ], "css": [ "assets/RegisterPage-CVjBOq6i.css" ] }, "src/pages/ResetPasswordPage.vue": { - "file": "assets/ResetPasswordPage-ClLk6uyu.js", + "file": "assets/ResetPasswordPage-DeWXyaHc.js", "name": "ResetPasswordPage", "src": "src/pages/ResetPasswordPage.vue", "isDynamicEntry": true, "imports": [ "index.html", - "_auth-yhlOdREj.js", + "_auth-CgGRYkq1.js", "_password-7ryi82gE.js" ], "css": [ @@ -82,19 +90,20 @@ ] }, "src/pages/SchedulesPage.vue": { - "file": "assets/SchedulesPage-DHlqgLCv.js", + "file": "assets/SchedulesPage-BXyRqadY.js", "name": "SchedulesPage", "src": "src/pages/SchedulesPage.vue", "isDynamicEntry": true, "imports": [ + "_accounts-DI7tHfNj.js", "index.html" ], "css": [ - "assets/SchedulesPage-BAj1X6GW.css" + "assets/SchedulesPage-Gu_OsDUd.css" ] }, "src/pages/ScreenshotsPage.vue": { - "file": "assets/ScreenshotsPage-jZuEr5af.js", + "file": "assets/ScreenshotsPage-BwyU04c1.js", "name": "ScreenshotsPage", "src": "src/pages/ScreenshotsPage.vue", "isDynamicEntry": true, @@ -102,11 +111,11 @@ "index.html" ], "css": [ - "assets/ScreenshotsPage-CmPGicmh.css" + "assets/ScreenshotsPage-B66M6Olm.css" ] }, "src/pages/VerifyResultPage.vue": { - "file": "assets/VerifyResultPage-B_i4AM-j.js", + "file": "assets/VerifyResultPage-DgCNTQ4L.js", "name": "VerifyResultPage", "src": "src/pages/VerifyResultPage.vue", "isDynamicEntry": true, diff --git a/static/app/assets/AccountsPage-Bcis23qR.js b/static/app/assets/AccountsPage-Bcis23qR.js new file mode 100644 index 0000000..9b6cfa9 --- /dev/null +++ b/static/app/assets/AccountsPage-Bcis23qR.js @@ -0,0 +1 @@ +import{f as Nt,b as Ie,a as De,c as Vt,s as Lt,d as Pt,t as qt,e as Ut,g as It,u as Dt,h as Ft}from"./accounts-DI7tHfNj.js";import{p as Mt,_ as $t,n as zt,a as U,r as Y,c as $,q as Ht,o as Kt,m as Wt,b as I,d as c,h as G,i as pe,w as h,e as E,f as R,g as p,t as T,k as g,s as Yt,F as Z,v as me,E as y,x as J}from"./index-BstQMnWL.js";async function Jt(){const{data:n}=await Mt.get("/run_stats");return n}const q=Object.create(null);q.open="0";q.close="1";q.ping="2";q.pong="3";q.message="4";q.upgrade="5";q.noop="6";const ne=Object.create(null);Object.keys(q).forEach(n=>{ne[q[n]]=n});const ve={type:"error",data:"parser error"},Ke=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",We=typeof ArrayBuffer=="function",Ye=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,Te=({type:n,data:e},t,s)=>Ke&&e instanceof Blob?t?s(e):Fe(e,s):We&&(e instanceof ArrayBuffer||Ye(e))?t?s(e):Fe(new Blob([e]),s):s(q[n]+(e||"")),Fe=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Me(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let ye;function Xt(n,e){if(Ke&&n.data instanceof Blob)return n.data.arrayBuffer().then(Me).then(e);if(We&&(n.data instanceof ArrayBuffer||Ye(n.data)))return e(Me(n.data));Te(n,!1,t=>{ye||(ye=new TextEncoder),e(ye.encode(t))})}const $e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<$e.length;n++)Q[$e.charCodeAt(n)]=n;const Qt=n=>{let e=n.length*.75,t=n.length,s,i=0,o,u,d,f;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const x=new ArrayBuffer(e),A=new Uint8Array(x);for(s=0;s>4,A[i++]=(u&15)<<4|d>>2,A[i++]=(d&3)<<6|f&63;return x},jt=typeof ArrayBuffer=="function",xe=(n,e)=>{if(typeof n!="string")return{type:"message",data:Je(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Gt(n.substring(1),e)}:ne[t]?n.length>1?{type:ne[t],data:n.substring(1)}:{type:ne[t]}:ve},Gt=(n,e)=>{if(jt){const t=Qt(n);return Je(t,e)}else return{base64:!0,data:n}},Je=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Xe="",Zt=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((o,u)=>{Te(o,!1,d=>{s[u]=d,++i===t&&e(s.join(Xe))})})},es=(n,e)=>{const t=n.split(Xe),s=[];for(let i=0;i{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,s)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let _e;function ee(n){return n.reduce((e,t)=>e+t.length,0)}function te(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,21)-1){d.enqueue(ve);break}i=A*Math.pow(2,32)+x.getUint32(4),s=3}else{if(ee(t)n){d.enqueue(ve);break}}}})}const Qe=4;function w(n){if(n)return ns(n)}function ns(n){for(var e in w.prototype)n[e]=w.prototype[e];return n}w.prototype.on=w.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};w.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};w.prototype.off=w.prototype.removeListener=w.prototype.removeAllListeners=w.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),O=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),rs="arraybuffer";function je(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const is=O.setTimeout,os=O.clearTimeout;function ce(n,e){e.useNativeTimers?(n.setTimeoutFn=is.bind(O),n.clearTimeoutFn=os.bind(O)):(n.setTimeoutFn=O.setTimeout.bind(O),n.clearTimeoutFn=O.clearTimeout.bind(O))}const as=1.33;function cs(n){return typeof n=="string"?ls(n):Math.ceil((n.byteLength||n.size)*as)}function ls(n){let e=0,t=0;for(let s=0,i=n.length;s=57344?t+=3:(s++,t+=4);return t}function Ge(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function us(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function hs(n){let e={},t=n.split("&");for(let s=0,i=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};es(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Zt(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Ge()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let Ze=!1;try{Ze=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ps=Ze;function ms(){}class ys extends fs{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class P extends w{constructor(e,t,s){super(),this.createRequest=e,ce(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=je(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=P.requestsCount++,P.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ms,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete P.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}P.requestsCount=0;P.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ze);else if(typeof addEventListener=="function"){const n="onpagehide"in O?"pagehide":"unload";addEventListener(n,ze,!1)}}function ze(){for(let n in P.requests)P.requests.hasOwnProperty(n)&&P.requests[n].abort()}const _s=(function(){const n=et({xdomain:!1});return n&&n.responseType!==null})();class gs extends ys{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=_s&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new P(et,this.uri(),e)}}function et(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ps))return new XMLHttpRequest}catch{}if(!e)try{return new O[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const tt=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class vs extends Ce{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=tt?{}:je(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,o)}catch{}i&&ae(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ge()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const ge=O.WebSocket||O.MozWebSocket;class ws extends vs{createSocket(e,t,s){return tt?new ge(e,t,s):t?new ge(e,t):new ge(e)}doWrite(e,t){this.ws.send(t)}}class bs extends Ce{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ss(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=ts();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:d,value:f})=>{d||(this.onPacket(f),o())}).catch(d=>{})};o();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&ae(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ks={websocket:ws,webtransport:bs,polling:gs},Es=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,As=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function we(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=Es.exec(n||""),o={},u=14;for(;u--;)o[As[u]]=i[u]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Ts(o,o.path),o.queryKey=xs(o,o.query),o}function Ts(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function xs(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const be=typeof addEventListener=="function"&&typeof removeEventListener=="function",re=[];be&&addEventListener("offline",()=>{re.forEach(n=>n())},!1);class D extends w{constructor(e,t){if(super(),this.binaryType=rs,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=we(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=we(t.host).host);ce(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=hs(this.opts.query)),be&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},re.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Qe,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&D.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",D.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ae(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(D.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),be&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=re.indexOf(this._offlineEventListener);s!==-1&&re.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}D.protocol=Qe;class Cs extends D{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",C=>{if(!s)if(C.type==="pong"&&C.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;D.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(A(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const N=new Error("probe error");N.transport=t.name,this.emitReserved("upgradeError",N)}}))};function o(){s||(s=!0,A(),t.close(),t=null)}const u=C=>{const N=new Error("probe error: "+C);N.transport=t.name,o(),this.emitReserved("upgradeError",N)};function d(){u("transport closed")}function f(){u("socket closed")}function x(C){t&&C.name!==t.name&&o()}const A=()=>{t.removeListener("open",i),t.removeListener("error",u),t.removeListener("close",d),this.off("close",f),this.off("upgrading",x)};t.once("open",i),t.once("error",u),t.once("close",d),this.once("close",f),this.once("upgrading",x),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;sks[i]).filter(i=>!!i)),super(e,s)}};function Bs(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=we(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+e,s.href=s.protocol+"://"+o+(t&&t.port===s.port?"":":"+s.port),s}const Rs=typeof ArrayBuffer=="function",Os=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,st=Object.prototype.toString,Ns=typeof Blob=="function"||typeof Blob<"u"&&st.call(Blob)==="[object BlobConstructor]",Vs=typeof File=="function"||typeof File<"u"&&st.call(File)==="[object FileConstructor]";function Se(n){return Rs&&(n instanceof ArrayBuffer||Os(n))||Ns&&n instanceof Blob||Vs&&n instanceof File}function ie(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let d=0;d{this.io.clearTimeoutFn(o),t.apply(this,d)};u.withError=!0,this.acks[e]=u}emitWithAck(e,...t){return new Promise((s,i)=>{const o=(u,d)=>u?i(u):s(d);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:m.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case m.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case m.EVENT:case m.BINARY_EVENT:this.onevent(e);break;case m.ACK:case m.BINARY_ACK:this.onack(e);break;case m.DISCONNECT:this.ondisconnect();break;case m.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:m.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:m.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}z.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0};z.prototype.reset=function(){this.attempts=0};z.prototype.setMin=function(n){this.ms=n};z.prototype.setMax=function(n){this.max=n};z.prototype.setJitter=function(n){this.jitter=n};class Ae extends w{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,ce(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new z({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||Fs;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ss(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=L(t,"open",function(){s.onopen(),e&&e()}),o=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=L(t,"error",o);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),t.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),this.subs.push(u),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(L(e,"ping",this.onping.bind(this)),L(e,"data",this.ondata.bind(this)),L(e,"error",this.onerror.bind(this)),L(e,"close",this.onclose.bind(this)),L(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){ae(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new nt(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const X={};function oe(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Bs(n,e.path||"/socket.io"),s=t.source,i=t.id,o=t.path,u=X[i]&&o in X[i].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let f;return d?f=new Ae(s,e):(X[i]||(X[i]=new Ae(s,e)),f=X[i]),t.query&&!e.query&&(e.query=t.queryKey),f.socket(t.path,e)}Object.assign(oe,{Manager:Ae,Socket:nt,io:oe,connect:oe});let se=null;function $s(){return se||(se=oe({transports:["websocket","polling"],withCredentials:!0}),se)}const zs={class:"page"},Hs={class:"stat-value"},Ks={class:"stat-value"},Ws={class:"stat-value"},Ys={class:"stat-value"},Js={class:"stat-value"},Xs={class:"stat-value"},Qs={class:"stat-suffix app-muted"},js={class:"upgrade-actions"},Gs={class:"panel-head"},Zs={class:"panel-actions"},en={class:"toolbar"},tn={class:"toolbar-left"},sn={class:"app-muted"},nn={class:"toolbar-middle"},rn={class:"toolbar-right"},on={key:1,class:"grid"},an={class:"card-top"},cn={class:"card-main"},ln={class:"card-title"},un={class:"card-name"},hn={class:"card-sub app-muted"},dn={key:0},fn={key:1},pn={class:"progress"},mn={class:"progress-meta app-muted"},yn={class:"card-controls"},_n={class:"card-buttons"},gn={__name:"AccountsPage",setup(n){const e=zt(),t=$s(),s=U(!1),i=U(!1),o=Y({today_completed:0,today_failed:0,current_running:0,today_items:0,today_attachments:0}),u=Y({}),d=U([]),f=Y({}),x=U("应读"),A=U(!0),C=U(!1),N=U(!1),H=U(!1),S=Y({username:"",password:"",remark:""}),b=Y({id:"",username:"",password:"",remark:"",originalRemark:""}),Re=[{label:"应读",value:"应读"},{label:"未读",value:"未读"},{label:"注册前未读",value:"注册前未读"}],V=$(()=>Object.values(u).sort((a,r)=>String(a.username||"").localeCompare(String(r.username||""),"zh-CN"))),le=$(()=>V.value.length),rt=$(()=>e.isVip?999:3),Oe=$(()=>d.value.length),it=$(()=>le.value>0&&Oe.value===le.value),ot=$(()=>!e.isVip);function K(a){const r=u[a.id]||{};u[a.id]={...r,...a}}function ue(a){for(const r of Object.keys(u))delete u[r];for(const r of a||[])K(r)}function at(){for(const a of V.value)f[a.id]||(f[a.id]="应读")}Ht(V,at,{immediate:!0});function ct(a){a?d.value=V.value.map(r=>r.id):d.value=[]}function j(a){return e.isVip?!0:(y.warning(`${a}是VIP专属功能`),H.value=!0,!1)}function lt(a){const r=Number(a.total_items||0),_=Number(a.progress_items||0);return r?Math.max(0,Math.min(100,Math.round(_/r*100))):0}function ut(a=""){const r=String(a);return r.includes("已完成")||r.includes("完成")?"success":r.includes("失败")||r.includes("错误")||r.includes("异常")||r.includes("登录失败")?"danger":r.includes("排队")||r.includes("运行")||r.includes("截图")?"warning":"info"}async function W(){i.value=!0;try{const a=await Jt();o.today_completed=Number(a?.today_completed||0),o.today_failed=Number(a?.today_failed||0),o.current_running=Number(a?.current_running||0),o.today_items=Number(a?.today_items||0),o.today_attachments=Number(a?.today_attachments||0)}catch(a){a?.response?.status===401&&(window.location.href="/login")}finally{i.value=!1}}async function Ne(){s.value=!0;try{const a=await Nt({refresh:!0});ue(a)}catch(a){a?.response?.status===401&&(window.location.href="/login")}finally{s.value=!1}}async function ht(a){try{await Lt(a.id,{browse_type:f[a.id]||"应读",enable_screenshot:!0})}catch(r){const _=r?.response?.data;y.error(_?.error||"启动失败")}}async function dt(a){try{await Pt(a.id)}catch(r){const _=r?.response?.data;y.error(_?.error||"停止失败")}}async function ft(a){try{await qt(a.id,{browse_type:f[a.id]||"应读"}),y.success("已提交截图")}catch(r){const _=r?.response?.data;y.error(_?.error||"截图失败")}}async function pt(a){try{await J.confirm(`确定要删除账号「${a.username}」吗?`,"删除账号",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch{return}try{const r=await Ut(a.id);r?.success?(delete u[a.id],d.value=d.value.filter(_=>_!==a.id),y.success("已删除"),await W()):y.error(r?.error||"删除失败")}catch(r){const _=r?.response?.data;y.error(_?.error||"删除失败")}}function mt(){S.username="",S.password="",S.remark="",C.value=!0}async function yt(){const a=S.username.trim();if(!a||!S.password.trim()){y.error("用户名和密码不能为空");return}try{await It({username:a,password:S.password,remember:!0,remark:S.remark.trim()}),y.success("添加成功"),C.value=!1,await W()}catch(r){const _=r?.response?.data;y.error(_?.error||"添加失败")}}function _t(a){b.id=a.id,b.username=a.username,b.password="",b.remark=String(a.remark||""),b.originalRemark=String(a.remark||""),N.value=!0}async function gt(){if(b.id){if(!b.password.trim()){y.error("请输入新密码");return}try{const a=await Dt(b.id,{password:b.password,remember:!0});a?.account&&K(a.account);const r=b.remark.trim();r!==b.originalRemark&&(await Ft(b.id,{remark:r}),K({id:b.id,remark:r})),y.success("已更新"),N.value=!1}catch(a){const r=a?.response?.data;y.error(r?.error||"更新失败")}}}async function vt(){if(j("批量操作")){if(d.value.length===0){y.warning("请先选择账号");return}try{const a=await Ie({account_ids:d.value,browse_type:x.value,enable_screenshot:A.value});y.success(`已启动 ${a?.started_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function wt(){if(j("批量操作")){if(d.value.length===0){y.warning("请先选择账号");return}try{const a=await De({account_ids:d.value});y.success(`已停止 ${a?.stopped_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function bt(){if(j("全部启动")){if(V.value.length===0){y.warning("没有账号");return}try{await J.confirm("确定要启动全部账号吗?","全部启动",{confirmButtonText:"启动",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await Ie({account_ids:V.value.map(r=>r.id),browse_type:x.value,enable_screenshot:A.value});y.success(`已启动 ${a?.started_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function kt(){if(j("全部停止")){if(V.value.length===0){y.warning("没有账号");return}try{await J.confirm("确定要停止全部账号吗?","全部停止",{confirmButtonText:"停止",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await De({account_ids:V.value.map(r=>r.id)});y.success(`已停止 ${a?.stopped_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function Et(){if(V.value.length===0){y.warning("没有账号");return}try{await J.confirm("确定要清空所有账号吗?此操作不可恢复!","清空账号",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}),await J.confirm("再次确认:真的要删除所有账号吗?","二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await Vt();if(a?.success){ue([]),d.value=[],y.success("已清空所有账号"),await W();return}y.error(a?.error||"操作失败")}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}function At(){const a=v=>{ue(v)},r=v=>{K(v)},_=v=>{v?.account_id&&K({id:v.account_id,detail_status:v.stage||"",total_items:v.total_items,progress_items:v.browsed_items,total_attachments:v.total_attachments,progress_attachments:v.viewed_attachments,elapsed_seconds:v.elapsed_seconds,elapsed_display:v.elapsed_display})};return t.on("accounts_list",a),t.on("account_update",r),t.on("task_progress",_),t.connected||t.connect(),()=>{t.off("accounts_list",a),t.off("account_update",r),t.off("task_progress",_)}}let he=null,de=null;return Kt(async()=>{e.vipInfo||e.refreshVipInfo().catch(()=>{window.location.href="/login"}),he=At(),await Ne(),await W(),de=window.setInterval(W,1e4)}),Wt(()=>{he&&he(),de&&window.clearInterval(de)}),(a,r)=>{const _=E("el-card"),v=E("el-col"),Tt=E("el-row"),k=E("el-button"),Ve=E("el-alert"),Le=E("el-checkbox"),Pe=E("el-option"),qe=E("el-select"),xt=E("el-switch"),Ct=E("el-skeleton"),St=E("el-empty"),Bt=E("el-checkbox-group"),Rt=E("el-tag"),Ot=E("el-progress"),F=E("el-input"),M=E("el-form-item"),Ue=E("el-form"),fe=E("el-dialog");return R(),I("div",zs,[c(Tt,{gutter:12,class:"stats-row"},{default:h(()=>[c(v,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[16]||(r[16]=p("div",{class:"stat-label app-muted"},"今日完成",-1)),p("div",Hs,T(o.today_completed),1)]),_:1})]),_:1}),c(v,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[17]||(r[17]=p("div",{class:"stat-label app-muted"},"今日失败",-1)),p("div",Ks,T(o.today_failed),1)]),_:1})]),_:1}),c(v,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[18]||(r[18]=p("div",{class:"stat-label app-muted"},"运行中",-1)),p("div",Ws,T(o.current_running),1)]),_:1})]),_:1}),c(v,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[19]||(r[19]=p("div",{class:"stat-label app-muted"},"浏览内容",-1)),p("div",Ys,T(o.today_items),1)]),_:1})]),_:1}),c(v,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[20]||(r[20]=p("div",{class:"stat-label app-muted"},"查看附件",-1)),p("div",Js,T(o.today_attachments),1)]),_:1})]),_:1}),c(v,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[21]||(r[21]=p("div",{class:"stat-label app-muted"},"账号数",-1)),p("div",Xs,[g(T(le.value),1),p("span",Qs,"/ "+T(Yt(e).isVip?"∞":rt.value),1)])]),_:1})]),_:1})]),_:1}),ot.value?(R(),G(Ve,{key:0,type:"info","show-icon":"",closable:!1,class:"upgrade-banner",title:"升级 VIP,解锁更多功能:无限账号 · 优先排队 · 定时任务 · 批量操作"},{default:h(()=>[p("div",js,[c(k,{type:"primary",plain:"",onClick:r[0]||(r[0]=l=>H.value=!0)},{default:h(()=>[...r[22]||(r[22]=[g("了解VIP特权",-1)])]),_:1})])]),_:1})):pe("",!0),c(_,{shadow:"never",class:"panel","body-style":{padding:"14px"}},{default:h(()=>[p("div",Gs,[r[25]||(r[25]=p("div",{class:"panel-title"},"账号管理",-1)),p("div",Zs,[c(k,{loading:s.value,onClick:Ne},{default:h(()=>[...r[23]||(r[23]=[g("刷新",-1)])]),_:1},8,["loading"]),c(k,{type:"primary",onClick:mt},{default:h(()=>[...r[24]||(r[24]=[g("添加账号",-1)])]),_:1})])]),p("div",en,[p("div",tn,[c(Le,{"model-value":it.value,onChange:ct},{default:h(()=>[...r[26]||(r[26]=[g("全选",-1)])]),_:1},8,["model-value"]),p("span",sn,"已选 "+T(Oe.value)+" 个",1)]),p("div",nn,[c(qe,{modelValue:x.value,"onUpdate:modelValue":r[1]||(r[1]=l=>x.value=l),size:"small",style:{width:"120px"}},{default:h(()=>[(R(),I(Z,null,me(Re,l=>c(Pe,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),c(xt,{modelValue:A.value,"onUpdate:modelValue":r[2]||(r[2]=l=>A.value=l),"inline-prompt":"","active-text":"截图","inactive-text":"不截图"},null,8,["modelValue"])]),p("div",rn,[c(k,{type:"primary",onClick:vt},{default:h(()=>[...r[27]||(r[27]=[g("批量启动",-1)])]),_:1}),c(k,{onClick:wt},{default:h(()=>[...r[28]||(r[28]=[g("批量停止",-1)])]),_:1}),c(k,{type:"success",plain:"",onClick:bt},{default:h(()=>[...r[29]||(r[29]=[g("全部启动",-1)])]),_:1}),c(k,{type:"danger",plain:"",onClick:kt},{default:h(()=>[...r[30]||(r[30]=[g("全部停止",-1)])]),_:1}),c(k,{type:"danger",text:"",onClick:Et},{default:h(()=>[...r[31]||(r[31]=[g("清空",-1)])]),_:1})])]),s.value||i.value?(R(),G(Ct,{key:0,rows:5,animated:""})):(R(),I(Z,{key:1},[V.value.length===0?(R(),G(St,{key:0,description:"暂无账号,点击右上角添加"})):(R(),I("div",on,[(R(!0),I(Z,null,me(V.value,l=>(R(),G(_,{key:l.id,shadow:"never",class:"account-card","body-style":{padding:"14px"}},{default:h(()=>[p("div",an,[c(Bt,{modelValue:d.value,"onUpdate:modelValue":r[3]||(r[3]=B=>d.value=B),class:"card-check"},{default:h(()=>[c(Le,{value:l.id},null,8,["value"])]),_:2},1032,["modelValue"]),p("div",cn,[p("div",ln,[p("span",un,T(l.username),1),c(Rt,{size:"small",type:ut(l.status),effect:"light"},{default:h(()=>[g(T(l.status),1)]),_:2},1032,["type"])]),p("div",hn,[g(T(l.remark||"—")+" ",1),l.detail_status?(R(),I("span",dn," · "+T(l.detail_status),1)):pe("",!0),l.elapsed_display?(R(),I("span",fn," · "+T(l.elapsed_display),1)):pe("",!0)])])]),p("div",pn,[c(Ot,{percentage:lt(l),"stroke-width":10,"show-text":!1},null,8,["percentage"]),p("div",mn,[p("span",null,"内容 "+T(l.progress_items||0)+"/"+T(l.total_items||0),1),p("span",null,"附件 "+T(l.progress_attachments||0)+"/"+T(l.total_attachments||0),1)])]),p("div",yn,[c(qe,{modelValue:f[l.id],"onUpdate:modelValue":B=>f[l.id]=B,size:"small",style:{width:"130px"}},{default:h(()=>[(R(),I(Z,null,me(Re,B=>c(Pe,{key:B.value,label:B.label,value:B.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"]),p("div",_n,[c(k,{size:"small",type:"primary",disabled:l.is_running,onClick:B=>ht(l)},{default:h(()=>[...r[32]||(r[32]=[g("启动",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",disabled:!l.is_running,onClick:B=>dt(l)},{default:h(()=>[...r[33]||(r[33]=[g("停止",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",disabled:l.is_running,onClick:B=>ft(l)},{default:h(()=>[...r[34]||(r[34]=[g("截图",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",disabled:l.is_running,onClick:B=>_t(l)},{default:h(()=>[...r[35]||(r[35]=[g("编辑",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",type:"danger",text:"",onClick:B=>pt(l)},{default:h(()=>[...r[36]||(r[36]=[g("删除",-1)])]),_:1},8,["onClick"])])])]),_:2},1024))),128))]))],64))]),_:1}),c(fe,{modelValue:C.value,"onUpdate:modelValue":r[8]||(r[8]=l=>C.value=l),title:"添加账号",width:"min(560px, 92vw)"},{footer:h(()=>[c(k,{onClick:r[7]||(r[7]=l=>C.value=!1)},{default:h(()=>[...r[37]||(r[37]=[g("取消",-1)])]),_:1}),c(k,{type:"primary",onClick:yt},{default:h(()=>[...r[38]||(r[38]=[g("添加",-1)])]),_:1})]),default:h(()=>[c(Ue,{"label-position":"top"},{default:h(()=>[c(M,{label:"账号"},{default:h(()=>[c(F,{modelValue:S.username,"onUpdate:modelValue":r[4]||(r[4]=l=>S.username=l),placeholder:"请输入账号",autocomplete:"off"},null,8,["modelValue"])]),_:1}),c(M,{label:"密码"},{default:h(()=>[c(F,{modelValue:S.password,"onUpdate:modelValue":r[5]||(r[5]=l=>S.password=l),type:"password","show-password":"",placeholder:"请输入密码",autocomplete:"off"},null,8,["modelValue"])]),_:1}),c(M,{label:"备注(可选,最多200字)"},{default:h(()=>[c(F,{modelValue:S.remark,"onUpdate:modelValue":r[6]||(r[6]=l=>S.remark=l),type:"textarea",rows:3,maxlength:"200","show-word-limit":"",placeholder:"例如:部门/用途"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),c(fe,{modelValue:N.value,"onUpdate:modelValue":r[13]||(r[13]=l=>N.value=l),title:"编辑账号",width:"min(560px, 92vw)"},{footer:h(()=>[c(k,{onClick:r[12]||(r[12]=l=>N.value=!1)},{default:h(()=>[...r[39]||(r[39]=[g("取消",-1)])]),_:1}),c(k,{type:"primary",onClick:gt},{default:h(()=>[...r[40]||(r[40]=[g("保存",-1)])]),_:1})]),default:h(()=>[c(Ue,{"label-position":"top"},{default:h(()=>[c(M,{label:"账号"},{default:h(()=>[c(F,{modelValue:b.username,"onUpdate:modelValue":r[9]||(r[9]=l=>b.username=l),disabled:""},null,8,["modelValue"])]),_:1}),c(M,{label:"新密码(必填)"},{default:h(()=>[c(F,{modelValue:b.password,"onUpdate:modelValue":r[10]||(r[10]=l=>b.password=l),type:"password","show-password":"",placeholder:"请输入新密码",autocomplete:"off"},null,8,["modelValue"])]),_:1}),c(M,{label:"备注(可选,最多200字)"},{default:h(()=>[c(F,{modelValue:b.remark,"onUpdate:modelValue":r[11]||(r[11]=l=>b.remark=l),type:"textarea",rows:3,maxlength:"200","show-word-limit":"",placeholder:"例如:部门/用途"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),c(fe,{modelValue:H.value,"onUpdate:modelValue":r[15]||(r[15]=l=>H.value=l),title:"VIP 特权",width:"min(560px, 92vw)"},{footer:h(()=>[c(k,{type:"primary",onClick:r[14]||(r[14]=l=>H.value=!1)},{default:h(()=>[...r[41]||(r[41]=[g("我知道了",-1)])]),_:1})]),default:h(()=>[c(Ve,{type:"info",closable:!1,title:"升级 VIP 后可解锁:无限账号、优先排队、定时任务、批量操作。","show-icon":""}),r[42]||(r[42]=p("div",{class:"vip-body"},[p("div",{class:"vip-tip app-muted"},"升级方式:请通过“反馈”联系管理员开通(与后台一致)。")],-1))]),_:1},8,["modelValue"])])}}},kn=$t(gn,[["__scopeId","data-v-0cf21db0"]]);export{kn as default}; diff --git a/static/app/assets/AccountsPage-C2BSK5Ns.js b/static/app/assets/AccountsPage-C2BSK5Ns.js deleted file mode 100644 index d505e04..0000000 --- a/static/app/assets/AccountsPage-C2BSK5Ns.js +++ /dev/null @@ -1 +0,0 @@ -import{p as N,_ as Vt,n as Lt,a as I,r as J,c as z,q as Pt,o as qt,m as Ut,b as D,d as c,h as Z,i as me,w as h,e as E,f as R,g as p,t as T,k as g,s as It,F as ee,v as ye,E as y,x as X}from"./index-DvbGwVAp.js";async function Dt(n={}){const{data:e}=await N.get("/accounts",{params:n});return e}async function Ft(n){const{data:e}=await N.post("/accounts",n);return e}async function $t(n,e){const{data:t}=await N.put(`/accounts/${n}`,e);return t}async function Mt(n){const{data:e}=await N.delete(`/accounts/${n}`);return e}async function zt(n,e){const{data:t}=await N.put(`/accounts/${n}/remark`,e);return t}async function Ht(n,e){const{data:t}=await N.post(`/accounts/${n}/start`,e);return t}async function Kt(n){const{data:e}=await N.post(`/accounts/${n}/stop`,{});return e}async function De(n){const{data:e}=await N.post("/accounts/batch/start",n);return e}async function Fe(n){const{data:e}=await N.post("/accounts/batch/stop",n);return e}async function Wt(){const{data:n}=await N.post("/accounts/clear",{});return n}async function Yt(n,e={}){const{data:t}=await N.post(`/accounts/${n}/screenshot`,e);return t}async function Jt(){const{data:n}=await N.get("/run_stats");return n}const U=Object.create(null);U.open="0";U.close="1";U.ping="2";U.pong="3";U.message="4";U.upgrade="5";U.noop="6";const re=Object.create(null);Object.keys(U).forEach(n=>{re[U[n]]=n});const ve={type:"error",data:"parser error"},We=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ye=typeof ArrayBuffer=="function",Je=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,xe=({type:n,data:e},t,s)=>We&&e instanceof Blob?t?s(e):$e(e,s):Ye&&(e instanceof ArrayBuffer||Je(e))?t?s(e):$e(new Blob([e]),s):s(U[n]+(e||"")),$e=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function Me(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let _e;function Xt(n,e){if(We&&n.data instanceof Blob)return n.data.arrayBuffer().then(Me).then(e);if(Ye&&(n.data instanceof ArrayBuffer||Je(n.data)))return e(Me(n.data));xe(n,!1,t=>{_e||(_e=new TextEncoder),e(_e.encode(t))})}const ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",j=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n{let e=n.length*.75,t=n.length,s,i=0,o,u,d,f;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const x=new ArrayBuffer(e),A=new Uint8Array(x);for(s=0;s>4,A[i++]=(u&15)<<4|d>>2,A[i++]=(d&3)<<6|f&63;return x},jt=typeof ArrayBuffer=="function",Ce=(n,e)=>{if(typeof n!="string")return{type:"message",data:Xe(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Gt(n.substring(1),e)}:re[t]?n.length>1?{type:re[t],data:n.substring(1)}:{type:re[t]}:ve},Gt=(n,e)=>{if(jt){const t=Qt(n);return Xe(t,e)}else return{base64:!0,data:n}},Xe=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Qe="",Zt=(n,e)=>{const t=n.length,s=new Array(t);let i=0;n.forEach((o,u)=>{xe(o,!1,d=>{s[u]=d,++i===t&&e(s.join(Qe))})})},es=(n,e)=>{const t=n.split(Qe),s=[];for(let i=0;i{const s=t.length;let i;if(s<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,s);else if(s<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,s)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let ge;function te(n){return n.reduce((e,t)=>e+t.length,0)}function se(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let i=0;iMath.pow(2,21)-1){d.enqueue(ve);break}i=A*Math.pow(2,32)+x.getUint32(4),s=3}else{if(te(t)n){d.enqueue(ve);break}}}})}const je=4;function v(n){if(n)return ns(n)}function ns(n){for(var e in v.prototype)n[e]=v.prototype[e];return n}v.prototype.on=v.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};v.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};v.prototype.off=v.prototype.removeListener=v.prototype.removeAllListeners=v.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,i=0;iPromise.resolve().then(e):(e,t)=>t(e,0),O=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),rs="arraybuffer";function Ge(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const is=O.setTimeout,os=O.clearTimeout;function le(n,e){e.useNativeTimers?(n.setTimeoutFn=is.bind(O),n.clearTimeoutFn=os.bind(O)):(n.setTimeoutFn=O.setTimeout.bind(O),n.clearTimeoutFn=O.clearTimeout.bind(O))}const as=1.33;function cs(n){return typeof n=="string"?ls(n):Math.ceil((n.byteLength||n.size)*as)}function ls(n){let e=0,t=0;for(let s=0,i=n.length;s=57344?t+=3:(s++,t+=4);return t}function Ze(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function us(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function hs(n){let e={},t=n.split("&");for(let s=0,i=t.length;s{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};es(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Zt(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Ze()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let et=!1;try{et=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ps=et;function ms(){}class ys extends fs{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class q extends v{constructor(e,t,s){super(),this.createRequest=e,le(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=Ge(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=q.requestsCount++,q.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=ms,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete q.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}q.requestsCount=0;q.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",He);else if(typeof addEventListener=="function"){const n="onpagehide"in O?"pagehide":"unload";addEventListener(n,He,!1)}}function He(){for(let n in q.requests)q.requests.hasOwnProperty(n)&&q.requests[n].abort()}const _s=(function(){const n=tt({xdomain:!1});return n&&n.responseType!==null})();class gs extends ys{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=_s&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new q(tt,this.uri(),e)}}function tt(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||ps))return new XMLHttpRequest}catch{}if(!e)try{return new O[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const st=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ws extends Se{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=st?{}:Ge(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.doWrite(s,o)}catch{}i&&ce(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ze()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const we=O.WebSocket||O.MozWebSocket;class vs extends ws{createSocket(e,t,s){return st?new we(e,t,s):t?new we(e,t):new we(e)}doWrite(e,t){this.ws.send(t)}}class bs extends Se{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ss(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=ts();i.readable.pipeTo(e.writable),this._writer=i.writable.getWriter();const o=()=>{s.read().then(({done:d,value:f})=>{d||(this.onPacket(f),o())}).catch(d=>{})};o();const u={type:"open"};this.query.sid&&(u.data=`{"sid":"${this.query.sid}"}`),this._writer.write(u).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t{i&&ce(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ks={websocket:vs,webtransport:bs,polling:gs},Es=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,As=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function be(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let i=Es.exec(n||""),o={},u=14;for(;u--;)o[As[u]]=i[u]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=Ts(o,o.path),o.queryKey=xs(o,o.query),o}function Ts(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function xs(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}const ke=typeof addEventListener=="function"&&typeof removeEventListener=="function",ie=[];ke&&addEventListener("offline",()=>{ie.forEach(n=>n())},!1);class F extends v{constructor(e,t){if(super(),this.binaryType=rs,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=be(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=be(t.host).host);le(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const i=s.prototype.name;this.transports.push(i),this._transportsByName[i]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=hs(this.opts.query)),ke&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ie.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=je,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&F.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",F.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ce(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(F.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ke&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=ie.indexOf(this._offlineEventListener);s!==-1&&ie.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}F.protocol=je;class Cs extends F{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",C=>{if(!s)if(C.type==="pong"&&C.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;F.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(A(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const V=new Error("probe error");V.transport=t.name,this.emitReserved("upgradeError",V)}}))};function o(){s||(s=!0,A(),t.close(),t=null)}const u=C=>{const V=new Error("probe error: "+C);V.transport=t.name,o(),this.emitReserved("upgradeError",V)};function d(){u("transport closed")}function f(){u("socket closed")}function x(C){t&&C.name!==t.name&&o()}const A=()=>{t.removeListener("open",i),t.removeListener("error",u),t.removeListener("close",d),this.off("close",f),this.off("upgrading",x)};t.once("open",i),t.once("error",u),t.once("close",d),this.once("close",f),this.once("upgrading",x),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;sks[i]).filter(i=>!!i)),super(e,s)}};function Bs(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=be(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+e,s.href=s.protocol+"://"+o+(t&&t.port===s.port?"":":"+s.port),s}const Rs=typeof ArrayBuffer=="function",Os=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,nt=Object.prototype.toString,Ns=typeof Blob=="function"||typeof Blob<"u"&&nt.call(Blob)==="[object BlobConstructor]",Vs=typeof File=="function"||typeof File<"u"&&nt.call(File)==="[object FileConstructor]";function Be(n){return Rs&&(n instanceof ArrayBuffer||Os(n))||Ns&&n instanceof Blob||Vs&&n instanceof File}function oe(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t=0&&n.num{delete this.acks[e];for(let d=0;d{this.io.clearTimeoutFn(o),t.apply(this,d)};u.withError=!0,this.acks[e]=u}emitWithAck(e,...t){return new Promise((s,i)=>{const o=(u,d)=>u?i(u):s(d);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>s!==this._queue[0]?void 0:(i!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:m.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case m.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case m.EVENT:case m.BINARY_EVENT:this.onevent(e);break;case m.ACK:case m.BINARY_ACK:this.onack(e);break;case m.DISCONNECT:this.ondisconnect();break;case m.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...i){s||(s=!0,t.packet({type:m.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:m.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s0&&n.jitter<=1?n.jitter:0,this.attempts=0}H.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=(Math.floor(e*10)&1)==0?n-t:n+t}return Math.min(n,this.max)|0};H.prototype.reset=function(){this.attempts=0};H.prototype.setMin=function(n){this.ms=n};H.prototype.setMax=function(n){this.max=n};H.prototype.setJitter=function(n){this.jitter=n};class Te extends v{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,le(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new H({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||Fs;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Ss(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const i=P(t,"open",function(){s.onopen(),e&&e()}),o=d=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",d),e?e(d):this.maybeReconnectOnOpen()},u=P(t,"error",o);if(this._timeout!==!1){const d=this._timeout,f=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),t.close()},d);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(i),this.subs.push(u),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(P(e,"ping",this.onping.bind(this)),P(e,"data",this.ondata.bind(this)),P(e,"error",this.onerror.bind(this)),P(e,"close",this.onclose.bind(this)),P(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){ce(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new rt(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;se()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Q={};function ae(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=Bs(n,e.path||"/socket.io"),s=t.source,i=t.id,o=t.path,u=Q[i]&&o in Q[i].nsps,d=e.forceNew||e["force new connection"]||e.multiplex===!1||u;let f;return d?f=new Te(s,e):(Q[i]||(Q[i]=new Te(s,e)),f=Q[i]),t.query&&!e.query&&(e.query=t.queryKey),f.socket(t.path,e)}Object.assign(ae,{Manager:Te,Socket:rt,io:ae,connect:ae});let ne=null;function Ms(){return ne||(ne=ae({transports:["websocket","polling"],withCredentials:!0}),ne)}const zs={class:"page"},Hs={class:"stat-value"},Ks={class:"stat-value"},Ws={class:"stat-value"},Ys={class:"stat-value"},Js={class:"stat-value"},Xs={class:"stat-value"},Qs={class:"stat-suffix app-muted"},js={class:"upgrade-actions"},Gs={class:"panel-head"},Zs={class:"panel-actions"},en={class:"toolbar"},tn={class:"toolbar-left"},sn={class:"app-muted"},nn={class:"toolbar-middle"},rn={class:"toolbar-right"},on={key:1,class:"grid"},an={class:"card-top"},cn={class:"card-main"},ln={class:"card-title"},un={class:"card-name"},hn={class:"card-sub app-muted"},dn={key:0},fn={key:1},pn={class:"progress"},mn={class:"progress-meta app-muted"},yn={class:"card-controls"},_n={class:"card-buttons"},gn={__name:"AccountsPage",setup(n){const e=Lt(),t=Ms(),s=I(!1),i=I(!1),o=J({today_completed:0,today_failed:0,current_running:0,today_items:0,today_attachments:0}),u=J({}),d=I([]),f=J({}),x=I("应读"),A=I(!0),C=I(!1),V=I(!1),K=I(!1),S=J({username:"",password:"",remark:""}),b=J({id:"",username:"",password:"",remark:"",originalRemark:""}),Oe=[{label:"应读",value:"应读"},{label:"未读",value:"未读"},{label:"注册前未读",value:"注册前未读"}],L=z(()=>Object.values(u).sort((a,r)=>String(a.username||"").localeCompare(String(r.username||""),"zh-CN"))),ue=z(()=>L.value.length),it=z(()=>e.isVip?999:3),Ne=z(()=>d.value.length),ot=z(()=>ue.value>0&&Ne.value===ue.value),at=z(()=>!e.isVip);function W(a){const r=u[a.id]||{};u[a.id]={...r,...a}}function he(a){for(const r of Object.keys(u))delete u[r];for(const r of a||[])W(r)}function ct(){for(const a of L.value)f[a.id]||(f[a.id]="应读")}Pt(L,ct,{immediate:!0});function lt(a){a?d.value=L.value.map(r=>r.id):d.value=[]}function G(a){return e.isVip?!0:(y.warning(`${a}是VIP专属功能`),K.value=!0,!1)}function ut(a){const r=Number(a.total_items||0),_=Number(a.progress_items||0);return r?Math.max(0,Math.min(100,Math.round(_/r*100))):0}function ht(a=""){const r=String(a);return r.includes("已完成")||r.includes("完成")?"success":r.includes("失败")||r.includes("错误")||r.includes("异常")||r.includes("登录失败")?"danger":r.includes("排队")||r.includes("运行")||r.includes("截图")?"warning":"info"}async function Y(){i.value=!0;try{const a=await Jt();o.today_completed=Number(a?.today_completed||0),o.today_failed=Number(a?.today_failed||0),o.current_running=Number(a?.current_running||0),o.today_items=Number(a?.today_items||0),o.today_attachments=Number(a?.today_attachments||0)}catch(a){a?.response?.status===401&&(window.location.href="/login")}finally{i.value=!1}}async function Ve(){s.value=!0;try{const a=await Dt({refresh:!0});he(a)}catch(a){a?.response?.status===401&&(window.location.href="/login")}finally{s.value=!1}}async function dt(a){try{await Ht(a.id,{browse_type:f[a.id]||"应读",enable_screenshot:!0})}catch(r){const _=r?.response?.data;y.error(_?.error||"启动失败")}}async function ft(a){try{await Kt(a.id)}catch(r){const _=r?.response?.data;y.error(_?.error||"停止失败")}}async function pt(a){try{await Yt(a.id,{browse_type:f[a.id]||"应读"}),y.success("已提交截图")}catch(r){const _=r?.response?.data;y.error(_?.error||"截图失败")}}async function mt(a){try{await X.confirm(`确定要删除账号「${a.username}」吗?`,"删除账号",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch{return}try{const r=await Mt(a.id);r?.success?(delete u[a.id],d.value=d.value.filter(_=>_!==a.id),y.success("已删除"),await Y()):y.error(r?.error||"删除失败")}catch(r){const _=r?.response?.data;y.error(_?.error||"删除失败")}}function yt(){S.username="",S.password="",S.remark="",C.value=!0}async function _t(){const a=S.username.trim();if(!a||!S.password.trim()){y.error("用户名和密码不能为空");return}try{await Ft({username:a,password:S.password,remember:!0,remark:S.remark.trim()}),y.success("添加成功"),C.value=!1,await Y()}catch(r){const _=r?.response?.data;y.error(_?.error||"添加失败")}}function gt(a){b.id=a.id,b.username=a.username,b.password="",b.remark=String(a.remark||""),b.originalRemark=String(a.remark||""),V.value=!0}async function wt(){if(b.id){if(!b.password.trim()){y.error("请输入新密码");return}try{const a=await $t(b.id,{password:b.password,remember:!0});a?.account&&W(a.account);const r=b.remark.trim();r!==b.originalRemark&&(await zt(b.id,{remark:r}),W({id:b.id,remark:r})),y.success("已更新"),V.value=!1}catch(a){const r=a?.response?.data;y.error(r?.error||"更新失败")}}}async function vt(){if(G("批量操作")){if(d.value.length===0){y.warning("请先选择账号");return}try{const a=await De({account_ids:d.value,browse_type:x.value,enable_screenshot:A.value});y.success(`已启动 ${a?.started_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function bt(){if(G("批量操作")){if(d.value.length===0){y.warning("请先选择账号");return}try{const a=await Fe({account_ids:d.value});y.success(`已停止 ${a?.stopped_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function kt(){if(G("全部启动")){if(L.value.length===0){y.warning("没有账号");return}try{await X.confirm("确定要启动全部账号吗?","全部启动",{confirmButtonText:"启动",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await De({account_ids:L.value.map(r=>r.id),browse_type:x.value,enable_screenshot:A.value});y.success(`已启动 ${a?.started_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function Et(){if(G("全部停止")){if(L.value.length===0){y.warning("没有账号");return}try{await X.confirm("确定要停止全部账号吗?","全部停止",{confirmButtonText:"停止",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await Fe({account_ids:L.value.map(r=>r.id)});y.success(`已停止 ${a?.stopped_count||0} 个账号`)}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}}async function At(){if(L.value.length===0){y.warning("没有账号");return}try{await X.confirm("确定要清空所有账号吗?此操作不可恢复!","清空账号",{confirmButtonText:"继续",cancelButtonText:"取消",type:"warning"}),await X.confirm("再次确认:真的要删除所有账号吗?","二次确认",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await Wt();if(a?.success){he([]),d.value=[],y.success("已清空所有账号"),await Y();return}y.error(a?.error||"操作失败")}catch(a){const r=a?.response?.data;y.error(r?.error||"操作失败")}}function Tt(){const a=w=>{he(w)},r=w=>{W(w)},_=w=>{w?.account_id&&W({id:w.account_id,detail_status:w.stage||"",total_items:w.total_items,progress_items:w.browsed_items,total_attachments:w.total_attachments,progress_attachments:w.viewed_attachments,elapsed_seconds:w.elapsed_seconds,elapsed_display:w.elapsed_display})};return t.on("accounts_list",a),t.on("account_update",r),t.on("task_progress",_),t.connected||t.connect(),()=>{t.off("accounts_list",a),t.off("account_update",r),t.off("task_progress",_)}}let de=null,fe=null;return qt(async()=>{e.vipInfo||e.refreshVipInfo().catch(()=>{window.location.href="/login"}),de=Tt(),await Ve(),await Y(),fe=window.setInterval(Y,1e4)}),Ut(()=>{de&&de(),fe&&window.clearInterval(fe)}),(a,r)=>{const _=E("el-card"),w=E("el-col"),xt=E("el-row"),k=E("el-button"),Le=E("el-alert"),Pe=E("el-checkbox"),qe=E("el-option"),Ue=E("el-select"),Ct=E("el-switch"),St=E("el-skeleton"),Bt=E("el-empty"),Rt=E("el-checkbox-group"),Ot=E("el-tag"),Nt=E("el-progress"),$=E("el-input"),M=E("el-form-item"),Ie=E("el-form"),pe=E("el-dialog");return R(),D("div",zs,[c(xt,{gutter:12,class:"stats-row"},{default:h(()=>[c(w,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[16]||(r[16]=p("div",{class:"stat-label app-muted"},"今日完成",-1)),p("div",Hs,T(o.today_completed),1)]),_:1})]),_:1}),c(w,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[17]||(r[17]=p("div",{class:"stat-label app-muted"},"今日失败",-1)),p("div",Ks,T(o.today_failed),1)]),_:1})]),_:1}),c(w,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[18]||(r[18]=p("div",{class:"stat-label app-muted"},"运行中",-1)),p("div",Ws,T(o.current_running),1)]),_:1})]),_:1}),c(w,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[19]||(r[19]=p("div",{class:"stat-label app-muted"},"浏览内容",-1)),p("div",Ys,T(o.today_items),1)]),_:1})]),_:1}),c(w,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[20]||(r[20]=p("div",{class:"stat-label app-muted"},"查看附件",-1)),p("div",Js,T(o.today_attachments),1)]),_:1})]),_:1}),c(w,{xs:12,sm:8,md:4},{default:h(()=>[c(_,{shadow:"never",class:"stat-card","body-style":{padding:"14px"}},{default:h(()=>[r[21]||(r[21]=p("div",{class:"stat-label app-muted"},"账号数",-1)),p("div",Xs,[g(T(ue.value),1),p("span",Qs,"/ "+T(It(e).isVip?"∞":it.value),1)])]),_:1})]),_:1})]),_:1}),at.value?(R(),Z(Le,{key:0,type:"info","show-icon":"",closable:!1,class:"upgrade-banner",title:"升级 VIP,解锁更多功能:无限账号 · 优先排队 · 定时任务 · 批量操作"},{default:h(()=>[p("div",js,[c(k,{type:"primary",plain:"",onClick:r[0]||(r[0]=l=>K.value=!0)},{default:h(()=>[...r[22]||(r[22]=[g("了解VIP特权",-1)])]),_:1})])]),_:1})):me("",!0),c(_,{shadow:"never",class:"panel","body-style":{padding:"14px"}},{default:h(()=>[p("div",Gs,[r[25]||(r[25]=p("div",{class:"panel-title"},"账号管理",-1)),p("div",Zs,[c(k,{loading:s.value,onClick:Ve},{default:h(()=>[...r[23]||(r[23]=[g("刷新",-1)])]),_:1},8,["loading"]),c(k,{type:"primary",onClick:yt},{default:h(()=>[...r[24]||(r[24]=[g("添加账号",-1)])]),_:1})])]),p("div",en,[p("div",tn,[c(Pe,{"model-value":ot.value,onChange:lt},{default:h(()=>[...r[26]||(r[26]=[g("全选",-1)])]),_:1},8,["model-value"]),p("span",sn,"已选 "+T(Ne.value)+" 个",1)]),p("div",nn,[c(Ue,{modelValue:x.value,"onUpdate:modelValue":r[1]||(r[1]=l=>x.value=l),size:"small",style:{width:"120px"}},{default:h(()=>[(R(),D(ee,null,ye(Oe,l=>c(qe,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),c(Ct,{modelValue:A.value,"onUpdate:modelValue":r[2]||(r[2]=l=>A.value=l),"inline-prompt":"","active-text":"截图","inactive-text":"不截图"},null,8,["modelValue"])]),p("div",rn,[c(k,{type:"primary",onClick:vt},{default:h(()=>[...r[27]||(r[27]=[g("批量启动",-1)])]),_:1}),c(k,{onClick:bt},{default:h(()=>[...r[28]||(r[28]=[g("批量停止",-1)])]),_:1}),c(k,{type:"success",plain:"",onClick:kt},{default:h(()=>[...r[29]||(r[29]=[g("全部启动",-1)])]),_:1}),c(k,{type:"danger",plain:"",onClick:Et},{default:h(()=>[...r[30]||(r[30]=[g("全部停止",-1)])]),_:1}),c(k,{type:"danger",text:"",onClick:At},{default:h(()=>[...r[31]||(r[31]=[g("清空",-1)])]),_:1})])]),s.value||i.value?(R(),Z(St,{key:0,rows:5,animated:""})):(R(),D(ee,{key:1},[L.value.length===0?(R(),Z(Bt,{key:0,description:"暂无账号,点击右上角添加"})):(R(),D("div",on,[(R(!0),D(ee,null,ye(L.value,l=>(R(),Z(_,{key:l.id,shadow:"never",class:"account-card","body-style":{padding:"14px"}},{default:h(()=>[p("div",an,[c(Rt,{modelValue:d.value,"onUpdate:modelValue":r[3]||(r[3]=B=>d.value=B),class:"card-check"},{default:h(()=>[c(Pe,{value:l.id},null,8,["value"])]),_:2},1032,["modelValue"]),p("div",cn,[p("div",ln,[p("span",un,T(l.username),1),c(Ot,{size:"small",type:ht(l.status),effect:"light"},{default:h(()=>[g(T(l.status),1)]),_:2},1032,["type"])]),p("div",hn,[g(T(l.remark||"—")+" ",1),l.detail_status?(R(),D("span",dn," · "+T(l.detail_status),1)):me("",!0),l.elapsed_display?(R(),D("span",fn," · "+T(l.elapsed_display),1)):me("",!0)])])]),p("div",pn,[c(Nt,{percentage:ut(l),"stroke-width":10,"show-text":!1},null,8,["percentage"]),p("div",mn,[p("span",null,"内容 "+T(l.progress_items||0)+"/"+T(l.total_items||0),1),p("span",null,"附件 "+T(l.progress_attachments||0)+"/"+T(l.total_attachments||0),1)])]),p("div",yn,[c(Ue,{modelValue:f[l.id],"onUpdate:modelValue":B=>f[l.id]=B,size:"small",style:{width:"130px"}},{default:h(()=>[(R(),D(ee,null,ye(Oe,B=>c(qe,{key:B.value,label:B.label,value:B.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","onUpdate:modelValue"]),p("div",_n,[c(k,{size:"small",type:"primary",disabled:l.is_running,onClick:B=>dt(l)},{default:h(()=>[...r[32]||(r[32]=[g("启动",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",disabled:!l.is_running,onClick:B=>ft(l)},{default:h(()=>[...r[33]||(r[33]=[g("停止",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",disabled:l.is_running,onClick:B=>pt(l)},{default:h(()=>[...r[34]||(r[34]=[g("截图",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",disabled:l.is_running,onClick:B=>gt(l)},{default:h(()=>[...r[35]||(r[35]=[g("编辑",-1)])]),_:1},8,["disabled","onClick"]),c(k,{size:"small",type:"danger",text:"",onClick:B=>mt(l)},{default:h(()=>[...r[36]||(r[36]=[g("删除",-1)])]),_:1},8,["onClick"])])])]),_:2},1024))),128))]))],64))]),_:1}),c(pe,{modelValue:C.value,"onUpdate:modelValue":r[8]||(r[8]=l=>C.value=l),title:"添加账号",width:"min(560px, 92vw)"},{footer:h(()=>[c(k,{onClick:r[7]||(r[7]=l=>C.value=!1)},{default:h(()=>[...r[37]||(r[37]=[g("取消",-1)])]),_:1}),c(k,{type:"primary",onClick:_t},{default:h(()=>[...r[38]||(r[38]=[g("添加",-1)])]),_:1})]),default:h(()=>[c(Ie,{"label-position":"top"},{default:h(()=>[c(M,{label:"账号"},{default:h(()=>[c($,{modelValue:S.username,"onUpdate:modelValue":r[4]||(r[4]=l=>S.username=l),placeholder:"请输入账号",autocomplete:"off"},null,8,["modelValue"])]),_:1}),c(M,{label:"密码"},{default:h(()=>[c($,{modelValue:S.password,"onUpdate:modelValue":r[5]||(r[5]=l=>S.password=l),type:"password","show-password":"",placeholder:"请输入密码",autocomplete:"off"},null,8,["modelValue"])]),_:1}),c(M,{label:"备注(可选,最多200字)"},{default:h(()=>[c($,{modelValue:S.remark,"onUpdate:modelValue":r[6]||(r[6]=l=>S.remark=l),type:"textarea",rows:3,maxlength:"200","show-word-limit":"",placeholder:"例如:部门/用途"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),c(pe,{modelValue:V.value,"onUpdate:modelValue":r[13]||(r[13]=l=>V.value=l),title:"编辑账号",width:"min(560px, 92vw)"},{footer:h(()=>[c(k,{onClick:r[12]||(r[12]=l=>V.value=!1)},{default:h(()=>[...r[39]||(r[39]=[g("取消",-1)])]),_:1}),c(k,{type:"primary",onClick:wt},{default:h(()=>[...r[40]||(r[40]=[g("保存",-1)])]),_:1})]),default:h(()=>[c(Ie,{"label-position":"top"},{default:h(()=>[c(M,{label:"账号"},{default:h(()=>[c($,{modelValue:b.username,"onUpdate:modelValue":r[9]||(r[9]=l=>b.username=l),disabled:""},null,8,["modelValue"])]),_:1}),c(M,{label:"新密码(必填)"},{default:h(()=>[c($,{modelValue:b.password,"onUpdate:modelValue":r[10]||(r[10]=l=>b.password=l),type:"password","show-password":"",placeholder:"请输入新密码",autocomplete:"off"},null,8,["modelValue"])]),_:1}),c(M,{label:"备注(可选,最多200字)"},{default:h(()=>[c($,{modelValue:b.remark,"onUpdate:modelValue":r[11]||(r[11]=l=>b.remark=l),type:"textarea",rows:3,maxlength:"200","show-word-limit":"",placeholder:"例如:部门/用途"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),c(pe,{modelValue:K.value,"onUpdate:modelValue":r[15]||(r[15]=l=>K.value=l),title:"VIP 特权",width:"min(560px, 92vw)"},{footer:h(()=>[c(k,{type:"primary",onClick:r[14]||(r[14]=l=>K.value=!1)},{default:h(()=>[...r[41]||(r[41]=[g("我知道了",-1)])]),_:1})]),default:h(()=>[c(Le,{type:"info",closable:!1,title:"升级 VIP 后可解锁:无限账号、优先排队、定时任务、批量操作。","show-icon":""}),r[42]||(r[42]=p("div",{class:"vip-body"},[p("div",{class:"vip-tip app-muted"},"升级方式:请通过“反馈”联系管理员开通(与后台一致)。")],-1))]),_:1},8,["modelValue"])])}}},bn=Vt(gn,[["__scopeId","data-v-0cf21db0"]]);export{bn as default}; diff --git a/static/app/assets/LoginPage-DYohZsxn.js b/static/app/assets/LoginPage-BNb9NBzk.js similarity index 98% rename from static/app/assets/LoginPage-DYohZsxn.js rename to static/app/assets/LoginPage-BNb9NBzk.js index 06a3f8c..c3dc288 100644 --- a/static/app/assets/LoginPage-DYohZsxn.js +++ b/static/app/assets/LoginPage-BNb9NBzk.js @@ -1 +1 @@ -import{_ as ae,r as L,a as i,c as le,o as te,b as V,d as a,w as l,e as y,u as se,f as w,g as v,h as z,i as C,j as A,k as m,F as G,t as oe,E as u}from"./index-DvbGwVAp.js";import{f as ne,l as re,g as q,a as ue,r as ie,b as de}from"./auth-yhlOdREj.js";import{v as ce}from"./password-7ryi82gE.js";const me={class:"auth-wrap"},pe={class:"captcha-row"},fe=["src"],ve={class:"links"},we={class:"foot"},ge={class:"captcha-row"},ye=["src"],_e={class:"captcha-row"},he=["src"],Ve={__name:"LoginPage",setup(be){const H=se(),d=L({username:"",password:"",captcha:""}),b=i(!1),R=i(""),S=i(""),P=i(!1),g=i(!1),T=i(!1),_=i(!1),k=i(!1),p=L({email:"",captcha:""}),x=i(""),I=i(""),N=i(!1),c=L({username:"",email:"",new_password:""}),K=i(!1),f=L({email:"",captcha:""}),U=i(""),M=i(""),O=i(!1),J=le(()=>!!T.value);async function E(){try{const s=await q();S.value=s?.session_id||"",R.value=s?.captcha_image||"",d.captcha=""}catch{S.value="",R.value=""}}async function B(){try{const s=await q();I.value=s?.session_id||"",x.value=s?.captcha_image||"",p.captcha=""}catch{I.value="",x.value=""}}async function F(){try{const s=await q();M.value=s?.session_id||"",U.value=s?.captcha_image||"",f.captcha=""}catch{M.value="",U.value=""}}async function $(){if(!d.username.trim()||!d.password.trim()){u.error("用户名和密码不能为空");return}if(b.value&&!d.captcha.trim()){u.error("请输入验证码");return}P.value=!0;try{await re({username:d.username.trim(),password:d.password,captcha_session:S.value,captcha:d.captcha.trim(),need_captcha:b.value}),u.success("登录成功,正在跳转..."),setTimeout(()=>{window.location.href="/app"},300)}catch(s){const e=s?.response?.status,o=s?.response?.data,n=o?.error||o?.message||"登录失败";u.error(n),o?.need_captcha?(b.value=!0,await E()):b.value&&e===400&&await E()}finally{P.value=!1}}async function Q(){_.value=!0,g.value?(p.email="",p.captcha="",await B()):(c.username="",c.email="",c.new_password="")}async function W(){if(g.value){const n=p.email.trim();if(!n){u.error("请输入邮箱");return}if(!p.captcha.trim()){u.error("请输入验证码");return}N.value=!0;try{const r=await ue({email:n,captcha_session:I.value,captcha:p.captcha.trim()});u.success(r?.message||"已发送重置邮件"),setTimeout(()=>{_.value=!1},800)}catch(r){const h=r?.response?.data;u.error(h?.error||"发送失败"),await B()}finally{N.value=!1}return}const s=c.username.trim(),e=c.new_password;if(!s||!e){u.error("用户名和新密码不能为空");return}const o=ce(e);if(!o.ok){u.error(o.message);return}K.value=!0;try{await ie({username:s,email:c.email.trim(),new_password:e}),u.success("申请已提交,请等待审核"),setTimeout(()=>{_.value=!1},800)}catch(n){const r=n?.response?.data;u.error(r?.error||"提交失败")}finally{K.value=!1}}async function X(){k.value=!0,f.email="",f.captcha="",await F()}async function Y(){const s=f.email.trim();if(!s){u.error("请输入邮箱");return}if(!f.captcha.trim()){u.error("请输入验证码");return}O.value=!0;try{const e=await de({email:s,captcha_session:M.value,captcha:f.captcha.trim()});u.success(e?.message||"验证邮件已发送,请查收"),setTimeout(()=>{k.value=!1},800)}catch(e){const o=e?.response?.data;u.error(o?.error||"发送失败"),await F()}finally{O.value=!1}}function Z(){H.push("/register")}return te(async()=>{try{const s=await ne();g.value=!!s?.email_enabled,T.value=!!s?.register_verify_enabled}catch{g.value=!1,T.value=!1}}),(s,e)=>{const o=y("el-input"),n=y("el-form-item"),r=y("el-button"),h=y("el-form"),ee=y("el-card"),j=y("el-alert"),D=y("el-dialog");return w(),V("div",me,[a(ee,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:l(()=>[e[20]||(e[20]=v("div",{class:"brand"},[v("div",{class:"brand-title"},"知识管理平台"),v("div",{class:"brand-sub app-muted"},"用户登录")],-1)),a(h,{"label-position":"top"},{default:l(()=>[a(n,{label:"用户名"},{default:l(()=>[a(o,{modelValue:d.username,"onUpdate:modelValue":e[0]||(e[0]=t=>d.username=t),placeholder:"请输入用户名",autocomplete:"username"},null,8,["modelValue"])]),_:1}),a(n,{label:"密码"},{default:l(()=>[a(o,{modelValue:d.password,"onUpdate:modelValue":e[1]||(e[1]=t=>d.password=t),type:"password","show-password":"",placeholder:"请输入密码",autocomplete:"current-password",onKeyup:A($,["enter"])},null,8,["modelValue"])]),_:1}),b.value?(w(),z(n,{key:0,label:"验证码"},{default:l(()=>[v("div",pe,[a(o,{modelValue:d.captcha,"onUpdate:modelValue":e[2]||(e[2]=t=>d.captcha=t),placeholder:"请输入验证码",onKeyup:A($,["enter"])},null,8,["modelValue"]),R.value?(w(),V("img",{key:0,class:"captcha-img",src:R.value,alt:"验证码",title:"点击刷新",onClick:E},null,8,fe)):C("",!0),a(r,{onClick:E},{default:l(()=>[...e[14]||(e[14]=[m("刷新",-1)])]),_:1})])]),_:1})):C("",!0)]),_:1}),v("div",ve,[a(r,{text:"",type:"primary",onClick:Q},{default:l(()=>[...e[15]||(e[15]=[m("忘记密码?",-1)])]),_:1}),J.value?(w(),z(r,{key:0,text:"",type:"primary",onClick:X},{default:l(()=>[...e[16]||(e[16]=[m("重发验证邮件",-1)])]),_:1})):C("",!0)]),a(r,{type:"primary",class:"submit-btn",loading:P.value,onClick:$},{default:l(()=>[...e[17]||(e[17]=[m("登录",-1)])]),_:1},8,["loading"]),v("div",we,[e[19]||(e[19]=v("span",{class:"app-muted"},"还没有账号?",-1)),a(r,{link:"",type:"primary",onClick:Z},{default:l(()=>[...e[18]||(e[18]=[m("立即注册",-1)])]),_:1})])]),_:1}),a(D,{modelValue:_.value,"onUpdate:modelValue":e[9]||(e[9]=t=>_.value=t),title:"找回密码",width:"min(560px, 92vw)"},{footer:l(()=>[a(r,{onClick:e[8]||(e[8]=t=>_.value=!1)},{default:l(()=>[...e[22]||(e[22]=[m("取消",-1)])]),_:1}),a(r,{type:"primary",loading:g.value?N.value:K.value,onClick:W},{default:l(()=>[m(oe(g.value?"发送重置邮件":"提交申请"),1)]),_:1},8,["loading"])]),default:l(()=>[g.value?(w(),V(G,{key:0},[a(j,{type:"info",closable:!1,title:"输入注册邮箱,我们将发送重置链接。","show-icon":""}),a(h,{"label-position":"top",class:"dialog-form"},{default:l(()=>[a(n,{label:"邮箱"},{default:l(()=>[a(o,{modelValue:p.email,"onUpdate:modelValue":e[3]||(e[3]=t=>p.email=t),placeholder:"name@example.com"},null,8,["modelValue"])]),_:1}),a(n,{label:"验证码"},{default:l(()=>[v("div",ge,[a(o,{modelValue:p.captcha,"onUpdate:modelValue":e[4]||(e[4]=t=>p.captcha=t),placeholder:"请输入验证码"},null,8,["modelValue"]),x.value?(w(),V("img",{key:0,class:"captcha-img",src:x.value,alt:"验证码",title:"点击刷新",onClick:B},null,8,ye)):C("",!0),a(r,{onClick:B},{default:l(()=>[...e[21]||(e[21]=[m("刷新",-1)])]),_:1})])]),_:1})]),_:1})],64)):(w(),V(G,{key:1},[a(j,{type:"warning",closable:!1,title:"邮件功能未启用:提交申请后等待管理员审核。","show-icon":""}),a(h,{"label-position":"top",class:"dialog-form"},{default:l(()=>[a(n,{label:"用户名"},{default:l(()=>[a(o,{modelValue:c.username,"onUpdate:modelValue":e[5]||(e[5]=t=>c.username=t),placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1}),a(n,{label:"邮箱(可选)"},{default:l(()=>[a(o,{modelValue:c.email,"onUpdate:modelValue":e[6]||(e[6]=t=>c.email=t),placeholder:"可选填写邮箱"},null,8,["modelValue"])]),_:1}),a(n,{label:"新密码(至少8位且包含字母和数字)"},{default:l(()=>[a(o,{modelValue:c.new_password,"onUpdate:modelValue":e[7]||(e[7]=t=>c.new_password=t),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"])]),_:1})]),_:1})],64))]),_:1},8,["modelValue"]),a(D,{modelValue:k.value,"onUpdate:modelValue":e[13]||(e[13]=t=>k.value=t),title:"重发验证邮件",width:"min(520px, 92vw)"},{footer:l(()=>[a(r,{onClick:e[12]||(e[12]=t=>k.value=!1)},{default:l(()=>[...e[24]||(e[24]=[m("取消",-1)])]),_:1}),a(r,{type:"primary",loading:O.value,onClick:Y},{default:l(()=>[...e[25]||(e[25]=[m("发送",-1)])]),_:1},8,["loading"])]),default:l(()=>[a(j,{type:"info",closable:!1,title:"用于注册邮箱验证:请输入邮箱并完成验证码。","show-icon":""}),a(h,{"label-position":"top",class:"dialog-form"},{default:l(()=>[a(n,{label:"邮箱"},{default:l(()=>[a(o,{modelValue:f.email,"onUpdate:modelValue":e[10]||(e[10]=t=>f.email=t),placeholder:"name@example.com"},null,8,["modelValue"])]),_:1}),a(n,{label:"验证码"},{default:l(()=>[v("div",_e,[a(o,{modelValue:f.captcha,"onUpdate:modelValue":e[11]||(e[11]=t=>f.captcha=t),placeholder:"请输入验证码"},null,8,["modelValue"]),U.value?(w(),V("img",{key:0,class:"captcha-img",src:U.value,alt:"验证码",title:"点击刷新",onClick:F},null,8,he)):C("",!0),a(r,{onClick:F},{default:l(()=>[...e[23]||(e[23]=[m("刷新",-1)])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},xe=ae(Ve,[["__scopeId","data-v-50df591d"]]);export{xe as default}; +import{_ as ae,r as L,a as i,c as le,o as te,b as V,d as a,w as l,e as y,u as se,f as w,g as v,h as z,i as C,j as A,k as m,F as G,t as oe,E as u}from"./index-BstQMnWL.js";import{f as ne,l as re,g as q,a as ue,r as ie,b as de}from"./auth-CgGRYkq1.js";import{v as ce}from"./password-7ryi82gE.js";const me={class:"auth-wrap"},pe={class:"captcha-row"},fe=["src"],ve={class:"links"},we={class:"foot"},ge={class:"captcha-row"},ye=["src"],_e={class:"captcha-row"},he=["src"],Ve={__name:"LoginPage",setup(be){const H=se(),d=L({username:"",password:"",captcha:""}),b=i(!1),R=i(""),S=i(""),P=i(!1),g=i(!1),T=i(!1),_=i(!1),k=i(!1),p=L({email:"",captcha:""}),x=i(""),I=i(""),N=i(!1),c=L({username:"",email:"",new_password:""}),K=i(!1),f=L({email:"",captcha:""}),U=i(""),M=i(""),O=i(!1),J=le(()=>!!T.value);async function E(){try{const s=await q();S.value=s?.session_id||"",R.value=s?.captcha_image||"",d.captcha=""}catch{S.value="",R.value=""}}async function B(){try{const s=await q();I.value=s?.session_id||"",x.value=s?.captcha_image||"",p.captcha=""}catch{I.value="",x.value=""}}async function F(){try{const s=await q();M.value=s?.session_id||"",U.value=s?.captcha_image||"",f.captcha=""}catch{M.value="",U.value=""}}async function $(){if(!d.username.trim()||!d.password.trim()){u.error("用户名和密码不能为空");return}if(b.value&&!d.captcha.trim()){u.error("请输入验证码");return}P.value=!0;try{await re({username:d.username.trim(),password:d.password,captcha_session:S.value,captcha:d.captcha.trim(),need_captcha:b.value}),u.success("登录成功,正在跳转..."),setTimeout(()=>{window.location.href="/app"},300)}catch(s){const e=s?.response?.status,o=s?.response?.data,n=o?.error||o?.message||"登录失败";u.error(n),o?.need_captcha?(b.value=!0,await E()):b.value&&e===400&&await E()}finally{P.value=!1}}async function Q(){_.value=!0,g.value?(p.email="",p.captcha="",await B()):(c.username="",c.email="",c.new_password="")}async function W(){if(g.value){const n=p.email.trim();if(!n){u.error("请输入邮箱");return}if(!p.captcha.trim()){u.error("请输入验证码");return}N.value=!0;try{const r=await ue({email:n,captcha_session:I.value,captcha:p.captcha.trim()});u.success(r?.message||"已发送重置邮件"),setTimeout(()=>{_.value=!1},800)}catch(r){const h=r?.response?.data;u.error(h?.error||"发送失败"),await B()}finally{N.value=!1}return}const s=c.username.trim(),e=c.new_password;if(!s||!e){u.error("用户名和新密码不能为空");return}const o=ce(e);if(!o.ok){u.error(o.message);return}K.value=!0;try{await ie({username:s,email:c.email.trim(),new_password:e}),u.success("申请已提交,请等待审核"),setTimeout(()=>{_.value=!1},800)}catch(n){const r=n?.response?.data;u.error(r?.error||"提交失败")}finally{K.value=!1}}async function X(){k.value=!0,f.email="",f.captcha="",await F()}async function Y(){const s=f.email.trim();if(!s){u.error("请输入邮箱");return}if(!f.captcha.trim()){u.error("请输入验证码");return}O.value=!0;try{const e=await de({email:s,captcha_session:M.value,captcha:f.captcha.trim()});u.success(e?.message||"验证邮件已发送,请查收"),setTimeout(()=>{k.value=!1},800)}catch(e){const o=e?.response?.data;u.error(o?.error||"发送失败"),await F()}finally{O.value=!1}}function Z(){H.push("/register")}return te(async()=>{try{const s=await ne();g.value=!!s?.email_enabled,T.value=!!s?.register_verify_enabled}catch{g.value=!1,T.value=!1}}),(s,e)=>{const o=y("el-input"),n=y("el-form-item"),r=y("el-button"),h=y("el-form"),ee=y("el-card"),j=y("el-alert"),D=y("el-dialog");return w(),V("div",me,[a(ee,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:l(()=>[e[20]||(e[20]=v("div",{class:"brand"},[v("div",{class:"brand-title"},"知识管理平台"),v("div",{class:"brand-sub app-muted"},"用户登录")],-1)),a(h,{"label-position":"top"},{default:l(()=>[a(n,{label:"用户名"},{default:l(()=>[a(o,{modelValue:d.username,"onUpdate:modelValue":e[0]||(e[0]=t=>d.username=t),placeholder:"请输入用户名",autocomplete:"username"},null,8,["modelValue"])]),_:1}),a(n,{label:"密码"},{default:l(()=>[a(o,{modelValue:d.password,"onUpdate:modelValue":e[1]||(e[1]=t=>d.password=t),type:"password","show-password":"",placeholder:"请输入密码",autocomplete:"current-password",onKeyup:A($,["enter"])},null,8,["modelValue"])]),_:1}),b.value?(w(),z(n,{key:0,label:"验证码"},{default:l(()=>[v("div",pe,[a(o,{modelValue:d.captcha,"onUpdate:modelValue":e[2]||(e[2]=t=>d.captcha=t),placeholder:"请输入验证码",onKeyup:A($,["enter"])},null,8,["modelValue"]),R.value?(w(),V("img",{key:0,class:"captcha-img",src:R.value,alt:"验证码",title:"点击刷新",onClick:E},null,8,fe)):C("",!0),a(r,{onClick:E},{default:l(()=>[...e[14]||(e[14]=[m("刷新",-1)])]),_:1})])]),_:1})):C("",!0)]),_:1}),v("div",ve,[a(r,{text:"",type:"primary",onClick:Q},{default:l(()=>[...e[15]||(e[15]=[m("忘记密码?",-1)])]),_:1}),J.value?(w(),z(r,{key:0,text:"",type:"primary",onClick:X},{default:l(()=>[...e[16]||(e[16]=[m("重发验证邮件",-1)])]),_:1})):C("",!0)]),a(r,{type:"primary",class:"submit-btn",loading:P.value,onClick:$},{default:l(()=>[...e[17]||(e[17]=[m("登录",-1)])]),_:1},8,["loading"]),v("div",we,[e[19]||(e[19]=v("span",{class:"app-muted"},"还没有账号?",-1)),a(r,{link:"",type:"primary",onClick:Z},{default:l(()=>[...e[18]||(e[18]=[m("立即注册",-1)])]),_:1})])]),_:1}),a(D,{modelValue:_.value,"onUpdate:modelValue":e[9]||(e[9]=t=>_.value=t),title:"找回密码",width:"min(560px, 92vw)"},{footer:l(()=>[a(r,{onClick:e[8]||(e[8]=t=>_.value=!1)},{default:l(()=>[...e[22]||(e[22]=[m("取消",-1)])]),_:1}),a(r,{type:"primary",loading:g.value?N.value:K.value,onClick:W},{default:l(()=>[m(oe(g.value?"发送重置邮件":"提交申请"),1)]),_:1},8,["loading"])]),default:l(()=>[g.value?(w(),V(G,{key:0},[a(j,{type:"info",closable:!1,title:"输入注册邮箱,我们将发送重置链接。","show-icon":""}),a(h,{"label-position":"top",class:"dialog-form"},{default:l(()=>[a(n,{label:"邮箱"},{default:l(()=>[a(o,{modelValue:p.email,"onUpdate:modelValue":e[3]||(e[3]=t=>p.email=t),placeholder:"name@example.com"},null,8,["modelValue"])]),_:1}),a(n,{label:"验证码"},{default:l(()=>[v("div",ge,[a(o,{modelValue:p.captcha,"onUpdate:modelValue":e[4]||(e[4]=t=>p.captcha=t),placeholder:"请输入验证码"},null,8,["modelValue"]),x.value?(w(),V("img",{key:0,class:"captcha-img",src:x.value,alt:"验证码",title:"点击刷新",onClick:B},null,8,ye)):C("",!0),a(r,{onClick:B},{default:l(()=>[...e[21]||(e[21]=[m("刷新",-1)])]),_:1})])]),_:1})]),_:1})],64)):(w(),V(G,{key:1},[a(j,{type:"warning",closable:!1,title:"邮件功能未启用:提交申请后等待管理员审核。","show-icon":""}),a(h,{"label-position":"top",class:"dialog-form"},{default:l(()=>[a(n,{label:"用户名"},{default:l(()=>[a(o,{modelValue:c.username,"onUpdate:modelValue":e[5]||(e[5]=t=>c.username=t),placeholder:"请输入用户名"},null,8,["modelValue"])]),_:1}),a(n,{label:"邮箱(可选)"},{default:l(()=>[a(o,{modelValue:c.email,"onUpdate:modelValue":e[6]||(e[6]=t=>c.email=t),placeholder:"可选填写邮箱"},null,8,["modelValue"])]),_:1}),a(n,{label:"新密码(至少8位且包含字母和数字)"},{default:l(()=>[a(o,{modelValue:c.new_password,"onUpdate:modelValue":e[7]||(e[7]=t=>c.new_password=t),type:"password","show-password":"",placeholder:"请输入新密码"},null,8,["modelValue"])]),_:1})]),_:1})],64))]),_:1},8,["modelValue"]),a(D,{modelValue:k.value,"onUpdate:modelValue":e[13]||(e[13]=t=>k.value=t),title:"重发验证邮件",width:"min(520px, 92vw)"},{footer:l(()=>[a(r,{onClick:e[12]||(e[12]=t=>k.value=!1)},{default:l(()=>[...e[24]||(e[24]=[m("取消",-1)])]),_:1}),a(r,{type:"primary",loading:O.value,onClick:Y},{default:l(()=>[...e[25]||(e[25]=[m("发送",-1)])]),_:1},8,["loading"])]),default:l(()=>[a(j,{type:"info",closable:!1,title:"用于注册邮箱验证:请输入邮箱并完成验证码。","show-icon":""}),a(h,{"label-position":"top",class:"dialog-form"},{default:l(()=>[a(n,{label:"邮箱"},{default:l(()=>[a(o,{modelValue:f.email,"onUpdate:modelValue":e[10]||(e[10]=t=>f.email=t),placeholder:"name@example.com"},null,8,["modelValue"])]),_:1}),a(n,{label:"验证码"},{default:l(()=>[v("div",_e,[a(o,{modelValue:f.captcha,"onUpdate:modelValue":e[11]||(e[11]=t=>f.captcha=t),placeholder:"请输入验证码"},null,8,["modelValue"]),U.value?(w(),V("img",{key:0,class:"captcha-img",src:U.value,alt:"验证码",title:"点击刷新",onClick:F},null,8,he)):C("",!0),a(r,{onClick:F},{default:l(()=>[...e[23]||(e[23]=[m("刷新",-1)])]),_:1})])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}}},xe=ae(Ve,[["__scopeId","data-v-50df591d"]]);export{xe as default}; diff --git a/static/app/assets/RegisterPage-CGBzvBqd.js b/static/app/assets/RegisterPage-CFiuiL-s.js similarity index 97% rename from static/app/assets/RegisterPage-CGBzvBqd.js rename to static/app/assets/RegisterPage-CFiuiL-s.js index 3d42148..b17e5da 100644 --- a/static/app/assets/RegisterPage-CGBzvBqd.js +++ b/static/app/assets/RegisterPage-CFiuiL-s.js @@ -1 +1 @@ -import{_ as M,r as j,a as p,c as B,o as A,b as S,d as t,w as o,e as m,u as H,f as g,g as n,h as U,i as x,j as N,t as q,k as E,E as d}from"./index-DvbGwVAp.js";import{g as z,f as F,c as G}from"./auth-yhlOdREj.js";const J={class:"auth-wrap"},O={class:"hint app-muted"},Q={class:"captcha-row"},W=["src"],X={class:"actions"},Y={__name:"RegisterPage",setup(Z){const T=H(),a=j({username:"",password:"",confirm_password:"",email:"",captcha:""}),v=p(!1),f=p(""),b=p(""),h=p(!1),l=p(""),_=p(""),V=p(""),K=B(()=>v.value?"邮箱 *":"邮箱(可选)"),P=B(()=>v.value?"必填,用于账号验证":"选填,用于接收审核通知");async function w(){try{const u=await z();b.value=u?.session_id||"",f.value=u?.captcha_image||"",a.captcha=""}catch{b.value="",f.value=""}}async function R(){try{const u=await F();v.value=!!u?.register_verify_enabled}catch{v.value=!1}}function D(){l.value="",_.value="",V.value=""}async function k(){D();const u=a.username.trim(),e=a.password,y=a.confirm_password,s=a.email.trim(),i=a.captcha.trim();if(u.length<3){l.value="用户名至少3个字符",d.error(l.value);return}if(e.length<6){l.value="密码至少6个字符",d.error(l.value);return}if(e!==y){l.value="两次输入的密码不一致",d.error(l.value);return}if(v.value&&!s){l.value="请填写邮箱地址用于账号验证",d.error(l.value);return}if(s&&!s.includes("@")){l.value="邮箱格式不正确",d.error(l.value);return}if(!i){l.value="请输入验证码",d.error(l.value);return}h.value=!0;try{const c=await G({username:u,password:e,email:s,captcha_session:b.value,captcha:i});_.value=c?.message||"注册成功",V.value=c?.need_verify?"请检查您的邮箱(包括垃圾邮件文件夹)":"",d.success("注册成功"),a.username="",a.password="",a.confirm_password="",a.email="",a.captcha="",setTimeout(()=>{window.location.href="/login"},3e3)}catch(c){const C=c?.response?.data;l.value=C?.error||"注册失败",d.error(l.value),await w()}finally{h.value=!1}}function I(){T.push("/login")}return A(async()=>{await w(),await R()}),(u,e)=>{const y=m("el-alert"),s=m("el-input"),i=m("el-form-item"),c=m("el-button"),C=m("el-form"),L=m("el-card");return g(),S("div",J,[t(L,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:o(()=>[e[11]||(e[11]=n("div",{class:"brand"},[n("div",{class:"brand-title"},"知识管理平台"),n("div",{class:"brand-sub app-muted"},"用户注册")],-1)),l.value?(g(),U(y,{key:0,type:"error",closable:!1,title:l.value,"show-icon":"",class:"alert"},null,8,["title"])):x("",!0),_.value?(g(),U(y,{key:1,type:"success",closable:!1,title:_.value,description:V.value,"show-icon":"",class:"alert"},null,8,["title","description"])):x("",!0),t(C,{"label-position":"top"},{default:o(()=>[t(i,{label:"用户名 *"},{default:o(()=>[t(s,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=r=>a.username=r),placeholder:"至少3个字符",autocomplete:"username"},null,8,["modelValue"]),e[5]||(e[5]=n("div",{class:"hint app-muted"},"至少3个字符",-1))]),_:1}),t(i,{label:"密码 *"},{default:o(()=>[t(s,{modelValue:a.password,"onUpdate:modelValue":e[1]||(e[1]=r=>a.password=r),type:"password","show-password":"",placeholder:"至少6个字符",autocomplete:"new-password"},null,8,["modelValue"]),e[6]||(e[6]=n("div",{class:"hint app-muted"},"至少6个字符",-1))]),_:1}),t(i,{label:"确认密码 *"},{default:o(()=>[t(s,{modelValue:a.confirm_password,"onUpdate:modelValue":e[2]||(e[2]=r=>a.confirm_password=r),type:"password","show-password":"",placeholder:"请再次输入密码",autocomplete:"new-password",onKeyup:N(k,["enter"])},null,8,["modelValue"])]),_:1}),t(i,{label:K.value},{default:o(()=>[t(s,{modelValue:a.email,"onUpdate:modelValue":e[3]||(e[3]=r=>a.email=r),placeholder:"name@example.com",autocomplete:"email"},null,8,["modelValue"]),n("div",O,q(P.value),1)]),_:1},8,["label"]),t(i,{label:"验证码 *"},{default:o(()=>[n("div",Q,[t(s,{modelValue:a.captcha,"onUpdate:modelValue":e[4]||(e[4]=r=>a.captcha=r),placeholder:"请输入验证码",onKeyup:N(k,["enter"])},null,8,["modelValue"]),f.value?(g(),S("img",{key:0,class:"captcha-img",src:f.value,alt:"验证码",title:"点击刷新",onClick:w},null,8,W)):x("",!0),t(c,{onClick:w},{default:o(()=>[...e[7]||(e[7]=[E("刷新",-1)])]),_:1})])]),_:1})]),_:1}),t(c,{type:"primary",class:"submit-btn",loading:h.value,onClick:k},{default:o(()=>[...e[8]||(e[8]=[E("注册",-1)])]),_:1},8,["loading"]),n("div",X,[e[10]||(e[10]=n("span",{class:"app-muted"},"已有账号?",-1)),t(c,{link:"",type:"primary",onClick:I},{default:o(()=>[...e[9]||(e[9]=[E("立即登录",-1)])]),_:1})])]),_:1})])}}},ae=M(Y,[["__scopeId","data-v-32684b4d"]]);export{ae as default}; +import{_ as M,r as j,a as p,c as B,o as A,b as S,d as t,w as o,e as m,u as H,f as g,g as n,h as U,i as x,j as N,t as q,k as E,E as d}from"./index-BstQMnWL.js";import{g as z,f as F,c as G}from"./auth-CgGRYkq1.js";const J={class:"auth-wrap"},O={class:"hint app-muted"},Q={class:"captcha-row"},W=["src"],X={class:"actions"},Y={__name:"RegisterPage",setup(Z){const T=H(),a=j({username:"",password:"",confirm_password:"",email:"",captcha:""}),v=p(!1),f=p(""),b=p(""),h=p(!1),l=p(""),_=p(""),V=p(""),K=B(()=>v.value?"邮箱 *":"邮箱(可选)"),P=B(()=>v.value?"必填,用于账号验证":"选填,用于接收审核通知");async function w(){try{const u=await z();b.value=u?.session_id||"",f.value=u?.captcha_image||"",a.captcha=""}catch{b.value="",f.value=""}}async function R(){try{const u=await F();v.value=!!u?.register_verify_enabled}catch{v.value=!1}}function D(){l.value="",_.value="",V.value=""}async function k(){D();const u=a.username.trim(),e=a.password,y=a.confirm_password,s=a.email.trim(),i=a.captcha.trim();if(u.length<3){l.value="用户名至少3个字符",d.error(l.value);return}if(e.length<6){l.value="密码至少6个字符",d.error(l.value);return}if(e!==y){l.value="两次输入的密码不一致",d.error(l.value);return}if(v.value&&!s){l.value="请填写邮箱地址用于账号验证",d.error(l.value);return}if(s&&!s.includes("@")){l.value="邮箱格式不正确",d.error(l.value);return}if(!i){l.value="请输入验证码",d.error(l.value);return}h.value=!0;try{const c=await G({username:u,password:e,email:s,captcha_session:b.value,captcha:i});_.value=c?.message||"注册成功",V.value=c?.need_verify?"请检查您的邮箱(包括垃圾邮件文件夹)":"",d.success("注册成功"),a.username="",a.password="",a.confirm_password="",a.email="",a.captcha="",setTimeout(()=>{window.location.href="/login"},3e3)}catch(c){const C=c?.response?.data;l.value=C?.error||"注册失败",d.error(l.value),await w()}finally{h.value=!1}}function I(){T.push("/login")}return A(async()=>{await w(),await R()}),(u,e)=>{const y=m("el-alert"),s=m("el-input"),i=m("el-form-item"),c=m("el-button"),C=m("el-form"),L=m("el-card");return g(),S("div",J,[t(L,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:o(()=>[e[11]||(e[11]=n("div",{class:"brand"},[n("div",{class:"brand-title"},"知识管理平台"),n("div",{class:"brand-sub app-muted"},"用户注册")],-1)),l.value?(g(),U(y,{key:0,type:"error",closable:!1,title:l.value,"show-icon":"",class:"alert"},null,8,["title"])):x("",!0),_.value?(g(),U(y,{key:1,type:"success",closable:!1,title:_.value,description:V.value,"show-icon":"",class:"alert"},null,8,["title","description"])):x("",!0),t(C,{"label-position":"top"},{default:o(()=>[t(i,{label:"用户名 *"},{default:o(()=>[t(s,{modelValue:a.username,"onUpdate:modelValue":e[0]||(e[0]=r=>a.username=r),placeholder:"至少3个字符",autocomplete:"username"},null,8,["modelValue"]),e[5]||(e[5]=n("div",{class:"hint app-muted"},"至少3个字符",-1))]),_:1}),t(i,{label:"密码 *"},{default:o(()=>[t(s,{modelValue:a.password,"onUpdate:modelValue":e[1]||(e[1]=r=>a.password=r),type:"password","show-password":"",placeholder:"至少6个字符",autocomplete:"new-password"},null,8,["modelValue"]),e[6]||(e[6]=n("div",{class:"hint app-muted"},"至少6个字符",-1))]),_:1}),t(i,{label:"确认密码 *"},{default:o(()=>[t(s,{modelValue:a.confirm_password,"onUpdate:modelValue":e[2]||(e[2]=r=>a.confirm_password=r),type:"password","show-password":"",placeholder:"请再次输入密码",autocomplete:"new-password",onKeyup:N(k,["enter"])},null,8,["modelValue"])]),_:1}),t(i,{label:K.value},{default:o(()=>[t(s,{modelValue:a.email,"onUpdate:modelValue":e[3]||(e[3]=r=>a.email=r),placeholder:"name@example.com",autocomplete:"email"},null,8,["modelValue"]),n("div",O,q(P.value),1)]),_:1},8,["label"]),t(i,{label:"验证码 *"},{default:o(()=>[n("div",Q,[t(s,{modelValue:a.captcha,"onUpdate:modelValue":e[4]||(e[4]=r=>a.captcha=r),placeholder:"请输入验证码",onKeyup:N(k,["enter"])},null,8,["modelValue"]),f.value?(g(),S("img",{key:0,class:"captcha-img",src:f.value,alt:"验证码",title:"点击刷新",onClick:w},null,8,W)):x("",!0),t(c,{onClick:w},{default:o(()=>[...e[7]||(e[7]=[E("刷新",-1)])]),_:1})])]),_:1})]),_:1}),t(c,{type:"primary",class:"submit-btn",loading:h.value,onClick:k},{default:o(()=>[...e[8]||(e[8]=[E("注册",-1)])]),_:1},8,["loading"]),n("div",X,[e[10]||(e[10]=n("span",{class:"app-muted"},"已有账号?",-1)),t(c,{link:"",type:"primary",onClick:I},{default:o(()=>[...e[9]||(e[9]=[E("立即登录",-1)])]),_:1})])]),_:1})])}}},ae=M(Y,[["__scopeId","data-v-32684b4d"]]);export{ae as default}; diff --git a/static/app/assets/ResetPasswordPage-ClLk6uyu.js b/static/app/assets/ResetPasswordPage-DeWXyaHc.js similarity index 96% rename from static/app/assets/ResetPasswordPage-ClLk6uyu.js rename to static/app/assets/ResetPasswordPage-DeWXyaHc.js index d151eff..7bca19e 100644 --- a/static/app/assets/ResetPasswordPage-ClLk6uyu.js +++ b/static/app/assets/ResetPasswordPage-DeWXyaHc.js @@ -1 +1 @@ -import{_ as L,a as n,l as M,r as U,c as j,o as F,m as K,b as v,d as s,w as a,e as l,u as D,f as m,g as w,F as T,k,h as q,i as x,j as z,t as G,E as y}from"./index-DvbGwVAp.js";import{d as H}from"./auth-yhlOdREj.js";import{v as J}from"./password-7ryi82gE.js";const O={class:"auth-wrap"},Q={class:"actions"},W={class:"actions"},X={key:0,class:"app-muted"},Y={__name:"ResetPasswordPage",setup(Z){const B=M(),A=D(),r=n(String(B.params.token||"")),i=n(!0),b=n(""),t=U({newPassword:"",confirmPassword:""}),g=n(!1),f=n(""),d=n(0);let u=null;function C(){if(typeof window>"u")return null;const o=window.__APP_INITIAL_STATE__;return!o||typeof o!="object"?null:(window.__APP_INITIAL_STATE__=null,o)}const I=j(()=>!!(i.value&&r.value&&!f.value));function S(){A.push("/login")}function N(){d.value=3,u=window.setInterval(()=>{d.value-=1,d.value<=0&&(window.clearInterval(u),u=null,window.location.href="/login")},1e3)}async function V(){if(!I.value)return;const o=t.newPassword,e=t.confirmPassword,c=J(o);if(!c.ok){y.error(c.message);return}if(o!==e){y.error("两次输入的密码不一致");return}g.value=!0;try{await H({token:r.value,new_password:o}),f.value="密码重置成功!3秒后跳转到登录页面...",y.success("密码重置成功"),N()}catch(p){const _=p?.response?.data;y.error(_?.error||"重置失败")}finally{g.value=!1}}return F(()=>{const o=C();o?.page==="reset_password"?(r.value=String(o?.token||r.value||""),i.value=!!o?.valid,b.value=o?.error_message||(i.value?"":"重置链接无效或已过期,请重新申请密码重置")):r.value||(i.value=!1,b.value="重置链接无效或已过期,请重新申请密码重置")}),K(()=>{u&&window.clearInterval(u)}),(o,e)=>{const c=l("el-alert"),p=l("el-button"),_=l("el-input"),h=l("el-form-item"),R=l("el-form"),E=l("el-card");return m(),v("div",O,[s(E,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:a(()=>[e[5]||(e[5]=w("div",{class:"brand"},[w("div",{class:"brand-title"},"知识管理平台"),w("div",{class:"brand-sub app-muted"},"重置密码")],-1)),i.value?(m(),v(T,{key:1},[f.value?(m(),q(c,{key:0,type:"success",closable:!1,title:"重置成功",description:f.value,"show-icon":"",class:"alert"},null,8,["description"])):x("",!0),s(R,{"label-position":"top"},{default:a(()=>[s(h,{label:"新密码(至少8位且包含字母和数字)"},{default:a(()=>[s(_,{modelValue:t.newPassword,"onUpdate:modelValue":e[0]||(e[0]=P=>t.newPassword=P),type:"password","show-password":"",placeholder:"请输入新密码",autocomplete:"new-password"},null,8,["modelValue"])]),_:1}),s(h,{label:"确认密码"},{default:a(()=>[s(_,{modelValue:t.confirmPassword,"onUpdate:modelValue":e[1]||(e[1]=P=>t.confirmPassword=P),type:"password","show-password":"",placeholder:"请再次输入新密码",autocomplete:"new-password",onKeyup:z(V,["enter"])},null,8,["modelValue"])]),_:1})]),_:1}),s(p,{type:"primary",class:"submit-btn",loading:g.value,disabled:!I.value,onClick:V},{default:a(()=>[...e[3]||(e[3]=[k(" 确认重置 ",-1)])]),_:1},8,["loading","disabled"]),w("div",W,[s(p,{link:"",type:"primary",onClick:S},{default:a(()=>[...e[4]||(e[4]=[k("返回登录",-1)])]),_:1}),d.value>0?(m(),v("span",X,G(d.value)+" 秒后自动跳转…",1)):x("",!0)])],64)):(m(),v(T,{key:0},[s(c,{type:"error",closable:!1,title:"链接已失效",description:b.value,"show-icon":""},null,8,["description"]),w("div",Q,[s(p,{type:"primary",onClick:S},{default:a(()=>[...e[2]||(e[2]=[k("返回登录",-1)])]),_:1})])],64))]),_:1})])}}},se=L(Y,[["__scopeId","data-v-0bbb511c"]]);export{se as default}; +import{_ as L,a as n,l as M,r as U,c as j,o as F,m as K,b as v,d as s,w as a,e as l,u as D,f as m,g as w,F as T,k,h as q,i as x,j as z,t as G,E as y}from"./index-BstQMnWL.js";import{d as H}from"./auth-CgGRYkq1.js";import{v as J}from"./password-7ryi82gE.js";const O={class:"auth-wrap"},Q={class:"actions"},W={class:"actions"},X={key:0,class:"app-muted"},Y={__name:"ResetPasswordPage",setup(Z){const B=M(),A=D(),r=n(String(B.params.token||"")),i=n(!0),b=n(""),t=U({newPassword:"",confirmPassword:""}),g=n(!1),f=n(""),d=n(0);let u=null;function C(){if(typeof window>"u")return null;const o=window.__APP_INITIAL_STATE__;return!o||typeof o!="object"?null:(window.__APP_INITIAL_STATE__=null,o)}const I=j(()=>!!(i.value&&r.value&&!f.value));function S(){A.push("/login")}function N(){d.value=3,u=window.setInterval(()=>{d.value-=1,d.value<=0&&(window.clearInterval(u),u=null,window.location.href="/login")},1e3)}async function V(){if(!I.value)return;const o=t.newPassword,e=t.confirmPassword,c=J(o);if(!c.ok){y.error(c.message);return}if(o!==e){y.error("两次输入的密码不一致");return}g.value=!0;try{await H({token:r.value,new_password:o}),f.value="密码重置成功!3秒后跳转到登录页面...",y.success("密码重置成功"),N()}catch(p){const _=p?.response?.data;y.error(_?.error||"重置失败")}finally{g.value=!1}}return F(()=>{const o=C();o?.page==="reset_password"?(r.value=String(o?.token||r.value||""),i.value=!!o?.valid,b.value=o?.error_message||(i.value?"":"重置链接无效或已过期,请重新申请密码重置")):r.value||(i.value=!1,b.value="重置链接无效或已过期,请重新申请密码重置")}),K(()=>{u&&window.clearInterval(u)}),(o,e)=>{const c=l("el-alert"),p=l("el-button"),_=l("el-input"),h=l("el-form-item"),R=l("el-form"),E=l("el-card");return m(),v("div",O,[s(E,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:a(()=>[e[5]||(e[5]=w("div",{class:"brand"},[w("div",{class:"brand-title"},"知识管理平台"),w("div",{class:"brand-sub app-muted"},"重置密码")],-1)),i.value?(m(),v(T,{key:1},[f.value?(m(),q(c,{key:0,type:"success",closable:!1,title:"重置成功",description:f.value,"show-icon":"",class:"alert"},null,8,["description"])):x("",!0),s(R,{"label-position":"top"},{default:a(()=>[s(h,{label:"新密码(至少8位且包含字母和数字)"},{default:a(()=>[s(_,{modelValue:t.newPassword,"onUpdate:modelValue":e[0]||(e[0]=P=>t.newPassword=P),type:"password","show-password":"",placeholder:"请输入新密码",autocomplete:"new-password"},null,8,["modelValue"])]),_:1}),s(h,{label:"确认密码"},{default:a(()=>[s(_,{modelValue:t.confirmPassword,"onUpdate:modelValue":e[1]||(e[1]=P=>t.confirmPassword=P),type:"password","show-password":"",placeholder:"请再次输入新密码",autocomplete:"new-password",onKeyup:z(V,["enter"])},null,8,["modelValue"])]),_:1})]),_:1}),s(p,{type:"primary",class:"submit-btn",loading:g.value,disabled:!I.value,onClick:V},{default:a(()=>[...e[3]||(e[3]=[k(" 确认重置 ",-1)])]),_:1},8,["loading","disabled"]),w("div",W,[s(p,{link:"",type:"primary",onClick:S},{default:a(()=>[...e[4]||(e[4]=[k("返回登录",-1)])]),_:1}),d.value>0?(m(),v("span",X,G(d.value)+" 秒后自动跳转…",1)):x("",!0)])],64)):(m(),v(T,{key:0},[s(c,{type:"error",closable:!1,title:"链接已失效",description:b.value,"show-icon":""},null,8,["description"]),w("div",Q,[s(p,{type:"primary",onClick:S},{default:a(()=>[...e[2]||(e[2]=[k("返回登录",-1)])]),_:1})])],64))]),_:1})])}}},se=L(Y,[["__scopeId","data-v-0bbb511c"]]);export{se as default}; diff --git a/static/app/assets/SchedulesPage-BAj1X6GW.css b/static/app/assets/SchedulesPage-BAj1X6GW.css deleted file mode 100644 index 5165da8..0000000 --- a/static/app/assets/SchedulesPage-BAj1X6GW.css +++ /dev/null @@ -1 +0,0 @@ -.card[data-v-b4b9e229]{border-radius:var(--app-radius);border:1px solid var(--app-border)}.title[data-v-b4b9e229]{margin:0 0 6px;font-size:16px;font-weight:800} diff --git a/static/app/assets/SchedulesPage-BXyRqadY.js b/static/app/assets/SchedulesPage-BXyRqadY.js new file mode 100644 index 0000000..b070e0b --- /dev/null +++ b/static/app/assets/SchedulesPage-BXyRqadY.js @@ -0,0 +1 @@ +import{f as me}from"./accounts-DI7tHfNj.js";import{p as h,_ as ve,n as fe,a as y,r as _e,c as ye,o as be,b,h as w,i as Q,d as a,w as s,e as v,f as i,g as u,k as f,F as V,v as B,t as _,E as m,x as W}from"./index-BstQMnWL.js";async function ge(){const{data:r}=await h.get("/schedules");return r}async function we(r){const{data:d}=await h.post("/schedules",r);return d}async function he(r,d){const{data:g}=await h.put(`/schedules/${r}`,d);return g}async function ke(r){const{data:d}=await h.delete(`/schedules/${r}`);return d}async function Ve(r,d){const{data:g}=await h.post(`/schedules/${r}/toggle`,d);return g}async function Se(r){const{data:d}=await h.post(`/schedules/${r}/run`,{});return d}async function xe(r,d={}){const{data:g}=await h.get(`/schedules/${r}/logs`,{params:d});return g}async function $e(r){const{data:d}=await h.delete(`/schedules/${r}/logs`);return d}const Ce={class:"page"},Ne={class:"vip-actions"},Be={class:"panel-head"},Te={class:"panel-actions"},Ue={key:1,class:"grid"},Me={class:"schedule-top"},ze={class:"schedule-main"},Ie={class:"schedule-title"},Le={class:"schedule-name"},Pe={class:"schedule-meta app-muted"},Ee={class:"schedule-meta app-muted"},Ae={class:"schedule-switch"},Oe={class:"schedule-actions"},He={key:1,class:"logs"},je={class:"log-head"},De={class:"app-muted"},Fe={class:"log-body"},Re={key:0,class:"log-error"},qe={__name:"SchedulesPage",setup(r){const d=fe(),g=y(!1),T=y([]),I=y(!1),L=y([]),S=y(!1),P=y(!1),C=y(null),U=y(!1),E=y(!1),x=y([]),M=y(null),k=y(!1),n=_e({name:"",schedule_time:"08:00",weekdays:["1","2","3","4","5"],browse_type:"应读",enable_screenshot:!0,account_ids:[]}),X=[{label:"应读",value:"应读"},{label:"未读",value:"未读"},{label:"注册前未读",value:"注册前未读"}],j=[{label:"周一",value:"1"},{label:"周二",value:"2"},{label:"周三",value:"3"},{label:"周四",value:"4"},{label:"周五",value:"5"},{label:"周六",value:"6"},{label:"周日",value:"7"}],c=ye(()=>d.isVip);function A(t){const e=String(t||"").match(/^(\d{1,2}):(\d{2})$/);if(!e)return null;const o=Number(e[1]),p=Number(e[2]);return Number.isNaN(o)||Number.isNaN(p)||o<0||o>23||p<0||p>59?null:`${String(o).padStart(2,"0")}:${String(p).padStart(2,"0")}`}function Y(t){const e=Array.isArray(t)?t:String(t||"").split(",").filter(Boolean),o=Object.fromEntries(j.map(p=>[p.value,p.label]));return e.map(p=>o[String(p)]||String(p)).join(" ")}async function Z(){I.value=!0;try{const t=await me({refresh:!1});L.value=(t||[]).map(e=>({label:e.username,value:e.id}))}catch{L.value=[]}finally{I.value=!1}}async function z(){g.value=!0;try{T.value=await ge()}catch(t){t?.response?.status===401&&(window.location.href="/login"),T.value=[]}finally{g.value=!1}}function ee(){C.value=null,n.name="",n.schedule_time="08:00",n.weekdays=["1","2","3","4","5"],n.browse_type="应读",n.enable_screenshot=!0,n.account_ids=[],S.value=!0}function le(t){C.value=t.id,n.name=t.name||"",n.schedule_time=A(t.schedule_time)||"08:00",n.weekdays=String(t.weekdays||"").split(",").filter(Boolean).map(e=>String(e)),n.weekdays.length===0&&(n.weekdays=["1","2","3","4","5"]),n.browse_type=t.browse_type||"应读",n.enable_screenshot=Number(t.enable_screenshot??1)!==0,n.account_ids=Array.isArray(t.account_ids)?t.account_ids.slice():[],S.value=!0}async function te(){if(!c.value){k.value=!0;return}const t=A(n.schedule_time);if(!t){m.error("时间格式错误,请使用 HH:MM");return}if(!n.weekdays||n.weekdays.length===0){m.warning("请选择至少一个执行日期");return}P.value=!0;try{const e={name:n.name.trim()||"我的定时任务",schedule_time:t,weekdays:n.weekdays.join(","),browse_type:n.browse_type,enable_screenshot:n.enable_screenshot?1:0,account_ids:n.account_ids};C.value?(await he(C.value,e),m.success("保存成功")):(await we(e),m.success("创建成功")),S.value=!1,await z()}catch(e){const o=e?.response?.data;m.error(o?.error||"保存失败")}finally{P.value=!1}}async function ae(t){try{await W.confirm(`确定要删除定时任务「${t.name||"未命名任务"}」吗?`,"删除任务",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch{return}try{const e=await ke(t.id);e?.success?(m.success("已删除"),await z()):m.error(e?.error||"删除失败")}catch(e){const o=e?.response?.data;m.error(o?.error||"删除失败")}}async function se(t,e){if(!c.value){k.value=!0;return}try{(await Ve(t.id,{enabled:e}))?.success&&(t.enabled=e?1:0,m.success(e?"已启用":"已禁用"))}catch{m.error("操作失败")}}async function ne(t){if(!c.value){k.value=!0;return}try{const e=await Se(t.id);e?.success?m.success(e?.message||"已开始执行"):m.error(e?.error||"执行失败")}catch(e){const o=e?.response?.data;m.error(o?.error||"执行失败")}}async function oe(t){M.value=t,U.value=!0,E.value=!0;try{x.value=await xe(t.id,{limit:20})}catch{x.value=[]}finally{E.value=!1}}async function ue(){const t=M.value;if(t){try{await W.confirm("确定要清空该任务的所有执行日志吗?","清空日志",{confirmButtonText:"清空",cancelButtonText:"取消",type:"warning"})}catch{return}try{const e=await $e(t.id);e?.success?(m.success(`已清空 ${e?.deleted||0} 条日志`),x.value=[]):m.error(e?.error||"操作失败")}catch{m.error("操作失败")}}}function ie(t){const e=String(t||"");return e==="success"||e==="completed"?"success":e==="failed"?"danger":"info"}function de(t){const e=Number(t||0),o=Math.floor(e/60),p=e%60;return o<=0?`${p} 秒`:`${o} 分 ${p} 秒`}return be(async()=>{d.vipInfo||d.refreshVipInfo().catch(()=>{window.location.href="/login"}),await Promise.all([Z(),z()])}),(t,e)=>{const o=v("el-button"),p=v("el-alert"),D=v("el-skeleton"),F=v("el-empty"),R=v("el-tag"),q=v("el-switch"),O=v("el-card"),G=v("el-input"),$=v("el-form-item"),re=v("el-checkbox"),ce=v("el-checkbox-group"),J=v("el-option"),K=v("el-select"),pe=v("el-form"),H=v("el-dialog");return i(),b("div",Ce,[c.value?Q("",!0):(i(),w(p,{key:0,type:"warning","show-icon":"",closable:!1,title:"定时任务为 VIP 专属功能,升级后可使用。",class:"vip-alert"},{default:s(()=>[u("div",Ne,[a(o,{type:"primary",plain:"",onClick:e[0]||(e[0]=l=>k.value=!0)},{default:s(()=>[...e[13]||(e[13]=[f("了解VIP特权",-1)])]),_:1})])]),_:1})),a(O,{shadow:"never",class:"panel","body-style":{padding:"14px"}},{default:s(()=>[u("div",Be,[e[16]||(e[16]=u("div",{class:"panel-title"},"定时任务",-1)),u("div",Te,[a(o,{loading:g.value,onClick:z},{default:s(()=>[...e[14]||(e[14]=[f("刷新",-1)])]),_:1},8,["loading"]),a(o,{type:"primary",disabled:!c.value,onClick:ee},{default:s(()=>[...e[15]||(e[15]=[f("新建任务",-1)])]),_:1},8,["disabled"])])]),g.value?(i(),w(D,{key:0,rows:6,animated:""})):(i(),b(V,{key:1},[T.value.length===0?(i(),w(F,{key:0,description:"暂无定时任务"})):(i(),b("div",Ue,[(i(!0),b(V,null,B(T.value,l=>(i(),w(O,{key:l.id,shadow:"never",class:"schedule-card","body-style":{padding:"14px"}},{default:s(()=>[u("div",Me,[u("div",ze,[u("div",Ie,[u("span",Le,_(l.name||"未命名任务"),1),a(R,{size:"small",effect:"light",type:Number(l.enabled)?"success":"info"},{default:s(()=>[f(_(Number(l.enabled)?"启用":"停用"),1)]),_:2},1032,["type"])]),u("div",Pe,[u("span",null,"⏰ "+_(A(l.schedule_time)||l.schedule_time),1),u("span",null,"📅 "+_(Y(l.weekdays)),1)]),u("div",Ee,[u("span",null,"📋 "+_(l.browse_type||"应读"),1),u("span",null,"👥 "+_((l.account_ids||[]).length)+" 个账号",1),u("span",null,_(Number(l.enable_screenshot??1)!==0?"📸 截图":"📷 不截图"),1)])]),u("div",Ae,[a(q,{"model-value":!!Number(l.enabled),disabled:!c.value,"inline-prompt":"","active-text":"启用","inactive-text":"停用",onChange:N=>se(l,N)},null,8,["model-value","disabled","onChange"])])]),u("div",Oe,[a(o,{size:"small",type:"primary",disabled:!c.value,onClick:N=>ne(l)},{default:s(()=>[...e[17]||(e[17]=[f("立即执行",-1)])]),_:1},8,["disabled","onClick"]),a(o,{size:"small",onClick:N=>oe(l)},{default:s(()=>[...e[18]||(e[18]=[f("日志",-1)])]),_:1},8,["onClick"]),a(o,{size:"small",disabled:!c.value,onClick:N=>le(l)},{default:s(()=>[...e[19]||(e[19]=[f("编辑",-1)])]),_:1},8,["disabled","onClick"]),a(o,{size:"small",type:"danger",text:"",disabled:!c.value,onClick:N=>ae(l)},{default:s(()=>[...e[20]||(e[20]=[f("删除",-1)])]),_:1},8,["disabled","onClick"])])]),_:2},1024))),128))]))],64))]),_:1}),a(H,{modelValue:S.value,"onUpdate:modelValue":e[8]||(e[8]=l=>S.value=l),title:C.value?"编辑定时任务":"新建定时任务",width:"min(720px, 92vw)"},{footer:s(()=>[a(o,{onClick:e[7]||(e[7]=l=>S.value=!1)},{default:s(()=>[...e[21]||(e[21]=[f("取消",-1)])]),_:1}),a(o,{type:"primary",loading:P.value,disabled:!c.value,onClick:te},{default:s(()=>[...e[22]||(e[22]=[f("保存",-1)])]),_:1},8,["loading","disabled"])]),default:s(()=>[a(pe,{"label-position":"top"},{default:s(()=>[a($,{label:"任务名称"},{default:s(()=>[a(G,{modelValue:n.name,"onUpdate:modelValue":e[1]||(e[1]=l=>n.name=l),placeholder:"我的定时任务",disabled:!c.value},null,8,["modelValue","disabled"])]),_:1}),a($,{label:"执行时间(HH:MM)"},{default:s(()=>[a(G,{modelValue:n.schedule_time,"onUpdate:modelValue":e[2]||(e[2]=l=>n.schedule_time=l),placeholder:"08:00",disabled:!c.value},null,8,["modelValue","disabled"])]),_:1}),a($,{label:"执行日期"},{default:s(()=>[a(ce,{modelValue:n.weekdays,"onUpdate:modelValue":e[3]||(e[3]=l=>n.weekdays=l),disabled:!c.value},{default:s(()=>[(i(),b(V,null,B(j,l=>a(re,{key:l.value,label:l.value},{default:s(()=>[f(_(l.label),1)]),_:2},1032,["label"])),64))]),_:1},8,["modelValue","disabled"])]),_:1}),a($,{label:"浏览类型"},{default:s(()=>[a(K,{modelValue:n.browse_type,"onUpdate:modelValue":e[4]||(e[4]=l=>n.browse_type=l),style:{width:"160px"},disabled:!c.value},{default:s(()=>[(i(),b(V,null,B(X,l=>a(J,{key:l.value,label:l.label,value:l.value},null,8,["label","value"])),64))]),_:1},8,["modelValue","disabled"])]),_:1}),a($,{label:"截图"},{default:s(()=>[a(q,{modelValue:n.enable_screenshot,"onUpdate:modelValue":e[5]||(e[5]=l=>n.enable_screenshot=l),disabled:!c.value,"inline-prompt":"","active-text":"截图","inactive-text":"不截图"},null,8,["modelValue","disabled"])]),_:1}),a($,{label:"参与账号"},{default:s(()=>[a(K,{modelValue:n.account_ids,"onUpdate:modelValue":e[6]||(e[6]=l=>n.account_ids=l),multiple:"",filterable:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"选择账号(可多选)",style:{width:"100%"},loading:I.value,disabled:!c.value},{default:s(()=>[(i(!0),b(V,null,B(L.value,l=>(i(),w(J,{key:l.value,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","loading","disabled"])]),_:1})]),_:1})]),_:1},8,["modelValue","title"]),a(H,{modelValue:U.value,"onUpdate:modelValue":e[10]||(e[10]=l=>U.value=l),title:M.value?`【${M.value.name||"未命名任务"}】执行日志`:"执行日志",width:"min(760px, 92vw)"},{footer:s(()=>[a(o,{onClick:e[9]||(e[9]=l=>U.value=!1)},{default:s(()=>[...e[23]||(e[23]=[f("关闭",-1)])]),_:1}),a(o,{type:"danger",plain:"",disabled:x.value.length===0,onClick:ue},{default:s(()=>[...e[24]||(e[24]=[f("清空日志",-1)])]),_:1},8,["disabled"])]),default:s(()=>[E.value?(i(),w(D,{key:0,rows:6,animated:""})):(i(),b(V,{key:1},[x.value.length===0?(i(),w(F,{key:0,description:"暂无执行日志"})):(i(),b("div",He,[(i(!0),b(V,null,B(x.value,l=>(i(),w(O,{key:l.id,shadow:"never",class:"log-card","body-style":{padding:"12px"}},{default:s(()=>[u("div",je,[a(R,{size:"small",effect:"light",type:ie(l.status)},{default:s(()=>[f(_(l.status==="failed"?"失败":l.status==="running"?"进行中":"成功"),1)]),_:2},1032,["type"]),u("span",De,_(l.created_at||""),1)]),u("div",Fe,[u("div",null,"账号数:"+_(l.total_accounts||0)+" 个",1),u("div",null,"成功:"+_(l.success_count||0)+" 个 · 失败:"+_(l.failed_count||0)+" 个",1),u("div",null,"耗时:"+_(de(l.duration||0)),1),l.error_message?(i(),b("div",Re,"错误:"+_(l.error_message),1)):Q("",!0)])]),_:2},1024))),128))]))],64))]),_:1},8,["modelValue","title"]),a(H,{modelValue:k.value,"onUpdate:modelValue":e[12]||(e[12]=l=>k.value=l),title:"VIP 特权",width:"min(560px, 92vw)"},{footer:s(()=>[a(o,{type:"primary",onClick:e[11]||(e[11]=l=>k.value=!1)},{default:s(()=>[...e[25]||(e[25]=[f("我知道了",-1)])]),_:1})]),default:s(()=>[a(p,{type:"info",closable:!1,title:"升级 VIP 后可解锁:无限账号、优先排队、定时任务、批量操作。","show-icon":""}),e[26]||(e[26]=u("div",{class:"vip-body"},[u("div",{class:"vip-tip app-muted"},"升级方式:请通过“反馈”联系管理员开通。")],-1))]),_:1},8,["modelValue"])])}}},Ke=ve(qe,[["__scopeId","data-v-ee36bae1"]]);export{Ke as default}; diff --git a/static/app/assets/SchedulesPage-DHlqgLCv.js b/static/app/assets/SchedulesPage-DHlqgLCv.js deleted file mode 100644 index f2ef01a..0000000 --- a/static/app/assets/SchedulesPage-DHlqgLCv.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,h as o,w as c,e as d,f as r,g as s}from"./index-DvbGwVAp.js";const n={};function l(_,e){const a=d("el-card");return r(),o(a,{shadow:"never","body-style":{padding:"16px"},class:"card"},{default:c(()=>[...e[0]||(e[0]=[s("h2",{class:"title"},"定时任务",-1),s("div",{class:"app-muted"},"阶段1:页面壳子已就绪,功能将在后续阶段迁移。",-1)])]),_:1})}const f=t(n,[["render",l],["__scopeId","data-v-b4b9e229"]]);export{f as default}; diff --git a/static/app/assets/SchedulesPage-Gu_OsDUd.css b/static/app/assets/SchedulesPage-Gu_OsDUd.css new file mode 100644 index 0000000..5c6923b --- /dev/null +++ b/static/app/assets/SchedulesPage-Gu_OsDUd.css @@ -0,0 +1 @@ +.page[data-v-ee36bae1]{display:flex;flex-direction:column;gap:12px}.vip-alert[data-v-ee36bae1]{border-radius:var(--app-radius);border:1px solid var(--app-border)}.vip-actions[data-v-ee36bae1]{margin-top:10px}.panel[data-v-ee36bae1]{border-radius:var(--app-radius);border:1px solid var(--app-border)}.panel-head[data-v-ee36bae1]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.panel-title[data-v-ee36bae1]{font-size:16px;font-weight:900}.panel-actions[data-v-ee36bae1]{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.grid[data-v-ee36bae1]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}.schedule-card[data-v-ee36bae1]{border-radius:14px;border:1px solid var(--app-border)}.schedule-top[data-v-ee36bae1]{display:flex;justify-content:space-between;gap:12px}.schedule-main[data-v-ee36bae1]{min-width:0;flex:1}.schedule-title[data-v-ee36bae1]{display:flex;align-items:center;justify-content:space-between;gap:10px}.schedule-name[data-v-ee36bae1]{font-size:14px;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-meta[data-v-ee36bae1]{margin-top:6px;display:flex;gap:10px;flex-wrap:wrap;font-size:12px}.schedule-actions[data-v-ee36bae1]{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}.logs[data-v-ee36bae1]{display:flex;flex-direction:column;gap:10px}.log-card[data-v-ee36bae1]{border-radius:12px;border:1px solid var(--app-border)}.log-head[data-v-ee36bae1]{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.log-body[data-v-ee36bae1]{margin-top:8px;font-size:13px;line-height:1.6}.log-error[data-v-ee36bae1]{margin-top:6px;color:#b91c1c}.vip-body[data-v-ee36bae1]{padding:12px 0 0}.vip-tip[data-v-ee36bae1]{margin-top:10px;font-size:13px;line-height:1.6}@media(max-width:480px){.grid[data-v-ee36bae1]{grid-template-columns:1fr}} diff --git a/static/app/assets/ScreenshotsPage-B66M6Olm.css b/static/app/assets/ScreenshotsPage-B66M6Olm.css new file mode 100644 index 0000000..08b0a9f --- /dev/null +++ b/static/app/assets/ScreenshotsPage-B66M6Olm.css @@ -0,0 +1 @@ +.panel[data-v-ff08abf8]{border-radius:var(--app-radius);border:1px solid var(--app-border)}.panel-head[data-v-ff08abf8]{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.panel-title[data-v-ff08abf8]{font-size:16px;font-weight:900}.panel-actions[data-v-ff08abf8]{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.grid[data-v-ff08abf8]{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.shot-card[data-v-ff08abf8]{border-radius:14px;border:1px solid var(--app-border);overflow:hidden}.shot-img[data-v-ff08abf8]{width:100%;aspect-ratio:16/9;object-fit:cover;cursor:pointer;display:block}.shot-body[data-v-ff08abf8]{padding:12px}.shot-name[data-v-ff08abf8]{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shot-meta[data-v-ff08abf8]{margin-top:4px;font-size:12px}.shot-actions[data-v-ff08abf8]{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}.preview[data-v-ff08abf8]{display:flex;justify-content:center}.preview-img[data-v-ff08abf8]{max-width:100%;max-height:78vh;object-fit:contain;border-radius:10px;border:1px solid var(--app-border);background:#fff}@media(max-width:480px){.grid[data-v-ff08abf8]{grid-template-columns:1fr}} diff --git a/static/app/assets/ScreenshotsPage-BwyU04c1.js b/static/app/assets/ScreenshotsPage-BwyU04c1.js new file mode 100644 index 0000000..de2b6f8 --- /dev/null +++ b/static/app/assets/ScreenshotsPage-BwyU04c1.js @@ -0,0 +1 @@ +import{p as C,_ as P,a as y,o as R,h as w,w as s,e as _,f as c,g as o,b,d as i,k as f,F as B,v as D,t as T,x as I,E as l}from"./index-BstQMnWL.js";async function F(){const{data:d}=await C.get("/screenshots");return d}async function L(d){const{data:u}=await C.delete(`/screenshots/${encodeURIComponent(d)}`);return u}async function O(){const{data:d}=await C.post("/screenshots/clear",{});return d}const j={class:"panel-head"},q={class:"panel-actions"},G={key:1,class:"grid"},H=["src","alt","onClick"],J={class:"shot-body"},K=["title"],Q={class:"shot-meta app-muted"},W={class:"shot-actions"},X={class:"preview"},Y=["src","alt"],Z={__name:"ScreenshotsPage",setup(d){const u=y(!1),r=y([]),p=y(!1),g=y(""),h=y("");function v(a){return`/screenshots/${encodeURIComponent(a)}`}async function x(){u.value=!0;try{const a=await F();r.value=Array.isArray(a)?a:[]}catch(a){a?.response?.status===401&&(window.location.href="/login"),r.value=[]}finally{u.value=!1}}function S(a){h.value=a.display_name||a.filename||"截图预览",g.value=v(a.filename),p.value=!0}async function U(){try{await I.confirm("确定要清空全部截图吗?","清空截图",{confirmButtonText:"清空",cancelButtonText:"取消",type:"warning"})}catch{return}try{const a=await O();if(a?.success){l.success(`已清空(删除 ${a?.deleted||0} 张)`),r.value=[],p.value=!1;return}l.error(a?.error||"操作失败")}catch(a){const e=a?.response?.data;l.error(e?.error||"操作失败")}}async function V(a){try{await I.confirm(`确定要删除截图「${a.display_name||a.filename}」吗?`,"删除截图",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"})}catch{return}try{const e=await L(a.filename);if(e?.success){r.value=r.value.filter(n=>n.filename!==a.filename),g.value.includes(encodeURIComponent(a.filename))&&(p.value=!1),l.success("已删除");return}l.error(e?.error||"删除失败")}catch(e){const n=e?.response?.data;l.error(n?.error||"删除失败")}}async function E(a){const e=`${window.location.origin}${v(a.filename)}`;try{await navigator.clipboard.writeText(e),l.success("链接已复制")}catch{l.warning("复制失败,请手动复制链接")}}async function z(a){const e=v(a.filename);try{const m=await(await fetch(e,{credentials:"include"})).blob();await navigator.clipboard.write([new ClipboardItem({[m.type]:m})]),l.success("图片已复制")}catch{await E(a)}}function A(a){const e=document.createElement("a");e.href=v(a.filename),e.download=a.display_name||a.filename,document.body.appendChild(e),e.click(),e.remove()}return R(x),(a,e)=>{const n=_("el-button"),m=_("el-skeleton"),M=_("el-empty"),$=_("el-card"),N=_("el-dialog");return c(),w($,{shadow:"never",class:"panel","body-style":{padding:"14px"}},{default:s(()=>[o("div",j,[e[4]||(e[4]=o("div",{class:"panel-title"},"截图管理",-1)),o("div",q,[i(n,{loading:u.value,onClick:x},{default:s(()=>[...e[2]||(e[2]=[f("刷新",-1)])]),_:1},8,["loading"]),i(n,{type:"danger",plain:"",disabled:r.value.length===0,onClick:U},{default:s(()=>[...e[3]||(e[3]=[f("清空全部",-1)])]),_:1},8,["disabled"])])]),u.value?(c(),w(m,{key:0,rows:6,animated:""})):(c(),b(B,{key:1},[r.value.length===0?(c(),w(M,{key:0,description:"暂无截图"})):(c(),b("div",G,[(c(!0),b(B,null,D(r.value,t=>(c(),w($,{key:t.filename,shadow:"never",class:"shot-card","body-style":{padding:"0"}},{default:s(()=>[o("img",{class:"shot-img",src:v(t.filename),alt:t.display_name||t.filename,loading:"lazy",onClick:k=>S(t)},null,8,H),o("div",J,[o("div",{class:"shot-name",title:t.display_name||t.filename},T(t.display_name||t.filename),9,K),o("div",Q,T(t.created||""),1),o("div",W,[i(n,{size:"small",text:"",type:"primary",onClick:k=>z(t)},{default:s(()=>[...e[5]||(e[5]=[f("复制图片",-1)])]),_:1},8,["onClick"]),i(n,{size:"small",text:"",onClick:k=>A(t)},{default:s(()=>[...e[6]||(e[6]=[f("下载",-1)])]),_:1},8,["onClick"]),i(n,{size:"small",text:"",type:"danger",onClick:k=>V(t)},{default:s(()=>[...e[7]||(e[7]=[f("删除",-1)])]),_:1},8,["onClick"])])])]),_:2},1024))),128))]))],64)),i(N,{modelValue:p.value,"onUpdate:modelValue":e[1]||(e[1]=t=>p.value=t),title:h.value,width:"min(920px, 94vw)"},{footer:s(()=>[i(n,{onClick:e[0]||(e[0]=t=>p.value=!1)},{default:s(()=>[...e[8]||(e[8]=[f("关闭",-1)])]),_:1})]),default:s(()=>[o("div",X,[o("img",{src:g.value,alt:h.value,class:"preview-img"},null,8,Y)])]),_:1},8,["modelValue","title"])]),_:1})}}},ae=P(Z,[["__scopeId","data-v-ff08abf8"]]);export{ae as default}; diff --git a/static/app/assets/ScreenshotsPage-CmPGicmh.css b/static/app/assets/ScreenshotsPage-CmPGicmh.css deleted file mode 100644 index f404e5d..0000000 --- a/static/app/assets/ScreenshotsPage-CmPGicmh.css +++ /dev/null @@ -1 +0,0 @@ -.card[data-v-08f8d2d3]{border-radius:var(--app-radius);border:1px solid var(--app-border)}.title[data-v-08f8d2d3]{margin:0 0 6px;font-size:16px;font-weight:800} diff --git a/static/app/assets/ScreenshotsPage-jZuEr5af.js b/static/app/assets/ScreenshotsPage-jZuEr5af.js deleted file mode 100644 index 435a4e8..0000000 --- a/static/app/assets/ScreenshotsPage-jZuEr5af.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,h as o,w as c,e as d,f as r,g as s}from"./index-DvbGwVAp.js";const n={};function _(l,e){const a=d("el-card");return r(),o(a,{shadow:"never","body-style":{padding:"16px"},class:"card"},{default:c(()=>[...e[0]||(e[0]=[s("h2",{class:"title"},"截图管理",-1),s("div",{class:"app-muted"},"阶段1:页面壳子已就绪,功能将在后续阶段迁移。",-1)])]),_:1})}const f=t(n,[["render",_],["__scopeId","data-v-08f8d2d3"]]);export{f as default}; diff --git a/static/app/assets/VerifyResultPage-B_i4AM-j.js b/static/app/assets/VerifyResultPage-DgCNTQ4L.js similarity index 97% rename from static/app/assets/VerifyResultPage-B_i4AM-j.js rename to static/app/assets/VerifyResultPage-DgCNTQ4L.js index bbe7edd..847909a 100644 --- a/static/app/assets/VerifyResultPage-B_i4AM-j.js +++ b/static/app/assets/VerifyResultPage-DgCNTQ4L.js @@ -1 +1 @@ -import{_ as U,a as o,c as I,o as E,m as R,b as k,d as i,w as s,e as d,u as W,f as _,g as l,i as B,h as $,k as T,t as v}from"./index-DvbGwVAp.js";const j={class:"auth-wrap"},z={class:"actions"},D={key:0,class:"countdown app-muted"},M={__name:"VerifyResultPage",setup(q){const x=W(),p=o(!1),f=o(""),m=o(""),w=o(""),y=o(""),r=o(""),u=o(""),c=o(""),n=o(0);let a=null;function C(){if(typeof window>"u")return null;const e=window.__APP_INITIAL_STATE__;return!e||typeof e!="object"?null:(window.__APP_INITIAL_STATE__=null,e)}function N(e){const t=!!e?.success;p.value=t,f.value=e?.title||(t?"验证成功":"验证失败"),m.value=e?.message||e?.error_message||(t?"操作已完成,现在可以继续使用系统。":"操作失败,请稍后重试。"),w.value=e?.primary_label||(t?"立即登录":"重新注册"),y.value=e?.primary_url||(t?"/login":"/register"),r.value=e?.secondary_label||(t?"":"返回登录"),u.value=e?.secondary_url||(t?"":"/login"),c.value=e?.redirect_url||(t?"/login":""),n.value=Number(e?.redirect_seconds||(t?5:0))||0}const A=I(()=>!!(r.value&&u.value)),b=I(()=>!!(c.value&&n.value>0));async function g(e){if(e){if(e.startsWith("http://")||e.startsWith("https://")){window.location.href=e;return}await x.push(e)}}function P(){b.value&&(a=window.setInterval(()=>{n.value-=1,n.value<=0&&(window.clearInterval(a),a=null,window.location.href=c.value)},1e3))}return E(()=>{const e=C();N(e),P()}),R(()=>{a&&window.clearInterval(a)}),(e,t)=>{const h=d("el-button"),V=d("el-result"),L=d("el-card");return _(),k("div",j,[i(L,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:s(()=>[t[2]||(t[2]=l("div",{class:"brand"},[l("div",{class:"brand-title"},"知识管理平台"),l("div",{class:"brand-sub app-muted"},"验证结果")],-1)),i(V,{icon:p.value?"success":"error",title:f.value,"sub-title":m.value,class:"result"},{extra:s(()=>[l("div",z,[i(h,{type:"primary",onClick:t[0]||(t[0]=S=>g(y.value))},{default:s(()=>[T(v(w.value),1)]),_:1}),A.value?(_(),$(h,{key:0,onClick:t[1]||(t[1]=S=>g(u.value))},{default:s(()=>[T(v(r.value),1)]),_:1})):B("",!0)]),b.value?(_(),k("div",D,v(n.value)+" 秒后自动跳转... ",1)):B("",!0)]),_:1},8,["icon","title","sub-title"])]),_:1})])}}},G=U(M,[["__scopeId","data-v-1fc6b081"]]);export{G as default}; +import{_ as U,a as o,c as I,o as E,m as R,b as k,d as i,w as s,e as d,u as W,f as _,g as l,i as B,h as $,k as T,t as v}from"./index-BstQMnWL.js";const j={class:"auth-wrap"},z={class:"actions"},D={key:0,class:"countdown app-muted"},M={__name:"VerifyResultPage",setup(q){const x=W(),p=o(!1),f=o(""),m=o(""),w=o(""),y=o(""),r=o(""),u=o(""),c=o(""),n=o(0);let a=null;function C(){if(typeof window>"u")return null;const e=window.__APP_INITIAL_STATE__;return!e||typeof e!="object"?null:(window.__APP_INITIAL_STATE__=null,e)}function N(e){const t=!!e?.success;p.value=t,f.value=e?.title||(t?"验证成功":"验证失败"),m.value=e?.message||e?.error_message||(t?"操作已完成,现在可以继续使用系统。":"操作失败,请稍后重试。"),w.value=e?.primary_label||(t?"立即登录":"重新注册"),y.value=e?.primary_url||(t?"/login":"/register"),r.value=e?.secondary_label||(t?"":"返回登录"),u.value=e?.secondary_url||(t?"":"/login"),c.value=e?.redirect_url||(t?"/login":""),n.value=Number(e?.redirect_seconds||(t?5:0))||0}const A=I(()=>!!(r.value&&u.value)),b=I(()=>!!(c.value&&n.value>0));async function g(e){if(e){if(e.startsWith("http://")||e.startsWith("https://")){window.location.href=e;return}await x.push(e)}}function P(){b.value&&(a=window.setInterval(()=>{n.value-=1,n.value<=0&&(window.clearInterval(a),a=null,window.location.href=c.value)},1e3))}return E(()=>{const e=C();N(e),P()}),R(()=>{a&&window.clearInterval(a)}),(e,t)=>{const h=d("el-button"),V=d("el-result"),L=d("el-card");return _(),k("div",j,[i(L,{shadow:"never",class:"auth-card","body-style":{padding:"22px"}},{default:s(()=>[t[2]||(t[2]=l("div",{class:"brand"},[l("div",{class:"brand-title"},"知识管理平台"),l("div",{class:"brand-sub app-muted"},"验证结果")],-1)),i(V,{icon:p.value?"success":"error",title:f.value,"sub-title":m.value,class:"result"},{extra:s(()=>[l("div",z,[i(h,{type:"primary",onClick:t[0]||(t[0]=S=>g(y.value))},{default:s(()=>[T(v(w.value),1)]),_:1}),A.value?(_(),$(h,{key:0,onClick:t[1]||(t[1]=S=>g(u.value))},{default:s(()=>[T(v(r.value),1)]),_:1})):B("",!0)]),b.value?(_(),k("div",D,v(n.value)+" 秒后自动跳转... ",1)):B("",!0)]),_:1},8,["icon","title","sub-title"])]),_:1})])}}},G=U(M,[["__scopeId","data-v-1fc6b081"]]);export{G as default}; diff --git a/static/app/assets/accounts-DI7tHfNj.js b/static/app/assets/accounts-DI7tHfNj.js new file mode 100644 index 0000000..051035d --- /dev/null +++ b/static/app/assets/accounts-DI7tHfNj.js @@ -0,0 +1 @@ +import{p as c}from"./index-BstQMnWL.js";async function o(t={}){const{data:a}=await c.get("/accounts",{params:t});return a}async function u(t){const{data:a}=await c.post("/accounts",t);return a}async function r(t,a){const{data:n}=await c.put(`/accounts/${t}`,a);return n}async function e(t){const{data:a}=await c.delete(`/accounts/${t}`);return a}async function i(t,a){const{data:n}=await c.put(`/accounts/${t}/remark`,a);return n}async function p(t,a){const{data:n}=await c.post(`/accounts/${t}/start`,a);return n}async function d(t){const{data:a}=await c.post(`/accounts/${t}/stop`,{});return a}async function f(t){const{data:a}=await c.post("/accounts/batch/start",t);return a}async function w(t){const{data:a}=await c.post("/accounts/batch/stop",t);return a}async function y(){const{data:t}=await c.post("/accounts/clear",{});return t}async function A(t,a={}){const{data:n}=await c.post(`/accounts/${t}/screenshot`,a);return n}export{w as a,f as b,y as c,d,e,o as f,u as g,i as h,p as s,A as t,r as u}; diff --git a/static/app/assets/auth-yhlOdREj.js b/static/app/assets/auth-CgGRYkq1.js similarity index 91% rename from static/app/assets/auth-yhlOdREj.js rename to static/app/assets/auth-CgGRYkq1.js index e44071e..6c27afe 100644 --- a/static/app/assets/auth-yhlOdREj.js +++ b/static/app/assets/auth-CgGRYkq1.js @@ -1 +1 @@ -import{p as s}from"./index-DvbGwVAp.js";async function r(){const{data:t}=await s.get("/email/verify-status");return t}async function e(){const{data:t}=await s.post("/generate_captcha",{});return t}async function o(t){const{data:a}=await s.post("/login",t);return a}async function i(t){const{data:a}=await s.post("/register",t);return a}async function c(t){const{data:a}=await s.post("/resend-verify-email",t);return a}async function u(t){const{data:a}=await s.post("/forgot-password",t);return a}async function f(t){const{data:a}=await s.post("/reset_password_request",t);return a}async function d(t){const{data:a}=await s.post("/reset-password-confirm",t);return a}export{u as a,c as b,i as c,d,r as f,e as g,o as l,f as r}; +import{p as s}from"./index-BstQMnWL.js";async function r(){const{data:t}=await s.get("/email/verify-status");return t}async function e(){const{data:t}=await s.post("/generate_captcha",{});return t}async function o(t){const{data:a}=await s.post("/login",t);return a}async function i(t){const{data:a}=await s.post("/register",t);return a}async function c(t){const{data:a}=await s.post("/resend-verify-email",t);return a}async function u(t){const{data:a}=await s.post("/forgot-password",t);return a}async function f(t){const{data:a}=await s.post("/reset_password_request",t);return a}async function d(t){const{data:a}=await s.post("/reset-password-confirm",t);return a}export{u as a,c as b,i as c,d,r as f,e as g,o as l,f as r}; diff --git a/static/app/assets/index-DvbGwVAp.js b/static/app/assets/index-BstQMnWL.js similarity index 99% rename from static/app/assets/index-DvbGwVAp.js rename to static/app/assets/index-BstQMnWL.js index 6f37352..229d451 100644 --- a/static/app/assets/index-DvbGwVAp.js +++ b/static/app/assets/index-BstQMnWL.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LoginPage-DYohZsxn.js","./auth-yhlOdREj.js","./password-7ryi82gE.js","./LoginPage-8DI6Rf67.css","./RegisterPage-CGBzvBqd.js","./RegisterPage-CVjBOq6i.css","./ResetPasswordPage-ClLk6uyu.js","./ResetPasswordPage-DybfLMAw.css","./VerifyResultPage-B_i4AM-j.js","./VerifyResultPage-CG6ZYNrm.css","./AccountsPage-C2BSK5Ns.js","./AccountsPage-DXTZ7oC0.css","./SchedulesPage-DHlqgLCv.js","./SchedulesPage-BAj1X6GW.css","./ScreenshotsPage-jZuEr5af.js","./ScreenshotsPage-CmPGicmh.css"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LoginPage-BNb9NBzk.js","./auth-CgGRYkq1.js","./password-7ryi82gE.js","./LoginPage-8DI6Rf67.css","./RegisterPage-CFiuiL-s.js","./RegisterPage-CVjBOq6i.css","./ResetPasswordPage-DeWXyaHc.js","./ResetPasswordPage-DybfLMAw.css","./VerifyResultPage-DgCNTQ4L.js","./VerifyResultPage-CG6ZYNrm.css","./AccountsPage-Bcis23qR.js","./accounts-DI7tHfNj.js","./AccountsPage-DXTZ7oC0.css","./SchedulesPage-BXyRqadY.js","./SchedulesPage-Gu_OsDUd.css","./ScreenshotsPage-BwyU04c1.js","./ScreenshotsPage-B66M6Olm.css"])))=>i.map(i=>d[i]); (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&o(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(l){if(l.ep)return;l.ep=!0;const a=n(l);fetch(l.href,a)}})();function nh(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const on={},jr=[],Mt=()=>{},jw=()=>!1,Td=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),oh=e=>e.startsWith("onUpdate:"),Tn=Object.assign,lh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_T=Object.prototype.hasOwnProperty,Rt=(e,t)=>_T.call(e,t),Ce=Array.isArray,Ur=e=>eu(e)==="[object Map]",Od=e=>eu(e)==="[object Set]",Ia=e=>eu(e)==="[object Date]",Ke=e=>typeof e=="function",Ve=e=>typeof e=="string",Wo=e=>typeof e=="symbol",rt=e=>e!==null&&typeof e=="object",dr=e=>(rt(e)||Ke(e))&&Ke(e.then)&&Ke(e.catch),Uw=Object.prototype.toString,eu=e=>Uw.call(e),TT=e=>eu(e).slice(8,-1),wi=e=>eu(e)==="[object Object]",$d=e=>Ve(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ni=nh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Rd=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},OT=/-\w/g,no=Rd(e=>e.replace(OT,t=>t.slice(1).toUpperCase())),$T=/\B([A-Z])/g,ta=Rd(e=>e.replace($T,"-$1").toLowerCase()),tu=Rd(e=>e.charAt(0).toUpperCase()+e.slice(1)),oi=Rd(e=>e?`on${tu(e)}`:""),Ra=(e,t)=>!Object.is(e,t),sc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},RT=e=>{const t=Ve(e)?Number(e):NaN;return isNaN(t)?e:t};let Cg;const Nd=()=>Cg||(Cg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(Ce(e)){const t={};for(let n=0;n{if(n){const o=n.split(IT);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function x(e){let t="";if(Ve(e))t=e;else if(Ce(e))for(let n=0;nns(n,t))}const Xw=e=>!!(e&&e.__v_isRef===!0),ke=e=>Ve(e)?e:e==null?"":Ce(e)||rt(e)&&(e.toString===Uw||!Ke(e.toString))?Xw(e)?ke(e.value):JSON.stringify(e,Jw,2):String(e),Jw=(e,t)=>Xw(t)?Jw(e,t.value):Ur(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,l],a)=>(n[Mf(o,a)+" =>"]=l,n),{})}:Od(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Mf(n))}:Wo(t)?Mf(t):rt(t)&&!Ce(t)&&!wi(t)?String(t):t,Mf=(e,t="")=>{var n;return Wo(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Vn;class Zw{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Vn,!t&&Vn&&(this.index=(Vn.scopes||(Vn.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;t0&&--this._on===0&&(Vn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(ai){let t=ai;for(ai=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;li;){let t=li;for(li=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function n1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function o1(e){let t,n=e.depsTail,o=n;for(;o;){const l=o.prevDep;o.version===-1?(o===n&&(n=l),dh(o),DT(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=l}e.deps=t,e.depsTail=n}function $p(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(l1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function l1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ci)||(e.globalVersion=Ci,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$p(e))))return;e.flags|=2;const t=e.dep,n=rn,o=Vo;rn=e,Vo=!0;try{n1(e);const l=e.fn(e._value);(t.version===0||Ra(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{rn=n,Vo=o,o1(e),e.flags&=-3}}function dh(e,t=!1){const{dep:n,prevSub:o,nextSub:l}=e;if(o&&(o.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)dh(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function DT(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Vo=!0;const a1=[];function jl(){a1.push(Vo),Vo=!1}function Ul(){const e=a1.pop();Vo=e===void 0?!0:e}function Sg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=rn;rn=void 0;try{t()}finally{rn=n}}}let Ci=0,BT=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Id{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!rn||!Vo||rn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==rn)n=this.activeLink=new BT(rn,this),rn.deps?(n.prevDep=rn.depsTail,rn.depsTail.nextDep=n,rn.depsTail=n):rn.deps=rn.depsTail=n,r1(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=rn.depsTail,n.nextDep=void 0,rn.depsTail.nextDep=n,rn.depsTail=n,rn.deps===n&&(rn.deps=o)}return n}trigger(t){this.version++,Ci++,this.notify(t)}notify(t){uh();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ch()}}}function r1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)r1(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Vc=new WeakMap,ar=Symbol(""),Rp=Symbol(""),Si=Symbol("");function Hn(e,t,n){if(Vo&&rn){let o=Vc.get(e);o||Vc.set(e,o=new Map);let l=o.get(n);l||(o.set(n,l=new Id),l.map=o,l.key=n),l.track()}}function Dl(e,t,n,o,l,a){const r=Vc.get(e);if(!r){Ci++;return}const i=u=>{u&&u.trigger()};if(uh(),t==="clear")r.forEach(i);else{const u=Ce(e),c=u&&$d(n);if(u&&n==="length"){const d=Number(o);r.forEach((f,v)=>{(v==="length"||v===Si||!Wo(v)&&v>=d)&&i(f)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),c&&i(r.get(Si)),t){case"add":u?c&&i(r.get("length")):(i(r.get(ar)),Ur(e)&&i(r.get(Rp)));break;case"delete":u||(i(r.get(ar)),Ur(e)&&i(r.get(Rp)));break;case"set":Ur(e)&&i(r.get(ar));break}}ch()}function FT(e,t){const n=Vc.get(e);return n&&n.get(t)}function Rr(e){const t=Kt(e);return t===e?t:(Hn(t,"iterate",Si),So(e)?t:t.map(jo))}function xd(e){return Hn(e=Kt(e),"iterate",Si),e}function ba(e,t){return ql(e)?zl(e)?os(jo(t)):os(t):jo(t)}const VT={__proto__:null,[Symbol.iterator](){return Lf(this,Symbol.iterator,e=>ba(this,e))},concat(...e){return Rr(this).concat(...e.map(t=>Ce(t)?Rr(t):t))},entries(){return Lf(this,"entries",e=>(e[1]=ba(this,e[1]),e))},every(e,t){return Il(this,"every",e,t,void 0,arguments)},filter(e,t){return Il(this,"filter",e,t,n=>n.map(o=>ba(this,o)),arguments)},find(e,t){return Il(this,"find",e,t,n=>ba(this,n),arguments)},findIndex(e,t){return Il(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Il(this,"findLast",e,t,n=>ba(this,n),arguments)},findLastIndex(e,t){return Il(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Il(this,"forEach",e,t,void 0,arguments)},includes(...e){return Df(this,"includes",e)},indexOf(...e){return Df(this,"indexOf",e)},join(e){return Rr(this).join(e)},lastIndexOf(...e){return Df(this,"lastIndexOf",e)},map(e,t){return Il(this,"map",e,t,void 0,arguments)},pop(){return Vs(this,"pop")},push(...e){return Vs(this,"push",e)},reduce(e,...t){return kg(this,"reduce",e,t)},reduceRight(e,...t){return kg(this,"reduceRight",e,t)},shift(){return Vs(this,"shift")},some(e,t){return Il(this,"some",e,t,void 0,arguments)},splice(...e){return Vs(this,"splice",e)},toReversed(){return Rr(this).toReversed()},toSorted(e){return Rr(this).toSorted(e)},toSpliced(...e){return Rr(this).toSpliced(...e)},unshift(...e){return Vs(this,"unshift",e)},values(){return Lf(this,"values",e=>ba(this,e))}};function Lf(e,t,n){const o=xd(e),l=o[t]();return o!==e&&!So(e)&&(l._next=l.next,l.next=()=>{const a=l._next();return a.done||(a.value=n(a.value)),a}),l}const zT=Array.prototype;function Il(e,t,n,o,l,a){const r=xd(e),i=r!==e&&!So(e),u=r[t];if(u!==zT[t]){const f=u.apply(e,a);return i?jo(f):f}let c=n;r!==e&&(i?c=function(f,v){return n.call(this,ba(e,f),v,e)}:n.length>2&&(c=function(f,v){return n.call(this,f,v,e)}));const d=u.call(r,c,o);return i&&l?l(d):d}function kg(e,t,n,o){const l=xd(e);let a=n;return l!==e&&(So(e)?n.length>3&&(a=function(r,i,u){return n.call(this,r,i,u,e)}):a=function(r,i,u){return n.call(this,r,ba(e,i),u,e)}),l[t](a,...o)}function Df(e,t,n){const o=Kt(e);Hn(o,"iterate",Si);const l=o[t](...n);return(l===-1||l===!1)&&Md(n[0])?(n[0]=Kt(n[0]),o[t](...n)):l}function Vs(e,t,n=[]){jl(),uh();const o=Kt(e)[t].apply(e,n);return ch(),Ul(),o}const HT=nh("__proto__,__v_isRef,__isVue"),s1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wo));function KT(e){Wo(e)||(e=String(e));const t=Kt(this);return Hn(t,"has",e),t.hasOwnProperty(e)}class i1{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const l=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!l;if(n==="__v_isReadonly")return l;if(n==="__v_isShallow")return a;if(n==="__v_raw")return o===(l?a?QT:f1:a?d1:c1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const r=Ce(t);if(!l){let u;if(r&&(u=VT[n]))return u;if(n==="hasOwnProperty")return KT}const i=Reflect.get(t,n,Ht(t)?t:o);if((Wo(n)?s1.has(n):HT(n))||(l||Hn(t,"get",n),a))return i;if(Ht(i)){const u=r&&$d(n)?i:i.value;return l&&rt(u)?fr(u):u}return rt(i)?l?fr(i):It(i):i}}class u1 extends i1{constructor(t=!1){super(!1,t)}set(t,n,o,l){let a=t[n];const r=Ce(t)&&$d(n);if(!this._isShallow){const c=ql(a);if(!So(o)&&!ql(o)&&(a=Kt(a),o=Kt(o)),!r&&Ht(a)&&!Ht(o))return c||(a.value=o),!0}const i=r?Number(n)e,Du=e=>Reflect.getPrototypeOf(e);function YT(e,t,n){return function(...o){const l=this.__v_raw,a=Kt(l),r=Ur(a),i=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=l[e](...o),d=n?Np:t?os:jo;return!t&&Hn(a,"iterate",u?Rp:ar),{next(){const{value:f,done:v}=c.next();return v?{value:f,done:v}:{value:i?[d(f[0]),d(f[1])]:d(f),done:v}},[Symbol.iterator](){return this}}}}function Bu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function GT(e,t){const n={get(l){const a=this.__v_raw,r=Kt(a),i=Kt(l);e||(Ra(l,i)&&Hn(r,"get",l),Hn(r,"get",i));const{has:u}=Du(r),c=t?Np:e?os:jo;if(u.call(r,l))return c(a.get(l));if(u.call(r,i))return c(a.get(i));a!==r&&a.get(l)},get size(){const l=this.__v_raw;return!e&&Hn(Kt(l),"iterate",ar),l.size},has(l){const a=this.__v_raw,r=Kt(a),i=Kt(l);return e||(Ra(l,i)&&Hn(r,"has",l),Hn(r,"has",i)),l===i?a.has(l):a.has(l)||a.has(i)},forEach(l,a){const r=this,i=r.__v_raw,u=Kt(i),c=t?Np:e?os:jo;return!e&&Hn(u,"iterate",ar),i.forEach((d,f)=>l.call(a,c(d),c(f),r))}};return Tn(n,e?{add:Bu("add"),set:Bu("set"),delete:Bu("delete"),clear:Bu("clear")}:{add(l){!t&&!So(l)&&!ql(l)&&(l=Kt(l));const a=Kt(this);return Du(a).has.call(a,l)||(a.add(l),Dl(a,"add",l,l)),this},set(l,a){!t&&!So(a)&&!ql(a)&&(a=Kt(a));const r=Kt(this),{has:i,get:u}=Du(r);let c=i.call(r,l);c||(l=Kt(l),c=i.call(r,l));const d=u.call(r,l);return r.set(l,a),c?Ra(a,d)&&Dl(r,"set",l,a):Dl(r,"add",l,a),this},delete(l){const a=Kt(this),{has:r,get:i}=Du(a);let u=r.call(a,l);u||(l=Kt(l),u=r.call(a,l)),i&&i.call(a,l);const c=a.delete(l);return u&&Dl(a,"delete",l,void 0),c},clear(){const l=Kt(this),a=l.size!==0,r=l.clear();return a&&Dl(l,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(l=>{n[l]=YT(l,e,t)}),n}function fh(e,t){const n=GT(e,t);return(o,l,a)=>l==="__v_isReactive"?!e:l==="__v_isReadonly"?e:l==="__v_raw"?o:Reflect.get(Rt(n,l)&&l in o?n:o,l,a)}const XT={get:fh(!1,!1)},JT={get:fh(!1,!0)},ZT={get:fh(!0,!1)};const c1=new WeakMap,d1=new WeakMap,f1=new WeakMap,QT=new WeakMap;function eO(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tO(e){return e.__v_skip||!Object.isExtensible(e)?0:eO(TT(e))}function It(e){return ql(e)?e:ph(e,!1,jT,XT,c1)}function Pd(e){return ph(e,!1,qT,JT,d1)}function fr(e){return ph(e,!0,UT,ZT,f1)}function ph(e,t,n,o,l){if(!rt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=tO(e);if(a===0)return e;const r=l.get(e);if(r)return r;const i=new Proxy(e,a===2?o:n);return l.set(e,i),i}function zl(e){return ql(e)?zl(e.__v_raw):!!(e&&e.__v_isReactive)}function ql(e){return!!(e&&e.__v_isReadonly)}function So(e){return!!(e&&e.__v_isShallow)}function Md(e){return e?!!e.__v_raw:!1}function Kt(e){const t=e&&e.__v_raw;return t?Kt(t):e}function zo(e){return!Rt(e,"__v_skip")&&Object.isExtensible(e)&&qw(e,"__v_skip",!0),e}const jo=e=>rt(e)?It(e):e,os=e=>rt(e)?fr(e):e;function Ht(e){return e?e.__v_isRef===!0:!1}function A(e){return p1(e,!1)}function jt(e){return p1(e,!0)}function p1(e,t){return Ht(e)?e:new nO(e,t)}class nO{constructor(t,n){this.dep=new Id,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Kt(t),this._value=n?t:jo(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||So(t)||ql(t);t=o?t:Kt(t),Ra(t,n)&&(this._rawValue=t,this._value=o?t:jo(t),this.dep.trigger())}}function ic(e){e.dep&&e.dep.trigger()}function s(e){return Ht(e)?e.value:e}const oO={get:(e,t,n)=>t==="__v_raw"?e:s(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const l=e[t];return Ht(l)&&!Ht(n)?(l.value=n,!0):Reflect.set(e,t,n,o)}};function v1(e){return zl(e)?e:new Proxy(e,oO)}class lO{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Id,{get:o,set:l}=t(n.track.bind(n),n.trigger.bind(n));this._get=o,this._set=l}get value(){return this._value=this._get()}set value(t){this._set(t)}}function aO(e){return new lO(e)}function bn(e){const t=Ce(e)?new Array(e.length):{};for(const n in e)t[n]=h1(e,n);return t}class rO{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=Kt(t);let l=!0,a=t;if(!Ce(t)||!$d(String(n)))do l=!Md(a)||So(a);while(l&&(a=a.__v_raw));this._shallow=l}get value(){let t=this._object[this._key];return this._shallow&&(t=s(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ht(this._raw[this._key])){const n=this._object[this._key];if(Ht(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return FT(this._raw,this._key)}}class sO{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 Dt(e,t,n){return Ht(e)?e:Ke(e)?new sO(e):rt(e)&&arguments.length>1?h1(e,t,n):A(e)}function h1(e,t,n){return new rO(e,t,n)}class iO{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Id(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ci-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&rn!==this)return t1(this,!0),!0}get value(){const t=this.dep.track();return l1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function uO(e,t,n=!1){let o,l;return Ke(e)?o=e:(o=e.get,l=e.set),new iO(o,l,n)}const Fu={},zc=new WeakMap;let Ua;function cO(e,t=!1,n=Ua){if(n){let o=zc.get(n);o||zc.set(n,o=[]),o.push(e)}}function dO(e,t,n=on){const{immediate:o,deep:l,once:a,scheduler:r,augmentJob:i,call:u}=n,c=y=>l?y:So(y)||l===!1||l===0?Bl(y,1):Bl(y);let d,f,v,p,m=!1,h=!1;if(Ht(e)?(f=()=>e.value,m=So(e)):zl(e)?(f=()=>c(e),m=!0):Ce(e)?(h=!0,m=e.some(y=>zl(y)||So(y)),f=()=>e.map(y=>{if(Ht(y))return y.value;if(zl(y))return c(y);if(Ke(y))return u?u(y,2):y()})):Ke(e)?t?f=u?()=>u(e,2):e:f=()=>{if(v){jl();try{v()}finally{Ul()}}const y=Ua;Ua=d;try{return u?u(e,3,[p]):e(p)}finally{Ua=y}}:f=Mt,t&&l){const y=f,k=l===!0?1/0:l;f=()=>Bl(y(),k)}const g=sh(),b=()=>{d.stop(),g&&g.active&&lh(g.effects,d)};if(a&&t){const y=t;t=(...k)=>{y(...k),b()}}let C=h?new Array(e.length).fill(Fu):Fu;const w=y=>{if(!(!(d.flags&1)||!d.dirty&&!y))if(t){const k=d.run();if(l||m||(h?k.some((E,_)=>Ra(E,C[_])):Ra(k,C))){v&&v();const E=Ua;Ua=d;try{const _=[k,C===Fu?void 0:h&&C[0]===Fu?[]:C,p];C=k,u?u(t,3,_):t(..._)}finally{Ua=E}}}else d.run()};return i&&i(w),d=new Qw(f),d.scheduler=r?()=>r(w,!1):w,p=y=>cO(y,!1,d),v=d.onStop=()=>{const y=zc.get(d);if(y){if(u)u(y,4);else for(const k of y)k();zc.delete(d)}},t?o?w(!0):C=d.run():r?r(w.bind(null,!0),!0):d.run(),b.pause=d.pause.bind(d),b.resume=d.resume.bind(d),b.stop=b,b}function Bl(e,t=1/0,n){if(t<=0||!rt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ht(e))Bl(e.value,t,n);else if(Ce(e))for(let o=0;o{Bl(o,t,n)});else if(wi(e)){for(const o in e)Bl(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&Bl(e[o],t,n)}return e}function nu(e,t,n,o){try{return o?e(...o):e()}catch(l){Ad(l,t,n)}}function Uo(e,t,n,o){if(Ke(e)){const l=nu(e,t,n,o);return l&&dr(l)&&l.catch(a=>{Ad(a,t,n)}),l}if(Ce(e)){const l=[];for(let a=0;a>>1,l=eo[o],a=ki(l);a=ki(n)?eo.push(e):eo.splice(pO(t),0,e),e.flags|=1,g1()}}function g1(){Hc||(Hc=m1.then(y1))}function vO(e){Ce(e)?qr.push(...e):ya&&e.id===-1?ya.splice(Dr+1,0,e):e.flags&1||(qr.push(e),e.flags|=1),g1()}function Eg(e,t,n=ul+1){for(;nki(n)-ki(o));if(qr.length=0,ya){ya.push(...t);return}for(ya=t,Dr=0;Dre.id==null?e.flags&2?-1:1/0:e.id;function y1(e){try{for(ul=0;ul{o._d&&Uc(-1);const a=Kc(t);let r;try{r=e(...l)}finally{Kc(a),o._d&&Uc(1)}return r};return o._n=!0,o._c=!0,o._d=!0,o}function it(e,t){if(An===null)return e;const n=zd(An),o=e.dirs||(e.dirs=[]);for(let l=0;le.__isTeleport,ri=e=>e&&(e.disabled||e.disabled===""),_g=e=>e&&(e.defer||e.defer===""),Tg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Og=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ip=(e,t)=>{const n=e&&e.to;return Ve(n)?t?t(n):null:n},k1={name:"Teleport",__isTeleport:!0,process(e,t,n,o,l,a,r,i,u,c){const{mc:d,pc:f,pbc:v,o:{insert:p,querySelector:m,createText:h,createComment:g}}=c,b=ri(t.props);let{shapeFlag:C,children:w,dynamicChildren:y}=t;if(e==null){const k=t.el=h(""),E=t.anchor=h("");p(k,n,o),p(E,n,o);const _=($,M)=>{C&16&&d(w,$,M,l,a,r,i,u)},I=()=>{const $=t.target=Ip(t.props,m),M=E1($,t,h,p);$&&(r!=="svg"&&Tg($)?r="svg":r!=="mathml"&&Og($)&&(r="mathml"),l&&l.isCE&&(l.ce._teleportTargets||(l.ce._teleportTargets=new Set)).add($),b||(_($,M),uc(t,!1)))};b&&(_(n,E),uc(t,!0)),_g(t.props)?(t.el.__isMounted=!1,Zn(()=>{I(),delete t.el.__isMounted},a)):I()}else{if(_g(t.props)&&e.el.__isMounted===!1){Zn(()=>{k1.process(e,t,n,o,l,a,r,i,u,c)},a);return}t.el=e.el,t.targetStart=e.targetStart;const k=t.anchor=e.anchor,E=t.target=e.target,_=t.targetAnchor=e.targetAnchor,I=ri(e.props),$=I?n:E,M=I?k:_;if(r==="svg"||Tg(E)?r="svg":(r==="mathml"||Og(E))&&(r="mathml"),y?(v(e.dynamicChildren,y,$,l,a,r,i),kh(e,t,!0)):u||f(e,t,$,M,l,a,r,i,!1),b)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Vu(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=Ip(t.props,m);T&&Vu(t,T,null,c,0)}else I&&Vu(t,E,_,c,1);uc(t,b)}},remove(e,t,n,{um:o,o:{remove:l}},a){const{shapeFlag:r,children:i,anchor:u,targetStart:c,targetAnchor:d,target:f,props:v}=e;if(f&&(l(c),l(d)),a&&l(u),r&16){const p=a||!ri(v);for(let m=0;m{e.isMounted=!0}),Pt(()=>{e.isUnmounting=!0}),e}const Oo=[Function,Array],T1={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Oo,onEnter:Oo,onAfterEnter:Oo,onEnterCancelled:Oo,onBeforeLeave:Oo,onLeave:Oo,onAfterLeave:Oo,onLeaveCancelled:Oo,onBeforeAppear:Oo,onAppear:Oo,onAfterAppear:Oo,onAppearCancelled:Oo},O1=e=>{const t=e.subTree;return t.component?O1(t.component):t},gO={name:"BaseTransition",props:T1,setup(e,{slots:t}){const n=dt(),o=_1();return()=>{const l=t.default&&hh(t.default(),!0);if(!l||!l.length)return;const a=$1(l),r=Kt(e),{mode:i}=r;if(o.isLeaving)return Bf(a);const u=$g(a);if(!u)return Bf(a);let c=Ei(u,r,o,n,f=>c=f);u.type!==un&&pr(u,c);let d=n.subTree&&$g(n.subTree);if(d&&d.type!==un&&!Ya(d,u)&&O1(n).type!==un){let f=Ei(d,r,o,n);if(pr(d,f),i==="out-in"&&u.type!==un)return o.isLeaving=!0,f.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Bf(a);i==="in-out"&&u.type!==un?f.delayLeave=(v,p,m)=>{const h=R1(o,d);h[String(d.key)]=d,v[Al]=()=>{p(),v[Al]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return a}}};function $1(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==un){t=n;break}}return t}const bO=gO;function R1(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ei(e,t,n,o,l){const{appear:a,mode:r,persisted:i=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:v,onLeave:p,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:b,onAfterAppear:C,onAppearCancelled:w}=t,y=String(e.key),k=R1(n,e),E=($,M)=>{$&&Uo($,o,9,M)},_=($,M)=>{const T=M[1];E($,M),Ce($)?$.every(N=>N.length<=1)&&T():$.length<=1&&T()},I={mode:r,persisted:i,beforeEnter($){let M=u;if(!n.isMounted)if(a)M=g||u;else return;$[Al]&&$[Al](!0);const T=k[y];T&&Ya(e,T)&&T.el[Al]&&T.el[Al](),E(M,[$])},enter($){let M=c,T=d,N=f;if(!n.isMounted)if(a)M=b||c,T=C||d,N=w||f;else return;let z=!1;const U=$[zu]=Y=>{z||(z=!0,Y?E(N,[$]):E(T,[$]),I.delayedLeave&&I.delayedLeave(),$[zu]=void 0)};M?_(M,[$,U]):U()},leave($,M){const T=String(e.key);if($[zu]&&$[zu](!0),n.isUnmounting)return M();E(v,[$]);let N=!1;const z=$[Al]=U=>{N||(N=!0,M(),U?E(h,[$]):E(m,[$]),$[Al]=void 0,k[T]===e&&delete k[T])};k[T]=e,p?_(p,[$,z]):z()},clone($){const M=Ei($,t,n,o,l);return l&&l(M),M}};return I}function Bf(e){if(Ld(e))return e=Yl(e),e.children=null,e}function $g(e){if(!Ld(e))return S1(e.type)&&e.children?$1(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Ke(n.default))return n.default()}}function pr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,pr(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 hh(e,t=!1,n){let o=[],l=0;for(let a=0;a1)for(let a=0;asi(m,t&&(Ce(t)?t[h]:t),n,o,l));return}if(Yr(o)&&!l){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&si(e,t,n,o.component.subTree);return}const a=o.shapeFlag&4?zd(o.component):o.el,r=l?null:a,{i,r:u}=e,c=t&&t.r,d=i.refs===on?i.refs={}:i.refs,f=i.setupState,v=Kt(f),p=f===on?jw:m=>Rt(v,m);if(c!=null&&c!==u){if(Rg(t),Ve(c))d[c]=null,p(c)&&(f[c]=null);else if(Ht(c)){c.value=null;const m=t;m.k&&(d[m.k]=null)}}if(Ke(u))nu(u,i,12,[r,d]);else{const m=Ve(u),h=Ht(u);if(m||h){const g=()=>{if(e.f){const b=m?p(u)?f[u]:d[u]:u.value;if(l)Ce(b)&&lh(b,a);else if(Ce(b))b.includes(a)||b.push(a);else if(m)d[u]=[a],p(u)&&(f[u]=d[u]);else{const C=[a];u.value=C,e.k&&(d[e.k]=C)}}else m?(d[u]=r,p(u)&&(f[u]=r)):h&&(u.value=r,e.k&&(d[e.k]=r))};if(r){const b=()=>{g(),Wc.delete(e)};b.id=-1,Wc.set(e,b),Zn(b,n)}else Rg(e),g()}}}function Rg(e){const t=Wc.get(e);t&&(t.flags|=8,Wc.delete(e))}Nd().requestIdleCallback;Nd().cancelIdleCallback;const Yr=e=>!!e.type.__asyncLoader,Ld=e=>e.type.__isKeepAlive;function Dd(e,t){x1(e,"a",t)}function I1(e,t){x1(e,"da",t)}function x1(e,t,n=Kn){const o=e.__wdc||(e.__wdc=()=>{let l=n;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(Bd(t,o,n),n){let l=n.parent;for(;l&&l.parent;)Ld(l.parent.vnode)&&yO(o,t,n,l),l=l.parent}}function yO(e,t,n,o){const l=Bd(t,e,o,!0);Es(()=>{lh(o[t],l)},n)}function Bd(e,t,n=Kn,o=!1){if(n){const l=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{jl();const i=ou(n),u=Uo(t,n,e,r);return i(),Ul(),u});return o?l.unshift(a):l.push(a),a}}const na=e=>(t,n=Kn)=>{(!Ti||e==="sp")&&Bd(e,(...o)=>t(...o),n)},Fd=na("bm"),pt=na("m"),mh=na("bu"),Qo=na("u"),Pt=na("bum"),Es=na("um"),wO=na("sp"),CO=na("rtg"),SO=na("rtc");function kO(e,t=Kn){Bd("ec",e,t)}const gh="components",EO="directives";function wt(e,t){return yh(gh,e,!0,t)||e}const P1=Symbol.for("v-ndc");function ut(e){return Ve(e)?yh(gh,e,!1)||e:e||P1}function bh(e){return yh(EO,e)}function yh(e,t,n=!0,o=!1){const l=An||Kn;if(l){const a=l.type;if(e===gh){const i=c$(a,!1);if(i&&(i===t||i===no(t)||i===tu(no(t))))return a}const r=Ng(l[e]||a[e],t)||Ng(l.appContext[e],t);return!r&&o?a:r}}function Ng(e,t){return e&&(e[t]||e[no(t)]||e[tu(no(t))])}function gt(e,t,n,o){let l;const a=n,r=Ce(e);if(r||Ve(e)){const i=r&&zl(e);let u=!1,c=!1;i&&(u=!So(e),c=ql(e),e=xd(e)),l=new Array(e.length);for(let d=0,f=e.length;dt(i,u,void 0,a));else{const i=Object.keys(e);l=new Array(i.length);for(let u=0,c=i.length;u{const a=o.fn(...l);return a&&(a.key=o.key),a}:o.fn)}return e}function ae(e,t,n={},o,l){if(An.ce||An.parent&&Yr(An.parent)&&An.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),O(),ie(ze,null,[G("slot",n,o&&o())],c?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),O();const r=a&&M1(a(n)),i=n.key||r&&r.key,u=ie(ze,{key:(i&&!Wo(i)?i:`_${t}`)+(!r&&o?"_fb":"")},r||(o?o():[]),r&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),a&&a._c&&(a._d=!0),u}function M1(e){return e.some(t=>Wt(t)?!(t.type===un||t.type===ze&&!M1(t.children)):!0)?e:null}function _O(e,t){const n={};for(const o in e)n[oi(o)]=e[o];return n}const xp=e=>e?Q1(e)?zd(e):xp(e.parent):null,ii=Tn(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=>xp(e.parent),$root:e=>xp(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>D1(e),$forceUpdate:e=>e.f||(e.f=()=>{vh(e.update)}),$nextTick:e=>e.n||(e.n=Me.bind(e.proxy)),$watch:e=>DO.bind(e)}),Ff=(e,t)=>e!==on&&!e.__isScriptSetup&&Rt(e,t),TO={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:l,props:a,accessCache:r,type:i,appContext:u}=e;if(t[0]!=="$"){const v=r[t];if(v!==void 0)switch(v){case 1:return o[t];case 2:return l[t];case 4:return n[t];case 3:return a[t]}else{if(Ff(o,t))return r[t]=1,o[t];if(l!==on&&Rt(l,t))return r[t]=2,l[t];if(Rt(a,t))return r[t]=3,a[t];if(n!==on&&Rt(n,t))return r[t]=4,n[t];Pp&&(r[t]=0)}}const c=ii[t];let d,f;if(c)return t==="$attrs"&&Hn(e.attrs,"get",""),c(e);if((d=i.__cssModules)&&(d=d[t]))return d;if(n!==on&&Rt(n,t))return r[t]=4,n[t];if(f=u.config.globalProperties,Rt(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:l,ctx:a}=e;return Ff(l,t)?(l[t]=n,!0):o!==on&&Rt(o,t)?(o[t]=n,!0):Rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:l,props:a,type:r}},i){let u;return!!(n[i]||e!==on&&i[0]!=="$"&&Rt(e,i)||Ff(t,i)||Rt(a,i)||Rt(o,i)||Rt(ii,i)||Rt(l.config.globalProperties,i)||(u=r.__cssModules)&&u[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Rt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(){return A1().slots}function oa(){return A1().attrs}function A1(e){const t=dt();return t.setupContext||(t.setupContext=tC(t))}function Ig(e){return Ce(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Pp=!0;function OO(e){const t=D1(e),n=e.proxy,o=e.ctx;Pp=!1,t.beforeCreate&&xg(t.beforeCreate,e,"bc");const{data:l,computed:a,methods:r,watch:i,provide:u,inject:c,created:d,beforeMount:f,mounted:v,beforeUpdate:p,updated:m,activated:h,deactivated:g,beforeDestroy:b,beforeUnmount:C,destroyed:w,unmounted:y,render:k,renderTracked:E,renderTriggered:_,errorCaptured:I,serverPrefetch:$,expose:M,inheritAttrs:T,components:N,directives:z,filters:U}=t;if(c&&$O(c,o,null),r)for(const R in r){const L=r[R];Ke(L)&&(o[R]=L.bind(n))}if(l){const R=l.call(n,n);rt(R)&&(e.data=It(R))}if(Pp=!0,a)for(const R in a){const L=a[R],V=Ke(L)?L.bind(n,n):Ke(L.get)?L.get.bind(n,n):Mt,D=!Ke(L)&&Ke(L.set)?L.set.bind(n):Mt,K=S({get:V,set:D});Object.defineProperty(o,R,{enumerable:!0,configurable:!0,get:()=>K.value,set:B=>K.value=B})}if(i)for(const R in i)L1(i[R],o,n,R);if(u){const R=Ke(u)?u.call(n):u;Reflect.ownKeys(R).forEach(L=>{bt(L,R[L])})}d&&xg(d,e,"c");function P(R,L){Ce(L)?L.forEach(V=>R(V.bind(n))):L&&R(L.bind(n))}if(P(Fd,f),P(pt,v),P(mh,p),P(Qo,m),P(Dd,h),P(I1,g),P(kO,I),P(SO,E),P(CO,_),P(Pt,C),P(Es,y),P(wO,$),Ce(M))if(M.length){const R=e.exposed||(e.exposed={});M.forEach(L=>{Object.defineProperty(R,L,{get:()=>n[L],set:V=>n[L]=V,enumerable:!0})})}else e.exposed||(e.exposed={});k&&e.render===Mt&&(e.render=k),T!=null&&(e.inheritAttrs=T),N&&(e.components=N),z&&(e.directives=z),$&&N1(e)}function $O(e,t,n=Mt){Ce(e)&&(e=Mp(e));for(const o in e){const l=e[o];let a;rt(l)?"default"in l?a=Pe(l.from||o,l.default,!0):a=Pe(l.from||o):a=Pe(l),Ht(a)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>a.value,set:r=>a.value=r}):t[o]=a}}function xg(e,t,n){Uo(Ce(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function L1(e,t,n,o){let l=o.includes(".")?F1(n,o):()=>n[o];if(Ve(e)){const a=t[e];Ke(a)&&fe(l,a)}else if(Ke(e))fe(l,e.bind(n));else if(rt(e))if(Ce(e))e.forEach(a=>L1(a,t,n,o));else{const a=Ke(e.handler)?e.handler.bind(n):t[e.handler];Ke(a)&&fe(l,a,e)}}function D1(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:l,optionsCache:a,config:{optionMergeStrategies:r}}=e.appContext,i=a.get(t);let u;return i?u=i:!l.length&&!n&&!o?u=t:(u={},l.length&&l.forEach(c=>jc(u,c,r,!0)),jc(u,t,r)),rt(t)&&a.set(t,u),u}function jc(e,t,n,o=!1){const{mixins:l,extends:a}=t;a&&jc(e,a,n,!0),l&&l.forEach(r=>jc(e,r,n,!0));for(const r in t)if(!(o&&r==="expose")){const i=RO[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const RO={data:Pg,props:Mg,emits:Mg,methods:Js,computed:Js,beforeCreate:Jn,created:Jn,beforeMount:Jn,mounted:Jn,beforeUpdate:Jn,updated:Jn,beforeDestroy:Jn,beforeUnmount:Jn,destroyed:Jn,unmounted:Jn,activated:Jn,deactivated:Jn,errorCaptured:Jn,serverPrefetch:Jn,components:Js,directives:Js,watch:IO,provide:Pg,inject:NO};function Pg(e,t){return t?e?function(){return Tn(Ke(e)?e.call(this,this):e,Ke(t)?t.call(this,this):t)}:t:e}function NO(e,t){return Js(Mp(e),Mp(t))}function Mp(e){if(Ce(e)){const t={};for(let n=0;n1)return n&&Ke(t)?t.call(o&&o.proxy):t}}function MO(){return!!(dt()||rr)}const AO=Symbol.for("v-scx"),LO=()=>Pe(AO);function Eo(e,t){return wh(e,null,t)}function fe(e,t,n){return wh(e,t,n)}function wh(e,t,n=on){const{immediate:o,deep:l,flush:a,once:r}=n,i=Tn({},n),u=t&&o||!t&&a!=="post";let c;if(Ti){if(a==="sync"){const p=LO();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!u){const p=()=>{};return p.stop=Mt,p.resume=Mt,p.pause=Mt,p}}const d=Kn;i.call=(p,m,h)=>Uo(p,d,m,h);let f=!1;a==="post"?i.scheduler=p=>{Zn(p,d&&d.suspense)}:a!=="sync"&&(f=!0,i.scheduler=(p,m)=>{m?p():vh(p)}),i.augmentJob=p=>{t&&(p.flags|=4),f&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const v=dO(e,t,i);return Ti&&(c?c.push(v):u&&v()),v}function DO(e,t,n){const o=this.proxy,l=Ve(e)?e.includes(".")?F1(o,e):()=>o[e]:e.bind(o,o);let a;Ke(t)?a=t:(a=t.handler,n=t);const r=ou(this),i=wh(l,a.bind(o),n);return r(),i}function F1(e,t){const n=t.split(".");return()=>{let o=e;for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${no(t)}Modifiers`]||e[`${ta(t)}Modifiers`];function FO(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||on;let l=n;const a=t.startsWith("update:"),r=a&&BO(o,t.slice(7));r&&(r.trim&&(l=n.map(d=>Ve(d)?d.trim():d)),r.number&&(l=n.map(ah)));let i,u=o[i=oi(t)]||o[i=oi(no(t))];!u&&a&&(u=o[i=oi(ta(t))]),u&&Uo(u,e,6,l);const c=o[i+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Uo(c,e,6,l)}}const VO=new WeakMap;function V1(e,t,n=!1){const o=n?VO:t.emitsCache,l=o.get(e);if(l!==void 0)return l;const a=e.emits;let r={},i=!1;if(!Ke(e)){const u=c=>{const d=V1(c,t,!0);d&&(i=!0,Tn(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!a&&!i?(rt(e)&&o.set(e,null),null):(Ce(a)?a.forEach(u=>r[u]=null):Tn(r,a),rt(e)&&o.set(e,r),r)}function Vd(e,t){return!e||!Td(t)?!1:(t=t.slice(2).replace(/Once$/,""),Rt(e,t[0].toLowerCase()+t.slice(1))||Rt(e,ta(t))||Rt(e,t))}function Ag(e){const{type:t,vnode:n,proxy:o,withProxy:l,propsOptions:[a],slots:r,attrs:i,emit:u,render:c,renderCache:d,props:f,data:v,setupState:p,ctx:m,inheritAttrs:h}=e,g=Kc(e);let b,C;try{if(n.shapeFlag&4){const y=l||o,k=y;b=cl(c.call(k,y,d,f,p,v,m)),C=i}else{const y=t;b=cl(y.length>1?y(f,{attrs:i,slots:r,emit:u}):y(f,null)),C=t.props?i:zO(i)}}catch(y){ui.length=0,Ad(y,e,1),b=G(un)}let w=b;if(C&&h!==!1){const y=Object.keys(C),{shapeFlag:k}=w;y.length&&k&7&&(a&&y.some(oh)&&(C=HO(C,a)),w=Yl(w,C,!1,!0))}return n.dirs&&(w=Yl(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&pr(w,n.transition),b=w,Kc(g),b}const zO=e=>{let t;for(const n in e)(n==="class"||n==="style"||Td(n))&&((t||(t={}))[n]=e[n]);return t},HO=(e,t)=>{const n={};for(const o in e)(!oh(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function KO(e,t,n){const{props:o,children:l,component:a}=e,{props:r,children:i,patchFlag:u}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return o?Lg(o,r,c):!!r;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(z1),K1=e=>Object.getPrototypeOf(e)===z1;function jO(e,t,n,o=!1){const l={},a=H1();e.propsDefaults=Object.create(null),W1(e,t,l,a);for(const r in e.propsOptions[0])r in l||(l[r]=void 0);n?e.props=o?l:Pd(l):e.type.props?e.props=l:e.props=a,e.attrs=a}function UO(e,t,n,o){const{props:l,attrs:a,vnode:{patchFlag:r}}=e,i=Kt(l),[u]=e.propsOptions;let c=!1;if((o||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[v,p]=j1(f,t,!0);Tn(r,v),p&&i.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!a&&!u)return rt(e)&&o.set(e,jr),jr;if(Ce(a))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Sh=e=>Ce(e)?e.map(cl):[cl(e)],YO=(e,t,n)=>{if(t._n)return t;const o=te((...l)=>Sh(t(...l)),n);return o._c=!1,o},U1=(e,t,n)=>{const o=e._ctx;for(const l in e){if(Ch(l))continue;const a=e[l];if(Ke(a))t[l]=YO(l,a,o);else if(a!=null){const r=Sh(a);t[l]=()=>r}}},q1=(e,t)=>{const n=Sh(t);e.slots.default=()=>n},Y1=(e,t,n)=>{for(const o in t)(n||!Ch(o))&&(e[o]=t[o])},GO=(e,t,n)=>{const o=e.slots=H1();if(e.vnode.shapeFlag&32){const l=t._;l?(Y1(o,t,n),n&&qw(o,"_",l,!0)):U1(t,o)}else t&&q1(e,t)},XO=(e,t,n)=>{const{vnode:o,slots:l}=e;let a=!0,r=on;if(o.shapeFlag&32){const i=t._;i?n&&i===1?a=!1:Y1(l,t,n):(a=!t.$stable,U1(t,l)),r=t}else t&&(q1(e,t),r={default:1});if(a)for(const i in l)!Ch(i)&&r[i]==null&&delete l[i]},Zn=t$;function JO(e){return ZO(e)}function ZO(e,t){const n=Nd();n.__VUE__=!0;const{insert:o,remove:l,patchProp:a,createElement:r,createText:i,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:v,setScopeId:p=Mt,insertStaticContent:m}=e,h=(H,Z,ue,pe=null,ve=null,he=null,xe=void 0,_e=null,De=!!Z.dynamicChildren)=>{if(H===Z)return;H&&!Ya(H,Z)&&(pe=ee(H),B(H,ve,he,!0),H=null),Z.patchFlag===-2&&(De=!1,Z.dynamicChildren=null);const{type:ye,ref:Ie,shapeFlag:Re}=Z;switch(ye){case _s:g(H,Z,ue,pe);break;case un:b(H,Z,ue,pe);break;case zf:H==null&&C(Z,ue,pe,xe);break;case ze:N(H,Z,ue,pe,ve,he,xe,_e,De);break;default:Re&1?k(H,Z,ue,pe,ve,he,xe,_e,De):Re&6?z(H,Z,ue,pe,ve,he,xe,_e,De):(Re&64||Re&128)&&ye.process(H,Z,ue,pe,ve,he,xe,_e,De,Q)}Ie!=null&&ve?si(Ie,H&&H.ref,he,Z||H,!Z):Ie==null&&H&&H.ref!=null&&si(H.ref,null,he,H,!0)},g=(H,Z,ue,pe)=>{if(H==null)o(Z.el=i(Z.children),ue,pe);else{const ve=Z.el=H.el;Z.children!==H.children&&c(ve,Z.children)}},b=(H,Z,ue,pe)=>{H==null?o(Z.el=u(Z.children||""),ue,pe):Z.el=H.el},C=(H,Z,ue,pe)=>{[H.el,H.anchor]=m(H.children,Z,ue,pe,H.el,H.anchor)},w=({el:H,anchor:Z},ue,pe)=>{let ve;for(;H&&H!==Z;)ve=v(H),o(H,ue,pe),H=ve;o(Z,ue,pe)},y=({el:H,anchor:Z})=>{let ue;for(;H&&H!==Z;)ue=v(H),l(H),H=ue;l(Z)},k=(H,Z,ue,pe,ve,he,xe,_e,De)=>{if(Z.type==="svg"?xe="svg":Z.type==="math"&&(xe="mathml"),H==null)E(Z,ue,pe,ve,he,xe,_e,De);else{const ye=H.el&&H.el._isVueCE?H.el:null;try{ye&&ye._beginPatch(),$(H,Z,ve,he,xe,_e,De)}finally{ye&&ye._endPatch()}}},E=(H,Z,ue,pe,ve,he,xe,_e)=>{let De,ye;const{props:Ie,shapeFlag:Re,transition:Le,dirs:He}=H;if(De=H.el=r(H.type,he,Ie&&Ie.is,Ie),Re&8?d(De,H.children):Re&16&&I(H.children,De,null,pe,ve,Vf(H,he),xe,_e),He&&Ha(H,null,pe,"created"),_(De,H,H.scopeId,xe,pe),Ie){for(const We in Ie)We!=="value"&&!ni(We)&&a(De,We,null,Ie[We],he,pe);"value"in Ie&&a(De,"value",null,Ie.value,he),(ye=Ie.onVnodeBeforeMount)&&rl(ye,pe,H)}He&&Ha(H,null,pe,"beforeMount");const me=QO(ve,Le);me&&Le.beforeEnter(De),o(De,Z,ue),((ye=Ie&&Ie.onVnodeMounted)||me||He)&&Zn(()=>{ye&&rl(ye,pe,H),me&&Le.enter(De),He&&Ha(H,null,pe,"mounted")},ve)},_=(H,Z,ue,pe,ve)=>{if(ue&&p(H,ue),pe)for(let he=0;he{for(let ye=De;ye{const _e=Z.el=H.el;let{patchFlag:De,dynamicChildren:ye,dirs:Ie}=Z;De|=H.patchFlag&16;const Re=H.props||on,Le=Z.props||on;let He;if(ue&&Ka(ue,!1),(He=Le.onVnodeBeforeUpdate)&&rl(He,ue,Z,H),Ie&&Ha(Z,H,ue,"beforeUpdate"),ue&&Ka(ue,!0),(Re.innerHTML&&Le.innerHTML==null||Re.textContent&&Le.textContent==null)&&d(_e,""),ye?M(H.dynamicChildren,ye,_e,ue,pe,Vf(Z,ve),he):xe||L(H,Z,_e,null,ue,pe,Vf(Z,ve),he,!1),De>0){if(De&16)T(_e,Re,Le,ue,ve);else if(De&2&&Re.class!==Le.class&&a(_e,"class",null,Le.class,ve),De&4&&a(_e,"style",Re.style,Le.style,ve),De&8){const me=Z.dynamicProps;for(let We=0;We{He&&rl(He,ue,Z,H),Ie&&Ha(Z,H,ue,"updated")},pe)},M=(H,Z,ue,pe,ve,he,xe)=>{for(let _e=0;_e{if(Z!==ue){if(Z!==on)for(const he in Z)!ni(he)&&!(he in ue)&&a(H,he,Z[he],null,ve,pe);for(const he in ue){if(ni(he))continue;const xe=ue[he],_e=Z[he];xe!==_e&&he!=="value"&&a(H,he,_e,xe,ve,pe)}"value"in ue&&a(H,"value",Z.value,ue.value,ve)}},N=(H,Z,ue,pe,ve,he,xe,_e,De)=>{const ye=Z.el=H?H.el:i(""),Ie=Z.anchor=H?H.anchor:i("");let{patchFlag:Re,dynamicChildren:Le,slotScopeIds:He}=Z;He&&(_e=_e?_e.concat(He):He),H==null?(o(ye,ue,pe),o(Ie,ue,pe),I(Z.children||[],ue,Ie,ve,he,xe,_e,De)):Re>0&&Re&64&&Le&&H.dynamicChildren?(M(H.dynamicChildren,Le,ue,ve,he,xe,_e),(Z.key!=null||ve&&Z===ve.subTree)&&kh(H,Z,!0)):L(H,Z,ue,Ie,ve,he,xe,_e,De)},z=(H,Z,ue,pe,ve,he,xe,_e,De)=>{Z.slotScopeIds=_e,H==null?Z.shapeFlag&512?ve.ctx.activate(Z,ue,pe,xe,De):U(Z,ue,pe,ve,he,xe,De):Y(H,Z,De)},U=(H,Z,ue,pe,ve,he,xe)=>{const _e=H.component=r$(H,pe,ve);if(Ld(H)&&(_e.ctx.renderer=Q),s$(_e,!1,xe),_e.asyncDep){if(ve&&ve.registerDep(_e,P,xe),!H.el){const De=_e.subTree=G(un);b(null,De,Z,ue),H.placeholder=De.el}}else P(_e,H,Z,ue,ve,he,xe)},Y=(H,Z,ue)=>{const pe=Z.component=H.component;if(KO(H,Z,ue))if(pe.asyncDep&&!pe.asyncResolved){R(pe,Z,ue);return}else pe.next=Z,pe.update();else Z.el=H.el,pe.vnode=Z},P=(H,Z,ue,pe,ve,he,xe)=>{const _e=()=>{if(H.isMounted){let{next:Re,bu:Le,u:He,parent:me,vnode:We}=H;{const ot=G1(H);if(ot){Re&&(Re.el=We.el,R(H,Re,xe)),ot.asyncDep.then(()=>{H.isUnmounted||_e()});return}}let Be=Re,Ct;Ka(H,!1),Re?(Re.el=We.el,R(H,Re,xe)):Re=We,Le&&sc(Le),(Ct=Re.props&&Re.props.onVnodeBeforeUpdate)&&rl(Ct,me,Re,We),Ka(H,!0);const Et=Ag(H),Xe=H.subTree;H.subTree=Et,h(Xe,Et,f(Xe.el),ee(Xe),H,ve,he),Re.el=Et.el,Be===null&&WO(H,Et.el),He&&Zn(He,ve),(Ct=Re.props&&Re.props.onVnodeUpdated)&&Zn(()=>rl(Ct,me,Re,We),ve)}else{let Re;const{el:Le,props:He}=Z,{bm:me,m:We,parent:Be,root:Ct,type:Et}=H,Xe=Yr(Z);Ka(H,!1),me&&sc(me),!Xe&&(Re=He&&He.onVnodeBeforeMount)&&rl(Re,Be,Z),Ka(H,!0);{Ct.ce&&Ct.ce._def.shadowRoot!==!1&&Ct.ce._injectChildStyle(Et);const ot=H.subTree=Ag(H);h(null,ot,ue,pe,H,ve,he),Z.el=ot.el}if(We&&Zn(We,ve),!Xe&&(Re=He&&He.onVnodeMounted)){const ot=Z;Zn(()=>rl(Re,Be,ot),ve)}(Z.shapeFlag&256||Be&&Yr(Be.vnode)&&Be.vnode.shapeFlag&256)&&H.a&&Zn(H.a,ve),H.isMounted=!0,Z=ue=pe=null}};H.scope.on();const De=H.effect=new Qw(_e);H.scope.off();const ye=H.update=De.run.bind(De),Ie=H.job=De.runIfDirty.bind(De);Ie.i=H,Ie.id=H.uid,De.scheduler=()=>vh(Ie),Ka(H,!0),ye()},R=(H,Z,ue)=>{Z.component=H;const pe=H.vnode.props;H.vnode=Z,H.next=null,UO(H,Z.props,pe,ue),XO(H,Z.children,ue),jl(),Eg(H),Ul()},L=(H,Z,ue,pe,ve,he,xe,_e,De=!1)=>{const ye=H&&H.children,Ie=H?H.shapeFlag:0,Re=Z.children,{patchFlag:Le,shapeFlag:He}=Z;if(Le>0){if(Le&128){D(ye,Re,ue,pe,ve,he,xe,_e,De);return}else if(Le&256){V(ye,Re,ue,pe,ve,he,xe,_e,De);return}}He&8?(Ie&16&&ce(ye,ve,he),Re!==ye&&d(ue,Re)):Ie&16?He&16?D(ye,Re,ue,pe,ve,he,xe,_e,De):ce(ye,ve,he,!0):(Ie&8&&d(ue,""),He&16&&I(Re,ue,pe,ve,he,xe,_e,De))},V=(H,Z,ue,pe,ve,he,xe,_e,De)=>{H=H||jr,Z=Z||jr;const ye=H.length,Ie=Z.length,Re=Math.min(ye,Ie);let Le;for(Le=0;LeIe?ce(H,ve,he,!0,!1,Re):I(Z,ue,pe,ve,he,xe,_e,De,Re)},D=(H,Z,ue,pe,ve,he,xe,_e,De)=>{let ye=0;const Ie=Z.length;let Re=H.length-1,Le=Ie-1;for(;ye<=Re&&ye<=Le;){const He=H[ye],me=Z[ye]=De?wa(Z[ye]):cl(Z[ye]);if(Ya(He,me))h(He,me,ue,null,ve,he,xe,_e,De);else break;ye++}for(;ye<=Re&&ye<=Le;){const He=H[Re],me=Z[Le]=De?wa(Z[Le]):cl(Z[Le]);if(Ya(He,me))h(He,me,ue,null,ve,he,xe,_e,De);else break;Re--,Le--}if(ye>Re){if(ye<=Le){const He=Le+1,me=HeLe)for(;ye<=Re;)B(H[ye],ve,he,!0),ye++;else{const He=ye,me=ye,We=new Map;for(ye=me;ye<=Le;ye++){const Ue=Z[ye]=De?wa(Z[ye]):cl(Z[ye]);Ue.key!=null&&We.set(Ue.key,ye)}let Be,Ct=0;const Et=Le-me+1;let Xe=!1,ot=0;const ct=new Array(Et);for(ye=0;ye=Et){B(Ue,ve,he,!0);continue}let de;if(Ue.key!=null)de=We.get(Ue.key);else for(Be=me;Be<=Le;Be++)if(ct[Be-me]===0&&Ya(Ue,Z[Be])){de=Be;break}de===void 0?B(Ue,ve,he,!0):(ct[de-me]=ye+1,de>=ot?ot=de:Xe=!0,h(Ue,Z[de],ue,null,ve,he,xe,_e,De),Ct++)}const be=Xe?e$(ct):jr;for(Be=be.length-1,ye=Et-1;ye>=0;ye--){const Ue=me+ye,de=Z[Ue],qe=Z[Ue+1],yt=Ue+1{const{el:he,type:xe,transition:_e,children:De,shapeFlag:ye}=H;if(ye&6){K(H.component.subTree,Z,ue,pe);return}if(ye&128){H.suspense.move(Z,ue,pe);return}if(ye&64){xe.move(H,Z,ue,Q);return}if(xe===ze){o(he,Z,ue);for(let Re=0;Re_e.enter(he),ve);else{const{leave:Re,delayLeave:Le,afterLeave:He}=_e,me=()=>{H.ctx.isUnmounted?l(he):o(he,Z,ue)},We=()=>{he._isLeaving&&he[Al](!0),Re(he,()=>{me(),He&&He()})};Le?Le(he,me,We):We()}else o(he,Z,ue)},B=(H,Z,ue,pe=!1,ve=!1)=>{const{type:he,props:xe,ref:_e,children:De,dynamicChildren:ye,shapeFlag:Ie,patchFlag:Re,dirs:Le,cacheIndex:He}=H;if(Re===-2&&(ve=!1),_e!=null&&(jl(),si(_e,null,ue,H,!0),Ul()),He!=null&&(Z.renderCache[He]=void 0),Ie&256){Z.ctx.deactivate(H);return}const me=Ie&1&&Le,We=!Yr(H);let Be;if(We&&(Be=xe&&xe.onVnodeBeforeUnmount)&&rl(Be,Z,H),Ie&6)oe(H.component,ue,pe);else{if(Ie&128){H.suspense.unmount(ue,pe);return}me&&Ha(H,null,Z,"beforeUnmount"),Ie&64?H.type.remove(H,Z,ue,Q,pe):ye&&!ye.hasOnce&&(he!==ze||Re>0&&Re&64)?ce(ye,Z,ue,!1,!0):(he===ze&&Re&384||!ve&&Ie&16)&&ce(De,Z,ue),pe&&j(H)}(We&&(Be=xe&&xe.onVnodeUnmounted)||me)&&Zn(()=>{Be&&rl(Be,Z,H),me&&Ha(H,null,Z,"unmounted")},ue)},j=H=>{const{type:Z,el:ue,anchor:pe,transition:ve}=H;if(Z===ze){ne(ue,pe);return}if(Z===zf){y(H);return}const he=()=>{l(ue),ve&&!ve.persisted&&ve.afterLeave&&ve.afterLeave()};if(H.shapeFlag&1&&ve&&!ve.persisted){const{leave:xe,delayLeave:_e}=ve,De=()=>xe(ue,he);_e?_e(H.el,he,De):De()}else he()},ne=(H,Z)=>{let ue;for(;H!==Z;)ue=v(H),l(H),H=ue;l(Z)},oe=(H,Z,ue)=>{const{bum:pe,scope:ve,job:he,subTree:xe,um:_e,m:De,a:ye}=H;Bg(De),Bg(ye),pe&&sc(pe),ve.stop(),he&&(he.flags|=8,B(xe,H,Z,ue)),_e&&Zn(_e,Z),Zn(()=>{H.isUnmounted=!0},Z)},ce=(H,Z,ue,pe=!1,ve=!1,he=0)=>{for(let xe=he;xe{if(H.shapeFlag&6)return ee(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Z=v(H.anchor||H.el),ue=Z&&Z[C1];return ue?v(ue):Z};let se=!1;const X=(H,Z,ue)=>{H==null?Z._vnode&&B(Z._vnode,null,null,!0):h(Z._vnode||null,H,Z,null,null,null,ue),Z._vnode=H,se||(se=!0,Eg(),b1(),se=!1)},Q={p:h,um:B,m:K,r:j,mt:U,mc:I,pc:L,pbc:M,n:ee,o:e};return{render:X,hydrate:void 0,createApp:PO(X)}}function Vf({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 Ka({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function QO(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function kh(e,t,n=!1){const o=e.children,l=t.children;if(Ce(o)&&Ce(l))for(let a=0;a>1,e[n[i]]0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,r=n[a-1];a-- >0;)n[a]=r,r=t[r];return n}function G1(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:G1(t)}function Bg(e){if(e)for(let t=0;te.__isSuspense;function t$(e,t){t&&t.pendingBranch?Ce(e)?t.effects.push(...e):t.effects.push(e):vO(e)}const ze=Symbol.for("v-fgt"),_s=Symbol.for("v-txt"),un=Symbol.for("v-cmt"),zf=Symbol.for("v-stc"),ui=[];let wo=null;function O(e=!1){ui.push(wo=e?null:[])}function n$(){ui.pop(),wo=ui[ui.length-1]||null}let _i=1;function Uc(e,t=!1){_i+=e,e<0&&wo&&t&&(wo.hasOnce=!0)}function J1(e){return e.dynamicChildren=_i>0?wo||jr:null,n$(),_i>0&&wo&&wo.push(e),e}function F(e,t,n,o,l,a){return J1(W(e,t,n,o,l,a,!0))}function ie(e,t,n,o,l){return J1(G(e,t,n,o,l,!0))}function Wt(e){return e?e.__v_isVNode===!0:!1}function Ya(e,t){return e.type===t.type&&e.key===t.key}const Z1=({key:e})=>e??null,cc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ve(e)||Ht(e)||Ke(e)?{i:An,r:e,k:t,f:!!n}:e:null);function W(e,t=null,n=null,o=0,l=null,a=e===ze?0:1,r=!1,i=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Z1(t),ref:t&&cc(t),scopeId:w1,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:a,patchFlag:o,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:An};return i?(Eh(u,n),a&128&&e.normalize(u)):n&&(u.shapeFlag|=Ve(n)?8:16),_i>0&&!r&&wo&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&wo.push(u),u}const G=o$;function o$(e,t=null,n=null,o=0,l=null,a=!1){if((!e||e===P1)&&(e=un),Wt(e)){const i=Yl(e,t,!0);return n&&Eh(i,n),_i>0&&!a&&wo&&(i.shapeFlag&6?wo[wo.indexOf(e)]=i:wo.push(i)),i.patchFlag=-2,i}if(d$(e)&&(e=e.__vccOpts),t){t=fl(t);let{class:i,style:u}=t;i&&!Ve(i)&&(t.class=x(i)),rt(u)&&(Md(u)&&!Ce(u)&&(u=Tn({},u)),t.style=je(u))}const r=Ve(e)?1:X1(e)?128:S1(e)?64:rt(e)?4:Ke(e)?2:0;return W(e,t,n,o,l,r,a,!0)}function fl(e){return e?Md(e)||K1(e)?Tn({},e):e:null}function Yl(e,t,n=!1,o=!1){const{props:l,ref:a,patchFlag:r,children:i,transition:u}=e,c=t?ft(l||{},t):l,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Z1(c),ref:t&&t.ref?n&&a?Ce(a)?a.concat(cc(t)):[a,cc(t)]:cc(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ze?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yl(e.ssContent),ssFallback:e.ssFallback&&Yl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&o&&pr(d,u.clone(d)),d}function vt(e=" ",t=0){return G(_s,null,e,t)}function re(e="",t=!1){return t?(O(),ie(un,null,e)):G(un,null,e)}function cl(e){return e==null||typeof e=="boolean"?G(un):Ce(e)?G(ze,null,e.slice()):Wt(e)?wa(e):G(_s,null,String(e))}function wa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yl(e)}function Eh(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(Ce(t))n=16;else if(typeof t=="object")if(o&65){const l=t.default;l&&(l._c&&(l._d=!1),Eh(e,l()),l._c&&(l._d=!0));return}else{n=32;const l=t._;!l&&!K1(t)?t._ctx=An:l===3&&An&&(An.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ke(t)?(t={default:t,_ctx:An},n=32):(t=String(t),o&64?(n=16,t=[vt(t)]):n=8);e.children=t,e.shapeFlag|=n}function ft(...e){const t={};for(let n=0;nKn||An;let qc,Lp;{const e=Nd(),t=(n,o)=>{let l;return(l=e[n])||(l=e[n]=[]),l.push(o),a=>{l.length>1?l.forEach(r=>r(a)):l[0](a)}};qc=t("__VUE_INSTANCE_SETTERS__",n=>Kn=n),Lp=t("__VUE_SSR_SETTERS__",n=>Ti=n)}const ou=e=>{const t=Kn;return qc(e),e.scope.on(),()=>{e.scope.off(),qc(t)}},Fg=()=>{Kn&&Kn.scope.off(),qc(null)};function Q1(e){return e.vnode.shapeFlag&4}let Ti=!1;function s$(e,t=!1,n=!1){t&&Lp(t);const{props:o,children:l}=e.vnode,a=Q1(e);jO(e,o,a,t),GO(e,l,n||t);const r=a?i$(e,t):void 0;return t&&Lp(!1),r}function i$(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,TO);const{setup:o}=n;if(o){jl();const l=e.setupContext=o.length>1?tC(e):null,a=ou(e),r=nu(o,e,0,[e.props,l]),i=dr(r);if(Ul(),a(),(i||e.sp)&&!Yr(e)&&N1(e),i){if(r.then(Fg,Fg),t)return r.then(u=>{Vg(e,u)}).catch(u=>{Ad(u,e,0)});e.asyncDep=r}else Vg(e,r)}else eC(e)}function Vg(e,t,n){Ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:rt(t)&&(e.setupState=v1(t)),eC(e)}function eC(e,t,n){const o=e.type;e.render||(e.render=o.render||Mt);{const l=ou(e);jl();try{OO(e)}finally{Ul(),l()}}}const u$={get(e,t){return Hn(e,"get",""),e[t]}};function tC(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,u$),slots:e.slots,emit:e.emit,expose:t}}function zd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(v1(zo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ii)return ii[n](e)},has(t,n){return n in t||n in ii}})):e.proxy}function c$(e,t=!0){return Ke(e)?e.displayName||e.name:e.name||t&&e.__name}function d$(e){return Ke(e)&&"__vccOpts"in e}const S=(e,t)=>uO(e,t,Ti);function Ge(e,t,n){try{Uc(-1);const o=arguments.length;return o===2?rt(t)&&!Ce(t)?Wt(t)?G(e,null,[t]):G(e,t):G(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&Wt(n)&&(n=[n]),G(e,t,n))}finally{Uc(1)}}const f$="3.5.25",p$=Mt;let Dp;const zg=typeof window<"u"&&window.trustedTypes;if(zg)try{Dp=zg.createPolicy("vue",{createHTML:e=>e})}catch{}const nC=Dp?e=>Dp.createHTML(e):e=>e,v$="http://www.w3.org/2000/svg",h$="http://www.w3.org/1998/Math/MathML",Ml=typeof document<"u"?document:null,Hg=Ml&&Ml.createElement("template"),m$={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const l=t==="svg"?Ml.createElementNS(v$,e):t==="mathml"?Ml.createElementNS(h$,e):n?Ml.createElement(e,{is:n}):Ml.createElement(e);return e==="select"&&o&&o.multiple!=null&&l.setAttribute("multiple",o.multiple),l},createText:e=>Ml.createTextNode(e),createComment:e=>Ml.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ml.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,l,a){const r=n?n.previousSibling:t.lastChild;if(l&&(l===a||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===a||!(l=l.nextSibling)););else{Hg.innerHTML=nC(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const i=Hg.content;if(o==="svg"||o==="mathml"){const u=i.firstChild;for(;u.firstChild;)i.appendChild(u.firstChild);i.removeChild(u)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ca="transition",zs="animation",ls=Symbol("_vtc"),oC={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},lC=Tn({},T1,oC),g$=e=>(e.displayName="Transition",e.props=lC,e),Nn=g$((e,{slots:t})=>Ge(bO,aC(e),t)),Wa=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},Kg=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function aC(e){const t={};for(const N in e)N in oC||(t[N]=e[N]);if(e.css===!1)return t;const{name:n="v",type:o,duration:l,enterFromClass:a=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=r,appearToClass:d=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=b$(l),h=m&&m[0],g=m&&m[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:w,onLeave:y,onLeaveCancelled:k,onBeforeAppear:E=b,onAppear:_=C,onAppearCancelled:I=w}=t,$=(N,z,U,Y)=>{N._enterCancelled=Y,pa(N,z?d:i),pa(N,z?c:r),U&&U()},M=(N,z)=>{N._isLeaving=!1,pa(N,f),pa(N,p),pa(N,v),z&&z()},T=N=>(z,U)=>{const Y=N?_:C,P=()=>$(z,N,U);Wa(Y,[z,P]),Wg(()=>{pa(z,N?u:a),il(z,N?d:i),Kg(Y)||jg(z,o,h,P)})};return Tn(t,{onBeforeEnter(N){Wa(b,[N]),il(N,a),il(N,r)},onBeforeAppear(N){Wa(E,[N]),il(N,u),il(N,c)},onEnter:T(!1),onAppear:T(!0),onLeave(N,z){N._isLeaving=!0;const U=()=>M(N,z);il(N,f),N._enterCancelled?(il(N,v),Bp(N)):(Bp(N),il(N,v)),Wg(()=>{N._isLeaving&&(pa(N,f),il(N,p),Kg(y)||jg(N,o,g,U))}),Wa(y,[N,U])},onEnterCancelled(N){$(N,!1,void 0,!0),Wa(w,[N])},onAppearCancelled(N){$(N,!0,void 0,!0),Wa(I,[N])},onLeaveCancelled(N){M(N),Wa(k,[N])}})}function b$(e){if(e==null)return null;if(rt(e))return[Hf(e.enter),Hf(e.leave)];{const t=Hf(e);return[t,t]}}function Hf(e){return RT(e)}function il(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[ls]||(e[ls]=new Set)).add(t)}function pa(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[ls];n&&(n.delete(t),n.size||(e[ls]=void 0))}function Wg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let y$=0;function jg(e,t,n,o){const l=e._endId=++y$,a=()=>{l===e._endId&&o()};if(n!=null)return setTimeout(a,n);const{type:r,timeout:i,propCount:u}=rC(e,t);if(!r)return o();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,v),a()},v=p=>{p.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[m]||"").split(", "),l=o(`${ca}Delay`),a=o(`${ca}Duration`),r=Ug(l,a),i=o(`${zs}Delay`),u=o(`${zs}Duration`),c=Ug(i,u);let d=null,f=0,v=0;t===ca?r>0&&(d=ca,f=r,v=a.length):t===zs?c>0&&(d=zs,f=c,v=u.length):(f=Math.max(r,c),d=f>0?r>c?ca:zs:null,v=d?d===ca?a.length:u.length:0);const p=d===ca&&/\b(?:transform|all)(?:,|$)/.test(o(`${ca}Property`).toString());return{type:d,timeout:f,propCount:v,hasTransform:p}}function Ug(e,t){for(;e.lengthqg(n)+qg(e[o])))}function qg(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Bp(e){return(e?e.ownerDocument:document).body.offsetHeight}function w$(e,t,n){const o=e[ls];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Yc=Symbol("_vod"),sC=Symbol("_vsh"),$t={name:"show",beforeMount(e,{value:t},{transition:n}){e[Yc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Hs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Hs(e,!0),o.enter(e)):o.leave(e,()=>{Hs(e,!1)}):Hs(e,t))},beforeUnmount(e,{value:t}){Hs(e,t)}};function Hs(e,t){e.style.display=t?e[Yc]:"none",e[sC]=!t}const C$=Symbol(""),S$=/(?:^|;)\s*display\s*:/;function k$(e,t,n){const o=e.style,l=Ve(n);let a=!1;if(n&&!l){if(t)if(Ve(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&dc(o,i,"")}else for(const r in t)n[r]==null&&dc(o,r,"");for(const r in n)r==="display"&&(a=!0),dc(o,r,n[r])}else if(l){if(t!==n){const r=o[C$];r&&(n+=";"+r),o.cssText=n,a=S$.test(n)}}else t&&e.removeAttribute("style");Yc in e&&(e[Yc]=a?o.display:"",e[sC]&&(o.display="none"))}const Yg=/\s*!important$/;function dc(e,t,n){if(Ce(n))n.forEach(o=>dc(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=E$(e,t);Yg.test(n)?e.setProperty(ta(o),n.replace(Yg,""),"important"):e[o]=n}}const Gg=["Webkit","Moz","ms"],Kf={};function E$(e,t){const n=Kf[t];if(n)return n;let o=no(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=tu(o);for(let l=0;lWf||($$.then(()=>Wf=0),Wf=Date.now());function N$(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Uo(I$(o,n.value),t,5,[o])};return n.value=e,n.attached=R$(),n}function I$(e,t){if(Ce(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>l=>!l._stopped&&o&&o(l))}else return t}const tb=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,x$=(e,t,n,o,l,a)=>{const r=l==="svg";t==="class"?w$(e,o,r):t==="style"?k$(e,n,o):Td(t)?oh(t)||T$(e,t,n,o,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):P$(e,t,o,r))?(Zg(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Jg(e,t,o,r,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ve(o))?Zg(e,no(t),o,a,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Jg(e,t,o,r))};function P$(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&tb(t)&&Ke(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const l=e.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return tb(t)&&Ve(n)?!1:t in e}const iC=new WeakMap,uC=new WeakMap,Gc=Symbol("_moveCb"),nb=Symbol("_enterCb"),M$=e=>(delete e.props.mode,e),A$=M$({name:"TransitionGroup",props:Tn({},lC,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=dt(),o=_1();let l,a;return Qo(()=>{if(!l.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!F$(l[0].el,n.vnode.el,r)){l=[];return}l.forEach(L$),l.forEach(D$);const i=l.filter(B$);Bp(n.vnode.el),i.forEach(u=>{const c=u.el,d=c.style;il(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[Gc]=v=>{v&&v.target!==c||(!v||v.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[Gc]=null,pa(c,r))};c.addEventListener("transitionend",f)}),l=[]}),()=>{const r=Kt(e),i=aC(r);let u=r.tag||ze;if(l=[],a)for(let c=0;c{i.split(/\s+/).forEach(u=>u&&o.classList.remove(u))}),n.split(/\s+/).forEach(i=>i&&o.classList.add(i)),o.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(o);const{hasTransform:r}=rC(o);return a.removeChild(o),r}const as=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ce(t)?n=>sc(t,n):t};function V$(e){e.target.composing=!0}function ob(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Hl=Symbol("_assign");function lb(e,t,n){return t&&(e=e.trim()),n&&(e=ah(e)),e}const Hd={created(e,{modifiers:{lazy:t,trim:n,number:o}},l){e[Hl]=as(l);const a=o||l.props&&l.props.type==="number";Sa(e,t?"change":"input",r=>{r.target.composing||e[Hl](lb(e.value,n,a))}),(n||a)&&Sa(e,"change",()=>{e.value=lb(e.value,n,a)}),t||(Sa(e,"compositionstart",V$),Sa(e,"compositionend",ob),Sa(e,"change",ob))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:l,number:a}},r){if(e[Hl]=as(r),e.composing)return;const i=(a||e.type==="number")&&!/^0\d/.test(e.value)?ah(e.value):e.value,u=t??"";i!==u&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||l&&e.value.trim()===u)||(e.value=u))}},dC={deep:!0,created(e,t,n){e[Hl]=as(n),Sa(e,"change",()=>{const o=e._modelValue,l=pC(e),a=e.checked,r=e[Hl];if(Ce(o)){const i=Gw(o,l),u=i!==-1;if(a&&!u)r(o.concat(l));else if(!a&&u){const c=[...o];c.splice(i,1),r(c)}}else if(Od(o)){const i=new Set(o);a?i.add(l):i.delete(l),r(i)}else r(vC(e,a))})},mounted:ab,beforeUpdate(e,t,n){e[Hl]=as(n),ab(e,t,n)}};function ab(e,{value:t,oldValue:n},o){e._modelValue=t;let l;if(Ce(t))l=Gw(t,o.props.value)>-1;else if(Od(t))l=t.has(o.props.value);else{if(t===n)return;l=ns(t,vC(e,!0))}e.checked!==l&&(e.checked=l)}const fC={created(e,{value:t},n){e.checked=ns(t,n.props.value),e[Hl]=as(n),Sa(e,"change",()=>{e[Hl](pC(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Hl]=as(o),t!==n&&(e.checked=ns(t,o.props.value))}};function pC(e){return"_value"in e?e._value:e.value}function vC(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const z$=["ctrl","shift","alt","meta"],H$={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)=>z$.some(n=>e[`${n}Key`]&&!t.includes(n))},Ze=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((l,...a)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(l=>{if(!("key"in l))return;const a=ta(l.key);if(t.some(r=>r===a||K$[r]===a))return e(l)}))},W$=Tn({patchProp:x$},m$);let rb;function hC(){return rb||(rb=JO(W$))}const xa=((...e)=>{hC().render(...e)}),mC=((...e)=>{const t=hC().createApp(...e),{mount:n}=t;return t.mount=o=>{const l=U$(o);if(!l)return;const a=t._component;!Ke(a)&&!a.render&&!a.template&&(a.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const r=n(l,!1,j$(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),r},t});function j$(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function U$(e){return Ve(e)?document.querySelector(e):e}const gC=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n},q$={};function Y$(e,t){const n=wt("RouterView");return O(),ie(n)}const G$=gC(q$,[["render",Y$]]),X$="modulepreload",J$=function(e,t){return new URL(e,t).href},sb={},Sr=function(t,n,o){let l=Promise.resolve();if(n&&n.length>0){let c=function(d){return Promise.all(d.map(f=>Promise.resolve(f).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const r=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),u=i?.nonce||i?.getAttribute("nonce");l=c(n.map(d=>{if(d=J$(d,o),d in sb)return;sb[d]=!0;const f=d.endsWith(".css"),v=f?'[rel="stylesheet"]':"";if(o)for(let m=r.length-1;m>=0;m--){const h=r[m];if(h.href===d&&(!f||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${v}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":X$,f||(p.as="script"),p.crossOrigin="",p.href=d,u&&p.setAttribute("nonce",u),document.head.appendChild(p),f)return new Promise((m,h)=>{p.addEventListener("load",m),p.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${d}`)))})}))}function a(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return l.then(r=>{for(const i of r||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})};const Br=typeof document<"u";function bC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Z$(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bC(e.default)}const Xt=Object.assign;function jf(e,t){const n={};for(const o in t){const l=t[o];n[o]=qo(l)?l.map(e):e(l)}return n}const ci=()=>{},qo=Array.isArray;function ib(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}const yC=/#/g,Q$=/&/g,eR=/\//g,tR=/=/g,nR=/\?/g,wC=/\+/g,oR=/%5B/g,lR=/%5D/g,CC=/%5E/g,aR=/%60/g,SC=/%7B/g,rR=/%7C/g,kC=/%7D/g,sR=/%20/g;function _h(e){return e==null?"":encodeURI(""+e).replace(rR,"|").replace(oR,"[").replace(lR,"]")}function iR(e){return _h(e).replace(SC,"{").replace(kC,"}").replace(CC,"^")}function Fp(e){return _h(e).replace(wC,"%2B").replace(sR,"+").replace(yC,"%23").replace(Q$,"%26").replace(aR,"`").replace(SC,"{").replace(kC,"}").replace(CC,"^")}function uR(e){return Fp(e).replace(tR,"%3D")}function cR(e){return _h(e).replace(yC,"%23").replace(nR,"%3F")}function dR(e){return cR(e).replace(eR,"%2F")}function Oi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const fR=/\/$/,pR=e=>e.replace(fR,"");function Uf(e,t,n="/"){let o,l={},a="",r="";const i=t.indexOf("#");let u=t.indexOf("?");return u=i>=0&&u>i?-1:u,u>=0&&(o=t.slice(0,u),a=t.slice(u,i>0?i:t.length),l=e(a.slice(1))),i>=0&&(o=o||t.slice(0,i),r=t.slice(i,t.length)),o=gR(o??t,n),{fullPath:o+a+r,path:o,query:l,hash:Oi(r)}}function vR(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ub(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function hR(e,t,n){const o=t.matched.length-1,l=n.matched.length-1;return o>-1&&o===l&&rs(t.matched[o],n.matched[l])&&EC(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function rs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function EC(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!mR(e[n],t[n]))return!1;return!0}function mR(e,t){return qo(e)?cb(e,t):qo(t)?cb(t,e):e?.valueOf()===t?.valueOf()}function cb(e,t){return qo(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function gR(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),l=o[o.length-1];(l===".."||l===".")&&o.push("");let a=n.length-1,r,i;for(r=0;r1&&a--;else break;return n.slice(0,a).join("/")+"/"+o.slice(r).join("/")}const da={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Vp=(function(e){return e.pop="pop",e.push="push",e})({}),qf=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function bR(e){if(!e)if(Br){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),pR(e)}const yR=/^[^#]+#/;function wR(e,t){return e.replace(yR,"#")+t}function CR(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const Kd=()=>({left:window.scrollX,top:window.scrollY});function SR(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=CR(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function db(e,t){return(history.state?history.state.position-t:-1)+e}const zp=new Map;function kR(e,t){zp.set(e,t)}function ER(e){const t=zp.get(e);return zp.delete(e),t}function _R(e){return typeof e=="string"||e&&typeof e=="object"}function _C(e){return typeof e=="string"||typeof e=="symbol"}let mn=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const TC=Symbol("");mn.MATCHER_NOT_FOUND+"",mn.NAVIGATION_GUARD_REDIRECT+"",mn.NAVIGATION_ABORTED+"",mn.NAVIGATION_CANCELLED+"",mn.NAVIGATION_DUPLICATED+"";function ss(e,t){return Xt(new Error,{type:e,[TC]:!0},t)}function xl(e,t){return e instanceof Error&&TC in e&&(t==null||!!(e.type&t))}const TR=["params","query","hash"];function OR(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of TR)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function $R(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;ol&&Fp(l)):[o&&Fp(o)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function RR(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=qo(o)?o.map(l=>l==null?null:""+l):o==null?o:""+o)}return t}const NR=Symbol(""),pb=Symbol(""),Wd=Symbol(""),Th=Symbol(""),Hp=Symbol("");function Ks(){let e=[];function t(o){return e.push(o),()=>{const l=e.indexOf(o);l>-1&&e.splice(l,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ca(e,t,n,o,l,a=r=>r()){const r=o&&(o.enterCallbacks[l]=o.enterCallbacks[l]||[]);return()=>new Promise((i,u)=>{const c=v=>{v===!1?u(ss(mn.NAVIGATION_ABORTED,{from:n,to:t})):v instanceof Error?u(v):_R(v)?u(ss(mn.NAVIGATION_GUARD_REDIRECT,{from:t,to:v})):(r&&o.enterCallbacks[l]===r&&typeof v=="function"&&r.push(v),i())},d=a(()=>e.call(o&&o.instances[l],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(v=>u(v))})}function Yf(e,t,n,o,l=a=>a()){const a=[];for(const r of e)for(const i in r.components){let u=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(bC(u)){const c=(u.__vccOpts||u)[t];c&&a.push(Ca(c,n,o,r,i,l))}else{let c=u();a.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${i}" at "${r.path}"`);const f=Z$(d)?d.default:d;r.mods[i]=d,r.components[i]=f;const v=(f.__vccOpts||f)[t];return v&&Ca(v,n,o,r,i,l)()}))}}return a}function IR(e,t){const n=[],o=[],l=[],a=Math.max(t.matched.length,e.matched.length);for(let r=0;rrs(c,i))?o.push(i):n.push(i));const u=e.matched[r];u&&(t.matched.find(c=>rs(c,u))||l.push(u))}return[n,o,l]}let xR=()=>location.protocol+"//"+location.host;function OC(e,t){const{pathname:n,search:o,hash:l}=t,a=e.indexOf("#");if(a>-1){let r=l.includes(e.slice(a))?e.slice(a).length:1,i=l.slice(r);return i[0]!=="/"&&(i="/"+i),ub(i,"")}return ub(n,e)+o+l}function PR(e,t,n,o){let l=[],a=[],r=null;const i=({state:v})=>{const p=OC(e,location),m=n.value,h=t.value;let g=0;if(v){if(n.value=p,t.value=v,r&&r===m){r=null;return}g=h?v.position-h.position:0}else o(p);l.forEach(b=>{b(n.value,m,{delta:g,type:Vp.pop,direction:g?g>0?qf.forward:qf.back:qf.unknown})})};function u(){r=n.value}function c(v){l.push(v);const p=()=>{const m=l.indexOf(v);m>-1&&l.splice(m,1)};return a.push(p),p}function d(){if(document.visibilityState==="hidden"){const{history:v}=window;if(!v.state)return;v.replaceState(Xt({},v.state,{scroll:Kd()}),"")}}function f(){for(const v of a)v();a=[],window.removeEventListener("popstate",i),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",i),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function vb(e,t,n,o=!1,l=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:l?Kd():null}}function MR(e){const{history:t,location:n}=window,o={value:OC(e,n)},l={value:t.state};l.value||a(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(u,c,d){const f=e.indexOf("#"),v=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:xR()+e+u;try{t[d?"replaceState":"pushState"](c,"",v),l.value=c}catch(p){console.error(p),n[d?"replace":"assign"](v)}}function r(u,c){a(u,Xt({},t.state,vb(l.value.back,u,l.value.forward,!0),c,{position:l.value.position}),!0),o.value=u}function i(u,c){const d=Xt({},l.value,t.state,{forward:u,scroll:Kd()});a(d.current,d,!0),a(u,Xt({},vb(o.value,u,null),{position:d.position+1},c),!1),o.value=u}return{location:o,state:l,push:i,replace:r}}function AR(e){e=bR(e);const t=MR(e),n=PR(e,t.state,t.location,t.replace);function o(a,r=!0){r||n.pauseListeners(),history.go(a)}const l=Xt({location:"",base:e,go:o,createHref:wR.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}let Za=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Sn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Sn||{});const LR={type:Za.Static,value:""},DR=/[a-zA-Z0-9_]/;function BR(e){if(!e)return[[]];if(e==="/")return[[LR]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=Sn.Static,o=n;const l=[];let a;function r(){a&&l.push(a),a=[]}let i=0,u,c="",d="";function f(){c&&(n===Sn.Static?a.push({type:Za.Static,value:c}):n===Sn.Param||n===Sn.ParamRegExp||n===Sn.ParamRegExpEnd?(a.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Za.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function v(){c+=u}for(;it.length?t.length===1&&t[0]===Qn.Static+Qn.Segment?1:-1:0}function $C(e,t){let n=0;const o=e.score,l=t.score;for(;n0&&t[t.length-1]<0}const KR={strict:!1,end:!0,sensitive:!1};function WR(e,t,n){const o=zR(BR(e.path),n),l=Xt(o,{record:e,parent:t,children:[],alias:[]});return t&&!l.record.aliasOf==!t.record.aliasOf&&t.children.push(l),l}function jR(e,t){const n=[],o=new Map;t=ib(KR,t);function l(f){return o.get(f)}function a(f,v,p){const m=!p,h=bb(f);h.aliasOf=p&&p.record;const g=ib(t,f),b=[h];if("alias"in f){const y=typeof f.alias=="string"?[f.alias]:f.alias;for(const k of y)b.push(bb(Xt({},h,{components:p?p.record.components:h.components,path:k,aliasOf:p?p.record:h})))}let C,w;for(const y of b){const{path:k}=y;if(v&&k[0]!=="/"){const E=v.record.path,_=E[E.length-1]==="/"?"":"/";y.path=v.record.path+(k&&_+k)}if(C=WR(y,v,g),p?p.alias.push(C):(w=w||C,w!==C&&w.alias.push(C),m&&f.name&&!yb(C)&&r(f.name)),RC(C)&&u(C),h.children){const E=h.children;for(let _=0;_{r(w)}:ci}function r(f){if(_C(f)){const v=o.get(f);v&&(o.delete(f),n.splice(n.indexOf(v),1),v.children.forEach(r),v.alias.forEach(r))}else{const v=n.indexOf(f);v>-1&&(n.splice(v,1),f.record.name&&o.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function i(){return n}function u(f){const v=YR(f,n);n.splice(v,0,f),f.record.name&&!yb(f)&&o.set(f.record.name,f)}function c(f,v){let p,m={},h,g;if("name"in f&&f.name){if(p=o.get(f.name),!p)throw ss(mn.MATCHER_NOT_FOUND,{location:f});g=p.record.name,m=Xt(gb(v.params,p.keys.filter(w=>!w.optional).concat(p.parent?p.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&gb(f.params,p.keys.map(w=>w.name))),h=p.stringify(m)}else if(f.path!=null)h=f.path,p=n.find(w=>w.re.test(h)),p&&(m=p.parse(h),g=p.record.name);else{if(p=v.name?o.get(v.name):n.find(w=>w.re.test(v.path)),!p)throw ss(mn.MATCHER_NOT_FOUND,{location:f,currentLocation:v});g=p.record.name,m=Xt({},v.params,f.params),h=p.stringify(m)}const b=[];let C=p;for(;C;)b.unshift(C.record),C=C.parent;return{name:g,path:h,params:m,matched:b,meta:qR(b)}}e.forEach(f=>a(f));function d(){n.length=0,o.clear()}return{addRoute:a,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:i,getRecordMatcher:l}}function gb(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function bb(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:UR(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function UR(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function yb(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function qR(e){return e.reduce((t,n)=>Xt(t,n.meta),{})}function YR(e,t){let n=0,o=t.length;for(;n!==o;){const a=n+o>>1;$C(e,t[a])<0?o=a:n=a+1}const l=GR(e);return l&&(o=t.lastIndexOf(l,o-1)),o}function GR(e){let t=e;for(;t=t.parent;)if(RC(t)&&$C(e,t)===0)return t}function RC({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function wb(e){const t=Pe(Wd),n=Pe(Th),o=S(()=>{const u=s(e.to);return t.resolve(u)}),l=S(()=>{const{matched:u}=o.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const v=f.findIndex(rs.bind(null,d));if(v>-1)return v;const p=Cb(u[c-2]);return c>1&&Cb(d)===p&&f[f.length-1].path!==p?f.findIndex(rs.bind(null,u[c-2])):v}),a=S(()=>l.value>-1&&eN(n.params,o.value.params)),r=S(()=>l.value>-1&&l.value===n.matched.length-1&&EC(n.params,o.value.params));function i(u={}){if(QR(u)){const c=t[s(e.replace)?"replace":"push"](s(e.to)).catch(ci);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:o,href:S(()=>o.value.href),isActive:a,isExactActive:r,navigate:i}}function XR(e){return e.length===1?e[0]:e}const JR=q({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:wb,setup(e,{slots:t}){const n=It(wb(e)),{options:o}=Pe(Wd),l=S(()=>({[Sb(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Sb(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&XR(t.default(n));return e.custom?a:Ge("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:l.value},a)}}}),ZR=JR;function QR(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function eN(e,t){for(const n in t){const o=t[n],l=e[n];if(typeof o=="string"){if(o!==l)return!1}else if(!qo(l)||l.length!==o.length||o.some((a,r)=>a.valueOf()!==l[r].valueOf()))return!1}return!0}function Cb(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Sb=(e,t,n)=>e??t??n,tN=q({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Pe(Hp),l=S(()=>e.route||o.value),a=Pe(pb,0),r=S(()=>{let c=s(a);const{matched:d}=l.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),i=S(()=>l.value.matched[r.value]);bt(pb,S(()=>r.value+1)),bt(NR,i),bt(Hp,l);const u=A();return fe(()=>[u.value,i.value,e.name],([c,d,f],[v,p,m])=>{d&&(d.instances[f]=c,p&&p!==d&&c&&c===v&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!rs(d,p)||!v)&&(d.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=l.value,d=e.name,f=i.value,v=f&&f.components[d];if(!v)return kb(n.default,{Component:v,route:c});const p=f.props[d],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=Ge(v,Xt({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return kb(n.default,{Component:g,route:c})||g}}});function kb(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const nN=tN;function oN(e){const t=jR(e.routes,e),n=e.parseQuery||$R,o=e.stringifyQuery||fb,l=e.history,a=Ks(),r=Ks(),i=Ks(),u=jt(da);let c=da;Br&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=jf.bind(null,ee=>""+ee),f=jf.bind(null,dR),v=jf.bind(null,Oi);function p(ee,se){let X,Q;return _C(ee)?(X=t.getRecordMatcher(ee),Q=se):Q=ee,t.addRoute(Q,X)}function m(ee){const se=t.getRecordMatcher(ee);se&&t.removeRoute(se)}function h(){return t.getRoutes().map(ee=>ee.record)}function g(ee){return!!t.getRecordMatcher(ee)}function b(ee,se){if(se=Xt({},se||u.value),typeof ee=="string"){const ue=Uf(n,ee,se.path),pe=t.resolve({path:ue.path},se),ve=l.createHref(ue.fullPath);return Xt(ue,pe,{params:v(pe.params),hash:Oi(ue.hash),redirectedFrom:void 0,href:ve})}let X;if(ee.path!=null)X=Xt({},ee,{path:Uf(n,ee.path,se.path).path});else{const ue=Xt({},ee.params);for(const pe in ue)ue[pe]==null&&delete ue[pe];X=Xt({},ee,{params:f(ue)}),se.params=f(se.params)}const Q=t.resolve(X,se),le=ee.hash||"";Q.params=d(v(Q.params));const H=vR(o,Xt({},ee,{hash:iR(le),path:Q.path})),Z=l.createHref(H);return Xt({fullPath:H,hash:le,query:o===fb?RR(ee.query):ee.query||{}},Q,{redirectedFrom:void 0,href:Z})}function C(ee){return typeof ee=="string"?Uf(n,ee,u.value.path):Xt({},ee)}function w(ee,se){if(c!==ee)return ss(mn.NAVIGATION_CANCELLED,{from:se,to:ee})}function y(ee){return _(ee)}function k(ee){return y(Xt(C(ee),{replace:!0}))}function E(ee,se){const X=ee.matched[ee.matched.length-1];if(X&&X.redirect){const{redirect:Q}=X;let le=typeof Q=="function"?Q(ee,se):Q;return typeof le=="string"&&(le=le.includes("?")||le.includes("#")?le=C(le):{path:le},le.params={}),Xt({query:ee.query,hash:ee.hash,params:le.path!=null?{}:ee.params},le)}}function _(ee,se){const X=c=b(ee),Q=u.value,le=ee.state,H=ee.force,Z=ee.replace===!0,ue=E(X,Q);if(ue)return _(Xt(C(ue),{state:typeof ue=="object"?Xt({},le,ue.state):le,force:H,replace:Z}),se||X);const pe=X;pe.redirectedFrom=se;let ve;return!H&&hR(o,Q,X)&&(ve=ss(mn.NAVIGATION_DUPLICATED,{to:pe,from:Q}),K(Q,Q,!0,!1)),(ve?Promise.resolve(ve):M(pe,Q)).catch(he=>xl(he)?xl(he,mn.NAVIGATION_GUARD_REDIRECT)?he:D(he):L(he,pe,Q)).then(he=>{if(he){if(xl(he,mn.NAVIGATION_GUARD_REDIRECT))return _(Xt({replace:Z},C(he.to),{state:typeof he.to=="object"?Xt({},le,he.to.state):le,force:H}),se||pe)}else he=N(pe,Q,!0,Z,le);return T(pe,Q,he),he})}function I(ee,se){const X=w(ee,se);return X?Promise.reject(X):Promise.resolve()}function $(ee){const se=ne.values().next().value;return se&&typeof se.runWithContext=="function"?se.runWithContext(ee):ee()}function M(ee,se){let X;const[Q,le,H]=IR(ee,se);X=Yf(Q.reverse(),"beforeRouteLeave",ee,se);for(const ue of Q)ue.leaveGuards.forEach(pe=>{X.push(Ca(pe,ee,se))});const Z=I.bind(null,ee,se);return X.push(Z),ce(X).then(()=>{X=[];for(const ue of a.list())X.push(Ca(ue,ee,se));return X.push(Z),ce(X)}).then(()=>{X=Yf(le,"beforeRouteUpdate",ee,se);for(const ue of le)ue.updateGuards.forEach(pe=>{X.push(Ca(pe,ee,se))});return X.push(Z),ce(X)}).then(()=>{X=[];for(const ue of H)if(ue.beforeEnter)if(qo(ue.beforeEnter))for(const pe of ue.beforeEnter)X.push(Ca(pe,ee,se));else X.push(Ca(ue.beforeEnter,ee,se));return X.push(Z),ce(X)}).then(()=>(ee.matched.forEach(ue=>ue.enterCallbacks={}),X=Yf(H,"beforeRouteEnter",ee,se,$),X.push(Z),ce(X))).then(()=>{X=[];for(const ue of r.list())X.push(Ca(ue,ee,se));return X.push(Z),ce(X)}).catch(ue=>xl(ue,mn.NAVIGATION_CANCELLED)?ue:Promise.reject(ue))}function T(ee,se,X){i.list().forEach(Q=>$(()=>Q(ee,se,X)))}function N(ee,se,X,Q,le){const H=w(ee,se);if(H)return H;const Z=se===da,ue=Br?history.state:{};X&&(Q||Z?l.replace(ee.fullPath,Xt({scroll:Z&&ue&&ue.scroll},le)):l.push(ee.fullPath,le)),u.value=ee,K(ee,se,X,Z),D()}let z;function U(){z||(z=l.listen((ee,se,X)=>{if(!oe.listening)return;const Q=b(ee),le=E(Q,oe.currentRoute.value);if(le){_(Xt(le,{replace:!0,force:!0}),Q).catch(ci);return}c=Q;const H=u.value;Br&&kR(db(H.fullPath,X.delta),Kd()),M(Q,H).catch(Z=>xl(Z,mn.NAVIGATION_ABORTED|mn.NAVIGATION_CANCELLED)?Z:xl(Z,mn.NAVIGATION_GUARD_REDIRECT)?(_(Xt(C(Z.to),{force:!0}),Q).then(ue=>{xl(ue,mn.NAVIGATION_ABORTED|mn.NAVIGATION_DUPLICATED)&&!X.delta&&X.type===Vp.pop&&l.go(-1,!1)}).catch(ci),Promise.reject()):(X.delta&&l.go(-X.delta,!1),L(Z,Q,H))).then(Z=>{Z=Z||N(Q,H,!1),Z&&(X.delta&&!xl(Z,mn.NAVIGATION_CANCELLED)?l.go(-X.delta,!1):X.type===Vp.pop&&xl(Z,mn.NAVIGATION_ABORTED|mn.NAVIGATION_DUPLICATED)&&l.go(-1,!1)),T(Q,H,Z)}).catch(ci)}))}let Y=Ks(),P=Ks(),R;function L(ee,se,X){D(ee);const Q=P.list();return Q.length?Q.forEach(le=>le(ee,se,X)):console.error(ee),Promise.reject(ee)}function V(){return R&&u.value!==da?Promise.resolve():new Promise((ee,se)=>{Y.add([ee,se])})}function D(ee){return R||(R=!ee,U(),Y.list().forEach(([se,X])=>ee?X(ee):se()),Y.reset()),ee}function K(ee,se,X,Q){const{scrollBehavior:le}=e;if(!Br||!le)return Promise.resolve();const H=!X&&ER(db(ee.fullPath,0))||(Q||!X)&&history.state&&history.state.scroll||null;return Me().then(()=>le(ee,se,H)).then(Z=>Z&&SR(Z)).catch(Z=>L(Z,ee,se))}const B=ee=>l.go(ee);let j;const ne=new Set,oe={currentRoute:u,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:b,options:e,push:y,replace:k,go:B,back:()=>B(-1),forward:()=>B(1),beforeEach:a.add,beforeResolve:r.add,afterEach:i.add,onError:P.add,isReady:V,install(ee){ee.component("RouterLink",ZR),ee.component("RouterView",nN),ee.config.globalProperties.$router=oe,Object.defineProperty(ee.config.globalProperties,"$route",{enumerable:!0,get:()=>s(u)}),Br&&!j&&u.value===da&&(j=!0,y(l.location).catch(Q=>{}));const se={};for(const Q in da)Object.defineProperty(se,Q,{get:()=>u.value[Q],enumerable:!0});ee.provide(Wd,oe),ee.provide(Th,Pd(se)),ee.provide(Hp,u);const X=ee.unmount;ne.add(ee),ee.unmount=function(){ne.delete(ee),ne.size<1&&(c=da,z&&z(),z=null,u.value=da,j=!1,R=!1),X()}}};function ce(ee){return ee.reduce((se,X)=>se.then(()=>$(X)),Promise.resolve())}return oe}function lN(){return Pe(Wd)}function aN(e){return Pe(Th)}const rN="2.12.0",Eb=Symbol("INSTALLED_KEY"),NC=Symbol(),di="el",sN="is-",ja=(e,t,n,o,l)=>{let a=`${e}-${t}`;return n&&(a+=`-${n}`),o&&(a+=`__${o}`),l&&(a+=`--${l}`),a},IC=Symbol("namespaceContextKey"),Oh=e=>{const t=e||(dt()?Pe(IC,A(di)):A(di));return S(()=>s(t)||di)},ge=(e,t)=>{const n=Oh(t);return{namespace:n,b:(h="")=>ja(n.value,e,h,"",""),e:h=>h?ja(n.value,e,"",h,""):"",m:h=>h?ja(n.value,e,"","",h):"",be:(h,g)=>h&&g?ja(n.value,e,h,g,""):"",em:(h,g)=>h&&g?ja(n.value,e,"",h,g):"",bm:(h,g)=>h&&g?ja(n.value,e,h,"",g):"",bem:(h,g,b)=>h&&g&&b?ja(n.value,e,h,g,b):"",is:(h,...g)=>{const b=g.length>=1?g[0]:!0;return h&&b?`${sN}${h}`:""},cssVar:h=>{const g={};for(const b in h)h[b]&&(g[`--${n.value}-${b}`]=h[b]);return g},cssVarName:h=>`--${n.value}-${h}`,cssVarBlock:h=>{const g={};for(const b in h)h[b]&&(g[`--${n.value}-${e}-${b}`]=h[b]);return g},cssVarBlockName:h=>`--${n.value}-${e}-${h}`}};var xC=typeof global=="object"&&global&&global.Object===Object&&global,iN=typeof self=="object"&&self&&self.Object===Object&&self,el=xC||iN||Function("return this")(),xo=el.Symbol,PC=Object.prototype,uN=PC.hasOwnProperty,cN=PC.toString,Ws=xo?xo.toStringTag:void 0;function dN(e){var t=uN.call(e,Ws),n=e[Ws];try{e[Ws]=void 0;var o=!0}catch{}var l=cN.call(e);return o&&(t?e[Ws]=n:delete e[Ws]),l}var fN=Object.prototype,pN=fN.toString;function vN(e){return pN.call(e)}var hN="[object Null]",mN="[object Undefined]",_b=xo?xo.toStringTag:void 0;function kr(e){return e==null?e===void 0?mN:hN:_b&&_b in Object(e)?dN(e):vN(e)}function bl(e){return e!=null&&typeof e=="object"}var gN="[object Symbol]";function jd(e){return typeof e=="symbol"||bl(e)&&kr(e)==gN}function $h(e,t){for(var n=-1,o=e==null?0:e.length,l=Array(o);++n0){if(++t>=jN)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function GN(e){return function(){return e}}var Xc=(function(){try{var e=_r(Object,"defineProperty");return e({},"",{}),e}catch{}})(),XN=Xc?function(e,t){return Xc(e,"toString",{configurable:!0,enumerable:!1,value:GN(t),writable:!0})}:Rh,LC=YN(XN);function JN(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}var nI=9007199254740991,oI=/^(?:0|[1-9]\d*)$/;function Ud(e,t){var n=typeof e;return t=t??nI,!!t&&(n=="number"||n!="symbol"&&oI.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=rI}function Os(e){return e!=null&&Ph(e.length)&&!Nh(e)}function sI(e,t,n){if(!lo(n))return!1;var o=typeof t;return(o=="number"?Os(n)&&Ud(t,n.length):o=="string"&&t in n)?lu(n[t],e):!1}function iI(e){return FC(function(t,n){var o=-1,l=n.length,a=l>1?n[l-1]:void 0,r=l>2?n[2]:void 0;for(a=e.length>3&&typeof a=="function"?(l--,a):void 0,r&&sI(n[0],n[1],r)&&(a=l<3?void 0:a,l=1),t=Object(t);++o-1}function bx(e,t){var n=this.__data__,o=qd(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function la(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(i)?t>1?su(i,t-1,n,o,l):Bh(l,i):o||(l[l.length]=i)}return l}function jC(e){var t=e==null?0:e.length;return t?su(e,1):[]}function UC(e){return LC(BC(e,void 0,jC),e+"")}var Fh=WC(Object.getPrototypeOf,Object),Px="[object Object]",Mx=Function.prototype,Ax=Object.prototype,qC=Mx.toString,Lx=Ax.hasOwnProperty,Dx=qC.call(Object);function YC(e){if(!bl(e)||kr(e)!=Px)return!1;var t=Fh(e);if(t===null)return!0;var n=Lx.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qC.call(n)==Dx}function Bx(e,t,n){var o=-1,l=e.length;t<0&&(t=-t>l?0:l+t),n=n>l?l:n,n<0&&(n+=l),l=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(l);++o=t?e:t)),e}function Jd(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=fi(n),n=n===n?n:0),t!==void 0&&(t=fi(t),t=t===t?t:0),Fx(fi(e),t,n)}function Vx(){this.__data__=new la,this.size=0}function zx(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hx(e){return this.__data__.get(e)}function Kx(e){return this.__data__.has(e)}var Wx=200;function jx(e,t){var n=this.__data__;if(n instanceof la){var o=n.__data__;if(!Ii||o.lengthi))return!1;var c=a.get(e),d=a.get(t);if(c&&d)return c==t&&d==e;var f=-1,v=!0,p=n&wM?new xi:void 0;for(a.set(e,t),a.set(t,e);++f=t||_<0||f&&I>=a}function b(){var E=Zf();if(g(E))return C(E);i=setTimeout(b,h(E))}function C(E){return i=void 0,v&&o?p(E):(o=l=void 0,r)}function w(){i!==void 0&&clearTimeout(i),c=0,o=u=l=i=void 0}function y(){return i===void 0?r:C(Zf())}function k(){var E=Zf(),_=g(E);if(o=arguments,l=this,u=E,_){if(i===void 0)return m(u);if(f)return clearTimeout(i),i=setTimeout(b,t),p(u)}return i===void 0&&(i=setTimeout(b,t)),r}return k.cancel=w,k.flush=y,k}function qp(e,t,n){(n!==void 0&&!lu(e[t],n)||n===void 0&&!(t in e))&&Ih(e,t,n)}function pS(e){return bl(e)&&Os(e)}function Yp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function uA(e){return Ts(e,ru(e))}function cA(e,t,n,o,l,a,r){var i=Yp(e,n),u=Yp(t,n),c=r.get(u);if(c){qp(e,n,c);return}var d=a?a(i,u,n+"",e,t,r):void 0,f=d===void 0;if(f){var v=oo(u),p=!v&&Ri(u),m=!v&&!p&&Lh(u);d=u,v||p||m?oo(i)?d=i:pS(i)?d=AC(i):p?(f=!1,d=XC(u,!0)):m?(f=!1,d=tS(u,!0)):d=[]:YC(u)||$i(u)?(d=i,$i(i)?d=uA(i):(!lo(i)||Nh(i))&&(d=nS(u))):f=!1}f&&(r.set(u,d),l(d,u,o,a,r),r.delete(u)),qp(e,n,d)}function vS(e,t,n,o,l){e!==t&&fS(t,function(a,r){if(l||(l=new Ho),lo(a))cA(e,t,r,n,vS,o,l);else{var i=o?o(Yp(e,r),a,r+"",e,t,l):void 0;i===void 0&&(i=a),qp(e,r,i)}},ru)}function dA(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function hS(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var l=o-1;return DC(e,dS(t),l,!0)}function fA(e,t){var n=-1,o=Os(e)?Array(e.length):[];return aA(e,function(l,a,r){o[++n]=t(l,a,r)}),o}function pA(e,t){var n=oo(e)?$h:fA;return n(e,dS(t))}function mS(e,t){return su(pA(e,t),1)}var vA=1/0;function hA(e){var t=e==null?0:e.length;return t?su(e,vA):[]}function Pi(e){for(var t=-1,n=e==null?0:e.length,o={};++t1),a}),Ts(e,eS(e),n),o&&(n=Xr(n,wA|CA|SA,yA));for(var l=t.length;l--;)bA(n,t[l]);return n});function bS(e,t,n,o){if(!lo(e))return e;t=$s(t,e);for(var l=-1,a=t.length,r=a-1,i=e;i!=null&&++l=RA){var c=$A(e);if(c)return Hh(c);r=!1,l=rS,u=new xi}else u=i;e:for(;++oe===void 0,Lt=e=>typeof e=="boolean",Ye=e=>typeof e=="number",to=e=>!e&&e!==0||Ce(e)&&e.length===0||rt(e)&&!Object.keys(e).length,io=e=>typeof Element>"u"?!1:e instanceof Element,uo=e=>cn(e),IA=e=>Ve(e)?!Number.isNaN(Number(e)):!1,uu=e=>e===window;var xA=Object.defineProperty,PA=Object.defineProperties,MA=Object.getOwnPropertyDescriptors,ty=Object.getOwnPropertySymbols,AA=Object.prototype.hasOwnProperty,LA=Object.prototype.propertyIsEnumerable,ny=(e,t,n)=>t in e?xA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,DA=(e,t)=>{for(var n in t||(t={}))AA.call(t,n)&&ny(e,n,t[n]);if(ty)for(var n of ty(t))LA.call(t,n)&&ny(e,n,t[n]);return e},BA=(e,t)=>PA(e,MA(t));function Qc(e,t){var n;const o=jt();return Eo(()=>{o.value=e()},BA(DA({},t),{flush:(n=void 0)!=null?n:"sync"})),fr(o)}var oy;const Nt=typeof window<"u",FA=e=>typeof e<"u",Gp=e=>typeof e=="function",VA=e=>typeof e=="string",yS=(e,t,n)=>Math.min(n,Math.max(t,e)),Kl=()=>{},ed=Nt&&((oy=window?.navigator)==null?void 0:oy.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Pa(e){return typeof e=="function"?e():s(e)}function wS(e,t){function n(...o){return new Promise((l,a)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(l).catch(a)})}return n}function zA(e,t={}){let n,o,l=Kl;const a=i=>{clearTimeout(i),l(),l=Kl};return i=>{const u=Pa(e),c=Pa(t.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(o&&(a(o),o=null),Promise.resolve(i())):new Promise((d,f)=>{l=t.rejectOnCancel?f:d,c&&!o&&(o=setTimeout(()=>{n&&a(n),o=null,d(i())},c)),n=setTimeout(()=>{o&&a(o),o=null,d(i())},u)})}}function HA(e,t=!0,n=!0,o=!1){let l=0,a,r=!0,i=Kl,u;const c=()=>{a&&(clearTimeout(a),a=void 0,i(),i=Kl)};return f=>{const v=Pa(e),p=Date.now()-l,m=()=>u=f();return c(),v<=0?(l=Date.now(),m()):(p>v&&(n||!r)?(l=Date.now(),m()):t&&(u=new Promise((h,g)=>{i=o?g:h,a=setTimeout(()=>{l=Date.now(),r=!0,h(m()),c()},Math.max(0,v-p))})),!n&&!a&&(a=setTimeout(()=>r=!0,v)),r=!1,u)}}function KA(e){return e}function WA(e,t){let n,o,l;const a=A(!0),r=()=>{a.value=!0,l()};fe(e,r,{flush:"sync"});const i=Gp(t)?t:t.get,u=Gp(t)?void 0:t.set,c=aO((d,f)=>(o=d,l=f,{get(){return a.value&&(n=i(),a.value=!1),o(),n},set(v){u?.(v)}}));return Object.isExtensible(c)&&(c.trigger=r),c}function Ns(e){return sh()?(ih(e),!0):!1}function jA(e){if(!Ht(e))return It(e);const t=new Proxy({},{get(n,o,l){return s(Reflect.get(e.value,o,l))},set(n,o,l){return Ht(e.value[o])&&!Ht(l)?e.value[o].value=l:e.value[o]=l,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return It(t)}function UA(e){return jA(S(e))}function cu(e,t=200,n={}){return wS(zA(t,n),e)}function qA(e,t=200,n={}){const o=A(e.value),l=cu(()=>{o.value=e.value},t,n);return fe(e,()=>l()),o}function CS(e,t=200,n=!1,o=!0,l=!1){return wS(HA(t,n,o,l),e)}function Kh(e,t=!0){dt()?pt(e):t?e():Me(e)}function us(e,t,n={}){const{immediate:o=!0}=n,l=A(!1);let a=null;function r(){a&&(clearTimeout(a),a=null)}function i(){l.value=!1,r()}function u(...c){r(),l.value=!0,a=setTimeout(()=>{l.value=!1,a=null,e(...c)},Pa(t))}return o&&(l.value=!0,Nt&&u()),Ns(i),{isPending:fr(l),start:u,stop:i}}function En(e){var t;const n=Pa(e);return(t=n?.$el)!=null?t:n}const El=Nt?window:void 0,YA=Nt?window.document:void 0;function xt(...e){let t,n,o,l;if(VA(e[0])||Array.isArray(e[0])?([n,o,l]=e,t=El):[t,n,o,l]=e,!t)return Kl;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const a=[],r=()=>{a.forEach(d=>d()),a.length=0},i=(d,f,v,p)=>(d.addEventListener(f,v,p),()=>d.removeEventListener(f,v,p)),u=fe(()=>[En(t),Pa(l)],([d,f])=>{r(),d&&a.push(...n.flatMap(v=>o.map(p=>i(d,v,p,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return Ns(c),c}let ly=!1;function Wh(e,t,n={}){const{window:o=El,ignore:l=[],capture:a=!0,detectIframe:r=!1}=n;if(!o)return;ed&&!ly&&(ly=!0,Array.from(o.document.body.children).forEach(v=>v.addEventListener("click",Kl)));let i=!0;const u=v=>l.some(p=>{if(typeof p=="string")return Array.from(o.document.querySelectorAll(p)).some(m=>m===v.target||v.composedPath().includes(m));{const m=En(p);return m&&(v.target===m||v.composedPath().includes(m))}}),d=[xt(o,"click",v=>{const p=En(e);if(!(!p||p===v.target||v.composedPath().includes(p))){if(v.detail===0&&(i=!u(v)),!i){i=!0;return}t(v)}},{passive:!0,capture:a}),xt(o,"pointerdown",v=>{const p=En(e);p&&(i=!v.composedPath().includes(p)&&!u(v))},{passive:!0}),r&&xt(o,"blur",v=>{var p;const m=En(e);((p=o.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!m?.contains(o.document.activeElement)&&t(v)})].filter(Boolean);return()=>d.forEach(v=>v())}function GA(e={}){var t;const{window:n=El}=e,o=(t=e.document)!=null?t:n?.document,l=WA(()=>null,()=>o?.activeElement);return n&&(xt(n,"blur",a=>{a.relatedTarget===null&&l.trigger()},!0),xt(n,"focus",l.trigger,!0)),l}function jh(e,t=!1){const n=A(),o=()=>n.value=!!e();return o(),Kh(o,t),n}function XA(e){return JSON.parse(JSON.stringify(e))}const ay=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ry="__vueuse_ssr_handlers__";ay[ry]=ay[ry]||{};function JA(e,t,{window:n=El,initialValue:o=""}={}){const l=A(o),a=S(()=>{var r;return En(t)||((r=n?.document)==null?void 0:r.documentElement)});return fe([a,()=>Pa(e)],([r,i])=>{var u;if(r&&n){const c=(u=n.getComputedStyle(r).getPropertyValue(i))==null?void 0:u.trim();l.value=c||o}},{immediate:!0}),fe(l,r=>{var i;(i=a.value)!=null&&i.style&&a.value.style.setProperty(Pa(e),r)}),l}function ZA({document:e=YA}={}){if(!e)return A("visible");const t=A(e.visibilityState);return xt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var sy=Object.getOwnPropertySymbols,QA=Object.prototype.hasOwnProperty,e4=Object.prototype.propertyIsEnumerable,t4=(e,t)=>{var n={};for(var o in e)QA.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&sy)for(var o of sy(e))t.indexOf(o)<0&&e4.call(e,o)&&(n[o]=e[o]);return n};function Yt(e,t,n={}){const o=n,{window:l=El}=o,a=t4(o,["window"]);let r;const i=jh(()=>l&&"ResizeObserver"in l),u=()=>{r&&(r.disconnect(),r=void 0)},c=fe(()=>En(e),f=>{u(),i.value&&l&&f&&(r=new ResizeObserver(t),r.observe(f,a))},{immediate:!0,flush:"post"}),d=()=>{u(),c()};return Ns(d),{isSupported:i,stop:d}}function iy(e,t={}){const{reset:n=!0,windowResize:o=!0,windowScroll:l=!0,immediate:a=!0}=t,r=A(0),i=A(0),u=A(0),c=A(0),d=A(0),f=A(0),v=A(0),p=A(0);function m(){const h=En(e);if(!h){n&&(r.value=0,i.value=0,u.value=0,c.value=0,d.value=0,f.value=0,v.value=0,p.value=0);return}const g=h.getBoundingClientRect();r.value=g.height,i.value=g.bottom,u.value=g.left,c.value=g.right,d.value=g.top,f.value=g.width,v.value=g.x,p.value=g.y}return Yt(e,m),fe(()=>En(e),h=>!h&&m()),l&&xt("scroll",m,{capture:!0,passive:!0}),o&&xt("resize",m,{passive:!0}),Kh(()=>{a&&m()}),{height:r,bottom:i,left:u,right:c,top:d,width:f,x:v,y:p,update:m}}function Xp(e,t={width:0,height:0},n={}){const{window:o=El,box:l="content-box"}=n,a=S(()=>{var u,c;return(c=(u=En(e))==null?void 0:u.namespaceURI)==null?void 0:c.includes("svg")}),r=A(t.width),i=A(t.height);return Yt(e,([u])=>{const c=l==="border-box"?u.borderBoxSize:l==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(o&&a.value){const d=En(e);if(d){const f=o.getComputedStyle(d);r.value=parseFloat(f.width),i.value=parseFloat(f.height)}}else if(c){const d=Array.isArray(c)?c:[c];r.value=d.reduce((f,{inlineSize:v})=>f+v,0),i.value=d.reduce((f,{blockSize:v})=>f+v,0)}else r.value=u.contentRect.width,i.value=u.contentRect.height},n),fe(()=>En(e),u=>{r.value=u?t.width:0,i.value=u?t.height:0}),{width:r,height:i}}function n4(e,t,n={}){const{root:o,rootMargin:l="0px",threshold:a=.1,window:r=El}=n,i=jh(()=>r&&"IntersectionObserver"in r);let u=Kl;const c=i.value?fe(()=>({el:En(e),root:En(o)}),({el:f,root:v})=>{if(u(),!f)return;const p=new IntersectionObserver(t,{root:v,rootMargin:l,threshold:a});p.observe(f),u=()=>{p.disconnect(),u=Kl}},{immediate:!0,flush:"post"}):Kl,d=()=>{u(),c()};return Ns(d),{isSupported:i,stop:d}}var uy=Object.getOwnPropertySymbols,o4=Object.prototype.hasOwnProperty,l4=Object.prototype.propertyIsEnumerable,a4=(e,t)=>{var n={};for(var o in e)o4.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&uy)for(var o of uy(e))t.indexOf(o)<0&&l4.call(e,o)&&(n[o]=e[o]);return n};function SS(e,t,n={}){const o=n,{window:l=El}=o,a=a4(o,["window"]);let r;const i=jh(()=>l&&"MutationObserver"in l),u=()=>{r&&(r.disconnect(),r=void 0)},c=fe(()=>En(e),f=>{u(),i.value&&l&&f&&(r=new MutationObserver(t),r.observe(f,a))},{immediate:!0}),d=()=>{u(),c()};return Ns(d),{isSupported:i,stop:d}}var cy;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(cy||(cy={}));var r4=Object.defineProperty,dy=Object.getOwnPropertySymbols,s4=Object.prototype.hasOwnProperty,i4=Object.prototype.propertyIsEnumerable,fy=(e,t,n)=>t in e?r4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u4=(e,t)=>{for(var n in t||(t={}))s4.call(t,n)&&fy(e,n,t[n]);if(dy)for(var n of dy(t))i4.call(t,n)&&fy(e,n,t[n]);return e};const c4={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};u4({linear:KA},c4);function kS(e,t,n,o={}){var l,a,r;const{clone:i=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f}=o,v=dt(),p=n||v?.emit||((l=v?.$emit)==null?void 0:l.bind(v))||((r=(a=v?.proxy)==null?void 0:a.$emit)==null?void 0:r.bind(v?.proxy));let m=c;t||(t="modelValue"),m=c||m||`update:${t.toString()}`;const h=b=>i?Gp(i)?i(b):XA(b):b,g=()=>FA(e[t])?h(e[t]):f;if(u){const b=g(),C=A(b);return fe(()=>e[t],w=>C.value=h(w)),fe(C,w=>{(w!==e[t]||d)&&p(m,w)},{deep:d}),C}else return S({get(){return g()},set(b){p(m,b)}})}function d4({window:e=El}={}){if(!e)return A(!1);const t=A(e.document.hasFocus());return xt(e,"blur",()=>{t.value=!1}),xt(e,"focus",()=>{t.value=!0}),t}function Uh(e={}){const{window:t=El,initialWidth:n=1/0,initialHeight:o=1/0,listenOrientation:l=!0,includeScrollbar:a=!0}=e,r=A(n),i=A(o),u=()=>{t&&(a?(r.value=t.innerWidth,i.value=t.innerHeight):(r.value=t.document.documentElement.clientWidth,i.value=t.document.documentElement.clientHeight))};return u(),Kh(u),xt("resize",u,{passive:!0}),l&&xt("orientationchange",u,{passive:!0}),{width:r,height:i}}class f4 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function fn(e,t){throw new f4(`[${e}] ${t}`)}const py={current:0},vy=A(0),ES=2e3,hy=Symbol("elZIndexContextKey"),_S=Symbol("zIndexContextKey"),du=e=>{const t=dt()?Pe(hy,py):py,n=e||(dt()?Pe(_S,void 0):void 0),o=S(()=>{const r=s(n);return Ye(r)?r:ES}),l=S(()=>o.value+vy.value),a=()=>(t.current++,vy.value=t.current,l.value);return!Nt&&Pe(hy),{initialZIndex:o,currentZIndex:l,nextZIndex:a}};var p4={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const v4=e=>(t,n)=>h4(t,n,s(e)),h4=(e,t,n)=>dn(n,e,e).replace(/\{(\w+)\}/g,(o,l)=>{var a;return`${(a=t?.[l])!=null?a:`{${l}}`}`}),m4=e=>{const t=S(()=>s(e).name),n=Ht(e)?e:A(e);return{lang:t,locale:n,t:v4(e)}},TS=Symbol("localeContextKey"),kt=e=>{const t=e||Pe(TS,A());return m4(S(()=>t.value||p4))},OS="__epPropKey",J=e=>e,g4=e=>rt(e)&&!!e[OS],tl=(e,t)=>{if(!rt(e)||g4(e))return e;const{values:n,required:o,default:l,type:a,validator:r}=e,u={type:a,required:!!o,validator:n||r?c=>{let d=!1,f=[];if(n&&(f=Array.from(n),Rt(e,"default")&&f.push(l),d||(d=f.includes(c))),r&&(d||(d=r(c))),!d&&f.length>0){const v=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");p$(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${v}], got value ${JSON.stringify(c)}.`)}return d}:void 0,[OS]:!0};return Rt(e,"default")&&(u.default=l),u},Ee=e=>Pi(Object.entries(e).map(([t,n])=>[t,tl(n,t)])),_l=["","default","small","large"],gn=tl({type:String,values:_l,required:!1}),$S=Symbol("size"),RS=()=>{const e=Pe($S,{});return S(()=>s(e.size)||"")},NS=Symbol("emptyValuesContextKey"),b4=["",void 0,null],y4=void 0,Tr=Ee({emptyValues:Array,valueOnClear:{type:J([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Ke(e)?e():e,Ce(e)?e.every(t=>!t):!e)}}),fu=(e,t)=>{const n=dt()?Pe(NS,A({})):A({}),o=S(()=>e.emptyValues||n.value.emptyValues||b4),l=S(()=>Ke(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Ke(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:y4),a=r=>{let i=!0;return Ce(r)?i=o.value.some(u=>nn(r,u)):i=o.value.includes(r),i};return a(l.value),{emptyValues:o,valueOnClear:l,isEmptyValue:a}},Mi=e=>Object.keys(e),IS=e=>Object.entries(e),vi=(e,t,n)=>({get value(){return dn(e,t,n)},set value(o){_A(e,t,o)}}),td=A();function Is(e,t=void 0){const n=dt()?Pe(NC,td):td;return e?S(()=>{var o,l;return(l=(o=n.value)==null?void 0:o[e])!=null?l:t}):n}function ef(e,t){const n=Is(),o=ge(e,S(()=>{var i;return((i=n.value)==null?void 0:i.namespace)||di})),l=kt(S(()=>{var i;return(i=n.value)==null?void 0:i.locale})),a=du(S(()=>{var i;return((i=n.value)==null?void 0:i.zIndex)||ES})),r=S(()=>{var i;return s(t)||((i=n.value)==null?void 0:i.size)||""});return qh(S(()=>s(n)||{})),{ns:o,locale:l,zIndex:a,size:r}}const qh=(e,t,n=!1)=>{var o;const l=!!dt(),a=l?Is():void 0,r=(o=t?.provide)!=null?o:l?bt:void 0;if(!r)return;const i=S(()=>{const u=s(e);return a?.value?w4(a.value,u):u});return r(NC,i),r(TS,S(()=>i.value.locale)),r(IC,S(()=>i.value.namespace)),r(_S,S(()=>i.value.zIndex)),r($S,{size:S(()=>i.value.size||"")}),r(NS,S(()=>({emptyValues:i.value.emptyValues,valueOnClear:i.value.valueOnClear}))),(n||!td.value)&&(td.value=i.value),i},w4=(e,t)=>{const n=[...new Set([...Mi(e),...Mi(t)])],o={};for(const l of n)o[l]=t[l]!==void 0?t[l]:e[l];return o},C4=(e=[])=>({version:rN,install:(n,o)=>{n[Eb]||(n[Eb]=!0,e.forEach(l=>n.use(l)),o&&qh(o,n,!0))}}),Qe="update:modelValue",mt="change",pn="input",S4=Ee({zIndex:{type:J([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),k4={scroll:({scrollTop:e,fixed:t})=>Ye(e)&&Lt(t),[mt]:e=>Lt(e)};var Oe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,l]of t)n[o]=l;return n};function E4(e,t,n,o){const l=n-t;return e/=o/2,e<1?l/2*e*e*e+t:l/2*((e-=2)*e*e+2)+t}const Xl=e=>Nt?window.requestAnimationFrame(e):setTimeout(e,16),Jl=e=>Nt?window.cancelAnimationFrame(e):clearTimeout(e),xS=(e="")=>e.split(" ").filter(t=>!!t.trim()),pl=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ro=(e,t)=>{!e||!t.trim()||e.classList.add(...xS(t))},qn=(e,t)=>{!e||!t.trim()||e.classList.remove(...xS(t))},Fl=(e,t)=>{var n;if(!Nt||!e||!t)return"";let o=no(t);o==="float"&&(o="cssFloat");try{const l=e.style[o];if(l)return l;const a=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return a?a[o]:""}catch{return e.style[o]}},PS=(e,t,n)=>{if(!(!e||!t))if(rt(t))IS(t).forEach(([o,l])=>PS(e,o,l));else{const o=no(t);e.style[o]=n}};function Zt(e,t="px"){if(!e&&e!==0)return"";if(Ye(e)||IA(e))return`${e}${t}`;if(Ve(e))return e}const _4=(e,t)=>{if(!Nt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],o=Fl(e,n);return["scroll","auto","overlay"].some(l=>o.includes(l))},Yh=(e,t)=>{if(!Nt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(_4(n,t))return n;n=n.parentNode}return n};let Ku;const MS=e=>{var t;if(!Nt)return 0;if(Ku!==void 0)return Ku;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const l=document.createElement("div");l.style.width="100%",n.appendChild(l);const a=l.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Ku=o-a,Ku};function Gh(e,t){if(!Nt)return;if(!t){e.scrollTop=0;return}const n=[];let o=t.offsetParent;for(;o!==null&&e!==o&&e.contains(o);)n.push(o),o=o.offsetParent;const l=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),a=l+t.offsetHeight,r=e.scrollTop,i=r+e.clientHeight;li&&(e.scrollTop=a-e.clientHeight)}function T4(e,t,n,o,l){const a=Date.now();let r;const i=()=>{const c=Date.now()-a,d=E4(c>o?o:c,t,n,o);uu(e)?e.scrollTo(window.pageXOffset,d):e.scrollTop=d,c{r&&Jl(r)}}const my=(e,t)=>uu(t)?e.ownerDocument.documentElement:t,gy=e=>uu(e)?window.scrollY:e.scrollTop,AS="ElAffix",O4=q({name:AS}),$4=q({...O4,props:S4,emits:k4,setup(e,{expose:t,emit:n}){const o=e,l=ge("affix"),a=jt(),r=jt(),i=jt(),{height:u}=Uh(),{height:c,width:d,top:f,bottom:v,update:p}=iy(r,{windowScroll:!1}),m=iy(a),h=A(!1),g=A(0),b=A(0),C=S(()=>({height:h.value?`${c.value}px`:"",width:h.value?`${d.value}px`:""})),w=S(()=>{if(!h.value)return{};const _=Zt(o.offset);return{height:`${c.value}px`,width:`${d.value}px`,top:o.position==="top"?_:"",bottom:o.position==="bottom"?_:"",transform:b.value?`translateY(${b.value}px)`:"",zIndex:o.zIndex}}),y=()=>{if(!i.value)return;g.value=i.value instanceof Window?document.documentElement.scrollTop:i.value.scrollTop||0;const{position:_,target:I,offset:$}=o,M=$+c.value;if(_==="top")if(I){const T=m.bottom.value-M;h.value=$>f.value&&m.bottom.value>0,b.value=T<0?T:0}else h.value=$>f.value;else if(I){const T=u.value-m.top.value-M;h.value=u.value-$m.top.value,b.value=T<0?-T:0}else h.value=u.value-${if(!h.value){p();return}h.value=!1,await Me(),p(),h.value=!0},E=async()=>{p(),await Me(),n("scroll",{scrollTop:g.value,fixed:h.value})};return fe(h,_=>n(mt,_)),pt(()=>{var _;o.target?(a.value=(_=document.querySelector(o.target))!=null?_:void 0,a.value||fn(AS,`Target does not exist: ${o.target}`)):a.value=document.documentElement,i.value=Yh(r.value,!0),p()}),xt(i,"scroll",E),Eo(y),t({update:y,updateRoot:k}),(_,I)=>(O(),F("div",{ref_key:"root",ref:r,class:x(s(l).b()),style:je(s(C))},[W("div",{class:x({[s(l).m("fixed")]:h.value}),style:je(s(w))},[ae(_.$slots,"default")],6)],6))}});var R4=Oe($4,[["__file","affix.vue"]]);const lt=(e,t)=>{if(e.install=n=>{for(const o of[e,...Object.values(t??{})])n.component(o.name,o)},t)for(const[n,o]of Object.entries(t))e[n]=o;return e},LS=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),N4=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Qt=e=>(e.install=Mt,e),I4=lt(R4),x4=Ee({size:{type:J([Number,String])},color:{type:String}}),P4=q({name:"ElIcon",inheritAttrs:!1}),M4=q({...P4,props:x4,setup(e){const t=e,n=ge("icon"),o=S(()=>{const{size:l,color:a}=t,r=Zt(l);return!r&&!a?{}:{fontSize:r,"--color":a}});return(l,a)=>(O(),F("i",ft({class:s(n).b(),style:s(o)},l.$attrs),[ae(l.$slots,"default")],16))}});var A4=Oe(M4,[["__file","icon.vue"]]);const Fe=lt(A4);var L4=q({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Tl=L4,D4=q({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),Zl=D4,B4=q({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Yn=B4,F4=q({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),tf=F4,V4=q({name:"Back",__name:"back",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),W("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),z4=V4,H4=q({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),DS=H4,K4=q({name:"Camera",__name:"camera",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),W4=K4,j4=q({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),BS=j4,U4=q({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),q4=U4,Y4=q({name:"Check",__name:"check",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),pu=Y4,G4=q({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),X4=G4,J4=q({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Xh=J4,Z4=q({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),Jh=Z4,Q4=q({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ra=Q4,eL=q({name:"Clock",__name:"clock",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),W("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),W("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),FS=eL,tL=q({name:"Close",__name:"close",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Po=tL,nL=q({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),Ma=nL,oL=q({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),Aa=oL,lL=q({name:"Delete",__name:"delete",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),aL=lL,rL=q({name:"Document",__name:"document",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),sL=rL,iL=q({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),uL=iL,cL=q({name:"Hide",__name:"hide",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),W("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),dL=cL,fL=q({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ai=fL,pL=q({name:"Loading",__name:"loading",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),wl=pL,vL=q({name:"Minus",__name:"minus",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),hL=vL,mL=q({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),by=mL,gL=q({name:"More",__name:"more",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),bL=gL,yL=q({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),wL=yL,CL=q({name:"Plus",__name:"plus",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),VS=CL,SL=q({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),kL=SL,EL=q({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),_L=EL,TL=q({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),OL=TL,$L=q({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),RL=$L,NL=q({name:"Search",__name:"search",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),IL=NL,xL=q({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),PL=xL,ML=q({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),AL=ML,LL=q({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Wu=LL,DL=q({name:"Star",__name:"star",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),BL=DL,FL=q({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),zS=FL,VL=q({name:"User",__name:"user",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),zL=VL,HL=q({name:"View",__name:"view",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),KL=HL,WL=q({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),nf=WL,jL=q({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),HS=jL,UL=q({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(O(),F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[W("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),qL=UL;const Bt=J([String,Object,Function]),KS={Close:Po},Zh={Close:Po,SuccessFilled:zS,InfoFilled:Ai,WarningFilled:nf,CircleCloseFilled:Jh},La={primary:Ai,success:zS,warning:nf,error:Jh,info:Ai},of={validating:wl,success:Xh,error:ra},YL=["light","dark"],GL=Ee({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Mi(La),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:YL,default:"light"},showAfter:Number,hideAfter:Number,autoClose:Number}),XL={close:e=>e instanceof MouseEvent},JL=q({name:"ElAlert"}),ZL=q({...JL,props:GL,emits:XL,setup(e,{emit:t}){const n=e,{Close:o}=Zh,l=hn(),a=ge("alert"),r=A(!0),i=S(()=>La[n.type]),u=S(()=>!!(n.description||l.default)),c=d=>{r.value=!1,t("close",d)};return n.showAfter||n.hideAfter||n.autoClose,(d,f)=>(O(),ie(Nn,{name:s(a).b("fade"),persisted:""},{default:te(()=>[it(W("div",{class:x([s(a).b(),s(a).m(d.type),s(a).is("center",d.center),s(a).is(d.effect)]),role:"alert"},[d.showIcon&&(d.$slots.icon||s(i))?(O(),ie(s(Fe),{key:0,class:x([s(a).e("icon"),s(a).is("big",s(u))])},{default:te(()=>[ae(d.$slots,"icon",{},()=>[(O(),ie(ut(s(i))))])]),_:3},8,["class"])):re("v-if",!0),W("div",{class:x(s(a).e("content"))},[d.title||d.$slots.title?(O(),F("span",{key:0,class:x([s(a).e("title"),{"with-description":s(u)}])},[ae(d.$slots,"title",{},()=>[vt(ke(d.title),1)])],2)):re("v-if",!0),s(u)?(O(),F("p",{key:1,class:x(s(a).e("description"))},[ae(d.$slots,"default",{},()=>[vt(ke(d.description),1)])],2)):re("v-if",!0),d.closable?(O(),F(ze,{key:2},[d.closeText?(O(),F("div",{key:0,class:x([s(a).e("close-btn"),s(a).is("customed")]),onClick:c},ke(d.closeText),3)):(O(),ie(s(Fe),{key:1,class:x(s(a).e("close-btn")),onClick:c},{default:te(()=>[G(s(o))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[$t,r.value]])]),_:3},8,["name"]))}});var QL=Oe(ZL,[["__file","alert.vue"]]);const e3=lt(QL),Qh=()=>Nt&&/firefox/i.test(window.navigator.userAgent),WS=()=>Nt&&/android/i.test(window.navigator.userAgent);let ro;const t3={height:"0",visibility:"hidden",overflow:Qh()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},n3=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],yy=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function o3(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),o=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),l=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:n3.map(r=>[r,t.getPropertyValue(r)]),paddingSize:o,borderSize:l,boxSizing:n}}function wy(e,t=1,n){var o,l;ro||(ro=document.createElement("textarea"),((o=e.parentNode)!=null?o:document.body).appendChild(ro));const{paddingSize:a,borderSize:r,boxSizing:i,contextStyle:u}=o3(e);u.forEach(([v,p])=>ro?.style.setProperty(v,p)),Object.entries(t3).forEach(([v,p])=>ro?.style.setProperty(v,p,"important")),ro.value=e.value||e.placeholder||"";let c=ro.scrollHeight;const d={};i==="border-box"?c=c+r:i==="content-box"&&(c=c-a),ro.value="";const f=ro.scrollHeight-a;if(Ye(t)){let v=f*t;i==="border-box"&&(v=v+a+r),c=Math.max(v,c),d.minHeight=`${v}px`}if(Ye(n)){let v=f*n;i==="border-box"&&(v=v+a+r),c=Math.min(v,c)}return d.height=`${c}px`,(l=ro.parentNode)==null||l.removeChild(ro),ro=void 0,d}const Jt=e=>e,l3=Ee({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Gn=e=>Gl(l3,e),vu=Ee({id:{type:String,default:void 0},size:gn,disabled:{type:Boolean,default:void 0},modelValue:{type:J([String,Number,Object]),default:""},modelModifiers:{type:J(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:J(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([Boolean,Object]),default:!1},autocomplete:{type:J(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Bt,default:ra},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Bt},prefixIcon:{type:Bt},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:J([Object,Array,String]),default:()=>Jt({})},autofocus:Boolean,rows:{type:Number,default:2},...Gn(["ariaLabel"]),inputmode:{type:J(String),default:void 0},name:String}),a3={[Qe]:e=>Ve(e),input:e=>Ve(e),change:(e,t)=>Ve(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},r3=["class","style"],s3=/^on[A-Z]/,lf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,o=S(()=>(n?.value||[]).concat(r3)),l=dt();return S(l?()=>{var a;return Pi(Object.entries((a=l.proxy)==null?void 0:a.$attrs).filter(([r])=>!o.value.includes(r)&&!(t&&s3.test(r))))}:()=>({}))},Cy={prefix:Math.floor(Math.random()*1e4),current:0},i3=Symbol("elIdInjection"),em=()=>dt()?Pe(i3,Cy):Cy,In=e=>{const t=em(),n=Oh();return Qc(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Or=Symbol("formContextKey"),Cl=Symbol("formItemContextKey"),$n=()=>{const e=Pe(Or,void 0),t=Pe(Cl,void 0);return{form:e,formItem:t}},_o=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:o})=>{n||(n=A(!1)),o||(o=A(!1));const l=dt(),a=()=>{let c=l?.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=A();let i;const u=S(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return pt(()=>{i=fe([Dt(e,"id"),n],([c,d])=>{const f=c??(d?void 0:In().value);f!==r.value&&(t?.removeInputId&&!a()&&(r.value&&t.removeInputId(r.value),!o?.value&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Es(()=>{i&&i(),t?.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},jS=e=>{const t=dt();return S(()=>{var n,o;return(o=(n=t?.proxy)==null?void 0:n.$props)==null?void 0:o[e]})},vn=(e,t={})=>{const n=A(void 0),o=t.prop?n:jS("size"),l=t.global?n:RS(),a=t.form?{size:void 0}:Pe(Or,void 0),r=t.formItem?{size:void 0}:Pe(Cl,void 0);return S(()=>o.value||s(e)||r?.size||a?.size||l.value||"")},en=e=>{const t=jS("disabled"),n=Pe(Or,void 0);return S(()=>{var o,l,a;return(a=(l=(o=t.value)!=null?o:s(e))!=null?l:n?.disabled)!=null?a:!1})},u3='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Sy=e=>typeof Element>"u"?!1:e instanceof Element,c3=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,ky=e=>Array.from(e.querySelectorAll(u3)).filter(t=>Li(t)&&c3(t)),Li=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},fc=function(e,t,...n){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const l=document.createEvent(o);return l.initEvent(t,...n),e.dispatchEvent(l),e},US=e=>!e.getAttribute("aria-owns"),qS=(e,t,n)=>{const{parentNode:o}=e;if(!o)return null;const l=o.querySelectorAll(n),a=Array.prototype.indexOf.call(l,e);return l[a+t]||null},hu=(e,t)=>{if(!e||!e.focus)return;let n=!1;Sy(e)&&!Li(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),Sy(e)&&n&&e.removeAttribute("tabindex")},pc=e=>{e&&(hu(e),!US(e)&&e.click())};function sa(e,{disabled:t,beforeFocus:n,afterFocus:o,beforeBlur:l,afterBlur:a}={}){const r=dt(),{emit:i}=r,u=jt(),c=A(!1),d=p=>{const m=Ke(n)?n(p):!1;s(t)||c.value||m||(c.value=!0,i("focus",p),o?.())},f=p=>{var m;const h=Ke(l)?l(p):!1;s(t)||p.relatedTarget&&((m=u.value)!=null&&m.contains(p.relatedTarget))||h||(c.value=!1,i("blur",p),a?.())},v=p=>{var m,h;s(t)||Li(p.target)||(m=u.value)!=null&&m.contains(document.activeElement)&&u.value!==document.activeElement||(h=e.value)==null||h.focus()};return fe([u,()=>s(t)],([p,m])=>{p&&(m?p.removeAttribute("tabindex"):p.setAttribute("tabindex","-1"))}),xt(u,"focus",d,!0),xt(u,"blur",f,!0),xt(u,"click",v,!0),{isFocused:c,wrapperRef:u,handleFocus:d,handleBlur:f}}const d3=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function mu({afterComposition:e,emit:t}){const n=A(!1),o=i=>{t?.("compositionstart",i),n.value=!0},l=i=>{var u;t?.("compositionupdate",i);const c=(u=i.target)==null?void 0:u.value,d=c[c.length-1]||"";n.value=!d3(d)},a=i=>{t?.("compositionend",i),n.value&&(n.value=!1,Me(()=>e(i)))};return{isComposing:n,handleComposition:i=>{i.type==="compositionend"?a(i):l(i)},handleCompositionStart:o,handleCompositionUpdate:l,handleCompositionEnd:a}}function f3(e){let t;function n(){if(e.value==null)return;const{selectionStart:l,selectionEnd:a,value:r}=e.value;if(l==null||a==null)return;const i=r.slice(0,Math.max(0,l)),u=r.slice(Math.max(0,a));t={selectionStart:l,selectionEnd:a,value:r,beforeTxt:i,afterTxt:u}}function o(){if(e.value==null||t==null)return;const{value:l}=e.value,{beforeTxt:a,afterTxt:r,selectionStart:i}=t;if(a==null||r==null||i==null)return;let u=l.length;if(l.endsWith(r))u=l.length-r.length;else if(l.startsWith(a))u=a.length;else{const c=a[i-1],d=l.indexOf(c,i-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,o]}const p3="ElInput",v3=q({name:p3,inheritAttrs:!1}),h3=q({...v3,props:vu,emits:a3,setup(e,{expose:t,emit:n}){const o=e,l=oa(),a=lf(),r=hn(),i=S(()=>[o.type==="textarea"?h.b():m.b(),m.m(v.value),m.is("disabled",p.value),m.is("exceed",B.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||o.prefixIcon,[m.m("suffix")]:r.suffix||o.suffixIcon||o.clearable||o.showPassword,[m.bm("suffix","password-clear")]:L.value&&V.value,[m.b("hidden")]:o.type==="hidden"},l.class]),u=S(()=>[m.e("wrapper"),m.is("focus",I.value)]),{form:c,formItem:d}=$n(),{inputId:f}=_o(o,{formItemContext:d}),v=vn(),p=en(),m=ge("input"),h=ge("textarea"),g=jt(),b=jt(),C=A(!1),w=A(!1),y=A(),k=jt(o.inputStyle),E=S(()=>g.value||b.value),{wrapperRef:_,isFocused:I,handleFocus:$,handleBlur:M}=sa(E,{disabled:p,afterBlur(){var me;o.validateEvent&&((me=d?.validate)==null||me.call(d,"blur").catch(We=>void 0))}}),T=S(()=>{var me;return(me=c?.statusIcon)!=null?me:!1}),N=S(()=>d?.validateState||""),z=S(()=>N.value&&of[N.value]),U=S(()=>w.value?KL:dL),Y=S(()=>[l.style]),P=S(()=>[o.inputStyle,k.value,{resize:o.resize}]),R=S(()=>cn(o.modelValue)?"":String(o.modelValue)),L=S(()=>o.clearable&&!p.value&&!o.readonly&&!!R.value&&(I.value||C.value)),V=S(()=>o.showPassword&&!p.value&&!!R.value),D=S(()=>o.showWordLimit&&!!o.maxlength&&(o.type==="text"||o.type==="textarea")&&!p.value&&!o.readonly&&!o.showPassword),K=S(()=>R.value.length),B=S(()=>!!D.value&&K.value>Number(o.maxlength)),j=S(()=>!!r.suffix||!!o.suffixIcon||L.value||o.showPassword||D.value||!!N.value&&T.value),ne=S(()=>!!Object.keys(o.modelModifiers).length),[oe,ce]=f3(g);Yt(b,me=>{if(X(),!D.value||o.resize!=="both"&&o.resize!=="horizontal")return;const We=me[0],{width:Be}=We.contentRect;y.value={right:`calc(100% - ${Be+22-10}px)`}});const ee=()=>{const{type:me,autosize:We}=o;if(!(!Nt||me!=="textarea"||!b.value))if(We){const Be=rt(We)?We.minRows:void 0,Ct=rt(We)?We.maxRows:void 0,Et=wy(b.value,Be,Ct);k.value={overflowY:"hidden",...Et},Me(()=>{b.value.offsetHeight,k.value=Et})}else k.value={minHeight:wy(b.value).minHeight}},X=(me=>{let We=!1;return()=>{var Be;if(We||!o.autosize)return;((Be=b.value)==null?void 0:Be.offsetParent)===null||(setTimeout(me),We=!0)}})(ee),Q=()=>{const me=E.value,We=o.formatter?o.formatter(R.value):R.value;!me||me.value===We||o.type==="file"||(me.value=We)},le=me=>{const{trim:We,number:Be}=o.modelModifiers;return We&&(me=me.trim()),Be&&(me=`${yy(me)}`),o.formatter&&o.parser&&(me=o.parser(me)),me},H=async me=>{if(ue.value)return;const{lazy:We}=o.modelModifiers;let{value:Be}=me.target;if(We){n(pn,Be);return}if(Be=le(Be),String(Be)===R.value){o.formatter&&Q();return}oe(),n(Qe,Be),n(pn,Be),await Me(),(o.formatter&&o.parser||!ne.value)&&Q(),ce()},Z=async me=>{let{value:We}=me.target;We=le(We),o.modelModifiers.lazy&&n(Qe,We),n(mt,We,me),await Me(),Q()},{isComposing:ue,handleCompositionStart:pe,handleCompositionUpdate:ve,handleCompositionEnd:he}=mu({emit:n,afterComposition:H}),xe=()=>{w.value=!w.value},_e=()=>{var me;return(me=E.value)==null?void 0:me.focus()},De=()=>{var me;return(me=E.value)==null?void 0:me.blur()},ye=me=>{C.value=!1,n("mouseleave",me)},Ie=me=>{C.value=!0,n("mouseenter",me)},Re=me=>{n("keydown",me)},Le=()=>{var me;(me=E.value)==null||me.select()},He=()=>{n(Qe,""),n(mt,""),n("clear"),n(pn,"")};return fe(()=>o.modelValue,()=>{var me;Me(()=>ee()),o.validateEvent&&((me=d?.validate)==null||me.call(d,"change").catch(We=>void 0))}),fe(R,me=>{if(!E.value)return;const{trim:We,number:Be}=o.modelModifiers,Ct=E.value.value,Et=(Be||o.type==="number")&&!/^0\d/.test(Ct)?`${yy(Ct)}`:Ct;Et!==me&&(document.activeElement===E.value&&E.value.type!=="range"&&We&&Et.trim()===me||Q())}),fe(()=>o.type,async()=>{await Me(),Q(),ee()}),pt(()=>{!o.formatter&&o.parser,Q(),Me(ee)}),t({input:g,textarea:b,ref:E,textareaStyle:P,autosize:Dt(o,"autosize"),isComposing:ue,focus:_e,blur:De,select:Le,clear:He,resizeTextarea:ee}),(me,We)=>(O(),F("div",{class:x([s(i),{[s(m).bm("group","append")]:me.$slots.append,[s(m).bm("group","prepend")]:me.$slots.prepend}]),style:je(s(Y)),onMouseenter:Ie,onMouseleave:ye},[re(" input "),me.type!=="textarea"?(O(),F(ze,{key:0},[re(" prepend slot "),me.$slots.prepend?(O(),F("div",{key:0,class:x(s(m).be("group","prepend"))},[ae(me.$slots,"prepend")],2)):re("v-if",!0),W("div",{ref_key:"wrapperRef",ref:_,class:x(s(u))},[re(" prefix slot "),me.$slots.prefix||me.prefixIcon?(O(),F("span",{key:0,class:x(s(m).e("prefix"))},[W("span",{class:x(s(m).e("prefix-inner"))},[ae(me.$slots,"prefix"),me.prefixIcon?(O(),ie(s(Fe),{key:0,class:x(s(m).e("icon"))},{default:te(()=>[(O(),ie(ut(me.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),W("input",ft({id:s(f),ref_key:"input",ref:g,class:s(m).e("inner")},s(a),{name:me.name,minlength:me.minlength,maxlength:me.maxlength,type:me.showPassword?w.value?"text":"password":me.type,disabled:s(p),readonly:me.readonly,autocomplete:me.autocomplete,tabindex:me.tabindex,"aria-label":me.ariaLabel,placeholder:me.placeholder,style:me.inputStyle,form:me.form,autofocus:me.autofocus,role:me.containerRole,inputmode:me.inputmode,onCompositionstart:s(pe),onCompositionupdate:s(ve),onCompositionend:s(he),onInput:H,onChange:Z,onKeydown:Re}),null,16,["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode","onCompositionstart","onCompositionupdate","onCompositionend"]),re(" suffix slot "),s(j)?(O(),F("span",{key:1,class:x(s(m).e("suffix"))},[W("span",{class:x(s(m).e("suffix-inner"))},[!s(L)||!s(V)||!s(D)?(O(),F(ze,{key:0},[ae(me.$slots,"suffix"),me.suffixIcon?(O(),ie(s(Fe),{key:0,class:x(s(m).e("icon"))},{default:te(()=>[(O(),ie(ut(me.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),s(L)?(O(),ie(s(Fe),{key:1,class:x([s(m).e("icon"),s(m).e("clear")]),onMousedown:Ze(s(Mt),["prevent"]),onClick:He},{default:te(()=>[(O(),ie(ut(me.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),s(V)?(O(),ie(s(Fe),{key:2,class:x([s(m).e("icon"),s(m).e("password")]),onClick:xe,onMousedown:Ze(s(Mt),["prevent"]),onMouseup:Ze(s(Mt),["prevent"])},{default:te(()=>[(O(),ie(ut(s(U))))]),_:1},8,["class","onMousedown","onMouseup"])):re("v-if",!0),s(D)?(O(),F("span",{key:3,class:x([s(m).e("count"),s(m).is("outside",me.wordLimitPosition==="outside")])},[W("span",{class:x(s(m).e("count-inner"))},ke(s(K))+" / "+ke(me.maxlength),3)],2)):re("v-if",!0),s(N)&&s(z)&&s(T)?(O(),ie(s(Fe),{key:4,class:x([s(m).e("icon"),s(m).e("validateIcon"),s(m).is("loading",s(N)==="validating")])},{default:te(()=>[(O(),ie(ut(s(z))))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),me.$slots.append?(O(),F("div",{key:1,class:x(s(m).be("group","append"))},[ae(me.$slots,"append")],2)):re("v-if",!0)],64)):(O(),F(ze,{key:1},[re(" textarea "),W("textarea",ft({id:s(f),ref_key:"textarea",ref:b,class:[s(h).e("inner"),s(m).is("focus",s(I))]},s(a),{name:me.name,minlength:me.minlength,maxlength:me.maxlength,tabindex:me.tabindex,disabled:s(p),readonly:me.readonly,autocomplete:me.autocomplete,style:s(P),"aria-label":me.ariaLabel,placeholder:me.placeholder,form:me.form,autofocus:me.autofocus,rows:me.rows,role:me.containerRole,onCompositionstart:s(pe),onCompositionupdate:s(ve),onCompositionend:s(he),onInput:H,onFocus:s($),onBlur:s(M),onChange:Z,onKeydown:Re}),null,16,["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),s(D)?(O(),F("span",{key:0,style:je(y.value),class:x([s(m).e("count"),s(m).is("outside",me.wordLimitPosition==="outside")])},ke(s(K))+" / "+ke(me.maxlength),7)):re("v-if",!0)],64))],38))}});var m3=Oe(h3,[["__file","input.vue"]]);const Un=lt(m3),Nr=4,YS={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},g3=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),tm=Symbol("scrollbarContextKey"),b3=Ee({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),y3="Thumb",w3=q({__name:"thumb",props:b3,setup(e){const t=e,n=Pe(tm),o=ge("scrollbar");n||fn(y3,"can not inject scrollbar context");const l=A(),a=A(),r=A({}),i=A(!1);let u=!1,c=!1,d=0,f=0,v=Nt?document.onselectstart:null;const p=S(()=>YS[t.vertical?"vertical":"horizontal"]),m=S(()=>g3({size:t.size,move:t.move,bar:p.value})),h=S(()=>l.value[p.value.offset]**2/n.wrapElement[p.value.scrollSize]/t.ratio/a.value[p.value.offset]),g=I=>{var $;if(I.stopPropagation(),I.ctrlKey||[1,2].includes(I.button))return;($=window.getSelection())==null||$.removeAllRanges(),C(I);const M=I.currentTarget;M&&(r.value[p.value.axis]=M[p.value.offset]-(I[p.value.client]-M.getBoundingClientRect()[p.value.direction]))},b=I=>{if(!a.value||!l.value||!n.wrapElement)return;const $=Math.abs(I.target.getBoundingClientRect()[p.value.direction]-I[p.value.client]),M=a.value[p.value.offset]/2,T=($-M)*100*h.value/l.value[p.value.offset];n.wrapElement[p.value.scroll]=T*n.wrapElement[p.value.scrollSize]/100},C=I=>{I.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",y),v=document.onselectstart,document.onselectstart=()=>!1},w=I=>{if(!l.value||!a.value||u===!1)return;const $=r.value[p.value.axis];if(!$)return;const M=(l.value.getBoundingClientRect()[p.value.direction]-I[p.value.client])*-1,T=a.value[p.value.offset]-$,N=(M-T)*100*h.value/l.value[p.value.offset];p.value.scroll==="scrollLeft"?n.wrapElement[p.value.scroll]=N*f/100:n.wrapElement[p.value.scroll]=N*d/100},y=()=>{u=!1,r.value[p.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",y),_(),c&&(i.value=!1)},k=()=>{c=!1,i.value=!!t.size},E=()=>{c=!0,i.value=u};Pt(()=>{_(),document.removeEventListener("mouseup",y)});const _=()=>{document.onselectstart!==v&&(document.onselectstart=v)};return xt(Dt(n,"scrollbarElement"),"mousemove",k),xt(Dt(n,"scrollbarElement"),"mouseleave",E),(I,$)=>(O(),ie(Nn,{name:s(o).b("fade"),persisted:""},{default:te(()=>[it(W("div",{ref_key:"instance",ref:l,class:x([s(o).e("bar"),s(o).is(s(p).key)]),onMousedown:b,onClick:Ze(()=>{},["stop"])},[W("div",{ref_key:"thumb",ref:a,class:x(s(o).e("thumb")),style:je(s(m)),onMousedown:g},null,38)],42,["onClick"]),[[$t,I.always||i.value]])]),_:1},8,["name"]))}});var Ey=Oe(w3,[["__file","thumb.vue"]]);const C3=Ee({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),S3=q({__name:"bar",props:C3,setup(e,{expose:t}){const n=e,o=Pe(tm),l=A(0),a=A(0),r=A(""),i=A(""),u=A(1),c=A(1);return t({handleScroll:v=>{if(v){const p=v.offsetHeight-Nr,m=v.offsetWidth-Nr;a.value=v.scrollTop*100/p*u.value,l.value=v.scrollLeft*100/m*c.value}},update:()=>{const v=o?.wrapElement;if(!v)return;const p=v.offsetHeight-Nr,m=v.offsetWidth-Nr,h=p**2/v.scrollHeight,g=m**2/v.scrollWidth,b=Math.max(h,n.minSize),C=Math.max(g,n.minSize);u.value=h/(p-h)/(b/(p-b)),c.value=g/(m-g)/(C/(m-C)),i.value=b+Nr(O(),F(ze,null,[G(Ey,{move:l.value,ratio:c.value,size:r.value,always:v.always},null,8,["move","ratio","size","always"]),G(Ey,{move:a.value,ratio:u.value,size:i.value,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var k3=Oe(S3,[["__file","bar.vue"]]);const E3=Ee({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:J([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...Gn(["ariaLabel","ariaOrientation"])}),GS={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ye)},_3="ElScrollbar",T3=q({name:_3}),O3=q({...T3,props:E3,emits:GS,setup(e,{expose:t,emit:n}){const o=e,l=ge("scrollbar");let a,r,i,u=0,c=0,d="";const f={bottom:!1,top:!1,right:!1,left:!1},v=A(),p=A(),m=A(),h=A(),g=S(()=>{const T={},N=Zt(o.height),z=Zt(o.maxHeight);return N&&(T.height=N),z&&(T.maxHeight=z),[o.wrapStyle,T]}),b=S(()=>[o.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!o.native}]),C=S(()=>[l.e("view"),o.viewClass]),w=T=>{var N;return(N=f[T])!=null?N:!1},y={top:"bottom",bottom:"top",left:"right",right:"left"},k=T=>{const N=y[d];if(!N)return;const z=T[d],U=T[N];z&&!f[d]&&(f[d]=!0),!U&&f[N]&&(f[N]=!1)},E=()=>{var T;if(p.value){(T=h.value)==null||T.handleScroll(p.value);const N=u,z=c;u=p.value.scrollTop,c=p.value.scrollLeft;const U={bottom:u+p.value.clientHeight>=p.value.scrollHeight-o.distance,top:u<=o.distance&&N!==0,right:c+p.value.clientWidth>=p.value.scrollWidth-o.distance&&z!==c,left:c<=o.distance&&z!==0};if(n("scroll",{scrollTop:u,scrollLeft:c}),N!==u&&(d=u>N?"bottom":"top"),z!==c&&(d=c>z?"right":"left"),o.distance>0){if(w(d))return;k(U)}U[d]&&n("end-reached",d)}};function _(T,N){rt(T)?p.value.scrollTo(T):Ye(T)&&Ye(N)&&p.value.scrollTo(T,N)}const I=T=>{Ye(T)&&(p.value.scrollTop=T)},$=T=>{Ye(T)&&(p.value.scrollLeft=T)},M=()=>{var T;(T=h.value)==null||T.update(),f[d]=!1};return fe(()=>o.noresize,T=>{T?(a?.(),r?.(),i?.()):({stop:a}=Yt(m,M),{stop:r}=Yt(p,M),i=xt("resize",M))},{immediate:!0}),fe(()=>[o.maxHeight,o.height],()=>{o.native||Me(()=>{var T;M(),p.value&&((T=h.value)==null||T.handleScroll(p.value))})}),bt(tm,It({scrollbarElement:v,wrapElement:p})),Dd(()=>{p.value&&(p.value.scrollTop=u,p.value.scrollLeft=c)}),pt(()=>{o.native||Me(()=>{M()})}),Qo(()=>M()),t({wrapRef:p,update:M,scrollTo:_,setScrollTop:I,setScrollLeft:$,handleScroll:E}),(T,N)=>(O(),F("div",{ref_key:"scrollbarRef",ref:v,class:x(s(l).b())},[W("div",{ref_key:"wrapRef",ref:p,class:x(s(b)),style:je(s(g)),tabindex:T.tabindex,onScroll:E},[(O(),ie(ut(T.tag),{id:T.id,ref_key:"resizeRef",ref:m,class:x(s(C)),style:je(T.viewStyle),role:T.role,"aria-label":T.ariaLabel,"aria-orientation":T.ariaOrientation},{default:te(()=>[ae(T.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),T.native?re("v-if",!0):(O(),ie(k3,{key:0,ref_key:"barRef",ref:h,always:T.always,"min-size":T.minSize},null,8,["always","min-size"]))],2))}});var $3=Oe(O3,[["__file","scrollbar.vue"]]);const Yo=lt($3),nm=Symbol("popper"),XS=Symbol("popperContent"),JS=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],ZS=Ee({role:{type:String,values:JS,default:"tooltip"}}),R3=q({name:"ElPopper",inheritAttrs:!1}),N3=q({...R3,props:ZS,setup(e,{expose:t}){const n=e,o=A(),l=A(),a=A(),r=A(),i=S(()=>n.role),u={triggerRef:o,popperInstanceRef:l,contentRef:a,referenceRef:r,role:i};return t(u),bt(nm,u),(c,d)=>ae(c.$slots,"default")}});var I3=Oe(N3,[["__file","popper.vue"]]);const x3=q({name:"ElPopperArrow",inheritAttrs:!1}),P3=q({...x3,setup(e,{expose:t}){const n=ge("popper"),{arrowRef:o,arrowStyle:l}=Pe(XS,void 0);return Pt(()=>{o.value=void 0}),t({arrowRef:o}),(a,r)=>(O(),F("span",{ref_key:"arrowRef",ref:o,class:x(s(n).e("arrow")),style:je(s(l)),"data-popper-arrow":""},null,6))}});var M3=Oe(P3,[["__file","arrow.vue"]]);const QS=Ee({virtualRef:{type:J(Object)},virtualTriggering:Boolean,onMouseenter:{type:J(Function)},onMouseleave:{type:J(Function)},onClick:{type:J(Function)},onKeydown:{type:J(Function)},onFocus:{type:J(Function)},onBlur:{type:J(Function)},onContextmenu:{type:J(Function)},id:String,open:Boolean}),ek=Symbol("elForwardRef"),A3=e=>{bt(ek,{setForwardRef:n=>{e.value=n}})},L3=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),D3="ElOnlyChild",tk=q({name:D3,setup(e,{slots:t,attrs:n}){var o;const l=Pe(ek),a=L3((o=l?.setForwardRef)!=null?o:Mt);return()=>{var r;const i=(r=t.default)==null?void 0:r.call(t,n);if(!i)return null;const[u,c]=nk(i);return u?it(Yl(u,n),[[a]]):null}}});function nk(e){if(!e)return[null,0];const t=e,n=t.filter(o=>o.type!==un).length;for(const o of t){if(rt(o))switch(o.type){case un:continue;case _s:case"svg":return[_y(o),n];case ze:return nk(o.children);default:return[o,n]}return[_y(o),n]}return[null,0]}function _y(e){const t=ge("only-child");return G("span",{class:t.e("content")},[e])}const B3=q({name:"ElPopperTrigger",inheritAttrs:!1}),F3=q({...B3,props:QS,setup(e,{expose:t}){const n=e,{role:o,triggerRef:l}=Pe(nm,void 0);A3(l);const a=S(()=>i.value?n.id:void 0),r=S(()=>{if(o&&o.value==="tooltip")return n.open&&n.id?n.id:void 0}),i=S(()=>{if(o&&o.value!=="tooltip")return o.value}),u=S(()=>i.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return pt(()=>{fe(()=>n.virtualRef,f=>{f&&(l.value=En(f))},{immediate:!0}),fe(l,(f,v)=>{c?.(),c=void 0,io(v)&&d.forEach(p=>{const m=n[p];m&&v.removeEventListener(p.slice(2).toLowerCase(),m,["onFocus","onBlur"].includes(p))}),io(f)&&(d.forEach(p=>{const m=n[p];m&&f.addEventListener(p.slice(2).toLowerCase(),m,["onFocus","onBlur"].includes(p))}),Li(f)&&(c=fe([a,r,i,u],p=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((m,h)=>{cn(p[h])?f.removeAttribute(m):f.setAttribute(m,p[h])})},{immediate:!0}))),io(v)&&Li(v)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(p=>v.removeAttribute(p))},{immediate:!0})}),Pt(()=>{if(c?.(),c=void 0,l.value&&io(l.value)){const f=l.value;d.forEach(v=>{const p=n[v];p&&f.removeEventListener(v.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(v))}),l.value=void 0}}),t({triggerRef:l}),(f,v)=>f.virtualTriggering?re("v-if",!0):(O(),ie(s(tk),ft({key:0},f.$attrs,{"aria-controls":s(a),"aria-describedby":s(r),"aria-expanded":s(u),"aria-haspopup":s(i)}),{default:te(()=>[ae(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var V3=Oe(F3,[["__file","trigger.vue"]]);const ep="focus-trap.focus-after-trapped",tp="focus-trap.focus-after-released",z3="focus-trap.focusout-prevented",Ty={cancelable:!0,bubbles:!1},H3={cancelable:!0,bubbles:!1},Oy="focusAfterTrapped",$y="focusAfterReleased",ok=Symbol("elFocusTrap"),om=A(),af=A(0),lm=A(0);let ju=0;const lk=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Ry=(e,t)=>{for(const n of e)if(!K3(n,t))return n},K3=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},W3=e=>{const t=lk(e),n=Ry(t,e),o=Ry(t.reverse(),e);return[n,o]},j3=e=>e instanceof HTMLInputElement&&"select"in e,va=(e,t)=>{if(e){const n=document.activeElement;hu(e,{preventScroll:!0}),lm.value=window.performance.now(),e!==n&&j3(e)&&t&&e.select()}};function Ny(e,t){const n=[...e],o=e.indexOf(t);return o!==-1&&n.splice(o,1),n}const U3=()=>{let e=[];return{push:o=>{const l=e[0];l&&o!==l&&l.pause(),e=Ny(e,o),e.unshift(o)},remove:o=>{var l,a;e=Ny(e,o),(a=(l=e[0])==null?void 0:l.resume)==null||a.call(l)}}},q3=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(va(o,t),document.activeElement!==n)return},Iy=U3(),Y3=()=>af.value>lm.value,Uu=()=>{om.value="pointer",af.value=window.performance.now()},xy=()=>{om.value="keyboard",af.value=window.performance.now()},G3=()=>(pt(()=>{ju===0&&(document.addEventListener("mousedown",Uu),document.addEventListener("touchstart",Uu),document.addEventListener("keydown",xy)),ju++}),Pt(()=>{ju--,ju<=0&&(document.removeEventListener("mousedown",Uu),document.removeEventListener("touchstart",Uu),document.removeEventListener("keydown",xy))}),{focusReason:om,lastUserFocusTimestamp:af,lastAutomatedFocusTimestamp:lm}),qu=e=>new CustomEvent(z3,{...H3,detail:e}),Se={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},wn=(e,t,{checkForDefaultPrevented:n=!0}={})=>l=>{const a=e?.(l);if(n===!1||!a)return t?.(l)},Py=e=>t=>t.pointerType==="mouse"?e(t):void 0,Vt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=ak(e);if(t){if(Object.values(Se).includes(t))return t;switch(t){case" ":return Se.space;default:return""}}return""},ak=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&WS()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let Fr=[];const My=e=>{Vt(e)===Se.esc&&Fr.forEach(n=>n(e))},X3=e=>{pt(()=>{Fr.length===0&&document.addEventListener("keydown",My),Nt&&Fr.push(e)}),Pt(()=>{Fr=Fr.filter(t=>t!==e),Fr.length===0&&Nt&&document.removeEventListener("keydown",My)})},J3=q({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Oy,$y,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=A();let o,l;const{focusReason:a}=G3();X3(m=>{e.trapped&&!r.paused&&t("release-requested",m)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},i=m=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:h,ctrlKey:g,metaKey:b,currentTarget:C,shiftKey:w}=m,{loop:y}=e,E=Vt(m)===Se.tab&&!h&&!g&&!b,_=document.activeElement;if(E&&_){const I=C,[$,M]=W3(I);if($&&M){if(!w&&_===M){const N=qu({focusReason:a.value});t("focusout-prevented",N),N.defaultPrevented||(m.preventDefault(),y&&va($,!0))}else if(w&&[$,I].includes(_)){const N=qu({focusReason:a.value});t("focusout-prevented",N),N.defaultPrevented||(m.preventDefault(),y&&va(M,!0))}}else if(_===I){const N=qu({focusReason:a.value});t("focusout-prevented",N),N.defaultPrevented||m.preventDefault()}}};bt(ok,{focusTrapRef:n,onKeydown:i}),fe(()=>e.focusTrapEl,m=>{m&&(n.value=m)},{immediate:!0}),fe([n],([m],[h])=>{m&&(m.addEventListener("keydown",i),m.addEventListener("focusin",d),m.addEventListener("focusout",f)),h&&(h.removeEventListener("keydown",i),h.removeEventListener("focusin",d),h.removeEventListener("focusout",f))});const u=m=>{t(Oy,m)},c=m=>t($y,m),d=m=>{const h=s(n);if(!h)return;const g=m.target,b=m.relatedTarget,C=g&&h.contains(g);e.trapped||b&&h.contains(b)||(o=b),C&&t("focusin",m),!r.paused&&e.trapped&&(C?l=g:va(l,!0))},f=m=>{const h=s(n);if(!(r.paused||!h))if(e.trapped){const g=m.relatedTarget;!cn(g)&&!h.contains(g)&&setTimeout(()=>{if(!r.paused&&e.trapped){const b=qu({focusReason:a.value});t("focusout-prevented",b),b.defaultPrevented||va(l,!0)}},0)}else{const g=m.target;g&&h.contains(g)||t("focusout",m)}};async function v(){await Me();const m=s(n);if(m){Iy.push(r);const h=m.contains(document.activeElement)?o:document.activeElement;if(o=h,!m.contains(h)){const b=new Event(ep,Ty);m.addEventListener(ep,u),m.dispatchEvent(b),b.defaultPrevented||Me(()=>{let C=e.focusStartEl;Ve(C)||(va(C),document.activeElement!==C&&(C="first")),C==="first"&&q3(lk(m),!0),(document.activeElement===h||C==="container")&&va(m)})}}}function p(){const m=s(n);if(m){m.removeEventListener(ep,u);const h=new CustomEvent(tp,{...Ty,detail:{focusReason:a.value}});m.addEventListener(tp,c),m.dispatchEvent(h),!h.defaultPrevented&&(a.value=="keyboard"||!Y3()||m.contains(document.activeElement))&&va(o??document.body),m.removeEventListener(tp,c),Iy.remove(r),o=null,l=null}}return pt(()=>{e.trapped&&v(),fe(()=>e.trapped,m=>{m?v():p()})}),Pt(()=>{e.trapped&&p(),n.value&&(n.value.removeEventListener("keydown",i),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),o=null,l=null}),{onKeydown:i}}});function Z3(e,t,n,o,l,a){return ae(e.$slots,"default",{handleKeydown:e.onKeydown})}var xs=Oe(J3,[["render",Z3],["__file","focus-trap.vue"]]),co="top",Mo="bottom",Ao="right",fo="left",am="auto",gu=[co,Mo,Ao,fo],cs="start",Di="end",Q3="clippingParents",rk="viewport",js="popper",eD="reference",Ay=gu.reduce(function(e,t){return e.concat([t+"-"+cs,t+"-"+Di])},[]),ia=[].concat(gu,[am]).reduce(function(e,t){return e.concat([t,t+"-"+cs,t+"-"+Di])},[]),tD="beforeRead",nD="read",oD="afterRead",lD="beforeMain",aD="main",rD="afterMain",sD="beforeWrite",iD="write",uD="afterWrite",cD=[tD,nD,oD,lD,aD,rD,sD,iD,uD];function Sl(e){return e?(e.nodeName||"").toLowerCase():null}function nl(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ds(e){var t=nl(e).Element;return e instanceof t||e instanceof Element}function Io(e){var t=nl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rm(e){if(typeof ShadowRoot>"u")return!1;var t=nl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dD(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},l=t.attributes[n]||{},a=t.elements[n];!Io(a)||!Sl(a)||(Object.assign(a.style,o),Object.keys(l).forEach(function(r){var i=l[r];i===!1?a.removeAttribute(r):a.setAttribute(r,i===!0?"":i)}))})}function fD(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var l=t.elements[o],a=t.attributes[o]||{},r=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),i=r.reduce(function(u,c){return u[c]="",u},{});!Io(l)||!Sl(l)||(Object.assign(l.style,i),Object.keys(a).forEach(function(u){l.removeAttribute(u)}))})}}var sk={name:"applyStyles",enabled:!0,phase:"write",fn:dD,effect:fD,requires:["computeStyles"]};function vl(e){return e.split("-")[0]}var sr=Math.max,nd=Math.min,fs=Math.round;function ps(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),o=1,l=1;if(Io(e)&&t){var a=e.offsetHeight,r=e.offsetWidth;r>0&&(o=fs(n.width)/r||1),a>0&&(l=fs(n.height)/a||1)}return{width:n.width/o,height:n.height/l,top:n.top/l,right:n.right/o,bottom:n.bottom/l,left:n.left/o,x:n.left/o,y:n.top/l}}function sm(e){var t=ps(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function ik(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rm(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Ql(e){return nl(e).getComputedStyle(e)}function pD(e){return["table","td","th"].indexOf(Sl(e))>=0}function Fa(e){return((ds(e)?e.ownerDocument:e.document)||window.document).documentElement}function rf(e){return Sl(e)==="html"?e:e.assignedSlot||e.parentNode||(rm(e)?e.host:null)||Fa(e)}function Ly(e){return!Io(e)||Ql(e).position==="fixed"?null:e.offsetParent}function vD(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Io(e)){var o=Ql(e);if(o.position==="fixed")return null}var l=rf(e);for(rm(l)&&(l=l.host);Io(l)&&["html","body"].indexOf(Sl(l))<0;){var a=Ql(l);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return l;l=l.parentNode}return null}function bu(e){for(var t=nl(e),n=Ly(e);n&&pD(n)&&Ql(n).position==="static";)n=Ly(n);return n&&(Sl(n)==="html"||Sl(n)==="body"&&Ql(n).position==="static")?t:n||vD(e)||t}function im(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function hi(e,t,n){return sr(e,nd(t,n))}function hD(e,t,n){var o=hi(e,t,n);return o>n?n:o}function uk(){return{top:0,right:0,bottom:0,left:0}}function ck(e){return Object.assign({},uk(),e)}function dk(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var mD=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ck(typeof e!="number"?e:dk(e,gu))};function gD(e){var t,n=e.state,o=e.name,l=e.options,a=n.elements.arrow,r=n.modifiersData.popperOffsets,i=vl(n.placement),u=im(i),c=[fo,Ao].indexOf(i)>=0,d=c?"height":"width";if(!(!a||!r)){var f=mD(l.padding,n),v=sm(a),p=u==="y"?co:fo,m=u==="y"?Mo:Ao,h=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],g=r[u]-n.rects.reference[u],b=bu(a),C=b?u==="y"?b.clientHeight||0:b.clientWidth||0:0,w=h/2-g/2,y=f[p],k=C-v[d]-f[m],E=C/2-v[d]/2+w,_=hi(y,E,k),I=u;n.modifiersData[o]=(t={},t[I]=_,t.centerOffset=_-E,t)}}function bD(e){var t=e.state,n=e.options,o=n.element,l=o===void 0?"[data-popper-arrow]":o;l!=null&&(typeof l=="string"&&(l=t.elements.popper.querySelector(l),!l)||!ik(t.elements.popper,l)||(t.elements.arrow=l))}var yD={name:"arrow",enabled:!0,phase:"main",fn:gD,effect:bD,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vs(e){return e.split("-")[1]}var wD={top:"auto",right:"auto",bottom:"auto",left:"auto"};function CD(e){var t=e.x,n=e.y,o=window,l=o.devicePixelRatio||1;return{x:fs(t*l)/l||0,y:fs(n*l)/l||0}}function Dy(e){var t,n=e.popper,o=e.popperRect,l=e.placement,a=e.variation,r=e.offsets,i=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,v=r.x,p=v===void 0?0:v,m=r.y,h=m===void 0?0:m,g=typeof d=="function"?d({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var b=r.hasOwnProperty("x"),C=r.hasOwnProperty("y"),w=fo,y=co,k=window;if(c){var E=bu(n),_="clientHeight",I="clientWidth";if(E===nl(n)&&(E=Fa(n),Ql(E).position!=="static"&&i==="absolute"&&(_="scrollHeight",I="scrollWidth")),E=E,l===co||(l===fo||l===Ao)&&a===Di){y=Mo;var $=f&&E===k&&k.visualViewport?k.visualViewport.height:E[_];h-=$-o.height,h*=u?1:-1}if(l===fo||(l===co||l===Mo)&&a===Di){w=Ao;var M=f&&E===k&&k.visualViewport?k.visualViewport.width:E[I];p-=M-o.width,p*=u?1:-1}}var T=Object.assign({position:i},c&&wD),N=d===!0?CD({x:p,y:h}):{x:p,y:h};if(p=N.x,h=N.y,u){var z;return Object.assign({},T,(z={},z[y]=C?"0":"",z[w]=b?"0":"",z.transform=(k.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",z))}return Object.assign({},T,(t={},t[y]=C?h+"px":"",t[w]=b?p+"px":"",t.transform="",t))}function SD(e){var t=e.state,n=e.options,o=n.gpuAcceleration,l=o===void 0?!0:o,a=n.adaptive,r=a===void 0?!0:a,i=n.roundOffsets,u=i===void 0?!0:i,c={placement:vl(t.placement),variation:vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Dy(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dy(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var fk={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:SD,data:{}},Yu={passive:!0};function kD(e){var t=e.state,n=e.instance,o=e.options,l=o.scroll,a=l===void 0?!0:l,r=o.resize,i=r===void 0?!0:r,u=nl(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(d){d.addEventListener("scroll",n.update,Yu)}),i&&u.addEventListener("resize",n.update,Yu),function(){a&&c.forEach(function(d){d.removeEventListener("scroll",n.update,Yu)}),i&&u.removeEventListener("resize",n.update,Yu)}}var pk={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kD,data:{}},ED={left:"right",right:"left",bottom:"top",top:"bottom"};function vc(e){return e.replace(/left|right|bottom|top/g,function(t){return ED[t]})}var _D={start:"end",end:"start"};function By(e){return e.replace(/start|end/g,function(t){return _D[t]})}function um(e){var t=nl(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function cm(e){return ps(Fa(e)).left+um(e).scrollLeft}function TD(e){var t=nl(e),n=Fa(e),o=t.visualViewport,l=n.clientWidth,a=n.clientHeight,r=0,i=0;return o&&(l=o.width,a=o.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=o.offsetLeft,i=o.offsetTop)),{width:l,height:a,x:r+cm(e),y:i}}function OD(e){var t,n=Fa(e),o=um(e),l=(t=e.ownerDocument)==null?void 0:t.body,a=sr(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),r=sr(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-o.scrollLeft+cm(e),u=-o.scrollTop;return Ql(l||n).direction==="rtl"&&(i+=sr(n.clientWidth,l?l.clientWidth:0)-a),{width:a,height:r,x:i,y:u}}function dm(e){var t=Ql(e),n=t.overflow,o=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+o)}function vk(e){return["html","body","#document"].indexOf(Sl(e))>=0?e.ownerDocument.body:Io(e)&&dm(e)?e:vk(rf(e))}function mi(e,t){var n;t===void 0&&(t=[]);var o=vk(e),l=o===((n=e.ownerDocument)==null?void 0:n.body),a=nl(o),r=l?[a].concat(a.visualViewport||[],dm(o)?o:[]):o,i=t.concat(r);return l?i:i.concat(mi(rf(r)))}function Jp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function $D(e){var t=ps(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Fy(e,t){return t===rk?Jp(TD(e)):ds(t)?$D(t):Jp(OD(Fa(e)))}function RD(e){var t=mi(rf(e)),n=["absolute","fixed"].indexOf(Ql(e).position)>=0,o=n&&Io(e)?bu(e):e;return ds(o)?t.filter(function(l){return ds(l)&&ik(l,o)&&Sl(l)!=="body"}):[]}function ND(e,t,n){var o=t==="clippingParents"?RD(e):[].concat(t),l=[].concat(o,[n]),a=l[0],r=l.reduce(function(i,u){var c=Fy(e,u);return i.top=sr(c.top,i.top),i.right=nd(c.right,i.right),i.bottom=nd(c.bottom,i.bottom),i.left=sr(c.left,i.left),i},Fy(e,a));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function hk(e){var t=e.reference,n=e.element,o=e.placement,l=o?vl(o):null,a=o?vs(o):null,r=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,u;switch(l){case co:u={x:r,y:t.y-n.height};break;case Mo:u={x:r,y:t.y+t.height};break;case Ao:u={x:t.x+t.width,y:i};break;case fo:u={x:t.x-n.width,y:i};break;default:u={x:t.x,y:t.y}}var c=l?im(l):null;if(c!=null){var d=c==="y"?"height":"width";switch(a){case cs:u[c]=u[c]-(t[d]/2-n[d]/2);break;case Di:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function Bi(e,t){t===void 0&&(t={});var n=t,o=n.placement,l=o===void 0?e.placement:o,a=n.boundary,r=a===void 0?Q3:a,i=n.rootBoundary,u=i===void 0?rk:i,c=n.elementContext,d=c===void 0?js:c,f=n.altBoundary,v=f===void 0?!1:f,p=n.padding,m=p===void 0?0:p,h=ck(typeof m!="number"?m:dk(m,gu)),g=d===js?eD:js,b=e.rects.popper,C=e.elements[v?g:d],w=ND(ds(C)?C:C.contextElement||Fa(e.elements.popper),r,u),y=ps(e.elements.reference),k=hk({reference:y,element:b,placement:l}),E=Jp(Object.assign({},b,k)),_=d===js?E:y,I={top:w.top-_.top+h.top,bottom:_.bottom-w.bottom+h.bottom,left:w.left-_.left+h.left,right:_.right-w.right+h.right},$=e.modifiersData.offset;if(d===js&&$){var M=$[l];Object.keys(I).forEach(function(T){var N=[Ao,Mo].indexOf(T)>=0?1:-1,z=[co,Mo].indexOf(T)>=0?"y":"x";I[T]+=M[z]*N})}return I}function ID(e,t){t===void 0&&(t={});var n=t,o=n.placement,l=n.boundary,a=n.rootBoundary,r=n.padding,i=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?ia:u,d=vs(o),f=d?i?Ay:Ay.filter(function(m){return vs(m)===d}):gu,v=f.filter(function(m){return c.indexOf(m)>=0});v.length===0&&(v=f);var p=v.reduce(function(m,h){return m[h]=Bi(e,{placement:h,boundary:l,rootBoundary:a,padding:r})[vl(h)],m},{});return Object.keys(p).sort(function(m,h){return p[m]-p[h]})}function xD(e){if(vl(e)===am)return[];var t=vc(e);return[By(e),t,By(t)]}function PD(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var l=n.mainAxis,a=l===void 0?!0:l,r=n.altAxis,i=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,v=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,b=vl(g),C=b===g,w=u||(C||!m?[vc(g)]:xD(g)),y=[g].concat(w).reduce(function(ne,oe){return ne.concat(vl(oe)===am?ID(t,{placement:oe,boundary:d,rootBoundary:f,padding:c,flipVariations:m,allowedAutoPlacements:h}):oe)},[]),k=t.rects.reference,E=t.rects.popper,_=new Map,I=!0,$=y[0],M=0;M=0,Y=U?"width":"height",P=Bi(t,{placement:T,boundary:d,rootBoundary:f,altBoundary:v,padding:c}),R=U?z?Ao:fo:z?Mo:co;k[Y]>E[Y]&&(R=vc(R));var L=vc(R),V=[];if(a&&V.push(P[N]<=0),i&&V.push(P[R]<=0,P[L]<=0),V.every(function(ne){return ne})){$=T,I=!1;break}_.set(T,V)}if(I)for(var D=m?3:1,K=function(ne){var oe=y.find(function(ce){var ee=_.get(ce);if(ee)return ee.slice(0,ne).every(function(se){return se})});if(oe)return $=oe,"break"},B=D;B>0;B--){var j=K(B);if(j==="break")break}t.placement!==$&&(t.modifiersData[o]._skip=!0,t.placement=$,t.reset=!0)}}var MD={name:"flip",enabled:!0,phase:"main",fn:PD,requiresIfExists:["offset"],data:{_skip:!1}};function Vy(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function zy(e){return[co,Ao,Mo,fo].some(function(t){return e[t]>=0})}function AD(e){var t=e.state,n=e.name,o=t.rects.reference,l=t.rects.popper,a=t.modifiersData.preventOverflow,r=Bi(t,{elementContext:"reference"}),i=Bi(t,{altBoundary:!0}),u=Vy(r,o),c=Vy(i,l,a),d=zy(u),f=zy(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var LD={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AD};function DD(e,t,n){var o=vl(e),l=[fo,co].indexOf(o)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=a[0],i=a[1];return r=r||0,i=(i||0)*l,[fo,Ao].indexOf(o)>=0?{x:i,y:r}:{x:r,y:i}}function BD(e){var t=e.state,n=e.options,o=e.name,l=n.offset,a=l===void 0?[0,0]:l,r=ia.reduce(function(d,f){return d[f]=DD(f,t.rects,a),d},{}),i=r[t.placement],u=i.x,c=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=r}var FD={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:BD};function VD(e){var t=e.state,n=e.name;t.modifiersData[n]=hk({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var mk={name:"popperOffsets",enabled:!0,phase:"read",fn:VD,data:{}};function zD(e){return e==="x"?"y":"x"}function HD(e){var t=e.state,n=e.options,o=e.name,l=n.mainAxis,a=l===void 0?!0:l,r=n.altAxis,i=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,v=n.tether,p=v===void 0?!0:v,m=n.tetherOffset,h=m===void 0?0:m,g=Bi(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),b=vl(t.placement),C=vs(t.placement),w=!C,y=im(b),k=zD(y),E=t.modifiersData.popperOffsets,_=t.rects.reference,I=t.rects.popper,$=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,M=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(E){if(a){var z,U=y==="y"?co:fo,Y=y==="y"?Mo:Ao,P=y==="y"?"height":"width",R=E[y],L=R+g[U],V=R-g[Y],D=p?-I[P]/2:0,K=C===cs?_[P]:I[P],B=C===cs?-I[P]:-_[P],j=t.elements.arrow,ne=p&&j?sm(j):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uk(),ce=oe[U],ee=oe[Y],se=hi(0,_[P],ne[P]),X=w?_[P]/2-D-se-ce-M.mainAxis:K-se-ce-M.mainAxis,Q=w?-_[P]/2+D+se+ee+M.mainAxis:B+se+ee+M.mainAxis,le=t.elements.arrow&&bu(t.elements.arrow),H=le?y==="y"?le.clientTop||0:le.clientLeft||0:0,Z=(z=T?.[y])!=null?z:0,ue=R+X-Z-H,pe=R+Q-Z,ve=hi(p?nd(L,ue):L,R,p?sr(V,pe):V);E[y]=ve,N[y]=ve-R}if(i){var he,xe=y==="x"?co:fo,_e=y==="x"?Mo:Ao,De=E[k],ye=k==="y"?"height":"width",Ie=De+g[xe],Re=De-g[_e],Le=[co,fo].indexOf(b)!==-1,He=(he=T?.[k])!=null?he:0,me=Le?Ie:De-_[ye]-I[ye]-He+M.altAxis,We=Le?De+_[ye]+I[ye]-He-M.altAxis:Re,Be=p&&Le?hD(me,De,We):hi(p?me:Ie,De,p?We:Re);E[k]=Be,N[k]=Be-De}t.modifiersData[o]=N}}var KD={name:"preventOverflow",enabled:!0,phase:"main",fn:HD,requiresIfExists:["offset"]};function WD(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jD(e){return e===nl(e)||!Io(e)?um(e):WD(e)}function UD(e){var t=e.getBoundingClientRect(),n=fs(t.width)/e.offsetWidth||1,o=fs(t.height)/e.offsetHeight||1;return n!==1||o!==1}function qD(e,t,n){n===void 0&&(n=!1);var o=Io(t),l=Io(t)&&UD(t),a=Fa(t),r=ps(e,l),i={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&((Sl(t)!=="body"||dm(a))&&(i=jD(t)),Io(t)?(u=ps(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=cm(a))),{x:r.left+i.scrollLeft-u.x,y:r.top+i.scrollTop-u.y,width:r.width,height:r.height}}function YD(e){var t=new Map,n=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function l(a){n.add(a.name);var r=[].concat(a.requires||[],a.requiresIfExists||[]);r.forEach(function(i){if(!n.has(i)){var u=t.get(i);u&&l(u)}}),o.push(a)}return e.forEach(function(a){n.has(a.name)||l(a)}),o}function GD(e){var t=YD(e);return cD.reduce(function(n,o){return n.concat(t.filter(function(l){return l.phase===o}))},[])}function XD(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function JD(e){var t=e.reduce(function(n,o){var l=n[o.name];return n[o.name]=l?Object.assign({},l,o,{options:Object.assign({},l.options,o.options),data:Object.assign({},l.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var Hy={placement:"bottom",modifiers:[],strategy:"absolute"};function Ky(){for(var e=arguments.length,t=new Array(e),n=0;n({})},strategy:{type:String,values:t6,default:"absolute"}}),bk=Ee({...n6,...gk,id:String,style:{type:J([String,Array,Object])},className:{type:J([String,Array,Object])},effect:{type:J(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:J([String,Array,Object])},popperStyle:{type:J([String,Array,Object])},referenceEl:{type:J(Object)},triggerTargetEl:{type:J(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...Gn(["ariaLabel"]),loop:Boolean}),o6={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},l6=(e,t)=>{const n=A(!1),o=A(),l=()=>{t("focus")},a=c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(o.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(o.value=c.target),n.value=!0)},i=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Pt(()=>{o.value=void 0}),{focusStartRef:o,trapped:n,onFocusAfterReleased:a,onFocusAfterTrapped:l,onFocusInTrap:r,onFocusoutPrevented:i,onReleaseRequested:u}},a6=(e,t=[])=>{const{placement:n,strategy:o,popperOptions:l}=e,a={placement:n,strategy:o,...l,modifiers:[...s6(e),...t]};return i6(a,l?.modifiers),a},r6=e=>{if(Nt)return En(e)};function s6(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:o}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:o}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function i6(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const u6=(e,t,n={})=>{const o={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=c6(u);Object.assign(r.value,c)},requires:["computeStyles"]},l=S(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=s(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],o,{name:"applyStyles",enabled:!1}]}}),a=jt(),r=A({styles:{popper:{position:s(l).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return fe(l,u=>{const c=s(a);c&&c.setOptions(u)},{deep:!0}),fe([e,t],([u,c])=>{i(),!(!u||!c)&&(a.value=e6(u,c,s(l)))}),Pt(()=>{i()}),{state:S(()=>{var u;return{...((u=s(a))==null?void 0:u.state)||{}}}),styles:S(()=>s(r).styles),attributes:S(()=>s(r).attributes),update:()=>{var u;return(u=s(a))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=s(a))==null?void 0:u.forceUpdate()},instanceRef:S(()=>s(a))}};function c6(e){const t=Object.keys(e.elements),n=Pi(t.map(l=>[l,e.styles[l]||{}])),o=Pi(t.map(l=>[l,e.attributes[l]]));return{styles:n,attributes:o}}const d6=0,f6=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:o,role:l}=Pe(nm,void 0),a=A(),r=S(()=>e.arrowOffset),i=S(()=>({name:"eventListeners",enabled:!!e.visible})),u=S(()=>{var b;const C=s(a),w=(b=s(r))!=null?b:d6;return{name:"arrow",enabled:!gA(C),options:{element:C,padding:w}}}),c=S(()=>({onFirstUpdate:()=>{m()},...a6(e,[s(u),s(i)])})),d=S(()=>r6(e.referenceEl)||s(o)),{attributes:f,state:v,styles:p,update:m,forceUpdate:h,instanceRef:g}=u6(d,n,c);return fe(g,b=>t.value=b,{flush:"sync"}),pt(()=>{fe(()=>{var b,C;return(C=(b=s(d))==null?void 0:b.getBoundingClientRect)==null?void 0:C.call(b)},()=>{m()})}),Pt(()=>{t.value=void 0}),{attributes:f,arrowRef:a,contentRef:n,instanceRef:g,state:v,styles:p,role:l,forceUpdate:h,update:m}},p6=(e,{attributes:t,styles:n,role:o})=>{const{nextZIndex:l}=du(),a=ge("popper"),r=S(()=>s(t).popper),i=A(Ye(e.zIndex)?e.zIndex:l()),u=S(()=>[a.b(),a.is("pure",e.pure),a.is(e.effect),e.popperClass]),c=S(()=>[{zIndex:s(i)},s(n).popper,e.popperStyle||{}]),d=S(()=>o.value==="dialog"?"false":void 0),f=S(()=>s(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:r,contentClass:u,contentStyle:c,contentZIndex:i,updateZIndex:()=>{i.value=Ye(e.zIndex)?e.zIndex:l()}}},v6=q({name:"ElPopperContent"}),h6=q({...v6,props:bk,emits:o6,setup(e,{expose:t,emit:n}){const o=e,{focusStartRef:l,trapped:a,onFocusAfterReleased:r,onFocusAfterTrapped:i,onFocusInTrap:u,onFocusoutPrevented:c,onReleaseRequested:d}=l6(o,n),{attributes:f,arrowRef:v,contentRef:p,styles:m,instanceRef:h,role:g,update:b}=f6(o),{ariaModal:C,arrowStyle:w,contentAttrs:y,contentClass:k,contentStyle:E,updateZIndex:_}=p6(o,{styles:m,attributes:f,role:g}),I=Pe(Cl,void 0);bt(XS,{arrowStyle:w,arrowRef:v}),I&&bt(Cl,{...I,addInputId:Mt,removeInputId:Mt});let $;const M=(N=!0)=>{b(),N&&_()},T=()=>{M(!1),o.visible&&o.focusOnShow?a.value=!0:o.visible===!1&&(a.value=!1)};return pt(()=>{fe(()=>o.triggerTargetEl,(N,z)=>{$?.(),$=void 0;const U=s(N||p.value),Y=s(z||p.value);io(U)&&($=fe([g,()=>o.ariaLabel,C,()=>o.id],P=>{["role","aria-label","aria-modal","id"].forEach((R,L)=>{cn(P[L])?U.removeAttribute(R):U.setAttribute(R,P[L])})},{immediate:!0})),Y!==U&&io(Y)&&["role","aria-label","aria-modal","id"].forEach(P=>{Y.removeAttribute(P)})},{immediate:!0}),fe(()=>o.visible,T,{immediate:!0})}),Pt(()=>{$?.(),$=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:h,updatePopper:M,contentStyle:E}),(N,z)=>(O(),F("div",ft({ref_key:"contentRef",ref:p},s(y),{style:s(E),class:s(k),tabindex:"-1",onMouseenter:U=>N.$emit("mouseenter",U),onMouseleave:U=>N.$emit("mouseleave",U)}),[G(s(xs),{loop:N.loop,trapped:s(a),"trap-on-focus-in":!0,"focus-trap-el":s(p),"focus-start-el":s(l),onFocusAfterTrapped:s(i),onFocusAfterReleased:s(r),onFocusin:s(u),onFocusoutPrevented:s(c),onReleaseRequested:s(d)},{default:te(()=>[ae(N.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var m6=Oe(h6,[["__file","content.vue"]]);const yk=lt(I3),pm=Symbol("elTooltip");function Wy(){let e;const t=(o,l)=>{n(),e=window.setTimeout(o,l)},n=()=>window.clearTimeout(e);return Ns(()=>n()),{registerTimeout:t,cancelTimeout:n}}const g6=Ee({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),b6=({showAfter:e,hideAfter:t,autoClose:n,open:o,close:l})=>{const{registerTimeout:a}=Wy(),{registerTimeout:r,cancelTimeout:i}=Wy();return{onOpen:(d,f=s(e))=>{a(()=>{o(d);const v=s(n);Ye(v)&&v>0&&r(()=>{l(d)},v)},f)},onClose:(d,f=s(t))=>{i(),a(()=>{l(d)},f)}}},sf=Ee({to:{type:J([String,Object]),required:!0},disabled:Boolean}),zt=Ee({...g6,...bk,appendTo:{type:sf.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:J(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...Gn(["ariaLabel"])}),hl=Ee({...QS,disabled:Boolean,trigger:{type:J([String,Array]),default:"hover"},triggerKeys:{type:J(Array),default:()=>[Se.enter,Se.numpadEnter,Se.space]},focusOnTarget:Boolean}),y6=tl({type:J(Boolean),default:null}),w6=tl({type:J(Function)}),C6=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,o=[t],l={[e]:y6,[n]:w6};return{useModelToggle:({indicator:r,toggleReason:i,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const v=dt(),{emit:p}=v,m=v.props,h=S(()=>Ke(m[n])),g=S(()=>m[e]===null),b=_=>{r.value!==!0&&(r.value=!0,i&&(i.value=_),Ke(d)&&d(_))},C=_=>{r.value!==!1&&(r.value=!1,i&&(i.value=_),Ke(f)&&f(_))},w=_=>{if(m.disabled===!0||Ke(c)&&!c())return;const I=h.value&&Nt;I&&p(t,!0),(g.value||!I)&&b(_)},y=_=>{if(m.disabled===!0||!Nt)return;const I=h.value&&Nt;I&&p(t,!1),(g.value||!I)&&C(_)},k=_=>{Lt(_)&&(m.disabled&&_?h.value&&p(t,!1):r.value!==_&&(_?b():C()))},E=()=>{r.value?y():w()};return fe(()=>m[e],k),u&&v.appContext.config.globalProperties.$route!==void 0&&fe(()=>({...v.proxy.$route}),()=>{u.value&&r.value&&y()}),pt(()=>{k(m[e])}),{hide:y,show:w,toggle:E,hasUpdateHandler:h}},useModelToggleProps:l,useModelToggleEmits:o}},{useModelToggleProps:S6,useModelToggleEmits:k6,useModelToggle:E6}=C6("visible"),_6=Ee({...ZS,...S6,...zt,...hl,...gk,showArrow:{type:Boolean,default:!0}}),T6=[...k6,"before-show","before-hide","show","hide","open","close"],Zp=(e,t)=>Ce(e)?e.includes(t):e===t,Ir=(e,t,n)=>o=>{Zp(s(e),t)&&n(o)},O6=q({name:"ElTooltipTrigger"}),$6=q({...O6,props:hl,setup(e,{expose:t}){const n=e,o=ge("tooltip"),{controlled:l,id:a,open:r,onOpen:i,onClose:u,onToggle:c}=Pe(pm,void 0),d=A(null),f=()=>{if(s(l)||n.disabled)return!0},v=Dt(n,"trigger"),p=wn(f,Ir(v,"hover",y=>{i(y),n.focusOnTarget&&y.target&&Me(()=>{hu(y.target,{preventScroll:!0})})})),m=wn(f,Ir(v,"hover",u)),h=wn(f,Ir(v,"click",y=>{y.button===0&&c(y)})),g=wn(f,Ir(v,"focus",i)),b=wn(f,Ir(v,"focus",u)),C=wn(f,Ir(v,"contextmenu",y=>{y.preventDefault(),c(y)})),w=wn(f,y=>{const k=Vt(y);n.triggerKeys.includes(k)&&(y.preventDefault(),c(y))});return t({triggerRef:d}),(y,k)=>(O(),ie(s(V3),{id:s(a),"virtual-ref":y.virtualRef,open:s(r),"virtual-triggering":y.virtualTriggering,class:x(s(o).e("trigger")),onBlur:s(b),onClick:s(h),onContextmenu:s(C),onFocus:s(g),onMouseenter:s(p),onMouseleave:s(m),onKeydown:s(w)},{default:te(()=>[ae(y.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var R6=Oe($6,[["__file","trigger.vue"]]);const N6=q({__name:"teleport",props:sf,setup(e){return(t,n)=>t.disabled?ae(t.$slots,"default",{key:0}):(O(),ie(mO,{key:1,to:t.to},[ae(t.$slots,"default")],8,["to"]))}});var I6=Oe(N6,[["__file","teleport.vue"]]);const yu=lt(I6),wk=()=>{const e=Oh(),t=em(),n=S(()=>`${e.value}-popper-container-${t.prefix}`),o=S(()=>`#${n.value}`);return{id:n,selector:o}},x6=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},P6=()=>{const{id:e,selector:t}=wk();return Fd(()=>{Nt&&(document.body.querySelector(t.value)||x6(e.value))}),{id:e,selector:t}},jy=e=>[...new Set(e)],Us=e=>Ce(e)?e[0]:e,Wn=e=>!e&&e!==0?[]:Ce(e)?e:[e],M6=q({name:"ElTooltipContent",inheritAttrs:!1}),A6=q({...M6,props:zt,setup(e,{expose:t}){const n=e,{selector:o}=wk(),l=ge("tooltip"),a=A(),r=Qc(()=>{var L;return(L=a.value)==null?void 0:L.popperContentRef});let i;const{controlled:u,id:c,open:d,trigger:f,onClose:v,onOpen:p,onShow:m,onHide:h,onBeforeShow:g,onBeforeHide:b}=Pe(pm,void 0),C=S(()=>n.transition||`${l.namespace.value}-fade-in-linear`),w=S(()=>n.persistent);Pt(()=>{i?.()});const y=S(()=>s(w)?!0:s(d)),k=S(()=>n.disabled?!1:s(d)),E=S(()=>n.appendTo||o.value),_=S(()=>{var L;return(L=n.style)!=null?L:{}}),I=A(!0),$=()=>{h(),R()&&hu(document.body,{preventScroll:!0}),I.value=!0},M=()=>{if(s(u))return!0},T=wn(M,()=>{n.enterable&&Zp(s(f),"hover")&&p()}),N=wn(M,()=>{Zp(s(f),"hover")&&v()}),z=()=>{var L,V;(V=(L=a.value)==null?void 0:L.updatePopper)==null||V.call(L),g?.()},U=()=>{b?.()},Y=()=>{m()},P=()=>{n.virtualTriggering||v()},R=L=>{var V;const D=(V=a.value)==null?void 0:V.popperContentRef,K=L?.relatedTarget||document.activeElement;return D?.contains(K)};return fe(()=>s(d),L=>{L?(I.value=!1,i=Wh(r,()=>{if(s(u))return;Wn(s(f)).every(D=>D!=="hover"&&D!=="focus")&&v()},{detectIframe:!0})):i?.()},{flush:"post"}),fe(()=>n.content,()=>{var L,V;(V=(L=a.value)==null?void 0:L.updatePopper)==null||V.call(L)}),t({contentRef:a,isFocusInsideContent:R}),(L,V)=>(O(),ie(s(yu),{disabled:!L.teleported,to:s(E)},{default:te(()=>[s(y)||!I.value?(O(),ie(Nn,{key:0,name:s(C),appear:!s(w),onAfterLeave:$,onBeforeEnter:z,onAfterEnter:Y,onBeforeLeave:U,persisted:""},{default:te(()=>[it(G(s(m6),ft({id:s(c),ref_key:"contentRef",ref:a},L.$attrs,{"aria-label":L.ariaLabel,"aria-hidden":I.value,"boundaries-padding":L.boundariesPadding,"fallback-placements":L.fallbackPlacements,"gpu-acceleration":L.gpuAcceleration,offset:L.offset,placement:L.placement,"popper-options":L.popperOptions,"arrow-offset":L.arrowOffset,strategy:L.strategy,effect:L.effect,enterable:L.enterable,pure:L.pure,"popper-class":L.popperClass,"popper-style":[L.popperStyle,s(_)],"reference-el":L.referenceEl,"trigger-target-el":L.triggerTargetEl,visible:s(k),"z-index":L.zIndex,loop:L.loop,onMouseenter:s(T),onMouseleave:s(N),onBlur:P,onClose:s(v)}),{default:te(()=>[ae(L.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[$t,s(k)]])]),_:3},8,["name","appear"])):re("v-if",!0)]),_:3},8,["disabled","to"]))}});var L6=Oe(A6,[["__file","content.vue"]]);const D6=q({name:"ElTooltip"}),B6=q({...D6,props:_6,emits:T6,setup(e,{expose:t,emit:n}){const o=e;P6();const l=ge("tooltip"),a=In(),r=A(),i=A(),u=()=>{var w;const y=s(r);y&&((w=y.popperInstanceRef)==null||w.update())},c=A(!1),d=A(),{show:f,hide:v,hasUpdateHandler:p}=E6({indicator:c,toggleReason:d}),{onOpen:m,onClose:h}=b6({showAfter:Dt(o,"showAfter"),hideAfter:Dt(o,"hideAfter"),autoClose:Dt(o,"autoClose"),open:f,close:v}),g=S(()=>Lt(o.visible)&&!p.value),b=S(()=>[l.b(),o.popperClass]);bt(pm,{controlled:g,id:a,open:fr(c),trigger:Dt(o,"trigger"),onOpen:m,onClose:h,onToggle:w=>{s(c)?h(w):m(w)},onShow:()=>{n("show",d.value)},onHide:()=>{n("hide",d.value)},onBeforeShow:()=>{n("before-show",d.value)},onBeforeHide:()=>{n("before-hide",d.value)},updatePopper:u}),fe(()=>o.disabled,w=>{w&&c.value&&(c.value=!1)});const C=w=>{var y;return(y=i.value)==null?void 0:y.isFocusInsideContent(w)};return I1(()=>c.value&&v()),Pt(()=>{d.value=void 0}),t({popperRef:r,contentRef:i,isFocusInsideContent:C,updatePopper:u,onOpen:m,onClose:h,hide:v}),(w,y)=>(O(),ie(s(yk),{ref_key:"popperRef",ref:r,role:w.role},{default:te(()=>[G(R6,{disabled:w.disabled,trigger:w.trigger,"trigger-keys":w.triggerKeys,"virtual-ref":w.virtualRef,"virtual-triggering":w.virtualTriggering,"focus-on-target":w.focusOnTarget},{default:te(()=>[w.$slots.default?ae(w.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),G(L6,{ref_key:"contentRef",ref:i,"aria-label":w.ariaLabel,"boundaries-padding":w.boundariesPadding,content:w.content,disabled:w.disabled,effect:w.effect,enterable:w.enterable,"fallback-placements":w.fallbackPlacements,"hide-after":w.hideAfter,"gpu-acceleration":w.gpuAcceleration,offset:w.offset,persistent:w.persistent,"popper-class":s(b),"popper-style":w.popperStyle,placement:w.placement,"popper-options":w.popperOptions,"arrow-offset":w.arrowOffset,pure:w.pure,"raw-content":w.rawContent,"reference-el":w.referenceEl,"trigger-target-el":w.triggerTargetEl,"show-after":w.showAfter,strategy:w.strategy,teleported:w.teleported,transition:w.transition,"virtual-triggering":w.virtualTriggering,"z-index":w.zIndex,"append-to":w.appendTo,loop:w.loop},{default:te(()=>[ae(w.$slots,"content",{},()=>[w.rawContent?(O(),F("span",{key:0,innerHTML:w.content},null,8,["innerHTML"])):(O(),F("span",{key:1},ke(w.content),1))]),w.showArrow?(O(),ie(s(M3),{key:0})):re("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});var F6=Oe(B6,[["__file","tooltip.vue"]]);const xn=lt(F6),V6=Ee({...vu,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:J(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:J([Function,Array]),default:Mt},popperClass:zt.popperClass,popperStyle:zt.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:zt.teleported,appendTo:zt.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),z6={[Qe]:e=>Ve(e)||Ye(e),[pn]:e=>Ve(e)||Ye(e),[mt]:e=>Ve(e)||Ye(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>rt(e)},Ck="ElAutocomplete",H6=q({name:Ck,inheritAttrs:!1}),K6=q({...H6,props:V6,emits:z6,setup(e,{expose:t,emit:n}){const o=e,l=S(()=>Gl(o,Object.keys(vu))),a=oa(),r=en(),i=ge("autocomplete"),u=A(),c=A(),d=A(),f=A();let v=!1,p=!1;const m=A([]),h=A(-1),g=A(""),b=A(!1),C=A(!1),w=A(!1),y=In(),k=S(()=>a.style),E=S(()=>(m.value.length>0||w.value)&&b.value),_=S(()=>!o.hideLoading&&w.value),I=S(()=>u.value?Array.from(u.value.$el.querySelectorAll("input")):[]),$=()=>{E.value&&(g.value=`${u.value.$el.offsetWidth}px`)},M=()=>{h.value=-1},T=async Q=>{if(C.value)return;const le=H=>{w.value=!1,!C.value&&(Ce(H)?(m.value=H,h.value=o.highlightFirstItem?0:-1):fn(Ck,"autocomplete suggestions must be an array"))};if(w.value=!0,Ce(o.fetchSuggestions))le(o.fetchSuggestions);else{const H=await o.fetchSuggestions(Q,le);Ce(H)&&le(H)}},N=S(()=>o.debounce),z=cu(T,N),U=Q=>{const le=!!Q;if(n(pn,Q),n(Qe,Q),C.value=!1,b.value||(b.value=le),!o.triggerOnFocus&&!Q){C.value=!0,m.value=[];return}z(Q)},Y=Q=>{var le;r.value||(((le=Q.target)==null?void 0:le.tagName)!=="INPUT"||I.value.includes(document.activeElement))&&(b.value=!0)},P=Q=>{n(mt,Q)},R=Q=>{var le;if(p)p=!1;else{b.value=!0,n("focus",Q);const H=(le=o.modelValue)!=null?le:"";o.triggerOnFocus&&!v&&z(String(H))}},L=Q=>{setTimeout(()=>{var le;if((le=d.value)!=null&&le.isFocusInsideContent()){p=!0;return}b.value&&B(),n("blur",Q)})},V=()=>{b.value=!1,n(Qe,""),n("clear")},D=async()=>{var Q;(Q=u.value)!=null&&Q.isComposing||(E.value&&h.value>=0&&h.value{E.value&&(Q.preventDefault(),Q.stopPropagation(),B())},B=()=>{b.value=!1},j=()=>{var Q;(Q=u.value)==null||Q.focus()},ne=()=>{var Q;(Q=u.value)==null||Q.blur()},oe=async Q=>{n(pn,Q[o.valueKey]),n(Qe,Q[o.valueKey]),n("select",Q),m.value=[],h.value=-1},ce=Q=>{var le,H;if(!E.value||w.value)return;if(Q<0){if(!o.loopNavigation){h.value=-1;return}Q=m.value.length-1}Q>=m.value.length&&(Q=o.loopNavigation?0:m.value.length-1);const[Z,ue]=ee(),pe=ue[Q],ve=Z.scrollTop,{offsetTop:he,scrollHeight:xe}=pe;he+xe>ve+Z.clientHeight&&(Z.scrollTop=he+xe-Z.clientHeight),he{const Q=c.value.querySelector(`.${i.be("suggestion","wrap")}`),le=Q.querySelectorAll(`.${i.be("suggestion","list")} li`);return[Q,le]},se=Wh(f,()=>{var Q;(Q=d.value)!=null&&Q.isFocusInsideContent()||E.value&&B()}),X=Q=>{switch(Vt(Q)){case Se.up:Q.preventDefault(),ce(h.value-1);break;case Se.down:Q.preventDefault(),ce(h.value+1);break;case Se.enter:case Se.numpadEnter:Q.preventDefault(),D();break;case Se.tab:B();break;case Se.esc:K(Q);break;case Se.home:Q.preventDefault(),ce(0);break;case Se.end:Q.preventDefault(),ce(m.value.length-1);break;case Se.pageUp:Q.preventDefault(),ce(Math.max(0,h.value-10));break;case Se.pageDown:Q.preventDefault(),ce(Math.min(m.value.length-1,h.value+10));break}};return Pt(()=>{se?.()}),pt(()=>{var Q;const le=(Q=u.value)==null?void 0:Q.ref;le&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:"id"},{key:"aria-activedescendant",value:`${y.value}-item-${h.value}`}].forEach(({key:H,value:Z})=>le.setAttribute(H,Z)),v=le.hasAttribute("readonly"))}),t({highlightedIndex:h,activated:b,loading:w,inputRef:u,popperRef:d,suggestions:m,handleSelect:oe,handleKeyEnter:D,focus:j,blur:ne,close:B,highlight:ce,getData:T}),(Q,le)=>(O(),ie(s(xn),{ref_key:"popperRef",ref:d,visible:s(E),placement:Q.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[s(i).e("popper"),Q.popperClass],"popper-style":Q.popperStyle,teleported:Q.teleported,"append-to":Q.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${s(i).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:$,onHide:M},{content:te(()=>[W("div",{ref_key:"regionRef",ref:c,class:x([s(i).b("suggestion"),s(i).is("loading",s(_))]),style:je({[Q.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[Q.$slots.header?(O(),F("div",{key:0,class:x(s(i).be("suggestion","header")),onClick:Ze(()=>{},["stop"])},[ae(Q.$slots,"header")],10,["onClick"])):re("v-if",!0),G(s(Yo),{id:s(y),tag:"ul","wrap-class":s(i).be("suggestion","wrap"),"view-class":s(i).be("suggestion","list"),role:"listbox"},{default:te(()=>[s(_)?(O(),F("li",{key:0},[ae(Q.$slots,"loading",{},()=>[G(s(Fe),{class:x(s(i).is("loading"))},{default:te(()=>[G(s(wl))]),_:1},8,["class"])])])):(O(!0),F(ze,{key:1},gt(m.value,(H,Z)=>(O(),F("li",{id:`${s(y)}-item-${Z}`,key:Z,class:x({highlighted:h.value===Z}),role:"option","aria-selected":h.value===Z,onClick:ue=>oe(H)},[ae(Q.$slots,"default",{item:H},()=>[vt(ke(H[Q.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"]),Q.$slots.footer?(O(),F("div",{key:1,class:x(s(i).be("suggestion","footer")),onClick:Ze(()=>{},["stop"])},[ae(Q.$slots,"footer")],10,["onClick"])):re("v-if",!0)],6)]),default:te(()=>[W("div",{ref_key:"listboxRef",ref:f,class:x([s(i).b(),Q.$attrs.class]),style:je(s(k)),role:"combobox","aria-haspopup":"listbox","aria-expanded":s(E),"aria-owns":s(y)},[G(s(Un),ft({ref_key:"inputRef",ref:u},ft(s(l),Q.$attrs),{"model-value":Q.modelValue,disabled:s(r),onInput:U,onChange:P,onFocus:R,onBlur:L,onClear:V,onKeydown:X,onMousedown:Y}),ho({_:2},[Q.$slots.prepend?{name:"prepend",fn:te(()=>[ae(Q.$slots,"prepend")])}:void 0,Q.$slots.append?{name:"append",fn:te(()=>[ae(Q.$slots,"append")])}:void 0,Q.$slots.prefix?{name:"prefix",fn:te(()=>[ae(Q.$slots,"prefix")])}:void 0,Q.$slots.suffix?{name:"suffix",fn:te(()=>[ae(Q.$slots,"suffix")])}:void 0]),1040,["model-value","disabled"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}});var W6=Oe(K6,[["__file","autocomplete.vue"]]);const j6=lt(W6),U6=Ee({size:{type:[Number,String],values:_l,default:"",validator:e=>Ye(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Bt},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:J(String),default:"cover"}}),q6={error:e=>e instanceof Event},Y6=q({name:"ElAvatar"}),G6=q({...Y6,props:U6,emits:q6,setup(e,{emit:t}){const n=e,o=ge("avatar"),l=A(!1),a=S(()=>{const{size:c,icon:d,shape:f}=n,v=[o.b()];return Ve(c)&&v.push(o.m(c)),d&&v.push(o.m("icon")),f&&v.push(o.m(f)),v}),r=S(()=>{const{size:c}=n;return Ye(c)?o.cssVarBlock({size:Zt(c)}):void 0}),i=S(()=>({objectFit:n.fit}));fe(()=>n.src,()=>l.value=!1);function u(c){l.value=!0,t("error",c)}return(c,d)=>(O(),F("span",{class:x(s(a)),style:je(s(r))},[(c.src||c.srcSet)&&!l.value?(O(),F("img",{key:0,src:c.src,alt:c.alt,srcset:c.srcSet,style:je(s(i)),onError:u},null,44,["src","alt","srcset"])):c.icon?(O(),ie(s(Fe),{key:1},{default:te(()=>[(O(),ie(ut(c.icon)))]),_:1})):ae(c.$slots,"default",{key:2})],6))}});var X6=Oe(G6,[["__file","avatar.vue"]]);const J6=lt(X6),Z6={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Q6={click:e=>e instanceof MouseEvent},e8=(e,t,n)=>{const o=jt(),l=jt(),a=A(!1),r=()=>{o.value&&(a.value=o.value.scrollTop>=e.visibilityHeight)},i=c=>{var d;(d=o.value)==null||d.scrollTo({top:0,behavior:"smooth"}),t("click",c)},u=CS(r,300,!0);return xt(l,"scroll",u),pt(()=>{var c;l.value=document,o.value=document.documentElement,e.target&&(o.value=(c=document.querySelector(e.target))!=null?c:void 0,o.value||fn(n,`target does not exist: ${e.target}`),l.value=o.value),r()}),{visible:a,handleClick:i}},Sk="ElBacktop",t8=q({name:Sk}),n8=q({...t8,props:Z6,emits:Q6,setup(e,{emit:t}){const n=e,o=ge("backtop"),{handleClick:l,visible:a}=e8(n,t,Sk),r=S(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(i,u)=>(O(),ie(Nn,{name:`${s(o).namespace.value}-fade-in`},{default:te(()=>[s(a)?(O(),F("div",{key:0,style:je(s(r)),class:x(s(o).b()),onClick:Ze(s(l),["stop"])},[ae(i.$slots,"default",{},()=>[G(s(Fe),{class:x(s(o).e("icon"))},{default:te(()=>[G(s(q4))]),_:1},8,["class"])])],14,["onClick"])):re("v-if",!0)]),_:3},8,["name"]))}});var o8=Oe(n8,[["__file","backtop.vue"]]);const l8=lt(o8),a8=Ee({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:J([String,Object,Array])},offset:{type:J(Array),default:[0,0]},badgeClass:{type:String}}),r8=q({name:"ElBadge"}),s8=q({...r8,props:a8,setup(e,{expose:t}){const n=e,o=ge("badge"),l=S(()=>n.isDot?"":Ye(n.value)&&Ye(n.max)?n.max{var r;return[{backgroundColor:n.color,marginRight:Zt(-n.offset[0]),marginTop:Zt(n.offset[1])},(r=n.badgeStyle)!=null?r:{}]});return t({content:l}),(r,i)=>(O(),F("div",{class:x(s(o).b())},[ae(r.$slots,"default"),G(Nn,{name:`${s(o).namespace.value}-zoom-in-center`,persisted:""},{default:te(()=>[it(W("sup",{class:x([s(o).e("content"),s(o).em("content",r.type),s(o).is("fixed",!!r.$slots.default),s(o).is("dot",r.isDot),s(o).is("hide-zero",!r.showZero&&r.value===0),r.badgeClass]),style:je(s(a))},[ae(r.$slots,"content",{value:s(l)},()=>[vt(ke(s(l)),1)])],6),[[$t,!r.hidden&&(s(l)||r.isDot||r.$slots.content)]])]),_:3},8,["name"])],2))}});var i8=Oe(s8,[["__file","badge.vue"]]);const kk=lt(i8),Ek=Symbol("breadcrumbKey"),u8=Ee({separator:{type:String,default:"/"},separatorIcon:{type:Bt}}),c8=q({name:"ElBreadcrumb"}),d8=q({...c8,props:u8,setup(e){const t=e,{t:n}=kt(),o=ge("breadcrumb"),l=A();return bt(Ek,t),pt(()=>{const a=l.value.querySelectorAll(`.${o.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,r)=>(O(),F("div",{ref_key:"breadcrumb",ref:l,class:x(s(o).b()),"aria-label":s(n)("el.breadcrumb.label"),role:"navigation"},[ae(a.$slots,"default")],10,["aria-label"]))}});var f8=Oe(d8,[["__file","breadcrumb.vue"]]);const p8=Ee({to:{type:J([String,Object]),default:""},replace:Boolean}),v8=q({name:"ElBreadcrumbItem"}),h8=q({...v8,props:p8,setup(e){const t=e,n=dt(),o=Pe(Ek,void 0),l=ge("breadcrumb"),a=n.appContext.config.globalProperties.$router,r=A(),i=()=>{!t.to||!a||(t.replace?a.replace(t.to):a.push(t.to))};return(u,c)=>{var d,f;return O(),F("span",{class:x(s(l).e("item"))},[W("span",{ref_key:"link",ref:r,class:x([s(l).e("inner"),s(l).is("link",!!u.to)]),role:"link",onClick:i},[ae(u.$slots,"default")],2),(d=s(o))!=null&&d.separatorIcon?(O(),ie(s(Fe),{key:0,class:x(s(l).e("separator"))},{default:te(()=>[(O(),ie(ut(s(o).separatorIcon)))]),_:1},8,["class"])):(O(),F("span",{key:1,class:x(s(l).e("separator")),role:"presentation"},ke((f=s(o))==null?void 0:f.separator),3))],2)}}});var _k=Oe(h8,[["__file","breadcrumb-item.vue"]]);const m8=lt(f8,{BreadcrumbItem:_k}),g8=Qt(_k),Tk=Symbol("buttonGroupContextKey"),ml=({from:e,replacement:t,scope:n,version:o,ref:l,type:a="API"},r)=>{fe(()=>s(r),i=>{},{immediate:!0})},b8=(e,t)=>{ml({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},S(()=>e.type==="text"));const n=Pe(Tk,void 0),o=Is("button"),{form:l}=$n(),a=vn(S(()=>n?.size)),r=en(),i=A(),u=hn(),c=S(()=>{var b;return e.type||n?.type||((b=o.value)==null?void 0:b.type)||""}),d=S(()=>{var b,C,w;return(w=(C=e.autoInsertSpace)!=null?C:(b=o.value)==null?void 0:b.autoInsertSpace)!=null?w:!1}),f=S(()=>{var b,C,w;return(w=(C=e.plain)!=null?C:(b=o.value)==null?void 0:b.plain)!=null?w:!1}),v=S(()=>{var b,C,w;return(w=(C=e.round)!=null?C:(b=o.value)==null?void 0:b.round)!=null?w:!1}),p=S(()=>{var b,C,w;return(w=(C=e.text)!=null?C:(b=o.value)==null?void 0:b.text)!=null?w:!1}),m=S(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=S(()=>{var b;const C=(b=u.default)==null?void 0:b.call(u);if(d.value&&C?.length===1){const w=C[0];if(w?.type===_s){const y=w.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:r,_size:a,_type:c,_ref:i,_props:m,_plain:f,_round:v,_text:p,shouldAddSpace:h,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&l?.resetFields(),t("click",b)}}},Qp=["default","primary","success","warning","info","danger","text",""],y8=["button","submit","reset"],ev=Ee({size:gn,disabled:{type:Boolean,default:void 0},type:{type:String,values:Qp,default:""},icon:{type:Bt},nativeType:{type:String,values:y8,default:"button"},loading:Boolean,loadingIcon:{type:Bt,default:()=>wl},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:J([String,Object]),default:"button"}}),w8={click:e=>e instanceof MouseEvent};function Ln(e,t){C8(e)&&(e="100%");var n=S8(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Gu(e){return Math.min(1,Math.max(0,e))}function C8(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function S8(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Ok(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Xu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Qa(e){return e.length===1?"0"+e:String(e)}function k8(e,t,n){return{r:Ln(e,255)*255,g:Ln(t,255)*255,b:Ln(n,255)*255}}function Uy(e,t,n){e=Ln(e,255),t=Ln(t,255),n=Ln(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),a=0,r=0,i=(o+l)/2;if(o===l)r=0,a=0;else{var u=o-l;switch(r=i>.5?u/(2-o-l):u/(o+l),o){case e:a=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function E8(e,t,n){var o,l,a;if(e=Ln(e,360),t=Ln(t,100),n=Ln(n,100),t===0)l=n,a=n,o=n;else{var r=n<.5?n*(1+t):n+t-n*t,i=2*n-r;o=np(i,r,e+1/3),l=np(i,r,e),a=np(i,r,e-1/3)}return{r:o*255,g:l*255,b:a*255}}function qy(e,t,n){e=Ln(e,255),t=Ln(t,255),n=Ln(n,255);var o=Math.max(e,t,n),l=Math.min(e,t,n),a=0,r=o,i=o-l,u=o===0?0:i/o;if(o===l)a=0;else{switch(o){case e:a=(t-n)/i+(t>16,g:(e&65280)>>8,b:e&255}}var tv={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function R8(e){var t={r:0,g:0,b:0},n=1,o=null,l=null,a=null,r=!1,i=!1;return typeof e=="string"&&(e=x8(e)),typeof e=="object"&&(Pl(e.r)&&Pl(e.g)&&Pl(e.b)?(t=k8(e.r,e.g,e.b),r=!0,i=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Pl(e.h)&&Pl(e.s)&&Pl(e.v)?(o=Xu(e.s),l=Xu(e.v),t=_8(e.h,o,l),r=!0,i="hsv"):Pl(e.h)&&Pl(e.s)&&Pl(e.l)&&(o=Xu(e.s),a=Xu(e.l),t=E8(e.h,o,a),r=!0,i="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ok(n),{ok:r,format:e.format||i,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var N8="[-\\+]?\\d+%?",I8="[-\\+]?\\d*\\.\\d+%?",Ta="(?:".concat(I8,")|(?:").concat(N8,")"),op="[\\s|\\(]+(".concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")\\s*\\)?"),lp="[\\s|\\(]+(".concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")[,|\\s]+(").concat(Ta,")\\s*\\)?"),Lo={CSS_UNIT:new RegExp(Ta),rgb:new RegExp("rgb"+op),rgba:new RegExp("rgba"+lp),hsl:new RegExp("hsl"+op),hsla:new RegExp("hsla"+lp),hsv:new RegExp("hsv"+op),hsva:new RegExp("hsva"+lp),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function x8(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(tv[e])e=tv[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Lo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Lo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Lo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lo.hex8.exec(e),n?{r:bo(n[1]),g:bo(n[2]),b:bo(n[3]),a:Gy(n[4]),format:t?"name":"hex8"}:(n=Lo.hex6.exec(e),n?{r:bo(n[1]),g:bo(n[2]),b:bo(n[3]),format:t?"name":"hex"}:(n=Lo.hex4.exec(e),n?{r:bo(n[1]+n[1]),g:bo(n[2]+n[2]),b:bo(n[3]+n[3]),a:Gy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Lo.hex3.exec(e),n?{r:bo(n[1]+n[1]),g:bo(n[2]+n[2]),b:bo(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Pl(e){return!!Lo.CSS_UNIT.exec(String(e))}var Hr=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=$8(t)),this.originalInput=t;var l=R8(t);this.originalInput=t,this.r=l.r,this.g=l.g,this.b=l.b,this.a=l.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:l.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=l.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,l,a=t.r/255,r=t.g/255,i=t.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),i<=.03928?l=i/12.92:l=Math.pow((i+.055)/1.055,2.4),.2126*n+.7152*o+.0722*l},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Ok(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=qy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=qy(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),l=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(l,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Uy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Uy(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),l=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(l,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(l,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Yy(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),T8(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ln(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ln(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Yy(this.r,this.g,this.b,!1),n=0,o=Object.entries(tv);n=0,a=!n&&l&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Gu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Gu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Gu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Gu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),l=new e(t).toRgb(),a=n/100,r={r:(l.r-o.r)*a+o.r,g:(l.g-o.g)*a+o.g,b:(l.b-o.b)*a+o.b,a:(l.a-o.a)*a+o.a};return new e(r)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),l=360/n,a=[this];for(o.h=(o.h-(l*t>>1)+720)%360;--t;)o.h=(o.h+l)%360,a.push(new e(o));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,l=n.s,a=n.v,r=[],i=1/t;t--;)r.push(new e({h:o,s:l,v:a})),a=(a+i)%1;return r},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),o=new e(t).toRgb(),l=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/l,g:(n.g*n.a+o.g*o.a*(1-n.a))/l,b:(n.b*n.a+o.b*o.a*(1-n.a))/l,a:l})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),o=n.h,l=[this],a=360/t,r=1;r{let o={},l=e.color;if(l){const a=l.match(/var\((.*?)\)/);a&&(l=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const r=new Hr(l),i=e.dark?r.tint(20).toString():fa(r,20);if(e.plain)o=n.cssVarBlock({"bg-color":e.dark?fa(r,90):r.tint(90).toString(),"text-color":l,"border-color":e.dark?fa(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":l,"hover-border-color":l,"active-bg-color":i,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":i}),t.value&&(o[n.cssVarBlockName("disabled-bg-color")]=e.dark?fa(r,90):r.tint(90).toString(),o[n.cssVarBlockName("disabled-text-color")]=e.dark?fa(r,50):r.tint(50).toString(),o[n.cssVarBlockName("disabled-border-color")]=e.dark?fa(r,80):r.tint(80).toString());else{const u=e.dark?fa(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(o=n.cssVarBlock({"bg-color":l,"text-color":c,"border-color":l,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":i,"active-border-color":i}),t.value){const d=e.dark?fa(r,50):r.tint(50).toString();o[n.cssVarBlockName("disabled-bg-color")]=d,o[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,o[n.cssVarBlockName("disabled-border-color")]=d}}}return o})}const M8=q({name:"ElButton"}),A8=q({...M8,props:ev,emits:w8,setup(e,{expose:t,emit:n}){const o=e,l=P8(o),a=ge("button"),{_ref:r,_size:i,_type:u,_disabled:c,_props:d,_plain:f,_round:v,_text:p,shouldAddSpace:m,handleClick:h}=b8(o,n),g=S(()=>[a.b(),a.m(u.value),a.m(i.value),a.is("disabled",c.value),a.is("loading",o.loading),a.is("plain",f.value),a.is("round",v.value),a.is("circle",o.circle),a.is("text",p.value),a.is("link",o.link),a.is("has-bg",o.bg)]);return t({ref:r,size:i,type:u,disabled:c,shouldAddSpace:m}),(b,C)=>(O(),ie(ut(b.tag),ft({ref_key:"_ref",ref:r},s(d),{class:s(g),style:s(l),onClick:s(h)}),{default:te(()=>[b.loading?(O(),F(ze,{key:0},[b.$slots.loading?ae(b.$slots,"loading",{key:0}):(O(),ie(s(Fe),{key:1,class:x(s(a).is("loading"))},{default:te(()=>[(O(),ie(ut(b.loadingIcon)))]),_:1},8,["class"]))],64)):b.icon||b.$slots.icon?(O(),ie(s(Fe),{key:1},{default:te(()=>[b.icon?(O(),ie(ut(b.icon),{key:0})):ae(b.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),b.$slots.default?(O(),F("span",{key:2,class:x({[s(a).em("text","expand")]:s(m)})},[ae(b.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var L8=Oe(A8,[["__file","button.vue"]]);const D8={size:ev.size,type:ev.type,direction:{type:J(String),values:["horizontal","vertical"],default:"horizontal"}},B8=q({name:"ElButtonGroup"}),F8=q({...B8,props:D8,setup(e){const t=e;bt(Tk,It({size:Dt(t,"size"),type:Dt(t,"type")}));const n=ge("button");return(o,l)=>(O(),F("div",{class:x([s(n).b("group"),s(n).bm("group",t.direction)])},[ae(o.$slots,"default")],2))}});var $k=Oe(F8,[["__file","button-group.vue"]]);const _n=lt(L8,{ButtonGroup:$k}),Rk=Qt($k);function ua(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var hc={exports:{}},V8=hc.exports,Xy;function z8(){return Xy||(Xy=1,(function(e,t){(function(n,o){e.exports=o()})(V8,(function(){var n=1e3,o=6e4,l=36e5,a="millisecond",r="second",i="minute",u="hour",c="day",d="week",f="month",v="quarter",p="year",m="date",h="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var Y=["th","st","nd","rd"],P=U%100;return"["+U+(Y[(P-20)%10]||Y[P]||Y[0])+"]"}},w=function(U,Y,P){var R=String(U);return!R||R.length>=Y?U:""+Array(Y+1-R.length).join(P)+U},y={s:w,z:function(U){var Y=-U.utcOffset(),P=Math.abs(Y),R=Math.floor(P/60),L=P%60;return(Y<=0?"+":"-")+w(R,2,"0")+":"+w(L,2,"0")},m:function U(Y,P){if(Y.date()1)return U(D[0])}else{var K=Y.name;E[K]=Y,L=K}return!R&&L&&(k=L),L||!R&&k},M=function(U,Y){if(I(U))return U.clone();var P=typeof Y=="object"?Y:{};return P.date=U,P.args=arguments,new N(P)},T=y;T.l=$,T.i=I,T.w=function(U,Y){return M(U,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var N=(function(){function U(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[_]=!0}var Y=U.prototype;return Y.parse=function(P){this.$d=(function(R){var L=R.date,V=R.utc;if(L===null)return new Date(NaN);if(T.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var D=L.match(g);if(D){var K=D[2]-1||0,B=(D[7]||"0").substring(0,3);return V?new Date(Date.UTC(D[1],K,D[3]||1,D[4]||0,D[5]||0,D[6]||0,B)):new Date(D[1],K,D[3]||1,D[4]||0,D[5]||0,D[6]||0,B)}}return new Date(L)})(P),this.init()},Y.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},Y.$utils=function(){return T},Y.isValid=function(){return this.$d.toString()!==h},Y.isSame=function(P,R){var L=M(P);return this.startOf(R)<=L&&L<=this.endOf(R)},Y.isAfter=function(P,R){return M(P)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),Nk=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Ik=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),Jy=function(e,t){const n=Ia(e),o=Ia(t);return n&&o?e.getTime()===t.getTime():!n&&!o?e===t:!1},xk=function(e,t){const n=Ce(e),o=Ce(t);return n&&o?e.length!==t.length?!1:e.every((l,a)=>Jy(l,t[a])):!n&&!o?Jy(e,t):!1},Zy=function(e,t,n){const o=to(t)||t==="x"?at(e).locale(n):at(e,t).locale(n);return o.isValid()?o:void 0},Qy=function(e,t,n){return to(t)?e:t==="x"?+e:at(e).locale(n).format(t)},rp=(e,t)=>{var n;const o=[],l=t?.();for(let a=0;aCe(e)?e.map(t=>t.toDate()):e.toDate(),K8=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Na(t).map((o,l)=>n-(t-l-1))},W8=e=>{const t=e.daysInMonth();return Na(t).map((n,o)=>o+1)},j8=e=>Na(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),U8=Ee({selectedDay:{type:J(Object)},range:{type:J(Array)},date:{type:J(Object),required:!0},hideHeader:{type:Boolean}}),q8={pick:e=>rt(e)};var gc={exports:{}},Y8=gc.exports,e0;function G8(){return e0||(e0=1,(function(e,t){(function(n,o){e.exports=o()})(Y8,(function(){return function(n,o,l){var a=o.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,v,p,m,h){var g=f.name?f:f.$locale(),b=r(g[v]),C=r(g[p]),w=b||C.map((function(k){return k.slice(0,m)}));if(!h)return w;var y=g.weekStart;return w.map((function(k,E){return w[(E+(y||0))%7]}))},u=function(){return l.Ls[l.locale()]},c=function(f,v){return f.formats[v]||(function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(m,h,g){return h||g.slice(1)}))})(f.formats[v.toUpperCase()])},d=function(){var f=this;return{months:function(v){return v?v.format("MMMM"):i(f,"months")},monthsShort:function(v){return v?v.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):i(f,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(f.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};a.localeData=function(){return d.bind(this)()},l.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(v){return c(f,v)},meridiem:f.meridiem,ordinal:f.ordinal}},l.months=function(){return i(u(),"months")},l.monthsShort=function(){return i(u(),"monthsShort","months",3)},l.weekdays=function(f){return i(u(),"weekdays",null,null,f)},l.weekdaysShort=function(f){return i(u(),"weekdaysShort","weekdays",3,f)},l.weekdaysMin=function(f){return i(u(),"weekdaysMin","weekdays",2,f)}}}))})(gc)),gc.exports}var X8=G8();const Pk=ua(X8),J8=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],sp=["sun","mon","tue","wed","thu","fri","sat"],Z8=(e,t)=>{at.extend(Pk);const n=at.localeData().firstDayOfWeek(),{t:o,lang:l}=kt(),a=at().locale(l.value),r=S(()=>!!e.range&&!!e.range.length),i=S(()=>{let v=[];if(r.value){const[p,m]=e.range,h=Na(m.date()-p.date()+1).map(C=>({text:p.date()+C,type:"current"}));let g=h.length%7;g=g===0?0:7-g;const b=Na(g).map((C,w)=>({text:w+1,type:"next"}));v=h.concat(b)}else{const p=e.date.startOf("month").day(),m=K8(e.date,(p-n+7)%7).map(C=>({text:C,type:"prev"})),h=W8(e.date).map(C=>({text:C,type:"current"}));v=[...m,...h];const g=7-(v.length%7||7),b=Na(g).map((C,w)=>({text:w+1,type:"next"}));v=v.concat(b)}return j8(v)}),u=S(()=>{const v=n;return v===0?sp.map(p=>o(`el.datepicker.weeks.${p}`)):sp.slice(v).concat(sp.slice(0,v)).map(p=>o(`el.datepicker.weeks.${p}`))}),c=(v,p)=>{switch(p){case"prev":return e.date.startOf("month").subtract(1,"month").date(v);case"next":return e.date.startOf("month").add(1,"month").date(v);case"current":return e.date.date(v)}};return{now:a,isInRange:r,rows:i,weekDays:u,getFormattedDate:c,handlePickDay:({text:v,type:p})=>{const m=c(v,p);t("pick",m)},getSlotData:({text:v,type:p})=>{const m=c(v,p);return{isSelected:m.isSame(e.selectedDay),type:`${p}-month`,day:m.format("YYYY-MM-DD"),date:m.toDate()}}}},Q8=q({name:"DateTable"}),eB=q({...Q8,props:U8,emits:q8,setup(e,{expose:t,emit:n}){const o=e,{isInRange:l,now:a,rows:r,weekDays:i,getFormattedDate:u,handlePickDay:c,getSlotData:d}=Z8(o,n),f=ge("calendar-table"),v=ge("calendar-day"),p=({text:m,type:h})=>{const g=[h];if(h==="current"){const b=u(m,h);b.isSame(o.selectedDay,"day")&&g.push(v.is("selected")),b.isSame(a,"day")&&g.push(v.is("today"))}return g};return t({getFormattedDate:u}),(m,h)=>(O(),F("table",{class:x([s(f).b(),s(f).is("range",s(l))]),cellspacing:"0",cellpadding:"0"},[m.hideHeader?re("v-if",!0):(O(),F("thead",{key:0},[W("tr",null,[(O(!0),F(ze,null,gt(s(i),g=>(O(),F("th",{key:g,scope:"col"},ke(g),1))),128))])])),W("tbody",null,[(O(!0),F(ze,null,gt(s(r),(g,b)=>(O(),F("tr",{key:b,class:x({[s(f).e("row")]:!0,[s(f).em("row","hide-border")]:b===0&&m.hideHeader})},[(O(!0),F(ze,null,gt(g,(C,w)=>(O(),F("td",{key:w,class:x(p(C)),onClick:y=>s(c)(C)},[W("div",{class:x(s(v).b())},[ae(m.$slots,"date-cell",{data:s(d)(C)},()=>[W("span",null,ke(C.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var t0=Oe(eB,[["__file","date-table.vue"]]);const tB=(e,t)=>{const n=e.endOf("month"),o=t.startOf("month"),a=n.isSame(o,"week")?o.add(1,"week"):o;return[[e,n],[a.startOf("week"),t]]},nB=(e,t)=>{const n=e.endOf("month"),o=e.add(1,"month").startOf("month"),l=n.isSame(o,"week")?o.add(1,"week"):o,a=l.endOf("month"),r=t.startOf("month"),i=a.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[l.startOf("week"),a],[i.startOf("week"),t]]},oB=(e,t,n)=>{const{lang:o}=kt(),l=A(),a=at().locale(o.value),r=S({get(){return e.modelValue?u.value:l.value},set(g){if(!g)return;l.value=g;const b=g.toDate();t(pn,b),t(Qe,b)}}),i=S(()=>{if(!e.range||!Ce(e.range)||e.range.length!==2||e.range.some(w=>!Ia(w)))return[];const g=e.range.map(w=>at(w).locale(o.value)),[b,C]=g;return b.isAfter(C)?[]:b.isSame(C,"month")?p(b,C):b.add(1,"month").month()!==C.month()?[]:p(b,C)}),u=S(()=>e.modelValue?at(e.modelValue).locale(o.value):r.value||(i.value.length?i.value[0][0]:a)),c=S(()=>u.value.subtract(1,"month").date(1)),d=S(()=>u.value.add(1,"month").date(1)),f=S(()=>u.value.subtract(1,"year").date(1)),v=S(()=>u.value.add(1,"year").date(1)),p=(g,b)=>{const C=g.startOf("week"),w=b.endOf("week"),y=C.get("month"),k=w.get("month");return y===k?[[C,w]]:(y+1)%12===k?tB(C,w):y+2===k||(y+1)%11===k?nB(C,w):[]},m=g=>{r.value=g};return{calculateValidatedDateRange:p,date:u,realSelectedDay:r,pickDay:m,selectDate:g=>{const C={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":v.value,today:a}[g];C.isSame(u.value,"day")||m(C)},validatedRange:i}},lB=e=>Ce(e)&&e.length===2&&e.every(t=>Ia(t)),aB=Ee({modelValue:{type:Date},range:{type:J(Array),validator:lB}}),rB={[Qe]:e=>Ia(e),[pn]:e=>Ia(e)},sB="ElCalendar",iB=q({name:sB}),uB=q({...iB,props:aB,emits:rB,setup(e,{expose:t,emit:n}){const o=e,l=ge("calendar"),{calculateValidatedDateRange:a,date:r,pickDay:i,realSelectedDay:u,selectDate:c,validatedRange:d}=oB(o,n),{t:f}=kt(),v=S(()=>{const p=`el.datepicker.month${r.value.format("M")}`;return`${r.value.year()} ${f("el.datepicker.year")} ${f(p)}`});return t({selectedDay:u,pickDay:i,selectDate:c,calculateValidatedDateRange:a}),(p,m)=>(O(),F("div",{class:x(s(l).b())},[W("div",{class:x(s(l).e("header"))},[ae(p.$slots,"header",{date:s(v)},()=>[W("div",{class:x(s(l).e("title"))},ke(s(v)),3),s(d).length===0?(O(),F("div",{key:0,class:x(s(l).e("button-group"))},[G(s(Rk),null,{default:te(()=>[G(s(_n),{size:"small",onClick:h=>s(c)("prev-month")},{default:te(()=>[vt(ke(s(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),G(s(_n),{size:"small",onClick:h=>s(c)("today")},{default:te(()=>[vt(ke(s(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),G(s(_n),{size:"small",onClick:h=>s(c)("next-month")},{default:te(()=>[vt(ke(s(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):re("v-if",!0)])],2),s(d).length===0?(O(),F("div",{key:0,class:x(s(l).e("body"))},[G(t0,{date:s(r),"selected-day":s(u),onPick:s(i)},ho({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:te(h=>[ae(p.$slots,"date-cell",Fo(fl(h)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(O(),F("div",{key:1,class:x(s(l).e("body"))},[(O(!0),F(ze,null,gt(s(d),(h,g)=>(O(),ie(t0,{key:g,date:h[0],"selected-day":s(u),range:h,"hide-header":g!==0,onPick:s(i)},ho({_:2},[p.$slots["date-cell"]?{name:"date-cell",fn:te(b=>[ae(p.$slots,"date-cell",Fo(fl(b)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var cB=Oe(uB,[["__file","calendar.vue"]]);const dB=lt(cB),fB=Ee({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:J([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}}),pB=q({name:"ElCard"}),vB=q({...pB,props:fB,setup(e){const t=Is("card"),n=ge("card");return(o,l)=>{var a;return O(),F("div",{class:x([s(n).b(),s(n).is(`${o.shadow||((a=s(t))==null?void 0:a.shadow)||"always"}-shadow`)])},[o.$slots.header||o.header?(O(),F("div",{key:0,class:x([s(n).e("header"),o.headerClass])},[ae(o.$slots,"header",{},()=>[vt(ke(o.header),1)])],2)):re("v-if",!0),W("div",{class:x([s(n).e("body"),o.bodyClass]),style:je(o.bodyStyle)},[ae(o.$slots,"default")],6),o.$slots.footer||o.footer?(O(),F("div",{key:1,class:x([s(n).e("footer"),o.footerClass])},[ae(o.$slots,"footer",{},()=>[vt(ke(o.footer),1)])],2)):re("v-if",!0)],2)}}});var hB=Oe(vB,[["__file","card.vue"]]);const mB=lt(hB),gB=Ee({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),bB={change:(e,t)=>[e,t].every(Ye)},Mk=Symbol("carouselContextKey"),nv="ElCarouselItem";var $o=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))($o||{});function ov(e){return Wt(e)&&e.type===ze}function yB(e){return Wt(e)&&e.type===un}function wB(e){return Wt(e)&&!ov(e)&&!yB(e)}const CB=e=>{if(!Wt(e))return{};const t=e.props||{},n=(Wt(e.type)?e.type.props:void 0)||{},o={};return Object.keys(n).forEach(l=>{Rt(n[l],"default")&&(o[l]=n[l].default)}),Object.keys(t).forEach(l=>{o[no(l)]=t[l]}),o},Bo=e=>{const t=Ce(e)?e:[e],n=[];return t.forEach(o=>{var l;Ce(o)?n.push(...Bo(o)):Wt(o)&&((l=o.component)!=null&&l.subTree)?n.push(o,...Bo(o.component.subTree)):Wt(o)&&Ce(o.children)?n.push(...Bo(o.children)):Wt(o)&&o.shapeFlag===2?n.push(...Bo(o.type())):n.push(o)}),n},SB=(e,t,n)=>Bo(e.subTree).filter(a=>{var r;return Wt(a)&&((r=a.type)==null?void 0:r.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),uf=(e,t)=>{const n=jt({}),o=jt([]),l=new WeakMap,a=d=>{n.value[d.uid]=d,ic(n),pt(()=>{const f=d.getVnode().el,v=f.parentNode;if(!l.has(v)){l.set(v,[]);const p=v.insertBefore.bind(v);v.insertBefore=(m,h)=>(l.get(v).some(b=>m===b||h===b)&&ic(n),p(m,h))}l.get(v).push(f)})},r=d=>{delete n.value[d.uid],ic(n);const f=d.getVnode().el,v=f.parentNode,p=l.get(v),m=p.indexOf(f);p.splice(m,1)},i=()=>{o.value=SB(e,t,n.value)},u=d=>d.render();return{children:o,addChild:a,removeChild:r,ChildrenSorter:q({setup(d,{slots:f}){return()=>(i(),f.default?Ge(u,{render:f.default}):null)}})}},n0=300,kB=(e,t,n)=>{const{children:o,addChild:l,removeChild:a,ChildrenSorter:r}=uf(dt(),nv),i=hn(),u=A(-1),c=A(null),d=A(!1),f=A(),v=A(0),p=A(!0),m=S(()=>e.arrow!=="never"&&!s(b)),h=S(()=>o.value.some(oe=>oe.props.label.toString().length>0)),g=S(()=>e.type==="card"),b=S(()=>e.direction==="vertical"),C=S(()=>e.height!=="auto"?{height:e.height}:{height:`${v.value}px`,overflow:"hidden"}),w=_a(oe=>{$(oe)},n0,{trailing:!0}),y=_a(oe=>{R(oe)},n0),k=oe=>p.value?u.value<=1?oe<=1:oe>1:!0;function E(){c.value&&(clearInterval(c.value),c.value=null)}function _(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>I(),e.interval))}const I=()=>{u.valueX.props.name===oe);se.length>0&&(oe=o.value.indexOf(se[0]))}if(oe=Number(oe),Number.isNaN(oe)||oe!==Math.floor(oe))return;const ce=o.value.length,ee=u.value;oe<0?u.value=e.loop?ce-1:0:oe>=ce?u.value=e.loop?0:ce-1:u.value=oe,ee===u.value&&M(ee),D()}function M(oe){o.value.forEach((ce,ee)=>{ce.translateItem(ee,u.value,oe)})}function T(oe,ce){var ee,se,X,Q;const le=s(o),H=le.length;if(H===0||!oe.states.inStage)return!1;const Z=ce+1,ue=ce-1,pe=H-1,ve=le[pe].states.active,he=le[0].states.active,xe=(se=(ee=le[Z])==null?void 0:ee.states)==null?void 0:se.active,_e=(Q=(X=le[ue])==null?void 0:X.states)==null?void 0:Q.active;return ce===pe&&he||xe?"left":ce===0&&ve||_e?"right":!1}function N(){d.value=!0,e.pauseOnHover&&E()}function z(){d.value=!1,_()}function U(oe){s(b)||o.value.forEach((ce,ee)=>{oe===T(ce,ee)&&(ce.states.hover=!0)})}function Y(){s(b)||o.value.forEach(oe=>{oe.states.hover=!1})}function P(oe){u.value=oe}function R(oe){e.trigger==="hover"&&oe!==u.value&&(u.value=oe)}function L(){$(u.value-1)}function V(){$(u.value+1)}function D(){E(),e.pauseOnHover||_()}function K(oe){e.height==="auto"&&(v.value=oe)}function B(){var oe;const ce=(oe=i.default)==null?void 0:oe.call(i);if(!ce)return null;const se=Bo(ce).filter(X=>Wt(X)&&X.type.name===nv);return se?.length===2&&e.loop&&!g.value?(p.value=!0,se):(p.value=!1,null)}fe(()=>u.value,(oe,ce)=>{M(ce),p.value&&(oe=oe%2,ce=ce%2),ce>-1&&t(mt,oe,ce)});const j=S({get:()=>p.value?u.value%2:u.value,set:oe=>u.value=oe});fe(()=>e.autoplay,oe=>{oe?_():E()}),fe(()=>e.loop,()=>{$(u.value)}),fe(()=>e.interval,()=>{D()});const ne=jt();return pt(()=>{fe(()=>o.value,()=>{o.value.length>0&&$(e.initialIndex)},{immediate:!0}),ne.value=Yt(f.value,()=>{M()}),_()}),Pt(()=>{E(),f.value&&ne.value&&ne.value.stop()}),bt(Mk,{root:f,isCardType:g,isVertical:b,items:o,loop:e.loop,cardScale:e.cardScale,addItem:l,removeItem:a,setActiveItem:$,setContainerHeight:K}),{root:f,activeIndex:u,exposeActiveIndex:j,arrowDisplay:m,hasLabel:h,hover:d,isCardType:g,items:o,isVertical:b,containerStyle:C,isItemsTwoLength:p,handleButtonEnter:U,handleButtonLeave:Y,handleIndicatorClick:P,handleMouseEnter:N,handleMouseLeave:z,setActiveItem:$,prev:L,next:V,PlaceholderItem:B,isTwoLengthShow:k,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:y}},EB="ElCarousel",_B=q({name:EB}),TB=q({..._B,props:gB,emits:bB,setup(e,{expose:t,emit:n}){const o=e,{root:l,activeIndex:a,exposeActiveIndex:r,arrowDisplay:i,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:v,containerStyle:p,handleButtonEnter:m,handleButtonLeave:h,handleIndicatorClick:g,handleMouseEnter:b,handleMouseLeave:C,setActiveItem:w,prev:y,next:k,PlaceholderItem:E,isTwoLengthShow:_,ItemsSorter:I,throttledArrowClick:$,throttledIndicatorHover:M}=kB(o,n),T=ge("carousel"),{t:N}=kt(),z=S(()=>{const R=[T.b(),T.m(o.direction)];return s(d)&&R.push(T.m("card")),R}),U=S(()=>{const R=[T.e("indicators"),T.em("indicators",o.direction)];return s(u)&&R.push(T.em("indicators","labels")),o.indicatorPosition==="outside"&&R.push(T.em("indicators","outside")),s(v)&&R.push(T.em("indicators","right")),R});function Y(R){if(!o.motionBlur)return;const L=s(v)?`${T.namespace.value}-transitioning-vertical`:`${T.namespace.value}-transitioning`;R.currentTarget.classList.add(L)}function P(R){if(!o.motionBlur)return;const L=s(v)?`${T.namespace.value}-transitioning-vertical`:`${T.namespace.value}-transitioning`;R.currentTarget.classList.remove(L)}return t({activeIndex:r,setActiveItem:w,prev:y,next:k}),(R,L)=>(O(),F("div",{ref_key:"root",ref:l,class:x(s(z)),onMouseenter:Ze(s(b),["stop"]),onMouseleave:Ze(s(C),["stop"])},[s(i)?(O(),ie(Nn,{key:0,name:"carousel-arrow-left",persisted:""},{default:te(()=>[it(W("button",{type:"button",class:x([s(T).e("arrow"),s(T).em("arrow","left")]),"aria-label":s(N)("el.carousel.leftArrow"),onMouseenter:V=>s(m)("left"),onMouseleave:s(h),onClick:Ze(V=>s($)(s(a)-1),["stop"])},[G(s(Fe),null,{default:te(()=>[G(s(Zl))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[$t,(R.arrow==="always"||s(c))&&(R.loop||s(a)>0)]])]),_:1})):re("v-if",!0),s(i)?(O(),ie(Nn,{key:1,name:"carousel-arrow-right",persisted:""},{default:te(()=>[it(W("button",{type:"button",class:x([s(T).e("arrow"),s(T).em("arrow","right")]),"aria-label":s(N)("el.carousel.rightArrow"),onMouseenter:V=>s(m)("right"),onMouseleave:s(h),onClick:Ze(V=>s($)(s(a)+1),["stop"])},[G(s(Fe),null,{default:te(()=>[G(s(Yn))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[$t,(R.arrow==="always"||s(c))&&(R.loop||s(a)[R.indicatorPosition!=="none"?(O(),F("ul",{key:0,class:x(s(U))},[(O(!0),F(ze,null,gt(s(f),(V,D)=>it((O(),F("li",{key:D,class:x([s(T).e("indicator"),s(T).em("indicator",R.direction),s(T).is("active",D===s(a))]),onMouseenter:K=>s(M)(D),onClick:Ze(K=>s(g)(D),["stop"])},[W("button",{class:x(s(T).e("button")),"aria-label":s(N)("el.carousel.indicator",{index:D+1})},[s(u)?(O(),F("span",{key:0},ke(V.props.label),1)):re("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[$t,s(_)(D)]])),128))],2)):re("v-if",!0)]),_:1}),R.motionBlur?(O(),F("svg",{key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[W("defs",null,[W("filter",{id:"elCarouselHorizontal"},[W("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),W("filter",{id:"elCarouselVertical"},[W("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):re("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var OB=Oe(TB,[["__file","carousel.vue"]]);const $B=Ee({name:{type:String,default:""},label:{type:[String,Number],default:""}}),RB=e=>{const t=Pe(Mk),n=dt(),o=A(),l=A(!1),a=A(0),r=A(1),i=A(!1),u=A(!1),c=A(!1),d=A(!1),{isCardType:f,isVertical:v,cardScale:p}=t;function m(y,k,E){const _=E-1,I=k-1,$=k+1,M=E/2;return k===0&&y===_?-1:k===_&&y===0?E:y=M?E+1:y>$&&y-k>=M?-2:y}function h(y,k){var E,_;const I=s(v)?((E=t.root.value)==null?void 0:E.offsetHeight)||0:((_=t.root.value)==null?void 0:_.offsetWidth)||0;return c.value?I*((2-p)*(y-k)+1)/4:y{var _;const I=s(f),$=(_=t.items.value.length)!=null?_:Number.NaN,M=y===k;!I&&!Tt(E)&&(d.value=M||y===E),!M&&$>2&&t.loop&&(y=m(y,k,$));const T=s(v);i.value=M,I?(c.value=Math.round(Math.abs(y-k))<=1,a.value=h(y,k),r.value=s(i)?1:p):a.value=g(y,k,T),u.value=!0,M&&o.value&&t.setContainerHeight(o.value.offsetHeight)};function C(){if(t&&s(f)){const y=t.items.value.findIndex(({uid:k})=>k===n.uid);t.setActiveItem(y)}}const w={props:e,states:It({hover:l,translate:a,scale:r,active:i,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:b};return t.addItem(w),Pt(()=>{t.removeItem(w)}),{carouselItemRef:o,active:i,animating:d,hover:l,inStage:c,isVertical:v,translate:a,isCardType:f,scale:r,ready:u,handleItemClick:C}},NB=q({name:nv}),IB=q({...NB,props:$B,setup(e){const t=e,n=ge("carousel"),{carouselItemRef:o,active:l,animating:a,hover:r,inStage:i,isVertical:u,translate:c,isCardType:d,scale:f,ready:v,handleItemClick:p}=RB(t),m=S(()=>[n.e("item"),n.is("active",l.value),n.is("in-stage",i.value),n.is("hover",r.value),n.is("animating",a.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),h=S(()=>{const b=`${`translate${s(u)?"Y":"X"}`}(${s(c)}px)`,C=`scale(${s(f)})`;return{transform:[b,C].join(" ")}});return(g,b)=>it((O(),F("div",{ref_key:"carouselItemRef",ref:o,class:x(s(m)),style:je(s(h)),onClick:s(p)},[s(d)?it((O(),F("div",{key:0,class:x(s(n).e("mask"))},null,2)),[[$t,!s(l)]]):re("v-if",!0),ae(g.$slots,"default")],14,["onClick"])),[[$t,s(v)]])}});var Ak=Oe(IB,[["__file","carousel-item.vue"]]);const xB=lt(OB,{CarouselItem:Ak}),PB=Qt(Ak),Lk={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:gn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...Gn(["ariaControls"])},Dk={[Qe]:e=>Ve(e)||Ye(e)||Lt(e),change:e=>Ve(e)||Ye(e)||Lt(e)},Ps=Symbol("checkboxGroupContextKey"),MB=({model:e,isChecked:t})=>{const n=Pe(Ps,void 0),o=Pe(Or,void 0),l=S(()=>{var r,i;const u=(r=n?.max)==null?void 0:r.value,c=(i=n?.min)==null?void 0:i.value;return!Tt(u)&&e.value.length>=u&&!t.value||!Tt(c)&&e.value.length<=c&&t.value});return{isDisabled:en(S(()=>{var r,i;return n===void 0?(r=o?.disabled)!=null?r:l.value:((i=n.disabled)==null?void 0:i.value)||l.value})),isLimitDisabled:l}},AB=(e,{model:t,isLimitExceeded:n,hasOwnLabel:o,isDisabled:l,isLabeledByFormItem:a})=>{const r=Pe(Ps,void 0),{formItem:i}=$n(),{emit:u}=dt();function c(m){var h,g,b,C;return[!0,e.trueValue,e.trueLabel].includes(m)?(g=(h=e.trueValue)!=null?h:e.trueLabel)!=null?g:!0:(C=(b=e.falseValue)!=null?b:e.falseLabel)!=null?C:!1}function d(m,h){u(mt,c(m),h)}function f(m){if(n.value)return;const h=m.target;u(mt,c(h.checked),m)}async function v(m){n.value||!o.value&&!l.value&&a.value&&(m.composedPath().some(b=>b.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Me(),d(t.value,m)))}const p=S(()=>r?.validateEvent||e.validateEvent);return fe(()=>e.modelValue,()=>{p.value&&i?.validate("change").catch(m=>void 0)}),{handleChange:f,onClickRoot:v}},LB=e=>{const t=A(!1),{emit:n}=dt(),o=Pe(Ps,void 0),l=S(()=>Tt(o)===!1),a=A(!1),r=S({get(){var i,u;return l.value?(i=o?.modelValue)==null?void 0:i.value:(u=e.modelValue)!=null?u:t.value},set(i){var u,c;l.value&&Ce(i)?(a.value=((u=o?.max)==null?void 0:u.value)!==void 0&&i.length>o?.max.value&&i.length>r.value.length,a.value===!1&&((c=o?.changeEvent)==null||c.call(o,i))):(n(Qe,i),t.value=i)}});return{model:r,isGroup:l,isLimitExceeded:a}},DB=(e,t,{model:n})=>{const o=Pe(Ps,void 0),l=A(!1),a=S(()=>uo(e.value)?e.label:e.value),r=S(()=>{const d=n.value;return Lt(d)?d:Ce(d)?rt(a.value)?d.map(Kt).some(f=>nn(f,a.value)):d.map(Kt).includes(a.value):d!=null?d===e.trueValue||d===e.trueLabel:!!d}),i=vn(S(()=>{var d;return(d=o?.size)==null?void 0:d.value}),{prop:!0}),u=vn(S(()=>{var d;return(d=o?.size)==null?void 0:d.value})),c=S(()=>!!t.default||!uo(a.value));return{checkboxButtonSize:i,isChecked:r,isFocused:l,checkboxSize:u,hasOwnLabel:c,actualValue:a}},Bk=(e,t)=>{const{formItem:n}=$n(),{model:o,isGroup:l,isLimitExceeded:a}=LB(e),{isFocused:r,isChecked:i,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=DB(e,t,{model:o}),{isDisabled:v}=MB({model:o,isChecked:i}),{inputId:p,isLabeledByFormItem:m}=_o(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:h,onClickRoot:g}=AB(e,{model:o,isLimitExceeded:a,hasOwnLabel:d,isDisabled:v,isLabeledByFormItem:m});return(()=>{function C(){var w,y;Ce(o.value)&&!o.value.includes(f.value)?o.value.push(f.value):o.value=(y=(w=e.trueValue)!=null?w:e.trueLabel)!=null?y:!0}e.checked&&C()})(),ml({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>l.value&&uo(e.value))),ml({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.trueLabel)),ml({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},S(()=>!!e.falseLabel)),{inputId:p,isLabeledByFormItem:m,isChecked:i,isDisabled:v,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:o,actualValue:f,handleChange:h,onClickRoot:g}},BB=q({name:"ElCheckbox"}),FB=q({...BB,props:Lk,emits:Dk,setup(e){const t=e,n=hn(),{inputId:o,isLabeledByFormItem:l,isChecked:a,isDisabled:r,isFocused:i,checkboxSize:u,hasOwnLabel:c,model:d,actualValue:f,handleChange:v,onClickRoot:p}=Bk(t,n),m=S(()=>{var C,w,y,k;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(w=(C=t.trueValue)!=null?C:t.trueLabel)!=null?w:!0,"false-value":(k=(y=t.falseValue)!=null?y:t.falseLabel)!=null?k:!1}:{value:f.value}}),h=ge("checkbox"),g=S(()=>[h.b(),h.m(u.value),h.is("disabled",r.value),h.is("bordered",t.border),h.is("checked",a.value)]),b=S(()=>[h.e("input"),h.is("disabled",r.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",i.value)]);return(C,w)=>(O(),ie(ut(!s(c)&&s(l)?"span":"label"),{for:!s(c)&&s(l)?null:s(o),class:x(s(g)),"aria-controls":C.indeterminate?C.ariaControls:null,"aria-checked":C.indeterminate?"mixed":void 0,"aria-label":C.ariaLabel,onClick:s(p)},{default:te(()=>[W("span",{class:x(s(b))},[it(W("input",ft({id:s(o),"onUpdate:modelValue":y=>Ht(d)?d.value=y:null,class:s(h).e("original"),type:"checkbox",indeterminate:C.indeterminate,name:C.name,tabindex:C.tabindex,disabled:s(r)},s(m),{onChange:s(v),onFocus:y=>i.value=!0,onBlur:y=>i.value=!1,onClick:Ze(()=>{},["stop"])}),null,16,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[dC,s(d)]]),W("span",{class:x(s(h).e("inner"))},null,2)],2),s(c)?(O(),F("span",{key:0,class:x(s(h).e("label"))},[ae(C.$slots,"default"),C.$slots.default?re("v-if",!0):(O(),F(ze,{key:0},[vt(ke(C.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}});var Fk=Oe(FB,[["__file","checkbox.vue"]]);const VB=q({name:"ElCheckboxButton"}),zB=q({...VB,props:Lk,emits:Dk,setup(e){const t=e,n=hn(),{isFocused:o,isChecked:l,isDisabled:a,checkboxButtonSize:r,model:i,actualValue:u,handleChange:c}=Bk(t,n),d=S(()=>{var h,g,b,C;return t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":(g=(h=t.trueValue)!=null?h:t.trueLabel)!=null?g:!0,"false-value":(C=(b=t.falseValue)!=null?b:t.falseLabel)!=null?C:!1}:{value:u.value}}),f=Pe(Ps,void 0),v=ge("checkbox"),p=S(()=>{var h,g,b,C;const w=(g=(h=f?.fill)==null?void 0:h.value)!=null?g:"";return{backgroundColor:w,borderColor:w,color:(C=(b=f?.textColor)==null?void 0:b.value)!=null?C:"",boxShadow:w?`-1px 0 0 0 ${w}`:void 0}}),m=S(()=>[v.b("button"),v.bm("button",r.value),v.is("disabled",a.value),v.is("checked",l.value),v.is("focus",o.value)]);return(h,g)=>(O(),F("label",{class:x(s(m))},[it(W("input",ft({"onUpdate:modelValue":b=>Ht(i)?i.value=b:null,class:s(v).be("button","original"),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:s(a)},s(d),{onChange:s(c),onFocus:b=>o.value=!0,onBlur:b=>o.value=!1,onClick:Ze(()=>{},["stop"])}),null,16,["onUpdate:modelValue","name","tabindex","disabled","onChange","onFocus","onBlur","onClick"]),[[dC,s(i)]]),h.$slots.default||h.label?(O(),F("span",{key:0,class:x(s(v).be("button","inner")),style:je(s(l)?s(p):void 0)},[ae(h.$slots,"default",{},()=>[vt(ke(h.label),1)])],6)):re("v-if",!0)],2))}});var vm=Oe(zB,[["__file","checkbox-button.vue"]]);const HB=Ee({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:gn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Vk},type:{type:String,values:["checkbox","button"],default:"checkbox"},...Gn(["ariaLabel"])}),KB={[Qe]:e=>Ce(e),change:e=>Ce(e)},Vk={label:"label",value:"value",disabled:"disabled"},WB=q({name:"ElCheckboxGroup"}),jB=q({...WB,props:HB,emits:KB,setup(e,{emit:t}){const n=e,o=ge("checkbox"),l=en(),{formItem:a}=$n(),{inputId:r,isLabeledByFormItem:i}=_o(n,{formItemContext:a}),u=async p=>{t(Qe,p),await Me(),t(mt,p)},c=S({get(){return n.modelValue},set(p){u(p)}}),d=S(()=>({...Vk,...n.props})),f=p=>{const{label:m,value:h,disabled:g}=d.value,b={label:p[m],value:p[h],disabled:p[g]};return{...Qd(p,[m,h,g]),...b}},v=S(()=>n.type==="button"?vm:Fk);return bt(Ps,{...Gl(bn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:l,modelValue:c,changeEvent:u}),fe(()=>n.modelValue,(p,m)=>{n.validateEvent&&!nn(p,m)&&a?.validate("change").catch(h=>void 0)}),(p,m)=>{var h;return O(),ie(ut(p.tag),{id:s(r),class:x(s(o).b("group")),role:"group","aria-label":s(i)?void 0:p.ariaLabel||"checkbox-group","aria-labelledby":s(i)?(h=s(a))==null?void 0:h.labelId:void 0},{default:te(()=>[ae(p.$slots,"default",{},()=>[(O(!0),F(ze,null,gt(p.options,(g,b)=>(O(),ie(ut(s(v)),ft({key:b},f(g)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var zk=Oe(jB,[["__file","checkbox-group.vue"]]);const Go=lt(Fk,{CheckboxButton:vm,CheckboxGroup:zk}),UB=Qt(vm),hm=Qt(zk),Hk=Ee({modelValue:{type:[String,Number,Boolean],default:void 0},size:gn,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),qB=Ee({...Hk,border:Boolean}),Kk={[Qe]:e=>Ve(e)||Ye(e)||Lt(e),[mt]:e=>Ve(e)||Ye(e)||Lt(e)},Wk=Symbol("radioGroupKey"),jk=(e,t)=>{const n=A(),o=Pe(Wk,void 0),l=S(()=>!!o),a=S(()=>uo(e.value)?e.label:e.value),r=S({get(){return l.value?o.modelValue:e.modelValue},set(f){l.value?o.changeEvent(f):t&&t(Qe,f),n.value.checked=e.modelValue===a.value}}),i=vn(S(()=>o?.size)),u=en(S(()=>o?.disabled)),c=A(!1),d=S(()=>u.value||l.value&&r.value!==a.value?-1:0);return ml({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},S(()=>l.value&&uo(e.value))),{radioRef:n,isGroup:l,radioGroup:o,focus:c,size:i,disabled:u,tabIndex:d,modelValue:r,actualValue:a}},YB=q({name:"ElRadio"}),GB=q({...YB,props:qB,emits:Kk,setup(e,{emit:t}){const n=e,o=ge("radio"),{radioRef:l,radioGroup:a,focus:r,size:i,disabled:u,modelValue:c,actualValue:d}=jk(n,t);function f(){Me(()=>t(mt,c.value))}return(v,p)=>{var m;return O(),F("label",{class:x([s(o).b(),s(o).is("disabled",s(u)),s(o).is("focus",s(r)),s(o).is("bordered",v.border),s(o).is("checked",s(c)===s(d)),s(o).m(s(i))])},[W("span",{class:x([s(o).e("input"),s(o).is("disabled",s(u)),s(o).is("checked",s(c)===s(d))])},[it(W("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":h=>Ht(c)?c.value=h:null,class:x(s(o).e("original")),value:s(d),name:v.name||((m=s(a))==null?void 0:m.name),disabled:s(u),checked:s(c)===s(d),type:"radio",onFocus:h=>r.value=!0,onBlur:h=>r.value=!1,onChange:f,onClick:Ze(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[fC,s(c)]]),W("span",{class:x(s(o).e("inner"))},null,2)],2),W("span",{class:x(s(o).e("label")),onKeydown:Ze(()=>{},["stop"])},[ae(v.$slots,"default",{},()=>[vt(ke(v.label),1)])],42,["onKeydown"])],2)}}});var Uk=Oe(GB,[["__file","radio.vue"]]);const XB=Ee({...Hk}),JB=q({name:"ElRadioButton"}),ZB=q({...JB,props:XB,setup(e){const t=e,n=ge("radio"),{radioRef:o,focus:l,size:a,disabled:r,modelValue:i,radioGroup:u,actualValue:c}=jk(t),d=S(()=>({backgroundColor:u?.fill||"",borderColor:u?.fill||"",boxShadow:u?.fill?`-1px 0 0 0 ${u.fill}`:"",color:u?.textColor||""}));return(f,v)=>{var p;return O(),F("label",{class:x([s(n).b("button"),s(n).is("active",s(i)===s(c)),s(n).is("disabled",s(r)),s(n).is("focus",s(l)),s(n).bm("button",s(a))])},[it(W("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":m=>Ht(i)?i.value=m:null,class:x(s(n).be("button","original-radio")),value:s(c),type:"radio",name:f.name||((p=s(u))==null?void 0:p.name),disabled:s(r),onFocus:m=>l.value=!0,onBlur:m=>l.value=!1,onClick:Ze(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[fC,s(i)]]),W("span",{class:x(s(n).be("button","inner")),style:je(s(i)===s(c)?s(d):{}),onKeydown:Ze(()=>{},["stop"])},[ae(f.$slots,"default",{},()=>[vt(ke(f.label),1)])],46,["onKeydown"])],2)}}});var mm=Oe(ZB,[["__file","radio-button.vue"]]);const QB=Ee({id:{type:String,default:void 0},size:gn,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>qk},type:{type:String,values:["radio","button"],default:"radio"},...Gn(["ariaLabel"])}),eF=Kk,qk={label:"label",value:"value",disabled:"disabled"},tF=q({name:"ElRadioGroup"}),nF=q({...tF,props:QB,emits:eF,setup(e,{emit:t}){const n=e,o=ge("radio"),l=In(),a=A(),{formItem:r}=$n(),{inputId:i,isLabeledByFormItem:u}=_o(n,{formItemContext:r}),c=m=>{t(Qe,m),Me(()=>t(mt,m))};pt(()=>{const m=a.value.querySelectorAll("[type=radio]"),h=m[0];!Array.from(m).some(g=>g.checked)&&h&&(h.tabIndex=0)});const d=S(()=>n.name||l.value),f=S(()=>({...qk,...n.props})),v=m=>{const{label:h,value:g,disabled:b}=f.value,C={label:m[h],value:m[g],disabled:m[b]};return{...Qd(m,[h,g,b]),...C}},p=S(()=>n.type==="button"?mm:Uk);return bt(Wk,It({...bn(n),changeEvent:c,name:d})),fe(()=>n.modelValue,(m,h)=>{n.validateEvent&&!nn(m,h)&&r?.validate("change").catch(g=>void 0)}),(m,h)=>(O(),F("div",{id:s(i),ref_key:"radioGroupRef",ref:a,class:x(s(o).b("group")),role:"radiogroup","aria-label":s(u)?void 0:m.ariaLabel||"radio-group","aria-labelledby":s(u)?s(r).labelId:void 0},[ae(m.$slots,"default",{},()=>[(O(!0),F(ze,null,gt(m.options,(g,b)=>(O(),ie(ut(s(p)),ft({key:b},v(g)),null,16))),128))])],10,["id","aria-label","aria-labelledby"]))}});var Yk=Oe(nF,[["__file","radio-group.vue"]]);const Gk=lt(Uk,{RadioButton:mm,RadioGroup:Yk}),oF=Qt(Yk),lF=Qt(mm),cf=Symbol();function aF(e){return!!(Ce(e)?e.every(({type:t})=>t===un):e?.type===un)}var rF=q({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ge("cascader-node"),{renderLabelFn:n}=Pe(cf),{node:o}=e,{data:l,label:a}=o,r=()=>{const i=n?.({node:o,data:l});return aF(i)?a:i??a};return()=>G("span",{class:t.e("label")},[r()])}});const sF=q({name:"ElCascaderNode"}),iF=q({...sF,props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,o=Pe(cf),l=ge("cascader-node"),a=S(()=>o.isHoverMenu),r=S(()=>o.config.multiple),i=S(()=>o.config.checkStrictly),u=S(()=>o.config.showPrefix),c=S(()=>{var I;return(I=o.checkedNodes[0])==null?void 0:I.uid}),d=S(()=>n.node.isDisabled),f=S(()=>n.node.isLeaf),v=S(()=>i.value&&!f.value||!d.value),p=S(()=>h(o.expandingNode)),m=S(()=>i.value&&o.checkedNodes.some(h)),h=I=>{var $;const{level:M,uid:T}=n.node;return(($=I?.pathNodes[M-1])==null?void 0:$.uid)===T},g=()=>{p.value||o.expandNode(n.node)},b=I=>{const{node:$}=n;I!==$.checked&&o.handleCheckChange($,I)},C=()=>{o.lazyLoad(n.node,()=>{f.value||g()})},w=I=>{a.value&&(y(),!f.value&&t("expand",I))},y=()=>{const{node:I}=n;!v.value||I.loading||(I.loaded?g():C())},k=()=>{f.value&&!d.value&&!i.value&&!r.value?_(!0):(o.config.checkOnClickNode&&(r.value||i.value)||f.value&&o.config.checkOnClickLeaf)&&!d.value?E(!n.node.checked):a.value||y()},E=I=>{i.value?(b(I),n.node.loaded&&g()):_(I)},_=I=>{n.node.loaded?(b(I),!i.value&&g()):C()};return(I,$)=>(O(),F("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!s(f),"aria-owns":s(f)?void 0:e.menuId,"aria-expanded":s(p),tabindex:s(v)?-1:void 0,class:x([s(l).b(),s(l).is("selectable",s(i)),s(l).is("active",e.node.checked),s(l).is("disabled",!s(v)),s(p)&&"in-active-path",s(m)&&"in-checked-path"]),onMouseenter:w,onFocus:w,onClick:k},[re(" prefix "),s(r)&&s(u)?(O(),ie(s(Go),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:s(d),onClick:Ze(()=>{},["stop"]),"onUpdate:modelValue":E},null,8,["model-value","indeterminate","disabled","onClick"])):s(i)&&s(u)?(O(),ie(s(Gk),{key:1,"model-value":s(c),label:e.node.uid,disabled:s(d),"onUpdate:modelValue":E,onClick:Ze(()=>{},["stop"])},{default:te(()=>[re(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 @@ -27,4 +27,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./LoginPage-DYohZsxn.j `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(l=>o.set(l)),o}static accessor(t){const o=(this[xw]=this[xw]={accessors:{}}).accessors,l=this.prototype;function a(r){const i=Xs(r);o[i]||(Ste(l,r),o[i]=!0)}return Ne.isArray(t)?t.forEach(a):a(t),this}};vo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ne.reduceDescriptors(vo.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});Ne.freezeMethods(vo);function Tp(e,t){const n=this||xu,o=t||n,l=vo.from(o.headers);let a=o.data;return Ne.forEach(e,function(i){a=i.call(n,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function dT(e){return!!(e&&e.__CANCEL__)}function Ds(e,t,n){Ft.call(this,e??"canceled",Ft.ERR_CANCELED,t,n),this.name="CanceledError"}Ne.inherits(Ds,Ft,{__CANCEL__:!0});function fT(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new Ft("Request failed with status code "+n.status,[Ft.ERR_BAD_REQUEST,Ft.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function kte(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ete(e,t){e=e||10;const n=new Array(e),o=new Array(e);let l=0,a=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=o[a];r||(r=c),n[l]=u,o[l]=c;let f=a,v=0;for(;f!==l;)v+=n[f++],f=f%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),c-r{n=d,l=null,a&&(clearTimeout(a),a=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=o?r(c,d):(l=c,a||(a=setTimeout(()=>{a=null,r(l)},o-f)))},()=>l&&r(l)]}const _d=(e,t,n=3)=>{let o=0;const l=Ete(50,250);return _te(a=>{const r=a.loaded,i=a.lengthComputable?a.total:void 0,u=r-o,c=l(u),d=r<=i;o=r;const f={loaded:r,total:i,progress:i?r/i:void 0,bytes:u,rate:c||void 0,estimated:c&&i&&d?(i-r)/c:void 0,event:a,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(f)},n)},Pw=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},Mw=e=>(...t)=>Ne.asap(()=>e(...t)),Tte=jn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jn.origin),jn.navigator&&/(msie|trident)/i.test(jn.navigator.userAgent)):()=>!0,Ote=jn.hasStandardBrowserEnv?{write(e,t,n,o,l,a,r){if(typeof document>"u")return;const i=[`${e}=${encodeURIComponent(t)}`];Ne.isNumber(n)&&i.push(`expires=${new Date(n).toUTCString()}`),Ne.isString(o)&&i.push(`path=${o}`),Ne.isString(l)&&i.push(`domain=${l}`),a===!0&&i.push("secure"),Ne.isString(r)&&i.push(`SameSite=${r}`),document.cookie=i.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function $te(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rte(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function pT(e,t,n){let o=!$te(t);return e&&(o||n==!1)?Rte(e,t):t}const Aw=e=>e instanceof vo?{...e}:e;function Cr(e,t){t=t||{};const n={};function o(c,d,f,v){return Ne.isPlainObject(c)&&Ne.isPlainObject(d)?Ne.merge.call({caseless:v},c,d):Ne.isPlainObject(d)?Ne.merge({},d):Ne.isArray(d)?d.slice():d}function l(c,d,f,v){if(Ne.isUndefined(d)){if(!Ne.isUndefined(c))return o(void 0,c,f,v)}else return o(c,d,f,v)}function a(c,d){if(!Ne.isUndefined(d))return o(void 0,d)}function r(c,d){if(Ne.isUndefined(d)){if(!Ne.isUndefined(c))return o(void 0,c)}else return o(void 0,d)}function i(c,d,f){if(f in t)return o(c,d);if(f in e)return o(void 0,c)}const u={url:a,method:a,data:a,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:i,headers:(c,d,f)=>l(Aw(c),Aw(d),f,!0)};return Ne.forEach(Object.keys({...e,...t}),function(d){const f=u[d]||l,v=f(e[d],t[d],d);Ne.isUndefined(v)&&f!==i||(n[d]=v)}),n}const vT=e=>{const t=Cr({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:l,xsrfCookieName:a,headers:r,auth:i}=t;if(t.headers=r=vo.from(r),t.url=iT(pT(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&r.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):""))),Ne.isFormData(n)){if(jn.hasStandardBrowserEnv||jn.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(Ne.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&r.set(d,f)})}}if(jn.hasStandardBrowserEnv&&(o&&Ne.isFunction(o)&&(o=o(t)),o||o!==!1&&Tte(t.url))){const u=l&&a&&Ote.read(a);u&&r.set(l,u)}return t},Nte=typeof XMLHttpRequest<"u",Ite=Nte&&function(e){return new Promise(function(n,o){const l=vT(e);let a=l.data;const r=vo.from(l.headers).normalize();let{responseType:i,onUploadProgress:u,onDownloadProgress:c}=l,d,f,v,p,m;function h(){p&&p(),m&&m(),l.cancelToken&&l.cancelToken.unsubscribe(d),l.signal&&l.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(l.method.toUpperCase(),l.url,!0),g.timeout=l.timeout;function b(){if(!g)return;const w=vo.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),k={data:!i||i==="text"||i==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:w,config:e,request:g};fT(function(_){n(_),h()},function(_){o(_),h()},k),g=null}"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(b)},g.onabort=function(){g&&(o(new Ft("Request aborted",Ft.ECONNABORTED,e,g)),g=null)},g.onerror=function(y){const k=y&&y.message?y.message:"Network Error",E=new Ft(k,Ft.ERR_NETWORK,e,g);E.event=y||null,o(E),g=null},g.ontimeout=function(){let y=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const k=l.transitional||uT;l.timeoutErrorMessage&&(y=l.timeoutErrorMessage),o(new Ft(y,k.clarifyTimeoutError?Ft.ETIMEDOUT:Ft.ECONNABORTED,e,g)),g=null},a===void 0&&r.setContentType(null),"setRequestHeader"in g&&Ne.forEach(r.toJSON(),function(y,k){g.setRequestHeader(k,y)}),Ne.isUndefined(l.withCredentials)||(g.withCredentials=!!l.withCredentials),i&&i!=="json"&&(g.responseType=l.responseType),c&&([v,m]=_d(c,!0),g.addEventListener("progress",v)),u&&g.upload&&([f,p]=_d(u),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",p)),(l.cancelToken||l.signal)&&(d=w=>{g&&(o(!w||w.type?new Ds(null,e,g):w),g.abort(),g=null)},l.cancelToken&&l.cancelToken.subscribe(d),l.signal&&(l.signal.aborted?d():l.signal.addEventListener("abort",d)));const C=kte(l.url);if(C&&jn.protocols.indexOf(C)===-1){o(new Ft("Unsupported protocol "+C+":",Ft.ERR_BAD_REQUEST,e));return}g.send(a||null)})},xte=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let o=new AbortController,l;const a=function(c){if(!l){l=!0,i();const d=c instanceof Error?c:this.reason;o.abort(d instanceof Ft?d:new Ds(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,a(new Ft(`timeout ${t} of ms exceeded`,Ft.ETIMEDOUT))},t);const i=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(a):c.removeEventListener("abort",a)}),e=null)};e.forEach(c=>c.addEventListener("abort",a));const{signal:u}=o;return u.unsubscribe=()=>Ne.asap(i),u}},Pte=function*(e,t){let n=e.byteLength;if(n{const l=Mte(e,t);let a=0,r,i=u=>{r||(r=!0,o&&o(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await l.next();if(c){i(),u.close();return}let f=d.byteLength;if(n){let v=a+=f;n(v)}u.enqueue(new Uint8Array(d))}catch(c){throw i(c),c}},cancel(u){return i(u),l.return()}},{highWaterMark:2})},Dw=64*1024,{isFunction:rc}=Ne,Lte=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ne.global),{ReadableStream:Bw,TextEncoder:Fw}=Ne.global,Vw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Dte=e=>{e=Ne.merge.call({skipUndefined:!0},Lte,e);const{fetch:t,Request:n,Response:o}=e,l=t?rc(t):typeof fetch=="function",a=rc(n),r=rc(o);if(!l)return!1;const i=l&&rc(Bw),u=l&&(typeof Fw=="function"?(m=>h=>m.encode(h))(new Fw):async m=>new Uint8Array(await new n(m).arrayBuffer())),c=a&&i&&Vw(()=>{let m=!1;const h=new n(jn.origin,{body:new Bw,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!h}),d=r&&i&&Vw(()=>Ne.isReadableStream(new o("").body)),f={stream:d&&(m=>m.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!f[m]&&(f[m]=(h,g)=>{let b=h&&h[m];if(b)return b.call(h);throw new Ft(`Response type '${m}' is not supported`,Ft.ERR_NOT_SUPPORT,g)})});const v=async m=>{if(m==null)return 0;if(Ne.isBlob(m))return m.size;if(Ne.isSpecCompliantForm(m))return(await new n(jn.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(Ne.isArrayBufferView(m)||Ne.isArrayBuffer(m))return m.byteLength;if(Ne.isURLSearchParams(m)&&(m=m+""),Ne.isString(m))return(await u(m)).byteLength},p=async(m,h)=>{const g=Ne.toFiniteNumber(m.getContentLength());return g??v(h)};return async m=>{let{url:h,method:g,data:b,signal:C,cancelToken:w,timeout:y,onDownloadProgress:k,onUploadProgress:E,responseType:_,headers:I,withCredentials:$="same-origin",fetchOptions:M}=vT(m),T=t||fetch;_=_?(_+"").toLowerCase():"text";let N=xte([C,w&&w.toAbortSignal()],y),z=null;const U=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let Y;try{if(E&&c&&g!=="get"&&g!=="head"&&(Y=await p(I,b))!==0){let K=new n(h,{method:"POST",body:b,duplex:"half"}),B;if(Ne.isFormData(b)&&(B=K.headers.get("content-type"))&&I.setContentType(B),K.body){const[j,ne]=Pw(Y,_d(Mw(E)));b=Lw(K.body,Dw,j,ne)}}Ne.isString($)||($=$?"include":"omit");const P=a&&"credentials"in n.prototype,R={...M,signal:N,method:g.toUpperCase(),headers:I.normalize().toJSON(),body:b,duplex:"half",credentials:P?$:void 0};z=a&&new n(h,R);let L=await(a?T(z,M):T(h,R));const V=d&&(_==="stream"||_==="response");if(d&&(k||V&&U)){const K={};["status","statusText","headers"].forEach(oe=>{K[oe]=L[oe]});const B=Ne.toFiniteNumber(L.headers.get("content-length")),[j,ne]=k&&Pw(B,_d(Mw(k),!0))||[];L=new o(Lw(L.body,Dw,j,()=>{ne&&ne(),U&&U()}),K)}_=_||"text";let D=await f[Ne.findKey(f,_)||"text"](L,m);return!V&&U&&U(),await new Promise((K,B)=>{fT(K,B,{data:D,headers:vo.from(L.headers),status:L.status,statusText:L.statusText,config:m,request:z})})}catch(P){throw U&&U(),P&&P.name==="TypeError"&&/Load failed|fetch/i.test(P.message)?Object.assign(new Ft("Network Error",Ft.ERR_NETWORK,m,z),{cause:P.cause||P}):Ft.from(P,P&&P.code,m,z)}}},Bte=new Map,hT=e=>{let t=e&&e.env||{};const{fetch:n,Request:o,Response:l}=t,a=[o,l,n];let r=a.length,i=r,u,c,d=Bte;for(;i--;)u=a[i],c=d.get(u),c===void 0&&d.set(u,c=i?new Map:Dte(t)),d=c;return c};hT();const wg={http:tte,xhr:Ite,fetch:{get:hT}};Ne.forEach(wg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const zw=e=>`- ${e}`,Fte=e=>Ne.isFunction(e)||e===null||e===!1;function Vte(e,t){e=Ne.isArray(e)?e:[e];const{length:n}=e;let o,l;const a={};for(let r=0;r`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=n?r.length>1?`since : `+r.map(zw).join(` `):" "+zw(r[0]):"as no adapter specified";throw new Ft("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return l}const mT={getAdapter:Vte,adapters:wg};function Op(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ds(null,e)}function Hw(e){return Op(e),e.headers=vo.from(e.headers),e.data=Tp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),mT.getAdapter(e.adapter||xu.adapter,e)(e).then(function(o){return Op(e),o.data=Tp.call(e,e.transformResponse,o),o.headers=vo.from(o.headers),o},function(o){return dT(o)||(Op(e),o&&o.response&&(o.response.data=Tp.call(e,e.transformResponse,o.response),o.response.headers=vo.from(o.response.headers))),Promise.reject(o)})}const gT="1.13.2",$f={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{$f[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const Kw={};$f.transitional=function(t,n,o){function l(a,r){return"[Axios v"+gT+"] Transitional option '"+a+"'"+r+(o?". "+o:"")}return(a,r,i)=>{if(t===!1)throw new Ft(l(r," has been removed"+(n?" in "+n:"")),Ft.ERR_DEPRECATED);return n&&!Kw[r]&&(Kw[r]=!0,console.warn(l(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,r,i):!0}};$f.spelling=function(t){return(n,o)=>(console.warn(`${o} is likely a misspelling of ${t}`),!0)};function zte(e,t,n){if(typeof e!="object")throw new Ft("options must be an object",Ft.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let l=o.length;for(;l-- >0;){const a=o[l],r=t[a];if(r){const i=e[a],u=i===void 0||r(i,a,e);if(u!==!0)throw new Ft("option "+a+" must be "+u,Ft.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ft("Unknown option "+a,Ft.ERR_BAD_OPTION)}}const Fc={assertOptions:zte,validators:$f},sl=Fc.validators;let cr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Iw,response:new Iw}}async request(t,n){try{return await this._request(t,n)}catch(o){if(o instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const a=l.stack?l.stack.replace(/^.+\n/,""):"";try{o.stack?a&&!String(o.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(o.stack+=` -`+a):o.stack=a}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:o,paramsSerializer:l,headers:a}=n;o!==void 0&&Fc.assertOptions(o,{silentJSONParsing:sl.transitional(sl.boolean),forcedJSONParsing:sl.transitional(sl.boolean),clarifyTimeoutError:sl.transitional(sl.boolean)},!1),l!=null&&(Ne.isFunction(l)?n.paramsSerializer={serialize:l}:Fc.assertOptions(l,{encode:sl.function,serialize:sl.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fc.assertOptions(n,{baseUrl:sl.spelling("baseURL"),withXsrfToken:sl.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=a&&Ne.merge(a.common,a[n.method]);a&&Ne.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=vo.concat(r,a);const i=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(u=u&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,f=0,v;if(!u){const m=[Hw.bind(this),void 0];for(m.unshift(...i),m.push(...c),v=m.length,d=Promise.resolve(n);f{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](l);o._listeners=null}),this.promise.then=l=>{let a;const r=new Promise(i=>{o.subscribe(i),a=i}).then(l);return r.cancel=function(){o.unsubscribe(a)},r},t(function(a,r,i){o.reason||(o.reason=new Ds(a,r,i),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bT(function(l){t=l}),cancel:t}}};function Kte(e){return function(n){return e.apply(null,n)}}function Wte(e){return Ne.isObject(e)&&e.isAxiosError===!0}const th={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(th).forEach(([e,t])=>{th[t]=e});function yT(e){const t=new cr(e),n=X_(cr.prototype.request,t);return Ne.extend(n,cr.prototype,t,{allOwnKeys:!0}),Ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return yT(Cr(e,l))},n}const yn=yT(xu);yn.Axios=cr;yn.CanceledError=Ds;yn.CancelToken=Hte;yn.isCancel=dT;yn.VERSION=gT;yn.toFormData=Of;yn.AxiosError=Ft;yn.Cancel=yn.CanceledError;yn.all=function(t){return Promise.all(t)};yn.spread=Kte;yn.isAxiosError=Wte;yn.mergeConfig=Cr;yn.AxiosHeaders=vo;yn.formToJSON=e=>cT(Ne.isHTMLForm(e)?new FormData(e):e);yn.getAdapter=mT.getAdapter;yn.HttpStatusCode=th;yn.default=yn;const{Axios:wne,AxiosError:Cne,CanceledError:Sne,isCancel:kne,CancelToken:Ene,VERSION:_ne,all:Tne,Cancel:One,isAxiosError:$ne,spread:Rne,toFormData:Nne,AxiosHeaders:Ine,HttpStatusCode:xne,formToJSON:Pne,getAdapter:Mne,mergeConfig:Ane}=yn,wT=yn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});async function jte(){const{data:e}=await wT.get("/user/vip");return e}async function Ute(){const{data:e}=await wT.post("/logout",{});return e}const qte=hee("user",{state:()=>({vipInfo:null,loading:!1}),getters:{username:e=>e.vipInfo?.username||"",isVip:e=>!!e.vipInfo?.is_vip,vipDaysLeft:e=>Number(e.vipInfo?.days_left||0),vipExpireTime:e=>e.vipInfo?.expire_time||""},actions:{async refreshVipInfo(){this.loading=!0;try{this.vipInfo=await jte()}finally{this.loading=!1}},async logout(){try{await Ute()}catch{}}}}),Yte={class:"header-left"},Gte={class:"header-right"},Xte={class:"user-meta"},Jte={class:"user-name"},Zte={key:2,class:"vip-warn"},Qte={class:"drawer-user"},ene={class:"user-name"},tne={class:"drawer-actions"},nne={__name:"AppLayout",setup(e){const t=aN(),n=lN(),o=qte(),l=A(!1),a=A(!1);let r;function i(){l.value=!!r?.matches,l.value||(a.value=!1)}pt(()=>{r=window.matchMedia("(max-width: 768px)"),r.addEventListener?.("change",i),i(),o.refreshVipInfo().catch(()=>{window.location.href="/login"})}),Pt(()=>{r?.removeEventListener?.("change",i)});const u=[{path:"/app/accounts",label:"账号管理",icon:zL},{path:"/app/schedules",label:"定时任务",icon:DS},{path:"/app/screenshots",label:"截图管理",icon:W4}],c=S(()=>t.path);async function d(v){await n.push(v),a.value=!1}async function f(){try{await W_.confirm("确定退出登录吗?","退出登录",{confirmButtonText:"退出",cancelButtonText:"取消",type:"warning"})}catch{return}await o.logout(),window.location.href="/login"}return(v,p)=>{const m=wt("el-icon"),h=wt("el-menu-item"),g=wt("el-menu"),b=wt("el-aside"),C=wt("el-button"),w=wt("el-tag"),y=wt("el-header"),k=wt("RouterView"),E=wt("el-main"),_=wt("el-container"),I=wt("el-drawer");return O(),ie(_,{class:"layout-root"},{default:te(()=>[l.value?re("",!0):(O(),ie(b,{key:0,width:"220px",class:"layout-aside"},{default:te(()=>[p[2]||(p[2]=W("div",{class:"brand"},[W("div",{class:"brand-title"},"知识管理平台"),W("div",{class:"brand-sub app-muted"},"用户中心")],-1)),G(g,{"default-active":c.value,class:"aside-menu",router:"",onSelect:d},{default:te(()=>[(O(),F(ze,null,gt(u,$=>G(h,{key:$.path,index:$.path},{default:te(()=>[G(m,null,{default:te(()=>[(O(),ie(ut($.icon)))]),_:2},1024),W("span",null,ke($.label),1)]),_:2},1032,["index"])),64))]),_:1},8,["default-active"])]),_:1})),G(_,null,{default:te(()=>[G(y,{class:"layout-header"},{default:te(()=>[W("div",Yte,[l.value?(O(),ie(C,{key:0,text:"",class:"header-menu-btn",onClick:p[0]||(p[0]=$=>a.value=!0)},{default:te(()=>[...p[3]||(p[3]=[vt(" 菜单 ",-1)])]),_:1})):re("",!0),p[4]||(p[4]=W("div",{class:"header-title"},"用户控制台",-1))]),W("div",Gte,[W("div",Xte,[s(o).isVip?(O(),ie(w,{key:0,type:"success",size:"small",effect:"light"},{default:te(()=>[...p[5]||(p[5]=[vt("VIP",-1)])]),_:1})):(O(),ie(w,{key:1,type:"info",size:"small",effect:"light"},{default:te(()=>[...p[6]||(p[6]=[vt("普通",-1)])]),_:1})),W("span",Jte,ke(s(o).username||"用户"),1),s(o).isVip&&s(o).vipDaysLeft<=7&&s(o).vipDaysLeft>0?(O(),F("span",Zte," ("+ke(s(o).vipDaysLeft)+"天后到期) ",1)):re("",!0)]),G(C,{type:"primary",plain:"",onClick:f},{default:te(()=>[...p[7]||(p[7]=[vt("退出",-1)])]),_:1})])]),_:1}),G(E,{class:"layout-main"},{default:te(()=>[G(k)]),_:1})]),_:1}),G(I,{modelValue:a.value,"onUpdate:modelValue":p[1]||(p[1]=$=>a.value=$),size:"240px","with-header":!1},{default:te(()=>[p[11]||(p[11]=W("div",{class:"drawer-brand"},[W("div",{class:"brand-title"},"知识管理平台"),W("div",{class:"brand-sub app-muted"},"用户中心")],-1)),W("div",Qte,[s(o).isVip?(O(),ie(w,{key:0,type:"success",size:"small",effect:"light"},{default:te(()=>[...p[8]||(p[8]=[vt("VIP",-1)])]),_:1})):(O(),ie(w,{key:1,type:"info",size:"small",effect:"light"},{default:te(()=>[...p[9]||(p[9]=[vt("普通",-1)])]),_:1})),W("span",ene,ke(s(o).username||"用户"),1)]),G(g,{"default-active":c.value,class:"aside-menu",router:"",onSelect:d},{default:te(()=>[(O(),F(ze,null,gt(u,$=>G(h,{key:$.path,index:$.path},{default:te(()=>[G(m,null,{default:te(()=>[(O(),ie(ut($.icon)))]),_:2},1024),W("span",null,ke($.label),1)]),_:2},1032,["index"])),64))]),_:1},8,["default-active"]),W("div",tne,[G(C,{type:"primary",plain:"",style:{width:"100%"},onClick:f},{default:te(()=>[...p[10]||(p[10]=[vt("退出登录",-1)])]),_:1})])]),_:1},8,["modelValue"])]),_:1})}}},one=gC(nne,[["__scopeId","data-v-e60c6419"]]),lne=()=>Sr(()=>import("./LoginPage-DYohZsxn.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),ane=()=>Sr(()=>import("./RegisterPage-CGBzvBqd.js"),__vite__mapDeps([4,1,5]),import.meta.url),rne=()=>Sr(()=>import("./ResetPasswordPage-ClLk6uyu.js"),__vite__mapDeps([6,1,2,7]),import.meta.url),Ww=()=>Sr(()=>import("./VerifyResultPage-B_i4AM-j.js"),__vite__mapDeps([8,9]),import.meta.url),sne=()=>Sr(()=>import("./AccountsPage-C2BSK5Ns.js"),__vite__mapDeps([10,11]),import.meta.url),ine=()=>Sr(()=>import("./SchedulesPage-DHlqgLCv.js"),__vite__mapDeps([12,13]),import.meta.url),une=()=>Sr(()=>import("./ScreenshotsPage-jZuEr5af.js"),__vite__mapDeps([14,15]),import.meta.url),cne=[{path:"/",redirect:"/login"},{path:"/login",name:"login",component:lne},{path:"/register",name:"register",component:ane},{path:"/reset-password/:token",name:"reset_password",component:rne},{path:"/api/verify-email/:token",name:"verify_email",component:Ww},{path:"/api/verify-bind-email/:token",name:"verify_bind_email",component:Ww},{path:"/app",component:one,children:[{path:"",redirect:"/app/accounts"},{path:"accounts",name:"accounts",component:sne},{path:"schedules",name:"schedules",component:ine},{path:"screenshots",name:"screenshots",component:une}]},{path:"/:pathMatch(.*)*",redirect:"/login"}],dne=oN({history:AR(),routes:cne});var fne={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};mC(G$).use(uee()).use(dne).use(iee,{locale:fne}).mount("#app");export{FQ as E,ze as F,gC as _,A as a,F as b,S as c,G as d,wt as e,O as f,W as g,ie as h,re as i,tn as j,vt as k,aN as l,Pt as m,qte as n,pt as o,wT as p,fe as q,It as r,s,ke as t,lN as u,gt as v,te as w,W_ as x}; +`+a):o.stack=a}catch{}}throw o}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cr(this.defaults,n);const{transitional:o,paramsSerializer:l,headers:a}=n;o!==void 0&&Fc.assertOptions(o,{silentJSONParsing:sl.transitional(sl.boolean),forcedJSONParsing:sl.transitional(sl.boolean),clarifyTimeoutError:sl.transitional(sl.boolean)},!1),l!=null&&(Ne.isFunction(l)?n.paramsSerializer={serialize:l}:Fc.assertOptions(l,{encode:sl.function,serialize:sl.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fc.assertOptions(n,{baseUrl:sl.spelling("baseURL"),withXsrfToken:sl.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=a&&Ne.merge(a.common,a[n.method]);a&&Ne.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=vo.concat(r,a);const i=[];let u=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(u=u&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let d,f=0,v;if(!u){const m=[Hw.bind(this),void 0];for(m.unshift(...i),m.push(...c),v=m.length,d=Promise.resolve(n);f{if(!o._listeners)return;let a=o._listeners.length;for(;a-- >0;)o._listeners[a](l);o._listeners=null}),this.promise.then=l=>{let a;const r=new Promise(i=>{o.subscribe(i),a=i}).then(l);return r.cancel=function(){o.unsubscribe(a)},r},t(function(a,r,i){o.reason||(o.reason=new Ds(a,r,i),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=o=>{t.abort(o)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new bT(function(l){t=l}),cancel:t}}};function Kte(e){return function(n){return e.apply(null,n)}}function Wte(e){return Ne.isObject(e)&&e.isAxiosError===!0}const th={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(th).forEach(([e,t])=>{th[t]=e});function yT(e){const t=new cr(e),n=X_(cr.prototype.request,t);return Ne.extend(n,cr.prototype,t,{allOwnKeys:!0}),Ne.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return yT(Cr(e,l))},n}const yn=yT(xu);yn.Axios=cr;yn.CanceledError=Ds;yn.CancelToken=Hte;yn.isCancel=dT;yn.VERSION=gT;yn.toFormData=Of;yn.AxiosError=Ft;yn.Cancel=yn.CanceledError;yn.all=function(t){return Promise.all(t)};yn.spread=Kte;yn.isAxiosError=Wte;yn.mergeConfig=Cr;yn.AxiosHeaders=vo;yn.formToJSON=e=>cT(Ne.isHTMLForm(e)?new FormData(e):e);yn.getAdapter=mT.getAdapter;yn.HttpStatusCode=th;yn.default=yn;const{Axios:wne,AxiosError:Cne,CanceledError:Sne,isCancel:kne,CancelToken:Ene,VERSION:_ne,all:Tne,Cancel:One,isAxiosError:$ne,spread:Rne,toFormData:Nne,AxiosHeaders:Ine,HttpStatusCode:xne,formToJSON:Pne,getAdapter:Mne,mergeConfig:Ane}=yn,wT=yn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});async function jte(){const{data:e}=await wT.get("/user/vip");return e}async function Ute(){const{data:e}=await wT.post("/logout",{});return e}const qte=hee("user",{state:()=>({vipInfo:null,loading:!1}),getters:{username:e=>e.vipInfo?.username||"",isVip:e=>!!e.vipInfo?.is_vip,vipDaysLeft:e=>Number(e.vipInfo?.days_left||0),vipExpireTime:e=>e.vipInfo?.expire_time||""},actions:{async refreshVipInfo(){this.loading=!0;try{this.vipInfo=await jte()}finally{this.loading=!1}},async logout(){try{await Ute()}catch{}}}}),Yte={class:"header-left"},Gte={class:"header-right"},Xte={class:"user-meta"},Jte={class:"user-name"},Zte={key:2,class:"vip-warn"},Qte={class:"drawer-user"},ene={class:"user-name"},tne={class:"drawer-actions"},nne={__name:"AppLayout",setup(e){const t=aN(),n=lN(),o=qte(),l=A(!1),a=A(!1);let r;function i(){l.value=!!r?.matches,l.value||(a.value=!1)}pt(()=>{r=window.matchMedia("(max-width: 768px)"),r.addEventListener?.("change",i),i(),o.refreshVipInfo().catch(()=>{window.location.href="/login"})}),Pt(()=>{r?.removeEventListener?.("change",i)});const u=[{path:"/app/accounts",label:"账号管理",icon:zL},{path:"/app/schedules",label:"定时任务",icon:DS},{path:"/app/screenshots",label:"截图管理",icon:W4}],c=S(()=>t.path);async function d(v){await n.push(v),a.value=!1}async function f(){try{await W_.confirm("确定退出登录吗?","退出登录",{confirmButtonText:"退出",cancelButtonText:"取消",type:"warning"})}catch{return}await o.logout(),window.location.href="/login"}return(v,p)=>{const m=wt("el-icon"),h=wt("el-menu-item"),g=wt("el-menu"),b=wt("el-aside"),C=wt("el-button"),w=wt("el-tag"),y=wt("el-header"),k=wt("RouterView"),E=wt("el-main"),_=wt("el-container"),I=wt("el-drawer");return O(),ie(_,{class:"layout-root"},{default:te(()=>[l.value?re("",!0):(O(),ie(b,{key:0,width:"220px",class:"layout-aside"},{default:te(()=>[p[2]||(p[2]=W("div",{class:"brand"},[W("div",{class:"brand-title"},"知识管理平台"),W("div",{class:"brand-sub app-muted"},"用户中心")],-1)),G(g,{"default-active":c.value,class:"aside-menu",router:"",onSelect:d},{default:te(()=>[(O(),F(ze,null,gt(u,$=>G(h,{key:$.path,index:$.path},{default:te(()=>[G(m,null,{default:te(()=>[(O(),ie(ut($.icon)))]),_:2},1024),W("span",null,ke($.label),1)]),_:2},1032,["index"])),64))]),_:1},8,["default-active"])]),_:1})),G(_,null,{default:te(()=>[G(y,{class:"layout-header"},{default:te(()=>[W("div",Yte,[l.value?(O(),ie(C,{key:0,text:"",class:"header-menu-btn",onClick:p[0]||(p[0]=$=>a.value=!0)},{default:te(()=>[...p[3]||(p[3]=[vt(" 菜单 ",-1)])]),_:1})):re("",!0),p[4]||(p[4]=W("div",{class:"header-title"},"用户控制台",-1))]),W("div",Gte,[W("div",Xte,[s(o).isVip?(O(),ie(w,{key:0,type:"success",size:"small",effect:"light"},{default:te(()=>[...p[5]||(p[5]=[vt("VIP",-1)])]),_:1})):(O(),ie(w,{key:1,type:"info",size:"small",effect:"light"},{default:te(()=>[...p[6]||(p[6]=[vt("普通",-1)])]),_:1})),W("span",Jte,ke(s(o).username||"用户"),1),s(o).isVip&&s(o).vipDaysLeft<=7&&s(o).vipDaysLeft>0?(O(),F("span",Zte," ("+ke(s(o).vipDaysLeft)+"天后到期) ",1)):re("",!0)]),G(C,{type:"primary",plain:"",onClick:f},{default:te(()=>[...p[7]||(p[7]=[vt("退出",-1)])]),_:1})])]),_:1}),G(E,{class:"layout-main"},{default:te(()=>[G(k)]),_:1})]),_:1}),G(I,{modelValue:a.value,"onUpdate:modelValue":p[1]||(p[1]=$=>a.value=$),size:"240px","with-header":!1},{default:te(()=>[p[11]||(p[11]=W("div",{class:"drawer-brand"},[W("div",{class:"brand-title"},"知识管理平台"),W("div",{class:"brand-sub app-muted"},"用户中心")],-1)),W("div",Qte,[s(o).isVip?(O(),ie(w,{key:0,type:"success",size:"small",effect:"light"},{default:te(()=>[...p[8]||(p[8]=[vt("VIP",-1)])]),_:1})):(O(),ie(w,{key:1,type:"info",size:"small",effect:"light"},{default:te(()=>[...p[9]||(p[9]=[vt("普通",-1)])]),_:1})),W("span",ene,ke(s(o).username||"用户"),1)]),G(g,{"default-active":c.value,class:"aside-menu",router:"",onSelect:d},{default:te(()=>[(O(),F(ze,null,gt(u,$=>G(h,{key:$.path,index:$.path},{default:te(()=>[G(m,null,{default:te(()=>[(O(),ie(ut($.icon)))]),_:2},1024),W("span",null,ke($.label),1)]),_:2},1032,["index"])),64))]),_:1},8,["default-active"]),W("div",tne,[G(C,{type:"primary",plain:"",style:{width:"100%"},onClick:f},{default:te(()=>[...p[10]||(p[10]=[vt("退出登录",-1)])]),_:1})])]),_:1},8,["modelValue"])]),_:1})}}},one=gC(nne,[["__scopeId","data-v-e60c6419"]]),lne=()=>Sr(()=>import("./LoginPage-BNb9NBzk.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),ane=()=>Sr(()=>import("./RegisterPage-CFiuiL-s.js"),__vite__mapDeps([4,1,5]),import.meta.url),rne=()=>Sr(()=>import("./ResetPasswordPage-DeWXyaHc.js"),__vite__mapDeps([6,1,2,7]),import.meta.url),Ww=()=>Sr(()=>import("./VerifyResultPage-DgCNTQ4L.js"),__vite__mapDeps([8,9]),import.meta.url),sne=()=>Sr(()=>import("./AccountsPage-Bcis23qR.js"),__vite__mapDeps([10,11,12]),import.meta.url),ine=()=>Sr(()=>import("./SchedulesPage-BXyRqadY.js"),__vite__mapDeps([13,11,14]),import.meta.url),une=()=>Sr(()=>import("./ScreenshotsPage-BwyU04c1.js"),__vite__mapDeps([15,16]),import.meta.url),cne=[{path:"/",redirect:"/login"},{path:"/login",name:"login",component:lne},{path:"/register",name:"register",component:ane},{path:"/reset-password/:token",name:"reset_password",component:rne},{path:"/api/verify-email/:token",name:"verify_email",component:Ww},{path:"/api/verify-bind-email/:token",name:"verify_bind_email",component:Ww},{path:"/app",component:one,children:[{path:"",redirect:"/app/accounts"},{path:"accounts",name:"accounts",component:sne},{path:"schedules",name:"schedules",component:ine},{path:"screenshots",name:"screenshots",component:une}]},{path:"/:pathMatch(.*)*",redirect:"/login"}],dne=oN({history:AR(),routes:cne});var fne={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};mC(G$).use(uee()).use(dne).use(iee,{locale:fne}).mount("#app");export{FQ as E,ze as F,gC as _,A as a,F as b,S as c,G as d,wt as e,O as f,W as g,ie as h,re as i,tn as j,vt as k,aN as l,Pt as m,qte as n,pt as o,wT as p,fe as q,It as r,s,ke as t,lN as u,gt as v,te as w,W_ as x}; diff --git a/static/app/index.html b/static/app/index.html index 93f381f..8bf3f8b 100644 --- a/static/app/index.html +++ b/static/app/index.html @@ -4,7 +4,7 @@ 知识管理平台 - +