@vitejs/devtools 0.0.0-alpha.1 → 0.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/{bin.mjs → bin.js} +1 -1
  2. package/dist/cli-commands-BlB9kpfS.js +97 -0
  3. package/dist/cli-commands.d.ts +18 -0
  4. package/dist/cli-commands.js +5 -0
  5. package/dist/cli.js +17 -0
  6. package/dist/client/inject.d.ts +4 -0
  7. package/dist/client/inject.js +33 -0
  8. package/dist/client/standalone/assets/index-D_dd87ed.js +7 -0
  9. package/dist/client/standalone/assets/index-cEBqyH_x.css +1 -0
  10. package/dist/client/standalone/index.html +14 -0
  11. package/dist/client/webcomponents.d.ts +45 -0
  12. package/dist/client/webcomponents.js +1089 -0
  13. package/dist/dirs-DcSK9l9L.js +9 -0
  14. package/dist/dirs.d.ts +5 -0
  15. package/dist/dirs.js +3 -0
  16. package/dist/dist-B0hQ6r05.js +6779 -0
  17. package/dist/index-DdVYVGyC.d.ts +153 -0
  18. package/dist/index.d.ts +46 -0
  19. package/dist/index.js +4 -0
  20. package/dist/plugins-znai7bMv.js +1371 -0
  21. package/package.json +50 -57
  22. package/dist/cli-B_fm1Ing.mjs +0 -1039
  23. package/dist/cli.d.mts +0 -1
  24. package/dist/cli.mjs +0 -3
  25. package/dist/dirs-6LDFDMFM.mjs +0 -7
  26. package/dist/dirs.d.mts +0 -4
  27. package/dist/dirs.mjs +0 -3
  28. package/dist/functions-BdbZxtmk.mjs +0 -3
  29. package/dist/functions-d6vvbndK.mjs +0 -234
  30. package/dist/index.d.mts +0 -13
  31. package/dist/index.mjs +0 -7
  32. package/dist/nitro.json +0 -15
  33. package/dist/node/cli.d.mts +0 -1
  34. package/dist/node/cli.mjs +0 -3
  35. package/dist/public/200.html +0 -16
  36. package/dist/public/404.html +0 -16
  37. package/dist/public/_nuxt/B4lqwDon.js +0 -1
  38. package/dist/public/_nuxt/BMB3EEfo.js +0 -1
  39. package/dist/public/_nuxt/BYYDnj5Q.js +0 -1
  40. package/dist/public/_nuxt/BeSFnMzD.js +0 -1
  41. package/dist/public/_nuxt/BfzgVO01.js +0 -1
  42. package/dist/public/_nuxt/BpyJ-U40.js +0 -1
  43. package/dist/public/_nuxt/BxkFQq1F.js +0 -1
  44. package/dist/public/_nuxt/C1DPtPHu.js +0 -1
  45. package/dist/public/_nuxt/C8oXVTvZ.js +0 -1
  46. package/dist/public/_nuxt/CWPvh8od.js +0 -1
  47. package/dist/public/_nuxt/CiwsH4Q6.js +0 -33
  48. package/dist/public/_nuxt/CsnZqsGp.js +0 -16
  49. package/dist/public/_nuxt/CzEHI6hC.js +0 -1
  50. package/dist/public/_nuxt/D-iXojuv.js +0 -1
  51. package/dist/public/_nuxt/DHpfOFMA.js +0 -1
  52. package/dist/public/_nuxt/DsbJux3u.js +0 -1
  53. package/dist/public/_nuxt/builds/latest.json +0 -1
  54. package/dist/public/_nuxt/builds/meta/3597016d-955b-44d8-83dd-f083d7311779.json +0 -1
  55. package/dist/public/_nuxt/diff.worker-9IK9E-UB.js +0 -10
  56. package/dist/public/_nuxt/entry.BHghYYEP.css +0 -1
  57. package/dist/public/_nuxt/error-404.7Y6KY23b.css +0 -1
  58. package/dist/public/_nuxt/error-500.CaUb23JJ.css +0 -1
  59. package/dist/public/_nuxt/graph.BGBTj9Q7.css +0 -1
  60. package/dist/public/dot-grid-dark.png +0 -0
  61. package/dist/public/dot-grid-light.png +0 -0
  62. package/dist/public/favicon.svg +0 -15
  63. package/dist/public/fonts/dmmono-612bc94f.woff2 +0 -0
  64. package/dist/public/fonts/dmmono-cbe07c46.woff2 +0 -0
  65. package/dist/public/fonts/dmsans-b28079ff.woff2 +0 -0
  66. package/dist/public/fonts/dmsans-b4f1d45c.woff2 +0 -0
  67. package/dist/public/index.html +0 -16
  68. package/dist/public/vite-devtools.svg +0 -17
  69. /package/{LICENSE.md → LICENSE} +0 -0
  70. /package/dist/{cli-C3YoliaZ.d.mts → cli.d.ts} +0 -0
package/dist/cli.d.mts DELETED
@@ -1 +0,0 @@
1
- import "./cli-C3YoliaZ.mjs";
package/dist/cli.mjs DELETED
@@ -1,3 +0,0 @@
1
- import "./cli-B_fm1Ing.mjs";
2
- import "./dirs-6LDFDMFM.mjs";
3
- import "./functions-d6vvbndK.mjs";
@@ -1,7 +0,0 @@
1
- import { fileURLToPath } from "node:url";
2
-
3
- //#region src/dirs.ts
4
- const distDir = fileURLToPath(new URL("../dist/public", import.meta.url));
5
-
6
- //#endregion
7
- export { distDir };
package/dist/dirs.d.mts DELETED
@@ -1,4 +0,0 @@
1
- //#region src/dirs.d.ts
2
- declare const distDir: string;
3
- //#endregion
4
- export { distDir };
package/dist/dirs.mjs DELETED
@@ -1,3 +0,0 @@
1
- import { distDir } from "./dirs-6LDFDMFM.mjs";
2
-
3
- export { distDir };
@@ -1,3 +0,0 @@
1
- import { createServerFunctions } from "./functions-d6vvbndK.mjs";
2
-
3
- export { createServerFunctions };
@@ -1,234 +0,0 @@
1
- import { diffLines } from "diff";
2
-
3
- //#region src/node/rpc/utils.ts
4
- function defineRpcFunction(definition) {
5
- return definition;
6
- }
7
-
8
- //#endregion
9
- //#region src/node/rpc/functions/get-payload.ts
10
- const getPayload = defineRpcFunction({
11
- name: "vite:get-payload",
12
- type: "static",
13
- setup: () => {
14
- return { handler: async () => ({ timestamp: Date.now() }) };
15
- }
16
- });
17
-
18
- //#endregion
19
- //#region src/node/rpc/functions/open-in-editor.ts
20
- const openInEditor = defineRpcFunction({
21
- name: "vite:open-in-editor",
22
- type: "action",
23
- setup: () => ({ handler: async (path) => {
24
- await import("launch-editor").then((r) => r.default(path));
25
- } })
26
- });
27
-
28
- //#endregion
29
- //#region src/node/rpc/functions/open-in-finder.ts
30
- const openInFinder = defineRpcFunction({
31
- name: "vite:open-in-finder",
32
- type: "action",
33
- setup: () => ({ handler: async (path) => {
34
- await import("open").then((r) => r.default(path));
35
- } })
36
- });
37
-
38
- //#endregion
39
- //#region src/node/rpc/functions/rolldown-get-module-info.ts
40
- const DURATION_THRESHOLD$1 = 10;
41
- const rolldownGetModuleInfo = defineRpcFunction({
42
- name: "vite:rolldown:get-module-info",
43
- type: "query",
44
- setup: ({ manager }) => {
45
- return { handler: async ({ session, module }) => {
46
- const reader = await manager.loadSession(session);
47
- const events = reader.manager.events;
48
- if (!events.length) return null;
49
- const info = {
50
- id: module,
51
- loads: [],
52
- imports: [],
53
- importers: [],
54
- resolve_ids: [],
55
- ...reader.manager.modules.get(module) || {}
56
- };
57
- events.forEach((start, index) => {
58
- if (start.action !== "HookLoadCallStart" || start.module_id !== module) return;
59
- const end = events.find((e) => e.action === "HookLoadCallEnd" && e.call_id === start.call_id, index);
60
- if (!end || end.action !== "HookLoadCallEnd") {
61
- console.error(`[rolldown] Load call end not found for ${start.call_id}`);
62
- return;
63
- }
64
- const duration = +end.timestamp - +start.timestamp;
65
- if (!end.source && duration < DURATION_THRESHOLD$1) return;
66
- info.loads.push({
67
- type: "load",
68
- id: start.event_id,
69
- plugin_name: start.plugin_name,
70
- plugin_index: start.plugin_index,
71
- source: end.source,
72
- timestamp_start: +start.timestamp,
73
- timestamp_end: +end.timestamp,
74
- duration
75
- });
76
- });
77
- events.forEach((end) => {
78
- if (end.action !== "HookResolveIdCallEnd" || end.resolved_id !== module) return;
79
- const start = events.find((e) => e.action === "HookResolveIdCallStart" && e.call_id === end.call_id);
80
- if (!start || start.action !== "HookResolveIdCallStart") {
81
- console.error(`[rolldown] resolveId call start not found for ${end.event_id}`);
82
- return;
83
- }
84
- const duration = +end.timestamp - +start.timestamp;
85
- const data = {
86
- type: "resolve",
87
- id: end.event_id,
88
- importer: start.importer,
89
- module_request: start.module_request,
90
- import_kind: start.import_kind,
91
- plugin_name: end.plugin_name,
92
- plugin_index: end.plugin_index,
93
- resolved_id: end.resolved_id,
94
- timestamp_start: +start.timestamp,
95
- timestamp_end: +end.timestamp,
96
- duration
97
- };
98
- const existingIndex = info.resolve_ids.findIndex((r) => r.importer === start.importer && r.module_request === start.module_request && r.import_kind === start.import_kind && r.plugin_index === end.plugin_index);
99
- if (existingIndex >= 0) info.resolve_ids.splice(existingIndex, 1);
100
- info.resolve_ids.push(data);
101
- });
102
- info.loads.sort((a, b) => a.plugin_index - b.plugin_index);
103
- info.resolve_ids.sort((a, b) => a.plugin_index - b.plugin_index);
104
- return info;
105
- } };
106
- }
107
- });
108
-
109
- //#endregion
110
- //#region src/node/rpc/functions/rolldown-get-module-raw-events.ts
111
- const rolldownGetModuleRawEvents = defineRpcFunction({
112
- name: "vite:rolldown:get-module-raw-events",
113
- type: "query",
114
- setup: ({ manager }) => {
115
- return { handler: async ({ session, module }) => {
116
- const reader = await manager.loadSession(session);
117
- const events = reader.manager.events.filter((event) => "module_id" in event && event.module_id !== module);
118
- return { events };
119
- } };
120
- }
121
- });
122
-
123
- //#endregion
124
- //#region src/node/rpc/functions/rolldown-get-module-transforms.ts
125
- const DURATION_THRESHOLD = 10;
126
- const rolldownGetModuleTransforms = defineRpcFunction({
127
- name: "vite:rolldown:get-module-transforms",
128
- type: "query",
129
- setup: ({ manager }) => {
130
- return { handler: async ({ session, module }) => {
131
- const reader = await manager.loadSession(session);
132
- const events = reader.manager.events;
133
- const transforms = [];
134
- if (!events.length) return transforms;
135
- events.forEach((start, index) => {
136
- if (start.action !== "HookTransformCallStart" || start.module_id !== module) return;
137
- const end = events.find((e) => e.action === "HookTransformCallEnd" && e.call_id === start.call_id, index);
138
- if (!end || end.action !== "HookTransformCallEnd") {
139
- console.error(`[rolldown] Transform call end not found for ${start.event_id}`);
140
- return;
141
- }
142
- const duration = +end.timestamp - +start.timestamp;
143
- if (end.transformed_source === start.source && duration < DURATION_THRESHOLD) return;
144
- let diff_added = 0;
145
- let diff_removed = 0;
146
- if (start.source !== end.transformed_source && start.source != null && end.transformed_source != null) {
147
- const delta = diffLines(start.source, end.transformed_source);
148
- diff_added = delta.filter((d) => d.added).map((d) => d.value).join("").split(/\n/g).length;
149
- diff_removed = delta.filter((d) => d.removed).map((d) => d.value).join("").split(/\n/g).length;
150
- }
151
- transforms.push({
152
- type: "transform",
153
- id: start.event_id,
154
- plugin_name: start.plugin_name,
155
- plugin_index: start.plugin_index,
156
- source_from: start.source,
157
- source_to: end.transformed_source,
158
- diff_added,
159
- diff_removed,
160
- timestamp_start: +start.timestamp,
161
- timestamp_end: +end.timestamp,
162
- duration
163
- });
164
- });
165
- return transforms.sort((a, b) => a.plugin_index - b.plugin_index);
166
- } };
167
- }
168
- });
169
-
170
- //#endregion
171
- //#region src/node/rpc/functions/rolldown-get-raw-events.ts
172
- const rolldownGetRawEvents = defineRpcFunction({
173
- name: "vite:rolldown:get-raw-events",
174
- type: "query",
175
- setup: ({ manager }) => {
176
- return { handler: async ({ session }) => {
177
- const reader = await manager.loadSession(session);
178
- return reader.manager.events;
179
- } };
180
- }
181
- });
182
-
183
- //#endregion
184
- //#region src/node/rpc/functions/rolldown-get-session-summary.ts
185
- const rolldownGetSessionSummary = defineRpcFunction({
186
- name: "vite:rolldown:get-session-summary",
187
- type: "query",
188
- setup: async ({ manager }) => {
189
- return { handler: async ({ session }) => {
190
- const reader = await manager.loadSession(session);
191
- return {
192
- id: session,
193
- meta: reader.meta,
194
- modules: Array.from(reader.manager.modules.values()).sort((a, b) => a.id.localeCompare(b.id))
195
- };
196
- } };
197
- }
198
- });
199
-
200
- //#endregion
201
- //#region src/node/rpc/functions/rolldown-list-sessions.ts
202
- const rolldownListSessions = defineRpcFunction({
203
- name: "vite:rolldown:list-sessions",
204
- type: "query",
205
- setup: ({ manager }) => {
206
- return { handler: async () => {
207
- return manager.list();
208
- } };
209
- }
210
- });
211
-
212
- //#endregion
213
- //#region src/node/rpc/index.ts
214
- const rpcFunctions = [
215
- openInEditor,
216
- openInFinder,
217
- getPayload,
218
- rolldownListSessions,
219
- rolldownGetRawEvents,
220
- rolldownGetSessionSummary,
221
- rolldownGetModuleInfo,
222
- rolldownGetModuleRawEvents,
223
- rolldownGetModuleTransforms
224
- ];
225
-
226
- //#endregion
227
- //#region src/node/functions.ts
228
- async function createServerFunctions(options) {
229
- const functions = await Promise.all(rpcFunctions.map(async (fn) => [fn.name, (await fn.setup(options)).handler]));
230
- return Object.fromEntries(functions);
231
- }
232
-
233
- //#endregion
234
- export { createServerFunctions };
package/dist/index.d.mts DELETED
@@ -1,13 +0,0 @@
1
- //#region src/shared/types/vite.d.ts
2
-
3
- interface ViteDevToolsConfig {
4
- /**
5
- * The name of the project
6
- */
7
- name?: string;
8
- }
9
- //#endregion
10
- //#region src/node/config.d.ts
11
- declare function defineConfig(config: ViteDevToolsConfig): ViteDevToolsConfig;
12
- //#endregion
13
- export { ViteDevToolsConfig, defineConfig };
package/dist/index.mjs DELETED
@@ -1,7 +0,0 @@
1
- //#region src/node/config.ts
2
- function defineConfig(config) {
3
- return config;
4
- }
5
-
6
- //#endregion
7
- export { defineConfig };
package/dist/nitro.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "date": "2025-06-30T04:56:35.716Z",
3
- "preset": "static",
4
- "framework": {
5
- "name": "nuxt",
6
- "version": "3.17.5"
7
- },
8
- "versions": {
9
- "nitro": "2.11.13"
10
- },
11
- "commands": {
12
- "preview": "npx serve ./public"
13
- },
14
- "config": {}
15
- }
@@ -1 +0,0 @@
1
- import "../cli-C3YoliaZ.mjs";
package/dist/node/cli.mjs DELETED
@@ -1,3 +0,0 @@
1
- import "../cli-B_fm1Ing.mjs";
2
- import "../dirs-6LDFDMFM.mjs";
3
- import "../functions-d6vvbndK.mjs";
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width,initial-scale=1">
3
- <title>Vite DevTools</title>
4
- <link rel="stylesheet" href="/_nuxt/entry.BHghYYEP.css" crossorigin>
5
- <link rel="modulepreload" as="script" crossorigin href="/_nuxt/CsnZqsGp.js">
6
- <link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.7Y6KY23b.css">
7
- <link rel="prefetch" as="script" crossorigin href="/_nuxt/C1DPtPHu.js">
8
- <link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.CaUb23JJ.css">
9
- <link rel="prefetch" as="script" crossorigin href="/_nuxt/BxkFQq1F.js">
10
- <meta name="description" content="DevTools for Vite">
11
- <meta property="og:title" content="Vite DevTools">
12
- <meta property="og:description" content="DevTools for Vite">
13
- <link rel="icon" type="image/svg+xml" href="/favicon.svg">
14
- <script type="module" src="/_nuxt/CsnZqsGp.js" crossorigin></script>
15
- <script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1751259395676,false]</script>
16
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"3597016d-955b-44d8-83dd-f083d7311779",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1,16 +0,0 @@
1
- <!DOCTYPE html><html lang="en" class="bg-dots"><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width,initial-scale=1">
3
- <title>Vite DevTools</title>
4
- <link rel="stylesheet" href="/_nuxt/entry.BHghYYEP.css" crossorigin>
5
- <link rel="modulepreload" as="script" crossorigin href="/_nuxt/CsnZqsGp.js">
6
- <link rel="prefetch" as="style" crossorigin href="/_nuxt/error-404.7Y6KY23b.css">
7
- <link rel="prefetch" as="script" crossorigin href="/_nuxt/C1DPtPHu.js">
8
- <link rel="prefetch" as="style" crossorigin href="/_nuxt/error-500.CaUb23JJ.css">
9
- <link rel="prefetch" as="script" crossorigin href="/_nuxt/BxkFQq1F.js">
10
- <meta name="description" content="DevTools for Vite">
11
- <meta property="og:title" content="Vite DevTools">
12
- <meta property="og:description" content="DevTools for Vite">
13
- <link rel="icon" type="image/svg+xml" href="/favicon.svg">
14
- <script type="module" src="/_nuxt/CsnZqsGp.js" crossorigin></script>
15
- <script id="unhead:payload" type="application/json">{"title":"Vite DevTools"}</script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1751259395676,false]</script>
16
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/",buildId:"3597016d-955b-44d8-83dd-f083d7311779",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1 +0,0 @@
1
- import{Vt as e,computed as t,createBaseVNode as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createVNode as o,defineComponent as s,h as c,isDark as l,normalizeClass as u,normalizeStyle as d,nuxt_link_default as f,openBlock as p,renderSlot as m,resolveDynamicComponent as h,toDisplayString as g,unref as _,useRoute as v,withCtx as y}from"./CsnZqsGp.js";import{getFileTypeFromModuleId as b}from"./BpyJ-U40.js";import{getHashColorFromString as x,getHsla as S,getPluginColor as C}from"./CzEHI6hC.js";const w=[`title`];var T=s({__name:`FileIcon`,props:{filename:{}},setup(e){let n=e,r=t(()=>b(n.filename));return(e,t)=>(p(),a(`div`,{"flex-none":``,title:r.value.description||r.value.name,class:u([r.value.icon,_(l)?``:`brightness-60 hue-rotate-180 invert-100 saturate-200`])},null,10,w))}}),E=T,D=s({name:`HighlightedPath`,props:{path:{type:String,required:!0},minimal:{type:Boolean,default:!1}},setup(e){return()=>{let t=e.path.split(/([?/&:=])/g),n=`path`,r=t.map(()=>[]),i=t.map(()=>[]),a=t.map(e=>c(`span`,{class:``},e)),o=new Set;return t.forEach((s,c)=>{if(s===`?`&&(n=`query`),n===`path`){if(s.match(/^\.+$/)||s===`/`?r[c].push(`op50`):(s===`node_modules`||s===`dist`||s===`lib`||s.match(/^\.\w/))&&r[c].push(`op60`),s===`node_modules`&&e.minimal)for(let e=0;e<c+2;e++)o.add(e);if(s===`.pnpm`&&(r[c]?.push(`op50`),a[c]&&(a[c].children=`…`),o.add(c+1),o.add(c+2),a[c+4]?.children===`node_modules`&&(o.add(c+3),o.add(c+4))),s===`:`&&(a[c-1]&&i[c-1].push(`color: ${C(t[c-1])}`),r[c].push(`op50`)),t[c-2]===`node_modules`&&!s.startsWith(`.`)){let e=`color: ${C(t[c])}`;i[c].push(e),s.startsWith(`@`)&&(i[c+1].push(e),i[c+2].push(e))}}n===`query`&&(s===`?`?r[c].push(`text-red-500 dark:text-red-400`):s===`&`&&r[c].push(`text-orange-500 dark:text-orange-400`),s===`=`?r[c].push(`text-orange-900 dark:text-orange-200 op50`):t[c+1]===`=`?r[c].push(`text-amber-900 dark:text-amber-200`):r[c].push(`text-orange-900 dark:text-orange-200`))}),a.forEach((e,t)=>{e.props&&(e.props.class=r[t].join(` `),e.props.style=i[t].join(`;`))}),Array.from(o).sort((e,t)=>t-e).forEach(e=>{a.splice(e,1)}),a}}});const O=[`textContent`];var k=s({__name:`Badge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let i=e,a=t(()=>!i.text||i.color===!1?{}:{color:typeof i.color==`number`?S(i.color):x(i.text),background:typeof i.color==`number`?S(i.color,.1):x(i.text,.1)}),o=t(()=>{switch(i.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(e,t)=>(p(),r(h(e.as||`span`),{"ws-nowrap":``,rounded:``,class:u(o.value),style:d(a.value)},{default:y(()=>[m(e.$slots,`default`,{},()=>[n(`span`,{textContent:g(i.text)},null,8,O)])]),_:3},8,[`class`,`style`]))}}),A=k;const j=/^[A-Za-z]:\//;function M(e=``){return e&&e.replace(/\\/g,`/`).replace(j,e=>e.toUpperCase())}const N=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,P=/^\/([A-Za-z]:)?$/;function F(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}const I=function(...e){e=e.map(e=>M(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:F();!i||i.length===0||(t=`${i}/${t}`,n=R(i))}return t=L(t,!n),n&&!R(t)?`/${t}`:t.length>0?t:`.`};function L(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}const R=function(e){return N.test(e)},z=function(e,t){let n=I(e).replace(P,`$1`).split(`/`),r=I(t).replace(P,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},B={"font-mono":``,"text-sm":``};var V=s({__name:`ModuleId`,props:{id:{},badges:{type:Boolean},icon:{type:Boolean,default:!0},link:{type:[Boolean,String]},minimal:{type:Boolean},kind:{},session:{},cwd:{}},setup(s){let c=s,l=v(),d=window.location,b=t(()=>{if(!c.id)return``;let e=c.id.replace(/%2F/g,`/`),t=c.cwd||c.session.meta.cwd,n=t?z(t,e):e;return n.startsWith(`.`)||(n=`./${n}`),n.startsWith(`./`)||n.match(/^(?:\.\.\/){1,3}[^.]/)?n:e}),x=t(()=>`flex items-center`);return(t,s)=>{let v=E,S=D,C=A;return p(),r(h(t.link?_(f):`div`),{to:t.link?typeof t.link==`string`?t.link:{path:_(l).path,query:{..._(l).query,module:t.id},hash:_(d).hash}:void 0},{default:y(()=>[o(_(e),{"my-auto":``,"text-sm":``,"font-mono":``,block:``,"w-full":``,triggers:[`hover`],delay:1200,disabled:(c.id?.length||0)<30,placement:`bottom-start`},{popper:y(()=>[n(`span`,B,g(c.id),1)]),default:y(()=>[t.id?(p(),a(`div`,{key:0,class:u(x.value)},[t.icon?(p(),r(v,{key:0,filename:t.id,"mr1.5":``},null,8,[`filename`])):i(``,!0),n(`span`,null,[o(S,{path:b.value,minimal:t.minimal},null,8,[`path`,`minimal`])]),m(t.$slots,`default`),t.kind?(p(),r(C,{key:1,class:`ml1`,text:t.kind},null,8,[`text`])):i(``,!0)],2)):i(``,!0)]),_:3},8,[`disabled`])]),_:3},8,[`to`])}}}),H=V;export{A as Badge_default,H as ModuleId_default,z as relative};
@@ -1 +0,0 @@
1
- import{createBlock as e,defineComponent as t,h as n,openBlock as r,resolveDynamicComponent as i}from"./CsnZqsGp.js";import{getPluginColor as a}from"./CzEHI6hC.js";var o=t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let e=o.compact?c:s;for(let t of e)if(o.name.startsWith(t))return o.compact?n(`span`,o.name.slice(t.length)):n(`span`,[n(`span`,{class:`op50`},t),n(`span`,o.name.slice(t.length))]);let t=o.name.split(`:`);return t.length>1?n(`span`,[n(`span`,{style:{color:a(t[0])}},`${t[0]}:`),n(`span`,t.slice(1).join(`:`))]):n(`span`,o.name)}return(t,n)=>(r(),e(i(l)))}}),s=o;export{s as PluginName_default};
@@ -1 +0,0 @@
1
- import{Fragment as e,computed as t,createBaseVNode as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createTextVNode as o,createVNode as s,defineComponent as c,normalizeClass as l,nuxt_link_default as u,openBlock as d,renderList as f,renderSlot as p,toDisplayString as m,unref as h,withCtx as g}from"./CsnZqsGp.js";import"./BpyJ-U40.js";import{Badge_default as _,ModuleId_default as v}from"./B4lqwDon.js";import"./CzEHI6hC.js";import{sideNavItems as y}from"./DsbJux3u.js";var b=c({__name:`NumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let n=e,r=t(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(e,t)=>(d(),a(`div`,{class:l([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(d(),a(`div`,{key:0,class:l([e.icon,`mr-1`])},null,2)):i(``,!0),o(` `+m(e.prefix||``)+m(r.value)+m(e.suffix||``)+` `,1),p(e.$slots,`after`)],2))}}),x=b;const S={flex:`~ col gap-2`,p6:``},C={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_160px_2fr] gap-2 items-center`},w={"font-mono":``},T=[`datetime`],E={key:3},D={border:`~ base rounded`,p4:``,grid:`~ cols-[max-content_1fr] gap-2 items-center`},O={flex:`~ gap-2`},k={flex:`~ gap-2`,"mt-10":``};var A=c({__name:`index`,props:{session:{}},setup(c){let p=c,b=t(()=>[{title:`Build ID`,value:p.session.id,icon:`i-ph-hash-duotone`},{title:`Created At`,value:new Date(p.session.meta.timestamp),icon:`i-ph-clock-duotone`},{title:`Directory`,value:p.session.meta.cwd,icon:`i-ph-folder-duotone`},{title:`Total Modules`,value:p.session.modulesList.length,icon:`i-ph-files-duotone`},{title:`Plugins`,value:p.session.meta.plugins.length,icon:`i-ph-plugs-duotone`},{title:`Platform`,value:p.session.meta.platform,icon:`i-ph-cpu-duotone`,type:`badge`},{title:`Format`,value:p.session.meta.format,icon:`i-ph-file-duotone`,type:`badge`}]);return(t,c)=>{let A=_,j=x,M=v,N=u;return d(),a(`div`,S,[c[1]||=n(`div`,{op50:``},` Meta Info `,-1),n(`div`,C,[(d(!0),a(e,null,f(b.value,t=>(d(),a(e,{key:t.title},[n(`div`,{class:l(t.icon)},null,2),n(`div`,null,m(t.title),1),n(`div`,w,[t.value instanceof Date?(d(),a(`time`,{key:0,datetime:t.value.toISOString()},m(t.value.toLocaleString()),9,T)):t.type===`badge`?(d(),r(A,{key:1,text:String(t.value),py1:``},null,8,[`text`])):typeof t.value==`number`?(d(),r(j,{key:2,number:t.value,py1:``,"rounded-full":``,"inline-block":``,"text-sm":``},null,8,[`number`])):(d(),a(`span`,E,m(t.value),1))])],64))),128))]),c[2]||=n(`div`,{op50:``,"mt-4":``},` Build Entries `,-1),n(`div`,D,[(d(!0),a(e,null,f(p.session.meta.inputs,n=>(d(),a(e,{key:n},[s(A,{text:n.name||``},null,8,[`text`]),s(M,{id:n.import||``,session:t.session,link:`/session/${t.session.id}/graph?module=${encodeURIComponent(n.import||``)}`},null,8,[`id`,`session`,`link`])],64))),128))]),c[3]||=n(`div`,{op50:``,"mt-4":``},` Views `,-1),n(`div`,O,[(d(!0),a(e,null,f(h(y),t=>(d(),a(e,{key:t.to},[t.category===`session`?(d(),r(N,{key:0,"btn-action":``,to:{path:t.to},flex:`~ col`,"min-w-40":``},{default:g(()=>[n(`div`,{class:l(t.icon),"text-2xl":``},null,2),o(` `+m(t.title),1)]),_:2},1032,[`to`])):i(``,!0)],64))),128))]),n(`div`,k,[s(N,{"btn-action":``,to:{path:`/`}},{default:g(()=>c[0]||=[n(`div`,{"i-ph-arrow-left-duotone":``},null,-1),o(` Re-select Session `)]),_:1,__:[0]})])])}}}),j=A;export{j as default};
@@ -1 +0,0 @@
1
- import{Fragment as e,LogoBanner_default as t,__plugin_vue_export_helper_default as n,createBaseVNode as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createTextVNode as s,createVNode as c,defineComponent as l,nuxt_link_default as u,openBlock as d,renderList as f,toDisplayString as p,unref as m,useRpc as h,withAsyncContext as g,withCtx as _}from"./CsnZqsGp.js";import"./BpyJ-U40.js";import{Badge_default as v,ModuleId_default as y}from"./B4lqwDon.js";import"./CzEHI6hC.js";import{Timestamp_default as b}from"./BfzgVO01.js";const x={flex:`~ col gap-2`},S={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},C={"font-mono":``,"font-sm":``},w={flex:`~ gap-1 items-center`},T={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``};var E=l({__name:`SessionSelector`,async setup(t){let n,l,E=h(),D=([n,l]=g(()=>E.value[`vite:rolldown:list-sessions`]()),n=await n,l(),n);return(t,n)=>{let l=y,h=v,g=b,E=u;return d(),o(`div`,x,[(d(!0),o(e,null,f(m(D),e=>(d(),i(E,{key:e.id,to:`/session/${e.id}`,hover:`bg-active`,border:`~ base rounded-md`,flex:`~ col gap-1`,px4:``,py3:``},{default:_(()=>[r(`div`,S,[n[0]||=r(`div`,{"i-ph-hash-duotone":``},null,-1),s(` `+p(e.id),1)]),r(`div`,C,p(e.meta.cwd),1),r(`div`,w,[c(l,{id:e.meta.inputs[0].import,cwd:e.meta.cwd},null,8,[`id`,`cwd`]),c(h,{text:e.meta.inputs[0].name||`entry`},null,8,[`text`]),e.meta.inputs.length>1?(d(),o(`span`,T,` +`+p(e.meta.inputs.length-1),1)):a(``,!0)]),c(g,{timestamp:e.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1032,[`to`]))),128))])}}}),D=E;const O={},k={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``};function A(e,n){let i=t,a=D;return d(),o(`div`,k,[c(i),n[0]||=r(`p`,{op50:``},` Select a build session to get started: `,-1),c(a)])}var j=n(O,[[`render`,A]]);export{j as default};
@@ -1 +0,0 @@
1
- import{createCommentVNode as e,createElementBlock as t,defineComponent as n,formatTimeAgo as r,openBlock as i,toDisplayString as a,unref as o}from"./CsnZqsGp.js";const s={key:0,"font-mono":``};var c=n({__name:`Timestamp`,props:{timestamp:{}},setup(n){let c=n;return(n,l)=>n.timestamp?(i(),t(`span`,s,a(o(r)(new Date(c.timestamp))),1)):e(``,!0)}}),l=c;export{l as Timestamp_default};
@@ -1 +0,0 @@
1
- var e=class{_map;_weakMap;constructor(){this._map=new Map,this._weakMap=new WeakMap}[Symbol.toStringTag]=`MaybeWeakMap`;delete(e){return this._weakMap.has(e)?this._weakMap.delete(e):this._map.delete(e)}has(e){return this._weakMap.has(e)?!0:this._map.has(e)}set(e,t){return this._weakMap.has(e)?this._weakMap.set(e,t):this._map.set(e,t),this}get(e){return this._weakMap.has(e)?this._weakMap.get(e):this._map.get(e)}clear(){this._map.clear()}},t=class{_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);let n=this._getLastMap(e);return n.set(e[e.length-1],t),this}get(e){let t=this._getLastMap(e);return t.get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){let t=this._getLastMap(e);return t.delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length,n=this._lengthMap.get(t);return n?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length,n=this._lengthMap.get(t);return n?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}const i=[{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-folder-node-open`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`};function o(e){return i.find(t=>t.name===e)??a}const s=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return a});export{s as getFileTypeFromModuleId,o as getFileTypeFromName,r as makeCachedFunction};
@@ -1 +0,0 @@
1
- import{__plugin_vue_export_helper_default as e,createBaseVNode as t,createElementBlock as n,openBlock as r,toDisplayString as i,useHead as a}from"./CsnZqsGp.js";const o={class:`antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u={__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},version:{type:String,default:``},statusCode:{type:Number,default:500},statusMessage:{type:String,default:`Server error`},description:{type:String,default:`This page is temporarily unavailable.`}},setup(e){let u=e;return a({title:`${u.statusCode} - ${u.statusMessage} | ${u.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(a,u)=>(r(),n(`div`,o,[u[0]||=t(`div`,{class:`-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight`},null,-1),t(`div`,s,[t(`h1`,{class:`font-medium mb-8 sm:text-10xl text-8xl`,textContent:i(e.statusCode)},null,8,c),t(`p`,{class:`font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl`,textContent:i(e.description)},null,8,l)])]))}};var d=e(u,[[`__scopeId`,`data-v-a9c2b999`]]);export{d as default};
@@ -1 +0,0 @@
1
- import{__plugin_vue_export_helper_default as e,createBaseVNode as t,createElementBlock as n,createTextVNode as r,createVNode as i,nuxt_link_default as a,openBlock as o,toDisplayString as s,useHead as c,withCtx as l}from"./CsnZqsGp.js";const u={class:`antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black`},d={class:`max-w-520px text-center z-20`},f=[`textContent`],p=[`textContent`],m={class:`flex items-center justify-center w-full`},h={__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},version:{type:String,default:``},statusCode:{type:Number,default:404},statusMessage:{type:String,default:`Not Found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(e){let h=e;return c({title:`${h.statusCode} - ${h.statusMessage} | ${h.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(c,h)=>{let g=a;return o(),n(`div`,u,[h[0]||=t(`div`,{class:`fixed left-0 right-0 spotlight z-10`},null,-1),t(`div`,d,[t(`h1`,{class:`font-medium mb-8 sm:text-10xl text-8xl`,textContent:s(e.statusCode)},null,8,f),t(`p`,{class:`font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl`,textContent:s(e.description)},null,8,p),t(`div`,m,[i(g,{to:`/`,class:`cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md`},{default:l(()=>[r(s(e.backHome),1)]),_:1})])])])}}};var g=e(h,[[`__scopeId`,`data-v-b40a1cc7`]]);export{g as default};
@@ -1 +0,0 @@
1
- import{Fragment as e,Loading_default as t,createBaseVNode as n,createBlock as r,createCommentVNode as i,createElementBlock as a,createVNode as o,defineComponent as s,kt as c,openBlock as l,renderList as u,toDisplayString as d,unref as f,useAsyncState as p,useRoute as m,useRpc as h,withCtx as g}from"./CsnZqsGp.js";import"./BpyJ-U40.js";import{Badge_default as _,ModuleId_default as v}from"./B4lqwDon.js";import"./CzEHI6hC.js";import{Timestamp_default as y}from"./BfzgVO01.js";import{PluginName_default as b}from"./BMB3EEfo.js";const x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`];var D=s({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`source`,`*`]},session:{}},setup(t){let s=t;function p(e,t){let n=new Set(t);return n.has(`source`)&&(n.add(`source`),n.add(`transformed_source`)),n.has(`plugin_name`)&&n.add(`plugin_index`),Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))}function m(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`?e.source:e.action===`HookTransformCallEnd`?e.transformed_source:null}return(t,h)=>{let D=v,O=_,k=b,A=y;return l(),a(e,null,[t.events.length?i(``,!0):(l(),a(`div`,x,h[0]||=[n(`div`,{p5:``,italic:``},` No events found `,-1)])),n(`table`,null,[n(`tbody`,null,[(l(!0),a(e,null,u(s.events,_=>(l(),a(`tr`,{key:_.event_id},[(l(!0),a(e,null,u(s.fields,e=>(l(),a(`td`,{key:e,px2:``},[e===`module_id`?(l(),r(D,{key:0,id:`module_id`in _?_.module_id:``,session:t.session},null,8,[`id`,`session`])):e===`action`?(l(),r(O,{key:1,text:_.action},null,8,[`text`])):e===`plugin_name`&&`plugin_name`in _?(l(),a(`div`,S,[o(k,{"font-mono":``,name:_.plugin_name},null,8,[`name`]),n(`code`,C,`#`+d(_.plugin_index),1)])):e===`event_id`?(l(),a(`div`,w,d(_.event_id),1)):e===`source`&&m(_)?(l(),r(f(c),{key:4},{popper:g(()=>[n(`pre`,{p1:``,"text-sm":``,textContent:d(m(_))},null,8,T)]),default:g(()=>[h[1]||=n(`div`,{"i-ph-code":``},null,-1)]),_:2,__:[1]},1024)):e===`timestamp`&&`timestamp`in _?(l(),r(A,{key:5,"text-sm":``,timestamp:_.timestamp},null,8,[`timestamp`])):e===`*`?(l(),a(`pre`,{key:6,"text-sm":``,textContent:d(p(_,t.fields))},null,8,E)):i(``,!0)]))),128))]))),128))])])],64)}}}),O=D;const k={key:1};var A=s({__name:`raw`,props:{session:{}},setup(e){let n=e,i=h(),s=m().query,c=p(async()=>await i.value[`vite:rolldown:get-module-raw-events`]?.({session:n.session.id,module:s.module}),{events:[]});return(e,n)=>{let i=O,s=t;return l(),a(`div`,null,[f(c).isReady?(l(),r(i,{key:0,events:f(c).state.value.events,session:e.session},null,8,[`events`,`session`])):(l(),a(`div`,k,[o(s)]))])}}}),j=A;export{j as default};
@@ -1 +0,0 @@
1
- import{Fragment as e,createBaseVNode as t,createElementBlock as n,createVNode as r,defineComponent as i,openBlock as a,renderList as o,toDisplayString as s}from"./CsnZqsGp.js";import"./CzEHI6hC.js";import{PluginName_default as c}from"./BMB3EEfo.js";const l={p4:``},u={py2:``,op50:``},d={flex:`~ col gap-1`};var f=i({__name:`plugins`,props:{session:{}},setup(i){return(i,f)=>{let p=c;return a(),n(`div`,l,[t(`div`,u,` Plugins (`+s(i.session.meta.plugins.length)+`) `,1),t(`div`,d,[(a(!0),n(e,null,o(i.session.meta.plugins,e=>(a(),n(`div`,{key:e.id,"font-mono":``},[r(p,{name:e.name},null,8,[`name`])]))),128))])])}}}),p=f;export{p as default};