@vitejs/devtools-vite 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nitro.json +2 -2
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/B3GmGsvS.js +2 -0
- package/dist/public/_nuxt/BLk_1fgY.js +2 -0
- package/dist/public/_nuxt/{DSAFJh4r.js → BSA6CAE7.js} +1 -1
- package/dist/public/_nuxt/{B_NKCZsG.js → BVkpMuj6.js} +2 -2
- package/dist/public/_nuxt/B_A1QLnD.js +2 -0
- package/dist/public/_nuxt/{BRJBCNrs.js → CHUoBDpr.js} +1 -1
- package/dist/public/_nuxt/{Dp2A4F6Z.js → CVBNQmjt.js} +1 -1
- package/dist/public/_nuxt/DCCrCahI.js +1 -0
- package/dist/public/_nuxt/DEDqDK_N.js +1 -0
- package/dist/public/_nuxt/{Ct3C12NP.js → DlHVZk4i.js} +3 -3
- package/dist/public/_nuxt/XWR6704C.js +3 -0
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/353ae1e1-0f77-43f8-a07a-213b59688840.json +1 -0
- package/dist/public/_nuxt/entry.BLPAWyRl.css +1 -0
- package/dist/public/_nuxt/error-404.DCvQKNMV.css +1 -0
- package/dist/public/_nuxt/error-500.CBZl5Xes.css +1 -0
- package/dist/public/_nuxt/{filepath.CX8PXv9n.css → filepath.DjcvQMuT.css} +1 -1
- package/dist/public/_nuxt/hdrrmwhp.js +1 -0
- package/dist/public/index.html +1 -1
- package/package.json +4 -5
- package/dist/public/_nuxt/BG--lX9h.js +0 -2
- package/dist/public/_nuxt/BG3xwZh0.js +0 -3
- package/dist/public/_nuxt/BHvJDY_a.js +0 -1
- package/dist/public/_nuxt/B_-pr0hI.js +0 -1
- package/dist/public/_nuxt/CEBMiqg6.js +0 -1
- package/dist/public/_nuxt/DEyNBz-F.js +0 -2
- package/dist/public/_nuxt/builds/meta/13f74333-301c-46d6-87fb-e1b6264a3189.json +0 -1
- package/dist/public/_nuxt/entry.bKphV1Y3.css +0 -1
- package/dist/public/_nuxt/error-404.BtjbGiHS.css +0 -1
- package/dist/public/_nuxt/error-500.DqJ9a5ig.css +0 -1
- package/dist/public/_nuxt/n6SbU7pj.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$ as e,At as t,Bt as n,Ct as r,D as i,E as a,Ft as o,Ht as s,I as c,It as l,Jt as u,Lt as d,Mt as f,N as p,Nt as m,Ot as h,Pt as g,Rt as _,Ut as v,Vt as y,W as ee,a as b,b as x,bt as te,h as S,i as C,jt as w,kt as T,m as ne,o as re,q as ie,u as ae,x as E,zt as oe}from"./XWR6704C.js";import{C as se,D as ce,N as le,O as ue,S as de,_ as fe,c as pe,d as D,h as me,j as he,l as ge,s as _e,v as O}from"./B3GmGsvS.js";var ve=void 0,ye=typeof window<`u`&&window.trustedTypes;if(ye)try{ve=ye.createPolicy(`vue`,{createHTML:e=>e})}catch{}var be=ve?e=>ve.createHTML(e):e=>e,xe=`http://www.w3.org/2000/svg`,Se=`http://www.w3.org/1998/Math/MathML`,k=typeof document<`u`?document:null,Ce=k&&k.createElement(`template`),we={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?k.createElementNS(xe,e):t===`mathml`?k.createElementNS(Se,e):n?k.createElement(e,{is:n}):k.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>k.createTextNode(e),createComment:e=>k.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>k.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Ce.innerHTML=be(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ce.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},A=`transition`,j=`animation`,M=Symbol(`_vtc`),Te={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ee=w({},S,Te),De=(e=>(e.displayName=`Transition`,e.props=Ee,e))((e,{slots:t})=>c(ne,ke(e),t)),N=(e,t=[])=>{o(e)?e.forEach(e=>e(...t)):e&&e(...t)},Oe=e=>e?o(e)?e.some(e=>e.length>1):e.length>1:!1;function ke(e){let t={};for(let n in e)n in Te||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ae(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:ee,onLeaveCancelled:b,onBeforeAppear:x=_,onAppear:te=v,onAppearCancelled:S=y}=t,C=(e,t,n,r)=>{e._enterCancelled=r,F(e,t?u:s),F(e,t?l:o),n&&n()},T=(e,t)=>{e._isLeaving=!1,F(e,d),F(e,p),F(e,f),t&&t()},ne=e=>(t,n)=>{let i=e?te:v,o=()=>C(t,e,n);N(i,[t,o]),Me(()=>{F(t,e?c:a),P(t,e?u:s),Oe(i)||Pe(t,r,h,o)})};return w(t,{onBeforeEnter(e){N(_,[e]),P(e,a),P(e,o)},onBeforeAppear(e){N(x,[e]),P(e,c),P(e,l)},onEnter:ne(!1),onAppear:ne(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>T(e,t);P(e,d),e._enterCancelled?(P(e,f),Re(e)):(Re(e),P(e,f)),Me(()=>{e._isLeaving&&(F(e,d),P(e,p),Oe(ee)||Pe(e,r,g,n))}),N(ee,[e,n])},onEnterCancelled(e){C(e,!1,void 0,!0),N(y,[e])},onAppearCancelled(e){C(e,!0,void 0,!0),N(S,[e])},onLeaveCancelled(e){T(e),N(b,[e])}})}function Ae(e){if(e==null)return null;if(_(e))return[je(e.enter),je(e.leave)];{let t=je(e);return[t,t]}}function je(e){return u(e)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[M]||(e[M]=new Set)).add(t)}function F(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[M];n&&(n.delete(t),n.size||(e[M]=void 0))}function Me(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ne=0;function Pe(e,t,n,r){let i=e._endId=++Ne,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Fe(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Fe(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${A}Delay`),a=r(`${A}Duration`),o=Ie(i,a),s=r(`${j}Delay`),c=r(`${j}Duration`),l=Ie(s,c),u=null,d=0,f=0;t===A?o>0&&(u=A,d=o,f=a.length):t===j?l>0&&(u=j,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?A:j:null,f=u?u===A?a.length:c.length:0);let p=u===A&&/\b(?:transform|all)(?:,|$)/.test(r(`${A}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ie(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Le(t)+Le(e[n])))}function Le(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Re(e){return(e?e.ownerDocument:document).body.offsetHeight}function ze(e,t,n){let r=e[M];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var I=Symbol(`_vod`),Be=Symbol(`_vsh`),Ve={name:`show`,beforeMount(e,{value:t},{transition:n}){e[I]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):L(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),L(e,!0),r.enter(e)):r.leave(e,()=>{L(e,!1)}):L(e,t))},beforeUnmount(e,{value:t}){L(e,t)}};function L(e,t){e.style.display=t?e[I]:`none`,e[Be]=!t}var He=Symbol(``),Ue=/(?:^|;)\s*display\s*:/;function We(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??z(r,t,``)}else for(let e in t)n[e]??z(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?z(r,i,``):qe(e,i,!y(t)&&t?t[i]:void 0,o)||z(r,i,o)}}else if(i){if(t!==n){let e=r[He];e&&(n+=`;`+e),r.cssText=n,a=Ue.test(n)}}else t&&e.removeAttribute(`style`);I in e&&(i&&t===n||(e[I]=a?r.display:``),e[Be]&&(r.display=`none`))}var R=/\s*!important$/;function z(e,t,n){if(o(n))n.forEach(n=>z(e,t,n));else if(n??=``,t.startsWith(`--`))R.test(n)?e.setProperty(t,n.replace(R,``),`important`):e.setProperty(t,n);else{let r=Ke(e,t);R.test(n)?e.setProperty(f(r),n.replace(R,``),`important`):e[r]=n}}var Ge=[`Webkit`,`Moz`,`ms`],B={};function Ke(e,n){let r=B[n];if(r)return r;let i=T(n);if(i!==`filter`&&i in e)return B[n]=i;i=t(i);for(let t=0;t<Ge.length;t++){let r=Ge[t]+i;if(r in e)return B[n]=r}return n}function qe(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var Je=`http://www.w3.org/1999/xlink`;function Ye(e,t,r,i,a,o=n(t)){i&&t.startsWith(`xlink:`)?r==null?e.removeAttributeNS(Je,t.slice(6,t.length)):e.setAttributeNS(Je,t,r):r==null||o&&!m(r)?e.removeAttribute(t):e.setAttribute(t,o?``:s(r)?String(r):r)}function Xe(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?be(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);r===i&&`_value`in e||(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=m(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function V(e,t,n,r){e.addEventListener(t,n,r)}function Ze(e,t,n,r){e.removeEventListener(t,n,r)}var Qe=Symbol(`_vei`);function $e(e,t,n,r,i=null){let a=e[Qe]||(e[Qe]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=nt(t);r?V(e,n,a[t]=ot(r,i),s):o&&(Ze(e,n,o,s),a[t]=void 0)}}var et=/(Once|Passive|Capture)$/,tt=/^on:?(?:Once|Passive|Capture)$/;function nt(e){let t,n;for(;(n=e.match(et))&&!tt.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):f(e.slice(2)),t]}var rt=0,it=Promise.resolve(),at=()=>rt||=(it.then(()=>rt=0),Date.now());function ot(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(o(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&x(e,t,5,a)}}else x(r,t,5,[e])};return n.value=e,n.attached=at(),n}var st=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ct=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?ze(e,r,o):t===`style`?We(e,n,r):oe(t)?d(t)||$e(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):lt(e,t,r,o))?(Xe(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||Ye(e,t,r,o,a,t!==`value`)):e._isVueCE&&(ut(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?Xe(e,T(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ye(e,t,r,o))};function lt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&st(t)&&l(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return st(t)&&y(n)?!1:t in e}function ut(e,t){let n=e._def.props;if(!n)return!1;let r=T(t);return Array.isArray(n)?n.some(e=>T(e)===r):Object.keys(n).some(e=>T(e)===r)}var dt=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return o(t)?e=>g(t,e):t};function ft(e){e.target.composing=!0}function pt(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var H=Symbol(`_assign`),U=Symbol(`_initialValue`);function mt(e,t,n){return t&&(e=e.trim()),n&&(e=v(e)),e}var ht={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[U]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[U]=e.defaultValue.replace(/\r\n?/g,`
|
|
2
|
+
`))),e[H]=dt(i);let a=r||i.props&&i.props.type===`number`;V(e,t?`change`:`input`,t=>{t.target.composing||e[H](mt(e.value,n,a))}),(n||a)&&V(e,`change`,()=>{e.value=mt(e.value,n,a)}),t||(V(e,`compositionstart`,ft),V(e,`compositionend`,pt),V(e,`change`,pt))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[U];delete e[U],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[H](mt(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[H]=dt(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?v(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},gt=[`ctrl`,`shift`,`alt`,`meta`],_t={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>gt.some(n=>e[`${n}Key`]&&!t.includes(n))},vt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=_t[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},yt=w({patchProp:ct},we),W,bt=!1;function xt(){return W||=i(yt)}function St(){return W=bt?W:a(yt),bt=!0,W}var Ct=((...e)=>{let t=xt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Et(e);if(!r)return;let i=t._component;l(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Tt(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),wt=((...e)=>{let t=St().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Et(e);if(t)return n(t,!0,Tt(t))},t});function Tt(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Et(e){return y(e)?document.querySelector(e):e}var Dt=e=>e.startsWith(`/`);function Ot(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function kt(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Ot(e.default)}var At=Object.assign;function jt(e,t){let n={};for(let r in t){let i=t[r];n[r]=G(i)?i.map(e):e(i)}return n}var Mt=()=>{},G=Array.isArray;function Nt(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Pt=Symbol(``),Ft=function(e){return e[e.aborted=4]=`aborted`,e[e.cancelled=8]=`cancelled`,e[e.duplicated=16]=`duplicated`,e}({});function K(e,t){return At(Error(),{type:e,[Pt]:!0},t)}function It(e,t){return e instanceof Error&&Pt in e&&(t==null||!!(e.type&t))}var Lt=Symbol(``),Rt=Symbol(``),zt=Symbol(``),Bt=Symbol(``),Vt=Symbol(``),Ht=Symbol(``),Ut=typeof document<`u`,Wt=/#/g,Gt=/&/g,Kt=/\//g,qt=/=/g,Jt=/\?/g,Yt=/\+/g,Xt=/%5B/g,Zt=/%5D/g,Qt=/%5E/g,$t=/%60/g,en=/%7B/g,tn=/%7C/g,nn=/%7D/g,rn=/%20/g;function q(e){return e==null?``:encodeURI(``+e).replace(tn,`|`).replace(Xt,`[`).replace(Zt,`]`)}function an(e){return q(e).replace(en,`{`).replace(nn,`}`).replace(Qt,`^`)}function J(e){return q(e).replace(Yt,`%2B`).replace(rn,`+`).replace(Wt,`%23`).replace(Gt,`%26`).replace($t,"`").replace(en,`{`).replace(nn,`}`).replace(Qt,`^`)}function on(e){return J(e).replace(qt,`%3D`)}function sn(e){return q(e).replace(Wt,`%23`).replace(Jt,`%3F`)}function cn(e){return sn(e).replace(Kt,`%2F`)}function Y(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ln=/\/$/,un=e=>e.replace(ln,``);function dn(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=vn(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Y(o)}}function fn(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function pn(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function mn(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&X(t.matched[r],n.matched[i])&&hn(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function X(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function hn(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!gn(e[n],t[n]))return!1;return!0}function gn(e,t){return G(e)?_n(e,t):G(t)?_n(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function _n(e,t){return G(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function vn(e,t){if(Dt(e))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 yn={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function bn(e){if(!e){if(Ut){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),un(e)}var xn=/^[^#]+#/;function Sn(e,t){return e.replace(xn,`#`)+t}function Cn(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 wn=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function Tn(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=Cn(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 En(e,t){return(history.state?history.state.position-t:-1)+e}var Z=new Map;function Dn(e){Z.set(e,wn())}function On(e){let t=Z.get(e);return Z.delete(e),t}function kn(e,t=!1){for(let n of Z.keys()){let r=parseInt(n,10);(r===e||!t&&r>e)&&Z.delete(n)}}function An(e){return typeof e==`string`||e&&typeof e==`object`}function jn(e){return typeof e==`string`||typeof e==`symbol`}function Mn(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(Yt,` `),i=r.indexOf(`=`),a=Y(i<0?r:r.slice(0,i)),o=i<0?null:Y(r.slice(i+1));if(a in t){let e=t[a];G(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Nn(e){let t=``;for(let n in e){let r=e[n];n=on(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(G(r)?r.map(e=>e&&J(e)):[r&&J(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Pn(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=G(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Fn(){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 In(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(K(4,{from:n,to:t})):e instanceof Error?c(e):An(e)?c(K(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Ln(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(Ot(s)){let c=(s.__vccOpts||s)[t];c&&a.push(In(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=kt(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&In(c,n,r,o,e,i)()}))}}}return a}function Rn(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=>X(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>X(e,s))||i.push(s))}return[n,r,i]}var zn=(e,t)=>({default:()=>e?c(De,e===!0?{}:e,t):t.default?.()}),Bn=/(:\w+)\([^)]+\)/g,Vn=/(:\w+)[?+*]/g,Hn=/:\w+/g;function Un(e){let t=e?.meta.key??e.path.replace(Bn,`$1`).replace(Vn,`$1`).replace(Hn,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Wn(e,t){return e===t||t===yn?!1:Un(e)!==Un(t)||!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default)}function Gn(e){return Array.isArray(e)?e:[e]}function Kn(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Gn(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Gn(n.onBeforeLeave):void 0});return de(...t)}function qn(e){e[`~transitionPromise`]||=new Promise(t=>{e[`~transitionFinish`]=t})}function Jn(e){e[`~transitionFinish`]?.(),delete e[`~transitionFinish`],delete e[`~transitionPromise`]}var Yn={scrollBehavior(e,t,n){let r=b(),i=D(),a=i.options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?n??{left:0,top:0}:e.hash?{el:e.hash,top:Xn(e.hash),behavior:a}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===yn?Zn(e,t,n,a):new Promise(o=>{let s=()=>{requestAnimationFrame(()=>{i.currentRoute.value.fullPath===e.fullPath?o(Zn(e,t,n,a)):o(!1)})};r.hooks.hookOnce(`page:loading:end`,()=>{let e=r[`~transitionPromise`];e?e.then(s):s()})})}};function Xn(e){let t=document.getElementById(e.slice(1));return t?(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0):0}function Zn(e,t,n,r){return n||(e.hash?{el:e.hash,top:Xn(e.hash),behavior:Wn(e,t)?r:`instant`}:{left:0,top:0})}var Qn={hashMode:!1,scrollBehaviorType:`auto`,sensitive:!1,...Yn},Q=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),$n=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),er=e=>{let t=b();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{Q(()=>e())}):Q(()=>e())},tr=/2g/;function nr(){let e=navigator.connection;return!e||!e.saveData&&!tr.test(e.effectiveType||``)}function rr(e){let{pathname:t,search:n}=new URL(e,window.location.href);return t+n}function ir(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}function ar(e){return Promise.all(e.map(e=>{let t=e.components?.default;return typeof t==`function`?Promise.resolve(t()).catch(()=>{}):void 0}))}function or(e,t){let{fullPath:n,path:r,matched:i}=t.resolve(e);if(!i.length)return;let a=C()?._prefetch;a?a.schedule({key:`route:${r}`,priority:`route`,scope:`navigation`,group:rr(n),run:e=>e.aborted?void 0:ar(i)}):ar(i)}var sr=(...e)=>e.find(e=>e!==void 0);function cr(t){let n=t.componentName||`NuxtLink`;function i(e){return typeof e==`string`&&e.startsWith(`#`)}function a(e,n,r){let i=r??t.trailingSlash;if(!e||i!==`append`&&i!==`remove`)return e;if(typeof e==`string`)return $(e,i);let a=`path`in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:$(a,i)}}function o(e){let n=D(),r=re(),o=n.options?.history?.createHref??(e=>ce(r.app.baseURL,e)),s=E(()=>!!h(e.target)&&h(e.target)!==`_self`),c=E(()=>{let t=h(e.to)||h(e.href)||``;return typeof t==`string`&&me(t)}),l=E(()=>{if(h(e.external))return!0;let t=h(e.to)||h(e.href)||``;return typeof t==`object`?!1:t===``||c.value}),u=E(()=>{let t=h(e.to)||h(e.href)||``;return l.value?t:a(t,n.resolve,h(e.trailingSlash))}),d=E(()=>{let r=h(e.trailingSlash)??t.trailingSlash;if(!u.value||c.value||i(u.value)){let e=u.value;return typeof e==`string`?O(e):e}if(l.value){let e=typeof u.value==`object`&&`path`in u.value?ge(u.value):u.value,t=typeof e==`object`?n.resolve(e).href:e,i=typeof t==`string`?O(t):t;return i===null?null:$(i,r)}return typeof u.value==`object`?n.resolve(u.value)?.href??null:$(fe(u.value)?o(u.value):n.resolve(u.value).href,r)});return{to:u,hasTarget:s,isAbsoluteUrl:c,isExternal:l,href:d,async navigate(t){d.value!==null&&await pe(d.value,{replace:h(e.replace),external:l.value||s.value})}}}function s(t){let n=D(),r=o(t),i=e(`RouterLink`),a=i&&typeof i!=`string`?i.useLink:void 0,s=r.isExternal.value?void 0:a?.({...t,to:r.to,viewTransition:h(t.viewTransition)});return{...r,isActive:s?.isActive??E(()=>r.to.value===n.currentRoute.value.path),isExactActive:s?.isExactActive??E(()=>r.to.value===n.currentRoute.value.path),route:s?.route??E(()=>n.resolve(r.to.value))}}return p({name:n,props:{to:{type:[String,Object],required:!1},href:{type:[String,Object],required:!1},target:{type:String,required:!1},rel:{type:String,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},prefetchedClass:{type:String,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,required:!1}},useLink:s,setup(n,{slots:a}){let s=D(),l=e(`RouterLink`),{to:u,href:d,navigate:f,isExternal:p,hasTarget:m,isAbsoluteUrl:h}=o(n),g=r(!1),_=te(null),v=e=>{_.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function y(e){return typeof n.prefetchOn==`string`?n.prefetchOn===e:n.prefetchOn?.[e]??t.prefetchOn?.[e]}function x(){return!!((n.prefetch??t.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&nr())}function S(e){return!!(!g.value&&y(e)&&x())}function C(){let e=typeof u.value==`string`?u.value:p.value?ge(u.value):s.resolve(u.value).fullPath;return p.value?new URL(e,window.location.href).href:e}function w(){g.value?p.value||b()._prefetch?.promote(rr(C())):y(`interaction`)&&T()}async function T(e=b()){if(g.value||d.value===null)return;g.value=!0;let t=C();await Promise.all([e.hooks.callHook(`link:prefetch`,t)?.catch(()=>{}),!p.value&&!m.value&&or(u.value,s)])}if(!n.custom&&S(`visibility`)){let e=b(),t,n=null;ie(()=>{let r=ur();er(()=>{t=Q(()=>{_?.value?.tagName&&(n=r.observe(_.value,async()=>{n?.(),n=null,await T(e)}))})})}),ee(()=>{t&&$n(t),n?.(),n=null})}return()=>{let e=n.target||null,r=sr(n.noRel?``:n.rel,t.externalRelAttribute,h.value||m.value?`noopener noreferrer`:``)||null,o=t=>({navigate:f,get route(){if(!d.value)return;let e=new URL(d.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return ue(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:d.value}},rel:r,target:e,isExternal:p.value||m.value,isActive:!1,isExactActive:!1,...t,href:typeof t?.href==`string`?O(t.href):d.value,prefetch:T,prefetched:g.value,shouldPrefetch:S});if(!p.value&&!m.value&&!i(u.value)){let e={ref:v,to:u.value,activeClass:n.activeClass||t.activeClass,exactActiveClass:n.exactActiveClass||t.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};return n.custom||((y(`interaction`)||g.value)&&x()&&(e.onPointerenter=w,e.onFocus=w,e.onPointerdown=w),g.value&&(e.class=n.prefetchedClass||t.prefetchedClass),e.rel=n.rel||void 0),c(l,e,n.custom&&a.default?{default:e=>a.default(o(e))}:a.default)}return n.custom?a.default?a.default(o()):null:c(`a`,{ref:_,href:d.value||null,rel:r,target:e,onClick:async e=>{if(!(p.value||m.value)){e.preventDefault();try{let e=_e(d.value??``);return await(n.replace?s.replace(e):s.push(e))}finally{if(i(u.value)){let e=u.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},a.default?.())}}})}var lr=cr(ae);function $(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?he:le;return se(e)&&!e.startsWith(`http`)?e:n(e,!0)}function ur(){let e=b();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}export{Vt as $,X as A,Fn as B,En as C,jn as D,Ut as E,Dn as F,Dt as G,jt as H,Tn as I,Lt as J,G as K,Nn as L,Pn as M,Mn as N,mn as O,dn as P,zt as Q,fn as R,On as S,kn as T,At as U,Ft as V,K as W,Mt as X,Nt as Y,Bt as Z,Y as _,nr as a,ht as at,Rn as b,Q as c,Kn as d,Ht as et,qn as f,Sn as g,wn as h,or as i,wt as it,bn as j,hn as k,Qn as l,yn as m,ur as n,De as nt,rr as o,Ve as ot,zn as p,It as q,ir as r,Ct as rt,er as s,vt as st,lr as t,Rt as tt,Jn as u,an as v,In as w,Ln as x,cn as y,pn as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,L as t,R as n,d as r,i,k as a,n as o,o as s,u as c,x as l,z as u}from"./Ct3C12NP.js";import{D as d,E as f,O as p,S as m,T as h,_ as g,a as _,b as v,c as y,d as ee,f as b,g as x,h as S,k as C,l as te,m as w,n as T,o as E,r as ne,s as D,t as re,u as O,v as k,x as ie}from"./DSAFJh4r.js";import{A,C as j,Ct as M,H as N,J as P,Kt as F,N as I,Ot as L,Q as R,S as z,T as B,Wt as V,Y as H,Z as U,bt as W,ct as ae,et as oe,g as G,j as K,lt as q,ot as se,q as ce,qt as J,st as Y,ut as le,vt as ue,w as X,x as Z}from"./BG3xwZh0.js";import{n as Q,r as de}from"#entry";import{t as fe}from"./BDNMzG2s.js";import{nt as pe,t as me}from"./DEyNBz-F.js";import{f as he,p as ge}from"./CEBMiqg6.js";var $=I({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let t=e,n=Z(()=>t.format===`percent`?Number(t.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(t.number).toLocaleString());return(t,r)=>(H(),B(`div`,{class:V([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(H(),B(`div`,{key:0,class:V([e.icon,`mr-1`])},null,2)):X(``,!0),A(` `+J(e.prefix||``)+J(n.value)+J(e.suffix||``)+` `,1),R(t.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=I({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(H(),B(`span`,_e,[K($,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=z(`span`,{class:`op40`},`|`,-1),K($,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=z(`span`,{class:`op40`},`|`,-1),K(S,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${L(g)(e.duration,!0)}`},{default:q(()=>[...n[0]||=[z(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`])]))}}),ye={class:`flex flex-col h-full min-h-0`},be={class:`select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col`,style:{"scrollbar-gutter":`stable`}},xe={class:`flex`},Se={class:`flex items-center justify-center relative w-60 h14`},Ce={class:`op50 text-xs flex items-center justify-center gap-1 h6`},we=[`datetime`],Te={class:`flex items-center justify-center relative w-60 h14`},Ee={class:`op50 text-xs flex items-center justify-center gap-1 h6`},De=[`datetime`],Oe=Object.assign(I({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let t=e;function n(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let r=Z(()=>n(t.buildMetrics.resolveIdMetrics)),i=Z(()=>n(t.buildMetrics.loadMetrics)),a=Z(()=>n(t.buildMetrics.transformMetrics)),o=Z(()=>{let e=t.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),s=Z(()=>{let e=t.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(t,n)=>{let c=O,l=ve;return H(),B(`div`,ye,[R(t.$slots,`header`),z(`div`,be,[z(`div`,xe,[K(c,{active:!1,"class-node-inner":`w60`},{content:q(()=>[z(`div`,{class:`p2 w-full text-center`,onClick:n[0]||=e=>L(b).pluginDetailSelectedHook=``},[K(w,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),z(`div`,Se,[n[5]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),n[6]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),z(`span`,Ce,[n[4]||=z(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),o.value?(H(),B(`time`,{key:0,datetime:new Date(o.value).toISOString()},J(new Date(o.value).toLocaleString()),9,we)):X(``,!0)])]),K(c,{"class-node-inner":`w60`,"class-node-outer":`${!r.value.modules&&!r.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0},active:L(b).pluginDetailSelectedHook===`resolve`},{content:q(()=>[z(`div`,{class:`flex flex-col gap1 w-full`,onClick:n[1]||=e=>L(b).pluginDetailSelectedHook=`resolve`},[n[7]||=z(`span`,{class:`flex items-center justify-center gap-1`},[z(`i`,{class:`i-ph-magnifying-glass-duotone`}),A(` Resolve Id `)],-1),z(`div`,null,[K(l,{modules:r.value.modules,calls:r.value.calls,duration:r.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),K(c,{active:L(b).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:q(()=>[z(`div`,{class:`flex flex-col gap1 w-full`,onClick:n[2]||=e=>L(b).pluginDetailSelectedHook=`load`},[n[8]||=z(`span`,{class:`flex items-center justify-center gap-1`},[z(`i`,{class:`i-ph-upload-simple-duotone`}),A(` Load `)],-1),z(`div`,null,[K(l,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),K(c,{active:L(b).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`},{content:q(()=>[z(`div`,{class:`flex flex-col gap1 w-full`,onClick:n[3]||=e=>L(b).pluginDetailSelectedHook=`transform`},[n[9]||=z(`span`,{class:`flex items-center justify-center gap-1`},[z(`i`,{class:`i-ph-magic-wand-duotone`}),A(` Transform `)],-1),z(`div`,null,[K(l,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),z(`div`,Te,[n[11]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),n[12]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),n[13]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),z(`span`,Ee,[n[10]||=z(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),s.value?(H(),B(`time`,{key:0,datetime:new Date(s.value).toISOString()},J(new Date(s.value).toLocaleString()),9,De)):X(``,!0)])])])])}}}),{__name:`FlowmapPluginFlowTimeline`}),ke={role:`row`,class:`border-b border-base bg-base flex flex-row`},Ae={key:0,role:`columnheader`,class:`bg-base flex-none w32 ws-nowrap p1 text-center font-600`},je={key:1,role:`columnheader`,class:`bg-base flex-1 min-w100 ws-nowrap p1 text-left font-600`},Me={class:`flex flex-row gap1 items-center w-full`},Ne={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Pe={class:`p2 flex flex-col gap2`},Fe=[`title`],Ie=[`checked`,`onChange`],Le={class:`text-sm`},Re={key:2,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none ws-nowrap p1 text-center font-600 w-27`},ze={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Be={key:3,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},Ve={key:4,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},He={key:0,role:`cell`,class:`flex items-center justify-center flex-none w32 ws-nowrap op80`},Ue={key:1,role:`cell`,class:`flex-1 min-w100 text-left text-ellipsis line-clamp-2`},We={key:2,role:`cell`,class:`flex items-center justify-center flex-none text-center text-sm w-27`},Ge={key:3,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},Ke={key:4,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},qe={key:1,role:`table`,class:`min-w-max h-full`},Je={class:`p4`},Ye={class:`w-full h-48 flex items-center justify-center op50 italic`},Xe={key:0},Ze={key:1},Qe=Object.assign(fe(I({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(e){let t=e,n={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},i=Z(()=>t.modules.map(e=>({mod:e,type:p(e.id)}))),a=Z(()=>f.filter(e=>i.value.some(t=>e.match.test(t.mod.id)))),o=Z(()=>{let e=new Map;for(let{mod:t,type:n}of i.value)e.set(t.id,n.name);return e}),s=W(b.value.pluginDetailsModuleTypes??a.value.map(e=>e.name)),c=Z(()=>new Set(s.value)),{state:l,next:u}=r([``,`desc`,`asc`],{initialValue:b.value.pluginDetailsDurationSortType}),d=Z(()=>{let e=b.value.pluginDetailSelectedHook,n=b.value.pluginDetailsShowType,r=n!==`all`&&[`load`,`transform`].includes(e),i=new Map(o.value),a=[];for(let o of t.buildMetrics.calls){if(!o.module||e&&o.type!==e||r&&(n===`changed`?o.unchanged:!o.unchanged))continue;let t=i.get(o.module);t||(t=p(o.module).name,i.set(o.module,t)),c.value.has(t)&&a.push(o)}return l.value&&a.sort((e,t)=>l.value===`asc`?e.duration-t.duration:t.duration-e.duration),a});function h(e){s.value?.includes(e.name)?s.value=s.value?.filter(t=>t!==e.name):s.value?.push(e.name),b.value.pluginDetailsModuleTypes=s.value}function g(){u(),b.value.pluginDetailsDurationSortType=l.value}function _(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(t,r)=>{let i=ie;return d.value.length&&e.selectedFields.length?(H(),j(v,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:d.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:q(()=>[z(`div`,ke,[e.selectedFields.includes(`hookName`)?(H(),B(`div`,Ae,` Hook name `)):X(``,!0),e.selectedFields.includes(`module`)?(H(),B(`div`,je,[z(`button`,Me,[r[0]||=A(` Module `,-1),K(L(de),null,{popper:q(()=>[z(`div`,Pe,[(H(!0),B(G,null,U(a.value,e=>(H(),B(`label`,{key:e.name,title:e.description,class:`cursor-pointer module-type-filter border border-base rounded-md px2 py1 flex items-center gap-1 select-none`},[z(`input`,{type:`checkbox`,class:`mr1`,checked:s.value?.includes(e.name),onChange:t=>h(e)},null,40,Ie),z(`div`,{class:V([e.icon,`icon-catppuccin`])},null,2),z(`div`,Le,J(e.description||e.name),1)],8,Fe))),128))])]),default:q(()=>[z(`span`,Ne,[z(`i`,{class:V([`i-ph-funnel-duotone text-xs`,s.value.length===a.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):X(``,!0),e.selectedFields.includes(`duration`)?(H(),B(`div`,Re,[z(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:g},[r[1]||=A(` Duration `,-1),z(`span`,ze,[z(`i`,{class:V([`text-xs`,[L(l)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,L(l)?`op100 text-primary`:`op50`]])},null,2)])])])):X(``,!0),e.selectedFields.includes(`startTime`)?(H(),B(`div`,Be,` Start Time `)):X(``,!0),e.selectedFields.includes(`endTime`)?(H(),B(`div`,Ve,` End Time `)):X(``,!0)])]),default:q(({item:t,index:r})=>[z(`div`,{role:`row`,class:V([`border-base border-b border-dashed flex flex-row h-9`,[r===d.value.length-1?`border-b-0`:``]])},[e.selectedFields.includes(`hookName`)?(H(),B(`div`,He,[K(m,{text:n[t.type]},null,8,[`text`])])):X(``,!0),e.selectedFields.includes(`module`)?(H(),B(`div`,Ue,[K(i,{id:t.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:_(t.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):X(``,!0),e.selectedFields.includes(`duration`)?(H(),B(`div`,We,[K(S,{duration:t.duration},null,8,[`duration`])])):X(``,!0),e.selectedFields.includes(`startTime`)?(H(),B(`div`,Ge,J(L(k)(t.timestamp_start)),1)):X(``,!0),e.selectedFields.includes(`endTime`)?(H(),B(`div`,Ke,J(L(k)(t.timestamp_end)),1)):X(``,!0)],2)]),_:1},8,[`items`])):(H(),B(`div`,qe,[z(`div`,Je,[z(`div`,Ye,[e.selectedFields.length?(H(),B(`p`,Ze,` No data `)):(H(),B(`p`,Xe,` No columns selected `))])])]))}}}),[[`__scopeId`,`data-v-ba6a4bd9`]]),{__name:`DataPluginDetailsTable`}),$e={class:`p2 h-full w-full`},et={class:`flex border border-base rounded-2 h-full relative of-hidden`},tt={key:0,class:`of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col`},nt={class:`px2 h10 border-b border-base bg-base rounded-t-2 flex items-center justify-end`},rt={class:`flex-1 h-full min-w-0 min-h-0 flex flex-col`},it={class:`flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap`},at={class:`flex items-center h-full`},ot={key:0,class:`flex items-center justify-center gap1 h-full text-xs py1`},st={class:`op50 flex items-center gap-1`},ct=[`title`],lt={class:`text-xs op50`},ut={class:`flex-1 min-h-0 of-x-auto overscroll-contain`},dt=Object.assign(I({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let n=e,[i,a]=t(!0),o=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],s=W({selected:b.value.pluginDetailsTableFields,search:!1}),c=Z(()=>b.value.pluginDetailsTableFields?b.value.pluginDetailsTableFields:o.map(e=>e.name)),{state:l,next:u}=r([`changed`,`unchanged`,`all`],{initialValue:b.value.pluginDetailsShowType}),d=Z(()=>l.value===`all`?`Show Changed`:l.value===`changed`?`Show Unchanged`:`Show All`),f=Z(()=>!(![`load`,`transform`].includes(b.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===b.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),p=Z(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===b.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});Y(()=>s.value.selected,e=>{b.value.pluginDetailsTableFields=e});function m(){u(),b.value.pluginDetailsShowType=l.value}return(t,n)=>{let r=Oe,l=Qe;return H(),B(`div`,$e,[z(`div`,et,[L(i)?(H(),B(`div`,tt,[K(r,{"build-metrics":e.buildMetrics},{header:q(()=>[z(`div`,nt,[z(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:n[0]||=e=>L(a)(!1)},[...n[3]||=[z(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):X(``,!0),z(`div`,rt,[z(`div`,it,[z(`div`,at,[L(i)?X(``,!0):(H(),B(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:n[1]||=e=>L(a)(!0)},[...n[4]||=[z(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),K(T,{modelValue:s.value,"onUpdate:modelValue":n[2]||=e=>s.value=e,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:o,class:`[&_[icon-catppuccin]]:filter-none! h-full border-none`},null,8,[`modelValue`])]),f.value?(H(),B(`div`,ot,[z(`p`,st,[K($,{number:p.value.count},null,8,[`number`]),n[5]||=A(` module unchanged, but cost `,-1),K(S,{duration:p.value.duration},null,8,[`duration`])]),z(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:d.value,onClick:m},[z(`div`,lt,J(d.value),1)],8,ct)])):X(``,!0)]),z(`div`,ut,[K(l,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":c.value,root:e.root},null,8,[`modules`,`build-metrics`,`selected-fields`,`root`])])])])])}}}),{__name:`FlowmapPluginFlow`}),ft={class:`flex gap-1 items-center flex-wrap`},pt={key:0,class:`i-ph-arrow-right-bold text-sm op-fade`},mt=[`onClick`],ht=I({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=Z(()=>{let e=[],t=n.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(H(),B(`div`,ft,[(H(!0),B(G,null,U(i.value,(e,t)=>(H(),B(G,{key:e.id},[t>0?(H(),B(`div`,pt)):X(``,!0),z(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>r(`select`,e)},[z(`span`,null,J(e.text||e.id),1)],8,mt)],64))),128))]))}}),gt={class:`grid grid-cols-[max-content_1fr] gap-2 p4`},_t={class:`flex flex-col gap-4`},vt={key:0,class:`grid grid-cols-[300px_1fr] gap-1`},yt=[`onClick`],bt={key:0,class:`flex gap2 items-center pl2 hover:bg-active`},xt={class:`font-mono text-sm`},St=[`onClick`],Ct=[`title`],wt=I({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=se(`el`);ae(()=>i.value?.append(n.graph.el));function a(e){return E(n.graph.options.getColor?.(e)||`#000`)}return(t,n)=>{let o=oe(`tooltip`);return H(),B(`div`,gt,[z(`div`,{ref_key:`el`,ref:i,class:`w-500px`},null,512),z(`div`,_t,[K(ht,{class:`border-b border-base py2`,selected:e.selected,options:e.graph.options,onSelect:n[0]||=e=>r(`select`,e)},null,8,[`selected`,`options`]),e.selected?(H(),B(`div`,vt,[(H(!0),B(G,null,U(e.selected.children,i=>(H(),B(G,{key:i.id},[z(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:e=>r(`select`,i)},[i.meta?.type===`hook`?(H(),B(`div`,bt,[n[1]||=z(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),z(`span`,xt,J(i.text),1)])):R(t.$slots,`module`,{child:i},()=>[z(`span`,null,J(i.text||i.id),1)],void 0,1)],8,yt),z(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:e=>r(`select`,i)},[z(`div`,{class:`h-5 rounded shadow border border-base`,style:F({background:a(i),width:`${i.size/e.selected.size*100}%`})},null,4),K(S,{duration:i.size,class:`text-xs`},null,8,[`duration`]),i.children.length>0&&i.meta?.type!==`hook`?le((H(),B(`div`,{key:0,title:`${i.children.length} dependencies`,class:`text-xs op-fade`},[A(` (`+J(i.children.length)+`) `,1)],8,Ct)),[[o,`${i.children.length} dependencies`]]):X(``,!0)],8,St)],64))),128))])):X(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:r,rootText:i,nodeType:a,graphOptions:o,onUpdate:s}=e,c=M(void 0),l=M(void 0),u=W(void 0),d=M(void 0),f,p=Z(()=>{if(e.tree)return e.tree.value;let o=L(t),s=new Map,c=0,l={id:`~root`,text:i,size:0,sizeSelf:0,children:[]};if(!o?.length)return{map:s,root:l,maxDepth:c};let u=[];u.unshift(()=>{l.size+=l.children.reduce((e,t)=>e+t.size,0),l.subtext=x(l.size).join(` `),l.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,i){if(s.has(t))return s.get(t);i>c&&(c=i);let o={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return s.set(t,o),r.children.push(o),u.unshift(()=>{let t=o.sizeSelf;o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=x(o.size).join(` `),o.children.length&&t/o.size>.1&&o.children.push({id:`${o.id}-self`,text:``,size:t,sizeSelf:t,subtext:x(t).join(` `),children:[],meta:{...e,path:``,type:a},parent:o}),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),o}function f(e){let t=e[n].split(`/`).filter(Boolean),i=l,o=``,c=0;t.forEach((l,u)=>{if(o+=(o?`/`:``)+l,c++,u===t.length-1){let t={id:e[n],text:l,size:e[r],sizeSelf:e[r],subtext:x(e[r]).join(` `),children:[],meta:{...e,path:l,type:a}};i.children.push(t),s.set(e[n],t)}else i=d(e,o,l,i,c)})}return o.forEach(f),u.forEach(e=>e()),{map:s,root:l,maxDepth:c}}),m=Z(()=>({animate:b.value.chartAnimation,palette:{stroke:Q.value?`#222`:`#555`,fg:Q.value?`#fff`:`#000`,bg:Q.value?`#111`:`#fff`},getColor:D(p.value.root,Q.value?.8:.9,Q.value?1:1.1),getSubtext:e=>e.subtext,...o}));function h(e,t){u.value=e?.meta,e?.children.length||(e=e?.parent),d.value?.select(e,t)}function g(){f?.(),l.value=p.value.root,s?.(),N(()=>{let e=u.value&&p.value.map.get(u.value[n])||null;e&&h(e,!1)}),f=()=>{d.value?.dispose(),d.value=void 0,u.value=void 0}}return N(()=>{Y(()=>[p.value,m.value],()=>{g()},{deep:!0,immediate:!1}),g()}),P(()=>{f?.()}),{tree:p,chartOptions:m,graph:d,nodeHover:c,nodeSelected:l,selectedNode:u,selectNode:h,buildGraph:g}}var Et={key:1,class:`relative h-full w-full`},Dt={class:`bg-glass absolute left-2 top-2 z-panel-content p2 border border-base rounded-lg flex flex-col gap-2`},Ot={class:`font-mono px1`},kt={class:`text-xs font-mono flex items-center gap-3 ml2`},At={class:`flex gap-2`},jt={class:`of-auto h-full pt-30`},Mt={key:2,class:`flex items-center justify-center w-full h-full`},Nt={key:0,class:`border border-base rounded-lg shadow-lg px3 py2 bg-glass pointer-events-none text-sm max-w-80`},Pt={key:0,class:`flex items-center gap2`},Ft={key:0,class:`flex font-semibold font-mono text-base mb2`},It={key:1,class:`border-t border-base pt2 flex flex-col gap-1.5 min-w-48`},Lt={class:`flex justify-between items-center py1`},Rt=[`datetime`],zt={class:`flex justify-between items-center py1`},Bt=[`datetime`],Vt={class:`flex justify-between items-center py1 border-t border-base border-dashed pt2`},Ht={key:2},Ut=Object.assign(I({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(t,{emit:n}){let r=t,a=n,s=i(),{state:d,isLoading:m,execute:h}=c(async()=>await s.value.call(`vite:inspect:get-plugin-details`,r.query,r.plugin),null),v=e(()=>{h()},100);Y(()=>[r.query.vite,r.query.env,r.plugin],()=>{h()}),o(()=>{v()});let x=Z(()=>{let e=new Set;return d.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),C=Z(()=>d.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),T=Z(()=>d.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),E=Z(()=>d.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),ne=Z(()=>d.value?.calls?.reduce((e,t)=>e+t.duration,0)),D=Z(()=>r.modules.map(e=>({mod:e,path:re(e.id,r.root),type:p(e.id)}))),O=Z(()=>f.filter(e=>D.value.some(t=>e.match.test(t.mod.id))));function M(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let N=Z(()=>{let e=new Map;if(!d.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=y(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!O.value.some(t=>p(e.module).name===t.name));return[...O.value.map((r,i)=>{let a=n.filter(e=>p(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,d.value.resolveIdMetrics),i=n(`loads`,d.value.loadMetrics),a=n(`transforms`,d.value.transformMetrics);function o(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":C.value,"~resolves":E.value,"~transforms":T.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[o(`~resolves`,`Resolve Id`,r),o(`~loads`,`Load`,i),o(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),P=ue(l()),{tree:F,chartOptions:I,graph:R,nodeHover:U,nodeSelected:W,selectedNode:ae,selectNode:oe,buildGraph:se}=Tt({data:[],tree:N,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(U.value=e),ae.value=e?.meta},onHover(e){e&&(U.value=e),e===null&&(U.value=void 0)},onLeave(){U.value=void 0},onSelect(e){W.value=e||F.value.root,ae.value=e?.meta},getSubtext(e){return g(e.size,!0)}},onUpdate(){R.value=new _(F.value.root,I.value)}});return Y(()=>b.value.pluginDetailsViewType,()=>{se()}),(e,n)=>{let r=u,i=dt,o=ie,s=te;return H(),B(G,null,[L(m)?(H(),j(r,{key:0})):L(d)?.calls?.length?(H(),B(`div`,Et,[K(ee,{class:`absolute right-2 top-1.5`,onClick:n[0]||=e=>a(`close`)}),z(`div`,Dt,[z(`div`,Ot,[K(w,{name:L(d)?.plugin_name},null,8,[`name`])]),z(`div`,kt,[K(S,{duration:E.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${L(g)(E.value,!0)}`},{default:q(()=>[...n[3]||=[z(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),K(S,{duration:C.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${L(g)(C.value,!0)}`},{default:q(()=>[...n[4]||=[z(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),K(S,{duration:T.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${L(g)(T.value,!0)}`},{default:q(()=>[...n[5]||=[z(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),n[7]||=z(`span`,{class:`op40`},`|`,-1),K(S,{duration:ne.value,class:`flex gap-1 items-center`,title:`Total build cost: ${L(g)(ne.value,!0)}`},{default:q(()=>[...n[6]||=[z(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),n[8]||=z(`span`,{class:`op40`},`|`,-1),K($,{number:x.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${x.value.length}`},null,8,[`number`,`title`]),n[9]||=z(`span`,{class:`op40`},`|`,-1),K($,{number:L(d)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${L(d)?.calls?.length??0}`},null,8,[`number`,`title`])]),z(`div`,At,[z(`button`,{class:V([L(b).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:n[1]||=e=>L(b).pluginDetailsViewType=`flow`},[...n[10]||=[z(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),A(` Build Flow `,-1)]],2),z(`button`,{class:V([L(b).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:n[2]||=e=>L(b).pluginDetailsViewType=`sunburst`},[...n[11]||=[z(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),A(` Sunburst `,-1)]],2)])]),z(`div`,jt,[L(b).pluginDetailsViewType===`flow`?(H(),j(i,{key:0,modules:t.modules,"build-metrics":L(d),root:t.root},null,8,[`modules`,`build-metrics`,`root`])):X(``,!0),L(b).pluginDetailsViewType===`sunburst`&&L(R)?(H(),j(wt,{key:1,graph:L(R),selected:L(W),onSelect:L(oe)},{module:q(({child:e})=>[K(o,{id:e.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:t.root,link:M(e.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):X(``,!0)])])):(H(),B(`div`,Mt,[...n[12]||=[z(`span`,{class:`italic op50`},` No data `,-1)]])),K(s,{"hover-x":P.x,"hover-y":P.y},{default:q(()=>[L(U)?(H(),B(`div`,Nt,[L(U).meta?.title?(H(),B(`div`,Pt,[A(J(L(U).meta.title)+` `,1),K(S,{duration:L(U).meta.duration},null,8,[`duration`])])):(H(),B(G,{key:1},[L(U).meta?.module?(H(),B(`div`,Ft,[K(o,{id:L(U).meta.module,cwd:t.root,link:!1},null,8,[`id`,`cwd`])])):X(``,!0),L(U).meta?.module?(H(),B(`div`,It,[z(`div`,Lt,[n[13]||=z(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),z(`time`,{datetime:new Date(L(U).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},J(L(k)(L(U).meta.timestamp_start)),9,Rt)]),z(`div`,zt,[n[14]||=z(`label`,{class:`text-xs opacity-70`},`End Time`,-1),z(`time`,{datetime:new Date(L(U).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},J(L(k)(L(U).meta.timestamp_end)),9,Bt)]),z(`div`,Vt,[n[15]||=z(`label`,{class:`text-xs op70`},`Duration`,-1),K(S,{duration:L(U).meta.duration},null,8,[`duration`])])])):(H(),B(`div`,Ht,[K(S,{duration:L(U).meta?.duration},null,8,[`duration`])]))],64))])):X(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),{__name:`DataPluginDetailsLoader`}),Wt={class:`flex flex-col gap-2 p4`},Gt={class:`flex pb2`},Kt={class:`w-8 text-right text-xs op50`},qt={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Jt=I({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=he();return(n,r)=>(H(),B(`div`,Wt,[K(v,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:q(({item:e})=>[z(`div`,Gt,[K(L(me),{to:{path:L(t).path,query:{plugin:e.plugin_id}},class:`font-mono border rounded border-base w-full px2 py1 text-sm hover:bg-active flex gap-4 items-center`},{default:q(()=>[z(`div`,Kt,` #`+J(e.plugin_id),1),z(`span`,qt,[K(w,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`,`item-size`,`page-mode`,`scroller`])]))}}),Yt={key:1,class:`h-full flex flex-col gap-3 items-center justify-center p8 text-center`},Xt={class:`font-mono text-sm max-w-180 ws-pre-wrap`},Zt={key:2,class:`relative min-h-screen`},Qt={class:`sticky left-4 right-4 top-4 z-panel-nav p-4`},$t={class:`fixed bottom-4 py-1 px-2 bg-glass left-1/2 translate-x--1/2 border border-base rounded-full text-center text-xs`},en={class:`op50`},tn=I({__name:`plugins`,setup(t){let r=i(),c=he(),l=ge(),f=M(null),p=M([]),m=W(!0),g=W(null),_=Z(()=>typeof c.query.plugin==`string`?c.query.plugin:void 0),v=W({search:c.query.search||``,selected:c.query.plugin_types?P(c.query.plugin_types):null}),y=Z(()=>f.value?.instances[0]),ee=Z(()=>y.value?.environments[0]||``),b=Z(()=>y.value?.root||``),x=Z(()=>!y.value?.vite||!ee.value?null:{vite:y.value.vite,env:ee.value}),S=Z(()=>y.value?.plugins.map((e,t)=>re(e,t))??[]),te=Z(()=>[...d.filter(e=>S.value.some(t=>e.match.test(t.name))),h]),w=Z(()=>{let e=S.value;return v.value.selected&&(e=e.filter(e=>{let t=C(e.name);return v.value.selected.includes(t.name)})),e}),E=a(()=>w.value,()=>new ne(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),D=Z(()=>v.value.search?E.value.search(v.value.search).map(e=>e.item):w.value);n(v.value,e=>{l.replace({query:F({...c.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function re(e,t){let n=e&&typeof e==`object`?e:{};return{plugin_id:t,name:typeof n.name==`string`?n.name:`plugin-${t}`,enforce:n.enforce===`pre`||n.enforce===`post`?n.enforce:void 0}}function O(){_.value&&l.replace({query:{...c.query,plugin:void 0}})}async function k(e={}){e.silent||(m.value=!0),g.value=null;try{f.value=await r.value.call(`vite:inspect:get-metadata`),x.value?p.value=(await r.value.call(`vite:inspect:get-modules-list`,x.value)).map(N):p.value=[]}catch(e){g.value=e}finally{e.silent||(m.value=!1)}}let ie=e(()=>{k({silent:!0})},100);function N(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function P(e){return Array.isArray(e)?e.map(String):[String(e)]}function F(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return ce(()=>{k()}),o(()=>{ie()}),s(`Escape`,e=>{e.preventDefault(),e.isTrusted&&!e.repeat&&O()}),(e,t)=>{let n=u,r=Ut;return m.value?(H(),j(n,{key:0,text:`Loading plugins...`})):g.value?(H(),B(`div`,Yt,[t[3]||=z(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),z(`div`,Xt,J(g.value.message),1),z(`button`,{class:`btn-action`,onClick:t[0]||=e=>k()},[...t[2]||=[z(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),A(` Retry `,-1)]])])):(H(),B(`div`,Zt,[z(`div`,Qt,[K(T,{modelValue:v.value,"onUpdate:modelValue":t[1]||=e=>v.value=e,rules:te.value},null,8,[`modelValue`,`rules`])]),K(Jt,{plugins:D.value??[],scroller:`window`},null,8,[`plugins`]),z(`div`,$t,[z(`span`,en,J(D.value.length)+` of `+J(S.value.length||0),1)]),_.value&&x.value?(H(),B(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:pe(O,[`self`])},[(H(),B(`div`,{key:_.value,class:`fixed right-0 bottom-0 top-20 left-20 z-panel-content bg-glass border-l border-t border-base rounded-tl-xl`},[K(r,{plugin:_.value,query:x.value,modules:p.value,root:b.value,onClose:O},null,8,[`plugin`,`query`,`modules`,`root`])]))])):X(``,!0)]))}}});export{tn as default};
|
|
1
|
+
import{I as e,L as t,R as n,d as r,i,k as a,n as o,o as s,u as c,x as l,z as u}from"./DlHVZk4i.js";import{D as d,E as f,O as p,S as m,T as h,_ as g,a as _,b as v,c as y,d as ee,f as b,g as x,h as S,k as C,l as te,m as w,n as T,o as E,r as ne,s as D,t as re,u as O,v as k,x as ie}from"./BSA6CAE7.js";import{A,C as j,Ct as M,H as N,J as P,Kt as F,N as I,Ot as L,Q as R,S as z,T as B,Wt as V,Y as H,Z as U,bt as W,ct as ae,et as oe,g as G,j as K,lt as q,ot as se,q as ce,qt as J,st as Y,ut as le,vt as ue,w as X,x as Z}from"./XWR6704C.js";import{n as Q,r as de}from"#entry";import{t as fe}from"./BDNMzG2s.js";import{st as pe,t as me}from"./B_A1QLnD.js";import{d as he,u as ge}from"./B3GmGsvS.js";var $=I({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let t=e,n=Z(()=>t.format===`percent`?Number(t.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(t.number).toLocaleString());return(t,r)=>(H(),B(`div`,{class:V([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(H(),B(`div`,{key:0,class:V([e.icon,`mr-1`])},null,2)):X(``,!0),A(` `+J(e.prefix||``)+J(n.value)+J(e.suffix||``)+` `,1),R(t.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=I({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(H(),B(`span`,_e,[K($,{number:e.modules,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${e.modules}`},null,8,[`number`,`title`]),n[1]||=z(`span`,{class:`op40`},`|`,-1),K($,{number:e.calls,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${e.calls}`},null,8,[`number`,`title`]),n[2]||=z(`span`,{class:`op40`},`|`,-1),K(S,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${L(g)(e.duration,!0)}`},{default:q(()=>[...n[0]||=[z(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`])]))}}),ye={class:`flex flex-col h-full min-h-0`},be={class:`select-none flex-1 min-h-0 of-x-hidden of-y-auto ws-nowrap w-auto p4 flex flex-col`,style:{"scrollbar-gutter":`stable`}},xe={class:`flex`},Se={class:`flex items-center justify-center relative w-60 h14`},Ce={class:`op50 text-xs flex items-center justify-center gap-1 h6`},we=[`datetime`],Te={class:`flex items-center justify-center relative w-60 h14`},Ee={class:`op50 text-xs flex items-center justify-center gap-1 h6`},De=[`datetime`],Oe=Object.assign(I({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let t=e;function n(e){let t={duration:0,calls:e.length,modules:0},n=new Set;return e.forEach(e=>{n.has(e.module)||(n.add(e.module),t.modules++),t.duration+=e.duration}),t}let r=Z(()=>n(t.buildMetrics.resolveIdMetrics)),i=Z(()=>n(t.buildMetrics.loadMetrics)),a=Z(()=>n(t.buildMetrics.transformMetrics)),o=Z(()=>{let e=t.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),s=Z(()=>{let e=t.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(t,n)=>{let c=O,l=ve;return H(),B(`div`,ye,[R(t.$slots,`header`),z(`div`,be,[z(`div`,xe,[K(c,{active:!1,"class-node-inner":`w60`},{content:q(()=>[z(`div`,{class:`p2 w-full text-center`,onClick:n[0]||=e=>L(b).pluginDetailSelectedHook=``},[K(w,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),z(`div`,Se,[n[5]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),n[6]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),z(`span`,Ce,[n[4]||=z(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),o.value?(H(),B(`time`,{key:0,datetime:new Date(o.value).toISOString()},J(new Date(o.value).toLocaleString()),9,we)):X(``,!0)])]),K(c,{"class-node-inner":`w60`,"class-node-outer":`${!r.value.modules&&!r.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0},active:L(b).pluginDetailSelectedHook===`resolve`},{content:q(()=>[z(`div`,{class:`flex flex-col gap1 w-full`,onClick:n[1]||=e=>L(b).pluginDetailSelectedHook=`resolve`},[n[7]||=z(`span`,{class:`flex items-center justify-center gap-1`},[z(`i`,{class:`i-ph-magnifying-glass-duotone`}),A(` Resolve Id `)],-1),z(`div`,null,[K(l,{modules:r.value.modules,calls:r.value.calls,duration:r.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),K(c,{active:L(b).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!i.value.modules&&!i.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:q(()=>[z(`div`,{class:`flex flex-col gap1 w-full`,onClick:n[2]||=e=>L(b).pluginDetailSelectedHook=`load`},[n[8]||=z(`span`,{class:`flex items-center justify-center gap-1`},[z(`i`,{class:`i-ph-upload-simple-duotone`}),A(` Load `)],-1),z(`div`,null,[K(l,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),K(c,{active:L(b).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`},{content:q(()=>[z(`div`,{class:`flex flex-col gap1 w-full`,onClick:n[3]||=e=>L(b).pluginDetailSelectedHook=`transform`},[n[9]||=z(`span`,{class:`flex items-center justify-center gap-1`},[z(`i`,{class:`i-ph-magic-wand-duotone`}),A(` Transform `)],-1),z(`div`,null,[K(l,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),z(`div`,Te,[n[11]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),n[12]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),n[13]||=z(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),z(`span`,Ee,[n[10]||=z(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),s.value?(H(),B(`time`,{key:0,datetime:new Date(s.value).toISOString()},J(new Date(s.value).toLocaleString()),9,De)):X(``,!0)])])])])}}}),{__name:`FlowmapPluginFlowTimeline`}),ke={role:`row`,class:`border-b border-base bg-base flex flex-row`},Ae={key:0,role:`columnheader`,class:`bg-base flex-none w32 ws-nowrap p1 text-center font-600`},je={key:1,role:`columnheader`,class:`bg-base flex-1 min-w100 ws-nowrap p1 text-left font-600`},Me={class:`flex flex-row gap1 items-center w-full`},Ne={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Pe={class:`p2 flex flex-col gap2`},Fe=[`title`],Ie=[`checked`,`onChange`],Le={class:`text-sm`},Re={key:2,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none ws-nowrap p1 text-center font-600 w-27`},ze={class:`w-6 h-6 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`},Be={key:3,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},Ve={key:4,role:`columnheader`,class:`rounded-tr-2 bg-base flex-none min-w52 ws-nowrap p1 text-center font-600`},He={key:0,role:`cell`,class:`flex items-center justify-center flex-none w32 ws-nowrap op80`},Ue={key:1,role:`cell`,class:`flex-1 min-w100 text-left text-ellipsis line-clamp-2`},We={key:2,role:`cell`,class:`flex items-center justify-center flex-none text-center text-sm w-27`},Ge={key:3,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},Ke={key:4,role:`cell`,class:`flex items-center justify-center flex-none text-center font-mono text-sm min-w52 op80`},qe={key:1,role:`table`,class:`min-w-max h-full`},Je={class:`p4`},Ye={class:`w-full h-48 flex items-center justify-center op50 italic`},Xe={key:0},Ze={key:1},Qe=Object.assign(fe(I({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(e){let t=e,n={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},i=Z(()=>t.modules.map(e=>({mod:e,type:p(e.id)}))),a=Z(()=>f.filter(e=>i.value.some(t=>e.match.test(t.mod.id)))),o=Z(()=>{let e=new Map;for(let{mod:t,type:n}of i.value)e.set(t.id,n.name);return e}),s=W(b.value.pluginDetailsModuleTypes??a.value.map(e=>e.name)),c=Z(()=>new Set(s.value)),{state:l,next:u}=r([``,`desc`,`asc`],{initialValue:b.value.pluginDetailsDurationSortType}),d=Z(()=>{let e=b.value.pluginDetailSelectedHook,n=b.value.pluginDetailsShowType,r=n!==`all`&&[`load`,`transform`].includes(e),i=new Map(o.value),a=[];for(let o of t.buildMetrics.calls){if(!o.module||e&&o.type!==e||r&&(n===`changed`?o.unchanged:!o.unchanged))continue;let t=i.get(o.module);t||(t=p(o.module).name,i.set(o.module,t)),c.value.has(t)&&a.push(o)}return l.value&&a.sort((e,t)=>l.value===`asc`?e.duration-t.duration:t.duration-e.duration),a});function h(e){s.value?.includes(e.name)?s.value=s.value?.filter(t=>t!==e.name):s.value?.push(e.name),b.value.pluginDetailsModuleTypes=s.value}function g(){u(),b.value.pluginDetailsDurationSortType=l.value}function _(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(t,r)=>{let i=ie;return d.value.length&&e.selectedFields.length?(H(),j(v,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:d.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:q(()=>[z(`div`,ke,[e.selectedFields.includes(`hookName`)?(H(),B(`div`,Ae,` Hook name `)):X(``,!0),e.selectedFields.includes(`module`)?(H(),B(`div`,je,[z(`button`,Me,[r[0]||=A(` Module `,-1),K(L(de),null,{popper:q(()=>[z(`div`,Pe,[(H(!0),B(G,null,U(a.value,e=>(H(),B(`label`,{key:e.name,title:e.description,class:`cursor-pointer module-type-filter border border-base rounded-md px2 py1 flex items-center gap-1 select-none`},[z(`input`,{type:`checkbox`,class:`mr1`,checked:s.value?.includes(e.name),onChange:t=>h(e)},null,40,Ie),z(`div`,{class:V([e.icon,`icon-catppuccin`])},null,2),z(`div`,Le,J(e.description||e.name),1)],8,Fe))),128))])]),default:q(()=>[z(`span`,Ne,[z(`i`,{class:V([`i-ph-funnel-duotone text-xs`,s.value.length===a.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):X(``,!0),e.selectedFields.includes(`duration`)?(H(),B(`div`,Re,[z(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:g},[r[1]||=A(` Duration `,-1),z(`span`,ze,[z(`i`,{class:V([`text-xs`,[L(l)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,L(l)?`op100 text-primary`:`op50`]])},null,2)])])])):X(``,!0),e.selectedFields.includes(`startTime`)?(H(),B(`div`,Be,` Start Time `)):X(``,!0),e.selectedFields.includes(`endTime`)?(H(),B(`div`,Ve,` End Time `)):X(``,!0)])]),default:q(({item:t,index:r})=>[z(`div`,{role:`row`,class:V([`border-base border-b border-dashed flex flex-row h-9`,[r===d.value.length-1?`border-b-0`:``]])},[e.selectedFields.includes(`hookName`)?(H(),B(`div`,He,[K(m,{text:n[t.type]},null,8,[`text`])])):X(``,!0),e.selectedFields.includes(`module`)?(H(),B(`div`,Ue,[K(i,{id:t.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:_(t.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):X(``,!0),e.selectedFields.includes(`duration`)?(H(),B(`div`,We,[K(S,{duration:t.duration},null,8,[`duration`])])):X(``,!0),e.selectedFields.includes(`startTime`)?(H(),B(`div`,Ge,J(L(k)(t.timestamp_start)),1)):X(``,!0),e.selectedFields.includes(`endTime`)?(H(),B(`div`,Ke,J(L(k)(t.timestamp_end)),1)):X(``,!0)],2)]),_:1},8,[`items`])):(H(),B(`div`,qe,[z(`div`,Je,[z(`div`,Ye,[e.selectedFields.length?(H(),B(`p`,Ze,` No data `)):(H(),B(`p`,Xe,` No columns selected `))])])]))}}}),[[`__scopeId`,`data-v-ba6a4bd9`]]),{__name:`DataPluginDetailsTable`}),$e={class:`p2 h-full w-full`},et={class:`flex border border-base rounded-2 h-full relative of-hidden`},tt={key:0,class:`of-hidden border-r border-base shrink-0 h-full min-h-0 flex flex-col`},nt={class:`px2 h10 border-b border-base bg-base rounded-t-2 flex items-center justify-end`},rt={class:`flex-1 h-full min-w-0 min-h-0 flex flex-col`},it={class:`flex items-center justify-between border-b border-base px2 h10 bg-base rounded-t-2 of-x-auto ws-nowrap`},at={class:`flex items-center h-full`},ot={key:0,class:`flex items-center justify-center gap1 h-full text-xs py1`},st={class:`op50 flex items-center gap-1`},ct=[`title`],lt={class:`text-xs op50`},ut={class:`flex-1 min-h-0 of-x-auto overscroll-contain`},dt=Object.assign(I({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let n=e,[i,a]=t(!0),o=[{match:/hookName/,name:`hookName`,description:`Hook name`,icon:`i-ph-function-duotone`},{match:/module/,name:`module`,description:`Module`,icon:`i-ph-package-duotone`},{match:/duration/,name:`duration`,description:`Duration`,icon:`i-ph-clock-countdown-duotone`},{match:/startTime/,name:`startTime`,description:`Start Time`,icon:`i-ph-clock-duotone`},{match:/endTime/,name:`endTime`,description:`End Time`,icon:`i-ph-clock-duotone`}],s=W({selected:b.value.pluginDetailsTableFields,search:!1}),c=Z(()=>b.value.pluginDetailsTableFields?b.value.pluginDetailsTableFields:o.map(e=>e.name)),{state:l,next:u}=r([`changed`,`unchanged`,`all`],{initialValue:b.value.pluginDetailsShowType}),d=Z(()=>l.value===`all`?`Show Changed`:l.value===`changed`?`Show Unchanged`:`Show All`),f=Z(()=>!(![`load`,`transform`].includes(b.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===b.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),p=Z(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===b.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});Y(()=>s.value.selected,e=>{b.value.pluginDetailsTableFields=e});function m(){u(),b.value.pluginDetailsShowType=l.value}return(t,n)=>{let r=Oe,l=Qe;return H(),B(`div`,$e,[z(`div`,et,[L(i)?(H(),B(`div`,tt,[K(r,{"build-metrics":e.buildMetrics},{header:q(()=>[z(`div`,nt,[z(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:n[0]||=e=>L(a)(!1)},[...n[3]||=[z(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):X(``,!0),z(`div`,rt,[z(`div`,it,[z(`div`,at,[L(i)?X(``,!0):(H(),B(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:n[1]||=e=>L(a)(!0)},[...n[4]||=[z(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),K(T,{modelValue:s.value,"onUpdate:modelValue":n[2]||=e=>s.value=e,"selected-container-class":`px0! py1 border-none bg-none flex-nowrap! h-full`,rules:o,class:`[&_[icon-catppuccin]]:filter-none! h-full border-none`},null,8,[`modelValue`])]),f.value?(H(),B(`div`,ot,[z(`p`,st,[K($,{number:p.value.count},null,8,[`number`]),n[5]||=A(` module unchanged, but cost `,-1),K(S,{duration:p.value.duration},null,8,[`duration`])]),z(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:d.value,onClick:m},[z(`div`,lt,J(d.value),1)],8,ct)])):X(``,!0)]),z(`div`,ut,[K(l,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":c.value,root:e.root},null,8,[`modules`,`build-metrics`,`selected-fields`,`root`])])])])])}}}),{__name:`FlowmapPluginFlow`}),ft={class:`flex gap-1 items-center flex-wrap`},pt={key:0,class:`i-ph-arrow-right-bold text-sm op-fade`},mt=[`onClick`],ht=I({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=Z(()=>{let e=[],t=n.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,t)=>(H(),B(`div`,ft,[(H(!0),B(G,null,U(i.value,(e,t)=>(H(),B(G,{key:e.id},[t>0?(H(),B(`div`,pt)):X(``,!0),z(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>r(`select`,e)},[z(`span`,null,J(e.text||e.id),1)],8,mt)],64))),128))]))}}),gt={class:`grid grid-cols-[max-content_1fr] gap-2 p4`},_t={class:`flex flex-col gap-4`},vt={key:0,class:`grid grid-cols-[300px_1fr] gap-1`},yt=[`onClick`],bt={key:0,class:`flex gap2 items-center pl2 hover:bg-active`},xt={class:`font-mono text-sm`},St=[`onClick`],Ct=[`title`],wt=I({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,i=se(`el`);ae(()=>i.value?.append(n.graph.el));function a(e){return E(n.graph.options.getColor?.(e)||`#000`)}return(t,n)=>{let o=oe(`tooltip`);return H(),B(`div`,gt,[z(`div`,{ref_key:`el`,ref:i,class:`w-500px`},null,512),z(`div`,_t,[K(ht,{class:`border-b border-base py2`,selected:e.selected,options:e.graph.options,onSelect:n[0]||=e=>r(`select`,e)},null,8,[`selected`,`options`]),e.selected?(H(),B(`div`,vt,[(H(!0),B(G,null,U(e.selected.children,i=>(H(),B(G,{key:i.id},[z(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:e=>r(`select`,i)},[i.meta?.type===`hook`?(H(),B(`div`,bt,[n[1]||=z(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),z(`span`,xt,J(i.text),1)])):R(t.$slots,`module`,{child:i},()=>[z(`span`,null,J(i.text||i.id),1)],void 0,1)],8,yt),z(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:e=>r(`select`,i)},[z(`div`,{class:`h-5 rounded shadow border border-base`,style:F({background:a(i),width:`${i.size/e.selected.size*100}%`})},null,4),K(S,{duration:i.size,class:`text-xs`},null,8,[`duration`]),i.children.length>0&&i.meta?.type!==`hook`?le((H(),B(`div`,{key:0,title:`${i.children.length} dependencies`,class:`text-xs op-fade`},[A(` (`+J(i.children.length)+`) `,1)],8,Ct)),[[o,`${i.children.length} dependencies`]]):X(``,!0)],8,St)],64))),128))])):X(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:r,rootText:i,nodeType:a,graphOptions:o,onUpdate:s}=e,c=M(void 0),l=M(void 0),u=W(void 0),d=M(void 0),f,p=Z(()=>{if(e.tree)return e.tree.value;let o=L(t),s=new Map,c=0,l={id:`~root`,text:i,size:0,sizeSelf:0,children:[]};if(!o?.length)return{map:s,root:l,maxDepth:c};let u=[];u.unshift(()=>{l.size+=l.children.reduce((e,t)=>e+t.size,0),l.subtext=x(l.size).join(` `),l.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,i){if(s.has(t))return s.get(t);i>c&&(c=i);let o={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return s.set(t,o),r.children.push(o),u.unshift(()=>{let t=o.sizeSelf;o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=x(o.size).join(` `),o.children.length&&t/o.size>.1&&o.children.push({id:`${o.id}-self`,text:``,size:t,sizeSelf:t,subtext:x(t).join(` `),children:[],meta:{...e,path:``,type:a},parent:o}),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),o}function f(e){let t=e[n].split(`/`).filter(Boolean),i=l,o=``,c=0;t.forEach((l,u)=>{if(o+=(o?`/`:``)+l,c++,u===t.length-1){let t={id:e[n],text:l,size:e[r],sizeSelf:e[r],subtext:x(e[r]).join(` `),children:[],meta:{...e,path:l,type:a}};i.children.push(t),s.set(e[n],t)}else i=d(e,o,l,i,c)})}return o.forEach(f),u.forEach(e=>e()),{map:s,root:l,maxDepth:c}}),m=Z(()=>({animate:b.value.chartAnimation,palette:{stroke:Q.value?`#222`:`#555`,fg:Q.value?`#fff`:`#000`,bg:Q.value?`#111`:`#fff`},getColor:D(p.value.root,Q.value?.8:.9,Q.value?1:1.1),getSubtext:e=>e.subtext,...o}));function h(e,t){u.value=e?.meta,e?.children.length||(e=e?.parent),d.value?.select(e,t)}function g(){f?.(),l.value=p.value.root,s?.(),N(()=>{let e=u.value&&p.value.map.get(u.value[n])||null;e&&h(e,!1)}),f=()=>{d.value?.dispose(),d.value=void 0,u.value=void 0}}return N(()=>{Y(()=>[p.value,m.value],()=>{g()},{deep:!0,immediate:!1}),g()}),P(()=>{f?.()}),{tree:p,chartOptions:m,graph:d,nodeHover:c,nodeSelected:l,selectedNode:u,selectNode:h,buildGraph:g}}var Et={key:1,class:`relative h-full w-full`},Dt={class:`bg-glass absolute left-2 top-2 z-panel-content p2 border border-base rounded-lg flex flex-col gap-2`},Ot={class:`font-mono px1`},kt={class:`text-xs font-mono flex items-center gap-3 ml2`},At={class:`flex gap-2`},jt={class:`of-auto h-full pt-30`},Mt={key:2,class:`flex items-center justify-center w-full h-full`},Nt={key:0,class:`border border-base rounded-lg shadow-lg px3 py2 bg-glass pointer-events-none text-sm max-w-80`},Pt={key:0,class:`flex items-center gap2`},Ft={key:0,class:`flex font-semibold font-mono text-base mb2`},It={key:1,class:`border-t border-base pt2 flex flex-col gap-1.5 min-w-48`},Lt={class:`flex justify-between items-center py1`},Rt=[`datetime`],zt={class:`flex justify-between items-center py1`},Bt=[`datetime`],Vt={class:`flex justify-between items-center py1 border-t border-base border-dashed pt2`},Ht={key:2},Ut=Object.assign(I({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(t,{emit:n}){let r=t,a=n,s=i(),{state:d,isLoading:m,execute:h}=c(async()=>await s.value.call(`vite:inspect:get-plugin-details`,r.query,r.plugin),null),v=e(()=>{h()},100);Y(()=>[r.query.vite,r.query.env,r.plugin],()=>{h()}),o(()=>{v()});let x=Z(()=>{let e=new Set;return d.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),C=Z(()=>d.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),T=Z(()=>d.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),E=Z(()=>d.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),ne=Z(()=>d.value?.calls?.reduce((e,t)=>e+t.duration,0)),D=Z(()=>r.modules.map(e=>({mod:e,path:re(e.id,r.root),type:p(e.id)}))),O=Z(()=>f.filter(e=>D.value.some(t=>e.match.test(t.mod.id))));function M(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let N=Z(()=>{let e=new Map;if(!d.value)return{root:t({id:`~root`,text:`Project`,children:[]}),map:new Map,maxDepth:3};function t(t,n){e.set(t.id,t);let r=y(t,n,(e,t)=>(t?.meta?.duration??0)-(e?.meta?.duration??0));return r.children&&r.children.forEach(e=>{e.parent=r}),r}function n(e,n){let r=n.filter(e=>!O.value.some(t=>p(e.module).name===t.name));return[...O.value.map((r,i)=>{let a=n.filter(e=>p(e.module).name===r.name);return t({id:`${e}-${r.name}-${i}`,text:r.description,children:a.map((n,r)=>t({id:`${e}-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:r.description,id:`${e}-${r.name}-${i}`,duration:a.reduce((e,t)=>e+t.duration,0)}})}),t({id:`${e}-other`,text:`Other`,children:r.map((n,r)=>t({id:`${e}-other-${r}`,text:n.module,size:n.duration,meta:n})),meta:{type:`module`,title:`Other`,id:`${e}-other`,duration:r.reduce((e,t)=>e+t.duration,0)}})]}let r=n(`resolveId`,d.value.resolveIdMetrics),i=n(`loads`,d.value.loadMetrics),a=n(`transforms`,d.value.transformMetrics);function o(e,n,r){return t({id:e,text:n,children:r.sort((e,t)=>t.size-e.size),meta:{id:e,type:`hook`,title:n,duration:{"~loads":C.value,"~resolves":E.value,"~transforms":T.value}[e]}})}return{root:t({id:`~root`,text:`Project`,children:[o(`~resolves`,`Resolve Id`,r),o(`~loads`,`Load`,i),o(`~transforms`,`Transform`,a)]}),map:e,maxDepth:3}}),P=ue(l()),{tree:F,chartOptions:I,graph:R,nodeHover:U,nodeSelected:W,selectedNode:ae,selectNode:oe,buildGraph:se}=Tt({data:[],tree:N,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(U.value=e),ae.value=e?.meta},onHover(e){e&&(U.value=e),e===null&&(U.value=void 0)},onLeave(){U.value=void 0},onSelect(e){W.value=e||F.value.root,ae.value=e?.meta},getSubtext(e){return g(e.size,!0)}},onUpdate(){R.value=new _(F.value.root,I.value)}});return Y(()=>b.value.pluginDetailsViewType,()=>{se()}),(e,n)=>{let r=u,i=dt,o=ie,s=te;return H(),B(G,null,[L(m)?(H(),j(r,{key:0})):L(d)?.calls?.length?(H(),B(`div`,Et,[K(ee,{class:`absolute right-2 top-1.5`,onClick:n[0]||=e=>a(`close`)}),z(`div`,Dt,[z(`div`,Ot,[K(w,{name:L(d)?.plugin_name},null,8,[`name`])]),z(`div`,kt,[K(S,{duration:E.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${L(g)(E.value,!0)}`},{default:q(()=>[...n[3]||=[z(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),K(S,{duration:C.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${L(g)(C.value,!0)}`},{default:q(()=>[...n[4]||=[z(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),K(S,{duration:T.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${L(g)(T.value,!0)}`},{default:q(()=>[...n[5]||=[z(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),n[7]||=z(`span`,{class:`op40`},`|`,-1),K(S,{duration:ne.value,class:`flex gap-1 items-center`,title:`Total build cost: ${L(g)(ne.value,!0)}`},{default:q(()=>[...n[6]||=[z(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),n[8]||=z(`span`,{class:`op40`},`|`,-1),K($,{number:x.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${x.value.length}`},null,8,[`number`,`title`]),n[9]||=z(`span`,{class:`op40`},`|`,-1),K($,{number:L(d)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${L(d)?.calls?.length??0}`},null,8,[`number`,`title`])]),z(`div`,At,[z(`button`,{class:V([L(b).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:n[1]||=e=>L(b).pluginDetailsViewType=`flow`},[...n[10]||=[z(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),A(` Build Flow `,-1)]],2),z(`button`,{class:V([L(b).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:n[2]||=e=>L(b).pluginDetailsViewType=`sunburst`},[...n[11]||=[z(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),A(` Sunburst `,-1)]],2)])]),z(`div`,jt,[L(b).pluginDetailsViewType===`flow`?(H(),j(i,{key:0,modules:t.modules,"build-metrics":L(d),root:t.root},null,8,[`modules`,`build-metrics`,`root`])):X(``,!0),L(b).pluginDetailsViewType===`sunburst`&&L(R)?(H(),j(wt,{key:1,graph:L(R),selected:L(W),onSelect:L(oe)},{module:q(({child:e})=>[K(o,{id:e.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:t.root,link:M(e.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):X(``,!0)])])):(H(),B(`div`,Mt,[...n[12]||=[z(`span`,{class:`italic op50`},` No data `,-1)]])),K(s,{"hover-x":P.x,"hover-y":P.y},{default:q(()=>[L(U)?(H(),B(`div`,Nt,[L(U).meta?.title?(H(),B(`div`,Pt,[A(J(L(U).meta.title)+` `,1),K(S,{duration:L(U).meta.duration},null,8,[`duration`])])):(H(),B(G,{key:1},[L(U).meta?.module?(H(),B(`div`,Ft,[K(o,{id:L(U).meta.module,cwd:t.root,link:!1},null,8,[`id`,`cwd`])])):X(``,!0),L(U).meta?.module?(H(),B(`div`,It,[z(`div`,Lt,[n[13]||=z(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),z(`time`,{datetime:new Date(L(U).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},J(L(k)(L(U).meta.timestamp_start)),9,Rt)]),z(`div`,zt,[n[14]||=z(`label`,{class:`text-xs opacity-70`},`End Time`,-1),z(`time`,{datetime:new Date(L(U).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},J(L(k)(L(U).meta.timestamp_end)),9,Bt)]),z(`div`,Vt,[n[15]||=z(`label`,{class:`text-xs op70`},`Duration`,-1),K(S,{duration:L(U).meta.duration},null,8,[`duration`])])])):(H(),B(`div`,Ht,[K(S,{duration:L(U).meta?.duration},null,8,[`duration`])]))],64))])):X(``,!0)]),_:1},8,[`hover-x`,`hover-y`])],64)}}}),{__name:`DataPluginDetailsLoader`}),Wt={class:`flex flex-col gap-2 p4`},Gt={class:`flex pb2`},Kt={class:`w-8 text-right text-xs op50`},qt={class:`overflow-hidden text-ellipsis break-all line-clamp-2`},Jt=I({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=ge();return(n,r)=>(H(),B(`div`,Wt,[K(v,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:q(({item:e})=>[z(`div`,Gt,[K(L(me),{to:{path:L(t).path,query:{plugin:e.plugin_id}},class:`font-mono border rounded border-base w-full px2 py1 text-sm hover:bg-active flex gap-4 items-center`},{default:q(()=>[z(`div`,Kt,` #`+J(e.plugin_id),1),z(`span`,qt,[K(w,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`,`item-size`,`page-mode`,`scroller`])]))}}),Yt={key:1,class:`h-full flex flex-col gap-3 items-center justify-center p8 text-center`},Xt={class:`font-mono text-sm max-w-180 ws-pre-wrap`},Zt={key:2,class:`relative min-h-screen`},Qt={class:`sticky left-4 right-4 top-4 z-panel-nav p-4`},$t={class:`fixed bottom-4 py-1 px-2 bg-glass left-1/2 translate-x--1/2 border border-base rounded-full text-center text-xs`},en={class:`op50`},tn=I({__name:`plugins`,setup(t){let r=i(),c=ge(),l=he(),f=M(null),p=M([]),m=W(!0),g=W(null),_=Z(()=>typeof c.query.plugin==`string`?c.query.plugin:void 0),v=W({search:c.query.search||``,selected:c.query.plugin_types?P(c.query.plugin_types):null}),y=Z(()=>f.value?.instances[0]),ee=Z(()=>y.value?.environments[0]||``),b=Z(()=>y.value?.root||``),x=Z(()=>!y.value?.vite||!ee.value?null:{vite:y.value.vite,env:ee.value}),S=Z(()=>y.value?.plugins.map((e,t)=>re(e,t))??[]),te=Z(()=>[...d.filter(e=>S.value.some(t=>e.match.test(t.name))),h]),w=Z(()=>{let e=S.value;return v.value.selected&&(e=e.filter(e=>{let t=C(e.name);return v.value.selected.includes(t.name)})),e}),E=a(()=>w.value,()=>new ne(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),D=Z(()=>v.value.search?E.value.search(v.value.search).map(e=>e.item):w.value);n(v.value,e=>{l.replace({query:F({...c.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function re(e,t){let n=e&&typeof e==`object`?e:{};return{plugin_id:t,name:typeof n.name==`string`?n.name:`plugin-${t}`,enforce:n.enforce===`pre`||n.enforce===`post`?n.enforce:void 0}}function O(){_.value&&l.replace({query:{...c.query,plugin:void 0}})}async function k(e={}){e.silent||(m.value=!0),g.value=null;try{f.value=await r.value.call(`vite:inspect:get-metadata`),x.value?p.value=(await r.value.call(`vite:inspect:get-modules-list`,x.value)).map(N):p.value=[]}catch(e){g.value=e}finally{e.silent||(m.value=!1)}}let ie=e(()=>{k({silent:!0})},100);function N(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function P(e){return Array.isArray(e)?e.map(String):[String(e)]}function F(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return ce(()=>{k()}),o(()=>{ie()}),s(`Escape`,e=>{e.preventDefault(),e.isTrusted&&!e.repeat&&O()}),(e,t)=>{let n=u,r=Ut;return m.value?(H(),j(n,{key:0,text:`Loading plugins...`})):g.value?(H(),B(`div`,Yt,[t[3]||=z(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),z(`div`,Xt,J(g.value.message),1),z(`button`,{class:`btn-action`,onClick:t[0]||=e=>k()},[...t[2]||=[z(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),A(` Retry `,-1)]])])):(H(),B(`div`,Zt,[z(`div`,Qt,[K(T,{modelValue:v.value,"onUpdate:modelValue":t[1]||=e=>v.value=e,rules:te.value},null,8,[`modelValue`,`rules`])]),K(Jt,{plugins:D.value??[],scroller:`window`},null,8,[`plugins`]),z(`div`,$t,[z(`span`,en,J(D.value.length)+` of `+J(S.value.length||0),1)]),_.value&&x.value?(H(),B(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:pe(O,[`self`])},[(H(),B(`div`,{key:_.value,class:`fixed right-0 bottom-0 top-20 left-20 z-panel-content bg-glass border-l border-t border-base rounded-tl-xl`},[K(r,{plugin:_.value,query:x.value,modules:p.value,root:b.value,onClose:O},null,8,[`plugin`,`query`,`modules`,`root`])]))])):X(``,!0)]))}}});export{tn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as e,i as t,u as n,z as r}from"./
|
|
1
|
+
import{B as e,i as t,u as n,z as r}from"./DlHVZk4i.js";import{C as i,N as a,Ot as o,Q as s,S as c,T as l,Wt as u,Y as d,Z as f,g as p,j as m,lt as h,qt as g,x as _}from"./XWR6704C.js";import{t as v}from"./BDNMzG2s.js";var y={},b={class:`w-full pt8 pb6 flex flex-col gap3 items-center`};function x(e,t){return d(),l(`header`,b,[s(e.$slots,`default`)])}var S=v(y,[[`render`,x]]),C={key:1,class:`px4 pb4 flex flex-col items-center relative`},w={class:`border border-base rounded p2 flex flex-col gap-4 justify-center`},T={class:`font-mono truncate`},E=a({__name:`home`,setup(a){let s=t(),{state:v,isLoading:y}=n(async()=>{let[e,t]=await Promise.all([s.value.call(`vite:meta-info`),s.value.call(`vite:env-info`)]);return{metadata:e,envInfo:t}},null),b=_(()=>v.value?.metadata),x=_(()=>v.value?.envInfo),E=_(()=>[{id:`project`,icon:`i-ph-briefcase-duotone`,rows:[{id:`root`,icon:`i-ph-folder-duotone`,label:`Root`,value:b.value?.root},{id:`base`,icon:`i-ph-folder-simple-user-duotone`,label:`Base`,value:b.value?.base},{id:`plugins`,icon:`i-ph-plugs-duotone`,label:`Plugins`,value:b.value?.plugins.length??0}]},{id:`system`,icon:`i-ph-desktop-tower-duotone`,rows:[{id:`os`,icon:`i-ph-app-window-duotone`,label:`OS`,value:x.value?.os},{id:`cpu`,icon:`i-ph:cpu-duotone`,label:`CPU`,value:x.value?.cpu},{id:`memory`,icon:`i-ph:memory-duotone`,label:`Memory`,value:x.value?.memory}]},{id:`runtime`,icon:`i-ph-stack-duotone`,rows:[{id:`node`,icon:`i-catppuccin-package-json icon-catppuccin`,label:`Node`,value:x.value?.node},{id:`bun`,icon:`i-catppuccin:bun icon-catppuccin`,label:`Bun`,value:x.value?.bun},{id:`npm`,icon:`i-catppuccin:npm icon-catppuccin`,label:`NPM`,value:x.value?.npm},{id:`pnpm`,icon:`i-catppuccin:pnpm icon-catppuccin`,label:`PNPM`,value:x.value?.pnpm},{id:`yarn`,icon:`i-catppuccin:yarn icon-catppuccin`,label:`Yarn`,value:x.value?.yarn}]}]);return(t,n)=>{let a=r;return o(y)?(d(),i(a,{key:0,text:`Connecting...`})):(d(),l(`div`,C,[m(S,null,{default:h(()=>[m(e)]),_:1}),c(`div`,w,[(d(!0),l(p,null,f(E.value,e=>(d(),l(`div`,{key:e.id,class:`p4 flex gap-14 items-center`},[c(`div`,{class:u([`text-3xl flex ml3`,e.icon])},null,2),c(`div`,null,[(d(!0),l(p,null,f(e.rows,e=>(d(),l(`div`,{key:e.id,class:`grid grid-cols-[max-content_80px_2fr] gap-2 items-center`},[c(`div`,{class:u(e.icon)},null,2),c(`div`,null,g(e.label),1),c(`div`,T,g(e.value),1)]))),128))])]))),128))])]))}}});export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"#entry";import{S as t,T as n,Y as r,qt as i}from"./XWR6704C.js";import{t as a}from"./BDNMzG2s.js";var o={class:`antialiased bg-white dark:bg-neutral-950 dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-neutral-950 tracking-wide`},s={class:`max-w-520px text-center`},c=[`textContent`],l=[`textContent`],u=[`textContent`],d=a({__name:`error-500`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:500},statusText:{type:String,default:`Internal server error`},description:{type:String,default:`This page is temporarily unavailable.`},refresh:{type:String,default:`Refresh this page`}},setup(a){let d=a;return e({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb);--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 #0000;--un-ring-shadow:0 0 #0000;--un-shadow-inset: ;--un-shadow:0 0 #0000;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:#93c5fd80;--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,:before{--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,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}h1,h2,p{margin:0}`}]}),(e,d)=>(r(),n(`div`,o,[t(`div`,s,[t(`h1`,{class:`font-medium leading-none mb-4 sm:text-[72px] tabular-nums text-[56px]`,textContent:i(a.status)},null,8,c),t(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:i(a.statusText)},null,8,l),t(`p`,{class:`mb-4 px-2 text-md text-neutral-500`,textContent:i(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-5a7b2226`]]);export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{N as e,T as t,Y as n}from"./XWR6704C.js";import{c as r}from"./B3GmGsvS.js";var i={class:`p10 flex flex-col items-center justify-center`},a=e({__name:`index`,setup(e){return r(`/home`),(e,r)=>(n(),t(`div`,i))}});export{a as default};
|