97 lines
4.0 KiB
JavaScript
97 lines
4.0 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./pages-g-EVEhKa.js","./_plugin-vue_export-helper-DfavQbjy.js","./payload-BX9lTMvN.js","./runtime-core.esm-bundler-Cyv4obHQ.js","./ModuleList-ByxGSHde.js","./vue-router-BxYGFXy-.js","./QuerySelector-iLRAQoow.js","./options-D_MMddT_.js","./search-Bklj8tNk.js","./_...all_-DVz6Qbfk.js","./metric-D2Mof43y.js","./hot-D67q3Up2.js","./module-BFxZWV4q.js","./module-2YhSO2gi.css","./plugins-Ngzgf8uz.js"])))=>i.map(i=>d[i]);
|
|
import { Suspense, createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, h, onMounted, openBlock, resolveComponent, withAsyncContext, withCtx } from "./runtime-core.esm-bundler-Cyv4obHQ.js";
|
|
import { createApp, createRouter, createWebHashHistory } from "./vue-router-BxYGFXy-.js";
|
|
import { __vitePreload, createPinia, isStaticMode, usePayloadStore } from "./payload-BX9lTMvN.js";
|
|
(function polyfill() {
|
|
const relList = document.createElement("link").relList;
|
|
if (relList && relList.supports && relList.supports("modulepreload")) return;
|
|
for (const link of document.querySelectorAll("link[rel=\"modulepreload\"]")) processPreload(link);
|
|
new MutationObserver((mutations) => {
|
|
for (const mutation of mutations) {
|
|
if (mutation.type !== "childList") continue;
|
|
for (const node of mutation.addedNodes) if (node.tagName === "LINK" && node.rel === "modulepreload") processPreload(node);
|
|
}
|
|
}).observe(document, {
|
|
childList: true,
|
|
subtree: true
|
|
});
|
|
function getFetchOpts(link) {
|
|
const fetchOpts = {};
|
|
if (link.integrity) fetchOpts.integrity = link.integrity;
|
|
if (link.referrerPolicy) fetchOpts.referrerPolicy = link.referrerPolicy;
|
|
if (link.crossOrigin === "use-credentials") fetchOpts.credentials = "include";
|
|
else if (link.crossOrigin === "anonymous") fetchOpts.credentials = "omit";
|
|
else fetchOpts.credentials = "same-origin";
|
|
return fetchOpts;
|
|
}
|
|
function processPreload(link) {
|
|
if (link.ep) return;
|
|
link.ep = true;
|
|
const fetchOpts = getFetchOpts(link);
|
|
fetch(link.href, fetchOpts);
|
|
}
|
|
})();
|
|
const routes = [{
|
|
path: "/",
|
|
name: "/",
|
|
component: () => __vitePreload(() => import("./pages-g-EVEhKa.js"), __vite__mapDeps([0,1,2,3,4,5,6,7,8]), import.meta.url),
|
|
children: [
|
|
{
|
|
path: ":all(.*)",
|
|
name: "//[...all]",
|
|
component: () => __vitePreload(() => import("./_...all_-DVz6Qbfk.js"), __vite__mapDeps([9,1,3]), import.meta.url)
|
|
},
|
|
{
|
|
path: "metric",
|
|
name: "//metric",
|
|
component: () => __vitePreload(() => import("./metric-D2Mof43y.js"), __vite__mapDeps([10,1,2,3,8,7,6,11]), import.meta.url)
|
|
},
|
|
{
|
|
path: "module",
|
|
name: "//module",
|
|
component: () => __vitePreload(() => import("./module-BFxZWV4q.js"), __vite__mapDeps([12,1,2,3,4,5,6,7,11,13]), import.meta.url)
|
|
},
|
|
{
|
|
path: "plugins",
|
|
name: "//plugins",
|
|
component: () => __vitePreload(() => import("./plugins-Ngzgf8uz.js"), __vite__mapDeps([14,1,2,3,6]), import.meta.url)
|
|
}
|
|
]
|
|
}];
|
|
const _hoisted_1 = {
|
|
grid: "~ rows-[min-content_1fr]",
|
|
size: "h-screen w-screen"
|
|
};
|
|
var App_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
__name: "App",
|
|
async setup(__props) {
|
|
let __temp, __restore;
|
|
onMounted(() => {
|
|
if (isStaticMode) document.title = "Vite Inspect (Production)";
|
|
});
|
|
const payload = usePayloadStore();
|
|
[__temp, __restore] = withAsyncContext(() => payload.init()), await __temp, __restore();
|
|
return (_ctx, _cache) => {
|
|
const _component_RouterView = resolveComponent("RouterView");
|
|
return openBlock(), createElementBlock("main", _hoisted_1, [(openBlock(), createBlock(Suspense, null, {
|
|
fallback: withCtx(() => [..._cache[0] || (_cache[0] = [createTextVNode(" Loading... ", -1)])]),
|
|
default: withCtx(() => [createVNode(_component_RouterView)]),
|
|
_: 1
|
|
}))]);
|
|
};
|
|
}
|
|
});
|
|
var App_default = App_vue_vue_type_script_setup_true_lang_default;
|
|
const app = createApp(() => h(Suspense, {}, {
|
|
default: () => h(App_default),
|
|
fallback: "Loading..."
|
|
}));
|
|
const router = createRouter({
|
|
routes,
|
|
history: createWebHashHistory()
|
|
});
|
|
const pinia = createPinia();
|
|
app.use(pinia);
|
|
app.use(router);
|
|
app.mount("#app");
|