@nuxt/devtools 0.7.1 → 0.7.2

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 (89) hide show
  1. package/dist/chunks/module-main.mjs +43 -32
  2. package/dist/chunks/vscode.mjs +3 -3
  3. package/dist/client/200.html +2 -2
  4. package/dist/client/404.html +2 -2
  5. package/dist/client/__blank/index.html +2 -2
  6. package/dist/client/_nuxt/{AuthRequiredPanel.vue.17c2a7bd.js → AuthRequiredPanel.vue.d94228bf.js} +1 -1
  7. package/dist/client/_nuxt/{Badge.8d650e3b.js → Badge.9e141658.js} +1 -1
  8. package/dist/client/_nuxt/{CodeDiff.vue.cc3f76a7.js → CodeDiff.vue.8ecde49d.js} +1 -1
  9. package/dist/client/_nuxt/{CodeSnippets.vue.b4698473.js → CodeSnippets.vue.075af400.js} +1 -1
  10. package/dist/client/_nuxt/{ComposableItem.vue.6d7b799a.js → ComposableItem.vue.a393281a.js} +1 -1
  11. package/dist/client/_nuxt/DrawerRight.vue.24fdb17f.js +1 -0
  12. package/dist/client/_nuxt/{DurationDisplay.vue.aba5fa70.js → DurationDisplay.vue.cb1ce7c9.js} +1 -1
  13. package/dist/client/_nuxt/{FilepathItem.vue.84aa0a31.js → FilepathItem.vue.bcda207b.js} +1 -1
  14. package/dist/client/_nuxt/{HelpFab.vue.a8d95bd1.js → HelpFab.vue.eb7958b5.js} +1 -1
  15. package/dist/client/_nuxt/{LaunchPage.vue.00d3a484.js → LaunchPage.vue.b37b2c31.js} +1 -1
  16. package/dist/client/_nuxt/{NCheckbox.vue.63949e52.js → NCheckbox.vue.3e0df020.js} +1 -1
  17. package/dist/client/_nuxt/{NCodeBlock.vue.77e54b2e.js → NCodeBlock.vue.cf371d5c.js} +1 -1
  18. package/dist/client/_nuxt/{NIconTitle.vue.0a904b99.js → NIconTitle.vue.6e56e9bf.js} +1 -1
  19. package/dist/client/_nuxt/{NLink.vue.ec1f69e3.js → NLink.vue.c182fe7c.js} +1 -1
  20. package/dist/client/_nuxt/{NMarkdown.vue.a74698d6.js → NMarkdown.vue.b8ab3b27.js} +1 -1
  21. package/dist/client/_nuxt/{NSectionBlock.b074e0b8.js → NSectionBlock.082da68b.js} +1 -1
  22. package/dist/client/_nuxt/{NSelect.vue.9556d6e0.js → NSelect.vue.aca1eede.js} +1 -1
  23. package/dist/client/_nuxt/{NSwitch.vue.6c2556d0.js → NSwitch.vue.a9573e46.js} +1 -1
  24. package/dist/client/_nuxt/{NTip.vue.861372f7.js → NTip.vue.9da060a1.js} +1 -1
  25. package/dist/client/_nuxt/{Navbar.vue.1a2a587f.js → Navbar.vue.46161cea.js} +1 -1
  26. package/dist/client/_nuxt/StateEditor.vue.704ee859.js +1 -0
  27. package/dist/client/_nuxt/{__blank.3f7b27a6.js → __blank.cc8ac4a5.js} +1 -1
  28. package/dist/client/_nuxt/{analyze-build.c314de67.js → analyze-build.c13cc6a0.js} +1 -1
  29. package/dist/client/_nuxt/assets.b0aa1a24.js +16 -0
  30. package/dist/client/_nuxt/{client.ece13385.js → client.5063987d.js} +1 -1
  31. package/dist/client/_nuxt/{components.27bdfae4.js → components.20cce419.js} +1 -1
  32. package/dist/client/_nuxt/{custom-_name_.95a8297c.js → custom-_name_.47d99d56.js} +1 -1
  33. package/dist/client/_nuxt/{default.7e3f9818.js → default.93d544e2.js} +1 -1
  34. package/dist/client/_nuxt/entry.b258ed6f.css +1 -0
  35. package/dist/client/_nuxt/entry.c6e2a60e.js +21 -0
  36. package/dist/client/_nuxt/{error-404.66ff8897.js → error-404.54696fd3.js} +1 -1
  37. package/dist/client/_nuxt/{error-500.34984f69.js → error-500.e627a1cf.js} +1 -1
  38. package/dist/client/_nuxt/{full.748a1c93.js → full.815ab91e.js} +1 -1
  39. package/dist/client/_nuxt/{hooks.3ec974a8.js → hooks.c39838d4.js} +1 -1
  40. package/dist/client/_nuxt/{imports.8485b75c.js → imports.9c04b705.js} +1 -1
  41. package/dist/client/_nuxt/{index.7ae8a638.js → index.536b446f.js} +1 -1
  42. package/dist/client/_nuxt/{index.5152a001.js → index.975c44bd.js} +1 -1
  43. package/dist/client/_nuxt/{json-editor-vue.bbdad521.js → json-editor-vue.adfaf41f.js} +1 -1
  44. package/dist/client/_nuxt/{middleware.3c73e553.js → middleware.3b3e52c1.js} +1 -1
  45. package/dist/client/_nuxt/{modules.67fd6240.js → modules.25eccf08.js} +1 -1
  46. package/dist/client/_nuxt/{none.2f8cf810.js → none.56e615e7.js} +1 -1
  47. package/dist/client/_nuxt/{open-graph.79a7c77c.js → open-graph.5d3656bc.js} +1 -1
  48. package/dist/client/_nuxt/{overview.d953fa7e.js → overview.2e110ec6.js} +1 -1
  49. package/dist/client/_nuxt/{pages.7b386c55.js → pages.b48a49ac.js} +1 -1
  50. package/dist/client/_nuxt/{payload.f36f4355.js → payload.8894ebd2.js} +1 -1
  51. package/dist/client/_nuxt/{plugins.1c37e55d.js → plugins.00a84304.js} +1 -1
  52. package/dist/client/_nuxt/{runtime-configs.67f4f0b3.js → runtime-configs.84f1948c.js} +1 -1
  53. package/dist/client/_nuxt/{server-routes.64373863.js → server-routes.27ad41cb.js} +1 -1
  54. package/dist/client/_nuxt/{settings.b7df1779.js → settings.a2843494.js} +1 -1
  55. package/dist/client/_nuxt/{state-components.cd34df16.js → state-components.41c440e1.js} +1 -1
  56. package/dist/client/_nuxt/{state-modules.c2527930.js → state-modules.f9aa7c9b.js} +1 -1
  57. package/dist/client/_nuxt/{storage.13c667f3.js → storage.fbfb2dbc.js} +1 -1
  58. package/dist/client/_nuxt/{terminals.1c5a4ee9.js → terminals.06a142c3.js} +1 -1
  59. package/dist/client/_nuxt/{timeline.741d9e72.js → timeline.b9c3ac1e.js} +1 -1
  60. package/dist/client/_nuxt/unocss-runtime.8d4813e7.js +2 -0
  61. package/dist/client/_nuxt/{virtual-files.4e8316be.js → virtual-files.725c3f58.js} +1 -1
  62. package/dist/client/index.html +2 -2
  63. package/dist/client/modules/analyze-build/index.html +2 -2
  64. package/dist/client/modules/assets/index.html +2 -2
  65. package/dist/client/modules/components/index.html +2 -2
  66. package/dist/client/modules/hooks/index.html +2 -2
  67. package/dist/client/modules/imports/index.html +2 -2
  68. package/dist/client/modules/middleware/index.html +2 -2
  69. package/dist/client/modules/modules/index.html +2 -2
  70. package/dist/client/modules/open-graph/index.html +2 -2
  71. package/dist/client/modules/overview/index.html +2 -2
  72. package/dist/client/modules/pages/index.html +2 -2
  73. package/dist/client/modules/payload/index.html +2 -2
  74. package/dist/client/modules/plugins/index.html +2 -2
  75. package/dist/client/modules/runtime-configs/index.html +2 -2
  76. package/dist/client/modules/server-routes/index.html +2 -2
  77. package/dist/client/modules/storage/index.html +2 -2
  78. package/dist/client/modules/terminals/index.html +2 -2
  79. package/dist/client/modules/timeline/index.html +2 -2
  80. package/dist/client/modules/virtual-files/index.html +2 -2
  81. package/dist/client/settings/index.html +2 -2
  82. package/dist/module.json +1 -1
  83. package/package.json +20 -20
  84. package/dist/client/_nuxt/DrawerRight.vue.3ab85e5b.js +0 -1
  85. package/dist/client/_nuxt/StateEditor.vue.05c4fc16.js +0 -1
  86. package/dist/client/_nuxt/assets.722939b7.js +0 -16
  87. package/dist/client/_nuxt/entry.6507cb32.js +0 -21
  88. package/dist/client/_nuxt/entry.6f7d64f9.css +0 -1
  89. package/dist/client/_nuxt/unocss-runtime.d07b0096.js +0 -2
@@ -1,4 +1,4 @@
1
- import fs$1, { existsSync } from 'node:fs';
1
+ import fs, { existsSync } from 'node:fs';
2
2
  import { resolve, join as join$1, dirname } from 'pathe';
3
3
  import { logger, useNuxt, addPlugin, addVitePlugin } from '@nuxt/kit';
4
4
  import { searchForWorkspaceRoot } from 'vite';
@@ -8,7 +8,7 @@ import { createBirpcGroup } from 'birpc';
8
8
  import { R as ROUTE_AUTH, d as defaultTabOptions, W as WS_EVENT_NAME, a as ROUTE_ANALYZE, b as ROUTE_CLIENT, c as ROUTE_AUTH_VERIFY } from '../shared/devtools.d198e7a9.mjs';
9
9
  import { homedir } from 'node:os';
10
10
  import { join } from 'node:path';
11
- import fs from 'node:fs/promises';
11
+ import fsp from 'node:fs/promises';
12
12
  import { imageMeta } from 'image-meta';
13
13
  import { debounce } from 'perfect-debounce';
14
14
  import fg from 'fast-glob';
@@ -30,7 +30,7 @@ import require$$0 from 'os';
30
30
  import { spawn } from 'child_process';
31
31
  import { runtimeDir, clientDir, packageDir, isGlobalInstall } from '../dirs.mjs';
32
32
 
33
- const version = "0.7.1";
33
+ const version = "0.7.2";
34
34
 
35
35
  /*! (c) 2020 Andrea Giammarchi */
36
36
 
@@ -142,11 +142,11 @@ async function getDevAuthToken() {
142
142
  const dir = join(home, ".nuxt/devtools");
143
143
  const filepath = join(dir, "dev-auth-token.txt");
144
144
  if (existsSync(filepath))
145
- token = (await fs.readFile(filepath, "utf-8")).trim();
145
+ token = (await fsp.readFile(filepath, "utf-8")).trim();
146
146
  if (!token)
147
147
  token = randomStr(32);
148
- await fs.mkdir(dir, { recursive: true });
149
- await fs.writeFile(filepath, token, "utf-8");
148
+ await fsp.mkdir(dir, { recursive: true });
149
+ await fsp.writeFile(filepath, token, "utf-8");
150
150
  return token;
151
151
  }
152
152
 
@@ -251,7 +251,7 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh }) {
251
251
  }
252
252
  cache = await Promise.all(files.map(async (path) => {
253
253
  const filePath = resolve(publicDir, path);
254
- const stat = await fs.lstat(filePath);
254
+ const stat = await fsp.lstat(filePath);
255
255
  return {
256
256
  path,
257
257
  publicPath: join$1(baseURL, path),
@@ -271,7 +271,7 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh }) {
271
271
  if (_imageMetaCache.has(filepath))
272
272
  return _imageMetaCache.get(filepath);
273
273
  try {
274
- const meta = imageMeta(await fs.readFile(filepath));
274
+ const meta = imageMeta(await fsp.readFile(filepath));
275
275
  _imageMetaCache.set(filepath, meta);
276
276
  return meta;
277
277
  } catch (e) {
@@ -282,7 +282,7 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh }) {
282
282
  },
283
283
  async getTextAssetContent(filepath, limit = 300) {
284
284
  try {
285
- const content = await fs.readFile(filepath, "utf-8");
285
+ const content = await fsp.readFile(filepath, "utf-8");
286
286
  return content.slice(0, limit);
287
287
  } catch (e) {
288
288
  console.error(e);
@@ -296,19 +296,30 @@ function setupAssetsRPC({ nuxt, ensureDevAuthToken, refresh }) {
296
296
  files.map(async ({ name, data }) => {
297
297
  let dir = resolve(baseDir, name);
298
298
  try {
299
- await fs.stat(dir);
299
+ await fsp.stat(dir);
300
300
  const ext = dir.split(".").pop();
301
301
  const base = dir.slice(0, dir.length - ext.length - 1);
302
302
  let i = 1;
303
- while (await fs.access(`${base}-${i}.${ext}`).then(() => true).catch(() => false))
303
+ while (await fsp.access(`${base}-${i}.${ext}`).then(() => true).catch(() => false))
304
304
  i++;
305
305
  dir = `${base}-${i}.${ext}`;
306
306
  } catch (err) {
307
307
  }
308
- await fs.writeFile(dir, data, "base64");
308
+ await fsp.writeFile(dir, data, "base64");
309
309
  return dir;
310
310
  })
311
311
  );
312
+ },
313
+ async deleteStaticAsset(token, path) {
314
+ await ensureDevAuthToken(token);
315
+ return await fsp.unlink(path);
316
+ },
317
+ async renameStaticAsset(token, oldPath, newPath) {
318
+ await ensureDevAuthToken(token);
319
+ const exist = cache?.find((asset) => asset.filePath === newPath);
320
+ if (exist)
321
+ throw new Error(`File ${newPath} already exists`);
322
+ return await fsp.rename(oldPath, newPath);
312
323
  }
313
324
  };
314
325
  }
@@ -394,7 +405,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
394
405
  const filepath = nuxt.options._nuxtConfigFile;
395
406
  let source = latestGenerated;
396
407
  if (source == null)
397
- source = await fs.readFile(filepath, "utf-8");
408
+ source = await fsp.readFile(filepath, "utf-8");
398
409
  const mod = parseModule(source, { sourceFileName: filepath });
399
410
  addNuxtModule(mod, name);
400
411
  const generated = mod.generate().code;
@@ -422,7 +433,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
422
433
  }
423
434
  if (installSet.size === 0) {
424
435
  latestGenerated = null;
425
- await fs.writeFile(filepath, generated, "utf-8");
436
+ await fsp.writeFile(filepath, generated, "utf-8");
426
437
  }
427
438
  }
428
439
  return {
@@ -436,7 +447,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
436
447
  await ensureDevAuthToken(token);
437
448
  const commands = await getNpmCommand("uninstall", name);
438
449
  const filepath = nuxt.options._nuxtConfigFile;
439
- const source = await fs.readFile(filepath, "utf-8");
450
+ const source = await fsp.readFile(filepath, "utf-8");
440
451
  const mod = parseModule(source, { sourceFileName: filepath });
441
452
  const config = getDefaultExportOptions(mod);
442
453
  config.modules || (config.modules = []);
@@ -466,7 +477,7 @@ function setupNpmRPC({ nuxt, ensureDevAuthToken }) {
466
477
  console.error(result.stderr);
467
478
  throw new Error(`Failed to uninstall module', process exited with ${code}`);
468
479
  }
469
- await fs.writeFile(filepath, generated, "utf-8");
480
+ await fsp.writeFile(filepath, generated, "utf-8");
470
481
  }
471
482
  return {
472
483
  configOriginal: source,
@@ -727,16 +738,16 @@ const route = useRoute()
727
738
  async function enablePages(nuxt) {
728
739
  const pathApp = join$1(nuxt.options.srcDir, "app.vue");
729
740
  const pathPageIndex = join$1(nuxt.options.srcDir, "pages/index.vue");
730
- if (fs$1.existsSync(pathPageIndex)) {
741
+ if (fs.existsSync(pathPageIndex)) {
731
742
  logger.warn("pages/index.vue already exists, skipping");
732
743
  return;
733
744
  }
734
- let appContent = fs$1.existsSync(pathApp) ? await fs.readFile(pathApp, "utf-8") : void 0;
735
- await fs.mkdir(dirname(pathPageIndex), { recursive: true });
736
- await fs.writeFile(pathPageIndex, pagesIndexTemplate, "utf-8");
745
+ let appContent = fs.existsSync(pathApp) ? await fsp.readFile(pathApp, "utf-8") : void 0;
746
+ await fsp.mkdir(dirname(pathPageIndex), { recursive: true });
747
+ await fsp.writeFile(pathPageIndex, pagesIndexTemplate, "utf-8");
737
748
  if (appContent && !appContent.includes("<NuxtPage")) {
738
749
  appContent = appContent.replace("</template>", " <NuxtPage />\n</template>").replace(/<NuxtWelcome\s*\/>/, "");
739
- await fs.writeFile(pathApp, appContent, "utf-8");
750
+ await fsp.writeFile(pathApp, appContent, "utf-8");
740
751
  }
741
752
  logger.success("Routing creation wizard completed");
742
753
  }
@@ -6237,13 +6248,13 @@ function setupAnalyzeBuildRPC({ nuxt, refresh, ensureDevAuthToken }) {
6237
6248
  const files = await fg("*/meta.json", { cwd: analyzeDir, onlyFiles: true, absolute: true });
6238
6249
  builds = await Promise.all(files.map(async (file) => {
6239
6250
  const dir = dirname(file);
6240
- const json = JSON.parse(await fs.readFile(file, "utf-8"));
6251
+ const json = JSON.parse(await fsp.readFile(file, "utf-8"));
6241
6252
  return {
6242
6253
  ...json,
6243
6254
  features: {
6244
- bundleClient: fs$1.existsSync(join$1(dir, "client.html")),
6245
- bundleNitro: fs$1.existsSync(join$1(dir, "nitro.html")),
6246
- viteInspect: fs$1.existsSync(join$1(dir, ".vite-inspect"))
6255
+ bundleClient: fs.existsSync(join$1(dir, "client.html")),
6256
+ bundleNitro: fs.existsSync(join$1(dir, "nitro.html")),
6257
+ viteInspect: fs.existsSync(join$1(dir, ".vite-inspect"))
6247
6258
  }
6248
6259
  };
6249
6260
  }));
@@ -6276,10 +6287,10 @@ function setupAnalyzeBuildRPC({ nuxt, refresh, ensureDevAuthToken }) {
6276
6287
  async clearAnalyzeBuilds(token, names) {
6277
6288
  await ensureDevAuthToken(token);
6278
6289
  if (!names) {
6279
- await fs.rm(analyzeDir, { recursive: true, force: true });
6290
+ await fsp.rm(analyzeDir, { recursive: true, force: true });
6280
6291
  } else {
6281
6292
  const targets = builds.filter((build) => names.includes(build.name));
6282
- await Promise.all(targets.map((target) => fs.rm(join$1(analyzeDir, target.slug), { recursive: true, force: true })));
6293
+ await Promise.all(targets.map((target) => fsp.rm(join$1(analyzeDir, target.slug), { recursive: true, force: true })));
6283
6294
  }
6284
6295
  initalized = readBuildInfo();
6285
6296
  refresh("getAnalyzeBuildInfo");
@@ -6875,7 +6886,7 @@ async function readOptions(defaults, options) {
6875
6886
  if (existsSync(filePath)) {
6876
6887
  const options2 = {
6877
6888
  ...defaults,
6878
- ...JSON.parse(await fs.readFile(filePath, "utf-8")).settings || {}
6889
+ ...JSON.parse(await fsp.readFile(filePath, "utf-8")).settings || {}
6879
6890
  };
6880
6891
  return options2;
6881
6892
  } else {
@@ -6885,14 +6896,14 @@ async function readOptions(defaults, options) {
6885
6896
  async function writeOptions(settings, options) {
6886
6897
  const dir = join$1(homedir(), ".nuxt/devtools");
6887
6898
  if (!existsSync(dir))
6888
- await fs.mkdir(dir, { recursive: true });
6899
+ await fsp.mkdir(dir, { recursive: true });
6889
6900
  let hashedKey;
6890
6901
  if (options.key)
6891
6902
  hashedKey = hash(`${options.root}:${options.key}`);
6892
6903
  else
6893
6904
  hashedKey = hash(options.root);
6894
6905
  const filePath = join$1(dir, `${hashedKey}.json`);
6895
- await fs.writeFile(
6906
+ await fsp.writeFile(
6896
6907
  filePath,
6897
6908
  JSON.stringify(
6898
6909
  {
@@ -6940,7 +6951,7 @@ function setupTimelineRPC({ nuxt }) {
6940
6951
  return {
6941
6952
  async enableTimeline(dry) {
6942
6953
  const filepath = nuxt.options._nuxtConfigFile;
6943
- const source = await fs.readFile(filepath, "utf-8");
6954
+ const source = await fsp.readFile(filepath, "utf-8");
6944
6955
  const mod = await parseModule(source, { sourceFileName: filepath });
6945
6956
  const options = getDefaultExportOptions(mod);
6946
6957
  options.devtools = options.devtools || {};
@@ -6948,7 +6959,7 @@ function setupTimelineRPC({ nuxt }) {
6948
6959
  options.devtools.timeline.enabled = true;
6949
6960
  const generated = mod.generate().code;
6950
6961
  if (!dry) {
6951
- await fs.writeFile(filepath, generated, "utf-8");
6962
+ await fsp.writeFile(filepath, generated, "utf-8");
6952
6963
  await nuxt.callHook("restart", { hard: true });
6953
6964
  }
6954
6965
  return [source, generated];
@@ -1,6 +1,6 @@
1
1
  import { hostname } from 'node:os';
2
2
  import { resolve } from 'node:path';
3
- import fs from 'node:fs/promises';
3
+ import fsp from 'node:fs/promises';
4
4
  import { existsSync } from 'node:fs';
5
5
  import { logger } from '@nuxt/kit';
6
6
  import { execa } from 'execa';
@@ -51,7 +51,7 @@ async function setup({ nuxt, options, openInEditorHooks, rpc }) {
51
51
  if (!existsSync(vscodeServerControllerFile))
52
52
  return false;
53
53
  try {
54
- const { port: port2 } = JSON.parse(await fs.readFile(vscodeServerControllerFile, "utf-8"));
54
+ const { port: port2 } = JSON.parse(await fsp.readFile(vscodeServerControllerFile, "utf-8"));
55
55
  const url2 = `http://localhost:${port2}/open?path=${encodeURIComponent(file)}`;
56
56
  await fetch(url2);
57
57
  rpc.broadcast.navigateTo("/modules/custom-builtin-vscode");
@@ -64,7 +64,7 @@ async function setup({ nuxt, options, openInEditorHooks, rpc }) {
64
64
  });
65
65
  async function startCodeServer() {
66
66
  if (existsSync(vscodeServerControllerFile))
67
- await fs.rm(vscodeServerControllerFile, { force: true });
67
+ await fsp.rm(vscodeServerControllerFile, { force: true });
68
68
  if (vsOptions?.reuseExistingServer && !await checkPort(port)) {
69
69
  loaded = true;
70
70
  url = `http://localhost:${port}/?folder=${encodeURIComponent(root)}`;
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html >
3
3
  <head><meta charset="utf-8">
4
- <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.6507cb32.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.6f7d64f9.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.7ae8a638.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.7e3f9818.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.748a1c93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.2f8cf810.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.d07b0096.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.66ff8897.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.34984f69.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.6f7d64f9.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.c6e2a60e.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.b258ed6f.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.536b446f.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.93d544e2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.815ab91e.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.56e615e7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.8d4813e7.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.54696fd3.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.e627a1cf.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.b258ed6f.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
5
5
  </script></head>
6
- <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.6507cb32.js" crossorigin></script></body>
6
+ <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.c6e2a60e.js" crossorigin></script></body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html >
3
3
  <head><meta charset="utf-8">
4
- <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.6507cb32.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.6f7d64f9.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.7ae8a638.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.7e3f9818.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.748a1c93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.2f8cf810.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.d07b0096.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.66ff8897.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.34984f69.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.6f7d64f9.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.c6e2a60e.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.b258ed6f.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.536b446f.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.93d544e2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.815ab91e.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.56e615e7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.8d4813e7.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.54696fd3.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.e627a1cf.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.b258ed6f.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
5
5
  </script></head>
6
- <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.6507cb32.js" crossorigin></script></body>
6
+ <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.c6e2a60e.js" crossorigin></script></body>
7
7
  </html>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html >
3
3
  <head><meta charset="utf-8">
4
- <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.6507cb32.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.6f7d64f9.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.7ae8a638.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.7e3f9818.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.748a1c93.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.2f8cf810.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.d07b0096.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.66ff8897.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.34984f69.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.6f7d64f9.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
4
+ <meta name="viewport" content="width=device-width, initial-scale=1"><link rel="modulepreload" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/entry.c6e2a60e.js"><link rel="preload" as="style" href="/__nuxt_devtools__/client/_nuxt/entry.b258ed6f.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/index.536b446f.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/default.93d544e2.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/full.815ab91e.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/none.56e615e7.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/nuxt-docs.100caa70.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/unocss-runtime.8d4813e7.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-404.91003ceb.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-404.54696fd3.js"><link rel="prefetch" as="style" href="/__nuxt_devtools__/client/_nuxt/error-500.7e02f53c.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt_devtools__/client/_nuxt/error-500.e627a1cf.js"><link rel="stylesheet" href="/__nuxt_devtools__/client/_nuxt/entry.b258ed6f.css"><script>"use strict";(()=>{const a=window,e=document.documentElement,m=["dark","light"],c=window.localStorage.getItem("nuxt-color-mode")||"system";let n=c==="system"?f():c;const l=e.getAttribute("data-color-mode-forced");l&&(n=l),i(n),a["__NUXT_COLOR_MODE__"]={preference:c,value:n,getColorScheme:f,addColorScheme:i,removeColorScheme:d};function i(o){const t=""+o+"",s="";e.classList?e.classList.add(t):e.className+=" "+t,s&&e.setAttribute("data-"+s,o)}function d(o){const t=""+o+"",s="";e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(t,"g"),""),s&&e.removeAttribute("data-"+s)}function r(o){return a.matchMedia("(prefers-color-scheme"+o+")")}function f(){if(a.matchMedia&&r("").media!=="not all"){for(const o of m)if(r(":"+o).matches)return o}return"light"}})();
5
5
  </script></head>
6
- <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.6507cb32.js" crossorigin></script></body>
6
+ <body ><div id="__nuxt"><svg class="nuxt-spa-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 25" fill="none" width="80"><path d="M24.236 22.006h10.742L25.563 5.822l-8.979 14.31a4 4 0 0 1-3.388 1.874H2.978l11.631-20 5.897 10.567"></path></svg><style>.nuxt-spa-loading{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%)}.nuxt-spa-loading>path{fill:none;stroke:#00DC82;stroke-width:4px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:128;stroke-dashoffset:128;animation:nuxt-spa-loading-move 3s linear infinite}@keyframes nuxt-spa-loading-move{100%{stroke-dashoffset:-128}}</style></div><script type="application/json" id="__NUXT_DATA__" data-ssr="false">[{"_errors":1,"serverRendered":2,"data":3,"state":4},{},false,{},{}]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{fixture4:"public runtime config from nuxt.config.ts"},app:{baseURL:"/__nuxt_devtools__/client",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="module" src="/__nuxt_devtools__/client/_nuxt/entry.c6e2a60e.js" crossorigin></script></body>
7
7
  </html>
@@ -1 +1 @@
1
- import{g as y,aa as x,ar as n,bm as _,A as l,r as m,s as c,h as g,w as d,Y as A,i as w,o as N,b as s,a as e,d as i,L as T,aR as q,a$ as V,bn as B,k as $,M as C,S as D,ad as P}from"./entry.6507cb32.js";const S=e("h3",{class:"mb2 text-lg font-medium leading-6",flex:"~ items-center gap-1","text-orange":""},[e("span",{class:"i-carbon-information-square"}),i(" Permissions required ")],-1),I=e("p",null," This operation requires permissions for running command and access files from the browser. ",-1),K=e("p",null,[i(" A request is sent to the server."),e("br"),i(" Please check your terminal for the instructions and then come back. ")],-1),M={flex:"~ gap-3",mt2:"","justify-end":""},R=e("p",null,"Or you can manually paste the token here:",-1),F=["onSubmit"],E=y({__name:"AuthRequiredPanel",setup(j){x(async()=>{n.value||_.value&&await l.verifyAuthToken(_.value)&&(n.value=!0),n.value||l.requestForAuth()});const o=m(""),r=m(!1);async function u(){const t=o.value.trim();r.value=!1,await l.verifyAuthToken(t).then(a=>{a?(n.value=!0,B(t)):r.value=!0})}return(t,a)=>{const f=$,p=C,h=D,v=P,k=w;return("isDevAuthed"in t?t.isDevAuthed:c(n))?A(t.$slots,"default",{key:1}):(N(),g(k,{key:0},{default:d(()=>[s(v,{flex:"~ col gap-2",mxa:"","items-center":"",p6:"","text-center":""},{default:d(()=>[S,I,K,e("div",M,[s(f,{disabled:"",icon:"i-carbon-time"},{default:d(()=>[i(" Waiting for authorization... ")]),_:1})]),R,e("form",{flex:"~ inline gap-2 items-center",onSubmit:V(u,["prevent"])},[s(p,{modelValue:c(o),"onUpdate:modelValue":a[0]||(a[0]=b=>T(o)?o.value=b:null),placeholder:"Enter token here",n:c(r)?"red":void 0,onKeydown:q(u,["enter"])},null,8,["modelValue","n","onKeydown"]),s(h,{icon:"i-carbon-arrow-right",onClick:u})],40,F)]),_:1})]),_:1}))}}});export{E as _};
1
+ import{g as y,aa as x,ar as n,bm as _,A as l,r as m,s as c,h as g,w as d,Y as A,i as w,o as N,b as s,a as e,d as i,L as T,aR as q,a$ as V,bn as B,k as $,M as C,S as D,ad as P}from"./entry.c6e2a60e.js";const S=e("h3",{class:"mb2 text-lg font-medium leading-6",flex:"~ items-center gap-1","text-orange":""},[e("span",{class:"i-carbon-information-square"}),i(" Permissions required ")],-1),I=e("p",null," This operation requires permissions for running command and access files from the browser. ",-1),K=e("p",null,[i(" A request is sent to the server."),e("br"),i(" Please check your terminal for the instructions and then come back. ")],-1),M={flex:"~ gap-3",mt2:"","justify-end":""},R=e("p",null,"Or you can manually paste the token here:",-1),F=["onSubmit"],E=y({__name:"AuthRequiredPanel",setup(j){x(async()=>{n.value||_.value&&await l.verifyAuthToken(_.value)&&(n.value=!0),n.value||l.requestForAuth()});const o=m(""),r=m(!1);async function u(){const t=o.value.trim();r.value=!1,await l.verifyAuthToken(t).then(a=>{a?(n.value=!0,B(t)):r.value=!0})}return(t,a)=>{const f=$,p=C,h=D,v=P,k=w;return("isDevAuthed"in t?t.isDevAuthed:c(n))?A(t.$slots,"default",{key:1}):(N(),g(k,{key:0},{default:d(()=>[s(v,{flex:"~ col gap-2",mxa:"","items-center":"",p6:"","text-center":""},{default:d(()=>[S,I,K,e("div",M,[s(f,{disabled:"",icon:"i-carbon-time"},{default:d(()=>[i(" Waiting for authorization... ")]),_:1})]),R,e("form",{flex:"~ inline gap-2 items-center",onSubmit:V(u,["prevent"])},[s(p,{modelValue:c(o),"onUpdate:modelValue":a[0]||(a[0]=b=>T(o)?o.value=b:null),placeholder:"Enter token here",n:c(r)?"red":void 0,onKeydown:q(u,["enter"])},null,8,["modelValue","n","onKeydown"]),s(h,{icon:"i-carbon-arrow-right",onClick:u})],40,F)]),_:1})]),_:1}))}}});export{E as _};
@@ -1 +1 @@
1
- import{_ as n,o,c as s,Y as t}from"./entry.6507cb32.js";const c={},r={class:"mx-0.5 select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function _(e,a){return o(),s("span",r,[t(e.$slots,"default")])}const l=n(c,[["render",_]]);export{l as _};
1
+ import{_ as n,o,c as s,Y as t}from"./entry.c6e2a60e.js";const c={},r={class:"mx-0.5 select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs"};function _(e,a){return o(),s("span",r,[t(e.$slots,"default")])}const l=n(c,[["render",_]]);export{l as _};
@@ -1,3 +1,3 @@
1
- import{_ as R}from"./NCodeBlock.vue.77e54b2e.js";import{g as _,m as N,r as F,aa as W,bq as A,o as B,h as J,s as V}from"./entry.6507cb32.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],L=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=L&&L<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=Z(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),L=r.extractCommon(h,t,e,c),h.newPos+1>=i&&L+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function Z(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function k(n,e,t){return D.diff(n,e,t)}var G=new m;G.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,g=new m;g.useLongestToken=!0;g.tokenize=D.tokenize;g.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};g.equals=function(n,e){return m.prototype.equals.call(g,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=k(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
1
+ import{_ as R}from"./NCodeBlock.vue.cf371d5c.js";import{g as _,m as N,r as F,aa as W,bq as A,o as B,h as J,s as V}from"./entry.c6e2a60e.js";function m(){}m.prototype={diff:function(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=o.callback;typeof o=="function"&&(f=o,o={}),this.options=o;var r=this;function l(c){return f?(setTimeout(function(){f(void 0,c)},0),!0):c}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var i=t.length,s=e.length,u=1,d=i+s;o.maxEditLength&&(d=Math.min(d,o.maxEditLength));var a=[{newPos:-1,components:[]}],p=this.extractCommon(a[0],t,e,0);if(a[0].newPos+1>=i&&p+1>=s)return l([{value:this.join(t),count:t.length}]);function v(){for(var c=-1*u;c<=u;c+=2){var h=void 0,w=a[c-1],C=a[c+1],L=(C?C.newPos:0)-c;w&&(a[c-1]=void 0);var q=w&&w.newPos+1<i,$=C&&0<=L&&L<s;if(!q&&!$){a[c]=void 0;continue}if(!q||$&&w.newPos<C.newPos?(h=Z(C),r.pushComponent(h.components,void 0,!0)):(h=w,h.newPos++,r.pushComponent(h.components,!0,void 0)),L=r.extractCommon(h,t,e,c),h.newPos+1>=i&&L+1>=s)return l(M(r,h.components,t,e,r.useLongestToken));a[c]=h}u++}if(f)(function c(){setTimeout(function(){if(u>d)return f();v()||c()},0)})();else for(;u<=d;){var y=v();if(y)return y}},pushComponent:function(e,t,o){var f=e[e.length-1];f&&f.added===t&&f.removed===o?e[e.length-1]={count:f.count+1,added:t,removed:o}:e.push({count:1,added:t,removed:o})},extractCommon:function(e,t,o,f){for(var r=t.length,l=o.length,i=e.newPos,s=i-f,u=0;i+1<r&&s+1<l&&this.equals(t[i+1],o[s+1]);)i++,s++,u++;return u&&e.components.push({count:u}),e.newPos=i,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],o=0;o<e.length;o++)e[o]&&t.push(e[o]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function M(n,e,t,o,f){for(var r=0,l=e.length,i=0,s=0;r<l;r++){var u=e[r];if(u.removed){if(u.value=n.join(o.slice(s,s+u.count)),s+=u.count,r&&e[r-1].added){var a=e[r-1];e[r-1]=e[r],e[r]=a}}else{if(!u.added&&f){var d=t.slice(i,i+u.count);d=d.map(function(v,y){var c=o[s+y];return c.length>v.length?c:v}),u.value=n.join(d)}else u.value=n.join(t.slice(i,i+u.count));i+=u.count,u.added||(s+=u.count)}}var p=e[l-1];return l>1&&typeof p.value=="string"&&(p.added||p.removed)&&n.equals("",p.value)&&(e[l-2].value+=p.value,e.pop()),e}function Z(n){return{newPos:n.newPos,components:n.components.slice(0)}}var I=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,T=/\S/,O=new m;O.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!T.test(n)&&!T.test(e)};O.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<e.length-1;t++)!e[t+1]&&e[t+2]&&I.test(e[t])&&I.test(e[t+2])&&(e[t]+=e[t+2],e.splice(t+1,2),t--);return e};var D=new m;D.tokenize=function(n){var e=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var o=0;o<t.length;o++){var f=t[o];o%2&&!this.options.newlineIsToken?e[e.length-1]+=f:(this.options.ignoreWhitespace&&(f=f.trim()),e.push(f))}return e};function k(n,e,t){return D.diff(n,e,t)}var G=new m;G.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var H=new m;H.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function z(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?z=function(e){return typeof e}:z=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(n)}var Q=Object.prototype.toString,g=new m;g.useLongestToken=!0;g.tokenize=D.tokenize;g.castInput=function(n){var e=this.options,t=e.undefinedReplacement,o=e.stringifyReplacer,f=o===void 0?function(r,l){return typeof l>"u"?t:l}:o;return typeof n=="string"?n:JSON.stringify(E(n,null,null,f),f," ")};g.equals=function(n,e){return m.prototype.equals.call(g,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function E(n,e,t,o,f){e=e||[],t=t||[],o&&(n=o(f,n));var r;for(r=0;r<e.length;r+=1)if(e[r]===n)return t[r];var l;if(Q.call(n)==="[object Array]"){for(e.push(n),l=new Array(n.length),t.push(l),r=0;r<n.length;r+=1)l[r]=E(n[r],e,t,o,f);return e.pop(),t.pop(),l}if(n&&n.toJSON&&(n=n.toJSON()),z(n)==="object"&&n!==null){e.push(n),l={},t.push(l);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),r=0;r<i.length;r+=1)s=i[r],l[s]=E(n[s],e,t,o,s);e.pop(),t.pop()}else l=n;return l}var x=new m;x.tokenize=function(n){return n.slice()};x.join=x.removeEmpty=function(n){return n};const Y=_({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function t(i,s){const u=k(i.trim(),s.trim()),d=[],a=[],p=[];for(const v of u){const y=v.value.trimEnd().split(`
2
2
  `);for(const c of y)v.added?(d.push(p.length),p.push(c)):(v.removed&&a.push(p.length),p.push(c))}return{added:d,removed:a,result:p.join(`
3
3
  `)}}const o=N(()=>t(e.from,e.to));function f(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,u=>(s++,o.value.added.includes(s-1)?'class="line line-added"':o.value.removed.includes(s-1)?'class="line line-removed"':u))}const r=F();W(l);function l(){const i=A(r);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const u=R;return B(),J(u,{ref_key:"elRef",ref:r,code:V(o).result,lang:i.lang,"transform-rendered":f,onLoaded:l},null,8,["code","lang"])}}});export{Y as _};
@@ -1 +1 @@
1
- import{_ as y}from"./NCodeBlock.vue.77e54b2e.js";import{g as C,bf as h,a2 as S,am as w,o as s,c as n,a,F as i,n as x,q as u,s as o,t as B,b as _,w as f,d as m,h as N,v as l,k as V}from"./entry.6507cb32.js";const $={key:0,relative:"","n-code-block":""},D={flex:"~ wrap","w-full":""},E=["onClick"],F=a("div",{border:"b base","flex-auto":""},null,-1),q={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},T=C({__name:"CodeSnippets",props:{codeSnippets:{}},setup(b){const c=b,e=h(c.codeSnippets[0]),k=S();return w(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(r,p)=>{const v=y,d=V;return r.codeSnippets.length?(s(),n("div",$,[a("div",D,[(s(!0),n(i,null,x(r.codeSnippets,(t,g)=>(s(),n("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:u(t===o(e)?"":"border-b"),onClick:z=>e.value=t},[a("div",{class:u(t===o(e)?"":"op30"),"font-mono":""},B(t.name),3)],10,E))),128)),F]),o(e)?(s(),n(i,{key:0},[_(v,{code:o(e).code,lang:o(e).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),a("div",q,[_(d,{icon:"carbon-copy",onClick:p[0]||(p[0]=t=>o(k)(o(e).code))},{default:f(()=>[m(" Copy ")]),_:1}),o(e)?.docs?(s(),N(d,{key:0,to:o(e).docs,target:"_blank",icon:"carbon-catalog"},{default:f(()=>[m(" Docs ")]),_:1},8,["to"])):l("",!0)])],64)):l("",!0)])):l("",!0)}}});export{T as _};
1
+ import{_ as y}from"./NCodeBlock.vue.cf371d5c.js";import{g as C,bf as h,a2 as S,am as w,o as s,c as n,a,F as i,n as x,q as u,s as o,t as B,b as _,w as f,d as m,h as N,v as l,k as V}from"./entry.c6e2a60e.js";const $={key:0,relative:"","n-code-block":""},D={flex:"~ wrap","w-full":""},E=["onClick"],F=a("div",{border:"b base","flex-auto":""},null,-1),q={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},T=C({__name:"CodeSnippets",props:{codeSnippets:{}},setup(b){const c=b,e=h(c.codeSnippets[0]),k=S();return w(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(r,p)=>{const v=y,d=V;return r.codeSnippets.length?(s(),n("div",$,[a("div",D,[(s(!0),n(i,null,x(r.codeSnippets,(t,g)=>(s(),n("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:u(t===o(e)?"":"border-b"),onClick:z=>e.value=t},[a("div",{class:u(t===o(e)?"":"op30"),"font-mono":""},B(t.name),3)],10,E))),128)),F]),o(e)?(s(),n(i,{key:0},[_(v,{code:o(e).code,lang:o(e).lang,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),a("div",q,[_(d,{icon:"carbon-copy",onClick:p[0]||(p[0]=t=>o(k)(o(e).code))},{default:f(()=>[m(" Copy ")]),_:1}),o(e)?.docs?(s(),N(d,{key:0,to:o(e).docs,target:"_blank",icon:"carbon-catalog"},{default:f(()=>[m(" Docs ")]),_:1},8,["to"])):l("",!0)])],64)):l("",!0)])):l("",!0)}}});export{T as _};
@@ -1 +1 @@
1
- import{_ as I}from"./NMarkdown.vue.a74698d6.js";import{g as V,a2 as D,Z as U,m as c,ae as $,o as a,h as r,w as i,a as o,v as l,b as E,s as e,d as u,c as _,F as v,t as h,n as F,q as j,k as S}from"./entry.6507cb32.js";import{_ as q}from"./FilepathItem.vue.84aa0a31.js";import{C as k}from"./constants.4e5eba24.js";const z={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},Z={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),G={"text-primary":""},H=o("span",{op50:""}," times by:",-1),J={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},K={key:1,"text-sm":"",op50:""},Y=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(x){const t=x,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(s=>!s.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return k.nuxt[t.item.name];if(t.item.from==="vue")return k.vue[t.item.name]});return(s,p)=>{const w=I,f=S,N=q,B=$("VDropdown");return a(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[s.item.meta?.description?(a(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:s.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[E(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m)))},{default:i(()=>[u(" Copy ")]),_:1}),s.filepath?(a(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>s.filepath&&e(g)(s.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(a(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(a(),_(v,{key:0},[o("div",Z,[A,o("strong",G,h(e(n)),1),H]),o("div",J,[(a(!0),_(v,null,F(e(C),d=>(a(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(a(),_("div",K," Not in use via auto import. "))])])]),default:i(()=>[o("button",z,[o("code",{rounded:"","font-mono":"",class:j([s.metadata&&!e(n)?"op30 hover:op100":"",s.classes])},[u(h(e(m))+" ",1),e(n)&&s.counter?(a(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Y as _};
1
+ import{_ as I}from"./NMarkdown.vue.b8ab3b27.js";import{g as V,a2 as D,Z as U,m as c,ae as $,o as a,h as r,w as i,a as o,v as l,b as E,s as e,d as u,c as _,F as v,t as h,n as F,q as j,k as S}from"./entry.c6e2a60e.js";import{_ as q}from"./FilepathItem.vue.bcda207b.js";import{C as k}from"./constants.4e5eba24.js";const z={"hover:text-primary":""},L={key:0,"text-primary":""},M={"max-w-100":""},O={px4:"",py3:"","text-sm":""},T={flex:"~ gap2",n:"primary xs"},W={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},Z={"text-sm":""},A=o("span",{op50:""},"It has been referenced ",-1),G={"text-primary":""},H=o("span",{op50:""}," times by:",-1),J={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},K={key:1,"text-sm":"",op50:""},Y=V({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(x){const t=x,b=D(),g=U(),m=c(()=>t.item.as||t.item.name),n=c(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),C=c(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(s=>!s.endsWith("?macro=true"))),y=c(()=>{if(t.item.meta?.docsUrl)return t.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(t.item.from))return k.nuxt[t.item.name];if(t.item.from==="vue")return k.vue[t.item.name]});return(s,p)=>{const w=I,f=S,N=q,B=$("VDropdown");return a(),r(B,{disabled:!t.metadata},{popper:i(()=>[o("div",M,[o("div",O,[s.item.meta?.description?(a(),r(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:s.item.meta.description},null,8,["markdown"])):l("",!0),o("div",T,[E(f,{icon:"carbon-copy",onClick:p[0]||(p[0]=d=>e(b)(e(m)))},{default:i(()=>[u(" Copy ")]),_:1}),s.filepath?(a(),r(f,{key:0,icon:"carbon-code",onClick:p[1]||(p[1]=d=>s.filepath&&e(g)(s.filepath))},{default:i(()=>[u(" Source ")]),_:1})):l("",!0),e(y)?(a(),r(f,{key:1,icon:"carbon-catalog",to:e(y),target:"_blank"},{default:i(()=>[u(" Docs ")]),_:1},8,["to"])):l("",!0)])]),o("div",W,[e(n)?(a(),_(v,{key:0},[o("div",Z,[A,o("strong",G,h(e(n)),1),H]),o("div",J,[(a(!0),_(v,null,F(e(C),d=>(a(),r(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(a(),_("div",K," Not in use via auto import. "))])])]),default:i(()=>[o("button",z,[o("code",{rounded:"","font-mono":"",class:j([s.metadata&&!e(n)?"op30 hover:op100":"",s.classes])},[u(h(e(m))+" ",1),e(n)&&s.counter?(a(),_("sup",L,"x"+h(e(n)),1)):l("",!0)],2)])]),_:1},8,["disabled"])}}});export{Y as _};
@@ -0,0 +1 @@
1
+ import{g as i,r as u,bg as m,aw as f,h as d,w as p,aG as b,o as s,c as v,b as _,a as g,Y as h,aE as x,s as y,v as k,S as B}from"./entry.c6e2a60e.js";const C={relative:"","h-full":"","w-full":"","of-auto":""},V={inheritAttrs:!1},z=i({...V,__name:"DrawerRight",props:{modelValue:{type:Boolean},navbar:{},autoClose:{type:Boolean}},emits:["close"],setup(r,{emit:l}){const t=r,o=u(),{height:n}=m(()=>t.navbar,void 0,{box:"border-box"});return f(o,()=>{t.modelValue&&t.autoClose&&l("close")},{ignore:["a","button","summary",'[role="dialog"]']}),(e,a)=>{const c=B;return s(),d(b,{"enter-active-class":"duration-200 ease-in","enter-from-class":"transform translate-x-1/1","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100","leave-to-class":"transform translate-x-1/1"},{default:p(()=>[e.modelValue?(s(),v("div",x({key:0,ref_key:"el",ref:o,border:"l base",flex:"~ col gap-1",absolute:"","bottom-0":"","right-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","glass-effect":"",style:{top:`${y(n)}px`}},e.$attrs),[_(c,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",onClick:a[0]||(a[0]=$=>e.$emit("close"))}),g("div",C,[h(e.$slots,"default")])],16)):k("",!0)]),_:3})}}});export{z as _};
@@ -1 +1 @@
1
- import{g as s,m as u,o as d,c as f,d as c,t as o,s as n,a as p,q as m}from"./entry.6507cb32.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[c(o(n(e)[0]),1),p("span",x,o(n(e)[1]),1)],2))}});export{g as _};
1
+ import{g as s,m as u,o as d,c as f,d as c,t as o,s as n,a as p,q as m}from"./entry.c6e2a60e.js";const x={"ml-1":"","text-xs":"",op50:""},g=s({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(a){const t=a;function i(r){return t.color?r?(r=r*t.factor,r<.5?"text-gray:50":r>1e3?"text-red-400":r>500?"text-orange-400":r>200?"text-yellow-400":""):"text-gray-400":""}const e=u(()=>!t.duration||t.duration<1?["<1","ms"]:t.duration<1e3?[t.duration.toFixed(0),"ms"]:t.duration<1e3*60?[(t.duration/1e3).toFixed(1),"s"]:[(t.duration/1e3/60).toFixed(1),"min"]);return(r,l)=>(d(),f("div",{class:m(i(r.duration))},[c(o(n(e)[0]),1),p("span",x,o(n(e)[1]),1)],2))}});export{g as _};
@@ -1 +1 @@
1
- import{g as u,Z as f,a1 as c,m as v,a_ as k,o as t,h as y,w as B,c as s,F as l,d,t as n,s as a,a as C,v as g,q as N,ai as b}from"./entry.6507cb32.js";const w={key:0,op50:""},F=u({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(m){const r=m,h=f(),p=c(),o=v(()=>r.filepath&&p.value?k(r.filepath,p.value.rootDir):{path:r.filepath||""});return(e,i)=>(t(),y(b(e.filepath?"button":"span"),{class:N([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:i[0]||(i[0]=D=>e.filepath&&a(h)(e.filepath))},{default:B(()=>[e.override?(t(),s(l,{key:0},[d(n(e.override),1)],64)):a(o).moduleName?(t(),s(l,{key:1},[C("span",null,n(a(o).moduleName),1),e.subpath?(t(),s("span",w,n(a(o).path.slice(a(o).moduleName.length)),1)):g("",!0)],64)):(t(),s(l,{key:2},[d(n(a(o).path),1)],64))]),_:1},8,["class","title"]))}});export{F as _};
1
+ import{g as u,Z as f,a1 as c,m as v,a_ as k,o as t,h as y,w as B,c as s,F as l,d,t as n,s as a,a as C,v as g,q as N,ai as b}from"./entry.c6e2a60e.js";const w={key:0,op50:""},F=u({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(m){const r=m,h=f(),p=c(),o=v(()=>r.filepath&&p.value?k(r.filepath,p.value.rootDir):{path:r.filepath||""});return(e,i)=>(t(),y(b(e.filepath?"button":"span"),{class:N([e.filepath?"hover:underline":"",e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath,onClick:i[0]||(i[0]=D=>e.filepath&&a(h)(e.filepath))},{default:B(()=>[e.override?(t(),s(l,{key:0},[d(n(e.override),1)],64)):a(o).moduleName?(t(),s(l,{key:1},[C("span",null,n(a(o).moduleName),1),e.subpath?(t(),s("span",w,n(a(o).path.slice(a(o).moduleName.length)),1)):g("",!0)],64)):(t(),s(l,{key:2},[d(n(a(o).path),1)],64))]),_:1},8,["class","title"]))}});export{F as _};
@@ -1 +1 @@
1
- import{g as f,r as _,s as o,c as s,a as d,b as a,w as i,aG as u,F as m,v as n,o as l,Y as v,ac as g,S as k}from"./entry.6507cb32.js";const h=d("div",{"i-ri:question-mark":""},null,-1),x=[h],w={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},B=f({__name:"HelpFab",setup(y){const e=_(!1),{showHelpButtons:p}=g();return(b,t)=>{const c=k;return o(p)?(l(),s(m,{key:0},[d("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:t[0]||(t[0]=r=>e.value=!o(e))},x),a(u,{name:"fade-in"},{default:i(()=>[o(e)?(l(),s("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:t[1]||(t[1]=r=>e.value=!1)})):n("",!0)]),_:1}),a(u,{name:"slide-in"},{default:i(()=>[o(e)?(l(),s("div",w,[v(b.$slots,"default"),a(c,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",onClick:t[2]||(t[2]=r=>e.value=!1)})])):n("",!0)]),_:3})],64)):n("",!0)}}});export{B as _};
1
+ import{g as f,r as _,s as o,c as s,a as d,b as a,w as i,aG as u,F as m,v as n,o as l,Y as v,ac as g,S as k}from"./entry.c6e2a60e.js";const h=d("div",{"i-ri:question-mark":""},null,-1),x=[h],w={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},B=f({__name:"HelpFab",setup(y){const e=_(!1),{showHelpButtons:p}=g();return(b,t)=>{const c=k;return o(p)?(l(),s(m,{key:0},[d("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:t[0]||(t[0]=r=>e.value=!o(e))},x),a(u,{name:"fade-in"},{default:i(()=>[o(e)?(l(),s("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:t[1]||(t[1]=r=>e.value=!1)})):n("",!0)]),_:1}),a(u,{name:"slide-in"},{default:i(()=>[o(e)?(l(),s("div",w,[v(b.$slots,"default"),a(c,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",onClick:t[2]||(t[2]=r=>e.value=!1)})])):n("",!0)]),_:3})],64)):n("",!0)}}});export{B as _};
@@ -1 +1 @@
1
- import{g as k,h as o,w as a,i as b,o as t,b as r,a as c,t as i,v as _,c as g,n as h,aE as N,d as w,F as x,br as C,T as y,k as B,ad as $}from"./entry.6507cb32.js";import{_ as V}from"./NMarkdown.vue.a74698d6.js";const v={"text-xl":""},P={flex:"~ gap2 wrap"},L=k({__name:"LaunchPage",props:{icon:{},title:{},description:{},actions:{}},emits:["action"],setup(T){return(e,E)=>{const l=C,m=V,p=y,d=B,u=$,f=b;return t(),o(f,null,{default:a(()=>[r(u,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:a(()=>[r(l,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),c("h1",v,i(e.title),1),e.description?(t(),o(m,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):_("",!0),c("div",P,[(t(!0),g(x,null,h(e.actions,(n,s)=>(t(),o(d,N({key:s,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0},n.attrs,{onClick:()=>{n.handle?.(),e.$emit("action",s)}}),{default:a(()=>[n.pending?(t(),o(p,{key:0,icon:"carbon-circle-dash","animate-spin":""})):_("",!0),w(" "+i(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{L as _};
1
+ import{g as k,h as o,w as a,i as b,o as t,b as r,a as c,t as i,v as _,c as g,n as h,aE as N,d as w,F as x,br as C,T as y,k as B,ad as $}from"./entry.c6e2a60e.js";import{_ as V}from"./NMarkdown.vue.b8ab3b27.js";const v={"text-xl":""},P={flex:"~ gap2 wrap"},L=k({__name:"LaunchPage",props:{icon:{},title:{},description:{},actions:{}},emits:["action"],setup(T){return(e,E)=>{const l=C,m=V,p=y,d=B,u=$,f=b;return t(),o(f,null,{default:a(()=>[r(u,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:a(()=>[r(l,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),c("h1",v,i(e.title),1),e.description?(t(),o(m,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):_("",!0),c("div",P,[(t(!0),g(x,null,h(e.actions,(n,s)=>(t(),o(d,N({key:s,n:"solid primary",disabled:n.pending,to:n.src,target:n.src?"_blank":void 0},n.attrs,{onClick:()=>{n.handle?.(),e.$emit("action",s)}}),{default:a(()=>[n.pending?(t(),o(p,{key:0,icon:"carbon-circle-dash","animate-spin":""})):_("",!0),w(" "+i(n.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{L as _};
@@ -1 +1 @@
1
- import{g as i,X as r,c as p,y as b,by as u,s as o,a as n,L as h,aR as k,b as f,Y as m,q as v,o as _,T as x}from"./entry.6507cb32.js";const y=["checked","disabled"],V=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},$=i({__name:"NCheckbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(a,s)=>{const d=x;return _(),p("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:o(e)||null,disabled:a.disabled||null},[b(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>h(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=k(l=>e.value=!o(e),["enter"]))},null,40,V),[[u,o(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:v([o(e)?"":"op50","n-transition"])},[m(a.$slots,"default")],2)],8,y)}}});export{$ as _};
1
+ import{g as i,X as r,c as p,y as b,by as u,s as o,a as n,L as h,aR as k,b as f,Y as m,q as v,o as _,T as x}from"./entry.c6e2a60e.js";const y=["checked","disabled"],V=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},$=i({__name:"NCheckbox",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(c,{emit:t}){const e=r(c,"modelValue",t,{passive:!0});return(a,s)=>{const d=x;return _(),p("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:o(e)||null,disabled:a.disabled||null},[b(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>h(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=k(l=>e.value=!o(e),["enter"]))},null,40,V),[[u,o(e)]]),n("span",B,[f(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:v([o(e)?"":"op50","n-transition"])},[m(a.$slots,"default")],2)],8,y)}}});export{$ as _};
@@ -1,2 +1,2 @@
1
- import{d as u}from"./client.ece13385.js";import{g as _,m,al as k,o as n,c as s,q as r,a as t,F as d,n as f,t as g}from"./entry.6507cb32.js";const h=["innerHTML"],C={class:"shiki"},v=["textContent"],y=t("br",null,null,-1),H=_({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(a,{emit:c}){const o=a,l=m(()=>{const e=u.value?.devtools.renderCodeHighlight(o.code,o.lang)||{code:o.code,supported:!1};return e.supported&&o.transformRendered&&(e.code=o.transformRendered(e.code)),e.supported&&k(()=>c("loaded")),e});return(e,B)=>e.lang&&l.value.supported?(n(),s("pre",{key:0,class:r(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:l.value.code},null,10,h)):(n(),s("pre",{key:1,class:r(["n-code-block",e.lines?"n-code-block-lines":""])},[t("pre",C,[t("code",null,[(n(!0),s(d,null,f(e.code.split(`
1
+ import{d as u}from"./client.5063987d.js";import{g as _,m,al as k,o as n,c as s,q as r,a as t,F as d,n as f,t as g}from"./entry.c6e2a60e.js";const h=["innerHTML"],C={class:"shiki"},v=["textContent"],y=t("br",null,null,-1),H=_({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},transformRendered:{}},emits:["loaded"],setup(a,{emit:c}){const o=a,l=m(()=>{const e=u.value?.devtools.renderCodeHighlight(o.code,o.lang)||{code:o.code,supported:!1};return e.supported&&o.transformRendered&&(e.code=o.transformRendered(e.code)),e.supported&&k(()=>c("loaded")),e});return(e,B)=>e.lang&&l.value.supported?(n(),s("pre",{key:0,class:r(["n-code-block",e.lines?"n-code-block-lines":""]),innerHTML:l.value.code},null,10,h)):(n(),s("pre",{key:1,class:r(["n-code-block",e.lines?"n-code-block-lines":""])},[t("pre",C,[t("code",null,[(n(!0),s(d,null,f(e.code.split(`
2
2
  `),(i,p)=>(n(),s(d,{key:p},[t("span",{class:"line",textContent:g(i)},null,8,v),y],64))),128))])])],2))}});export{H as _};
@@ -1 +1 @@
1
- import{g as t,o,c as s,q as a,v as n,Y as r,a as l,t as i}from"./entry.6507cb32.js";const c={flex:"~ gap-3","items-center":""},u=t({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(o(),s("div",c,[e.icon?(o(),s("div",{key:0,class:a(e.icon)},null,2)):n("",!0),r(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
1
+ import{g as t,o,c as s,q as a,v as n,Y as r,a as l,t as i}from"./entry.c6e2a60e.js";const c={flex:"~ gap-3","items-center":""},u=t({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(o(),s("div",c,[e.icon?(o(),s("div",{key:0,class:a(e.icon)},null,2)):n("",!0),r(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
@@ -1 +1 @@
1
- import{g as n,o as a,h as o,w as s,Y as r,aE as t,ai as p,s as i,e as l}from"./entry.6507cb32.js";const c=n({__name:"NLink",props:{to:{},href:{},target:{}},setup(_){return(e,m)=>(a(),o(p(e.href||e.target?"a":i(l)),t(e.$props,{class:"n-link n-transition hover:n-link-hover n-link-base"}),{default:s(()=>[r(e.$slots,"default")]),_:3},16))}});export{c as _};
1
+ import{g as n,o as a,h as o,w as s,Y as r,aE as t,ai as p,s as i,e as l}from"./entry.c6e2a60e.js";const c=n({__name:"NLink",props:{to:{},href:{},target:{}},setup(_){return(e,m)=>(a(),o(p(e.href||e.target?"a":i(l)),t(e.$props,{class:"n-link n-transition hover:n-link-hover n-link-base"}),{default:s(()=>[r(e.$slots,"default")]),_:3},16))}});export{c as _};
@@ -1 +1 @@
1
- import{d as o}from"./client.ece13385.js";import{g as t,s as e,o as a,h as r,ai as s,t as d}from"./entry.6507cb32.js";const i=t({__name:"NMarkdown",props:{markdown:{},tag:{}},setup(m){return(n,l)=>n.markdown&&e(o)?.devtools?.renderMarkdown?(a(),r(s(n.tag||"span"),{key:0,class:"n-markdown",innerHTML:e(o).devtools.renderMarkdown(n.markdown)},null,8,["innerHTML"])):(a(),r(s(n.tag||"span"),{key:1,class:"n-markdown",textContent:d(n.markdown)},null,8,["textContent"]))}});export{i as _};
1
+ import{d as o}from"./client.5063987d.js";import{g as t,s as e,o as a,h as r,ai as s,t as d}from"./entry.c6e2a60e.js";const i=t({__name:"NMarkdown",props:{markdown:{},tag:{}},setup(m){return(n,l)=>n.markdown&&e(o)?.devtools?.renderMarkdown?(a(),r(s(n.tag||"span"),{key:0,class:"n-markdown",innerHTML:e(o).devtools.renderMarkdown(n.markdown)},null,8,["innerHTML"])):(a(),r(s(n.tag||"span"),{key:1,class:"n-markdown",textContent:d(n.markdown)},null,8,["textContent"]))}});export{i as _};
@@ -1 +1 @@
1
- import{g,X as y,c as r,a as o,q as n,b,w,s as i,F as c,y as B,z as S,Y as s,v as d,o as l,d as u,t as v,h as $,p as C,f as N,T as k,_ as I}from"./entry.6507cb32.js";import{_ as x}from"./NIconTitle.vue.0a904b99.js";const f=t=>(C("data-v-a73dbcfe"),t=t(),N(),t),V=["open"],z={"text-base":""},T={key:0,"text-sm":"",op50:""},D=f(()=>o("div",{class:"flex-auto"},null,-1)),F=f(()=>o("div",{class:"x-divider"},null,-1)),q=g({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const a=y(t,"open",void 0,{passive:!0});function _(e){a.value=e.target.open}return(e,p)=>{const m=k,h=x;return l(),r(c,null,[o("details",{open:i(a),onToggle:_},[o("summary",{class:n(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[b(h,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:n([i(a)?"op100":"op60",e.headerClass])},{default:w(()=>[o("div",null,[o("div",z,[s(e.$slots,"text",{},()=>[u(v(e.text),1)],!0)]),e.description||e.$slots.description?(l(),r("div",T,[s(e.$slots,"description",{},()=>[u(v(e.description),1)],!0)])):d("",!0)]),D,s(e.$slots,"actions",{},void 0,!0),e.collapse?(l(),$(m,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),p._lazyshow1||i(a)?(p._lazyshow1=!0,l(),r(c,null,[B(o("div",{class:n(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:n([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[S,i(a)]])],64)):d("v-show-if",!0)],40,V),F],64)}}});const Y=I(q,[["__scopeId","data-v-a73dbcfe"]]);export{Y as _};
1
+ import{g,X as y,c as r,a as o,q as n,b,w,s as i,F as c,y as B,z as S,Y as s,v as d,o as l,d as u,t as v,h as $,p as C,f as N,T as k,_ as I}from"./entry.c6e2a60e.js";import{_ as x}from"./NIconTitle.vue.6e56e9bf.js";const f=t=>(C("data-v-a73dbcfe"),t=t(),N(),t),V=["open"],z={"text-base":""},T={key:0,"text-sm":"",op50:""},D=f(()=>o("div",{class:"flex-auto"},null,-1)),F=f(()=>o("div",{class:"x-divider"},null,-1)),q=g({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(t){const a=y(t,"open",void 0,{passive:!0});function _(e){a.value=e.target.open}return(e,p)=>{const m=k,h=x;return l(),r(c,null,[o("details",{open:i(a),onToggle:_},[o("summary",{class:n(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[b(h,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:n([i(a)?"op100":"op60",e.headerClass])},{default:w(()=>[o("div",null,[o("div",z,[s(e.$slots,"text",{},()=>[u(v(e.text),1)],!0)]),e.description||e.$slots.description?(l(),r("div",T,[s(e.$slots,"description",{},()=>[u(v(e.description),1)],!0)])):d("",!0)]),D,s(e.$slots,"actions",{},void 0,!0),e.collapse?(l(),$(m,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):d("",!0)]),_:3},8,["icon","text","class"])],2),p._lazyshow1||i(a)?(p._lazyshow1=!0,l(),r(c,null,[B(o("div",{class:n(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[s(e.$slots,"details",{},void 0,!0),o("div",{class:n([e.containerClass,"mt1"])},[s(e.$slots,"default",{},void 0,!0)],2),s(e.$slots,"footer",{},void 0,!0)],2),[[S,i(a)]])],64)):d("v-show-if",!0)],40,V),F],64)}}});const Y=I(q,[["__scopeId","data-v-a73dbcfe"]]);export{Y as _};
@@ -1 +1 @@
1
- import{g as u,X as p,c as t,Y as l,y as f,bz as m,s as b,a as h,t as v,v as n,L as _,o as s,h as y,T as V}from"./entry.6507cb32.js";const k={class:"n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base"},B=["disabled"],g={key:0,value:"",disabled:"",hidden:""},S=u({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(d,{emit:i}){const o=p(d,"modelValue",i,{passive:!0});return(e,a)=>{const r=V;return s(),t("div",k,[l(e.$slots,"icon",{},()=>[e.icon?(s(),y(r,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):n("",!0)]),f(h("select",{"onUpdate:modelValue":a[0]||(a[0]=c=>_(o)?o.value=c:null),disabled:e.disabled,class:"w-full flex-auto n-bg-base !outline-none"},[e.placeholder?(s(),t("option",g,v(e.placeholder),1)):n("",!0),l(e.$slots,"default")],8,B),[[m,b(o)]])])}}});export{S as _};
1
+ import{g as u,X as p,c as t,Y as l,y as f,bz as m,s as b,a as h,t as v,v as n,L as _,o as s,h as y,T as V}from"./entry.c6e2a60e.js";const k={class:"n-text-input flex flex items-center border n-border-base rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base"},B=["disabled"],g={key:0,value:"",disabled:"",hidden:""},S=u({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(d,{emit:i}){const o=p(d,"modelValue",i,{passive:!0});return(e,a)=>{const r=V;return s(),t("div",k,[l(e.$slots,"icon",{},()=>[e.icon?(s(),y(r,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):n("",!0)]),f(h("select",{"onUpdate:modelValue":a[0]||(a[0]=c=>_(o)?o.value=c:null),disabled:e.disabled,class:"w-full flex-auto n-bg-base !outline-none"},[e.placeholder?(s(),t("option",g,v(e.placeholder),1)):n("",!0),l(e.$slots,"default")],8,B),[[m,b(o)]])])}}});export{S as _};
@@ -1 +1 @@
1
- import{g as i,X as c,o as r,c as u,y as h,by as p,s as l,a as t,L as b,aR as v,Y as f}from"./entry.6507cb32.js";const k=["checked","disabled"],m=["disabled"],w=t("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[t("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1),B=i({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(o,{emit:d}){const e=c(o,"modelValue",d,{passive:!0});return(a,s)=>(r(),u("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:l(e)||null,disabled:a.disabled||null},[h(t("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>b(e)?e.value=n:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=v(n=>e.value=!l(e),["enter"]))},null,40,m),[[p,l(e)]]),w,f(a.$slots,"default")],8,k))}});export{B as _};
1
+ import{g as i,X as c,o as r,c as u,y as h,by as p,s as l,a as t,L as b,aR as v,Y as f}from"./entry.c6e2a60e.js";const k=["checked","disabled"],m=["disabled"],w=t("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[t("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1),B=i({__name:"NSwitch",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(o,{emit:d}){const e=c(o,"modelValue",d,{passive:!0});return(a,s)=>(r(),u("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:l(e)||null,disabled:a.disabled||null},[h(t("input",{"onUpdate:modelValue":s[0]||(s[0]=n=>b(e)?e.value=n:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=v(n=>e.value=!l(e),["enter"]))},null,40,m),[[p,l(e)]]),w,f(a.$slots,"default")],8,k))}});export{B as _};
@@ -1 +1 @@
1
- import{g as a,o,c,Y as n,h as t,v as i,a as r,T as l}from"./entry.6507cb32.js";const p={class:"n-tip n-tip-base"},u=a({__name:"NTip",props:{icon:{}},setup(_){return(e,m)=>{const s=l;return o(),c("div",p,[n(e.$slots,"icon",{},()=>[e.icon?(o(),t(s,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):i("",!0)]),r("div",null,[n(e.$slots,"default")])])}}});export{u as _};
1
+ import{g as a,o,c,Y as n,h as t,v as i,a as r,T as l}from"./entry.c6e2a60e.js";const p={class:"n-tip n-tip-base"},u=a({__name:"NTip",props:{icon:{}},setup(_){return(e,m)=>{const s=l;return o(),c("div",p,[n(e.$slots,"icon",{},()=>[e.icon?(o(),t(s,{key:0,icon:e.icon,class:"n-tip-icon"},null,8,["icon"])):i("",!0)]),r("div",null,[n(e.$slots,"default")])])}}});export{u as _};
@@ -1 +1 @@
1
- import{g as r,c,a as d,Y as s,q as n,o as i,b as p,M as u}from"./entry.6507cb32.js";const f={flex:"~ gap4","items-center":""},g=r({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(a,{emit:t}){function o(e){t("update:search",e.target.value)}return(e,m)=>{const l=u;return i(),c("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:n([{p4:!a.noPadding}])},[d("div",f,[s(e.$slots,"search",{},()=>[p(l,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:n({"px-5 py-2":!a.noPadding}),value:a.search,onInput:o},null,8,["class","value"])]),s(e.$slots,"actions")]),s(e.$slots,"default")],2)}}});export{g as _};
1
+ import{g as r,c,a as d,Y as s,q as n,o as i,b as p,M as u}from"./entry.c6e2a60e.js";const f={flex:"~ gap4","items-center":""},g=r({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(a,{emit:t}){function o(e){t("update:search",e.target.value)}return(e,m)=>{const l=u;return i(),c("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:n([{p4:!a.noPadding}])},[d("div",f,[s(e.$slots,"search",{},()=>[p(l,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:n({"px-5 py-2":!a.noPadding}),value:a.search,onInput:o},null,8,["class","value"])]),s(e.$slots,"actions")]),s(e.$slots,"default")],2)}}});export{g as _};
@@ -0,0 +1 @@
1
+ import{g as h,X as B,a7 as N,r as V,aZ as C,b1 as O,o as l,c as f,a as i,q as p,s as a,t as w,v as u,Y as $,aH as J,aI as P,h as v,aE as j,b2 as z,L as E,al as M,S as R}from"./entry.c6e2a60e.js";import{U}from"./json-editor-vue.adfaf41f.js";const A=["open"],G={flex:"~ gap2","select-none":"","items-center":"",px4:""},q=h({__name:"StateEditor",props:{name:{},open:{type:Boolean},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(b,{emit:g}){const t=b,n=B(t,"open",g,{passive:!0}),k=N(),r=V(),c=C(t.name,"$9Gvv2FGyYa");t.state?r.value=JSON.parse(JSON.stringify(t.state)):(typeof t.state=="number"||typeof t.state!="string")&&(r.value=t.state);const d=O(r,e=>{typeof e!="number"&&typeof e!="string"?m(e,t.state):c.value=e},{deep:!0});function m(e,o){for(const s in e)e[s]===null?o[s]=null:Array.isArray(e[s])?o[s]=e[s].slice():typeof e[s]=="object"?m(e[s],o[s]):o[s]=e[s]}async function S(){d.pause(),r.value=JSON.parse(JSON.stringify(t.state)),await M(),d.resume()}return(e,o)=>{const s=R;return l(),f("div",{class:"state-editor-details",open:e.name?a(n):!0},[i("div",G,[e.name?(l(),f("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:p(a(n)?"":"op50"),onClick:o[0]||(o[0]=y=>n.value=!a(n))},[i("div",{"i-carbon-chevron-right":"",transition:"",class:p(a(n)?"rotate-90 op0":"")},null,2),i("code",{px3:"",py1:"","font-mono":"",class:p(a(n)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},w(e.name),3)],2)):u("",!0),$(e.$slots,"actions",J(P({isOpen:a(n),name:e.name,state:a(c)}))),a(n)?(l(),v(s,{key:1,title:"Refresh View",icon:"carbon-renew",onClick:S})):u("",!0)]),a(n)||!e.name?(l(),v(a(U),j({key:0,modelValue:a(r),"onUpdate:modelValue":o[1]||(o[1]=y=>E(r)?r.value=y:null)},e.$attrs,{class:["json-editor-vue",[a(k).value==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:a(z),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"])):u("",!0)],8,A)}}});export{q as _};
@@ -1 +1 @@
1
- import{g as n,h as o,w as t,i as _,o as a,a as s}from"./entry.6507cb32.js";const c=s("div",null," Your App ",-1),u=n({__name:"__blank",setup(r){return(p,i)=>{const e=_;return a(),o(e,{"h-screen":"","w-screen":"",px5:""},{default:t(()=>[c]),_:1})}}});export{u as default};
1
+ import{g as n,h as o,w as t,i as _,o as a,a as s}from"./entry.c6e2a60e.js";const c=s("div",null," Your App ",-1),u=n({__name:"__blank",setup(r){return(p,i)=>{const e=_;return a(),o(e,{"h-screen":"","w-screen":"",px5:""},{default:t(()=>[c]),_:1})}}});export{u as default};