@nuxt/devtools 3.2.1 → 3.2.3
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.
- package/dist/chunks/module-main.mjs +270 -108
- package/dist/chunks/plugin-metrics.mjs +4 -2
- package/dist/chunks/timeline.mjs +2 -1
- package/dist/chunks/vite-inspect.mjs +7 -4
- package/dist/chunks/vscode.mjs +1 -0
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/__blank-gayjf0ih.js +1 -0
- package/dist/client/_nuxt/_plugin-vue_export-helper-dp8rxgcg.js +1 -0
- package/dist/client/_nuxt/analyze-build-bnq2cil8.js +1 -0
- package/dist/client/_nuxt/assets-fjp0hrmh.js +6 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/f343c68e-9061-4942-a0df-50170dc001bd.json +1 -0
- package/dist/client/_nuxt/{client-cbmkjf3j.js → client-lh91kcpv.js} +1 -1
- package/dist/client/_nuxt/client-s5g5n0ac.js +2 -0
- package/dist/client/_nuxt/code-diff-cb7twqkt.js +8 -0
- package/dist/client/_nuxt/code-snippets-ho13b87l.js +1 -0
- package/dist/client/_nuxt/components-peth8amc.js +1 -0
- package/dist/client/_nuxt/composable-item-b09pj4ca.js +1 -0
- package/dist/client/_nuxt/custom-_name_-lfwzilnd.js +1 -0
- package/dist/client/_nuxt/data-schema-button-ke4komn6.js +1 -0
- package/dist/client/_nuxt/data-schema-drawer-dqe6w00i.js +2 -0
- package/dist/client/_nuxt/debug-itzra6gt.js +1 -0
- package/dist/client/_nuxt/default-bunv5fnq.js +1 -0
- package/dist/client/_nuxt/dev-auth-j4vxv6a1.js +1 -0
- package/dist/client/_nuxt/dist-duc3zu0y.js +1 -0
- package/dist/client/_nuxt/dist-mnod32r1.js +1 -0
- package/dist/client/_nuxt/{duration-display-dhj2ifr1.js → duration-display-20xlusue.js} +1 -1
- package/dist/client/_nuxt/{entry.css-gx482m17.css → entry.css-ckq2wff8.css} +1 -1
- package/dist/client/_nuxt/error-404-c73bftho.js +1 -0
- package/dist/client/_nuxt/error-404.css-pazrj6fo.css +1 -0
- package/dist/client/_nuxt/error-500-75llnfh8.js +1 -0
- package/dist/client/_nuxt/error-500.css-hlldh6hu.css +1 -0
- package/dist/client/_nuxt/error-isnb18yz.js +9 -0
- package/dist/client/_nuxt/filepath-item-fnp9jxof.js +1 -0
- package/dist/client/_nuxt/full-h8pokapo.js +1 -0
- package/dist/client/_nuxt/head-c2jgvqd9.js +1 -0
- package/dist/client/_nuxt/help-fab-oc1qudll.js +1 -0
- package/dist/client/_nuxt/hooks-i5p6cuw0.js +1 -0
- package/dist/client/_nuxt/imports-ia8eldh8.js +1 -0
- package/dist/client/_nuxt/l471sqq0.js +4 -0
- package/dist/client/_nuxt/launch-page-kf0w74wk.js +1 -0
- package/dist/client/_nuxt/modules-obwfskfp.js +1 -0
- package/dist/client/_nuxt/nbadge-hpznun17.js +1 -0
- package/dist/client/_nuxt/nbutton-oi1rfqiz.js +1 -0
- package/dist/client/_nuxt/ncard-ech06vlh.js +1 -0
- package/dist/client/_nuxt/ncheckbox-k9nxqa1w.js +1 -0
- package/dist/client/_nuxt/{ncode-block-j2hcqwrp.js → ncode-block-coc4sua0.js} +1 -1
- package/dist/client/_nuxt/ndrawer-ijwn9421.js +1 -0
- package/dist/client/_nuxt/ndropdown-moy416uy.js +1 -0
- package/dist/client/_nuxt/nicon-m5br9nvg.js +1 -0
- package/dist/client/_nuxt/{nicon-title-hrj2h1mn.js → nicon-title-e35pdr21.js} +1 -1
- package/dist/client/_nuxt/nlink-dmk2d6qc.js +1 -0
- package/dist/client/_nuxt/{nmarkdown-ftmgc061.js → nmarkdown-nct1w6kn.js} +1 -1
- package/dist/client/_nuxt/nnavbar-n3j7iul1.js +1 -0
- package/dist/client/_nuxt/none-bs12srzp.js +1 -0
- package/dist/client/_nuxt/npanel-grids-bl37sfq7.js +1 -0
- package/dist/client/_nuxt/nsection-block-l0c6dpg8.js +1 -0
- package/dist/client/_nuxt/nselect-kgjpj17v.js +1 -0
- package/dist/client/_nuxt/nselect-tabs-if6er1us.js +1 -0
- package/dist/client/_nuxt/nswitch-b36trghq.js +1 -0
- package/dist/client/_nuxt/ntext-input-ngomk0u2.js +1 -0
- package/dist/client/_nuxt/nuxt-bfozs29x.js +1 -0
- package/dist/client/_nuxt/nuxt-link-mev16ngd.js +1 -0
- package/dist/client/_nuxt/open-graph-m7wd1sxi.js +3 -0
- package/dist/client/_nuxt/overview-dbrpdvvy.js +1 -0
- package/dist/client/_nuxt/pages-gnfgydad.js +1 -0
- package/dist/client/_nuxt/pages-izgjpbm4.js +1 -0
- package/dist/client/_nuxt/payload-hc17espa.js +1 -0
- package/dist/client/_nuxt/pinia-ns87k5yi.js +1 -0
- package/dist/client/_nuxt/plugins-mswypwe4.js +1 -0
- package/dist/client/_nuxt/ready-szdlhgcr.js +1 -0
- package/dist/client/_nuxt/render-tree-hec27xi7.js +1 -0
- package/dist/client/_nuxt/runtime-configs-chx5ggf0.js +1 -0
- package/dist/client/_nuxt/server-discovery-cjcj8emm.js +1 -0
- package/dist/client/_nuxt/server-route-inputs-lqwnul2k.js +1 -0
- package/dist/client/_nuxt/server-routes-e0uqj8di.js +7 -0
- package/dist/client/_nuxt/server-tasks-izz5mcrk.js +1 -0
- package/dist/client/_nuxt/settings-dhxjcakv.js +1 -0
- package/dist/client/_nuxt/splitpanes.es-ceqv8417.js +1 -0
- package/dist/client/_nuxt/stacktrace-list-m1sv2uvd.js +1 -0
- package/dist/client/_nuxt/state-components-mnfvrbtw.js +1 -0
- package/dist/client/_nuxt/state-dkywakbf.js +1 -0
- package/dist/client/_nuxt/state-editor-epijodsw.js +1 -0
- package/dist/client/_nuxt/state-modules-ehax0fup.js +1 -0
- package/dist/client/_nuxt/state-routes-m6gv5n9v.js +1 -0
- package/dist/client/_nuxt/state-tabs-mo8r9nzk.js +1 -0
- package/dist/client/_nuxt/storage-hdyfvofj.js +1 -0
- package/dist/client/_nuxt/storage-options-owy2vf04.js +1 -0
- package/dist/client/_nuxt/telemetry-bagjjni2.js +1 -0
- package/dist/client/_nuxt/terminals-hem69799.js +1 -0
- package/dist/client/_nuxt/timeline-luryae8h.js +31 -0
- package/dist/client/_nuxt/unocss-runtime-jcr8lucj.js +1 -0
- package/dist/client/_nuxt/vendor/{json-editor-vue-ddj4xtqm.js → json-editor-vue-hkofgjf7.js} +4 -4
- package/dist/client/_nuxt/vendor/{markdown-it-ew3lvn5m.js → markdown-it-bcxn77q6.js} +1 -1
- package/dist/client/_nuxt/vendor/shiki-niqic03h.js +153 -0
- package/dist/client/_nuxt/vendor/unocss-bj3ln324.js +3 -0
- package/dist/client/_nuxt/vendor/unocss.css-3gd0e2sv.css +1 -0
- package/dist/client/_nuxt/vendor/{vis-ccj7spt3.js → vis-id8udisj.js} +1 -1
- package/dist/client/_nuxt/virtual-files-o2l5arel.js +1 -0
- package/dist/client/_nuxt/vue-devtools-na2nb82m.js +3 -0
- package/dist/client/_nuxt/vue-router-dxks01bs.js +1 -0
- package/dist/client/_nuxt/{vue-virtual-scroller.esm-il5noocm.js → vue-virtual-scroller.esm-d0igfpwe.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/dirs.mjs +2 -1
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/client.js +2 -1
- package/dist/webcomponents/index.mjs +18 -13
- package/package.json +27 -27
- package/dist/client/_nuxt/__blank-may67yna.js +0 -1
- package/dist/client/_nuxt/analyze-build-ezjae6pi.js +0 -1
- package/dist/client/_nuxt/assets-cctzmb3x.js +0 -6
- package/dist/client/_nuxt/builds/meta/aeb4c219-e4e8-40ef-9d2c-5e42c7648ec5.json +0 -1
- package/dist/client/_nuxt/code-diff-dj5abiya.js +0 -8
- package/dist/client/_nuxt/code-snippets-cgl6wpax.js +0 -1
- package/dist/client/_nuxt/components-gbus3qqv.js +0 -1
- package/dist/client/_nuxt/composable-item-gs2iudn4.js +0 -1
- package/dist/client/_nuxt/custom-_name_-m936a9yu.js +0 -1
- package/dist/client/_nuxt/data-schema-button-j6fxaw99.js +0 -1
- package/dist/client/_nuxt/data-schema-drawer-it2972mk.js +0 -2
- package/dist/client/_nuxt/debug-i1rscwhu.js +0 -1
- package/dist/client/_nuxt/default-fb125qds.js +0 -1
- package/dist/client/_nuxt/dist-joij2tdx.js +0 -1
- package/dist/client/_nuxt/error-404-m8kh5nuw.js +0 -1
- package/dist/client/_nuxt/error-404.css-hvuilq4i.css +0 -1
- package/dist/client/_nuxt/error-500-h85n6r14.js +0 -1
- package/dist/client/_nuxt/error-500.css-jc8udnlk.css +0 -1
- package/dist/client/_nuxt/error-l968gtru.js +0 -9
- package/dist/client/_nuxt/filepath-item-osqp88cx.js +0 -1
- package/dist/client/_nuxt/full-odhn7e61.js +0 -1
- package/dist/client/_nuxt/help-fab-bhtk9hzf.js +0 -1
- package/dist/client/_nuxt/hooks-hkx6shiy.js +0 -1
- package/dist/client/_nuxt/imports-nbrcx3j5.js +0 -1
- package/dist/client/_nuxt/launch-page-fyevedb0.js +0 -1
- package/dist/client/_nuxt/modules-kh9xciqf.js +0 -1
- package/dist/client/_nuxt/nbadge-ijsj8fjy.js +0 -1
- package/dist/client/_nuxt/ncheckbox-f4a8016e.js +0 -1
- package/dist/client/_nuxt/ndrawer-lh0r2gbb.js +0 -1
- package/dist/client/_nuxt/ndropdown-ef0253xr.js +0 -1
- package/dist/client/_nuxt/nlink-bsck6xne.js +0 -1
- package/dist/client/_nuxt/nnavbar-fdsyxwr6.js +0 -1
- package/dist/client/_nuxt/none-kpcjhluv.js +0 -1
- package/dist/client/_nuxt/nsection-block-kp1wt3o4.js +0 -1
- package/dist/client/_nuxt/nselect-cmll6q59.js +0 -1
- package/dist/client/_nuxt/nselect-tabs-dueuo8rw.js +0 -1
- package/dist/client/_nuxt/nswitch-gqy4bgn3.js +0 -1
- package/dist/client/_nuxt/open-graph-ol89f0bf.js +0 -3
- package/dist/client/_nuxt/overview-cd40uq12.js +0 -1
- package/dist/client/_nuxt/owfrwikl.js +0 -4
- package/dist/client/_nuxt/pages-bbrpp8du.js +0 -1
- package/dist/client/_nuxt/pages-cry23sym.js +0 -1
- package/dist/client/_nuxt/payload-bhrm3gbm.js +0 -1
- package/dist/client/_nuxt/pinia-bcnuwvzr.js +0 -1
- package/dist/client/_nuxt/plugins-k9rqnu6h.js +0 -1
- package/dist/client/_nuxt/render-tree-fd08tpf3.js +0 -1
- package/dist/client/_nuxt/runtime-configs-kagn8z75.js +0 -1
- package/dist/client/_nuxt/server-discovery-ja6p66g6.js +0 -1
- package/dist/client/_nuxt/server-route-inputs-b6nweyxn.js +0 -1
- package/dist/client/_nuxt/server-routes-dtwlhsgf.js +0 -7
- package/dist/client/_nuxt/server-tasks-lboebplp.js +0 -1
- package/dist/client/_nuxt/settings-joqzffm3.js +0 -1
- package/dist/client/_nuxt/stacktrace-list-mphoqupg.js +0 -1
- package/dist/client/_nuxt/state-components-b5shg9ni.js +0 -1
- package/dist/client/_nuxt/state-editor-gc0bkewv.js +0 -1
- package/dist/client/_nuxt/state-modules-e2s3wq2g.js +0 -1
- package/dist/client/_nuxt/storage-m3jg7c3a.js +0 -1
- package/dist/client/_nuxt/terminals-hsjdjxac.js +0 -1
- package/dist/client/_nuxt/timeline-nn4tvvo6.js +0 -31
- package/dist/client/_nuxt/unocss-runtime-cyizum7d.js +0 -1
- package/dist/client/_nuxt/vendor/shiki-kunkft64.js +0 -152
- package/dist/client/_nuxt/vendor/unocss-f9yt86gg.js +0 -3
- package/dist/client/_nuxt/virtual-files-ds4udxjo.js +0 -1
- package/dist/client/_nuxt/vue-devtools-hovopvyk.js +0 -3
- /package/dist/client/_nuxt/{color-k274hmrf.js → color-b9xoe9j2.js} +0 -0
- /package/dist/client/_nuxt/{composables-g8w9dpc0.js → composables-cwesk2q8.js} +0 -0
- /package/dist/client/_nuxt/{constants-i6giw94a.js → constants-lof1c7kz.js} +0 -0
- /package/dist/client/_nuxt/{dist-k9rc0n5t.js → dist-m49wlq01.js} +0 -0
- /package/dist/client/_nuxt/vendor/{quicktype-core-f78dz8oi.js → quicktype-core-f8dnflnv.js} +0 -0
- /package/dist/client/_nuxt/vendor/{xterm-b39oya8c.js → xterm-ed0pys2e.js} +0 -0
|
@@ -0,0 +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-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-
|
|
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};
|
package/dist/client/index.html
CHANGED
|
@@ -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/
|
|
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/l471sqq0.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/l471sqq0.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/l471sqq0.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:"f343c68e-9061-4942-a0df-50170dc001bd",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1773033785100,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(
|
|
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
|
@@ -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(
|
|
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 || {}))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isRef, toRefs as toRefs$1, customRef, toValue, onMounted, nextTick, watch, getCurrentInstance, getCurrentScope, onScopeDispose, shallowRef, computed, ref, unref, defineComponent, useModel, watchEffect, mergeModels, withDirectives, openBlock, createElementBlock, createCommentVNode, createElementVNode, withModifiers, vShow, reactive, useTemplateRef, normalizeClass, normalizeStyle, toDisplayString, Fragment, createVNode, defineCustomElement, createTextVNode } from 'vue';
|
|
1
|
+
import { isRef, toRefs as toRefs$1, customRef, toValue, onMounted, nextTick, watch, getCurrentInstance, getCurrentScope, onScopeDispose, shallowRef, computed, ref, unref, defineComponent, useModel, watchEffect, mergeModels, withDirectives, openBlock, createElementBlock, createCommentVNode, createElementVNode, withModifiers, vShow, reactive, useTemplateRef, normalizeClass, normalizeStyle, toDisplayString, Fragment, createVNode, defineCustomElement, mergeProps, createTextVNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
const css = `*{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}:before{--un-content:""}:after{--un-content:""}html{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button{-webkit-appearance:button;background-color:transparent;background-image:none}[type=button]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=reset]{-webkit-appearance:button;background-color:transparent;background-image:none}[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder{opacity:1;color:#9ca3af}textarea::placeholder{opacity:1;color:#9ca3af}button{cursor:pointer}[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--un-text-opacity:100%}@property --nuxt-devtools-inspect-border-angle{syntax:"<angle>";inherits:false;initial-value:90deg}.nuxt-devtools-inspect-running-border{filter:blur(10px);--nuxt-devtools-inspect-border-angle:0deg;background:conic-gradient(from var(--nuxt-devtools-inspect-border-angle), #00dc82, #00e6e8, #42e200, #0086e2, #00dc82) border-box;-webkit-mask:linear-gradient(#fff 0,#fff 0) padding-box,linear-gradient(#fff 0,#fff 0);-webkit-mask-composite:destination-out;transition:all .5s;animation:1s linear infinite color-rotate-background;mask-image:linear-gradient(#fff 0,#fff 0),linear-gradient(#fff 0,#fff 0);mask-position:0 0,0 0;mask-size:auto,auto;mask-repeat:repeat,repeat;mask-clip:padding-box,border-box;mask-origin:padding-box,border-box;mask-composite:exclude;mask-mode:match-source,match-source}.nuxt-devtools-inspect-neon{background-image:linear-gradient(90deg,#00dc82,#00e6e8,#42e200,#00dc82,#00e6e8,#42e200,#00dc82,#00e6e8,#42e200);background-position:0;background-size:400% 400%}.nuxt-devtools-inspect-neon.running{animation:3s linear infinite neon-background}@keyframes neon-background{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.nuxt-devtools-frame{z-index:2147483645;-webkit-font-smoothing:antialiased;width:100%;height:100%;position:fixed}.nuxt-devtools-frame iframe{background:var(--nuxt-devtools-widget-bg);border:1px solid rgba(125,125,125,.2);-webkit-border-radius:10px;border-radius:10px;outline:none;width:100%;height:100%}.nuxt-devtools-resize-handle-horizontal{cursor:ns-resize;-webkit-border-radius:5px;border-radius:5px;height:10px;margin:-5px 0;position:absolute;left:6px;right:6px}.nuxt-devtools-resize-handle-vertical{cursor:ew-resize;-webkit-border-radius:5px;border-radius:5px;width:10px;margin:0 -5px;position:absolute;top:6px;bottom:0}.nuxt-devtools-resize-handle-corner{-webkit-border-radius:6px;border-radius:6px;width:14px;height:14px;margin:-6px;position:absolute}.nuxt-devtools-resize-handle:hover{background:rgba(125,125,125,.1)}#nuxt-devtools-anchor{z-index:2147483645;transform-origin:50%;box-sizing:border-box;width:0;font-family:Arial,Helvetica,sans-serif;position:fixed;transform:translate(-50%,-50%)rotate(0);font-size:15px!important}#nuxt-devtools-anchor *{box-sizing:border-box}#nuxt-devtools-anchor button{cursor:pointer;color:inherit;background:0 0;border:none;outline:none;margin:0;padding:0}#nuxt-devtools-anchor .nuxt-devtools-label{align-items:center;justify-items:center;gap:3px;padding:0 7px 0 8px;font-size:.8em;line-height:1em;display:flex}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-main{opacity:.8;white-space:nowrap}#nuxt-devtools-anchor .nuxt-devtools-label .nuxt-devtools-label-secondary{opacity:.5;white-space:nowrap;font-size:.8em;line-height:.6em}#nuxt-devtools-anchor .nuxt-devtools-nuxt-button{flex:none}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-nuxt-button{transform:rotate(-90deg)}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-label{flex-direction:column;gap:2px;padding:0 10px;transform:rotate(-90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel{border:1px solid var(--nuxt-devtools-widget-border);background-color:var(--nuxt-devtools-widget-bg);backdrop-filter:blur(10px);height:30px;color:var(--nuxt-devtools-widget-fg);box-shadow:2px 2px 8px var(--nuxt-devtools-widget-shadow);user-select:none;touch-action:none;-webkit-border-radius:100px;border-radius:100px;justify-content:flex-start;align-items:center;gap:2px;max-width:150px;padding:2px 2px 2px 2.5px;transition:all .6s,max-width .6s,padding .5s,transform .4s,opacity .2s;display:flex;position:absolute;top:0;left:0;overflow:hidden;transform:translate(-50%,-50%)}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel{max-width:32px;padding:2px 0}#nuxt-devtools-anchor.nuxt-devtools-vertical .nuxt-devtools-panel{box-shadow:2px -2px 8px var(--nuxt-devtools-widget-shadow);transform:translate(-50%,-50%)rotate(90deg)}#nuxt-devtools-anchor .nuxt-devtools-panel-content{transition:opacity .4s}#nuxt-devtools-anchor.nuxt-devtools-hide .nuxt-devtools-panel-content{opacity:0}#nuxt-devtools-anchor .nuxt-devtools-icon-button{opacity:.8;border-width:0;-webkit-border-radius:100%;border-radius:100%;justify-content:center;align-items:center;width:30px;height:30px;transition:opacity .2s ease-in-out;display:flex}#nuxt-devtools-anchor .nuxt-devtools-icon-button:hover{opacity:1}#nuxt-devtools-anchor:hover .nuxt-devtools-glowing{opacity:.6}#nuxt-devtools-anchor .nuxt-devtools-glowing{opacity:0;pointer-events:none;z-index:-1;filter:blur(60px);background-image:linear-gradient(45deg,#00dc82,#00dc82,#00dc82);-webkit-border-radius:9999px;border-radius:9999px;width:160px;height:160px;transition:all 1s;position:absolute;top:0;left:0;transform:translate(-50%,-50%)}@media print{#nuxt-devtools-anchor{display:none}}*{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }.i-ph-arrow-bend-left-up-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M152 80H56l48-48Z' opacity='.2'/%3E%3Cpath d='M200 216a88.1 88.1 0 0 1-88-88V88h40a8 8 0 0 0 5.66-13.66l-48-48a8 8 0 0 0-11.32 0l-48 48A8 8 0 0 0 56 88h40v40a104.11 104.11 0 0 0 104 104a8 8 0 0 0 0-16M104 43.31L132.69 72H75.31Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-arrow-up-right-light{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M198 64v104a6 6 0 0 1-12 0V78.48L68.24 196.24a6 6 0 0 1-8.48-8.48L177.52 70H88a6 6 0 0 1 0-12h104a6 6 0 0 1 6 6'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-check-circle-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M224 128a96 96 0 1 1-96-96a96 96 0 0 1 96 96' opacity='.2'/%3E%3Cpath d='M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0M232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104m-16 0a88 88 0 1 0-88 88a88.1 88.1 0 0 0 88-88'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-copy-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M216 40v128h-48V88H88V40Z' opacity='.2'/%3E%3Cpath d='M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8m-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-file-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M208 88h-56V32Z' opacity='.2'/%3E%3Cpath d='m213.66 82.34l-56-56A8 8 0 0 0 152 24H56a16 16 0 0 0-16 16v176a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V88a8 8 0 0 0-2.34-5.66M160 51.31L188.69 80H160ZM200 216H56V40h88v48a8 8 0 0 0 8 8h48z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-tree-view-duotone{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='currentColor'%3E%3Cpath d='M104 32v32a8 8 0 0 1-8 8H64a8 8 0 0 1-8-8V32a8 8 0 0 1 8-8h32a8 8 0 0 1 8 8m104 64h-32a8 8 0 0 0-8 8v32a8 8 0 0 0 8 8h32a8 8 0 0 0 8-8v-32a8 8 0 0 0-8-8m0 88h-32a8 8 0 0 0-8 8v32a8 8 0 0 0 8 8h32a8 8 0 0 0 8-8v-32a8 8 0 0 0-8-8' opacity='.2'/%3E%3Cpath d='M176 152h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-32a16 16 0 0 0-16 16v8H88V80h8a16 16 0 0 0 16-16V32a16 16 0 0 0-16-16H64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h8v112a24 24 0 0 0 24 24h64v8a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-32a16 16 0 0 0-16 16v8H96a8 8 0 0 1-8-8v-64h72v8a16 16 0 0 0 16 16M64 32h32v32H64Zm112 160h32v32h-32Zm0-88h32v32h-32Z'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.i-ph-x{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;color:inherit;background-color:currentColor;width:1em;height:1em;mask-size:100% 100%}.container{width:100%}.border-base{--un-border-opacity:.13;border-color:rgba(136,136,136,var(--un-border-opacity))}.bg-glass{--un-backdrop-blur:blur(5px);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia);background-color:rgba(255,255,255,.75)}.color-base{--un-text-opacity:1;color:rgba(38,38,38,var(--un-text-opacity))}.ring-base{--un-ring-opacity:.13;--un-ring-color:rgba(136,136,136,var(--un-ring-opacity))}@media (prefers-color-scheme:dark){.bg-glass{background-color:rgba(17,17,17,.75)}.color-base{--un-text-opacity:1;color:rgba(229,229,229,var(--un-text-opacity))}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.disabled\\:pointer-events-none:disabled{pointer-events:none}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{top:0;bottom:0;left:0;right:0}.bottom-20px{bottom:20px}.right-20px{right:20px}.z-10{z-index:10}.z-9999999{z-index:9999999}.z-99999999{z-index:99999999}.grid{display:grid}.grid-cols-\\[max-content_1fr\\]{grid-template-columns:max-content 1fr}.ms:not(:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi))){margin-left:1rem}.ms:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){margin-right:1rem}.mt-2{margin-top:.5rem}.max-h-200px{max-height:200px}.max-w-500px{max-width:500px}.w-400px{width:400px}.flex{display:flex}.flex-auto{flex:auto}.flex-none{flex:none}.flex-col{flex-direction:column}.translate-y-0{--un-translate-y:0;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.translate-y-10{--un-translate-y:2.5rem;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.transform{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.resize{resize:both}.items-center{align-items:center}.gap-2{gap:.5rem}.of-auto{overflow:auto}.of-hidden{overflow:hidden}.whitespace-pre-wrap{white-space:pre-wrap}.break-all{word-break:break-all}.border-1{border-width:1px}.border-1\\.5{border-width:1.5px}.border-transparent{border-color:transparent}.rounded{-webkit-border-radius:.25rem;border-radius:.25rem}.rounded-lg{-webkit-border-radius:.5rem;border-radius:.5rem}.bg-black{--un-bg-opacity:1;background-color:rgba(0,0,0,var(--un-bg-opacity))}.bg-op-20{--un-bg-opacity:.2}.p2{padding:.5rem}.p4{padding:1rem}.px{padding-left:1rem;padding-right:1rem}.px1{padding-left:.25rem;padding-right:.25rem}.py0\\.5{padding-top:.125rem;padding-bottom:.125rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-green6{--un-text-opacity:1;color:rgba(22,163,74,var(--un-text-opacity))}.hover\\:text-green6:hover{--un-text-opacity:1;color:rgba(22,163,74,var(--un-text-opacity))}.font-semibold{font-weight:600}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.op0{opacity:0}.op100{opacity:1}.op50{opacity:.5}.hover\\:op100:hover{opacity:1}.disabled\\:op10\\!:disabled{opacity:.1!important}.shadow-lg{--un-shadow:var(--un-shadow-inset) 0 10px 15px -3px var(--un-shadow-color,rgba(0,0,0,.1)),var(--un-shadow-inset) 0 4px 6px -4px var(--un-shadow-color,rgba(0,0,0,.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.shadow-xl{--un-shadow:var(--un-shadow-inset) 0 20px 25px -5px var(--un-shadow-color,rgba(0,0,0,.1)),var(--un-shadow-inset) 0 8px 10px -6px var(--un-shadow-color,rgba(0,0,0,.1));box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.ring-1{--un-ring-width:1px;--un-ring-offset-shadow:var(--un-ring-inset) 0 0 0 var(--un-ring-offset-width) var(--un-ring-offset-color);--un-ring-shadow:var(--un-ring-inset) 0 0 0 calc(var(--un-ring-width) + var(--un-ring-offset-width)) var(--un-ring-color);box-shadow:var(--un-ring-offset-shadow), var(--un-ring-shadow), var(--un-shadow)}.backdrop-blur{--un-backdrop-blur:blur(8px);backdrop-filter:var(--un-backdrop-blur) var(--un-backdrop-brightness) var(--un-backdrop-contrast) var(--un-backdrop-grayscale) var(--un-backdrop-hue-rotate) var(--un-backdrop-invert) var(--un-backdrop-opacity) var(--un-backdrop-saturate) var(--un-backdrop-sepia)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.transition-none{transition:none}`;
|
|
4
4
|
|
|
@@ -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 (
|
|
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
|
|
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;
|
|
@@ -1546,6 +1546,9 @@ const PANEL_WIDTH = 400;
|
|
|
1546
1546
|
const PANEL_HEIGHT = 300;
|
|
1547
1547
|
const PANEL_MARGIN = 30;
|
|
1548
1548
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1549
|
+
...{
|
|
1550
|
+
inheritAttrs: false
|
|
1551
|
+
},
|
|
1549
1552
|
__name: "NuxtDevtoolsInspectPanel",
|
|
1550
1553
|
props: {
|
|
1551
1554
|
props: { type: Object, required: true }
|
|
@@ -1554,6 +1557,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1554
1557
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1555
1558
|
__expose();
|
|
1556
1559
|
const emit = __emit;
|
|
1560
|
+
const WHITESPACE_RE = /\s+/;
|
|
1561
|
+
const FILE_EXT_RE = /\.\w+$/;
|
|
1557
1562
|
const showToast = ref(false);
|
|
1558
1563
|
const toastContent = ref("");
|
|
1559
1564
|
let toastTimer;
|
|
@@ -1618,13 +1623,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1618
1623
|
break;
|
|
1619
1624
|
}
|
|
1620
1625
|
if (current.className && typeof current.className === "string") {
|
|
1621
|
-
const classes = current.className.trim().split(
|
|
1626
|
+
const classes = current.className.trim().split(WHITESPACE_RE).filter(Boolean);
|
|
1622
1627
|
if (classes.length > 0)
|
|
1623
1628
|
selector += `.${classes.map((c) => CSS.escape(c)).join(".")}`;
|
|
1624
1629
|
}
|
|
1625
1630
|
const parent = current.parentElement;
|
|
1626
1631
|
if (parent) {
|
|
1627
|
-
const siblings =
|
|
1632
|
+
const siblings = [...parent.children].filter(
|
|
1628
1633
|
(child) => child.tagName === current.tagName
|
|
1629
1634
|
);
|
|
1630
1635
|
if (siblings.length > 1) {
|
|
@@ -1653,7 +1658,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1653
1658
|
componentName = vnode.type;
|
|
1654
1659
|
} else if (typeof vnode.type === "object") {
|
|
1655
1660
|
const typeObj = vnode.type;
|
|
1656
|
-
componentName = typeObj.name || typeObj.__name || typeObj.__file?.split("/").pop()?.replace(
|
|
1661
|
+
componentName = typeObj.name || typeObj.__name || typeObj.__file?.split("/").pop()?.replace(FILE_EXT_RE, "") || "AnonymousComponent";
|
|
1657
1662
|
} else if (typeof vnode.type === "function") {
|
|
1658
1663
|
componentName = vnode.type.name || "FunctionalComponent";
|
|
1659
1664
|
}
|
|
@@ -1701,7 +1706,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1701
1706
|
console.error("Failed to copy agent info:", error);
|
|
1702
1707
|
}
|
|
1703
1708
|
}
|
|
1704
|
-
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() {
|
|
1705
1710
|
return toastTimer;
|
|
1706
1711
|
}, set toastTimer(v) {
|
|
1707
1712
|
toastTimer = v;
|
|
@@ -1733,12 +1738,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1733
1738
|
[
|
|
1734
1739
|
$props.props.matched ? (openBlock(), createElementBlock(
|
|
1735
1740
|
"div",
|
|
1736
|
-
{
|
|
1741
|
+
mergeProps({
|
|
1737
1742
|
key: 0,
|
|
1738
1743
|
ref: "el",
|
|
1739
|
-
class:
|
|
1740
|
-
style:
|
|
1741
|
-
},
|
|
1744
|
+
class: ["fixed relative z-9999999 w-400px flex flex-col of-hidden rounded-lg bg-glass text-sm color-base shadow-lg ring-1 ring-base backdrop-blur duration-200", [$setup.isDragging ? "transition-none" : "transition-opacity", $props.props.matched ? "op100" : "op0 pointer-events-none"]],
|
|
1745
|
+
style: $setup.style
|
|
1746
|
+
}, _ctx.$attrs),
|
|
1742
1747
|
[createCommentVNode(" <div\n class=\"pointer-events-none absolute inset-0 z-10 transition-opacity duration-300\"\n >\n <div class=\"nuxt-devtools-inspect-running-border pointer-events-none absolute inset-0 z-10 border-1.5 border-transparent rounded-lg\" />\n </div> "), createElementVNode(
|
|
1743
1748
|
"div",
|
|
1744
1749
|
_hoisted_1,
|
|
@@ -1848,8 +1853,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1848
1853
|
512
|
|
1849
1854
|
/* NEED_PATCH */
|
|
1850
1855
|
)],
|
|
1851
|
-
|
|
1852
|
-
/*
|
|
1856
|
+
16
|
|
1857
|
+
/* FULL_PROPS */
|
|
1853
1858
|
)) : createCommentVNode("v-if", true),
|
|
1854
1859
|
createCommentVNode(" Toast notification "),
|
|
1855
1860
|
withDirectives(createElementVNode(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.3",
|
|
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",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@nuxt/kit": "^4.3.1",
|
|
46
|
-
"@vue/devtools-core": "^8.0.
|
|
47
|
-
"@vue/devtools-kit": "^8.0.
|
|
46
|
+
"@vue/devtools-core": "^8.0.7",
|
|
47
|
+
"@vue/devtools-kit": "^8.0.7",
|
|
48
48
|
"birpc": "^4.0.0",
|
|
49
49
|
"consola": "^3.4.2",
|
|
50
50
|
"destr": "^2.0.5",
|
|
51
51
|
"error-stack-parser-es": "^1.0.5",
|
|
52
52
|
"execa": "^8.0.1",
|
|
53
|
-
"fast-npm-meta": "^1.2
|
|
53
|
+
"fast-npm-meta": "^1.4.2",
|
|
54
54
|
"get-port-please": "^3.2.0",
|
|
55
55
|
"hookable": "^6.0.1",
|
|
56
56
|
"image-meta": "^0.2.2",
|
|
57
57
|
"is-installed-globally": "^1.0.0",
|
|
58
|
-
"launch-editor": "^2.
|
|
58
|
+
"launch-editor": "^2.13.1",
|
|
59
59
|
"local-pkg": "^1.1.2",
|
|
60
60
|
"magicast": "^0.5.2",
|
|
61
61
|
"nypm": "^0.6.5",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"perfect-debounce": "^2.1.0",
|
|
65
65
|
"pkg-types": "^2.3.0",
|
|
66
66
|
"semver": "^7.7.4",
|
|
67
|
-
"simple-git": "^3.
|
|
67
|
+
"simple-git": "^3.32.3",
|
|
68
68
|
"sirv": "^3.0.2",
|
|
69
69
|
"structured-clone-es": "^1.0.0",
|
|
70
70
|
"tinyglobby": "^0.2.15",
|
|
@@ -72,41 +72,41 @@
|
|
|
72
72
|
"vite-plugin-vue-tracer": "^1.2.0",
|
|
73
73
|
"which": "^5.0.0",
|
|
74
74
|
"ws": "^8.19.0",
|
|
75
|
-
"@nuxt/devtools-kit": "3.2.
|
|
76
|
-
"@nuxt/devtools-wizard": "3.2.
|
|
75
|
+
"@nuxt/devtools-kit": "3.2.3",
|
|
76
|
+
"@nuxt/devtools-wizard": "3.2.3"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@antfu/utils": "^9.3.0",
|
|
80
80
|
"@discoveryjs/cli": "^2.14.7",
|
|
81
81
|
"@discoveryjs/discovery": "1.0.0-beta.92",
|
|
82
|
-
"@iconify-json/bxl": "^1.2.
|
|
83
|
-
"@iconify-json/carbon": "^1.2.
|
|
82
|
+
"@iconify-json/bxl": "^1.2.4",
|
|
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.
|
|
88
|
-
"@iconify-json/tabler": "^1.2.
|
|
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.
|
|
93
|
-
"@unocss/nuxt": "^66.6.
|
|
94
|
-
"@unocss/preset-icons": "^66.6.
|
|
95
|
-
"@unocss/preset-uno": "^66.6.
|
|
96
|
-
"@unocss/runtime": "^66.6.
|
|
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.
|
|
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.
|
|
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.
|
|
109
|
-
"markdown-it": "^14.1.
|
|
108
|
+
"lightningcss": "^1.32.0",
|
|
109
|
+
"markdown-it": "^14.1.1",
|
|
110
110
|
"markdown-it-link-attributes": "^4.0.1",
|
|
111
111
|
"my-ua-parser": "^2.0.4",
|
|
112
112
|
"nitropack": "^2.13.1",
|
|
@@ -114,18 +114,18 @@
|
|
|
114
114
|
"ofetch": "^1.5.1",
|
|
115
115
|
"quicktype-core": "22.0.0",
|
|
116
116
|
"scule": "^1.3.0",
|
|
117
|
-
"shiki": "^
|
|
118
|
-
"shiki-codegen": "^
|
|
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": "^
|
|
122
|
-
"unocss": "^66.6.
|
|
121
|
+
"unimport": "^6.0.1",
|
|
122
|
+
"unocss": "^66.6.6",
|
|
123
123
|
"unplugin-vue": "^7.1.1",
|
|
124
|
-
"unplugin-vue-markdown": "^
|
|
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",
|
|
128
|
-
"vue-tsc": "^3.2.
|
|
128
|
+
"vue-tsc": "^3.2.5",
|
|
129
129
|
"vue-virtual-scroller": "^2.0.0-beta.8"
|
|
130
130
|
},
|
|
131
131
|
"scripts": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{E as e,W as t,v as n}from"./vendor/json-editor-vue-ddj4xtqm.js";import{t as r}from"./composables-g8w9dpc0.js";var i={"h-screen":``,"w-screen":``,"bg-black":``},a=e({__name:`__blank`,setup(e){return(e,r)=>(t(),n(`div`,i))}});export{a 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-ddj4xtqm.js";import"./vendor/shiki-kunkft64.js";import{C as _,D as v,G as y,Ht as b,In as x,Jt as S,Kn as C,N as w,Nn as T,T as E,c as D,et as O,f as k,k as A,kt as j,l as M,o as N,q as P,qt as F,t as I,y as L}from"#entry";import"./client-cbmkjf3j.js";import{t as R}from"./ncode-block-j2hcqwrp.js";import{t as z}from"./composables-g8w9dpc0.js";import{t as B}from"./ncheckbox-f4a8016e.js";import{t as V}from"./filepath-item-osqp88cx.js";import{t as H}from"./help-fab-bhtk9hzf.js";var U={"h-full":``,grid:`~ rows-[max-content_1fr]`},W={flex:`~ wrap`,"w-full":``},G=[`onClick`],K={key:0,flex:`~ col gap-4 items-center justify-center`,p4:``},q={grid:`~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center`,"w-100":``},J=`/__nuxt_devtools__/client`,Y=n({__name:`BuildAnalyzeDetails`,props:{current:{},prev:{}},setup(n){let d=n,_=`${x().app.baseURL.replace(J,`/`)}/__nuxt_devtools__/analyze/`.replace(/\/+/g,`/`),v=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}),y=t(v.value[0]);function w(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function T(e){return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}async function E(e){return b.clearAnalyzeBuilds(await P(),[e])}return(t,d)=>{let p=V,b=A;return a(),h(`div`,U,[f(`div`,W,[(a(!0),h(c,null,o(v.value,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e.id===y.value?.id?``:`border-b`),onClick:t=>y.value=e},[f(`div`,{class:i(e.id===y.value?.id?``:`op30`)},m(e.name),3)],10,G))),128)),d[1]||=f(`div`,{border:`b base`,"flex-auto":``},null,-1)]),y.value?.id===`overview`?(a(),h(`div`,K,[d[15]||=f(`div`,{"flex-auto":``},null,-1),f(`div`,q,[d[10]||=f(`div`,{"i-carbon-commit":``,"text-xl":``},null,-1),f(`div`,null,[d[2]||=f(`div`,{"text-sm":``,op50:``},` Name `,-1),f(`div`,null,m(n.current.name),1)]),d[11]||=f(`div`,{"i-carbon-time":``,"text-xl":``},null,-1),f(`div`,null,[d[3]||=f(`div`,{"text-sm":``,op50:``},` Build duration `,-1),f(`div`,null,m(w(n.current)),1)]),n.current.size?.clientBundle?(a(),h(c,{key:0},[d[5]||=f(`div`,{"i-carbon-cics-program":``,"text-xl":``},null,-1),f(`div`,null,[d[4]||=f(`div`,{"text-sm":``,op50:``},` Client bundle size `,-1),f(`div`,null,m(T(n.current.size.clientBundle)),1)])],64)):s(``,!0),n.current.size?.nitroBundle?(a(),h(c,{key:1},[d[7]||=f(`div`,{"i-carbon-bare-metal-server":``,"text-xl":``},null,-1),f(`div`,null,[d[6]||=f(`div`,{"text-sm":``,op50:``},` Nitro bundle size `,-1),f(`div`,null,m(T(n.current.size.nitroBundle)),1)])],64)):s(``,!0),d[12]||=f(`div`,{"i-carbon-edge-node":``,"text-xl":``},null,-1),f(`div`,null,[d[8]||=f(`div`,{"text-sm":``,op50:``},` Built `,-1),f(`div`,null,m(r(S)(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(b,{n:`rose`,icon:`carbon-delete`,onClick:d[0]||=e=>E(n.current.name)},{default:l(()=>[...d[14]||=[e(` Delete this report `,-1)]]),_:1})])):s(``,!0),d._lazyshow1||y.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`]),[[C,y.value?.id===`bundle-client`]])],64)):s(`v-show-if`,!0),d._lazyshow2||y.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`]),[[C,y.value?.id===`bundle-nitro`]])],64)):s(`v-show-if`,!0),d._lazyshow3||y.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`]),[[C,y.value?.id===`vite-inspect`]])],64)):s(`v-show-if`,!0)])}}}),X=Object.assign(Y,{__name:`BuildAnalyzeDetails`}),Z={},Q={class:`markdown-body`};function $(t,n){return a(),h(`div`,Q,[...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 ee=w(Z,[[`render`,$]]),te={flex:`~ col`},ne=[`onClick`],re={flex:`~ gap-1 items-center wrap`,"w-full":``,"text-sm":``,op60:``},ie={flex:`~ items-center justify-center wrap`,p4:``},ae={flex:`~ col gap-1`,"w-250":``,p4:``},oe={flex:`~ gap-3`,mt2:``,"justify-end":``},se=n({__name:`analyze-build`,setup(n){let u=F(),y=O(),x=T(),C=j(`analyze-build:slug`,``),w=p(()=>y.value?.builds.find(e=>e.slug===C.value)??y.value?.builds[0]),z=t(!1),V=t(``),U=p(()=>y.value?.builds.some(e=>e.name===V.value.trim()));async function W(){V.value=await b.generateAnalyzeBuildName(),await u.start()&&(L(`analyze-build:start`),I.value={name:V.value,processId:await b.startAnalyzeBuild(await P(),V.value)},z.value&&q())}let G=_();function K(e){return`${((e.endTime-e.startTime)/1e3).toFixed(1)}s`}function q(){I.value?.processId&&(G.value=I.value.processId,x.push(`/modules/terminals`))}return N(()=>[{id:`action:analyze-build: start`,title:`Start a new analyze build`,icon:`i-carbon-edge-node`,action:W}]),(t,n)=>{let p=A,_=X,b=k,x=M,T=D,O=v,j=R,N=B,P=E,F=ee,L=H;return a(),h(c,null,[g(x,{"left-size":30},{left:l(()=>[f(`div`,te,[(a(!0),h(c,null,o(r(y)?.builds,e=>(a(),h(c,{key:e.slug},[f(`button`,{flex:`~ col gap1`,p3:``,"hover:bg-active":``,class:i(e.slug===w.value?.slug?`text-primary bg-active`:``),onClick:t=>C.value=e.slug},[f(`code`,null,m(e.name),1),f(`div`,re,[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(S)(new Date(e.endTime))),1)])],10,ne),n[6]||=f(`div`,{"x-divider":``},null,-1)],64))),128)),f(`div`,ie,[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(()=>[w.value?(a(),d(_,{key:0,current:w.value},null,8,[`current`])):(a(),d(b,{key:1}))]),_:1}),g(r(u),null,{default:l(({resolve:t})=>[g(P,{"model-value":!0,onClose:e=>t(!1)},{default:l(()=>[f(`div`,ae,[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(T,{modelValue:V.value,"onUpdate:modelValue":n[2]||=e=>V.value=e,placeholder:`Build name`},null,8,[`modelValue`]),U.value?(a(),d(O,{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(j,{code:`npx nuxi analyze --no-serve --name=${V.value}`,lang:`bash`,px4:``,py2:``,border:`~ base rounded`,lines:!1},null,8,[`code`]),g(N,{modelValue:z.value,"onUpdate:modelValue":n[3]||=e=>z.value=e,mt2:``,n:`primary`},{default:l(()=>[...n[10]||=[e(` Navigate to terminal `,-1)]]),_:1},8,[`modelValue`]),f(`div`,oe,[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(L,null,{default:l(()=>[g(F)]),_:1})],64)}}});export{se 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-ddj4xtqm.js";import"./vendor/shiki-kunkft64.js";import{$ as x,Gn as S,Gt as C,Ht as w,Mt as T,T as E,Ut as D,Wt as O,X as k,Xt as A,_ as j,an as M,c as N,in as P,j as F,k as I,on as L,ot as R,pt as z,q as B,qn as ee,s as V,sn as H,tn as U,v as te,y as W}from"#entry";import{t as G}from"./ndropdown-ef0253xr.js";import"./client-cbmkjf3j.js";import"./ncode-block-j2hcqwrp.js";import{t as K}from"./ndrawer-lh0r2gbb.js";import{t as q}from"./composables-g8w9dpc0.js";import{t as J}from"./ncheckbox-f4a8016e.js";import{t as ne}from"./filepath-item-osqp88cx.js";import{t as Y}from"./nnavbar-fdsyxwr6.js";import"./nicon-title-hrj2h1mn.js";import{t as re}from"./nsection-block-kp1wt3o4.js";import{t as X}from"./code-snippets-cgl6wpax.js";var ie={key:0,"h-full":``,"w-full":``,flex:``,"items-center":``,"justify-center":``},ae={for:`drop-zone-input`,"text-3xl":``,hover:`text-green cursor-pointer`,"transition-all":``},oe={key:1,relative:``,"h-full":``,"w-full":``,grid:`~ rows-[max-content_1fr_max-content]`},se={grid:`~ cols-minmax-8rem gap-8`,"overflow-auto":``,p6:``},ce={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,rounded:``,"rounded-t-lg":``,"bg-active":``,"object-cover":``,class:`aspect-1/1`,border:`~ base`},le=[`src`],ue={flex:`~ gap1`,"items-center":``},de={flex:`~ gap-2`,"items-center":``,"justify-center":``,p8:``},fe=n({__name:`AssetDropZone`,props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(n){let s=n,f=L(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(),T(e.dataTransfer.files)}function T(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===``&&k({message:`Folders are not supported yet`,icon:`carbon:face-dissatisfied`,classes:`text-orange`}),e.push(r);_.value=[..._.value,...e]}}async function E(){if(D.value||O.value)return;W(`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 w.writeStaticAssets(await B(),[...e],s.folder).then(()=>{R(),k({message:`Files uploaded successfully!`,icon:`i-carbon:checkmark`})}).catch(e=>{R(),k({message:`Error uploading files: ${e?.message??`unknown`}`,icon:`i-carbon-warning`,classes:`text-red`})}),f.value=!1}function A(e){_.value?.splice(e,1)}function j(e){return URL.createObjectURL(e)}function M(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 P(){_.value=[]}function R(){f.value=!1,P()}return U(`dragenter`,y),U(`dragleave`,x),U(`dragover`,S),U(`drop`,C),(t,n)=>{let s=I,g=F,y=N,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:R},null,512),[[x,`Close`,void 0,{"bottom-end":!0}]]),_.value?.length?(o(),v(`div`,oe,[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`,se,[(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`,ce,[h(`img`,{"h-full":``,"w-full":``,"rounded-t-lg":``,"object-cover":``,src:j(e)},null,8,le)]),h(`div`,ue,[b(y,{n:`xs`,"h-full":``,"flex-auto":``,"model-value":e.name,"onUpdate:modelValue":t=>M(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=>A(t)},null,8,[`onClick`])])]))),128))]),h(`div`,de,[_.value.length?(o(),m(s,{key:0,n:`red`,onClick:P},{default:d(()=>[b(g,{icon:`carbon-clean`}),n[2]||=e(` Clear `,-1)]),_:1})):l(``,!0),b(s,{disabled:!_.value.length,n:`primary solid`,onClick:E},{default:d(()=>[b(g,{icon:`carbon-cloud-upload`}),n[3]||=e(` Upload `,-1)]),_:1},8,[`disabled`])])])):(o(),v(`div`,ie,[h(`label`,ae,[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=>T(e.target.files)},null,32)]))],2)}}}),pe=Object.assign(fe,{__name:`AssetDropZone`}),me=n({__name:`AssetFontPreview`,props:{asset:{}},setup(e){let t=e,n=g(()=>`devtools-assets-${T(t.asset)}`);return P(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))}}),he=Object.assign(me,{__name:`AssetFontPreview`}),ge={flex:``,"items-center":``,"justify-center":``,"of-hidden":``,"bg-active":``,"object-cover":``,p1:``},_e=[`src`],ve={key:2,"i-carbon-document":``,"text-3xl":``,op20:``},ye={key:3,"w-full":``,"self-start":``,p4:``},be=[`textContent`],xe={key:4},Se=[`src`,`autoplay`,`controls`],Ce={key:5},we={key:0,"i-carbon-volume-up":``,"text-3xl":``,op20:``},Te=[`src`],Ee={key:6,"i-carbon-help":``,"text-3xl":``,op20:``},De=n({__name:`AssetPreview`,props:{asset:{},textContent:{},detail:{type:Boolean}},setup(e){return(t,n)=>{let r=he;return o(),v(`div`,ge,[e.asset.type===`image`?(o(),v(`img`,{key:0,src:e.asset.publicPath},null,8,_e)):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`,ve)):e.asset.type===`text`&&e.textContent?(o(),v(`div`,ye,[h(`pre`,{"max-h-10rem":``,"of-hidden":``,"text-xs":``,"font-mono":``,textContent:_(e.textContent)},null,8,be)])):e.asset.type===`video`?(o(),v(`div`,xe,[h(`video`,{src:e.asset.publicPath,autoplay:e.detail,controls:e.detail},null,8,Se)])):e.asset.type===`audio`?(o(),v(`div`,Ce,[e.detail?(o(),v(`audio`,{key:1,src:e.asset.publicPath,controls:``},null,8,Te)):(o(),v(`div`,we))])):(o(),v(`div`,Ee))])}}}),Z=Object.assign(De,{__name:`AssetPreview`}),Oe={relative:``,flex:`~ col gap-1`,hover:`bg-active`,"items-center":``,"of-hidden":``,rounded:``,p2:``},ke={"w-full":``,"of-hidden":``,truncate:``,"ws-nowrap":``,"text-center":``,"text-xs":``},Ae=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=F,a=Z;return o(),v(`button`,Oe,[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`,ke,_(n.value),1)])}}}),je=Object.assign(Ae,{__name:`AssetGridItem`}),Me=n({__name:`AssetListItem`,props:{item:{},index:{default:0},modelValue:{}},setup(n,{emit:i}){let d=n,p=L(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=F,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(Me,{__name:`AssetListItem`}),Ne={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Pe={flex:`~`,"items-center":``,"justify-center":``},Fe={"max-w-full":``,"w-full":``,"table-fixed":``},Ie={flex:`~ gap-1`,"w-full":``,"items-center":``},Le={flex:`~ gap-1`,"w-full":``,"items-center":``,"of-hidden":``},Re={"flex-auto":``,"of-hidden":``,truncate:``,"ws-pre":``,"font-mono":``},ze={capitalize:``},Be={key:0},Ve={op70:``},He={flex:`~ gap2 wrap`},Ue={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},We={flex:`~ gap2 wrap justify-center`},Ge={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p8:``},Ke={flex:`~ gap2 wrap justify-center`},qe={flex:`~ col gap-4`,"min-h-full":``,"w-full":``,"of-hidden":``,p4:``},Je={flex:``,"justify-end":``,"gap-4":``},$=n({__name:`AssetDetails`,props:{modelValue:{}},setup(n,{emit:a}){let s=L(n,`modelValue`,a,{passive:!0}),c=C(async()=>{if(s.value.type===`image`)return w.getImageMeta(await B(),s.value.filePath)}),f=t(!1),y=t(),x=t(0),T=C(async()=>{if(s.value.type!==`text`)return;x.value;let e=await w.getTextAssetContent(await B(),s.value.filePath);return y.value=e,e});async function D(){if(T.value!==y.value)try{await w.writeStaticAssets(await B(),[{path:s.value.path,content:y.value,override:!0}],``),f.value=!1,x.value++,k({message:`Updated`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),k({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let O=R(),A=g(()=>(O.value?._installedModules||[]).some(e=>e.meta?.name===`@nuxt/image`||e.meta?.name===`@nuxt/image-edge`||e.meta?.name===`@nuxt/image-nightly`)),P=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`}),A.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}),F=j(),z=te(),V=M(()=>s.value.mtime),H=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`}),U=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}`:``}),W=g(()=>[`image`,`text`,`video`,`audio`,`font`].includes(s.value.type)),G=t(!1);async function K(){try{await w.deleteStaticAsset(await B(),s.value.filePath),s.value=void 0,G.value=!1,k({message:`Asset deleted`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),k({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}let q=t(!1),J=t(``);async function Y(){let e=s.value.filePath.split(`/`),t=e.slice(-1)[0]?.split(`.`).slice(0,-1).join(`.`);if(!J.value||J.value===t)return k({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(`/`)}/${J.value}.${t}`;await w.renameStaticAsset(await B(),s.value.filePath,n),s.value=void 0,q.value=!1,k({message:`Asset renamed`,icon:`i-carbon-checkmark`,classes:`text-green`})}catch(e){console.error(e),k({message:`Something went wrong!`,icon:`i-carbon-warning`,classes:`text-red`})}}return(t,n)=>{let a=Z,g=ne,x=I,C=X,w=E,O=N,k=i(`tooltip`);return o(),v(u,null,[h(`div`,Ne,[W.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`,Pe,[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`,Fe,[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`,Ie,[b(g,{filepath:r(s).filePath,"text-left":``},null,8,[`filepath`]),p(b(x,{"flex-none":``,title:`Open in Editor`,icon:`carbon-launch`,border:!1,onClick:n[0]||=e=>r(z)(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`,Le,[h(`div`,Re,_(r(s).publicPath),1),p(b(x,{"flex-none":``,title:`Copy public path`,icon:`carbon-copy`,border:!1,onClick:n[1]||=e=>r(F)(r(s).publicPath,`assets-public-path`)},null,512),[[k,`Copy public path`]]),p(b(x,{"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`,ze,_(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)]),U.value?(o(),v(`tr`,Be,[n[18]||=h(`td`,{"w-30":``,"ws-nowrap":``,pr5:``,"text-right":``,op50:``},` Aspect Ratio `,-1),h(`td`,null,_(U.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,_(H.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`,Ve,`(`+_(r(V))+`)`,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`,He,[b(x,{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(x,{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(x,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:n[3]||=e=>q.value=!q.value},{default:d(()=>[...n[23]||=[e(` Rename `,-1)]]),_:1}),b(x,{icon:`carbon-delete`,n:`red`,onClick:n[4]||=e=>G.value=!G.value},{default:d(()=>[...n[24]||=[e(` Delete `,-1)]]),_:1})]),n[27]||=h(`div`,{"flex-auto":``},null,-1),P.value.length?(o(),m(C,{key:1,border:`t base`,"mx--4":``,"mb--4":``,"code-snippets":P.value},null,8,[`code-snippets`])):l(``,!0)]),b(w,{modelValue:G.value,"onUpdate:modelValue":n[6]||=e=>G.value=e},{default:d(()=>[h(`div`,Ue,[n[30]||=h(`span`,null,` Are you sure you want to delete this asset? `,-1),h(`div`,We,[b(x,{icon:`carbon-close`,onClick:n[5]||=e=>G.value=!1},{default:d(()=>[...n[28]||=[e(` Cancel `,-1)]]),_:1}),b(x,{icon:`carbon-delete`,n:`red`,onClick:K},{default:d(()=>[...n[29]||=[e(` Delete `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),b(w,{modelValue:q.value,"onUpdate:modelValue":n[9]||=e=>q.value=e},{default:d(()=>[h(`div`,Ge,[b(O,{modelValue:J.value,"onUpdate:modelValue":n[7]||=e=>J.value=e,placeholder:`New name`,n:`blue`},null,8,[`modelValue`]),h(`div`,Ke,[b(x,{icon:`carbon-close`,onClick:n[8]||=e=>q.value=!1},{default:d(()=>[...n[31]||=[e(` Cancel `,-1)]]),_:1}),b(x,{icon:`carbon-text-annotation-toggle`,n:`blue`,onClick:Y},{default:d(()=>[...n[32]||=[e(` Rename `,-1)]]),_:1})])])]),_:1},8,[`modelValue`]),r(s).type===`text`?(o(),m(w,{key:0,modelValue:f.value,"onUpdate:modelValue":n[12]||=e=>f.value=e},{default:d(()=>[h(`div`,qe,[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:ee(D,[`enter`])},null,544),[[S,y.value]]),h(`div`,Je,[b(x,{icon:`carbon-close`,onClick:n[11]||=e=>f.value=!1},{default:d(()=>[...n[33]||=[e(` Cancel `,-1)]]),_:1}),b(x,{icon:`carbon:save`,n:`primary`,onClick:D},{default:d(()=>[...n[34]||=[e(` save `,-1)]]),_:1})])])]),_:1},8,[`modelValue`])):l(``,!0)],64)}}}),Ye=Object.assign($,{__name:`AssetDetails`}),Xe={"h-full":``,"of-auto":``},Ze={"flex-none":``,flex:`~ gap2 items-center`,"text-lg":``},Qe={flex:`~ items-center justify-center`,absolute:``,"bottom--1":``,"right--1":``,"h-4":``,"w-4":``,"rounded-full":``,"bg-primary:30":``,"text-8px":``},$e={flex:`~ col`,"w-30":``,"of-auto":``},et={"text-xs":``,op75:``},tt={op50:``},nt={key:0},rt={"mt--4":``,px2:``,grid:`~ cols-minmax-8rem`},it={key:1,p2:``,grid:`~ cols-minmax-8rem`},at={key:1},ot=n({__name:`assets`,setup(e){let n=z(),a=t(!1),s=t(``),f=g(()=>new V(n.value||[],{keys:[`path`]})),y=H(()=>{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}),S=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)})),C=g(()=>{let e={};for(let t of S.value){let n=`${t.path.split(`/`).slice(0,-1).join(`/`)}/`;e[n]||(e[n]=[]),e[n].push(t)}return Object.entries(e).sort(([e],[t])=>e.localeCompare(t))}),w=g(()=>{let e={path:`public`,children:[]},t=(e,n,r)=>{let[i,...a]=n,o=e.children.find(e=>e.path===i);o||(o={...r,path:i,children:[]},e.children.push(o)),a.length>1?t(o,a,r):a.length===1&&o.children.push({...r,path:a[0]})};return S.value.forEach(n=>{t(e,n.path.split(`/`).filter(e=>e!==``),n)}),e.children}),T=t(),{view:E}=x(`assets`);function D(){E.value=E.value===`list`?`grid`:`list`}A(`Escape`,()=>{T.value=void 0});let O=t();return(e,t)=>{let f=I,g=J,x=G,k=Y,A=pe,j=je,M=re,N=Q,P=Ye,F=K,L=i(`tooltip`);return o(),v(`div`,Xe,[b(k,{ref_key:`navbar`,ref:O,search:s.value,"onUpdate:search":t[1]||=e=>s.value=e,pb2:``},{actions:d(()=>[h(`div`,Ze,[p(b(f,{icon:`carbon:cloud-upload`,title:`File Upload`,border:!1,onClick:t[0]||=e=>a.value=!a.value},null,512),[[L,`File Upload`,void 0,{"bottom-end":!0}]]),r(y).length?(o(),m(x,{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`]),[[L,`Filter`,void 0,{"bottom-end":!0}]]),h(`span`,Qe,_(r(y).length),1)]),default:d(()=>[h(`div`,$e,[(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`,et,_(e.name),1)]),_:2},1032,[`modelValue`,`onUpdate:modelValue`]))),128))])]),_:1})):l(``,!0),p(b(f,{"text-lg":``,border:!1,icon:r(E)===`grid`?`i-carbon-list`:`i-carbon-grid`,title:`Toggle view`,onClick:D},null,8,[`icon`]),[[L,`Toggle View`,void 0,{"bottom-end":!0}]])])]),default:d(()=>[h(`div`,tt,[s.value?(o(),v(`span`,nt,_(S.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},[C.value.length>1?(o(!0),v(u,{key:0},c(C.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`,rt,[(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`,it,[(o(!0),v(u,null,c(S.value,e=>(o(),m(j,{key:e.path,asset:e,onClick:t=>T.value=e},null,8,[`asset`,`onClick`]))),128))]))],64)):(o(),v(`div`,at,[(o(!0),v(u,null,c(w.value,(e,n)=>(o(),m(N,{key:n,modelValue:T.value,"onUpdate:modelValue":t[3]||=e=>T.value=e,item:e},null,8,[`modelValue`,`item`]))),128))])),b(F,{"model-value":!!T.value,"auto-close":``,"w-120":``,top:O.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{ot as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"aeb4c219-e4e8-40ef-9d2c-5e42c7648ec5","timestamp":1770865786064,"prerendered":[]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{Ct as e,E as t,V as n,W as r,g as i,m as a}from"./vendor/json-editor-vue-ddj4xtqm.js";import{Zt as o}from"#entry";import{t as s}from"./ncode-block-j2hcqwrp.js";var c=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}};new class extends c{};function l(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function u(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function d(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function f(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function p(e,t){return d(e,t,``)}function m(e,t){return f(e,t,``)}function h(e,t){return t.slice(0,g(e,t))}function g(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _(e){let t;for(t=e.length-1;t>=0&&e[t].match(/\s/);t--);return e.substring(t+1)}function v(e){let t=e.match(/^\s*/);return t?t[0]:``}var y=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,b=RegExp(`[${y}]+|\\s+|[^${y}]`,`ug`);new class extends c{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=[];for(let t of Array.from(r.segment(e))){let e=t.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}}else n=e.match(b)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&x(n,i,r,e),n=e,r=null,i=null)}),(r||i)&&x(n,i,r,null),e}};function x(e,t,n,r){if(t&&n){let i=v(t.value),a=_(t.value),o=v(n.value),s=_(n.value);if(e){let r=l(i,o);e.value=f(e.value,o,r),t.value=p(t.value,r),n.value=p(n.value,r)}if(r){let e=u(a,s);r.value=d(r.value,s,e),t.value=m(t.value,e),n.value=m(n.value,e)}}else if(n){if(e){let e=v(n.value);n.value=n.value.substring(e.length)}if(r){let e=v(r.value);r.value=r.value.substring(e.length)}}else if(e&&r){let n=v(r.value),i=v(t.value),a=_(t.value),o=l(n,i);t.value=p(t.value,o);let s=u(p(n,o),a);t.value=m(t.value,s),r.value=d(r.value,n,s),e.value=f(e.value,n,n.slice(0,n.length-s.length))}else if(r){let e=v(r.value),n=h(_(t.value),e);t.value=m(t.value,n)}else if(e){let n=h(_(e.value),v(t.value));t.value=p(t.value,n)}}new class extends c{tokenize(e){let t=RegExp(`(\\r?\\n)|[${y}]+|[^\\S\\n\\r]+|[^${y}]`,`ug`);return e.match(t)||[]}};const S=new class extends c{constructor(){super(...arguments),this.tokenize=w}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
|
|
2
|
-
`))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
|
|
3
|
-
`))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
|
|
4
|
-
`)&&(e=e.slice(0,-1)),t.endsWith(`
|
|
5
|
-
`)&&(t=t.slice(0,-1))),super.equals(e,t,n)}};function C(e,t,n){return S.diff(e,t,n)}function w(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
6
|
-
`));let n=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(let e=0;e<r.length;e++){let i=r[e];e%2&&!t.newlineIsToken?n[n.length-1]+=i:n.push(i)}return n}function T(e){return e==`.`||e==`!`||e==`?`}new class extends c{tokenize(e){let t=[],n=0;for(let r=0;r<e.length;r++){if(r==e.length-1){t.push(e.slice(n));break}if(T(e[r])&&e[r+1].match(/\s/)){for(t.push(e.slice(n,r+1)),r=n=r+1;e[r+1]?.match(/\s/);)r++;t.push(e.slice(n,r+1)),n=r+1}}return t}},new class extends c{tokenize(e){return e.split(/([{}:;,]|\s+)/)}},new class extends c{constructor(){super(...arguments),this.tokenize=w}get useLongestToken(){return!0}castInput(e,t){let{undefinedReplacement:n,stringifyReplacer:r=(e,t)=>t===void 0?n:t}=t;return typeof e==`string`?e:JSON.stringify(E(e,null,null,r),null,` `)}equals(e,t,n){return super.equals(e.replace(/,([\r\n])/g,`$1`),t.replace(/,([\r\n])/g,`$1`),n)}};function E(e,t,n,r,i){t||=[],n||=[],r&&(e=r(i===void 0?``:i,e));let a;for(a=0;a<t.length;a+=1)if(t[a]===e)return n[a];let o;if(Object.prototype.toString.call(e)===`[object Array]`){for(t.push(e),o=Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=E(e[a],t,n,r,String(a));return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),typeof e==`object`&&e){t.push(e),o={},n.push(o);let i=[],s;for(s in e)Object.prototype.hasOwnProperty.call(e,s)&&i.push(s);for(i.sort(),a=0;a<i.length;a+=1)s=i[a],o[s]=E(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}new class extends c{tokenize(e){return e.slice()}join(e){return e}removeEmpty(e){return e}};var D=t({__name:`CodeDiff`,props:{from:{},to:{},lang:{}},setup(t){let c=t;function l(e,t){let n=C(e.trim(),t.trim()),r=[],i=[],a=[];for(let e of n){let t=e.value.trimEnd().split(`
|
|
7
|
-
`);for(let n of t)e.added?(r.push(a.length),a.push(n)):(e.removed&&i.push(a.length),a.push(n))}return{added:r,removed:i,result:a.join(`
|
|
8
|
-
`)}}let u=a(()=>l(c.from,c.to));function d(e){let t=0;return e.replace(/class="shiki/,`class="shiki diff`).replace(/class="line"/g,e=>(t++,u.value.added.includes(t-1)?`class="line line-added"`:u.value.removed.includes(t-1)?`class="line line-removed"`:e))}let f=e();n(p);function p(){let e=o(f);e&&e.querySelector(`.line-added,.line-removed`)?.scrollIntoView()}return(e,n)=>{let a=s;return r(),i(a,{ref_key:`elRef`,ref:f,code:u.value.result,lang:t.lang,"transform-rendered":d,onLoaded:p},null,8,[`code`,`lang`])}}}),O=Object.assign(D,{__name:`CodeDiff`});export{O as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,E as t,Et as n,Mt as r,Qt as i,W as a,Y as o,_ as s,c,dt as l,g as u,h as d,lt as f,m as p,tn as m,v as h,w as g}from"./vendor/json-editor-vue-ddj4xtqm.js";import{_,k as v}from"#entry";import{t as y}from"./ncode-block-j2hcqwrp.js";var b={key:0,relative:``,"n-code-block":``},x={flex:`~ wrap`,"w-full":``},S=[`onClick`],C={flex:`~ gap-2`,px3:``,pb3:``,n:`sm primary`},w=t({__name:`CodeSnippets`,props:{codeSnippets:{},eventType:{}},setup(t){let w=t,T=n(w.codeSnippets[0]),E=_(),D=p(()=>T.value?.lang||`text`);return f(()=>{w.codeSnippets.includes(T.value)||(T.value=w.codeSnippets[0])}),(n,f)=>{let p=y,_=v;return t.codeSnippets.length?(a(),h(`div`,b,[d(`div`,x,[(a(!0),h(c,null,o(t.codeSnippets,(e,t)=>(a(),h(`button`,{key:t,px4:``,py2:``,border:`r base`,hover:`bg-active`,class:i(e===T.value?``:`border-b`),onClick:t=>T.value=e},[d(`div`,{class:i(e===T.value?``:`op30`),"font-mono":``},m(e.name),3)],10,S))),128)),f[1]||=d(`div`,{border:`b base`,"flex-auto":``},null,-1)]),T.value?(a(),h(c,{key:0},[g(p,{code:T.value.code,lang:D.value,lines:!1,"w-full":``,"of-auto":``,p3:``},null,8,[`code`,`lang`]),d(`div`,C,[g(_,{icon:`carbon-copy`,onClick:f[0]||=e=>r(E)(T.value.code,t.eventType||`code-snippet-${T.value.name}`)},{default:l(()=>[...f[2]||=[e(` Copy `,-1)]]),_:1}),T.value?.docs?(a(),u(_,{key:0,to:T.value.docs,target:`_blank`,icon:`carbon-catalog`},{default:l(()=>[...f[3]||=[e(` Docs `,-1)]]),_:1},8,[`to`])):s(``,!0)])],64)):s(``,!0)])):s(``,!0)}}}),T=Object.assign(w,{__name:`CodeSnippets`});export{T as t};
|