npmapps 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/app/nginxManagement/backend/nginx-1.28.0/conf/api.conf +2 -3
- package/app/nginxManagement/backend/nginx-1.28.0/logs/api_80_access.log +0 -0
- package/app/nginxManagement/backend/nginx-1.28.0/logs/api_80_error.log +0 -0
- package/app/nginxManagement/backend/nginx-1.28.0/logs/error.log +62 -0
- package/app/nginxManagement/backend/nginx-1.28.0/logs/nginx.pid +1 -1
- package/app/nginxManagement/backend/{nginx-management-backend.exe → nm.exe} +0 -0
- package/app/nginxManagement/frontend/dist/assets/{index-DXjutdrs.js → index-CR2wJXtr.js} +2 -2
- package/app/nginxManagement/frontend/dist/assets/{index-D7ssF8W3.js → index-_jG9n0U8.js} +1 -1
- package/app/nginxManagement/frontend/dist/assets/{index-B99Tga9G.js → index-eLDUQSKK.js} +2 -2
- package/app/nginxManagement/frontend/dist/index.html +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,9 +10,8 @@ server {
|
|
|
10
10
|
error_log logs/api_80_error.log;
|
|
11
11
|
|
|
12
12
|
location /api/ {
|
|
13
|
-
|
|
14
|
-
# proxy_pass http://localhost:
|
|
15
|
-
proxy_pass http://localhost:8082; #R 新地址
|
|
13
|
+
proxy_pass http://localhost:8081; #R 新地址
|
|
14
|
+
# proxy_pass http://localhost:8082; #R 新地址
|
|
16
15
|
proxy_set_header Host $host;
|
|
17
16
|
proxy_set_header X-Real-IP $remote_addr;
|
|
18
17
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
File without changes
|
|
File without changes
|
|
@@ -13,3 +13,65 @@
|
|
|
13
13
|
2025/07/02 10:47:53 [notice] 31088#29580: signal process started
|
|
14
14
|
2025/07/02 10:48:04 [notice] 13636#28108: signal process started
|
|
15
15
|
2025/07/02 10:48:06 [notice] 3644#32680: signal process started
|
|
16
|
+
2025/07/02 14:53:22 [notice] 9996#28556: signal process started
|
|
17
|
+
2025/07/02 14:53:22 [error] 9996#28556: OpenEvent("Global\ngx_stop_31644") failed (2: The system cannot find the file specified)
|
|
18
|
+
2025/07/02 14:53:32 [notice] 5380#32728: signal process started
|
|
19
|
+
2025/07/02 14:53:32 [error] 5380#32728: OpenEvent("Global\ngx_stop_31644") failed (2: The system cannot find the file specified)
|
|
20
|
+
2025/07/02 14:59:28 [notice] 32128#40196: signal process started
|
|
21
|
+
2025/07/02 14:59:28 [error] 32128#40196: OpenEvent("Global\ngx_stop_31644") failed (2: The system cannot find the file specified)
|
|
22
|
+
2025/07/02 14:59:47 [notice] 32128#39124: signal process started
|
|
23
|
+
2025/07/02 14:59:48 [notice] 42076#3828: signal process started
|
|
24
|
+
2025/07/02 14:59:49 [notice] 41160#26748: signal process started
|
|
25
|
+
2025/07/02 14:59:50 [notice] 40924#42652: signal process started
|
|
26
|
+
2025/07/02 14:59:50 [notice] 35948#29424: signal process started
|
|
27
|
+
2025/07/02 14:59:51 [notice] 43720#43708: signal process started
|
|
28
|
+
2025/07/02 14:59:52 [notice] 31428#1868: signal process started
|
|
29
|
+
2025/07/02 14:59:57 [notice] 34952#41600: signal process started
|
|
30
|
+
2025/07/02 14:59:59 [notice] 36484#29648: signal process started
|
|
31
|
+
2025/07/02 14:59:59 [error] 36484#29648: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
32
|
+
2025/07/02 15:00:06 [notice] 12596#24444: signal process started
|
|
33
|
+
2025/07/02 15:00:38 [notice] 30864#23916: signal process started
|
|
34
|
+
2025/07/02 15:00:40 [notice] 36552#18780: signal process started
|
|
35
|
+
2025/07/02 15:00:40 [error] 36552#18780: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
36
|
+
2025/07/02 15:00:49 [notice] 42884#43640: signal process started
|
|
37
|
+
2025/07/02 15:00:51 [notice] 36324#41676: signal process started
|
|
38
|
+
2025/07/02 15:00:52 [notice] 34448#41356: signal process started
|
|
39
|
+
2025/07/02 15:00:55 [notice] 42832#34368: signal process started
|
|
40
|
+
2025/07/02 15:00:55 [error] 42832#34368: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
41
|
+
2025/07/02 15:02:01 [notice] 39788#15176: signal process started
|
|
42
|
+
2025/07/02 15:02:05 [notice] 40904#26560: signal process started
|
|
43
|
+
2025/07/02 15:02:05 [error] 40904#26560: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
44
|
+
2025/07/02 15:02:25 [notice] 31368#14620: signal process started
|
|
45
|
+
2025/07/02 15:02:53 [notice] 15484#21136: signal process started
|
|
46
|
+
2025/07/02 15:02:54 [notice] 43760#29120: signal process started
|
|
47
|
+
2025/07/02 15:02:54 [error] 43760#29120: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
48
|
+
2025/07/02 15:02:55 [notice] 22652#41616: signal process started
|
|
49
|
+
2025/07/02 15:02:55 [error] 22652#41616: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
50
|
+
2025/07/02 16:16:43 [notice] 38692#12456: signal process started
|
|
51
|
+
2025/07/02 16:16:43 [error] 38692#12456: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
52
|
+
2025/07/02 16:16:48 [notice] 21684#19316: signal process started
|
|
53
|
+
2025/07/02 16:16:53 [notice] 16112#19796: signal process started
|
|
54
|
+
2025/07/02 16:17:12 [notice] 27740#5888: signal process started
|
|
55
|
+
2025/07/02 16:17:13 [notice] 44296#38724: signal process started
|
|
56
|
+
2025/07/02 16:17:14 [notice] 36480#31124: signal process started
|
|
57
|
+
2025/07/02 16:17:14 [notice] 28600#37620: signal process started
|
|
58
|
+
2025/07/02 16:17:15 [notice] 27632#3380: signal process started
|
|
59
|
+
2025/07/02 16:17:16 [notice] 21656#41176: signal process started
|
|
60
|
+
2025/07/02 16:17:16 [notice] 33320#37692: signal process started
|
|
61
|
+
2025/07/02 16:17:21 [notice] 39928#42700: signal process started
|
|
62
|
+
2025/07/02 16:17:24 [notice] 34464#43652: signal process started
|
|
63
|
+
2025/07/02 16:17:24 [error] 34464#43652: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
64
|
+
2025/07/02 16:17:36 [notice] 33240#28616: signal process started
|
|
65
|
+
2025/07/02 16:17:36 [error] 33240#28616: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
66
|
+
2025/07/02 16:17:40 [notice] 29172#24812: signal process started
|
|
67
|
+
2025/07/02 16:17:40 [error] 29172#24812: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
68
|
+
2025/07/02 16:17:43 [notice] 14784#43660: signal process started
|
|
69
|
+
2025/07/02 16:17:57 [notice] 33216#30144: signal process started
|
|
70
|
+
2025/07/02 16:17:57 [error] 33216#30144: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
71
|
+
2025/07/02 16:17:58 [notice] 32892#25524: signal process started
|
|
72
|
+
2025/07/02 16:17:58 [error] 32892#25524: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
73
|
+
2025/07/02 16:18:04 [notice] 28292#19048: signal process started
|
|
74
|
+
2025/07/02 16:23:45 [notice] 33964#26816: signal process started
|
|
75
|
+
2025/07/02 16:23:50 [notice] 39056#32776: signal process started
|
|
76
|
+
2025/07/02 16:23:50 [error] 39056#32776: CreateFile() "C:\Users\w1768\Documents\wk\web\npm\npmapps\app\nginxManagement\backend\nginx-1.28.0/logs/nginx.pid" failed (2: The system cannot find the file specified)
|
|
77
|
+
2025/07/02 16:44:02 [notice] 7360#40444: signal process started
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
42368
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-_jG9n0U8.js","assets/index-BLD4e3hR.css","assets/index-eLDUQSKK.js","assets/index-BRTcbQAV.css"])))=>i.map(i=>d[i]);
|
|
2
2
|
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/**
|
|
3
3
|
* @vue/shared v3.5.17
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
@@ -55,4 +55,4 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-D7ssF8W3.
|
|
|
55
55
|
* vue-router v4.5.1
|
|
56
56
|
* (c) 2025 Eduardo San Martin Morote
|
|
57
57
|
* @license MIT
|
|
58
|
-
*/const vr=typeof document<"u";function U_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wle(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&U_(e.default)}const Dt=Object.assign;function hf(e,t){const n={};for(const a in t){const o=t[a];n[a]=za(o)?o.map(e):e(o)}return n}const qs=()=>{},za=Array.isArray,Y_=/#/g,jle=/&/g,qle=/\//g,Ule=/=/g,Yle=/\?/g,G_=/\+/g,Gle=/%5B/g,Xle=/%5D/g,X_=/%5E/g,Zle=/%60/g,Z_=/%7B/g,Jle=/%7C/g,J_=/%7D/g,Qle=/%20/g;function nv(e){return encodeURI(""+e).replace(Jle,"|").replace(Gle,"[").replace(Xle,"]")}function ere(e){return nv(e).replace(Z_,"{").replace(J_,"}").replace(X_,"^")}function z0(e){return nv(e).replace(G_,"%2B").replace(Qle,"+").replace(Y_,"%23").replace(jle,"%26").replace(Zle,"`").replace(Z_,"{").replace(J_,"}").replace(X_,"^")}function tre(e){return z0(e).replace(Ule,"%3D")}function nre(e){return nv(e).replace(Y_,"%23").replace(Yle,"%3F")}function are(e){return e==null?"":nre(e).replace(qle,"%2F")}function ki(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ore=/\/$/,lre=e=>e.replace(ore,"");function mf(e,t,n="/"){let a,o={},l="",r="";const i=t.indexOf("#");let u=t.indexOf("?");return i<u&&i>=0&&(u=-1),u>-1&&(a=t.slice(0,u),l=t.slice(u+1,i>-1?i:t.length),o=e(l)),i>-1&&(a=a||t.slice(0,i),r=t.slice(i,t.length)),a=ure(a??t,n),{fullPath:a+(l&&"?")+l+r,path:a,query:o,hash:ki(r)}}function rre(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sre(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Qr(t.matched[a],n.matched[o])&&Q_(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Qr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Q_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ire(e[n],t[n]))return!1;return!0}function ire(e,t){return za(e)?zm(e,t):za(t)?zm(t,e):e===t}function zm(e,t){return za(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function ure(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,i;for(r=0;r<a.length;r++)if(i=a[r],i!==".")if(i==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Xo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ei;(function(e){e.pop="pop",e.push="push"})(Ei||(Ei={}));var Us;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Us||(Us={}));function cre(e){if(!e)if(vr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lre(e)}const dre=/^[^#]+#/;function fre(e,t){return e.replace(dre,"#")+t}function pre(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Sd=()=>({left:window.scrollX,top:window.scrollY});function vre(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=pre(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Bm(e,t){return(history.state?history.state.position-t:-1)+e}const B0=new Map;function hre(e,t){B0.set(e,t)}function mre(e){const t=B0.get(e);return B0.delete(e),t}let gre=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let i=o.includes(e.slice(l))?e.slice(l).length:1,u=o.slice(i);return u[0]!=="/"&&(u="/"+u),Vm(u,"")}return Vm(n,e)+a+o}function yre(e,t,n,a){let o=[],l=[],r=null;const i=({state:v})=>{const p=eb(e,location),m=n.value,h=t.value;let y=0;if(v){if(n.value=p,t.value=v,r&&r===m){r=null;return}y=h?v.position-h.position:0}else a(p);o.forEach(g=>{g(n.value,m,{delta:y,type:Ei.pop,direction:y?y>0?Us.forward:Us.back:Us.unknown})})};function u(){r=n.value}function c(v){o.push(v);const p=()=>{const m=o.indexOf(v);m>-1&&o.splice(m,1)};return l.push(p),p}function d(){const{history:v}=window;v.state&&v.replaceState(Dt({},v.state,{scroll:Sd()}),"")}function f(){for(const v of l)v();l=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:f}}function Hm(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Sd():null}}function _re(e){const{history:t,location:n}=window,a={value:eb(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),v=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:gre()+e+u;try{t[d?"replaceState":"pushState"](c,"",v),o.value=c}catch(p){console.error(p),n[d?"replace":"assign"](v)}}function r(u,c){const d=Dt({},t.state,Hm(o.value.back,u,o.value.forward,!0),c,{position:o.value.position});l(u,d,!0),a.value=u}function i(u,c){const d=Dt({},o.value,t.state,{forward:u,scroll:Sd()});l(d.current,d,!0);const f=Dt({},Hm(a.value,u,null),{position:d.position+1},c);l(u,f,!1),a.value=u}return{location:a,state:o,push:i,replace:r}}function bre(e){e=cre(e);const t=_re(e),n=yre(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=Dt({location:"",base:e,go:a,createHref:fre.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function wre(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),bre(e)}function Cre(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var Dm;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Dm||(Dm={}));function es(e,t){return Dt(new Error,{type:e,[nb]:!0},t)}function ho(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const Fm="[^/]+?",Sre={sensitive:!1,strict:!1,start:!0,end:!0},kre=/[.+*?^${}()[\]/\\]/g;function Ere(e,t){const n=Dt({},Sre,t),a=[];let o=n.start?"^":"";const l=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;f<c.length;f++){const v=c[f];let p=40+(n.sensitive?.25:0);if(v.type===0)f||(o+="/"),o+=v.value.replace(kre,"\\$&"),p+=40;else if(v.type===1){const{value:m,repeatable:h,optional:y,regexp:g}=v;l.push({name:m,repeatable:h,optional:y});const E=g||Fm;if(E!==Fm){p+=10;try{new RegExp(`(${E})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${m}" (${E}): `+b.message)}}let _=h?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;f||(_=y&&c.length<2?`(?:/${_})`:"/"+_),y&&(_+="?"),o+=_,p+=20,y&&(p+=-8),h&&(p+=-20),E===".*"&&(p+=-50)}d.push(p)}a.push(d)}if(n.strict&&n.end){const c=a.length-1;a[c][a[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const r=new RegExp(o,n.sensitive?"":"i");function i(c){const d=c.match(r),f={};if(!d)return null;for(let v=1;v<d.length;v++){const p=d[v]||"",m=l[v-1];f[m.name]=p&&m.repeatable?p.split("/"):p}return f}function u(c){let d="",f=!1;for(const v of e){(!f||!d.endsWith("/"))&&(d+="/"),f=!1;for(const p of v)if(p.type===0)d+=p.value;else if(p.type===1){const{value:m,repeatable:h,optional:y}=p,g=m in c?c[m]:"";if(za(g)&&!h)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const E=za(g)?g.join("/"):g;if(!E)if(y)v.length<2&&(d.endsWith("/")?d=d.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);d+=E}}return d||"/"}return{re:r,score:a,keys:l,parse:i,stringify:u}}function xre(e,t){let n=0;for(;n<e.length&&n<t.length;){const a=t[n]-e[n];if(a)return a;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ab(e,t){let n=0;const a=e.score,o=t.score;for(;n<a.length&&n<o.length;){const l=xre(a[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-a.length)===1){if(Km(a))return 1;if(Km(o))return-1}return o.length-a.length}function Km(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Mre={type:0,value:""},Tre=/[a-zA-Z0-9_]/;function $re(e){if(!e)return[[]];if(e==="/")return[[Mre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let i=0,u,c="",d="";function f(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function v(){c+=u}for(;i<e.length;){if(u=e[i++],u==="\\"&&n!==2){a=n,n=4;continue}switch(n){case 0:u==="/"?(c&&f(),r()):u===":"?(f(),n=1):v();break;case 4:v(),n=a;break;case 1:u==="("?n=2:Tre.test(u)?v():(f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),o}function Ore(e,t,n){const a=Ere($re(e.path),n),o=Dt(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ire(e,t){const n=[],a=new Map;t=Um({strict:!1,end:!0,sensitive:!1},t);function o(f){return a.get(f)}function l(f,v,p){const m=!p,h=jm(f);h.aliasOf=p&&p.record;const y=Um(t,f),g=[h];if("alias"in f){const b=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of b)g.push(jm(Dt({},h,{components:p?p.record.components:h.components,path:S,aliasOf:p?p.record:h})))}let E,_;for(const b of g){const{path:S}=b;if(v&&S[0]!=="/"){const k=v.record.path,N=k[k.length-1]==="/"?"":"/";b.path=v.record.path+(S&&N+S)}if(E=Ore(b,v,y),p?p.alias.push(E):(_=_||E,_!==E&&_.alias.push(E),m&&f.name&&!qm(E)&&r(f.name)),ob(E)&&u(E),h.children){const k=h.children;for(let N=0;N<k.length;N++)l(k[N],E,p&&p.children[N])}p=p||E}return _?()=>{r(_)}:qs}function r(f){if(tb(f)){const v=a.get(f);v&&(a.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&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function i(){return n}function u(f){const v=Are(f,n);n.splice(v,0,f),f.record.name&&!qm(f)&&a.set(f.record.name,f)}function c(f,v){let p,m={},h,y;if("name"in f&&f.name){if(p=a.get(f.name),!p)throw es(1,{location:f});y=p.record.name,m=Dt(Wm(v.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Wm(f.params,p.keys.map(_=>_.name))),h=p.stringify(m)}else if(f.path!=null)h=f.path,p=n.find(_=>_.re.test(h)),p&&(m=p.parse(h),y=p.record.name);else{if(p=v.name?a.get(v.name):n.find(_=>_.re.test(v.path)),!p)throw es(1,{location:f,currentLocation:v});y=p.record.name,m=Dt({},v.params,f.params),h=p.stringify(m)}const g=[];let E=p;for(;E;)g.unshift(E.record),E=E.parent;return{name:y,path:h,params:m,matched:g,meta:Pre(g)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:i,getRecordMatcher:o}}function Wm(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function jm(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Nre(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 Nre(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function qm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pre(e){return e.reduce((t,n)=>Dt(t,n.meta),{})}function Um(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function Are(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;ab(e,t[l])<0?a=l:n=l+1}const o=Rre(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function Rre(e){let t=e;for(;t=t.parent;)if(ob(t)&&ab(e,t)===0)return t}function ob({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Lre(e){const t={};if(e===""||e==="?")return t;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<a.length;++o){const l=a[o].replace(G_," "),r=l.indexOf("="),i=ki(r<0?l:l.slice(0,r)),u=r<0?null:ki(l.slice(r+1));if(i in t){let c=t[i];za(c)||(c=t[i]=[c]),c.push(u)}else t[i]=u}return t}function Ym(e){let t="";for(let n in e){const a=e[n];if(n=tre(n),a==null){a!==void 0&&(t+=(t.length?"&":"")+n);continue}(za(a)?a.map(l=>l&&z0(l)):[a&&z0(a)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Vre(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=za(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const zre=Symbol(""),Gm=Symbol(""),av=Symbol(""),lb=Symbol(""),H0=Symbol("");function ks(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function al(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((i,u)=>{const c=v=>{v===!1?u(es(4,{from:n,to:t})):v instanceof Error?u(v):Cre(v)?u(es(2,{from:t,to:v})):(r&&a.enterCallbacks[o]===r&&typeof v=="function"&&r.push(v),i())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(v=>u(v))})}function gf(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const i in r.components){let u=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(U_(u)){const d=(u.__vccOpts||u)[t];d&&l.push(al(d,n,a,r,i,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${i}" at "${r.path}"`);const f=Wle(d)?d.default:d;r.mods[i]=d,r.components[i]=f;const p=(f.__vccOpts||f)[t];return p&&al(p,n,a,r,i,o)()}))}}return l}function Xm(e){const t=Ne(av),n=Ne(lb),a=C(()=>{const u=s(e.to);return t.resolve(u)}),o=C(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const v=f.findIndex(Qr.bind(null,d));if(v>-1)return v;const p=Zm(u[c-2]);return c>1&&Zm(d)===p&&f[f.length-1].path!==p?f.findIndex(Qr.bind(null,u[c-2])):v}),l=C(()=>o.value>-1&&Kre(n.params,a.value.params)),r=C(()=>o.value>-1&&o.value===n.matched.length-1&&Q_(n.params,a.value.params));function i(u={}){if(Fre(u)){const c=t[s(e.replace)?"replace":"push"](s(e.to)).catch(qs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:C(()=>a.value.href),isActive:l,isExactActive:r,navigate:i}}function Bre(e){return e.length===1?e[0]:e}const Hre=P({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:Xm,setup(e,{slots:t}){const n=kt(Xm(e)),{options:a}=Ne(av),o=C(()=>({[Jm(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[Jm(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Bre(t.default(n));return e.custom?l:We("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),Dre=Hre;function Fre(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 Kre(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!za(o)||o.length!==a.length||a.some((l,r)=>l!==o[r]))return!1}return!0}function Zm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jm=(e,t,n)=>e??t??n,Wre=P({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Ne(H0),o=C(()=>e.route||a.value),l=Ne(Gm,0),r=C(()=>{let c=s(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),i=C(()=>o.value.matched[r.value]);ft(Gm,C(()=>r.value+1)),ft(zre,i),ft(H0,o);const u=z();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||!Qr(d,p)||!v)&&(d.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=i.value,v=f&&f.components[d];if(!v)return Qm(n.default,{Component:v,route:c});const p=f.props[d],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=We(v,Dt({},m,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return Qm(n.default,{Component:y,route:c})||y}}});function Qm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jre=Wre;function qre(e){const t=Ire(e.routes,e),n=e.parseQuery||Lre,a=e.stringifyQuery||Ym,o=e.history,l=ks(),r=ks(),i=ks(),u=Ht(Xo);let c=Xo;vr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=hf.bind(null,W=>""+W),f=hf.bind(null,are),v=hf.bind(null,ki);function p(W,ae){let le,be;return tb(W)?(le=t.getRecordMatcher(W),be=ae):be=W,t.addRoute(be,le)}function m(W){const ae=t.getRecordMatcher(W);ae&&t.removeRoute(ae)}function h(){return t.getRoutes().map(W=>W.record)}function y(W){return!!t.getRecordMatcher(W)}function g(W,ae){if(ae=Dt({},ae||u.value),typeof W=="string"){const ie=mf(n,W,ae.path),pe=t.resolve({path:ie.path},ae),ge=o.createHref(ie.fullPath);return Dt(ie,pe,{params:v(pe.params),hash:ki(ie.hash),redirectedFrom:void 0,href:ge})}let le;if(W.path!=null)le=Dt({},W,{path:mf(n,W.path,ae.path).path});else{const ie=Dt({},W.params);for(const pe in ie)ie[pe]==null&&delete ie[pe];le=Dt({},W,{params:f(ie)}),ae.params=f(ae.params)}const be=t.resolve(le,ae),me=W.hash||"";be.params=d(v(be.params));const D=rre(a,Dt({},W,{hash:ere(me),path:be.path})),Y=o.createHref(D);return Dt({fullPath:D,hash:me,query:a===Ym?Vre(W.query):W.query||{}},be,{redirectedFrom:void 0,href:Y})}function E(W){return typeof W=="string"?mf(n,W,u.value.path):Dt({},W)}function _(W,ae){if(c!==W)return es(8,{from:ae,to:W})}function b(W){return N(W)}function S(W){return b(Dt(E(W),{replace:!0}))}function k(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let be=typeof le=="function"?le(W):le;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=E(be):{path:be},be.params={}),Dt({query:W.query,hash:W.hash,params:be.path!=null?{}:W.params},be)}}function N(W,ae){const le=c=g(W),be=u.value,me=W.state,D=W.force,Y=W.replace===!0,ie=k(le);if(ie)return N(Dt(E(ie),{state:typeof ie=="object"?Dt({},me,ie.state):me,force:D,replace:Y}),ae||le);const pe=le;pe.redirectedFrom=ae;let ge;return!D&&sre(a,be,le)&&(ge=es(16,{to:pe,from:be}),j(be,be,!0,!1)),(ge?Promise.resolve(ge):$(pe,be)).catch(de=>ho(de)?ho(de,2)?de:X(de):L(de,pe,be)).then(de=>{if(de){if(ho(de,2))return N(Dt({replace:Y},E(de.to),{state:typeof de.to=="object"?Dt({},me,de.to.state):me,force:D}),ae||pe)}else de=A(pe,be,!0,Y,me);return V(pe,be,de),de})}function I(W,ae){const le=_(W,ae);return le?Promise.reject(le):Promise.resolve()}function T(W){const ae=re.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function $(W,ae){let le;const[be,me,D]=Ure(W,ae);le=gf(be.reverse(),"beforeRouteLeave",W,ae);for(const ie of be)ie.leaveGuards.forEach(pe=>{le.push(al(pe,W,ae))});const Y=I.bind(null,W,ae);return le.push(Y),ce(le).then(()=>{le=[];for(const ie of l.list())le.push(al(ie,W,ae));return le.push(Y),ce(le)}).then(()=>{le=gf(me,"beforeRouteUpdate",W,ae);for(const ie of me)ie.updateGuards.forEach(pe=>{le.push(al(pe,W,ae))});return le.push(Y),ce(le)}).then(()=>{le=[];for(const ie of D)if(ie.beforeEnter)if(za(ie.beforeEnter))for(const pe of ie.beforeEnter)le.push(al(pe,W,ae));else le.push(al(ie.beforeEnter,W,ae));return le.push(Y),ce(le)}).then(()=>(W.matched.forEach(ie=>ie.enterCallbacks={}),le=gf(D,"beforeRouteEnter",W,ae,T),le.push(Y),ce(le))).then(()=>{le=[];for(const ie of r.list())le.push(al(ie,W,ae));return le.push(Y),ce(le)}).catch(ie=>ho(ie,8)?ie:Promise.reject(ie))}function V(W,ae,le){i.list().forEach(be=>T(()=>be(W,ae,le)))}function A(W,ae,le,be,me){const D=_(W,ae);if(D)return D;const Y=ae===Xo,ie=vr?history.state:{};le&&(be||Y?o.replace(W.fullPath,Dt({scroll:Y&&ie&&ie.scroll},me)):o.push(W.fullPath,me)),u.value=W,j(W,ae,le,Y),X()}let K;function U(){K||(K=o.listen((W,ae,le)=>{if(!se.listening)return;const be=g(W),me=k(be);if(me){N(Dt(me,{replace:!0,force:!0}),be).catch(qs);return}c=be;const D=u.value;vr&&hre(Bm(D.fullPath,le.delta),Sd()),$(be,D).catch(Y=>ho(Y,12)?Y:ho(Y,2)?(N(Dt(E(Y.to),{force:!0}),be).then(ie=>{ho(ie,20)&&!le.delta&&le.type===Ei.pop&&o.go(-1,!1)}).catch(qs),Promise.reject()):(le.delta&&o.go(-le.delta,!1),L(Y,be,D))).then(Y=>{Y=Y||A(be,D,!1),Y&&(le.delta&&!ho(Y,8)?o.go(-le.delta,!1):le.type===Ei.pop&&ho(Y,20)&&o.go(-1,!1)),V(be,D,Y)}).catch(qs)}))}let B=ks(),R=ks(),F;function L(W,ae,le){X(W);const be=R.list();return be.length?be.forEach(me=>me(W,ae,le)):console.error(W),Promise.reject(W)}function H(){return F&&u.value!==Xo?Promise.resolve():new Promise((W,ae)=>{B.add([W,ae])})}function X(W){return F||(F=!W,U(),B.list().forEach(([ae,le])=>W?le(W):ae()),B.reset()),W}function j(W,ae,le,be){const{scrollBehavior:me}=e;if(!vr||!me)return Promise.resolve();const D=!le&&mre(Bm(W.fullPath,0))||(be||!le)&&history.state&&history.state.scroll||null;return Le().then(()=>me(W,ae,D)).then(Y=>Y&&vre(Y)).catch(Y=>L(Y,W,ae))}const ee=W=>o.go(W);let q;const re=new Set,se={currentRoute:u,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:h,resolve:g,options:e,push:b,replace:S,go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:l.add,beforeResolve:r.add,afterEach:i.add,onError:R.add,isReady:H,install(W){const ae=this;W.component("RouterLink",Dre),W.component("RouterView",jre),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>s(u)}),vr&&!q&&u.value===Xo&&(q=!0,b(o.location).catch(me=>{}));const le={};for(const me in Xo)Object.defineProperty(le,me,{get:()=>u.value[me],enumerable:!0});W.provide(av,ae),W.provide(lb,G0(le)),W.provide(H0,u);const be=W.unmount;re.add(W),W.unmount=function(){re.delete(W),re.size<1&&(c=Xo,K&&K(),K=null,u.value=Xo,q=!1,F=!1),be()}}};function ce(W){return W.reduce((ae,le)=>ae.then(()=>T(le)),Promise.resolve())}return se}function Ure(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;r<l;r++){const i=t.matched[r];i&&(e.matched.find(c=>Qr(c,i))?a.push(i):n.push(i));const u=e.matched[r];u&&(t.matched.find(c=>Qr(c,u))||o.push(u))}return[n,a,o]}const Yre="modulepreload",Gre=function(e){return"/"+e},eg={},tg=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),i=r?.nonce||r?.getAttribute("nonce");o=u(n.map(c=>{if(c=Gre(c),c in eg)return;eg[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const v=document.createElement("link");if(v.rel=d?"stylesheet":Yre,d||(v.as="script"),v.crossOrigin="",v.href=c,i&&v.setAttribute("nonce",i),document.head.appendChild(v),d)return new Promise((p,m)=>{v.addEventListener("load",p),v.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function l(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return o.then(r=>{for(const i of r||[])i.status==="rejected"&&l(i.reason);return t().catch(l)})},Xre=[{path:"/",redirect:"/proxy"},{path:"/dashboard",name:"Dashboard",component:()=>tg(()=>import("./index-D7ssF8W3.js"),__vite__mapDeps([0,1]))},{path:"/proxy",name:"Proxy",component:()=>tg(()=>import("./index-B99Tga9G.js"),__vite__mapDeps([2,3]))}],Zre=qre({history:wre(),routes:Xre}),kd=M4(A5);for(const[e,t]of Object.entries(mL))kd.component(e,t);kd.use(Kle);kd.use(Zre);kd.mount("#app");export{Be as F,I5 as _,G as a,it as b,M as c,x as d,kt as e,C as f,nt as g,fe as h,ue as i,oe as j,vt as k,pt as l,w as o,z as r,Ee as t,Z as w};
|
|
58
|
+
*/const vr=typeof document<"u";function U_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wle(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&U_(e.default)}const Dt=Object.assign;function hf(e,t){const n={};for(const a in t){const o=t[a];n[a]=za(o)?o.map(e):e(o)}return n}const qs=()=>{},za=Array.isArray,Y_=/#/g,jle=/&/g,qle=/\//g,Ule=/=/g,Yle=/\?/g,G_=/\+/g,Gle=/%5B/g,Xle=/%5D/g,X_=/%5E/g,Zle=/%60/g,Z_=/%7B/g,Jle=/%7C/g,J_=/%7D/g,Qle=/%20/g;function nv(e){return encodeURI(""+e).replace(Jle,"|").replace(Gle,"[").replace(Xle,"]")}function ere(e){return nv(e).replace(Z_,"{").replace(J_,"}").replace(X_,"^")}function z0(e){return nv(e).replace(G_,"%2B").replace(Qle,"+").replace(Y_,"%23").replace(jle,"%26").replace(Zle,"`").replace(Z_,"{").replace(J_,"}").replace(X_,"^")}function tre(e){return z0(e).replace(Ule,"%3D")}function nre(e){return nv(e).replace(Y_,"%23").replace(Yle,"%3F")}function are(e){return e==null?"":nre(e).replace(qle,"%2F")}function ki(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const ore=/\/$/,lre=e=>e.replace(ore,"");function mf(e,t,n="/"){let a,o={},l="",r="";const i=t.indexOf("#");let u=t.indexOf("?");return i<u&&i>=0&&(u=-1),u>-1&&(a=t.slice(0,u),l=t.slice(u+1,i>-1?i:t.length),o=e(l)),i>-1&&(a=a||t.slice(0,i),r=t.slice(i,t.length)),a=ure(a??t,n),{fullPath:a+(l&&"?")+l+r,path:a,query:o,hash:ki(r)}}function rre(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Vm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function sre(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&Qr(t.matched[a],n.matched[o])&&Q_(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Qr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Q_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ire(e[n],t[n]))return!1;return!0}function ire(e,t){return za(e)?zm(e,t):za(t)?zm(t,e):e===t}function zm(e,t){return za(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function ure(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,i;for(r=0;r<a.length;r++)if(i=a[r],i!==".")if(i==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Xo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Ei;(function(e){e.pop="pop",e.push="push"})(Ei||(Ei={}));var Us;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Us||(Us={}));function cre(e){if(!e)if(vr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),lre(e)}const dre=/^[^#]+#/;function fre(e,t){return e.replace(dre,"#")+t}function pre(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Sd=()=>({left:window.scrollX,top:window.scrollY});function vre(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=pre(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Bm(e,t){return(history.state?history.state.position-t:-1)+e}const B0=new Map;function hre(e,t){B0.set(e,t)}function mre(e){const t=B0.get(e);return B0.delete(e),t}let gre=()=>location.protocol+"//"+location.host;function eb(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let i=o.includes(e.slice(l))?e.slice(l).length:1,u=o.slice(i);return u[0]!=="/"&&(u="/"+u),Vm(u,"")}return Vm(n,e)+a+o}function yre(e,t,n,a){let o=[],l=[],r=null;const i=({state:v})=>{const p=eb(e,location),m=n.value,h=t.value;let y=0;if(v){if(n.value=p,t.value=v,r&&r===m){r=null;return}y=h?v.position-h.position:0}else a(p);o.forEach(g=>{g(n.value,m,{delta:y,type:Ei.pop,direction:y?y>0?Us.forward:Us.back:Us.unknown})})};function u(){r=n.value}function c(v){o.push(v);const p=()=>{const m=o.indexOf(v);m>-1&&o.splice(m,1)};return l.push(p),p}function d(){const{history:v}=window;v.state&&v.replaceState(Dt({},v.state,{scroll:Sd()}),"")}function f(){for(const v of l)v();l=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:u,listen:c,destroy:f}}function Hm(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Sd():null}}function _re(e){const{history:t,location:n}=window,a={value:eb(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),v=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:gre()+e+u;try{t[d?"replaceState":"pushState"](c,"",v),o.value=c}catch(p){console.error(p),n[d?"replace":"assign"](v)}}function r(u,c){const d=Dt({},t.state,Hm(o.value.back,u,o.value.forward,!0),c,{position:o.value.position});l(u,d,!0),a.value=u}function i(u,c){const d=Dt({},o.value,t.state,{forward:u,scroll:Sd()});l(d.current,d,!0);const f=Dt({},Hm(a.value,u,null),{position:d.position+1},c);l(u,f,!1),a.value=u}return{location:a,state:o,push:i,replace:r}}function bre(e){e=cre(e);const t=_re(e),n=yre(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=Dt({location:"",base:e,go:a,createHref:fre.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function wre(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),bre(e)}function Cre(e){return typeof e=="string"||e&&typeof e=="object"}function tb(e){return typeof e=="string"||typeof e=="symbol"}const nb=Symbol("");var Dm;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Dm||(Dm={}));function es(e,t){return Dt(new Error,{type:e,[nb]:!0},t)}function ho(e,t){return e instanceof Error&&nb in e&&(t==null||!!(e.type&t))}const Fm="[^/]+?",Sre={sensitive:!1,strict:!1,start:!0,end:!0},kre=/[.+*?^${}()[\]/\\]/g;function Ere(e,t){const n=Dt({},Sre,t),a=[];let o=n.start?"^":"";const l=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;f<c.length;f++){const v=c[f];let p=40+(n.sensitive?.25:0);if(v.type===0)f||(o+="/"),o+=v.value.replace(kre,"\\$&"),p+=40;else if(v.type===1){const{value:m,repeatable:h,optional:y,regexp:g}=v;l.push({name:m,repeatable:h,optional:y});const E=g||Fm;if(E!==Fm){p+=10;try{new RegExp(`(${E})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${m}" (${E}): `+b.message)}}let _=h?`((?:${E})(?:/(?:${E}))*)`:`(${E})`;f||(_=y&&c.length<2?`(?:/${_})`:"/"+_),y&&(_+="?"),o+=_,p+=20,y&&(p+=-8),h&&(p+=-20),E===".*"&&(p+=-50)}d.push(p)}a.push(d)}if(n.strict&&n.end){const c=a.length-1;a[c][a[c].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const r=new RegExp(o,n.sensitive?"":"i");function i(c){const d=c.match(r),f={};if(!d)return null;for(let v=1;v<d.length;v++){const p=d[v]||"",m=l[v-1];f[m.name]=p&&m.repeatable?p.split("/"):p}return f}function u(c){let d="",f=!1;for(const v of e){(!f||!d.endsWith("/"))&&(d+="/"),f=!1;for(const p of v)if(p.type===0)d+=p.value;else if(p.type===1){const{value:m,repeatable:h,optional:y}=p,g=m in c?c[m]:"";if(za(g)&&!h)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const E=za(g)?g.join("/"):g;if(!E)if(y)v.length<2&&(d.endsWith("/")?d=d.slice(0,-1):f=!0);else throw new Error(`Missing required param "${m}"`);d+=E}}return d||"/"}return{re:r,score:a,keys:l,parse:i,stringify:u}}function xre(e,t){let n=0;for(;n<e.length&&n<t.length;){const a=t[n]-e[n];if(a)return a;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function ab(e,t){let n=0;const a=e.score,o=t.score;for(;n<a.length&&n<o.length;){const l=xre(a[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-a.length)===1){if(Km(a))return 1;if(Km(o))return-1}return o.length-a.length}function Km(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Mre={type:0,value:""},Tre=/[a-zA-Z0-9_]/;function $re(e){if(!e)return[[]];if(e==="/")return[[Mre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let i=0,u,c="",d="";function f(){c&&(n===0?l.push({type:0,value:c}):n===1||n===2||n===3?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function v(){c+=u}for(;i<e.length;){if(u=e[i++],u==="\\"&&n!==2){a=n,n=4;continue}switch(n){case 0:u==="/"?(c&&f(),r()):u===":"?(f(),n=1):v();break;case 4:v(),n=a;break;case 1:u==="("?n=2:Tre.test(u)?v():(f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--);break;case 2:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=3:d+=u;break;case 3:f(),n=0,u!=="*"&&u!=="?"&&u!=="+"&&i--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),o}function Ore(e,t,n){const a=Ere($re(e.path),n),o=Dt(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Ire(e,t){const n=[],a=new Map;t=Um({strict:!1,end:!0,sensitive:!1},t);function o(f){return a.get(f)}function l(f,v,p){const m=!p,h=jm(f);h.aliasOf=p&&p.record;const y=Um(t,f),g=[h];if("alias"in f){const b=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of b)g.push(jm(Dt({},h,{components:p?p.record.components:h.components,path:S,aliasOf:p?p.record:h})))}let E,_;for(const b of g){const{path:S}=b;if(v&&S[0]!=="/"){const k=v.record.path,N=k[k.length-1]==="/"?"":"/";b.path=v.record.path+(S&&N+S)}if(E=Ore(b,v,y),p?p.alias.push(E):(_=_||E,_!==E&&_.alias.push(E),m&&f.name&&!qm(E)&&r(f.name)),ob(E)&&u(E),h.children){const k=h.children;for(let N=0;N<k.length;N++)l(k[N],E,p&&p.children[N])}p=p||E}return _?()=>{r(_)}:qs}function r(f){if(tb(f)){const v=a.get(f);v&&(a.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&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function i(){return n}function u(f){const v=Are(f,n);n.splice(v,0,f),f.record.name&&!qm(f)&&a.set(f.record.name,f)}function c(f,v){let p,m={},h,y;if("name"in f&&f.name){if(p=a.get(f.name),!p)throw es(1,{location:f});y=p.record.name,m=Dt(Wm(v.params,p.keys.filter(_=>!_.optional).concat(p.parent?p.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),f.params&&Wm(f.params,p.keys.map(_=>_.name))),h=p.stringify(m)}else if(f.path!=null)h=f.path,p=n.find(_=>_.re.test(h)),p&&(m=p.parse(h),y=p.record.name);else{if(p=v.name?a.get(v.name):n.find(_=>_.re.test(v.path)),!p)throw es(1,{location:f,currentLocation:v});y=p.record.name,m=Dt({},v.params,f.params),h=p.stringify(m)}const g=[];let E=p;for(;E;)g.unshift(E.record),E=E.parent;return{name:y,path:h,params:m,matched:g,meta:Pre(g)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:i,getRecordMatcher:o}}function Wm(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function jm(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Nre(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 Nre(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function qm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pre(e){return e.reduce((t,n)=>Dt(t,n.meta),{})}function Um(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}function Are(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;ab(e,t[l])<0?a=l:n=l+1}const o=Rre(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function Rre(e){let t=e;for(;t=t.parent;)if(ob(t)&&ab(e,t)===0)return t}function ob({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Lre(e){const t={};if(e===""||e==="?")return t;const a=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;o<a.length;++o){const l=a[o].replace(G_," "),r=l.indexOf("="),i=ki(r<0?l:l.slice(0,r)),u=r<0?null:ki(l.slice(r+1));if(i in t){let c=t[i];za(c)||(c=t[i]=[c]),c.push(u)}else t[i]=u}return t}function Ym(e){let t="";for(let n in e){const a=e[n];if(n=tre(n),a==null){a!==void 0&&(t+=(t.length?"&":"")+n);continue}(za(a)?a.map(l=>l&&z0(l)):[a&&z0(a)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function Vre(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=za(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const zre=Symbol(""),Gm=Symbol(""),av=Symbol(""),lb=Symbol(""),H0=Symbol("");function ks(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function al(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((i,u)=>{const c=v=>{v===!1?u(es(4,{from:n,to:t})):v instanceof Error?u(v):Cre(v)?u(es(2,{from:t,to:v})):(r&&a.enterCallbacks[o]===r&&typeof v=="function"&&r.push(v),i())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(v=>u(v))})}function gf(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const i in r.components){let u=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(U_(u)){const d=(u.__vccOpts||u)[t];d&&l.push(al(d,n,a,r,i,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${i}" at "${r.path}"`);const f=Wle(d)?d.default:d;r.mods[i]=d,r.components[i]=f;const p=(f.__vccOpts||f)[t];return p&&al(p,n,a,r,i,o)()}))}}return l}function Xm(e){const t=Ne(av),n=Ne(lb),a=C(()=>{const u=s(e.to);return t.resolve(u)}),o=C(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const v=f.findIndex(Qr.bind(null,d));if(v>-1)return v;const p=Zm(u[c-2]);return c>1&&Zm(d)===p&&f[f.length-1].path!==p?f.findIndex(Qr.bind(null,u[c-2])):v}),l=C(()=>o.value>-1&&Kre(n.params,a.value.params)),r=C(()=>o.value>-1&&o.value===n.matched.length-1&&Q_(n.params,a.value.params));function i(u={}){if(Fre(u)){const c=t[s(e.replace)?"replace":"push"](s(e.to)).catch(qs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:C(()=>a.value.href),isActive:l,isExactActive:r,navigate:i}}function Bre(e){return e.length===1?e[0]:e}const Hre=P({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:Xm,setup(e,{slots:t}){const n=kt(Xm(e)),{options:a}=Ne(av),o=C(()=>({[Jm(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[Jm(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Bre(t.default(n));return e.custom?l:We("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),Dre=Hre;function Fre(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 Kre(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!za(o)||o.length!==a.length||a.some((l,r)=>l!==o[r]))return!1}return!0}function Zm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jm=(e,t,n)=>e??t??n,Wre=P({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Ne(H0),o=C(()=>e.route||a.value),l=Ne(Gm,0),r=C(()=>{let c=s(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),i=C(()=>o.value.matched[r.value]);ft(Gm,C(()=>r.value+1)),ft(zre,i),ft(H0,o);const u=z();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||!Qr(d,p)||!v)&&(d.enterCallbacks[f]||[]).forEach(h=>h(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=i.value,v=f&&f.components[d];if(!v)return Qm(n.default,{Component:v,route:c});const p=f.props[d],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,y=We(v,Dt({},m,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return Qm(n.default,{Component:y,route:c})||y}}});function Qm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jre=Wre;function qre(e){const t=Ire(e.routes,e),n=e.parseQuery||Lre,a=e.stringifyQuery||Ym,o=e.history,l=ks(),r=ks(),i=ks(),u=Ht(Xo);let c=Xo;vr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=hf.bind(null,W=>""+W),f=hf.bind(null,are),v=hf.bind(null,ki);function p(W,ae){let le,be;return tb(W)?(le=t.getRecordMatcher(W),be=ae):be=W,t.addRoute(be,le)}function m(W){const ae=t.getRecordMatcher(W);ae&&t.removeRoute(ae)}function h(){return t.getRoutes().map(W=>W.record)}function y(W){return!!t.getRecordMatcher(W)}function g(W,ae){if(ae=Dt({},ae||u.value),typeof W=="string"){const ie=mf(n,W,ae.path),pe=t.resolve({path:ie.path},ae),ge=o.createHref(ie.fullPath);return Dt(ie,pe,{params:v(pe.params),hash:ki(ie.hash),redirectedFrom:void 0,href:ge})}let le;if(W.path!=null)le=Dt({},W,{path:mf(n,W.path,ae.path).path});else{const ie=Dt({},W.params);for(const pe in ie)ie[pe]==null&&delete ie[pe];le=Dt({},W,{params:f(ie)}),ae.params=f(ae.params)}const be=t.resolve(le,ae),me=W.hash||"";be.params=d(v(be.params));const D=rre(a,Dt({},W,{hash:ere(me),path:be.path})),Y=o.createHref(D);return Dt({fullPath:D,hash:me,query:a===Ym?Vre(W.query):W.query||{}},be,{redirectedFrom:void 0,href:Y})}function E(W){return typeof W=="string"?mf(n,W,u.value.path):Dt({},W)}function _(W,ae){if(c!==W)return es(8,{from:ae,to:W})}function b(W){return N(W)}function S(W){return b(Dt(E(W),{replace:!0}))}function k(W){const ae=W.matched[W.matched.length-1];if(ae&&ae.redirect){const{redirect:le}=ae;let be=typeof le=="function"?le(W):le;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=E(be):{path:be},be.params={}),Dt({query:W.query,hash:W.hash,params:be.path!=null?{}:W.params},be)}}function N(W,ae){const le=c=g(W),be=u.value,me=W.state,D=W.force,Y=W.replace===!0,ie=k(le);if(ie)return N(Dt(E(ie),{state:typeof ie=="object"?Dt({},me,ie.state):me,force:D,replace:Y}),ae||le);const pe=le;pe.redirectedFrom=ae;let ge;return!D&&sre(a,be,le)&&(ge=es(16,{to:pe,from:be}),j(be,be,!0,!1)),(ge?Promise.resolve(ge):$(pe,be)).catch(de=>ho(de)?ho(de,2)?de:X(de):L(de,pe,be)).then(de=>{if(de){if(ho(de,2))return N(Dt({replace:Y},E(de.to),{state:typeof de.to=="object"?Dt({},me,de.to.state):me,force:D}),ae||pe)}else de=A(pe,be,!0,Y,me);return V(pe,be,de),de})}function I(W,ae){const le=_(W,ae);return le?Promise.reject(le):Promise.resolve()}function T(W){const ae=re.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(W):W()}function $(W,ae){let le;const[be,me,D]=Ure(W,ae);le=gf(be.reverse(),"beforeRouteLeave",W,ae);for(const ie of be)ie.leaveGuards.forEach(pe=>{le.push(al(pe,W,ae))});const Y=I.bind(null,W,ae);return le.push(Y),ce(le).then(()=>{le=[];for(const ie of l.list())le.push(al(ie,W,ae));return le.push(Y),ce(le)}).then(()=>{le=gf(me,"beforeRouteUpdate",W,ae);for(const ie of me)ie.updateGuards.forEach(pe=>{le.push(al(pe,W,ae))});return le.push(Y),ce(le)}).then(()=>{le=[];for(const ie of D)if(ie.beforeEnter)if(za(ie.beforeEnter))for(const pe of ie.beforeEnter)le.push(al(pe,W,ae));else le.push(al(ie.beforeEnter,W,ae));return le.push(Y),ce(le)}).then(()=>(W.matched.forEach(ie=>ie.enterCallbacks={}),le=gf(D,"beforeRouteEnter",W,ae,T),le.push(Y),ce(le))).then(()=>{le=[];for(const ie of r.list())le.push(al(ie,W,ae));return le.push(Y),ce(le)}).catch(ie=>ho(ie,8)?ie:Promise.reject(ie))}function V(W,ae,le){i.list().forEach(be=>T(()=>be(W,ae,le)))}function A(W,ae,le,be,me){const D=_(W,ae);if(D)return D;const Y=ae===Xo,ie=vr?history.state:{};le&&(be||Y?o.replace(W.fullPath,Dt({scroll:Y&&ie&&ie.scroll},me)):o.push(W.fullPath,me)),u.value=W,j(W,ae,le,Y),X()}let K;function U(){K||(K=o.listen((W,ae,le)=>{if(!se.listening)return;const be=g(W),me=k(be);if(me){N(Dt(me,{replace:!0,force:!0}),be).catch(qs);return}c=be;const D=u.value;vr&&hre(Bm(D.fullPath,le.delta),Sd()),$(be,D).catch(Y=>ho(Y,12)?Y:ho(Y,2)?(N(Dt(E(Y.to),{force:!0}),be).then(ie=>{ho(ie,20)&&!le.delta&&le.type===Ei.pop&&o.go(-1,!1)}).catch(qs),Promise.reject()):(le.delta&&o.go(-le.delta,!1),L(Y,be,D))).then(Y=>{Y=Y||A(be,D,!1),Y&&(le.delta&&!ho(Y,8)?o.go(-le.delta,!1):le.type===Ei.pop&&ho(Y,20)&&o.go(-1,!1)),V(be,D,Y)}).catch(qs)}))}let B=ks(),R=ks(),F;function L(W,ae,le){X(W);const be=R.list();return be.length?be.forEach(me=>me(W,ae,le)):console.error(W),Promise.reject(W)}function H(){return F&&u.value!==Xo?Promise.resolve():new Promise((W,ae)=>{B.add([W,ae])})}function X(W){return F||(F=!W,U(),B.list().forEach(([ae,le])=>W?le(W):ae()),B.reset()),W}function j(W,ae,le,be){const{scrollBehavior:me}=e;if(!vr||!me)return Promise.resolve();const D=!le&&mre(Bm(W.fullPath,0))||(be||!le)&&history.state&&history.state.scroll||null;return Le().then(()=>me(W,ae,D)).then(Y=>Y&&vre(Y)).catch(Y=>L(Y,W,ae))}const ee=W=>o.go(W);let q;const re=new Set,se={currentRoute:u,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:y,getRoutes:h,resolve:g,options:e,push:b,replace:S,go:ee,back:()=>ee(-1),forward:()=>ee(1),beforeEach:l.add,beforeResolve:r.add,afterEach:i.add,onError:R.add,isReady:H,install(W){const ae=this;W.component("RouterLink",Dre),W.component("RouterView",jre),W.config.globalProperties.$router=ae,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>s(u)}),vr&&!q&&u.value===Xo&&(q=!0,b(o.location).catch(me=>{}));const le={};for(const me in Xo)Object.defineProperty(le,me,{get:()=>u.value[me],enumerable:!0});W.provide(av,ae),W.provide(lb,G0(le)),W.provide(H0,u);const be=W.unmount;re.add(W),W.unmount=function(){re.delete(W),re.size<1&&(c=Xo,K&&K(),K=null,u.value=Xo,q=!1,F=!1),be()}}};function ce(W){return W.reduce((ae,le)=>ae.then(()=>T(le)),Promise.resolve())}return se}function Ure(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;r<l;r++){const i=t.matched[r];i&&(e.matched.find(c=>Qr(c,i))?a.push(i):n.push(i));const u=e.matched[r];u&&(t.matched.find(c=>Qr(c,u))||o.push(u))}return[n,a,o]}const Yre="modulepreload",Gre=function(e){return"/"+e},eg={},tg=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),i=r?.nonce||r?.getAttribute("nonce");o=u(n.map(c=>{if(c=Gre(c),c in eg)return;eg[c]=!0;const d=c.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const v=document.createElement("link");if(v.rel=d?"stylesheet":Yre,d||(v.as="script"),v.crossOrigin="",v.href=c,i&&v.setAttribute("nonce",i),document.head.appendChild(v),d)return new Promise((p,m)=>{v.addEventListener("load",p),v.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function l(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return o.then(r=>{for(const i of r||[])i.status==="rejected"&&l(i.reason);return t().catch(l)})},Xre=[{path:"/",redirect:"/proxy"},{path:"/dashboard",name:"Dashboard",component:()=>tg(()=>import("./index-_jG9n0U8.js"),__vite__mapDeps([0,1]))},{path:"/proxy",name:"Proxy",component:()=>tg(()=>import("./index-eLDUQSKK.js"),__vite__mapDeps([2,3]))}],Zre=qre({history:wre(),routes:Xre}),kd=M4(A5);for(const[e,t]of Object.entries(mL))kd.component(e,t);kd.use(Kle);kd.use(Zre);kd.mount("#app");export{Be as F,I5 as _,G as a,it as b,M as c,x as d,kt as e,C as f,nt as g,fe as h,ue as i,oe as j,vt as k,pt as l,w as o,z as r,Ee as t,Z as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as C,r as d,c as N,o as D,a as e,w as a,b as l,d as t,t as i}from"./index-
|
|
1
|
+
import{_ as C,r as d,c as N,o as D,a as e,w as a,b as l,d as t,t as i}from"./index-CR2wJXtr.js";const R={class:"dashboard-container"},S={class:"card-header"},h={class:"card-header"},z={class:"stat-value"},E={class:"card-header"},I={class:"stat-value"},P={class:"card-header"},T={class:"stat-value"},U={slot:"header",class:"card-header"},j={class:"chart-container"},A={__name:"index",setup(F){const m=d(128),v=d(35.6),f=d(99.8),p=d("today"),g=d([{domain:"api.example.com",requests:12543,percentage:"45.2%"},{domain:"www.example.com",requests:8762,percentage:"31.4%"},{domain:"static.example.com",requests:6321,percentage:"22.8%"},{domain:"admin.example.com",requests:1532,percentage:"5.5%"}]);return(G,s)=>{const b=l("monitor"),c=l("el-icon"),o=l("el-card"),n=l("el-col"),x=l("connection"),w=l("refresh-left"),q=l("success"),u=l("el-row"),r=l("el-option"),y=l("el-select"),V=l("el-progress"),_=l("el-table-column"),k=l("el-table");return D(),N("div",R,[e(u,{gutter:20},{default:a(()=>[e(n,{span:6},{default:a(()=>[e(o,{class:"stat-card"},{default:a(()=>[t("div",S,[e(c,{class:"card-icon"},{default:a(()=>[e(b)]),_:1}),s[1]||(s[1]=t("span",null,"服务器状态",-1))]),s[2]||(s[2]=t("div",{class:"stat-value"},"运行中",-1)),s[3]||(s[3]=t("div",{class:"stat-desc"},"Nginx 1.23.3",-1))]),_:1,__:[2,3]})]),_:1}),e(n,{span:6},{default:a(()=>[e(o,{class:"stat-card"},{default:a(()=>[t("div",h,[e(c,{class:"card-icon"},{default:a(()=>[e(x)]),_:1}),s[4]||(s[4]=t("span",null,"活跃连接",-1))]),t("div",z,i(m.value),1),s[5]||(s[5]=t("div",{class:"stat-desc"},"较昨日 +12%",-1))]),_:1,__:[5]})]),_:1}),e(n,{span:6},{default:a(()=>[e(o,{class:"stat-card"},{default:a(()=>[t("div",E,[e(c,{class:"card-icon"},{default:a(()=>[e(w)]),_:1}),s[6]||(s[6]=t("span",null,"请求/秒",-1))]),t("div",I,i(v.value),1),s[7]||(s[7]=t("div",{class:"stat-desc"},"较昨日 +5%",-1))]),_:1,__:[7]})]),_:1}),e(n,{span:6},{default:a(()=>[e(o,{class:"stat-card"},{default:a(()=>[t("div",P,[e(c,{class:"card-icon"},{default:a(()=>[e(q)]),_:1}),s[8]||(s[8]=t("span",null,"成功率",-1))]),t("div",T,i(f.value)+"%",1),s[9]||(s[9]=t("div",{class:"stat-desc"},"较昨日 -1%",-1))]),_:1,__:[9]})]),_:1})]),_:1}),e(u,{gutter:20,style:{"margin-top":"20px"}},{default:a(()=>[e(n,{span:16},{default:a(()=>[e(o,null,{default:a(()=>[t("div",U,[s[10]||(s[10]=t("span",null,"请求趋势",-1)),e(y,{modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=B=>p.value=B),size:"small",style:{"margin-left":"10px"}},{default:a(()=>[e(r,{label:"今日",value:"today"}),e(r,{label:"本周",value:"week"}),e(r,{label:"本月",value:"month"})]),_:1},8,["modelValue"])]),t("div",j,[e(V,{percentage:65,status:"success"}),s[11]||(s[11]=t("div",{class:"chart-placeholder"},"请求趋势图表将显示在这里",-1))])]),_:1})]),_:1}),e(n,{span:8},{default:a(()=>[e(o,null,{default:a(()=>[s[12]||(s[12]=t("div",{slot:"header",class:"card-header"},[t("span",null,"Top 访问域名")],-1)),e(k,{data:g.value},{default:a(()=>[e(_,{prop:"domain",label:"域名"}),e(_,{prop:"requests",label:"请求数"}),e(_,{prop:"percentage",label:"占比"})]),_:1},8,["data"])]),_:1,__:[12]})]),_:1})]),_:1})])}}},J=C(A,[["__scopeId","data-v-c33ec8b9"]]);export{J as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{_ as Vt,r as V,e as jt,f as qt,g as It,h as $t,c as _e,o as re,a as g,w as _,b as C,i as De,j as Ve,d as $,F as Ht,k as Mt,l as F,t as je}from"./index-DXjutdrs.js";function Ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:zt}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:pe,toStringTag:et}=Symbol,me=(e=>t=>{const n=zt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=e=>(e=e.toLowerCase(),t=>me(t)===e),he=e=>t=>typeof t===e,{isArray:ee}=Array,oe=he("undefined");function Jt(e){return e!==null&&!oe(e)&&e.constructor!==null&&!oe(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tt=q("ArrayBuffer");function Wt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tt(e.buffer),t}const Kt=he("string"),L=he("function"),nt=he("number"),ye=e=>e!==null&&typeof e=="object",Xt=e=>e===!0||e===!1,le=e=>{if(me(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(et in e)&&!(pe in e)},Gt=q("Date"),Qt=q("File"),Zt=q("Blob"),Yt=q("FileList"),en=e=>ye(e)&&L(e.pipe),tn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||L(e.append)&&((t=me(e))==="formdata"||t==="object"&&L(e.toString)&&e.toString()==="[object FormData]"))},nn=q("URLSearchParams"),[rn,sn,on,an]=["ReadableStream","Request","Response","Headers"].map(q),ln=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ee(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function rt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,st=e=>!oe(e)&&e!==Q;function Se(){const{caseless:e}=st(this)&&this||{},t={},n=(r,s)=>{const o=e&&rt(t,s)||s;le(t[o])&&le(r)?t[o]=Se(t[o],r):le(r)?t[o]=Se({},r):ee(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ie(arguments[r],n);return t}const cn=(e,t,n,{allOwnKeys:r}={})=>(ie(t,(s,o)=>{n&&L(s)?e[o]=Ye(s,n):e[o]=s},{allOwnKeys:r}),e),un=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},fn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mn=e=>{if(!e)return null;if(ee(e))return e;let t=e.length;if(!nt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),yn=(e,t)=>{const r=(e&&e[pe]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},gn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wn=q("HTMLFormElement"),bn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),qe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_n=q("RegExp"),ot=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ie(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},xn=e=>{ot(e,(t,n)=>{if(L(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(L(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},En=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return ee(e)?r(e):r(String(e).split(t)),n},Rn=()=>{},Sn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function An(e){return!!(e&&L(e.append)&&e[et]==="FormData"&&e[pe])}const On=e=>{const t=new Array(10),n=(r,s)=>{if(ye(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=ee(r)?[]:{};return ie(r,(i,l)=>{const d=n(i,s+1);!oe(d)&&(o[l]=d)}),t[s]=void 0,o}}return r};return n(e,0)},Tn=q("AsyncFunction"),Cn=e=>e&&(ye(e)||L(e))&&L(e.then)&&L(e.catch),it=((e,t)=>e?setImmediate:t?((n,r)=>(Q.addEventListener("message",({source:s,data:o})=>{s===Q&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",L(Q.postMessage)),vn=typeof queueMicrotask<"u"?queueMicrotask.bind(Q):typeof process<"u"&&process.nextTick||it,Pn=e=>e!=null&&L(e[pe]),a={isArray:ee,isArrayBuffer:tt,isBuffer:Jt,isFormData:tn,isArrayBufferView:Wt,isString:Kt,isNumber:nt,isBoolean:Xt,isObject:ye,isPlainObject:le,isReadableStream:rn,isRequest:sn,isResponse:on,isHeaders:an,isUndefined:oe,isDate:Gt,isFile:Qt,isBlob:Zt,isRegExp:_n,isFunction:L,isStream:en,isURLSearchParams:nn,isTypedArray:hn,isFileList:Yt,forEach:ie,merge:Se,extend:cn,trim:ln,stripBOM:un,inherits:dn,toFlatObject:fn,kindOf:me,kindOfTest:q,endsWith:pn,toArray:mn,forEachEntry:yn,matchAll:gn,isHTMLForm:wn,hasOwnProperty:qe,hasOwnProp:qe,reduceDescriptors:ot,freezeMethods:xn,toObjectSet:En,toCamelCase:bn,noop:Rn,toFiniteNumber:Sn,findKey:rt,global:Q,isContextDefined:st,isSpecCompliantForm:An,toJSONObject:On,isAsyncFn:Tn,isThenable:Cn,setImmediate:it,asap:vn,isIterable:Pn};function b(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const at=b.prototype,lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lt[e]={value:e}});Object.defineProperties(b,lt);Object.defineProperty(at,"isAxiosError",{value:!0});b.from=(e,t,n,r,s,o)=>{const i=Object.create(at);return a.toFlatObject(e,i,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),b.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Nn=null;function Ae(e){return a.isPlainObject(e)||a.isArray(e)}function ct(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ie(e,t,n){return e?e.concat(t).map(function(s,o){return s=ct(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Un(e){return a.isArray(e)&&!e.some(Ae)}const kn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ge(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,y){return!a.isUndefined(y[w])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!d&&a.isBlob(h))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?d&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,w,y){let R=h;if(h&&!y&&typeof h=="object"){if(a.endsWith(w,"{}"))w=r?w:w.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&Un(h)||(a.isFileList(h)||a.endsWith(w,"[]"))&&(R=a.toArray(h)))return w=ct(w),R.forEach(function(T,j){!(a.isUndefined(T)||T===null)&&t.append(i===!0?Ie([w],j,o):i===null?w:w+"[]",c(T))}),!1}return Ae(h)?!0:(t.append(Ie(y,w,o),c(h)),!1)}const m=[],E=Object.assign(kn,{defaultVisitor:u,convertValue:c,isVisitable:Ae});function S(h,w){if(!a.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));m.push(h),a.forEach(h,function(R,A){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(A)?A.trim():A,w,E))===!0&&S(R,w?w.concat(A):[A])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function $e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ne(e,t){this._pairs=[],e&&ge(e,this,t)}const ut=Ne.prototype;ut.append=function(t,n){this._pairs.push([t,n])};ut.toString=function(t){const n=t?function(r){return t.call(this,r,$e)}:$e;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dt(e,t,n){if(!t)return e;const r=n&&n.encode||Fn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Ne(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class He{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ln=typeof URLSearchParams<"u"?URLSearchParams:Ne,Bn=typeof FormData<"u"?FormData:null,Dn=typeof Blob<"u"?Blob:null,Vn={isBrowser:!0,classes:{URLSearchParams:Ln,FormData:Bn,Blob:Dn},protocols:["http","https","file","blob","url","data"]},Ue=typeof window<"u"&&typeof document<"u",Oe=typeof navigator=="object"&&navigator||void 0,jn=Ue&&(!Oe||["ReactNative","NativeScript","NS"].indexOf(Oe.product)<0),qn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",In=Ue&&window.location.href||"http://localhost",$n=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:jn,hasStandardBrowserWebWorkerEnv:qn,navigator:Oe,origin:In},Symbol.toStringTag,{value:"Module"})),N={...$n,...Vn};function Hn(e,t){return ge(e,new N.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return N.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Mn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function pt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=zn(s[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Mn(r),s,n,0)}),n}return null}function Jn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ae={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(pt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Hn(t,this.formSerializer).toString();if((l=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ge(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Jn(t)):t}],transformResponse:[function(t){const n=this.transitional||ae.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?b.from(l,b.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ae.headers[e]={}});const Wn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
1
|
+
import{_ as Vt,r as V,e as jt,f as qt,g as It,h as $t,c as _e,o as re,a as g,w as _,b as C,i as De,j as Ve,d as $,F as Ht,k as Mt,l as F,t as je}from"./index-CR2wJXtr.js";function Ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:zt}=Object.prototype,{getPrototypeOf:Pe}=Object,{iterator:pe,toStringTag:et}=Symbol,me=(e=>t=>{const n=zt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),q=e=>(e=e.toLowerCase(),t=>me(t)===e),he=e=>t=>typeof t===e,{isArray:ee}=Array,oe=he("undefined");function Jt(e){return e!==null&&!oe(e)&&e.constructor!==null&&!oe(e.constructor)&&L(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const tt=q("ArrayBuffer");function Wt(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&tt(e.buffer),t}const Kt=he("string"),L=he("function"),nt=he("number"),ye=e=>e!==null&&typeof e=="object",Xt=e=>e===!0||e===!1,le=e=>{if(me(e)!=="object")return!1;const t=Pe(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(et in e)&&!(pe in e)},Gt=q("Date"),Qt=q("File"),Zt=q("Blob"),Yt=q("FileList"),en=e=>ye(e)&&L(e.pipe),tn=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||L(e.append)&&((t=me(e))==="formdata"||t==="object"&&L(e.toString)&&e.toString()==="[object FormData]"))},nn=q("URLSearchParams"),[rn,sn,on,an]=["ReadableStream","Request","Response","Headers"].map(q),ln=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ie(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),ee(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let l;for(r=0;r<i;r++)l=o[r],t.call(null,e[l],l,e)}}function rt(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Q=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,st=e=>!oe(e)&&e!==Q;function Se(){const{caseless:e}=st(this)&&this||{},t={},n=(r,s)=>{const o=e&&rt(t,s)||s;le(t[o])&&le(r)?t[o]=Se(t[o],r):le(r)?t[o]=Se({},r):ee(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ie(arguments[r],n);return t}const cn=(e,t,n,{allOwnKeys:r}={})=>(ie(t,(s,o)=>{n&&L(s)?e[o]=Ye(s,n):e[o]=s},{allOwnKeys:r}),e),un=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dn=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},fn=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&Pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},pn=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mn=e=>{if(!e)return null;if(ee(e))return e;let t=e.length;if(!nt(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},hn=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pe(Uint8Array)),yn=(e,t)=>{const r=(e&&e[pe]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},gn=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wn=q("HTMLFormElement"),bn=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),qe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_n=q("RegExp"),ot=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ie(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},xn=e=>{ot(e,(t,n)=>{if(L(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(L(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},En=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return ee(e)?r(e):r(String(e).split(t)),n},Rn=()=>{},Sn=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function An(e){return!!(e&&L(e.append)&&e[et]==="FormData"&&e[pe])}const On=e=>{const t=new Array(10),n=(r,s)=>{if(ye(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=ee(r)?[]:{};return ie(r,(i,l)=>{const d=n(i,s+1);!oe(d)&&(o[l]=d)}),t[s]=void 0,o}}return r};return n(e,0)},Tn=q("AsyncFunction"),Cn=e=>e&&(ye(e)||L(e))&&L(e.then)&&L(e.catch),it=((e,t)=>e?setImmediate:t?((n,r)=>(Q.addEventListener("message",({source:s,data:o})=>{s===Q&&o===n&&r.length&&r.shift()()},!1),s=>{r.push(s),Q.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",L(Q.postMessage)),vn=typeof queueMicrotask<"u"?queueMicrotask.bind(Q):typeof process<"u"&&process.nextTick||it,Pn=e=>e!=null&&L(e[pe]),a={isArray:ee,isArrayBuffer:tt,isBuffer:Jt,isFormData:tn,isArrayBufferView:Wt,isString:Kt,isNumber:nt,isBoolean:Xt,isObject:ye,isPlainObject:le,isReadableStream:rn,isRequest:sn,isResponse:on,isHeaders:an,isUndefined:oe,isDate:Gt,isFile:Qt,isBlob:Zt,isRegExp:_n,isFunction:L,isStream:en,isURLSearchParams:nn,isTypedArray:hn,isFileList:Yt,forEach:ie,merge:Se,extend:cn,trim:ln,stripBOM:un,inherits:dn,toFlatObject:fn,kindOf:me,kindOfTest:q,endsWith:pn,toArray:mn,forEachEntry:yn,matchAll:gn,isHTMLForm:wn,hasOwnProperty:qe,hasOwnProp:qe,reduceDescriptors:ot,freezeMethods:xn,toObjectSet:En,toCamelCase:bn,noop:Rn,toFiniteNumber:Sn,findKey:rt,global:Q,isContextDefined:st,isSpecCompliantForm:An,toJSONObject:On,isAsyncFn:Tn,isThenable:Cn,setImmediate:it,asap:vn,isIterable:Pn};function b(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}a.inherits(b,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.status}}});const at=b.prototype,lt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{lt[e]={value:e}});Object.defineProperties(b,lt);Object.defineProperty(at,"isAxiosError",{value:!0});b.from=(e,t,n,r,s,o)=>{const i=Object.create(at);return a.toFlatObject(e,i,function(d){return d!==Error.prototype},l=>l!=="isAxiosError"),b.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Nn=null;function Ae(e){return a.isPlainObject(e)||a.isArray(e)}function ct(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function Ie(e,t,n){return e?e.concat(t).map(function(s,o){return s=ct(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Un(e){return a.isArray(e)&&!e.some(Ae)}const kn=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function ge(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,y){return!a.isUndefined(y[w])});const r=n.metaTokens,s=n.visitor||u,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(a.isDate(h))return h.toISOString();if(a.isBoolean(h))return h.toString();if(!d&&a.isBlob(h))throw new b("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(h)||a.isTypedArray(h)?d&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function u(h,w,y){let R=h;if(h&&!y&&typeof h=="object"){if(a.endsWith(w,"{}"))w=r?w:w.slice(0,-2),h=JSON.stringify(h);else if(a.isArray(h)&&Un(h)||(a.isFileList(h)||a.endsWith(w,"[]"))&&(R=a.toArray(h)))return w=ct(w),R.forEach(function(T,j){!(a.isUndefined(T)||T===null)&&t.append(i===!0?Ie([w],j,o):i===null?w:w+"[]",c(T))}),!1}return Ae(h)?!0:(t.append(Ie(y,w,o),c(h)),!1)}const m=[],E=Object.assign(kn,{defaultVisitor:u,convertValue:c,isVisitable:Ae});function S(h,w){if(!a.isUndefined(h)){if(m.indexOf(h)!==-1)throw Error("Circular reference detected in "+w.join("."));m.push(h),a.forEach(h,function(R,A){(!(a.isUndefined(R)||R===null)&&s.call(t,R,a.isString(A)?A.trim():A,w,E))===!0&&S(R,w?w.concat(A):[A])}),m.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return S(e),t}function $e(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ne(e,t){this._pairs=[],e&&ge(e,this,t)}const ut=Ne.prototype;ut.append=function(t,n){this._pairs.push([t,n])};ut.toString=function(t){const n=t?function(r){return t.call(this,r,$e)}:$e;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Fn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dt(e,t,n){if(!t)return e;const r=n&&n.encode||Fn;a.isFunction(n)&&(n={serialize:n});const s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new Ne(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class He{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ln=typeof URLSearchParams<"u"?URLSearchParams:Ne,Bn=typeof FormData<"u"?FormData:null,Dn=typeof Blob<"u"?Blob:null,Vn={isBrowser:!0,classes:{URLSearchParams:Ln,FormData:Bn,Blob:Dn},protocols:["http","https","file","blob","url","data"]},Ue=typeof window<"u"&&typeof document<"u",Oe=typeof navigator=="object"&&navigator||void 0,jn=Ue&&(!Oe||["ReactNative","NativeScript","NS"].indexOf(Oe.product)<0),qn=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",In=Ue&&window.location.href||"http://localhost",$n=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ue,hasStandardBrowserEnv:jn,hasStandardBrowserWebWorkerEnv:qn,navigator:Oe,origin:In},Symbol.toStringTag,{value:"Module"})),N={...$n,...Vn};function Hn(e,t){return ge(e,new N.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return N.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Mn(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function zn(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function pt(e){function t(n,r,s,o){let i=n[o++];if(i==="__proto__")return!0;const l=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=zn(s[i])),!l)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Mn(r),s,n,0)}),n}return null}function Jn(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ae={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s?JSON.stringify(pt(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t)||a.isReadableStream(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Hn(t,this.formSerializer).toString();if((l=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return ge(l?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Jn(t)):t}],transformResponse:[function(t){const n=this.transitional||ae.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(a.isResponse(t)||a.isReadableStream(t))return t;if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?b.from(l,b.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],e=>{ae.headers[e]={}});const Wn=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kn=e=>{const t={};let n,r,s;return e&&e.split(`
|
|
2
2
|
`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Wn[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Me=Symbol("internals");function se(e){return e&&String(e).trim().toLowerCase()}function ce(e){return e===!1||e==null?e:a.isArray(e)?e.map(ce):String(e)}function Xn(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Gn=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function xe(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function Qn(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Zn(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}let B=class{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,d,c){const u=se(d);if(!u)throw new Error("header name must be a non-empty string");const m=a.findKey(s,u);(!m||s[m]===void 0||c===!0||c===void 0&&s[m]!==!1)&&(s[m||d]=ce(l))}const i=(l,d)=>a.forEach(l,(c,u)=>o(c,u,d));if(a.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(a.isString(t)&&(t=t.trim())&&!Gn(t))i(Kn(t),n);else if(a.isObject(t)&&a.isIterable(t)){let l={},d,c;for(const u of t){if(!a.isArray(u))throw TypeError("Object iterator must return a key-value pair");l[c=u[0]]=(d=l[c])?a.isArray(d)?[...d,u[1]]:[d,u[1]]:u[1]}i(l,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=se(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Xn(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=se(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||xe(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=se(i),i){const l=a.findKey(r,i);l&&(!n||xe(r,r[l],l,n))&&(delete r[l],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||xe(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=ce(s),delete n[o];return}const l=t?Qn(o):String(o).trim();l!==o&&delete n[o],n[l]=ce(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
3
3
|
`)}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 r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[Me]=this[Me]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=se(i);r[l]||(Zn(s,i),r[l]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}};B.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(B.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});a.freezeMethods(B);function Ee(e,t){const n=this||ae,r=t||n,s=B.from(r.headers);let o=r.data;return a.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function mt(e){return!!(e&&e.__CANCEL__)}function te(e,t,n){b.call(this,e??"canceled",b.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(te,b,{__CANCEL__:!0});function ht(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new b("Request failed with status code "+n.status,[b.ERR_BAD_REQUEST,b.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Yn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function er(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),u=r[o];i||(i=c),n[s]=d,r[s]=c;let m=o,E=0;for(;m!==s;)E+=n[m++],m=m%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const S=u&&c-u;return S?Math.round(E*1e3/S):void 0}}function tr(e,t){let n=0,r=1e3/t,s,o;const i=(c,u=Date.now())=>{n=u,s=null,o&&(clearTimeout(o),o=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),m=u-n;m>=r?i(c,u):(s=c,o||(o=setTimeout(()=>{o=null,i(s)},r-m)))},()=>s&&i(s)]}const de=(e,t,n=3)=>{let r=0;const s=er(50,250);return tr(o=>{const i=o.loaded,l=o.lengthComputable?o.total:void 0,d=i-r,c=s(d),u=i<=l;r=i;const m={loaded:i,total:l,progress:l?i/l:void 0,bytes:d,rate:c||void 0,estimated:c&&l&&u?(l-i)/c:void 0,event:o,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},ze=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Je=e=>(...t)=>a.asap(()=>e(...t)),nr=N.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,N.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(N.origin),N.navigator&&/(msie|trident)/i.test(N.navigator.userAgent)):()=>!0,rr=N.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];a.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),a.isString(r)&&i.push("path="+r),a.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function sr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function or(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yt(e,t,n){let r=!sr(t);return e&&(r||n==!1)?or(e,t):t}const We=e=>e instanceof B?{...e}:e;function Y(e,t){t=t||{};const n={};function r(c,u,m,E){return a.isPlainObject(c)&&a.isPlainObject(u)?a.merge.call({caseless:E},c,u):a.isPlainObject(u)?a.merge({},u):a.isArray(u)?u.slice():u}function s(c,u,m,E){if(a.isUndefined(u)){if(!a.isUndefined(c))return r(void 0,c,m,E)}else return r(c,u,m,E)}function o(c,u){if(!a.isUndefined(u))return r(void 0,u)}function i(c,u){if(a.isUndefined(u)){if(!a.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function l(c,u,m){if(m in t)return r(c,u);if(m in e)return r(void 0,c)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(c,u,m)=>s(We(c),We(u),m,!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(u){const m=d[u]||s,E=m(e[u],t[u],u);a.isUndefined(E)&&m!==l||(n[u]=E)}),n}const gt=e=>{const t=Y({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:o,headers:i,auth:l}=t;t.headers=i=B.from(i),t.url=dt(yt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&i.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let d;if(a.isFormData(n)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((d=i.getContentType())!==!1){const[c,...u]=d?d.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([c||"multipart/form-data",...u].join("; "))}}if(N.hasStandardBrowserEnv&&(r&&a.isFunction(r)&&(r=r(t)),r||r!==!1&&nr(t.url))){const c=s&&o&&rr.read(o);c&&i.set(s,c)}return t},ir=typeof XMLHttpRequest<"u",ar=ir&&function(e){return new Promise(function(n,r){const s=gt(e);let o=s.data;const i=B.from(s.headers).normalize();let{responseType:l,onUploadProgress:d,onDownloadProgress:c}=s,u,m,E,S,h;function w(){S&&S(),h&&h(),s.cancelToken&&s.cancelToken.unsubscribe(u),s.signal&&s.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(s.method.toUpperCase(),s.url,!0),y.timeout=s.timeout;function R(){if(!y)return;const T=B.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:T,config:e,request:y};ht(function(U){n(U),w()},function(U){r(U),w()},P),y=null}"onloadend"in y?y.onloadend=R:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(R)},y.onabort=function(){y&&(r(new b("Request aborted",b.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new b("Network Error",b.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let j=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const P=s.transitional||ft;s.timeoutErrorMessage&&(j=s.timeoutErrorMessage),r(new b(j,P.clarifyTimeoutError?b.ETIMEDOUT:b.ECONNABORTED,e,y)),y=null},o===void 0&&i.setContentType(null),"setRequestHeader"in y&&a.forEach(i.toJSON(),function(j,P){y.setRequestHeader(P,j)}),a.isUndefined(s.withCredentials)||(y.withCredentials=!!s.withCredentials),l&&l!=="json"&&(y.responseType=s.responseType),c&&([E,h]=de(c,!0),y.addEventListener("progress",E)),d&&y.upload&&([m,S]=de(d),y.upload.addEventListener("progress",m),y.upload.addEventListener("loadend",S)),(s.cancelToken||s.signal)&&(u=T=>{y&&(r(!T||T.type?new te(null,e,y):T),y.abort(),y=null)},s.cancelToken&&s.cancelToken.subscribe(u),s.signal&&(s.signal.aborted?u():s.signal.addEventListener("abort",u)));const A=Yn(s.url);if(A&&N.protocols.indexOf(A)===-1){r(new b("Unsupported protocol "+A+":",b.ERR_BAD_REQUEST,e));return}y.send(o||null)})},lr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,s;const o=function(c){if(!s){s=!0,l();const u=c instanceof Error?c:this.reason;r.abort(u instanceof b?u:new te(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,o(new b(`timeout ${t} of ms exceeded`,b.ETIMEDOUT))},t);const l=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>c.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>a.asap(l),d}},cr=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,s;for(;r<n;)s=r+t,yield e.slice(r,s),r=s},ur=async function*(e,t){for await(const n of dr(e))yield*cr(n,t)},dr=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Ke=(e,t,n,r)=>{const s=ur(e,t);let o=0,i,l=d=>{i||(i=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:c,value:u}=await s.next();if(c){l(),d.close();return}let m=u.byteLength;if(n){let E=o+=m;n(E)}d.enqueue(new Uint8Array(u))}catch(c){throw l(c),c}},cancel(d){return l(d),s.return()}},{highWaterMark:2})},we=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wt=we&&typeof ReadableStream=="function",fr=we&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),bt=(e,...t)=>{try{return!!e(...t)}catch{return!1}},pr=wt&&bt(()=>{let e=!1;const t=new Request(N.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Xe=64*1024,Te=wt&&bt(()=>a.isReadableStream(new Response("").body)),fe={stream:Te&&(e=>e.body)};we&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fe[t]&&(fe[t]=a.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new b(`Response type '${t}' is not supported`,b.ERR_NOT_SUPPORT,r)})})})(new Response);const mr=async e=>{if(e==null)return 0;if(a.isBlob(e))return e.size;if(a.isSpecCompliantForm(e))return(await new Request(N.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(a.isArrayBufferView(e)||a.isArrayBuffer(e))return e.byteLength;if(a.isURLSearchParams(e)&&(e=e+""),a.isString(e))return(await fr(e)).byteLength},hr=async(e,t)=>{const n=a.toFiniteNumber(e.getContentLength());return n??mr(t)},yr=we&&(async e=>{let{url:t,method:n,data:r,signal:s,cancelToken:o,timeout:i,onDownloadProgress:l,onUploadProgress:d,responseType:c,headers:u,withCredentials:m="same-origin",fetchOptions:E}=gt(e);c=c?(c+"").toLowerCase():"text";let S=lr([s,o&&o.toAbortSignal()],i),h;const w=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let y;try{if(d&&pr&&n!=="get"&&n!=="head"&&(y=await hr(u,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),k;if(a.isFormData(r)&&(k=P.headers.get("content-type"))&&u.setContentType(k),P.body){const[U,W]=ze(y,de(Je(d)));r=Ke(P.body,Xe,U,W)}}a.isString(m)||(m=m?"include":"omit");const R="credentials"in Request.prototype;h=new Request(t,{...E,signal:S,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:R?m:void 0});let A=await fetch(h,E);const T=Te&&(c==="stream"||c==="response");if(Te&&(l||T&&w)){const P={};["status","statusText","headers"].forEach(K=>{P[K]=A[K]});const k=a.toFiniteNumber(A.headers.get("content-length")),[U,W]=l&&ze(k,de(Je(l),!0))||[];A=new Response(Ke(A.body,Xe,U,()=>{W&&W(),w&&w()}),P)}c=c||"text";let j=await fe[a.findKey(fe,c)||"text"](A,e);return!T&&w&&w(),await new Promise((P,k)=>{ht(P,k,{data:j,headers:B.from(A.headers),status:A.status,statusText:A.statusText,config:e,request:h})})}catch(R){throw w&&w(),R&&R.name==="TypeError"&&/Load failed|fetch/i.test(R.message)?Object.assign(new b("Network Error",b.ERR_NETWORK,e,h),{cause:R.cause||R}):b.from(R,R&&R.code,e,h)}}),Ce={http:Nn,xhr:ar,fetch:yr};a.forEach(Ce,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ge=e=>`- ${e}`,gr=e=>a.isFunction(e)||e===null||e===!1,_t={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o<t;o++){n=e[o];let i;if(r=n,!gr(n)&&(r=Ce[(i=String(n)).toLowerCase()],r===void 0))throw new b(`Unknown adapter '${i}'`);if(r)break;s[i||"#"+o]=r}if(!r){const o=Object.entries(s).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since :
|
|
4
4
|
`+o.map(Ge).join(`
|
|
5
5
|
`):" "+Ge(o[0]):"as no adapter specified";throw new b("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ce};function Re(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new te(null,e)}function Qe(e){return Re(e),e.headers=B.from(e.headers),e.data=Ee.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),_t.getAdapter(e.adapter||ae.adapter)(e).then(function(r){return Re(e),r.data=Ee.call(e,e.transformResponse,r),r.headers=B.from(r.headers),r},function(r){return mt(r)||(Re(e),r&&r.response&&(r.response.data=Ee.call(e,e.transformResponse,r.response),r.response.headers=B.from(r.response.headers))),Promise.reject(r)})}const xt="1.10.0",be={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{be[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ze={};be.transitional=function(t,n,r){function s(o,i){return"[Axios v"+xt+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new b(s(i," has been removed"+(n?" in "+n:"")),b.ERR_DEPRECATED);return n&&!Ze[i]&&(Ze[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};be.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function wr(e,t,n){if(typeof e!="object")throw new b("options must be an object",b.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],d=l===void 0||i(l,o,e);if(d!==!0)throw new b("option "+o+" must be "+d,b.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new b("Unknown option "+o,b.ERR_BAD_OPTION)}}const ue={assertOptions:wr,validators:be},H=ue.validators;let Z=class{constructor(t){this.defaults=t||{},this.interceptors={request:new He,response:new He}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
6
|
-
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Y(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ue.assertOptions(r,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ue.assertOptions(s,{encode:H.function,serialize:H.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ue.assertOptions(n,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=B.concat(i,o);const l=[];let d=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(d=d&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});let u,m=0,E;if(!d){const h=[Qe.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),E=h.length,u=Promise.resolve(n);m<E;)u=u.then(h[m++],h[m++]);return u}E=l.length;let S=n;for(m=0;m<E;){const h=l[m++],w=l[m++];try{S=h(S)}catch(y){w.call(this,y);break}}try{u=Qe.call(this,S)}catch(h){return Promise.reject(h)}for(m=0,E=c.length;m<E;)u=u.then(c[m++],c[m++]);return u}getUri(t){t=Y(this.defaults,t);const n=yt(t.baseURL,t.url,t.allowAbsoluteUrls);return dt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){Z.prototype[t]=function(n,r){return this.request(Y(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(Y(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Z.prototype[t]=n(),Z.prototype[t+"Form"]=n(!0)});let br=class Et{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new te(o,i,l),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Et(function(s){t=s}),cancel:t}}};function _r(e){return function(n){return e.apply(null,n)}}function xr(e){return a.isObject(e)&&e.isAxiosError===!0}const ve={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};Object.entries(ve).forEach(([e,t])=>{ve[t]=e});function Rt(e){const t=new Z(e),n=Ye(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Rt(Y(e,s))},n}const O=Rt(ae);O.Axios=Z;O.CanceledError=te;O.CancelToken=br;O.isCancel=mt;O.VERSION=xt;O.toFormData=ge;O.AxiosError=b;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=_r;O.isAxiosError=xr;O.mergeConfig=Y;O.AxiosHeaders=B;O.formToJSON=e=>pt(a.isHTMLForm(e)?new FormData(e):e);O.getAdapter=_t.getAdapter;O.HttpStatusCode=ve;O.default=O;const{Axios:$r,AxiosError:Hr,CanceledError:Mr,isCancel:zr,CancelToken:Jr,VERSION:Wr,all:Kr,Cancel:Xr,isAxiosError:Gr,spread:Qr,toFormData:Zr,AxiosHeaders:Yr,HttpStatusCode:es,formToJSON:ts,getAdapter:ns,mergeConfig:rs}=O,J=O.create({timeout:
|
|
6
|
+
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Y(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ue.assertOptions(r,{silentJSONParsing:H.transitional(H.boolean),forcedJSONParsing:H.transitional(H.boolean),clarifyTimeoutError:H.transitional(H.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:ue.assertOptions(s,{encode:H.function,serialize:H.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ue.assertOptions(n,{baseUrl:H.spelling("baseURL"),withXsrfToken:H.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&a.merge(o.common,o[n.method]);o&&a.forEach(["delete","get","head","post","put","patch","common"],h=>{delete o[h]}),n.headers=B.concat(i,o);const l=[];let d=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(d=d&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const c=[];this.interceptors.response.forEach(function(w){c.push(w.fulfilled,w.rejected)});let u,m=0,E;if(!d){const h=[Qe.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,c),E=h.length,u=Promise.resolve(n);m<E;)u=u.then(h[m++],h[m++]);return u}E=l.length;let S=n;for(m=0;m<E;){const h=l[m++],w=l[m++];try{S=h(S)}catch(y){w.call(this,y);break}}try{u=Qe.call(this,S)}catch(h){return Promise.reject(h)}for(m=0,E=c.length;m<E;)u=u.then(c[m++],c[m++]);return u}getUri(t){t=Y(this.defaults,t);const n=yt(t.baseURL,t.url,t.allowAbsoluteUrls);return dt(n,t.params,t.paramsSerializer)}};a.forEach(["delete","get","head","options"],function(t){Z.prototype[t]=function(n,r){return this.request(Y(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,l){return this.request(Y(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Z.prototype[t]=n(),Z.prototype[t+"Form"]=n(!0)});let br=class Et{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new te(o,i,l),n(r.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=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Et(function(s){t=s}),cancel:t}}};function _r(e){return function(n){return e.apply(null,n)}}function xr(e){return a.isObject(e)&&e.isAxiosError===!0}const ve={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};Object.entries(ve).forEach(([e,t])=>{ve[t]=e});function Rt(e){const t=new Z(e),n=Ye(Z.prototype.request,t);return a.extend(n,Z.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Rt(Y(e,s))},n}const O=Rt(ae);O.Axios=Z;O.CanceledError=te;O.CancelToken=br;O.isCancel=mt;O.VERSION=xt;O.toFormData=ge;O.AxiosError=b;O.Cancel=O.CanceledError;O.all=function(t){return Promise.all(t)};O.spread=_r;O.isAxiosError=xr;O.mergeConfig=Y;O.AxiosHeaders=B;O.formToJSON=e=>pt(a.isHTMLForm(e)?new FormData(e):e);O.getAdapter=_t.getAdapter;O.HttpStatusCode=ve;O.default=O;const{Axios:$r,AxiosError:Hr,CanceledError:Mr,isCancel:zr,CancelToken:Jr,VERSION:Wr,all:Kr,Cancel:Xr,isAxiosError:Gr,spread:Qr,toFormData:Zr,AxiosHeaders:Yr,HttpStatusCode:es,formToJSON:ts,getAdapter:ns,mergeConfig:rs}=O,J=O.create({timeout:5e5});J.interceptors.request.use(e=>e,e=>Promise.reject(e));J.interceptors.response.use(e=>e.data,e=>Promise.reject(e));const Er=async()=>{try{return await J.get("/api/proxy/config")}catch(e){throw e}},Rr=async e=>{try{return await J.post("/api/proxy/config",e)}catch(t){throw t}},Sr=async()=>{try{return await J.post("/api/proxy/test-config")}catch(e){throw e}},Ar=async()=>{try{return await J.post("/api/proxy/reload-config")}catch(e){throw e}},Or=async()=>{try{return await J.post("/api/proxy/start-nginx")}catch(e){throw e}},Tr=async()=>{try{return await J.post("/api/proxy/stop-nginx")}catch(e){throw e}},Cr=async(e,t="access")=>{try{return await J.get("/api/proxy/log",{params:{port:e,type:t}})}catch(n){throw n}},vr={class:"proxy-container"},Pr={class:"card-header"},Nr={class:"header-actions"},Ur={class:"config-content"},kr={class:"proxy-addresses"},Fr={style:{"margin-top":"10px"}},Lr={class:"config-preview"},Br={style:{"margin-bottom":"10px"}},Dr={style:{"margin-left":"20px",color:"#888"}},Vr={__name:"index",setup(e){const t=V(!1),n=V(!1),r=V(!1),s=V(!1),o=V(!1),i=V(!1),l=V(""),d=V(""),c=jt({configPath:"/etc/nginx/conf.d/api.conf",proxyRules:[{title:"端口80的API代理",port:"80",location:"/api/",proxyAddresses:[{url:"http://localhost:8080",comment:"开发环境",isActive:!0},{url:"http://127.0.0.1:8081",comment:"测试环境",isActive:!1}],activeIndex:0,description:"API接口代理",enabled:!0}]}),u=qt(()=>{let f=`# API代理配置文件
|
|
7
7
|
`;return f+=`# 自动生成于 ${new Date().toLocaleString()}
|
|
8
8
|
|
|
9
9
|
`,c.proxyRules.forEach(p=>{p.enabled&&p.proxyAddresses.length>0&&(p.title&&(f+=`# ${p.title}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Vite + Vue</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CR2wJXtr.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/index-Bx3YfIlI.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|