@kitbag/router 0.22.3 → 0.22.5

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.
@@ -1,4 +1,4 @@
1
- (function(v,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],y):(v=typeof globalThis<"u"?globalThis:v||self,y(v["@kitbag/router"]={},v.Vue))})(this,(function(v,y){"use strict";class Ln extends Error{constructor(t){super(`Child property on meta for ${t} conflicts with the parent meta.`)}}function Co(e,t){return Uo(e,t),{...e,...t}}function Uo(e,t){const n=Object.keys(e).find(r=>r in t&&typeof t[r]!=typeof e[r]);if(n)throw new Ln(n)}class Vn extends Error{constructor(t){super(`Invalid Param "${t}": Router does not support multiple params by the same name. All param names must be unique.`)}}function Lo(e,t){return e.filter(n=>t===n).length}function He(...e){const t=e.flatMap(n=>Array.isArray(n)?n:Object.keys(n));for(const n of t)if(Lo(t,n)>1)throw new Vn(n)}function Vo(e,t){return He(e,t),{...e,...t}}function xt(e){return"parent"in e&&!!e.parent}function Mt(e){return"component"in e&&!!e.component}function Bt(e){return"props"in e&&typeof e.props=="function"}function jt(e){return"components"in e&&!!e.components}function Ht(e){return"props"in e&&typeof e.props=="object"}function Zt(e,t){return{...t,meta:Co(e.meta,t.meta),state:Vo(e.state,t.state),hooks:[...e.hooks,...t.hooks],matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function ee(e){return typeof e!="string"?!1:/^(https?:\/\/|\/).*/g.test(e)}function Dn(e){return ee(e)?e:`/${e}`}const $t=Symbol("IS_URL_SYMBOL");function le(e){return typeof e=="object"&&e!==null&&$t in e}class Ee extends Error{constructor(){super("Router not installed")}}class xn extends Error{constructor(t,n){super(`useRoute called with incorrect route. Given ${t}, expected ${n}`)}}function ot(){let e=0;return()=>(++e).toString()}const Do=ot()();function xo(e){return e===Do}const Gt=ot();function Mn(e){return e===void 0?"":e}class ge{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set}class Mo extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}}function st(){const e=new ge;return{redirect:(l,E)=>{if(e.redirects.size>0)throw new Mo(l.name);const c=(g,{replace:f})=>{f(l.name,E?.(g.params))};return e.redirects.add(c),()=>e.redirects.delete(c)},onBeforeRouteEnter:l=>(e.onBeforeRouteEnter.add(l),()=>e.onBeforeRouteEnter.delete(l)),onBeforeRouteUpdate:l=>(e.onBeforeRouteUpdate.add(l),()=>e.onBeforeRouteUpdate.delete(l)),onBeforeRouteLeave:l=>(e.onBeforeRouteLeave.add(l),()=>e.onBeforeRouteLeave.delete(l)),onAfterRouteEnter:l=>(e.onAfterRouteEnter.add(l),()=>e.onAfterRouteEnter.delete(l)),onAfterRouteUpdate:l=>(e.onAfterRouteUpdate.add(l),()=>e.onAfterRouteUpdate.delete(l)),onAfterRouteLeave:l=>(e.onAfterRouteLeave.add(l),()=>e.onAfterRouteLeave.delete(l)),onError:l=>(e.onError.add(l),()=>e.onError.delete(l)),store:e}}class qt extends Error{context;constructor(t={}){super(t.message??"Uncaught InvalidRouteParamValueError"),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...t}}}const Ze="[",it="]";function Bo(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function jo(e){return typeof e=="function"&&Bo(e)}function at(e){return typeof e=="object"&&"get"in e&&typeof e.get=="function"&&"set"in e&&typeof e.set=="function"}function Bn(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function jn(e,t){return at(e)?{...e,defaultValue:t??e.defaultValue}:{get:n=>_e(n,{param:e}),set:n=>ce(n,{param:e}),defaultValue:t}}function Ho(e){return at(e)&&e.defaultValue!==void 0}function Zo(e,t){return jn(e,t)}function $o(e){return e!==void 0}function Ae(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function se(e){return typeof e=="string"&&e.length>0}let w=null;async function Go(){const{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:u,ZodBase64:l,ZodCUID:E,ZodCUID2:c,ZodULID:g,ZodJWT:f,ZodBigInt:d,ZodNaN:R,ZodBoolean:_,ZodDate:m,ZodISODateTime:T,ZodISODate:h,ZodISOTime:p,ZodNumber:P,ZodLiteral:I,ZodObject:N,ZodEnum:S,ZodArray:b,ZodTuple:C,ZodUnion:U,ZodDiscriminatedUnion:B,ZodRecord:M,ZodMap:j,ZodSet:G,ZodIntersection:q,ZodPromise:k}=await import("zod");return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:u,ZodBase64:l,ZodCUID:E,ZodCUID2:c,ZodULID:g,ZodJWT:f,ZodBigInt:d,ZodNaN:R,ZodBoolean:_,ZodDate:m,ZodISODateTime:T,ZodISODate:h,ZodISOTime:p,ZodNumber:P,ZodLiteral:I,ZodObject:N,ZodEnum:S,ZodArray:b,ZodTuple:C,ZodUnion:U,ZodDiscriminatedUnion:B,ZodRecord:M,ZodMap:j,ZodSet:G,ZodIntersection:q,ZodPromise:k}}function qo(e){return Object.values(e).some(t=>le(t)?Object.values(t.schema.host.params).some(({param:n})=>Ft(n))||Object.values(t.schema.path.params).some(({param:n})=>Ft(n))||Object.values(t.schema.query.params).some(({param:n})=>Ft(n)):!1)}function Ft(e){return Ae(e)&&"parse"in e&&typeof e.parse=="function"&&"~standard"in e&&Ae(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="zod"}async function Fo(){try{w=await Go()}catch{throw new Error("Failed to initialize Zod")}}function Hn(e){return w?e instanceof w.ZodType:!1}function Zn(e){return{get:(t,{invalid:n})=>{try{return zt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Wt(t,e)}catch{throw n()}}}}const zo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Ie(e,t){if(typeof t=="string"&&zo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function $e(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ct(e,t){return w?.ZodString&&e instanceof w.ZodString?1:w?.ZodString&&t instanceof w.ZodString?-1:0}function zt(e,t){if(!w)throw new Error("Zod is not initialized");if(t instanceof w.ZodString)return t.parse(e);if(t instanceof w.ZodBoolean)return t.parse(!!e);if(t instanceof w.ZodDate)return t.parse(new Date(e));if(t instanceof w.ZodNumber)return t.parse(Number(e));if(t instanceof w.ZodBigInt)return t.parse(BigInt(e));if(t instanceof w.ZodNaN)return t.parse(Number(e));if(t instanceof w.ZodLiteral)return $e([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof w.ZodObject)return t.parse(JSON.parse(e,Ie));if(t instanceof w.ZodEnum)return t.parse(e);if(t instanceof w.ZodArray||t instanceof w.ZodTuple)return t.parse(JSON.parse(e,Ie));if(t instanceof w.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>zt(e,r));return $e(n)}if(t instanceof w.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>zt(e,r));return $e(n)}if(t instanceof w.ZodRecord)return t.parse(JSON.parse(e,Ie));if(t instanceof w.ZodMap)return t.parse(new Map(JSON.parse(e,Ie)));if(t instanceof w.ZodSet)return t.parse(new Set(JSON.parse(e,Ie)));if(t instanceof w.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof w.ZodPromise)throw new Error("Promise schemas are not supported");return t.parse(e)}function Wt(e,t){if(!w)throw new Error("Zod is not initialized");if(t instanceof w.ZodString||t instanceof w.ZodISODateTime||t instanceof w.ZodISODate||t instanceof w.ZodISOTime||t instanceof w.ZodIPv4||t instanceof w.ZodIPv6||t instanceof w.ZodCIDRv4||t instanceof w.ZodCIDRv6||t instanceof w.ZodURL||t instanceof w.ZodEmail||t instanceof w.ZodUUID||t instanceof w.ZodBase64||t instanceof w.ZodCUID||t instanceof w.ZodCUID2||t instanceof w.ZodULID||t instanceof w.ZodJWT)return t.parse(e);if(t instanceof w.ZodBoolean)return t.parse(e).toString();if(t instanceof w.ZodDate)return t.parse(e).toISOString();if(t instanceof w.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof w.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof w.ZodNaN)return t.parse(e).toString();if(t instanceof w.ZodLiteral){const n=t.parse(e);return n!=null?n.toString():String(n)}if(t instanceof w.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof w.ZodEnum){const n=t.parse(e);return typeof n=="string"?n:String(n)}if(t instanceof w.ZodArray||t instanceof w.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof w.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>Wt(e,r));return $e(n)}if(t instanceof w.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>Wt(e,r));return $e(n)}if(t instanceof w.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof w.ZodMap){const n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof w.ZodSet){const n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof w.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof w.ZodPromise)throw new Error("Promise schemas are not supported");return JSON.stringify(t.parse(e))}function Jt(e){return typeof e=="object"&&e!==null&&"then"in e}function L(e,t){const n=e["~standard"].validate(t);if(Jt(n))throw new Error("Promise schemas are not supported");if(n.issues)throw new Error("Validation failed");return n.value}function Wo(e){return Ae(e)&&"type"in e&&typeof e.type=="string"&&"~standard"in e&&Ae(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="valibot"}function $n(e){return Wo(e)}function Gn(e){return{get:(t,{invalid:n})=>{try{return Kt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Yt(t,e)}catch{throw n()}}}}const Jo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function ve(e,t){if(typeof t=="string"&&Jo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function ke(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ut(e,t){return e.type==="string"?1:t.type==="string"?-1:0}function Kt(e,t){if(t.type==="boolean")return L(t,!!e);if(t.type==="date")return L(t,new Date(e));if(t.type==="number")return L(t,Number(e));if(t.type==="literal")return ke([()=>L(t,Number(e)),()=>L(t,!!e),()=>L(t,e)]);if(t.type==="object")return L(t,JSON.parse(e,ve));if(t.type==="enum")return ke([()=>L(t,Number(e)),()=>L(t,!!e),()=>L(t,e)]);if(t.type==="array"||t.type==="tuple")return L(t,JSON.parse(e,ve));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Kt(e,r));return ke(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Kt(e,r));return ke(n)}if(t.type==="record")return L(t,JSON.parse(e,ve));if(t.type==="map")return L(t,new Map(JSON.parse(e,ve)));if(t.type==="set")return L(t,new Set(JSON.parse(e,ve)));if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return L(t,e)}function Yt(e,t){if(t.type==="string"||t.type==="boolean")return L(t,e).toString();if(t.type==="date")return L(t,e).toISOString();if(t.type==="number")return L(t,Number(e)).toString();if(t.type==="literal")return L(t,e).toString();if(t.type==="object")return JSON.stringify(L(t,e));if(t.type==="enum"||t.type==="nativeEnum")return L(t,e).toString();if(t.type==="array"||t.type==="tuple")return JSON.stringify(L(t,e));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return ke(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return ke(n)}if(t.type==="record")return JSON.stringify(L(t,e));if(t.type==="map"){const n=L(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type==="set"){const n=L(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return JSON.stringify(L(t,e))}function Ko(e,t){return e[t]??String}function qn(e){return{invalid:t=>{throw new qt({...e,message:t})}}}const Fn={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!="string")throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},Qt={get:(e,{invalid:t})=>{if(e==="true")return!0;if(e==="false")return!1;throw t(`Expected boolean value, received ${JSON.stringify(e)}`)},set:(e,{invalid:t})=>{if(typeof e!="boolean")throw t(`Expected boolean value, received ${JSON.stringify(e)}`);return e.toString()}},Xt={get:(e,{invalid:t})=>{const n=Number(e);if(isNaN(n))throw t(`Expected number value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="number")throw t(`Expected number value, received ${JSON.stringify(e)}`);return e.toString()}},zn={get:(e,{invalid:t})=>{const n=new Date(e);if(isNaN(n.getTime()))throw t(`Expected date value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="object"||!(e instanceof Date))throw t(`Expected date value, received ${JSON.stringify(e)}`);return e.toISOString()}},Wn={get:(e,{invalid:t})=>{try{return JSON.parse(e)}catch{throw t(`Expected JSON value, received "${e}"`)}},set:(e,{invalid:t})=>{try{return JSON.stringify(e)}catch{throw t(`Expected JSON value, received "${e}"`)}}};function Yo(e,t,n){switch(typeof t){case"string":return Fn.get(e,n)===t;case"number":return Xt.get(e,n)===t;case"boolean":return Qt.get(e,n)===t;default:return!1}}function _e(e,{param:t=String,isOptional:n=!1}={}){const r=qn({param:t,value:e,isGetter:!0});if(e===void 0||!se(e)){if(Ho(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Fn.get(e,r);if(t===Boolean)return Qt.get(e,r);if(t===Number)return Xt.get(e,r);if(t===Date)return zn.get(e,r);if(t===JSON)return Wn.get(e,r);if(jo(t))return t(e,r);if(at(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}if(Bn(t)){if(Yo(e,t,r))return t;throw r.invalid(`Expected value to be ${t}, received ${JSON.stringify(e)}`)}return Hn(t)?Zn(t).get(e,r):$n(t)?Gn(t).get(e,r):e}function en(e,t){try{return _e(e,t)}catch(n){if(n instanceof qt)return;throw n}}function Qo(e,t){try{return ce(e,t)}catch(n){if(n instanceof qt)return;throw n}}function ce(e,{param:t=String,isOptional:n=!1}={}){const r=qn({param:t,value:e,isSetter:!0});if(e===void 0){if(n)return"";throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===Boolean)return Qt.set(e,r);if(t===Number)return Xt.set(e,r);if(t===Date)return zn.set(e,r);if(t===JSON)return Wn.set(e,r);if(at(t))return t.set(e,r);if(Bn(t)){if(t!==e)throw r.invalid(`Expected value to be literal ${t}, received ${JSON.stringify(e)}`);return e.toString()}if(Hn(t))return Zn(t).set(e,r);if($n(t))return Gn(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}const ft=`\\${Ze}\\??([\\w-_]+)\\*?\\${it}`,Xo=`\\${Ze}\\?([\\w-_]+)\\*?\\${it}`,es=`\\${Ze}\\??([\\w-_]+)\\*\\${it}`,ts="[^/]*",ns=".*",rs="([^/]*)",os="(.*)";function tn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ss(e,t){const n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0;const o=n.reduce((i,a)=>{const u=tn(e.slice(r,a.index));u.length&&i.push(u);const[l]=a;return i.push(l),r=a.index+l.length,i},[]),s=e.slice(r);return s&&o.push(s),o}function is(e){const t=lt(e);return new RegExp(`^${t||".*"}$`,"i")}function as(e){const t=lt(e);return new RegExp(`^${t}$`,"i")}function cs(e){const t=e.replace(/^#*/,""),n=lt(t);return new RegExp(`^#?${n||".*"}$`,"i")}function us(e){const t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,n])=>!Kn(n)).map(([n,r])=>{const o=lt(r);return new RegExp(`${tn(n)}=${o}(&|$)`,"i")})}function lt(e){return ss(e,new RegExp(ft,"g")).map(t=>t.startsWith(Ze)?Jn(t):tn(t)).join("")}function Jn(e){return e.replace(new RegExp(ft,"g"),t=>Yn(t)?ns:ts)}function fs(e,t){const n=Qn(t),{isGreedy:r=!1}=e.params[t]??{},o=r?os:rs;return e.value.replace(n,o)}function Kn(e){return new RegExp(Xo,"g").test(e)}function Yn(e){return new RegExp(es,"g").test(e)}function dt(e){const[t]=Xn(e,new RegExp(ft,"g"));return t}function Qn(e){return new RegExp(`\\${Ze}\\??${e}\\*?\\${it}`,"g")}function Xn(e,t){return Array.from(e.matchAll(t)).flatMap(([,...r])=>r.map(o=>se(o)?o:""))}function ls(e="",t={}){return se(e)?Array.from(e.matchAll(new RegExp(ft,"g"))).reduce((r,[o,s])=>{const i=dt(o),a=Kn(o),u=Yn(o);if(!i)return r;const l=Ko(t,i);return He([i],r),r[s]={param:l,isOptional:a,isGreedy:u},r},{}):{}}const er=Symbol("UrlPartsWithParams");function tr(e){return Ae(e)&&e[er]===!0}function re(e){return e===void 0?pt():tr(e)?e:pt(e,{})}function pt(e,t){return{value:e??"",params:ls(e,t),[er]:!0}}function ht(e){if(typeof e=="string"||typeof e>"u"||tr(e))return re(e);const t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(const[o,s]of t)if(typeof s=="string")n.push(`${o}=${s}`);else{const i=`[${o}]`,a=dt(i);a&&(r[a]=s),n.push(`${a}=${i}`)}return pt(n.join("&"),r)}function ds(e,t,n){const r=fs(t,n),o=Jn(r),[s]=Xn(e,new RegExp(o,"g"));return s}function ps(e,t,n,r){const o=ce(r,t.params[n]);return e.replace(Qn(n),o)}function nr(...e){const t=new URLSearchParams;for(const n of e){const r=new URLSearchParams(n);for(const[o,s]of r.entries())t.append(o,s)}return t}const Et="https://internal.invalid";function nn(e){const t=new URL(e.host??Et,Et);return t.pathname=e.path??"",t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??"",Dn(t.toString().replace(new RegExp(`^${Et}/*`),"/"))}function ue(e){return!e.startsWith("http")?Es(e):hs(e)}function Ge(e,t){if(typeof e=="string"){const r=Ge(ue(e),t);return nn(r)}const n=new URLSearchParams(t.query);return{host:se(t.host)?t.host:e.host,path:se(t.path)?t.path:e.path??"",query:nr(n,e.query),hash:se(t.hash)?t.hash:e.hash??""}}function hs(e){const{protocol:t,host:n,pathname:r,searchParams:o,hash:s}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:o,hash:s}}function Es(e){const{pathname:t,searchParams:n,hash:r}=new URL(e,Et);return{path:t,query:n,hash:r}}function me(e){const t={host:re(e.host),path:re(e.path),query:_s(ht(e.query)),hash:gs(re(e.hash))};He(t.path.params,t.query.params,t.host.params,t.hash.params);const n={...t.host,regexp:is(t.host.value),stringify(E={}){return rn(t.host,E)}},r={...t.path,regexp:as(t.path.value),stringify(E={}){return rn(t.path,E)}},o={...t.query,regexp:us(t.query.value),stringify(E={}){return ms(t.query,E).toString()}},s={...t.hash,regexp:cs(t.hash.value),stringify(E={}){return rn(t.hash,E)}};function i(E={}){return nn({host:n.stringify(E),path:r.stringify(E),query:o.stringify(E),hash:s.stringify(E)})}function a(E){const c=ue(E);return{...on(n,c.host??""),...on(r,c.path),...ys(o,c.query.toString()),...on(s,c.hash)}}function u(E){const c=ue(E);if(!n.regexp.test(c.host??""))return{success:!1,params:{},error:new Error("Host does not match")};if(!r.regexp.test(c.path))return{success:!1,params:{},error:new Error("Path does not match")};const g=c.query.toString();if(!o.regexp.every(f=>f.test(g)))return{success:!1,params:{},error:new Error("Query does not match")};if(!s.regexp.test(c.hash))return{success:!1,params:{},error:new Error("Hash does not match")};try{return{success:!0,params:a(E)}}catch(f){return{success:!1,params:{},error:new Error("Failed to parse url",{cause:f})}}}return{...{schema:{host:n,path:r,query:o,hash:s},params:{},[$t]:!0},isRelative:!se(t.host.value),stringify:i,parse:a,tryParse:u}}function gs(e){return{...e,value:e.value.replace(/^#/,"")}}function _s(e){return{...e,value:e.value.replace(/^\?/,"")}}function rn(e,t){return Object.keys(e.params).reduce((n,r)=>ps(n,e,r,t[r]),e.value)}function ms(e,t){const n=new URLSearchParams(e.value);if(!e.value)return n;for(const[r,o]of Array.from(n.entries())){const s=dt(o);if(!s)continue;const a=ce(t[s],e.params[s]),u=t[s]===void 0&&a==="";e.params[s].isOptional&&u?n.delete(r,o):n.set(r,a)}return n}function on(e,t){const n={},r=decodeURIComponent(t);for(const[o,s]of Object.entries(e.params)){const i=ds(r,e,o),a=_e(i,s);n[o]=a}return n}function ys(e,t){const n={},r=new URLSearchParams(e.value),o=new URLSearchParams(t);for(const[s,i]of Array.from(r.entries())){const a=dt(i);if(!a)continue;const l=o.get(s)??void 0,E=_e(l,e.params[a]);n[a]=E}return n}class rr extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}}function or(e){return"redirect"in e}function sr({getRoute:e}){return{redirectTo:(...[r,o])=>{const s=e();if(!or(s))throw new rr(s.name);r.context.push(s),s.context.push(r),s.redirect(r,o)},redirectFrom:(r,o)=>{const s=e();if(!or(r))throw new rr(r.name);s.context.push(r),r.context.push(s),r.redirect(s,o)}}}function sn(e,t){He(e.params,t.params);const n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function ir(e,t){He(e.params,t.params);const n=[e.value,t.value].filter(se).join("&");return{...e,value:n,params:{...e.params,...t.params}}}function ar(e,t){return sn(e,t)}function an(e,t){if(!le(e))throw new Error("Parent is not a valid url");if(!Rs(t))return me({host:e.schema.host,path:sn(e.schema.path,re(t.path)),query:ir(e.schema.query,ht(t.query)),hash:ar(e.schema.hash,re(t.hash))});if(!le(t))throw new Error("Child is not a valid url");return me({host:e.schema.host,path:sn(e.schema.path,t.schema.path),query:ir(e.schema.query,t.schema.query),hash:ar(e.schema.hash,t.schema.hash)})}function Rs(e){return le(e)}function ye(e,t){const n=Gt(),r=Mn(e.name),o=re(e.path),s=ht(e.query),i=re(e.hash),a=e.meta??{},u=e.state??{},l=e.context??[],{store:E,...c}=st(),g=y.markRaw({id:n,meta:a,state:u,...e,props:t}),f=sr({getRoute:()=>R}),d=me({path:o,query:s,hash:i}),R={id:n,matched:g,matches:[g],hooks:[E],name:r,meta:a,state:u,context:l,depth:1,prefetch:e.prefetch,...f,...d,...c};if(xt(e)){const _=Zt(e.parent,R),m=an(e.parent,{path:o,query:s,hash:i});return{..._,...m}}return R}function cr(e){return y.defineComponent(()=>()=>y.h("h1",e),{name:e,props:[]})}function Ss(e){const t=e.component??cr(e.type);return{type:e.type,component:t}}function Os(e){const t=Gt(),n=Mn(e.name),r=re(e.path),o=ht(e.query),s=re(e.hash),i=e.meta??{},a=re(e.host),u=e.context??[],{store:l,...E}=st(),c=sr({getRoute:()=>d}),g=y.markRaw({id:t,meta:{},state:{},...e}),f=me({host:a,path:r,query:o,hash:s}),d={id:t,matched:g,matches:[g],hooks:[l],name:n,meta:i,depth:1,state:{},context:u,...E,...c,...f};if(xt(e)){const R=Zt(e.parent,d),_=an(e.parent,{path:r,query:o,hash:s});return{...R,..._}}return d}function qe(){const e=new Map;return t=>{const n=e.get(t);if(!n){const r=Symbol();return e.set(t,r),r}return n}}const ws=qe();function ur(e){const t=ws(e);return({increment:n=!1}={})=>{const r=y.inject(t,0);return n&&y.provide(t,r+1),r}}const Fe=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},ze=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},We=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function Ts(e){switch(e){case"onBeforeRouteEnter":case"onAfterRouteEnter":return Fe;case"onBeforeRouteUpdate":case"onAfterRouteUpdate":return We;case"onBeforeRouteLeave":case"onAfterRouteLeave":return ze;default:throw new Error(`Switch is not exhaustive for lifecycle: ${e}`)}}function Ps(e,t){const n=new ge;return e.hooks.forEach((r,o)=>{if(r.redirects.forEach(s=>n.redirects.add(s)),Fe(e,t,o))return r.onBeforeRouteEnter.forEach(s=>n.onBeforeRouteEnter.add(s));if(We(e,t,o))return r.onBeforeRouteUpdate.forEach(s=>n.onBeforeRouteUpdate.add(s))}),t?.hooks.forEach((r,o)=>{if(ze(e,t,o))return r.onBeforeRouteLeave.forEach(s=>n.onBeforeRouteLeave.add(s))}),n}function Ns(e,t){const n=new ge;return e.hooks.forEach((r,o)=>{if(Fe(e,t,o))return r.onAfterRouteEnter.forEach(s=>n.onAfterRouteEnter.add(s));if(We(e,t,o))return r.onAfterRouteUpdate.forEach(s=>n.onAfterRouteUpdate.add(s))}),t?.hooks.forEach((r,o)=>{if(ze(e,t,o))return r.onAfterRouteLeave.forEach(s=>n.onAfterRouteLeave.add(s))}),n}class gt extends Error{}class fe extends gt{response;constructor(t){super("Uncaught ContextPushError"),this.response={status:"PUSH",to:t}}}class Re extends gt{response;constructor(t){super("Uncaught ContextRejectionError"),this.response={status:"REJECT",type:t}}}class fr extends gt{response;constructor(){super("Uncaught ContextAbortError"),this.response={status:"ABORT"}}}function bs(e,t,n){const r=new ge;return e.matches.forEach((o,s)=>{Fe(e,t,s)&&n.onBeforeRouteEnter.forEach(i=>r.onBeforeRouteEnter.add(i)),We(e,t,s)&&n.onBeforeRouteUpdate.forEach(i=>r.onBeforeRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{ze(e,t,s)&&n.onBeforeRouteLeave.forEach(i=>r.onBeforeRouteLeave.add(i))}),r}function As(e,t,n){const r=new ge;return e.matches.forEach((o,s)=>{Fe(e,t,s)&&n.onAfterRouteEnter.forEach(i=>r.onAfterRouteEnter.add(i)),We(e,t,s)&&n.onAfterRouteUpdate.forEach(i=>r.onAfterRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{ze(e,t,s)&&n.onAfterRouteLeave.forEach(i=>r.onAfterRouteLeave.add(i))}),r}function lr(){let e=null;function t(r){e=r}function n(r){return e?e.runWithContext(r):r()}return{setVueApp:t,runWithContext:n}}function Je({to:e}){const t=i=>{throw new Re(i)},n=(...i)=>{throw new fe(i)};return{reject:t,push:n,replace:(i,a,u)=>{if(ee(i)){const c=a??{};throw new fe([i,{...c,replace:!0}])}const l=a,E=u??{};throw new fe([i,l,{...E,replace:!0}])},update:(i,a,u)=>{if(typeof i=="object"){const E={...e.params,...i};return n(e.name,E,a)}const l={...e.params,[i]:a};return n(e.name,l,u)},abort:()=>{throw new fr}}}const dr=qe();function Is(){const{setVueApp:e,runWithContext:t}=lr(),{store:n,...r}=st(),o=new ge,s=async({to:E,from:c})=>{const{reject:g,push:f,replace:d,update:R,abort:_}=Je({to:E}),m=Ps(E,c),T=bs(E,c,n),h=[...m.redirects,...T.onBeforeRouteEnter,...m.onBeforeRouteEnter,...T.onBeforeRouteUpdate,...m.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...T.onBeforeRouteLeave,...m.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{const p=h.map(P=>t(()=>P(E,{from:c,reject:g,push:f,replace:d,update:R,abort:_})));await Promise.all(p)}catch(p){if(p instanceof fe||p instanceof Re||p instanceof fr)return p.response;try{a(p,{to:E,from:c,source:"hook"})}catch(P){if(P instanceof fe||P instanceof Re)return P.response;throw P}}return{status:"SUCCESS"}},i=async({to:E,from:c})=>{const{reject:g,push:f,replace:d,update:R}=Je({to:E}),_=Ns(E,c),m=As(E,c,n),T=[...o.onAfterRouteLeave,..._.onAfterRouteLeave,...m.onAfterRouteLeave,...o.onAfterRouteUpdate,..._.onAfterRouteUpdate,...m.onAfterRouteUpdate,...o.onAfterRouteEnter,..._.onAfterRouteEnter,...m.onAfterRouteEnter];try{const h=T.map(p=>t(()=>p(E,{from:c,reject:g,push:f,replace:d,update:R})));await Promise.all(h)}catch(h){if(h instanceof fe||h instanceof Re)return h.response;try{a(h,{to:E,from:c,source:"hook"})}catch(p){if(p instanceof fe||p instanceof Re)return p.response;throw p}}return{status:"SUCCESS"}},a=(E,{to:c,from:g,source:f})=>{const{reject:d,push:R,replace:_,update:m}=Je({to:c});for(const T of n.onError)try{T(E,{to:c,from:g,source:f,reject:d,push:R,replace:_,update:m});return}catch(h){if(h instanceof gt)throw h;if(h===E)continue;throw h}};return{runBeforeRouteHooks:s,runAfterRouteHooks:i,runErrorHooks:a,addComponentHook:({lifecycle:E,depth:c,hook:g})=>{const f=Ts(E),d=o[E],R=(_,m)=>{if(f(_,m.from,c))return g(_,m)};return d.add(R),()=>d.delete(R)},addGlobalRouteHooks:E=>{E.onBeforeRouteEnter.forEach(c=>r.onBeforeRouteEnter(c)),E.onBeforeRouteUpdate.forEach(c=>r.onBeforeRouteUpdate(c)),E.onBeforeRouteLeave.forEach(c=>r.onBeforeRouteLeave(c)),E.onAfterRouteEnter.forEach(c=>r.onAfterRouteEnter(c)),E.onAfterRouteUpdate.forEach(c=>r.onAfterRouteUpdate(c)),E.onAfterRouteLeave.forEach(c=>r.onAfterRouteLeave(c)),E.onError.forEach(c=>r.onError(c))},setVueApp:e,...r}}function vs(e){const t=dr(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}function _t(e,t){const n=ur(e),r=vs(e);return o=>{const s=n(),a=r().addComponentHook({lifecycle:t,hook:o,depth:s-1});return y.onUnmounted(a),a}}function ks(e){const t=_t(e,"onBeforeRouteLeave"),n=_t(e,"onBeforeRouteUpdate"),r=_t(e,"onAfterRouteLeave"),o=_t(e,"onAfterRouteUpdate");return{onBeforeRouteLeave:t,onBeforeRouteUpdate:n,onAfterRouteLeave:r,onAfterRouteUpdate:o}}const pr=qe();function Cs(e){const t=pr(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}const hr=qe();function Er(e){const t=hr(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}function Ke(e){return()=>{const t=y.inject(e);if(!t)throw new Ee;return t}}const gr=Symbol("isRouterRouteSymbol");function Us(e,t){return typeof t=="object"&&t!==null&&gr in t&&e in t}function Ls(e,t,n){function r(h,p,P){if(typeof h=="object"){const N={...t.params,...h};return n(t.name,N,p)}const I={...t.params,[h]:p};return n(t.name,I,P)}const o=(...h)=>{const p=new URLSearchParams(t.query);p.set(...h),r({},{query:p})},s=(...h)=>{const p=new URLSearchParams(t.query);p.append(...h),r({},{query:p})},i=(...h)=>{const p=new URLSearchParams(t.query);p.delete(...h),r({},{query:p})},{id:a,matched:u,matches:l,hooks:E,name:c,hash:g,href:f}=y.toRefs(t),d=new Proxy({},{get(h,p,P){return Reflect.get(t.params,p,P)},set(h,p,P){return r(p,P),!0},ownKeys(){return Reflect.ownKeys(t.params)},getOwnPropertyDescriptor(h,p){return Reflect.getOwnPropertyDescriptor(t.params,p)}}),R=y.computed({get(){return d},set(h){r(h)}}),_=y.computed({get(){return new Proxy(t.query,{get(h,p,P){switch(p){case"append":return s;case"set":return o;case"delete":return i;default:return Reflect.get(h,p,P)}}})},set(h){r({},{query:h})}}),m=y.computed({get(){return new Proxy(t.state,{set(h,p,P){return r({},{state:{...t.state,[p]:P}}),!0}})},set(h){r({},{state:h})}});return y.reactive({id:a,matched:u,matches:l,hooks:E,state:m,query:_,hash:g,params:R,name:c,href:f,update:r,[gr]:!0,[e]:!0})}function cn(e){return(t,n,{exact:r}={})=>Us(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(o=>o.name).includes(n):!1}function mt(e){const t=Ke(e),n=cn(e);return(r,o)=>{const s=t();function i(){if(!r)return;if(!n(s.route,r,o))throw new xn(r,s.route.name)}return y.watch(s.route,i,{immediate:!0,deep:!0}),s.route}}function un(e){const t=mt(e),n=Ke(e),r=Er(e),o=ur(e),s=Cs(e);return y.defineComponent((i,a)=>{const u=t(),l=n(),E=r(),c=o({increment:!0});y.onServerPrefetch(async()=>{await l.start()});const{getRouteComponents:g}=s(),f=y.computed(()=>{if(!l.started.value)return null;if(E.value)return E.value.component;const d=u.matches.at(c);if(!d)return null;const R=g(d),_=i.name??"default";return R[_]});return()=>a.slots.default?a.slots.default({route:u,component:f.value,rejection:E.value}):f.value?y.h(f.value):null},{name:"RouterView",props:["name"]})}const _r=qe();function mr(e){const t=_r(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}const Vs="lazy",Ds={components:!0,props:!1};function yt(e){return["eager","lazy","intent"].includes(e)}function yr({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){const o=fn(n,r),s=fn(t,r),i=fn(e,r),a=[o,s,i,Ds[r],Vs].reduce((u,l)=>yt(u)?u:u===!0&&yt(l)?l:u===!0&&!yt(l)?u:u===void 0?l:u,void 0);return yt(a)?a:!1}function fn(e,t){return Ae(e)?e[t]:e}const xs=y.defineAsyncComponent(()=>new Promise(e=>{e({default:{template:"foo"}})}));function Rr(e){return e.name===xs.name&&"__asyncLoader"in e}const Sr=Symbol("visibilityObserver");function Ms(e){const t=y.inject(Sr);if(!t)throw new Ee;return y.watch(e,(r,o)=>{r&&t.observe(r),o&&t.unobserve(o)},{immediate:!0}),y.onUnmounted(()=>{e.value&&t.unobserve(e.value)}),{isElementVisible:y.computed(()=>e.value?t.isElementVisible(e.value):!1)}}function Or(e,t,n){y.watch(e,(r,o)=>{r&&r.addEventListener(t,n),o&&o.removeEventListener(t,n)},{immediate:!0}),y.onUnmounted(()=>{e.value&&e.value.removeEventListener(t,n)})}function Bs(e){const t=mr(e);return n=>{const r=new Map,o=y.ref(),{getPrefetchProps:s,setPrefetchProps:i}=t(),{isElementVisible:a}=Ms(o),u=()=>{const c=Array.from(r.values()).reduce((g,f)=>(Object.assign(g,f),g),{});i(c)};y.watch(()=>y.toValue(n),({route:c,...g})=>{r.clear(),c&&E("eager",c,g)},{immediate:!0}),y.watch(a,c=>{const{route:g,...f}=y.toValue(n);!g||!c||E("lazy",g,f)},{immediate:!0}),Or(o,"focusin",l),Or(o,"mouseover",l);function l(){const{route:c,...g}=y.toValue(n);c&&E("intent",c,g)}function E(c,g,f){js(c,g,f),r.has(c)||r.set(c,s(c,g,f))}return{element:o,commit:u}}}function js(e,t,n){t.matches.forEach(r=>{yr({...n,routePrefetch:r.prefetch},"components")===e&&(Mt(r)&&Rr(r.component)&&r.component.__asyncLoader(),jt(r)&&Object.values(r.components).forEach(s=>{Rr(s)&&s.__asyncLoader()}))})}function wr(e){const t=Ke(e),n=Bs(e),r=cn(e);return(o,s={},i={})=>{const a=t(),u=y.computed(()=>{const p=y.toValue(o);return typeof p!="string"?p:ee(p)?a.find(p,y.toValue(i)):a.resolve(p,y.toValue(s),y.toValue(i))}),l=y.computed(()=>{if(u.value)return u.value.href;const p=y.toValue(o);if(ee(p))return p;console.error(new Error("Failed to resolve route in RouterLink."))}),E=y.computed(()=>r(a.route)&&a.route.matches.some(p=>p.id===u.value?.id)),c=y.computed(()=>a.route.id===u.value?.id),g=y.computed(()=>r(a.route)&&$o(u.value)&&a.route.href.startsWith(u.value.href)),f=y.computed(()=>a.route.href===u.value?.href),d=y.computed(()=>!!l.value&&a.isExternal(l.value)),R=y.computed(()=>{const p=y.toValue(o);return typeof p!="string"||ee(p)?y.toValue(s):y.toValue(i)}),{element:_,commit:m}=n(()=>({route:u.value,routerPrefetch:a.prefetch,linkPrefetch:R.value.prefetch})),T=p=>{m();const P={replace:p?.replace??R.value.replace,query:nr(R.value.query,p?.query),hash:p?.hash??R.value.hash,state:{...R.value.state,...p?.state}},I=y.toValue(o);return ee(I)||typeof I=="object"?a.push(I,P):a.push(I,y.toValue(s),P)};return{element:_,route:u,href:l,isMatch:E,isExactMatch:c,isActive:g,isExactActive:f,isExternal:d,push:T,replace:p=>T({...p,replace:!0})}}}function Tr(e){const t=Ke(e),n=wr(e);return y.defineComponent((r,o)=>{const s=t(),i=y.computed(()=>m(r.to)),a=y.computed(()=>T(r.to)),u=y.computed(()=>{const{to:p,...P}=r;return P}),{element:l,isMatch:E,isExactMatch:c,isActive:g,isExactActive:f,isExternal:d,push:R}=n(()=>typeof r.to=="function"?r.to(s.resolve):r.to,u),_=y.computed(()=>({"router-link--match":E.value,"router-link--exact-match":c.value,"router-link--active":g.value,"router-link--exact-active":f.value}));function m(p){if(typeof p=="function"){const P=p(s.resolve);return m(P)}return ee(p)?s.find(p):p}function T(p){if(typeof p=="function"){const P=p(s.resolve);return T(P)}return ee(p)?p:p?.href}function h(p){p.preventDefault(),R()}return()=>y.h("a",{href:a.value,class:["router-link",_.value],ref:l,onClick:h},o.slots.default?.({route:i.value,isMatch:E.value,isExactMatch:c.value,isActive:g.value,isExactActive:f.value,isExternal:d.value}))},{name:"RouterLink",props:["to","prefetch","query","hash","replace","state"]})}function Hs(e){const t=mt(e);return(n,r=String)=>{const o=t(),s=y.computed({get(){const a=o.query.get(y.toValue(n));return a===null?null:en(a,{param:r})},set(a){o.query.set(y.toValue(n),ce(a,{param:r}))}}),i=y.computed({get(){return o.query.getAll(y.toValue(n)).map(u=>en(u,{param:r})).filter(u=>u!==null)},set(a){const u=new URLSearchParams(o.query);u.delete(y.toValue(n)),a.forEach(l=>{u.append(y.toValue(n),ce(l,{param:r}))}),o.query=u}});return{value:s,values:i,remove:()=>{o.query.delete(y.toValue(n))}}}}function Pr(e){const t=typeof e=="object"?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s}=ks(t),i=cn(t),a=un(t),u=Tr(t),l=mt(t),E=Ke(t),c=Hs(t),g=wr(t),f=Er(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s,isRoute:i,RouterView:a,RouterLink:u,useRoute:l,useRouter:E,useQueryValue:c,useLink:g,useRejection:f}}function Zs(e){const{store:t,...n}=st();return{routes:e.routes??[],rejections:e.rejections??[],hooks:t,...n}}function Nr(e){return{get:(t,{invalid:n})=>{for(const r of e){const o=en(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(const r of e){const o=Qo(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}const $s={separator:","};function Gs(e,t={}){const{separator:n}={...$s,...t},r=Nr(e);return{get:(o,s)=>o.split(n).map(i=>r.get(i,s)),set:(o,s)=>{if(!Array.isArray(o))throw s.invalid("Expected an array");return o.map(i=>r.set(i,s)).join(n)}}}const qs={separator:","};function Fs(e,t={}){const{separator:n}={...qs,...t};return{get:r=>{const o=r.split(n);return e.map((s,i)=>_e(o.at(i),{param:s}))},set:(r,{invalid:o})=>{if(!Array.isArray(r))throw o("Expected a tuple");if(r.length!==e.length)throw o(`Expected tuple with ${e.length} values but received ${r.length} values`);return e.map((s,i)=>ce(r.at(i),{param:s})).join(n)}}}function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(null,arguments)}var W;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(W||(W={}));var Ce=process.env.NODE_ENV!=="production"?function(e){return Object.freeze(e)}:function(e){return e};function Se(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}var Rt="beforeunload",zs="hashchange",br="popstate";function Ar(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function s(){var N=r.location,S=N.pathname,b=N.search,C=N.hash,U=o.state||{};return[U.idx,Ce({pathname:S,search:b,hash:C,state:U.usr||null,key:U.key||"default"})]}var i=null;function a(){if(i)f.call(i),i=null;else{var N=W.Pop,S=s(),b=S[0],C=S[1];if(f.length)if(b!=null){var U=E-b;U&&(i={action:N,location:C,retry:function(){P(U*-1)}},P(U))}else process.env.NODE_ENV!=="production"&&Se(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else T(N)}}r.addEventListener(br,a);var u=W.Pop,l=s(),E=l[0],c=l[1],g=Ue(),f=Ue();E==null&&(E=0,o.replaceState(de({},o.state,{idx:E}),""));function d(N){return typeof N=="string"?N:Oe(N)}function R(N,S){return S===void 0&&(S=null),Ce(de({pathname:c.pathname,hash:"",search:""},typeof N=="string"?Ye(N):N,{state:S,key:Ot()}))}function _(N,S){return[{usr:N.state,key:N.key,idx:S},d(N)]}function m(N,S,b){return!f.length||(f.call({action:N,location:S,retry:b}),!1)}function T(N){u=N;var S=s();E=S[0],c=S[1],g.call({action:u,location:c})}function h(N,S){var b=W.Push,C=R(N,S);function U(){h(N,S)}if(m(b,C,U)){var B=_(C,E+1),M=B[0],j=B[1];try{o.pushState(M,"",j)}catch{r.location.assign(j)}T(b)}}function p(N,S){var b=W.Replace,C=R(N,S);function U(){p(N,S)}if(m(b,C,U)){var B=_(C,E),M=B[0],j=B[1];o.replaceState(M,"",j),T(b)}}function P(N){o.go(N)}var I={get action(){return u},get location(){return c},createHref:d,push:h,replace:p,go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(S){return g.push(S)},block:function(S){var b=f.push(S);return f.length===1&&r.addEventListener(Rt,St),function(){b(),f.length||r.removeEventListener(Rt,St)}}};return I}function Ws(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function s(){var S=Ye(r.location.hash.substr(1)),b=S.pathname,C=b===void 0?"/":b,U=S.search,B=U===void 0?"":U,M=S.hash,j=M===void 0?"":M,G=o.state||{};return[G.idx,Ce({pathname:C,search:B,hash:j,state:G.usr||null,key:G.key||"default"})]}var i=null;function a(){if(i)f.call(i),i=null;else{var S=W.Pop,b=s(),C=b[0],U=b[1];if(f.length)if(C!=null){var B=E-C;B&&(i={action:S,location:U,retry:function(){I(B*-1)}},I(B))}else process.env.NODE_ENV!=="production"&&Se(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else h(S)}}r.addEventListener(br,a),r.addEventListener(zs,function(){var S=s(),b=S[1];Oe(b)!==Oe(c)&&a()});var u=W.Pop,l=s(),E=l[0],c=l[1],g=Ue(),f=Ue();E==null&&(E=0,o.replaceState(de({},o.state,{idx:E}),""));function d(){var S=document.querySelector("base"),b="";if(S&&S.getAttribute("href")){var C=r.location.href,U=C.indexOf("#");b=U===-1?C:C.slice(0,U)}return b}function R(S){return d()+"#"+(typeof S=="string"?S:Oe(S))}function _(S,b){return b===void 0&&(b=null),Ce(de({pathname:c.pathname,hash:"",search:""},typeof S=="string"?Ye(S):S,{state:b,key:Ot()}))}function m(S,b){return[{usr:S.state,key:S.key,idx:b},R(S)]}function T(S,b,C){return!f.length||(f.call({action:S,location:b,retry:C}),!1)}function h(S){u=S;var b=s();E=b[0],c=b[1],g.call({action:u,location:c})}function p(S,b){var C=W.Push,U=_(S,b);function B(){p(S,b)}if(process.env.NODE_ENV!=="production"&&Se(U.pathname.charAt(0)==="/","Relative pathnames are not supported in hash history.push("+JSON.stringify(S)+")"),T(C,U,B)){var M=m(U,E+1),j=M[0],G=M[1];try{o.pushState(j,"",G)}catch{r.location.assign(G)}h(C)}}function P(S,b){var C=W.Replace,U=_(S,b);function B(){P(S,b)}if(process.env.NODE_ENV!=="production"&&Se(U.pathname.charAt(0)==="/","Relative pathnames are not supported in hash history.replace("+JSON.stringify(S)+")"),T(C,U,B)){var M=m(U,E),j=M[0],G=M[1];o.replaceState(j,"",G),h(C)}}function I(S){o.go(S)}var N={get action(){return u},get location(){return c},createHref:R,push:p,replace:P,go:I,back:function(){I(-1)},forward:function(){I(1)},listen:function(b){return g.push(b)},block:function(b){var C=f.push(b);return f.length===1&&r.addEventListener(Rt,St),function(){C(),f.length||r.removeEventListener(Rt,St)}}};return N}function Ir(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?["/"]:n,o=t.initialIndex,s=r.map(function(h){var p=Ce(de({pathname:"/",search:"",hash:"",state:null,key:Ot()},typeof h=="string"?Ye(h):h));return process.env.NODE_ENV!=="production"&&Se(p.pathname.charAt(0)==="/","Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(h)+")"),p}),i=vr(o??s.length-1,0,s.length-1),a=W.Pop,u=s[i],l=Ue(),E=Ue();function c(h){return typeof h=="string"?h:Oe(h)}function g(h,p){return p===void 0&&(p=null),Ce(de({pathname:u.pathname,search:"",hash:""},typeof h=="string"?Ye(h):h,{state:p,key:Ot()}))}function f(h,p,P){return!E.length||(E.call({action:h,location:p,retry:P}),!1)}function d(h,p){a=h,u=p,l.call({action:a,location:u})}function R(h,p){var P=W.Push,I=g(h,p);function N(){R(h,p)}process.env.NODE_ENV!=="production"&&Se(u.pathname.charAt(0)==="/","Relative pathnames are not supported in memory history.push("+JSON.stringify(h)+")"),f(P,I,N)&&(i+=1,s.splice(i,s.length,I),d(P,I))}function _(h,p){var P=W.Replace,I=g(h,p);function N(){_(h,p)}process.env.NODE_ENV!=="production"&&Se(u.pathname.charAt(0)==="/","Relative pathnames are not supported in memory history.replace("+JSON.stringify(h)+")"),f(P,I,N)&&(s[i]=I,d(P,I))}function m(h){var p=vr(i+h,0,s.length-1),P=W.Pop,I=s[p];function N(){m(h)}f(P,I,N)&&(i=p,d(P,I))}var T={get index(){return i},get action(){return a},get location(){return u},createHref:c,push:R,replace:_,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(p){return l.push(p)},block:function(p){return E.push(p)}};return T}function vr(e,t,n){return Math.min(Math.max(e,t),n)}function St(e){e.preventDefault(),e.returnValue=""}function Ue(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function Ot(){return Math.random().toString(36).substr(2,8)}function Oe(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,s=e.hash,i=s===void 0?"":s;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Ye(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Js(e,t,n){const r=y.reactive({...t}),o=a=>{Object.assign(r,{...a})},s=r,i=Ls(e,s,n);return{currentRoute:s,routerRoute:i,updateRoute:o}}function Ks(e){return t=>{const{host:n}=ue(t);return!(n===void 0||n===e)}}function kr(e){try{const t=e();return Jt(t)?t.catch(n=>n):t}catch(t){return t}}function Ys(){const{setVueApp:e,runWithContext:t}=lr(),n=y.reactive(new Map),r=(g,f,d)=>{const{push:R,replace:_,reject:m,update:T}=Je({to:f});return f.matches.filter(h=>yr({...d,routePrefetch:h.prefetch},"props")===g).flatMap(h=>E(h)).reduce((h,{id:p,name:P,props:I})=>{if(!I)return h;const N=l(p,P,f),S=t(()=>kr(()=>I(f,{push:R,replace:_,reject:m,update:T,parent:a(f,!0)})));return h[N]=S,h},{})},o=g=>{Object.entries(g).forEach(([f,d])=>{n.set(f,d)})},s=async g=>{const{push:f,replace:d,reject:R,update:_}=Je({to:g}),m=g.matches.flatMap(E),T=[],h=[];for(const{id:p,name:P,props:I}of m){if(!I)continue;const N=l(p,P,g);if(T.push(N),!n.has(N)){const S=t(()=>kr(()=>I(g,{push:f,replace:d,reject:R,update:_,parent:a(g)})));n.set(N,S)}h.push((async()=>{const S=await n.get(N);if(S instanceof Error)throw S})())}c(T);try{return await Promise.all(h),{status:"SUCCESS"}}catch(p){if(p instanceof fe||p instanceof Re)return p.response;throw p}},i=(g,f,d)=>{const R=l(g,f,d);return n.get(R)};function a(g,f=!1){const d=g.matches.at(-2);if(d)return Bt(d)?{name:d.name??"",get props(){return u(d,"default",g,f)}}:Ht(d)?{name:d.name??"",props:new Proxy({},{get(R,_){return typeof _!="string"?Reflect.get(R,_):u(d,_,g,f)}})}:{name:d.name??"",props:void 0}}function u(g,f,d,R=!1){const _=i(g.id,f,d);if(R&&!_){const m=g.name??"unknown",T=d.name||"unknown";console.warn(`
1
+ (function(v,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],y):(v=typeof globalThis<"u"?globalThis:v||self,y(v["@kitbag/router"]={},v.Vue))})(this,(function(v,y){"use strict";class Ln extends Error{constructor(t){super(`Child property on meta for ${t} conflicts with the parent meta.`)}}function Uo(e,t){return Lo(e,t),{...e,...t}}function Lo(e,t){const n=Object.keys(e).find(r=>r in t&&typeof t[r]!=typeof e[r]);if(n)throw new Ln(n)}class Vn extends Error{constructor(t){super(`Invalid Param "${t}": Router does not support multiple params by the same name. All param names must be unique.`)}}function Vo(e,t){return e.filter(n=>t===n).length}function He(...e){const t=e.flatMap(n=>Array.isArray(n)?n:Object.keys(n));for(const n of t)if(Vo(t,n)>1)throw new Vn(n)}function Do(e,t){return He(e,t),{...e,...t}}function xt(e){return"parent"in e&&!!e.parent}function Mt(e){return"component"in e&&!!e.component}function Bt(e){return"props"in e&&typeof e.props=="function"}function jt(e){return"components"in e&&!!e.components}function Ht(e){return"props"in e&&typeof e.props=="object"}function Zt(e,t){return{...t,meta:Uo(e.meta,t.meta),state:Do(e.state,t.state),hooks:[...e.hooks,...t.hooks],matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function ee(e){return typeof e!="string"?!1:/^(https?:\/\/|\/).*/g.test(e)}function Dn(e){return ee(e)?e:`/${e}`}const $t=Symbol("IS_URL_SYMBOL");function le(e){return typeof e=="object"&&e!==null&&$t in e}class Ee extends Error{constructor(){super("Router not installed")}}class xn extends Error{constructor(t,n){super(`useRoute called with incorrect route. Given ${t}, expected ${n}`)}}function ot(){let e=0;return()=>(++e).toString()}const xo=ot()();function Mo(e){return e===xo}const Gt=ot();function Mn(e){return e===void 0?"":e}class ge{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set}class Bo extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}}function st(){const e=new ge;return{redirect:(l,E)=>{if(e.redirects.size>0)throw new Bo(l.name);const c=(g,{replace:f})=>{f(l.name,E?.(g.params))};return e.redirects.add(c),()=>e.redirects.delete(c)},onBeforeRouteEnter:l=>(e.onBeforeRouteEnter.add(l),()=>e.onBeforeRouteEnter.delete(l)),onBeforeRouteUpdate:l=>(e.onBeforeRouteUpdate.add(l),()=>e.onBeforeRouteUpdate.delete(l)),onBeforeRouteLeave:l=>(e.onBeforeRouteLeave.add(l),()=>e.onBeforeRouteLeave.delete(l)),onAfterRouteEnter:l=>(e.onAfterRouteEnter.add(l),()=>e.onAfterRouteEnter.delete(l)),onAfterRouteUpdate:l=>(e.onAfterRouteUpdate.add(l),()=>e.onAfterRouteUpdate.delete(l)),onAfterRouteLeave:l=>(e.onAfterRouteLeave.add(l),()=>e.onAfterRouteLeave.delete(l)),onError:l=>(e.onError.add(l),()=>e.onError.delete(l)),store:e}}class qt extends Error{context;constructor(t={}){super(t.message??"Uncaught InvalidRouteParamValueError"),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...t}}}const Ze="[",it="]";function jo(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function Ho(e){return typeof e=="function"&&jo(e)}function at(e){return typeof e=="object"&&"get"in e&&typeof e.get=="function"&&"set"in e&&typeof e.set=="function"}function Bn(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function jn(e,t){return at(e)?{...e,defaultValue:t??e.defaultValue}:{get:n=>_e(n,{param:e}),set:n=>ce(n,{param:e}),defaultValue:t}}function Hn(e){return at(e)&&e.defaultValue!==void 0}function Zo(e,t){return jn(e,t)}function $o(e){return e!==void 0}function Ae(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function se(e){return typeof e=="string"&&e.length>0}let w=null;async function Go(){const{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:u,ZodBase64:l,ZodCUID:E,ZodCUID2:c,ZodULID:g,ZodJWT:f,ZodBigInt:d,ZodNaN:R,ZodBoolean:_,ZodDate:m,ZodISODateTime:T,ZodISODate:h,ZodISOTime:p,ZodNumber:P,ZodLiteral:I,ZodObject:N,ZodEnum:S,ZodArray:b,ZodTuple:C,ZodUnion:U,ZodDiscriminatedUnion:B,ZodRecord:M,ZodMap:j,ZodSet:G,ZodIntersection:q,ZodPromise:k}=await import("zod");return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:u,ZodBase64:l,ZodCUID:E,ZodCUID2:c,ZodULID:g,ZodJWT:f,ZodBigInt:d,ZodNaN:R,ZodBoolean:_,ZodDate:m,ZodISODateTime:T,ZodISODate:h,ZodISOTime:p,ZodNumber:P,ZodLiteral:I,ZodObject:N,ZodEnum:S,ZodArray:b,ZodTuple:C,ZodUnion:U,ZodDiscriminatedUnion:B,ZodRecord:M,ZodMap:j,ZodSet:G,ZodIntersection:q,ZodPromise:k}}function qo(e){return Object.values(e).some(t=>le(t)?Object.values(t.schema.host.params).some(({param:n})=>Ft(n))||Object.values(t.schema.path.params).some(({param:n})=>Ft(n))||Object.values(t.schema.query.params).some(({param:n})=>Ft(n)):!1)}function Ft(e){return Ae(e)&&"parse"in e&&typeof e.parse=="function"&&"~standard"in e&&Ae(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="zod"}async function Fo(){try{w=await Go()}catch{throw new Error("Failed to initialize Zod")}}function Zn(e){return w?e instanceof w.ZodType:!1}function $n(e){return{get:(t,{invalid:n})=>{try{return zt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Wt(t,e)}catch{throw n()}}}}const zo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Ie(e,t){if(typeof t=="string"&&zo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function $e(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ct(e,t){return w?.ZodString&&e instanceof w.ZodString?1:w?.ZodString&&t instanceof w.ZodString?-1:0}function zt(e,t){if(!w)throw new Error("Zod is not initialized");if(t instanceof w.ZodString)return t.parse(e);if(t instanceof w.ZodBoolean)return t.parse(!!e);if(t instanceof w.ZodDate)return t.parse(new Date(e));if(t instanceof w.ZodNumber)return t.parse(Number(e));if(t instanceof w.ZodBigInt)return t.parse(BigInt(e));if(t instanceof w.ZodNaN)return t.parse(Number(e));if(t instanceof w.ZodLiteral)return $e([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof w.ZodObject)return t.parse(JSON.parse(e,Ie));if(t instanceof w.ZodEnum)return t.parse(e);if(t instanceof w.ZodArray||t instanceof w.ZodTuple)return t.parse(JSON.parse(e,Ie));if(t instanceof w.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>zt(e,r));return $e(n)}if(t instanceof w.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>zt(e,r));return $e(n)}if(t instanceof w.ZodRecord)return t.parse(JSON.parse(e,Ie));if(t instanceof w.ZodMap)return t.parse(new Map(JSON.parse(e,Ie)));if(t instanceof w.ZodSet)return t.parse(new Set(JSON.parse(e,Ie)));if(t instanceof w.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof w.ZodPromise)throw new Error("Promise schemas are not supported");return t.parse(e)}function Wt(e,t){if(!w)throw new Error("Zod is not initialized");if(t instanceof w.ZodString||t instanceof w.ZodISODateTime||t instanceof w.ZodISODate||t instanceof w.ZodISOTime||t instanceof w.ZodIPv4||t instanceof w.ZodIPv6||t instanceof w.ZodCIDRv4||t instanceof w.ZodCIDRv6||t instanceof w.ZodURL||t instanceof w.ZodEmail||t instanceof w.ZodUUID||t instanceof w.ZodBase64||t instanceof w.ZodCUID||t instanceof w.ZodCUID2||t instanceof w.ZodULID||t instanceof w.ZodJWT)return t.parse(e);if(t instanceof w.ZodBoolean)return t.parse(e).toString();if(t instanceof w.ZodDate)return t.parse(e).toISOString();if(t instanceof w.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof w.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof w.ZodNaN)return t.parse(e).toString();if(t instanceof w.ZodLiteral){const n=t.parse(e);return n!=null?n.toString():String(n)}if(t instanceof w.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof w.ZodEnum){const n=t.parse(e);return typeof n=="string"?n:String(n)}if(t instanceof w.ZodArray||t instanceof w.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof w.ZodUnion){const n=Array.from(t.def.options).sort(ct).map(r=>()=>Wt(e,r));return $e(n)}if(t instanceof w.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(ct).map(r=>()=>Wt(e,r));return $e(n)}if(t instanceof w.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof w.ZodMap){const n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof w.ZodSet){const n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof w.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof w.ZodPromise)throw new Error("Promise schemas are not supported");return JSON.stringify(t.parse(e))}function Jt(e){return typeof e=="object"&&e!==null&&"then"in e}function L(e,t){const n=e["~standard"].validate(t);if(Jt(n))throw new Error("Promise schemas are not supported");if(n.issues)throw new Error("Validation failed");return n.value}function Wo(e){return Ae(e)&&"type"in e&&typeof e.type=="string"&&"~standard"in e&&Ae(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="valibot"}function Gn(e){return Wo(e)}function qn(e){return{get:(t,{invalid:n})=>{try{return Kt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Yt(t,e)}catch{throw n()}}}}const Jo=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function ve(e,t){if(typeof t=="string"&&Jo.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function ke(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ut(e,t){return e.type==="string"?1:t.type==="string"?-1:0}function Kt(e,t){if(t.type==="boolean")return L(t,!!e);if(t.type==="date")return L(t,new Date(e));if(t.type==="number")return L(t,Number(e));if(t.type==="literal")return ke([()=>L(t,Number(e)),()=>L(t,!!e),()=>L(t,e)]);if(t.type==="object")return L(t,JSON.parse(e,ve));if(t.type==="enum")return ke([()=>L(t,Number(e)),()=>L(t,!!e),()=>L(t,e)]);if(t.type==="array"||t.type==="tuple")return L(t,JSON.parse(e,ve));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Kt(e,r));return ke(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Kt(e,r));return ke(n)}if(t.type==="record")return L(t,JSON.parse(e,ve));if(t.type==="map")return L(t,new Map(JSON.parse(e,ve)));if(t.type==="set")return L(t,new Set(JSON.parse(e,ve)));if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return L(t,e)}function Yt(e,t){if(t.type==="string"||t.type==="boolean")return L(t,e).toString();if(t.type==="date")return L(t,e).toISOString();if(t.type==="number")return L(t,Number(e)).toString();if(t.type==="literal")return L(t,e).toString();if(t.type==="object")return JSON.stringify(L(t,e));if(t.type==="enum"||t.type==="nativeEnum")return L(t,e).toString();if(t.type==="array"||t.type==="tuple")return JSON.stringify(L(t,e));if(t.type==="union"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return ke(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ut).map(r=>()=>Yt(e,r));return ke(n)}if(t.type==="record")return JSON.stringify(L(t,e));if(t.type==="map"){const n=L(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type==="set"){const n=L(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type==="intersection")throw new Error("Intersection schemas are not supported");if(t.type==="promise")throw new Error("Promise schemas are not supported");if(t.type==="function")throw new Error("Function schemas are not supported");return JSON.stringify(L(t,e))}function Ko(e,t){return e[t]??String}function Fn(e){return{invalid:t=>{throw new qt({...e,message:t})}}}const zn={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!="string")throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},Qt={get:(e,{invalid:t})=>{if(e==="true")return!0;if(e==="false")return!1;throw t(`Expected boolean value, received ${JSON.stringify(e)}`)},set:(e,{invalid:t})=>{if(typeof e!="boolean")throw t(`Expected boolean value, received ${JSON.stringify(e)}`);return e.toString()}},Xt={get:(e,{invalid:t})=>{const n=Number(e);if(isNaN(n))throw t(`Expected number value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="number")throw t(`Expected number value, received ${JSON.stringify(e)}`);return e.toString()}},Wn={get:(e,{invalid:t})=>{const n=new Date(e);if(isNaN(n.getTime()))throw t(`Expected date value, received ${JSON.stringify(e)}`);return n},set:(e,{invalid:t})=>{if(typeof e!="object"||!(e instanceof Date))throw t(`Expected date value, received ${JSON.stringify(e)}`);return e.toISOString()}},Jn={get:(e,{invalid:t})=>{try{return JSON.parse(e)}catch{throw t(`Expected JSON value, received "${e}"`)}},set:(e,{invalid:t})=>{try{return JSON.stringify(e)}catch{throw t(`Expected JSON value, received "${e}"`)}}};function Yo(e,t,n){switch(typeof t){case"string":return zn.get(e,n)===t;case"number":return Xt.get(e,n)===t;case"boolean":return Qt.get(e,n)===t;default:return!1}}function _e(e,{param:t=String,isOptional:n=!1}={}){const r=Fn({param:t,value:e,isGetter:!0});if(e===void 0||!se(e)){if(Hn(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return zn.get(e,r);if(t===Boolean)return Qt.get(e,r);if(t===Number)return Xt.get(e,r);if(t===Date)return Wn.get(e,r);if(t===JSON)return Jn.get(e,r);if(Ho(t))return t(e,r);if(at(t))return t.get(e,r);if(t instanceof RegExp){if(t.test(e))return e;throw r.invalid(`Expected value to match regex ${t.toString()}, received ${JSON.stringify(e)}`)}if(Bn(t)){if(Yo(e,t,r))return t;throw r.invalid(`Expected value to be ${t}, received ${JSON.stringify(e)}`)}return Zn(t)?$n(t).get(e,r):Gn(t)?qn(t).get(e,r):e}function en(e,t){try{return _e(e,t)}catch(n){if(n instanceof qt)return;throw n}}function Qo(e,t){try{return ce(e,t)}catch(n){if(n instanceof qt)return;throw n}}function ce(e,{param:t=String,isOptional:n=!1}={}){const r=Fn({param:t,value:e,isSetter:!0});if(e===void 0){if(n)return"";throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===Boolean)return Qt.set(e,r);if(t===Number)return Xt.set(e,r);if(t===Date)return Wn.set(e,r);if(t===JSON)return Jn.set(e,r);if(at(t))return t.set(e,r);if(Bn(t)){if(t!==e)throw r.invalid(`Expected value to be literal ${t}, received ${JSON.stringify(e)}`);return e.toString()}if(Zn(t))return $n(t).set(e,r);if(Gn(t))return qn(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}const ft=`\\${Ze}\\??([\\w-_]+)\\*?\\${it}`,Xo=`\\${Ze}\\?([\\w-_]+)\\*?\\${it}`,es=`\\${Ze}\\??([\\w-_]+)\\*\\${it}`,ts="[^/]*",ns=".*",rs="([^/]*)",os="(.*)";function tn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ss(e,t){const n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0;const o=n.reduce((i,a)=>{const u=tn(e.slice(r,a.index));u.length&&i.push(u);const[l]=a;return i.push(l),r=a.index+l.length,i},[]),s=e.slice(r);return s&&o.push(s),o}function is(e){const t=lt(e);return new RegExp(`^${t||".*"}$`,"i")}function as(e){const t=lt(e);return new RegExp(`^${t}$`,"i")}function cs(e){const t=e.replace(/^#*/,""),n=lt(t);return new RegExp(`^#?${n||".*"}$`,"i")}function us(e){const t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,n])=>!Yn(n)).map(([n,r])=>{const o=lt(r);return new RegExp(`${tn(n)}=${o}(&|$)`,"i")})}function lt(e){return ss(e,new RegExp(ft,"g")).map(t=>t.startsWith(Ze)?Kn(t):tn(t)).join("")}function Kn(e){return e.replace(new RegExp(ft,"g"),t=>Qn(t)?ns:ts)}function fs(e,t){const n=Xn(t),{isGreedy:r=!1}=e.params[t]??{},o=r?os:rs;return e.value.replace(n,o)}function Yn(e){return new RegExp(Xo,"g").test(e)}function Qn(e){return new RegExp(es,"g").test(e)}function dt(e){const[t]=er(e,new RegExp(ft,"g"));return t}function Xn(e){return new RegExp(`\\${Ze}\\??${e}\\*?\\${it}`,"g")}function er(e,t){return Array.from(e.matchAll(t)).flatMap(([,...r])=>r.map(o=>se(o)?o:""))}function ls(e="",t={}){return se(e)?Array.from(e.matchAll(new RegExp(ft,"g"))).reduce((r,[o,s])=>{const i=dt(o);if(!i)return r;const a=Ko(t,i),u=Yn(o)||Hn(a),l=Qn(o);return He([i],r),r[s]={param:a,isOptional:u,isGreedy:l},r},{}):{}}const tr=Symbol("UrlPartsWithParams");function nr(e){return Ae(e)&&e[tr]===!0}function re(e){return e===void 0?pt():nr(e)?e:pt(e,{})}function pt(e,t){return{value:e??"",params:ls(e,t),[tr]:!0}}function ht(e){if(typeof e=="string"||typeof e>"u"||nr(e))return re(e);const t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(const[o,s]of t)if(typeof s=="string")n.push(`${o}=${s}`);else{const i=`[${o}]`,a=dt(i);a&&(r[a]=s),n.push(`${a}=${i}`)}return pt(n.join("&"),r)}function ds(e,t,n){const r=fs(t,n),o=Kn(r),[s]=er(e,new RegExp(o,"g"));return s}function ps(e,t,n,r){const o=ce(r,t.params[n]);return e.replace(Xn(n),o)}function rr(...e){const t=new URLSearchParams;for(const n of e){const r=new URLSearchParams(n);for(const[o,s]of r.entries())t.append(o,s)}return t}const Et="https://internal.invalid";function nn(e){const t=new URL(e.host??Et,Et);return t.pathname=e.path??"",t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??"",Dn(t.toString().replace(new RegExp(`^${Et}/*`),"/"))}function ue(e){return!e.startsWith("http")?Es(e):hs(e)}function Ge(e,t){if(typeof e=="string"){const r=Ge(ue(e),t);return nn(r)}const n=new URLSearchParams(t.query);return{host:se(t.host)?t.host:e.host,path:se(t.path)?t.path:e.path??"",query:rr(n,e.query),hash:se(t.hash)?t.hash:e.hash??""}}function hs(e){const{protocol:t,host:n,pathname:r,searchParams:o,hash:s}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:o,hash:s}}function Es(e){const{pathname:t,searchParams:n,hash:r}=new URL(e,Et);return{path:t,query:n,hash:r}}function me(e){const t={host:re(e.host),path:re(e.path),query:_s(ht(e.query)),hash:gs(re(e.hash))};He(t.path.params,t.query.params,t.host.params,t.hash.params);const n={...t.host,regexp:is(t.host.value),stringify(E={}){return rn(t.host,E)}},r={...t.path,regexp:as(t.path.value),stringify(E={}){return rn(t.path,E)}},o={...t.query,regexp:us(t.query.value),stringify(E={}){return ms(t.query,E).toString()}},s={...t.hash,regexp:cs(t.hash.value),stringify(E={}){return rn(t.hash,E)}};function i(E={}){return nn({host:n.stringify(E),path:r.stringify(E),query:o.stringify(E),hash:s.stringify(E)})}function a(E){const c=ue(E);return{...on(n,c.host??""),...on(r,c.path),...ys(o,c.query.toString()),...on(s,c.hash)}}function u(E){const c=ue(E);if(!n.regexp.test(c.host??""))return{success:!1,params:{},error:new Error("Host does not match")};if(!r.regexp.test(c.path))return{success:!1,params:{},error:new Error("Path does not match")};const g=c.query.toString();if(!o.regexp.every(f=>f.test(g)))return{success:!1,params:{},error:new Error("Query does not match")};if(!s.regexp.test(c.hash))return{success:!1,params:{},error:new Error("Hash does not match")};try{return{success:!0,params:a(E)}}catch(f){return{success:!1,params:{},error:new Error("Failed to parse url",{cause:f})}}}return{...{schema:{host:n,path:r,query:o,hash:s},params:{},[$t]:!0},isRelative:!se(t.host.value),stringify:i,parse:a,tryParse:u}}function gs(e){return{...e,value:e.value.replace(/^#/,"")}}function _s(e){return{...e,value:e.value.replace(/^\?/,"")}}function rn(e,t){return Object.keys(e.params).reduce((n,r)=>ps(n,e,r,t[r]),e.value)}function ms(e,t){const n=new URLSearchParams(e.value);if(!e.value)return n;for(const[r,o]of Array.from(n.entries())){const s=dt(o);if(!s)continue;const a=ce(t[s],e.params[s]),u=t[s]===void 0&&a==="";e.params[s].isOptional&&u?n.delete(r,o):n.set(r,a)}return n}function on(e,t){const n={},r=decodeURIComponent(t);for(const[o,s]of Object.entries(e.params)){const i=ds(r,e,o),a=_e(i,s);n[o]=a}return n}function ys(e,t){const n={},r=new URLSearchParams(e.value),o=new URLSearchParams(t);for(const[s,i]of Array.from(r.entries())){const a=dt(i);if(!a)continue;const l=o.get(s)??void 0,E=_e(l,e.params[a]);n[a]=E}return n}class or extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}}function sr(e){return"redirect"in e}function ir({getRoute:e}){return{redirectTo:(...[r,o])=>{const s=e();if(!sr(s))throw new or(s.name);r.context.push(s),s.context.push(r),s.redirect(r,o)},redirectFrom:(r,o)=>{const s=e();if(!sr(r))throw new or(r.name);s.context.push(r),r.context.push(s),r.redirect(s,o)}}}function sn(e,t){He(e.params,t.params);const n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function ar(e,t){He(e.params,t.params);const n=[e.value,t.value].filter(se).join("&");return{...e,value:n,params:{...e.params,...t.params}}}function cr(e,t){return sn(e,t)}function an(e,t){if(!le(e))throw new Error("Parent is not a valid url");if(!Rs(t))return me({host:e.schema.host,path:sn(e.schema.path,re(t.path)),query:ar(e.schema.query,ht(t.query)),hash:cr(e.schema.hash,re(t.hash))});if(!le(t))throw new Error("Child is not a valid url");return me({host:e.schema.host,path:sn(e.schema.path,t.schema.path),query:ar(e.schema.query,t.schema.query),hash:cr(e.schema.hash,t.schema.hash)})}function Rs(e){return le(e)}function ye(e,t){const n=Gt(),r=Mn(e.name),o=re(e.path),s=ht(e.query),i=re(e.hash),a=e.meta??{},u=e.state??{},l=e.context??[],{store:E,...c}=st(),g=y.markRaw({...e,id:n,meta:a,state:u,props:t,name:r}),f=ir({getRoute:()=>R}),d=me({path:o,query:s,hash:i}),R={id:n,matched:g,matches:[g],hooks:[E],name:r,meta:a,state:u,context:l,depth:1,prefetch:e.prefetch,...f,...d,...c};if(xt(e)){const _=Zt(e.parent,R),m=an(e.parent,{path:o,query:s,hash:i});return{..._,...m}}return R}function ur(e){return y.defineComponent(()=>()=>y.h("h1",e),{name:e,props:[]})}function Ss(e){const t=e.component??ur(e.type);return{type:e.type,component:t}}function Os(e){const t=Gt(),n=Mn(e.name),r=re(e.path),o=ht(e.query),s=re(e.hash),i=e.meta??{},a=re(e.host),u=e.context??[],{store:l,...E}=st(),c=ir({getRoute:()=>d}),g=y.markRaw({id:t,meta:{},state:{},...e}),f=me({host:a,path:r,query:o,hash:s}),d={id:t,matched:g,matches:[g],hooks:[l],name:n,meta:i,depth:1,state:{},context:u,...E,...c,...f};if(xt(e)){const R=Zt(e.parent,d),_=an(e.parent,{path:r,query:o,hash:s});return{...R,..._}}return d}function qe(){const e=new Map;return t=>{const n=e.get(t);if(!n){const r=Symbol();return e.set(t,r),r}return n}}const ws=qe();function fr(e){const t=ws(e);return({increment:n=!1}={})=>{const r=y.inject(t,0);return n&&y.provide(t,r+1),r}}const Fe=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},ze=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},We=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function Ts(e){switch(e){case"onBeforeRouteEnter":case"onAfterRouteEnter":return Fe;case"onBeforeRouteUpdate":case"onAfterRouteUpdate":return We;case"onBeforeRouteLeave":case"onAfterRouteLeave":return ze;default:throw new Error(`Switch is not exhaustive for lifecycle: ${e}`)}}function Ps(e,t){const n=new ge;return e.hooks.forEach((r,o)=>{if(r.redirects.forEach(s=>n.redirects.add(s)),Fe(e,t,o))return r.onBeforeRouteEnter.forEach(s=>n.onBeforeRouteEnter.add(s));if(We(e,t,o))return r.onBeforeRouteUpdate.forEach(s=>n.onBeforeRouteUpdate.add(s))}),t?.hooks.forEach((r,o)=>{if(ze(e,t,o))return r.onBeforeRouteLeave.forEach(s=>n.onBeforeRouteLeave.add(s))}),n}function Ns(e,t){const n=new ge;return e.hooks.forEach((r,o)=>{if(Fe(e,t,o))return r.onAfterRouteEnter.forEach(s=>n.onAfterRouteEnter.add(s));if(We(e,t,o))return r.onAfterRouteUpdate.forEach(s=>n.onAfterRouteUpdate.add(s))}),t?.hooks.forEach((r,o)=>{if(ze(e,t,o))return r.onAfterRouteLeave.forEach(s=>n.onAfterRouteLeave.add(s))}),n}class gt extends Error{}class fe extends gt{response;constructor(t){super("Uncaught ContextPushError"),this.response={status:"PUSH",to:t}}}class Re extends gt{response;constructor(t){super("Uncaught ContextRejectionError"),this.response={status:"REJECT",type:t}}}class lr extends gt{response;constructor(){super("Uncaught ContextAbortError"),this.response={status:"ABORT"}}}function bs(e,t,n){const r=new ge;return e.matches.forEach((o,s)=>{Fe(e,t,s)&&n.onBeforeRouteEnter.forEach(i=>r.onBeforeRouteEnter.add(i)),We(e,t,s)&&n.onBeforeRouteUpdate.forEach(i=>r.onBeforeRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{ze(e,t,s)&&n.onBeforeRouteLeave.forEach(i=>r.onBeforeRouteLeave.add(i))}),r}function As(e,t,n){const r=new ge;return e.matches.forEach((o,s)=>{Fe(e,t,s)&&n.onAfterRouteEnter.forEach(i=>r.onAfterRouteEnter.add(i)),We(e,t,s)&&n.onAfterRouteUpdate.forEach(i=>r.onAfterRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{ze(e,t,s)&&n.onAfterRouteLeave.forEach(i=>r.onAfterRouteLeave.add(i))}),r}function dr(){let e=null;function t(r){e=r}function n(r){return e?e.runWithContext(r):r()}return{setVueApp:t,runWithContext:n}}function Je({to:e}){const t=i=>{throw new Re(i)},n=(...i)=>{throw new fe(i)};return{reject:t,push:n,replace:(i,a,u)=>{if(ee(i)){const c=a??{};throw new fe([i,{...c,replace:!0}])}const l=a,E=u??{};throw new fe([i,l,{...E,replace:!0}])},update:(i,a,u)=>{if(typeof i=="object"){const E={...e.params,...i};return n(e.name,E,a)}const l={...e.params,[i]:a};return n(e.name,l,u)},abort:()=>{throw new lr}}}const pr=qe();function Is(){const{setVueApp:e,runWithContext:t}=dr(),{store:n,...r}=st(),o=new ge,s=async({to:E,from:c})=>{const{reject:g,push:f,replace:d,update:R,abort:_}=Je({to:E}),m=Ps(E,c),T=bs(E,c,n),h=[...m.redirects,...T.onBeforeRouteEnter,...m.onBeforeRouteEnter,...T.onBeforeRouteUpdate,...m.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...T.onBeforeRouteLeave,...m.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{const p=h.map(P=>t(()=>P(E,{from:c,reject:g,push:f,replace:d,update:R,abort:_})));await Promise.all(p)}catch(p){if(p instanceof fe||p instanceof Re||p instanceof lr)return p.response;try{a(p,{to:E,from:c,source:"hook"})}catch(P){if(P instanceof fe||P instanceof Re)return P.response;throw P}}return{status:"SUCCESS"}},i=async({to:E,from:c})=>{const{reject:g,push:f,replace:d,update:R}=Je({to:E}),_=Ns(E,c),m=As(E,c,n),T=[...o.onAfterRouteLeave,..._.onAfterRouteLeave,...m.onAfterRouteLeave,...o.onAfterRouteUpdate,..._.onAfterRouteUpdate,...m.onAfterRouteUpdate,...o.onAfterRouteEnter,..._.onAfterRouteEnter,...m.onAfterRouteEnter];try{const h=T.map(p=>t(()=>p(E,{from:c,reject:g,push:f,replace:d,update:R})));await Promise.all(h)}catch(h){if(h instanceof fe||h instanceof Re)return h.response;try{a(h,{to:E,from:c,source:"hook"})}catch(p){if(p instanceof fe||p instanceof Re)return p.response;throw p}}return{status:"SUCCESS"}},a=(E,{to:c,from:g,source:f})=>{const{reject:d,push:R,replace:_,update:m}=Je({to:c});for(const T of n.onError)try{T(E,{to:c,from:g,source:f,reject:d,push:R,replace:_,update:m});return}catch(h){if(h instanceof gt)throw h;if(h===E)continue;throw h}};return{runBeforeRouteHooks:s,runAfterRouteHooks:i,runErrorHooks:a,addComponentHook:({lifecycle:E,depth:c,hook:g})=>{const f=Ts(E),d=o[E],R=(_,m)=>{if(f(_,m.from,c))return g(_,m)};return d.add(R),()=>d.delete(R)},addGlobalRouteHooks:E=>{E.onBeforeRouteEnter.forEach(c=>r.onBeforeRouteEnter(c)),E.onBeforeRouteUpdate.forEach(c=>r.onBeforeRouteUpdate(c)),E.onBeforeRouteLeave.forEach(c=>r.onBeforeRouteLeave(c)),E.onAfterRouteEnter.forEach(c=>r.onAfterRouteEnter(c)),E.onAfterRouteUpdate.forEach(c=>r.onAfterRouteUpdate(c)),E.onAfterRouteLeave.forEach(c=>r.onAfterRouteLeave(c)),E.onError.forEach(c=>r.onError(c))},setVueApp:e,...r}}function vs(e){const t=pr(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}function _t(e,t){const n=fr(e),r=vs(e);return o=>{const s=n(),a=r().addComponentHook({lifecycle:t,hook:o,depth:s-1});return y.onUnmounted(a),a}}function ks(e){const t=_t(e,"onBeforeRouteLeave"),n=_t(e,"onBeforeRouteUpdate"),r=_t(e,"onAfterRouteLeave"),o=_t(e,"onAfterRouteUpdate");return{onBeforeRouteLeave:t,onBeforeRouteUpdate:n,onAfterRouteLeave:r,onAfterRouteUpdate:o}}const hr=qe();function Cs(e){const t=hr(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}const Er=qe();function gr(e){const t=Er(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}function Ke(e){return()=>{const t=y.inject(e);if(!t)throw new Ee;return t}}const _r=Symbol("isRouterRouteSymbol");function Us(e,t){return typeof t=="object"&&t!==null&&_r in t&&e in t}function Ls(e,t,n){function r(h,p,P){if(typeof h=="object"){const N={...t.params,...h};return n(t.name,N,p)}const I={...t.params,[h]:p};return n(t.name,I,P)}const o=(...h)=>{const p=new URLSearchParams(t.query);p.set(...h),r({},{query:p})},s=(...h)=>{const p=new URLSearchParams(t.query);p.append(...h),r({},{query:p})},i=(...h)=>{const p=new URLSearchParams(t.query);p.delete(...h),r({},{query:p})},{id:a,matched:u,matches:l,hooks:E,name:c,hash:g,href:f}=y.toRefs(t),d=new Proxy({},{get(h,p,P){return Reflect.get(t.params,p,P)},set(h,p,P){return r(p,P),!0},ownKeys(){return Reflect.ownKeys(t.params)},getOwnPropertyDescriptor(h,p){return Reflect.getOwnPropertyDescriptor(t.params,p)}}),R=y.computed({get(){return d},set(h){r(h)}}),_=y.computed({get(){return new Proxy(t.query,{get(h,p,P){switch(p){case"append":return s;case"set":return o;case"delete":return i;default:return Reflect.get(h,p,P)}}})},set(h){r({},{query:h})}}),m=y.computed({get(){return new Proxy(t.state,{set(h,p,P){return r({},{state:{...t.state,[p]:P}}),!0}})},set(h){r({},{state:h})}});return y.reactive({id:a,matched:u,matches:l,hooks:E,state:m,query:_,hash:g,params:R,name:c,href:f,update:r,[_r]:!0,[e]:!0})}function cn(e){return(t,n,{exact:r}={})=>Us(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(o=>o.name).includes(n):!1}function mt(e){const t=Ke(e),n=cn(e);return(r,o)=>{const s=t();function i(){if(!r)return;if(!n(s.route,r,o))throw new xn(r,s.route.name)}return y.watch(s.route,i,{immediate:!0,deep:!0}),s.route}}function un(e){const t=mt(e),n=Ke(e),r=gr(e),o=fr(e),s=Cs(e);return y.defineComponent((i,a)=>{const u=t(),l=n(),E=r(),c=o({increment:!0});y.onServerPrefetch(async()=>{await l.start()});const{getRouteComponents:g}=s(),f=y.computed(()=>{if(!l.started.value)return null;if(E.value)return E.value.component;const d=u.matches.at(c);if(!d)return null;const R=g(d),_=i.name??"default";return R[_]});return()=>a.slots.default?a.slots.default({route:u,component:f.value,rejection:E.value}):f.value?y.h(f.value):null},{name:"RouterView",props:["name"]})}const mr=qe();function yr(e){const t=mr(e);return()=>{const n=y.inject(t);if(!n)throw new Ee;return n}}const Vs="lazy",Ds={components:!0,props:!1};function yt(e){return["eager","lazy","intent"].includes(e)}function Rr({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){const o=fn(n,r),s=fn(t,r),i=fn(e,r),a=[o,s,i,Ds[r],Vs].reduce((u,l)=>yt(u)?u:u===!0&&yt(l)?l:u===!0&&!yt(l)?u:u===void 0?l:u,void 0);return yt(a)?a:!1}function fn(e,t){return Ae(e)?e[t]:e}const xs=y.defineAsyncComponent(()=>new Promise(e=>{e({default:{template:"foo"}})}));function Sr(e){return e.name===xs.name&&"__asyncLoader"in e}const Or=Symbol("visibilityObserver");function Ms(e){const t=y.inject(Or);if(!t)throw new Ee;return y.watch(e,(r,o)=>{r&&t.observe(r),o&&t.unobserve(o)},{immediate:!0}),y.onUnmounted(()=>{e.value&&t.unobserve(e.value)}),{isElementVisible:y.computed(()=>e.value?t.isElementVisible(e.value):!1)}}function wr(e,t,n){y.watch(e,(r,o)=>{r&&r.addEventListener(t,n),o&&o.removeEventListener(t,n)},{immediate:!0}),y.onUnmounted(()=>{e.value&&e.value.removeEventListener(t,n)})}function Bs(e){const t=yr(e);return n=>{const r=new Map,o=y.ref(),{getPrefetchProps:s,setPrefetchProps:i}=t(),{isElementVisible:a}=Ms(o),u=()=>{const c=Array.from(r.values()).reduce((g,f)=>(Object.assign(g,f),g),{});i(c)};y.watch(()=>y.toValue(n),({route:c,...g})=>{r.clear(),c&&E("eager",c,g)},{immediate:!0}),y.watch(a,c=>{const{route:g,...f}=y.toValue(n);!g||!c||E("lazy",g,f)},{immediate:!0}),wr(o,"focusin",l),wr(o,"mouseover",l);function l(){const{route:c,...g}=y.toValue(n);c&&E("intent",c,g)}function E(c,g,f){js(c,g,f),r.has(c)||r.set(c,s(c,g,f))}return{element:o,commit:u}}}function js(e,t,n){t.matches.forEach(r=>{Rr({...n,routePrefetch:r.prefetch},"components")===e&&(Mt(r)&&Sr(r.component)&&r.component.__asyncLoader(),jt(r)&&Object.values(r.components).forEach(s=>{Sr(s)&&s.__asyncLoader()}))})}function Tr(e){const t=Ke(e),n=Bs(e),r=cn(e);return(o,s={},i={})=>{const a=t(),u=y.computed(()=>{const p=y.toValue(o);return typeof p!="string"?p:ee(p)?a.find(p,y.toValue(i)):a.resolve(p,y.toValue(s),y.toValue(i))}),l=y.computed(()=>{if(u.value)return u.value.href;const p=y.toValue(o);if(ee(p))return p;console.error(new Error("Failed to resolve route in RouterLink."))}),E=y.computed(()=>r(a.route)&&a.route.matches.some(p=>p.id===u.value?.id)),c=y.computed(()=>a.route.id===u.value?.id),g=y.computed(()=>r(a.route)&&$o(u.value)&&a.route.href.startsWith(u.value.href)),f=y.computed(()=>a.route.href===u.value?.href),d=y.computed(()=>!!l.value&&a.isExternal(l.value)),R=y.computed(()=>{const p=y.toValue(o);return typeof p!="string"||ee(p)?y.toValue(s):y.toValue(i)}),{element:_,commit:m}=n(()=>({route:u.value,routerPrefetch:a.prefetch,linkPrefetch:R.value.prefetch})),T=p=>{m();const P={replace:p?.replace??R.value.replace,query:rr(R.value.query,p?.query),hash:p?.hash??R.value.hash,state:{...R.value.state,...p?.state}},I=y.toValue(o);return ee(I)||typeof I=="object"?a.push(I,P):a.push(I,y.toValue(s),P)};return{element:_,route:u,href:l,isMatch:E,isExactMatch:c,isActive:g,isExactActive:f,isExternal:d,push:T,replace:p=>T({...p,replace:!0})}}}function Pr(e){const t=Ke(e),n=Tr(e);return y.defineComponent((r,o)=>{const s=t(),i=y.computed(()=>m(r.to)),a=y.computed(()=>T(r.to)),u=y.computed(()=>{const{to:p,...P}=r;return P}),{element:l,isMatch:E,isExactMatch:c,isActive:g,isExactActive:f,isExternal:d,push:R}=n(()=>typeof r.to=="function"?r.to(s.resolve):r.to,u),_=y.computed(()=>({"router-link--match":E.value,"router-link--exact-match":c.value,"router-link--active":g.value,"router-link--exact-active":f.value}));function m(p){if(typeof p=="function"){const P=p(s.resolve);return m(P)}return ee(p)?s.find(p):p}function T(p){if(typeof p=="function"){const P=p(s.resolve);return T(P)}return ee(p)?p:p?.href}function h(p){p.preventDefault(),R()}return()=>y.h("a",{href:a.value,class:["router-link",_.value],ref:l,onClick:h},o.slots.default?.({route:i.value,isMatch:E.value,isExactMatch:c.value,isActive:g.value,isExactActive:f.value,isExternal:d.value}))},{name:"RouterLink",props:["to","prefetch","query","hash","replace","state"]})}function Hs(e){const t=mt(e);return(n,r=String)=>{const o=t(),s=y.computed({get(){const a=o.query.get(y.toValue(n));return a===null?null:en(a,{param:r})},set(a){o.query.set(y.toValue(n),ce(a,{param:r}))}}),i=y.computed({get(){return o.query.getAll(y.toValue(n)).map(u=>en(u,{param:r})).filter(u=>u!==null)},set(a){const u=new URLSearchParams(o.query);u.delete(y.toValue(n)),a.forEach(l=>{u.append(y.toValue(n),ce(l,{param:r}))}),o.query=u}});return{value:s,values:i,remove:()=>{o.query.delete(y.toValue(n))}}}}function Nr(e){const t=typeof e=="object"?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s}=ks(t),i=cn(t),a=un(t),u=Pr(t),l=mt(t),E=Ke(t),c=Hs(t),g=Tr(t),f=gr(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s,isRoute:i,RouterView:a,RouterLink:u,useRoute:l,useRouter:E,useQueryValue:c,useLink:g,useRejection:f}}function Zs(e){const{store:t,...n}=st();return{routes:e.routes??[],rejections:e.rejections??[],hooks:t,...n}}function br(e){return{get:(t,{invalid:n})=>{for(const r of e){const o=en(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(const r of e){const o=Qo(t,{param:r,isOptional:!1,isGreedy:!1});if(o!==void 0)return o}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}const $s={separator:","};function Gs(e,t={}){const{separator:n}={...$s,...t},r=br(e);return{get:(o,s)=>o.split(n).map(i=>r.get(i,s)),set:(o,s)=>{if(!Array.isArray(o))throw s.invalid("Expected an array");return o.map(i=>r.set(i,s)).join(n)}}}const qs={separator:","};function Fs(e,t={}){const{separator:n}={...qs,...t};return{get:r=>{const o=r.split(n);return e.map((s,i)=>_e(o.at(i),{param:s}))},set:(r,{invalid:o})=>{if(!Array.isArray(r))throw o("Expected a tuple");if(r.length!==e.length)throw o(`Expected tuple with ${e.length} values but received ${r.length} values`);return e.map((s,i)=>ce(r.at(i),{param:s})).join(n)}}}function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},de.apply(null,arguments)}var W;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(W||(W={}));var Ce=process.env.NODE_ENV!=="production"?function(e){return Object.freeze(e)}:function(e){return e};function Se(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}var Rt="beforeunload",zs="hashchange",Ar="popstate";function Ir(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function s(){var N=r.location,S=N.pathname,b=N.search,C=N.hash,U=o.state||{};return[U.idx,Ce({pathname:S,search:b,hash:C,state:U.usr||null,key:U.key||"default"})]}var i=null;function a(){if(i)f.call(i),i=null;else{var N=W.Pop,S=s(),b=S[0],C=S[1];if(f.length)if(b!=null){var U=E-b;U&&(i={action:N,location:C,retry:function(){P(U*-1)}},P(U))}else process.env.NODE_ENV!=="production"&&Se(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else T(N)}}r.addEventListener(Ar,a);var u=W.Pop,l=s(),E=l[0],c=l[1],g=Ue(),f=Ue();E==null&&(E=0,o.replaceState(de({},o.state,{idx:E}),""));function d(N){return typeof N=="string"?N:Oe(N)}function R(N,S){return S===void 0&&(S=null),Ce(de({pathname:c.pathname,hash:"",search:""},typeof N=="string"?Ye(N):N,{state:S,key:Ot()}))}function _(N,S){return[{usr:N.state,key:N.key,idx:S},d(N)]}function m(N,S,b){return!f.length||(f.call({action:N,location:S,retry:b}),!1)}function T(N){u=N;var S=s();E=S[0],c=S[1],g.call({action:u,location:c})}function h(N,S){var b=W.Push,C=R(N,S);function U(){h(N,S)}if(m(b,C,U)){var B=_(C,E+1),M=B[0],j=B[1];try{o.pushState(M,"",j)}catch{r.location.assign(j)}T(b)}}function p(N,S){var b=W.Replace,C=R(N,S);function U(){p(N,S)}if(m(b,C,U)){var B=_(C,E),M=B[0],j=B[1];o.replaceState(M,"",j),T(b)}}function P(N){o.go(N)}var I={get action(){return u},get location(){return c},createHref:d,push:h,replace:p,go:P,back:function(){P(-1)},forward:function(){P(1)},listen:function(S){return g.push(S)},block:function(S){var b=f.push(S);return f.length===1&&r.addEventListener(Rt,St),function(){b(),f.length||r.removeEventListener(Rt,St)}}};return I}function Ws(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function s(){var S=Ye(r.location.hash.substr(1)),b=S.pathname,C=b===void 0?"/":b,U=S.search,B=U===void 0?"":U,M=S.hash,j=M===void 0?"":M,G=o.state||{};return[G.idx,Ce({pathname:C,search:B,hash:j,state:G.usr||null,key:G.key||"default"})]}var i=null;function a(){if(i)f.call(i),i=null;else{var S=W.Pop,b=s(),C=b[0],U=b[1];if(f.length)if(C!=null){var B=E-C;B&&(i={action:S,location:U,retry:function(){I(B*-1)}},I(B))}else process.env.NODE_ENV!=="production"&&Se(!1,"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation.");else h(S)}}r.addEventListener(Ar,a),r.addEventListener(zs,function(){var S=s(),b=S[1];Oe(b)!==Oe(c)&&a()});var u=W.Pop,l=s(),E=l[0],c=l[1],g=Ue(),f=Ue();E==null&&(E=0,o.replaceState(de({},o.state,{idx:E}),""));function d(){var S=document.querySelector("base"),b="";if(S&&S.getAttribute("href")){var C=r.location.href,U=C.indexOf("#");b=U===-1?C:C.slice(0,U)}return b}function R(S){return d()+"#"+(typeof S=="string"?S:Oe(S))}function _(S,b){return b===void 0&&(b=null),Ce(de({pathname:c.pathname,hash:"",search:""},typeof S=="string"?Ye(S):S,{state:b,key:Ot()}))}function m(S,b){return[{usr:S.state,key:S.key,idx:b},R(S)]}function T(S,b,C){return!f.length||(f.call({action:S,location:b,retry:C}),!1)}function h(S){u=S;var b=s();E=b[0],c=b[1],g.call({action:u,location:c})}function p(S,b){var C=W.Push,U=_(S,b);function B(){p(S,b)}if(process.env.NODE_ENV!=="production"&&Se(U.pathname.charAt(0)==="/","Relative pathnames are not supported in hash history.push("+JSON.stringify(S)+")"),T(C,U,B)){var M=m(U,E+1),j=M[0],G=M[1];try{o.pushState(j,"",G)}catch{r.location.assign(G)}h(C)}}function P(S,b){var C=W.Replace,U=_(S,b);function B(){P(S,b)}if(process.env.NODE_ENV!=="production"&&Se(U.pathname.charAt(0)==="/","Relative pathnames are not supported in hash history.replace("+JSON.stringify(S)+")"),T(C,U,B)){var M=m(U,E),j=M[0],G=M[1];o.replaceState(j,"",G),h(C)}}function I(S){o.go(S)}var N={get action(){return u},get location(){return c},createHref:R,push:p,replace:P,go:I,back:function(){I(-1)},forward:function(){I(1)},listen:function(b){return g.push(b)},block:function(b){var C=f.push(b);return f.length===1&&r.addEventListener(Rt,St),function(){C(),f.length||r.removeEventListener(Rt,St)}}};return N}function vr(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?["/"]:n,o=t.initialIndex,s=r.map(function(h){var p=Ce(de({pathname:"/",search:"",hash:"",state:null,key:Ot()},typeof h=="string"?Ye(h):h));return process.env.NODE_ENV!=="production"&&Se(p.pathname.charAt(0)==="/","Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: "+JSON.stringify(h)+")"),p}),i=kr(o??s.length-1,0,s.length-1),a=W.Pop,u=s[i],l=Ue(),E=Ue();function c(h){return typeof h=="string"?h:Oe(h)}function g(h,p){return p===void 0&&(p=null),Ce(de({pathname:u.pathname,search:"",hash:""},typeof h=="string"?Ye(h):h,{state:p,key:Ot()}))}function f(h,p,P){return!E.length||(E.call({action:h,location:p,retry:P}),!1)}function d(h,p){a=h,u=p,l.call({action:a,location:u})}function R(h,p){var P=W.Push,I=g(h,p);function N(){R(h,p)}process.env.NODE_ENV!=="production"&&Se(u.pathname.charAt(0)==="/","Relative pathnames are not supported in memory history.push("+JSON.stringify(h)+")"),f(P,I,N)&&(i+=1,s.splice(i,s.length,I),d(P,I))}function _(h,p){var P=W.Replace,I=g(h,p);function N(){_(h,p)}process.env.NODE_ENV!=="production"&&Se(u.pathname.charAt(0)==="/","Relative pathnames are not supported in memory history.replace("+JSON.stringify(h)+")"),f(P,I,N)&&(s[i]=I,d(P,I))}function m(h){var p=kr(i+h,0,s.length-1),P=W.Pop,I=s[p];function N(){m(h)}f(P,I,N)&&(i=p,d(P,I))}var T={get index(){return i},get action(){return a},get location(){return u},createHref:c,push:R,replace:_,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(p){return l.push(p)},block:function(p){return E.push(p)}};return T}function kr(e,t,n){return Math.min(Math.max(e,t),n)}function St(e){e.preventDefault(),e.returnValue=""}function Ue(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function Ot(){return Math.random().toString(36).substr(2,8)}function Oe(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,s=e.hash,i=s===void 0?"":s;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function Ye(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Js(e,t,n){const r=y.reactive({...t}),o=a=>{Object.assign(r,{...a})},s=r,i=Ls(e,s,n);return{currentRoute:s,routerRoute:i,updateRoute:o}}function Ks(e){return t=>{const{host:n}=ue(t);return!(n===void 0||n===e)}}function Cr(e){try{const t=e();return Jt(t)?t.catch(n=>n):t}catch(t){return t}}function Ys(){const{setVueApp:e,runWithContext:t}=dr(),n=y.reactive(new Map),r=(g,f,d)=>{const{push:R,replace:_,reject:m,update:T}=Je({to:f});return f.matches.filter(h=>Rr({...d,routePrefetch:h.prefetch},"props")===g).flatMap(h=>E(h)).reduce((h,{id:p,name:P,props:I})=>{if(!I)return h;const N=l(p,P,f),S=t(()=>Cr(()=>I(f,{push:R,replace:_,reject:m,update:T,parent:a(f,!0)})));return h[N]=S,h},{})},o=g=>{Object.entries(g).forEach(([f,d])=>{n.set(f,d)})},s=async g=>{const{push:f,replace:d,reject:R,update:_}=Je({to:g}),m=g.matches.flatMap(E),T=[],h=[];for(const{id:p,name:P,props:I}of m){if(!I)continue;const N=l(p,P,g);if(T.push(N),!n.has(N)){const S=t(()=>Cr(()=>I(g,{push:f,replace:d,reject:R,update:_,parent:a(g)})));n.set(N,S)}h.push((async()=>{const S=await n.get(N);if(S instanceof Error)throw S})())}c(T);try{return await Promise.all(h),{status:"SUCCESS"}}catch(p){if(p instanceof fe||p instanceof Re)return p.response;throw p}},i=(g,f,d)=>{const R=l(g,f,d);return n.get(R)};function a(g,f=!1){const d=g.matches.at(-2);if(d)return Bt(d)?{name:d.name??"",get props(){return u(d,"default",g,f)}}:Ht(d)?{name:d.name??"",props:new Proxy({},{get(R,_){return typeof _!="string"?Reflect.get(R,_):u(d,_,g,f)}})}:{name:d.name??"",props:void 0}}function u(g,f,d,R=!1){const _=i(g.id,f,d);if(R&&!_){const m=g.name??"unknown",T=d.name||"unknown";console.warn(`
2
2
  Unable to access parent props "${f}" from route "${m}" while prefetching props for route "${T}".
3
3
  This may occur if the parent route's props were not also prefetched.
4
- `)}return _}function l(g,f,d){return[g,f,d.id,JSON.stringify(d.params)].join("-")}function E(g){return Bt(g)?[{id:g.id,name:"default",props:g.props}]:Ht(g)?Object.entries(g.props).map(([f,d])=>({id:g.id,name:f,props:d})):[]}function c(g){for(const f of n.keys())g.includes(f)||n.delete(f)}return{getPrefetchProps:r,setPrefetchProps:o,getProps:i,setProps:s,setVueApp:e}}function wt(){return typeof window<"u"&&typeof window.document<"u"}function Qs({mode:e,listener:t}){const n=Xs(e),r=(u,l)=>{if(l?.replace){n.replace(u,l.state);return}n.push(u,l?.state)},o=()=>{const u=Oe(n.location);n.replace(u)};let s;return{...n,update:r,refresh:o,startListening:()=>{s?.(),s=n.listen(t)},stopListening:()=>{s?.()}}}function Xs(e="auto"){switch(e){case"auto":return wt()?Ar():Ir();case"browser":return Ar();case"memory":return Ir();case"hash":return Ws();default:const t=e;throw new Error(`Switch is not exhaustive for mode: ${t}`)}}function Cr(e){const t=new URLSearchParams(e);return{get:(...n)=>t.get(...n),getAll:(...n)=>t.getAll(...n),set:(...n)=>{t.set(...n)},append:(...n)=>{t.append(...n)},delete:(...n)=>{t.delete(...n)},toString:(...n)=>t.toString(...n),forEach:(...n)=>{t.forEach(...n)},entries:(...n)=>t.entries(...n),keys:(...n)=>t.keys(...n),values:(...n)=>t.values(...n),has:(...n)=>t.has(...n),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function ei(e){const t=s=>{const i=e.find(a=>a.type===s);return y.markRaw(i?.component??cr(s))},n=s=>{const i=y.markRaw(t(s)),a={id:Gt(),component:i,meta:{},state:{}};return{id:a.id,matched:a,matches:[a],hooks:[],name:s,query:Cr(""),params:{},state:{},href:"/",hash:""}},r=s=>{if(!s){o.value=null;return}const i=t(s);o.value={type:s,component:i}},o=y.ref(null);return{setRejection:r,rejection:o,getRejectionRoute:n}}class ti extends Error{constructor(){super("initialUrl must be set if window.location is unavailable")}}function ni(e){if(e)return e;if(wt())return window.location.toString();throw new ti}function Ur(e){return!!e&&typeof e=="object"}const Tt={isOptional:!0,isGreedy:!1};function ri(e,t,n){if(Ur(e)&&t in e){const r=e[t];return typeof r=="string"?_e(r,{param:n,...Tt}):r}return _e(void 0,{param:n,...Tt})}function oi(e,t){const n={};for(const[r,o]of Object.entries(e)){const s=ri(t,r,o);n[r]=s}return n}function si(e,t,n){if(Ur(e)&&t in e){const r=e[t];return ce(r,{param:n,...Tt})}return ce(void 0,{param:n,...Tt})}const Lr=(e,t)=>{const n={};for(const[r,o]of Object.entries(e)){const s=si(t,r,o);n[r]=s}return n};function ii(){const e=y.reactive(new Map),t=wt()?i():null,n=a=>{e.set(a,!1),t?.observe(a)},r=a=>{e.delete(a),t?.unobserve(a)},o=()=>{t?.disconnect()},s=a=>e.get(a)??!1;function i(){return new IntersectionObserver(a=>{a.forEach(u=>{e.set(u.target,u.isIntersecting)})})}return{observe:n,unobserve:r,disconnect:o,isElementVisible:s}}class ai extends Error{constructor(t){super(`Route not found: "${t}"`)}}function Vr(e,t={},n={}){const r=e.stringify(t),o=Ge(r,{query:new URLSearchParams(n.query),hash:n.hash}),{query:s,hash:i}=ue(o);return{id:e.id,matched:e.matched,matches:e.matches,name:e.name,hooks:e.hooks,query:Cr(s),state:oi(e.state,n.state),hash:i,params:t,href:o}}class ci extends Error{constructor(t){super(`Invalid Name "${t}": Router does not support multiple routes with the same name. All name names must be unique.`)}}function Dr(e){return"name"in e&&se(e.name)}function ui(e,t){return se(t)?le(e)&&e.schema.path.value==="/"?{...e,...me({path:t})}:{...e,...an(me({path:t}),e)}:e}function fi(e,t=[],n){const r=new Map,o=[...e,...t.map(a=>a.routes)];function s(a){if(!Dr(a))return;const u=r.get(a.name);if(u&&u.id!==a.id)throw new ci(a.name);if(!(u&&u.id===a.id)){r.set(a.name,ui(a,n));for(const l of a.context)li(l)&&s(l)}}function i(a){for(const u of a)s(u)}for(const a of o){if(di(a)){i(a);continue}s(a)}return{routes:Array.from(r.values()).sort(pi),getRouteByName:a=>r.get(a)}}function li(e){return"id"in e}function di(e){return Array.isArray(e)}function pi(e,t){return t.depth-e.depth}function hi(e=[]){const t=new ge;return e.forEach(n=>{n.hooks.onBeforeRouteEnter.forEach(r=>t.onBeforeRouteEnter.add(r)),n.hooks.onBeforeRouteUpdate.forEach(r=>t.onBeforeRouteUpdate.add(r)),n.hooks.onBeforeRouteLeave.forEach(r=>t.onBeforeRouteLeave.add(r)),n.hooks.onAfterRouteEnter.forEach(r=>t.onAfterRouteEnter.add(r)),n.hooks.onAfterRouteUpdate.forEach(r=>t.onAfterRouteUpdate.add(r)),n.hooks.onAfterRouteLeave.forEach(r=>t.onAfterRouteLeave.add(r))}),t}function Ei(e,{match:t,name:n,component:r}){const o=mr(e),s=mt(e);return y.defineComponent({name:"PropsWrapper",expose:[],setup(){const i=y.getCurrentInstance(),a=o(),u=s();return()=>{const l=a.getProps(t.id,n,u);return l instanceof Error?"":Jt(l)?i?.suspense?y.h(_i,{component:r,props:l}):y.h(gi,{component:r,props:l}):y.h(r,l)}}})}const gi=y.defineComponent(e=>{const t=y.ref();return y.watch(()=>e.props,async n=>{t.value=await n},{immediate:!0,deep:!0}),()=>t.value instanceof Error?"":t.value?y.h(e.component,t.value):""},{props:["component","props"]}),_i=y.defineComponent(async e=>{const t=y.ref();return t.value=await e.props,y.watch(()=>t.value,async n=>{t.value=await n},{deep:!0}),()=>t.value instanceof Error?"":t.value?y.h(e.component,t.value):""},{props:["component","props"]});function mi(e){const t=new Map;return{getRouteComponents:r=>{const o=t.get(r.id);if(o)return o;const s=yi(e,r);return t.set(r.id,s),s}}}function yi(e,t){const n=un(e);return jt(t)?xr(e,t,t.components):Mt(t)?xr(e,t,{default:t.component}):{default:n}}function xr(e,t,n){return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,Ei(e,{match:t,name:r,component:o})]))}const Mr=Symbol();var Ri=Object.create,Br=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,jr=Object.getOwnPropertyNames,Oi=Object.getPrototypeOf,wi=Object.prototype.hasOwnProperty,Ti=(e,t)=>function(){return t||(0,e[jr(e)[0]])((t={exports:{}}).exports,t),t.exports},Pi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=jr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!wi.call(e,a)&&a!==n&&Br(e,a,{get:(u=>t[u]).bind(null,a),enumerable:!(r=Si(t,a))||r.enumerable});return e},Ni=(e,t,n)=>(n=e!=null?Ri(Oi(e)):{},Pi(Br(n,"default",{value:e,enumerable:!0}),e));const Hr=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,Hr&&(O.self,O.top),typeof navigator<"u"&&navigator.userAgent?.toLowerCase().includes("electron");var bi=Ti({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js":((e,t)=>{t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const i=new Map;if(i.set(Date,c=>new Date(c)),i.set(Map,(c,g)=>new Map(u(Array.from(c),g))),i.set(Set,(c,g)=>new Set(u(Array.from(c),g))),s.constructorHandlers)for(const c of s.constructorHandlers)i.set(c[0],c[1]);let a=null;return s.proto?E:l;function u(c,g){const f=Object.keys(c),d=new Array(f.length);for(let R=0;R<f.length;R++){const _=f[R],m=c[_];typeof m!="object"||m===null?d[_]=m:m.constructor!==Object&&(a=i.get(m.constructor))?d[_]=a(m,g):ArrayBuffer.isView(m)?d[_]=n(m):d[_]=g(m)}return d}function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,l);if(c.constructor!==Object&&(a=i.get(c.constructor)))return a(c,l);const g={};for(const f in c){if(Object.hasOwnProperty.call(c,f)===!1)continue;const d=c[f];typeof d!="object"||d===null?g[f]=d:d.constructor!==Object&&(a=i.get(d.constructor))?g[f]=a(d,l):ArrayBuffer.isView(d)?g[f]=n(d):g[f]=l(d)}return g}function E(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,E);if(c.constructor!==Object&&(a=i.get(c.constructor)))return a(c,E);const g={};for(const f in c){const d=c[f];typeof d!="object"||d===null?g[f]=d:d.constructor!==Object&&(a=i.get(d.constructor))?g[f]=a(d,E):ArrayBuffer.isView(d)?g[f]=n(d):g[f]=E(d)}return g}}function o(s){const i=[],a=[],u=new Map;if(u.set(Date,f=>new Date(f)),u.set(Map,(f,d)=>new Map(E(Array.from(f),d))),u.set(Set,(f,d)=>new Set(E(Array.from(f),d))),s.constructorHandlers)for(const f of s.constructorHandlers)u.set(f[0],f[1]);let l=null;return s.proto?g:c;function E(f,d){const R=Object.keys(f),_=new Array(R.length);for(let m=0;m<R.length;m++){const T=R[m],h=f[T];if(typeof h!="object"||h===null)_[T]=h;else if(h.constructor!==Object&&(l=u.get(h.constructor)))_[T]=l(h,d);else if(ArrayBuffer.isView(h))_[T]=n(h);else{const p=i.indexOf(h);p!==-1?_[T]=a[p]:_[T]=d(h)}}return _}function c(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return E(f,c);if(f.constructor!==Object&&(l=u.get(f.constructor)))return l(f,c);const d={};i.push(f),a.push(d);for(const R in f){if(Object.hasOwnProperty.call(f,R)===!1)continue;const _=f[R];if(typeof _!="object"||_===null)d[R]=_;else if(_.constructor!==Object&&(l=u.get(_.constructor)))d[R]=l(_,c);else if(ArrayBuffer.isView(_))d[R]=n(_);else{const m=i.indexOf(_);m!==-1?d[R]=a[m]:d[R]=c(_)}}return i.pop(),a.pop(),d}function g(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return E(f,g);if(f.constructor!==Object&&(l=u.get(f.constructor)))return l(f,g);const d={};i.push(f),a.push(d);for(const R in f){const _=f[R];if(typeof _!="object"||_===null)d[R]=_;else if(_.constructor!==Object&&(l=u.get(_.constructor)))d[R]=l(_,g);else if(ArrayBuffer.isView(_))d[R]=n(_);else{const m=i.indexOf(_);m!==-1?d[R]=a[m]:d[R]=g(_)}}return i.pop(),a.pop(),d}}})}),Ai=Ni(bi());const Ii=/(?:^|[-_/])(\w)/g;function vi(e,t){return t?t.toUpperCase():""}function ki(e){return e&&`${e}`.replace(Ii,vi)}function Ci(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}const Zr=(0,Ai.default)({circles:!0}),Ui={trailing:!0};function Le(e,t=25,n={}){if(n={...Ui,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const u=(c,g)=>(i=Li(e,c,g),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const f=u(c,a);return a=null,f}}),i),l=function(...c){return n.trailing&&(a=c),i||new Promise(g=>{const f=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const d=n.leading?r:u(this,c);a=null;for(const R of s)R(d);s=[]},t),f?(r=u(this,c),g(r)):s.push(g)})},E=c=>{c&&(clearTimeout(c),o=null)};return l.isPending=()=>!!o,l.cancel=()=>{E(o),s=[],a=null},l.flush=()=>{if(E(o),!a||i)return;const c=a;return a=null,u(this,c)},l}async function Li(e,t,n){return await e.apply(t,n)}function ln(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ln(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Vi={run:e=>e()},Di=()=>Vi,$r=typeof console.createTask<"u"?console.createTask:Di;function xi(e,t){const n=t.shift(),r=$r(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Mi(e,t){const n=t.shift(),r=$r(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function dn(e,t){for(const n of[...e])n(t)}class Bi{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ln(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ln(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(xi,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Mi,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&dn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&dn(this._after,o)}):(this._after&&o&&dn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Gr(){return new Bi}var ji=Object.create,qr=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,Fr=Object.getOwnPropertyNames,Zi=Object.getPrototypeOf,$i=Object.prototype.hasOwnProperty,zr=(e,t)=>function(){return t||(0,e[Fr(e)[0]])((t={exports:{}}).exports,t),t.exports},Gi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Fr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!$i.call(e,a)&&a!==n&&qr(e,a,{get:(u=>t[u]).bind(null,a),enumerable:!(r=Hi(t,a))||r.enumerable});return e},qi=(e,t,n)=>(n=e!=null?ji(Zi(e)):{},Gi(qr(n,"default",{value:e,enumerable:!0}),e));function Fi(e){const t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t==="index"&&e.__file?.endsWith("index.vue")?"":t}function zi(e){const t=e.__file;if(t)return ki(Ci(t,".vue"))}function Wr(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function pn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Jr(e){const t=e.subTree?.type,n=pn(e);return n?n?.types?.Fragment===t:!1}function Pt(e){const t=Fi(e?.type||{});if(t)return t;if(e?.root===e)return"Root";for(const r in e.parent?.type?.components)if(e.parent.type.components[r]===e?.type)return Wr(e,r);for(const r in e.appContext?.components)if(e.appContext.components[r]===e?.type)return Wr(e,r);const n=zi(e?.type||{});return n||"Anonymous Component"}function Wi(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?"root":e.uid}`}function hn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Ji(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}let Nt;function Ki(e){return Nt||(Nt=document.createRange()),Nt.selectNode(e),Nt.getBoundingClientRect()}function Yi(e){const t=Ji();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=we(o.component);else if(o.el){const i=o.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=Ki(i))}s&&Qi(t,s)}return t}function Qi(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}const Kr={top:0,left:0,right:0,bottom:0,width:0,height:0};function we(e){const t=e.subTree.el;return typeof window>"u"?Kr:Jr(e)?Yi(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?we(e.subTree.component):Kr}function En(e){return Jr(e)?Xi(e.subTree):e.subTree?[e.subTree.el]:[]}function Xi(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...En(n.component)):n?.el&&t.push(n.el)}),t}const Yr="__vue-devtools-component-inspector__",Qr="__vue-devtools-component-inspector__card__",Xr="__vue-devtools-component-inspector__name__",eo="__vue-devtools-component-inspector__indicator__",to={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ea={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},ta={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Ve(){return document.getElementById(Yr)}function na(){return document.getElementById(Qr)}function ra(){return document.getElementById(eo)}function oa(){return document.getElementById(Xr)}function gn(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function _n(e){const t=document.createElement("div");t.id=e.elementId??Yr,Object.assign(t.style,{...to,...gn(e.bounds),...e.style});const n=document.createElement("span");n.id=Qr,Object.assign(n.style,{...ea,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Xr,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const o=document.createElement("i");return o.id=eo,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,ta),n.appendChild(r),n.appendChild(o),t.appendChild(n),document.body.appendChild(t),t}function mn(e){const t=Ve(),n=na(),r=oa(),o=ra();t&&(Object.assign(t.style,{...to,...gn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function sa(e){const t=we(e);if(!t.width&&!t.height)return;const n=Pt(e);Ve()?mn({bounds:t,name:n}):_n({bounds:t,name:n})}function no(){const e=Ve();e&&(e.style.display="none")}let yn=null;function Rn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(yn=n,n.vnode.el)){const r=we(n),o=Pt(n);Ve()?mn({bounds:r,name:o}):_n({bounds:r,name:o})}}}function ia(e,t){e.preventDefault(),e.stopPropagation(),yn&&t(Wi(yn))}let bt=null;function aa(){no(),window.removeEventListener("mouseover",Rn),window.removeEventListener("click",bt,!0),bt=null}function ca(){return window.addEventListener("mouseover",Rn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),ia(n,r=>{window.removeEventListener("click",t,!0),bt=null,window.removeEventListener("mouseover",Rn);const o=Ve();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}bt=t,window.addEventListener("click",t,!0)})}function ua(e){const t=hn(z.value,e.id);if(t){const[n]=En(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=we(t),o=document.createElement("div"),s={...gn(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=we(t);if(r.width||r.height){const o=Pt(t),s=Ve();s?mn({...e,name:o,bounds:r}):_n({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}O.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function fa(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function la(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function da(){return new Promise(e=>{function t(){la(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():fa(()=>{t()})})}let At=(function(e){return e.SKIP="__v_skip",e.IS_REACTIVE="__v_isReactive",e.IS_READONLY="__v_isReadonly",e.IS_SHALLOW="__v_isShallow",e.RAW="__v_raw",e})({});function pa(e){return!!(e&&e[At.IS_READONLY])}function ro(e){return pa(e)?ro(e[At.RAW]):!!(e&&e[At.IS_REACTIVE])}function Sn(e){return!!(e&&e.__v_isRef===!0)}function Qe(e){const t=e&&e[At.RAW];return t?Qe(t):e}var ha=class{constructor(){this.refEditor=new Ea}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],i=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Qe(t)instanceof Map?t.delete(n):Qe(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Qe(t)instanceof Map?t.set(e.newKey||n,r):Qe(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Ea=class{set(e,t){if(Sn(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Sn(e)?e.value:e}isRef(e){return Sn(e)||ro(e)}};const ga="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function _a(){if(typeof window>"u"||!Hr||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=typeof localStorage.getItem<"u"?localStorage.getItem(ga):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];const ma=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function ya(e,t){Z.timelineLayersState[t.id]=!1,ma.push({...e,descriptorId:t.id,appRecord:pn(t.app)})}O.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];const On=new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),oo=Le(()=>{xe.hooks.callHook(Te.SEND_INSPECTOR_TO_CLIENT,so())});function Ra(e,t){On.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??"Search tree...",stateFilterPlaceholder:e.stateFilterPlaceholder??"Search state...",treeFilter:"",selectedNodeId:"",appRecord:pn(t.app)}),oo()}function so(){return On.filter(e=>e.descriptor.app===z.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{const t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${n?.icon?.replace(/_/g,"-")}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function It(e,t){return On.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}let $=(function(e){return e.VISIT_COMPONENT_TREE="visitComponentTree",e.INSPECT_COMPONENT="inspectComponent",e.EDIT_COMPONENT_STATE="editComponentState",e.GET_INSPECTOR_TREE="getInspectorTree",e.GET_INSPECTOR_STATE="getInspectorState",e.EDIT_INSPECTOR_STATE="editInspectorState",e.INSPECT_TIMELINE_EVENT="inspectTimelineEvent",e.TIMELINE_CLEARED="timelineCleared",e.SET_PLUGIN_SETTINGS="setPluginSettings",e})({}),x=(function(e){return e.ADD_INSPECTOR="addInspector",e.SEND_INSPECTOR_TREE="sendInspectorTree",e.SEND_INSPECTOR_STATE="sendInspectorState",e.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",e.TIMELINE_LAYER_ADDED="timelineLayerAdded",e.TIMELINE_EVENT_ADDED="timelineEventAdded",e.GET_COMPONENT_INSTANCES="getComponentInstances",e.GET_COMPONENT_BOUNDS="getComponentBounds",e.GET_COMPONENT_NAME="getComponentName",e.COMPONENT_HIGHLIGHT="componentHighlight",e.COMPONENT_UNHIGHLIGHT="componentUnhighlight",e})({}),Te=(function(e){return e.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",e.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",e.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",e.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",e.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",e.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",e.ROUTER_INFO_UPDATED="routerInfoUpdated",e})({});function Sa(){const e=Gr();e.hook(x.ADD_INSPECTOR,({inspector:r,plugin:o})=>{Ra(r,o.descriptor)});const t=Le(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||Z.highPerfModeEnabled)return;const s=It(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(a=>{e.callHookWith(async u=>{await Promise.all(u.map(l=>l(i))),a()},$.GET_INSPECTOR_TREE)}),e.callHookWith(async a=>{await Promise.all(a.map(u=>u({inspectorId:r,rootNodes:i.rootNodes})))},Te.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(x.SEND_INSPECTOR_TREE,t);const n=Le(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||Z.highPerfModeEnabled)return;const s=It(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,nodeId:s?.selectedNodeId||"",state:null},a={currentTab:`custom-inspector:${r}`};i.nodeId&&await new Promise(u=>{e.callHookWith(async l=>{await Promise.all(l.map(E=>E(i,a))),u()},$.GET_INSPECTOR_STATE)}),e.callHookWith(async u=>{await Promise.all(u.map(l=>l({inspectorId:r,nodeId:i.nodeId,state:i.state})))},Te.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(x.SEND_INSPECTOR_STATE,n),e.hook(x.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:r,nodeId:o,plugin:s})=>{const i=It(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook(x.TIMELINE_LAYER_ADDED,({options:r,plugin:o})=>{ya(r,o.descriptor)}),e.hook(x.TIMELINE_EVENT_ADDED,({options:r,plugin:o})=>{Z.highPerfModeEnabled||!Z.timelineLayersState?.[o.descriptor.id]&&!["performance","component-event","keyboard","mouse"].includes(r.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(i=>i(r)))},Te.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(x.GET_COMPONENT_INSTANCES,async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([i])=>i.split(":")[0]===s).map(([,i])=>i)}),e.hook(x.GET_COMPONENT_BOUNDS,async({instance:r})=>we(r)),e.hook(x.GET_COMPONENT_NAME,({instance:r})=>Pt(r)),e.hook(x.COMPONENT_HIGHLIGHT,({uid:r})=>{const o=z.value.instanceMap.get(r);o&&sa(o)}),e.hook(x.COMPONENT_UNHIGHLIGHT,()=>{no()}),e}O.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??="",O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];const De="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Oa(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:_a()}}O[De]??=Oa();const wa=Le(e=>{xe.hooks.callHook(Te.DEVTOOLS_STATE_UPDATED,{state:e})});Le((e,t)=>{xe.hooks.callHook(Te.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});const vt=new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_APP_RECORDS__:O.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),z=new Proxy(O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function io(){wa({...O[De],appRecords:vt.value,activeAppRecordId:z.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Ta(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,io()}function Pa(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,io()}const Z=new Proxy(O[De],{get(e,t){return t==="appRecords"?vt:t==="activeAppRecordId"?z.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[De][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[De]},e[t]=n,O[De][t]=n,!0}});function Na(e={}){const{file:t,host:n,baseUrl:r=window.location.origin,line:o=0,column:s=0}=e;if(t){if(n==="chrome-extension"){const i=t.replace(/\\/g,"\\\\"),a=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??"/";fetch(`${a}__open-in-editor?file=${encodeURI(t)}`).then(u=>{if(!u.ok){const l=`Opening component ${i} failed`;console.log(`%c${l}`,"color:red")}})}else if(Z.vitePluginDetected){const i=O.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;O.__VUE_INSPECTOR__.openInEditor(i,t,o,s)}}}O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];const wn=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Tn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Pn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ba(e){return(wn.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function ao(e,t){const n=Pn(e);if(n){const r=localStorage.getItem(n);if(r)return JSON.parse(r)}return Tn(e?(wn.find(r=>r[0].id===e)?.[0]??null)?.settings??{}:t)}function Aa(e,t){const n=Pn(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Tn(t)))}function Ia(e,t,n){const r=Pn(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),xe.hooks.callHookWith(a=>{a.forEach(u=>u({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},$.SET_PLUGIN_SETTINGS)}let Y=(function(e){return e.APP_INIT="app:init",e.APP_UNMOUNT="app:unmount",e.COMPONENT_UPDATED="component:updated",e.COMPONENT_ADDED="component:added",e.COMPONENT_REMOVED="component:removed",e.COMPONENT_EMIT="component:emit",e.PERFORMANCE_START="perf:start",e.PERFORMANCE_END="perf:end",e.ADD_ROUTE="router:add-route",e.REMOVE_ROUTE="router:remove-route",e.RENDER_TRACKED="render:tracked",e.RENDER_TRIGGERED="render:triggered",e.APP_CONNECTED="app:connected",e.SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup",e})({});const Q=O.__VUE_DEVTOOLS_HOOK??=Gr(),co={on:{vueAppInit(e){Q.hook(Y.APP_INIT,e)},vueAppUnmount(e){Q.hook(Y.APP_UNMOUNT,e)},vueAppConnected(e){Q.hook(Y.APP_CONNECTED,e)},componentAdded(e){return Q.hook(Y.COMPONENT_ADDED,e)},componentEmit(e){return Q.hook(Y.COMPONENT_EMIT,e)},componentUpdated(e){return Q.hook(Y.COMPONENT_UPDATED,e)},componentRemoved(e){return Q.hook(Y.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){Q.hook(Y.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return Q.hook(Y.PERFORMANCE_START,e)},perfEnd(e){return Q.hook(Y.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return Q.callHook(Y.SETUP_DEVTOOLS_PLUGIN,e,t)}};var va=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook($.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook($.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook($.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook($.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook($.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook($.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook($.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook($.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook($.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(Z.highPerfModeEnabled)return;const t=so().find(n=>n.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){const n=[e.appContext.app,e.uid,e.parent?.uid,e];Q.callHook(Y.COMPONENT_UPDATED,...n)}else Q.callHook(Y.COMPONENT_UPDATED);this.hooks.callHook(x.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(x.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Aa(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){Z.highPerfModeEnabled||this.hooks.callHook(x.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){Z.highPerfModeEnabled||this.hooks.callHook(x.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(x.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook($.VISIT_COMPONENT_TREE,e)}now(){return Z.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(x.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){Z.highPerfModeEnabled||this.hooks.callHook(x.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return ao(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(x.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(x.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(x.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(x.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(x.COMPONENT_UNHIGHLIGHT)}};const ka=va,Ca="__vue_devtool_undefined__",Ua="__vue_devtool_infinity__",La="__vue_devtool_negative_infinity__",Va="__vue_devtool_nan__",Da={[Ca]:"undefined",[Va]:"NaN",[Ua]:"Infinity",[La]:"-Infinity"};Object.entries(Da).reduce((e,[t,n])=>(e[n]=t,e),{}),O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function xa(e,t){return co.setupDevToolsPlugin(e,t)}function Ma(e,t){const[n,r]=e;if(n.app!==t)return;const o=new ka({plugin:{setupFn:r,descriptor:n},ctx:xe});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function uo(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||Z.highPerfModeEnabled&&!t?.inspectingComponent||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),wn.forEach(n=>{Ma(n,e)}))}const kt="__VUE_DEVTOOLS_ROUTER__",Xe="__VUE_DEVTOOLS_ROUTER_INFO__";O[Xe]??={currentRoute:null,routes:[]},O[kt]??={},new Proxy(O[Xe],{get(e,t){return O[Xe][t]}}),new Proxy(O[kt],{get(e,t){if(t==="value")return O[kt]}});function Ba(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nn(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o?.length&&(o=Nn(o)),{path:n,name:r,children:o,meta:s}})}function ja(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:u}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:u,matched:Nn(i)}}return e}function Ha(e,t){function n(){const r=e.app?.config.globalProperties.$router,o=ja(r?.currentRoute.value),s=Nn(Ba(r)),i=console.warn;console.warn=()=>{},O[Xe]={currentRoute:o?Zr(o):{},routes:Zr(s)},O[kt]=r,console.warn=i}n(),co.on.componentUpdated(Le(()=>{t.value?.app===e.app&&(n(),!Z.highPerfModeEnabled&&xe.hooks.callHook(Te.ROUTER_INFO_UPDATED,{state:O[Xe]}))},200))}function Za(e){return{async getInspectorTree(t){const n={...t,app:z.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},$.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){const n={...t,app:z.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,r))),o()},$.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){const n=new ha,r={...t,app:z.value.app,set:(o,s=t.path,i=t.state.value,a)=>{n.set(o,s,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},$.EDIT_INSPECTOR_STATE)},sendInspectorState(t){const n=It(t);e.callHook(x.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ca()},cancelInspectComponentInspector(){return aa()},getComponentRenderCode(t){const n=hn(z.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return ua({id:t})},openInEditor:Na,getVueInspector:da,toggleApp(t,n){const r=vt.value.find(o=>o.id===t);r&&(Pa(t),Ta(r),Ha(r,z),oo(),uo(r.app,n))},inspectDOM(t){const n=hn(z.value,t);if(n){const[r]=En(n);r&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){Ia(t,n,r)},getPluginSettings(t){return{options:ba(t),values:ao(t)}}}}O.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};const fo=Sa();O.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:fo,get state(){return{...Z,activeAppRecordId:z.id,activeAppRecord:z.value,appRecords:vt.value}},api:Za(fo)};const xe=O.__VUE_DEVTOOLS_KIT_CONTEXT__;var $a=zr({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js":((e,t)=>{(function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),l=[";","?",":","@","&","=","+","$",","].join(""),E=[".","!","~","*","'","(",")"].join(""),c=function(_,m){var T="-",h="",p="",P=!0,I={},N,S,b,C,U,B,M,j,G,q,k,Pe,ne,he,oe="";if(typeof _!="string")return"";if(typeof m=="string"&&(T=m),M=a.en,j=i.en,typeof m=="object"){N=m.maintainCase||!1,I=m.custom&&typeof m.custom=="object"?m.custom:I,b=+m.truncate>1&&m.truncate||!1,C=m.uric||!1,U=m.uricNoSlash||!1,B=m.mark||!1,P=!(m.symbols===!1||m.lang===!1),T=m.separator||T,C&&(oe+=u),U&&(oe+=l),B&&(oe+=E),M=m.lang&&a[m.lang]&&P?a[m.lang]:P?a.en:{},j=m.lang&&i[m.lang]?i[m.lang]:m.lang===!1||m.lang===!0?{}:i.en,m.titleCase&&typeof m.titleCase.length=="number"&&Array.prototype.toString.call(m.titleCase)?(m.titleCase.forEach(function(X){I[X+""]=X+""}),S=!0):S=!!m.titleCase,m.custom&&typeof m.custom.length=="number"&&Array.prototype.toString.call(m.custom)&&m.custom.forEach(function(X){I[X+""]=X+""}),Object.keys(I).forEach(function(X){var Ne;X.length>1?Ne=new RegExp("\\b"+f(X)+"\\b","gi"):Ne=new RegExp(f(X),"gi"),_=_.replace(Ne,I[X])});for(k in I)oe+=k}for(oe+=T,oe=f(oe),_=_.replace(/(^\s+|\s+$)/g,""),ne=!1,he=!1,q=0,Pe=_.length;q<Pe;q++)k=_[q],d(k,I)?ne=!1:j[k]?(k=ne&&j[k].match(/[A-Za-z0-9]/)?" "+j[k]:j[k],ne=!1):k in r?(q+1<Pe&&o.indexOf(_[q+1])>=0?(p+=k,k=""):he===!0?(k=s[p]+r[k],p=""):k=ne&&r[k].match(/[A-Za-z0-9]/)?" "+r[k]:r[k],ne=!1,he=!1):k in s?(p+=k,k="",q===Pe-1&&(k=s[p]),he=!0):M[k]&&!(C&&u.indexOf(k)!==-1)&&!(U&&l.indexOf(k)!==-1)?(k=ne||h.substr(-1).match(/[A-Za-z0-9]/)?T+M[k]:M[k],k+=_[q+1]!==void 0&&_[q+1].match(/[A-Za-z0-9]/)?T:"",ne=!0):(he===!0?(k=s[p]+k,p="",he=!1):ne&&(/[A-Za-z0-9]/.test(k)||h.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),ne=!1),h+=k.replace(new RegExp("[^\\w\\s"+oe+"_-]","g"),T);return S&&(h=h.replace(/(\w)(\S*)/g,function(X,Ne,Vt){var be=Ne.toUpperCase()+(Vt!==null?Vt:"");return Object.keys(I).indexOf(be.toLowerCase())<0?be:be.toLowerCase()})),h=h.replace(/\s+/g,T).replace(new RegExp("\\"+T+"+","g"),T).replace(new RegExp("(^\\"+T+"+|\\"+T+"+$)","g"),""),b&&h.length>b&&(G=h.charAt(b)===T,h=h.slice(0,b),G||(h=h.slice(0,h.lastIndexOf(T)))),!N&&!S&&(h=h.toLowerCase()),h},g=function(_){return function(T){return c(T,_)}},f=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},d=function(R,_){for(var m in _)if(_[m]===R)return!0};if(typeof t<"u"&&t.exports)t.exports=c,t.exports.createSlug=g;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=c,n.createSlug=g}catch{}})(e)})}),Ga=zr({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js":((e,t)=>{t.exports=$a()})});Ga(),O.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function qa(e){Z.highPerfModeEnabled=e??!Z.highPerfModeEnabled,!e&&z.value&&uo(z.value.app)}function Fa(e){Z.devtoolsClientDetected={...Z.devtoolsClientDetected,...e},qa(!Object.values(Z.devtoolsClientDetected).some(Boolean))}O.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Fa;var za=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},lo=class{constructor(e){this.generateIdentifier=e,this.kv=new za}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Wa=class extends lo{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Ja(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Ka(e,t){const n=Ja(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function Me(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Ct(e,t){return e.indexOf(t)!==-1}function po(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var Ya=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Ka(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};const Qa=e=>Object.prototype.toString.call(e).slice(8,-1),ho=e=>typeof e>"u",Xa=e=>e===null,et=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,bn=e=>et(e)&&Object.keys(e).length===0,pe=e=>Array.isArray(e),ec=e=>typeof e=="string",tc=e=>typeof e=="number"&&!isNaN(e),nc=e=>typeof e=="boolean",rc=e=>e instanceof RegExp,tt=e=>e instanceof Map,nt=e=>e instanceof Set,Eo=e=>Qa(e)==="Symbol",oc=e=>e instanceof Date&&!isNaN(e.valueOf()),sc=e=>e instanceof Error,go=e=>typeof e=="number"&&isNaN(e),ic=e=>nc(e)||Xa(e)||ho(e)||tc(e)||ec(e)||Eo(e),ac=e=>typeof e=="bigint",cc=e=>e===1/0||e===-1/0,uc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),fc=e=>e instanceof URL,_o=e=>e.replace(/\./g,"\\."),An=e=>e.map(String).map(_o).join("."),rt=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};function ie(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const mo=[ie(ho,"undefined",()=>null,()=>{}),ie(ac,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),ie(oc,"Date",e=>e.toISOString(),e=>new Date(e)),ie(sc,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ie(rc,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ie(nt,"set",e=>[...e.values()],e=>new Set(e)),ie(tt,"map",e=>[...e.entries()],e=>new Map(e)),ie(e=>go(e)||cc(e),"number",e=>go(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ie(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ie(fc,"URL",e=>e.toString(),e=>new URL(e))];function Ut(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const yo=Ut((e,t)=>Eo(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),lc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Ro=Ut(uc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=lc[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function So(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const Oo=Ut(So,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),wo=Ut((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),dc=[Oo,yo,wo,Ro],To=(e,t)=>{const n=po(dc,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=po(mo,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Po={};mo.forEach(e=>{Po[e.annotation]=e});const pc=(e,t,n)=>{if(pe(t))switch(t[0]){case"symbol":return yo.untransform(e,t,n);case"class":return Oo.untransform(e,t,n);case"custom":return wo.untransform(e,t,n);case"typed-array":return Ro.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Po[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Be=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function No(e){if(Ct(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ct(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Ct(e,"constructor"))throw new Error("constructor is not allowed as a property")}const hc=(e,t)=>{No(t);for(let n=0;n<t.length;n++){const r=t[n];if(nt(e))e=Be(e,+r);else if(tt(e)){const o=+r,s=+t[++n]==0?"key":"value",i=Be(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},In=(e,t,n)=>{if(No(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(pe(r)){const a=+i;r=r[a]}else if(et(r))r=r[i];else if(nt(r)){const a=+i;r=Be(r,a)}else if(tt(r)){if(s===t.length-2)break;const a=+i,u=+t[++s]==0?"key":"value",l=Be(r,a);switch(u){case"key":r=l;break;case"value":r=r.get(l);break}}}const o=t[t.length-1];if(pe(r)?r[+o]=n(r[+o]):et(r)&&(r[o]=n(r[o])),nt(r)){const s=Be(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(tt(r)){const s=+t[t.length-2],i=Be(r,s);switch(+o==0?"key":"value"){case"key":{const a=n(i);r.set(a,r.get(i)),a!==i&&r.delete(i);break}case"value":r.set(i,n(r.get(i)));break}}return e};function vn(e,t,n=[]){if(!e)return;if(!pe(e)){Me(e,(s,i)=>vn(s,t,[...n,...rt(i)]));return}const[r,o]=e;o&&Me(o,(s,i)=>{vn(s,t,[...n,...rt(i)])}),t(r,n)}function Ec(e,t,n){return vn(t,(r,o)=>{e=In(e,o,s=>pc(s,r,n))}),e}function gc(e,t){function n(r,o){const s=hc(e,rt(o));r.map(rt).forEach(i=>{e=In(e,i,()=>s)})}if(pe(t)){const[r,o]=t;r.forEach(s=>{e=In(e,rt(s),()=>e)}),o&&Me(o,n)}else Me(t,n);return e}const _c=(e,t)=>et(e)||pe(e)||tt(e)||nt(e)||So(e,t);function mc(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function yc(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,u)=>a.length-u.length));const[s,...i]=o;s.length===0?r=i.map(An):n[An(s)]=i.map(An)}),r?bn(n)?[r]:[r,n]:bn(n)?void 0:n}const bo=(e,t,n,r,o=[],s=[],i=new Map)=>{const a=ic(e);if(!a){mc(e,o,t);const f=i.get(e);if(f)return r?{transformedValue:null}:f}if(!_c(e,n)){const f=To(e,n),d=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return a||i.set(e,d),d}if(Ct(s,e))return{transformedValue:null};const u=To(e,n),l=u?.value??e,E=pe(l)?[]:{},c={};Me(l,(f,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")throw new Error(`Detected property ${d}. This is a prototype pollution risk, please remove it from your object.`);const R=bo(f,t,n,r,[...o,d],[...s,e],i);E[d]=R.transformedValue,pe(R.annotations)?c[d]=R.annotations:et(R.annotations)&&Me(R.annotations,(_,m)=>{c[_o(d)+"."+m]=_})});const g=bn(c)?{transformedValue:E,annotations:u?[u.type]:void 0}:{transformedValue:E,annotations:u?[u.type,c]:c};return a||i.set(e,g),g};function Ao(e){return Object.prototype.toString.call(e).slice(8,-1)}function Io(e){return Ao(e)==="Array"}function Rc(e){if(Ao(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Sc(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kn(e,t={}){if(Io(e))return e.map(o=>kn(o,t));if(!Rc(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(Io(t.props)&&!t.props.includes(s))return o;const i=e[s];return Sc(o,s,kn(i,t),e,t.nonenumerable),o},{})}var V=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Wa,this.symbolRegistry=new lo(t=>t.description??""),this.customTransformerRegistry=new Ya,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=bo(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=yc(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=kn(t);return n?.values&&(r=Ec(r,n.values,this)),n?.referentialEqualities&&(r=gc(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};V.defaultInstance=new V,V.serialize=V.defaultInstance.serialize.bind(V.defaultInstance),V.deserialize=V.defaultInstance.deserialize.bind(V.defaultInstance),V.stringify=V.defaultInstance.stringify.bind(V.defaultInstance),V.parse=V.defaultInstance.parse.bind(V.defaultInstance),V.registerClass=V.defaultInstance.registerClass.bind(V.defaultInstance),V.registerSymbol=V.defaultInstance.registerSymbol.bind(V.defaultInstance),V.registerCustom=V.defaultInstance.registerCustom.bind(V.defaultInstance),V.allowErrorProps=V.defaultInstance.allowErrorProps.bind(V.defaultInstance),O.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],O.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;const Lt={template:"<div>This is component</div>"},Cn=ye({name:"parentA",path:"/parentA/[paramA]"}),vo=ye({parent:Cn,name:"parentA.childA",path:"/childA/[?paramB]"}),Oc=ye({parent:Cn,name:"parentA.childB",path:"/childB/[paramD]",component:Lt}),wc=ye({parent:vo,name:"parentA.childA.grandChildA",path:"/[paramC]",component:Lt});ye({name:"parentB",path:"/parentB",component:Lt}),ye({name:"parentC",path:"/",component:Lt});function Tc(e,t){return t!=="1"?`${e} ${t}`:e}const Pc=({route:e})=>!!e.name,Nc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!le(e))return!1;const n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},bc=e=>Pc(e)&&Nc(e),Ac=ot(),Ic=2282478,vc=2278750,kc=1483594;function Cc(e,t={match:!1,exactMatch:!1}){const n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:Ic}),t.match&&n.push({label:"match",textColor:0,backgroundColor:vc}),t.exactMatch&&n.push({label:"exact-match",textColor:0,backgroundColor:kc}),{id:e.id,label:e.name,tags:n}}function Uc(e,t){if(!t||!("id"in t)||!("matches"in t))return{match:!1,exactMatch:!1};const n=t.id===e.id;return{match:t.matches.some(o=>o.id===e.id),exactMatch:n}}function Lc(e){const t=[];return le(e)&&(t.push({editable:!1,key:"name",value:e.name}),t.push({editable:!1,key:"path",value:e.schema.path.value}),t.push({editable:!1,key:"query",value:e.schema.query.value}),t.push({editable:!1,key:"hash",value:e.schema.hash.value}),t.push({editable:!1,key:"meta",value:e.meta})),t}function Vc({router:e,app:t,routes:n}){if(!wt()||e.hasDevtools)return;e.hasDevtools=!0;const r=Ac(),o=new Map(n.map(a=>[a.id,a])),s=`kitbag-router-routes.${r}`,i=`kitbag-router.${r}`;xa({id:i,label:"Kitbag Router",packageName:"@kitbag/router",homepage:"https://router.kitbag.dev/",componentStateTypes:["Routing"],logo:"https://kitbag.dev/kitbag-logo-circle.svg",app:t},a=>{a.addInspector({id:s,label:Tc("Routes",r),treeFilterPlaceholder:"Search routes"}),a.on.getInspectorTree(u=>{u.app!==t||u.inspectorId!==s||(u.rootNodes=n.filter(l=>bc({route:l,payload:u})).map(l=>{const E=Uc(l,e.route);return Cc(l,E)}))}),y.watch(()=>e.route,()=>{a.sendInspectorTree(s)},{deep:!0,immediate:!1}),a.on.getInspectorState(u=>{if(u.app!==t||u.inspectorId!==s)return;const l=o.get(u.nodeId);l&&(u.state={options:Lc(l)})}),a.sendInspectorTree(s),a.sendInspectorState(s)})}function Dc(e,t,n={}){const{query:r,hash:o}=ue(Ge(t,n));for(const s of e){if(!Dr(s))continue;const{success:i,params:a}=s.tryParse(t);if(i)return Vr(s,a,{...n,query:r,hash:o})}}const ko=/^(\/.+?)\/+$/;function xc(e){const{path:t,...n}=ue(e);return nn({...n,path:t.replace(ko,"$1")})}function Mc(e){const{path:t}=ue(e);return ko.test(t)}function Bc(e,t,n=[]){const o=t?.isGlobalRouter??!0?Mr:Symbol(),s=[...n.flatMap(A=>A.rejections),...t?.rejections??[]],i=t?.removeTrailingSlashes??!0,{routes:a,getRouteByName:u}=fi(e,n,t?.base),l=Is();l.addGlobalRouteHooks(hi(n));const E=ot(),c=Ys(),g=mi(o),f=ii(),d=Qs({mode:t?.historyMode,listener:({location:A})=>{const D=Oe(A);_(D,{state:A.state,replace:!0})}});function R(A,D={}){const J=!q(A),K=a.filter(H=>H.isRelative===J);return Dc(K,A,D)}async function _(A,D={}){if(Mc(A)&&i){const ae=xc(A);if(ee(ae))return p(ae,D)}const J=E();d.stopListening();const K=R(A,D)??S("NotFound"),H=Ne(J),F=await l.runBeforeRouteHooks({to:K,from:H});switch(F.status){case"ABORT":return;case"PUSH":d.update(A,D),await h(...F.to);return;case"REJECT":d.update(A,D),I(F.type);break;case"SUCCESS":d.update(A,D),I(null);break;default:throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(F)}`)}q(A)||m(J,K,H);const je=await l.runAfterRouteHooks({to:K,from:H});switch(je.status){case"PUSH":await h(...je.to);break;case"REJECT":I(je.type);break;case"SUCCESS":break;default:const ae=je;throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(ae)}`)}d.startListening()}function m(A,D,J){const K=A;c.setProps(D).then(H=>{if(K===A)switch(H.status){case"SUCCESS":break;case"PUSH":h(...H.to);break;case"REJECT":I(H.type);break;default:const F=H;throw new Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(F)}`)}}).catch(H=>{try{l.runErrorHooks(H,{to:D,from:J,source:"props"})}catch(F){if(F instanceof fe){h(...F.response.to);return}if(F instanceof Re){I(F.response.type);return}throw F}}),B(D)}const T=(A,D={},J={})=>{const K=u(A);if(!K)throw new ai(A);return Vr(K,D,J)},h=(A,D,J)=>{if(ee(A)){const ae={...D},Dt=Ge(A,{query:ae.query,hash:ae.hash});return _(Dt,ae)}if(typeof A=="string"){const{replace:ae,...Dt}={...J},Qc={...D},Un=T(A,Qc,Dt),Xc=Lr({...Un.matched.state},{...Un.state,...Dt.state});return _(Un.href,{replace:ae,state:Xc})}const{replace:K,...H}={...D},F=Lr({...A.matched.state},{...A.state,...H.state}),je=Ge(A.href,{query:H.query,hash:H.hash});return _(je,{replace:K,state:F})},p=(A,D,J)=>{if(ee(A)){const H={...D,replace:!0};return h(A,H)}if(typeof A=="string"){const H={...J,replace:!0},F={...D};return h(A,F,H)}const K={...D,replace:!0};return h(A,K)},P=A=>{I(A)},{setRejection:I,rejection:N,getRejectionRoute:S}=ei(s),b=S("NotFound"),{currentRoute:C,routerRoute:U,updateRoute:B}=Js(o,b,h),M=ni(t?.initialUrl),j=d.location.state,{host:G}=ue(M),q=Ks(G);let k=!1;const Pe=y.ref(!1),{promise:ne,resolve:he}=Promise.withResolvers();async function oe(){if(k)return ne;k=!0,qo(a)&&await Fo(),await _(M,{replace:!0,state:j}),d.startListening(),he(),Pe.value=!0}function X(){d.stopListening()}function Ne(A){return xo(A)?null:{...C}}function Vt(A){l.setVueApp(A),c.setVueApp(A);const D=un(o),J=Tr(o);A.component("RouterView",D),A.component("RouterLink",J),A.provide(hr(o),N),A.provide(dr(o),l),A.provide(_r(o),c),A.provide(pr(o),g),A.provide(Sr,f),A.provide(o,be),Vc({router:be,app:A,routes:a}),oe()}const be={route:U,resolve:T,find:R,push:h,replace:p,reject:P,refresh:d.refresh,forward:d.forward,back:d.back,go:d.go,install:Vt,isExternal:q,onBeforeRouteEnter:l.onBeforeRouteEnter,onBeforeRouteUpdate:l.onBeforeRouteUpdate,onBeforeRouteLeave:l.onBeforeRouteLeave,onAfterRouteEnter:l.onAfterRouteEnter,onAfterRouteUpdate:l.onAfterRouteUpdate,onAfterRouteLeave:l.onAfterRouteLeave,onError:l.onError,prefetch:t?.prefetch,start:oe,started:Pe,stop:X,key:o,hasDevtools:!1};return be}const te=Pr(Mr),jc=te.onBeforeRouteLeave,Hc=te.onBeforeRouteUpdate,Zc=te.onAfterRouteLeave,$c=te.onAfterRouteUpdate,Gc=te.isRoute,qc=te.RouterView,Fc=te.RouterLink,zc=te.useRoute,Wc=te.useRouter,Jc=te.useQueryValue,Kc=te.useLink,Yc=te.useRejection;v.DuplicateParamsError=Vn,v.IS_URL_SYMBOL=$t,v.MetaPropertyConflict=Ln,v.RouterLink=Fc,v.RouterNotInstalledError=Ee,v.RouterView=qc,v.UseRouteInvalidError=xn,v.arrayOf=Gs,v.asUrlString=Dn,v.combineRoutes=Zt,v.createExternalRoute=Os,v.createParam=jn,v.createRejection=Ss,v.createRoute=ye,v.createRouter=Bc,v.createRouterAssets=Pr,v.createRouterPlugin=Zs,v.createUrl=me,v.isRoute=Gc,v.isUrlString=ee,v.isUrlWithSchema=le,v.isWithComponent=Mt,v.isWithComponentProps=Bt,v.isWithComponentPropsRecord=Ht,v.isWithComponents=jt,v.isWithParent=xt,v.onAfterRouteLeave=Zc,v.onAfterRouteUpdate=$c,v.onBeforeRouteLeave=jc,v.onBeforeRouteUpdate=Hc,v.tupleOf=Fs,v.unionOf=Nr,v.useLink=Kc,v.useQueryValue=Jc,v.useRejection=Yc,v.useRoute=zc,v.useRouter=Wc,v.withDefault=Zo,v.withParams=pt,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));
4
+ `)}return _}function l(g,f,d){return[g,f,d.id,JSON.stringify(d.params)].join("-")}function E(g){return Bt(g)?[{id:g.id,name:"default",props:g.props}]:Ht(g)?Object.entries(g.props).map(([f,d])=>({id:g.id,name:f,props:d})):[]}function c(g){for(const f of n.keys())g.includes(f)||n.delete(f)}return{getPrefetchProps:r,setPrefetchProps:o,getProps:i,setProps:s,setVueApp:e}}function wt(){return typeof window<"u"&&typeof window.document<"u"}function Qs({mode:e,listener:t}){const n=Xs(e),r=(u,l)=>{if(l?.replace){n.replace(u,l.state);return}n.push(u,l?.state)},o=()=>{const u=Oe(n.location);n.replace(u)};let s;return{...n,update:r,refresh:o,startListening:()=>{s?.(),s=n.listen(t)},stopListening:()=>{s?.()}}}function Xs(e="auto"){switch(e){case"auto":return wt()?Ir():vr();case"browser":return Ir();case"memory":return vr();case"hash":return Ws();default:const t=e;throw new Error(`Switch is not exhaustive for mode: ${t}`)}}function Ur(e){const t=new URLSearchParams(e);return{get:(...n)=>t.get(...n),getAll:(...n)=>t.getAll(...n),set:(...n)=>{t.set(...n)},append:(...n)=>{t.append(...n)},delete:(...n)=>{t.delete(...n)},toString:(...n)=>t.toString(...n),forEach:(...n)=>{t.forEach(...n)},entries:(...n)=>t.entries(...n),keys:(...n)=>t.keys(...n),values:(...n)=>t.values(...n),has:(...n)=>t.has(...n),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function ei(e){const t=s=>{const i=e.find(a=>a.type===s);return y.markRaw(i?.component??ur(s))},n=s=>{const i=y.markRaw(t(s)),a={id:Gt(),component:i,meta:{},state:{}};return{id:a.id,matched:a,matches:[a],hooks:[],name:s,query:Ur(""),params:{},state:{},href:"/",hash:""}},r=s=>{if(!s){o.value=null;return}const i=t(s);o.value={type:s,component:i}},o=y.ref(null);return{setRejection:r,rejection:o,getRejectionRoute:n}}class ti extends Error{constructor(){super("initialUrl must be set if window.location is unavailable")}}function ni(e){if(e)return e;if(wt())return window.location.toString();throw new ti}function Lr(e){return!!e&&typeof e=="object"}const Tt={isOptional:!0,isGreedy:!1};function ri(e,t,n){if(Lr(e)&&t in e){const r=e[t];return typeof r=="string"?_e(r,{param:n,...Tt}):r}return _e(void 0,{param:n,...Tt})}function oi(e,t){const n={};for(const[r,o]of Object.entries(e)){const s=ri(t,r,o);n[r]=s}return n}function si(e,t,n){if(Lr(e)&&t in e){const r=e[t];return ce(r,{param:n,...Tt})}return ce(void 0,{param:n,...Tt})}const Vr=(e,t)=>{const n={};for(const[r,o]of Object.entries(e)){const s=si(t,r,o);n[r]=s}return n};function ii(){const e=y.reactive(new Map),t=wt()?i():null,n=a=>{e.set(a,!1),t?.observe(a)},r=a=>{e.delete(a),t?.unobserve(a)},o=()=>{t?.disconnect()},s=a=>e.get(a)??!1;function i(){return new IntersectionObserver(a=>{a.forEach(u=>{e.set(u.target,u.isIntersecting)})})}return{observe:n,unobserve:r,disconnect:o,isElementVisible:s}}class ai extends Error{constructor(t){super(`Route not found: "${t}"`)}}function Dr(e,t={},n={}){const r=e.stringify(t),o=Ge(r,{query:new URLSearchParams(n.query),hash:n.hash}),{query:s,hash:i}=ue(o);return{id:e.id,matched:e.matched,matches:e.matches,name:e.name,hooks:e.hooks,query:Ur(s),state:oi(e.state,n.state),hash:i,params:t,href:o}}class ci extends Error{constructor(t){super(`Invalid Name "${t}": Router does not support multiple routes with the same name. All name names must be unique.`)}}function xr(e){return"name"in e&&se(e.name)}function ui(e,t){return se(t)?le(e)&&e.schema.path.value==="/"?{...e,...me({path:t})}:{...e,...an(me({path:t}),e)}:e}function fi(e,t=[],n){const r=new Map,o=[...e,...t.map(a=>a.routes)];function s(a){if(!xr(a))return;const u=r.get(a.name);if(u&&u.id!==a.id)throw new ci(a.name);if(!(u&&u.id===a.id)){r.set(a.name,ui(a,n));for(const l of a.context)li(l)&&s(l)}}function i(a){for(const u of a)s(u)}for(const a of o){if(di(a)){i(a);continue}s(a)}return{routes:Array.from(r.values()).sort(pi),getRouteByName:a=>r.get(a)}}function li(e){return"id"in e}function di(e){return Array.isArray(e)}function pi(e,t){return t.depth-e.depth}function hi(e=[]){const t=new ge;return e.forEach(n=>{n.hooks.onBeforeRouteEnter.forEach(r=>t.onBeforeRouteEnter.add(r)),n.hooks.onBeforeRouteUpdate.forEach(r=>t.onBeforeRouteUpdate.add(r)),n.hooks.onBeforeRouteLeave.forEach(r=>t.onBeforeRouteLeave.add(r)),n.hooks.onAfterRouteEnter.forEach(r=>t.onAfterRouteEnter.add(r)),n.hooks.onAfterRouteUpdate.forEach(r=>t.onAfterRouteUpdate.add(r)),n.hooks.onAfterRouteLeave.forEach(r=>t.onAfterRouteLeave.add(r))}),t}function Ei(e,{match:t,name:n,component:r}){const o=yr(e),s=mt(e);return y.defineComponent({name:"PropsWrapper",expose:[],setup(){const i=y.getCurrentInstance(),a=o(),u=s();return()=>{const l=a.getProps(t.id,n,u);return l instanceof Error?"":Jt(l)?i?.suspense?y.h(_i,{component:r,props:l}):y.h(gi,{component:r,props:l}):y.h(r,l)}}})}const gi=y.defineComponent(e=>{const t=y.ref();return y.watch(()=>e.props,async n=>{t.value=await n},{immediate:!0,deep:!0}),()=>t.value instanceof Error?"":t.value?y.h(e.component,t.value):""},{props:["component","props"]}),_i=y.defineComponent(async e=>{const t=y.ref();return t.value=await e.props,y.watch(()=>t.value,async n=>{t.value=await n},{deep:!0}),()=>t.value instanceof Error?"":t.value?y.h(e.component,t.value):""},{props:["component","props"]});function mi(e){const t=new Map;return{getRouteComponents:r=>{const o=t.get(r.id);if(o)return o;const s=yi(e,r);return t.set(r.id,s),s}}}function yi(e,t){const n=un(e);return jt(t)?Mr(e,t,t.components):Mt(t)?Mr(e,t,{default:t.component}):{default:n}}function Mr(e,t,n){return Object.fromEntries(Object.entries(n).map(([r,o])=>[r,Ei(e,{match:t,name:r,component:o})]))}const Br=Symbol();var Ri=Object.create,jr=Object.defineProperty,Si=Object.getOwnPropertyDescriptor,Hr=Object.getOwnPropertyNames,Oi=Object.getPrototypeOf,wi=Object.prototype.hasOwnProperty,Ti=(e,t)=>function(){return t||(0,e[Hr(e)[0]])((t={exports:{}}).exports,t),t.exports},Pi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Hr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!wi.call(e,a)&&a!==n&&jr(e,a,{get:(u=>t[u]).bind(null,a),enumerable:!(r=Si(t,a))||r.enumerable});return e},Ni=(e,t,n)=>(n=e!=null?Ri(Oi(e)):{},Pi(jr(n,"default",{value:e,enumerable:!0}),e));const Zr=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,Zr&&(O.self,O.top),typeof navigator<"u"&&navigator.userAgent?.toLowerCase().includes("electron");var bi=Ti({"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js":((e,t)=>{t.exports=r;function n(s){return s instanceof Buffer?Buffer.from(s):new s.constructor(s.buffer.slice(),s.byteOffset,s.length)}function r(s){if(s=s||{},s.circles)return o(s);const i=new Map;if(i.set(Date,c=>new Date(c)),i.set(Map,(c,g)=>new Map(u(Array.from(c),g))),i.set(Set,(c,g)=>new Set(u(Array.from(c),g))),s.constructorHandlers)for(const c of s.constructorHandlers)i.set(c[0],c[1]);let a=null;return s.proto?E:l;function u(c,g){const f=Object.keys(c),d=new Array(f.length);for(let R=0;R<f.length;R++){const _=f[R],m=c[_];typeof m!="object"||m===null?d[_]=m:m.constructor!==Object&&(a=i.get(m.constructor))?d[_]=a(m,g):ArrayBuffer.isView(m)?d[_]=n(m):d[_]=g(m)}return d}function l(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,l);if(c.constructor!==Object&&(a=i.get(c.constructor)))return a(c,l);const g={};for(const f in c){if(Object.hasOwnProperty.call(c,f)===!1)continue;const d=c[f];typeof d!="object"||d===null?g[f]=d:d.constructor!==Object&&(a=i.get(d.constructor))?g[f]=a(d,l):ArrayBuffer.isView(d)?g[f]=n(d):g[f]=l(d)}return g}function E(c){if(typeof c!="object"||c===null)return c;if(Array.isArray(c))return u(c,E);if(c.constructor!==Object&&(a=i.get(c.constructor)))return a(c,E);const g={};for(const f in c){const d=c[f];typeof d!="object"||d===null?g[f]=d:d.constructor!==Object&&(a=i.get(d.constructor))?g[f]=a(d,E):ArrayBuffer.isView(d)?g[f]=n(d):g[f]=E(d)}return g}}function o(s){const i=[],a=[],u=new Map;if(u.set(Date,f=>new Date(f)),u.set(Map,(f,d)=>new Map(E(Array.from(f),d))),u.set(Set,(f,d)=>new Set(E(Array.from(f),d))),s.constructorHandlers)for(const f of s.constructorHandlers)u.set(f[0],f[1]);let l=null;return s.proto?g:c;function E(f,d){const R=Object.keys(f),_=new Array(R.length);for(let m=0;m<R.length;m++){const T=R[m],h=f[T];if(typeof h!="object"||h===null)_[T]=h;else if(h.constructor!==Object&&(l=u.get(h.constructor)))_[T]=l(h,d);else if(ArrayBuffer.isView(h))_[T]=n(h);else{const p=i.indexOf(h);p!==-1?_[T]=a[p]:_[T]=d(h)}}return _}function c(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return E(f,c);if(f.constructor!==Object&&(l=u.get(f.constructor)))return l(f,c);const d={};i.push(f),a.push(d);for(const R in f){if(Object.hasOwnProperty.call(f,R)===!1)continue;const _=f[R];if(typeof _!="object"||_===null)d[R]=_;else if(_.constructor!==Object&&(l=u.get(_.constructor)))d[R]=l(_,c);else if(ArrayBuffer.isView(_))d[R]=n(_);else{const m=i.indexOf(_);m!==-1?d[R]=a[m]:d[R]=c(_)}}return i.pop(),a.pop(),d}function g(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return E(f,g);if(f.constructor!==Object&&(l=u.get(f.constructor)))return l(f,g);const d={};i.push(f),a.push(d);for(const R in f){const _=f[R];if(typeof _!="object"||_===null)d[R]=_;else if(_.constructor!==Object&&(l=u.get(_.constructor)))d[R]=l(_,g);else if(ArrayBuffer.isView(_))d[R]=n(_);else{const m=i.indexOf(_);m!==-1?d[R]=a[m]:d[R]=g(_)}}return i.pop(),a.pop(),d}}})}),Ai=Ni(bi());const Ii=/(?:^|[-_/])(\w)/g;function vi(e,t){return t?t.toUpperCase():""}function ki(e){return e&&`${e}`.replace(Ii,vi)}function Ci(e,t){let n=e.replace(/^[a-z]:/i,"").replace(/\\/g,"/");n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));const r=n.lastIndexOf("/"),o=n.substring(r+1);{const s=o.lastIndexOf(t);return o.substring(0,s)}}const $r=(0,Ai.default)({circles:!0}),Ui={trailing:!0};function Le(e,t=25,n={}){if(n={...Ui,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const u=(c,g)=>(i=Li(e,c,g),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const f=u(c,a);return a=null,f}}),i),l=function(...c){return n.trailing&&(a=c),i||new Promise(g=>{const f=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const d=n.leading?r:u(this,c);a=null;for(const R of s)R(d);s=[]},t),f?(r=u(this,c),g(r)):s.push(g)})},E=c=>{c&&(clearTimeout(c),o=null)};return l.isPending=()=>!!o,l.cancel=()=>{E(o),s=[],a=null},l.flush=()=>{if(E(o),!a||i)return;const c=a;return a=null,u(this,c)},l}async function Li(e,t,n){return await e.apply(t,n)}function ln(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?ln(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const Vi={run:e=>e()},Di=()=>Vi,Gr=typeof console.createTask<"u"?console.createTask:Di;function xi(e,t){const n=t.shift(),r=Gr(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function Mi(e,t){const n=t.shift(),r=Gr(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function dn(e,t){for(const n of[...e])n(t)}class Bi{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const o=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!r.allowDeprecated){let i=s.message;i||(i=`${o} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,o=(...s)=>(typeof r=="function"&&r(),r=void 0,o=void 0,n(...s));return r=this.hook(t,o),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const o of r)this.hook(t,o)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=ln(t),r=Object.keys(n).map(o=>this.hook(o,n[o]));return()=>{for(const o of r.splice(0,r.length))o()}}removeHooks(t){const n=ln(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(xi,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(Mi,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&dn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&dn(this._after,o)}):(this._after&&o&&dn(this._after,o),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function qr(){return new Bi}var ji=Object.create,Fr=Object.defineProperty,Hi=Object.getOwnPropertyDescriptor,zr=Object.getOwnPropertyNames,Zi=Object.getPrototypeOf,$i=Object.prototype.hasOwnProperty,Wr=(e,t)=>function(){return t||(0,e[zr(e)[0]])((t={exports:{}}).exports,t),t.exports},Gi=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=zr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!$i.call(e,a)&&a!==n&&Fr(e,a,{get:(u=>t[u]).bind(null,a),enumerable:!(r=Hi(t,a))||r.enumerable});return e},qi=(e,t,n)=>(n=e!=null?ji(Zi(e)):{},Gi(Fr(n,"default",{value:e,enumerable:!0}),e));function Fi(e){const t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t==="index"&&e.__file?.endsWith("index.vue")?"":t}function zi(e){const t=e.__file;if(t)return ki(Ci(t,".vue"))}function Jr(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function pn(e){if(e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(e.root)return e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__}function Kr(e){const t=e.subTree?.type,n=pn(e);return n?n?.types?.Fragment===t:!1}function Pt(e){const t=Fi(e?.type||{});if(t)return t;if(e?.root===e)return"Root";for(const r in e.parent?.type?.components)if(e.parent.type.components[r]===e?.type)return Jr(e,r);for(const r in e.appContext?.components)if(e.appContext.components[r]===e?.type)return Jr(e,r);const n=zi(e?.type||{});return n||"Anonymous Component"}function Wi(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?"root":e.uid}`}function hn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Ji(){const e={top:0,bottom:0,left:0,right:0,get width(){return e.right-e.left},get height(){return e.bottom-e.top}};return e}let Nt;function Ki(e){return Nt||(Nt=document.createRange()),Nt.selectNode(e),Nt.getBoundingClientRect()}function Yi(e){const t=Ji();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){const o=e.children[n];let s;if(o.component)s=we(o.component);else if(o.el){const i=o.el;i.nodeType===1||i.getBoundingClientRect?s=i.getBoundingClientRect():i.nodeType===3&&i.data.trim()&&(s=Ki(i))}s&&Qi(t,s)}return t}function Qi(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}const Yr={top:0,left:0,right:0,bottom:0,width:0,height:0};function we(e){const t=e.subTree.el;return typeof window>"u"?Yr:Kr(e)?Yi(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?we(e.subTree.component):Yr}function En(e){return Kr(e)?Xi(e.subTree):e.subTree?[e.subTree.el]:[]}function Xi(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(...En(n.component)):n?.el&&t.push(n.el)}),t}const Qr="__vue-devtools-component-inspector__",Xr="__vue-devtools-component-inspector__card__",eo="__vue-devtools-component-inspector__name__",to="__vue-devtools-component-inspector__indicator__",no={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},ea={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},ta={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Ve(){return document.getElementById(Qr)}function na(){return document.getElementById(Xr)}function ra(){return document.getElementById(to)}function oa(){return document.getElementById(eo)}function gn(e){return{left:`${Math.round(e.left*100)/100}px`,top:`${Math.round(e.top*100)/100}px`,width:`${Math.round(e.width*100)/100}px`,height:`${Math.round(e.height*100)/100}px`}}function _n(e){const t=document.createElement("div");t.id=e.elementId??Qr,Object.assign(t.style,{...no,...gn(e.bounds),...e.style});const n=document.createElement("span");n.id=Xr,Object.assign(n.style,{...ea,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=eo,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const o=document.createElement("i");return o.id=to,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,ta),n.appendChild(r),n.appendChild(o),t.appendChild(n),document.body.appendChild(t),t}function mn(e){const t=Ve(),n=na(),r=oa(),o=ra();t&&(Object.assign(t.style,{...no,...gn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function sa(e){const t=we(e);if(!t.width&&!t.height)return;const n=Pt(e);Ve()?mn({bounds:t,name:n}):_n({bounds:t,name:n})}function ro(){const e=Ve();e&&(e.style.display="none")}let yn=null;function Rn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(yn=n,n.vnode.el)){const r=we(n),o=Pt(n);Ve()?mn({bounds:r,name:o}):_n({bounds:r,name:o})}}}function ia(e,t){e.preventDefault(),e.stopPropagation(),yn&&t(Wi(yn))}let bt=null;function aa(){ro(),window.removeEventListener("mouseover",Rn),window.removeEventListener("click",bt,!0),bt=null}function ca(){return window.addEventListener("mouseover",Rn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),ia(n,r=>{window.removeEventListener("click",t,!0),bt=null,window.removeEventListener("mouseover",Rn);const o=Ve();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}bt=t,window.addEventListener("click",t,!0)})}function ua(e){const t=hn(z.value,e.id);if(t){const[n]=En(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=we(t),o=document.createElement("div"),s={...gn(r),position:"absolute"};Object.assign(o.style,s),document.body.appendChild(o),o.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(o)},2e3)}setTimeout(()=>{const r=we(t);if(r.width||r.height){const o=Pt(t),s=Ve();s?mn({...e,name:o,bounds:r}):_n({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}O.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function fa(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function la(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function da(){return new Promise(e=>{function t(){la(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():fa(()=>{t()})})}let At=(function(e){return e.SKIP="__v_skip",e.IS_REACTIVE="__v_isReactive",e.IS_READONLY="__v_isReadonly",e.IS_SHALLOW="__v_isShallow",e.RAW="__v_raw",e})({});function pa(e){return!!(e&&e[At.IS_READONLY])}function oo(e){return pa(e)?oo(e[At.RAW]):!!(e&&e[At.IS_REACTIVE])}function Sn(e){return!!(e&&e.__v_isRef===!0)}function Qe(e){const t=e&&e[At.RAW];return t?Qe(t):e}var ha=class{constructor(){this.refEditor=new Ea}set(e,t,n,r){const o=Array.isArray(t)?t:t.split(".");for(;o.length>1;){const a=o.shift();e instanceof Map?e=e.get(a):e instanceof Set?e=Array.from(e.values())[a]:e=e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=o[0],i=this.refEditor.get(e)[s];r?r(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let r=0;r<n.length;r++)if(e instanceof Map?e=e.get(n[r]):e=e[n[r]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(typeof e>"u")return!1;const r=Array.isArray(t)?t.slice():t.split("."),o=n?2:1;for(;e&&r.length>o;){const s=r.shift();e=e[s],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}return e!=null&&Object.prototype.hasOwnProperty.call(e,r[0])}createDefaultSetCallback(e){return(t,n,r)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Qe(t)instanceof Map?t.delete(n):Qe(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const o=t[e.newKey||n];this.refEditor.isRef(o)?this.refEditor.set(o,r):Qe(t)instanceof Map?t.set(e.newKey||n,r):Qe(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Ea=class{set(e,t){if(Sn(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(o=>e.add(o));return}const n=Object.keys(t);if(e instanceof Map){const o=new Set(e.keys());n.forEach(s=>{e.set(s,Reflect.get(t,s)),o.delete(s)}),o.forEach(s=>e.delete(s));return}const r=new Set(Object.keys(e));n.forEach(o=>{Reflect.set(e,o,Reflect.get(t,o)),r.delete(o)}),r.forEach(o=>Reflect.deleteProperty(e,o))}}get(e){return Sn(e)?e.value:e}isRef(e){return Sn(e)||oo(e)}};const ga="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function _a(){if(typeof window>"u"||!Zr||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=typeof localStorage.getItem<"u"?localStorage.getItem(ga):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];const ma=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function ya(e,t){Z.timelineLayersState[t.id]=!1,ma.push({...e,descriptorId:t.id,appRecord:pn(t.app)})}O.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];const On=new Proxy(O.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),so=Le(()=>{xe.hooks.callHook(Te.SEND_INSPECTOR_TO_CLIENT,io())});function Ra(e,t){On.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??"Search tree...",stateFilterPlaceholder:e.stateFilterPlaceholder??"Search state...",treeFilter:"",selectedNodeId:"",appRecord:pn(t.app)}),so()}function io(){return On.filter(e=>e.descriptor.app===z.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{const t=e.descriptor,n=e.options;return{id:n.id,label:n.label,logo:t.logo,icon:`custom-ic-baseline-${n?.icon?.replace(/_/g,"-")}`,packageName:t.packageName,homepage:t.homepage,pluginId:t.id}})}function It(e,t){return On.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}let $=(function(e){return e.VISIT_COMPONENT_TREE="visitComponentTree",e.INSPECT_COMPONENT="inspectComponent",e.EDIT_COMPONENT_STATE="editComponentState",e.GET_INSPECTOR_TREE="getInspectorTree",e.GET_INSPECTOR_STATE="getInspectorState",e.EDIT_INSPECTOR_STATE="editInspectorState",e.INSPECT_TIMELINE_EVENT="inspectTimelineEvent",e.TIMELINE_CLEARED="timelineCleared",e.SET_PLUGIN_SETTINGS="setPluginSettings",e})({}),x=(function(e){return e.ADD_INSPECTOR="addInspector",e.SEND_INSPECTOR_TREE="sendInspectorTree",e.SEND_INSPECTOR_STATE="sendInspectorState",e.CUSTOM_INSPECTOR_SELECT_NODE="customInspectorSelectNode",e.TIMELINE_LAYER_ADDED="timelineLayerAdded",e.TIMELINE_EVENT_ADDED="timelineEventAdded",e.GET_COMPONENT_INSTANCES="getComponentInstances",e.GET_COMPONENT_BOUNDS="getComponentBounds",e.GET_COMPONENT_NAME="getComponentName",e.COMPONENT_HIGHLIGHT="componentHighlight",e.COMPONENT_UNHIGHLIGHT="componentUnhighlight",e})({}),Te=(function(e){return e.SEND_INSPECTOR_TREE_TO_CLIENT="sendInspectorTreeToClient",e.SEND_INSPECTOR_STATE_TO_CLIENT="sendInspectorStateToClient",e.SEND_TIMELINE_EVENT_TO_CLIENT="sendTimelineEventToClient",e.SEND_INSPECTOR_TO_CLIENT="sendInspectorToClient",e.SEND_ACTIVE_APP_UNMOUNTED_TO_CLIENT="sendActiveAppUpdatedToClient",e.DEVTOOLS_STATE_UPDATED="devtoolsStateUpdated",e.DEVTOOLS_CONNECTED_UPDATED="devtoolsConnectedUpdated",e.ROUTER_INFO_UPDATED="routerInfoUpdated",e})({});function Sa(){const e=qr();e.hook(x.ADD_INSPECTOR,({inspector:r,plugin:o})=>{Ra(r,o.descriptor)});const t=Le(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||Z.highPerfModeEnabled)return;const s=It(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(a=>{e.callHookWith(async u=>{await Promise.all(u.map(l=>l(i))),a()},$.GET_INSPECTOR_TREE)}),e.callHookWith(async a=>{await Promise.all(a.map(u=>u({inspectorId:r,rootNodes:i.rootNodes})))},Te.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(x.SEND_INSPECTOR_TREE,t);const n=Le(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||Z.highPerfModeEnabled)return;const s=It(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,nodeId:s?.selectedNodeId||"",state:null},a={currentTab:`custom-inspector:${r}`};i.nodeId&&await new Promise(u=>{e.callHookWith(async l=>{await Promise.all(l.map(E=>E(i,a))),u()},$.GET_INSPECTOR_STATE)}),e.callHookWith(async u=>{await Promise.all(u.map(l=>l({inspectorId:r,nodeId:i.nodeId,state:i.state})))},Te.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(x.SEND_INSPECTOR_STATE,n),e.hook(x.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:r,nodeId:o,plugin:s})=>{const i=It(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook(x.TIMELINE_LAYER_ADDED,({options:r,plugin:o})=>{ya(r,o.descriptor)}),e.hook(x.TIMELINE_EVENT_ADDED,({options:r,plugin:o})=>{Z.highPerfModeEnabled||!Z.timelineLayersState?.[o.descriptor.id]&&!["performance","component-event","keyboard","mouse"].includes(r.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(i=>i(r)))},Te.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(x.GET_COMPONENT_INSTANCES,async({app:r})=>{const o=r.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!o)return null;const s=o.id.toString();return[...o.instanceMap].filter(([i])=>i.split(":")[0]===s).map(([,i])=>i)}),e.hook(x.GET_COMPONENT_BOUNDS,async({instance:r})=>we(r)),e.hook(x.GET_COMPONENT_NAME,({instance:r})=>Pt(r)),e.hook(x.COMPONENT_HIGHLIGHT,({uid:r})=>{const o=z.value.instanceMap.get(r);o&&sa(o)}),e.hook(x.COMPONENT_UNHIGHLIGHT,()=>{ro()}),e}O.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??="",O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];const De="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function Oa(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:_a()}}O[De]??=Oa();const wa=Le(e=>{xe.hooks.callHook(Te.DEVTOOLS_STATE_UPDATED,{state:e})});Le((e,t)=>{xe.hooks.callHook(Te.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});const vt=new Proxy(O.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_APP_RECORDS__:O.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),z=new Proxy(O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t==="value"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function ao(){wa({...O[De],appRecords:vt.value,activeAppRecordId:z.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Ta(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,ao()}function Pa(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,ao()}const Z=new Proxy(O[De],{get(e,t){return t==="appRecords"?vt:t==="activeAppRecordId"?z.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[De][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[De]},e[t]=n,O[De][t]=n,!0}});function Na(e={}){const{file:t,host:n,baseUrl:r=window.location.origin,line:o=0,column:s=0}=e;if(t){if(n==="chrome-extension"){const i=t.replace(/\\/g,"\\\\"),a=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??"/";fetch(`${a}__open-in-editor?file=${encodeURI(t)}`).then(u=>{if(!u.ok){const l=`Opening component ${i} failed`;console.log(`%c${l}`,"color:red")}})}else if(Z.vitePluginDetected){const i=O.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;O.__VUE_INSPECTOR__.openInEditor(i,t,o,s)}}}O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];const wn=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Tn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Pn(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ba(e){return(wn.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function co(e,t){const n=Pn(e);if(n){const r=localStorage.getItem(n);if(r)return JSON.parse(r)}return Tn(e?(wn.find(r=>r[0].id===e)?.[0]??null)?.settings??{}:t)}function Aa(e,t){const n=Pn(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Tn(t)))}function Ia(e,t,n){const r=Pn(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),xe.hooks.callHookWith(a=>{a.forEach(u=>u({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},$.SET_PLUGIN_SETTINGS)}let Y=(function(e){return e.APP_INIT="app:init",e.APP_UNMOUNT="app:unmount",e.COMPONENT_UPDATED="component:updated",e.COMPONENT_ADDED="component:added",e.COMPONENT_REMOVED="component:removed",e.COMPONENT_EMIT="component:emit",e.PERFORMANCE_START="perf:start",e.PERFORMANCE_END="perf:end",e.ADD_ROUTE="router:add-route",e.REMOVE_ROUTE="router:remove-route",e.RENDER_TRACKED="render:tracked",e.RENDER_TRIGGERED="render:triggered",e.APP_CONNECTED="app:connected",e.SETUP_DEVTOOLS_PLUGIN="devtools-plugin:setup",e})({});const Q=O.__VUE_DEVTOOLS_HOOK??=qr(),uo={on:{vueAppInit(e){Q.hook(Y.APP_INIT,e)},vueAppUnmount(e){Q.hook(Y.APP_UNMOUNT,e)},vueAppConnected(e){Q.hook(Y.APP_CONNECTED,e)},componentAdded(e){return Q.hook(Y.COMPONENT_ADDED,e)},componentEmit(e){return Q.hook(Y.COMPONENT_EMIT,e)},componentUpdated(e){return Q.hook(Y.COMPONENT_UPDATED,e)},componentRemoved(e){return Q.hook(Y.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){Q.hook(Y.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return Q.hook(Y.PERFORMANCE_START,e)},perfEnd(e){return Q.hook(Y.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return Q.callHook(Y.SETUP_DEVTOOLS_PLUGIN,e,t)}};var va=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook($.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook($.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook($.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook($.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook($.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook($.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook($.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook($.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook($.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(Z.highPerfModeEnabled)return;const t=io().find(n=>n.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){const n=[e.appContext.app,e.uid,e.parent?.uid,e];Q.callHook(Y.COMPONENT_UPDATED,...n)}else Q.callHook(Y.COMPONENT_UPDATED);this.hooks.callHook(x.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(x.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Aa(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){Z.highPerfModeEnabled||this.hooks.callHook(x.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){Z.highPerfModeEnabled||this.hooks.callHook(x.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(x.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook($.VISIT_COMPONENT_TREE,e)}now(){return Z.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(x.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){Z.highPerfModeEnabled||this.hooks.callHook(x.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return co(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(x.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(x.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(x.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(x.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(x.COMPONENT_UNHIGHLIGHT)}};const ka=va,Ca="__vue_devtool_undefined__",Ua="__vue_devtool_infinity__",La="__vue_devtool_negative_infinity__",Va="__vue_devtool_nan__",Da={[Ca]:"undefined",[Va]:"NaN",[Ua]:"Infinity",[La]:"-Infinity"};Object.entries(Da).reduce((e,[t,n])=>(e[n]=t,e),{}),O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function xa(e,t){return uo.setupDevToolsPlugin(e,t)}function Ma(e,t){const[n,r]=e;if(n.app!==t)return;const o=new ka({plugin:{setupFn:r,descriptor:n},ctx:xe});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function fo(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||Z.highPerfModeEnabled&&!t?.inspectingComponent||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),wn.forEach(n=>{Ma(n,e)}))}const kt="__VUE_DEVTOOLS_ROUTER__",Xe="__VUE_DEVTOOLS_ROUTER_INFO__";O[Xe]??={currentRoute:null,routes:[]},O[kt]??={},new Proxy(O[Xe],{get(e,t){return O[Xe][t]}}),new Proxy(O[kt],{get(e,t){if(t==="value")return O[kt]}});function Ba(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function Nn(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o?.length&&(o=Nn(o)),{path:n,name:r,children:o,meta:s}})}function ja(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:u}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:u,matched:Nn(i)}}return e}function Ha(e,t){function n(){const r=e.app?.config.globalProperties.$router,o=ja(r?.currentRoute.value),s=Nn(Ba(r)),i=console.warn;console.warn=()=>{},O[Xe]={currentRoute:o?$r(o):{},routes:$r(s)},O[kt]=r,console.warn=i}n(),uo.on.componentUpdated(Le(()=>{t.value?.app===e.app&&(n(),!Z.highPerfModeEnabled&&xe.hooks.callHook(Te.ROUTER_INFO_UPDATED,{state:O[Xe]}))},200))}function Za(e){return{async getInspectorTree(t){const n={...t,app:z.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},$.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){const n={...t,app:z.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(o=>{e.callHookWith(async s=>{await Promise.all(s.map(i=>i(n,r))),o()},$.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){const n=new ha,r={...t,app:z.value.app,set:(o,s=t.path,i=t.state.value,a)=>{n.set(o,s,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(o=>{o.forEach(s=>s(r))},$.EDIT_INSPECTOR_STATE)},sendInspectorState(t){const n=It(t);e.callHook(x.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ca()},cancelInspectComponentInspector(){return aa()},getComponentRenderCode(t){const n=hn(z.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return ua({id:t})},openInEditor:Na,getVueInspector:da,toggleApp(t,n){const r=vt.value.find(o=>o.id===t);r&&(Pa(t),Ta(r),Ha(r,z),so(),fo(r.app,n))},inspectDOM(t){const n=hn(z.value,t);if(n){const[r]=En(n);r&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){Ia(t,n,r)},getPluginSettings(t){return{options:ba(t),values:co(t)}}}}O.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};const lo=Sa();O.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:lo,get state(){return{...Z,activeAppRecordId:z.id,activeAppRecord:z.value,appRecords:vt.value}},api:Za(lo)};const xe=O.__VUE_DEVTOOLS_KIT_CONTEXT__;var $a=Wr({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js":((e,t)=>{(function(n){var r={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},o=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},u=[";","?",":","@","&","=","+","$",",","/"].join(""),l=[";","?",":","@","&","=","+","$",","].join(""),E=[".","!","~","*","'","(",")"].join(""),c=function(_,m){var T="-",h="",p="",P=!0,I={},N,S,b,C,U,B,M,j,G,q,k,Pe,ne,he,oe="";if(typeof _!="string")return"";if(typeof m=="string"&&(T=m),M=a.en,j=i.en,typeof m=="object"){N=m.maintainCase||!1,I=m.custom&&typeof m.custom=="object"?m.custom:I,b=+m.truncate>1&&m.truncate||!1,C=m.uric||!1,U=m.uricNoSlash||!1,B=m.mark||!1,P=!(m.symbols===!1||m.lang===!1),T=m.separator||T,C&&(oe+=u),U&&(oe+=l),B&&(oe+=E),M=m.lang&&a[m.lang]&&P?a[m.lang]:P?a.en:{},j=m.lang&&i[m.lang]?i[m.lang]:m.lang===!1||m.lang===!0?{}:i.en,m.titleCase&&typeof m.titleCase.length=="number"&&Array.prototype.toString.call(m.titleCase)?(m.titleCase.forEach(function(X){I[X+""]=X+""}),S=!0):S=!!m.titleCase,m.custom&&typeof m.custom.length=="number"&&Array.prototype.toString.call(m.custom)&&m.custom.forEach(function(X){I[X+""]=X+""}),Object.keys(I).forEach(function(X){var Ne;X.length>1?Ne=new RegExp("\\b"+f(X)+"\\b","gi"):Ne=new RegExp(f(X),"gi"),_=_.replace(Ne,I[X])});for(k in I)oe+=k}for(oe+=T,oe=f(oe),_=_.replace(/(^\s+|\s+$)/g,""),ne=!1,he=!1,q=0,Pe=_.length;q<Pe;q++)k=_[q],d(k,I)?ne=!1:j[k]?(k=ne&&j[k].match(/[A-Za-z0-9]/)?" "+j[k]:j[k],ne=!1):k in r?(q+1<Pe&&o.indexOf(_[q+1])>=0?(p+=k,k=""):he===!0?(k=s[p]+r[k],p=""):k=ne&&r[k].match(/[A-Za-z0-9]/)?" "+r[k]:r[k],ne=!1,he=!1):k in s?(p+=k,k="",q===Pe-1&&(k=s[p]),he=!0):M[k]&&!(C&&u.indexOf(k)!==-1)&&!(U&&l.indexOf(k)!==-1)?(k=ne||h.substr(-1).match(/[A-Za-z0-9]/)?T+M[k]:M[k],k+=_[q+1]!==void 0&&_[q+1].match(/[A-Za-z0-9]/)?T:"",ne=!0):(he===!0?(k=s[p]+k,p="",he=!1):ne&&(/[A-Za-z0-9]/.test(k)||h.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),ne=!1),h+=k.replace(new RegExp("[^\\w\\s"+oe+"_-]","g"),T);return S&&(h=h.replace(/(\w)(\S*)/g,function(X,Ne,Vt){var be=Ne.toUpperCase()+(Vt!==null?Vt:"");return Object.keys(I).indexOf(be.toLowerCase())<0?be:be.toLowerCase()})),h=h.replace(/\s+/g,T).replace(new RegExp("\\"+T+"+","g"),T).replace(new RegExp("(^\\"+T+"+|\\"+T+"+$)","g"),""),b&&h.length>b&&(G=h.charAt(b)===T,h=h.slice(0,b),G||(h=h.slice(0,h.lastIndexOf(T)))),!N&&!S&&(h=h.toLowerCase()),h},g=function(_){return function(T){return c(T,_)}},f=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},d=function(R,_){for(var m in _)if(_[m]===R)return!0};if(typeof t<"u"&&t.exports)t.exports=c,t.exports.createSlug=g;else if(typeof define<"u"&&define.amd)define([],function(){return c});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=c,n.createSlug=g}catch{}})(e)})}),Ga=Wr({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js":((e,t)=>{t.exports=$a()})});Ga(),O.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function qa(e){Z.highPerfModeEnabled=e??!Z.highPerfModeEnabled,!e&&z.value&&fo(z.value.app)}function Fa(e){Z.devtoolsClientDetected={...Z.devtoolsClientDetected,...e},qa(!Object.values(Z.devtoolsClientDetected).some(Boolean))}O.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Fa;var za=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},po=class{constructor(e){this.generateIdentifier=e,this.kv=new za}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},Wa=class extends po{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function Ja(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function Ka(e,t){const n=Ja(e);if("find"in n)return n.find(t);const r=n;for(let o=0;o<r.length;o++){const s=r[o];if(t(s))return s}}function Me(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Ct(e,t){return e.indexOf(t)!==-1}function ho(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var Ya=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return Ka(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};const Qa=e=>Object.prototype.toString.call(e).slice(8,-1),Eo=e=>typeof e>"u",Xa=e=>e===null,et=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,bn=e=>et(e)&&Object.keys(e).length===0,pe=e=>Array.isArray(e),ec=e=>typeof e=="string",tc=e=>typeof e=="number"&&!isNaN(e),nc=e=>typeof e=="boolean",rc=e=>e instanceof RegExp,tt=e=>e instanceof Map,nt=e=>e instanceof Set,go=e=>Qa(e)==="Symbol",oc=e=>e instanceof Date&&!isNaN(e.valueOf()),sc=e=>e instanceof Error,_o=e=>typeof e=="number"&&isNaN(e),ic=e=>nc(e)||Xa(e)||Eo(e)||tc(e)||ec(e)||go(e),ac=e=>typeof e=="bigint",cc=e=>e===1/0||e===-1/0,uc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),fc=e=>e instanceof URL,mo=e=>e.replace(/\./g,"\\."),An=e=>e.map(String).map(mo).join("."),rt=e=>{const t=[];let n="";for(let o=0;o<e.length;o++){let s=e.charAt(o);if(s==="\\"&&e.charAt(o+1)==="."){n+=".",o++;continue}if(s==="."){t.push(n),n="";continue}n+=s}const r=n;return t.push(r),t};function ie(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const yo=[ie(Eo,"undefined",()=>null,()=>{}),ie(ac,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),ie(oc,"Date",e=>e.toISOString(),e=>new Date(e)),ie(sc,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),ie(rc,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),ie(nt,"set",e=>[...e.values()],e=>new Set(e)),ie(tt,"map",e=>[...e.entries()],e=>new Map(e)),ie(e=>_o(e)||cc(e),"number",e=>_o(e)?"NaN":e>0?"Infinity":"-Infinity",Number),ie(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),ie(fc,"URL",e=>e.toString(),e=>new URL(e))];function Ut(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Ro=Ut((e,t)=>go(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),lc=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),So=Ut(uc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=lc[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function Oo(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const wo=Ut(Oo,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(o=>{r[o]=e[o]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),To=Ut((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),dc=[wo,Ro,To,So],Po=(e,t)=>{const n=ho(dc,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=ho(yo,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},No={};yo.forEach(e=>{No[e.annotation]=e});const pc=(e,t,n)=>{if(pe(t))switch(t[0]){case"symbol":return Ro.untransform(e,t,n);case"class":return wo.untransform(e,t,n);case"custom":return To.untransform(e,t,n);case"typed-array":return So.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=No[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},Be=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function bo(e){if(Ct(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ct(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Ct(e,"constructor"))throw new Error("constructor is not allowed as a property")}const hc=(e,t)=>{bo(t);for(let n=0;n<t.length;n++){const r=t[n];if(nt(e))e=Be(e,+r);else if(tt(e)){const o=+r,s=+t[++n]==0?"key":"value",i=Be(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},In=(e,t,n)=>{if(bo(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(pe(r)){const a=+i;r=r[a]}else if(et(r))r=r[i];else if(nt(r)){const a=+i;r=Be(r,a)}else if(tt(r)){if(s===t.length-2)break;const a=+i,u=+t[++s]==0?"key":"value",l=Be(r,a);switch(u){case"key":r=l;break;case"value":r=r.get(l);break}}}const o=t[t.length-1];if(pe(r)?r[+o]=n(r[+o]):et(r)&&(r[o]=n(r[o])),nt(r)){const s=Be(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(tt(r)){const s=+t[t.length-2],i=Be(r,s);switch(+o==0?"key":"value"){case"key":{const a=n(i);r.set(a,r.get(i)),a!==i&&r.delete(i);break}case"value":r.set(i,n(r.get(i)));break}}return e};function vn(e,t,n=[]){if(!e)return;if(!pe(e)){Me(e,(s,i)=>vn(s,t,[...n,...rt(i)]));return}const[r,o]=e;o&&Me(o,(s,i)=>{vn(s,t,[...n,...rt(i)])}),t(r,n)}function Ec(e,t,n){return vn(t,(r,o)=>{e=In(e,o,s=>pc(s,r,n))}),e}function gc(e,t){function n(r,o){const s=hc(e,rt(o));r.map(rt).forEach(i=>{e=In(e,i,()=>s)})}if(pe(t)){const[r,o]=t;r.forEach(s=>{e=In(e,rt(s),()=>e)}),o&&Me(o,n)}else Me(t,n);return e}const _c=(e,t)=>et(e)||pe(e)||tt(e)||nt(e)||Oo(e,t);function mc(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function yc(e,t){const n={};let r;return e.forEach(o=>{if(o.length<=1)return;t||(o=o.map(a=>a.map(String)).sort((a,u)=>a.length-u.length));const[s,...i]=o;s.length===0?r=i.map(An):n[An(s)]=i.map(An)}),r?bn(n)?[r]:[r,n]:bn(n)?void 0:n}const Ao=(e,t,n,r,o=[],s=[],i=new Map)=>{const a=ic(e);if(!a){mc(e,o,t);const f=i.get(e);if(f)return r?{transformedValue:null}:f}if(!_c(e,n)){const f=Po(e,n),d=f?{transformedValue:f.value,annotations:[f.type]}:{transformedValue:e};return a||i.set(e,d),d}if(Ct(s,e))return{transformedValue:null};const u=Po(e,n),l=u?.value??e,E=pe(l)?[]:{},c={};Me(l,(f,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")throw new Error(`Detected property ${d}. This is a prototype pollution risk, please remove it from your object.`);const R=Ao(f,t,n,r,[...o,d],[...s,e],i);E[d]=R.transformedValue,pe(R.annotations)?c[d]=R.annotations:et(R.annotations)&&Me(R.annotations,(_,m)=>{c[mo(d)+"."+m]=_})});const g=bn(c)?{transformedValue:E,annotations:u?[u.type]:void 0}:{transformedValue:E,annotations:u?[u.type,c]:c};return a||i.set(e,g),g};function Io(e){return Object.prototype.toString.call(e).slice(8,-1)}function vo(e){return Io(e)==="Array"}function Rc(e){if(Io(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Sc(e,t,n,r,o){const s={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";s==="enumerable"&&(e[t]=n),o&&s==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function kn(e,t={}){if(vo(e))return e.map(o=>kn(o,t));if(!Rc(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(vo(t.props)&&!t.props.includes(s))return o;const i=e[s];return Sc(o,s,kn(i,t),e,t.nonenumerable),o},{})}var V=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Wa,this.symbolRegistry=new po(t=>t.description??""),this.customTransformerRegistry=new Ya,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Ao(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=yc(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=kn(t);return n?.values&&(r=Ec(r,n.values,this)),n?.referentialEqualities&&(r=gc(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};V.defaultInstance=new V,V.serialize=V.defaultInstance.serialize.bind(V.defaultInstance),V.deserialize=V.defaultInstance.deserialize.bind(V.defaultInstance),V.stringify=V.defaultInstance.stringify.bind(V.defaultInstance),V.parse=V.defaultInstance.parse.bind(V.defaultInstance),V.registerClass=V.defaultInstance.registerClass.bind(V.defaultInstance),V.registerSymbol=V.defaultInstance.registerSymbol.bind(V.defaultInstance),V.registerCustom=V.defaultInstance.registerCustom.bind(V.defaultInstance),V.allowErrorProps=V.defaultInstance.allowErrorProps.bind(V.defaultInstance),O.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],O.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,O.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,O.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;const Lt={template:"<div>This is component</div>"},Cn=ye({name:"parentA",path:"/parentA/[paramA]"}),ko=ye({parent:Cn,name:"parentA.childA",path:"/childA/[?paramB]"}),Oc=ye({parent:Cn,name:"parentA.childB",path:"/childB/[paramD]",component:Lt}),wc=ye({parent:ko,name:"parentA.childA.grandChildA",path:"/[paramC]",component:Lt});ye({name:"parentB",path:"/parentB",component:Lt}),ye({name:"parentC",path:"/",component:Lt});function Tc(e,t){return t!=="1"?`${e} ${t}`:e}const Pc=({route:e})=>!!e.name,Nc=({route:e,payload:t})=>{if(!t.filter)return!0;if(!le(e))return!1;const n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},bc=e=>Pc(e)&&Nc(e),Ac=ot(),Ic=2282478,vc=2278750,kc=1483594;function Cc(e,t={match:!1,exactMatch:!1}){const n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:Ic}),t.match&&n.push({label:"match",textColor:0,backgroundColor:vc}),t.exactMatch&&n.push({label:"exact-match",textColor:0,backgroundColor:kc}),{id:e.id,label:e.name,tags:n}}function Uc(e,t){if(!t||!("id"in t)||!("matches"in t))return{match:!1,exactMatch:!1};const n=t.id===e.id;return{match:t.matches.some(o=>o.id===e.id),exactMatch:n}}function Lc(e){const t=[];return le(e)&&(t.push({editable:!1,key:"name",value:e.name}),t.push({editable:!1,key:"path",value:e.schema.path.value}),t.push({editable:!1,key:"query",value:e.schema.query.value}),t.push({editable:!1,key:"hash",value:e.schema.hash.value}),t.push({editable:!1,key:"meta",value:e.meta})),t}function Vc({router:e,app:t,routes:n}){if(!wt()||e.hasDevtools)return;e.hasDevtools=!0;const r=Ac(),o=new Map(n.map(a=>[a.id,a])),s=`kitbag-router-routes.${r}`,i=`kitbag-router.${r}`;xa({id:i,label:"Kitbag Router",packageName:"@kitbag/router",homepage:"https://router.kitbag.dev/",componentStateTypes:["Routing"],logo:"https://kitbag.dev/kitbag-logo-circle.svg",app:t},a=>{a.addInspector({id:s,label:Tc("Routes",r),treeFilterPlaceholder:"Search routes"}),a.on.getInspectorTree(u=>{u.app!==t||u.inspectorId!==s||(u.rootNodes=n.filter(l=>bc({route:l,payload:u})).map(l=>{const E=Uc(l,e.route);return Cc(l,E)}))}),y.watch(()=>e.route,()=>{a.sendInspectorTree(s)},{deep:!0,immediate:!1}),a.on.getInspectorState(u=>{if(u.app!==t||u.inspectorId!==s)return;const l=o.get(u.nodeId);l&&(u.state={options:Lc(l)})}),a.sendInspectorTree(s),a.sendInspectorState(s)})}function Dc(e,t,n={}){const{query:r,hash:o}=ue(Ge(t,n));for(const s of e){if(!xr(s))continue;const{success:i,params:a}=s.tryParse(t);if(i)return Dr(s,a,{...n,query:r,hash:o})}}const Co=/^(\/.+?)\/+$/;function xc(e){const{path:t,...n}=ue(e);return nn({...n,path:t.replace(Co,"$1")})}function Mc(e){const{path:t}=ue(e);return Co.test(t)}function Bc(e,t,n=[]){const o=t?.isGlobalRouter??!0?Br:Symbol(),s=[...n.flatMap(A=>A.rejections),...t?.rejections??[]],i=t?.removeTrailingSlashes??!0,{routes:a,getRouteByName:u}=fi(e,n,t?.base),l=Is();l.addGlobalRouteHooks(hi(n));const E=ot(),c=Ys(),g=mi(o),f=ii(),d=Qs({mode:t?.historyMode,listener:({location:A})=>{const D=Oe(A);_(D,{state:A.state,replace:!0})}});function R(A,D={}){const J=!q(A),K=a.filter(H=>H.isRelative===J);return Dc(K,A,D)}async function _(A,D={}){if(Mc(A)&&i){const ae=xc(A);if(ee(ae))return p(ae,D)}const J=E();d.stopListening();const K=R(A,D)??S("NotFound"),H=Ne(J),F=await l.runBeforeRouteHooks({to:K,from:H});switch(F.status){case"ABORT":return;case"PUSH":d.update(A,D),await h(...F.to);return;case"REJECT":d.update(A,D),I(F.type);break;case"SUCCESS":d.update(A,D),I(null);break;default:throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(F)}`)}q(A)||m(J,K,H);const je=await l.runAfterRouteHooks({to:K,from:H});switch(je.status){case"PUSH":await h(...je.to);break;case"REJECT":I(je.type);break;case"SUCCESS":break;default:const ae=je;throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(ae)}`)}d.startListening()}function m(A,D,J){const K=A;c.setProps(D).then(H=>{if(K===A)switch(H.status){case"SUCCESS":break;case"PUSH":h(...H.to);break;case"REJECT":I(H.type);break;default:const F=H;throw new Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(F)}`)}}).catch(H=>{try{l.runErrorHooks(H,{to:D,from:J,source:"props"})}catch(F){if(F instanceof fe){h(...F.response.to);return}if(F instanceof Re){I(F.response.type);return}throw F}}),B(D)}const T=(A,D={},J={})=>{const K=u(A);if(!K)throw new ai(A);return Dr(K,D,J)},h=(A,D,J)=>{if(ee(A)){const ae={...D},Dt=Ge(A,{query:ae.query,hash:ae.hash});return _(Dt,ae)}if(typeof A=="string"){const{replace:ae,...Dt}={...J},Qc={...D},Un=T(A,Qc,Dt),Xc=Vr({...Un.matched.state},{...Un.state,...Dt.state});return _(Un.href,{replace:ae,state:Xc})}const{replace:K,...H}={...D},F=Vr({...A.matched.state},{...A.state,...H.state}),je=Ge(A.href,{query:H.query,hash:H.hash});return _(je,{replace:K,state:F})},p=(A,D,J)=>{if(ee(A)){const H={...D,replace:!0};return h(A,H)}if(typeof A=="string"){const H={...J,replace:!0},F={...D};return h(A,F,H)}const K={...D,replace:!0};return h(A,K)},P=A=>{I(A)},{setRejection:I,rejection:N,getRejectionRoute:S}=ei(s),b=S("NotFound"),{currentRoute:C,routerRoute:U,updateRoute:B}=Js(o,b,h),M=ni(t?.initialUrl),j=d.location.state,{host:G}=ue(M),q=Ks(G);let k=!1;const Pe=y.ref(!1),{promise:ne,resolve:he}=Promise.withResolvers();async function oe(){if(k)return ne;k=!0,qo(a)&&await Fo(),await _(M,{replace:!0,state:j}),d.startListening(),he(),Pe.value=!0}function X(){d.stopListening()}function Ne(A){return Mo(A)?null:{...C}}function Vt(A){l.setVueApp(A),c.setVueApp(A);const D=un(o),J=Pr(o);A.component("RouterView",D),A.component("RouterLink",J),A.provide(Er(o),N),A.provide(pr(o),l),A.provide(mr(o),c),A.provide(hr(o),g),A.provide(Or,f),A.provide(o,be),Vc({router:be,app:A,routes:a}),oe()}const be={route:U,resolve:T,find:R,push:h,replace:p,reject:P,refresh:d.refresh,forward:d.forward,back:d.back,go:d.go,install:Vt,isExternal:q,onBeforeRouteEnter:l.onBeforeRouteEnter,onBeforeRouteUpdate:l.onBeforeRouteUpdate,onBeforeRouteLeave:l.onBeforeRouteLeave,onAfterRouteEnter:l.onAfterRouteEnter,onAfterRouteUpdate:l.onAfterRouteUpdate,onAfterRouteLeave:l.onAfterRouteLeave,onError:l.onError,prefetch:t?.prefetch,start:oe,started:Pe,stop:X,key:o,hasDevtools:!1};return be}const te=Nr(Br),jc=te.onBeforeRouteLeave,Hc=te.onBeforeRouteUpdate,Zc=te.onAfterRouteLeave,$c=te.onAfterRouteUpdate,Gc=te.isRoute,qc=te.RouterView,Fc=te.RouterLink,zc=te.useRoute,Wc=te.useRouter,Jc=te.useQueryValue,Kc=te.useLink,Yc=te.useRejection;v.DuplicateParamsError=Vn,v.IS_URL_SYMBOL=$t,v.MetaPropertyConflict=Ln,v.RouterLink=Fc,v.RouterNotInstalledError=Ee,v.RouterView=qc,v.UseRouteInvalidError=xn,v.arrayOf=Gs,v.asUrlString=Dn,v.combineRoutes=Zt,v.createExternalRoute=Os,v.createParam=jn,v.createRejection=Ss,v.createRoute=ye,v.createRouter=Bc,v.createRouterAssets=Nr,v.createRouterPlugin=Zs,v.createUrl=me,v.isRoute=Gc,v.isUrlString=ee,v.isUrlWithSchema=le,v.isWithComponent=Mt,v.isWithComponentProps=Bt,v.isWithComponentPropsRecord=Ht,v.isWithComponents=jt,v.isWithParent=xt,v.onAfterRouteLeave=Zc,v.onAfterRouteUpdate=$c,v.onBeforeRouteLeave=jc,v.onBeforeRouteUpdate=Hc,v.tupleOf=Fs,v.unionOf=br,v.useLink=Kc,v.useQueryValue=Jc,v.useRejection=Yc,v.useRoute=zc,v.useRouter=Wc,v.withDefault=Zo,v.withParams=pt,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})}));