@nuxt/devtools-nightly 3.2.2-29550409.4d481d5 → 3.2.3-29550562.4009edd

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 (158) hide show
  1. package/dist/chunks/module-main.mjs +141 -52
  2. package/dist/chunks/plugin-metrics.mjs +4 -2
  3. package/dist/chunks/timeline.mjs +2 -1
  4. package/dist/chunks/vite-inspect.mjs +7 -4
  5. package/dist/client/200.html +1 -1
  6. package/dist/client/404.html +1 -1
  7. package/dist/client/_nuxt/__blank-gayjf0ih.js +1 -0
  8. package/dist/client/_nuxt/analyze-build-bnq2cil8.js +1 -0
  9. package/dist/client/_nuxt/assets-fjp0hrmh.js +6 -0
  10. package/dist/client/_nuxt/builds/latest.json +1 -1
  11. package/dist/client/_nuxt/builds/meta/ecec3f2a-4157-4187-af80-a6bd31655380.json +1 -0
  12. package/dist/client/_nuxt/{client-lfu9nb62.js → client-lh91kcpv.js} +1 -1
  13. package/dist/client/_nuxt/{client-ea5fdhj9.js → client-s5g5n0ac.js} +2 -2
  14. package/dist/client/_nuxt/{code-diff-otsxuk81.js → code-diff-cb7twqkt.js} +3 -3
  15. package/dist/client/_nuxt/{code-snippets-c0ulfayj.js → code-snippets-ho13b87l.js} +1 -1
  16. package/dist/client/_nuxt/components-peth8amc.js +1 -0
  17. package/dist/client/_nuxt/{composable-item-jjp1tvft.js → composable-item-b09pj4ca.js} +1 -1
  18. package/dist/client/_nuxt/custom-_name_-lfwzilnd.js +1 -0
  19. package/dist/client/_nuxt/{data-schema-button-fk6ozqve.js → data-schema-button-ke4komn6.js} +1 -1
  20. package/dist/client/_nuxt/{data-schema-drawer-mi3x7oeb.js → data-schema-drawer-dqe6w00i.js} +1 -1
  21. package/dist/client/_nuxt/debug-itzra6gt.js +1 -0
  22. package/dist/client/_nuxt/{default-n9xykcpp.js → default-bunv5fnq.js} +1 -1
  23. package/dist/client/_nuxt/{dev-auth-jrf61eu0.js → dev-auth-j4vxv6a1.js} +1 -1
  24. package/dist/client/_nuxt/{dist-jq34z2yz.js → dist-duc3zu0y.js} +1 -1
  25. package/dist/client/_nuxt/dn0r3w55.js +4 -0
  26. package/dist/client/_nuxt/{duration-display-k6iuyk4f.js → duration-display-20xlusue.js} +1 -1
  27. package/dist/client/_nuxt/{entry.css-gx482m17.css → entry.css-ckq2wff8.css} +1 -1
  28. package/dist/client/_nuxt/{error-404-b375yxaj.js → error-404-c73bftho.js} +1 -1
  29. package/dist/client/_nuxt/error-404.css-pazrj6fo.css +1 -0
  30. package/dist/client/_nuxt/{error-500-marpmos8.js → error-500-75llnfh8.js} +1 -1
  31. package/dist/client/_nuxt/error-500.css-hlldh6hu.css +1 -0
  32. package/dist/client/_nuxt/error-isnb18yz.js +9 -0
  33. package/dist/client/_nuxt/{filepath-item-e4nchqwg.js → filepath-item-fnp9jxof.js} +1 -1
  34. package/dist/client/_nuxt/full-h8pokapo.js +1 -0
  35. package/dist/client/_nuxt/{head-k6pu038r.js → head-c2jgvqd9.js} +1 -1
  36. package/dist/client/_nuxt/{help-fab-hk76lwiw.js → help-fab-oc1qudll.js} +1 -1
  37. package/dist/client/_nuxt/hooks-i5p6cuw0.js +1 -0
  38. package/dist/client/_nuxt/imports-ia8eldh8.js +1 -0
  39. package/dist/client/_nuxt/{launch-page-k1lwfnm2.js → launch-page-kf0w74wk.js} +1 -1
  40. package/dist/client/_nuxt/modules-obwfskfp.js +1 -0
  41. package/dist/client/_nuxt/nbadge-hpznun17.js +1 -0
  42. package/dist/client/_nuxt/{nbutton-m0kqfedx.js → nbutton-oi1rfqiz.js} +1 -1
  43. package/dist/client/_nuxt/ncard-ech06vlh.js +1 -0
  44. package/dist/client/_nuxt/{ncheckbox-knbe2cxv.js → ncheckbox-k9nxqa1w.js} +1 -1
  45. package/dist/client/_nuxt/{ncode-block-o9sq6td7.js → ncode-block-coc4sua0.js} +1 -1
  46. package/dist/client/_nuxt/{ndrawer-ufyhcx08.js → ndrawer-ijwn9421.js} +1 -1
  47. package/dist/client/_nuxt/{ndropdown-lkmzobqs.js → ndropdown-moy416uy.js} +1 -1
  48. package/dist/client/_nuxt/{nicon-j0r9gdjm.js → nicon-m5br9nvg.js} +1 -1
  49. package/dist/client/_nuxt/{nicon-title-ggx25xp9.js → nicon-title-e35pdr21.js} +1 -1
  50. package/dist/client/_nuxt/{nlink-hz4zwb3c.js → nlink-dmk2d6qc.js} +1 -1
  51. package/dist/client/_nuxt/{nmarkdown-nsbirjtv.js → nmarkdown-nct1w6kn.js} +1 -1
  52. package/dist/client/_nuxt/{nnavbar-b0i34u17.js → nnavbar-n3j7iul1.js} +1 -1
  53. package/dist/client/_nuxt/none-bs12srzp.js +1 -0
  54. package/dist/client/_nuxt/npanel-grids-bl37sfq7.js +1 -0
  55. package/dist/client/_nuxt/{nsection-block-dzbgwc4z.js → nsection-block-l0c6dpg8.js} +1 -1
  56. package/dist/client/_nuxt/{nselect-ne66fzrs.js → nselect-kgjpj17v.js} +1 -1
  57. package/dist/client/_nuxt/{nselect-tabs-jgvac6a8.js → nselect-tabs-if6er1us.js} +1 -1
  58. package/dist/client/_nuxt/{nswitch-abl34kow.js → nswitch-b36trghq.js} +1 -1
  59. package/dist/client/_nuxt/{ntext-input-ozkk5xro.js → ntext-input-ngomk0u2.js} +1 -1
  60. package/dist/client/_nuxt/{nuxt-h34yfo3l.js → nuxt-bfozs29x.js} +1 -1
  61. package/dist/client/_nuxt/{nuxt-link-lrojf3ui.js → nuxt-link-mev16ngd.js} +1 -1
  62. package/dist/client/_nuxt/open-graph-m7wd1sxi.js +3 -0
  63. package/dist/client/_nuxt/overview-fnxtsh1c.js +1 -0
  64. package/dist/client/_nuxt/pages-gnfgydad.js +1 -0
  65. package/dist/client/_nuxt/pages-izgjpbm4.js +1 -0
  66. package/dist/client/_nuxt/payload-hc17espa.js +1 -0
  67. package/dist/client/_nuxt/pinia-ns87k5yi.js +1 -0
  68. package/dist/client/_nuxt/plugins-mswypwe4.js +1 -0
  69. package/dist/client/_nuxt/{ready-mmkdpbhg.js → ready-szdlhgcr.js} +1 -1
  70. package/dist/client/_nuxt/render-tree-hec27xi7.js +1 -0
  71. package/dist/client/_nuxt/runtime-configs-chx5ggf0.js +1 -0
  72. package/dist/client/_nuxt/server-discovery-cjcj8emm.js +1 -0
  73. package/dist/client/_nuxt/server-route-inputs-lqwnul2k.js +1 -0
  74. package/dist/client/_nuxt/server-routes-e0uqj8di.js +7 -0
  75. package/dist/client/_nuxt/server-tasks-izz5mcrk.js +1 -0
  76. package/dist/client/_nuxt/settings-dhxjcakv.js +1 -0
  77. package/dist/client/_nuxt/{splitpanes.es-gcrxxdgy.js → splitpanes.es-ceqv8417.js} +1 -1
  78. package/dist/client/_nuxt/stacktrace-list-m1sv2uvd.js +1 -0
  79. package/dist/client/_nuxt/state-components-mnfvrbtw.js +1 -0
  80. package/dist/client/_nuxt/state-dkywakbf.js +1 -0
  81. package/dist/client/_nuxt/{state-editor-egz1k0a8.js → state-editor-epijodsw.js} +1 -1
  82. package/dist/client/_nuxt/{state-modules-dyb3mv6i.js → state-modules-ehax0fup.js} +1 -1
  83. package/dist/client/_nuxt/{state-routes-ovtjymzc.js → state-routes-m6gv5n9v.js} +1 -1
  84. package/dist/client/_nuxt/{state-tabs-jkd7jbwg.js → state-tabs-mo8r9nzk.js} +1 -1
  85. package/dist/client/_nuxt/storage-hdyfvofj.js +1 -0
  86. package/dist/client/_nuxt/{storage-options-os0x8zby.js → storage-options-owy2vf04.js} +1 -1
  87. package/dist/client/_nuxt/{telemetry-pccqt90w.js → telemetry-bagjjni2.js} +1 -1
  88. package/dist/client/_nuxt/terminals-hem69799.js +1 -0
  89. package/dist/client/_nuxt/timeline-luryae8h.js +31 -0
  90. package/dist/client/_nuxt/unocss-runtime-jcr8lucj.js +1 -0
  91. package/dist/client/_nuxt/vendor/{json-editor-vue-jlmu1vk1.js → json-editor-vue-hkofgjf7.js} +3 -3
  92. package/dist/client/_nuxt/vendor/shiki-niqic03h.js +153 -0
  93. package/dist/client/_nuxt/vendor/unocss-bj3ln324.js +3 -0
  94. package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +1 -0
  95. package/dist/client/_nuxt/vendor/{vis-p9fufs7k.js → vis-id8udisj.js} +1 -1
  96. package/dist/client/_nuxt/virtual-files-o2l5arel.js +1 -0
  97. package/dist/client/_nuxt/vue-devtools-na2nb82m.js +3 -0
  98. package/dist/client/_nuxt/{vue-router-fwt4i0j8.js → vue-router-dxks01bs.js} +1 -1
  99. package/dist/client/_nuxt/{vue-virtual-scroller.esm-hq850jog.js → vue-virtual-scroller.esm-d0igfpwe.js} +1 -1
  100. package/dist/client/index.html +1 -1
  101. package/dist/dirs.mjs +2 -1
  102. package/dist/module.json +1 -1
  103. package/dist/runtime/plugins/view/client.js +2 -1
  104. package/dist/webcomponents/index.mjs +8 -6
  105. package/package.json +24 -24
  106. package/dist/client/_nuxt/__blank-jnbqrgps.js +0 -1
  107. package/dist/client/_nuxt/analyze-build-c3vdx12p.js +0 -1
  108. package/dist/client/_nuxt/assets-myudvi12.js +0 -6
  109. package/dist/client/_nuxt/builds/meta/edc4110e-235b-4b9c-b5cf-5d6752c79836.json +0 -1
  110. package/dist/client/_nuxt/components-dwnwjv62.js +0 -1
  111. package/dist/client/_nuxt/custom-_name_-k9wxhx5t.js +0 -1
  112. package/dist/client/_nuxt/debug-jzrj2rrq.js +0 -1
  113. package/dist/client/_nuxt/error-404.css-k620a6z0.css +0 -1
  114. package/dist/client/_nuxt/error-500.css-j1xt9kl6.css +0 -1
  115. package/dist/client/_nuxt/error-f0x29wdg.js +0 -9
  116. package/dist/client/_nuxt/full-ix5b85yu.js +0 -1
  117. package/dist/client/_nuxt/hooks-oamlzps1.js +0 -1
  118. package/dist/client/_nuxt/imports-rq4f924m.js +0 -1
  119. package/dist/client/_nuxt/kqysrhbw.js +0 -4
  120. package/dist/client/_nuxt/modules-fev9bjof.js +0 -1
  121. package/dist/client/_nuxt/nbadge-h59v1exj.js +0 -1
  122. package/dist/client/_nuxt/ncard-qqqgbjy9.js +0 -1
  123. package/dist/client/_nuxt/none-bfunqbwh.js +0 -1
  124. package/dist/client/_nuxt/npanel-grids-m4ogaoh1.js +0 -1
  125. package/dist/client/_nuxt/open-graph-jokpmi3z.js +0 -3
  126. package/dist/client/_nuxt/overview-iaqgcdai.js +0 -1
  127. package/dist/client/_nuxt/pages-heq5sr3n.js +0 -1
  128. package/dist/client/_nuxt/pages-nev63916.js +0 -1
  129. package/dist/client/_nuxt/payload-cwkdgfbg.js +0 -1
  130. package/dist/client/_nuxt/pinia-cmp1aao2.js +0 -1
  131. package/dist/client/_nuxt/plugins-h6nd4bpq.js +0 -1
  132. package/dist/client/_nuxt/render-tree-c25vnw9j.js +0 -1
  133. package/dist/client/_nuxt/runtime-configs-oyvmfkja.js +0 -1
  134. package/dist/client/_nuxt/server-discovery-k4kknv5h.js +0 -1
  135. package/dist/client/_nuxt/server-route-inputs-heqgxrjl.js +0 -1
  136. package/dist/client/_nuxt/server-routes-bgud29n1.js +0 -7
  137. package/dist/client/_nuxt/server-tasks-kx1cj481.js +0 -1
  138. package/dist/client/_nuxt/settings-fav4xaeh.js +0 -1
  139. package/dist/client/_nuxt/stacktrace-list-ivp3f076.js +0 -1
  140. package/dist/client/_nuxt/state-b65zn1p8.js +0 -1
  141. package/dist/client/_nuxt/state-components-gdb1hu1j.js +0 -1
  142. package/dist/client/_nuxt/storage-noqjkcnn.js +0 -1
  143. package/dist/client/_nuxt/terminals-jwh8xdao.js +0 -1
  144. package/dist/client/_nuxt/timeline-nj0c9ow3.js +0 -31
  145. package/dist/client/_nuxt/unocss-runtime-mfhoy4ux.js +0 -1
  146. package/dist/client/_nuxt/vendor/shiki-jnavg768.js +0 -152
  147. package/dist/client/_nuxt/vendor/unocss-o75ihzkt.js +0 -3
  148. package/dist/client/_nuxt/virtual-files-nyi1q55e.js +0 -1
  149. package/dist/client/_nuxt/vue-devtools-b8p76ncm.js +0 -3
  150. /package/dist/client/_nuxt/{_plugin-vue_export-helper-myijwyyb.js → _plugin-vue_export-helper-dp8rxgcg.js} +0 -0
  151. /package/dist/client/_nuxt/{color-m9fh6h3t.js → color-b9xoe9j2.js} +0 -0
  152. /package/dist/client/_nuxt/{composables-k2ak4j8d.js → composables-cwesk2q8.js} +0 -0
  153. /package/dist/client/_nuxt/{constants-ihoovckn.js → constants-lof1c7kz.js} +0 -0
  154. /package/dist/client/_nuxt/{dist-9xqq72tk.js → dist-m49wlq01.js} +0 -0
  155. /package/dist/client/_nuxt/{dist-h291wass.js → dist-mnod32r1.js} +0 -0
  156. /package/dist/client/_nuxt/vendor/{markdown-it-ocmvh7ju.js → markdown-it-bcxn77q6.js} +0 -0
  157. /package/dist/client/_nuxt/vendor/{quicktype-core-jebn1o7i.js → quicktype-core-f8dnflnv.js} +0 -0
  158. /package/dist/client/_nuxt/vendor/{xterm-du7kv949.js → xterm-ed0pys2e.js} +0 -0
@@ -1 +1 @@
1
- import{A as e,Ct as t,E as n,Et as r,F as i,K as a,M as o,Mt as s,ct as c,m as l,wt as u,xt as d}from"./vendor/json-editor-vue-jlmu1vk1.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=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),b=Symbol(``);y.MATCHER_NOT_FOUND,y.NAVIGATION_GUARD_REDIRECT,y.NAVIGATION_ABORTED,y.NAVIGATION_CANCELLED,y.NAVIGATION_DUPLICATED;function x(e,t){return h(Error(),{type:e,[b]:!0},t)}function S(e,t){return e instanceof Error&&b in e&&(t==null||!!(e.type&t))}var te=Symbol(``),ne=Symbol(``),re=Symbol(``),ie=Symbol(``),ae=Symbol(``);function oe(e){return o(ie)}var se=/#/g,ce=/&/g,C=/\//g,w=/=/g,T=/\?/g,E=/\+/g,le=/%5B/g,D=/%5D/g,O=/%5E/g,ue=/%60/g,k=/%7B/g,de=/%7C/g,A=/%7D/g,fe=/%20/g;function j(e){return e==null?``:encodeURI(``+e).replace(de,`|`).replace(le,`[`).replace(D,`]`)}function pe(e){return j(e).replace(k,`{`).replace(A,`}`).replace(O,`^`)}function M(e){return j(e).replace(E,`%2B`).replace(fe,`+`).replace(se,`%23`).replace(ce,`%26`).replace(ue,"`").replace(k,`{`).replace(A,`}`).replace(O,`^`)}function N(e){return M(e).replace(w,`%3D`)}function P(e){return j(e).replace(se,`%23`).replace(T,`%3F`)}function me(e){return P(e).replace(C,`%2F`)}function F(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var I=/\/$/,L=e=>e.replace(I,``);function R(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=W(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:F(o)}}function he(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function z(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ge(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&B(t.matched[r],n.matched[i])&&V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){return v(e)?U(e,t):v(t)?U(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function U(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function W(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 G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},_e=function(e){return e.pop=`pop`,e.push=`push`,e}({}),K=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function q(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),L(e)}var ve=/^[^#]+#/;function ye(e,t){return e.replace(ve,`#`)+t}function be(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 J=()=>({left:window.scrollX,top:window.scrollY});function xe(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=be(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 Se(e,t){return(history.state?history.state.position-t:-1)+e}var Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}function Ee(e){return typeof e==`string`||e&&typeof e==`object`}function De(e){return typeof e==`string`||typeof e==`symbol`}function Oe(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(E,` `),i=r.indexOf(`=`),a=F(i<0?r:r.slice(0,i)),o=i<0?null:F(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 ke(e){let t=``;for(let n in e){let r=e[n];if(n=N(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&M(e)):[r&&M(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ae(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 Y(){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 X(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(x(y.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ee(e)?c(x(y.NAVIGATION_GUARD_REDIRECT,{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 je(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(X(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&&X(c,n,r,o,e,i)()}))}}return a}function Me(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=>B(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>B(e,s))||i.push(s))}return[n,r,i]}var Ne=()=>location.protocol+`//`+location.host;function Pe(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),z(n,``)}return z(n,e)+r+i}function Fe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Pe(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:_e.pop,direction:u?u>0?K.forward:K.back:K.unknown})})};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:J()}),``)}}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 Ie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?J():null}}function Le(e){let{history:t,location:n}=window,r={value:Pe(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:Ne()+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,Ie(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:J()});a(o.current,o,!0),a(e,h({},Ie(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Re(e){e=q(e);let t=Le(e),n=Fe(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:ye.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 ze(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Re(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Be={type:Z.Static,value:``},Ve=/[a-zA-Z0-9_]/;function He(e){if(!e)return[[]];if(e===`/`)return[[Be]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Ve.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ue=`[^/]+?`,We={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Ge=/[.+*?^${}()[\]/\\]/g;function Ke(e,t){let n=h({},We,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Ge,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ue;if(u!==Ue){s+=$.BonusCustomRegExp;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+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}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===Z.Static)n+=e.value;else if(e.type===Z.Param){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 qe(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]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Je(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=qe(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ye(r))return 1;if(Ye(i))return-1}return i.length-r.length}function Ye(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xe={strict:!1,end:!0,sensitive:!1};function Ze(e,t,n){let r=h(Ke(He(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qe(e,t){let n=[],r=new Map;t=ee(Xe,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=et(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(et(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=Ze(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!nt(d)&&o(e.name)),ot(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(De(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=it(e,n);n.splice(t,0,e),e.record.name&&!nt(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 x(y.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=h($e(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&$e(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);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw x(y.MATCHER_NOT_FOUND,{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:rt(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 $e(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function et(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tt(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 tt(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 nt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rt(e){return e.reduce((e,t)=>h(e,t.meta),{})}function it(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Je(e,t[i])<0?r=i:n=i+1}let i=at(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function at(e){let t=e;for(;t=t.parent;)if(ot(t)&&Je(e,t)===0)return t}function ot({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function st(e){let t=o(re),n=o(ie),r=l(()=>{let n=s(e.to);return t.resolve(n)}),i=l(()=>{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(B.bind(null,i));if(o>-1)return o;let s=ft(e[t-2]);return t>1&&ft(i)===s&&a[a.length-1].path!==s?a.findIndex(B.bind(null,e[t-2])):o}),a=l(()=>i.value>-1&&dt(n.params,r.value.params)),c=l(()=>i.value>-1&&i.value===n.matched.length-1&&V(n.params,r.value.params));function u(n={}){if(ut(n)){let n=t[s(e.replace)?`replace`:`push`](s(e.to)).catch(_);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:l(()=>r.value.href),isActive:a,isExactActive:c,navigate:u}}function ct(e){return e.length===1?e[0]:e}var lt=n({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:st,setup(t,{slots:n}){let r=d(st(t)),{options:i}=o(re),a=l(()=>({[pt(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[pt(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&ct(n.default(r));return t.custom?i:e(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function ut(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 dt(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 ft(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var pt=(e,t,n)=>e??t??n,mt=n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let u=o(ae),d=l(()=>n.route||u.value),f=o(ne,0),p=l(()=>{let e=s(f),{matched:t}=d.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=l(()=>d.value.matched[p.value]);a(ne,l(()=>p.value+1)),a(te,m),a(ae,d);let g=t();return c(()=>[g.value,m.value,n.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||!B(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=d.value,a=n.name,o=m.value,s=o&&o.components[a];if(!s)return ht(i.default,{Component:s,route:t});let c=o.props[a],l=e(s,h({},c?c===!0?t.params:typeof c==`function`?c(t):c:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:g}));return ht(i.default,{Component:l,route:t})||l}}});function ht(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var gt=mt;function _t(e){let t=Qe(e.routes,e),n=e.parseQuery||Oe,a=e.stringifyQuery||ke,o=e.history,c=Y(),l=Y(),d=Y(),p=r(G),m=G;f&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=g.bind(null,e=>``+e),b=g.bind(null,me),te=g.bind(null,F);function ne(e,n){let r,i;return De(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function oe(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function se(){return t.getRoutes().map(e=>e.record)}function ce(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=h({},r||p.value),typeof e==`string`){let i=R(n,e,r.path),a=t.resolve({path:i.path},r),s=o.createHref(i.fullPath);return h(i,a,{params:te(a.params),hash:F(i.hash),redirectedFrom:void 0,href:s})}let i;if(e.path!=null)i=h({},e,{path:R(n,e.path,r.path).path});else{let t=h({},e.params);for(let e in t)t[e]??delete t[e];i=h({},e,{params:b(t)}),r.params=b(r.params)}let s=t.resolve(i,r),c=e.hash||``;s.params=ee(te(s.params));let l=he(a,h({},e,{hash:pe(c),path:s.path})),u=o.createHref(l);return h({fullPath:l,hash:c,query:a===ke?Ae(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function w(e){return typeof e==`string`?R(n,e,p.value.path):h({},e)}function T(e,t){if(m!==e)return x(y.NAVIGATION_CANCELLED,{from:t,to:e})}function E(e){return O(e)}function le(e){return E(h(w(e),{replace:!0}))}function D(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=w(i):{path:i},i.params={}),h({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=m=C(e),r=p.value,i=e.state,o=e.force,s=e.replace===!0,c=D(n,r);if(c)return O(h(w(c),{state:typeof c==`object`?h({},i,c.state):i,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&ge(a,r,n)&&(u=x(y.NAVIGATION_DUPLICATED,{to:l,from:r}),V(r,r,!0,!1)),(u?Promise.resolve(u):de(l,r)).catch(e=>S(e)?S(e,y.NAVIGATION_GUARD_REDIRECT)?e:B(e):L(e,l,r)).then(e=>{if(e){if(S(e,y.NAVIGATION_GUARD_REDIRECT))return O(h({replace:s},w(e.to),{state:typeof e.to==`object`?h({},i,e.to.state):i,force:o}),t||l)}else e=fe(l,r,!0,s,i);return A(l,r,e),e})}function ue(e,t){let n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=W.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function de(e,t){let n,[r,i,a]=Me(e,t);n=je(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ue.bind(null,e,t);return n.push(o),q(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),q(n)}).then(()=>{n=je(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),q(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),q(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=je(a,`beforeRouteEnter`,e,t,k),n.push(o),q(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),q(n)}).catch(e=>S(e,y.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function A(e,t,n){d.list().forEach(r=>k(()=>r(e,t,n)))}function fe(e,t,n,r,i){let a=T(e,t);if(a)return a;let s=t===G,c=f?history.state:{};n&&(r||s?o.replace(e.fullPath,h({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),p.value=e,V(e,t,n,s),B()}let j;function M(){j||=o.listen((e,t,n)=>{if(!K.listening)return;let r=C(e),i=D(r,K.currentRoute.value);if(i){O(h(i,{replace:!0,force:!0}),r).catch(_);return}m=r;let a=p.value;f&&we(Se(a.fullPath,n.delta),J()),de(r,a).catch(e=>S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_CANCELLED)?e:S(e,y.NAVIGATION_GUARD_REDIRECT)?(O(h(w(e.to),{force:!0}),r).then(e=>{S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===_e.pop&&o.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&o.go(-n.delta,!1),L(e,r,a))).then(e=>{e||=fe(r,a,!1),e&&(n.delta&&!S(e,y.NAVIGATION_CANCELLED)?o.go(-n.delta,!1):n.type===_e.pop&&S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),A(r,a,e)}).catch(_)})}let N=Y(),P=Y(),I;function L(e,t,n){B(e);let r=P.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function z(){return I&&p.value!==G?Promise.resolve():new Promise((e,t)=>{N.add([e,t])})}function B(e){return I||(I=!e,M(),N.list().forEach(([t,n])=>e?n(e):t()),N.reset()),e}function V(t,n,r,a){let{scrollBehavior:o}=e;if(!f||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>L(e,t,n))}let H=e=>o.go(e),U,W=new Set,K={currentRoute:p,listening:!0,addRoute:ne,removeRoute:oe,clearRoutes:t.clearRoutes,hasRoute:ce,getRoutes:se,resolve:C,options:e,push:E,replace:le,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:c.add,beforeResolve:l.add,afterEach:d.add,onError:P.add,isReady:z,install(e){e.component(`RouterLink`,lt),e.component(`RouterView`,gt),e.config.globalProperties.$router=K,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>s(p)}),f&&!U&&p.value===G&&(U=!0,E(o.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>p.value[e],enumerable:!0});e.provide(re,K),e.provide(ie,u(t)),e.provide(ae,p);let n=e.unmount;W.add(e),e.unmount=function(){W.delete(e),W.size<1&&(m=G,j&&j(),j=null,p.value=G,U=!1,I=!1),n()}}};function q(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return K}export{G as a,Re as i,_t as n,oe as o,ze as r,gt as t};
1
+ import{A as e,Ct as t,E as n,Et as r,F as i,K as a,M as o,Mt as s,ct as c,m as l,wt as u,xt as d}from"./vendor/json-editor-vue-hkofgjf7.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=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),b=Symbol(``);y.MATCHER_NOT_FOUND,y.NAVIGATION_GUARD_REDIRECT,y.NAVIGATION_ABORTED,y.NAVIGATION_CANCELLED,y.NAVIGATION_DUPLICATED;function x(e,t){return h(Error(),{type:e,[b]:!0},t)}function S(e,t){return e instanceof Error&&b in e&&(t==null||!!(e.type&t))}var te=Symbol(``),ne=Symbol(``),re=Symbol(``),ie=Symbol(``),ae=Symbol(``);function oe(e){return o(ie)}var se=/#/g,ce=/&/g,C=/\//g,w=/=/g,T=/\?/g,E=/\+/g,le=/%5B/g,D=/%5D/g,O=/%5E/g,ue=/%60/g,k=/%7B/g,de=/%7C/g,A=/%7D/g,fe=/%20/g;function j(e){return e==null?``:encodeURI(``+e).replace(de,`|`).replace(le,`[`).replace(D,`]`)}function pe(e){return j(e).replace(k,`{`).replace(A,`}`).replace(O,`^`)}function M(e){return j(e).replace(E,`%2B`).replace(fe,`+`).replace(se,`%23`).replace(ce,`%26`).replace(ue,"`").replace(k,`{`).replace(A,`}`).replace(O,`^`)}function N(e){return M(e).replace(w,`%3D`)}function P(e){return j(e).replace(se,`%23`).replace(T,`%3F`)}function me(e){return P(e).replace(C,`%2F`)}function F(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var I=/\/$/,L=e=>e.replace(I,``);function R(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=W(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:F(o)}}function he(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function z(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ge(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&B(t.matched[r],n.matched[i])&&V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function B(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!H(e[n],t[n]))return!1;return!0}function H(e,t){return v(e)?U(e,t):v(t)?U(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function U(e,t){return v(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function W(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 G={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},_e=function(e){return e.pop=`pop`,e.push=`push`,e}({}),K=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function q(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),L(e)}var ve=/^[^#]+#/;function ye(e,t){return e.replace(ve,`#`)+t}function be(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 J=()=>({left:window.scrollX,top:window.scrollY});function xe(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=be(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 Se(e,t){return(history.state?history.state.position-t:-1)+e}var Ce=new Map;function we(e,t){Ce.set(e,t)}function Te(e){let t=Ce.get(e);return Ce.delete(e),t}function Ee(e){return typeof e==`string`||e&&typeof e==`object`}function De(e){return typeof e==`string`||typeof e==`symbol`}function Oe(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(E,` `),i=r.indexOf(`=`),a=F(i<0?r:r.slice(0,i)),o=i<0?null:F(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 ke(e){let t=``;for(let n in e){let r=e[n];if(n=N(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(v(r)?r.map(e=>e&&M(e)):[r&&M(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Ae(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 Y(){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 X(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(x(y.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Ee(e)?c(x(y.NAVIGATION_GUARD_REDIRECT,{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 je(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(X(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&&X(c,n,r,o,e,i)()}))}}return a}function Me(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=>B(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>B(e,s))||i.push(s))}return[n,r,i]}var Ne=()=>location.protocol+`//`+location.host;function Pe(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),z(n,``)}return z(n,e)+r+i}function Fe(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Pe(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:_e.pop,direction:u?u>0?K.forward:K.back:K.unknown})})};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:J()}),``)}}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 Ie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?J():null}}function Le(e){let{history:t,location:n}=window,r={value:Pe(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:Ne()+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,Ie(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:J()});a(o.current,o,!0),a(e,h({},Ie(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Re(e){e=q(e);let t=Le(e),n=Fe(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:ye.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 ze(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),Re(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),Be={type:Z.Static,value:``},Ve=/[a-zA-Z0-9_]/;function He(e){if(!e)return[[]];if(e===`/`)return[[Be]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:Ve.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Ue=`[^/]+?`,We={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),Ge=/[.+*?^${}()[\]/\\]/g;function Ke(e,t){let n=h({},We,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(Ge,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Ue;if(u!==Ue){s+=$.BonusCustomRegExp;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+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}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===Z.Static)n+=e.value;else if(e.type===Z.Param){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 qe(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]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function Je(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=qe(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ye(r))return 1;if(Ye(i))return-1}return i.length-r.length}function Ye(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var Xe={strict:!1,end:!0,sensitive:!1};function Ze(e,t,n){let r=h(Ke(He(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Qe(e,t){let n=[],r=new Map;t=ee(Xe,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=et(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(et(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=Ze(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!nt(d)&&o(e.name)),ot(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(De(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=it(e,n);n.splice(t,0,e),e.record.name&&!nt(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 x(y.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=h($e(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&$e(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);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw x(y.MATCHER_NOT_FOUND,{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:rt(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 $e(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function et(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:tt(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 tt(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 nt(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rt(e){return e.reduce((e,t)=>h(e,t.meta),{})}function it(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Je(e,t[i])<0?r=i:n=i+1}let i=at(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function at(e){let t=e;for(;t=t.parent;)if(ot(t)&&Je(e,t)===0)return t}function ot({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function st(e){let t=o(re),n=o(ie),r=l(()=>{let n=s(e.to);return t.resolve(n)}),i=l(()=>{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(B.bind(null,i));if(o>-1)return o;let s=ft(e[t-2]);return t>1&&ft(i)===s&&a[a.length-1].path!==s?a.findIndex(B.bind(null,e[t-2])):o}),a=l(()=>i.value>-1&&dt(n.params,r.value.params)),c=l(()=>i.value>-1&&i.value===n.matched.length-1&&V(n.params,r.value.params));function u(n={}){if(ut(n)){let n=t[s(e.replace)?`replace`:`push`](s(e.to)).catch(_);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:l(()=>r.value.href),isActive:a,isExactActive:c,navigate:u}}function ct(e){return e.length===1?e[0]:e}var lt=n({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:st,setup(t,{slots:n}){let r=d(st(t)),{options:i}=o(re),a=l(()=>({[pt(t.activeClass,i.linkActiveClass,`router-link-active`)]:r.isActive,[pt(t.exactActiveClass,i.linkExactActiveClass,`router-link-exact-active`)]:r.isExactActive}));return()=>{let i=n.default&&ct(n.default(r));return t.custom?i:e(`a`,{"aria-current":r.isExactActive?t.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},i)}}});function ut(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 dt(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 ft(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var pt=(e,t,n)=>e??t??n,mt=n({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(n,{attrs:r,slots:i}){let u=o(ae),d=l(()=>n.route||u.value),f=o(ne,0),p=l(()=>{let e=s(f),{matched:t}=d.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),m=l(()=>d.value.matched[p.value]);a(ne,l(()=>p.value+1)),a(te,m),a(ae,d);let g=t();return c(()=>[g.value,m.value,n.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||!B(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let t=d.value,a=n.name,o=m.value,s=o&&o.components[a];if(!s)return ht(i.default,{Component:s,route:t});let c=o.props[a],l=e(s,h({},c?c===!0?t.params:typeof c==`function`?c(t):c:null,r,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:g}));return ht(i.default,{Component:l,route:t})||l}}});function ht(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var gt=mt;function _t(e){let t=Qe(e.routes,e),n=e.parseQuery||Oe,a=e.stringifyQuery||ke,o=e.history,c=Y(),l=Y(),d=Y(),p=r(G),m=G;f&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let ee=g.bind(null,e=>``+e),b=g.bind(null,me),te=g.bind(null,F);function ne(e,n){let r,i;return De(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function oe(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function se(){return t.getRoutes().map(e=>e.record)}function ce(e){return!!t.getRecordMatcher(e)}function C(e,r){if(r=h({},r||p.value),typeof e==`string`){let i=R(n,e,r.path),a=t.resolve({path:i.path},r),s=o.createHref(i.fullPath);return h(i,a,{params:te(a.params),hash:F(i.hash),redirectedFrom:void 0,href:s})}let i;if(e.path!=null)i=h({},e,{path:R(n,e.path,r.path).path});else{let t=h({},e.params);for(let e in t)t[e]??delete t[e];i=h({},e,{params:b(t)}),r.params=b(r.params)}let s=t.resolve(i,r),c=e.hash||``;s.params=ee(te(s.params));let l=he(a,h({},e,{hash:pe(c),path:s.path})),u=o.createHref(l);return h({fullPath:l,hash:c,query:a===ke?Ae(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function w(e){return typeof e==`string`?R(n,e,p.value.path):h({},e)}function T(e,t){if(m!==e)return x(y.NAVIGATION_CANCELLED,{from:t,to:e})}function E(e){return O(e)}function le(e){return E(h(w(e),{replace:!0}))}function D(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=w(i):{path:i},i.params={}),h({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function O(e,t){let n=m=C(e),r=p.value,i=e.state,o=e.force,s=e.replace===!0,c=D(n,r);if(c)return O(h(w(c),{state:typeof c==`object`?h({},i,c.state):i,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&ge(a,r,n)&&(u=x(y.NAVIGATION_DUPLICATED,{to:l,from:r}),V(r,r,!0,!1)),(u?Promise.resolve(u):de(l,r)).catch(e=>S(e)?S(e,y.NAVIGATION_GUARD_REDIRECT)?e:B(e):L(e,l,r)).then(e=>{if(e){if(S(e,y.NAVIGATION_GUARD_REDIRECT))return O(h({replace:s},w(e.to),{state:typeof e.to==`object`?h({},i,e.to.state):i,force:o}),t||l)}else e=fe(l,r,!0,s,i);return A(l,r,e),e})}function ue(e,t){let n=T(e,t);return n?Promise.reject(n):Promise.resolve()}function k(e){let t=W.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function de(e,t){let n,[r,i,a]=Me(e,t);n=je(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ue.bind(null,e,t);return n.push(o),q(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),q(n)}).then(()=>{n=je(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),q(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(v(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),q(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=je(a,`beforeRouteEnter`,e,t,k),n.push(o),q(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),q(n)}).catch(e=>S(e,y.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function A(e,t,n){d.list().forEach(r=>k(()=>r(e,t,n)))}function fe(e,t,n,r,i){let a=T(e,t);if(a)return a;let s=t===G,c=f?history.state:{};n&&(r||s?o.replace(e.fullPath,h({scroll:s&&c&&c.scroll},i)):o.push(e.fullPath,i)),p.value=e,V(e,t,n,s),B()}let j;function M(){j||=o.listen((e,t,n)=>{if(!K.listening)return;let r=C(e),i=D(r,K.currentRoute.value);if(i){O(h(i,{replace:!0,force:!0}),r).catch(_);return}m=r;let a=p.value;f&&we(Se(a.fullPath,n.delta),J()),de(r,a).catch(e=>S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_CANCELLED)?e:S(e,y.NAVIGATION_GUARD_REDIRECT)?(O(h(w(e.to),{force:!0}),r).then(e=>{S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===_e.pop&&o.go(-1,!1)}).catch(_),Promise.reject()):(n.delta&&o.go(-n.delta,!1),L(e,r,a))).then(e=>{e||=fe(r,a,!1),e&&(n.delta&&!S(e,y.NAVIGATION_CANCELLED)?o.go(-n.delta,!1):n.type===_e.pop&&S(e,y.NAVIGATION_ABORTED|y.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),A(r,a,e)}).catch(_)})}let N=Y(),P=Y(),I;function L(e,t,n){B(e);let r=P.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function z(){return I&&p.value!==G?Promise.resolve():new Promise((e,t)=>{N.add([e,t])})}function B(e){return I||(I=!e,M(),N.list().forEach(([t,n])=>e?n(e):t()),N.reset()),e}function V(t,n,r,a){let{scrollBehavior:o}=e;if(!f||!o)return Promise.resolve();let s=!r&&Te(Se(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>e&&xe(e)).catch(e=>L(e,t,n))}let H=e=>o.go(e),U,W=new Set,K={currentRoute:p,listening:!0,addRoute:ne,removeRoute:oe,clearRoutes:t.clearRoutes,hasRoute:ce,getRoutes:se,resolve:C,options:e,push:E,replace:le,go:H,back:()=>H(-1),forward:()=>H(1),beforeEach:c.add,beforeResolve:l.add,afterEach:d.add,onError:P.add,isReady:z,install(e){e.component(`RouterLink`,lt),e.component(`RouterView`,gt),e.config.globalProperties.$router=K,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>s(p)}),f&&!U&&p.value===G&&(U=!0,E(o.location).catch(e=>{}));let t={};for(let e in G)Object.defineProperty(t,e,{get:()=>p.value[e],enumerable:!0});e.provide(re,K),e.provide(ie,u(t)),e.provide(ae,p);let n=e.unmount;W.add(e),e.unmount=function(){W.delete(e),W.size<1&&(m=G,j&&j(),j=null,p.value=G,U=!1,I=!1),n()}}};function q(e){return e.reduce((e,t)=>e.then(()=>k(t)),Promise.resolve())}return K}export{G as a,Re as i,_t as n,oe as o,ze as r,gt as t};
@@ -1,2 +1,2 @@
1
- import{$ as e,$t as t,A as n,F as r,G as i,P as a,Q as o,Qt as s,W as c,X as l,Y as u,Z as d,_ as f,c as p,dt as m,en as h,ft as g,g as _,k as v,nt as y,pt as b,q as x,v as S,w as C,wt as w,yt as T}from"./vendor/json-editor-vue-jlmu1vk1.js";function ee(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var E;function D(){D.init||(D.init=!0,E=ee()!==-1)}var O={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){D(),r(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,E&&this.$el.appendChild(e),e.data=`about:blank`,E||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!E&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},k=b(`data-v-b329ee4c`);x(`data-v-b329ee4c`);var A={class:`resize-observer`,tabindex:`-1`};i(),O.render=k((e,t,n,r,i,a)=>(c(),_(`div`,A))),O.__scopeId=`data-v-b329ee4c`,O.__file=`src/components/ResizeObserver.vue`;function j(e){"@babel/helpers - typeof";return j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},j(e)}function te(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function N(e){return P(e)||re(e)||ie(e)||I()}function P(e){if(Array.isArray(e))return F(e)}function re(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function ie(e,t){if(e){if(typeof e==`string`)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}}function F(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(){throw TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{$ as e,$t as t,A as n,F as r,G as i,P as a,Q as o,Qt as s,W as c,X as l,Y as u,Z as d,_ as f,c as p,dt as m,en as h,ft as g,g as _,k as v,nt as y,pt as b,q as x,v as S,w as C,wt as w,yt as T}from"./vendor/json-editor-vue-hkofgjf7.js";function ee(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var E;function D(){D.init||(D.init=!0,E=ee()!==-1)}var O={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){D(),r(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,E&&this.$el.appendChild(e),e.data=`about:blank`,E||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!E&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},k=b(`data-v-b329ee4c`);x(`data-v-b329ee4c`);var A={class:`resize-observer`,tabindex:`-1`};i(),O.render=k((e,t,n,r,i,a)=>(c(),_(`div`,A))),O.__scopeId=`data-v-b329ee4c`,O.__file=`src/components/ResizeObserver.vue`;function j(e){"@babel/helpers - typeof";return j=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},j(e)}function te(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ne(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function N(e){return P(e)||re(e)||ie(e)||I()}function P(e){if(Array.isArray(e))return F(e)}function re(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function ie(e,t){if(e){if(typeof e==`string`)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}}function F(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function I(){throw TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e){return typeof e==`function`?{callback:e}:e}function oe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=function(o){if(a=[...arguments].slice(1),!(r&&o===i)){var s=n.leading;typeof s==`function`&&(s=s(o,i)),(!r||o!==i)&&s&&e.apply(void 0,[o].concat(N(a))),i=o,clearTimeout(r),r=setTimeout(function(){e.apply(void 0,[o].concat(N(a))),r=0},t)}};return o._clear=function(){clearTimeout(r),r=null},o}function L(e,t){if(e===t)return!0;if(j(e)===`object`){for(var n in e)if(!L(e[n],t[n]))return!1;return!0}return!1}var se=function(){function e(t,n,r){te(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,r)}return ne(e,[{key:`createObserver`,value:function(e,t){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=ae(e),this.callback=function(e,t){n.options.callback(e,t),e&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=(this.options.throttleOptions||{}).leading;this.callback=oe(this.callback,this.options.throttle,{leading:function(e){return i===`both`||i===`visible`&&e||i===`hidden`&&!e}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(e){var t=e[0];if(e.length>1){var r=e.find(function(e){return e.isIntersecting});r&&(t=r)}if(n.callback){var i=t.isIntersecting&&t.intersectionRatio>=n.threshold;if(i===n.oldResult)return;n.oldResult=i,n.callback(i,t)}},this.options.intersection),r(function(){n.observer&&n.observer.observe(n.el)})}}},{key:`destroyObserver`,value:function(){this.observer&&=(this.observer.disconnect(),null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:`threshold`,get:function(){return this.options.intersection&&typeof this.options.intersection.threshold==`number`?this.options.intersection.threshold:0}}]),e}();function R(e,t,n){var r=t.value;r&&(typeof IntersectionObserver>`u`?console.warn(`[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill`):e._vue_visibilityState=new se(e,r,n))}function z(e,t,n){var r=t.value,i=t.oldValue;if(!L(r,i)){var a=e._vue_visibilityState;if(!r){B(e);return}a?a.createObserver(r,n):R(e,{value:r},n)}}function B(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var V={beforeMount:R,updated:z,unmounted:B};function H(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(e){e(n)}),(e.get(`*`)||[]).slice().map(function(e){e(t,n)})}}}var U={itemsLimit:1e3},W=/(auto|scroll)/;function G(e,t){return e.parentNode===null?t:G(e.parentNode,t.concat([e]))}var K=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},ce=function(e){return K(e,`overflow`)+K(e,`overflow-y`)+K(e,`overflow-x`)},le=function(e){return W.test(ce(e))};function q(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=G(e.parentNode,[]),n=0;n<t.length;n+=1)if(le(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function J(e){"@babel/helpers - typeof";return J=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},J(e)}var Y={items:{type:Array,required:!0},keyField:{type:String,default:`id`},direction:{type:String,default:`vertical`,validator:function(e){return[`vertical`,`horizontal`].includes(e)}},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`}};function X(){return this.items.length&&J(this.items[0])!==`object`}var Z=!1;if(typeof window<`u`){Z=!1;try{var ue=Object.defineProperty({},`passive`,{get:function(){Z=!0}});window.addEventListener(`test`,null,ue)}catch{}}var de=0,Q={name:`RecycleScroller`,components:{ResizeObserver:O},directives:{ObserveVisibility:V},props:{...Y,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:`size`},typeField:{type:String,default:`type`},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:`div`},itemTag:{type:String,default:`div`},listClass:{type:[String,Object,Array],default:``},itemClass:{type:[String,Object,Array],default:``}},emits:[`resize`,`visible`,`hidden`,`update`,`scroll-start`,`scroll-end`],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){let e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,r=this.minItemSize,i=1e4,a=0,o;for(let s=0,c=t.length;s<c;s++)o=t[s][n]||r,o<i&&(i=o),a+=o,e[s]={accumulator:a,size:o};return this.$_computedMinItemSize=i,e}return[]},simpleArray:X,itemIndexByKey(){let{keyField:e,items:t}=this,n={};for(let r=0,i=t.length;r<i;r++)n[t[r][e]]=r;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error(`[vue-recycle-scroller] You must provide an itemSize when using gridItems`)},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){let e=this.$_lastUpdateScrollPosition;typeof e==`number`&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,r,i){let a=w({item:n,position:0,nr:T({id:de++,index:t,used:!0,key:r,type:i})});return e.push(a),a},unuseView(e,t=!1){let n=this.$_unusedViews,r=e.nr.type,i=n.get(r);i||(i=[],n.set(r,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit(`resize`),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;let e=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;let{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});e(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&e()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit(`visible`),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit(`hidden`))},updateVisibleItems(e,t=!1){let n=this.itemSize,r=this.gridItems||1,i=this.itemSecondarySize||n,a=this.$_computedMinItemSize,o=this.typeField,s=this.simpleArray?null:this.keyField,c=this.items,l=c.length,u=this.sizes,d=this.$_views,f=this.$_unusedViews,p=this.pool,m=this.itemIndexByKey,h,g,_,v,y;if(!l)h=g=v=y=_=0;else if(this.$_prerender)h=v=0,g=y=Math.min(this.prerender,c.length),_=null;else{let e=this.getScroll();if(t){let t=e.start-this.$_lastUpdateScrollPosition;if(t<0&&(t=-t),n===null&&t<a||t<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=e.start;let i=this.buffer;e.start-=i,e.end+=i;let o=0;if(this.$refs.before&&(o=this.$refs.before.scrollHeight,e.start-=o),this.$refs.after){let t=this.$refs.after.scrollHeight;e.end+=t}if(n===null){let t,n=0,r=l-1,i=~~(l/2),a;do a=i,t=u[i].accumulator,t<e.start?n=i:i<l-1&&u[i+1].accumulator>e.start&&(r=i),i=~~((n+r)/2);while(i!==a);for(i<0&&(i=0),h=i,_=u[l-1].accumulator,g=i;g<l&&u[g].accumulator<e.end;g++);for(g===-1?g=c.length-1:(g++,g>l&&(g=l)),v=h;v<l&&o+u[v].accumulator<e.start;v++);for(y=v;y<l&&o+u[y].accumulator<e.end;y++);}else{h=~~(e.start/n*r);let t=h%r;h-=t,g=Math.ceil(e.end/n*r),v=Math.max(0,Math.floor((e.start-o)/n*r)),y=Math.floor((e.end-o)/n*r),h<0&&(h=0),g>l&&(g=l),v<0&&(v=0),y>l&&(y=l),_=Math.ceil(l/r)*n}}g-h>U.itemsLimit&&this.itemsLimitError(),this.totalSize=_;let b,x=h<=this.$_endIndex&&g>=this.$_startIndex;if(x)for(let t=0,n=p.length;t<n;t++)b=p[t],b.nr.used&&(e&&(b.nr.index=m[b.item[s]]),(b.nr.index==null||b.nr.index<h||b.nr.index>=g)&&this.unuseView(b));let S=x?null:new Map,C,w,T;for(let e=h;e<g;e++){C=c[e];let t=s?C[s]:C;if(t==null)throw Error(`Key is ${t} on item (keyField is '${s}')`);if(b=d.get(t),!n&&!u[e].size){b&&this.unuseView(b);continue}w=C[o];let a=f.get(w),l=!1;if(!b)x?b=a&&a.length?a.pop():this.addView(p,e,C,t,w):(T=S.get(w)||0,(!a||T>=a.length)&&(b=this.addView(p,e,C,t,w),this.unuseView(b,!0),a=f.get(w)),b=a[T],S.set(w,T+1)),d.delete(b.nr.key),b.nr.used=!0,b.nr.index=e,b.nr.key=t,b.nr.type=w,d.set(t,b),l=!0;else if(!b.nr.used&&(b.nr.used=!0,l=!0,a)){let e=a.indexOf(b);e!==-1&&a.splice(e,1)}b.item=C,l&&(e===c.length-1&&this.$emit(`scroll-end`),e===0&&this.$emit(`scroll-start`)),n===null?(b.position=u[e-1].accumulator,b.offset=0):(b.position=Math.floor(e/r)*n,b.offset=e%r*i)}return this.$_startIndex=h,this.$_endIndex=g,this.emitUpdate&&this.$emit(`update`,h,g,v,y),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:x}},getListenerTarget(){let e=q(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){let{$el:e,direction:t}=this,n=t===`vertical`,r;if(this.pageMode){let t=e.getBoundingClientRect(),i=n?t.height:t.width,a=-(n?t.top:t.left),o=n?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),r={start:a,end:a+o}}else r=n?{start:e.scrollTop,end:e.scrollTop+e.clientHeight}:{start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return r},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener(`scroll`,this.handleScroll,Z?{passive:!0}:!1),this.listenerTarget.addEventListener(`resize`,this.handleResize)},removeListeners(){this.listenerTarget&&=(this.listenerTarget.removeEventListener(`scroll`,this.handleScroll),this.listenerTarget.removeEventListener(`resize`,this.handleResize),null)},scrollToItem(e){let t,n=this.gridItems||1;t=this.itemSize===null?e>0?this.sizes[e-1].accumulator:0:Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){let t=this.direction===`vertical`?{scroll:`scrollTop`,start:`top`}:{scroll:`scrollLeft`,start:`left`},n,r,i;if(this.pageMode){let a=q(this.$el),o=a.tagName===`HTML`?0:a[t.scroll],s=a.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[t.start]-s[t.start];n=a,r=t.scroll,i=e+o+c}else n=this.$el,r=t.scroll,i=e;n[r]=i},itemsLimitError(){throw setTimeout(()=>{console.log(`It seems the scroller element isn't scrolling, so it tries to render all the items at once.`,`Scroller:`,this.$el),console.log(`Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.`)}),Error(`Rendered items limit reached`)},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}},fe={key:0,ref:`before`,class:`vue-recycle-scroller__slot`},pe={key:1,ref:`after`,class:`vue-recycle-scroller__slot`};function me(t,n,r,i,v,b){let x=d(`ResizeObserver`),w=o(`observe-visibility`);return g((c(),S(`div`,{class:s([`vue-recycle-scroller`,{ready:v.ready,"page-mode":r.pageMode,[`direction-${t.direction}`]:!0}]),onScrollPassive:n[0]||=(...e)=>b.handleScroll&&b.handleScroll(...e)},[t.$slots.before?(c(),S(`div`,fe,[l(t.$slots,`before`)],512)):f(`v-if`,!0),(c(),_(e(r.listTag),{ref:`wrapper`,style:h({[t.direction===`vertical`?`minHeight`:`minWidth`]:v.totalSize+`px`}),class:s([`vue-recycle-scroller__item-wrapper`,r.listClass])},{default:m(()=>[(c(!0),S(p,null,u(v.pool,n=>(c(),_(e(r.itemTag),a({key:n.nr.id,style:v.ready?{transform:`translate${t.direction===`vertical`?`Y`:`X`}(${n.position}px) translate${t.direction===`vertical`?`X`:`Y`}(${n.offset}px)`,width:r.gridItems?`${t.direction===`vertical`&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${t.direction===`horizontal`&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:[`vue-recycle-scroller__item-view`,[r.itemClass,{hover:!r.skipHover&&v.hoverKey===n.nr.key}]]},y(r.skipHover?{}:{mouseenter:()=>{v.hoverKey=n.nr.key},mouseleave:()=>{v.hoverKey=null}})),{default:m(()=>[l(t.$slots,`default`,{item:n.item,index:n.nr.index,active:n.nr.used})]),_:2},1040,[`style`,`class`]))),128)),l(t.$slots,`empty`)]),_:3},8,[`style`,`class`])),t.$slots.after?(c(),S(`div`,pe,[l(t.$slots,`after`)],512)):f(`v-if`,!0),C(x,{onNotify:b.handleResize},null,8,[`onNotify`])],34)),[[w,b.handleVisibilityChange]])}Q.render=me,Q.__file=`src/components/RecycleScroller.vue`;var $={name:`DynamicScroller`,components:{RecycleScroller:Q},provide(){return typeof ResizeObserver<`u`&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(let t of e)if(t.target&&t.target.$_vs_onResize){let e,n;if(t.borderBoxSize){let r=t.borderBoxSize[0];e=r.inlineSize,n=r.blockSize}else e=t.contentRect.width,n=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,e,n)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...Y,minItemSize:{type:[Number,String],required:!0}},emits:[`resize`,`visible`],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:X,itemsWithSize(){let e=[],{items:t,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,a=t.length;for(let o=0;o<a;o++){let a=t[o],s=r?o:a[n],c=i[s];c===void 0&&!this.$_undefinedMap[s]&&(c=0),e.push({item:a,id:s,size:c})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){let n=this.$el.scrollTop,r=0,i=0,a=Math.min(e.length,t.length);for(let o=0;o<a&&!(r>=n);o++)r+=t[o].size||this.minItemSize,i+=e[o].size||this.minItemSize;let o=i-r;o!==0&&(this.$el.scrollTop+=o)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=H()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit(`resize`)},onScrollerVisible(){this.$_events.emit(`vscroll:update`,{force:!1}),this.$emit(`visible`)},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit(`vscroll:update`,{force:!0})},scrollToItem(e){let t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){let n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;let e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;let t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function he(e,n,r,i,o,s){let u=d(`RecycleScroller`);return c(),_(u,a({ref:`scroller`,items:s.itemsWithSize,"min-item-size":r.minItemSize,direction:e.direction,"key-field":`id`,"list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:s.onScrollerResize,onVisible:s.onScrollerVisible}),{default:m(({item:n,index:r,active:i})=>[l(e.$slots,`default`,t(v({item:n.item,index:r,active:i,itemWithSize:n})))]),before:m(()=>[l(e.$slots,`before`)]),after:m(()=>[l(e.$slots,`after`)]),empty:m(()=>[l(e.$slots,`empty`)]),_:3},16,[`items`,`min-item-size`,`direction`,`list-tag`,`item-tag`,`onResize`,`onVisible`])}$.render=he,$.__file=`src/components/DynamicScroller.vue`;var ge={name:`DynamicScrollerItem`,inject:[`vscrollData`,`vscrollParent`,`vscrollResizeObserver`],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:`div`}},emits:[`resize`],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:`updateWatchData`,id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){let n=this.vscrollData.sizes[t],r=this.vscrollData.sizes[e];n!=null&&n!==r&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(let e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on(`vscroll:update`,this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off(`vscroll:update`,this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch(`item`,()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&=(this.$_watchData(),null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){let e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applyWidthHeight(e,t)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){let n=~~(this.vscrollParent.direction===`vertical`?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit(`resize`,this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||=(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,!0))},unobserveSize(){this.vscrollResizeObserver&&(this.$_sizeObserved&&=(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,!1))},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return n(this.tag,this.$slots.default())}};ge.__file=`src/components/DynamicScrollerItem.vue`;export{Q 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/kqysrhbw.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-gx482m17.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-lkbe0qhh.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/kqysrhbw.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-myijwyyb.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/vendor/json-editor-vue-jlmu1vk1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-b65zn1p8.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-mmkdpbhg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-h291wass.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-h34yfo3l.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-fwt4i0j8.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-ea5fdhj9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-jnavg768.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/head-k6pu038r.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dev-auth-jrf61eu0.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-lrojf3ui.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-jq34z2yz.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/splitpanes.es-gcrxxdgy.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-m0kqfedx.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-j0r9gdjm.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-qqqgbjy9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-m4ogaoh1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-ozkk5xro.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-ovtjymzc.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-jkd7jbwg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-os0x8zby.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-pccqt90w.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/kqysrhbw.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:"edc4110e-235b-4b9c-b5cf-5d6752c79836",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773024592861,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/dn0r3w55.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-ckq2wff8.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="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dn0r3w55.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/_plugin-vue_export-helper-dp8rxgcg.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/vendor/json-editor-vue-hkofgjf7.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-dkywakbf.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ready-szdlhgcr.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-bfozs29x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vue-router-dxks01bs.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-s5g5n0ac.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-niqic03h.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-bj3ln324.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/head-c2jgvqd9.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dev-auth-j4vxv6a1.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nuxt-link-mev16ngd.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/dist-duc3zu0y.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/splitpanes.es-ceqv8417.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nbutton-oi1rfqiz.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nicon-m5br9nvg.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncard-ech06vlh.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/npanel-grids-bl37sfq7.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ntext-input-ngomk0u2.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-routes-m6gv5n9v.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/state-tabs-mo8r9nzk.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/storage-options-owy2vf04.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/telemetry-bagjjni2.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/dn0r3w55.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:"ecec3f2a-4157-4187-af80-a6bd31655380",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773033778317,false]</script></body></html>
package/dist/dirs.mjs CHANGED
@@ -4,6 +4,7 @@ import isInstalledGlobally from 'is-installed-globally';
4
4
 
5
5
  const packageDir = resolve(fileURLToPath(import.meta.url), "../..");
6
6
  const distDir = resolve(fileURLToPath(import.meta.url), "..");
7
+ const BACKSLASH_RE = /\\/g;
7
8
  const runtimeDir = resolve(distDir, "runtime");
8
9
  const clientDir = resolve(distDir, "client");
9
10
  const globalInstallMatch = [
@@ -21,7 +22,7 @@ const globalInstallMatch = [
21
22
  function isGlobalInstall() {
22
23
  if (isInstalledGlobally === true || isInstalledGlobally.default === true)
23
24
  return true;
24
- const dir = packageDir.replace(/\\/g, "/");
25
+ const dir = packageDir.replace(BACKSLASH_RE, "/");
25
26
  return globalInstallMatch.some((i) => dir.includes(i));
26
27
  }
27
28
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools",
3
3
  "configKey": "devtools",
4
- "version": "3.2.2-29550409.4d481d5",
4
+ "version": "3.2.3-29550562.4009edd",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -8,6 +8,7 @@ import { computed, markRaw, nextTick, reactive, ref, shallowReactive, shallowRef
8
8
  import { initTimelineMetrics } from "../../function-metrics-helpers.js";
9
9
  import { settings } from "../../settings.js";
10
10
  import { popupWindow, state } from "./state.js";
11
+ const MULTIPLE_SLASHES_RE = /\/+/g;
11
12
  const clientRef = shallowRef();
12
13
  export { clientRef as client };
13
14
  export async function setupDevToolsClient({
@@ -97,7 +98,7 @@ export async function setupDevToolsClient({
97
98
  if (!iframe) {
98
99
  const runtimeConfig = useRuntimeConfig();
99
100
  const CLIENT_BASE = "/__nuxt_devtools__/client";
100
- const CLIENT_PATH = `${runtimeConfig.app.baseURL.replace(CLIENT_BASE, "/")}${CLIENT_BASE}`.replace(/\/+/g, "/");
101
+ const CLIENT_PATH = `${runtimeConfig.app.baseURL.replace(CLIENT_BASE, "/")}${CLIENT_BASE}`.replace(MULTIPLE_SLASHES_RE, "/");
101
102
  const initialUrl = CLIENT_PATH + state.value.route;
102
103
  iframe = document.createElement("iframe");
103
104
  for (const [key, value] of Object.entries(runtimeConfig.app.devtools?.iframeProps || {}))
@@ -810,7 +810,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
810
810
  return;
811
811
  iframe.style.pointerEvents = isResizing.value || props.isDragging || props.client.inspector?.isEnabled.value ? "none" : "auto";
812
812
  if (!popupWindow.value) {
813
- if (Array.from(container.value.children).every((el) => el !== iframe))
813
+ if ([...container.value.children].every((el) => el !== iframe))
814
814
  container.value.appendChild(iframe);
815
815
  }
816
816
  }
@@ -831,7 +831,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
831
831
  return;
832
832
  const matched = e.composedPath().find((_el) => {
833
833
  const el = _el;
834
- return Array.from(el.classList || []).some((c) => c.startsWith("nuxt-devtools-")) || el.tagName?.toLowerCase() === "iframe";
834
+ return [...el.classList || []].some((c) => c.startsWith("nuxt-devtools-")) || el.tagName?.toLowerCase() === "iframe";
835
835
  });
836
836
  if (!matched)
837
837
  state.value.open = false;
@@ -1557,6 +1557,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1557
1557
  setup(__props, { expose: __expose, emit: __emit }) {
1558
1558
  __expose();
1559
1559
  const emit = __emit;
1560
+ const WHITESPACE_RE = /\s+/;
1561
+ const FILE_EXT_RE = /\.\w+$/;
1560
1562
  const showToast = ref(false);
1561
1563
  const toastContent = ref("");
1562
1564
  let toastTimer;
@@ -1621,13 +1623,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1621
1623
  break;
1622
1624
  }
1623
1625
  if (current.className && typeof current.className === "string") {
1624
- const classes = current.className.trim().split(/\s+/).filter(Boolean);
1626
+ const classes = current.className.trim().split(WHITESPACE_RE).filter(Boolean);
1625
1627
  if (classes.length > 0)
1626
1628
  selector += `.${classes.map((c) => CSS.escape(c)).join(".")}`;
1627
1629
  }
1628
1630
  const parent = current.parentElement;
1629
1631
  if (parent) {
1630
- const siblings = Array.from(parent.children).filter(
1632
+ const siblings = [...parent.children].filter(
1631
1633
  (child) => child.tagName === current.tagName
1632
1634
  );
1633
1635
  if (siblings.length > 1) {
@@ -1656,7 +1658,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1656
1658
  componentName = vnode.type;
1657
1659
  } else if (typeof vnode.type === "object") {
1658
1660
  const typeObj = vnode.type;
1659
- componentName = typeObj.name || typeObj.__name || typeObj.__file?.split("/").pop()?.replace(/\.\w+$/, "") || "AnonymousComponent";
1661
+ componentName = typeObj.name || typeObj.__name || typeObj.__file?.split("/").pop()?.replace(FILE_EXT_RE, "") || "AnonymousComponent";
1660
1662
  } else if (typeof vnode.type === "function") {
1661
1663
  componentName = vnode.type.name || "FunctionalComponent";
1662
1664
  }
@@ -1704,7 +1706,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1704
1706
  console.error("Failed to copy agent info:", error);
1705
1707
  }
1706
1708
  }
1707
- const __returned__ = { emit, PANEL_WIDTH, PANEL_HEIGHT, PANEL_MARGIN, showToast, toastContent, get toastTimer() {
1709
+ const __returned__ = { emit, WHITESPACE_RE, FILE_EXT_RE, PANEL_WIDTH, PANEL_HEIGHT, PANEL_MARGIN, showToast, toastContent, get toastTimer() {
1708
1710
  return toastTimer;
1709
1711
  }, set toastTimer(v) {
1710
1712
  toastTimer = v;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-nightly",
3
3
  "type": "module",
4
- "version": "3.2.2-29550409.4d481d5",
4
+ "version": "3.2.3-29550562.4009edd",
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",
@@ -42,22 +42,22 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@3.2.2-29550409.4d481d5",
46
- "@nuxt/devtools-wizard": "npm:@nuxt/devtools-wizard-nightly@3.2.2-29550409.4d481d5",
45
+ "@nuxt/devtools-kit": "npm:@nuxt/devtools-kit-nightly@3.2.3-29550562.4009edd",
46
+ "@nuxt/devtools-wizard": "npm:@nuxt/devtools-wizard-nightly@3.2.3-29550562.4009edd",
47
47
  "@nuxt/kit": "^4.3.1",
48
- "@vue/devtools-core": "^8.0.6",
49
- "@vue/devtools-kit": "^8.0.6",
48
+ "@vue/devtools-core": "^8.0.7",
49
+ "@vue/devtools-kit": "^8.0.7",
50
50
  "birpc": "^4.0.0",
51
51
  "consola": "^3.4.2",
52
52
  "destr": "^2.0.5",
53
53
  "error-stack-parser-es": "^1.0.5",
54
54
  "execa": "^8.0.1",
55
- "fast-npm-meta": "^1.2.1",
55
+ "fast-npm-meta": "^1.4.2",
56
56
  "get-port-please": "^3.2.0",
57
57
  "hookable": "^6.0.1",
58
58
  "image-meta": "^0.2.2",
59
59
  "is-installed-globally": "^1.0.0",
60
- "launch-editor": "^2.13.0",
60
+ "launch-editor": "^2.13.1",
61
61
  "local-pkg": "^1.1.2",
62
62
  "magicast": "^0.5.2",
63
63
  "nypm": "^0.6.5",
@@ -66,7 +66,7 @@
66
66
  "perfect-debounce": "^2.1.0",
67
67
  "pkg-types": "^2.3.0",
68
68
  "semver": "^7.7.4",
69
- "simple-git": "^3.32.2",
69
+ "simple-git": "^3.32.3",
70
70
  "sirv": "^3.0.2",
71
71
  "structured-clone-es": "^1.0.0",
72
72
  "tinyglobby": "^0.2.15",
@@ -80,32 +80,32 @@
80
80
  "@discoveryjs/cli": "^2.14.7",
81
81
  "@discoveryjs/discovery": "1.0.0-beta.92",
82
82
  "@iconify-json/bxl": "^1.2.4",
83
- "@iconify-json/carbon": "^1.2.18",
83
+ "@iconify-json/carbon": "^1.2.19",
84
84
  "@iconify-json/logos": "^1.2.10",
85
85
  "@iconify-json/ph": "^1.2.2",
86
86
  "@iconify-json/ri": "^1.2.10",
87
- "@iconify-json/simple-icons": "^1.2.71",
88
- "@iconify-json/tabler": "^1.2.27",
87
+ "@iconify-json/simple-icons": "^1.2.72",
88
+ "@iconify-json/tabler": "^1.2.30",
89
89
  "@nuxt/test-utils": "^4.0.0",
90
90
  "@parcel/watcher": "^2.5.6",
91
91
  "@types/markdown-it-link-attributes": "^3.0.5",
92
- "@unhead/schema": "^2.1.4",
93
- "@unocss/nuxt": "^66.6.0",
94
- "@unocss/preset-icons": "^66.6.0",
95
- "@unocss/preset-uno": "^66.6.0",
96
- "@unocss/runtime": "^66.6.0",
92
+ "@unhead/schema": "^2.1.10",
93
+ "@unocss/nuxt": "^66.6.6",
94
+ "@unocss/preset-icons": "^66.6.6",
95
+ "@unocss/preset-uno": "^66.6.6",
96
+ "@unocss/runtime": "^66.6.6",
97
97
  "@vitejs/devtools": "^0.0.0-alpha.23",
98
98
  "@vitest/ui": "^4.0.18",
99
- "@vue/devtools-applet": "^8.0.6",
99
+ "@vue/devtools-applet": "^8.0.7",
100
100
  "@vueuse/nuxt": "^14.2.1",
101
101
  "@xterm/addon-fit": "^0.11.0",
102
102
  "@xterm/xterm": "^6.0.0",
103
- "cronstrue": "^3.12.0",
103
+ "cronstrue": "^3.13.0",
104
104
  "exsolve": "^1.0.8",
105
105
  "floating-vue": "^5.2.2",
106
106
  "fuse.js": "^7.1.0",
107
107
  "json-editor-vue": "^0.18.1",
108
- "lightningcss": "^1.31.1",
108
+ "lightningcss": "^1.32.0",
109
109
  "markdown-it": "^14.1.1",
110
110
  "markdown-it-link-attributes": "^4.0.1",
111
111
  "my-ua-parser": "^2.0.4",
@@ -114,14 +114,14 @@
114
114
  "ofetch": "^1.5.1",
115
115
  "quicktype-core": "22.0.0",
116
116
  "scule": "^1.3.0",
117
- "shiki": "^3.22.0",
118
- "shiki-codegen": "^3.22.0",
117
+ "shiki": "^4.0.2",
118
+ "shiki-codegen": "^4.0.2",
119
119
  "theme-vitesse": "^1.0.0",
120
120
  "tsx": "^4.21.0",
121
- "unimport": "^5.6.0",
122
- "unocss": "^66.6.0",
121
+ "unimport": "^6.0.1",
122
+ "unocss": "^66.6.6",
123
123
  "unplugin-vue": "^7.1.1",
124
- "unplugin-vue-markdown": "^29.2.0",
124
+ "unplugin-vue-markdown": "^30.0.0",
125
125
  "vanilla-jsoneditor": "^3.11.0",
126
126
  "vis-data": "^8.0.3",
127
127
  "vis-network": "^10.0.2",
@@ -1 +0,0 @@
1
- import{E as e,W as t,v as n}from"./vendor/json-editor-vue-jlmu1vk1.js";import"./nuxt-h34yfo3l.js";import"./composables-k2ak4j8d.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-jlmu1vk1.js";import{g as _,k as v}from"./ready-mmkdpbhg.js";import{a as y}from"./nuxt-h34yfo3l.js";import"./head-k6pu038r.js";import{N as b,t as x}from"./state-b65zn1p8.js";import{_ as S,u as C,v as w}from"./client-ea5fdhj9.js";import"./vendor/shiki-jnavg768.js";import"./storage-options-os0x8zby.js";import{n as T}from"./dev-auth-jrf61eu0.js";import"./nuxt-link-lrojf3ui.js";import{t as E}from"./_plugin-vue_export-helper-myijwyyb.js";import"./nicon-j0r9gdjm.js";import{t as D}from"./nbutton-m0kqfedx.js";import"./ncard-qqqgbjy9.js";import{r as O}from"./state-routes-ovtjymzc.js";import{t as k}from"./telemetry-pccqt90w.js";import"./state-tabs-jkd7jbwg.js";import{t as A}from"./npanel-grids-m4ogaoh1.js";import{t as j}from"./ntext-input-ozkk5xro.js";import{c as M,f as N,o as P,p as F,t as I}from"#entry";import"./client-lfu9nb62.js";import{t as L}from"./ncode-block-o9sq6td7.js";import"./composables-k2ak4j8d.js";import{t as R}from"./ncheckbox-knbe2cxv.js";import{t as z}from"./filepath-item-e4nchqwg.js";import{t as B}from"./help-fab-hk76lwiw.js";var V={"h-full":``,grid:`~ rows-[max-content_1fr]`},H={flex:`~ wrap`,"w-full":``},U=[`onClick`],W={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},G={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},K=`/__nuxt_devtools__/client`,q=n({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let d=n,_=`${y().app.baseURL.replace(K,`/`)}/__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 S(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function E(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 O(e){return C.clearAnalyzeBuilds(await T(),[e])}return(t,d)=>{let p=z,y=D;return a(),h(`div`,V,[f(`div`,H,[(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,U))),128)),d[1]||=f(`div`,{border:`b base`,"flex-auto":``},null,-1)]),x.value?.id===`overview`?(a(),h(`div`,W,[d[15]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,G,[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(S(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(E(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(E(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(w)(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=>O(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(_)}${n.current.slug}/client.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[v,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(_)}${n.current.slug}/nitro.html`,"h-full":``,"w-full":``},null,8,[`src`]),[[v,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(_)}${n.current.slug}/.vite-inspect/`,"h-full":``,"w-full":``},null,8,[`src`]),[[v,x.value?.id===`vite-inspect`]])],64)):s(`v-show-if`,!0)])}}}),J=Object.assign(q,{__name:`BuildAnalyzeDetails`}),Y={},X={class:`markdown-body`};function Z(t,n){return a(),h(`div`,X,[...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 Q=E(Y,[[`render`,Z]]),$={flex:`~ col`},ee=[`onClick`],te={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},ne={flex:`~ items-center justify-center wrap`,p4:``},re={flex:`~ col gap-1`,"w-250":``,p4:``},ie={flex:`~ gap-3`,mt2:``,"justify-end":``},ae=n({__name:`analyze-build`,setup(n){let u=S(),v=x(),y=_(),E=b(`analyze-build:slug`,``),z=p(()=>v.value?.builds.find(e=>e.slug===E.value)??v.value?.builds[0]),V=t(!1),H=t(``),U=p(()=>v.value?.builds.some(e=>e.name===H.value.trim()));async function W(){H.value=await C.generateAnalyzeBuildName(),await u.start()&&(k(`analyze-build:start`),I.value={name:H.value,processId:await C.startAnalyzeBuild(await T(),H.value)},V.value&&q())}let G=O();function K(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function q(){I.value?.processId&&(G.value=I.value.processId,y.push(`/modules/terminals`))}return P(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:W}]),(t,n)=>{let p=D,_=J,y=A,b=M,x=j,S=F,C=L,T=R,O=N,k=Q,P=B;return a(),h(c,null,[g(b,{"left-size":30},{left:l(()=>[f(`div`,$,[(a(!0),h(c,null,o(r(v)?.builds,e=>(a(),h(c,{key:e.slug},[f(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===z.value?.slug?`text-primary bg-active`:``),onClick:t=>E.value=e.slug},[f(`code`,null,m(e.name),1),f(`div`,te,[n[4]||=f(`div`,{"i-carbon-time":``},null,-1),f(`span`,null,m(K(e)),1),n[5]||=f(`div`,{"flex-auto":``},null,-1),f(`span`,null,m(r(w)(new Date(e.endTime))),1)])],10,ee),n[6]||=f(`div`,{"x-divider":``},null,-1)],64))),128)),f(`div`,ne,[r(I)?(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=>W()},{default:l(()=>[...n[7]||=[e(` Start a new build `,-1)]]),_:1}))])])]),right:l(()=>[z.value?(a(),d(_,{key:0,current:z.value},null,8,[`current`])):(a(),d(y,{key:1}))]),_:1}),g(r(u),null,{default:l(({resolve:t})=>[g(O,{"model-value":!0,onClose:e=>t(!1)},{default:l(()=>[f(`div`,re,[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:H.value,"onUpdate:modelValue":n[2]||=e=>H.value=e,placeholder:`Build name`},null,8,[`modelValue`]),U.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(C,{code:`npx nuxi analyze --no-serve --name=${H.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),g(T,{modelValue:V.value,"onUpdate:modelValue":n[3]||=e=>V.value=e,mt2:``,n:`primary`},{default:l(()=>[...n[10]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),f(`div`,ie,[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(P,null,{default:l(()=>[g(k)]),_:1})],64)}}});export{ae 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-jlmu1vk1.js";import{A as x,O as S}from"./ready-mmkdpbhg.js";import"./nuxt-h34yfo3l.js";import"./head-k6pu038r.js";import{c as C,h as w,z as T}from"./state-b65zn1p8.js";import{D as E,L as D,M as O,N as k,P as A,b as j,d as M,h as N,p as P,u as F}from"./client-ea5fdhj9.js";import"./vendor/shiki-jnavg768.js";import{t as I}from"./storage-options-os0x8zby.js";import{c as L,n as R}from"./dev-auth-jrf61eu0.js";import"./nuxt-link-lrojf3ui.js";import{t as z}from"./nicon-j0r9gdjm.js";import{t as B}from"./nbutton-m0kqfedx.js";import"./ncard-qqqgbjy9.js";import"./state-routes-ovtjymzc.js";import{t as V}from"./telemetry-pccqt90w.js";import{t as H}from"./ntext-input-ozkk5xro.js";import{d as ee,f as te,s as U,u as ne}from"#entry";import{t as W}from"./ndropdown-lkmzobqs.js";import"./client-lfu9nb62.js";import"./ncode-block-o9sq6td7.js";import{t as G}from"./ndrawer-ufyhcx08.js";import"./composables-k2ak4j8d.js";import{t as K}from"./ncheckbox-knbe2cxv.js";import{t as re}from"./filepath-item-e4nchqwg.js";import{t as q}from"./nnavbar-b0i34u17.js";import"./nicon-title-ggx25xp9.js";import{t as J}from"./nsection-block-dzbgwc4z.js";import{t as Y}from"./code-snippets-c0ulfayj.js";var X={key:0,"h-full":``,"w-full":``,flex:``,"items-center":``,"justify-center":``},ie={for:`drop-zone-input`,"text-3xl":``,hover:`text-green cursor-pointer`,"transition-all":``},ae={key:1,relative:``,"h-full":``,"w-full":``,grid:`~ rows-[max-content_1fr_max-content]`},oe={grid:`~ cols-minmax-8rem gap-8`,"overflow-auto":``,p6:``},se={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,rounded:``,"rounded-t-lg":``,"bg-active":``,"object-cover":``,class:`aspect-1/1`,border:`~ base`},ce=[`src`],le={flex:`~ gap1`,"items-center":``},ue={flex:`~ gap-2`,"items-center":``,"justify-center":``,p8:``},de=n({__name:`AssetDropZone`,props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(n){let s=n,f=A(s,`modelValue`),g=t(),_=t([]);function y(e){g.value=e.target,f.value=!0}function x(e){e.target===g.value&&(f.value=!1)}function S(e){e.preventDefault()}function C(e){e.preventDefault(),w(e.dataTransfer.files)}function w(e){let t=Array.from(e||[]);if(t.length){let e=[],n=_.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);_.value=[..._.value,...e]}}async function T(){if(M.value||P.value)return;V(`assets:upload`);let e=[];for(let t of _.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 F.writeStaticAssets(await R(),[...e],s.folder).then(()=>{N(),L({message:`Files uploaded successfully!`,icon:`i-carbon:checkmark`})}).catch(e=>{N(),L({message:`Error uploading files: ${e?.message??`unknown`}`,icon:`i-carbon-warning`,classes:`text-red`})}),f.value=!1}function D(e){_.value?.splice(e,1)}function O(e){return URL.createObjectURL(e)}function k(e,t){let[n,r]=e.name.split(`.`),i=t.replace(/\.\w+$/,``),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}),_.value.splice(_.value.indexOf(e),1,e),e)}function j(){_.value=[]}function N(){f.value=!1,j()}return E(`dragenter`,y),E(`dragleave`,x),E(`dragover`,S),E(`drop`,C),(t,n)=>{let s=B,g=z,y=H,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(f)?`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:N},null,512),[[x,`Close`,void 0,{"bottom-end":!0}]]),_.value?.length?(o(),v(`div`,ae,[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`,oe,[(o(!0),v(u,null,c(_.value,(e,t)=>(o(),v(`div`,{key:e.name,flex:`~ col gap-2`,relative:``,"h-50":``,"w-40":``,"items-center":``},[h(`div`,se,[h(`img`,{"h-full":``,"w-full":``,"rounded-t-lg":``,"object-cover":``,src:O(e)},null,8,ce)]),h(`div`,le,[b(y,{n:`xs`,"h-full":``,"flex-auto":``,"model-value":e.name,"onUpdate:modelValue":t=>k(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=>D(t)},null,8,[`onClick`])])]))),128))]),h(`div`,ue,[_.value.length?(o(),m(s,{key:0,n:`red`,onClick:j},{default:d(()=>[b(g,{icon:`carbon-clean`}),n[2]||=e(` Clear `,-1)]),_:1})):l(``,!0),b(s,{disabled:!_.value.length,n:`primary solid`,onClick:T},{default:d(()=>[b(g,{icon:`carbon-cloud-upload`}),n[3]||=e(` Upload `,-1)]),_:1},8,[`disabled`])])])):(o(),v(`div`,X,[h(`label`,ie,[b(g,{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=>w(e.target.files)},null,32)]))],2)}}}),fe=Object.assign(de,{__name:`AssetDropZone`}),pe=n({__name:`AssetFontPreview`,props:{asset:{}},setup(e){let t=e,n=g(()=>`devtools-assets-${T(t.asset)}`);return O(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))}}),me=Object.assign(pe,{__name:`AssetFontPreview`}),he={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,"bg-active":``,"object-cover":``,p1:``},ge=[`src`],_e={key:2,"i-carbon-document":``,"text-3xl":``,op20:``},ve={key:3,"w-full":``,"self-start":``,p4:``},ye=[`textContent`],be={key:4},xe=[`src`,`autoplay`,`controls`],Se={key:5},Ce={key:0,"i-carbon-volume-up":``,"text-3xl":``,op20:``},we=[`src`],Te={key:6,"i-carbon-help":``,"text-3xl":``,op20:``},Ee=n({__name:`AssetPreview`,props:{asset:{},textContent:{},detail:{type:Boolean}},setup(e){return(t,n)=>{let r=me;return o(),v(`div`,he,[e.asset.type===`image`?(o(),v(`img`,{key:0,src:e.asset.publicPath},null,8,ge)):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`,_e)):e.asset.type===`text`&&e.textContent?(o(),v(`div`,ve,[h(`pre`,{"max-h-10rem":``,"of-hidden":``,"text-xs":``,"font-mono":``,textContent:_(e.textContent)},null,8,ye)])):e.asset.type===`video`?(o(),v(`div`,be,[h(`video`,{src:e.asset.publicPath,autoplay:e.detail,controls:e.detail},null,8,xe)])):e.asset.type===`audio`?(o(),v(`div`,Se,[e.detail?(o(),v(`audio`,{key:1,src:e.asset.publicPath,controls:``},null,8,we)):(o(),v(`div`,Ce))])):(o(),v(`div`,Te))])}}}),Z=Object.assign(Ee,{__name:`AssetPreview`}),De={relative:``,flex:`~ col gap-1`,hover:`bg-active`,"items-center":``,"of-hidden":``,rounded:``,p2:``},Oe={"w-full":``,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-center":``,"text-xs":``},ke=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=z,a=Z;return o(),v(`button`,De,[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`,Oe,_(n.value),1)])}}}),Ae=Object.assign(ke,{__name:`AssetGridItem`}),je=n({__name:`AssetListItem`,props:{item:{},index:{default:0},modelValue:{}},setup(n,{emit:i}){let d=n,p=A(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=z,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)])}}}),Q=Object.assign(je,{__name:`AssetListItem`}),Me={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Ne={flex:`~`,"items-center":``,"justify-center":``},Pe={"max-w-full":``,"w-full":``,"table-fixed":``},Fe={flex:`~ gap-1`,"w-full":``,"items-center":``},Ie={flex:`~ gap-1`,"w-full":``,"items-center":``,"of-hidden":``},Le={"flex-auto":``,"of-hidden":``,truncate:``,"ws-pre":``,"font-mono":``},Re={capitalize:``},ze={key:0},Be={op70:``},Ve={flex:`~ gap2 wrap`},He={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Ue={flex:`~ gap2 wrap justify-center`},We={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Ge={flex:`~ gap2 wrap justify-center`},Ke={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},qe={flex:``,"justify-end":``,"gap-4":``},Je=n({__name:`AssetDetails`,props:{modelValue:{}},setup(n,{emit:a}){let s=A(n,`modelValue`,a,{passive:!0}),c=N(async()=>{if(s.value.type===`image`)return F.getImageMeta(await R(),s.value.filePath)}),f=t(!1),y=t(),w=t(0),T=N(async()=>{if(s.value.type!==`text`)return;w.value;let e=await F.getTextAssetContent(await R(),s.value.filePath);return y.value=e,e});async function E(){if(T.value!==y.value)try{await F.writeStaticAssets(await R(),[{path:s.value.path,content:y.value,override:!0}],``),f.value=!1,w.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 D=C(),O=g(()=>(D.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`}),O.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}),M=ne(),P=ee(),I=k(()=>s.value.mtime),z=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`}),V=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}`:``}),U=g(()=>[`image`,`text`,`video`,`audio`,`font`].includes(s.value.type)),W=t(!1);async function G(){try{await F.deleteStaticAsset(await R(),s.value.filePath),s.value=void 0,W.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 K=t(!1),q=t(``);async function J(){let e=s.value.filePath.split(`/`),t=e.slice(-1)[0]?.split(`.`).slice(0,-1).join(`.`);if(!q.value||q.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(`/`)}/${q.value}.${t}`;await F.renameStaticAsset(await R(),s.value.filePath,n),s.value=void 0,K.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=B,w=Y,D=te,O=H,k=i(`tooltip`);return o(),v(u,null,[h(`div`,Me,[U.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`,Ne,[b(a,{detail:``,"max-h-80":``,"min-h-20":``,"min-w-20":``,"w-auto":``,rounded:``,border:`~ base`,asset:r(s),"text-content":r(T)},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`,Pe,[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`,Fe,[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(P)(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`,Ie,[h(`div`,Le,_(r(s).publicPath),1),p(b(C,{"flex-none":``,title:`Copy public path`,icon:`carbon-copy`,border:!1,onClick:n[1]||=e=>r(M)(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`,Re,_(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)]),V.value?(o(),v(`tr`,ze,[n[18]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Aspect Ratio `,-1),h(`td`,null,_(V.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,_(z.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`,Be,`(`+_(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`,Ve,[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=>K.value=!K.value},{default:d(()=>[...n[23]||=[e(` Rename `,-1)]]),_:1}),b(C,{icon:`carbon-delete`,n:`red`,onClick:n[4]||=e=>W.value=!W.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(D,{modelValue:W.value,"onUpdate:modelValue":n[6]||=e=>W.value=e},{default:d(()=>[h(`div`,He,[n[30]||=h(`span`,null,` Are you sure you want to delete this asset? `,-1),h(`div`,Ue,[b(C,{icon:`carbon-close`,onClick:n[5]||=e=>W.value=!1},{default:d(()=>[...n[28]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon-delete`,n:`red`,onClick:G},{default:d(()=>[...n[29]||=[e(` Delete `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),b(D,{modelValue:K.value,"onUpdate:modelValue":n[9]||=e=>K.value=e},{default:d(()=>[h(`div`,We,[b(O,{modelValue:q.value,"onUpdate:modelValue":n[7]||=e=>q.value=e,placeholder:`New name`,n:`blue`},null,8,[`modelValue`]),h(`div`,Ge,[b(C,{icon:`carbon-close`,onClick:n[8]||=e=>K.value=!1},{default:d(()=>[...n[31]||=[e(` Cancel `,-1)]]),_:1}),b(C,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:J},{default:d(()=>[...n[32]||=[e(` Rename `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),r(s).type===`text`?(o(),m(D,{key:0,modelValue:f.value,"onUpdate:modelValue":n[12]||=e=>f.value=e},{default:d(()=>[h(`div`,Ke,[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(E,[`enter`])},null,544),[[S,y.value]]),h(`div`,qe,[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:E},{default:d(()=>[...n[34]||=[e(` save `,-1)]]),_:1})])])]),_:1},8,[`modelValue`])):l(``,!0)],64)}}}),$=Object.assign(Je,{__name:`AssetDetails`}),Ye={"h-full":``,"of-auto":``},Xe={"flex-none":``,flex:`~ gap2 items-center`,"text-lg":``},Ze={flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--1":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-primary:30":``,"text-8px":``},Qe={flex:`~ col`,"w-30":``,"of-auto":``},$e={"text-xs":``,op75:``},et={op50:``},tt={key:0},nt={"mt--4":``,px2:``,grid:`~ cols-minmax-8rem`},rt={key:1,p2:``,grid:`~ cols-minmax-8rem`},it={key:1},at=n({__name:`assets`,setup(e){let n=w(),a=t(!1),s=t(``),f=g(()=>new U(n.value||[],{keys:[`path`]})),y=D(()=>{let e=[];for(let t of n.value||[]){let n=t.path.split(`.`).pop();n&&!e.find(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))}),C=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 O(){E.value=E.value===`list`?`grid`:`list`}j(`Escape`,()=>{T.value=void 0});let k=t();return(e,t)=>{let f=B,g=K,w=W,D=q,A=fe,j=Ae,M=J,N=Q,P=$,F=G,I=i(`tooltip`);return o(),v(`div`,Ye,[b(D,{ref_key:`navbar`,ref:k,search:s.value,"onUpdate:search":t[1]||=e=>s.value=e,pb2:``},{actions:d(()=>[h(`div`,Xe,[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(w,{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`,Ze,_(r(y).length),1)]),default:d(()=>[h(`div`,Qe,[(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`,$e,_(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:O},null,8,[`icon`]),[[I,`Toggle View`,void 0,{"bottom-end":!0}]])])]),default:d(()=>[h(`div`,et,[s.value?(o(),v(`span`,tt,_(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`,nt,[(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`,rt,[(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`,it,[(o(!0),v(u,null,c(C.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{at as default};
@@ -1 +0,0 @@
1
- {"id":"edc4110e-235b-4b9c-b5cf-5d6752c79836","timestamp":1773024554688,"prerendered":[]}
@@ -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-jlmu1vk1.js";import"./ready-mmkdpbhg.js";import"./nuxt-h34yfo3l.js";import"./head-k6pu038r.js";import{T as E,c as D,d as O,i as ee,x as k,y as A}from"./state-b65zn1p8.js";import{H as j,r as M,t as N}from"./client-ea5fdhj9.js";import"./vendor/shiki-jnavg768.js";import{t as P}from"./storage-options-os0x8zby.js";import"./dev-auth-jrf61eu0.js";import"./nuxt-link-lrojf3ui.js";import{t as F}from"./_plugin-vue_export-helper-myijwyyb.js";import{t as I}from"./nicon-j0r9gdjm.js";import{t as L}from"./nbutton-m0kqfedx.js";import{t as te}from"./ncard-qqqgbjy9.js";import"./state-routes-ovtjymzc.js";import"./telemetry-pccqt90w.js";import"./ntext-input-ozkk5xro.js";import{s as R,u as z}from"#entry";import{t as ne}from"./ndrawer-ufyhcx08.js";import"./composables-k2ak4j8d.js";import{t as re}from"./ncheckbox-knbe2cxv.js";import{t as B}from"./filepath-item-e4nchqwg.js";import{t as V}from"./help-fab-hk76lwiw.js";import{t as H}from"./nnavbar-b0i34u17.js";import{t as U}from"./nicon-title-ggx25xp9.js";import{t as W}from"./nsection-block-dzbgwc4z.js";import{n as G}from"./dist-9xqq72tk.js";import{t as K}from"./nbadge-h59v1exj.js";import{n as q,t as J}from"./vendor/vis-p9fufs7k.js";import{t as Y}from"./nselect-tabs-jgvac6a8.js";import{n as X,t as ie}from"./state-components-gdb1hu1j.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=F(ae,[[`render`,se]]),le={"text-sm":``,"font-mono":``},ue=r({__name:`ComponentName`,props:{component:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||G(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)]))}}),Z=Object.assign(ue,{__name:`ComponentName`}),Q={flex:`~ col gap1`,"items-start":``,"of-hidden":``},de={flex:`~ gap2 items-center`,px3:``},fe={px3:``,pb2:``},pe={key:0,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},me={"text-sm":``},he={"text-primary":``},ge={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},_e={key:1,border:`t base`,"max-h-60":``,"w-full":``,"of-auto":``,px3:``,py3:``},ve={"text-sm":``},ye={"text-primary":``},be={key:0,flex:`~ col gap-2`,"items-start":``,pt3:``,"text-sm":``,op75:``},xe=r({__name:`ComponentDetails`,props:{component:{},dependencies:{},dependents:{}},setup(e){let n=e,r=x(()=>n.component.pascalName||G(n.component.name||n.component.__name||n.component.kebabName||``)),i=x(()=>n.component.filePath||n.component.file||n.component.__file||``),o=z();return(n,s)=>{let c=Z,l=L,p=K,g=B;return u(),C(`div`,Q,[b(`div`,de,[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`,fe,[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`,pe,[b(`div`,me,[b(`strong`,he,S(e.dependents.length),1),s[3]||=b(`span`,{op50:``},` references`,-1)]),e.dependents.length?(u(),C(`div`,ge,[(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`,_e,[b(`div`,ve,[b(`strong`,ye,S(e.dependencies.length),1),s[4]||=b(`span`,{op50:``},` dependencies`,-1)]),e.dependencies.length?(u(),C(`div`,be,[(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`)])}}}),$=Object.assign(xe,{__name:`ComponentDetails`}),Se={flex:`~ gap-x-3 gap-y-1 wrap`,"w-full":``},Ce={relative:``,"h-full":``,"w-full":``},we={key:0,py4:``,pt3:``,flex:`~ col`},Te={border:`t base`,p4:``},Ee=r({__name:`ComponentsGraph`,props:{components:{},relationships:{}},setup(e){let r=e,o=n(),s=n(),c=N(),f=i(),p=O(),v=D(),y=ee(),{componentsGraphShowNodeModules:S,componentsGraphShowGlobalComponents:E,componentsGraphShowPages:k,componentsGraphShowLayouts:A,componentsGraphShowWorkspace:M}=P(`ui`),F=n(),I=n(``),R=j(I,300),z=x(()=>{let e=r.relationships||[];if(F.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(F.value),Array.from(t)}return e}),B=x(()=>{let e=z.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`||!k.value&&a===`page`||!A.value&&a===`layout`||!M.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=R.value&&!e.id.toLowerCase().includes(R.value.toLowerCase());return{id:e.id,label:G(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`:F.value?.id===e.id?`#82c742`:void 0,extra:{id:e.id,component:t,page:n,layout:i,relationship:e}}}).filter(e=>!!e),t=z.value.flatMap(e=>e.deps.map(t=>({from:e.id,to:t,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new q(e),edges:t}}),V=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):[]),U=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 J(o.value,B.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=B.value.nodes.get(t).extra}),g(B,()=>{e.setData(B.value)})});function W(){f.value=void 0}function G(e){let t=r.components.find(t=>t.filePath===e);return t?t.pascalName:e.replace(/.*\/components\//,``).replace(/\.vue$/,``).replace(/\/index$/,``).split(`/`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(``)}function K(){F.value=f.value?.relationship,f.value=void 0}return(e,n)=>{let r=re,i=H,c=te,l=$,p=L,g=ne;return u(),C(h,null,[T(i,{ref_key:`navbar`,ref:s,search:I.value,"onUpdate:search":n[6]||=e=>I.value=e,absolute:``,"left-0":``,"right-0":``,"top-0":``},{actions:_(()=>[b(`div`,Se,[T(r,{modelValue:a(k),"onUpdate:modelValue":n[0]||=e=>w(k)?k.value=e:null,n:`primary sm`},{default:_(()=>[...n[8]||=[b(`span`,{op75:``},`Show pages`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(A),"onUpdate:modelValue":n[1]||=e=>w(A)?A.value=e:null,n:`primary sm`},{default:_(()=>[...n[9]||=[b(`span`,{op75:``},`Show layouts`,-1)]]),_:1},8,[`modelValue`]),T(r,{modelValue:a(M),"onUpdate:modelValue":n[2]||=e=>w(M)?M.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`])]),F.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=>F.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`,Ce,[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:W},{default:_(()=>[f.value&&f.value.component?(u(),C(`div`,we,[T(l,{component:f.value.component,dependencies:V.value,dependents:U.value},null,8,[`component`,`dependencies`,`dependents`]),b(`div`,Te,[T(p,{n:`primary solid`,onClick:n[7]||=e=>K()},{default:_(()=>[...n[16]||=[t(` Filter to this component `,-1)]]),_:1})])])):m(``,!0)]),_:1},8,[`model-value`,`top`])])],64)}}}),De=Object.assign(Ee,{__name:`ComponentsGraph`}),Oe={hover:`bg-active`,class:`group`,flex:`~ gap2`,"w-full":``,"items-center":``,rounded:``,px2:``,py1:``},ke={key:0,"ml--1":``,"text-primary":``},Ae=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=K,l=B;return u(),C(`div`,Oe,[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`,ke,` 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)])}}}),je=Object.assign(Ae,{__name:`ComponentItem`}),Me={flex:`~ gap-2 items-center`},Ne={pl4:``},Pe=r({__name:`ComponentsList`,props:{components:{},relationships:{}},setup(e){let t=e,r=n(``),i=n(`all`),s=x(()=>{let e=t.components.map(e=>A(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 R(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=k(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=I,s=Y,c=H,l=je,g=W,v=U;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`,Me,[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`,Ne,[(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)}}}),Fe=Object.assign(Pe,{__name:`ComponentsList`}),Ie={relative:``,"h-full":``,"of-auto":``},Le={"flex-none":``,flex:`~ gap3`},Re=r({__name:`components`,setup(t){let n=M(),r=ie(),i=X(),{componentsView:o}=P(`ui`);function c(){n.value?.inspector?.enable()}function l(){o.value=o.value===`list`?`graph`:`list`}return(t,d)=>{let f=L,p=ce,g=V,x=s(`tooltip`);return u(),C(h,null,[b(`div`,Ie,[(u(),y(e(a(o)===`list`?Fe:De),{components:a(r),relationships:a(i)},{default:_(()=>[b(`div`,Le,[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{Re as default};
@@ -1 +0,0 @@
1
- import{$ as e,C as t,Ct as n,E as r,F as i,H as a,Mt as o,V as s,W as 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,xt as _}from"./vendor/json-editor-vue-jlmu1vk1.js";import{g as v,h as y}from"./ready-mmkdpbhg.js";import"./nuxt-h34yfo3l.js";import"./head-k6pu038r.js";import"./state-b65zn1p8.js";import{T as b,s as x,t as S,u as C}from"./client-ea5fdhj9.js";import"./vendor/shiki-jnavg768.js";import"./storage-options-os0x8zby.js";import{i as w,r as T}from"./dev-auth-jrf61eu0.js";import"./nuxt-link-lrojf3ui.js";import"./nicon-j0r9gdjm.js";import"./nbutton-m0kqfedx.js";import{t as E}from"./ncard-qqqgbjy9.js";import"./telemetry-pccqt90w.js";import{r as D}from"./state-tabs-jkd7jbwg.js";import{t as O}from"./npanel-grids-m4ogaoh1.js";import"./ntext-input-ozkk5xro.js";import{a as k}from"#entry";import"./client-lfu9nb62.js";import"./composables-k2ak4j8d.js";import"./nmarkdown-nsbirjtv.js";import{t as A}from"./launch-page-k1lwfnm2.js";var j=new Map,M=r({__name:`IframeView`,props:{tab:{}},setup(e){let t=e,r=S(),o=n(),l=p(()=>t.tab.name),u=n(),d=_(b(o));s(()=>{let e=t.tab.view,n=e.persistent!==!1,r=[`clipboard-write`,`clipboard-read`,...e.permissions||[]];if(j.get(l.value)&&n)u.value=j.get(l.value),u.value.style.visibility=`visible`;else{u.value=document.createElement(`iframe`),u.value.setAttribute(`allow`,r.join(`; `)),u.value.setAttribute(`aria-label`,`Nuxt Devtools`),n&&j.set(l.value,u.value),u.value.src=e.src;try{u.value.style.opacity=`0.01`,u.value.onload=()=>{v(),m(),u.value.style.opacity=`1`}}catch{u.value.style.opacity=`1`}document.body.appendChild(u.value),i(y)}setTimeout(m,100)}),f(y),f(m),f(v),a(()=>{u.value&&(u.value.style.visibility=`hidden`)});function m(){if(!(!u.value||!u.value.contentWindow))try{let e=u.value.contentWindow.document.querySelector(`html`);e?.classList.toggle(`dark`,r.value===`dark`),e?.classList.toggle(`light`,r.value===`dark`),new MutationObserver(()=>{r.value=u.value?.contentWindow?.document.querySelector(`html`)?.classList.contains(`dark`)?`dark`:`light`}).observe(e,{attributes:!0,attributeFilter:[`class`]})}catch{}}let g=x();function v(){if(!(!u.value||!u.value.contentWindow))try{u.value.contentWindow.__NUXT_DEVTOOLS__=g.value}catch{}}function y(){u.value&&Object.assign(u.value.style,{position:`fixed`,left:`${d.left}px`,top:`${d.top}px`,width:`${d.width}px`,height:`${d.height}px`,outline:`none`})}return(e,t)=>(c(),h(`div`,{ref_key:`anchor`,ref:o,"h-full":``,"w-full":``},null,512))}}),N=Object.assign(M,{__name:`IframeView`}),P={flex:`~ col gap2`,mxa:``,"items-center":``},F={"text-xl":``},I={"text-rose":``},L=r({__name:`custom-[name]`,props:{name:{}},setup(n){let r=n,i=y(),a=v(),f=p(()=>r.name??i.params.name),h=D(),_=p(()=>h.value.find(e=>e.name===f.value));return s(()=>{_.value?_.value.requireAuth&&!T.value&&w():setTimeout(()=>{_.value||a.push(`/modules/overview`)},2e3)}),(n,r)=>{let i=O,a=k,s=N,p=A,h=E;return _.value?_.value.requireAuth&&!o(T)?(c(),u(a,{key:1})):_.value.view.type===`iframe`?(c(),u(s,{key:2,tab:_.value},null,8,[`tab`])):_.value.view.type===`vnode`?(c(),u(e(_.value.view.vnode),{key:3})):_.value.view.type===`launch`?(c(),u(p,{key:4,name:`custom-${_.value.name}`,icon:_.value.view.icon||_.value.icon,title:_.value.view.title||_.value.title,description:_.value.view.description,actions:_.value.view.actions,onAction:r[0]||=e=>o(C).customTabAction(_.value.name,e)},null,8,[`name`,`icon`,`title`,`description`,`actions`])):(c(),u(i,{key:5},{default:l(()=>[g(h,{flex:`~ col`,"h-full":``,"items-center":``,"justify-center":``},{default:l(()=>[t(` Unknown tab type `+m(_.value.view),1)]),_:1})]),_:1})):(c(),u(i,{key:0},{default:l(()=>[d(`div`,P,[r[3]||=d(`div`,{"i-carbon-queued":``,mb2:``,"text-5xl":``,op50:``},null,-1),d(`p`,F,[r[1]||=t(` Tab `,-1),d(`code`,I,m(f.value),1),r[2]||=t(` not found `,-1)]),r[4]||=d(`p`,{op50:``},` It might because the module contributing this tab is not installed or enabled `,-1),r[5]||=d(`p`,{mt8:``,"animate-pulse":``},` Redirecting to overview page... `,-1)])]),_:1}))}}});export{L as default};