@nuxt/devtools 4.0.0-alpha.4 → 4.0.0-alpha.6

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 (211) hide show
  1. package/dist/chunks/module-main.mjs +40 -34
  2. package/dist/client/200.html +1 -1
  3. package/dist/client/404.html +1 -1
  4. package/dist/client/_nuxt/__blank-ekrx7eve.js +1 -0
  5. package/dist/client/_nuxt/analyze-build-gtjxxh9s.js +1 -0
  6. package/dist/client/_nuxt/assets-fxuoynew.js +6 -0
  7. package/dist/client/_nuxt/auth-required-panel-gwrodxrm.js +1 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/386e78c8-3698-49a8-a7c5-53c44542b939.json +1 -0
  10. package/dist/client/_nuxt/client-jwk7bkap.js +1 -0
  11. package/dist/client/_nuxt/{code-diff-cxfxstwy.js → code-diff-d1bf4mlz.js} +3 -3
  12. package/dist/client/_nuxt/code-snippets-nodldh90.js +1 -0
  13. package/dist/client/_nuxt/components-ibu6c1zd.js +1 -0
  14. package/dist/client/_nuxt/composable-item-lb3qexrh.js +1 -0
  15. package/dist/client/_nuxt/custom-_name_-dt22ybu3.js +1 -0
  16. package/dist/client/_nuxt/data-schema-button-m4wb470q.js +1 -0
  17. package/dist/client/_nuxt/data-schema-drawer-5ccj6aug.js +2 -0
  18. package/dist/client/_nuxt/debug-nxl66qh3.js +1 -0
  19. package/dist/client/_nuxt/default-ibmlv6hu.js +1 -0
  20. package/dist/client/_nuxt/dist-nsuzcp77.js +1 -0
  21. package/dist/client/_nuxt/duration-display-cfe3xsok.js +1 -0
  22. package/dist/client/_nuxt/entry.css-m21ytcnz.css +1 -0
  23. package/dist/client/_nuxt/error-404-izmgsqlm.js +1 -0
  24. package/dist/client/_nuxt/error-404.css-l9jcssuy.css +1 -0
  25. package/dist/client/_nuxt/error-500-fejd4grh.js +1 -0
  26. package/dist/client/_nuxt/error-500.css-he4ew8b1.css +1 -0
  27. package/dist/client/_nuxt/{error-ct6hbfyl.js → error-mm873c55.js} +2 -2
  28. package/dist/client/_nuxt/filepath-item-calgslzq.js +1 -0
  29. package/dist/client/_nuxt/full-pesi6bu3.js +1 -0
  30. package/dist/client/_nuxt/h0fobd1u.js +4 -0
  31. package/dist/client/_nuxt/help-fab-ietvwhig.js +1 -0
  32. package/dist/client/_nuxt/hooks-mqgelnks.js +1 -0
  33. package/dist/client/_nuxt/imports-bofdhcsr.js +1 -0
  34. package/dist/client/_nuxt/launch-page-i8mgxym7.js +1 -0
  35. package/dist/client/_nuxt/modules-b6uha2ss.js +1 -0
  36. package/dist/client/_nuxt/nbadge-ft1i3ddy.js +1 -0
  37. package/dist/client/_nuxt/ncheckbox-gl62y715.js +1 -0
  38. package/dist/client/_nuxt/ncode-block-ksrq5ppu.js +2 -0
  39. package/dist/client/_nuxt/{ncode-block.css-o2ixs97j.css → ncode-block.css-ivoxtfjk.css} +1 -1
  40. package/dist/client/_nuxt/ndrawer-evv584t1.js +1 -0
  41. package/dist/client/_nuxt/ndropdown-dqqc8bnq.js +1 -0
  42. package/dist/client/_nuxt/nicon-title-f3ho3hah.js +1 -0
  43. package/dist/client/_nuxt/nlink-endeyoly.js +1 -0
  44. package/dist/client/_nuxt/nmarkdown-iw4stzqp.js +1 -0
  45. package/dist/client/_nuxt/nnavbar-n8fcnalx.js +1 -0
  46. package/dist/client/_nuxt/none-gr24yqiq.js +1 -0
  47. package/dist/client/_nuxt/nsection-block-n5u7wj9x.js +1 -0
  48. package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +1 -0
  49. package/dist/client/_nuxt/nselect-kdzalcm2.js +1 -0
  50. package/dist/client/_nuxt/nselect-tabs-e440xayq.js +1 -0
  51. package/dist/client/_nuxt/nswitch-pdw73751.js +1 -0
  52. package/dist/client/_nuxt/ntip-m8x8y44j.js +1 -0
  53. package/dist/client/_nuxt/nuxt-kphganvs.js +1 -0
  54. package/dist/client/_nuxt/open-graph-mtq8qyx5.js +3 -0
  55. package/dist/client/_nuxt/overview-mgkokpl9.js +1 -0
  56. package/dist/client/_nuxt/pages-g3tcvbsn.js +1 -0
  57. package/dist/client/_nuxt/pages-lk0hxlsc.js +1 -0
  58. package/dist/client/_nuxt/payload-ovd8emqe.js +1 -0
  59. package/dist/client/_nuxt/pinia-e6em75yg.js +1 -0
  60. package/dist/client/_nuxt/plugins-ojph2z4c.js +1 -0
  61. package/dist/client/_nuxt/ready-b5u27bv4.js +1 -0
  62. package/dist/client/_nuxt/render-tree-iwtso0n9.js +1 -0
  63. package/dist/client/_nuxt/rolldown-runtime-imbltlrc.js +1 -0
  64. package/dist/client/_nuxt/rpc-ewzip6fb.js +4 -0
  65. package/dist/client/_nuxt/runtime-configs-gyhmrfcz.js +1 -0
  66. package/dist/client/_nuxt/{server-discovery-epl1odcn.js → server-discovery-cfu428ir.js} +1 -1
  67. package/dist/client/_nuxt/server-route-inputs-hhxdu10p.js +1 -0
  68. package/dist/client/_nuxt/server-routes-efc7olve.js +7 -0
  69. package/dist/client/_nuxt/server-tasks-o59rfww6.js +1 -0
  70. package/dist/client/_nuxt/settings-c6tbo50r.js +1 -0
  71. package/dist/client/_nuxt/stacktrace-list-c5b46nul.js +1 -0
  72. package/dist/client/_nuxt/{state-components-grvqi1pg.js → state-components-eaw2evd3.js} +1 -1
  73. package/dist/client/_nuxt/state-editor-jm35t8p1.js +1 -0
  74. package/dist/client/_nuxt/state-modules-oox7nhib.js +1 -0
  75. package/dist/client/_nuxt/storage-fdd2zc94.js +1 -0
  76. package/dist/client/_nuxt/{storage-options-ll4al4nh.js → storage-options-ho965h55.js} +1 -1
  77. package/dist/client/_nuxt/terminals-b8awmi75.js +1 -0
  78. package/dist/client/_nuxt/timeline-nsh72kov.js +31 -0
  79. package/dist/client/_nuxt/{unocss-runtime-flq5aaes.js → unocss-runtime-mcb0a6oh.js} +1 -1
  80. package/dist/client/_nuxt/utils-hgmynvjd.js +2 -0
  81. package/dist/client/_nuxt/vendor/{json-editor-vue-go859b33.js → json-editor-vue-mkw4apmc.js} +92 -92
  82. package/dist/client/_nuxt/vendor/{json-editor-vue.css-lkbe0qhh.css → json-editor-vue.css-lb1ewor6.css} +1 -1
  83. package/dist/client/_nuxt/vendor/markdown-it-gg8o3tmh.js +14 -0
  84. package/dist/client/_nuxt/vendor/{quicktype-core-h9yg0llp.js → quicktype-core-ozubcbyl.js} +27 -27
  85. package/dist/client/_nuxt/vendor/shiki-c7z35hpo.js +293 -0
  86. package/dist/client/_nuxt/vendor/unocss-mfjt4fak.js +3 -0
  87. package/dist/client/_nuxt/vendor/unocss.css-flyrgbwp.css +1 -0
  88. package/dist/client/_nuxt/vendor/vis-izx2wksk.js +26 -0
  89. package/dist/client/_nuxt/vendor/{xterm.css-jqmddlol.css → xterm.css-j9zpjwmg.css} +1 -1
  90. package/dist/client/_nuxt/virtual-files-met9zkti.js +1 -0
  91. package/dist/client/_nuxt/vue-devtools-bl144b70.js +4 -0
  92. package/dist/client/_nuxt/vue-router-cnnrtyb0.js +1 -0
  93. package/dist/client/index.html +1 -1
  94. package/dist/module.json +1 -1
  95. package/dist/module.mjs +1 -1
  96. package/dist/runtime/plugins/devtools.client.js +1 -1
  97. package/dist/runtime/plugins/view/client.js +1 -1
  98. package/dist/shared/{devtools.DClER4Dv.mjs → devtools.nEotcg1R.mjs} +1 -1
  99. package/dist/webcomponents/index.mjs +23 -27
  100. package/package.json +46 -45
  101. package/dist/client/_nuxt/__blank-dpye2azp.js +0 -1
  102. package/dist/client/_nuxt/analyze-build-bkc0yj70.js +0 -1
  103. package/dist/client/_nuxt/assets-c8un2dgk.js +0 -6
  104. package/dist/client/_nuxt/auth-required-panel-f0bx4jy3.js +0 -1
  105. package/dist/client/_nuxt/builds/meta/c4431537-3cdf-4a17-8364-5d3d90841be5.json +0 -1
  106. package/dist/client/_nuxt/client-fxrhvlf0.js +0 -1
  107. package/dist/client/_nuxt/code-snippets-jmly69z5.js +0 -1
  108. package/dist/client/_nuxt/components-jtkex3ry.js +0 -1
  109. package/dist/client/_nuxt/composable-item-ctv0s77c.js +0 -1
  110. package/dist/client/_nuxt/composables-g3h8z0a3.js +0 -1
  111. package/dist/client/_nuxt/custom-_name_-lmgyewpm.js +0 -1
  112. package/dist/client/_nuxt/data-schema-button-lia8jo2z.js +0 -1
  113. package/dist/client/_nuxt/data-schema-drawer-k5lpnjpj.js +0 -2
  114. package/dist/client/_nuxt/debug-21oc3lwa.js +0 -1
  115. package/dist/client/_nuxt/default-l5unzaf9.js +0 -1
  116. package/dist/client/_nuxt/dialog-jbq54nkm.js +0 -1
  117. package/dist/client/_nuxt/dist-bxsmety0.js +0 -1
  118. package/dist/client/_nuxt/dist-el7s75zv.js +0 -1
  119. package/dist/client/_nuxt/dist-fas03c07.js +0 -1
  120. package/dist/client/_nuxt/dist-mnod32r1.js +0 -1
  121. package/dist/client/_nuxt/duration-display-gcccmged.js +0 -1
  122. package/dist/client/_nuxt/editor-ib5dg7xf.js +0 -1
  123. package/dist/client/_nuxt/entry.css-nqh1m7yk.css +0 -1
  124. package/dist/client/_nuxt/error-404-o4nzga33.js +0 -1
  125. package/dist/client/_nuxt/error-404.css-cfm1arun.css +0 -1
  126. package/dist/client/_nuxt/error-500-lbc8po65.js +0 -1
  127. package/dist/client/_nuxt/error-500.css-dkbj3cof.css +0 -1
  128. package/dist/client/_nuxt/filepath-item-mxes3g27.js +0 -1
  129. package/dist/client/_nuxt/full-g7ubub1r.js +0 -1
  130. package/dist/client/_nuxt/fuse-ic4l3jjo.js +0 -1
  131. package/dist/client/_nuxt/gdsye0vf.js +0 -2
  132. package/dist/client/_nuxt/help-fab-vp6gbv3k.js +0 -1
  133. package/dist/client/_nuxt/hooks-iu6wyfgn.js +0 -1
  134. package/dist/client/_nuxt/imports-jz51309y.js +0 -1
  135. package/dist/client/_nuxt/launch-page-j3htdbh0.js +0 -1
  136. package/dist/client/_nuxt/mitt.es-nswlq02h.js +0 -1
  137. package/dist/client/_nuxt/modules-j1gis064.js +0 -1
  138. package/dist/client/_nuxt/nbadge-7zr03ihs.js +0 -1
  139. package/dist/client/_nuxt/nbutton-dy9mskkk.js +0 -1
  140. package/dist/client/_nuxt/ncard-bs9j5ske.js +0 -1
  141. package/dist/client/_nuxt/ncheckbox-msykavgu.js +0 -1
  142. package/dist/client/_nuxt/ncode-block-lbhgksmi.js +0 -2
  143. package/dist/client/_nuxt/ndark-toggle-dd7qey8l.js +0 -1
  144. package/dist/client/_nuxt/ndialog-nuj407ct.js +0 -3
  145. package/dist/client/_nuxt/ndrawer-cshktk1a.js +0 -1
  146. package/dist/client/_nuxt/ndropdown-g8mioo07.js +0 -1
  147. package/dist/client/_nuxt/nicon-do46fhz3.js +0 -1
  148. package/dist/client/_nuxt/nicon-title-jjiuucly.js +0 -1
  149. package/dist/client/_nuxt/nlink-kqls97wt.js +0 -1
  150. package/dist/client/_nuxt/nloading-b6gn4u1s.js +0 -1
  151. package/dist/client/_nuxt/nmarkdown-c1xqnmie.js +0 -1
  152. package/dist/client/_nuxt/nnavbar-h4hz44io.js +0 -1
  153. package/dist/client/_nuxt/none-kh2oj8rz.js +0 -1
  154. package/dist/client/_nuxt/npanel-grids-ip7w4ejt.js +0 -1
  155. package/dist/client/_nuxt/npm-bqk49gno.js +0 -1
  156. package/dist/client/_nuxt/nsection-block-l37co05t.js +0 -1
  157. package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +0 -1
  158. package/dist/client/_nuxt/nselect-mb92757x.js +0 -1
  159. package/dist/client/_nuxt/nselect-tabs-gzwv1q7y.js +0 -1
  160. package/dist/client/_nuxt/nsplit-pane-nneagzae.js +0 -1
  161. package/dist/client/_nuxt/nsplit-pane.css-cyge27bh.css +0 -1
  162. package/dist/client/_nuxt/nswitch-hxwa8dwy.js +0 -1
  163. package/dist/client/_nuxt/ntext-input-ooyn577q.js +0 -1
  164. package/dist/client/_nuxt/ntip-czdtbj5r.js +0 -1
  165. package/dist/client/_nuxt/nuxt-link-bm02zjpm.js +0 -1
  166. package/dist/client/_nuxt/nuxt-logo-bq85idrv.js +0 -1
  167. package/dist/client/_nuxt/nuxt-n7rqurxx.js +0 -1
  168. package/dist/client/_nuxt/open-graph-fax7wv7x.js +0 -3
  169. package/dist/client/_nuxt/overview-8jufdkso.js +0 -1
  170. package/dist/client/_nuxt/pages-cudjh8j7.js +0 -1
  171. package/dist/client/_nuxt/pages-n6yugo8p.js +0 -1
  172. package/dist/client/_nuxt/payload-nms0e2pn.js +0 -1
  173. package/dist/client/_nuxt/pinia-lqdm1sj6.js +0 -1
  174. package/dist/client/_nuxt/plugins-d24ibpd8.js +0 -1
  175. package/dist/client/_nuxt/ready-chvd8pav.js +0 -1
  176. package/dist/client/_nuxt/render-tree-ipfeq7kp.js +0 -1
  177. package/dist/client/_nuxt/rolldown-runtime-oipoa1or.js +0 -1
  178. package/dist/client/_nuxt/rpc-isxadwf4.js +0 -1
  179. package/dist/client/_nuxt/runtime-configs-b6hwtm9f.js +0 -1
  180. package/dist/client/_nuxt/server-route-inputs-gybyb0r7.js +0 -1
  181. package/dist/client/_nuxt/server-routes-iyhit45p.js +0 -7
  182. package/dist/client/_nuxt/server-tasks-iu8kht7l.js +0 -1
  183. package/dist/client/_nuxt/settings-fmpxy0sd.js +0 -1
  184. package/dist/client/_nuxt/splitpanes.es-m52r20uv.js +0 -1
  185. package/dist/client/_nuxt/stacktrace-list-mzv9h3wp.js +0 -1
  186. package/dist/client/_nuxt/state-editor-bluyryo2.js +0 -1
  187. package/dist/client/_nuxt/state-modules-nila4w91.js +0 -1
  188. package/dist/client/_nuxt/state-routes-jda6rt5m.js +0 -1
  189. package/dist/client/_nuxt/state-schema-dxaz6x8f.js +0 -1
  190. package/dist/client/_nuxt/state-subprocess-lka458r1.js +0 -1
  191. package/dist/client/_nuxt/state-tabs-itldyzgg.js +0 -1
  192. package/dist/client/_nuxt/storage-e6rsfrwe.js +0 -1
  193. package/dist/client/_nuxt/storage-j9qzpha9.js +0 -1
  194. package/dist/client/_nuxt/tab-icon-me90e54n.js +0 -1
  195. package/dist/client/_nuxt/telemetry-iyty3hdu.js +0 -1
  196. package/dist/client/_nuxt/terminals-d6ve9pli.js +0 -1
  197. package/dist/client/_nuxt/timeline-ed79yl0t.js +0 -31
  198. package/dist/client/_nuxt/utils-0y38f305.js +0 -2
  199. package/dist/client/_nuxt/vendor/markdown-it-cxwyw9wc.js +0 -14
  200. package/dist/client/_nuxt/vendor/shiki-dger8vg9.js +0 -153
  201. package/dist/client/_nuxt/vendor/unocss-d0gwgu4l.js +0 -3
  202. package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +0 -1
  203. package/dist/client/_nuxt/vendor/vis-iaw6hxx2.js +0 -26
  204. package/dist/client/_nuxt/virtual-files-jir7s4c5.js +0 -1
  205. package/dist/client/_nuxt/vue-devtools-gkfop7rb.js +0 -4
  206. package/dist/client/_nuxt/vue-router-bjsf3ueg.js +0 -1
  207. /package/dist/client/_nuxt/{_plugin-vue_export-helper-cxcynmu7.js → _plugin-vue_export-helper-d9irwgla.js} +0 -0
  208. /package/dist/client/_nuxt/{color-jp2clyon.js → color-abaog8vc.js} +0 -0
  209. /package/dist/client/_nuxt/{composables-cjr9vk21.js → composables-ioamscf4.js} +0 -0
  210. /package/dist/client/_nuxt/{constants-xk5tdj23.js → constants-g2z8m4rs.js} +0 -0
  211. /package/dist/client/_nuxt/vendor/{xterm-cbq9q6da.js → xterm-eb5atty5.js} +0 -0
@@ -0,0 +1 @@
1
+ import{Ct as e,G as t,P as n,St as r,T as i,Tt as a,bt as o,j as s,jt as c,k as l,p as u,st as d}from"./vendor/json-editor-vue-mkw4apmc.js";var f=typeof document<`u`;function p(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function m(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&p(e.default)}var h=Object.assign;function g(e,t){let n={};for(let r in t){let i=t[r];n[r]=v(i)?i.map(e):e(i)}return n}var _=()=>{},v=Array.isArray;function ee(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var y=Symbol(``);function b(e,t){return h(Error(),{type:e,[y]:!0},t)}function x(e,t){return e instanceof Error&&y in e&&(t==null||!!(e.type&t))}var S=Symbol(``),te=Symbol(``),C=Symbol(``),w=Symbol(``),T=Symbol(``);function ne(e){return s(w)}var E=/#/g,re=/&/g,D=/\//g,O=/=/g,ie=/\?/g,k=/\+/g,ae=/%5B/g,oe=/%5D/g,A=/%5E/g,se=/%60/g,j=/%7B/g,M=/%7C/g,N=/%7D/g,P=/%20/g;function F(e){return e==null?``:encodeURI(``+e).replace(M,`|`).replace(ae,`[`).replace(oe,`]`)}function ce(e){return F(e).replace(j,`{`).replace(N,`}`).replace(A,`^`)}function I(e){return F(e).replace(k,`%2B`).replace(P,`+`).replace(E,`%23`).replace(re,`%26`).replace(se,"`").replace(j,`{`).replace(N,`}`).replace(A,`^`)}function L(e){return I(e).replace(O,`%3D`)}function le(e){return F(e).replace(E,`%23`).replace(ie,`%3F`)}function ue(e){return le(e).replace(D,`%2F`)}function R(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var z=/\/$/,B=e=>e.replace(z,``);function V(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=q(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:R(o)}}function de(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function H(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function fe(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&U(t.matched[r],n.matched[i])&&W(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function U(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function W(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!G(e[n],t[n]))return!1;return!0}function G(e,t){return v(e)?K(e,t):v(t)?K(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function K(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function q(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var J={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function Y(e){if(!e)if(f){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),B(e)}var X=/^[^#]+#/;function pe(e,t){return e.replace(X,`#`)+t}function me(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Z=()=>({left:window.scrollX,top:window.scrollY});function he(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=me(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function ge(e,t){return(history.state?history.state.position-t:-1)+e}var _e=new Map;function ve(e,t){_e.set(e,t)}function ye(e){let t=_e.get(e);return _e.delete(e),t}function be(e){return typeof e==`string`||e&&typeof e==`object`}function xe(e){return typeof e==`string`||typeof e==`symbol`}function Se(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(k,` `),i=r.indexOf(`=`),a=R(i<0?r:r.slice(0,i)),o=i<0?null:R(r.slice(i+1));if(a in t){let e=t[a];v(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Ce(e){let t=``;for(let n in e){let r=e[n];if(n=L(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&I(e)):[r&&I(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function we(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=v(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Q(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function $(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(b(4,{from:n,to:t})):e instanceof Error?c(e):be(e)?c(b(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Te(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(p(s)){let c=(s.__vccOpts||s)[t];c&&a.push($(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=m(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&$(c,n,r,o,e,i)()}))}}return a}function Ee(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>U(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>U(e,s))||i.push(s))}return[n,r,i]}var De=()=>location.protocol+`//`+location.host;function Oe(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),H(n,``)}return H(n,e)+r+i}function ke(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Oe(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(h({},e.state,{scroll:Z()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Ae(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Z():null}}function je(e){let{history:t,location:n}=window,r={value:Oe(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:De()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,h({},t.state,Ae(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=h({},i.value,t.state,{forward:e,scroll:Z()});a(o.current,o,!0),a(e,h({},Ae(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Me(e){e=Y(e);let t=je(e),n=ke(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=h({location:``,base:e,go:r,createHref:pe.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Ne(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Me(e)}var Pe={type:0,value:``},Fe=/[a-zA-Z0-9_]/;function Ie(e){if(!e)return[[]];if(e===`/`)return[[Pe]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Fe.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Le=`[^/]+?`,Re={sensitive:!1,strict:!1,start:!0,end:!0},ze=/[.+*?^${}()[\]/\\]/g;function Be(e,t){let n=h({},Re,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(ze,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Le;if(u!==Le){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(v(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=v(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Ve(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function He(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Ve(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ue(r))return 1;if(Ue(i))return-1}return i.length-r.length}function Ue(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var We={strict:!1,end:!0,sensitive:!1};function Ge(e,t,n){let r=h(Be(Ie(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ke(e,t){let n=[],r=new Map;t=ee(We,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Je(e);s.aliasOf=r&&r.record;let l=ee(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Je(h({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ge(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Xe(d)&&o(e.name)),et(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:_}function o(e){if(xe(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Qe(e,n);n.splice(t,0,e),e.record.name&&!Xe(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw b(1,{location:e});s=i.record.name,a=h(qe(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&qe(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw b(1,{location:e,currentLocation:t});s=i.record.name,a=h({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Ze(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function qe(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Je(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ye(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ye(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Xe(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ze(e){return e.reduce((e,t)=>h(e,t.meta),{})}function Qe(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;He(e,t[i])<0?r=i:n=i+1}let i=$e(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function $e(e){let t=e;for(;t=t.parent;)if(et(t)&&He(e,t)===0)return t}function et({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function tt(e){let t=s(C),n=s(w),r=u(()=>{let n=c(e.to);return t.resolve(n)}),i=u(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(U.bind(null,i));if(o>-1)return o;let s=ot(e[t-2]);return t>1&&ot(i)===s&&a[a.length-1].path!==s?a.findIndex(U.bind(null,e[t-2])):o}),a=u(()=>i.value>-1&&at(n.params,r.value.params)),o=u(()=>i.value>-1&&i.value===n.matched.length-1&&W(n.params,r.value.params));function l(n={}){if(it(n)){let n=t[c(e.replace)?`replace`:`push`](c(e.to)).catch(_);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:u(()=>r.value.href),isActive:a,isExactActive:o,navigate:l}}function nt(e){return e.length===1?e[0]:e}var rt=i({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:tt,setup(e,{slots:t}){let n=o(tt(e)),{options:r}=s(C),i=u(()=>({[st(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[st(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&nt(t.default(n));return e.custom?r:l(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function it(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function at(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!v(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ot(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var st=(e,t,n)=>e??t??n,ct=i({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:i}){let a=s(T),o=u(()=>e.route||a.value),f=s(te,0),p=u(()=>{let e=c(f),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=u(()=>o.value.matched[p.value]);t(te,u(()=>p.value+1)),t(S,m),t(T,o);let g=r();return d(()=>[g.value,m.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!U(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=o.value,r=e.name,a=m.value,s=a&&a.components[r];if(!s)return lt(i.default,{Component:s,route:t});let c=a.props[r],u=l(s,h({},c?c===!0?t.params:typeof c==`function`?c(t):c:null,n,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:g}));return lt(i.default,{Component:u,route:t})||u}}});function lt(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ut=ct;function dt(t){let r=Ke(t.routes,t),i=t.parseQuery||Se,o=t.stringifyQuery||Ce,s=t.history,l=Q(),u=Q(),d=Q(),p=a(J),m=J;f&&t.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=g.bind(null,e=>``+e),y=g.bind(null,ue),S=g.bind(null,R);function te(e,t){let n,i;return xe(e)?(n=r.getRecordMatcher(e),i=t):i=e,r.addRoute(i,n)}function ne(e){let t=r.getRecordMatcher(e);t&&r.removeRoute(t)}function E(){return r.getRoutes().map(e=>e.record)}function re(e){return!!r.getRecordMatcher(e)}function D(e,t){if(t=h({},t||p.value),typeof e==`string`){let n=V(i,e,t.path),a=r.resolve({path:n.path},t),o=s.createHref(n.fullPath);return h(n,a,{params:S(a.params),redirectedFrom:void 0,href:o})}let n;if(e.path!=null)n=h({},e,{path:V(i,e.path,t.path).path});else{let r=h({},e.params);for(let e in r)r[e]??delete r[e];n=h({},e,{params:y(r)}),t.params=y(t.params)}let a=r.resolve(n,t),c=e.hash||``;a.params=ee(S(a.params));let l=de(o,h({},e,{hash:ce(c),path:a.path})),u=s.createHref(l);return h({fullPath:l,hash:c,query:o===Ce?we(e.query):e.query||{}},a,{redirectedFrom:void 0,href:u})}function O(e){return typeof e==`string`?V(i,e,p.value.path):h({},e)}function ie(e,t){if(m!==e)return b(8,{from:t,to:e})}function k(e){return A(e)}function ae(e){return k(h(O(e),{replace:!0}))}function oe(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=O(i):{path:i},i.params={}),h({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function A(e,t){let n=m=D(e),r=p.value,i=e.state,a=e.force,s=e.replace===!0,c=oe(n,r);if(c)return A(h(O(c),{state:typeof c==`object`?h({},i,c.state):i,force:a,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!a&&fe(o,r,n)&&(u=b(16,{to:l,from:r}),W(r,r,!0,!1)),(u?Promise.resolve(u):M(l,r)).catch(e=>x(e)?x(e,2)?e:U(e):B(e,l,r)).then(e=>{if(e){if(x(e,2))return A(h({replace:s},O(e.to),{state:typeof e.to==`object`?h({},i,e.to.state):i,force:a}),t||l)}else e=P(l,r,!0,s,i);return N(l,r,e),e})}function se(e,t){let n=ie(e,t);return n?Promise.reject(n):Promise.resolve()}function j(e){let t=q.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function M(e,t){let n,[r,i,a]=Ee(e,t);n=Te(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push($(r,e,t))});let o=se.bind(null,e,t);return n.push(o),X(n).then(()=>{n=[];for(let r of l.list())n.push($(r,e,t));return n.push(o),X(n)}).then(()=>{n=Te(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push($(r,e,t))});return n.push(o),X(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push($(i,e,t));else n.push($(r.beforeEnter,e,t));return n.push(o),X(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Te(a,`beforeRouteEnter`,e,t,j),n.push(o),X(n))).then(()=>{n=[];for(let r of u.list())n.push($(r,e,t));return n.push(o),X(n)}).catch(e=>x(e,8)?e:Promise.reject(e))}function N(e,t,n){d.list().forEach(r=>j(()=>r(e,t,n)))}function P(e,t,n,r,i){let a=ie(e,t);if(a)return a;let o=t===J,c=f?history.state:{};n&&(r||o?s.replace(e.fullPath,h({scroll:o&&c&&c.scroll},i)):s.push(e.fullPath,i)),p.value=e,W(e,t,n,o),U()}let F;function I(){F||=s.listen((e,t,n)=>{if(!Y.listening)return;let r=D(e),i=oe(r,Y.currentRoute.value);if(i){A(h(i,{replace:!0,force:!0}),r).catch(_);return}m=r;let a=p.value;f&&ve(ge(a.fullPath,n.delta),Z()),M(r,a).catch(e=>x(e,12)?e:x(e,2)?(A(h(O(e.to),{force:!0}),r).then(e=>{x(e,20)&&!n.delta&&n.type===`pop`&&s.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&s.go(-n.delta,!1),B(e,r,a))).then(e=>{e||=P(r,a,!1),e&&(n.delta&&!x(e,8)?s.go(-n.delta,!1):n.type===`pop`&&x(e,20)&&s.go(-1,!1)),N(r,a,e)}).catch(_)})}let L=Q(),le=Q(),z;function B(e,t,n){U(e);let r=le.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function H(){return z&&p.value!==J?Promise.resolve():new Promise((e,t)=>{L.add([e,t])})}function U(e){return z||(z=!e,I(),L.list().forEach(([t,n])=>e?n(e):t()),L.reset()),e}function W(e,r,i,a){let{scrollBehavior:o}=t;if(!f||!o)return Promise.resolve();let s=!i&&ye(ge(e.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return n().then(()=>o(e,r,s)).then(e=>e&&he(e)).catch(t=>B(t,e,r))}let G=e=>s.go(e),K,q=new Set,Y={currentRoute:p,listening:!0,addRoute:te,removeRoute:ne,clearRoutes:r.clearRoutes,hasRoute:re,getRoutes:E,resolve:D,options:t,push:k,replace:ae,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:l.add,beforeResolve:u.add,afterEach:d.add,onError:le.add,isReady:H,install(t){t.component(`RouterLink`,rt),t.component(`RouterView`,ut),t.config.globalProperties.$router=Y,Object.defineProperty(t.config.globalProperties,"$route",{enumerable:!0,get:()=>c(p)}),f&&!K&&p.value===J&&(K=!0,k(s.location).catch(e=>{}));let n={};for(let e in J)Object.defineProperty(n,e,{get:()=>p.value[e],enumerable:!0});t.provide(C,Y),t.provide(w,e(n)),t.provide(T,p);let r=t.unmount;q.add(t),t.unmount=function(){q.delete(t),q.size<1&&(m=J,F&&F(),F=null,p.value=J,K=!1,z=!1),r()}}};function X(e){return e.reduce((e,t)=>e.then(()=>j(t)),Promise.resolve())}return Y}export{J as a,Me as i,dt as n,ne as o,Ne as r,ut as t};
@@ -1 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/gdsye0vf.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-nqh1m7yk.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-3gd0e2sv.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane.css-cyge27bh.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/gdsye0vf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-cxcynmu7.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-go859b33.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-oipoa1or.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-0y38f305.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-dger8vg9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rpc-isxadwf4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-chvd8pav.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-mnod32r1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-n7rqurxx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-bjsf3ueg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-fas03c07.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-d0gwgu4l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/composables-g3h8z0a3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndialog-nuj407ct.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-bs9j5ske.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/fuse-ic4l3jjo.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-bm02zjpm.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-bxsmety0.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npm-bqk49gno.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nsplit-pane-nneagzae.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/splitpanes.es-m52r20uv.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-iyty3hdu.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-ll4al4nh.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-dy9mskkk.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-do46fhz3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndark-toggle-dd7qey8l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nloading-b6gn4u1s.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-ip7w4ejt.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-ooyn577q.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/editor-ib5dg7xf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-jda6rt5m.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-logo-bq85idrv.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/tab-icon-me90e54n.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dialog-jbq54nkm.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-subprocess-lka458r1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-itldyzgg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-schema-dxaz6x8f.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-e6rsfrwe.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/gdsye0vf.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"c4431537-3cdf-4a17-8364-5d3d90841be5",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1775609765721,false]</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/h0fobd1u.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-m21ytcnz.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lb1ewor6.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-flyrgbwp.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/h0fobd1u.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-d9irwgla.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rolldown-runtime-imbltlrc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-mkw4apmc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/utils-hgmynvjd.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-c7z35hpo.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-b5u27bv4.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-kphganvs.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-cnnrtyb0.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/rpc-ewzip6fb.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-mfjt4fak.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-nsuzcp77.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-ho965h55.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/h0fobd1u.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"386e78c8-3698-49a8-a7c5-53c44542b939",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1780039912831,false]</script></body></html>
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "4.0.0-alpha.4",
4
+ "version": "4.0.0-alpha.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  import '@nuxt/kit';
2
- export { m as default } from './shared/devtools.DClER4Dv.mjs';
2
+ export { m as default } from './shared/devtools.nEotcg1R.mjs';
@@ -1,5 +1,5 @@
1
- import { defineNuxtPlugin, useRouter, useState } from "#imports";
2
1
  import { shallowReactive, watchEffect } from "vue";
2
+ import { defineNuxtPlugin, useRouter, useState } from "#imports";
3
3
  import { setupHooksDebug } from "../shared/hooks.js";
4
4
  export default defineNuxtPlugin((nuxt) => {
5
5
  if (typeof document === "undefined" || typeof window === "undefined")
@@ -1,4 +1,3 @@
1
- import { useAppConfig, useRuntimeConfig } from "#imports";
2
1
  import { NuxtDevtoolsInspectPanel } from "@nuxt/devtools/webcomponents";
3
2
  import { getDevToolsClientContext } from "@vitejs/devtools-kit/client";
4
3
  import { setIframeServerContext } from "@vue/devtools-kit";
@@ -6,6 +5,7 @@ import { createHooks } from "hookable";
6
5
  import { debounce } from "perfect-debounce";
7
6
  import { events as inspectorEvents, hasData as inspectorHasData, state as inspectorState } from "vite-plugin-vue-tracer/client/overlay";
8
7
  import { computed, markRaw, nextTick, reactive, ref, shallowReactive, shallowRef, toRef, watch } from "vue";
8
+ import { useAppConfig, useRuntimeConfig } from "#imports";
9
9
  import { initTimelineMetrics } from "../../function-metrics-helpers.js";
10
10
  import { state } from "./state.js";
11
11
  const MULTIPLE_SLASHES_RE = /\/+/g;
@@ -1,6 +1,6 @@
1
1
  import { defineNuxtModule } from '@nuxt/kit';
2
2
 
3
- const e=globalThis.process?.env||Object.create(null),t=globalThis.process||{env:e},n=t!==void 0&&t.env&&t.env.NODE_ENV||void 0,r=[[`claude`,[`CLAUDECODE`,`CLAUDE_CODE`]],[`replit`,[`REPL_ID`]],[`gemini`,[`GEMINI_CLI`]],[`codex`,[`CODEX_SANDBOX`,`CODEX_THREAD_ID`]],[`opencode`,[`OPENCODE`]],[`pi`,[i(`PATH`,/\.pi[\\/]agent/)]],[`auggie`,[`AUGMENT_AGENT`]],[`goose`,[`GOOSE_PROVIDER`]],[`devin`,[i(`EDITOR`,/devin/)]],[`cursor`,[`CURSOR_AGENT`]],[`kiro`,[i(`TERM_PROGRAM`,/kiro/)]]];function i(t,n){return ()=>{let r=e[t];return r?n.test(r):false}}function a(){let t=e.AI_AGENT;if(t)return {name:t.toLowerCase()};for(let[t,n]of r)for(let r of n)if(typeof r==`string`?e[r]:r())return {name:t};return {}}const o=a();o.name;!!o.name;const l=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:true}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:true}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:true}],[`GOOGLE_CLOUDRUN`,`K_SERVICE`],[`GOOGLE_CLOUDRUN_JOB`,`CLOUD_RUN_JOB`],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`JENKINS`,`JENKINS_URL`],[`HUDSON`,`HUDSON_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:false}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:false}],[`VERCEL`,`VERCEL_ENV`,{ci:false}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:false}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:false}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:true}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOY`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:true}]];function u(){for(let t of l)if(e[t[1]||t[0]])return {name:t[0].toLowerCase(),...t[2]};return e.SHELL===`/bin/jsh`&&t.versions?.webcontainer?{name:`stackblitz`,ci:false}:{name:``,ci:false}}const d=u(),f=d.name,p=t.platform||``,m=!!e.CI||d.ci!==false,h=!!t.stdout?.isTTY;!!e.DEBUG;const v=n===`test`||!!e.TEST;n===`production`||e.MODE===`production`;n===`dev`||n===`development`||e.MODE===`development`;!!e.MINIMAL||m||v||!h;const S=/^win/i.test(p);!e.NO_COLOR&&(!!e.FORCE_COLOR||(h||S)&&e.TERM!==`dumb`||m);const E=(t.versions?.node||``).replace(/^v/,``)||null;Number(E?.split(`.`)[0])||null;const O=!!t?.versions?.node,k=`Bun`in globalThis,A=`Deno`in globalThis,j=`fastly`in globalThis,M=`Netlify`in globalThis,N=`EdgeRuntime`in globalThis,P=globalThis.navigator?.userAgent===`Cloudflare-Workers`,F=[[M,`netlify`],[N,`edge-light`],[P,`workerd`],[j,`fastly`],[A,`deno`],[k,`bun`],[O,`node`]];function I(){let e=F.find(e=>e[0]);if(e)return {name:e[1]}}const L=I();L?.name||``;
3
+ const e=globalThis.process?.env||Object.create(null),t=globalThis.process||{env:e},n=t!==void 0&&t.env&&t.env.NODE_ENV||void 0,r=[[`claude`,[`CLAUDECODE`,`CLAUDE_CODE`]],[`replit`,[`REPL_ID`]],[`gemini`,[`GEMINI_CLI`]],[`codex`,[`CODEX_SANDBOX`,`CODEX_THREAD_ID`]],[`opencode`,[`OPENCODE`]],[`pi`,[i(`PATH`,/\.pi[\\/]agent/)]],[`auggie`,[`AUGMENT_AGENT`]],[`goose`,[`GOOSE_PROVIDER`]],[`devin`,[i(`EDITOR`,/devin/)]],[`cursor`,[`CURSOR_AGENT`]],[`kiro`,[i(`TERM_PROGRAM`,/kiro/)]]];function i(t,n){return ()=>{let r=e[t];return r?n.test(r):false}}function a(){let t=e.AI_AGENT;if(t)return {name:t.toLowerCase()};for(let[t,n]of r)for(let r of n)if(typeof r==`string`?e[r]:r())return {name:t};return {}}const o=a();o.name;!!o.name;const l=[[`APPVEYOR`],[`AWS_AMPLIFY`,`AWS_APP_ID`,{ci:true}],[`AZURE_PIPELINES`,`SYSTEM_TEAMFOUNDATIONCOLLECTIONURI`],[`AZURE_STATIC`,`INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN`],[`APPCIRCLE`,`AC_APPCIRCLE`],[`BAMBOO`,`bamboo_planKey`],[`BITBUCKET`,`BITBUCKET_COMMIT`],[`BITRISE`,`BITRISE_IO`],[`BUDDY`,`BUDDY_WORKSPACE_ID`],[`BUILDKITE`],[`CIRCLE`,`CIRCLECI`],[`CIRRUS`,`CIRRUS_CI`],[`CLOUDFLARE_PAGES`,`CF_PAGES`,{ci:true}],[`CLOUDFLARE_WORKERS`,`WORKERS_CI`,{ci:true}],[`GOOGLE_CLOUDRUN`,`K_SERVICE`],[`GOOGLE_CLOUDRUN_JOB`,`CLOUD_RUN_JOB`],[`CODEBUILD`,`CODEBUILD_BUILD_ARN`],[`CODEFRESH`,`CF_BUILD_ID`],[`DRONE`],[`DRONE`,`DRONE_BUILD_EVENT`],[`DSARI`],[`GITHUB_ACTIONS`],[`GITLAB`,`GITLAB_CI`],[`GITLAB`,`CI_MERGE_REQUEST_ID`],[`GOCD`,`GO_PIPELINE_LABEL`],[`LAYERCI`],[`JENKINS`,`JENKINS_URL`],[`HUDSON`,`HUDSON_URL`],[`MAGNUM`],[`NETLIFY`],[`NETLIFY`,`NETLIFY_LOCAL`,{ci:false}],[`NEVERCODE`],[`RENDER`],[`SAIL`,`SAILCI`],[`SEMAPHORE`],[`SCREWDRIVER`],[`SHIPPABLE`],[`SOLANO`,`TDDIUM`],[`STRIDER`],[`TEAMCITY`,`TEAMCITY_VERSION`],[`TRAVIS`],[`VERCEL`,`NOW_BUILDER`],[`VERCEL`,`VERCEL`,{ci:false}],[`VERCEL`,`VERCEL_ENV`,{ci:false}],[`APPCENTER`,`APPCENTER_BUILD_ID`],[`CODESANDBOX`,`CODESANDBOX_SSE`,{ci:false}],[`CODESANDBOX`,`CODESANDBOX_HOST`,{ci:false}],[`STACKBLITZ`],[`STORMKIT`],[`CLEAVR`],[`ZEABUR`],[`CODESPHERE`,`CODESPHERE_APP_ID`,{ci:true}],[`RAILWAY`,`RAILWAY_PROJECT_ID`],[`RAILWAY`,`RAILWAY_SERVICE_ID`],[`DENO-DEPLOY`,`DENO_DEPLOY`],[`DENO-DEPLOY`,`DENO_DEPLOYMENT_ID`],[`FIREBASE_APP_HOSTING`,`FIREBASE_APP_HOSTING`,{ci:true}],[`EDGEONE_PAGES`,`EO_PAGES_CI`,{ci:true}]];function u(){for(let t of l)if(e[t[1]||t[0]])return {name:t[0].toLowerCase(),...t[2]};return e.SHELL===`/bin/jsh`&&t.versions?.webcontainer?{name:`stackblitz`,ci:false}:{name:``,ci:false}}const d=u(),f=d.name,p=t.platform||``,m=!!e.CI||d.ci!==false,h=!!t.stdout?.isTTY;!!e.DEBUG;const v=n===`test`||!!e.TEST;n===`production`||e.MODE===`production`;n===`dev`||n===`development`||e.MODE===`development`;!!e.MINIMAL||m||v||!h;const S=/^win/i.test(p);!e.NO_COLOR&&(!!e.FORCE_COLOR||(h||S)&&e.TERM!==`dumb`||m);const E=(t.versions?.node||``).replace(/^v/,``)||null;Number(E?.split(`.`)[0])||null;const O=!!t?.versions?.node,k=`Bun`in globalThis,A=`Deno`in globalThis,j=`fastly`in globalThis,M=`Netlify`in globalThis,N=`EdgeRuntime`in globalThis,P=globalThis.navigator?.userAgent===`Cloudflare-Workers`,F=[[M,`netlify`],[N,`edge-light`],[P,`workerd`],[j,`fastly`],[A,`deno`],[k,`bun`],[O,`node`]];function I(){let e=F.find(e=>e[0]);if(e)return {name:e[1]}}const L=I();L?.name||``;
4
4
 
5
5
  const isSandboxed = f === "stackblitz" || f === "codesandbox";
6
6
  const defaultOptions = {
@@ -12,7 +12,6 @@ const noop = () => {};
12
12
  function toArray(value) {
13
13
  return Array.isArray(value) ? value : [value];
14
14
  }
15
-
16
15
  //#endregion
17
16
  //#region toRefs/index.ts
18
17
  /**
@@ -48,7 +47,6 @@ function toRefs(objectRef, options = {}) {
48
47
  }));
49
48
  return result;
50
49
  }
51
-
52
50
  //#endregion
53
51
  //#region watchImmediate/index.ts
54
52
  /**
@@ -66,7 +64,6 @@ function watchImmediate(source, cb, options) {
66
64
  //#endregion
67
65
  //#region _configurable.ts
68
66
  const defaultWindow = isClient ? window : void 0;
69
-
70
67
  //#endregion
71
68
  //#region unrefElement/index.ts
72
69
  /**
@@ -79,7 +76,6 @@ function unrefElement(elRef) {
79
76
  const plain = toValue(elRef);
80
77
  return (_$el = plain === null || plain === void 0 ? void 0 : plain.$el) !== null && _$el !== void 0 ? _$el : plain;
81
78
  }
82
-
83
79
  //#endregion
84
80
  //#region useEventListener/index.ts
85
81
  function useEventListener(...args) {
@@ -109,18 +105,18 @@ function useEventListener(...args) {
109
105
  }, { flush: "post" });
110
106
  }
111
107
  function onClickOutside(target, handler, options = {}) {
112
- const { window: window$1 = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
113
- if (!window$1) return controls ? {
108
+ const { window = defaultWindow, ignore = [], capture = true, detectIframe = false, controls = false } = options;
109
+ if (!window) return controls ? {
114
110
  stop: noop,
115
111
  cancel: noop,
116
112
  trigger: noop
117
113
  } : noop;
118
114
  let shouldListen = true;
119
115
  const shouldIgnore = (event) => {
120
- return toValue(ignore).some((target$1) => {
121
- if (typeof target$1 === "string") return Array.from(window$1.document.querySelectorAll(target$1)).some((el) => el === event.target || event.composedPath().includes(el));
116
+ return toValue(ignore).some((target) => {
117
+ if (typeof target === "string") return Array.from(window.document.querySelectorAll(target)).some((el) => el === event.target || event.composedPath().includes(el));
122
118
  else {
123
- const el = unrefElement(target$1);
119
+ const el = unrefElement(target);
124
120
  return el && (event.target === el || event.composedPath().includes(el));
125
121
  }
126
122
  });
@@ -129,12 +125,12 @@ function onClickOutside(target, handler, options = {}) {
129
125
  * Determines if the given target has multiple root elements.
130
126
  * Referenced from: https://github.com/vuejs/test-utils/blob/ccb460be55f9f6be05ab708500a41ec8adf6f4bc/src/vue-wrapper.ts#L21
131
127
  */
132
- function hasMultipleRoots(target$1) {
133
- const vm = toValue(target$1);
128
+ function hasMultipleRoots(target) {
129
+ const vm = toValue(target);
134
130
  return vm && vm.$.subTree.shapeFlag === 16;
135
131
  }
136
- function checkMultipleRoots(target$1, event) {
137
- const vm = toValue(target$1);
132
+ function checkMultipleRoots(target, event) {
133
+ const vm = toValue(target);
138
134
  const children = vm.$.subTree && vm.$.subTree.children;
139
135
  if (children == null || !Array.isArray(children)) return false;
140
136
  return children.some((child) => child.el === event.target || event.composedPath().includes(child.el));
@@ -153,7 +149,7 @@ function onClickOutside(target, handler, options = {}) {
153
149
  };
154
150
  let isProcessingClick = false;
155
151
  const cleanup = [
156
- useEventListener(window$1, "click", (event) => {
152
+ useEventListener(window, "click", (event) => {
157
153
  if (!isProcessingClick) {
158
154
  isProcessingClick = true;
159
155
  setTimeout(() => {
@@ -165,15 +161,16 @@ function onClickOutside(target, handler, options = {}) {
165
161
  passive: true,
166
162
  capture
167
163
  }),
168
- useEventListener(window$1, "pointerdown", (e) => {
164
+ useEventListener(window, "pointerdown", (e) => {
169
165
  const el = unrefElement(target);
170
166
  shouldListen = !shouldIgnore(e) && !!(el && !e.composedPath().includes(el));
171
167
  }, { passive: true }),
172
- detectIframe && useEventListener(window$1, "blur", (event) => {
168
+ detectIframe && useEventListener(window, "blur", (event) => {
173
169
  setTimeout(() => {
174
- var _window$document$acti;
175
170
  const el = unrefElement(target);
176
- if (((_window$document$acti = window$1.document.activeElement) === null || _window$document$acti === void 0 ? void 0 : _window$document$acti.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window$1.document.activeElement))) handler(event);
171
+ let activeEl = window.document.activeElement;
172
+ while (activeEl === null || activeEl === void 0 ? void 0 : activeEl.shadowRoot) activeEl = activeEl.shadowRoot.activeElement;
173
+ if ((activeEl === null || activeEl === void 0 ? void 0 : activeEl.tagName) === "IFRAME" && !(el === null || el === void 0 ? void 0 : el.contains(window.document.activeElement))) handler(event);
177
174
  }, 0);
178
175
  }, { passive: true })
179
176
  ].filter(Boolean);
@@ -191,7 +188,6 @@ function onClickOutside(target, handler, options = {}) {
191
188
  };
192
189
  return stop;
193
190
  }
194
-
195
191
  //#endregion
196
192
  //#region useDraggable/index.ts
197
193
  const defaultScrollConfig = {
@@ -212,7 +208,7 @@ function clampContainerScroll(container) {
212
208
  */
213
209
  function useDraggable(target, options = {}) {
214
210
  var _toValue, _toValue2, _toValue3, _scrollConfig$directi;
215
- const { pointerTypes, preventDefault: preventDefault$1, stopPropagation, exact, onMove, onEnd, onStart, initialValue, axis = "both", draggingElement = defaultWindow, containerElement, handle: draggingHandle = target, buttons = [0], restrictInView, autoScroll = false } = options;
211
+ const { pointerTypes, preventDefault, stopPropagation, exact, onMove, onEnd, onStart, initialValue, axis = "both", draggingElement = defaultWindow, containerElement, handle: draggingHandle = target, buttons = [0], restrictInView, autoScroll = false } = options;
216
212
  const position = ref((_toValue = toValue(initialValue)) !== null && _toValue !== void 0 ? _toValue : {
217
213
  x: 0,
218
214
  y: 0
@@ -223,7 +219,7 @@ function useDraggable(target, options = {}) {
223
219
  return true;
224
220
  };
225
221
  const handleEvent = (e) => {
226
- if (toValue(preventDefault$1)) e.preventDefault();
222
+ if (toValue(preventDefault)) e.preventDefault();
227
223
  if (toValue(stopPropagation)) e.stopPropagation();
228
224
  };
229
225
  const scrollConfig = toValue(autoScroll);
@@ -233,19 +229,19 @@ function useDraggable(target, options = {}) {
233
229
  direction: (_scrollConfig$directi = scrollConfig.direction) !== null && _scrollConfig$directi !== void 0 ? _scrollConfig$directi : defaultScrollConfig.direction
234
230
  } : defaultScrollConfig;
235
231
  const getScrollAxisValues = (value) => typeof value === "number" ? [value, value] : [value.x, value.y];
236
- const handleAutoScroll = (container, targetRect, position$1) => {
232
+ const handleAutoScroll = (container, targetRect, position) => {
237
233
  const { clientWidth, clientHeight, scrollLeft, scrollTop, scrollWidth, scrollHeight } = container;
238
234
  const [marginX, marginY] = getScrollAxisValues(scrollSettings.margin);
239
235
  const [speedX, speedY] = getScrollAxisValues(scrollSettings.speed);
240
236
  let deltaX = 0;
241
237
  let deltaY = 0;
242
238
  if (scrollSettings.direction === "x" || scrollSettings.direction === "both") {
243
- if (position$1.x < marginX && scrollLeft > 0) deltaX = -speedX;
244
- else if (position$1.x + targetRect.width > clientWidth - marginX && scrollLeft < scrollWidth - clientWidth) deltaX = speedX;
239
+ if (position.x < marginX && scrollLeft > 0) deltaX = -speedX;
240
+ else if (position.x + targetRect.width > clientWidth - marginX && scrollLeft < scrollWidth - clientWidth) deltaX = speedX;
245
241
  }
246
242
  if (scrollSettings.direction === "y" || scrollSettings.direction === "both") {
247
- if (position$1.y < marginY && scrollTop > 0) deltaY = -speedY;
248
- else if (position$1.y + targetRect.height > clientHeight - marginY && scrollTop < scrollHeight - clientHeight) deltaY = speedY;
243
+ if (position.y < marginY && scrollTop > 0) deltaY = -speedY;
244
+ else if (position.y + targetRect.height > clientHeight - marginY && scrollTop < scrollHeight - clientHeight) deltaY = speedY;
249
245
  }
250
246
  if (deltaX || deltaY) container.scrollBy({
251
247
  left: deltaX,
@@ -366,7 +362,7 @@ function useDraggable(target, options = {}) {
366
362
  var _options$capture;
367
363
  return {
368
364
  capture: (_options$capture = options.capture) !== null && _options$capture !== void 0 ? _options$capture : true,
369
- passive: !toValue(preventDefault$1)
365
+ passive: !toValue(preventDefault)
370
366
  };
371
367
  };
372
368
  useEventListener(draggingHandle, "pointerdown", start, config);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "type": "module",
4
- "version": "4.0.0-alpha.4",
4
+ "version": "4.0.0-alpha.6",
5
5
  "description": "The Nuxt DevTools gives you insights and transparency about your Nuxt App.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devtools.nuxt.com",
@@ -35,60 +35,61 @@
35
35
  "vite": ">=6.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nuxt/kit": "^4.4.2",
39
- "@vitejs/devtools": "^0.1.13",
40
- "@vitejs/devtools-kit": "^0.1.13",
41
- "@vue/devtools-core": "^8.1.1",
42
- "@vue/devtools-kit": "^8.1.1",
38
+ "@nuxt/kit": "^4.4.6",
39
+ "@vitejs/devtools": "^0.3.1",
40
+ "@vitejs/devtools-kit": "^0.3.1",
41
+ "@vue/devtools-core": "^8.1.2",
42
+ "@vue/devtools-kit": "^8.1.2",
43
43
  "birpc": "^4.0.0",
44
44
  "consola": "^3.4.2",
45
45
  "destr": "^2.0.5",
46
46
  "error-stack-parser-es": "^1.0.5",
47
- "fast-npm-meta": "^1.4.2",
47
+ "fast-npm-meta": "^2.0.0",
48
48
  "get-port-please": "^3.2.0",
49
- "hookable": "^6.1.0",
49
+ "hookable": "^6.1.1",
50
50
  "image-meta": "^0.2.2",
51
51
  "launch-editor": "^2.13.2",
52
- "local-pkg": "^1.1.2",
53
- "magicast": "^0.5.2",
52
+ "local-pkg": "^1.2.1",
53
+ "magicast": "^0.5.3",
54
54
  "ohash": "^2.0.11",
55
55
  "pathe": "^2.0.3",
56
56
  "perfect-debounce": "^2.1.0",
57
- "pkg-types": "^2.3.0",
58
- "semver": "^7.7.4",
57
+ "pkg-types": "^2.3.1",
58
+ "semver": "^7.8.1",
59
59
  "sirv": "^3.0.2",
60
60
  "structured-clone-es": "^2.0.0",
61
- "tinyexec": "^1.1.1",
61
+ "tinyexec": "^1.2.2",
62
62
  "tinyglobby": "^0.2.16",
63
- "vite-plugin-inspect": "^12.0.0-beta.1",
64
- "vite-plugin-vue-tracer": "^1.3.0",
65
- "which": "^6.0.1",
66
- "ws": "^8.20.0",
67
- "@nuxt/devtools-kit": "4.0.0-alpha.4"
63
+ "unstorage": "^1.17.5",
64
+ "vite-plugin-inspect": "^12.0.0-beta.3",
65
+ "vite-plugin-vue-tracer": "^1.4.0",
66
+ "which": "^7.0.0",
67
+ "ws": "^8.21.0",
68
+ "@nuxt/devtools-kit": "4.0.0-alpha.6"
68
69
  },
69
70
  "devDependencies": {
70
71
  "@antfu/utils": "^9.3.0",
71
72
  "@discoveryjs/cli": "^2.14.7",
72
73
  "@discoveryjs/discovery": "1.0.0-beta.92",
73
74
  "@iconify-json/bxl": "^1.2.4",
74
- "@iconify-json/carbon": "^1.2.20",
75
+ "@iconify-json/carbon": "^1.2.22",
75
76
  "@iconify-json/logos": "^1.2.11",
76
77
  "@iconify-json/ph": "^1.2.2",
77
78
  "@iconify-json/ri": "^1.2.10",
78
- "@iconify-json/simple-icons": "^1.2.77",
79
- "@iconify-json/tabler": "^1.2.33",
80
- "@nuxt/test-utils": "^4.0.0",
79
+ "@iconify-json/simple-icons": "^1.2.84",
80
+ "@iconify-json/tabler": "^1.2.35",
81
+ "@nuxt/test-utils": "^4.0.3",
81
82
  "@parcel/watcher": "^2.5.6",
82
83
  "@types/markdown-it-link-attributes": "^3.0.5",
83
- "@unhead/schema": "^2.1.13",
84
- "@unocss/nuxt": "^66.6.7",
85
- "@unocss/preset-icons": "^66.6.7",
86
- "@unocss/preset-uno": "^66.6.7",
87
- "@unocss/runtime": "^66.6.7",
88
- "@vitejs/devtools": "^0.1.13",
89
- "@vitest/ui": "^4.1.3",
90
- "@vue/devtools-applet": "^8.1.1",
91
- "@vueuse/nuxt": "^14.2.1",
84
+ "@unhead/schema": "^3.1.1",
85
+ "@unocss/nuxt": "^66.7.0",
86
+ "@unocss/preset-icons": "^66.7.0",
87
+ "@unocss/preset-uno": "^66.7.0",
88
+ "@unocss/runtime": "^66.7.0",
89
+ "@vitejs/devtools": "^0.3.1",
90
+ "@vitest/ui": "^4.1.7",
91
+ "@vue/devtools-applet": "^8.1.2",
92
+ "@vueuse/nuxt": "^14.3.0",
92
93
  "@xterm/addon-fit": "^0.11.0",
93
94
  "@xterm/xterm": "^6.0.0",
94
95
  "cronstrue": "^3.14.0",
@@ -97,28 +98,28 @@
97
98
  "fuse.js": "^7.3.0",
98
99
  "json-editor-vue": "^0.18.1",
99
100
  "lightningcss": "^1.32.0",
100
- "markdown-it": "^14.1.1",
101
+ "markdown-it": "^14.2.0",
101
102
  "markdown-it-link-attributes": "^4.0.1",
102
- "nitropack": "^2.13.3",
103
- "nuxt": "^4.4.2",
103
+ "nitropack": "^2.13.4",
104
+ "nuxt": "^4.4.6",
104
105
  "ofetch": "^1.5.1",
105
106
  "package-manager-detector": "^1.6.0",
106
107
  "quicktype-core": "22.0.0",
107
108
  "scule": "^1.3.0",
108
- "shiki": "^4.0.2",
109
- "shiki-codegen": "^4.0.2",
109
+ "shiki": "^4.1.0",
110
+ "shiki-codegen": "^4.1.0",
110
111
  "theme-vitesse": "^1.0.0",
111
- "tsx": "^4.21.0",
112
+ "tsx": "^4.22.3",
112
113
  "ua-parser-modern": "^0.1.1",
113
- "unimport": "^6.0.2",
114
- "unocss": "^66.6.7",
115
- "unplugin-vue": "^7.1.1",
116
- "unplugin-vue-markdown": "^30.0.0",
114
+ "unimport": "^6.3.0",
115
+ "unocss": "^66.7.0",
116
+ "unplugin-vue": "^7.2.0",
117
+ "unplugin-vue-markdown": "^32.0.0",
117
118
  "vanilla-jsoneditor": "^3.12.0",
118
- "vis-data": "^8.0.3",
119
- "vis-network": "^10.0.2",
120
- "vue-tsc": "^3.2.6",
121
- "vue-virtual-scroller": "^2.0.1"
119
+ "vis-data": "^8.0.4",
120
+ "vis-network": "^10.1.0",
121
+ "vue-tsc": "^3.3.2",
122
+ "vue-virtual-scroller": "^3.0.4"
122
123
  },
123
124
  "scripts": {
124
125
  "build": "pnpm dev:prepare && pnpm build:module && pnpm build:discovery && pnpm build:client",
@@ -1 +0,0 @@
1
- import{E as e,W as t,v as n}from"./vendor/json-editor-vue-go859b33.js";import"./composables-cjr9vk21.js";var r={"h-screen":``,"w-screen":``,"bg-black":``},i=e({__name:`__blank`,setup(e){return(e,i)=>(t(),n(`div`,r))}});export{i as default};
@@ -1 +0,0 @@
1
- import{C as e,Ct as t,E as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,ft as u,g as d,h as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-go859b33.js";import{A as _,_ as v}from"./ready-chvd8pav.js";import{a as y}from"./nuxt-n7rqurxx.js";import{_ as b,g as x}from"./utils-0y38f305.js";import"./npm-bqk49gno.js";import{a as S,m as C,p as w}from"./rpc-isxadwf4.js";import{t as T}from"./_plugin-vue_export-helper-cxcynmu7.js";import{t as E}from"./nbutton-dy9mskkk.js";import{t as D}from"./telemetry-iyty3hdu.js";import{t as O}from"./npanel-grids-ip7w4ejt.js";import{t as k}from"./nsplit-pane-nneagzae.js";import{t as A}from"./ntext-input-ooyn577q.js";import{t as j}from"./ndialog-nuj407ct.js";import{r as M,t as N}from"./state-subprocess-lka458r1.js";import{r as P}from"./state-routes-jda6rt5m.js";import{t as F}from"./ncode-block-lbhgksmi.js";import"./composables-cjr9vk21.js";import{t as I}from"./ncheckbox-msykavgu.js";import{t as L}from"./filepath-item-mxes3g27.js";import{t as R}from"./ntip-czdtbj5r.js";import{t as z}from"./help-fab-vp6gbv3k.js";var B={"h-full":``,grid:`~ rows-[max-content_1fr]`},V={flex:`~ wrap`,"w-full":``},H=[`onClick`],U={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},W={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},G=`/__nuxt_devtools__/client`,K=Object.assign(n({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let d=n,v=`${y().app.baseURL.replace(G,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),b=p(()=>{let e=[{name:`Overview`,id:`overview`}];return d.current.features.bundleClient&&e.push({name:`Client Bundle`,id:`bundle-client`}),d.current.features.bundleNitro&&e.push({name:`Nitro Bundle`,id:`bundle-nitro`}),d.current.features.viteInspect&&e.push({name:`Vite Inspect`,id:`vite-inspect`}),e}),x=t(b.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function T(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function D(e){return S.clearAnalyzeBuilds([e])}return(t,d)=>{let p=L,y=E;return a(),h(`div`,B,[f(`div`,V,[(a(!0),h(c,null,o(b.value,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e.id===x.value?.id?``:`border-b`),onClick:t=>x.value=e},[f(`div`,{class:i(e.id===x.value?.id?``:`op30`)},m(e.name),3)],10,H))),128)),d[1]||=f(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(a(),h(`div`,U,[d[15]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,W,[d[10]||=f(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),f(`div`,null,[d[2]||=f(`div`,{"text-sm":``,op50:``},` Name `,-1),f(`div`,null,m(n.current.name),1)]),d[11]||=f(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),f(`div`,null,[d[3]||=f(`div`,{"text-sm":``,op50:``},` Build duration `,-1),f(`div`,null,m(w(n.current)),1)]),n.current.size?.clientBundle?(a(),h(c,{key:0},[d[5]||=f(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),f(`div`,null,[d[4]||=f(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),f(`div`,null,m(T(n.current.size.clientBundle)),1)])],64)):s(``,!0),n.current.size?.nitroBundle?(a(),h(c,{key:1},[d[7]||=f(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),f(`div`,null,[d[6]||=f(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),f(`div`,null,m(T(n.current.size.nitroBundle)),1)])],64)):s(``,!0),d[12]||=f(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),f(`div`,null,[d[8]||=f(`div`,{"text-sm":``,op50:``},` Built `,-1),f(`div`,null,m(r(C)(new Date(n.current.endTime))),1)]),d[13]||=f(`div`,{"i-carbon:folder-parent":``,"text-xl":``},null,-1),f(`div`,null,[d[9]||=f(`div`,{"text-sm":``,op50:``},` Report Path `,-1),g(p,{filepath:n.current.analyzeDir},null,8,[`filepath`])])]),d[16]||=f(`div`,{"flex-auto":``},null,-1),g(y,{n:`rose`,icon:`carbon-delete`,onClick:d[0]||=e=>D(n.current.name)},{default:l(()=>[...d[14]||=[e(` Delete this report `,-1)]]),_:1})])):s(``,!0),d._lazyshow1||x.value?.id===`bundle-client`?(d._lazyshow1=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-client`]])],64)):s(`v-show-if`,!0),d._lazyshow2||x.value?.id===`bundle-nitro`?(d._lazyshow2=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`bundle-nitro`]])],64)):s(`v-show-if`,!0),d._lazyshow3||x.value?.id===`vite-inspect`?(d._lazyshow3=!0,a(),h(c,null,[u(f(`iframe`,{src:`${r(v)}${n.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[_,x.value?.id===`vite-inspect`]])],64)):s(`v-show-if`,!0)])}}}),{__name:`BuildAnalyzeDetails`}),q={},J={class:`markdown-body`};function Y(t,n){return a(),h(`div`,J,[...n[0]||=[f(`template`,null,[f(`div`,{class:`markdown-body`},[f(`h1`,null,`Build Analyze`),f(`p`,null,[e(`DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command `),f(`code`,{"v-pre":``},`nuxt build --analyze`),e(` and present the output data directly in DevTools for easy browsing and comparing.`)])])],-1)]])}var X=T(q,[[`render`,Y]]),Z={flex:`~ col`},Q=[`onClick`],$={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},ee={flex:`~ items-center justify-center wrap`,p4:``},te={flex:`~ col gap-1`,"w-250":``,p4:``},ne={flex:`~ gap-3`,mt2:``,"justify-end":``},re=n({__name:`analyze-build`,setup(n){let u=w(),_=b(),y=v(),T=x(`analyze-build:slug`,``),L=p(()=>_.value?.builds.find(e=>e.slug===T.value)??_.value?.builds[0]),B=t(!1),V=t(``),H=p(()=>_.value?.builds.some(e=>e.name===V.value.trim()));async function U(){V.value=await S.generateAnalyzeBuildName(),await u.start()&&(D(`analyze-build:start`),N.value={name:V.value,processId:await S.startAnalyzeBuild(V.value)},B.value&&q())}let W=P();function G(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function q(){N.value?.processId&&(W.value=N.value.processId,y.push(`/modules/terminals`))}return M(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:U}]),(t,n)=>{let p=E,v=K,y=O,b=k,x=A,S=R,w=F,D=I,M=j,P=X,W=z;return a(),h(c,null,[g(b,{"left-size":30},{left:l(()=>[f(`div`,Z,[(a(!0),h(c,null,o(r(_)?.builds,e=>(a(),h(c,{key:e.slug},[f(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===L.value?.slug?`text-primary bg-active`:``),onClick:t=>T.value=e.slug},[f(`code`,null,m(e.name),1),f(`div`,$,[n[4]||=f(`div`,{"i-carbon-time":``},null,-1),f(`span`,null,m(G(e)),1),n[5]||=f(`div`,{"flex-auto":``},null,-1),f(`span`,null,m(r(C)(new Date(e.endTime))),1)])],10,Q),n[6]||=f(`div`,{"x-divider":``},null,-1)],64))),128)),f(`div`,ee,[r(N)?(a(),d(p,{key:1,n:`primary`,icon:`carbon-circle-dash animate-spin`,onClick:n[1]||=e=>q()},{default:l(()=>[...n[8]||=[e(` Building... `,-1)]]),_:1})):(a(),d(p,{key:0,n:`primary`,icon:`carbon-edge-node`,onClick:n[0]||=e=>U()},{default:l(()=>[...n[7]||=[e(` Start a new build `,-1)]]),_:1}))])])]),right:l(()=>[L.value?(a(),d(v,{key:0,current:L.value},null,8,[`current`])):(a(),d(y,{key:1}))]),_:1}),g(r(u),null,{default:l(({resolve:t})=>[g(M,{"model-value":!0,onClose:e=>t(!1)},{default:l(()=>[f(`div`,te,[n[13]||=f(`h3`,{class:`text-lg font-medium leading-6`,mb2:``},` Start analyze build? `,-1),n[14]||=f(`p`,{op50:``},` Enter the name of the build: `,-1),g(x,{modelValue:V.value,"onUpdate:modelValue":n[2]||=e=>V.value=e,placeholder:`Build name`},null,8,[`modelValue`]),H.value?(a(),d(S,{key:0,"n-orange":``},{default:l(()=>[...n[9]||=[e(` A build with the same name already exists, continue would overrides the previous build result. `,-1)]]),_:1})):s(``,!0),n[15]||=f(`div`,{my3:``,"x-divider":``},null,-1),n[16]||=f(`p`,{op50:``},` The following command will be executed in your terminal: `,-1),g(w,{code:`npx nuxi analyze --no-serve --name=${V.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),g(D,{modelValue:B.value,"onUpdate:modelValue":n[3]||=e=>B.value=e,mt2:``,n:`primary`},{default:l(()=>[...n[10]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),f(`div`,ne,[g(p,{onClick:e=>t(!1)},{default:l(()=>[...n[11]||=[e(` Cancel `,-1)]]),_:1},8,[`onClick`]),g(p,{n:`solid primary`,onClick:e=>t(!0)},{default:l(()=>[...n[12]||=[e(` Start `,-1)]]),_:1},8,[`onClick`])])])]),_:2},1032,[`onClose`])]),_:1}),g(W,null,{default:l(()=>[g(P)]),_:1})],64)}}});export{re as default};
@@ -1,6 +0,0 @@
1
- import{C as e,Ct as t,E as n,Mt as r,Q as i,Qt as a,W as o,X as s,Y as c,_ as l,c as u,dt as d,en as f,ft as p,g as m,h,m as g,tn as _,v,vt as y,w as b}from"./vendor/json-editor-vue-go859b33.js";import{j as x,k as S}from"./ready-chvd8pav.js";import{j as C,w}from"./utils-0y38f305.js";import{A as T,B as E,C as D,N as O,O as k,a as A,c as j,d as M,g as N,k as P,u as F}from"./rpc-isxadwf4.js";import{t as I}from"./storage-options-ll4al4nh.js";import{i as L,n as ee,t as te}from"./editor-ib5dg7xf.js";import{t as R}from"./nicon-do46fhz3.js";import{t as z}from"./nbutton-dy9mskkk.js";import{t as B}from"./telemetry-iyty3hdu.js";import{t as V}from"./ntext-input-ooyn577q.js";import{t as ne}from"./ndialog-nuj407ct.js";import{t as H}from"./fuse-ic4l3jjo.js";import{t as U}from"./ndropdown-g8mioo07.js";import{t as W}from"./ndrawer-cshktk1a.js";import"./composables-cjr9vk21.js";import{t as G}from"./ncheckbox-msykavgu.js";import{t as re}from"./filepath-item-mxes3g27.js";import{t as K}from"./nnavbar-h4hz44io.js";import{t as q}from"./nsection-block-l37co05t.js";import{t as J}from"./code-snippets-jmly69z5.js";var Y={key:0,"h-full":``,"w-full":``,flex:``,"items-center":``,"justify-center":``},X={for:`drop-zone-input`,"text-3xl":``,hover:`text-green cursor-pointer`,"transition-all":``},ie={key:1,relative:``,"h-full":``,"w-full":``,grid:`~ rows-[max-content_1fr_max-content]`},ae={grid:`~ cols-minmax-8rem gap-8`,"overflow-auto":``,p6:``},oe={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,rounded:``,"rounded-t-lg":``,"bg-active":``,"object-cover":``,class:`aspect-1/1`,border:`~ base`},se=[`src`],ce={flex:`~ gap1`,"items-center":``},le={flex:`~ gap-2`,"items-center":``,"justify-center":``,p8:``},ue=Object.assign(n({__name:`AssetDropZone`,props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(n){let s=n,f=/\.\w+$/,g=T(s,`modelValue`),_=t(),y=t([]);function x(e){_.value=e.target,g.value=!0}function S(e){e.target===_.value&&(g.value=!1)}function C(e){e.preventDefault()}function w(e){e.preventDefault(),E(e.dataTransfer.files)}function E(e){let t=[...e||[]];if(t.length){let e=[],n=y.value.map(e=>e.name);for(let r of t)if(n.includes(r.name)){let t=1,[i,a]=r.name.split(`.`);for(;n.includes(`${i} (${t}).${a}`);)t++;let o=`${i}-${t}.${a}`,s=new Blob([r],{type:r.type}),c=new File([s],o,{lastModified:Date.now()});e.push(c),n.push(o)}else r.type===``&&L({message:`Folders are not supported yet`,icon:`carbon:face-dissatisfied`,classes:`text-orange`}),e.push(r);y.value=[...y.value,...e]}}async function O(){if(j.value||F.value)return;B(`assets:upload`);let e=[];for(let t of y.value){let n=new FileReader;n.readAsDataURL(t);let r=(await new Promise(e=>{n.onload=()=>e(n.result)})).split(`;base64,`).pop();e.push({path:t.name,encoding:`base64`,content:r})}await A.writeStaticAssets([...e],s.folder).then(()=>{I(),L({message:`Files uploaded successfully!`,icon:`i-carbon:checkmark`})}).catch(e=>{I(),L({message:`Error uploading files: ${e?.message??`unknown`}`,icon:`i-carbon-warning`,classes:`text-red`})}),g.value=!1}function k(e){y.value?.splice(e,1)}function M(e){return URL.createObjectURL(e)}function N(e,t){let[n,r]=e.name.split(`.`),i=t.replace(f,``),a=`${i}.${r}`;return i.length===0?(alert(`File name must be at least 1 characters long`),n):(Object.defineProperty(e,`name`,{value:a,writable:!1}),y.value.splice(y.value.indexOf(e),1,e),e)}function P(){y.value=[]}function I(){g.value=!1,P()}return D(`dragenter`,x),D(`dragleave`,S),D(`dragover`,C),D(`drop`,w),(t,n)=>{let s=z,f=R,_=V,x=i(`tooltip`);return o(),v(`div`,{fixed:``,"bottom-0":``,"left-13":``,"right-0":``,"top-0":``,"z-10":``,"backdrop-blur-20":``,"transition-all":``,class:a(r(g)?`opacity-100 visible`:`opacity-0 invisible`)},[p(b(s,{icon:`carbon-close`,title:`Close`,absolute:``,"right-5":``,"top-5":``,"z-20":``,"text-xl":``,border:!1,onClick:I},null,512),[[x,`Close`,void 0,{"bottom-end":!0}]]),y.value?.length?(o(),v(`div`,ie,[n[4]||=h(`div`,{px6:``,py6:``},[h(`h1`,{"text-2xl":``},` Upload `),h(`p`,{"text-sm":``,op50:``},` Drag and drop files to upload `)],-1),h(`div`,ae,[(o(!0),v(u,null,c(y.value,(e,t)=>(o(),v(`div`,{key:e.name,flex:`~ col gap-2`,relative:``,"h-50":``,"w-40":``,"items-center":``},[h(`div`,oe,[h(`img`,{"h-full":``,"w-full":``,"rounded-t-lg":``,"object-cover":``,src:M(e)},null,8,se)]),h(`div`,ce,[b(_,{n:`xs`,"h-full":``,"flex-auto":``,"model-value":e.name,"onUpdate:modelValue":t=>N(e,t.target.value)},null,8,[`model-value`,`onUpdate:modelValue`]),b(s,{n:`red`,icon:`carbon-trash-can`,"h-full":``,"flex-none":``,title:`Remove file`,onClick:e=>k(t)},null,8,[`onClick`])])]))),128))]),h(`div`,le,[y.value.length?(o(),m(s,{key:0,n:`red`,onClick:P},{default:d(()=>[b(f,{icon:`carbon-clean`}),n[2]||=e(` Clear `,-1)]),_:1})):l(``,!0),b(s,{disabled:!y.value.length,n:`primary solid`,onClick:O},{default:d(()=>[b(f,{icon:`carbon-cloud-upload`}),n[3]||=e(` Upload `,-1)]),_:1},8,[`disabled`])])])):(o(),v(`div`,Y,[h(`label`,X,[b(f,{icon:`carbon-cloud-upload`,"mr-2":``}),n[1]||=e(` Drop files here or click to select `,-1)]),h(`input`,{id:`drop-zone-input`,type:`file`,multiple:``,hidden:``,onChange:n[0]||=e=>E(e.target.files)},null,32)]))],2)}}}),{__name:`AssetDropZone`}),de=Object.assign(n({__name:`AssetFontPreview`,props:{asset:{}},setup(e){let t=e,n=g(()=>`devtools-assets-${E(t.asset)}`);return k(g(()=>`
2
- @font-face {
3
- font-family: '${n.value}';
4
- src: url('${t.asset.publicPath}');
5
- }
6
- `)),(e,t)=>(o(),v(`div`,{"of-hidden":``,style:f({fontFamily:`'${n.value}'`})},` Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz `,4))}}),{__name:`AssetFontPreview`}),fe={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,"bg-active":``,"object-cover":``,p1:``},pe=[`src`],me={key:2,"i-carbon-document":``,"text-3xl":``,op20:``},he={key:3,"w-full":``,"self-start":``,p4:``},ge=[`textContent`],_e={key:4},ve=[`src`,`autoplay`,`controls`],ye={key:5},be={key:0,"i-carbon-volume-up":``,"text-3xl":``,op20:``},xe=[`src`],Se={key:6,"i-carbon-help":``,"text-3xl":``,op20:``},Z=Object.assign(n({__name:`AssetPreview`,props:{asset:{},textContent:{},detail:{type:Boolean}},setup(e){return(t,n)=>{let r=de;return o(),v(`div`,fe,[e.asset.type===`image`?(o(),v(`img`,{key:0,src:e.asset.publicPath},null,8,pe)):e.asset.type===`font`?(o(),m(r,{key:e.asset.publicPath,asset:e.asset,"self-stretch":``,p2:``,"text-2xl":``},null,8,[`asset`])):e.asset.type===`text`&&!e.textContent?(o(),v(`div`,me)):e.asset.type===`text`&&e.textContent?(o(),v(`div`,he,[h(`pre`,{"max-h-10rem":``,"of-hidden":``,"text-xs":``,"font-mono":``,textContent:_(e.textContent)},null,8,ge)])):e.asset.type===`video`?(o(),v(`div`,_e,[h(`video`,{src:e.asset.publicPath,autoplay:e.detail,controls:e.detail},null,8,ve)])):e.asset.type===`audio`?(o(),v(`div`,ye,[e.detail?(o(),v(`audio`,{key:1,src:e.asset.publicPath,controls:``},null,8,xe)):(o(),v(`div`,be))])):(o(),v(`div`,Se))])}}}),{__name:`AssetPreview`}),Ce={relative:``,flex:`~ col gap-1`,hover:`bg-active`,"items-center":``,"of-hidden":``,rounded:``,p2:``},we={"w-full":``,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-center":``,"text-xs":``},Te=Object.assign(n({__name:`AssetGridItem`,props:{asset:{},folder:{}},setup(e){let t=e,n=g(()=>t.folder&&t.asset.path.startsWith(t.folder)?t.asset.path.slice(t.folder.length):t.asset.path);return(t,r)=>{let i=R,a=Z;return o(),v(`button`,Ce,[e.asset.layer?(o(),m(i,{key:0,icon:`i-carbon-layers`,absolute:``,"right-4":``,"top-4":``,"bg-primary":``})):l(``,!0),b(a,{"h-30":``,"w-30":``,rounded:``,border:`~ base`,asset:e.asset},null,8,[`asset`]),h(`div`,we,_(n.value),1)])}}}),{__name:`AssetGridItem`}),Q=Object.assign(n({__name:`AssetListItem`,props:{item:{},index:{default:0},modelValue:{}},setup(n,{emit:i}){let d=n,p=T(d,`modelValue`,i,{passive:!0}),b=g(()=>d.item?.children?.length),x=t(!0),S=g(()=>b.value?`i-carbon-folder`:d.item.type===`image`?`i-carbon-image`:d.item.type===`video`?`i-carbon-video`:d.item.type===`audio`?`i-carbon-volume-up`:d.item.type===`font`?`i-carbon-text-small-caps`:d.item.type===`text`?`i-carbon-document`:d.item.type===`json`?`i-carbon-json`:`i-carbon-document-blank`);return(t,i)=>{let d=R,g=Q;return o(),v(`div`,null,[h(`button`,{flex:`~ gap-2`,"w-full":``,"items-center":``,hover:`bg-active`,px4:``,py1:``,style:f({paddingLeft:`calc(1rem + ${n.index*1.5}em)`}),class:a({"bg-active":!b.value&&r(p)?.filePath===n.item?.filePath}),border:`b base`,onClick:i[0]||=e=>b.value?x.value=!x.value:p.value=n.item},[h(`div`,{class:a(S.value)},null,2),h(`span`,{class:a({"flex items-center":b.value}),"flex-auto":``,"text-start":``,"text-sm":``,"font-mono":``},[e(_(n.item.path)+` `,1),n.item.layer?(o(),m(d,{key:0,icon:`i-carbon-layers`,"bg-primary":``})):l(``,!0)],2),b.value?(o(),m(d,{key:0,icon:`carbon:chevron-right`,"transform-rotate":x.value?90:0,transition:``},null,8,[`transform-rotate`])):l(``,!0)],6),x.value?s(t.$slots,`default`,{key:0},()=>[(o(!0),v(u,null,c(n.item?.children,e=>(o(),m(g,{key:e.filepath,modelValue:r(p),"onUpdate:modelValue":i[1]||=e=>y(p)?p.value=e:null,item:e,index:n.index+1},null,8,[`modelValue`,`item`,`index`]))),128))]):l(``,!0)])}}}),{__name:`AssetListItem`}),Ee={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},De={flex:`~`,"items-center":``,"justify-center":``},Oe={"max-w-full":``,"w-full":``,"table-fixed":``},ke={flex:`~ gap-1`,"w-full":``,"items-center":``},Ae={flex:`~ gap-1`,"w-full":``,"items-center":``,"of-hidden":``},je={"flex-auto":``,"of-hidden":``,truncate:``,"ws-pre":``,"font-mono":``},Me={capitalize:``},Ne={key:0},Pe={op70:``},Fe={flex:`~ gap2 wrap`},Ie={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Le={flex:`~ gap2 wrap justify-center`},Re={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},ze={flex:`~ gap2 wrap justify-center`},Be={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Ve={flex:``,"justify-end":``,"gap-4":``},$=Object.assign(n({__name:`AssetDetails`,props:{modelValue:{}},setup(n,{emit:a}){let s=T(n,`modelValue`,a,{passive:!0}),c=M(async()=>{if(s.value.type===`image`)return A.getImageMeta(s.value.filePath)}),f=t(!1),y=t(),C=t(0),E=M(async()=>{if(s.value.type!==`text`)return;C.value;let e=await A.getTextAssetContent(s.value.filePath);return y.value=e,e});async function D(){if(E.value!==y.value)try{await A.writeStaticAssets([{path:s.value.path,content:y.value,override:!0}],``),f.value=!1,C.value++,L({message:`Updated`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),L({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let O=w(),k=g(()=>(O.value?._installedModules||[]).some(e=>e.meta?.name===`@nuxt/image`||e.meta?.name===`@nuxt/image-edge`||e.meta?.name===`@nuxt/image-nightly`)),j=g(()=>{let e=[];if(s.value.type===`image`){let t=c.value?.width?`\n width="${c.value.width}"\n height="${c.value.height}" `:` `;return e.push({lang:`vue-html`,code:`<img${t}\n src="${s.value.publicPath}"\n/>`,name:`Plain Image`}),k.value&&e.push({lang:`vue-html`,code:`<NuxtImg${t}\n src="${s.value.publicPath}"\n/>`,name:`Nuxt Img`,docs:`https://image.nuxt.com/usage/nuxt-img`},{lang:`vue-html`,code:`<NuxtPicture${t}\n src="${s.value.publicPath}"\n/>`,name:`Nuxt Picture`,docs:`https://image.nuxt.com/usage/nuxt-picture`}),e}return e.push({lang:`html`,code:`<a download href="${s.value.publicPath}">\n Download ${s.value.path.split(`/`).slice(-1)[0]}\n</a>`,name:`Download link`}),e}),N=te(),F=ee(),I=P(()=>s.value.mtime),R=g(()=>{let e=s.value.size;return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(2)} KB`:`${(e/1024/1024).toFixed(2)} MB`}),B=g(()=>{if(!c.value?.width||!c.value?.height)return``;let e=(t,n)=>n?e(n,t%n):t,t=e(c.value.width,c.value.height);return t>3?`${c.value.width/t}:${c.value.height/t}`:``}),H=g(()=>[`image`,`text`,`video`,`audio`,`font`].includes(s.value.type)),U=t(!1);async function W(){try{await A.deleteStaticAsset(s.value.filePath),s.value=void 0,U.value=!1,L({message:`Asset deleted`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),L({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let G=t(!1),K=t(``);async function q(){let e=s.value.filePath.split(`/`),t=e.slice(-1)[0]?.split(`.`).slice(0,-1).join(`.`);if(!K.value||K.value===t)return L({message:`Please enter a new name`,icon:`i-carbon-warning`,classes:`text-orange`});try{let t=e.slice(-1)[0]?.split(`.`).slice(-1)[0],n=`${e.slice(0,-1).join(`/`)}/${K.value}.${t}`;await A.renameStaticAsset(s.value.filePath,n),s.value=void 0,G.value=!1,L({message:`Asset renamed`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),L({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}return(t,n)=>{let a=Z,g=re,C=z,w=J,T=ne,O=V,k=i(`tooltip`);return o(),v(u,null,[h(`div`,Ee,[H.value?(o(),v(u,{key:0},[n[13]||=h(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[h(`div`,{"x-divider":``}),h(`div`,{"flex-none":``},` Preview `),h(`div`,{"x-divider":``})],-1),h(`div`,De,[b(a,{detail:``,"max-h-80":``,"min-h-20":``,"min-w-20":``,"w-auto":``,rounded:``,border:`~ base`,asset:r(s),"text-content":r(E)},null,8,[`asset`,`text-content`])])],64)):l(``,!0),n[25]||=h(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[h(`div`,{"x-divider":``}),h(`div`,{"flex-none":``},` Details `),h(`div`,{"x-divider":``})],-1),h(`table`,Oe,[h(`tbody`,null,[h(`tr`,null,[n[14]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Filepath `,-1),h(`td`,null,[h(`div`,ke,[b(g,{filepath:r(s).filePath,"text-left":``},null,8,[`filepath`]),p(b(C,{"flex-none":``,title:`Open in Editor`,icon:`carbon-launch`,border:!1,onClick:n[0]||=e=>r(F)(r(s).filePath)},null,512),[[k,`Open in Editor`]])])])]),h(`tr`,null,[n[15]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Public Path `,-1),h(`td`,null,[h(`div`,Ae,[h(`div`,je,_(r(s).publicPath),1),p(b(C,{"flex-none":``,title:`Copy public path`,icon:`carbon-copy`,border:!1,onClick:n[1]||=e=>r(N)(r(s).publicPath,`assets-public-path`)},null,512),[[k,`Copy public path`]]),p(b(C,{"flex-none":``,to:r(s).publicPath,icon:`carbon-launch`,target:`_blank`,border:!1,title:`Open in browser`},null,8,[`to`]),[[k,`Open in browser`]])])])]),h(`tr`,null,[n[16]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Type `,-1),h(`td`,Me,_(r(s).type),1)]),r(c)?.width?(o(),v(u,{key:0},[h(`tr`,null,[n[17]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Image Size `,-1),h(`td`,null,_(r(c).width)+` x `+_(r(c).height),1)]),B.value?(o(),v(`tr`,Ne,[n[18]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Aspect Ratio `,-1),h(`td`,null,_(B.value),1)])):l(``,!0)],64)):l(``,!0),h(`tr`,null,[n[19]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` File size `,-1),h(`td`,null,_(R.value),1)]),h(`tr`,null,[n[20]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Last modified `,-1),h(`td`,null,[e(_(new Date(r(s).mtime).toLocaleString())+` `,1),h(`span`,Pe,`(`+_(r(I))+`)`,1)])])])]),n[26]||=h(`div`,{flex:`~ gap2`,"mb--2":``,"items-center":``,op50:``},[h(`div`,{"x-divider":``}),h(`div`,{"flex-none":``},` Actions `),h(`div`,{"x-divider":``})],-1),h(`div`,Fe,[b(C,{to:r(s).publicPath,download:``,target:`_blank`,icon:`carbon-download`,n:`green`},{default:d(()=>[...n[21]||=[e(` Download `,-1)]]),_:1},8,[`to`]),r(s).type===`text`?(o(),m(C,{key:0,icon:`carbon-edit`,n:`cyan`,onClick:n[2]||=e=>f.value=!f.value},{default:d(()=>[...n[22]||=[e(` Edit `,-1)]]),_:1})):l(``,!0),b(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:n[3]||=e=>G.value=!G.value},{default:d(()=>[...n[23]||=[e(` Rename `,-1)]]),_:1}),b(C,{icon:`carbon-delete`,n:`red`,onClick:n[4]||=e=>U.value=!U.value},{default:d(()=>[...n[24]||=[e(` Delete `,-1)]]),_:1})]),n[27]||=h(`div`,{"flex-auto":``},null,-1),j.value.length?(o(),m(w,{key:1,border:`t base`,"mx--4":``,"mb--4":``,"code-snippets":j.value},null,8,[`code-snippets`])):l(``,!0)]),b(T,{modelValue:U.value,"onUpdate:modelValue":n[6]||=e=>U.value=e},{default:d(()=>[h(`div`,Ie,[n[30]||=h(`span`,null,` Are you sure you want to delete this asset? `,-1),h(`div`,Le,[b(C,{icon:`carbon-close`,onClick:n[5]||=e=>U.value=!1},{default:d(()=>[...n[28]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon-delete`,n:`red`,onClick:W},{default:d(()=>[...n[29]||=[e(` Delete `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),b(T,{modelValue:G.value,"onUpdate:modelValue":n[9]||=e=>G.value=e},{default:d(()=>[h(`div`,Re,[b(O,{modelValue:K.value,"onUpdate:modelValue":n[7]||=e=>K.value=e,placeholder:`New name`,n:`blue`},null,8,[`modelValue`]),h(`div`,ze,[b(C,{icon:`carbon-close`,onClick:n[8]||=e=>G.value=!1},{default:d(()=>[...n[31]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:q},{default:d(()=>[...n[32]||=[e(` Rename `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),r(s).type===`text`?(o(),m(T,{key:0,modelValue:f.value,"onUpdate:modelValue":n[12]||=e=>f.value=e},{default:d(()=>[h(`div`,Be,[p(h(`textarea`,{"onUpdate:modelValue":n[10]||=e=>y.value=e,placeholder:`Item value...`,class:`h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none`,onKeydown:x(D,[`enter`])},null,544),[[S,y.value]]),h(`div`,Ve,[b(C,{icon:`carbon-close`,onClick:n[11]||=e=>f.value=!1},{default:d(()=>[...n[33]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon:save`,n:`primary`,onClick:D},{default:d(()=>[...n[34]||=[e(` save `,-1)]]),_:1})])])]),_:1},8,[`modelValue`])):l(``,!0)],64)}}}),{__name:`AssetDetails`}),He={"h-full":``,"of-auto":``},Ue={"flex-none":``,flex:`~ gap2 items-center`,"text-lg":``},We={flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--1":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-primary:30":``,"text-8px":``},Ge={flex:`~ col`,"w-30":``,"of-auto":``},Ke={"text-xs":``,op75:``},qe={op50:``},Je={key:0},Ye={"mt--4":``,px2:``,grid:`~ cols-minmax-8rem`},Xe={key:1,p2:``,grid:`~ cols-minmax-8rem`},Ze={key:1},Qe=n({__name:`assets`,setup(e){let n=C(),a=t(!1),s=t(``),f=g(()=>new H(n.value||[],{keys:[`path`]})),y=O(()=>{let e=[];for(let t of n.value||[]){let n=t.path.split(`.`).pop();n&&!e.some(e=>e.name===n)&&e.push({name:n,value:!0})}return e}),x=g(()=>(s.value?f.value.search(s.value).map(e=>e.item):n.value||[]).filter(e=>{let t=e.path.split(`.`).pop();return!t||y.some(e=>e.name===t&&e.value)})),S=g(()=>{let e={};for(let t of x.value){let n=`${t.path.split(`/`).slice(0,-1).join(`/`)}/`;e[n]||(e[n]=[]),e[n].push(t)}return Object.entries(e).sort(([e],[t])=>e.localeCompare(t))}),w=g(()=>{let e={path:`public`,children:[]},t=(e,n,r)=>{let[i,...a]=n,o=e.children.find(e=>e.path===i);o||(o={...r,path:i,children:[]},e.children.push(o)),a.length>1?t(o,a,r):a.length===1&&o.children.push({...r,path:a[0]})};return x.value.forEach(n=>{t(e,n.path.split(`/`).filter(e=>e!==``),n)}),e.children}),T=t(),{view:E}=I(`assets`);function D(){E.value=E.value===`list`?`grid`:`list`}N(`Escape`,()=>{T.value=void 0});let k=t();return(e,t)=>{let f=z,g=G,C=U,O=K,A=ue,j=Te,M=q,N=Q,P=$,F=W,I=i(`tooltip`);return o(),v(`div`,He,[b(O,{ref_key:`navbar`,ref:k,search:s.value,"onUpdate:search":t[1]||=e=>s.value=e,pb2:``},{actions:d(()=>[h(`div`,Ue,[p(b(f,{icon:`carbon:cloud-upload`,title:`File Upload`,border:!1,onClick:t[0]||=e=>a.value=!a.value},null,512),[[I,`File Upload`,void 0,{"bottom-end":!0}]]),r(y).length?(o(),m(C,{key:0,direction:`end`,n:`sm primary`},{trigger:d(({click:e})=>[p(b(f,{icon:`carbon-filter`,border:!1,title:`Filter`,p3:``,"text-lg":``,onClick:t=>e()},null,8,[`onClick`]),[[I,`Filter`,void 0,{"bottom-end":!0}]]),h(`span`,We,_(r(y).length),1)]),default:d(()=>[h(`div`,Ge,[(o(!0),v(u,null,c(r(y),e=>(o(),m(g,{key:e.name,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,flex:`~ gap-2`,rounded:``,px2:``,py2:``},{default:d(()=>[h(`span`,Ke,_(e.name),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):l(``,!0),p(b(f,{"text-lg":``,border:!1,icon:r(E)===`grid`?`i-carbon-list`:`i-carbon-grid`,title:`Toggle view`,onClick:D},null,8,[`icon`]),[[I,`Toggle View`,void 0,{"bottom-end":!0}]])])]),default:d(()=>[h(`div`,qe,[s.value?(o(),v(`span`,Je,_(x.value.length)+` matched · `,1)):l(``,!0),h(`span`,null,_(r(n)?.length)+` assets in total`,1)])]),_:1},8,[`search`]),b(A,{modelValue:a.value,"onUpdate:modelValue":t[2]||=e=>a.value=e,folder:`/`},null,8,[`modelValue`]),r(E)===`grid`?(o(),v(u,{key:0},[S.value.length>1?(o(!0),v(u,{key:0},c(S.value,([e,t])=>(o(),m(M,{key:e,text:e,description:`${t.length} items`,open:t.length<=r(50),padding:!1},{default:d(()=>[h(`div`,Ye,[(o(!0),v(u,null,c(t,t=>(o(),m(j,{key:t.path,asset:t,folder:e,onClick:e=>T.value=t},null,8,[`asset`,`folder`,`onClick`]))),128))])]),_:2},1032,[`text`,`description`,`open`]))),128)):(o(),v(`div`,Xe,[(o(!0),v(u,null,c(x.value,e=>(o(),m(j,{key:e.path,asset:e,onClick:t=>T.value=e},null,8,[`asset`,`onClick`]))),128))]))],64)):(o(),v(`div`,Ze,[(o(!0),v(u,null,c(w.value,(e,n)=>(o(),m(N,{key:n,modelValue:T.value,"onUpdate:modelValue":t[3]||=e=>T.value=e,item:e},null,8,[`modelValue`,`item`]))),128))])),b(F,{"model-value":!!T.value,"auto-close":``,"w-120":``,top:k.value,onClose:t[5]||=e=>T.value=void 0},{default:d(()=>[T.value?(o(),m(P,{key:0,modelValue:T.value,"onUpdate:modelValue":t[4]||=e=>T.value=e},null,8,[`modelValue`])):l(``,!0)]),_:1},8,[`model-value`,`top`])])}}});export{Qe as default};
@@ -1 +0,0 @@
1
- import{X as e}from"./vendor/json-editor-vue-go859b33.js";import{t}from"./_plugin-vue_export-helper-cxcynmu7.js";var n={};function r(t,n){return e(t.$slots,`default`)}var i=Object.assign(t(n,[[`render`,r]]),{__name:`AuthRequiredPanel`});export{i as t};
@@ -1 +0,0 @@
1
- {"id":"c4431537-3cdf-4a17-8364-5d3d90841be5","timestamp":1775609729297,"prerendered":[]}
@@ -1 +0,0 @@
1
- import{Et as e,jt as t}from"./vendor/json-editor-vue-go859b33.js";var n,r=[];function i(e){if(r.push(e),!(typeof window>`u`))return window.__NUXT_DEVTOOLS__&&r.forEach(e=>e(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,`__NUXT_DEVTOOLS__`,{set(e){e&&r.forEach(t=>t(e))},get(){return n.value},configurable:!0}),()=>{r.splice(r.indexOf(e),1)}}function a(){n||(n=e(),i(a));function r(){n&&t(n)}function a(e){n.value=e,e.host&&e.host.hooks.hook(`host:update:reactivity`,r)}return n}var o=a();export{o as t};
@@ -1 +0,0 @@
1
- import{C as e,E as t,Et as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,g as u,h as d,lt as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-go859b33.js";import{t as _}from"./editor-ib5dg7xf.js";import{t as v}from"./nbutton-dy9mskkk.js";import{t as y}from"./ncode-block-lbhgksmi.js";var b={key:0,relative:``,"n-code-block":``},x={flex:`~ wrap`,"w-full":``},S=[`onClick`],C={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},w=Object.assign(t({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(t){let w=t,T=n(w.codeSnippets[0]),E=_(),D=p(()=>T.value?.lang||`text`);return f(()=>{w.codeSnippets.includes(T.value)||(T.value=w.codeSnippets[0])}),(n,f)=>{let p=y,_=v;return t.codeSnippets.length?(a(),h(`div`,b,[d(`div`,x,[(a(!0),h(c,null,o(t.codeSnippets,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e===T.value?``:`border-b`),onClick:t=>T.value=e},[d(`div`,{class:i(e===T.value?``:`op30`),"font-mono":``},m(e.name),3)],10,S))),128)),f[1]||=d(`div`,{border:`b base`,"flex-auto":``},null,-1)]),T.value?(a(),h(c,{key:0},[g(p,{code:T.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),d(`div`,C,[g(_,{icon:`carbon-copy`,onClick:f[0]||=e=>r(E)(T.value.code,t.eventType||`code-snippet-${T.value.name}`)},{default:l(()=>[...f[2]||=[e(` Copy `,-1)]]),_:1}),T.value?.docs?(a(),u(_,{key:0,to:T.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:l(()=>[...f[3]||=[e(` Docs `,-1)]]),_:1},8,[`to`])):s(``,!0)])],64)):s(``,!0)])):s(``,!0)}}}),{__name:`CodeSnippets`});export{w as t};
@@ -1 +0,0 @@
1
- import{$ as e,C as t,Ct as n,E as r,Et as i,Mt as a,P as o,Q as s,Qt as c,V as l,W as u,X as d,Y as f,Z as p,_ as m,c as h,ct as g,dt as _,ft as v,g as y,h as b,m as x,tn as S,v as C,vt as w,w as T}from"./vendor/json-editor-vue-go859b33.js";import{D as ee,L as te,b as ne,c as E,i as D,n as O,w as k,z as A}from"./utils-0y38f305.js";import{R as re}from"./rpc-isxadwf4.js";import{t as j}from"./storage-options-ll4al4nh.js";import{t as M}from"./editor-ib5dg7xf.js";import{t as N}from"./_plugin-vue_export-helper-cxcynmu7.js";import{t as P}from"./nicon-do46fhz3.js";import{t as F}from"./nbutton-dy9mskkk.js";import{t as ie}from"./ncard-bs9j5ske.js";import{t as I}from"./fuse-ic4l3jjo.js";import{t as L}from"./ndrawer-cshktk1a.js";import"./composables-cjr9vk21.js";import{t as R}from"./ncheckbox-msykavgu.js";import{t as z}from"./filepath-item-mxes3g27.js";import{t as B}from"./help-fab-vp6gbv3k.js";import{t as V}from"./nnavbar-h4hz44io.js";import{t as H}from"./nicon-title-jjiuucly.js";import{t as U}from"./nsection-block-l37co05t.js";import{n as W}from"./dist-el7s75zv.js";import{t as G}from"./nbadge-7zr03ihs.js";import{n as K,t as q}from"./vendor/vis-iaw6hxx2.js";import{t as J}from"./nselect-tabs-gzwv1q7y.js";import{n as Y,t as X}from"./state-components-grvqi1pg.js";var ae={},oe={class:`markdown-body`};function se(e,t){return u(),C(`div`,oe,[...t[0]||=[b(`template`,null,[b(`div`,{class:`markdown-body`},[b(`h1`,null,`Components`),b(`p`,null,`Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.`),b(`p`,null,`Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.`),b(`p`,null,[b(`a`,{href:`https://nuxt.com/docs/guide/directory-structure/components`,target:`_blank`,rel:`noopener`},`Learn more in the documentation`)])])],-1)]])}var ce=N(ae,[[`render`,se]]),le={"text-sm":``,"font-mono":``},Z=Object.assign(r({__name:`ComponentName`,props:{component:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||W(n.component.name||n.component.__name||n.component.kebabName||``));return(e,n)=>(u(),C(`code`,le,[n[0]||=b(`span`,{mr1:``,op20:``},`<`,-1),t(S(r.value),1),n[1]||=b(`span`,{ml1:``,op20:``},`/>`,-1)]))}}),{__name:`ComponentName`}),ue={flex:`~ col gap1`,"items-start":``,"of-hidden":``},Q={flex:`~ gap2 items-center`,px3:``},de={px3:``,pb2:``},fe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},pe={"text-sm":``},me={"text-primary":``},he={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},ge={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},_e={"text-sm":``},ve={"text-primary":``},ye={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},$=Object.assign(r({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||W(n.component.name||n.component.__name||n.component.kebabName||``)),i=x(()=>n.component.filePath||n.component.file||n.component.__file||``),o=M();return(n,s)=>{let c=Z,l=F,p=G,g=z;return u(),C(`div`,ue,[b(`div`,Q,[T(c,{component:e.component},null,8,[`component`]),e.component.meta?.docs&&typeof e.component.meta.docs==`string`?(u(),y(l,{key:0,title:`Open docs`,"flex-none":``,n:`xs`,to:e.component.meta.docs,target:`_blank`,icon:`carbon-catalog`},{default:_(()=>[...s[1]||=[t(` Docs `,-1)]]),_:1},8,[`to`])):m(``,!0),T(l,{title:`Copy name`,"flex-none":``,n:`xs`,icon:`carbon-copy`,onClick:s[0]||=e=>a(o)(`<${r.value}></${r.value}>`,`component-name`)},{default:_(()=>[...s[2]||=[t(` Copy `,-1)]]),_:1}),e.component.global?(u(),y(p,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0)]),b(`div`,de,[i.value?(u(),y(g,{key:0,filepath:i.value,"w-full":``,"text-sm":``,op40:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)]),e.dependents?(u(),C(`div`,fe,[b(`div`,pe,[b(`strong`,me,S(e.dependents.length),1),s[3]||=b(`span`,{op50:``},` references`,-1)]),e.dependents.length?(u(),C(`div`,he,[(u(!0),C(h,null,f(e.dependents,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),e.dependencies?(u(),C(`div`,ge,[b(`div`,_e,[b(`strong`,ve,S(e.dependencies.length),1),s[4]||=b(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(u(),C(`div`,ye,[(u(!0),C(h,null,f(e.dependencies,e=>(u(),y(g,{key:e,filepath:e},null,8,[`filepath`]))),128))])):m(``,!0)])):m(``,!0),d(n.$slots,`default`)])}}}),{__name:`ComponentDetails`}),be={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},xe={relative:``,"h-full":``,"w-full":``},Se={key:0,py4:``,pt3:``,flex:`~ col`},Ce={border:`t base`,p4:``},we=Object.assign(r({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let r=e,o=n(),s=n(),c=te(),f=i(),p=ee(),v=k(),y=ne(),{componentsGraphShowNodeModules:S,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:D,componentsGraphShowLayouts:O,componentsGraphShowWorkspace:A}=j(`ui`),M=n(),N=n(``),P=re(N,300),I=x(()=>{let e=r.relationships||[];if(M.value){let t=new Set;function n(r){!r||t.has(r)||(t.add(r),r.deps.forEach(t=>{n(e.find(e=>e.id===t))}))}return n(M.value),[...t]}return e}),z=x(()=>{let e=I.value.map(e=>{let t=r.components.find(t=>t.filePath===e.id),n=p.value?.find(t=>t.file===e.id),i=y.value?.find(t=>t.file===e.id),a=e.id.includes(`/node_modules/`)?`lib`:t?t.global?`global`:`user`:i?`layout`:n?`page`:`unknown`;if(!S.value&&a===`lib`||!D.value&&a===`page`||!O.value&&a===`layout`||!A.value&&a===`user`&&v.value&&!e.id.startsWith(v.value.rootDir)||!E.value&&a===`global`)return null;let o=a===`layout`?`hexagon`:a===`page`?`square`:`dot`,s=P.value&&!e.id.toLowerCase().includes(P.value.toLowerCase());return{id:e.id,label:Y(e.id),group:a,shape:o,size:15+Math.min(e.deps.length/2,8),font:{color:s?`#8885`:c.value===`dark`?`white`:`black`},color:s?`#8885`:M.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:i,relationship:e}}}).filter(e=>!!e),t=I.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new K(e),edges:t}}),B=x(()=>f.value?.component?(r.relationships?.find(e=>e.id===f.value?.component?.filePath)?.deps)?.map(e=>r.relationships?.find(t=>t.id===e)?.id).filter(Boolean):[]),H=x(()=>f.value?.component?(r.relationships?.filter(e=>e.deps.includes(f.value.component.filePath)))?.map(e=>r.relationships?.find(t=>t.id===e.id)?.id).filter(Boolean):[]);l(()=>{let e=new q(o.value,z.value,{nodes:{shape:`dot`,size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:`forceAtlas2Based`,timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:`#42b883`},unknown:{color:`#b86542`},lib:{color:`#b4b842`},page:{color:`#42b2b8`},layout:{color:`#4256b8`}}});e.on(`click`,e=>{let t=e.nodes?.[0];f.value=z.value.nodes.get(t).extra}),g(z,()=>{e.setData(z.value)})});function U(){f.value=void 0}let W=/.*\/components\//,G=/\.vue$/,J=/\/index$/;function Y(e){let t=r.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(W,``).replace(G,``).replace(J,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function X(){M.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let r=R,i=V,c=ie,l=$,p=F,g=L;return u(),C(h,null,[T(i,{ref_key:`navbar`,ref:s,search:N.value,"onUpdate:search":n[6]||=e=>N.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:_(()=>[b(`div`,be,[T(r,{modelValue:a(D),"onUpdate:modelValue":n[0]||=e=>w(D)?D.value=e:null,n:`primary sm`},{default:_(()=>[...n[8]||=[b(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(O),"onUpdate:modelValue":n[1]||=e=>w(O)?O.value=e:null,n:`primary sm`},{default:_(()=>[...n[9]||=[b(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(A),"onUpdate:modelValue":n[2]||=e=>w(A)?A.value=e:null,n:`primary sm`},{default:_(()=>[...n[10]||=[b(`span`,{op75:``},`Show workspace`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(S),"onUpdate:modelValue":n[3]||=e=>w(S)?S.value=e:null,n:`primary sm`},{default:_(()=>[...n[11]||=[b(`span`,{op75:``},`Show node_modules`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(E),"onUpdate:modelValue":n[4]||=e=>w(E)?E.value=e:null,n:`primary sm`},{default:_(()=>[...n[12]||=[b(`span`,{op75:``},`Show global components`,-1)]]),_:1},8,[`modelValue`])]),M.value?(u(),C(`button`,{key:0,flex:`~ gap-1`,"flex-none":``,"items-center":``,"rounded-full":``,"bg-gray:20":``,py1:``,pl3:``,pr2:``,"text-xs":``,op50:``,"hover:op100":``,onClick:n[5]||=e=>M.value=void 0},[...n[13]||=[t(` Clear filter `,-1),b(`div`,{"i-carbon-close":``},null,-1)]])):m(``,!0),n[14]||=b(`div`,{"flex-auto":``},null,-1),d(e.$slots,`default`)]),_:3},8,[`search`]),b(`div`,xe,[b(`div`,{ref_key:`container`,ref:o,"h-full":``,"w-full":``},null,512),T(c,{absolute:``,"bottom-3":``,"left-3":``,"border-0":``,"n-glass-effect":``,p2:``,px3:``,"text-sm":``},{default:_(()=>[...n[15]||=[b(`div`,{grid:`~ cols-[20px_1fr] items-center gap-y-1`},[b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-42b883":``}),b(`div`,{op50:``},` Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-97c2fc":``}),b(`div`,{op50:``},` Global Component `),b(`div`,{"h-3":``,"w-3":``,"bg-hex-42b2b8":``}),b(`div`,{op50:``},` Page `),b(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 726 628`,"ml--1px":``,"h-3":``},[b(`path`,{fill:`#4256b8`,"stroke-width":`4`,d:`M723 314 543 625.8H183L3 314 183 2.2h360L723 314z`})]),b(`div`,{op50:``},` Layout `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b4b842":``}),b(`div`,{op50:``},` Library Component `),b(`div`,{"h-3":``,"w-3":``,"rounded-full":``,"bg-hex-b86542":``}),b(`div`,{op50:``},` Unknown `)],-1)]]),_:1}),T(g,{"model-value":!!(f.value&&f.value.component),top:s.value,border:`t l base`,"w-80":``,onClose:U},{default:_(()=>[f.value&&f.value.component?(u(),C(`div`,Se,[T(l,{component:f.value.component,dependencies:B.value,dependents:H.value},null,8,[`component`,`dependencies`,`dependents`]),b(`div`,Ce,[T(p,{n:`primary solid`,onClick:n[7]||=e=>X()},{default:_(()=>[...n[16]||=[t(` Filter to this component `,-1)]]),_:1})])])):m(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),{__name:`ComponentsGraph`}),Te={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},Ee={key:0,"ml--1":``,"text-primary":``},De=Object.assign(r({__name:`ComponentItem`,props:{component:{},dependencies:{},dependents:{}},setup(e){let t=e,n=x(()=>t.component.filePath||t.component.file||t.component.__file||``);return(t,r)=>{let i=Z,a=$,o=p(`VDropdown`),s=G,l=z;return u(),C(`div`,Te,[T(o,null,{popper:_(()=>[T(a,{component:e.component,dependencies:e.dependencies,dependents:e.dependents,"w-100":``,pt3:``},null,8,[`component`,`dependencies`,`dependents`])]),default:_(()=>[b(`button`,{"hover:text-primary":``,class:c(e.dependents&&e.dependents.length===0?`op50`:``)},[T(i,{component:e.component},null,8,[`component`])],2)]),_:1}),e.dependents?.length?(u(),C(`sup`,Ee,` x`+S(e.dependents?.length),1)):m(``,!0),e.component.global?(u(),y(s,{key:1,n:`green`,title:`Registered at runtime as a global component`,textContent:`runtime`})):m(``,!0),d(t.$slots,`default`),n.value?(u(),y(l,{key:2,filepath:n.value,"text-sm":``,op25:``,"group-hover:op75":``},null,8,[`filepath`])):m(``,!0)])}}}),{__name:`ComponentItem`}),Oe={flex:`~ gap-2 items-center`},ke={pl4:``},Ae=Object.assign(r({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,r=n(``),i=n(`all`),s=x(()=>{let e=t.components.map(e=>O(e,t.relationships));return i.value===`using`?e.filter(e=>e.dependents?.length):i.value===`not-used`?e.filter(e=>!e.dependents?.length):e}),c={ClientOnly:`https://nuxt.com/docs/api/components/client-only`,DevOnly:`https://nuxt.com/docs/api/components/dev-only`,NuxtClientFallback:`https://nuxt.com/docs/api/components/nuxt-client-fallback`,NuxtPicture:`https://nuxt.com/docs/api/components/nuxt-picture`,NuxtRouteAnnouncer:`https://nuxt.com/docs/api/components/nuxt-route-announcer`,NuxtTime:`https://nuxt.com/docs/api/components/nuxt-time`,NuxtPage:`https://nuxt.com/docs/api/components/nuxt-page`,NuxtLayout:`https://nuxt.com/docs/api/components/nuxt-layout`,NuxtLink:`https://nuxt.com/docs/api/components/nuxt-link`,NuxtLoadingIndicator:`https://nuxt.com/docs/api/components/nuxt-loading-indicator`,NuxtErrorBoundary:`https://nuxt.com/docs/api/components/nuxt-error-boundary`,NuxtWelcome:`https://nuxt.com/docs/api/components/nuxt-welcome`,NuxtIsland:`https://nuxt.com/docs/api/components/nuxt-island`,NuxtImg:`https://nuxt.com/docs/api/components/nuxt-img`},l=x(()=>new I(s.value,{keys:[`component.pascalName`,`component.filePath`,`component.kebabName`]})),p=x(()=>{let e=[],t=new Map,n=[],i=[],a={user:0,lib:0,builtin:0,runtime:0};return(r.value?l.value.search(r.value).map(e=>e.item):s.value).forEach(r=>{let o=r.component;if(o.filePath&&E(o.filePath)){let e=D(o.filePath);if(!e)return;e===`nuxt`?(o.meta??={},o.meta.docs??=c?.[o.pascalName],n.push(r),a.builtin++):(t.has(e)||t.set(e,[]),t.get(e).push(r),a.lib++)}else o.global&&!o.filePath?(i.push(r),a.runtime++):(e.push(r),a.user++)}),{count:a,user:e,builtin:n,lib:t,runtime:i}});return(e,t)=>{let n=P,s=J,c=V,l=De,g=U,v=H;return u(),C(h,null,[T(c,{search:r.value,"onUpdate:search":t[1]||=e=>r.value=e,pb3:``},{actions:_(()=>[d(e.$slots,`default`)]),default:_(()=>[b(`div`,Oe,[T(n,{icon:`carbon-filter`,op50:``}),T(s,{modelValue:i.value,"onUpdate:modelValue":t[0]||=e=>i.value=e,n:`primary sm`,options:[{label:`All`,value:`all`},{label:`Using`,value:`using`},{label:`Not used`,value:`not-used`}]},null,8,[`modelValue`])])]),_:3},8,[`search`]),p.value.user.length?(u(),y(g,{key:0,icon:`carbon-nominal`,text:`User components`,open:p.value.user.length<=a(50),description:`Total components: ${p.value.count.user}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.user,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.runtime.length?(u(),y(g,{key:1,icon:`carbon-load-balancer-global`,open:p.value.runtime.length<=a(50),text:`Runtime components`,description:`Total components: ${p.value.count.runtime}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.runtime,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`open`,`description`])):m(``,!0),p.value.builtin.length?(u(),y(g,{key:2,icon:`simple-icons-nuxtdotjs`,text:`Built-in components`,description:`Total components: ${p.value.count.builtin}`},{default:_(()=>[(u(!0),C(h,null,f(p.value.builtin,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))]),_:1},8,[`description`])):m(``,!0),p.value.lib.size?(u(),y(g,{key:3,open:p.value.count.lib<=a(50),icon:`carbon-3d-mpr-toggle`,text:`Components from libraries`,description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:_(()=>[(u(!0),C(h,null,f(p.value.lib.entries(),([e,t])=>(u(),C(`div`,{key:e,"ml-2":``},[T(v,{text:`${e} (${t.length})`,py1:``,op50:``},null,8,[`text`]),b(`div`,ke,[(u(!0),C(h,null,f(t,e=>(u(),y(l,o({key:e.component.filePath},{ref_for:!0},e),null,16))),128))])]))),128))]),_:1},8,[`open`,`description`])):m(``,!0)],64)}}}),{__name:`ComponentsList`}),je={relative:``,"h-full":``,"of-auto":``},Me={"flex-none":``,flex:`~ gap3`},Ne=r({__name:`components`,setup(t){let n=A(),r=X(),i=Y(),{componentsView:o}=j(`ui`);function c(){n.value?.inspector?.enable()}function l(){o.value=o.value===`list`?`graph`:`list`}return(t,d)=>{let f=F,p=ce,g=B,x=s(`tooltip`);return u(),C(h,null,[b(`div`,je,[(u(),y(e(a(o)===`list`?Ae:we),{components:a(r),relationships:a(i)},{default:_(()=>[b(`div`,Me,[v(T(f,{"text-lg":``,border:!1,icon:a(o)===`graph`?`i-carbon-list`:`i-carbon-network-4`,title:`Toggle view`,onClick:l},null,8,[`icon`]),[[x,`Toggle View`,void 0,{"bottom-end":!0}]]),a(n)?.inspector?.isAvailable?v((u(),y(f,{key:0,"text-lg":``,border:!1,icon:`i-tabler-focus-2`,title:`Inspect Vue components`,onClick:c},null,512)),[[x,`Inspect Vue components`,void 0,{"bottom-end":!0}]]):m(``,!0)])]),_:1},8,[`components`,`relationships`]))]),T(g,null,{default:_(()=>[T(p)]),_:1})],64)}}});export{Ne as default};