mirror of
https://github.com/fatedier/frp.git
synced 2024-12-14 02:31:21 +01:00
33 lines
334 KiB
JavaScript
33 lines
334 KiB
JavaScript
|
var Gh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var K$=Gh((Mt,Pt)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Pa(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}function et(e){if(fe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Te(r)?Qh(r):et(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(Te(e))return e;if(Pe(e))return e}}const Xh=/;(?![^(]*\))/g,Jh=/:([^]+)/,Zh=/\/\*.*?\*\//gs;function Qh(e){const t={};return e.replace(Zh,"").split(Xh).forEach(n=>{if(n){const r=n.split(Jh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function V(e){let t="";if(Te(e))t=e;else if(fe(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(Pe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ev="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tv=Pa(ev);function yf(e){return!!e||e===""}function nv(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Vs(e[r],t[r]);return n}function Vs(e,t){if(e===t)return!0;let n=Hi(e),r=Hi(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=So(e),r=So(t),n||r)return e===t;if(n=fe(e),r=fe(t),n||r)return n&&r?nv(e,t):!1;if(n=Pe(e),r=Pe(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const l in e){const a=e.hasOwnProperty(l),i=t.hasOwnProperty(l);if(a&&!i||!a&&i||!Vs(e[l],t[l]))return!1}}return String(e)===String(t)}function bf(e,t){return e.findIndex(n=>Vs(n,t))}const Ze=e=>Te(e)?e:e==null?"":fe(e)||Pe(e)&&(e.toString===_f||!we(e.toString))?JSON.stringify(e,wf,2):String(e),wf=(e,t)=>t&&t.__v_isRef?wf(e,t.value):Ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:qs(t)?{[`Set(${t.size})`]:[...t.values()]}:Pe(t)&&!fe(t)&&!Cf(t)?String(t):t,Ge={},$r=[],at=()=>{},rv=()=>!1,ov=/^on[^a-z]/,Us=e=>ov.test(e),Ra=e=>e.startsWith("onUpdate:"),pt=Object.assign,ka=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},sv=Object.prototype.hasOwnProperty,Ae=(e,t)=>sv.call(e,t),fe=Array.isArray,Ar=e=>zo(e)==="[object Map]",qs=e=>zo(e)==="[object Set]",Hi=e=>zo(e)==="[object Date]",we=e=>typeof e=="function",Te=e=>typeof e=="string",So=e=>typeof e=="symbol",Pe=e=>e!==null&&typeof e=="object",Ss=e=>Pe(e)&&we(e.then)&&we(e.catch),_f=Object.prototype.toString,zo=e=>_f.call(e),lv=e=>zo(e).slice(8,-1),Cf=e=>zo(e)==="[object Object]",Ia=e=>Te(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,fs=Pa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ys=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},av=/-(\w)/g,Yt=Ys(e=>e.replace(av,(t,n)=>n?n.toUpperCase():"")),iv=/\B([A-Z])/g,yr=Ys(e=>e.replace(iv,"-$1").toLowerCase()),Gs=Ys(e=>e.charAt(0).toUpperCase()+e.slice(1)),ds=Ys(e=>e?`on${Gs(e)}`:""),xo=(e,t)=>!Object.is(e,t),ps=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},xs=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},uv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cv=e=>{const t=Te(e)?Number(e):NaN;return isNaN(t)?e:t};let zi;const fv=()=>zi||(zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let $t;class dv{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=$t,!t&&$t&&
|
||
|
height:0 !important;
|
||
|
visibility:hidden !important;
|
||
|
${DC()?"":"overflow:hidden !important;"}
|
||
|
position:absolute !important;
|
||
|
z-index:-1000 !important;
|
||
|
top:0 !important;
|
||
|
right:0 !important;
|
||
|
`,_S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function CS(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:_S.map(l=>`${l}:${t.getPropertyValue(l)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function Mc(e,t=1,n){var r;zt||(zt=document.createElement("textarea"),document.body.appendChild(zt));const{paddingSize:o,borderSize:s,boxSizing:l,contextStyle:a}=CS(e);zt.setAttribute("style",`${a};${wS}`),zt.value=e.value||e.placeholder||"";let i=zt.scrollHeight;const u={};l==="border-box"?i=i+s:l==="content-box"&&(i=i-o),zt.value="";const c=zt.scrollHeight-o;if(rt(t)){let f=c*t;l==="border-box"&&(f=f+o+s),i=Math.max(f,i),u.minHeight=`${f}px`}if(rt(n)){let f=c*n;l==="border-box"&&(f=f+o+s),i=Math.min(f,i)}return u.height=`${i}px`,(r=zt.parentNode)==null||r.removeChild(zt),zt=void 0,u}const ES=qe({id:{type:String,default:void 0},size:to,disabled:Boolean,modelValue:{type:Se([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Se([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Kt},prefixIcon:{type:Kt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Se([Object,Array,String]),default:()=>Nn({})}}),SS={[un]:e=>Te(e),input:e=>Te(e),change:e=>Te(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},xS=["role"],TS=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],OS=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],$S=ue({name:"ElInput",inheritAttrs:!1}),AS=ue({...$S,props:ES,emits:SS,setup(e,{expose:t,emit:n}){const r=e,o=qm(),s=ol(),l=$(()=>{const k={};return r.containerRole==="combobox"&&(k["aria-haspopup"]=o["aria-haspopup"],k["aria-owns"]=o["aria-owns"],k["aria-expanded"]=o["aria-expanded"]),k}),a=$(()=>[r.type==="textarea"?b.b():v.b(),v.m(p.value),v.is("disabled",h.value),v.is("exceed",he.value),{[v.b("group")]:s.prepend||s.append,[v.bm("group","append")]:s.append,[v.bm("group","prepend")]:s.prepend,[v.m("prefix")]:s.prefix||r.prefixIcon,[v.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:j.value&&z.value},o.class]),i=$(()=>[v.e("wrapper"),v.is("focus",S.value)]),u=VC({excludeKeys:$(()=>Object.keys(l.value))}),{form:c,formItem:f}=no(),{inputId:d}=hl(r,{formItemContext:f}),p=Kr(),h=qo(),v=Oe("input"),b=Oe("textarea"),m=Pr(),w=Pr(),S=M(!1),y=M(!1),E=M(!1),T=M(!1),C=M(),x=Pr(r.inputStyle),R=$(()=>m.value||w.value),B=$(()=>{var k;return(k=c==null?void 0:c.statusIcon)!=null?k:!1}),I=$(()=>(f==null?void 0:f.validateState)||""),A=$(()=>I.value&&HC[I.value]),D=$(()=>T.value?RC:sC),re=$(()=>[o.style,r.inputStyle]),ee=$(()=>[r.inputStyle,x.value,{resize:r.resize}]),U=$(()=>Fr(r.modelValue)?"":String(r.modelValue)),j=$(()=>r.clearable&&!h.value&&!r.readonly&&!!U.value&&(S.value||y.value)),z=$(()=>r.showPassword&&!h.value&&!r.readonly&&!!U.value&&(!!U.value||
|
||
|
* Checks if an event is supported in the current execution environment.
|
||
|
*
|
||
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
|
* `reset`, `load`, `error`, and `select`.
|
||
|
*
|
||
|
* Borrows from Modernizr.
|
||
|
*
|
||
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
|
* @param {?boolean} capture Check if the capture phase is supported.
|
||
|
* @return {boolean} True if the event is supported.
|
||
|
* @internal
|
||
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
|
*/const Mx=function(e,t){if(e&&e.addEventListener){const n=function(r){const o=Ax(r);t&&Reflect.apply(t,this,[r,o])};e.addEventListener("wheel",n,{passive:!0})}},Px={beforeMount(e,t){Mx(e,t.value)}},fh={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:to,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},dh={[un]:e=>Te(e)||rt(e)||rn(e),change:e=>Te(e)||rt(e)||rn(e)},ro=Symbol("checkboxGroupContextKey"),Rx=({model:e,isChecked:t})=>{const n=Ce(ro,void 0),r=$(()=>{var s,l;const a=(s=n==null?void 0:n.max)==null?void 0:s.value,i=(l=n==null?void 0:n.min)==null?void 0:l.value;return!Lo(a)&&e.value.length>=a&&!t.value||!Lo(i)&&e.value.length<=i&&t.value});return{isDisabled:qo($(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},kx=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:o,isLabeledByFormItem:s})=>{const l=Ce(ro,void 0),{formItem:a}=no(),{emit:i}=Ke();function u(h){var v,b;return h===e.trueLabel||h===!0?(v=e.trueLabel)!=null?v:!0:(b=e.falseLabel)!=null?b:!1}function c(h,v){i("change",u(h),v)}function f(h){if(n.value)return;const v=h.target;i("change",u(v.checked),h)}async function d(h){n.value||!r.value&&!o.value&&s.value&&(h.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await We(),c(t.value,h)))}const p=$(()=>(l==null?void 0:l.validateEvent)||e.validateEvent);return de(()=>e.modelValue,()=>{p.value&&(a==null||a.validate("change").catch(h=>void 0))}),{handleChange:f,onClickRoot:d}},Ix=e=>{const t=M(!1),{emit:n}=Ke(),r=Ce(ro,void 0),o=$(()=>Lo(r)===!1),s=M(!1);return{model:$({get(){var a,i;return o.value?(a=r==null?void 0:r.modelValue)==null?void 0:a.value:(i=e.modelValue)!=null?i:t.value},set(a){var i,u;o.value&&fe(a)?(s.value=((i=r==null?void 0:r.max)==null?void 0:i.value)!==void 0&&a.length>(r==null?void 0:r.max.value),s.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,a))):(n(un,a),t.value=a)}}),isGroup:o,isLimitExceeded:s}},Lx=(e,t,{model:n})=>{const r=Ce(ro,void 0),o=M(!1),s=$(()=>{const u=n.value;return rn(u)?u:fe(u)?Pe(e.label)?u.map(Ne).some(c=>t_(c,e.label)):u.map(Ne).includes(e.label):u!=null?u===e.trueLabel:!!u}),l=Kr($(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),a=Kr($(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),i=$(()=>!!(t.default||e.label));return{checkboxButtonSize:l,isChecked:s,isFocused:o,checkboxSize:a,hasOwnLabel:i}},Nx=(e,{model:t})=>{function n(){fe(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},ph=(e,t)=>{const{formItem:n}=no(),{model:r,isGroup:o,isLimitExceeded:s}=Ix(e),{isFocused:l,isChecked:a,checkboxButtonSize:i,checkboxSize:u,hasOwnLabel:c}=Lx(e,t,{model:r}),{isDisabled:f}=Rx({model:r,isChecked:a}),{inputId:d,isLabeledByFormItem:p}=hl(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:o}),{handleChange:h,onClickRoot:v}=kx(e,{model:r,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:p});return Nx(e,{model:r}),{inputId:d,isLabeledByFormItem:p,isChecked:a,isDisabled:f,isFocused:l,checkboxButtonSize:i,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:h,onClickRoot:v}},Fx=["tabindex","role","aria-checked"],Bx=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Hx=["id","aria-hidden","disabled","value","name","tabindex"],zx=ue({name:"ElCheckbox"}),Dx=ue({...zx,props:fh,emits:dh,setup(e){const t=e,n=ol(),{inputId:r,isLabeledByFormItem:o,isChecked:s,isDisabled:l,isFocused:a,checkboxSize:i,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=ph(t,n),p=Oe("checkbox"),h=$(()=>[p.b(),p.m(i.value),p.is("disabled",l.value),p.is("bordered",t.border),p.is("checked",s.value)]),v=$(()=>[p.e("input"),p.is("disabled",l.value),p.is("check
|
||
|
* escape-html
|
||
|
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||
|
* Copyright(c) 2015 Andreas Lubbe
|
||
|
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||
|
* MIT Licensed
|
||
|
*/var qT=/["'&<>]/,YT=GT;function GT(e){var t=""+e,n=qT.exec(t);if(!n)return t;var r,o="",s=0,l=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}l!==s&&(o+=t.substring(l,s)),l=s+1,o+=r}return l!==s?o+t.substring(l,s):o}const Nl=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},XT=function(e,t,n,r,o){if(!t&&!r&&(!o||Array.isArray(o)&&!o.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=r?null:function(a,i){return o?(Array.isArray(o)||(o=[o]),o.map(u=>typeof u=="string"?Io(a,u):u(a,i,e))):(t!=="$key"&&Pe(a)&&"$value"in a&&(a=a.$value),[Pe(a)?Io(a,t):a])},l=function(a,i){if(r)return r(a.value,i.value);for(let u=0,c=a.key.length;u<c;u++){if(a.key[u]<i.key[u])return-1;if(a.key[u]>i.key[u])return 1}return 0};return e.map((a,i)=>({value:a,index:i,key:s?s(a,i):null})).sort((a,i)=>{let u=l(a,i);return u||(u=a.index-i.index),u*+n}).map(a=>a.value)},Ch=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},JT=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const o=e.columns[r];if(o.columnKey===t){n=o;break}}return n||Un("ElTable",`No column matching with column-key: ${t}`),n},Jc=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?Ch(e,r[0]):null},ct=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const o of n)r=r[o];return`${r}`}else if(typeof t=="function")return t.call(null,e)},fr=function(e,t){const n={};return(e||[]).forEach((r,o)=>{n[ct(r,t)]={row:r,index:o}}),n};function ZT(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Ae(t,r)){const o=t[r];typeof o<"u"&&(n[r]=o)}return n}function ki(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function Eh(e){return e===""||e!==void 0&&(e=ki(e),Number.isNaN(e)&&(e=80)),e}function QT(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function eO(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function wo(e,t,n){let r=!1;const o=e.indexOf(t),s=o!==-1,l=a=>{a==="add"?e.push(t):e.splice(o,1),r=!0,fe(t.children)&&t.children.forEach(i=>{wo(e,i,n??!s)})};return rn(n)?n&&!s?l("add"):!n&&s&&l("remove"):l(s?"remove":"add"),r}function tO(e,t,n="children",r="hasChildren"){const o=l=>!(Array.isArray(l)&&l.length);function s(l,a,i){t(l,a,i),a.forEach(u=>{if(u[r]){t(u,null,i+1);return}const c=u[n];o(c)||s(u,c,i+1)})}e.forEach(l=>{if(l[r]){t(l,null,0);return}const a=l[n];o(a)||s(l,a,0)})}let mn;function nO(e,t,n,r,o){o=ep({enterable:!0,showArrow:!0},o);const s=e==null?void 0:e.dataset.prefix,l=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function a(){const b=o.effect==="light",m=document.createElement("div");return m.className=[`${s}-popper`,b?"is-light":"is-dark",o.popperClass||""].join(" "),n=YT(n),m.innerHTML=n,m.style.zIndex=String(r()),e==null||e.appendChild(m),m}function i(){const b=document.createElement("div");return b.className=`${s}-popper__arrow`,b}function u(){c&&c.update()}mn==null||mn(),mn=()=>{try{c&&c.destroy(),p&&(e==null||e.removeChild(p)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),l==null||l.removeEventListener("scroll",mn),mn=void 0}catch{}};let c=null,f=u,d=mn;o.enterable&&({onOpen:f,onClose:d}=Rp({showAfter:o.showAfter,hideAfter:o.hideAfter,open:u,close:mn}));const p=a();p.onmouseenter=f,p.onmouseleave=d;const h=[];if(o.offset&&h.push({name:"offset",options:{offset:[0,o.offset]}}),o.showArrow){const b=p.appendChild(i());h.push({name:"arrow",options:{element:b,padding:10}})}const v=o.popperOptions||{};return c=$p(t,p,{placement:o.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?h.concat(v.modifiers):h}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),l==null||l.addEventListener("scroll",mn),c}functi
|
||
|
* vue-router v4.1.6
|
||
|
* (c) 2022 Eduardo San Martin Morote
|
||
|
* @license MIT
|
||
|
*/const Tr=typeof window<"u";function F4(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const je=Object.assign;function Fl(e,t){const n={};for(const r in t){const o=t[r];n[r]=Gt(o)?o.map(e):e(o)}return n}const Co=()=>{},Gt=Array.isArray,B4=/\/$/,H4=e=>e.replace(B4,"");function Bl(e,t,n="/"){let r,o={},s="",l="";const a=t.indexOf("#");let i=t.indexOf("?");return a<i&&a>=0&&(i=-1),i>-1&&(r=t.slice(0,i),s=t.slice(i+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=W4(r??t,n),{fullPath:r+(s&&"?")+s+l,path:r,query:o,hash:l}}function z4(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function tf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function D4(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Yr(t.matched[r],n.matched[o])&&kh(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kh(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!j4(e[n],t[n]))return!1;return!0}function j4(e,t){return Gt(e)?nf(e,t):Gt(t)?nf(t,e):e===t}function nf(e,t){return Gt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function W4(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,l;for(s=0;s<r.length;s++)if(l=r[s],l!==".")if(l==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Ho;(function(e){e.pop="pop",e.push="push"})(Ho||(Ho={}));var Eo;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Eo||(Eo={}));function K4(e){if(!e)if(Tr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),H4(e)}const V4=/^[^#]+#/;function U4(e,t){return e.replace(V4,"#")+t}function q4(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const ml=()=>({left:window.pageXOffset,top:window.pageYOffset});function Y4(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=q4(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function rf(e,t){return(history.state?history.state.position-t:-1)+e}const $a=new Map;function G4(e,t){$a.set(e,t)}function X4(e){const t=$a.get(e);return $a.delete(e),t}let J4=()=>location.protocol+"//"+location.host;function Ih(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,i=o.slice(a);return i[0]!=="/"&&(i="/"+i),tf(i,"")}return tf(n,e)+r+o}function Z4(e,t,n,r){let o=[],s=[],l=null;const a=({state:d})=>{const p=Ih(e,location),h=n.value,v=t.value;let b=0;if(d){if(n.value=p,t.value=d,l&&l===h){l=null;return}b=v?d.position-v.position:0}else r(p);o.forEach(m=>{m(n.value,h,{delta:b,type:Ho.pop,direction:b?b>0?Eo.forward:Eo.back:Eo.unknown})})};function i(){l=n.value}function u(d){o.push(d);const p=()=>{const h=o.indexOf(d);h>-1&&o.splice(h,1)};return s.push(p),p}function c(){const{history:d}=window;d.state&&d.replaceState(je({},d.state,{scroll:ml()}),"")}function f(){for(const d of s)d();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:i,listen:u,destroy:f}}function of(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?ml():null}}function Q4(e){const{history:t,location:n}=window,r={value:Ih(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(i,u,c){const f=e.indexOf("#"
|