@kitbag/router 0.24.2 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{src/components → components}/routerLink.d.ts +4 -4
- package/dist/{src/components → components}/routerView.d.ts +3 -3
- package/dist/{src/compositions → compositions}/useComponentsStore.d.ts +2 -2
- package/dist/{src/compositions → compositions}/useLink.d.ts +6 -6
- package/dist/{src/compositions → compositions}/usePrefetching.d.ts +3 -3
- package/dist/{src/compositions → compositions}/useQueryValue.d.ts +3 -3
- package/dist/{src/compositions → compositions}/useRejection.d.ts +2 -2
- package/dist/{src/compositions → compositions}/useRoute.d.ts +2 -2
- package/dist/compositions/useRouteValueStore.d.ts +7 -0
- package/dist/{src/compositions → compositions}/useRouter.d.ts +1 -1
- package/dist/{src/compositions → compositions}/useRouterDepth.d.ts +1 -1
- package/dist/{src/compositions → compositions}/useRouterHooks.d.ts +2 -2
- package/dist/{src/compositions → compositions}/useVisibilityObserver.d.ts +1 -1
- package/dist/{src/devtools → devtools}/createRouterDevtools.d.ts +2 -2
- package/dist/{src/devtools → devtools}/filters.d.ts +1 -1
- package/dist/{src/errors → errors}/contextAbortError.d.ts +1 -1
- package/dist/{src/errors → errors}/contextPushError.d.ts +1 -1
- package/dist/{src/errors → errors}/contextRejectionError.d.ts +1 -1
- package/dist/{src/errors → errors}/invalidRouteParamValueError.d.ts +1 -1
- package/dist/errors/loaderDataAccessError.d.ts +8 -0
- package/dist/errors/loaderNameConflict.d.ts +9 -0
- package/dist/errors/navigationAbandonedError.d.ts +6 -0
- package/dist/{src/guards → guards}/routes.d.ts +2 -2
- package/dist/kitbag-router.d.ts +1 -0
- package/dist/kitbag-router.js +6452 -6172
- package/dist/kitbag-router.umd.cjs +5 -4
- package/dist/{src/main.d.ts → main.d.ts} +10 -2
- package/dist/{src/models → models}/hooks.d.ts +2 -2
- package/dist/services/addLoader.d.ts +40 -0
- package/dist/services/addView.d.ts +37 -0
- package/dist/{src/services → services}/arrayOf.d.ts +2 -2
- package/dist/{src/services → services}/combineHash.d.ts +2 -2
- package/dist/{src/services → services}/combinePath.d.ts +2 -2
- package/dist/{src/services → services}/combineQuery.d.ts +2 -2
- package/dist/{src/services → services}/combineState.d.ts +1 -1
- package/dist/{src/services → services}/combineUrl.d.ts +2 -2
- package/dist/{src/services → services}/component.d.ts +3 -4
- package/dist/{src/services → services}/createComponentHooks.d.ts +4 -4
- package/dist/{src/services → services}/createComponentsStore.d.ts +3 -3
- package/dist/{src/services → services}/createCurrentRejection.d.ts +2 -2
- package/dist/services/createCurrentRoute.d.ts +25 -0
- package/dist/services/createDataStore.d.ts +48 -0
- package/dist/{src/services → services}/createExternalRoute.d.ts +4 -4
- package/dist/services/createNavigationStores.d.ts +31 -0
- package/dist/{src/services → services}/createParam.d.ts +3 -3
- package/dist/{src/services → services}/createRejection.d.ts +3 -3
- package/dist/{src/services → services}/createRejectionHooks.d.ts +3 -3
- package/dist/services/createResolvedRoute.d.ts +4 -0
- package/dist/{src/services → services}/createResolvedRouteQuery.d.ts +1 -1
- package/dist/{src/services → services}/createRoute.d.ts +3 -6
- package/dist/{src/services → services}/createRouteHooks.d.ts +5 -5
- package/dist/{src/services → services}/createRouteRedirects.d.ts +2 -2
- package/dist/services/createRouteValueStore.d.ts +56 -0
- package/dist/services/createRouteViews.d.ts +16 -0
- package/dist/{src/services → services}/createRouter.d.ts +3 -3
- package/dist/{src/services → services}/createRouterAssets.d.ts +10 -10
- package/dist/{src/services → services}/createRouterCallbackContext.d.ts +7 -7
- package/dist/{src/services → services}/createRouterHistory.d.ts +1 -1
- package/dist/{src/services → services}/createRouterHooks.d.ts +2 -2
- package/dist/{src/services → services}/createRouterKeyStore.d.ts +1 -1
- package/dist/{src/services → services}/createRouterPlugin.d.ts +3 -3
- package/dist/services/createRouterRoute.d.ts +7 -0
- package/dist/{src/services → services}/createUrl.d.ts +1 -1
- package/dist/services/getGlobalHooksForRouter.d.ts +3 -0
- package/dist/{src/services → services}/getGlobalRouteHooks.d.ts +2 -2
- package/dist/{src/services → services}/getMatchesForUrl.d.ts +3 -3
- package/dist/{src/services → services}/getParamsForString.d.ts +2 -2
- package/dist/services/getRejectionHooks.d.ts +3 -0
- package/dist/{src/services → services}/getRouteHooks.d.ts +2 -2
- package/dist/{src/services → services}/getRoutesForRouter.d.ts +5 -6
- package/dist/{src/services → services}/hooks.d.ts +2 -2
- package/dist/{src/services → services}/insertBaseRoute.d.ts +1 -1
- package/dist/{src/services → services}/literal.d.ts +1 -1
- package/dist/{src/services → services}/params.d.ts +3 -3
- package/dist/{src/services → services}/queryParamFilter.d.ts +1 -1
- package/dist/{src/services → services}/routeRegex.d.ts +1 -1
- package/dist/{src/services → services}/state.d.ts +1 -1
- package/dist/{src/services → services}/tupleOf.d.ts +2 -2
- package/dist/services/unionOf.d.ts +3 -0
- package/dist/{src/services → services}/urlParser.d.ts +2 -2
- package/dist/{src/services → services}/valibot.d.ts +1 -1
- package/dist/{src/services → services}/withDefault.d.ts +2 -2
- package/dist/{src/services → services}/withParams.d.ts +4 -4
- package/dist/services/withRouteMethods.d.ts +7 -0
- package/dist/{src/services → services}/zod.d.ts +2 -2
- package/dist/types/addLoader.d.ts +69 -0
- package/dist/types/addView.d.ts +104 -0
- package/dist/{src/types → types}/createRouteOptions.d.ts +57 -36
- package/dist/{src/types → types}/hooks.d.ts +14 -14
- package/dist/{src/types → types}/paramTypes.d.ts +2 -2
- package/dist/{src/types → types}/params.d.ts +1 -1
- package/dist/{src/types → types}/prefetch.d.ts +1 -0
- package/dist/{src/types → types}/props.d.ts +13 -5
- package/dist/{src/types → types}/register.d.ts +1 -1
- package/dist/{src/types → types}/rejection.d.ts +4 -4
- package/dist/{src/types → types}/resolved.d.ts +24 -5
- package/dist/types/route.d.ts +121 -0
- package/dist/types/routeCallbackContext.d.ts +30 -0
- package/dist/types/routeLoaders.d.ts +30 -0
- package/dist/{src/types → types}/routeTitle.d.ts +1 -1
- package/dist/{src/types → types}/routeUpdate.d.ts +2 -2
- package/dist/types/routeViews.d.ts +44 -0
- package/dist/types/routeWithMethods.d.ts +16 -0
- package/dist/{src/types → types}/routeWithParams.d.ts +3 -3
- package/dist/{src/types → types}/router.d.ts +13 -13
- package/dist/{src/types → types}/routerLink.d.ts +5 -5
- package/dist/{src/types → types}/routerPlugin.d.ts +3 -3
- package/dist/{src/types → types}/routerPush.d.ts +8 -8
- package/dist/{src/types → types}/routerReject.d.ts +1 -1
- package/dist/{src/types → types}/routerReplace.d.ts +8 -8
- package/dist/{src/types → types}/routerResolve.d.ts +7 -7
- package/dist/{src/types → types}/routerRoute.d.ts +9 -3
- package/dist/{src/types → types}/routesMap.d.ts +2 -2
- package/dist/{src/types → types}/state.d.ts +6 -6
- package/dist/{src/types → types}/url.d.ts +6 -6
- package/dist/{src/types → types}/useLink.d.ts +5 -5
- package/dist/{src/types → types}/utilities.d.ts +1 -0
- package/dist/{src/utilities → utilities}/checkDuplicateNames.d.ts +1 -1
- package/dist/utilities/checkDuplicateNames.spec.d.ts +1 -0
- package/dist/utilities/checkDuplicateParams.spec.d.ts +1 -0
- package/dist/utilities/components.spec.d.ts +1 -0
- package/dist/utilities/guards.spec.d.ts +1 -0
- package/dist/utilities/isBrowser.browser.spec.d.ts +1 -0
- package/dist/utilities/isBrowser.spec.d.ts +1 -0
- package/dist/{src/utilities → utilities}/isNamedRoute.d.ts +1 -1
- package/dist/{src/utilities → utilities}/prefetch.d.ts +2 -2
- package/dist/utilities/prefetch.spec.d.ts +1 -0
- package/dist/utilities/props.d.ts +16 -0
- package/dist/{src/utilities → utilities}/setDocumentTitle.d.ts +1 -1
- package/dist/utilities/testHelpers.d.ts +242 -0
- package/dist/utilities/trailingSlashes.spec.d.ts +1 -0
- package/dist/{src/utilities → utilities}/urlSearchParams.d.ts +1 -1
- package/dist/utilities/urlSearchParams.spec.d.ts +1 -0
- package/package.json +18 -16
- package/dist/src/compositions/usePropStore.d.ts +0 -7
- package/dist/src/services/createCurrentRoute.d.ts +0 -13
- package/dist/src/services/createPropStore.d.ts +0 -13
- package/dist/src/services/createResolvedRoute.d.ts +0 -4
- package/dist/src/services/createRouterRoute.d.ts +0 -7
- package/dist/src/services/getGlobalHooksForRouter.d.ts +0 -3
- package/dist/src/services/getRejectionHooks.d.ts +0 -3
- package/dist/src/services/unionOf.d.ts +0 -3
- package/dist/src/types/route.d.ts +0 -80
- package/dist/src/utilities/props.d.ts +0 -6
- package/dist/src/utilities/testHelpers.d.ts +0 -3699
- /package/dist/{src/components → components}/echo.d.ts +0 -0
- /package/dist/{src/components → components}/helloWorld.d.ts +0 -0
- /package/dist/{src/components → components}/rejection.d.ts +0 -0
- /package/dist/{src/components → components}/routerLink.browser.spec.d.ts +0 -0
- /package/dist/{src/components → components}/routerView.browser.spec.d.ts +0 -0
- /package/dist/{src/components → components}/routerView.spec.d.ts +0 -0
- /package/dist/{src/compositions → compositions}/useEventListener.d.ts +0 -0
- /package/dist/{src/compositions → compositions}/useQueryValue.browser.spec.d.ts +0 -0
- /package/dist/{src/compositions → compositions}/useQueryValue.spec-d.d.ts +0 -0
- /package/dist/{src/compositions → compositions}/useRoute.browser.spec.d.ts +0 -0
- /package/dist/{src/compositions → compositions}/useRoute.spec-d.d.ts +0 -0
- /package/dist/{src/devtools → devtools}/getDevtoolsLabel.d.ts +0 -0
- /package/dist/{src/devtools → devtools}/types.d.ts +0 -0
- /package/dist/{src/errors → errors}/contextError.d.ts +0 -0
- /package/dist/{src/errors → errors}/duplicateNamesError.d.ts +0 -0
- /package/dist/{src/errors → errors}/duplicateParamsError.d.ts +0 -0
- /package/dist/{src/errors → errors}/initialRouteMissingError.d.ts +0 -0
- /package/dist/{src/errors → errors}/invalidRouteRedirectError.d.ts +0 -0
- /package/dist/{src/errors → errors}/metaPropertyConflict.d.ts +0 -0
- /package/dist/{src/errors → errors}/multipleRouteRedirectsError.d.ts +0 -0
- /package/dist/{src/errors → errors}/routeNotFoundError.d.ts +0 -0
- /package/dist/{src/errors → errors}/routerNotInstalledError.d.ts +0 -0
- /package/dist/{src/errors → errors}/useRouteInvalidError.d.ts +0 -0
- /package/dist/{src/guards → guards}/routes.spec-d.d.ts +0 -0
- /package/dist/{src/keys.d.ts → keys.d.ts} +0 -0
- /package/dist/{src/services/arrayOf.spec.d.ts → services/addLoader.spec-d.d.ts} +0 -0
- /package/dist/{src/services/combineHash.spec.d.ts → services/addLoader.spec.d.ts} +0 -0
- /package/dist/{src/services/combineMeta.spec.d.ts → services/addView.browser.spec.d.ts} +0 -0
- /package/dist/{src/services/combinePath.spec-d.d.ts → services/addView.spec-d.d.ts} +0 -0
- /package/dist/{src/services/combinePath.spec.d.ts → services/addView.spec.d.ts} +0 -0
- /package/dist/{src/services/combineQuery.spec.d.ts → services/arrayOf.spec.d.ts} +0 -0
- /package/dist/{src/services/combineState.spec.d.ts → services/combineHash.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/combineMeta.d.ts +0 -0
- /package/dist/{src/services/combineUrl.spec.d.ts → services/combineMeta.spec.d.ts} +0 -0
- /package/dist/{src/services/component.browser.spec.d.ts → services/combinePath.spec-d.d.ts} +0 -0
- /package/dist/{src/services/createExternalRoute.spec.d.ts → services/combinePath.spec.d.ts} +0 -0
- /package/dist/{src/services/createIsExternal.spec.d.ts → services/combineQuery.spec.d.ts} +0 -0
- /package/dist/{src/services/createResolvedRoute.spec.d.ts → services/combineState.spec.d.ts} +0 -0
- /package/dist/{src/services/createRoute.spec-d.d.ts → services/combineUrl.spec.d.ts} +0 -0
- /package/dist/{src/services/createRoute.spec.d.ts → services/component.browser.spec.d.ts} +0 -0
- /package/dist/{src/services/createRouteRedirects.spec.d.ts → services/createDataStore.spec.d.ts} +0 -0
- /package/dist/{src/services/createRouter.browser.spec.d.ts → services/createExternalRoute.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/createIsExternal.d.ts +0 -0
- /package/dist/{src/services/createRouter.spec-d.d.ts → services/createIsExternal.spec.d.ts} +0 -0
- /package/dist/{src/services/createRouter.spec.d.ts → services/createNavigationStores.spec.d.ts} +0 -0
- /package/dist/{src/services/createRouterHistory.browser.spec.d.ts → services/createResolvedRoute.spec.d.ts} +0 -0
- /package/dist/{src/services/createRouterPlugin.browser.spec.d.ts → services/createRoute.spec-d.d.ts} +0 -0
- /package/dist/{src/services/createRouterPlugin.spec-d.d.ts → services/createRoute.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/createRouteId.d.ts +0 -0
- /package/dist/{src/services/createRouterRoute.spec.d.ts → services/createRouteRedirects.spec.d.ts} +0 -0
- /package/dist/{src/services/createUrl.spec.d.ts → services/createRouter.browser.spec.d.ts} +0 -0
- /package/dist/{src/services/getInitialUrl.browser.spec.d.ts → services/createRouter.spec-d.d.ts} +0 -0
- /package/dist/{src/services/getInitialUrl.spec.d.ts → services/createRouter.spec.d.ts} +0 -0
- /package/dist/{src/services/getMatchesForUrl.spec.d.ts → services/createRouterHistory.browser.spec.d.ts} +0 -0
- /package/dist/{src/services/getRouteHooks.spec.d.ts → services/createRouterPlugin.browser.spec.d.ts} +0 -0
- /package/dist/{src/services/getRoutesForRouter.spec.d.ts → services/createRouterPlugin.spec-d.d.ts} +0 -0
- /package/dist/{src/services/history.browser.spec.d.ts → services/createRouterRoute.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/createUniqueIdSequence.d.ts +0 -0
- /package/dist/{src/services/hooks.browser.spec.d.ts → services/createUrl.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/createVisibilityObserver.d.ts +0 -0
- /package/dist/{src/services → services}/createVueAppStore.d.ts +0 -0
- /package/dist/{src/services/hooks.spec.d.ts → services/getInitialUrl.browser.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/getInitialUrl.d.ts +0 -0
- /package/dist/{src/services/insertBaseRoute.spec.d.ts → services/getInitialUrl.spec.d.ts} +0 -0
- /package/dist/{src/services/params.spec.d.ts → services/getMatchesForUrl.spec.d.ts} +0 -0
- /package/dist/{src/services/paramsFinder.spec.d.ts → services/getRouteHooks.spec.d.ts} +0 -0
- /package/dist/{src/services/queryParamFilter.spec.d.ts → services/getRoutesForRouter.spec.d.ts} +0 -0
- /package/dist/{src/services/routeRegex.spec.d.ts → services/history.browser.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/history.d.ts +0 -0
- /package/dist/{src/services/state.spec.d.ts → services/hooks.browser.spec.d.ts} +0 -0
- /package/dist/{src/tests → services}/hooks.spec.d.ts +0 -0
- /package/dist/{src/services/tupleOf.spec.d.ts → services/insertBaseRoute.spec.d.ts} +0 -0
- /package/dist/{src/services/unionOf.spec.d.ts → services/params.spec.d.ts} +0 -0
- /package/dist/{src/services → services}/paramsFinder.d.ts +0 -0
- /package/dist/{src/services/urlParser.spec.d.ts → services/paramsFinder.spec.d.ts} +0 -0
- /package/dist/{src/services/valibot.spec-d.d.ts → services/queryParamFilter.spec.d.ts} +0 -0
- /package/dist/{src/services/valibot.spec.d.ts → services/routeRegex.spec.d.ts} +0 -0
- /package/dist/{src/services/withParams.spec-d.d.ts → services/state.spec.d.ts} +0 -0
- /package/dist/{src/services/withParams.spec.d.ts → services/tupleOf.spec.d.ts} +0 -0
- /package/dist/{src/services/zod.spec-d.d.ts → services/unionOf.spec.d.ts} +0 -0
- /package/dist/{src/services/zod.spec.d.ts → services/urlParser.spec.d.ts} +0 -0
- /package/dist/{src/tests/routeProps.browser.spec.d.ts → services/valibot.spec-d.d.ts} +0 -0
- /package/dist/{src/tests/routeProps.spec.d.ts → services/valibot.spec.d.ts} +0 -0
- /package/dist/{src/types/redirects.spec-d.d.ts → services/withParams.spec-d.d.ts} +0 -0
- /package/dist/{src/types/register.spec.d.ts → services/withParams.spec.d.ts} +0 -0
- /package/dist/{src/types/resolved.spec-d.d.ts → services/zod.spec-d.d.ts} +0 -0
- /package/dist/{src/types/route.spec-d.d.ts → services/zod.spec.d.ts} +0 -0
- /package/dist/{src/types/routeTitle.browser.spec.d.ts → tests/hooks.spec.d.ts} +0 -0
- /package/dist/{src/types/routeWithParams.spec-d.d.ts → tests/routeLoaders.browser.spec.d.ts} +0 -0
- /package/dist/{src/types/routesMap.spec-ts.d.ts → tests/routeLoaders.spec.d.ts} +0 -0
- /package/dist/{src/utilities/checkDuplicateNames.spec.d.ts → tests/routeProps.browser.spec.d.ts} +0 -0
- /package/dist/{src/utilities/checkDuplicateParams.spec.d.ts → tests/routeProps.spec.d.ts} +0 -0
- /package/dist/{src/types → types}/callbackContext.d.ts +0 -0
- /package/dist/{src/types → types}/meta.d.ts +0 -0
- /package/dist/{src/types → types}/name.d.ts +0 -0
- /package/dist/{src/types → types}/querySource.d.ts +0 -0
- /package/dist/{src/types → types}/redirects.d.ts +0 -0
- /package/dist/{src/utilities/components.spec.d.ts → types/redirects.spec-d.d.ts} +0 -0
- /package/dist/{src/utilities/guards.spec.d.ts → types/register.spec.d.ts} +0 -0
- /package/dist/{src/utilities/isBrowser.browser.spec.d.ts → types/resolved.spec-d.d.ts} +0 -0
- /package/dist/{src/utilities/isBrowser.spec.d.ts → types/route.spec-d.d.ts} +0 -0
- /package/dist/{src/types → types}/routeContext.d.ts +0 -0
- /package/dist/{src/utilities/prefetch.spec.d.ts → types/routeTitle.browser.spec.d.ts} +0 -0
- /package/dist/{src/utilities/trailingSlashes.spec.d.ts → types/routeWithParams.spec-d.d.ts} +0 -0
- /package/dist/{src/types → types}/routerAbort.d.ts +0 -0
- /package/dist/{src/utilities/urlSearchParams.spec.d.ts → types/routesMap.spec-ts.d.ts} +0 -0
- /package/dist/{src/types → types}/urlString.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/array.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/checkDuplicateParams.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/components.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/guards.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/index.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/isBrowser.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/makeOptional.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/promises.d.ts +0 -0
- /package/dist/{src/utilities → utilities}/trailingSlashes.d.ts +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e[`@kitbag/router`]={},e.Vue))})(this,function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function n(e){return typeof e==`string`?/^(https?:\/\/|\/).*/g.test(e):!1}function r(e){return n(e)?e:`/${e}`}var i=class extends Error{constructor(e){super(`Invalid Param "${e}": Router does not support multiple params by the same name. All param names must be unique.`)}},a=class extends Error{constructor(e){super(`Child property on meta for ${e} conflicts with the parent meta.`)}},o=class extends Error{constructor(){super(`Router not installed`)}},s=class extends Error{constructor(e,t){super(`useRoute called with incorrect route. Given ${e}, expected ${t}`)}};function c(){let e=0;return()=>(++e).toString()}var l=c()();function u(e){return e===l}var d=c();function f(e,t){return p(e,t),{...e,...t}}function p(e,t){let n=Object.keys(e).find(n=>n in t&&typeof t[n]!=typeof e[n]);if(n)throw new a(n)}function m(e,t){return e.filter(e=>t===e).length}function h(...e){let t=e.flatMap(e=>Array.isArray(e)?e:Object.keys(e));for(let e of t)if(m(t,e)>1)throw new i(e)}function g(e,t){return h(e,t),{...e,...t}}var _=Symbol(`IS_ROUTE_SYMBOL`);function v(e){return typeof e==`object`&&!!e&&_ in e}var y=[`NotFound`],b=Symbol(`IS_REJECTION_SYMBOL`);function x(e){return typeof e==`object`&&!!e&&b in e}function S(e){return e&&(v(e)||x(e))?e.hooks:[]}function C(e,t){return[...S(e),...S(t)]}function w(e){return`parent`in e&&!!e.parent}function T(e){return`component`in e&&!!e.component}function E(e){return`props`in e&&typeof e.props==`function`}function D(e){return`components`in e&&!!e.components}function O(e){return`props`in e&&typeof e.props==`object`}function k(e,t){if(!v(e)||!v(t))throw Error(`combineRoutes called with invalid route arguments`);return{...t,meta:f(e.meta,t.meta),state:g(e.state,t.state),hooks:C(e,t),matches:[...e.matches,t.matched],context:[...e.context,...t.context],depth:e.depth+1}}function A(e){return e===void 0?``:e}var j=class{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set;onRejection=new Set},ee=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Router does not support multiple redirects to the same route. All redirects must be unique.`)}};function te(){let e=new j;return{redirect:(t,n)=>{if(e.redirects.size>0)throw new ee(t.name);let r=(e,{replace:r})=>{r(t.name,n?.(e.params))};return e.redirects.add(r),()=>e.redirects.delete(r)},onBeforeRouteEnter:t=>(e.onBeforeRouteEnter.add(t),()=>e.onBeforeRouteEnter.delete(t)),onBeforeRouteUpdate:t=>(e.onBeforeRouteUpdate.add(t),()=>e.onBeforeRouteUpdate.delete(t)),onBeforeRouteLeave:t=>(e.onBeforeRouteLeave.add(t),()=>e.onBeforeRouteLeave.delete(t)),onAfterRouteEnter:t=>(e.onAfterRouteEnter.add(t),()=>e.onAfterRouteEnter.delete(t)),onAfterRouteUpdate:t=>(e.onAfterRouteUpdate.add(t),()=>e.onAfterRouteUpdate.delete(t)),onAfterRouteLeave:t=>(e.onAfterRouteLeave.add(t),()=>e.onAfterRouteLeave.delete(t)),onError:t=>(e.onError.add(t),()=>e.onError.delete(t)),onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}var ne=class extends Error{context;constructor(e={}){super(e.message??`Uncaught InvalidRouteParamValueError`),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...e}}};function re(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function ie(e){return typeof e==`function`&&re(e)}function ae(e){return typeof e==`object`&&`get`in e&&typeof e.get==`function`&&`set`in e&&typeof e.set==`function`}function oe(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`}function se(e,t){return ae(e)?{...e,defaultValue:t??e.defaultValue}:{get:t=>Ge(t,{param:e}),set:t=>F(t,{param:e}),defaultValue:t}}function ce(e){return ae(e)&&e.defaultValue!==void 0}function le(e,t){return se(e,t)}function ue(e){return e!==void 0}function de(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function fe(e){return typeof e==`string`||typeof e==`number`||typeof e==`symbol`}function M(e){return typeof e==`string`&&e.length>0}var pe=Symbol(`IS_URL_SYMBOL`);function me(e){return typeof e==`object`&&!!e&&pe in e}var N=null;async function he(){let{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:i,ZodCIDRv6:a,ZodURL:o,ZodEmail:s,ZodUUID:c,ZodBase64:l,ZodCUID:u,ZodCUID2:d,ZodULID:f,ZodJWT:p,ZodBigInt:m,ZodNaN:h,ZodBoolean:g,ZodDate:_,ZodISODateTime:v,ZodISODate:y,ZodISOTime:b,ZodNumber:x,ZodLiteral:S,ZodObject:C,ZodEnum:w,ZodArray:T,ZodTuple:E,ZodUnion:D,ZodDiscriminatedUnion:O,ZodRecord:k,ZodMap:A,ZodSet:j,ZodIntersection:ee,ZodPromise:te}=await import(`zod`);return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:i,ZodCIDRv6:a,ZodURL:o,ZodEmail:s,ZodUUID:c,ZodBase64:l,ZodCUID:u,ZodCUID2:d,ZodULID:f,ZodJWT:p,ZodBigInt:m,ZodNaN:h,ZodBoolean:g,ZodDate:_,ZodISODateTime:v,ZodISODate:y,ZodISOTime:b,ZodNumber:x,ZodLiteral:S,ZodObject:C,ZodEnum:w,ZodArray:T,ZodTuple:E,ZodUnion:D,ZodDiscriminatedUnion:O,ZodRecord:k,ZodMap:A,ZodSet:j,ZodIntersection:ee,ZodPromise:te}}function ge(e){return Object.values(e).some(e=>me(e)?Object.values(e.schema.host.params).some(({param:e})=>_e(e))||Object.values(e.schema.path.params).some(({param:e})=>_e(e))||Object.values(e.schema.query.params).some(({param:e})=>_e(e)):!1)}function _e(e){return de(e)&&`parse`in e&&typeof e.parse==`function`&&`~standard`in e&&de(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`zod`}async function ve(){try{N=await he()}catch{throw Error(`Failed to initialize Zod`)}}function ye(e){return N?e instanceof N.ZodType:!1}function be(e){return{get:(t,{invalid:n})=>{try{return Te(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Ee(t,e)}catch{throw n()}}}}var xe=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Se(e,t){if(typeof t==`string`&&xe.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Ce(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function we(e,t){return N?.ZodString&&e instanceof N.ZodString?1:N?.ZodString&&t instanceof N.ZodString?-1:0}function Te(e,t){if(!N)throw Error(`Zod is not initialized`);if(t instanceof N.ZodString)return t.parse(e);if(t instanceof N.ZodBoolean)return t.parse(!!e);if(t instanceof N.ZodDate)return t.parse(new Date(e));if(t instanceof N.ZodNumber)return t.parse(Number(e));if(t instanceof N.ZodBigInt)return t.parse(BigInt(e));if(t instanceof N.ZodNaN)return t.parse(Number(e));if(t instanceof N.ZodLiteral)return Ce([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof N.ZodObject)return t.parse(JSON.parse(e,Se));if(t instanceof N.ZodEnum)return t.parse(e);if(t instanceof N.ZodArray||t instanceof N.ZodTuple)return t.parse(JSON.parse(e,Se));if(t instanceof N.ZodUnion)return Ce(Array.from(t.def.options).sort(we).map(t=>()=>Te(e,t)));if(t instanceof N.ZodDiscriminatedUnion)return Ce(Array.from(t.options).sort(we).map(t=>()=>Te(e,t)));if(t instanceof N.ZodRecord)return t.parse(JSON.parse(e,Se));if(t instanceof N.ZodMap)return t.parse(new Map(JSON.parse(e,Se)));if(t instanceof N.ZodSet)return t.parse(new Set(JSON.parse(e,Se)));if(t instanceof N.ZodIntersection)throw Error(`Intersection schemas are not supported`);if(t instanceof N.ZodPromise)throw Error(`Promise schemas are not supported`);return t.parse(e)}function Ee(e,t){if(!N)throw Error(`Zod is not initialized`);if(t instanceof N.ZodString||t instanceof N.ZodISODateTime||t instanceof N.ZodISODate||t instanceof N.ZodISOTime||t instanceof N.ZodIPv4||t instanceof N.ZodIPv6||t instanceof N.ZodCIDRv4||t instanceof N.ZodCIDRv6||t instanceof N.ZodURL||t instanceof N.ZodEmail||t instanceof N.ZodUUID||t instanceof N.ZodBase64||t instanceof N.ZodCUID||t instanceof N.ZodCUID2||t instanceof N.ZodULID||t instanceof N.ZodJWT)return t.parse(e);if(t instanceof N.ZodBoolean)return t.parse(e).toString();if(t instanceof N.ZodDate)return t.parse(e).toISOString();if(t instanceof N.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof N.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof N.ZodNaN)return t.parse(e).toString();if(t instanceof N.ZodLiteral){let n=t.parse(e);return n==null?String(n):n.toString()}if(t instanceof N.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof N.ZodEnum){let n=t.parse(e);return typeof n==`string`?n:String(n)}if(t instanceof N.ZodArray||t instanceof N.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof N.ZodUnion)return Ce(Array.from(t.def.options).sort(we).map(t=>()=>Ee(e,t)));if(t instanceof N.ZodDiscriminatedUnion)return Ce(Array.from(t.options).sort(we).map(t=>()=>Ee(e,t)));if(t instanceof N.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof N.ZodMap){let n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof N.ZodSet){let n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof N.ZodIntersection)throw Error(`Intersection schemas are not supported`);if(t instanceof N.ZodPromise)throw Error(`Promise schemas are not supported`);return JSON.stringify(t.parse(e))}function De(e){return typeof e==`object`&&!!e&&`then`in e}function P(e,t){let n=e[`~standard`].validate(t);if(De(n))throw Error(`Promise schemas are not supported`);if(n.issues)throw Error(`Validation failed`);return n.value}function Oe(e){return de(e)&&`type`in e&&typeof e.type==`string`&&`~standard`in e&&de(e[`~standard`])&&`vendor`in e[`~standard`]&&e[`~standard`].vendor===`valibot`}function ke(e){return Oe(e)}function Ae(e){return{get:(t,{invalid:n})=>{try{return Fe(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Ie(t,e)}catch{throw n()}}}}var je=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Me(e,t){if(typeof t==`string`&&je.test(t)){let e=new Date(t);return isNaN(e.getTime())?t:e}return t}function Ne(e){for(let t of e)try{return t()}catch{continue}throw Error(`All functions failed`)}function Pe(e,t){return e.type===`string`?1:t.type===`string`?-1:0}function Fe(e,t){if(t.type===`boolean`)return P(t,!!e);if(t.type===`date`)return P(t,new Date(e));if(t.type===`number`)return P(t,Number(e));if(t.type===`literal`)return Ne([()=>P(t,Number(e)),()=>P(t,!!e),()=>P(t,e)]);if(t.type===`object`)return P(t,JSON.parse(e,Me));if(t.type===`enum`)return Ne([()=>P(t,Number(e)),()=>P(t,!!e),()=>P(t,e)]);if(t.type===`array`||t.type===`tuple`)return P(t,JSON.parse(e,Me));if(t.type===`union`&&`options`in t||t.type===`variant`&&`options`in t)return Ne(t.options.sort(Pe).map(t=>()=>Fe(e,t)));if(t.type===`record`)return P(t,JSON.parse(e,Me));if(t.type===`map`)return P(t,new Map(JSON.parse(e,Me)));if(t.type===`set`)return P(t,new Set(JSON.parse(e,Me)));if(t.type===`intersection`)throw Error(`Intersection schemas are not supported`);if(t.type===`promise`)throw Error(`Promise schemas are not supported`);if(t.type===`function`)throw Error(`Function schemas are not supported`);return P(t,e)}function Ie(e,t){if(t.type===`string`||t.type===`boolean`)return P(t,e).toString();if(t.type===`date`)return P(t,e).toISOString();if(t.type===`number`)return P(t,Number(e)).toString();if(t.type===`literal`)return P(t,e).toString();if(t.type===`object`)return JSON.stringify(P(t,e));if(t.type===`enum`||t.type===`nativeEnum`)return P(t,e).toString();if(t.type===`array`||t.type===`tuple`)return JSON.stringify(P(t,e));if(t.type===`union`&&`options`in t||t.type===`variant`&&`options`in t)return Ne(t.options.sort(Pe).map(t=>()=>Ie(e,t)));if(t.type===`record`)return JSON.stringify(P(t,e));if(t.type===`map`){let n=P(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type===`set`){let n=P(t,e);return JSON.stringify(Array.from(n.values()))}if(t.type===`intersection`)throw Error(`Intersection schemas are not supported`);if(t.type===`promise`)throw Error(`Promise schemas are not supported`);if(t.type===`function`)throw Error(`Function schemas are not supported`);return JSON.stringify(P(t,e))}function Le(e){return{get:(t,{invalid:n})=>{if(`${e}`===t)return e;throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`)},set:(t,{invalid:n})=>{if(e!==t)throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);return t.toString()}}}function Re(e,t){return e[t]??String}function ze(e){return{invalid:t=>{throw new ne({...e,message:t})}}}var Be={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!=`string`)throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},Ve={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()}},He={get:(e,{invalid:t})=>{let 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()}},Ue={get:(e,{invalid:t})=>{let 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()}},We={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 Ge(e,{param:t=String,isOptional:n=!1}={}){let r=ze({param:t,value:e,isGetter:!0});if(e===void 0||!M(e)){if(ce(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return Be.get(e,r);if(t===Boolean)return Ve.get(e,r);if(t===Number)return He.get(e,r);if(t===Date)return Ue.get(e,r);if(t===JSON)return We.get(e,r);if(ie(t))return t(e,r);if(ae(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)}`)}return oe(t)?Le(t).get(e,r):ye(t)?be(t).get(e,r):ke(t)?Ae(t).get(e,r):e}function Ke(e,t){try{return Ge(e,t)}catch(e){if(e instanceof ne)return;throw e}}function qe(e,t){try{return F(e,t)}catch(e){if(e instanceof ne)return;throw e}}function F(e,{param:t=String,isOptional:n=!1}={}){let r=ze({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 Ve.set(e,r);if(t===Number)return He.set(e,r);if(t===Date)return Ue.set(e,r);if(t===JSON)return We.set(e,r);if(ae(t))return t.set(e,r);if(oe(t))return Le(t).set(e,r);if(ye(t))return be(t).set(e,r);if(ke(t))return Ae(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}var Je=`\\[\\??([\\w-_]+)\\*?\\]`,Ye=`\\[\\?([\\w-_]+)\\*?\\]`,Xe=`\\[\\??([\\w-_]+)\\*\\]`,Ze=`[^/]*`,Qe=`([^/]*)`,$e=`(.*)`;function et(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function tt(e,t){let n=Array.from(e.matchAll(t));if(n.length===0)return[e];let r=0,i=n.reduce((t,n)=>{let i=et(e.slice(r,n.index));i.length&&t.push(i);let[a]=n;return t.push(a),r=n.index+a.length,t},[]),a=e.slice(r);return a&&i.push(a),i}function nt(e){let t=ot(e);return RegExp(`^${t||`.*`}$`,`i`)}function rt(e){let t=ot(e);return RegExp(`^${t}$`,`i`)}function it(e){let t=ot(e.replace(/^#*/,``));return RegExp(`^#?${t||`.*`}$`,`i`)}function at(e){let t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,e])=>!lt(e)).map(([e,t])=>{let n=ot(t);return RegExp(`${et(e)}=${n}(&|$)`,`i`)})}function ot(e){return tt(e,new RegExp(Je,`g`)).map(e=>e.startsWith(`[`)?st(e):et(e)).join(``)}function st(e){return e.replace(new RegExp(Je,`g`),e=>ut(e)?`.*`:Ze)}function ct(e,t){let n=ft(t),{isGreedy:r=!1}=e.params[t]??{},i=r?$e:Qe;return e.value.replace(n,i)}function lt(e){return new RegExp(Ye,`g`).test(e)}function ut(e){return new RegExp(Xe,`g`).test(e)}function dt(e){let[t]=pt(e,new RegExp(Je,`g`));return t}function ft(e){return RegExp(`\\[\\??${e}\\*?\\]`,`g`)}function pt(e,t){return Array.from(e.matchAll(t)).flatMap(([,...e])=>e.map(e=>M(e)?e:``))}function mt(e=``,t={}){return M(e)?Array.from(e.matchAll(new RegExp(Je,`g`))).reduce((e,[n,r])=>{let i=dt(n);if(!i)return e;let a=Re(t,i),o=lt(n)||ce(a),s=ut(n);return h([i],e),e[r]={param:a,isOptional:o,isGreedy:s},e},{}):{}}var ht=Symbol(`UrlPartsWithParams`);function gt(e){return de(e)&&e[ht]===!0}function I(e){return e===void 0?_t():gt(e)?e:_t(e,{})}function _t(e,t){return{value:e??``,params:mt(e,t),[ht]:!0}}function vt(e){if(typeof e==`string`||e===void 0||gt(e))return I(e);let t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(let[e,i]of t)if(oe(i))n.push(`${e}=${i}`);else{let t=`[${e}]`,a=dt(t);a&&(r[a]=i),n.push(`${a}=${t}`)}return _t(n.join(`&`),r)}function yt(e,t,n){let r=st(ct(t,n)),[i]=pt(e,new RegExp(r,`g`));return i}function bt(e,t,n,r){let i=F(r,t.params[n]);return e.replace(ft(n),i)}function xt(...e){let t=new URLSearchParams;for(let n of e){let e=new URLSearchParams(n);for(let[n,r]of e.entries())t.append(n,r)}return t}var St=`https://internal.invalid`;function Ct(e){let t=new URL(e.host??St,St);return t.pathname=e.path??``,t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??``,r(t.toString().replace(RegExp(`^${St}/*`),`/`))}function L(e){return e.startsWith(`http`)?Tt(e):Et(e)}function wt(e,t){if(typeof e==`string`)return Ct(wt(L(e),t));let n=new URLSearchParams(t.query);return{host:M(t.host)?t.host:e.host,path:M(t.path)?t.path:e.path??``,query:xt(e.query,n),hash:M(t.hash)?t.hash:e.hash??``}}function Tt(e){let{protocol:t,host:n,pathname:r,searchParams:i,hash:a}=new URL(e,e);return{host:`${t}//${n}`,path:r,query:i,hash:a}}function Et(e){let{pathname:t,searchParams:n,hash:r}=new URL(e,St);return{path:t,query:n,hash:r}}function Dt(e){let t={host:I(e.host),path:I(e.path),query:kt(vt(e.query)),hash:Ot(I(e.hash))};h(t.path.params,t.query.params,t.host.params,t.hash.params);let n={...t.host,regexp:nt(t.host.value),stringify(e={}){return At(t.host,e)}},r={...t.path,regexp:{trailingSlashIgnored:rt(t.path.value),trailingSlashRemoved:rt(t.path.value.replace(/^(.+)\/$/,`$1`))},stringify(e={}){return At(t.path,e)}},i={...t.query,regexp:at(t.query.value),stringify(e={}){return jt(t.query,e).toString()}},a={...t.hash,regexp:it(t.hash.value),stringify(e={}){return At(t.hash,e)}};function o(e={}){return Ct({host:n.stringify(e),path:r.stringify(e),query:i.stringify(e),hash:a.stringify(e)})}function s(e,t={}){let o=L(e),s=t.removeTrailingSlashes??!0;if(!n.regexp.test(o.host??``))throw Error(`Host does not match`);if(!(s?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(o.path))throw Error(`Path does not match`);let c=o.query.toString();if(!i.regexp.every(e=>e.test(c)))throw Error(`Query does not match`);if(!a.regexp.test(o.hash))throw Error(`Hash does not match`)}function c(e,t={}){s(e,t);let o=L(e);return{...Mt(n,o.host??``),...Mt(r,o.path),...Nt(i,o.query.toString()),...Mt(a,o.hash)}}function l(e,t={}){try{return{success:!0,params:c(e,t)}}catch(e){return{success:!1,params:{},error:Error(`Failed to parse url`,{cause:e})}}}return{[pe]:!0,schema:{host:n,path:r,query:i,hash:a},params:{},isRelative:!M(t.host.value),stringify:o,parse:c,tryParse:l}}function Ot(e){return{...e,value:e.value.replace(/^#/,``)}}function kt(e){return{...e,value:e.value.replace(/^\?/,``)}}function At(e,t){return Object.keys(e.params).reduce((n,r)=>bt(n,e,r,t[r]),e.value)}function jt(e,t){let n=new URLSearchParams(e.value);if(!e.value)return n;for(let[r,i]of Array.from(n.entries())){let a=dt(i);if(!a)continue;let o=F(t[a],e.params[a]),s=t[a]===void 0&&o===``;e.params[a].isOptional&&s?n.delete(r,i):n.set(r,o)}return n}function Mt(e,t){let n={},r=decodeURIComponent(t);for(let[t,i]of Object.entries(e.params))n[t]=Ge(yt(r,e,t),i);return n}function Nt(e,t){let n={},r=new URLSearchParams(e.value),i=new URLSearchParams(t);for(let[t,a]of Array.from(r.entries())){let r=dt(a);r&&(n[r]=Ge(i.get(t)??void 0,e.params[r]))}return n}var Pt=class extends Error{constructor(e){super(`Invalid Route Redirect "${e}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}};function Ft({getRoute:e}){return{redirectTo:(...[t,n])=>{let r=e();if(!v(r))throw new Pt(r.name);t.context.push(r),r.context.push(t),r.redirect(t,n)},redirectFrom:(t,n)=>{let r=e();if(!v(t))throw new Pt(t.name);r.context.push(t),t.context.push(r),t.redirect(r,n)}}}function It(e,t){h(e.params,t.params);let n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function Lt(e,t){h(e.params,t.params);let n=[e.value,t.value].filter(M).join(`&`);return{...e,value:n,params:{...e.params,...t.params}}}function Rt(e,t){return It(e,t)}function zt(e,t){if(!me(e))throw Error(`Parent is not a valid url`);if(!me(t))return Dt({host:e.schema.host,path:It(e.schema.path,I(t.path)),query:Lt(e.schema.query,vt(t.query)),hash:Rt(e.schema.hash,I(t.hash))});if(!me(t))throw Error(`Child is not a valid url`);return Dt({host:e.schema.host,path:It(e.schema.path,t.schema.path),query:Lt(e.schema.query,t.schema.query),hash:Rt(e.schema.hash,t.schema.hash)})}function Bt(e){let t;return{setTitle:e=>{t=e},getTitle:async n=>{let r=async()=>{if(e&&v(e))return e.getTitle(n)};return t?t(n,{from:n,getParentTitle:r}):r()}}}function R(e,n){let r=d(),i=A(e.name),a=I(e.path),o=vt(e.query),s=I(e.hash),c=e.meta??{},l=e.state??{},u=e.context??[],{store:f,redirect:p,...m}=te(),{setTitle:h,getTitle:g}=Bt(e.parent),v=(0,t.markRaw)({...e,id:r,meta:c,state:l,props:n,name:i}),y=Ft({getRoute:()=>S}),b=Dt({path:a,query:o,hash:s}),x={[_]:!0,depth:1,hooks:[f],getTitle:g,redirect:p},S={id:r,matched:v,matches:[v],name:i,meta:c,state:l,context:u,prefetch:e.prefetch,setTitle:h,...y,...b,...m,...x};if(w(e)){let t=k(e.parent,S);if(e.hoist)return t;let n=zt(e.parent,{path:a,query:o,hash:s});return{...t,...n}}return S}function Vt(){let e=new j;return{onRejection:t=>(e.onRejection.add(t),()=>e.onRejection.delete(t)),store:e}}function Ht(e){return(0,t.defineComponent)(()=>()=>(0,t.h)(`h1`,e),{name:e,props:[]})}function Ut({type:e,component:n}){let{store:r,...i}=Vt(),a=R({name:e,component:(0,t.markRaw)(n??Ht(e))}),{setTitle:o}=a,s={[b]:!0,route:a,hooks:[r]};return{type:e,setTitle:o,...i,...s}}function Wt(e){let n=d(),r=A(e.name),i=I(e.path),a=vt(e.query),o=I(e.hash),s=e.meta??{},c=I(e.host),l=e.context??[],{store:u,redirect:f,...p}=te(),{getTitle:m,setTitle:h}=Bt(e.parent),g=Ft({getRoute:()=>x}),v=(0,t.markRaw)({id:n,meta:{},state:{},...e}),y=Dt({host:c,path:i,query:a,hash:o}),b={[_]:!0,depth:1,hooks:[u],getTitle:m,redirect:f},x={id:n,matched:v,matches:[v],name:r,meta:s,state:{},context:l,setTitle:h,...p,...g,...y,...b};if(w(e)){let t=k(e.parent,x),n=zt(e.parent,{path:i,query:a,hash:o});return{...t,...n}}return x}function Gt(){let e=new Map;return t=>{let n=e.get(t);if(!n){let n=Symbol();return e.set(t,n),n}return n}}var Kt=Gt();function qt(e){let n=Kt(e);return({increment:e=!1}={})=>{let r=(0,t.inject)(n,0);return e&&(0,t.provide)(n,r+1),r}}var Jt=(e,t,n)=>{let r=e.matches,i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Yt=(e,t,n)=>{let r=e.matches,i=t?.matches??[];return r.at(n)?.id!==i.at(n)?.id},Xt=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function Zt(e){switch(e){case`onBeforeRouteEnter`:case`onAfterRouteEnter`:return Jt;case`onBeforeRouteUpdate`:case`onAfterRouteUpdate`:return Xt;case`onBeforeRouteLeave`:case`onAfterRouteLeave`:return Yt;default:throw Error(`Switch is not exhaustive for lifecycle: ${e}`)}}var Qt=class extends Error{},z=class extends Qt{response;constructor(e){super(`Uncaught ContextPushError`),this.response={status:`PUSH`,to:e}}},B=class extends Qt{response;constructor(e){super(`Uncaught ContextRejectionError`),this.response={status:`REJECT`,type:e}}},$t=class extends Qt{response;constructor(){super(`Uncaught ContextAbortError`),this.response={status:`ABORT`}}};function en(e,t){let n=new j;return S(e).forEach((r,i)=>{if(r.redirects.forEach(e=>n.redirects.add(e)),Jt(e,t,i))return r.onBeforeRouteEnter.forEach(e=>n.onBeforeRouteEnter.add(e));if(Xt(e,t,i))return r.onBeforeRouteUpdate.forEach(e=>n.onBeforeRouteUpdate.add(e))}),S(t).forEach((r,i)=>{if(Yt(e,t,i))return r.onBeforeRouteLeave.forEach(e=>n.onBeforeRouteLeave.add(e))}),n}function tn(e,t){let n=new j;return S(e).forEach((r,i)=>{if(Jt(e,t,i))return r.onAfterRouteEnter.forEach(e=>n.onAfterRouteEnter.add(e));if(Xt(e,t,i))return r.onAfterRouteUpdate.forEach(e=>n.onAfterRouteUpdate.add(e))}),S(t).forEach((r,i)=>{if(Yt(e,t,i))return r.onAfterRouteLeave.forEach(e=>n.onAfterRouteLeave.add(e))}),n}function nn(e,t,n){let r=new j;return e.matches.forEach((i,a)=>{Jt(e,t,a)&&n.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter.add(e)),Xt(e,t,a)&&n.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Yt(e,t,a)&&n.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave.add(e))}),r}function rn(e,t,n){let r=new j;return e.matches.forEach((i,a)=>{Jt(e,t,a)&&n.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter.add(e)),Xt(e,t,a)&&n.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate.add(e))}),t?.matches.forEach((i,a)=>{Yt(e,t,a)&&n.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave.add(e))}),r}function an(e){let t=new j;return S(e).forEach(e=>{e.onRejection.forEach(e=>t.onRejection.add(e))}),t}function on(){let e=null;function t(t){e=t}function n(t){return e?e.runWithContext(t):t()}return{setVueApp:t,runWithContext:n}}function sn({to:e}){let t=e=>{throw new B(e)},r=(...e)=>{throw new z(e)};return{reject:t,push:r,replace:(e,t,r)=>{throw n(e)?new z([e,{...t??{},replace:!0}]):new z([e,t,{...r??{},replace:!0}])},update:(t,n,i)=>{if(typeof t==`object`){let i={...e.params,...t};return r(e.name,i,n)}let a={...e.params,[t]:n};return r(e.name,a,i)},abort:()=>{throw new $t}}}var cn=Gt();function ln(){let{setVueApp:e,runWithContext:t}=on(),{store:n,...r}=te(),i=new j,a=async({to:e,from:r})=>{let{reject:a,push:o,replace:c,update:l,abort:u}=sn({to:e}),d=en(e,r),f=nn(e,r,n),p=[...d.redirects,...f.onBeforeRouteEnter,...d.onBeforeRouteEnter,...f.onBeforeRouteUpdate,...d.onBeforeRouteUpdate,...i.onBeforeRouteUpdate,...f.onBeforeRouteLeave,...d.onBeforeRouteLeave,...i.onBeforeRouteLeave];try{let n=p.map(n=>t(()=>n(e,{from:r,reject:a,push:o,replace:c,update:l,abort:u})));await Promise.all(n)}catch(t){if(t instanceof z||t instanceof B||t instanceof $t)return t.response;try{s(t,{to:e,from:r,source:`hook`})}catch(e){if(e instanceof z||e instanceof B)return e.response;throw e}}return{status:`SUCCESS`}},o=async({to:e,from:r})=>{let{reject:a,push:o,replace:c,update:l}=sn({to:e}),u=tn(e,r),d=rn(e,r,n),f=[...i.onAfterRouteLeave,...u.onAfterRouteLeave,...d.onAfterRouteLeave,...i.onAfterRouteUpdate,...u.onAfterRouteUpdate,...d.onAfterRouteUpdate,...i.onAfterRouteEnter,...u.onAfterRouteEnter,...d.onAfterRouteEnter];try{let n=f.map(n=>t(()=>n(e,{from:r,reject:a,push:o,replace:c,update:l})));await Promise.all(n)}catch(t){if(t instanceof z||t instanceof B)return t.response;try{s(t,{to:e,from:r,source:`hook`})}catch(e){if(e instanceof z||e instanceof B)return e.response;throw e}}return{status:`SUCCESS`}},s=(e,{to:t,from:r,source:i})=>{let{reject:a,push:o,replace:s,update:c}=sn({to:t});for(let l of n.onError)try{l(e,{to:t,from:r,source:i,reject:a,push:o,replace:s,update:c});return}catch(t){if(t instanceof Qt)throw t;if(t===e)continue;throw t}};return{runBeforeRouteHooks:a,runAfterRouteHooks:o,runErrorHooks:s,runRejectionHooks:(e,{to:t,from:r})=>{let i=[...an(e).onRejection,...n.onRejection];for(let n of i)n(e.type,{to:t,from:r})},addComponentHook:({lifecycle:e,depth:t,hook:n})=>{let r=Zt(e),a=i[e],o=(e,i)=>{if(r(e,i.from,t))return n(e,i)};return a.add(o),()=>a.delete(o)},addGlobalRouteHooks:e=>{e.onBeforeRouteEnter.forEach(e=>r.onBeforeRouteEnter(e)),e.onBeforeRouteUpdate.forEach(e=>r.onBeforeRouteUpdate(e)),e.onBeforeRouteLeave.forEach(e=>r.onBeforeRouteLeave(e)),e.onAfterRouteEnter.forEach(e=>r.onAfterRouteEnter(e)),e.onAfterRouteUpdate.forEach(e=>r.onAfterRouteUpdate(e)),e.onAfterRouteLeave.forEach(e=>r.onAfterRouteLeave(e)),e.onError.forEach(e=>r.onError(e))},setVueApp:e,...r}}function un(e){let n=cn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new o;return e}}function dn(e,n){let r=qt(e),i=un(e);return e=>{let a=r(),o=i().addComponentHook({lifecycle:n,hook:e,depth:a-1});return(0,t.onUnmounted)(o),o}}function fn(e){return{onBeforeRouteLeave:dn(e,`onBeforeRouteLeave`),onBeforeRouteUpdate:dn(e,`onBeforeRouteUpdate`),onAfterRouteLeave:dn(e,`onAfterRouteLeave`),onAfterRouteUpdate:dn(e,`onAfterRouteUpdate`)}}var pn=Gt();function mn(e){let n=pn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new o;return e}}var hn=Gt();function gn(e){let n=hn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new o;return e}}function _n(e){return()=>{let n=(0,t.inject)(e);if(!n)throw new o;return n}}var vn=Symbol(`isRouterRouteSymbol`);function yn(e,t){return typeof t==`object`&&!!t&&vn in t&&e in t}function bn(e,n,r){function i(e){r(wt(Ct({...L(n.href),query:void 0}),{query:e}))}function a(e,t,i){if(fe(e))return a({[e]:t},i);let o=e,s=t,c={...n.params,...o};return r(n.name,c,s)}let o=(...e)=>{let t=new URLSearchParams(n.query);t.set(...e),i(t)},s=(...e)=>{let t=new URLSearchParams(n.query);t.append(...e),i(t)},c=(...e)=>{let t=new URLSearchParams(n.query);t.delete(...e),i(t)},{id:l,matched:u,matches:d,name:f,hash:p,href:m}=(0,t.toRefs)(n),h=new Proxy({},{get(e,t,r){return Reflect.get(n.params,t,r)},set(e,t,n){return a(t,n),!0},ownKeys(){return Reflect.ownKeys(n.params)},getOwnPropertyDescriptor(e,t){return Reflect.getOwnPropertyDescriptor(n.params,t)}}),g=(0,t.computed)({get(){return h},set(e){a(e)}}),_=(0,t.computed)({get(){return new Proxy(n.query,{get(e,t,n){switch(t){case`append`:return s;case`set`:return o;case`delete`:return c;default:return Reflect.get(e,t,n)}}})},set(e){i(e)}}),v=(0,t.computed)({get(){return new Proxy(n.state,{set(e,t,r){return a({},{state:{...n.state,[t]:r}}),!0}})},set(e){a({},{state:e})}});return(0,t.reactive)({...n,id:l,matched:u,matches:d,state:v,query:_,hash:p,params:g,name:f,href:m,update:a,[vn]:!0,[e]:!0})}function xn(e){return(t,n,{exact:r}={})=>yn(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(e=>e.name).includes(n):!1}function Sn(e){let n=_n(e),r=xn(e);return(e,i)=>{let a=n();function o(){if(e&&!r(a.route,e,i))throw new s(e,a.route.name)}return(0,t.watch)(a.route,o,{immediate:!0,deep:!0}),a.route}}function Cn(e){let n=Sn(e),r=_n(e),i=gn(e),a=qt(e),o=mn(e);return(0,t.defineComponent)((e,s)=>{let c=n(),l=r(),u=i(),d=a({increment:!0});(0,t.onServerPrefetch)(async()=>{await l.start()});let{getRouteComponents:f}=o(),p=(0,t.computed)(()=>{if(!l.started.value)return null;if(x(u.value)&&u.value.route.matched.component)return u.value.route.matched.component;let t=c.matches.at(d);return t?f(t)[e.name??`default`]:null});return()=>s.slots.default?s.slots.default({route:c,component:p.value,rejection:u.value}):p.value?(0,t.h)(p.value):null},{name:`RouterView`,props:[`name`]})}var wn=Gt();function Tn(e){let n=wn(e);return()=>{let e=(0,t.inject)(n);if(!e)throw new o;return e}}var En=`lazy`,Dn={components:!0,props:!1};function On(e){return[`eager`,`lazy`,`intent`].includes(e)}function kn({routerPrefetch:e,routePrefetch:t,linkPrefetch:n},r){let i=[An(n,r),An(t,r),An(e,r),Dn[r],En].reduce((e,t)=>On(e)?e:e===!0&&On(t)?t:e===!0&&!On(t)?e:e===void 0?t:e,void 0);return On(i)?i:!1}function An(e,t){return de(e)?e[t]:e}var jn=(0,t.defineAsyncComponent)(()=>new Promise(e=>{e({default:{template:`foo`}})}));function Mn(e){return e.name===jn.name&&`__asyncLoader`in e}var Nn=Symbol(`visibilityObserver`);function Pn(e){let n=(0,t.inject)(Nn);if(!n)throw new o;return(0,t.watch)(e,(e,t)=>{e&&n.observe(e),t&&n.unobserve(t)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&n.unobserve(e.value)}),{isElementVisible:(0,t.computed)(()=>e.value?n.isElementVisible(e.value):!1)}}function Fn(e,n,r){(0,t.watch)(e,(e,t)=>{e&&e.addEventListener(n,r),t&&t.removeEventListener(n,r)},{immediate:!0}),(0,t.onUnmounted)(()=>{e.value&&e.value.removeEventListener(n,r)})}function In(e){let n=Tn(e);return e=>{let r=new Map,i=(0,t.ref)(),{getPrefetchProps:a,setPrefetchProps:o}=n(),{isElementVisible:s}=Pn(i),c=()=>{o(Array.from(r.values()).reduce((e,t)=>(Object.assign(e,t),e),{}))};(0,t.watch)(()=>(0,t.toValue)(e),({route:e,...t})=>{r.clear(),e&&u(`eager`,e,t)},{immediate:!0}),(0,t.watch)(s,n=>{let{route:r,...i}=(0,t.toValue)(e);!r||!n||u(`lazy`,r,i)},{immediate:!0}),Fn(i,`focusin`,l),Fn(i,`mouseover`,l);function l(){let{route:n,...r}=(0,t.toValue)(e);n&&u(`intent`,n,r)}function u(e,t,n){Ln(e,t,n),r.has(e)||r.set(e,a(e,t,n))}return{element:i,commit:c}}}function Ln(e,t,n){t.matches.forEach(t=>{kn({...n,routePrefetch:t.prefetch},`components`)===e&&(T(t)&&Mn(t.component)&&t.component.__asyncLoader(),D(t)&&Object.values(t.components).forEach(e=>{Mn(e)&&e.__asyncLoader()}))})}function Rn(e){let r=_n(e),i=In(e),a=xn(e);return(e,o={},s={})=>{let c=r(),l=(0,t.computed)(()=>{let r=(0,t.toValue)(e);return typeof r==`string`?n(r)?c.find(r,(0,t.toValue)(s)):c.resolve(r,(0,t.toValue)(o),(0,t.toValue)(s)):r}),u=(0,t.computed)(()=>{if(l.value)return l.value.href;let r=(0,t.toValue)(e);if(n(r))return r;console.error(Error(`Failed to resolve route in RouterLink.`))}),d=(0,t.computed)(()=>a(c.route)&&c.route.matches.some(e=>e.id===l.value?.id)),f=(0,t.computed)(()=>c.route.id===l.value?.id),p=(0,t.computed)(()=>a(c.route)&&ue(l.value)&&c.route.href.startsWith(l.value.href)),m=(0,t.computed)(()=>c.route.href===l.value?.href),h=(0,t.computed)(()=>!!u.value&&c.isExternal(u.value)),g=(0,t.computed)(()=>{let r=(0,t.toValue)(e);return typeof r!=`string`||n(r)?(0,t.toValue)(o):(0,t.toValue)(s)}),{element:_,commit:v}=i(()=>({route:l.value,routerPrefetch:c.prefetch,linkPrefetch:g.value.prefetch})),y=r=>{v();let i={replace:r?.replace??g.value.replace,query:xt(r?.query,g.value.query),hash:r?.hash??g.value.hash,state:{...g.value.state,...r?.state}},a=(0,t.toValue)(e);return n(a)||typeof a==`object`?c.push(a,i):c.push(a,(0,t.toValue)(o),i)};return{element:_,route:l,href:u,isMatch:d,isExactMatch:f,isActive:p,isExactActive:m,isExternal:h,push:y,replace:e=>y({...e,replace:!0})}}}function zn(e){let r=_n(e),i=Rn(e);return(0,t.defineComponent)((e,a)=>{let o=r(),s=(0,t.computed)(()=>v(e.to)),c=(0,t.computed)(()=>y(e.to)),l=(0,t.computed)(()=>!e.target||e.target===`_self`),{element:u,isMatch:d,isExactMatch:f,isActive:p,isExactActive:m,isExternal:h,push:g}=i(()=>typeof e.to==`function`?e.to(o.resolve):e.to,(0,t.computed)(()=>{let{to:t,...n}=e;return n})),_=(0,t.computed)(()=>({"router-link--match":d.value,"router-link--exact-match":f.value,"router-link--active":p.value,"router-link--exact-active":m.value}));function v(e){return typeof e==`function`?v(e(o.resolve)):n(e)?o.find(e):e}function y(e){return typeof e==`function`?y(e(o.resolve)):n(e)?e:e?.href}function b(e){return e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||!l.value}function x(e){b(e)||(e.preventDefault(),g())}return()=>(0,t.h)(`a`,{href:c.value,target:e.target,class:[`router-link`,_.value],ref:u,onClick:x},a.slots.default?.({route:s.value,isMatch:d.value,isExactMatch:f.value,isActive:p.value,isExactActive:m.value,isExternal:h.value}))},{name:`RouterLink`,props:[`to`,`prefetch`,`query`,`hash`,`replace`,`state`,`target`]})}function Bn(e){let n=Sn(e);return(e,r=String)=>{let i=n();return{value:(0,t.computed)({get(){let n=i.query.get((0,t.toValue)(e));return n===null?ce(r)?r.defaultValue:null:Ke(n,{param:r})},set(n){i.query.set((0,t.toValue)(e),F(n,{param:r}))}}),values:(0,t.computed)({get(){let n=i.query.getAll((0,t.toValue)(e));return n.length===0&&ce(r)?[r.defaultValue]:n.map(e=>Ke(e,{param:r})).filter(e=>e!==null)},set(n){let a=new URLSearchParams(i.query);a.delete((0,t.toValue)(e)),n.forEach(n=>{a.append((0,t.toValue)(e),F(n,{param:r}))}),i.query=a}}),remove:()=>{i.query.delete((0,t.toValue)(e))}}}}function Vn(e){let t=typeof e==`object`?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a}=fn(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:i,onAfterRouteUpdate:a,isRoute:xn(t),RouterView:Cn(t),RouterLink:zn(t),useRoute:Sn(t),useRouter:_n(t),useQueryValue:Bn(t),useLink:Rn(t),useRejection:gn(t)}}var Hn=Symbol(`IS_ROUTER_PLUGIN_SYMBOL`);function Un(e){return typeof e==`object`&&!!e&&Hn in e}function Wn(e){let{store:t,...n}=te(),r={[Hn]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function Gn(e){return{get:(t,{invalid:n})=>{for(let n of e){let e=Ke(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)},set:(t,{invalid:n})=>{for(let n of e){let e=qe(t,{param:n,isOptional:!1,isGreedy:!1});if(e!==void 0)return e}throw n(`Value "${t}" does not satisfy any of the possible values`)}}}var Kn={separator:`,`};function qn(e,t={}){let{separator:n}={...Kn,...t},r=Gn(e);return{get:(e,t)=>e.split(n).map(e=>r.get(e,t)),set:(e,t)=>{if(!Array.isArray(e))throw t.invalid(`Expected an array`);return e.map(e=>r.set(e,t)).join(n)}}}var Jn={separator:`,`};function Yn(e,t={}){let{separator:n}={...Jn,...t};return{get:t=>{let r=t.split(n);return e.map((e,t)=>Ge(r.at(t),{param:e}))},set:(t,{invalid:r})=>{if(!Array.isArray(t))throw r(`Expected a tuple`);if(t.length!==e.length)throw r(`Expected tuple with ${e.length} values but received ${t.length} values`);return e.map((e,n)=>F(t.at(n),{param:e})).join(n)}}}function Xn(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(e=>e!==t)}},call(t){e.forEach(e=>e(t))}}}function Zn(){return Math.random().toString(36).slice(2,10)}function Qn(e,t,n){return Math.min(Math.max(e,t),n)}function $n(e){e.preventDefault(),e.returnValue=``}function V({pathname:e=`/`,search:t=``,hash:n=``}){let r=e;return t&&t!==`?`&&(r+=t.startsWith(`?`)?t:`?`+t),n&&n!==`#`&&(r+=n.startsWith(`#`)?n:`#`+n),r}function er(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function tr(e){return Object.freeze(e)}var nr=`beforeunload`,rr=`popstate`,ir=`hashchange`;function ar(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e,search:r,hash:i}=t.location,a=n.state??{};return[a.idx,tr({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=s??0-e;n&&(i={action:`POP`,location:t,retry(){v(n*-1)}},v(n))}}else h(`POP`)}}t.addEventListener(rr,a);let o=`POP`,[s,c]=r(),l=Xn(),u=Xn();s??(s=0,n.replaceState({...n.state,idx:s},``,d(c)));function d(e){return typeof e==`string`?e:V(e)}function f(e,t=null){return tr({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?er(e):e,state:t,key:Zn()})}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function m(e,t,n){return u.length?(u.call({action:e,location:t,retry:n}),!1):!0}function h(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function g(e,r){let i=`PUSH`,a=f(e,r);function o(){g(e,r)}if(m(i,a,o)){let[e,r]=p(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}h(i)}}function _(e,t){let r=`REPLACE`,i=f(e,t);function a(){_(e,t)}if(m(r,i,a)){let[e,t]=p(i,s??0);n.replaceState(e,``,t),h(r)}}function v(e){n.go(e)}return{get action(){return o},get location(){return c},createHref:d,push:g,replace:_,go:v,back(){v(-1)},forward(){v(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(nr,$n),()=>{n(),u.length||t.removeEventListener(nr,$n)}}}}function or(e={}){let{window:t=document.defaultView}=e,n=t.history;function r(){let{pathname:e=`/`,search:r=``,hash:i=``}=er(t.location.hash.slice(1)),a=n.state??{};return[a.idx,tr({pathname:e,search:r,hash:i,state:a.usr??null,key:a.key??`default`})]}let i=null;function a(){if(i)u.call(i),i=null;else{let[e,t]=r();if(u.length){if(e!=null){let n=(s??0)-e;n&&(i={action:`POP`,location:t,retry(){y(n*-1)}},y(n))}}else g(`POP`)}}t.addEventListener(rr,a),t.addEventListener(ir,()=>{let[,e]=r();V(e)!==V(c)&&a()});let o=`POP`,[s,c]=r(),l=Xn(),u=Xn();s??(s=0,n.replaceState({...n.state,idx:s},``));function d(){let e=document.querySelector(`base`),n=``;if(e?.getAttribute(`href`)){let e=t.location.href,r=e.indexOf(`#`);n=r===-1?e:e.slice(0,r)}return n}function f(e){return d()+`#`+(typeof e==`string`?e:V(e))}function p(e,t=null){return tr({pathname:c.pathname,hash:``,search:``,...typeof e==`string`?er(e):e,state:t,key:Zn()})}function m(e,t){return[{usr:e.state,key:e.key,idx:t},f(e)]}function h(e,t,n){return u.length?(u.call({action:e,location:t,retry:n}),!1):!0}function g(e){o=e,[s,c]=r(),l.call({action:o,location:c})}function _(e,r){let i=`PUSH`,a=p(e,r);function o(){_(e,r)}if(h(i,a,o)){let[e,r]=m(a,(s??0)+1);try{n.pushState(e,``,r)}catch{t.location.assign(r)}g(i)}}function v(e,t){let r=`REPLACE`,i=p(e,t);function a(){v(e,t)}if(h(r,i,a)){let[e,t]=m(i,s??0);n.replaceState(e,``,t),g(r)}}function y(e){n.go(e)}return{get action(){return o},get location(){return c},createHref:f,push:_,replace:v,go:y,back(){y(-1)},forward(){y(1)},listen(e){return l.push(e)},block(e){let n=u.push(e);return u.length===1&&t.addEventListener(nr,$n),()=>{n(),u.length||t.removeEventListener(nr,$n)}}}}function sr(e={}){let{initialEntries:t=[`/`],initialIndex:n}=e,r=t.map(e=>tr({pathname:`/`,search:``,hash:``,state:null,key:Zn(),...typeof e==`string`?er(e):e})),i=Qn(n??r.length-1,0,r.length-1),a=`POP`,o=r[i],s=Xn(),c=Xn();function l(e){return typeof e==`string`?e:V(e)}function u(e,t=null){return tr({pathname:o.pathname,search:``,hash:``,...typeof e==`string`?er(e):e,state:t,key:Zn()})}function d(e,t,n){return c.length?(c.call({action:e,location:t,retry:n}),!1):!0}function f(e,t){a=e,o=t,s.call({action:a,location:o})}function p(e,t){let n=`PUSH`,a=u(e,t);function o(){p(e,t)}d(n,a,o)&&(i+=1,r.splice(i,r.length,a),f(n,a))}function m(e,t){let n=`REPLACE`,a=u(e,t);function o(){m(e,t)}d(n,a,o)&&(r[i]=a,f(n,a))}function h(e){let t=Qn(i+e,0,r.length-1),n=r[t];function a(){h(e)}d(`POP`,n,a)&&(i=t,f(`POP`,n))}return{get index(){return i},get action(){return a},get location(){return o},createHref:l,push:p,replace:m,go:h,back(){h(-1)},forward(){h(1)},listen(e){return s.push(e)},block(e){return c.push(e)}}}function cr(e,n,r){let i=(0,t.reactive)({...n}),a=e=>{Object.assign(i,{...e})},o=i;return{currentRoute:o,routerRoute:bn(e,o,r),updateRoute:a}}function lr(e){return t=>{let{host:n}=L(t);return!(n===void 0||n===e)}}function ur(e){try{let t=e();return De(t)?t.catch(e=>e):t}catch(e){return e}}function dr(){let{setVueApp:e,runWithContext:n}=on(),r=(0,t.reactive)(new Map),i=(e,t,r)=>{let{push:i,replace:a,reject:o,update:s}=sn({to:t});return t.matches.filter(t=>kn({...r,routePrefetch:t.prefetch},`props`)===e).flatMap(e=>d(e)).reduce((e,{id:r,name:l,props:d})=>{if(!d)return e;let f=u(r,l,t);return e[f]=n(()=>ur(()=>d(t,{push:i,replace:a,reject:o,update:s,parent:c(t,!0)}))),e},{})},a=e=>{Object.entries(e).forEach(([e,t])=>{r.set(e,t)})},o=async e=>{let{push:t,replace:i,reject:a,update:o}=sn({to:e}),s=e.matches.flatMap(d),l=[],p=[];for(let{id:d,name:f,props:m}of s){if(!m)continue;let s=u(d,f,e);if(l.push(s),!r.has(s)){let l=n(()=>ur(()=>m(e,{push:t,replace:i,reject:a,update:o,parent:c(e)})));r.set(s,l)}p.push((async()=>{let e=await r.get(s);if(e instanceof Error)throw e})())}f(l);try{return await Promise.all(p),{status:`SUCCESS`}}catch(e){if(e instanceof z||e instanceof B)return e.response;throw e}},s=(e,t,n)=>{let i=u(e,t,n);return r.get(i)};function c(e,t=!1){let n=e.matches.at(-2);if(n)return E(n)?{name:n.name??``,get props(){return l(n,`default`,e,t)}}:O(n)?{name:n.name??``,props:new Proxy({},{get(r,i){return typeof i==`string`?l(n,i,e,t):Reflect.get(r,i)}})}:{name:n.name??``,props:void 0}}function l(e,t,n,r=!1){let i=s(e.id,t,n);if(r&&!i){let r=e.name??`unknown`,i=n.name||`unknown`;console.warn(`
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
`)}return i}function u(e,t,n){return[e,t,n.id,JSON.stringify(n.params)].join(`-`)}function d(e){return E(e)?[{id:e.id,name:`default`,props:e.props}]:O(e)?Object.entries(e.props).map(([t,n])=>({id:e.id,name:t,props:n})):[]}function f(e){for(let t of r.keys())e.includes(t)||r.delete(t)}return{getPrefetchProps:i,setPrefetchProps:a,getProps:s,setProps:o,setVueApp:e}}function fr(){return typeof window<`u`&&window.document!==void 0}function pr({mode:e,listener:t}){let n=mr(e),r=(e,t)=>{if(t?.replace){n.replace(e,t.state);return}n.push(e,t?.state)},i=()=>{let e=V(n.location);n.replace(e)},a,o=()=>{a?.(),a=n.listen(t)},s=()=>{a?.()};return{...n,update:r,refresh:i,startListening:o,stopListening:s}}function mr(e=`auto`){switch(e){case`auto`:return fr()?ar():sr();case`browser`:return ar();case`memory`:return sr();case`hash`:return or();default:throw Error(`Switch is not exhaustive for mode: ${e}`)}}var hr=class extends Error{constructor(){super(`initialUrl must be set if window.location is unavailable`)}};function gr(e){if(e)return e;if(fr())return window.location.toString();throw new hr}function _r(e){return!!e&&typeof e==`object`}var vr={isOptional:!0,isGreedy:!1};function yr(e,t,n){if(_r(e)&&t in e){let r=e[t];return typeof r==`string`?Ge(r,{param:n,...vr}):r}return Ge(void 0,{param:n,...vr})}function br(e,t){let n={};for(let[r,i]of Object.entries(e))n[r]=yr(t,r,i);return n}function xr(e,t,n){if(_r(e)&&t in e){let r=e[t];return F(r,{param:n,...vr})}return F(void 0,{param:n,...vr})}var Sr=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))n[r]=xr(t,r,i);return n};function Cr(){let e=(0,t.reactive)(new Map),n=fr()?s():null,r=t=>{e.set(t,!1),n?.observe(t)},i=t=>{e.delete(t),n?.unobserve(t)},a=()=>{n?.disconnect()},o=t=>e.get(t)??!1;function s(){return new IntersectionObserver(t=>{t.forEach(t=>{e.set(t.target,t.isIntersecting)})})}return{observe:r,unobserve:i,disconnect:a,isElementVisible:o}}var wr=class extends Error{constructor(e){super(`Route not found: "${e}"`)}};function Tr(e){let t=new URLSearchParams(e);return{get:(...e)=>t.get(...e),getAll:(...e)=>t.getAll(...e),set:(...e)=>{t.set(...e)},append:(...e)=>{t.append(...e)},delete:(...e)=>{t.delete(...e)},toString:(...e)=>t.toString(...e),forEach:(...e)=>{t.forEach(...e)},entries:(...e)=>t.entries(...e),keys:(...e)=>t.keys(...e),values:(...e)=>t.values(...e),has:(...e)=>t.has(...e),size:t.size,sort:()=>{t.sort()},[Symbol.iterator]:()=>t[Symbol.iterator]()}}function Er(e,t={},n={}){let r=wt(e.stringify(t),{query:new URLSearchParams(n.query),hash:n.hash}),{query:i,hash:a}=L(r),{promise:o,resolve:s}=Promise.withResolvers(),c={...e,query:Tr(i),state:br(e.state,n.state),hash:a,params:t,href:r,title:o};return Dr(c).then(s),c}async function Dr(e){if(v(e))return e.getTitle(e)}var Or=class extends Error{constructor(e){super(`Invalid Name "${e}": Router does not support multiple routes with the same name. All name names must be unique.`)}};function kr(e){return`name`in e&&M(e.name)}function Ar(e,t){return M(t)?{...e,...zt(Dt({path:t}),e)}:e}function jr(e,t=[],n={}){let r=new Map,i=new Map,a=[...e,...t.map(e=>e.routes)],o=[...y.map(e=>Ut({type:e})),...n.rejections??[],...t.map(e=>e.rejections)];function s(e){if(!v(e)||!kr(e))return;let t=r.get(e.name);if(t&&t.id!==e.id)throw new Or(e.name);if(!(t&&t.id===e.id)){r.set(e.name,Ar(e,n.base));for(let t of e.context)v(t)&&s(t),x(t)&&c(t)}}function c(e){x(e)&&i.set(e.type,e)}function l(e){for(let t of e)s(t)}function u(e){for(let t of e)c(t)}for(let e of a){if(Mr(e)){l(e);continue}s(e)}for(let e of o){if(Nr(e)){u(e);continue}c(e)}function d(e){return r.get(e)}function f(e){return i.get(e)}return{routes:Array.from(r.values()).sort(Pr),rejections:Array.from(i.values()),getRouteByName:d,getRejectionByType:f}}function Mr(e){return Array.isArray(e)}function Nr(e){return Array.isArray(e)}function Pr(e,t){return t.depth-e.depth}function Fr(e=[]){let t=new j;return e.forEach(e=>{Un(e)&&(e.hooks.onBeforeRouteEnter.forEach(e=>t.onBeforeRouteEnter.add(e)),e.hooks.onBeforeRouteUpdate.forEach(e=>t.onBeforeRouteUpdate.add(e)),e.hooks.onBeforeRouteLeave.forEach(e=>t.onBeforeRouteLeave.add(e)),e.hooks.onAfterRouteEnter.forEach(e=>t.onAfterRouteEnter.add(e)),e.hooks.onAfterRouteUpdate.forEach(e=>t.onAfterRouteUpdate.add(e)),e.hooks.onAfterRouteLeave.forEach(e=>t.onAfterRouteLeave.add(e)))}),t}function Ir(e,{match:n,name:r,component:i}){let a=Tn(e),o=Sn(e);return(0,t.defineComponent)({name:`PropsWrapper`,expose:[],setup(){let e=(0,t.getCurrentInstance)(),s=a(),c=o();return()=>{let a=s.getProps(n.id,r,c);return a instanceof Error?``:De(a)?e?.suspense?(0,t.h)(Rr,{component:i,props:a}):(0,t.h)(Lr,{component:i,props:a}):(0,t.h)(i,a)}}})}var Lr=(0,t.defineComponent)(e=>{let n=(0,t.ref)();return(0,t.watch)(()=>e.props,async e=>{n.value=await e},{immediate:!0,deep:!0}),()=>n.value instanceof Error?``:n.value?(0,t.h)(e.component,n.value):``},{props:[`component`,`props`]}),Rr=(0,t.defineComponent)(async e=>{let n=(0,t.ref)();return n.value=await e.props,(0,t.watch)(()=>n.value,async e=>{n.value=await e},{deep:!0}),()=>n.value instanceof Error?``:n.value?(0,t.h)(e.component,n.value):``},{props:[`component`,`props`]});function zr(e){let t=new Map;return{getRouteComponents:n=>{let r=t.get(n.id);if(r)return r;let i=Br(e,n);return t.set(n.id,i),i}}}function Br(e,t){let n=Cn(e);return D(t)?Vr(e,t,t.components):T(t)?Vr(e,t,{default:t.component}):{default:n}}function Vr(e,t,n){return Object.fromEntries(Object.entries(n).map(([n,r])=>[n,Ir(e,{match:t,name:n,component:r})]))}var Hr=Symbol(),Ur=Object.create,Wr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Kr=Object.getOwnPropertyNames,qr=Object.getPrototypeOf,Jr=Object.prototype.hasOwnProperty,Yr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xr=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Kr(t),a=0,o=i.length,s;a<o;a++)s=i[a],!Jr.call(e,s)&&s!==n&&Wr(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=Gr(t,s))||r.enumerable});return e},Zr=(e,t,n)=>(n=e==null?{}:Ur(qr(e)),Xr(t||!e||!e.__esModule?Wr(n,`default`,{value:e,enumerable:!0}):n,e)),Qr=typeof navigator<`u`,H=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof global<`u`?global:{};H.chrome!==void 0&&H.chrome.devtools,Qr&&(H.self,H.top),typeof navigator<`u`&&navigator.userAgent?.toLowerCase().includes(`electron`),typeof window<`u`&&window.__NUXT__;var $r=Zr(Yr(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}))(),1),ei=/(?:^|[-_/])(\w)/g;function ti(e,t){return t?t.toUpperCase():``}function ni(e){return e&&`${e}`.replace(ei,ti)}function ri(e,t){let n=e.replace(/^[a-z]:/i,``).replace(/\\/g,`/`);n.endsWith(`index${t}`)&&(n=n.replace(`/index${t}`,t));let r=n.lastIndexOf(`/`),i=n.substring(r+1);if(t){let e=i.lastIndexOf(t);return i.substring(0,e)}return``}var ii=(0,$r.default)({circles:!0}),ai={trailing:!0};function oi(e,t=25,n={}){if(n={...ai,...n},!Number.isFinite(t))throw TypeError("Expected `wait` to be a finite number");let r,i,a=[],o,s,c=(t,r)=>(o=si(e,t,r),o.finally(()=>{if(o=null,n.trailing&&s&&!i){let e=c(t,s);return s=null,e}}),o),l=function(...e){return n.trailing&&(s=e),o||new Promise(o=>{let l=!i&&n.leading;clearTimeout(i),i=setTimeout(()=>{i=null;let t=n.leading?r:c(this,e);s=null;for(let e of a)e(t);a=[]},t),l?(r=c(this,e),o(r)):a.push(o)})},u=e=>{e&&(clearTimeout(e),i=null)};return l.isPending=()=>!!i,l.cancel=()=>{u(i),a=[],s=null},l.flush=()=>{if(u(i),!s||o)return;let e=s;return s=null,c(this,e)},l}async function si(e,t,n){return await e.apply(t,n)}function ci(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?ci(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var li={run:e=>e()},ui=console.createTask===void 0?()=>li:console.createTask;function di(e,t){let n=ui(t.shift());return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function fi(e,t){let n=ui(t.shift());return Promise.all(e.map(e=>n.run(()=>e(...t))))}function pi(e,t){for(let n of[...e])n(t)}var mi=class{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(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,`name`,{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){if(this._hooks[e]){let n=this._hooks[e].indexOf(t);n!==-1&&this._hooks[e].splice(n,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];delete this._hooks[e];for(let t of n)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=ci(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n.splice(0,n.length))e()}}removeHooks(e){let t=ci(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){for(let e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(di,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(fi,e,...t)}callHookWith(e,t,...n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&pi(this._before,r);let i=e(t in this._hooks?[...this._hooks[t]]:[],n);return i instanceof Promise?i.finally(()=>{this._after&&r&&pi(this._after,r)}):(this._after&&r&&pi(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function hi(){return new mi}var gi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);function _i(e){if(typeof e==`function`)return e.displayName||e.name||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||``;let t=e.name||e._componentTag||e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||e.__name;return t===`index`&&e.__file?.endsWith(`index.vue`)?``:t}function vi(e){let t=e.__file;if(t)return ni(ri(t,`.vue`))}function yi(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function bi(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 xi(e){let t=e.subTree?.type,n=bi(e);return n?n?.types?.Fragment===t:!1}function Si(e){let t=_i(e?.type||{});if(t)return t;if(e?.root===e)return`Root`;for(let t in e.parent?.type?.components)if(e.parent.type.components[t]===e?.type)return yi(e,t);for(let t in e.appContext?.components)if(e.appContext.components[t]===e?.type)return yi(e,t);return vi(e?.type||{})||`Anonymous Component`}function Ci(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?`root`:e.uid}`}function wi(e,t){return t||=`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(`:root`)}function Ti(){let 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}var Ei;function Di(e){return Ei||=document.createRange(),Ei.selectNode(e),Ei.getBoundingClientRect()}function Oi(e){let t=Ti();if(!e.children)return t;for(let n=0,r=e.children.length;n<r;n++){let r=e.children[n],i;if(r.component)i=U(r.component);else if(r.el){let e=r.el;e.nodeType===1||e.getBoundingClientRect?i=e.getBoundingClientRect():e.nodeType===3&&e.data.trim()&&(i=Di(e))}i&&ki(t,i)}return t}function ki(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}var Ai={top:0,left:0,right:0,bottom:0,width:0,height:0};function U(e){let t=e.subTree.el;return typeof window>`u`?Ai:xi(e)?Oi(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?U(e.subTree.component):Ai}function ji(e){return xi(e)?Mi(e.subTree):e.subTree?[e.subTree.el]:[]}function Mi(e){if(!e.children)return[];let t=[];return e.children.forEach(e=>{e.component?t.push(...ji(e.component)):e?.el&&t.push(e.el)}),t}var Ni=`__vue-devtools-component-inspector__`,Pi=`__vue-devtools-component-inspector__card__`,Fi=`__vue-devtools-component-inspector__name__`,Ii=`__vue-devtools-component-inspector__indicator__`,Li={display:`block`,zIndex:2147483640,position:`fixed`,backgroundColor:`#42b88325`,border:`1px solid #42b88350`,borderRadius:`5px`,transition:`all 0.1s ease-in`,pointerEvents:`none`},Ri={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)`},zi={display:`inline-block`,fontWeight:400,fontStyle:`normal`,fontSize:`12px`,opacity:.7};function Bi(){return document.getElementById(Ni)}function Vi(){return document.getElementById(Pi)}function Hi(){return document.getElementById(Ii)}function Ui(){return document.getElementById(Fi)}function Wi(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 Gi(e){let t=document.createElement(`div`);t.id=e.elementId??Ni,Object.assign(t.style,{...Li,...Wi(e.bounds),...e.style});let n=document.createElement(`span`);n.id=Pi,Object.assign(n.style,{...Ri,top:e.bounds.top<35?0:`-35px`});let r=document.createElement(`span`);r.id=Fi,r.innerHTML=`<${e.name}> `;let i=document.createElement(`i`);return i.id=Ii,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(i.style,zi),n.appendChild(r),n.appendChild(i),t.appendChild(n),document.body.appendChild(t),t}function Ki(e){let t=Bi(),n=Vi(),r=Ui(),i=Hi();t&&(Object.assign(t.style,{...Li,...Wi(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:`-35px`}),r.innerHTML=`<${e.name}> `,i.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function qi(e){let t=U(e);if(!t.width&&!t.height)return;let n=Si(e);Bi()?Ki({bounds:t,name:n}):Gi({bounds:t,name:n})}function Ji(){let e=Bi();e&&(e.style.display=`none`)}var Yi=null;function Xi(e){let t=e.target;if(t){let e=t.__vueParentComponent;if(e&&(Yi=e,e.vnode.el)){let t=U(e),n=Si(e);Bi()?Ki({bounds:t,name:n}):Gi({bounds:t,name:n})}}}function Zi(e,t){e.preventDefault(),e.stopPropagation(),Yi&&t(Ci(Yi))}var Qi=null;function $i(){Ji(),window.removeEventListener(`mouseover`,Xi),window.removeEventListener(`click`,Qi,!0),Qi=null}function ea(){return window.addEventListener(`mouseover`,Xi),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Zi(n,n=>{window.removeEventListener(`click`,t,!0),Qi=null,window.removeEventListener(`mouseover`,Xi);let r=Bi();r&&(r.style.display=`none`),e(JSON.stringify({id:n}))})}Qi=t,window.addEventListener(`click`,t,!0)})}function ta(e){let t=wi(K.value,e.id);if(t){let[n]=ji(t);if(typeof n.scrollIntoView==`function`)n.scrollIntoView({behavior:`smooth`});else{let e=U(t),n=document.createElement(`div`),r={...Wi(e),position:`absolute`};Object.assign(n.style,r),document.body.appendChild(n),n.scrollIntoView({behavior:`smooth`}),setTimeout(()=>{document.body.removeChild(n)},2e3)}setTimeout(()=>{let n=U(t);if(n.width||n.height){let r=Si(t),i=Bi();i?Ki({...e,name:r,bounds:n}):Gi({...e,name:r,bounds:n}),setTimeout(()=>{i&&(i.style.display=`none`)},1500)}},1200)}}H.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function na(e){let t=0,n=setInterval(()=>{H.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function ra(){let e=H.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function ia(){return new Promise(e=>{function t(){ra(),e(H.__VUE_INSPECTOR__)}H.__VUE_INSPECTOR__?t():na(()=>{t()})})}var aa=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 oa(e){return!!(e&&e[aa.IS_READONLY])}function sa(e){return oa(e)?sa(e[aa.RAW]):!!(e&&e[aa.IS_REACTIVE])}function ca(e){return!!(e&&e.__v_isRef===!0)}function la(e){let t=e&&e[aa.RAW];return t?la(t):e}var ua=class{constructor(){this.refEditor=new da}set(e,t,n,r){let i=Array.isArray(t)?t:t.split(`.`);for(;i.length>1;){let t=i.shift();e=e instanceof Map?e.get(t):e instanceof Set?Array.from(e.values())[t]:e[t],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}let a=i[0],o=this.refEditor.get(e)[a];r?r(e,a,n):this.refEditor.isRef(o)?this.refEditor.set(o,n):e[a]=n}get(e,t){let n=Array.isArray(t)?t:t.split(`.`);for(let t=0;t<n.length;t++)if(e=e instanceof Map?e.get(n[t]):e[n[t]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;let r=Array.isArray(t)?t.slice():t.split(`.`),i=n?2:1;for(;e&&r.length>i;){let t=r.shift();e=e[t],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):la(t)instanceof Map?t.delete(n):la(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){let i=t[e.newKey||n];this.refEditor.isRef(i)?this.refEditor.set(i,r):la(t)instanceof Map?t.set(e.newKey||n,r):la(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},da=class{set(e,t){if(ca(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t)){e.clear(),t.forEach(t=>e.add(t));return}let n=Object.keys(t);if(e instanceof Map){let r=new Set(e.keys());n.forEach(n=>{e.set(n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>e.delete(t));return}let r=new Set(Object.keys(e));n.forEach(n=>{Reflect.set(e,n,Reflect.get(t,n)),r.delete(n)}),r.forEach(t=>Reflect.deleteProperty(e,t))}}get(e){return ca(e)?e.value:e}isRef(e){return ca(e)||sa(e)}};new ua;var fa=`__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__`;function pa(){if(typeof window>`u`||!Qr||typeof localStorage>`u`||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``};let e=localStorage.getItem===void 0?null:localStorage.getItem(fa);return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:``}}H.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];var ma=new Proxy(H.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function ha(e,t){q.timelineLayersState[t.id]=!1,ma.push({...e,descriptorId:t.id,appRecord:bi(t.app)})}H.__VUE_DEVTOOLS_KIT_INSPECTOR__??=[];var ga=new Proxy(H.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get(e,t,n){return Reflect.get(e,t,n)}}),_a=oi(()=>{to.hooks.callHook(xa.SEND_INSPECTOR_TO_CLIENT,ya())});function va(e,t){ga.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??`Search tree...`,stateFilterPlaceholder:e.stateFilterPlaceholder??`Search state...`,treeFilter:``,selectedNodeId:``,appRecord:bi(t.app)}),_a()}function ya(){return ga.filter(e=>e.descriptor.app===K.value.app).filter(e=>e.descriptor.id!==`components`).map(e=>{let 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 ba(e,t){return ga.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}var W=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}({}),G=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}({}),xa=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(){let e=hi();e.hook(G.ADD_INSPECTOR,({inspector:e,plugin:t})=>{va(e,t.descriptor)});let t=oi(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=ba(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,filter:r?.treeFilter||``,rootNodes:[]};await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i))),t()},W.GET_INSPECTOR_TREE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,rootNodes:i.rootNodes})))},xa.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(G.SEND_INSPECTOR_TREE,t);let n=oi(async({inspectorId:t,plugin:n})=>{if(!t||!n?.descriptor?.app||q.highPerfModeEnabled)return;let r=ba(t,n.descriptor.app),i={app:n.descriptor.app,inspectorId:t,nodeId:r?.selectedNodeId||``,state:null},a={currentTab:`custom-inspector:${t}`};i.nodeId&&await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(i,a))),t()},W.GET_INSPECTOR_STATE)}),e.callHookWith(async e=>{await Promise.all(e.map(e=>e({inspectorId:t,nodeId:i.nodeId,state:i.state})))},xa.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(G.SEND_INSPECTOR_STATE,n),e.hook(G.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:e,nodeId:t,plugin:n})=>{let r=ba(e,n.descriptor.app);r&&(r.selectedNodeId=t)}),e.hook(G.TIMELINE_LAYER_ADDED,({options:e,plugin:t})=>{ha(e,t.descriptor)}),e.hook(G.TIMELINE_EVENT_ADDED,({options:t,plugin:n})=>{q.highPerfModeEnabled||!q.timelineLayersState?.[n.descriptor.id]&&![`performance`,`component-event`,`keyboard`,`mouse`].includes(t.layerId)||e.callHookWith(async e=>{await Promise.all(e.map(e=>e(t)))},xa.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(G.GET_COMPONENT_INSTANCES,async({app:e})=>{let t=e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!t)return null;let n=t.id.toString();return[...t.instanceMap].filter(([e])=>e.split(`:`)[0]===n).map(([,e])=>e)}),e.hook(G.GET_COMPONENT_BOUNDS,async({instance:e})=>U(e)),e.hook(G.GET_COMPONENT_NAME,({instance:e})=>Si(e)),e.hook(G.COMPONENT_HIGHLIGHT,({uid:e})=>{let t=K.value.instanceMap.get(e);t&&qi(t)}),e.hook(G.COMPONENT_UNHIGHLIGHT,()=>{Ji()}),e}H.__VUE_DEVTOOLS_KIT_APP_RECORDS__??=[],H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__??={},H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__??=``,H.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__??=[],H.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__??=[];var Ca=`__VUE_DEVTOOLS_KIT_GLOBAL_STATE__`;function wa(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:``,tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:pa()}}H[Ca]??=wa();var Ta=oi(e=>{to.hooks.callHook(xa.DEVTOOLS_STATE_UPDATED,{state:e})});oi((e,t)=>{to.hooks.callHook(xa.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});var Ea=new Proxy(H.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get(e,t,n){return t===`value`?H.__VUE_DEVTOOLS_KIT_APP_RECORDS__:H.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}}),K=new Proxy(H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get(e,t,n){return t===`value`?H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t===`id`?H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]}});function Da(){Ta({...H[Ca],appRecords:Ea.value,activeAppRecordId:K.id,tabs:H.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:H.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function Oa(e){H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,Da()}function ka(e){H.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,Da()}var q=new Proxy(H[Ca],{get(e,t){return t===`appRecords`?Ea:t===`activeAppRecordId`?K.id:t===`tabs`?H.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t===`commands`?H.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:H[Ca][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return e[t]=n,H[Ca][t]=n,!0}});function Aa(e={}){let{file:t,host:n,baseUrl:r=window.location.origin,line:i=0,column:a=0}=e;if(t){if(n===`chrome-extension`){let e=t.replace(/\\/g,`\\\\`),n=window.VUE_DEVTOOLS_CONFIG?.openInEditorHost??`/`;fetch(`${n}__open-in-editor?file=${encodeURI(t)}`).then(t=>{if(!t.ok){let t=`Opening component ${e} failed`;console.log(`%c${t}`,`color:red`)}})}else if(q.vitePluginDetected){let e=H.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__??r;H.__VUE_INSPECTOR__.openInEditor(e,t,i,a)}}}H.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__??=[];var ja=new Proxy(H.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Ma(e){let t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Na(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function Pa(e){return(ja.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function Fa(e,t){let n=Na(e);if(n){let e=localStorage.getItem(n);if(e)return JSON.parse(e)}return Ma(e?(ja.find(t=>t[0].id===e)?.[0]??null)?.settings??{}:t)}function Ia(e,t){let n=Na(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Ma(t)))}function La(e,t,n){let r=Na(e),i=localStorage.getItem(r),a=JSON.parse(i||`{}`),o={...a,[t]:n};localStorage.setItem(r,JSON.stringify(o)),to.hooks.callHookWith(r=>{r.forEach(r=>r({pluginId:e,key:t,oldValue:a[t],newValue:n,settings:o}))},W.SET_PLUGIN_SETTINGS)}var J=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}({}),Y=H.__VUE_DEVTOOLS_HOOK??=hi(),Ra={on:{vueAppInit(e){Y.hook(J.APP_INIT,e)},vueAppUnmount(e){Y.hook(J.APP_UNMOUNT,e)},vueAppConnected(e){Y.hook(J.APP_CONNECTED,e)},componentAdded(e){return Y.hook(J.COMPONENT_ADDED,e)},componentEmit(e){return Y.hook(J.COMPONENT_EMIT,e)},componentUpdated(e){return Y.hook(J.COMPONENT_UPDATED,e)},componentRemoved(e){return Y.hook(J.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){Y.hook(J.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return Y.hook(J.PERFORMANCE_START,e)},perfEnd(e){return Y.hook(J.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return Y.callHook(J.SETUP_DEVTOOLS_PLUGIN,e,t)}},za=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(W.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(W.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(W.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(W.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(W.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(W.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(W.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(W.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(W.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(q.highPerfModeEnabled)return;let t=ya().find(e=>e.packageName===this.plugin.descriptor.packageName);if(t?.id){if(e){let t=[e.appContext.app,e.uid,e.parent?.uid,e];Y.callHook(J.COMPONENT_UPDATED,...t)}else Y.callHook(J.COMPONENT_UPDATED);this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(G.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&Ia(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){q.highPerfModeEnabled||this.hooks.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(G.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(W.VISIT_COMPONENT_TREE,e)}now(){return q.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(G.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){q.highPerfModeEnabled||this.hooks.callHook(G.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return Fa(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(G.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(G.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(G.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){let t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(G.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(G.COMPONENT_UNHIGHLIGHT)}},Ba=`__vue_devtool_undefined__`,Va=`__vue_devtool_infinity__`,Ha=`__vue_devtool_negative_infinity__`,Ua=`__vue_devtool_nan__`;Object.entries({[Ba]:`undefined`,[Ua]:`NaN`,[Va]:`Infinity`,[Ha]:`-Infinity`}).reduce((e,[t,n])=>(e[n]=t,e),{}),H.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function Wa(e,t){return Ra.setupDevToolsPlugin(e,t)}function Ga(e,t){let[n,r]=e;if(n.app!==t)return;let i=new za({plugin:{setupFn:r,descriptor:n},ctx:to});n.packageName===`vuex`&&i.on.editInspectorState(e=>{i.sendInspectorState(e.inspectorId)}),r(i)}function Ka(e,t){H.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||q.highPerfModeEnabled&&!t?.inspectingComponent||(H.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),ja.forEach(t=>{Ga(t,e)}))}var qa=`__VUE_DEVTOOLS_ROUTER__`,Ja=`__VUE_DEVTOOLS_ROUTER_INFO__`;H[Ja]??={currentRoute:null,routes:[]},H[qa]??={},new Proxy(H[Ja],{get(e,t){return H[Ja][t]}}),new Proxy(H[qa],{get(e,t){if(t===`value`)return H[qa]}});function Ya(e){let t=new Map;return(e?.getRoutes()||[]).filter(e=>!t.has(e.path)&&t.set(e.path,1))}function Xa(e){return e.map(e=>{let{path:t,name:n,children:r,meta:i}=e;return r?.length&&(r=Xa(r)),{path:t,name:n,children:r,meta:i}})}function Za(e){if(e){let{fullPath:t,hash:n,href:r,path:i,name:a,matched:o,params:s,query:c}=e;return{fullPath:t,hash:n,href:r,path:i,name:a,params:s,query:c,matched:Xa(o)}}return e}function Qa(e,t){function n(){let t=e.app?.config.globalProperties.$router,n=Za(t?.currentRoute.value),r=Xa(Ya(t)),i=console.warn;console.warn=()=>{},H[Ja]={currentRoute:n?ii(n):{},routes:ii(r)},H[qa]=t,console.warn=i}n(),Ra.on.componentUpdated(oi(()=>{t.value?.app===e.app&&(n(),!q.highPerfModeEnabled&&to.hooks.callHook(xa.ROUTER_INFO_UPDATED,{state:H[Ja]}))},200))}function $a(e){return{async getInspectorTree(t){let n={...t,app:K.value.app,rootNodes:[]};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n))),t()},W.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){let n={...t,app:K.value.app,state:null},r={currentTab:`custom-inspector:${t.inspectorId}`};return await new Promise(t=>{e.callHookWith(async e=>{await Promise.all(e.map(e=>e(n,r))),t()},W.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){let n=new ua,r={...t,app:K.value.app,set:(e,r=t.path,i=t.state.value,a)=>{n.set(e,r,i,a||n.createDefaultSetCallback(t.state))}};e.callHookWith(e=>{e.forEach(e=>e(r))},W.EDIT_INSPECTOR_STATE)},sendInspectorState(t){let n=ba(t);e.callHook(G.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return ea()},cancelInspectComponentInspector(){return $i()},getComponentRenderCode(e){let t=wi(K.value,e);if(t)return typeof t?.type==`function`?t.type.toString():t.render.toString()},scrollToComponent(e){return ta({id:e})},openInEditor:Aa,getVueInspector:ia,toggleApp(e,t){let n=Ea.value.find(t=>t.id===e);n&&(ka(e),Oa(n),Qa(n,K),_a(),Ka(n.app,t))},inspectDOM(e){let t=wi(K.value,e);if(t){let[e]=ji(t);e&&(H.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=e)}},updatePluginSettings(e,t,n){La(e,t,n)},getPluginSettings(e){return{options:Pa(e),values:Fa(e)}}}}H.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};var eo=Sa();H.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:eo,get state(){return{...q,activeAppRecordId:K.id,activeAppRecord:K.value,appRecords:Ea.value}},api:$a(eo)};var to=H.__VUE_DEVTOOLS_KIT_CONTEXT__,no=gi(((e,t)=>{(function(e){"use strict";var n={À:`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`},r=[`်`,`ް`],i={"ာ":`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`},a={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`}},o={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`}},s=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`,`/`].join(``),c=[`;`,`?`,`:`,`@`,`&`,`=`,`+`,`$`,`,`].join(``),l=[`.`,`!`,`~`,`*`,`'`,`(`,`)`].join(``),u=function(e,t){var u=`-`,d=``,m=``,h=!0,g={},_,v,y,b,x,S,C,w,T,E,D,O,k,A,j=``;if(typeof e!=`string`)return``;if(typeof t==`string`&&(u=t),C=o.en,w=a.en,typeof t==`object`)for(D in _=t.maintainCase||!1,g=t.custom&&typeof t.custom==`object`?t.custom:g,y=+t.truncate>1&&t.truncate||!1,b=t.uric||!1,x=t.uricNoSlash||!1,S=t.mark||!1,h=!(t.symbols===!1||t.lang===!1),u=t.separator||u,b&&(j+=s),x&&(j+=c),S&&(j+=l),C=t.lang&&o[t.lang]&&h?o[t.lang]:h?o.en:{},w=t.lang&&a[t.lang]?a[t.lang]:t.lang===!1||t.lang===!0?{}:a.en,t.titleCase&&typeof t.titleCase.length==`number`&&Array.prototype.toString.call(t.titleCase)?(t.titleCase.forEach(function(e){g[e+``]=e+``}),v=!0):v=!!t.titleCase,t.custom&&typeof t.custom.length==`number`&&Array.prototype.toString.call(t.custom)&&t.custom.forEach(function(e){g[e+``]=e+``}),Object.keys(g).forEach(function(t){var n=t.length>1?RegExp(`\\b`+f(t)+`\\b`,`gi`):new RegExp(f(t),`gi`);e=e.replace(n,g[t])}),g)j+=D;for(j+=u,j=f(j),e=e.replace(/(^\s+|\s+$)/g,``),k=!1,A=!1,E=0,O=e.length;E<O;E++)D=e[E],p(D,g)?k=!1:w[D]?(D=k&&w[D].match(/[A-Za-z0-9]/)?` `+w[D]:w[D],k=!1):D in n?(E+1<O&&r.indexOf(e[E+1])>=0?(m+=D,D=``):A===!0?(D=i[m]+n[D],m=``):D=k&&n[D].match(/[A-Za-z0-9]/)?` `+n[D]:n[D],k=!1,A=!1):D in i?(m+=D,D=``,E===O-1&&(D=i[m]),A=!0):C[D]&&!(b&&s.indexOf(D)!==-1)&&!(x&&c.indexOf(D)!==-1)?(D=k||d.substr(-1).match(/[A-Za-z0-9]/)?u+C[D]:C[D],D+=e[E+1]!==void 0&&e[E+1].match(/[A-Za-z0-9]/)?u:``,k=!0):(A===!0?(D=i[m]+D,m=``,A=!1):k&&(/[A-Za-z0-9]/.test(D)||d.substr(-1).match(/A-Za-z0-9]/))&&(D=` `+D),k=!1),d+=D.replace(RegExp(`[^\\w\\s`+j+`_-]`,`g`),u);return v&&(d=d.replace(/(\w)(\S*)/g,function(e,t,n){var r=t.toUpperCase()+(n===null?``:n);return Object.keys(g).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),d=d.replace(/\s+/g,u).replace(RegExp(`\\`+u+`+`,`g`),u).replace(RegExp(`(^\\`+u+`+|\\`+u+`+$)`,`g`),``),y&&d.length>y&&(T=d.charAt(y)===u,d=d.slice(0,y),T||(d=d.slice(0,d.lastIndexOf(u)))),!_&&!v&&(d=d.toLowerCase()),d},d=function(e){return function(t){return u(t,e)}},f=function(e){return e.replace(/[-\\^$*+?.()|[\]{}\/]/g,`\\$&`)},p=function(e,t){for(var n in t)if(t[n]===e)return!0};if(t!==void 0&&t.exports)t.exports=u,t.exports.createSlug=d;else if(typeof define<`u`&&define.amd)define([],function(){return u});else try{if(e.getSlug||e.createSlug)throw`speakingurl: globals exists /(getSlug|createSlug)/`;e.getSlug=u,e.createSlug=d}catch{}})(e)}));gi(((e,t)=>{t.exports=no()}))(),H.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function ro(e){q.highPerfModeEnabled=e??!q.highPerfModeEnabled,!e&&K.value&&Ka(K.value.app)}function io(e){q.devtoolsClientDetected={...q.devtoolsClientDetected,...e},ro(!Object.values(q.devtoolsClientDetected).some(Boolean))}H.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=io;var ao=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()}},oo=class{constructor(e){this.generateIdentifier=e,this.kv=new ao}register(e,t){this.kv.getByValue(e)||(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)}},so=class extends oo{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 co(e){if(`values`in Object)return Object.values(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function lo(e,t){let n=co(e);if(`find`in n)return n.find(t);let r=n;for(let e=0;e<r.length;e++){let n=r[e];if(t(n))return n}}function uo(e,t){Object.entries(e).forEach(([e,n])=>t(n,e))}function fo(e,t){return e.indexOf(t)!==-1}function po(e,t){for(let n=0;n<e.length;n++){let r=e[n];if(t(r))return r}}var mo=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return lo(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},ho=e=>Object.prototype.toString.call(e).slice(8,-1),go=e=>e===void 0,_o=e=>e===null,vo=e=>typeof e!=`object`||!e||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,yo=e=>vo(e)&&Object.keys(e).length===0,X=e=>Array.isArray(e),bo=e=>typeof e==`string`,xo=e=>typeof e==`number`&&!isNaN(e),So=e=>typeof e==`boolean`,Co=e=>e instanceof RegExp,wo=e=>e instanceof Map,To=e=>e instanceof Set,Eo=e=>ho(e)===`Symbol`,Do=e=>e instanceof Date&&!isNaN(e.valueOf()),Oo=e=>e instanceof Error,ko=e=>typeof e==`number`&&isNaN(e),Ao=e=>So(e)||_o(e)||go(e)||xo(e)||bo(e)||Eo(e),jo=e=>typeof e==`bigint`,Mo=e=>e===1/0||e===-1/0,No=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Po=e=>e instanceof URL,Fo=e=>e.replace(/\./g,`\\.`),Io=e=>e.map(String).map(Fo).join(`.`),Lo=e=>{let t=[],n=``;for(let r=0;r<e.length;r++){let i=e.charAt(r);if(i===`\\`&&e.charAt(r+1)===`.`){n+=`.`,r++;continue}if(i===`.`){t.push(n),n=``;continue}n+=i}let r=n;return t.push(r),t};function Z(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Ro=[Z(go,`undefined`,()=>null,()=>void 0),Z(jo,`bigint`,e=>e.toString(),e=>typeof BigInt<`u`?BigInt(e):(console.error(`Please add a BigInt polyfill.`),e)),Z(Do,`Date`,e=>e.toISOString(),e=>new Date(e)),Z(Oo,`Error`,(e,t)=>{let n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n},(e,t)=>{let n=Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(t=>{n[t]=e[t]}),n}),Z(Co,`regexp`,e=>``+e,e=>{let t=e.slice(1,e.lastIndexOf(`/`)),n=e.slice(e.lastIndexOf(`/`)+1);return new RegExp(t,n)}),Z(To,`set`,e=>[...e.values()],e=>new Set(e)),Z(wo,`map`,e=>[...e.entries()],e=>new Map(e)),Z(e=>ko(e)||Mo(e),`number`,e=>ko(e)?`NaN`:e>0?`Infinity`:`-Infinity`,Number),Z(e=>e===0&&1/e==-1/0,`number`,()=>`-0`,Number),Z(Po,`URL`,e=>e.toString(),e=>new URL(e))];function zo(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var Bo=zo((e,t)=>Eo(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>[`symbol`,t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{let r=n.symbolRegistry.getValue(t[1]);if(!r)throw Error(`Trying to deserialize unknown symbol`);return r}),Vo=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Ho=zo(No,e=>[`typed-array`,e.constructor.name],e=>[...e],(e,t)=>{let n=Vo[t[1]];if(!n)throw Error(`Trying to deserialize unknown typed array`);return new n(e)});function Uo(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var Wo=zo(Uo,(e,t)=>[`class`,t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{let n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};let r={};return n.forEach(t=>{r[t]=e[t]}),r},(e,t,n)=>{let r=n.classRegistry.getValue(t[1]);if(!r)throw 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)}),Go=zo((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)=>{let r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw Error(`Trying to deserialize unknown custom value`);return r.deserialize(e)}),Ko=[Wo,Bo,Go,Ho],qo=(e,t)=>{let n=po(Ko,n=>n.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};let r=po(Ro,n=>n.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Jo={};Ro.forEach(e=>{Jo[e.annotation]=e});var Yo=(e,t,n)=>{if(X(t))switch(t[0]){case`symbol`:return Bo.untransform(e,t,n);case`class`:return Wo.untransform(e,t,n);case`custom`:return Go.untransform(e,t,n);case`typed-array`:return Ho.untransform(e,t,n);default:throw Error(`Unknown transformation: `+t)}else{let r=Jo[t];if(!r)throw Error(`Unknown transformation: `+t);return r.untransform(e,n)}},Xo=(e,t)=>{if(t>e.size)throw Error(`index out of bounds`);let n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function Zo(e){if(fo(e,`__proto__`))throw Error(`__proto__ is not allowed as a property`);if(fo(e,`prototype`))throw Error(`prototype is not allowed as a property`);if(fo(e,`constructor`))throw Error(`constructor is not allowed as a property`)}var Qo=(e,t)=>{Zo(t);for(let n=0;n<t.length;n++){let r=t[n];if(To(e))e=Xo(e,+r);else if(wo(e)){let i=+r,a=+t[++n]==0?`key`:`value`,o=Xo(e,i);switch(a){case`key`:e=o;break;case`value`:e=e.get(o);break}}else e=e[r]}return e},$o=(e,t,n)=>{if(Zo(t),t.length===0)return n(e);let r=e;for(let e=0;e<t.length-1;e++){let n=t[e];if(X(r)){let e=+n;r=r[e]}else if(vo(r))r=r[n];else if(To(r)){let e=+n;r=Xo(r,e)}else if(wo(r)){if(e===t.length-2)break;let i=+n,a=+t[++e]==0?`key`:`value`,o=Xo(r,i);switch(a){case`key`:r=o;break;case`value`:r=r.get(o);break}}}let i=t[t.length-1];if(X(r)?r[+i]=n(r[+i]):vo(r)&&(r[i]=n(r[i])),To(r)){let e=Xo(r,+i),t=n(e);e!==t&&(r.delete(e),r.add(t))}if(wo(r)){let e=+t[t.length-2],a=Xo(r,e);switch(+i==0?`key`:`value`){case`key`:{let e=n(a);r.set(e,r.get(a)),e!==a&&r.delete(a);break}case`value`:r.set(a,n(r.get(a)));break}}return e};function es(e,t,n=[]){if(!e)return;if(!X(e)){uo(e,(e,r)=>es(e,t,[...n,...Lo(r)]));return}let[r,i]=e;i&&uo(i,(e,r)=>{es(e,t,[...n,...Lo(r)])}),t(r,n)}function ts(e,t,n){return es(t,(t,r)=>{e=$o(e,r,e=>Yo(e,t,n))}),e}function ns(e,t){function n(t,n){let r=Qo(e,Lo(n));t.map(Lo).forEach(t=>{e=$o(e,t,()=>r)})}if(X(t)){let[r,i]=t;r.forEach(t=>{e=$o(e,Lo(t),()=>e)}),i&&uo(i,n)}else uo(t,n);return e}var rs=(e,t)=>vo(e)||X(e)||wo(e)||To(e)||Uo(e,t);function is(e,t,n){let r=n.get(e);r?r.push(t):n.set(e,[t])}function as(e,t){let n={},r;return e.forEach(e=>{if(e.length<=1)return;t||(e=e.map(e=>e.map(String)).sort((e,t)=>e.length-t.length));let[i,...a]=e;i.length===0?r=a.map(Io):n[Io(i)]=a.map(Io)}),r?yo(n)?[r]:[r,n]:yo(n)?void 0:n}var os=(e,t,n,r,i=[],a=[],o=new Map)=>{let s=Ao(e);if(!s){is(e,i,t);let n=o.get(e);if(n)return r?{transformedValue:null}:n}if(!rs(e,n)){let t=qo(e,n),r=t?{transformedValue:t.value,annotations:[t.type]}:{transformedValue:e};return s||o.set(e,r),r}if(fo(a,e))return{transformedValue:null};let c=qo(e,n),l=c?.value??e,u=X(l)?[]:{},d={};uo(l,(s,c)=>{if(c===`__proto__`||c===`constructor`||c===`prototype`)throw Error(`Detected property ${c}. This is a prototype pollution risk, please remove it from your object.`);let l=os(s,t,n,r,[...i,c],[...a,e],o);u[c]=l.transformedValue,X(l.annotations)?d[c]=l.annotations:vo(l.annotations)&&uo(l.annotations,(e,t)=>{d[Fo(c)+`.`+t]=e})});let f=yo(d)?{transformedValue:u,annotations:c?[c.type]:void 0}:{transformedValue:u,annotations:c?[c.type,d]:d};return s||o.set(e,f),f};function ss(e){return Object.prototype.toString.call(e).slice(8,-1)}function cs(e){return ss(e)===`Array`}function ls(e){if(ss(e)!==`Object`)return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function us(e,t,n,r,i){let a={}.propertyIsEnumerable.call(r,t)?`enumerable`:`nonenumerable`;a===`enumerable`&&(e[t]=n),i&&a===`nonenumerable`&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function ds(e,t={}){if(cs(e))return e.map(e=>ds(e,t));if(!ls(e))return e;let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((n,r)=>{if(cs(t.props)&&!t.props.includes(r))return n;let i=e[r];return us(n,r,ds(i,t),e,t.nonenumerable),n},{})}var Q=class{constructor({dedupe:e=!1}={}){this.classRegistry=new so,this.symbolRegistry=new oo(e=>e.description??``),this.customTransformerRegistry=new mo,this.allowedErrorProps=[],this.dedupe=e}serialize(e){let t=new Map,n=os(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});let i=as(t,this.dedupe);return i&&(r.meta={...r.meta,referentialEqualities:i}),r}deserialize(e){let{json:t,meta:n}=e,r=ds(t);return n?.values&&(r=ts(r,n.values,this)),n?.referentialEqualities&&(r=ns(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)}};Q.defaultInstance=new Q,Q.serialize=Q.defaultInstance.serialize.bind(Q.defaultInstance),Q.deserialize=Q.defaultInstance.deserialize.bind(Q.defaultInstance),Q.stringify=Q.defaultInstance.stringify.bind(Q.defaultInstance),Q.parse=Q.defaultInstance.parse.bind(Q.defaultInstance),Q.registerClass=Q.defaultInstance.registerClass.bind(Q.defaultInstance),Q.registerSymbol=Q.defaultInstance.registerSymbol.bind(Q.defaultInstance),Q.registerCustom=Q.defaultInstance.registerCustom.bind(Q.defaultInstance),Q.allowErrorProps=Q.defaultInstance.allowErrorProps.bind(Q.defaultInstance),Q.serialize,Q.deserialize,Q.stringify,Q.parse,Q.registerClass,Q.registerCustom,Q.registerSymbol,Q.allowErrorProps,H.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__??=[],H.__VUE_DEVTOOLS_KIT_RPC_CLIENT__??=null,H.__VUE_DEVTOOLS_KIT_RPC_SERVER__??=null,H.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__??=null,H.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__??=null,H.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__??=null;var fs={template:`<div>This is component</div>`},ps=R({name:`parentA`,path:`/parentA/[paramA]`}),ms=R({parent:ps,name:`parentA.childA`,path:`/childA/[?paramB]`});R({parent:ps,name:`parentA.childB`,path:`/childB/[paramD]`,component:fs}),R({parent:ms,name:`parentA.childA.grandChildA`,path:`/[paramC]`,component:fs}),R({name:`parentB`,path:`/parentB`,component:fs}),R({name:`parentC`,path:`/`,component:fs});function hs(e,t){return t===`1`?e:`${e} ${t}`}var gs=({route:e})=>!!e.name,_s=({route:e,payload:t})=>{if(!t.filter)return!0;if(!me(e))return!1;let n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},vs=e=>gs(e)&&_s(e),ys=c(),bs=2282478,xs=2278750,Ss=1483594;function Cs(e,t={match:!1,exactMatch:!1}){let n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:bs}),t.match&&n.push({label:`match`,textColor:0,backgroundColor:xs}),t.exactMatch&&n.push({label:`exact-match`,textColor:0,backgroundColor:Ss}),{id:e.id,label:e.name,tags:n}}function ws(e,t){if(!t||!(`id`in t)||!(`matches`in t))return{match:!1,exactMatch:!1};let n=t.id===e.id;return{match:t.matches.some(t=>t.id===e.id),exactMatch:n}}function Ts(e){let t=[];return me(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):t}function Es({router:e,app:n,routes:r}){if(!fr()||e.hasDevtools)return;e.hasDevtools=!0;let i=ys(),a=new Map(r.map(e=>[e.id,e])),o=`kitbag-router-routes.${i}`;Wa({id:`kitbag-router.${i}`,label:`Kitbag Router`,packageName:`@kitbag/router`,homepage:`https://router.kitbag.dev/`,componentStateTypes:[`Routing`],logo:`https://kitbag.dev/kitbag-logo-circle.svg`,app:n},s=>{s.addInspector({id:o,label:hs(`Routes`,i),treeFilterPlaceholder:`Search routes`}),s.on.getInspectorTree(t=>{t.app!==n||t.inspectorId!==o||(t.rootNodes=r.filter(e=>vs({route:e,payload:t})).map(t=>Cs(t,ws(t,e.route))))}),(0,t.watch)(()=>e.route,()=>{s.sendInspectorTree(o)},{deep:!0,immediate:!1}),s.on.getInspectorState(e=>{if(e.app!==n||e.inspectorId!==o)return;let t=a.get(e.nodeId);t&&(e.state={options:Ts(t)})}),s.sendInspectorTree(o),s.sendInspectorState(o)})}function Ds(e,t){let n=new URLSearchParams(e),r=new URLSearchParams(t);for(let[e,t]of r.entries())n.delete(e,t);return n}function Os(e,t,n={}){let{query:r,hash:i}=L(t);for(let a of e){if(!kr(a))continue;let{success:e,params:o}=a.tryParse(t,n);if(e){let{query:e}=L(a.stringify(o)),t=Ds(r,e);return Er(a,o,{...n,query:t,hash:i})}}}var ks=/^(\/.+?)\/+$/;function As(e){let{path:t,...n}=L(e);return Ct({...n,path:t.replace(ks,`$1`)})}function js(e){let{path:t}=L(e);return ks.test(t)}function Ms(e){!v(e)||!fr()||e.title.then(e=>{e!==void 0&&(document.title=e)})}function Ns(){let e=e=>{r.value=e},n=()=>{r.value=null},r=(0,t.ref)(null);return{currentRejection:r,currentRejectionRoute:(0,t.computed)(()=>x(r.value)?Er(r.value.route):null),updateRejection:e,clearRejection:n}}function Ps(e,r,i=[]){let a=r?.isGlobalRouter??!0?Hr:Symbol(),o=r?.removeTrailingSlashes??!0,{routes:s,getRouteByName:l,getRejectionByType:d}=jr(e,i,r),f=Er(d(`NotFound`).route),p=ln();p.addGlobalRouteHooks(Fr(i));let m=c(),h=dr(),g=zr(a),_=Cr(),v=pr({mode:r?.historyMode,listener:({location:e})=>{b(V(e),{state:e.state,replace:!0})}});function y(e,t={}){let n=!ae(e),r=s.filter(e=>e.isRelative===n),i={removeTrailingSlashes:o};return Os(r,e,{...t,...i})}async function b(e,t={}){if(js(e)&&o){let r=As(e);if(n(r))return w(r,t)}let r=m();v.stopListening();let i=y(e,t)??f,a=fe(r),s=await p.runBeforeRouteHooks({to:i,from:a});switch(s.status){case`ABORT`:return;case`PUSH`:v.update(e,t),await C(...s.to);return;case`REJECT`:v.update(e,t),T(s.type,i,a);break;case`SUCCESS`:v.update(e,t),A();break;default:throw Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(s)}`)}ae(e)||x(r,i,a);let c=await p.runAfterRouteHooks({to:i,from:a});switch(c.status){case`PUSH`:await C(...c.to);break;case`REJECT`:T(c.type,i,a);break;case`SUCCESS`:break;default:throw Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(c)}`)}Ms(O.value??i),v.startListening()}function x(e,t,n){let r=e;h.setProps(t).then(i=>{if(r===e)switch(i.status){case`SUCCESS`:break;case`PUSH`:C(...i.to);break;case`REJECT`:T(i.type,t,n);break;default:throw Error(`Switch is not exhaustive for prop store response status: ${JSON.stringify(i)}`)}}).catch(e=>{try{p.runErrorHooks(e,{to:t,from:n,source:`props`})}catch(e){if(e instanceof z){C(...e.response.to);return}if(e instanceof B){T(e.response.type,t,n);return}throw e}}),te(t)}let S=(e,t={},n={})=>{let r=l(e);if(!r)throw new wr(e);return Er(r,t,n)},C=(e,t,r)=>{if(n(e)){let n={...t};return b(wt(e,{query:n.query,hash:n.hash}),n)}if(typeof e==`string`){let{replace:n,...i}={...r},a=S(e,{...t},i),o=Sr({...a.matched.state},{...a.state,...i.state});return b(a.href,{replace:n,state:o})}let{replace:i,...a}={...t},o=Sr({...e.matched.state},{...e.state,...a.state});return b(wt(e.href,{query:a.query,hash:a.hash}),{replace:i,state:o})},w=(e,t,r)=>{if(n(e))return C(e,{...t,replace:!0});if(typeof e==`string`){let n={...r,replace:!0};return C(e,{...t},n)}return C(e,{...t,replace:!0})};function T(e,t=null,n=null){let r=d(e);r&&(p.runRejectionHooks(r,{to:t,from:n}),k(r))}let E=e=>{T(e),Ms(O.value)},{currentRejection:D,currentRejectionRoute:O,updateRejection:k,clearRejection:A}=Ns(),{currentRoute:j,routerRoute:ee,updateRoute:te}=cr(a,f,C),ne=gr(r?.initialUrl),re=v.location.state,{host:ie}=L(ne),ae=lr(ie),oe=!1,se=(0,t.ref)(!1),{promise:ce,resolve:le}=Promise.withResolvers();async function ue(){if(oe)return ce;oe=!0,ge(s)&&await ve(),await b(ne,{replace:!0,state:re}),v.startListening(),le(),se.value=!0}function de(){v.stopListening()}function fe(e){return u(e)?null:{...j}}function M(e){p.setVueApp(e),h.setVueApp(e);let t=Cn(a),n=zn(a);e.component(`RouterView`,t),e.component(`RouterLink`,n),e.provide(hn(a),D),e.provide(cn(a),p),e.provide(wn(a),h),e.provide(pn(a),g),e.provide(Nn,_),e.provide(a,pe),Es({router:pe,app:e,routes:s}),ue()}let pe={route:ee,resolve:S,find:y,push:C,replace:w,reject:E,refresh:v.refresh,forward:v.forward,back:v.back,go:v.go,install:M,isExternal:ae,onBeforeRouteEnter:p.onBeforeRouteEnter,onBeforeRouteUpdate:p.onBeforeRouteUpdate,onBeforeRouteLeave:p.onBeforeRouteLeave,onAfterRouteEnter:p.onAfterRouteEnter,onAfterRouteUpdate:p.onAfterRouteUpdate,onAfterRouteLeave:p.onAfterRouteLeave,onError:p.onError,onRejection:p.onRejection,prefetch:r?.prefetch,start:ue,started:se,stop:de,key:a,hasDevtools:!1};return pe}var $=Vn(Hr),Fs=$.onBeforeRouteLeave,Is=$.onBeforeRouteUpdate,Ls=$.onAfterRouteLeave,Rs=$.onAfterRouteUpdate,zs=$.isRoute,Bs=$.RouterView,Vs=$.RouterLink,Hs=$.useRoute,Us=$.useRouter,Ws=$.useQueryValue,Gs=$.useLink,Ks=$.useRejection;e.DuplicateParamsError=i,e.MetaPropertyConflict=a,e.RouterLink=Vs,e.RouterNotInstalledError=o,e.RouterView=Bs,e.UseRouteInvalidError=s,e.arrayOf=qn,e.asUrlString=r,e.createExternalRoute=Wt,e.createParam=se,e.createRejection=Ut,e.createRoute=R,e.createRouter=Ps,e.createRouterAssets=Vn,e.createRouterPlugin=Wn,e.createUrl=Dt,e.isRoute=zs,e.isUrlString=n,e.literal=Le,e.onAfterRouteLeave=Ls,e.onAfterRouteUpdate=Rs,e.onBeforeRouteLeave=Fs,e.onBeforeRouteUpdate=Is,e.tupleOf=Yn,e.unionOf=Gn,e.useLink=Gs,e.useQueryValue=Ws,e.useRejection=Ks,e.useRoute=Hs,e.useRouter=Us,e.withDefault=le,e.withParams=_t});
|
|
1
|
+
(function(b,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],w):(b=typeof globalThis<"u"?globalThis:b||self,w(b["@kitbag/router"]={},b.Vue))})(this,(function(b,w){"use strict";function W(e){return typeof e!="string"?!1:/^(https?:\/\/|\/).*/g.test(e)}function xn(e){return W(e)?e:`/${e}`}class Mn extends Error{constructor(t){super(`Invalid Param "${t}": Router does not support multiple params by the same name. All param names must be unique.`)}}class Bn extends Error{constructor(t){super(`Loader "${t}" read the data of the route it belongs to, which cannot resolve while the loader is still running. Read a parent's data with context.parent.data, or move the shared work into a function both loaders call.`)}}class jn extends Error{constructor(t){super(`Loader "${t}" conflicts with a loader of the same name on an ancestor route.`)}}class Hn extends Error{constructor(t){super(`Child property on meta for ${t} conflicts with the parent meta.`)}}class pe extends Error{constructor(){super("Discarded before it was computed because navigation moved elsewhere.")}}class he extends Error{constructor(){super("Router not installed")}}class Zn extends Error{constructor(t,n){super(`useRoute called with incorrect route. Given ${t}, expected ${n}`)}}function ct(){let e=0;return()=>(++e).toString()}const $o=ct()();function Fo(e){return e===$o}const Gn=ct();function qo(e,t){return zo(e,t),{...e,...t}}function zo(e,t){const n=Object.keys(e).find(r=>r in t&&typeof t[r]!=typeof e[r]);if(n)throw new Hn(n)}function Ko(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(Ko(t,n)>1)throw new Mn(n)}function Wo(e,t){return He(e,t),{...e,...t}}const qt=Symbol("IS_ROUTE_SYMBOL");function te(e){return typeof e=="object"&&e!==null&&qt in e}const Jo=["NotFound"],$n=Symbol("IS_REJECTION_SYMBOL");function Ze(e){return typeof e=="object"&&e!==null&&$n in e}function Ee(e){return e&&(te(e)||Ze(e))?e.hooks:[]}function Yo(e,t){return[...Ee(e),...Ee(t)]}function Fn(e){return"parent"in e&&!!e.parent}function Qo(e){return"component"in e&&!!e.component}function Xo(e){return"components"in e&&!!e.components}function qn(e,t){if(!te(e)||!te(t))throw new Error("combineRoutes called with invalid route arguments");return{...t,meta:qo(e.meta,t.meta),state:Wo(e.state,t.state),hooks:Yo(e,t),matches:[...e.matches,...t.matches],context:[...e.context,...t.context],depth:e.depth+1}}function zn(e){return e===void 0?"":e}class ae{redirects=new Set;onBeforeRouteEnter=new Set;onBeforeRouteUpdate=new Set;onBeforeRouteLeave=new Set;onAfterRouteEnter=new Set;onAfterRouteUpdate=new Set;onAfterRouteLeave=new Set;onError=new Set;onRejection=new Set}class es 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 ut(){const e=new ae;return{redirect:(p,f)=>{if(e.redirects.size>0)throw new es(p.name);const d=(u,{replace:R})=>{R(p.name,f?.(u.params))};return e.redirects.add(d),()=>e.redirects.delete(d)},onBeforeRouteEnter:p=>(e.onBeforeRouteEnter.add(p),()=>e.onBeforeRouteEnter.delete(p)),onBeforeRouteUpdate:p=>(e.onBeforeRouteUpdate.add(p),()=>e.onBeforeRouteUpdate.delete(p)),onBeforeRouteLeave:p=>(e.onBeforeRouteLeave.add(p),()=>e.onBeforeRouteLeave.delete(p)),onAfterRouteEnter:p=>(e.onAfterRouteEnter.add(p),()=>e.onAfterRouteEnter.delete(p)),onAfterRouteUpdate:p=>(e.onAfterRouteUpdate.add(p),()=>e.onAfterRouteUpdate.delete(p)),onAfterRouteLeave:p=>(e.onAfterRouteLeave.add(p),()=>e.onAfterRouteLeave.delete(p)),onError:p=>(e.onError.add(p),()=>e.onError.delete(p)),onRejection:p=>(e.onRejection.add(p),()=>e.onRejection.delete(p)),store:e}}class zt extends Error{context;constructor(t={}){super(t.message??"Uncaught InvalidRouteParamValueError"),this.context={isOptional:!1,isGetter:!1,isSetter:!1,...t}}}const Ge="[",ft="]";function ts(e){return e!==String&&e!==Boolean&&e!==Number&&e!==Date}function ns(e){return typeof e=="function"&&ts(e)}function lt(e){return typeof e=="object"&&"get"in e&&typeof e.get=="function"&&"set"in e&&typeof e.set=="function"}function Kt(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function Kn(e,t){return lt(e)?{...e,defaultValue:t??e.defaultValue}:{get:n=>ge(n,{param:e}),set:n=>ce(n,{param:e}),defaultValue:t}}function dt(e){return lt(e)&&e.defaultValue!==void 0}function rs(e,t){return Kn(e,t)}function os(e){return e!==void 0}function we(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function ss(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"}function ne(e){return typeof e=="string"&&e.length>0}const Wn=Symbol("IS_URL_SYMBOL");function Te(e){return typeof e=="object"&&e!==null&&Wn in e}let P=null;async function is(){const{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:c,ZodBase64:E,ZodCUID:p,ZodCUID2:f,ZodULID:d,ZodJWT:u,ZodBigInt:R,ZodNaN:g,ZodBoolean:_,ZodDate:l,ZodISODateTime:m,ZodISODate:T,ZodISOTime:h,ZodNumber:y,ZodLiteral:S,ZodObject:N,ZodEnum:A,ZodArray:M,ZodTuple:Z,ZodUnion:z,ZodDiscriminatedUnion:Ve,ZodRecord:fe,ZodMap:oe,ZodSet:xe,ZodIntersection:K,ZodPromise:k}=await import("zod");return{ZodType:e,ZodString:t,ZodIPv4:n,ZodIPv6:r,ZodCIDRv4:o,ZodCIDRv6:s,ZodURL:i,ZodEmail:a,ZodUUID:c,ZodBase64:E,ZodCUID:p,ZodCUID2:f,ZodULID:d,ZodJWT:u,ZodBigInt:R,ZodNaN:g,ZodBoolean:_,ZodDate:l,ZodISODateTime:m,ZodISODate:T,ZodISOTime:h,ZodNumber:y,ZodLiteral:S,ZodObject:N,ZodEnum:A,ZodArray:M,ZodTuple:Z,ZodUnion:z,ZodDiscriminatedUnion:Ve,ZodRecord:fe,ZodMap:oe,ZodSet:xe,ZodIntersection:K,ZodPromise:k}}function as(e){return Object.values(e).some(t=>Te(t)?Object.values(t.schema.host.params).some(({param:n})=>Wt(n))||Object.values(t.schema.path.params).some(({param:n})=>Wt(n))||Object.values(t.schema.query.params).some(({param:n})=>Wt(n)):!1)}function Wt(e){return we(e)&&"parse"in e&&typeof e.parse=="function"&&"~standard"in e&&we(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="zod"}async function cs(){try{P=await is()}catch{throw new Error("Failed to initialize Zod")}}function Jn(e){return P?e instanceof P.ZodType:!1}function Yn(e){return{get:(t,{invalid:n})=>{try{return Jt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return Yt(t,e)}catch{throw n()}}}}const us=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Oe(e,t){if(typeof t=="string"&&us.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 pt(e,t){return P?.ZodString&&e instanceof P.ZodString?1:P?.ZodString&&t instanceof P.ZodString?-1:0}function Jt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(!!e);if(t instanceof P.ZodDate)return t.parse(new Date(e));if(t instanceof P.ZodNumber)return t.parse(Number(e));if(t instanceof P.ZodBigInt)return t.parse(BigInt(e));if(t instanceof P.ZodNaN)return t.parse(Number(e));if(t instanceof P.ZodLiteral)return $e([()=>t.parse(Number(e)),()=>t.parse(!!e),()=>t.parse(e)]);if(t instanceof P.ZodObject)return t.parse(JSON.parse(e,Oe));if(t instanceof P.ZodEnum)return t.parse(e);if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return t.parse(JSON.parse(e,Oe));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(pt).map(r=>()=>Jt(e,r));return $e(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(pt).map(r=>()=>Jt(e,r));return $e(n)}if(t instanceof P.ZodRecord)return t.parse(JSON.parse(e,Oe));if(t instanceof P.ZodMap)return t.parse(new Map(JSON.parse(e,Oe)));if(t instanceof P.ZodSet)return t.parse(new Set(JSON.parse(e,Oe)));if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return t.parse(e)}function Yt(e,t){if(!P)throw new Error("Zod is not initialized");if(t instanceof P.ZodString||t instanceof P.ZodISODateTime||t instanceof P.ZodISODate||t instanceof P.ZodISOTime||t instanceof P.ZodIPv4||t instanceof P.ZodIPv6||t instanceof P.ZodCIDRv4||t instanceof P.ZodCIDRv6||t instanceof P.ZodURL||t instanceof P.ZodEmail||t instanceof P.ZodUUID||t instanceof P.ZodBase64||t instanceof P.ZodCUID||t instanceof P.ZodCUID2||t instanceof P.ZodULID||t instanceof P.ZodJWT)return t.parse(e);if(t instanceof P.ZodBoolean)return t.parse(e).toString();if(t instanceof P.ZodDate)return t.parse(e).toISOString();if(t instanceof P.ZodNumber)return t.parse(Number(e)).toString();if(t instanceof P.ZodBigInt)return t.parse(BigInt(String(e))).toString();if(t instanceof P.ZodNaN)return t.parse(e).toString();if(t instanceof P.ZodLiteral){const n=t.parse(e);return n!=null?n.toString():String(n)}if(t instanceof P.ZodObject)return JSON.stringify(t.parse(e));if(t instanceof P.ZodEnum){const n=t.parse(e);return typeof n=="string"?n:String(n)}if(t instanceof P.ZodArray||t instanceof P.ZodTuple)return JSON.stringify(t.parse(e));if(t instanceof P.ZodUnion){const n=Array.from(t.def.options).sort(pt).map(r=>()=>Yt(e,r));return $e(n)}if(t instanceof P.ZodDiscriminatedUnion){const n=Array.from(t.options).sort(pt).map(r=>()=>Yt(e,r));return $e(n)}if(t instanceof P.ZodRecord)return JSON.stringify(t.parse(e));if(t instanceof P.ZodMap){const n=t.parse(e);return JSON.stringify(Array.from(n.entries()))}if(t instanceof P.ZodSet){const n=t.parse(e);return JSON.stringify(Array.from(n.values()))}if(t instanceof P.ZodIntersection)throw new Error("Intersection schemas are not supported");if(t instanceof P.ZodPromise)throw new Error("Promise schemas are not supported");return JSON.stringify(t.parse(e))}function Qt(e){return typeof e=="object"&&e!==null&&"then"in e}function C(e,t){const n=e["~standard"].validate(t);if(Qt(n))throw new Error("Promise schemas are not supported");if(n.issues)throw new Error("Validation failed");return n.value}function fs(e){return we(e)&&"type"in e&&typeof e.type=="string"&&"~standard"in e&&we(e["~standard"])&&"vendor"in e["~standard"]&&e["~standard"].vendor==="valibot"}function Qn(e){return fs(e)}function Xn(e){return{get:(t,{invalid:n})=>{try{return Xt(t,e)}catch{throw n()}},set:(t,{invalid:n})=>{try{return en(t,e)}catch{throw n()}}}}const ls=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/;function Ne(e,t){if(typeof t=="string"&&ls.test(t)){const n=new Date(t);return isNaN(n.getTime())?t:n}return t}function Pe(e){for(const t of e)try{return t()}catch{continue}throw new Error("All functions failed")}function ht(e,t){return e.type==="string"?1:t.type==="string"?-1:0}function Xt(e,t){if(t.type==="boolean")return C(t,!!e);if(t.type==="date")return C(t,new Date(e));if(t.type==="number")return C(t,Number(e));if(t.type==="literal")return Pe([()=>C(t,Number(e)),()=>C(t,!!e),()=>C(t,e)]);if(t.type==="object")return C(t,JSON.parse(e,Ne));if(t.type==="enum")return Pe([()=>C(t,Number(e)),()=>C(t,!!e),()=>C(t,e)]);if(t.type==="array"||t.type==="tuple")return C(t,JSON.parse(e,Ne));if(t.type==="union"&&"options"in t){const n=t.options.sort(ht).map(r=>()=>Xt(e,r));return Pe(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ht).map(r=>()=>Xt(e,r));return Pe(n)}if(t.type==="record")return C(t,JSON.parse(e,Ne));if(t.type==="map")return C(t,new Map(JSON.parse(e,Ne)));if(t.type==="set")return C(t,new Set(JSON.parse(e,Ne)));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 C(t,e)}function en(e,t){if(t.type==="string"||t.type==="boolean")return C(t,e).toString();if(t.type==="date")return C(t,e).toISOString();if(t.type==="number")return C(t,Number(e)).toString();if(t.type==="literal")return C(t,e).toString();if(t.type==="object")return JSON.stringify(C(t,e));if(t.type==="enum"||t.type==="nativeEnum")return C(t,e).toString();if(t.type==="array"||t.type==="tuple")return JSON.stringify(C(t,e));if(t.type==="union"&&"options"in t){const n=t.options.sort(ht).map(r=>()=>en(e,r));return Pe(n)}if(t.type==="variant"&&"options"in t){const n=t.options.sort(ht).map(r=>()=>en(e,r));return Pe(n)}if(t.type==="record")return JSON.stringify(C(t,e));if(t.type==="map"){const n=C(t,e);return JSON.stringify(Array.from(n.entries()))}if(t.type==="set"){const n=C(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(C(t,e))}function tn(e){return{get:(t,{invalid:n})=>{if(`${e}`===t)return e;throw n(`Expected value to be ${e}, received ${JSON.stringify(t)}`)},set:(t,{invalid:n})=>{if(e!==t)throw n(`Expected value to be literal ${e}, received ${JSON.stringify(t)}`);return t.toString()}}}function ds(e,t){return e[t]??String}function er(e){return{invalid:t=>{throw new zt({...e,message:t})}}}const ps={get:e=>e,set:(e,{invalid:t})=>{if(typeof e!="string")throw t(`Expected string value, received ${JSON.stringify(e)}`);return e}},tr={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()}},nr={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()}},rr={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()}},or={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 ge(e,{param:t=String,isOptional:n=!1}={}){const r=er({param:t,value:e,isGetter:!0});if(e===void 0||!ne(e)){if(dt(t))return t.defaultValue;if(n)return;throw r.invalid(`Param is not optional, received ${JSON.stringify(e)}`)}if(t===String)return ps.get(e,r);if(t===Boolean)return tr.get(e,r);if(t===Number)return nr.get(e,r);if(t===Date)return rr.get(e,r);if(t===JSON)return or.get(e,r);if(ns(t))return t(e,r);if(lt(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)}`)}return Kt(t)?tn(t).get(e,r):Jn(t)?Yn(t).get(e,r):Qn(t)?Xn(t).get(e,r):e}function nn(e,t){try{return ge(e,t)}catch(n){if(n instanceof zt)return;throw n}}function hs(e,t){try{return ce(e,t)}catch(n){if(n instanceof zt)return;throw n}}function ce(e,{param:t=String,isOptional:n=!1}={}){const r=er({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 tr.set(e,r);if(t===Number)return nr.set(e,r);if(t===Date)return rr.set(e,r);if(t===JSON)return or.set(e,r);if(lt(t))return t.set(e,r);if(Kt(t))return tn(t).set(e,r);if(Jn(t))return Yn(t).set(e,r);if(Qn(t))return Xn(t).set(e,r);try{return e.toString()}catch{throw r.invalid(`Unable to set param value, received ${JSON.stringify(e)}`)}}const Et=`\\${Ge}\\??([\\w-_]+)\\*?\\${ft}`,Es=`\\${Ge}\\?([\\w-_]+)\\*?\\${ft}`,gs=`\\${Ge}\\??([\\w-_]+)\\*\\${ft}`,_s="[^/]*",ms=".*",ys="([^/]*)",Rs="(.*)";function rn(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 c=rn(e.slice(r,a.index));c.length&&i.push(c);const[E]=a;return i.push(E),r=a.index+E.length,i},[]),s=e.slice(r);return s&&o.push(s),o}function ws(e){const t=gt(e);return new RegExp(`^${t||".*"}$`,"i")}function sr(e){const t=gt(e);return new RegExp(`^${t}$`,"i")}function Ts(e){const t=e.replace(/^#*/,""),n=gt(t);return new RegExp(`^#?${n||".*"}$`,"i")}function Os(e){const t=new URLSearchParams(e);return Array.from(t.entries()).filter(([,n])=>!ar(n)).map(([n,r])=>{const o=gt(r);return new RegExp(`${rn(n)}=${o}(&|$)`,"i")})}function gt(e){return Ss(e,new RegExp(Et,"g")).map(t=>t.startsWith(Ge)?ir(t):rn(t)).join("")}function ir(e){return e.replace(new RegExp(Et,"g"),t=>cr(t)?ms:_s)}function Ns(e,t){const n=ur(t),{isGreedy:r}=e.params[t]??{},o=r?Rs:ys;return e.value.replace(n,o)}function ar(e){return new RegExp(Es,"g").test(e)}function cr(e){return new RegExp(gs,"g").test(e)}function _t(e){const[t]=fr(e,new RegExp(Et,"g"));return t}function ur(e){return new RegExp(`\\${Ge}\\??${e}\\*?\\${ft}`,"g")}function fr(e,t){return Array.from(e.matchAll(t)).flatMap(([,...r])=>r.map(o=>ne(o)?o:""))}function Ps(e="",t={}){return ne(e)?Array.from(e.matchAll(new RegExp(Et,"g"))).reduce((r,[o,s])=>{const i=_t(o);if(!i)return r;const a=ds(t,i),c=ar(o)||dt(a),E=cr(o);return He([i],r),r[s]={param:a,isOptional:c,isGreedy:E},r},{}):{}}const lr=Symbol("UrlPartsWithParams");function dr(e){return we(e)&&e[lr]===!0}function Q(e){return e===void 0?mt():dr(e)?e:mt(e,{})}function mt(e,t){return{value:e??"",params:Ps(e,t),[lr]:!0}}function yt(e){if(typeof e=="string"||typeof e>"u"||dr(e))return Q(e);const t=Array.isArray(e)?e:Object.entries(e),n=[],r={};for(const[o,s]of t)if(Kt(s))n.push(`${o}=${s}`);else{const i=`[${o}]`,a=_t(i);a&&(r[a]=s),n.push(`${a}=${i}`)}return mt(n.join("&"),r)}function Is(e,t,n){const r=Ns(t,n),o=ir(r),[s]=fr(e,new RegExp(o,"g"));return s}function As(e,t,n,r){const o=ce(r,t.params[n]);return e.replace(ur(n),o)}function pr(...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 Rt="https://internal.invalid";function St(e){const t=new URL(e.host??Rt,Rt);return t.pathname=e.path??"",t.search=new URLSearchParams(e.query).toString(),t.hash=e.hash??"",xn(t.toString().replace(new RegExp(`^${Rt}/*`),"/"))}function X(e){return!e.startsWith("http")?ks(e):bs(e)}function Fe(e,t){if(typeof e=="string"){const r=Fe(X(e),t);return St(r)}const n=new URLSearchParams(t.query);return{host:ne(t.host)?t.host:e.host,path:ne(t.path)?t.path:e.path??"",query:pr(e.query,n),hash:ne(t.hash)?t.hash:e.hash??""}}function bs(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 ks(e){const{pathname:t,searchParams:n,hash:r}=new URL(e,Rt);return{path:t,query:n,hash:r}}function Ie(e){const t={host:Q(e.host),path:Q(e.path),query:vs(yt(e.query)),hash:Cs(Q(e.hash))};He(t.path.params,t.query.params,t.host.params,t.hash.params);const n={...t.host,regexp:ws(t.host.value),stringify(d={}){return on(t.host,d)}},r={...t.path,regexp:{trailingSlashIgnored:sr(t.path.value),trailingSlashRemoved:sr(t.path.value.replace(/^(.+)\/$/,"$1"))},stringify(d={}){return on(t.path,d)}},o={...t.query,regexp:Os(t.query.value),stringify(d={}){return Us(t.query,d).toString()}},s={...t.hash,regexp:Ts(t.hash.value),stringify(d={}){return on(t.hash,d)}};function i(d={}){return St({host:n.stringify(d),path:r.stringify(d),query:o.stringify(d),hash:s.stringify(d)})}function a(d,u={}){const R=X(d),g=u.removeTrailingSlashes??!0;if(!n.regexp.test(R.host??""))throw new Error("Host does not match");if(!(g?r.regexp.trailingSlashRemoved:r.regexp.trailingSlashIgnored).test(R.path))throw new Error("Path does not match");const l=R.query.toString();if(!o.regexp.every(m=>m.test(l)))throw new Error("Query does not match");if(!s.regexp.test(R.hash))throw new Error("Hash does not match")}function c(d,u={}){a(d,u);const R=X(d);return{...sn(n,R.host??""),...sn(r,R.path),...Ls(o,R.query.toString()),...sn(s,R.hash)}}function E(d,u={}){try{return{success:!0,params:c(d,u)}}catch(R){return{success:!1,params:{},error:new Error("Failed to parse url",{cause:R})}}}return{...{[Wn]:!0,schema:{host:n,path:r,query:o,hash:s},params:{}},isRelative:!ne(t.host.value),stringify:i,parse:c,tryParse:E}}function Cs(e){return{...e,value:e.value.replace(/^#/,"")}}function vs(e){return{...e,value:e.value.replace(/^\?/,"")}}function on(e,t){return Object.keys(e.params).reduce((n,r)=>As(n,e,r,t[r]),e.value)}function Us(e,t){const n=new URLSearchParams(e.value);if(!e.value)return n;for(const[r,o]of Array.from(n.entries())){const s=_t(o);if(!s)continue;const a=ce(t[s],e.params[s]),c=t[s]===void 0&&a==="";e.params[s].isOptional&&c?n.delete(r,o):n.set(r,a)}return n}function sn(e,t){const n={},r=decodeURIComponent(t);for(const[o,s]of Object.entries(e.params)){const i=Is(r,e,o),a=ge(i,s);n[o]=a}return n}function Ls(e,t){const n={},r=new URLSearchParams(e.value),o=new URLSearchParams(t);for(const[s,i]of Array.from(r.entries())){const a=_t(i);if(!a)continue;const E=o.get(s)??void 0,p=ge(E,e.params[a]);n[a]=p}return n}class hr extends Error{constructor(t){super(`Invalid Route Redirect "${t}": Route does not support redirects. Use createRouteRedirects to create redirects.`)}}function Er({getRoute:e}){return{redirectTo:(...[r,o])=>{const s=e();if(!te(s))throw new hr(s.name);r.context.push(s),s.context.push(r),s.redirect(r,o)},redirectFrom:(r,o)=>{const s=e();if(!te(r))throw new hr(r.name);s.context.push(r),r.context.push(s),r.redirect(s,o)}}}function an(e,t){He(e.params,t.params);const n=`${e.value}${t.value}`;return{...e,value:n,params:{...e.params,...t.params}}}function gr(e,t){He(e.params,t.params);const n=[e.value,t.value].filter(ne).join("&");return{...e,value:n,params:{...e.params,...t.params}}}function _r(e,t){return an(e,t)}function cn(e,t){if(!Te(e))throw new Error("Parent is not a valid url");if(!Te(t))return Ie({host:e.schema.host,path:an(e.schema.path,Q(t.path)),query:gr(e.schema.query,yt(t.query)),hash:_r(e.schema.hash,Q(t.hash))});if(!Te(t))throw new Error("Child is not a valid url");return Ie({host:e.schema.host,path:an(e.schema.path,t.schema.path),query:gr(e.schema.query,t.schema.query),hash:_r(e.schema.hash,t.schema.hash)})}function mr(e){let t;return{setTitle:o=>{t=o},getTitle:async o=>{const s=async()=>{if(e&&te(e))return e.getTitle(o)};return t?t(o,{from:o,getParentTitle:s}):s()}}}const qe="default";function Ds(e,t){const n={};return Xo(e)?Object.entries(e.components).forEach(([r,o])=>{n[r]={component:o}}):Qo(e)&&(n[qe]={component:e.component}),typeof t=="function"?n[qe]={...n[qe],props:t}:Object.entries(t??{}).forEach(([o,s])=>{n[o]={...n[o],props:s}}),n}function Vs(e){return Object.keys(e).filter(t=>e[t].props)}const un="default";function xs(e,t){return{name:t?.name??un,load:e,prefetch:t?.prefetch}}function Ms(e,{name:t,load:n,prefetch:r}){return w.markRaw({...e,loaders:{...e.loaders,[t]:{load:n,prefetch:r}}})}function Bs(e,t){if(e.some(n=>t in n.loaders))throw new jn(t)}function js(e,t){return{name:t?.name??qe,component:e,props:t?.props,prefetch:t?.prefetch}}function Hs(e,{name:t,component:n,props:r,prefetch:o}){return w.markRaw({...e,views:{...e.views,[t]:{component:n,props:r,prefetch:o}}})}function ze(e){function t(o){const s=e.matches.at(-1);return ze(s?{...e,matches:[...e.matches.slice(0,-1),o(s)]}:e)}return{...e,addView:(o,s)=>{const i=js(o,s);return t(a=>Hs(a,i))},addLoader:(o,s)=>{const i=xs(o,s);return Bs(e.matches.slice(0,-1),i.name),t(a=>Ms(a,i))}}}function le(e,t){const n=Gn(),r=zn(e.name),o=Q(e.path),s=yt(e.query),i=Q(e.hash),a=e.meta??{},c=e.state??{},E=e.context??[],{store:p,redirect:f,...d}=ut(),{setTitle:u,getTitle:R}=mr(e.parent),g=Ds(e,t),_=w.markRaw({...e,id:n,meta:a,state:c,name:r,views:g,loaders:{}}),l=Er({getRoute:()=>h}),m=Ie({path:o,query:s,hash:i}),T={[qt]:!0,depth:1,hooks:[p],getTitle:R,redirect:f},h={id:n,matches:[_],name:r,meta:a,state:c,context:E,prefetch:e.prefetch,setTitle:u,...l,...m,...d,...T};if(Fn(e)){const y=qn(e.parent,h);if(e.hoist)return ze(y);const S=cn(e.parent,{path:o,query:s,hash:i});return ze({...y,...S})}return ze(h)}function Zs(){const e=new ae;return{onRejection:n=>(e.onRejection.add(n),()=>e.onRejection.delete(n)),store:e}}function Gs(e){return w.defineComponent(()=>()=>w.h("h1",e),{name:e,props:[]})}function yr({type:e,component:t}){const{store:n,...r}=Zs(),o=le({name:e,component:w.markRaw(t??Gs(e))}),{setTitle:s}=o,i={[$n]:!0,route:o,hooks:[n]};return{type:e,setTitle:s,...r,...i}}function $s(e){const t=Gn(),n=zn(e.name),r=Q(e.path),o=yt(e.query),s=Q(e.hash),i=e.meta??{},a=Q(e.host),c=e.context??[],{store:E,redirect:p,...f}=ut(),{getTitle:d,setTitle:u}=mr(e.parent),R=Er({getRoute:()=>m}),g=w.markRaw({id:t,meta:{},state:{},...e,views:{},loaders:{}}),_=Ie({host:a,path:r,query:o,hash:s}),l={[qt]:!0,depth:1,hooks:[E],getTitle:d,redirect:p},m={id:t,matches:[g],name:n,meta:i,state:{},context:c,setTitle:u,...f,...R,..._,...l};if(Fn(e)){const T=qn(e.parent,m),h=cn(e.parent,{path:r,query:o,hash:s});return{...T,...h}}return m}function Ke(){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 Fs=Ke();function Rr(e){const t=Fs(e);return({increment:n=!1}={})=>{const r=w.inject(t,0);return n&&w.provide(t,r+1),r}}const We=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},Je=(e,t,n)=>{const r=e.matches,o=t?.matches??[];return r.at(n)?.id!==o.at(n)?.id},Ye=(e,t,n)=>e.matches.at(n)?.id===t?.matches.at(n)?.id;function qs(e){switch(e){case"onBeforeRouteEnter":case"onAfterRouteEnter":return We;case"onBeforeRouteUpdate":case"onAfterRouteUpdate":return Ye;case"onBeforeRouteLeave":case"onAfterRouteLeave":return Je;default:throw new Error(`Switch is not exhaustive for lifecycle: ${e}`)}}class wt extends Error{}class ue extends wt{response;constructor(t){super("Uncaught ContextPushError"),this.response={status:"PUSH",to:t}}}class _e extends wt{response;constructor(t){super("Uncaught ContextRejectionError"),this.response={status:"REJECT",type:t}}}class Sr extends wt{response;constructor(){super("Uncaught ContextAbortError"),this.response={status:"ABORT"}}}function zs(e,t){const n=new ae;return Ee(e).forEach((r,o)=>{if(r.redirects.forEach(s=>n.redirects.add(s)),We(e,t,o))return r.onBeforeRouteEnter.forEach(s=>n.onBeforeRouteEnter.add(s));if(Ye(e,t,o))return r.onBeforeRouteUpdate.forEach(s=>n.onBeforeRouteUpdate.add(s))}),Ee(t).forEach((r,o)=>{if(Je(e,t,o))return r.onBeforeRouteLeave.forEach(s=>n.onBeforeRouteLeave.add(s))}),n}function Ks(e,t){const n=new ae;return Ee(e).forEach((r,o)=>{if(We(e,t,o))return r.onAfterRouteEnter.forEach(s=>n.onAfterRouteEnter.add(s));if(Ye(e,t,o))return r.onAfterRouteUpdate.forEach(s=>n.onAfterRouteUpdate.add(s))}),Ee(t).forEach((r,o)=>{if(Je(e,t,o))return r.onAfterRouteLeave.forEach(s=>n.onAfterRouteLeave.add(s))}),n}function Ws(e,t,n){const r=new ae;return e.matches.forEach((o,s)=>{We(e,t,s)&&n.onBeforeRouteEnter.forEach(i=>r.onBeforeRouteEnter.add(i)),Ye(e,t,s)&&n.onBeforeRouteUpdate.forEach(i=>r.onBeforeRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{Je(e,t,s)&&n.onBeforeRouteLeave.forEach(i=>r.onBeforeRouteLeave.add(i))}),r}function Js(e,t,n){const r=new ae;return e.matches.forEach((o,s)=>{We(e,t,s)&&n.onAfterRouteEnter.forEach(i=>r.onAfterRouteEnter.add(i)),Ye(e,t,s)&&n.onAfterRouteUpdate.forEach(i=>r.onAfterRouteUpdate.add(i))}),t?.matches.forEach((o,s)=>{Je(e,t,s)&&n.onAfterRouteLeave.forEach(i=>r.onAfterRouteLeave.add(i))}),r}function Ys(e){const t=new ae;return Ee(e).forEach(n=>{n.onRejection.forEach(r=>t.onRejection.add(r))}),t}function wr(){let e=null;function t(r){e=r}function n(r){return e?e.runWithContext(r):r()}return{setVueApp:t,runWithContext:n}}function Tt({to:e}){const t=i=>{throw new _e(i)},n=(...i)=>{throw new ue(i)};return{reject:t,push:n,replace:(i,a,c)=>{if(W(i)){const f=a??{};throw new ue([i,{...f,replace:!0}])}const E=a,p=c??{};throw new ue([i,E,{...p,replace:!0}])},update:(i,a,c)=>{if(typeof i=="object"){const p={...e.params,...i};return n(e.name,p,a)}const E={...e.params,[i]:a};return n(e.name,E,c)},abort:()=>{throw new Sr}}}const Tr=Ke();function Qs(){const{setVueApp:e,runWithContext:t}=wr(),{store:n,...r}=ut(),o=new ae,s=async({to:f,from:d})=>{const{reject:u,push:R,replace:g,update:_,abort:l}=Tt({to:f}),m=zs(f,d),T=Ws(f,d,n),h=[...m.redirects,...T.onBeforeRouteEnter,...m.onBeforeRouteEnter,...T.onBeforeRouteUpdate,...m.onBeforeRouteUpdate,...o.onBeforeRouteUpdate,...T.onBeforeRouteLeave,...m.onBeforeRouteLeave,...o.onBeforeRouteLeave];try{const y=h.map(S=>Promise.resolve(t(()=>S(f,{from:d,reject:u,push:R,replace:g,update:_,abort:l}))));await Promise.all(y)}catch(y){if(y instanceof ue||y instanceof _e||y instanceof Sr)return y.response;try{a(y,{to:f,from:d,source:"hook"})}catch(S){if(S instanceof ue||S instanceof _e)return S.response;throw S}}return{status:"SUCCESS"}},i=async({to:f,from:d})=>{const{reject:u,push:R,replace:g,update:_}=Tt({to:f}),l=Ks(f,d),m=Js(f,d,n),T=[...o.onAfterRouteLeave,...l.onAfterRouteLeave,...m.onAfterRouteLeave,...o.onAfterRouteUpdate,...l.onAfterRouteUpdate,...m.onAfterRouteUpdate,...o.onAfterRouteEnter,...l.onAfterRouteEnter,...m.onAfterRouteEnter];try{const h=T.map(y=>Promise.resolve(t(()=>y(f,{from:d,reject:u,push:R,replace:g,update:_}))));await Promise.all(h)}catch(h){if(h instanceof ue||h instanceof _e)return h.response;try{a(h,{to:f,from:d,source:"hook"})}catch(y){if(y instanceof ue||y instanceof _e)return y.response;throw y}}return{status:"SUCCESS"}},a=(f,{to:d,from:u,source:R})=>{const{reject:g,push:_,replace:l,update:m}=Tt({to:d});for(const T of n.onError)try{T(f,{to:d,from:u,source:R,reject:g,push:_,replace:l,update:m});return}catch(h){if(h instanceof wt)throw h;if(h===f)continue;throw h}};return{runBeforeRouteHooks:s,runAfterRouteHooks:i,runErrorHooks:a,runRejectionHooks:(f,{to:d,from:u})=>{const g=[...Ys(f).onRejection,...n.onRejection];for(const _ of g)_(f.type,{to:d,from:u})},addComponentHook:({lifecycle:f,depth:d,hook:u})=>{const R=qs(f),g=o[f],_=(l,m)=>{if(R(l,m.from,d))return u(l,m)};return g.add(_),()=>g.delete(_)},addGlobalRouteHooks:f=>{f.onBeforeRouteEnter.forEach(d=>r.onBeforeRouteEnter(d)),f.onBeforeRouteUpdate.forEach(d=>r.onBeforeRouteUpdate(d)),f.onBeforeRouteLeave.forEach(d=>r.onBeforeRouteLeave(d)),f.onAfterRouteEnter.forEach(d=>r.onAfterRouteEnter(d)),f.onAfterRouteUpdate.forEach(d=>r.onAfterRouteUpdate(d)),f.onAfterRouteLeave.forEach(d=>r.onAfterRouteLeave(d)),f.onError.forEach(d=>r.onError(d))},setVueApp:e,...r}}function Xs(e){const t=Tr(e);return()=>{const n=w.inject(t);if(!n)throw new he;return n}}function Ot(e,t){const n=Rr(e),r=Xs(e);return o=>{const s=n(),a=r().addComponentHook({lifecycle:t,hook:o,depth:s-1});return w.onUnmounted(a),a}}function ei(e){const t=Ot(e,"onBeforeRouteLeave"),n=Ot(e,"onBeforeRouteUpdate"),r=Ot(e,"onAfterRouteLeave"),o=Ot(e,"onAfterRouteUpdate");return{onBeforeRouteLeave:t,onBeforeRouteUpdate:n,onAfterRouteLeave:r,onAfterRouteUpdate:o}}const Or=Ke();function ti(e){const t=Or(e);return()=>{const n=w.inject(t);if(!n)throw new he;return n}}const Nr=Ke();function Pr(e){const t=Nr(e);return()=>{const n=w.inject(t);if(!n)throw new he;return n}}function Qe(e){return()=>{const t=w.inject(e);if(!t)throw new he;return t}}const Ir=Symbol("isRouterRouteSymbol");function ni(e,t){return typeof t=="object"&&t!==null&&Ir in t&&e in t}function ri(e,t,n){function r(h){const y=St({...X(t.href),query:void 0}),S=Fe(y,{query:h});n(S)}function o(h,y,S){if(ss(h))return o({[h]:y},S);const N=h,A=y,M={...t.params,...N};return n(t.name,M,A)}const s=(...h)=>{const y=new URLSearchParams(t.query);y.set(...h),r(y)},i=(...h)=>{const y=new URLSearchParams(t.query);y.append(...h),r(y)},a=(...h)=>{const y=new URLSearchParams(t.query);y.delete(...h),r(y)},{id:c,matched:E,matches:p,name:f,hash:d,href:u,data:R}=w.toRefs(t),g=new Proxy({},{get(h,y,S){return Reflect.get(t.params,y,S)},set(h,y,S){return o(y,S),!0},ownKeys(){return Reflect.ownKeys(t.params)},getOwnPropertyDescriptor(h,y){return Reflect.getOwnPropertyDescriptor(t.params,y)}}),_=w.computed({get(){return g},set(h){o(h)}}),l=w.computed({get(){return new Proxy(t.query,{get(h,y,S){switch(y){case"append":return i;case"set":return s;case"delete":return a;default:return Reflect.get(h,y,S)}}})},set(h){r(h)}}),m=w.computed({get(){return new Proxy(t.state,{set(h,y,S){return o({},{state:{...t.state,[y]:S}}),!0}})},set(h){o({},{state:h})}});return w.reactive({...t,id:c,matched:E,matches:p,state:m,query:l,hash:d,params:_,name:f,href:u,data:R,update:o,[Ir]:!0,[e]:!0})}function fn(e){return(t,n,{exact:r}={})=>ni(e,t)?n===void 0?!0:r?t.matched.name===n:t.matches.map(o=>o.name).includes(n):!1}function Nt(e){const t=Qe(e),n=fn(e);return(r,o)=>{const s=t();function i(){if(!r)return;if(!n(s.route,r,o))throw new Zn(r,s.route.name)}return w.watch(s.route,i,{immediate:!0,deep:!0}),s.route}}function ln(e){const t=Nt(e),n=Qe(e),r=Pr(e),o=Rr(e),s=ti(e);return w.defineComponent((i,a)=>{const c=t(),E=n(),p=r(),f=o({increment:!0});w.onServerPrefetch(async()=>{await E.start()});const{getRouteComponents:d}=s(),u=w.computed(()=>{if(!E.started.value)return null;if(Ze(p.value))return p.value.route.matches.at(0)?.views.default.component??null;const R=c.matches.at(f);if(!R)return null;const g=i.name??"default";return d(R.id,R.views)[g]});return()=>a.slots.default?a.slots.default({route:c,component:u.value,rejection:p.value}):u.value?w.h(u.value):null},{name:"RouterView",props:["name"]})}const Ar=Ke();function br(e){const t=Ar(e);return()=>{const n=w.inject(t);if(!n)throw new he;return n}}const oi="lazy",si={components:!0,props:!1};function Pt(e){return["eager","lazy","intent"].includes(e)}function kr({routerPrefetch:e,routePrefetch:t,viewPrefetch:n,linkPrefetch:r},o){const s=It(r,o),i=It(n,o),a=It(t,o),c=It(e,o),E=[s,i,a,c,si[o],oi].reduce((p,f)=>Pt(p)?p:p===!0&&Pt(f)?f:p===!0&&!Pt(f)?p:p===void 0?f:p,void 0);return Pt(E)?E:!1}function It(e,t){return we(e)?e[t]:e}const ii=w.defineAsyncComponent(()=>new Promise(e=>{e({default:{template:"foo"}})}));function ai(e){return e.name===ii.name&&"__asyncLoader"in e}const Cr=Symbol("visibilityObserver");function ci(e){const t=w.inject(Cr);if(!t)throw new he;return w.watch(e,(r,o)=>{r&&t.observe(r),o&&t.unobserve(o)},{immediate:!0}),w.onUnmounted(()=>{e.value&&t.unobserve(e.value)}),{isElementVisible:w.computed(()=>e.value?t.isElementVisible(e.value):!1)}}function vr(e,t,n){w.watch(e,(r,o)=>{r&&r.addEventListener(t,n),o&&o.removeEventListener(t,n)},{immediate:!0}),w.onUnmounted(()=>{e.value&&e.value.removeEventListener(t,n)})}function ui(e){const t=br(e);return n=>{const r=w.ref(),{createPrefetchStore:o}=t(),s=o(),{isElementVisible:i}=ci(r),a=()=>{s.commit()};w.onScopeDispose(()=>s.dispose()),w.watch(()=>w.toValue(n),({route:p,...f})=>{s.reset(),p&&E("eager",p,f)},{immediate:!0}),w.watch(i,p=>{const{route:f,...d}=w.toValue(n);!f||!p||E("lazy",f,d)},{immediate:!0}),vr(r,"focusin",c),vr(r,"mouseover",c);function c(){const{route:p,...f}=w.toValue(n);p&&E("intent",p,f)}function E(p,f,d){fi(p,f,d),s.prefetch(p,f,d)}return{element:r,commit:a}}}function fi(e,t,n){t.matches.forEach(r=>{Object.values(r.views).forEach(o=>{!o.component||!ai(o.component)||kr({...n,routePrefetch:r.prefetch,viewPrefetch:o.prefetch},"components")!==e||o.component.__asyncLoader()})})}function Ur(e){const t=Qe(e),n=ui(e),r=fn(e);return(o,s={},i={})=>{const a=t(),c=w.computed(()=>{const h=w.toValue(o);return typeof h!="string"?h:W(h)?a.find(h,w.toValue(i)):a.resolve(h,w.toValue(s),w.toValue(i))}),E=w.computed(()=>{if(c.value)return c.value.href;const h=w.toValue(o);if(W(h))return h;console.error(new Error("Failed to resolve route in RouterLink."))}),p=w.computed(()=>r(a.route)&&a.route.matches.some(h=>h.id===c.value?.id)),f=w.computed(()=>a.route.id===c.value?.id),d=w.computed(()=>r(a.route)&&os(c.value)&&a.route.href.startsWith(c.value.href)),u=w.computed(()=>a.route.href===c.value?.href),R=w.computed(()=>!!E.value&&a.isExternal(E.value)),g=w.computed(()=>{const h=w.toValue(o);return typeof h!="string"||W(h)?w.toValue(s):w.toValue(i)}),{element:_,commit:l}=n(()=>({route:c.value,routerPrefetch:a.prefetch,linkPrefetch:g.value.prefetch})),m=h=>{l();const y={replace:h?.replace??g.value.replace,query:pr(h?.query,g.value.query),hash:h?.hash??g.value.hash,state:{...g.value.state,...h?.state}},S=w.toValue(o);return W(S)||typeof S=="object"?a.push(S,y):a.push(S,w.toValue(s),y)};return{element:_,route:c,href:E,isMatch:p,isExactMatch:f,isActive:d,isExactActive:u,isExternal:R,push:m,replace:h=>m({...h,replace:!0})}}}function Lr(e){const t=Qe(e),n=Ur(e);return w.defineComponent((r,o)=>{const s=t(),i=w.computed(()=>m(r.to)),a=w.computed(()=>T(r.to)),c=w.computed(()=>!r.target||r.target==="_self"),E=w.computed(()=>{const{to:S,...N}=r;return N}),{element:p,isMatch:f,isExactMatch:d,isActive:u,isExactActive:R,isExternal:g,push:_}=n(()=>typeof r.to=="function"?r.to(s.resolve):r.to,E),l=w.computed(()=>({"router-link--match":f.value,"router-link--exact-match":d.value,"router-link--active":u.value,"router-link--exact-active":R.value}));function m(S){if(typeof S=="function"){const N=S(s.resolve);return m(N)}return W(S)?s.find(S):S}function T(S){if(typeof S=="function"){const N=S(s.resolve);return T(N)}return W(S)?S:S?.href}function h(S){return S.defaultPrevented||S.button!==0||S.metaKey||S.ctrlKey||S.shiftKey||S.altKey||!c.value}function y(S){h(S)||(S.preventDefault(),_())}return()=>w.h("a",{href:a.value,target:r.target,class:["router-link",l.value],ref:p,onClick:y},o.slots.default?.({route:i.value,isMatch:f.value,isExactMatch:d.value,isActive:u.value,isExactActive:R.value,isExternal:g.value}))},{name:"RouterLink",props:["to","prefetch","query","hash","replace","state","target"]})}function li(e){const t=Nt(e);return(n,r=String)=>{const o=t(),s=w.computed({get(){const a=o.query.get(w.toValue(n));return a===null?dt(r)?r.defaultValue:null:nn(a,{param:r})},set(a){o.query.set(w.toValue(n),ce(a,{param:r}))}}),i=w.computed({get(){const a=o.query.getAll(w.toValue(n));return a.length===0&&dt(r)?[r.defaultValue]:a.map(c=>nn(c,{param:r})).filter(c=>c!==null)},set(a){const c=new URLSearchParams(o.query);c.delete(w.toValue(n)),a.forEach(E=>{c.append(w.toValue(n),ce(E,{param:r}))}),o.query=c}});return{value:s,values:i,remove:()=>{o.query.delete(w.toValue(n))}}}}function Dr(e){const t=typeof e=="object"?e.key:e,{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s}=ei(t),i=fn(t),a=ln(t),c=Lr(t),E=Nt(t),p=Qe(t),f=li(t),d=Ur(t),u=Pr(t);return{onBeforeRouteLeave:n,onBeforeRouteUpdate:r,onAfterRouteLeave:o,onAfterRouteUpdate:s,isRoute:i,RouterView:a,RouterLink:c,useRoute:E,useRouter:p,useQueryValue:f,useLink:d,useRejection:u}}const Vr=Symbol("IS_ROUTER_PLUGIN_SYMBOL");function di(e){return typeof e=="object"&&e!==null&&Vr in e}function pi(e){const{store:t,...n}=ut(),r={[Vr]:!0,hooks:t};return{routes:e.routes??[],rejections:e.rejections??[],...n,...r}}function xr(e){return{get:(t,{invalid:n})=>{for(const r of e){const o=nn(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=hs(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 hi={separator:","};function Ei(e,t={}){const{separator:n}={...hi,...t},r=xr(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 gi={separator:","};function _i(e,t={}){const{separator:n}={...gi,...t};return{get:r=>{const o=r.split(n);return e.map((s,i)=>ge(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 Ae(){let e=[];return{get length(){return e.length},push(t){return e.push(t),()=>{e=e.filter(n=>n!==t)}},call(t){e.forEach(n=>n(t))}}}function At(){return Math.random().toString(36).slice(2,10)}function Mr(e,t,n){return Math.min(Math.max(e,t),n)}function bt(e){e.preventDefault(),e.returnValue=""}function me({pathname:e="/",search:t="",hash:n=""}){let r=e;return t&&t!=="?"&&(r+=t.startsWith("?")?t:"?"+t),n&&n!=="#"&&(r+=n.startsWith("#")?n:"#"+n),r}function Xe(e){const t={};if(e){const n=e.indexOf("#");n>=0&&(t.hash=e.slice(n),e=e.slice(0,n));const r=e.indexOf("?");r>=0&&(t.search=e.slice(r),e=e.slice(0,r)),e&&(t.pathname=e)}return t}function be(e){return Object.freeze(e)}const kt="beforeunload",Br="popstate",mi="hashchange";function jr(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:h,search:y,hash:S}=t.location,N=n.state??{};return[N.idx,be({pathname:h,search:y,hash:S,state:N.usr??null,key:N.key??"default"})]}let o=null;function s(){if(o)p.call(o),o=null;else{const[y,S]=r();if(p.length){if(y!=null){const N=a??0-y;N&&(o={action:"POP",location:S,retry(){m(N*-1)}},m(N))}}else g("POP")}}t.addEventListener(Br,s);let i="POP",[a,c]=r();const E=Ae(),p=Ae();a==null&&(a=0,n.replaceState({...n.state,idx:a},"",f(c)));function f(h){return typeof h=="string"?h:me(h)}function d(h,y=null){return be({pathname:c.pathname,hash:"",search:"",...typeof h=="string"?Xe(h):h,state:y,key:At()})}function u(h,y){return[{usr:h.state,key:h.key,idx:y},f(h)]}function R(h,y,S){return p.length?(p.call({action:h,location:y,retry:S}),!1):!0}function g(h){i=h,[a,c]=r(),E.call({action:i,location:c})}function _(h,y){const S="PUSH",N=d(h,y);function A(){_(h,y)}if(R(S,N,A)){const[M,Z]=u(N,(a??0)+1);try{n.pushState(M,"",Z)}catch{t.location.assign(Z)}g(S)}}function l(h,y){const S="REPLACE",N=d(h,y);function A(){l(h,y)}if(R(S,N,A)){const[M,Z]=u(N,a??0);n.replaceState(M,"",Z),g(S)}}function m(h){n.go(h)}return{get action(){return i},get location(){return c},createHref:f,push:_,replace:l,go:m,back(){m(-1)},forward(){m(1)},listen(h){return E.push(h)},block(h){const y=p.push(h);return p.length===1&&t.addEventListener(kt,bt),()=>{y(),p.length||t.removeEventListener(kt,bt)}}}}function yi(e={}){const{window:t=document.defaultView}=e,n=t.history;function r(){const{pathname:y="/",search:S="",hash:N=""}=Xe(t.location.hash.slice(1)),A=n.state??{};return[A.idx,be({pathname:y,search:S,hash:N,state:A.usr??null,key:A.key??"default"})]}let o=null;function s(){if(o)p.call(o),o=null;else{const[S,N]=r();if(p.length){if(S!=null){const A=(a??0)-S;A&&(o={action:"POP",location:N,retry(){T(A*-1)}},T(A))}}else _("POP")}}t.addEventListener(Br,s),t.addEventListener(mi,()=>{const[,y]=r();me(y)!==me(c)&&s()});let i="POP",[a,c]=r();const E=Ae(),p=Ae();a==null&&(a=0,n.replaceState({...n.state,idx:a},""));function f(){const y=document.querySelector("base");let S="";if(y?.getAttribute("href")){const N=t.location.href,A=N.indexOf("#");S=A===-1?N:N.slice(0,A)}return S}function d(y){return f()+"#"+(typeof y=="string"?y:me(y))}function u(y,S=null){return be({pathname:c.pathname,hash:"",search:"",...typeof y=="string"?Xe(y):y,state:S,key:At()})}function R(y,S){return[{usr:y.state,key:y.key,idx:S},d(y)]}function g(y,S,N){return p.length?(p.call({action:y,location:S,retry:N}),!1):!0}function _(y){i=y,[a,c]=r(),E.call({action:i,location:c})}function l(y,S){const N="PUSH",A=u(y,S);function M(){l(y,S)}if(g(N,A,M)){const[Z,z]=R(A,(a??0)+1);try{n.pushState(Z,"",z)}catch{t.location.assign(z)}_(N)}}function m(y,S){const N="REPLACE",A=u(y,S);function M(){m(y,S)}if(g(N,A,M)){const[Z,z]=R(A,a??0);n.replaceState(Z,"",z),_(N)}}function T(y){n.go(y)}return{get action(){return i},get location(){return c},createHref:d,push:l,replace:m,go:T,back(){T(-1)},forward(){T(1)},listen(y){return E.push(y)},block(y){const S=p.push(y);return p.length===1&&t.addEventListener(kt,bt),()=>{S(),p.length||t.removeEventListener(kt,bt)}}}}function Hr(e={}){const{initialEntries:t=["/"],initialIndex:n}=e,r=t.map(l=>be({pathname:"/",search:"",hash:"",state:null,key:At(),...typeof l=="string"?Xe(l):l}));let o=Mr(n??r.length-1,0,r.length-1),s="POP",i=r[o];const a=Ae(),c=Ae();function E(l){return typeof l=="string"?l:me(l)}function p(l,m=null){return be({pathname:i.pathname,search:"",hash:"",...typeof l=="string"?Xe(l):l,state:m,key:At()})}function f(l,m,T){return c.length?(c.call({action:l,location:m,retry:T}),!1):!0}function d(l,m){s=l,i=m,a.call({action:s,location:i})}function u(l,m){const T="PUSH",h=p(l,m);function y(){u(l,m)}f(T,h,y)&&(o+=1,r.splice(o,r.length,h),d(T,h))}function R(l,m){const T="REPLACE",h=p(l,m);function y(){R(l,m)}f(T,h,y)&&(r[o]=h,d(T,h))}function g(l){const m=Mr(o+l,0,r.length-1),T="POP",h=r[m];function y(){g(l)}f(T,h,y)&&(o=m,d(T,h))}return{get index(){return o},get action(){return s},get location(){return i},createHref:E,push:u,replace:R,go:g,back(){g(-1)},forward(){g(1)},listen(l){return a.push(l)},block(l){return c.push(l)}}}function Ri({routerKey:e,fallbackRoute:t,push:n,getData:r}){const o=w.reactive(i(t)),s=E=>{Object.assign(o,i(E))};function i(E){return{...E,data:r(E)}}const a=o,c=ri(e,a,n);return{currentRoute:a,routerRoute:c,updateRoute:s}}function Si(e){return t=>{const{host:n}=X(t);return!(n===void 0||n===e)}}const wi={kind:"pending"},Ti={kind:"running"},Oi={kind:"missing"};function et(){const e=w.reactive(new Map);function t(){const{promise:c,resolve:E,reject:p}=Promise.withResolvers();return c.catch(()=>{}),w.markRaw({promise:c,resolve:E,reject:p,state:w.shallowRef(wi)})}function n(c){const E=e.get(c);if(E)return E;const p=t();return e.set(c,p),p}function r(c,E){const p=c.state.value;p.kind==="value"||p.kind==="error"||(c.state.value=E,E.kind==="value"?c.resolve(E.value):c.reject(E.error))}return{subscribe:c=>n(c).promise,set:(c,E)=>{const p=n(c);if(p.state.value.kind==="pending"){p.state.value=Ti;try{const f=E();if(Qt(f)){f.then(d=>r(p,{kind:"value",value:d}),d=>r(p,{kind:"error",error:d}));return}r(p,{kind:"value",value:f})}catch(f){r(p,{kind:"error",error:f})}}},get:c=>e.get(c)?.state.value??Oi,dispose:c=>{for(const[E,p]of e)e.delete(E),r(p,{kind:"error",error:c})}}}function Ni(){const e={current:et()};return{current:()=>e.current,stage:o=>{e.staged?.dispose(new pe),e.staged=o},promote:()=>{const o=e.current;return e.current=e.staged??et(),e.staged=void 0,o}}}function dn(e,t,n,r){return[e,t,n,r.id,JSON.stringify(r.params)].join("-")}function Pi(){const{setVueApp:e,runWithContext:t}=wr(),n=Ni(),r=()=>{const g={store:et()},_=()=>{g.store.dispose(new pe)};return{prefetch:(h,y,S)=>{for(const N of u(y).filter(Ct("props")))kr({...S,routePrefetch:N.routePrefetch,viewPrefetch:N.prefetch},"props")===h&&g.store.set(N.key,()=>c(N,y,g.store))},commit:()=>{n.stage(g.store),g.store=et()},reset:()=>{_(),g.store=et()},dispose:_}},o=g=>{const _=n.promote(),l=n.current();_.dispose(new pe);const m=u(g);return{props:s(l,g,m.filter(Ct("props"))),loaders:s(l,g,m.filter(Ct("loader")))}};async function s(g,_,l){l.forEach(m=>{g.set(m.key,()=>c(m,_))});try{return await Promise.all(l.map(({key:m})=>g.subscribe(m))),{status:"SUCCESS"}}catch(m){if(m instanceof pe)return{status:"ABANDONED"};if(m instanceof ue||m instanceof _e)return m.response;throw m}}const i=(g,_,l)=>{const m=dn("props",g,_,l),T=n.current().get(m);switch(T.kind){case"missing":return $r;case"pending":case"running":return Ai(n.current().subscribe(m));case"value":case"error":return T;default:return T}};function a(g,_){const l=u(g).filter(Ct("loader"));return f(l,un,g,_)}function c(g,_,l){const{push:m,replace:T,reject:h,update:y}=Tt({to:_});return t(()=>g.run(E(g,_,l),{push:m,replace:T,reject:h,update:y,parent:p(_,g.depth,l)}))}function E({kind:g,name:_},l,m){return new Proxy(l,{get(T,h,y){if(h!=="data")return Reflect.get(T,h,y);if(g==="loader")throw new Bn(_);return a(l,m)}})}function p(g,_,l){if(_===0)return;const m=g.matches[_-1],{name:T=""}=m;return{name:T,get props(){return f(Zr(m),qe,g,l)},get data(){return f(Gr(m),un,g,l)}}}function f(g,_,l,m){if(g.length===0)return;const[T]=g;if(g.length===1&&T.name===_)return d(T,l,m);const h=S=>g.find(({name:N})=>N===S),y={};return w.markRaw(new Proxy(y,{get(S,N){const A=h(N);return A?d(A,l,m):Reflect.get(S,N)},has(S,N){return!!h(N)||Reflect.has(S,N)},ownKeys(){return g.map(({name:S})=>S)},getOwnPropertyDescriptor(S,N){const A=h(N);return A?{configurable:!0,enumerable:!0,value:d(A,l,m)}:Reflect.getOwnPropertyDescriptor(S,N)}}))}function d(g,_,l){const m=dn(g.kind,g.id,g.name,_);if(!l)return n.current().subscribe(m);l.get(m).kind==="missing"&&n.current().get(m).kind==="missing"&&bi(g,_);const T=Ii([l.subscribe(m),n.current().subscribe(m)]);return T.catch(()=>{}),T}function u(g){return g.matches.flatMap((_,l)=>[...Zr(_).map(m=>R(m,_,l,g,_.views[m.name].props,_.views[m.name].prefetch)),...Gr(_).map(m=>R(m,_,l,g,_.loaders[m.name].load,_.loaders[m.name].prefetch))])}function R(g,_,l,m,T,h){return{...g,depth:l,key:dn(g.kind,g.id,g.name,m),run:T,routePrefetch:_.prefetch,prefetch:h}}return{createPrefetchStore:r,setRouteValues:o,getProps:i,getData:a,setVueApp:e}}function Zr(e){return Vs(e.views).map(t=>({kind:"props",id:e.id,name:t}))}function Gr(e){return Object.keys(e.loaders).map(t=>({kind:"loader",id:e.id,name:t}))}function Ct(e){return t=>t.kind===e}async function Ii(e){try{return await Promise.any(e)}catch(t){throw t instanceof AggregateError?t.errors.find(n=>!(n instanceof pe))??t.errors[0]:t}}const $r={kind:"value",value:void 0};async function Ai(e){try{return{kind:"value",value:await e}}catch(t){return t instanceof pe?$r:{kind:"error",error:t}}}function bi({kind:e,name:t},n){const r=n.name||"unknown",o=e==="props"?`props "${t}"`:`loader data "${t}"`;console.warn(`
|
|
2
|
+
Waiting on ${o} while prefetching for route "${r}".
|
|
3
|
+
It is not being prefetched at this point, so it cannot resolve until it is computed — either by its
|
|
4
|
+
own prefetch strategy or by navigating. Prefetch it with the same strategy to avoid stalling here.
|
|
5
|
+
`)}function tt(){return typeof window<"u"&&typeof window.document<"u"}function ki({mode:e,listener:t}){const n=Ci(e),r=(c,E)=>{if(E?.replace){n.replace(c,E.state);return}n.push(c,E?.state)},o=()=>{const c=me(n.location);n.replace(c)};let s;return{...n,update:r,refresh:o,startListening:()=>{s?.(),s=n.listen(t)},stopListening:()=>{s?.()}}}function Ci(e="auto"){switch(e){case"auto":return tt()?jr():Hr();case"browser":return jr();case"memory":return Hr();case"hash":return yi();default:const t=e;throw new Error(`Switch is not exhaustive for mode: ${t}`)}}class vi extends Error{constructor(){super("initialUrl must be set if window.location is unavailable")}}function Ui(e){if(e)return e;if(tt())return window.location.toString();throw new vi}function Fr(e){return!!e&&typeof e=="object"}const vt={isOptional:!0,isGreedy:!1};function Li(e,t,n){if(Fr(e)&&t in e){const r=e[t];return typeof r=="string"?ge(r,{param:n,...vt}):r}return ge(void 0,{param:n,...vt})}function Di(e,t){const n={};for(const[r,o]of Object.entries(e)){const s=Li(t,r,o);n[r]=s}return n}function Vi(e,t,n){if(Fr(e)&&t in e){const r=e[t];return ce(r,{param:n,...vt})}return ce(void 0,{param:n,...vt})}const qr=(e,t)=>{const n={};for(const[r,o]of Object.entries(e)){const s=Vi(t,r,o);n[r]=s}return n};function xi(){const e=w.reactive(new Map),t=tt()?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(c=>{e.set(c.target,c.isIntersecting)})})}return{observe:n,unobserve:r,disconnect:o,isElementVisible:s}}class Mi extends Error{constructor(t){super(`Route not found: "${t}"`)}}function Bi(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 Ut(e,t={},n={}){const r=e.stringify(t),o=Fe(r,{query:new URLSearchParams(n.query),hash:n.hash}),{query:s,hash:i}=X(o),{promise:a,resolve:c}=Promise.withResolvers(),E=e.matches.at(-1);if(!E)throw new Error("createResolvedRoute called with a route that has no matches");const p={...e,matched:E,query:Bi(s),state:Di(e.state,n.state),hash:i,params:t,href:o,title:a};return ji(p).then(c),p}async function ji(e){if(te(e))return e.getTitle(e)}class Hi 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 zr(e){return"name"in e&&ne(e.name)}function Zi(e,t){return ne(t)?{...e,...cn(Ie({path:t}),e)}:e}function Gi(e,t=[],n={}){const r=new Map,o=new Map,s=[...e,...t.map(u=>u.routes)],i=[...Jo.map(u=>yr({type:u})),...n.rejections??[],...t.map(u=>u.rejections)];function a(u){if(!te(u)||!zr(u))return;const R=r.get(u.name);if(R&&R.id!==u.id)throw new Hi(u.name);if(R?.id!==u.id){r.set(u.name,Zi(u,n.base));for(const g of u.context)te(g)&&a(g),Ze(g)&&c(g)}}function c(u){Ze(u)&&o.set(u.type,u)}function E(u){for(const R of u)a(R)}function p(u){for(const R of u)c(R)}for(const u of s){if($i(u)){E(u);continue}a(u)}for(const u of i){if(Fi(u)){p(u);continue}c(u)}function f(u){return r.get(u)}function d(u){return o.get(u)}return{routes:Array.from(r.values()).sort(qi),rejections:Array.from(o.values()),getRouteByName:f,getRejectionByType:d}}function $i(e){return Array.isArray(e)}function Fi(e){return Array.isArray(e)}function qi(e,t){return t.depth-e.depth}function zi(e=[]){const t=new ae;return e.forEach(n=>{di(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 Ki(e,{id:t,name:n,component:r}){const o=br(e),s=Nt(e);return w.defineComponent({name:"PropsWrapper",expose:[],setup(){const i=w.getCurrentInstance(),a=o(),c=s();return()=>{const E=a.getProps(t,n,c);return Qt(E)?i?.suspense?w.h(Ji,{component:r,props:E}):w.h(Wi,{component:r,props:E}):E.kind==="error"?"":w.h(r,E.value)}}})}const Wi=w.defineComponent(e=>{const t=w.ref();return w.watch(()=>e.props,async n=>{t.value=await n},{immediate:!0,deep:!0}),()=>Kr(e.component,t.value)},{props:["component","props"]}),Ji=w.defineComponent(async e=>{const t=w.ref();return t.value=await e.props,w.watch(()=>e.props,async n=>{t.value=await n},{deep:!0}),()=>Kr(e.component,t.value)},{props:["component","props"]});function Kr(e,t){return t===void 0||t.kind==="error"?"":w.h(e,t.value)}function Yi(e){const t=new Map;return{getRouteComponents:(r,o)=>{const s=t.get(r);if(s)return s;const i=Qi(e,r,o);return t.set(r,i),i}}}function Qi(e,t,n){const r=ln(e),o=Object.entries(n).reduce((s,[i,a])=>(a.component&&s.push([i,a.component]),s),[]);return o.length===0?{default:r}:Object.fromEntries(o.map(([s,i])=>[s,Ki(e,{id:t,name:s,component:i})]))}const Wr=Symbol();var Xi=Object.create,Jr=Object.defineProperty,ea=Object.getOwnPropertyDescriptor,Yr=Object.getOwnPropertyNames,ta=Object.getPrototypeOf,na=Object.prototype.hasOwnProperty,ra=(e,t)=>function(){return t||(0,e[Yr(e)[0]])((t={exports:{}}).exports,t),t.exports},oa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Yr(t),s=0,i=o.length,a;s<i;s++)a=o[s],!na.call(e,a)&&a!==n&&Jr(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(r=ea(t,a))||r.enumerable});return e},sa=(e,t,n)=>(n=e!=null?Xi(ta(e)):{},oa(Jr(n,"default",{value:e,enumerable:!0}),e));const Qr=typeof navigator<"u",O=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};typeof O.chrome<"u"&&O.chrome.devtools,Qr&&(O.self,O.top),typeof navigator<"u"&&navigator.userAgent?.toLowerCase().includes("electron");var ia=ra({"../../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,f=>new Date(f)),i.set(Map,(f,d)=>new Map(c(Array.from(f),d))),i.set(Set,(f,d)=>new Set(c(Array.from(f),d))),s.constructorHandlers)for(const f of s.constructorHandlers)i.set(f[0],f[1]);let a=null;return s.proto?p:E;function c(f,d){const u=Object.keys(f),R=new Array(u.length);for(let g=0;g<u.length;g++){const _=u[g],l=f[_];typeof l!="object"||l===null?R[_]=l:l.constructor!==Object&&(a=i.get(l.constructor))?R[_]=a(l,d):ArrayBuffer.isView(l)?R[_]=n(l):R[_]=d(l)}return R}function E(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return c(f,E);if(f.constructor!==Object&&(a=i.get(f.constructor)))return a(f,E);const d={};for(const u in f){if(Object.hasOwnProperty.call(f,u)===!1)continue;const R=f[u];typeof R!="object"||R===null?d[u]=R:R.constructor!==Object&&(a=i.get(R.constructor))?d[u]=a(R,E):ArrayBuffer.isView(R)?d[u]=n(R):d[u]=E(R)}return d}function p(f){if(typeof f!="object"||f===null)return f;if(Array.isArray(f))return c(f,p);if(f.constructor!==Object&&(a=i.get(f.constructor)))return a(f,p);const d={};for(const u in f){const R=f[u];typeof R!="object"||R===null?d[u]=R:R.constructor!==Object&&(a=i.get(R.constructor))?d[u]=a(R,p):ArrayBuffer.isView(R)?d[u]=n(R):d[u]=p(R)}return d}}function o(s){const i=[],a=[],c=new Map;if(c.set(Date,u=>new Date(u)),c.set(Map,(u,R)=>new Map(p(Array.from(u),R))),c.set(Set,(u,R)=>new Set(p(Array.from(u),R))),s.constructorHandlers)for(const u of s.constructorHandlers)c.set(u[0],u[1]);let E=null;return s.proto?d:f;function p(u,R){const g=Object.keys(u),_=new Array(g.length);for(let l=0;l<g.length;l++){const m=g[l],T=u[m];if(typeof T!="object"||T===null)_[m]=T;else if(T.constructor!==Object&&(E=c.get(T.constructor)))_[m]=E(T,R);else if(ArrayBuffer.isView(T))_[m]=n(T);else{const h=i.indexOf(T);h!==-1?_[m]=a[h]:_[m]=R(T)}}return _}function f(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return p(u,f);if(u.constructor!==Object&&(E=c.get(u.constructor)))return E(u,f);const R={};i.push(u),a.push(R);for(const g in u){if(Object.hasOwnProperty.call(u,g)===!1)continue;const _=u[g];if(typeof _!="object"||_===null)R[g]=_;else if(_.constructor!==Object&&(E=c.get(_.constructor)))R[g]=E(_,f);else if(ArrayBuffer.isView(_))R[g]=n(_);else{const l=i.indexOf(_);l!==-1?R[g]=a[l]:R[g]=f(_)}}return i.pop(),a.pop(),R}function d(u){if(typeof u!="object"||u===null)return u;if(Array.isArray(u))return p(u,d);if(u.constructor!==Object&&(E=c.get(u.constructor)))return E(u,d);const R={};i.push(u),a.push(R);for(const g in u){const _=u[g];if(typeof _!="object"||_===null)R[g]=_;else if(_.constructor!==Object&&(E=c.get(_.constructor)))R[g]=E(_,d);else if(ArrayBuffer.isView(_))R[g]=n(_);else{const l=i.indexOf(_);l!==-1?R[g]=a[l]:R[g]=d(_)}}return i.pop(),a.pop(),R}}})}),aa=sa(ia());const ca=/(?:^|[-_/])(\w)/g;function ua(e,t){return t?t.toUpperCase():""}function fa(e){return e&&`${e}`.replace(ca,ua)}function la(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 Xr=(0,aa.default)({circles:!0}),da={trailing:!0};function ke(e,t=25,n={}){if(n={...da,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,o,s=[],i,a;const c=(f,d)=>(i=pa(e,f,d),i.finally(()=>{if(i=null,n.trailing&&a&&!o){const u=c(f,a);return a=null,u}}),i),E=function(...f){return n.trailing&&(a=f),i||new Promise(d=>{const u=!o&&n.leading;clearTimeout(o),o=setTimeout(()=>{o=null;const R=n.leading?r:c(this,f);a=null;for(const g of s)g(R);s=[]},t),u?(r=c(this,f),d(r)):s.push(d)})},p=f=>{f&&(clearTimeout(f),o=null)};return E.isPending=()=>!!o,E.cancel=()=>{p(o),s=[],a=null},E.flush=()=>{if(p(o),!a||i)return;const f=a;return a=null,c(this,f)},E}async function pa(e,t,n){return await e.apply(t,n)}function pn(e,t={},n){for(const r in e){const o=e[r],s=n?`${n}:${r}`:r;typeof o=="object"&&o!==null?pn(o,t,s):typeof o=="function"&&(t[s]=o)}return t}const ha={run:e=>e()},Ea=()=>ha,eo=typeof console.createTask<"u"?console.createTask:Ea;function ga(e,t){const n=t.shift(),r=eo(n);return e.reduce((o,s)=>o.then(()=>r.run(()=>s(...t))),Promise.resolve())}function _a(e,t){const n=t.shift(),r=eo(n);return Promise.all(e.map(o=>r.run(()=>o(...t))))}function hn(e,t){for(const n of[...e])n(t)}class ma{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=pn(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=pn(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(ga,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(_a,t,...n)}callHookWith(t,n,...r){const o=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&hn(this._before,o);const s=t(n in this._hooks?[...this._hooks[n]]:[],r);return s instanceof Promise?s.finally(()=>{this._after&&o&&hn(this._after,o)}):(this._after&&o&&hn(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 to(){return new ma}var ya=Object.create,no=Object.defineProperty,Ra=Object.getOwnPropertyDescriptor,ro=Object.getOwnPropertyNames,Sa=Object.getPrototypeOf,wa=Object.prototype.hasOwnProperty,oo=(e,t)=>function(){return t||(0,e[ro(e)[0]])((t={exports:{}}).exports,t),t.exports},Ta=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=ro(t),s=0,i=o.length,a;s<i;s++)a=o[s],!wa.call(e,a)&&a!==n&&no(e,a,{get:(c=>t[c]).bind(null,a),enumerable:!(r=Ra(t,a))||r.enumerable});return e},Oa=(e,t,n)=>(n=e!=null?ya(Sa(e)):{},Ta(no(n,"default",{value:e,enumerable:!0}),e));function Na(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 Pa(e){const t=e.__file;if(t)return fa(la(t,".vue"))}function so(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function En(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 io(e){const t=e.subTree?.type,n=En(e);return n?n?.types?.Fragment===t:!1}function Lt(e){const t=Na(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 so(e,r);for(const r in e.appContext?.components)if(e.appContext.components[r]===e?.type)return so(e,r);const n=Pa(e?.type||{});return n||"Anonymous Component"}function Ia(e){return`${e?.appContext?.app?.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__??0}:${e===e?.root?"root":e.uid}`}function gn(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Aa(){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 Dt;function ba(e){return Dt||(Dt=document.createRange()),Dt.selectNode(e),Dt.getBoundingClientRect()}function ka(e){const t=Aa();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=ye(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=ba(i))}s&&Ca(t,s)}return t}function Ca(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 ao={top:0,left:0,right:0,bottom:0,width:0,height:0};function ye(e){const t=e.subTree.el;return typeof window>"u"?ao:io(e)?ka(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?ye(e.subTree.component):ao}function _n(e){return io(e)?va(e.subTree):e.subTree?[e.subTree.el]:[]}function va(e){if(!e.children)return[];const t=[];return e.children.forEach(n=>{n.component?t.push(..._n(n.component)):n?.el&&t.push(n.el)}),t}const co="__vue-devtools-component-inspector__",uo="__vue-devtools-component-inspector__card__",fo="__vue-devtools-component-inspector__name__",lo="__vue-devtools-component-inspector__indicator__",po={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},Ua={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)"},La={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Ce(){return document.getElementById(co)}function Da(){return document.getElementById(uo)}function Va(){return document.getElementById(lo)}function xa(){return document.getElementById(fo)}function mn(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 yn(e){const t=document.createElement("div");t.id=e.elementId??co,Object.assign(t.style,{...po,...mn(e.bounds),...e.style});const n=document.createElement("span");n.id=uo,Object.assign(n.style,{...Ua,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=fo,r.innerHTML=`<${e.name}> `;const o=document.createElement("i");return o.id=lo,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`,Object.assign(o.style,La),n.appendChild(r),n.appendChild(o),t.appendChild(n),document.body.appendChild(t),t}function Rn(e){const t=Ce(),n=Da(),r=xa(),o=Va();t&&(Object.assign(t.style,{...po,...mn(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),r.innerHTML=`<${e.name}> `,o.innerHTML=`${Math.round(e.bounds.width*100)/100} x ${Math.round(e.bounds.height*100)/100}`)}function Ma(e){const t=ye(e);if(!t.width&&!t.height)return;const n=Lt(e);Ce()?Rn({bounds:t,name:n}):yn({bounds:t,name:n})}function ho(){const e=Ce();e&&(e.style.display="none")}let Sn=null;function wn(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(Sn=n,n.vnode.el)){const r=ye(n),o=Lt(n);Ce()?Rn({bounds:r,name:o}):yn({bounds:r,name:o})}}}function Ba(e,t){e.preventDefault(),e.stopPropagation(),Sn&&t(Ia(Sn))}let Vt=null;function ja(){ho(),window.removeEventListener("mouseover",wn),window.removeEventListener("click",Vt,!0),Vt=null}function Ha(){return window.addEventListener("mouseover",wn),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),Ba(n,r=>{window.removeEventListener("click",t,!0),Vt=null,window.removeEventListener("mouseover",wn);const o=Ce();o&&(o.style.display="none"),e(JSON.stringify({id:r}))})}Vt=t,window.addEventListener("click",t,!0)})}function Za(e){const t=gn(G.value,e.id);if(t){const[n]=_n(t);if(typeof n.scrollIntoView=="function")n.scrollIntoView({behavior:"smooth"});else{const r=ye(t),o=document.createElement("div"),s={...mn(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=ye(t);if(r.width||r.height){const o=Lt(t),s=Ce();s?Rn({...e,name:o,bounds:r}):yn({...e,name:o,bounds:r}),setTimeout(()=>{s&&(s.style.display="none")},1500)}},1200)}}O.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__??=!0;function Ga(e){let t=0;const n=setInterval(()=>{O.__VUE_INSPECTOR__&&(clearInterval(n),t+=30,e()),t>=5e3&&clearInterval(n)},30)}function $a(){const e=O.__VUE_INSPECTOR__,t=e.openInEditor;e.openInEditor=async(...n)=>{e.disable(),t(...n)}}function Fa(){return new Promise(e=>{function t(){$a(),e(O.__VUE_INSPECTOR__)}O.__VUE_INSPECTOR__?t():Ga(()=>{t()})})}let xt=(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 qa(e){return!!(e&&e[xt.IS_READONLY])}function Eo(e){return qa(e)?Eo(e[xt.RAW]):!!(e&&e[xt.IS_REACTIVE])}function Tn(e){return!!(e&&e.__v_isRef===!0)}function nt(e){const t=e&&e[xt.RAW];return t?nt(t):e}var za=class{constructor(){this.refEditor=new Ka}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):nt(t)instanceof Map?t.delete(n):nt(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):nt(t)instanceof Map?t.set(e.newKey||n,r):nt(t)instanceof Set?t.add(r):t[e.newKey||n]=r}}}},Ka=class{set(e,t){if(Tn(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 Tn(e)?e.value:e}isRef(e){return Tn(e)||Eo(e)}};const Wa="__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";function Ja(){if(typeof window>"u"||!Qr||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(Wa):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS??=[];const Ya=new Proxy(O.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get(e,t,n){return Reflect.get(e,t,n)}});function Qa(e,t){x.timelineLayersState[t.id]=!1,Ya.push({...e,descriptorId:t.id,appRecord:En(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)}}),go=ke(()=>{Ue.hooks.callHook(Re.SEND_INSPECTOR_TO_CLIENT,_o())});function Xa(e,t){On.push({options:e,descriptor:t,treeFilterPlaceholder:e.treeFilterPlaceholder??"Search tree...",stateFilterPlaceholder:e.stateFilterPlaceholder??"Search state...",treeFilter:"",selectedNodeId:"",appRecord:En(t.app)}),go()}function _o(){return On.filter(e=>e.descriptor.app===G.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 Mt(e,t){return On.find(n=>n.options.id===e&&(t?n.descriptor.app===t:!0))}let H=(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})({}),D=(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})({}),Re=(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 ec(){const e=to();e.hook(D.ADD_INSPECTOR,({inspector:r,plugin:o})=>{Xa(r,o.descriptor)});const t=ke(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||x.highPerfModeEnabled)return;const s=Mt(r,o.descriptor.app),i={app:o.descriptor.app,inspectorId:r,filter:s?.treeFilter||"",rootNodes:[]};await new Promise(a=>{e.callHookWith(async c=>{await Promise.all(c.map(E=>E(i))),a()},H.GET_INSPECTOR_TREE)}),e.callHookWith(async a=>{await Promise.all(a.map(c=>c({inspectorId:r,rootNodes:i.rootNodes})))},Re.SEND_INSPECTOR_TREE_TO_CLIENT)},120);e.hook(D.SEND_INSPECTOR_TREE,t);const n=ke(async({inspectorId:r,plugin:o})=>{if(!r||!o?.descriptor?.app||x.highPerfModeEnabled)return;const s=Mt(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(c=>{e.callHookWith(async E=>{await Promise.all(E.map(p=>p(i,a))),c()},H.GET_INSPECTOR_STATE)}),e.callHookWith(async c=>{await Promise.all(c.map(E=>E({inspectorId:r,nodeId:i.nodeId,state:i.state})))},Re.SEND_INSPECTOR_STATE_TO_CLIENT)},120);return e.hook(D.SEND_INSPECTOR_STATE,n),e.hook(D.CUSTOM_INSPECTOR_SELECT_NODE,({inspectorId:r,nodeId:o,plugin:s})=>{const i=Mt(r,s.descriptor.app);i&&(i.selectedNodeId=o)}),e.hook(D.TIMELINE_LAYER_ADDED,({options:r,plugin:o})=>{Qa(r,o.descriptor)}),e.hook(D.TIMELINE_EVENT_ADDED,({options:r,plugin:o})=>{x.highPerfModeEnabled||!x.timelineLayersState?.[o.descriptor.id]&&!["performance","component-event","keyboard","mouse"].includes(r.layerId)||e.callHookWith(async s=>{await Promise.all(s.map(i=>i(r)))},Re.SEND_TIMELINE_EVENT_TO_CLIENT)}),e.hook(D.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(D.GET_COMPONENT_BOUNDS,async({instance:r})=>ye(r)),e.hook(D.GET_COMPONENT_NAME,({instance:r})=>Lt(r)),e.hook(D.COMPONENT_HIGHLIGHT,({uid:r})=>{const o=G.value.instanceMap.get(r);o&&Ma(o)}),e.hook(D.COMPONENT_UNHIGHLIGHT,()=>{ho()}),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 ve="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";function tc(){return{connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:Ja()}}O[ve]??=tc();const nc=ke(e=>{Ue.hooks.callHook(Re.DEVTOOLS_STATE_UPDATED,{state:e})});ke((e,t)=>{Ue.hooks.callHook(Re.DEVTOOLS_CONNECTED_UPDATED,{state:e,oldState:t})});const Bt=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]}}),G=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 mo(){nc({...O[ve],appRecords:Bt.value,activeAppRecordId:G.id,tabs:O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}function rc(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=e,mo()}function oc(e){O.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=e,mo()}const x=new Proxy(O[ve],{get(e,t){return t==="appRecords"?Bt:t==="activeAppRecordId"?G.id:t==="tabs"?O.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?O.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:O[ve][t]},deleteProperty(e,t){return delete e[t],!0},set(e,t,n){return{...O[ve]},e[t]=n,O[ve][t]=n,!0}});function sc(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(c=>{if(!c.ok){const E=`Opening component ${i} failed`;console.log(`%c${E}`,"color:red")}})}else if(x.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 Nn=new Proxy(O.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get(e,t,n){return Reflect.get(e,t,n)}});function Pn(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function In(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function ic(e){return(Nn.find(t=>t[0].id===e&&!!t[0]?.settings)?.[0]??null)?.settings??null}function yo(e,t){const n=In(e);if(n){const r=localStorage.getItem(n);if(r)return JSON.parse(r)}return Pn(e?(Nn.find(r=>r[0].id===e)?.[0]??null)?.settings??{}:t)}function ac(e,t){const n=In(e);localStorage.getItem(n)||localStorage.setItem(n,JSON.stringify(Pn(t)))}function cc(e,t,n){const r=In(e),o=localStorage.getItem(r),s=JSON.parse(o||"{}"),i={...s,[t]:n};localStorage.setItem(r,JSON.stringify(i)),Ue.hooks.callHookWith(a=>{a.forEach(c=>c({pluginId:e,key:t,oldValue:s[t],newValue:n,settings:i}))},H.SET_PLUGIN_SETTINGS)}let F=(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??=to(),Ro={on:{vueAppInit(e){q.hook(F.APP_INIT,e)},vueAppUnmount(e){q.hook(F.APP_UNMOUNT,e)},vueAppConnected(e){q.hook(F.APP_CONNECTED,e)},componentAdded(e){return q.hook(F.COMPONENT_ADDED,e)},componentEmit(e){return q.hook(F.COMPONENT_EMIT,e)},componentUpdated(e){return q.hook(F.COMPONENT_UPDATED,e)},componentRemoved(e){return q.hook(F.COMPONENT_REMOVED,e)},setupDevtoolsPlugin(e){q.hook(F.SETUP_DEVTOOLS_PLUGIN,e)},perfStart(e){return q.hook(F.PERFORMANCE_START,e)},perfEnd(e){return q.hook(F.PERFORMANCE_END,e)}},setupDevToolsPlugin(e,t){return q.callHook(F.SETUP_DEVTOOLS_PLUGIN,e,t)}};var uc=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook(H.VISIT_COMPONENT_TREE,e)},inspectComponent:e=>{this.hooks.hook(H.INSPECT_COMPONENT,e)},editComponentState:e=>{this.hooks.hook(H.EDIT_COMPONENT_STATE,e)},getInspectorTree:e=>{this.hooks.hook(H.GET_INSPECTOR_TREE,e)},getInspectorState:e=>{this.hooks.hook(H.GET_INSPECTOR_STATE,e)},editInspectorState:e=>{this.hooks.hook(H.EDIT_INSPECTOR_STATE,e)},inspectTimelineEvent:e=>{this.hooks.hook(H.INSPECT_TIMELINE_EVENT,e)},timelineCleared:e=>{this.hooks.hook(H.TIMELINE_CLEARED,e)},setPluginSettings:e=>{this.hooks.hook(H.SET_PLUGIN_SETTINGS,e)}}}notifyComponentUpdate(e){if(x.highPerfModeEnabled)return;const t=_o().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(F.COMPONENT_UPDATED,...n)}else q.callHook(F.COMPONENT_UPDATED);this.hooks.callHook(D.SEND_INSPECTOR_STATE,{inspectorId:t.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook(D.ADD_INSPECTOR,{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&ac(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){x.highPerfModeEnabled||this.hooks.callHook(D.SEND_INSPECTOR_TREE,{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){x.highPerfModeEnabled||this.hooks.callHook(D.SEND_INSPECTOR_STATE,{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook(D.CUSTOM_INSPECTOR_SELECT_NODE,{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook(H.VISIT_COMPONENT_TREE,e)}now(){return x.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook(D.TIMELINE_LAYER_ADDED,{options:e,plugin:this.plugin})}addTimelineEvent(e){x.highPerfModeEnabled||this.hooks.callHook(D.TIMELINE_EVENT_ADDED,{options:e,plugin:this.plugin})}getSettings(e){return yo(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook(D.GET_COMPONENT_INSTANCES,{app:e})}getComponentBounds(e){return this.hooks.callHook(D.GET_COMPONENT_BOUNDS,{instance:e})}getComponentName(e){return this.hooks.callHook(D.GET_COMPONENT_NAME,{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook(D.COMPONENT_HIGHLIGHT,{uid:t})}unhighlightElement(){return this.hooks.callHook(D.COMPONENT_UNHIGHLIGHT)}};const fc=uc,lc="__vue_devtool_undefined__",dc="__vue_devtool_infinity__",pc="__vue_devtool_negative_infinity__",hc="__vue_devtool_nan__",Ec={[lc]:"undefined",[hc]:"NaN",[dc]:"Infinity",[pc]:"-Infinity"};Object.entries(Ec).reduce((e,[t,n])=>(e[n]=t,e),{}),O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__??=new Set;function gc(e,t){return Ro.setupDevToolsPlugin(e,t)}function _c(e,t){const[n,r]=e;if(n.app!==t)return;const o=new fc({plugin:{setupFn:r,descriptor:n},ctx:Ue});n.packageName==="vuex"&&o.on.editInspectorState(s=>{o.sendInspectorState(s.inspectorId)}),r(o)}function So(e,t){O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||x.highPerfModeEnabled&&!t?.inspectingComponent||(O.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),Nn.forEach(n=>{_c(n,e)}))}const jt="__VUE_DEVTOOLS_ROUTER__",rt="__VUE_DEVTOOLS_ROUTER_INFO__";O[rt]??={currentRoute:null,routes:[]},O[jt]??={},new Proxy(O[rt],{get(e,t){return O[rt][t]}}),new Proxy(O[jt],{get(e,t){if(t==="value")return O[jt]}});function mc(e){const t=new Map;return(e?.getRoutes()||[]).filter(n=>!t.has(n.path)&&t.set(n.path,1))}function An(e){return e.map(t=>{let{path:n,name:r,children:o,meta:s}=t;return o?.length&&(o=An(o)),{path:n,name:r,children:o,meta:s}})}function yc(e){if(e){const{fullPath:t,hash:n,href:r,path:o,name:s,matched:i,params:a,query:c}=e;return{fullPath:t,hash:n,href:r,path:o,name:s,params:a,query:c,matched:An(i)}}return e}function Rc(e,t){function n(){const r=e.app?.config.globalProperties.$router,o=yc(r?.currentRoute.value),s=An(mc(r)),i=console.warn;console.warn=()=>{},O[rt]={currentRoute:o?Xr(o):{},routes:Xr(s)},O[jt]=r,console.warn=i}n(),Ro.on.componentUpdated(ke(()=>{t.value?.app===e.app&&(n(),!x.highPerfModeEnabled&&Ue.hooks.callHook(Re.ROUTER_INFO_UPDATED,{state:O[rt]}))},200))}function Sc(e){return{async getInspectorTree(t){const n={...t,app:G.value.app,rootNodes:[]};return await new Promise(r=>{e.callHookWith(async o=>{await Promise.all(o.map(s=>s(n))),r()},H.GET_INSPECTOR_TREE)}),n.rootNodes},async getInspectorState(t){const n={...t,app:G.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()},H.GET_INSPECTOR_STATE)}),n.state},editInspectorState(t){const n=new za,r={...t,app:G.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))},H.EDIT_INSPECTOR_STATE)},sendInspectorState(t){const n=Mt(t);e.callHook(D.SEND_INSPECTOR_STATE,{inspectorId:t,plugin:{descriptor:n.descriptor,setupFn:()=>({})}})},inspectComponentInspector(){return Ha()},cancelInspectComponentInspector(){return ja()},getComponentRenderCode(t){const n=gn(G.value,t);if(n)return typeof n?.type!="function"?n.render.toString():n.type.toString()},scrollToComponent(t){return Za({id:t})},openInEditor:sc,getVueInspector:Fa,toggleApp(t,n){const r=Bt.value.find(o=>o.id===t);r&&(oc(t),rc(r),Rc(r,G),go(),So(r.app,n))},inspectDOM(t){const n=gn(G.value,t);if(n){const[r]=_n(n);r&&(O.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=r)}},updatePluginSettings(t,n,r){cc(t,n,r)},getPluginSettings(t){return{options:ic(t),values:yo(t)}}}}O.__VUE_DEVTOOLS_ENV__??={vitePluginDetected:!1};const wo=ec();O.__VUE_DEVTOOLS_KIT_CONTEXT__??={hooks:wo,get state(){return{...x,activeAppRecordId:G.id,activeAppRecord:G.value,appRecords:Bt.value}},api:Sc(wo)};const Ue=O.__VUE_DEVTOOLS_KIT_CONTEXT__;var wc=oo({"../../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"}},c=[";","?",":","@","&","=","+","$",",","/"].join(""),E=[";","?",":","@","&","=","+","$",","].join(""),p=[".","!","~","*","'","(",")"].join(""),f=function(_,l){var m="-",T="",h="",y=!0,S={},N,A,M,Z,z,Ve,fe,oe,xe,K,k,Me,Y,se,ee="";if(typeof _!="string")return"";if(typeof l=="string"&&(m=l),fe=a.en,oe=i.en,typeof l=="object"){N=l.maintainCase||!1,S=l.custom&&typeof l.custom=="object"?l.custom:S,M=+l.truncate>1&&l.truncate||!1,Z=l.uric||!1,z=l.uricNoSlash||!1,Ve=l.mark||!1,y=!(l.symbols===!1||l.lang===!1),m=l.separator||m,Z&&(ee+=c),z&&(ee+=E),Ve&&(ee+=p),fe=l.lang&&a[l.lang]&&y?a[l.lang]:y?a.en:{},oe=l.lang&&i[l.lang]?i[l.lang]:l.lang===!1||l.lang===!0?{}:i.en,l.titleCase&&typeof l.titleCase.length=="number"&&Array.prototype.toString.call(l.titleCase)?(l.titleCase.forEach(function($){S[$+""]=$+""}),A=!0):A=!!l.titleCase,l.custom&&typeof l.custom.length=="number"&&Array.prototype.toString.call(l.custom)&&l.custom.forEach(function($){S[$+""]=$+""}),Object.keys(S).forEach(function($){var Se;$.length>1?Se=new RegExp("\\b"+u($)+"\\b","gi"):Se=new RegExp(u($),"gi"),_=_.replace(Se,S[$])});for(k in S)ee+=k}for(ee+=m,ee=u(ee),_=_.replace(/(^\s+|\s+$)/g,""),Y=!1,se=!1,K=0,Me=_.length;K<Me;K++)k=_[K],R(k,S)?Y=!1:oe[k]?(k=Y&&oe[k].match(/[A-Za-z0-9]/)?" "+oe[k]:oe[k],Y=!1):k in r?(K+1<Me&&o.indexOf(_[K+1])>=0?(h+=k,k=""):se===!0?(k=s[h]+r[k],h=""):k=Y&&r[k].match(/[A-Za-z0-9]/)?" "+r[k]:r[k],Y=!1,se=!1):k in s?(h+=k,k="",K===Me-1&&(k=s[h]),se=!0):fe[k]&&!(Z&&c.indexOf(k)!==-1)&&!(z&&E.indexOf(k)!==-1)?(k=Y||T.substr(-1).match(/[A-Za-z0-9]/)?m+fe[k]:fe[k],k+=_[K+1]!==void 0&&_[K+1].match(/[A-Za-z0-9]/)?m:"",Y=!0):(se===!0?(k=s[h]+k,h="",se=!1):Y&&(/[A-Za-z0-9]/.test(k)||T.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),Y=!1),T+=k.replace(new RegExp("[^\\w\\s"+ee+"_-]","g"),m);return A&&(T=T.replace(/(\w)(\S*)/g,function($,Se,$t){var Be=Se.toUpperCase()+($t!==null?$t:"");return Object.keys(S).indexOf(Be.toLowerCase())<0?Be:Be.toLowerCase()})),T=T.replace(/\s+/g,m).replace(new RegExp("\\"+m+"+","g"),m).replace(new RegExp("(^\\"+m+"+|\\"+m+"+$)","g"),""),M&&T.length>M&&(xe=T.charAt(M)===m,T=T.slice(0,M),xe||(T=T.slice(0,T.lastIndexOf(m)))),!N&&!A&&(T=T.toLowerCase()),T},d=function(_){return function(m){return f(m,_)}},u=function(_){return _.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},R=function(g,_){for(var l in _)if(_[l]===g)return!0};if(typeof t<"u"&&t.exports)t.exports=f,t.exports.createSlug=d;else if(typeof define<"u"&&define.amd)define([],function(){return f});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=f,n.createSlug=d}catch{}})(e)})}),Tc=oo({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js":((e,t)=>{t.exports=wc()})});Tc(),O.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__??={id:0,appIds:new Set};function Oc(e){x.highPerfModeEnabled=e??!x.highPerfModeEnabled,!e&&G.value&&So(G.value.app)}function Nc(e){x.devtoolsClientDetected={...x.devtoolsClientDetected,...e},Oc(!Object.values(x.devtoolsClientDetected).some(Boolean))}O.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__??=Nc;var Pc=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()}},To=class{constructor(e){this.generateIdentifier=e,this.kv=new Pc}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)}},Ic=class extends To{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 Ac(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 bc(e,t){const n=Ac(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 Le(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Ht(e,t){return e.indexOf(t)!==-1}function Oo(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var kc=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return bc(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};const Cc=e=>Object.prototype.toString.call(e).slice(8,-1),No=e=>typeof e>"u",vc=e=>e===null,ot=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,bn=e=>ot(e)&&Object.keys(e).length===0,de=e=>Array.isArray(e),Uc=e=>typeof e=="string",Lc=e=>typeof e=="number"&&!isNaN(e),Dc=e=>typeof e=="boolean",Vc=e=>e instanceof RegExp,st=e=>e instanceof Map,it=e=>e instanceof Set,Po=e=>Cc(e)==="Symbol",xc=e=>e instanceof Date&&!isNaN(e.valueOf()),Mc=e=>e instanceof Error,Io=e=>typeof e=="number"&&isNaN(e),Bc=e=>Dc(e)||vc(e)||No(e)||Lc(e)||Uc(e)||Po(e),jc=e=>typeof e=="bigint",Hc=e=>e===1/0||e===-1/0,Zc=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Gc=e=>e instanceof URL,Ao=e=>e.replace(/\./g,"\\."),kn=e=>e.map(String).map(Ao).join("."),at=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 re(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const bo=[re(No,"undefined",()=>null,()=>{}),re(jc,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),re(xc,"Date",e=>e.toISOString(),e=>new Date(e)),re(Mc,"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}),re(Vc,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),re(it,"set",e=>[...e.values()],e=>new Set(e)),re(st,"map",e=>[...e.entries()],e=>new Map(e)),re(e=>Io(e)||Hc(e),"number",e=>Io(e)?"NaN":e>0?"Infinity":"-Infinity",Number),re(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),re(Gc,"URL",e=>e.toString(),e=>new URL(e))];function Zt(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const ko=Zt((e,t)=>Po(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}),$c=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Co=Zt(Zc,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=$c[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function vo(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const Uo=Zt(vo,(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)}),Lo=Zt((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)}),Fc=[Uo,ko,Lo,Co],Do=(e,t)=>{const n=Oo(Fc,o=>o.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Oo(bo,o=>o.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},Vo={};bo.forEach(e=>{Vo[e.annotation]=e});const qc=(e,t,n)=>{if(de(t))switch(t[0]){case"symbol":return ko.untransform(e,t,n);case"class":return Uo.untransform(e,t,n);case"custom":return Lo.untransform(e,t,n);case"typed-array":return Co.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=Vo[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},De=(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 xo(e){if(Ht(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Ht(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Ht(e,"constructor"))throw new Error("constructor is not allowed as a property")}const zc=(e,t)=>{xo(t);for(let n=0;n<t.length;n++){const r=t[n];if(it(e))e=De(e,+r);else if(st(e)){const o=+r,s=+t[++n]==0?"key":"value",i=De(e,o);switch(s){case"key":e=i;break;case"value":e=e.get(i);break}}else e=e[r]}return e},Cn=(e,t,n)=>{if(xo(t),t.length===0)return n(e);let r=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(de(r)){const a=+i;r=r[a]}else if(ot(r))r=r[i];else if(it(r)){const a=+i;r=De(r,a)}else if(st(r)){if(s===t.length-2)break;const a=+i,c=+t[++s]==0?"key":"value",E=De(r,a);switch(c){case"key":r=E;break;case"value":r=r.get(E);break}}}const o=t[t.length-1];if(de(r)?r[+o]=n(r[+o]):ot(r)&&(r[o]=n(r[o])),it(r)){const s=De(r,+o),i=n(s);s!==i&&(r.delete(s),r.add(i))}if(st(r)){const s=+t[t.length-2],i=De(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(!de(e)){Le(e,(s,i)=>vn(s,t,[...n,...at(i)]));return}const[r,o]=e;o&&Le(o,(s,i)=>{vn(s,t,[...n,...at(i)])}),t(r,n)}function Kc(e,t,n){return vn(t,(r,o)=>{e=Cn(e,o,s=>qc(s,r,n))}),e}function Wc(e,t){function n(r,o){const s=zc(e,at(o));r.map(at).forEach(i=>{e=Cn(e,i,()=>s)})}if(de(t)){const[r,o]=t;r.forEach(s=>{e=Cn(e,at(s),()=>e)}),o&&Le(o,n)}else Le(t,n);return e}const Jc=(e,t)=>ot(e)||de(e)||st(e)||it(e)||vo(e,t);function Yc(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function Qc(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,c)=>a.length-c.length));const[s,...i]=o;s.length===0?r=i.map(kn):n[kn(s)]=i.map(kn)}),r?bn(n)?[r]:[r,n]:bn(n)?void 0:n}const Mo=(e,t,n,r,o=[],s=[],i=new Map)=>{const a=Bc(e);if(!a){Yc(e,o,t);const u=i.get(e);if(u)return r?{transformedValue:null}:u}if(!Jc(e,n)){const u=Do(e,n),R=u?{transformedValue:u.value,annotations:[u.type]}:{transformedValue:e};return a||i.set(e,R),R}if(Ht(s,e))return{transformedValue:null};const c=Do(e,n),E=c?.value??e,p=de(E)?[]:{},f={};Le(E,(u,R)=>{if(R==="__proto__"||R==="constructor"||R==="prototype")throw new Error(`Detected property ${R}. This is a prototype pollution risk, please remove it from your object.`);const g=Mo(u,t,n,r,[...o,R],[...s,e],i);p[R]=g.transformedValue,de(g.annotations)?f[R]=g.annotations:ot(g.annotations)&&Le(g.annotations,(_,l)=>{f[Ao(R)+"."+l]=_})});const d=bn(f)?{transformedValue:p,annotations:c?[c.type]:void 0}:{transformedValue:p,annotations:c?[c.type,f]:f};return a||i.set(e,d),d};function Bo(e){return Object.prototype.toString.call(e).slice(8,-1)}function jo(e){return Bo(e)==="Array"}function Xc(e){if(Bo(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function eu(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 Un(e,t={}){if(jo(e))return e.map(o=>Un(o,t));if(!Xc(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(jo(t.props)&&!t.props.includes(s))return o;const i=e[s];return eu(o,s,Un(i,t),e,t.nonenumerable),o},{})}var U=class{constructor({dedupe:e=!1}={}){this.classRegistry=new Ic,this.symbolRegistry=new To(t=>t.description??""),this.customTransformerRegistry=new kc,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=Mo(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const o=Qc(t,this.dedupe);return o&&(r.meta={...r.meta,referentialEqualities:o}),r}deserialize(e){const{json:t,meta:n}=e;let r=Un(t);return n?.values&&(r=Kc(r,n.values,this)),n?.referentialEqualities&&(r=Wc(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)}};U.defaultInstance=new U,U.serialize=U.defaultInstance.serialize.bind(U.defaultInstance),U.deserialize=U.defaultInstance.deserialize.bind(U.defaultInstance),U.stringify=U.defaultInstance.stringify.bind(U.defaultInstance),U.parse=U.defaultInstance.parse.bind(U.defaultInstance),U.registerClass=U.defaultInstance.registerClass.bind(U.defaultInstance),U.registerSymbol=U.defaultInstance.registerSymbol.bind(U.defaultInstance),U.registerCustom=U.defaultInstance.registerCustom.bind(U.defaultInstance),U.allowErrorProps=U.defaultInstance.allowErrorProps.bind(U.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 Gt={template:"<div>This is component</div>"},Ln=le({name:"parentA",path:"/parentA/[paramA]"}),Ho=le({parent:Ln,name:"parentA.childA",path:"/childA/[?paramB]"}),tu=le({parent:Ln,name:"parentA.childB",path:"/childB/[paramD]",component:Gt}),nu=le({parent:Ho,name:"parentA.childA.grandChildA",path:"/[paramC]",component:Gt});le({name:"parentB",path:"/parentB",component:Gt}),le({name:"parentC",path:"/",component:Gt});function ru(e,t){return t!=="1"?`${e} ${t}`:e}const ou=({route:e})=>!!e.name,su=({route:e,payload:t})=>{if(!t.filter)return!0;if(!Te(e))return!1;const n=t.filter.toLowerCase();return!!(e.name.toLowerCase().includes(n)||e.schema.path.value.toLowerCase().includes(n))},iu=e=>ou(e)&&su(e),au=ct(),cu=2282478,uu=2278750,fu=1483594;function lu(e,t={match:!1,exactMatch:!1}){const n=[];return e.name&&n.push({label:e.name,textColor:0,backgroundColor:cu}),t.match&&n.push({label:"match",textColor:0,backgroundColor:uu}),t.exactMatch&&n.push({label:"exact-match",textColor:0,backgroundColor:fu}),{id:e.id,label:e.name,tags:n}}function du(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 pu(e){const t=[];return Te(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 hu({router:e,app:t,routes:n}){if(!tt()||e.hasDevtools)return;e.hasDevtools=!0;const r=au(),o=new Map(n.map(a=>[a.id,a])),s=`kitbag-router-routes.${r}`,i=`kitbag-router.${r}`;gc({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:ru("Routes",r),treeFilterPlaceholder:"Search routes"}),a.on.getInspectorTree(c=>{c.app!==t||c.inspectorId!==s||(c.rootNodes=n.filter(E=>iu({route:E,payload:c})).map(E=>{const p=du(E,e.route);return lu(E,p)}))}),w.watch(()=>e.route,()=>{a.sendInspectorTree(s)},{deep:!0,immediate:!1}),a.on.getInspectorState(c=>{if(c.app!==t||c.inspectorId!==s)return;const E=o.get(c.nodeId);E&&(c.state={options:pu(E)})}),a.sendInspectorTree(s),a.sendInspectorState(s)})}function Eu(e,t){const n=new URLSearchParams(e),r=new URLSearchParams(t);for(const[o,s]of r.entries())n.delete(o,s);return n}function gu(e,t,n={}){const{query:r,hash:o}=X(t);for(const s of e){if(!zr(s))continue;const{success:i,params:a}=s.tryParse(t,n);if(i){const c=s.stringify(a),{query:E}=X(c),p=Eu(r,E);return Ut(s,a,{...n,query:p,hash:o})}}}const Zo=/^(\/.+?)\/+$/;function _u(e){const{path:t,...n}=X(e);return St({...n,path:t.replace(Zo,"$1")})}function mu(e){const{path:t}=X(e);return Zo.test(t)}function Go(e){!te(e)||!tt()||e.title.then(t=>{t!==void 0&&(document.title=t)})}function yu(){const e=o=>{n.value=o},t=()=>{n.value=null},n=w.ref(null),r=w.computed(()=>Ze(n.value)?Ut(n.value.route):null);return{currentRejection:n,currentRejectionRoute:r,updateRejection:e,clearRejection:t}}function Ru(e,t,n=[]){const o=t?.isGlobalRouter??!0?Wr:Symbol(),s=t?.removeTrailingSlashes??!0,{routes:i,getRouteByName:a,getRejectionByType:c}=Gi(e,n,t),E=c("NotFound"),p=Pi(),f=Ut(E.route),d=Qs();d.addGlobalRouteHooks(zi(n));const u=ct(),R=Yi(o),g=xi(),_=ki({mode:t?.historyMode,listener:({location:I})=>{const v=me(I);m(v,{state:I.state,replace:!0})}});function l(I,v={}){const B=!se(I),L=i.filter(j=>j.isRelative===B);return gu(L,I,{...v,...{removeTrailingSlashes:s}})}async function m(I,v={}){if(mu(I)&&s){const ie=_u(I);if(W(ie))return N(ie,v)}const B=u();_.stopListening();const L=l(I,v)??f,V=Lu(B),j=await d.runBeforeRouteHooks({to:L,from:V});switch(j.status){case"ABORT":return;case"PUSH":_.update(I,v),await S(...j.to);return;case"REJECT":_.update(I,v),A(j.type,L,V);break;case"SUCCESS":_.update(I,v),fe();break;default:throw new Error(`Switch is not exhaustive for before hook response status: ${JSON.stringify(j)}`)}se(I)||T(L,V);const je=await d.runAfterRouteHooks({to:L,from:V});switch(je.status){case"PUSH":await S(...je.to);break;case"REJECT":A(je.type,L,V);break;case"SUCCESS":break;default:const ie=je;throw new Error(`Switch is not exhaustive for after hook response status: ${JSON.stringify(ie)}`)}Go(z.value??L),_.startListening()}function T(I,v){const{props:B,loaders:L}=p.setRouteValues(I);h(B,"props",I,v),h(L,"loader",I,v),K(I)}function h(I,v,B,L){I.then(V=>{switch(V.status){case"SUCCESS":case"ABANDONED":break;case"PUSH":S(...V.to);break;case"REJECT":A(V.type,B,L);break;default:const j=V;throw new Error(`Switch is not exhaustive for route data response status: ${JSON.stringify(j)}`)}}).catch(V=>{try{d.runErrorHooks(V,{to:B,from:L,source:v})}catch(j){if(j instanceof ue){S(...j.response.to);return}if(j instanceof _e){A(j.response.type,B,L);return}throw j}})}const y=(I,v={},B={})=>{const L=a(I);if(!L)throw new Mi(I);return Ut(L,v,B)},S=(I,v,B)=>{if(W(I)){const ie={...v},Ft=Fe(I,{query:ie.query,hash:ie.hash});return m(Ft,ie)}if(typeof I=="string"){const{replace:ie,...Ft}={...B},Vu={...v},Vn=y(I,Vu,Ft),xu=qr({...Vn.matched.state},{...Vn.state,...Ft.state});return m(Vn.href,{replace:ie,state:xu})}const{replace:L,...V}={...v},j=qr({...I.matched.state},{...I.state,...V.state}),je=Fe(I.href,{query:V.query,hash:V.hash});return m(je,{replace:L,state:j})},N=(I,v,B)=>{if(W(I)){const V={...v,replace:!0};return S(I,V)}if(typeof I=="string"){const V={...B,replace:!0},j={...v};return S(I,j,V)}const L={...v,replace:!0};return S(I,L)};function A(I,v=null,B=null){const L=c(I);L&&(d.runRejectionHooks(L,{to:v,from:B}),Ve(L))}const M=I=>{A(I),Go(z.value)},{currentRejection:Z,currentRejectionRoute:z,updateRejection:Ve,clearRejection:fe}=yu(),{currentRoute:oe,routerRoute:xe,updateRoute:K}=Ri({routerKey:o,fallbackRoute:f,push:S,getData:p.getData}),k=Ui(t?.initialUrl),Me=_.location.state,{host:Y}=X(k),se=Si(Y);let ee=!1;const $=w.ref(!1),{promise:Se,resolve:$t}=Promise.withResolvers();async function Be(){if(ee)return Se;ee=!0,as(i)&&await cs(),await m(k,{replace:!0,state:Me}),_.startListening(),$t(),$.value=!0}function Uu(){_.stopListening()}function Lu(I){return Fo(I)?null:{...oe}}function Du(I){d.setVueApp(I),p.setVueApp(I);const v=ln(o),B=Lr(o);I.component("RouterView",v),I.component("RouterLink",B),I.provide(Nr(o),Z),I.provide(Tr(o),d),I.provide(Ar(o),p),I.provide(Or(o),R),I.provide(Cr,g),I.provide(o,Dn),hu({router:Dn,app:I,routes:i}),Be()}const Dn={route:xe,resolve:y,find:l,push:S,replace:N,reject:M,refresh:_.refresh,forward:_.forward,back:_.back,go:_.go,install:Du,isExternal:se,onBeforeRouteEnter:d.onBeforeRouteEnter,onBeforeRouteUpdate:d.onBeforeRouteUpdate,onBeforeRouteLeave:d.onBeforeRouteLeave,onAfterRouteEnter:d.onAfterRouteEnter,onAfterRouteUpdate:d.onAfterRouteUpdate,onAfterRouteLeave:d.onAfterRouteLeave,onError:d.onError,onRejection:d.onRejection,prefetch:t?.prefetch,start:Be,started:$,stop:Uu,key:o,hasDevtools:!1};return Dn}const J=Dr(Wr),Su=J.onBeforeRouteLeave,wu=J.onBeforeRouteUpdate,Tu=J.onAfterRouteLeave,Ou=J.onAfterRouteUpdate,Nu=J.isRoute,Pu=J.RouterView,Iu=J.RouterLink,Au=J.useRoute,bu=J.useRouter,ku=J.useQueryValue,Cu=J.useLink,vu=J.useRejection;b.DuplicateParamsError=Mn,b.LoaderDataAccessError=Bn,b.LoaderNameConflict=jn,b.MetaPropertyConflict=Hn,b.NavigationAbandonedError=pe,b.RouterLink=Iu,b.RouterNotInstalledError=he,b.RouterView=Pu,b.UseRouteInvalidError=Zn,b.arrayOf=Ei,b.asUrlString=xn,b.createExternalRoute=$s,b.createParam=Kn,b.createRejection=yr,b.createRoute=le,b.createRouter=Ru,b.createRouterAssets=Dr,b.createRouterPlugin=pi,b.createUrl=Ie,b.isRoute=Nu,b.isUrlString=W,b.literal=tn,b.onAfterRouteLeave=Tu,b.onAfterRouteUpdate=Ou,b.onBeforeRouteLeave=Su,b.onBeforeRouteUpdate=wu,b.tupleOf=_i,b.unionOf=xr,b.useLink=Cu,b.useQueryValue=ku,b.useRejection=vu,b.useRoute=Au,b.useRouter=bu,b.withDefault=rs,b.withParams=mt,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}));
|