@vitejs/devtools-vite 0.5.0-beta.1 → 0.5.0
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 +1 -1
- package/dist/public/200.html +1 -1
- package/dist/public/404.html +1 -1
- package/dist/public/_nuxt/{BGb3HCzy.js → BAtGl5hk.js} +2 -2
- package/dist/public/_nuxt/{Bcm8YpeQ.js → BN-J7l02.js} +1 -1
- package/dist/public/_nuxt/{Bsjgb83X.js → BUVaJzRf.js} +1 -1
- package/dist/public/_nuxt/{DYh7PGdm.js → CenR6bWx.js} +1 -1
- package/dist/public/_nuxt/{Da52wqYG.js → DWxXIcx8.js} +1 -1
- package/dist/public/_nuxt/{C07SPJjG.js → DbLMs7yK.js} +1 -1
- package/dist/public/_nuxt/{x7WtCf1u.js → SPZCXf8u.js} +1 -1
- package/dist/public/_nuxt/builds/latest.json +1 -1
- package/dist/public/_nuxt/builds/meta/11d612d6-1f0e-4868-b74e-0b9832861e25.json +1 -0
- package/dist/public/_nuxt/{CJZkPAQ6.js → cuq4XLpu.js} +1 -1
- package/dist/public/_nuxt/{entry.C970SjKN.css → entry.B_wjfynf.css} +1 -1
- package/dist/public/_nuxt/error-404.ESvebRws.css +1 -0
- package/dist/public/_nuxt/error-500.CRJwFN2F.css +1 -0
- package/dist/public/_nuxt/sEDpE0N9.js +3 -0
- package/dist/public/index.html +1 -1
- package/package.json +4 -4
- package/dist/public/_nuxt/CZsQis-z.js +0 -3
- package/dist/public/_nuxt/builds/meta/62875dc6-1250-497a-8f8e-558ea9a6ded2.json +0 -1
- package/dist/public/_nuxt/error-404.BZzApXDo.css +0 -1
- package/dist/public/_nuxt/error-500.X5saOryf.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e,T as t,Xt as n,Y as r}from"./D3ipLAva.js";import{t as i}from"./D4usamxR.js";import{t as a}from"./BDNMzG2s.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] 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 i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){let e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(let e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;let r=function(e){let r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),r.credentials="use-credentials"===e.crossOrigin?"include":"anonymous"===e.crossOrigin?"omit":"same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}: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}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #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: }`}]}),(i,d)=>(r(),t(`div`,o,[e(`div`,s,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:n(a.status)},null,8,c),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:n(a.statusText)},null,8,l),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:n(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-
|
|
1
|
+
import{S as e,T as t,Xt as n,Y as r}from"./D3ipLAva.js";import{t as i}from"./D4usamxR.js";import{t as a}from"./BDNMzG2s.js";var o={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] 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 i({title:`${d.status} - ${d.statusText} | ${d.appName}`,script:[{innerHTML:`!function(){let e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(let e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;let r=function(e){let r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),r.credentials="use-credentials"===e.crossOrigin?"include":"anonymous"===e.crossOrigin?"omit":"same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}: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}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #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: }`}]}),(i,d)=>(r(),t(`div`,o,[e(`div`,s,[e(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:n(a.status)},null,8,c),e(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:n(a.statusText)},null,8,l),e(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:n(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-28c83f1f`]]);export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,S as t,T as n,Xt as r,Y as i,dt as a,j as o}from"./D3ipLAva.js";import{t as s}from"./DYnEv4v1.js";import{t as c}from"./D4usamxR.js";import{t as l}from"./BDNMzG2s.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return c({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){let e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(let e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;let r=function(e){let r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),r.credentials="use-credentials"===e.crossOrigin?"include":"anonymous"===e.crossOrigin?"omit":"same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}: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}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #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: }`}]}),(c,g)=>{let _=s;return i(),n(`div`,u,[t(`div`,d,[t(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(l.status)},null,8,f),t(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(l.statusText)},null,8,p),t(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(l.description)},null,8,m),t(`div`,h,[o(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[e(r(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-
|
|
1
|
+
import{A as e,S as t,T as n,Xt as r,Y as i,dt as a,j as o}from"./D3ipLAva.js";import{t as s}from"./DYnEv4v1.js";import{t as c}from"./D4usamxR.js";import{t as l}from"./BDNMzG2s.js";var u={class:`antialiased bg-white dark:bg-[#020420] dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-[#020420] tracking-wide`},d={class:`max-w-520px text-center`},f=[`textContent`],p=[`textContent`],m=[`textContent`],h={class:`flex items-center justify-center w-full`},g=l({__name:`error-404`,props:{appName:{type:String,default:`Nuxt`},status:{type:Number,default:404},statusText:{type:String,default:`Page not found`},description:{type:String,default:`Sorry, the page you are looking for could not be found.`},backHome:{type:String,default:`Go back home`}},setup(l){let g=l;return c({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){let e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(let e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(let t of e)if("childList"===t.type)for(let e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)}).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;let r=function(e){let r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),r.credentials="use-credentials"===e.crossOrigin?"include":"anonymous"===e.crossOrigin?"omit":"same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--un-default-border-color,#e5e7eb)}: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}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}h1,h2,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 #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: }`}]}),(c,g)=>{let _=s;return i(),n(`div`,u,[t(`div`,d,[t(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:r(l.status)},null,8,f),t(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:r(l.statusText)},null,8,p),t(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:r(l.description)},null,8,m),t(`div`,h,[o(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:a(()=>[e(r(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-a2cc1568`]]);export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,Ct as t,F as n,H as r,I as i,Jt as a,N as o,Q as s,S as c,T as l,V as u,X as d,Xt as f,Y as p,Yt as m,dt as h,et as g,g as _,j as v,pt as y,qt as b,tt as x,ut as S,w as C,x as w}from"./D3ipLAva.js";import{C as T,D as E}from"./CZsQis-z.js";import{$ as ee,Y as te}from"./DYnEv4v1.js";var D=[`top`,`right`,`bottom`,`left`],O=[`start`,`end`],k=D.reduce((e,t)=>e.concat(t,t+`-`+O[0],t+`-`+O[1]),[]),A=Math.min,j=Math.max,ne=Math.round,re=e=>({x:e,y:e}),ie={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ae(e,t,n){return j(e,A(t,n))}function M(e,t){return typeof e==`function`?e(t):e}function N(e){return e.split(`-`)[0]}function P(e){return e.split(`-`)[1]}function oe(e){return e===`x`?`y`:`x`}function se(e){return e===`y`?`height`:`width`}function F(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ce(e){return oe(F(e))}function le(e,t,n){n===void 0&&(n=!1);let r=P(e),i=ce(e),a=se(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ve(o)),[o,ve(o)]}function ue(e){let t=ve(e);return[de(e),t,de(t)]}function de(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var fe=[`left`,`right`],pe=[`right`,`left`],me=[`top`,`bottom`],he=[`bottom`,`top`];function ge(e,t,n){switch(e){case`top`:case`bottom`:return n?t?pe:fe:t?fe:pe;case`left`:case`right`:return t?me:he;default:return[]}}function _e(e,t,n,r){let i=P(e),a=ge(N(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(de)))),a}function ve(e){let t=N(e);return ie[t]+e.slice(t.length)}function ye(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function be(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ye(e)}function I(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function xe(e,t,n){let{reference:r,floating:i}=e,a=F(t),o=ce(t),s=se(o),c=N(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=P(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Se(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=M(t,e),p=be(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=I(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ce=50,we=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Se},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=xe(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ce&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=xe(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Te=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=M(e,t)||{};if(l==null)return{};let d=be(u),f={x:n,y:r},p=ce(i),m=se(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=A(d[_],T),ee=A(d[v],T),te=C-h[m]-ee,D=C/2-h[m]/2+w,O=ae(E,D,te),k=!c.arrow&&P(i)!=null&&D!==O&&a.reference[m]/2-(D<E?E:ee)-h[m]/2<0,j=k?D<E?D-E:D-te:0;return{[p]:f[p]+j,data:{[p]:O,centerOffset:D-O-j,...k&&{alignmentOffset:j}},reset:k}}});function Ee(e,t,n){return(e?[...n.filter(t=>P(t)===e),...n.filter(t=>P(t)!==e)]:n.filter(e=>N(e)===e)).filter(n=>!e||P(n)===e||(t?de(n)!==n:!1))}var De=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=k,autoAlignment:u=!0,...d}=M(e,t),f=c!==void 0||l===k?Ee(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=le(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[N(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=P(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,P(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Oe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=M(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=N(r),_=F(o),v=N(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ve(o)]:ue(o)),x=p!==`none`;!d&&x&&b.push(..._e(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=le(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===F(t)||T.every(e=>F(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=F(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},ke=new Set([`left`,`top`]);async function Ae(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=N(n),s=P(n),c=F(n)===`y`,l=ke.has(o)?-1:1,u=a&&c?-1:1,d=M(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var je=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ae(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Me=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=M(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=F(i),p=oe(f),m=u[p],h=u[f],g=(e,t)=>ae(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ne=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=M(e,t),c=await i.detectOverflow(t,s),l=N(n),u=P(n),d=F(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=A(p-c[m],g),y=A(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*j(c.left,c.right):S=p-2*j(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function L(e){return e.ownerDocument?.defaultView||window}function R(e){return L(e).getComputedStyle(e)}var Pe=Math.min,z=Math.max,Fe=Math.round;function Ie(e){let t=R(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=Fe(n)!==i||Fe(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function B(e){return ze(e)?(e.nodeName||``).toLowerCase():``}var Le;function Re(){if(Le)return Le;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Le=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Le):navigator.userAgent}function V(e){return e instanceof L(e).HTMLElement}function H(e){return e instanceof L(e).Element}function ze(e){return e instanceof L(e).Node}function Be(e){return typeof ShadowRoot>`u`?!1:e instanceof L(e).ShadowRoot||e instanceof ShadowRoot}function Ve(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function He(e){return[`table`,`td`,`th`].includes(B(e))}function Ue(e){let t=/firefox/i.test(Re()),n=R(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function We(){return!/^((?!chrome|android).)*safari/i.test(Re())}function Ge(e){return[`html`,`body`,`#document`].includes(B(e))}function Ke(e){return H(e)?e:e.contextElement}var qe={x:1,y:1};function U(e){let t=Ke(e);if(!V(t))return qe;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Ie(t),o=(a?Fe(n.width):n.width)/r,s=(a?Fe(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ke(e),o=qe;t&&(r?H(r)&&(o=U(r)):o=U(e));let s=a?L(a):window,c=!We()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=L(a),t=r&&H(r)?L(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=U(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=L(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function W(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ye(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xe(e){return Je(W(e)).left+Ye(e).scrollLeft}function G(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Be(e)&&e.host||W(e);return Be(t)?t.host:t}function Ze(e){let t=G(e);return Ge(t)?t.ownerDocument.body:V(t)&&Ve(t)?t:Ze(t)}function Qe(e,t){t===void 0&&(t=[]);let n=Ze(e),r=n===e.ownerDocument?.body,i=L(n);return r?t.concat(i,i.visualViewport||[],Ve(n)?n:[]):t.concat(n,Qe(n))}function $e(e,t,n){return t===`viewport`?I(function(e,t){let n=L(e),r=W(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=We();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):H(t)?I(function(e,t){let n=Je(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=V(e)?U(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):I(function(e){let t=W(e),n=Ye(e),r=e.ownerDocument.body,i=z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Xe(e),s=-n.scrollTop;return R(r).direction===`rtl`&&(o+=z(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(W(e)))}function et(e){return V(e)&&R(e).position!==`fixed`?e.offsetParent:null}function tt(e){let t=L(e),n=et(e);for(;n&&He(n)&&R(n).position===`static`;)n=et(n);return n&&(B(n)===`html`||B(n)===`body`&&R(n).position===`static`&&!Ue(n))?t:n||function(e){let t=G(e);for(;V(t)&&!Ge(t);){if(Ue(t))return t;t=G(t)}return null}(e)||t}function nt(e,t,n){let r=V(t),i=W(t),a=Je(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((B(t)!==`body`||Ve(i))&&(o=Ye(t)),V(t)){let e=Je(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Xe(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var rt={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Qe(e).filter((e=>H(e)&&B(e)!==`body`)),i=null,a=R(e).position===`fixed`,o=a?G(e):e;for(;H(o)&&!Ge(o);){let e=R(o),t=Ue(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=G(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=$e(t,n,i);return e.top=z(r.top,e.top),e.right=Pe(r.right,e.right),e.bottom=Pe(r.bottom,e.bottom),e.left=z(r.left,e.left),e}),$e(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=V(n),a=W(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((B(n)!==`body`||Ve(a))&&(o=Ye(n)),V(n))){let e=Je(n);s=U(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:H,getDimensions:function(e){return V(e)?Ie(e):e.getBoundingClientRect()},getOffsetParent:tt,getDocumentElement:W,getScale:U,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||tt,a=this.getDimensions;return{reference:nt(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>R(e).direction===`rtl`},it=(e,t,n)=>{let r=new Map,i={platform:rt,...n},a={...i.platform,_c:r};return we(e,t,{...i,platform:a})};function at(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?at(e[n],t[n]):e[n]=t[n])}var K={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function ot(e,t){let n=K.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=K.themes[n.$extend]||{}:(n=null,r=K[t]):n=null;while(n);return r}function st(e){let t=[e],n=K.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=K.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function ct(e){let t=[e],n=K.themes[e]||{};do n.$extend?(t.push(n.$extend),n=K.themes[n.$extend]||{}):n=null;while(n);return t}var q=!1;if(typeof window<`u`){q=!1;try{let e=Object.defineProperty({},"passive",{get(){q=!0}});window.addEventListener(`test`,null,e)}catch{}}var lt=!1;typeof window<`u`&&typeof navigator<`u`&&(lt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var ut=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),dt={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},ft={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function pt(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function mt(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var J=[],Y=null,ht={};function gt(e){let t=ht[e];return t||=ht[e]=[],t}var _t=function(){};typeof window<`u`&&(_t=window.Element);function X(e){return function(t){return ot(t.theme,e)}}var vt=`__floating-vue__popper`,yt=()=>o({name:`VPopper`,provide(){return{[vt]:{parentPopper:this}}},inject:{[vt]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:X(`disabled`)},positioningDisabled:{type:Boolean,default:X(`positioningDisabled`)},placement:{type:String,default:X(`placement`),validator:e=>ut.includes(e)},delay:{type:[String,Number,Object],default:X(`delay`)},distance:{type:[Number,String],default:X(`distance`)},skidding:{type:[Number,String],default:X(`skidding`)},triggers:{type:Array,default:X(`triggers`)},showTriggers:{type:[Array,Function],default:X(`showTriggers`)},hideTriggers:{type:[Array,Function],default:X(`hideTriggers`)},popperTriggers:{type:Array,default:X(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:X(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:X(`popperHideTriggers`)},container:{type:[String,Object,_t,Boolean],default:X(`container`)},boundary:{type:[String,_t],default:X(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:X(`strategy`)},autoHide:{type:[Boolean,Function],default:X(`autoHide`)},handleResize:{type:Boolean,default:X(`handleResize`)},instantMove:{type:Boolean,default:X(`instantMove`)},eagerMount:{type:Boolean,default:X(`eagerMount`)},popperClass:{type:[String,Array,Object],default:X(`popperClass`)},computeTransformOrigin:{type:Boolean,default:X(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:X(`autoMinSize`)},autoSize:{type:[Boolean,String],default:X(`autoSize`)},autoMaxSize:{type:Boolean,default:X(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:X(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:X(`preventOverflow`)},overflowPadding:{type:[Number,String],default:X(`overflowPadding`)},arrowPadding:{type:[Number,String],default:X(`arrowPadding`)},arrowOverflow:{type:Boolean,default:X(`arrowOverflow`)},flip:{type:Boolean,default:X(`flip`)},shift:{type:Boolean,default:X(`shift`)},shiftCrossAxis:{type:Boolean,default:X(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:X(`noAutoFocus`)},disposeTimeout:{type:Number,default:X(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[vt]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(je({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(De({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Me({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Oe({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Te({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Ne({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await it(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Y&&this.instantMove&&Y.instantMove&&Y!==this.parentPopper){Y.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Y=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await mt(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qe(this.$_referenceNode),...Qe(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<J.length;n++)t=J[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}J.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of ct(this.theme))gt(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await mt(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,pt(J,this),J.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of ct(this.theme)){let t=gt(e);pt(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Y===this&&(Y=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await mt(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,dt,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],dt,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,ft,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ft,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,q?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(Dt>=e.left&&Dt<=e.right&&Ot>=e.top&&Ot<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=Dt-Z,n=Ot-Q,r=e.left+e.width/2-Z+(e.top+e.height/2)-Q+e.width+e.height,i=Z+t*r,a=Q+n*r;return kt(Z,Q,i,a,e.left,e.top,e.left,e.bottom)||kt(Z,Q,i,a,e.left,e.top,e.right,e.top)||kt(Z,Q,i,a,e.right,e.top,e.right,e.bottom)||kt(Z,Q,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(lt){let e=!q||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>bt(e,!0),e),document.addEventListener(`touchend`,e=>xt(e,!0),e)}else window.addEventListener(`mousedown`,e=>bt(e,!1),!0),window.addEventListener(`click`,e=>xt(e,!1),!0);window.addEventListener(`resize`,Tt)}function bt(e,t){if(K.autoHideOnMousedown)St(e,t);else for(let t=0;t<J.length;t++){let n=J[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function xt(e,t){K.autoHideOnMousedown||St(e,t)}function St(e,t){let n={};for(let r=J.length-1;r>=0;r--){let i=J[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Ct(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&Ct(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Ct(e,t,n){return n.closeAllPopover||n.closePopover&&t||wt(e,n)&&!t}function wt(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Tt(){for(let e=0;e<J.length;e++)J[e].$_computePosition()}function Et(){for(let e=0;e<J.length;e++)J[e].hide()}var Z=0,Q=0,Dt=0,Ot=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{Z=Dt,Q=Ot,Dt=e.clientX,Ot=e.clientY},q?{passive:!0}:void 0);function kt(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var At={extends:yt()},jt=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function Mt(e,t,r,i,o,s){return p(),l(`div`,{ref:`reference`,class:b([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[g(e.$slots,`default`,a(n(e.slotData)))],2)}var Nt=jt(At,[[`render`,Mt]]);function Pt(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var Ft;function It(){It.init||(It.init=!0,Ft=Pt()!==-1)}var Lt={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){It(),r(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,Ft&&this.$el.appendChild(e),e.data=`about:blank`,Ft||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ft&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Rt=y(`data-v-b329ee4c`);s(`data-v-b329ee4c`);var zt={class:`resize-observer`,tabindex:`-1`};d(),Lt.render=Rt((t,n,r,i,a,o)=>(p(),e(`div`,zt))),Lt.__scopeId=`data-v-b329ee4c`,Lt.__file=`src/components/ResizeObserver.vue`;var Bt=(e=`theme`)=>({computed:{themeClass(){return st(this[e])}}}),Vt=o({name:`VPopperContent`,components:{ResizeObserver:Lt},mixins:[Bt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ht=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],Ut={ref:`inner`,class:`v-popper__inner`},Wt=[c(`div`,{class:`v-popper__arrow-outer`},null,-1),c(`div`,{class:`v-popper__arrow-inner`},null,-1)];function Gt(t,n,r,i,a,o){let s=x(`ResizeObserver`);return p(),l(`div`,{id:t.popperId,ref:`popover`,class:b([`v-popper__popper`,[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:m(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?`false`:`true`,tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:n[2]||=ee(e=>t.autoHide&&t.$emit(`hide`),[`esc`])},[c(`div`,{class:`v-popper__backdrop`,onClick:n[0]||=e=>t.autoHide&&t.$emit(`hide`)}),c(`div`,{class:`v-popper__wrapper`,style:m(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[c(`div`,Ut,[t.mounted?(p(),l(_,{key:0},[c(`div`,null,[g(t.$slots,`default`)]),t.handleResize?(p(),e(s,{key:0,onNotify:n[1]||=e=>t.$emit(`resize`,e)})):C(``,!0)],64)):C(``,!0)],512),c(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:m(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},Wt,4)],4)],46,Ht)}var Kt=jt(Vt,[[`render`,Gt]]),qt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Jt=function(){};typeof window<`u`&&(Jt=window.Element);var Yt=o({name:`VPopperWrapper`,components:{Popper:Nt,PopperContent:Kt},mixins:[qt,Bt(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Jt,Boolean],default:void 0},boundary:{type:[String,Jt],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Xt(t,n,r,i,a,o){let s=x(`PopperContent`),c=x(`Popper`);return p(),e(c,u({ref:`popper`},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:n[0]||=()=>t.$emit(`show`),onHide:n[1]||=()=>t.$emit(`hide`),"onUpdate:shown":n[2]||=e=>t.$emit(`update:shown`,e),onApplyShow:n[3]||=()=>t.$emit(`apply-show`),onApplyHide:n[4]||=()=>t.$emit(`apply-hide`),onCloseGroup:n[5]||=()=>t.$emit(`close-group`),onCloseDirective:n[6]||=()=>t.$emit(`close-directive`),onAutoHide:n[7]||=()=>t.$emit(`auto-hide`),onResize:n[8]||=()=>t.$emit(`resize`)}),{default:h(({popperId:e,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:o,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[g(t.$slots,`default`,{shown:n,show:o,hide:c}),v(s,{ref:`popperContent`,"popper-id":e,theme:t.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:h(()=>[g(t.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var Zt=jt(Yt,[[`render`,Xt]]),Qt={...Zt,name:`VDropdown`,vPopperTheme:`dropdown`},$t={...Zt,name:`VMenu`,vPopperTheme:`menu`},en={...Zt,name:`VTooltip`,vPopperTheme:`tooltip`},tn=o({name:`VTooltipDirective`,components:{Popper:yt(),PopperContent:Kt},mixins:[qt],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>ot(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ot(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),nn=[`innerHTML`],rn=[`textContent`];function an(t,n,r,i,a,o){let s=x(`PopperContent`),c=x(`Popper`);return p(),e(c,u({ref:`popper`},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:h(({popperId:e,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:o,handleResize:c,onResize:u,classes:d,result:m})=>[v(s,{ref:`popperContent`,class:b({"v-popper--tooltip-loading":t.loading}),"popper-id":e,theme:t.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:d,result:m,onHide:o,onResize:u},{default:h(()=>[t.html?(p(),l(`div`,{key:0,innerHTML:t.finalContent},null,8,nn)):(p(),l(`div`,{key:1,textContent:f(t.finalContent)},null,8,rn))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var on=jt(tn,[[`render`,an]]),sn=`v-popper--has-tooltip`;function cn(e,t){let n=e.placement;if(!n&&t)for(let e of ut)t[e]&&(n=e);return n||=ot(e.theme||`tooltip`,`placement`),n}function ln(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=cn(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var un,$,dn=0;function fn(){if(un)return;$=t([]),un=te({name:`VTooltipDirectiveApp`,setup(){return{directives:$}},render(){return this.directives.map(e=>i(on,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),un.mount(e)}function pn(e,n,r){fn();let i=t(ln(e,n,r)),a=t(!1),o={id:dn++,options:i,shown:a};return $.value.push(o),e.classList&&e.classList.add(sn),e.$_popper={options:i,item:o,show(){a.value=!0},hide(){a.value=!1}}}function mn(e){if(e.$_popper){let t=$.value.indexOf(e.$_popper.item);t!==-1&&$.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(sn)}function hn(e,{value:t,modifiers:n}){let r=ln(e,t,n);if(!r.content||ot(r.theme||`tooltip`,`disabled`))mn(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=pn(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var gn={beforeMount:hn,updated:hn,beforeUnmount(e){mn(e)}};function _n(e){e.addEventListener(`mousedown`,yn),e.addEventListener(`click`,yn),e.addEventListener(`touchstart`,bn,q?{passive:!0}:!1)}function vn(e){e.removeEventListener(`mousedown`,yn),e.removeEventListener(`click`,yn),e.removeEventListener(`touchstart`,bn),e.removeEventListener(`touchend`,xn),e.removeEventListener(`touchcancel`,Sn)}function yn(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function bn(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,xn),t.addEventListener(`touchcancel`,Sn)}}function xn(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Sn(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var Cn={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&_n(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?_n(e):vn(e))},beforeUnmount(e){vn(e)}},wn=$t,Tn=en;function En(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,at(K,t),e.directive(`tooltip`,gn),e.directive(`close-popper`,Cn),e.component(`VTooltip`,en),e.component(`VDropdown`,Qt),e.component(`VMenu`,$t))}var Dn={version:`5.2.2`,install:En,options:K},On=E(`vite-devtools-color-scheme`,`auto`),kn=T(),An=w({get:()=>On.value===`auto`?kn.value:On.value===`dark`,set:e=>{On.value=e?`dark`:`light`}});function jn(){typeof document>`u`||S(()=>{let e=document.documentElement;e.classList.toggle(`dark`,An.value),e.classList.toggle(`light`,!An.value)})}export{Et as a,Oe as c,re as d,j as f,ne as h,wn as i,je as l,I as m,An as n,Tn as o,A as p,Dn as r,we as s,jn as t,Me as u};
|
|
1
|
+
import{C as e,Ct as t,F as n,H as r,I as i,Jt as a,N as o,Q as s,S as c,T as l,V as u,X as d,Xt as f,Y as p,Yt as m,dt as h,et as g,g as _,j as v,pt as y,qt as b,tt as x,ut as S,w as C,x as w}from"./D3ipLAva.js";import{C as T,D as E}from"./sEDpE0N9.js";import{$ as ee,Y as te}from"./DYnEv4v1.js";var D=[`top`,`right`,`bottom`,`left`],O=[`start`,`end`],k=D.reduce((e,t)=>e.concat(t,t+`-`+O[0],t+`-`+O[1]),[]),A=Math.min,j=Math.max,ne=Math.round,re=e=>({x:e,y:e}),ie={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function ae(e,t,n){return j(e,A(t,n))}function M(e,t){return typeof e==`function`?e(t):e}function N(e){return e.split(`-`)[0]}function P(e){return e.split(`-`)[1]}function oe(e){return e===`x`?`y`:`x`}function se(e){return e===`y`?`height`:`width`}function F(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ce(e){return oe(F(e))}function le(e,t,n){n===void 0&&(n=!1);let r=P(e),i=ce(e),a=se(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ve(o)),[o,ve(o)]}function ue(e){let t=ve(e);return[de(e),t,de(t)]}function de(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var fe=[`left`,`right`],pe=[`right`,`left`],me=[`top`,`bottom`],he=[`bottom`,`top`];function ge(e,t,n){switch(e){case`top`:case`bottom`:return n?t?pe:fe:t?fe:pe;case`left`:case`right`:return t?me:he;default:return[]}}function _e(e,t,n,r){let i=P(e),a=ge(N(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(de)))),a}function ve(e){let t=N(e);return ie[t]+e.slice(t.length)}function ye(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function be(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ye(e)}function I(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function xe(e,t,n){let{reference:r,floating:i}=e,a=F(t),o=ce(t),s=se(o),c=N(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=P(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Se(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=M(t,e),p=be(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=I(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=I(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ce=50,we=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Se},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=xe(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ce&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=xe(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Te=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=M(e,t)||{};if(l==null)return{};let d=be(u),f={x:n,y:r},p=ce(i),m=se(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=A(d[_],T),ee=A(d[v],T),te=C-h[m]-ee,D=C/2-h[m]/2+w,O=ae(E,D,te),k=!c.arrow&&P(i)!=null&&D!==O&&a.reference[m]/2-(D<E?E:ee)-h[m]/2<0,j=k?D<E?D-E:D-te:0;return{[p]:f[p]+j,data:{[p]:O,centerOffset:D-O-j,...k&&{alignmentOffset:j}},reset:k}}});function Ee(e,t,n){return(e?[...n.filter(t=>P(t)===e),...n.filter(t=>P(t)!==e)]:n.filter(e=>N(e)===e)).filter(n=>!e||P(n)===e||(t?de(n)!==n:!1))}var De=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=k,autoAlignment:u=!0,...d}=M(e,t),f=c!==void 0||l===k?Ee(c||null,u,l):l,p=r.autoPlacement?.index||0,m=f[p];if(m==null)return{};if(i!==m)return{reset:{placement:f[0]}};let h=await a.detectOverflow(t,d),g=le(m,n,await(a.isRTL==null?void 0:a.isRTL(o.floating))),_=[h[N(m)],h[g[0]],h[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:m,overflows:_}],y=f[p+1];if(y)return{data:{index:p+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=P(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,P(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:p+1,overflows:v},reset:{placement:x}}}}},Oe=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=M(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=N(r),_=F(o),v=N(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ve(o)]:ue(o)),x=p!==`none`;!d&&x&&b.push(..._e(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=le(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===F(t)||T.every(e=>F(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=F(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},ke=new Set([`left`,`top`]);async function Ae(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=N(n),s=P(n),c=F(n)===`y`,l=ke.has(o)?-1:1,u=a&&c?-1:1,d=M(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var je=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ae(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Me=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=M(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=F(i),p=oe(f),m=u[p],h=u[f],g=(e,t)=>ae(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ne=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=M(e,t),c=await i.detectOverflow(t,s),l=N(n),u=P(n),d=F(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=A(p-c[m],g),y=A(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*j(c.left,c.right):S=p-2*j(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function L(e){return e.ownerDocument?.defaultView||window}function R(e){return L(e).getComputedStyle(e)}var Pe=Math.min,z=Math.max,Fe=Math.round;function Ie(e){let t=R(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=Fe(n)!==i||Fe(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function B(e){return ze(e)?(e.nodeName||``).toLowerCase():``}var Le;function Re(){if(Le)return Le;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Le=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Le):navigator.userAgent}function V(e){return e instanceof L(e).HTMLElement}function H(e){return e instanceof L(e).Element}function ze(e){return e instanceof L(e).Node}function Be(e){return typeof ShadowRoot>`u`?!1:e instanceof L(e).ShadowRoot||e instanceof ShadowRoot}function Ve(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=R(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function He(e){return[`table`,`td`,`th`].includes(B(e))}function Ue(e){let t=/firefox/i.test(Re()),n=R(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function We(){return!/^((?!chrome|android).)*safari/i.test(Re())}function Ge(e){return[`html`,`body`,`#document`].includes(B(e))}function Ke(e){return H(e)?e:e.contextElement}var qe={x:1,y:1};function U(e){let t=Ke(e);if(!V(t))return qe;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Ie(t),o=(a?Fe(n.width):n.width)/r,s=(a?Fe(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Je(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ke(e),o=qe;t&&(r?H(r)&&(o=U(r)):o=U(e));let s=a?L(a):window,c=!We()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=L(a),t=r&&H(r)?L(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=U(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=L(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function W(e){return((ze(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ye(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Xe(e){return Je(W(e)).left+Ye(e).scrollLeft}function G(e){if(B(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Be(e)&&e.host||W(e);return Be(t)?t.host:t}function Ze(e){let t=G(e);return Ge(t)?t.ownerDocument.body:V(t)&&Ve(t)?t:Ze(t)}function Qe(e,t){t===void 0&&(t=[]);let n=Ze(e),r=n===e.ownerDocument?.body,i=L(n);return r?t.concat(i,i.visualViewport||[],Ve(n)?n:[]):t.concat(n,Qe(n))}function $e(e,t,n){return t===`viewport`?I(function(e,t){let n=L(e),r=W(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=We();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):H(t)?I(function(e,t){let n=Je(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=V(e)?U(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):I(function(e){let t=W(e),n=Ye(e),r=e.ownerDocument.body,i=z(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=z(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Xe(e),s=-n.scrollTop;return R(r).direction===`rtl`&&(o+=z(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(W(e)))}function et(e){return V(e)&&R(e).position!==`fixed`?e.offsetParent:null}function tt(e){let t=L(e),n=et(e);for(;n&&He(n)&&R(n).position===`static`;)n=et(n);return n&&(B(n)===`html`||B(n)===`body`&&R(n).position===`static`&&!Ue(n))?t:n||function(e){let t=G(e);for(;V(t)&&!Ge(t);){if(Ue(t))return t;t=G(t)}return null}(e)||t}function nt(e,t,n){let r=V(t),i=W(t),a=Je(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((B(t)!==`body`||Ve(i))&&(o=Ye(t)),V(t)){let e=Je(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Xe(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var rt={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Qe(e).filter((e=>H(e)&&B(e)!==`body`)),i=null,a=R(e).position===`fixed`,o=a?G(e):e;for(;H(o)&&!Ge(o);){let e=R(o),t=Ue(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=G(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=$e(t,n,i);return e.top=z(r.top,e.top),e.right=Pe(r.right,e.right),e.bottom=Pe(r.bottom,e.bottom),e.left=z(r.left,e.left),e}),$e(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=V(n),a=W(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((B(n)!==`body`||Ve(a))&&(o=Ye(n)),V(n))){let e=Je(n);s=U(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:H,getDimensions:function(e){return V(e)?Ie(e):e.getBoundingClientRect()},getOffsetParent:tt,getDocumentElement:W,getScale:U,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||tt,a=this.getDimensions;return{reference:nt(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>R(e).direction===`rtl`},it=(e,t,n)=>{let r=new Map,i={platform:rt,...n},a={...i.platform,_c:r};return we(e,t,{...i,platform:a})};function at(e,t){for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]==`object`&&e[n]?at(e[n],t[n]):e[n]=t[n])}var K={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function ot(e,t){let n=K.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=K.themes[n.$extend]||{}:(n=null,r=K[t]):n=null;while(n);return r}function st(e){let t=[e],n=K.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=K.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function ct(e){let t=[e],n=K.themes[e]||{};do n.$extend?(t.push(n.$extend),n=K.themes[n.$extend]||{}):n=null;while(n);return t}var q=!1;if(typeof window<`u`){q=!1;try{let e=Object.defineProperty({},"passive",{get(){q=!0}});window.addEventListener(`test`,null,e)}catch{}}var lt=!1;typeof window<`u`&&typeof navigator<`u`&&(lt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var ut=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),dt={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},ft={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function pt(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function mt(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var J=[],Y=null,ht={};function gt(e){let t=ht[e];return t||=ht[e]=[],t}var _t=function(){};typeof window<`u`&&(_t=window.Element);function X(e){return function(t){return ot(t.theme,e)}}var vt=`__floating-vue__popper`,yt=()=>o({name:`VPopper`,provide(){return{[vt]:{parentPopper:this}}},inject:{[vt]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:X(`disabled`)},positioningDisabled:{type:Boolean,default:X(`positioningDisabled`)},placement:{type:String,default:X(`placement`),validator:e=>ut.includes(e)},delay:{type:[String,Number,Object],default:X(`delay`)},distance:{type:[Number,String],default:X(`distance`)},skidding:{type:[Number,String],default:X(`skidding`)},triggers:{type:Array,default:X(`triggers`)},showTriggers:{type:[Array,Function],default:X(`showTriggers`)},hideTriggers:{type:[Array,Function],default:X(`hideTriggers`)},popperTriggers:{type:Array,default:X(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:X(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:X(`popperHideTriggers`)},container:{type:[String,Object,_t,Boolean],default:X(`container`)},boundary:{type:[String,_t],default:X(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:X(`strategy`)},autoHide:{type:[Boolean,Function],default:X(`autoHide`)},handleResize:{type:Boolean,default:X(`handleResize`)},instantMove:{type:Boolean,default:X(`instantMove`)},eagerMount:{type:Boolean,default:X(`eagerMount`)},popperClass:{type:[String,Array,Object],default:X(`popperClass`)},computeTransformOrigin:{type:Boolean,default:X(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:X(`autoMinSize`)},autoSize:{type:[Boolean,String],default:X(`autoSize`)},autoMaxSize:{type:Boolean,default:X(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:X(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:X(`preventOverflow`)},overflowPadding:{type:[Number,String],default:X(`overflowPadding`)},arrowPadding:{type:[Number,String],default:X(`arrowPadding`)},arrowOverflow:{type:Boolean,default:X(`arrowOverflow`)},flip:{type:Boolean,default:X(`flip`)},shift:{type:Boolean,default:X(`shift`)},shiftCrossAxis:{type:Boolean,default:X(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:X(`noAutoFocus`)},disposeTimeout:{type:Number,default:X(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[vt]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(je({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(De({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Me({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Oe({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Te({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Ne({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await it(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Y&&this.instantMove&&Y.instantMove&&Y!==this.parentPopper){Y.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Y=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await mt(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Qe(this.$_referenceNode),...Qe(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<J.length;n++)t=J[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}J.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of ct(this.theme))gt(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await mt(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,pt(J,this),J.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of ct(this.theme)){let t=gt(e);pt(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}Y===this&&(Y=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await mt(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,dt,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],dt,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,ft,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ft,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,q?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(Dt>=e.left&&Dt<=e.right&&Ot>=e.top&&Ot<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=Dt-Z,n=Ot-Q,r=e.left+e.width/2-Z+(e.top+e.height/2)-Q+e.width+e.height,i=Z+t*r,a=Q+n*r;return kt(Z,Q,i,a,e.left,e.top,e.left,e.bottom)||kt(Z,Q,i,a,e.left,e.top,e.right,e.top)||kt(Z,Q,i,a,e.right,e.top,e.right,e.bottom)||kt(Z,Q,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(lt){let e=!q||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>bt(e,!0),e),document.addEventListener(`touchend`,e=>xt(e,!0),e)}else window.addEventListener(`mousedown`,e=>bt(e,!1),!0),window.addEventListener(`click`,e=>xt(e,!1),!0);window.addEventListener(`resize`,Tt)}function bt(e,t){if(K.autoHideOnMousedown)St(e,t);else for(let t=0;t<J.length;t++){let n=J[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function xt(e,t){K.autoHideOnMousedown||St(e,t)}function St(e,t){let n={};for(let r=J.length-1;r>=0;r--){let i=J[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&Ct(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&Ct(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function Ct(e,t,n){return n.closeAllPopover||n.closePopover&&t||wt(e,n)&&!t}function wt(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Tt(){for(let e=0;e<J.length;e++)J[e].$_computePosition()}function Et(){for(let e=0;e<J.length;e++)J[e].hide()}var Z=0,Q=0,Dt=0,Ot=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{Z=Dt,Q=Ot,Dt=e.clientX,Ot=e.clientY},q?{passive:!0}:void 0);function kt(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var At={extends:yt()},jt=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function Mt(e,t,r,i,o,s){return p(),l(`div`,{ref:`reference`,class:b([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[g(e.$slots,`default`,a(n(e.slotData)))],2)}var Nt=jt(At,[[`render`,Mt]]);function Pt(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var Ft;function It(){It.init||(It.init=!0,Ft=Pt()!==-1)}var Lt={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){It(),r(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,Ft&&this.$el.appendChild(e),e.data=`about:blank`,Ft||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ft&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Rt=y(`data-v-b329ee4c`);s(`data-v-b329ee4c`);var zt={class:`resize-observer`,tabindex:`-1`};d(),Lt.render=Rt((t,n,r,i,a,o)=>(p(),e(`div`,zt))),Lt.__scopeId=`data-v-b329ee4c`,Lt.__file=`src/components/ResizeObserver.vue`;var Bt=(e=`theme`)=>({computed:{themeClass(){return st(this[e])}}}),Vt=o({name:`VPopperContent`,components:{ResizeObserver:Lt},mixins:[Bt()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ht=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],Ut={ref:`inner`,class:`v-popper__inner`},Wt=[c(`div`,{class:`v-popper__arrow-outer`},null,-1),c(`div`,{class:`v-popper__arrow-inner`},null,-1)];function Gt(t,n,r,i,a,o){let s=x(`ResizeObserver`);return p(),l(`div`,{id:t.popperId,ref:`popover`,class:b([`v-popper__popper`,[t.themeClass,t.classes.popperClass,{"v-popper__popper--shown":t.shown,"v-popper__popper--hidden":!t.shown,"v-popper__popper--show-from":t.classes.showFrom,"v-popper__popper--show-to":t.classes.showTo,"v-popper__popper--hide-from":t.classes.hideFrom,"v-popper__popper--hide-to":t.classes.hideTo,"v-popper__popper--skip-transition":t.skipTransition,"v-popper__popper--arrow-overflow":t.result&&t.result.arrow.overflow,"v-popper__popper--no-positioning":!t.result}]]),style:m(t.result?{position:t.result.strategy,transform:`translate3d(${Math.round(t.result.x)}px,${Math.round(t.result.y)}px,0)`}:void 0),"aria-hidden":t.shown?`false`:`true`,tabindex:t.autoHide?0:void 0,"data-popper-placement":t.result?t.result.placement:void 0,onKeyup:n[2]||=ee(e=>t.autoHide&&t.$emit(`hide`),[`esc`])},[c(`div`,{class:`v-popper__backdrop`,onClick:n[0]||=e=>t.autoHide&&t.$emit(`hide`)}),c(`div`,{class:`v-popper__wrapper`,style:m(t.result?{transformOrigin:t.result.transformOrigin}:void 0)},[c(`div`,Ut,[t.mounted?(p(),l(_,{key:0},[c(`div`,null,[g(t.$slots,`default`)]),t.handleResize?(p(),e(s,{key:0,onNotify:n[1]||=e=>t.$emit(`resize`,e)})):C(``,!0)],64)):C(``,!0)],512),c(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:m(t.result?{left:t.toPx(t.result.arrow.x),top:t.toPx(t.result.arrow.y)}:void 0)},Wt,4)],4)],46,Ht)}var Kt=jt(Vt,[[`render`,Gt]]),qt={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Jt=function(){};typeof window<`u`&&(Jt=window.Element);var Yt=o({name:`VPopperWrapper`,components:{Popper:Nt,PopperContent:Kt},mixins:[qt,Bt(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Jt,Boolean],default:void 0},boundary:{type:[String,Jt],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Xt(t,n,r,i,a,o){let s=x(`PopperContent`),c=x(`Popper`);return p(),e(c,u({ref:`popper`},t.$props,{theme:t.finalTheme,"target-nodes":t.getTargetNodes,"popper-node":()=>t.$refs.popperContent.$el,class:[t.themeClass],onShow:n[0]||=()=>t.$emit(`show`),onHide:n[1]||=()=>t.$emit(`hide`),"onUpdate:shown":n[2]||=e=>t.$emit(`update:shown`,e),onApplyShow:n[3]||=()=>t.$emit(`apply-show`),onApplyHide:n[4]||=()=>t.$emit(`apply-hide`),onCloseGroup:n[5]||=()=>t.$emit(`close-group`),onCloseDirective:n[6]||=()=>t.$emit(`close-directive`),onAutoHide:n[7]||=()=>t.$emit(`auto-hide`),onResize:n[8]||=()=>t.$emit(`resize`)}),{default:h(({popperId:e,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:o,hide:c,handleResize:l,onResize:u,classes:d,result:f})=>[g(t.$slots,`default`,{shown:n,show:o,hide:c}),v(s,{ref:`popperContent`,"popper-id":e,theme:t.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:d,result:f,onHide:c,onResize:u},{default:h(()=>[g(t.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var Zt=jt(Yt,[[`render`,Xt]]),Qt={...Zt,name:`VDropdown`,vPopperTheme:`dropdown`},$t={...Zt,name:`VMenu`,vPopperTheme:`menu`},en={...Zt,name:`VTooltip`,vPopperTheme:`tooltip`},tn=o({name:`VTooltipDirective`,components:{Popper:yt(),PopperContent:Kt},mixins:[qt],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>ot(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ot(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),nn=[`innerHTML`],rn=[`textContent`];function an(t,n,r,i,a,o){let s=x(`PopperContent`),c=x(`Popper`);return p(),e(c,u({ref:`popper`},t.$attrs,{theme:t.theme,"target-nodes":t.targetNodes,"popper-node":()=>t.$refs.popperContent.$el,onApplyShow:t.onShow,onApplyHide:t.onHide}),{default:h(({popperId:e,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,hide:o,handleResize:c,onResize:u,classes:d,result:m})=>[v(s,{ref:`popperContent`,class:b({"v-popper--tooltip-loading":t.loading}),"popper-id":e,theme:t.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":c,classes:d,result:m,onHide:o,onResize:u},{default:h(()=>[t.html?(p(),l(`div`,{key:0,innerHTML:t.finalContent},null,8,nn)):(p(),l(`div`,{key:1,textContent:f(t.finalContent)},null,8,rn))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var on=jt(tn,[[`render`,an]]),sn=`v-popper--has-tooltip`;function cn(e,t){let n=e.placement;if(!n&&t)for(let e of ut)t[e]&&(n=e);return n||=ot(e.theme||`tooltip`,`placement`),n}function ln(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=cn(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var un,$,dn=0;function fn(){if(un)return;$=t([]),un=te({name:`VTooltipDirectiveApp`,setup(){return{directives:$}},render(){return this.directives.map(e=>i(on,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),un.mount(e)}function pn(e,n,r){fn();let i=t(ln(e,n,r)),a=t(!1),o={id:dn++,options:i,shown:a};return $.value.push(o),e.classList&&e.classList.add(sn),e.$_popper={options:i,item:o,show(){a.value=!0},hide(){a.value=!1}}}function mn(e){if(e.$_popper){let t=$.value.indexOf(e.$_popper.item);t!==-1&&$.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(sn)}function hn(e,{value:t,modifiers:n}){let r=ln(e,t,n);if(!r.content||ot(r.theme||`tooltip`,`disabled`))mn(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=pn(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var gn={beforeMount:hn,updated:hn,beforeUnmount(e){mn(e)}};function _n(e){e.addEventListener(`mousedown`,yn),e.addEventListener(`click`,yn),e.addEventListener(`touchstart`,bn,q?{passive:!0}:!1)}function vn(e){e.removeEventListener(`mousedown`,yn),e.removeEventListener(`click`,yn),e.removeEventListener(`touchstart`,bn),e.removeEventListener(`touchend`,xn),e.removeEventListener(`touchcancel`,Sn)}function yn(e){let t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function bn(e){if(e.changedTouches.length===1){let t=e.currentTarget;t.$_vclosepopover_touch=!0,t.$_vclosepopover_touchPoint=e.changedTouches[0],t.addEventListener(`touchend`,xn),t.addEventListener(`touchcancel`,Sn)}}function xn(e){let t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){let n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Sn(e){let t=e.currentTarget;t.$_vclosepopover_touch=!1}var Cn={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>`u`||t)&&_n(e)},updated(e,{value:t,oldValue:n,modifiers:r}){e.$_closePopoverModifiers=r,t!==n&&(typeof t>`u`||t?_n(e):vn(e))},beforeUnmount(e){vn(e)}},wn=$t,Tn=en;function En(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,at(K,t),e.directive(`tooltip`,gn),e.directive(`close-popper`,Cn),e.component(`VTooltip`,en),e.component(`VDropdown`,Qt),e.component(`VMenu`,$t))}var Dn={version:`5.2.2`,install:En,options:K},On=E(`vite-devtools-color-scheme`,`auto`),kn=T(),An=w({get:()=>On.value===`auto`?kn.value:On.value===`dark`,set:e=>{On.value=e?`dark`:`light`}});function jn(){typeof document>`u`||S(()=>{let e=document.documentElement;e.classList.toggle(`dark`,An.value),e.classList.toggle(`light`,!An.value)})}export{Et as a,Oe as c,re as d,j as f,ne as h,wn as i,je as l,I as m,An as n,Tn as o,A as p,Dn as r,we as s,jn as t,Me as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,C as t,N as n,S as r,T as i,Xt as a,Y as o,g as s,j as c,jt as l,qt as u,x as d}from"./D3ipLAva.js";import{B as f,i as p,u as m,z as h}from"./
|
|
1
|
+
import{$ as e,C as t,N as n,S as r,T as i,Xt as a,Y as o,g as s,j as c,jt as l,qt as u,x as d}from"./D3ipLAva.js";import{B as f,i as p,u as m,z as h}from"./sEDpE0N9.js";var g={key:1,class:`p4 flex flex-col gap-4 items-center justify-center relative`},_={class:`border border-base rounded p2 flex flex-col gap-4 justify-center`},v={class:`font-mono truncate`},y=n({__name:`home`,setup(n){let y=p(),{state:b,isLoading:x}=m(async()=>{let[e,t]=await Promise.all([y.value.call(`vite:meta-info`),y.value.call(`vite:env-info`)]);return{metadata:e,envInfo:t}},null),S=d(()=>b.value?.metadata),C=d(()=>b.value?.envInfo),w=d(()=>[{id:`project`,icon:`i-ph-briefcase-duotone`,rows:[{id:`root`,icon:`i-ph-folder-duotone`,label:`Root`,value:S.value?.root},{id:`base`,icon:`i-ph-folder-simple-user-duotone`,label:`Base`,value:S.value?.base},{id:`plugins`,icon:`i-ph-plugs-duotone`,label:`Plugins`,value:S.value?.plugins.length??0}]},{id:`system`,icon:`i-ph-desktop-tower-duotone`,rows:[{id:`os`,icon:`i-ph-app-window-duotone`,label:`OS`,value:C.value?.os},{id:`cpu`,icon:`i-ph:cpu-duotone`,label:`CPU`,value:C.value?.cpu},{id:`memory`,icon:`i-ph:memory-duotone`,label:`Memory`,value:C.value?.memory}]},{id:`runtime`,icon:`i-ph-stack-duotone`,rows:[{id:`node`,icon:`i-catppuccin-package-json icon-catppuccin`,label:`Node`,value:C.value?.node},{id:`bun`,icon:`i-catppuccin:bun icon-catppuccin`,label:`Bun`,value:C.value?.bun},{id:`npm`,icon:`i-catppuccin:npm icon-catppuccin`,label:`NPM`,value:C.value?.npm},{id:`pnpm`,icon:`i-catppuccin:pnpm icon-catppuccin`,label:`PNPM`,value:C.value?.pnpm},{id:`yarn`,icon:`i-catppuccin:yarn icon-catppuccin`,label:`Yarn`,value:C.value?.yarn}]}]);return(n,d)=>{let p=h;return l(x)?(o(),t(p,{key:0,text:`Connecting...`})):(o(),i(`div`,g,[c(f),r(`div`,_,[(o(!0),i(s,null,e(w.value,t=>(o(),i(`div`,{key:t.id,class:`p4 flex gap-14 items-center`},[r(`div`,{class:u([`text-3xl flex ml3`,t.icon])},null,2),r(`div`,null,[(o(!0),i(s,null,e(t.rows,e=>(o(),i(`div`,{key:e.id,class:`grid grid-cols-[max-content_80px_2fr] gap-2 items-center`},[r(`div`,{class:u(e.icon)},null,2),r(`div`,null,a(e.label),1),r(`div`,v,a(e.value),1)]))),128))])]))),128))])]))}}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,A as t,C as n,Ct as r,Et as i,H as a,J as o,N as s,S as c,T as l,Xt as u,Y as d,Yt as f,ct as p,dt as m,et as h,ft as g,g as _,j as v,jt as y,lt as b,nt as x,q as S,qt as C,ut as w,w as T,x as E,xt as D}from"./D3ipLAva.js";import{I as O,L as k,R as ee,d as A,i as te,k as j,n as M,o as N,u as P,x as F,z as I}from"./CZsQis-z.js";import{et as L,t as R}from"./DYnEv4v1.js";import{f as z,p as B}from"./COnBqmRc.js";import{i as V,n as H}from"./Da52wqYG.js";import{t as U}from"./BDNMzG2s.js";import{D as W,E as G,O as K,S as ne,T as re,_ as q,a as ie,b as ae,c as oe,d as se,f as J,g as Y,h as X,k as ce,l as le,m as Z,n as ue,o as de,r as fe,s as pe,t as me,u as he,v as Q,x as ge}from"./Bcm8YpeQ.js";var $=s({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let n=e,r=E(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(n,i)=>(d(),l(`div`,{class:C([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(d(),l(`div`,{key:0,class:C([e.icon,`mr-1`])},null,2)):T(``,!0),t(` `+u(e.prefix||``)+u(r.value)+u(e.suffix||``)+` `,1),h(n.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=s({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(d(),l(`span`,_e,[v($,{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]||=c(`span`,{class:`op40`},`|`,-1),v($,{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]||=c(`span`,{class:`op40`},`|`,-1),v(X,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${y(q)(e.duration,!0)}`},{default:m(()=>[...n[0]||=[c(`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(s({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let n=e;function r(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 i=E(()=>r(n.buildMetrics.resolveIdMetrics)),a=E(()=>r(n.buildMetrics.loadMetrics)),o=E(()=>r(n.buildMetrics.transformMetrics)),s=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),f=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(n,r)=>{let p=he,g=ve;return d(),l(`div`,ye,[h(n.$slots,`header`),c(`div`,be,[c(`div`,xe,[v(p,{active:!1,"class-node-inner":`w60`},{content:m(()=>[c(`div`,{class:`p2 w-full text-center`,onClick:r[0]||=e=>y(J).pluginDetailSelectedHook=``},[v(Z,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),c(`div`,Se,[r[5]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[6]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),c(`span`,Ce,[r[4]||=c(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),s.value?(d(),l(`time`,{key:0,datetime:new Date(s.value).toISOString()},u(new Date(s.value).toLocaleString()),9,we)):T(``,!0)])]),v(p,{"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},active:y(J).pluginDetailSelectedHook===`resolve`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[1]||=e=>y(J).pluginDetailSelectedHook=`resolve`},[r[7]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magnifying-glass-duotone`}),t(` Resolve Id `)],-1),c(`div`,null,[v(g,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),v(p,{active:y(J).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[2]||=e=>y(J).pluginDetailSelectedHook=`load`},[r[8]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-upload-simple-duotone`}),t(` Load `)],-1),c(`div`,null,[v(g,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),v(p,{active:y(J).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[3]||=e=>y(J).pluginDetailSelectedHook=`transform`},[r[9]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magic-wand-duotone`}),t(` Transform `)],-1),c(`div`,null,[v(g,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),c(`div`,Te,[r[11]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[12]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),r[13]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),c(`span`,Ee,[r[10]||=c(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),f.value?(d(),l(`time`,{key:0,datetime:new Date(f.value).toISOString()},u(new Date(f.value).toLocaleString()),9,De)):T(``,!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(U(s({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(i){let a=i,o={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},s=E(()=>a.modules.map(e=>({mod:e,type:K(e.id)}))),f=E(()=>G.filter(e=>s.value.some(t=>e.match.test(t.mod.id)))),p=E(()=>{let e=new Map;for(let{mod:t,type:n}of s.value)e.set(t.id,n.name);return e}),h=r(J.value.pluginDetailsModuleTypes??f.value.map(e=>e.name)),g=E(()=>new Set(h.value)),{state:b,next:x}=A([``,`desc`,`asc`],{initialValue:J.value.pluginDetailsDurationSortType}),S=E(()=>{let e=J.value.pluginDetailSelectedHook,t=J.value.pluginDetailsShowType,n=t!==`all`&&[`load`,`transform`].includes(e),r=new Map(p.value),i=[];for(let o of a.buildMetrics.calls){if(!o.module||e&&o.type!==e||n&&(t===`changed`?o.unchanged:!o.unchanged))continue;let a=r.get(o.module);a||(a=K(o.module).name,r.set(o.module,a)),g.value.has(a)&&i.push(o)}return b.value&&i.sort((e,t)=>b.value===`asc`?e.duration-t.duration:t.duration-e.duration),i});function w(e){h.value?.includes(e.name)?h.value=h.value?.filter(t=>t!==e.name):h.value?.push(e.name),J.value.pluginDetailsModuleTypes=h.value}function D(){x(),J.value.pluginDetailsDurationSortType=b.value}function O(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(r,a)=>{let s=ge;return S.value.length&&i.selectedFields.length?(d(),n(ae,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:S.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:m(()=>[c(`div`,ke,[i.selectedFields.includes(`hookName`)?(d(),l(`div`,Ae,` Hook name `)):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,je,[c(`button`,Me,[a[0]||=t(` Module `,-1),v(y(V),null,{popper:m(()=>[c(`div`,Pe,[(d(!0),l(_,null,e(f.value,e=>(d(),l(`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`},[c(`input`,{type:`checkbox`,class:`mr1`,checked:h.value?.includes(e.name),onChange:t=>w(e)},null,40,Ie),c(`div`,{class:C([e.icon,`icon-catppuccin`])},null,2),c(`div`,Le,u(e.description||e.name),1)],8,Fe))),128))])]),default:m(()=>[c(`span`,Ne,[c(`i`,{class:C([`i-ph-funnel-duotone text-xs`,h.value.length===f.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,Re,[c(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:D},[a[1]||=t(` Duration `,-1),c(`span`,ze,[c(`i`,{class:C([`text-xs`,[y(b)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,y(b)?`op100 text-primary`:`op50`]])},null,2)])])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Be,` Start Time `)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ve,` End Time `)):T(``,!0)])]),default:m(({item:e,index:t})=>[c(`div`,{role:`row`,class:C([`border-base border-b border-dashed flex flex-row h-9`,[t===S.value.length-1?`border-b-0`:``]])},[i.selectedFields.includes(`hookName`)?(d(),l(`div`,He,[v(ne,{text:o[e.type]},null,8,[`text`])])):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,Ue,[v(s,{id:e.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:i.root,link:O(e.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,We,[v(X,{duration:e.duration},null,8,[`duration`])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Ge,u(y(Q)(e.timestamp_start)),1)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ke,u(y(Q)(e.timestamp_end)),1)):T(``,!0)],2)]),_:1},8,[`items`])):(d(),l(`div`,qe,[c(`div`,Je,[c(`div`,Ye,[i.selectedFields.length?(d(),l(`p`,Ze,` No data `)):(d(),l(`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(s({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let n=e,[i,a]=k(!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=r({selected:J.value.pluginDetailsTableFields,search:!1}),f=E(()=>J.value.pluginDetailsTableFields?J.value.pluginDetailsTableFields:o.map(e=>e.name)),{state:p,next:h}=A([`changed`,`unchanged`,`all`],{initialValue:J.value.pluginDetailsShowType}),g=E(()=>p.value===`all`?`Show Changed`:p.value===`changed`?`Show Unchanged`:`Show All`),_=E(()=>!(![`load`,`transform`].includes(J.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===J.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),x=E(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===J.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});b(()=>s.value.selected,e=>{J.value.pluginDetailsTableFields=e});function S(){h(),J.value.pluginDetailsShowType=p.value}return(n,r)=>{let p=Oe,h=Qe;return d(),l(`div`,$e,[c(`div`,et,[y(i)?(d(),l(`div`,tt,[v(p,{"build-metrics":e.buildMetrics},{header:m(()=>[c(`div`,nt,[c(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:r[0]||=e=>y(a)(!1)},[...r[3]||=[c(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):T(``,!0),c(`div`,rt,[c(`div`,it,[c(`div`,at,[y(i)?T(``,!0):(d(),l(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:r[1]||=e=>y(a)(!0)},[...r[4]||=[c(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),v(ue,{modelValue:s.value,"onUpdate:modelValue":r[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`])]),_.value?(d(),l(`div`,ot,[c(`p`,st,[v($,{number:x.value.count},null,8,[`number`]),r[5]||=t(` module unchanged, but cost `,-1),v(X,{duration:x.value.duration},null,8,[`duration`])]),c(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:g.value,onClick:S},[c(`div`,lt,u(g.value),1)],8,ct)])):T(``,!0)]),c(`div`,ut,[v(h,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":f.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=s({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=E(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(d(),l(`div`,ft,[(d(!0),l(_,null,e(a.value,(e,t)=>(d(),l(_,{key:e.id},[t>0?(d(),l(`div`,pt)):T(``,!0),c(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>i(`select`,e)},[c(`span`,null,u(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=s({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(n,{emit:r}){let i=n,a=r,o=p(`el`);w(()=>o.value?.append(i.graph.el));function s(e){return de(i.graph.options.getColor?.(e)||`#000`)}return(r,i)=>{let p=x(`tooltip`);return d(),l(`div`,gt,[c(`div`,{ref_key:`el`,ref:o,class:`w-500px`},null,512),c(`div`,_t,[v(ht,{class:`border-b border-base py2`,selected:n.selected,options:n.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),n.selected?(d(),l(`div`,vt,[(d(!0),l(_,null,e(n.selected.children,e=>(d(),l(_,{key:e.id},[c(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:t=>a(`select`,e)},[e.meta?.type===`hook`?(d(),l(`div`,bt,[i[1]||=c(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),c(`span`,xt,u(e.text),1)])):h(r.$slots,`module`,{child:e},()=>[c(`span`,null,u(e.text||e.id),1)],void 0,1)],8,yt),c(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:t=>a(`select`,e)},[c(`div`,{class:`h-5 rounded shadow border border-base`,style:f({background:s(e),width:`${e.size/n.selected.size*100}%`})},null,4),v(X,{duration:e.size,class:`text-xs`},null,8,[`duration`]),e.children.length>0&&e.meta?.type!==`hook`?g((d(),l(`div`,{key:0,title:`${e.children.length} dependencies`,class:`text-xs op-fade`},[t(` (`+u(e.children.length)+`) `,1)],8,Ct)),[[p,`${e.children.length} dependencies`]]):T(``,!0)],8,St)],64))),128))])):T(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=e,f=i(void 0),p=i(void 0),m=r(void 0),h=i(void 0),g,_=E(()=>{if(e.tree)return e.tree.value;let r=y(t),i=new Map,a=0,o={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!r?.length)return{map:i,root:o,maxDepth:a};let u=[];u.unshift(()=>{o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=Y(o.size).join(` `),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,o){if(i.has(t))return i.get(t);o>a&&(a=o);let s={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,s),r.children.push(s),u.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=Y(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:Y(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function f(e){let t=e[n].split(`/`).filter(Boolean),r=o,a=``,c=0;t.forEach((o,u)=>{if(a+=(a?`/`:``)+o,c++,u===t.length-1){let t={id:e[n],text:o,size:e[s],sizeSelf:e[s],subtext:Y(e[s]).join(` `),children:[],meta:{...e,path:o,type:l}};r.children.push(t),i.set(e[n],t)}else r=d(e,a,o,r,c)})}return r.forEach(f),u.forEach(e=>e()),{map:i,root:o,maxDepth:a}}),v=E(()=>({animate:J.value.chartAnimation,palette:{stroke:H.value?`#222`:`#555`,fg:H.value?`#fff`:`#000`,bg:H.value?`#111`:`#fff`},getColor:pe(_.value.root,H.value?.8:.9,H.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){m.value=e?.meta,e?.children.length||(e=e?.parent),h.value?.select(e,t)}function S(){g?.(),p.value=_.value.root,d?.(),a(()=>{let e=m.value&&_.value.map.get(m.value[n])||null;e&&x(e,!1)}),g=()=>{h.value?.dispose(),h.value=void 0,m.value=void 0}}return a(()=>{b(()=>[_.value,v.value],()=>{S()},{deep:!0,immediate:!1}),S()}),o(()=>{g?.()}),{tree:_,chartOptions:v,graph:h,nodeHover:f,nodeSelected:p,selectedNode:m,selectNode:x,buildGraph:S}}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(s({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(e,{emit:r}){let i=e,a=r,o=te(),{state:s,isLoading:f,execute:p}=P(async()=>await o.value.call(`vite:inspect:get-plugin-details`,i.query,i.plugin),null),h=O(()=>{p()},100);b(()=>[i.query.vite,i.query.env,i.plugin],()=>{p()}),M(()=>{h()});let g=E(()=>{let e=new Set;return s.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),x=E(()=>s.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),S=E(()=>s.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),w=E(()=>s.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),k=E(()=>s.value?.calls?.reduce((e,t)=>e+t.duration,0)),ee=E(()=>i.modules.map(e=>({mod:e,path:me(e.id,i.root),type:K(e.id)}))),A=E(()=>G.filter(e=>ee.value.some(t=>e.match.test(t.mod.id))));function j(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let N=E(()=>{let e=new Map;if(!s.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=oe(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=>!A.value.some(t=>K(e.module).name===t.name));return[...A.value.map((r,i)=>{let a=n.filter(e=>K(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`,s.value.resolveIdMetrics),i=n(`loads`,s.value.loadMetrics),a=n(`transforms`,s.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":x.value,"~resolves":w.value,"~transforms":S.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}}),L=D(F()),{tree:R,chartOptions:z,graph:B,nodeHover:V,nodeSelected:H,selectedNode:U,selectNode:W,buildGraph:ne}=Tt({data:[],tree:N,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(V.value=e),U.value=e?.meta},onHover(e){e&&(V.value=e),e===null&&(V.value=void 0)},onLeave(){V.value=void 0},onSelect(e){H.value=e||R.value.root,U.value=e?.meta},getSubtext(e){return q(e.size,!0)}},onUpdate(){B.value=new ie(R.value.root,z.value)}});return b(()=>J.value.pluginDetailsViewType,()=>{ne()}),(r,i)=>{let o=I,p=dt,h=ge,b=le;return d(),l(_,null,[y(f)?(d(),n(o,{key:0})):y(s)?.calls?.length?(d(),l(`div`,Et,[v(se,{class:`absolute right-2 top-1.5`,onClick:i[0]||=e=>a(`close`)}),c(`div`,Dt,[c(`div`,Ot,[v(Z,{name:y(s)?.plugin_name},null,8,[`name`])]),c(`div`,kt,[v(X,{duration:w.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${y(q)(w.value,!0)}`},{default:m(()=>[...i[3]||=[c(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(X,{duration:x.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${y(q)(x.value,!0)}`},{default:m(()=>[...i[4]||=[c(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(X,{duration:S.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${y(q)(S.value,!0)}`},{default:m(()=>[...i[5]||=[c(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[7]||=c(`span`,{class:`op40`},`|`,-1),v(X,{duration:k.value,class:`flex gap-1 items-center`,title:`Total build cost: ${y(q)(k.value,!0)}`},{default:m(()=>[...i[6]||=[c(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[8]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:g.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${g.value.length}`},null,8,[`number`,`title`]),i[9]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:y(s)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${y(s)?.calls?.length??0}`},null,8,[`number`,`title`])]),c(`div`,At,[c(`button`,{class:C([y(J).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[1]||=e=>y(J).pluginDetailsViewType=`flow`},[...i[10]||=[c(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),t(` Build Flow `,-1)]],2),c(`button`,{class:C([y(J).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[2]||=e=>y(J).pluginDetailsViewType=`sunburst`},[...i[11]||=[c(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),t(` Sunburst `,-1)]],2)])]),c(`div`,jt,[y(J).pluginDetailsViewType===`flow`?(d(),n(p,{key:0,modules:e.modules,"build-metrics":y(s),root:e.root},null,8,[`modules`,`build-metrics`,`root`])):T(``,!0),y(J).pluginDetailsViewType===`sunburst`&&y(B)?(d(),n(wt,{key:1,graph:y(B),selected:y(H),onSelect:y(W)},{module:m(({child:t})=>[v(h,{id:t.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:j(t.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):T(``,!0)])])):(d(),l(`div`,Mt,[...i[12]||=[c(`span`,{class:`italic op50`},` No data `,-1)]])),v(b,{"hover-x":L.x,"hover-y":L.y},{default:m(()=>[y(V)?(d(),l(`div`,Nt,[y(V).meta?.title?(d(),l(`div`,Pt,[t(u(y(V).meta.title)+` `,1),v(X,{duration:y(V).meta.duration},null,8,[`duration`])])):(d(),l(_,{key:1},[y(V).meta?.module?(d(),l(`div`,Ft,[v(h,{id:y(V).meta.module,cwd:e.root,link:!1},null,8,[`id`,`cwd`])])):T(``,!0),y(V).meta?.module?(d(),l(`div`,It,[c(`div`,Lt,[i[13]||=c(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),c(`time`,{datetime:new Date(y(V).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(Q)(y(V).meta.timestamp_start)),9,Rt)]),c(`div`,zt,[i[14]||=c(`label`,{class:`text-xs opacity-70`},`End Time`,-1),c(`time`,{datetime:new Date(y(V).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(Q)(y(V).meta.timestamp_end)),9,Bt)]),c(`div`,Vt,[i[15]||=c(`label`,{class:`text-xs op70`},`Duration`,-1),v(X,{duration:y(V).meta.duration},null,8,[`duration`])])])):(d(),l(`div`,Ht,[v(X,{duration:y(V).meta?.duration},null,8,[`duration`])]))],64))])):T(``,!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=s({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=z();return(n,r)=>(d(),l(`div`,Wt,[v(ae,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:m(({item:e})=>[c(`div`,Gt,[v(y(R),{to:{path:y(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:m(()=>[c(`div`,Kt,` #`+u(e.plugin_id),1),c(`span`,qt,[v(Z,{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=s({__name:`plugins`,setup(e){let a=te(),o=z(),s=B(),f=i(null),p=i([]),m=r(!0),h=r(null),g=E(()=>typeof o.query.plugin==`string`?o.query.plugin:void 0),_=r({search:o.query.search||``,selected:o.query.plugin_types?G(o.query.plugin_types):null}),y=E(()=>f.value?.instances[0]),b=E(()=>y.value?.environments[0]||``),x=E(()=>y.value?.root||``),C=E(()=>!y.value?.vite||!b.value?null:{vite:y.value.vite,env:b.value}),w=E(()=>y.value?.plugins.map((e,t)=>F(e,t))??[]),D=E(()=>[...W.filter(e=>w.value.some(t=>e.match.test(t.name))),re]),k=E(()=>{let e=w.value;return _.value.selected&&(e=e.filter(e=>{let t=ce(e.name);return _.value.selected.includes(t.name)})),e}),A=j(()=>k.value,()=>new fe(k.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),P=E(()=>_.value.search?A.value.search(_.value.search).map(e=>e.item):k.value);ee(_.value,e=>{s.replace({query:K({...o.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function F(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 R(){g.value&&s.replace({query:{...o.query,plugin:void 0}})}async function V(e={}){e.silent||(m.value=!0),h.value=null;try{f.value=await a.value.call(`vite:inspect:get-metadata`),C.value?p.value=(await a.value.call(`vite:inspect:get-modules-list`,C.value)).map(U):p.value=[]}catch(e){h.value=e}finally{e.silent||(m.value=!1)}}let H=O(()=>{V({silent:!0})},100);function U(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function G(e){return Array.isArray(e)?e.map(String):[String(e)]}function K(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return S(()=>{V()}),M(()=>{H()}),N(`Escape`,e=>{e.preventDefault(),!(!e.isTrusted||e.repeat)&&R()}),(e,r)=>{let i=I,a=Ut;return m.value?(d(),n(i,{key:0,text:`Loading plugins...`})):h.value?(d(),l(`div`,Yt,[r[3]||=c(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),c(`div`,Xt,u(h.value.message),1),c(`button`,{class:`btn-action`,onClick:r[0]||=e=>V()},[...r[2]||=[c(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),t(` Retry `,-1)]])])):(d(),l(`div`,Zt,[c(`div`,Qt,[v(ue,{modelValue:_.value,"onUpdate:modelValue":r[1]||=e=>_.value=e,rules:D.value},null,8,[`modelValue`,`rules`])]),v(Jt,{plugins:P.value??[],scroller:`window`},null,8,[`plugins`]),c(`div`,$t,[c(`span`,en,u(P.value.length)+` of `+u(w.value.length||0),1)]),g.value&&C.value?(d(),l(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:L(R,[`self`])},[(d(),l(`div`,{key:g.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`},[v(a,{plugin:g.value,query:C.value,modules:p.value,root:x.value,onClose:R},null,8,[`plugin`,`query`,`modules`,`root`])]))])):T(``,!0)]))}}});export{tn as default};
|
|
1
|
+
import{$ as e,A as t,C as n,Ct as r,Et as i,H as a,J as o,N as s,S as c,T as l,Xt as u,Y as d,Yt as f,ct as p,dt as m,et as h,ft as g,g as _,j as v,jt as y,lt as b,nt as x,q as S,qt as C,ut as w,w as T,x as E,xt as D}from"./D3ipLAva.js";import{I as O,L as k,R as ee,d as A,i as te,k as j,n as M,o as N,u as P,x as F,z as I}from"./sEDpE0N9.js";import{et as L,t as R}from"./DYnEv4v1.js";import{f as z,p as B}from"./COnBqmRc.js";import{i as V,n as H}from"./DWxXIcx8.js";import{t as U}from"./BDNMzG2s.js";import{D as W,E as G,O as K,S as ne,T as re,_ as q,a as ie,b as ae,c as oe,d as se,f as J,g as Y,h as X,k as ce,l as le,m as Z,n as ue,o as de,r as fe,s as pe,t as me,u as he,v as Q,x as ge}from"./BN-J7l02.js";var $=s({__name:`DisplayNumberBadge`,props:{number:{},color:{default:`badge-color-gray op75`},icon:{},prefix:{},suffix:{},format:{default:`locale`}},setup(e){let n=e,r=E(()=>n.format===`percent`?Number(n.number).toLocaleString(void 0,{style:`percent`,minimumFractionDigits:2,maximumFractionDigits:2}):Number(n.number).toLocaleString());return(n,i)=>(d(),l(`div`,{class:C([e.color,`px-0.4em py-0.2em font-mono line-height-none flex items-center`])},[e.icon?(d(),l(`div`,{key:0,class:C([e.icon,`mr-1`])},null,2)):T(``,!0),t(` `+u(e.prefix||``)+u(r.value)+u(e.suffix||``)+` `,1),h(n.$slots,`after`)],2))}}),_e={class:`op50 text-xs flex justify-center items-center`},ve=s({__name:`FlowmapNodePluginInfo`,props:{modules:{},calls:{},duration:{}},setup(e){return(t,n)=>(d(),l(`span`,_e,[v($,{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]||=c(`span`,{class:`op40`},`|`,-1),v($,{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]||=c(`span`,{class:`op40`},`|`,-1),v(X,{duration:e.duration,class:`flex gap-1 items-center px1`,title:`Total build cost: ${y(q)(e.duration,!0)}`},{default:m(()=>[...n[0]||=[c(`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(s({__name:`PluginFlowTimeline`,props:{buildMetrics:{}},setup(e){let n=e;function r(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 i=E(()=>r(n.buildMetrics.resolveIdMetrics)),a=E(()=>r(n.buildMetrics.loadMetrics)),o=E(()=>r(n.buildMetrics.transformMetrics)),s=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e[0].timestamp_start}),f=E(()=>{let e=n.buildMetrics.calls;if(e?.length)return e.at(-1).timestamp_end});return(n,r)=>{let p=he,g=ve;return d(),l(`div`,ye,[h(n.$slots,`header`),c(`div`,be,[c(`div`,xe,[v(p,{active:!1,"class-node-inner":`w60`},{content:m(()=>[c(`div`,{class:`p2 w-full text-center`,onClick:r[0]||=e=>y(J).pluginDetailSelectedHook=``},[v(Z,{name:e.buildMetrics.plugin_name,class:`font-mono text-sm ws-nowrap text-ellipsis line-clamp-1`},null,8,[`name`])])]),_:1})]),c(`div`,Se,[r[5]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[6]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),c(`span`,Ce,[r[4]||=c(`i`,{class:`i-ph-airplane-takeoff-thin text-4 inline-flex`},null,-1),s.value?(d(),l(`time`,{key:0,datetime:new Date(s.value).toISOString()},u(new Date(s.value).toLocaleString()),9,we)):T(``,!0)])]),v(p,{"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},active:y(J).pluginDetailSelectedHook===`resolve`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[1]||=e=>y(J).pluginDetailSelectedHook=`resolve`},[r[7]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magnifying-glass-duotone`}),t(` Resolve Id `)],-1),c(`div`,null,[v(g,{modules:i.value.modules,calls:i.value.calls,duration:i.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`class-node-outer`,`active`]),v(p,{active:y(J).pluginDetailSelectedHook===`load`,"class-node-inner":`w60`,"class-node-outer":`${!a.value.modules&&!a.value.calls?`b-dashed!`:``}`,"class-line-bottom":`left-50%! translate-x--1/2`,class:`pb4 w60`,lines:{bottom:!0}},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[2]||=e=>y(J).pluginDetailSelectedHook=`load`},[r[8]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-upload-simple-duotone`}),t(` Load `)],-1),c(`div`,null,[v(g,{modules:a.value.modules,calls:a.value.calls,duration:a.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),v(p,{active:y(J).pluginDetailSelectedHook===`transform`,"class-node-inner":`w60`,"class-node-outer":`${!o.value.modules&&!o.value.calls?`b-dashed!`:``}`},{content:m(()=>[c(`div`,{class:`flex flex-col gap1 w-full`,onClick:r[3]||=e=>y(J).pluginDetailSelectedHook=`transform`},[r[9]||=c(`span`,{class:`flex items-center justify-center gap-1`},[c(`i`,{class:`i-ph-magic-wand-duotone`}),t(` Transform `)],-1),c(`div`,null,[v(g,{modules:o.value.modules,calls:o.value.calls,duration:o.value.duration},null,8,[`modules`,`calls`,`duration`])])])]),_:1},8,[`active`,`class-node-outer`]),c(`div`,Te,[r[11]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-0 border-r z-flowmap-line h4`},null,-1),r[12]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-10 border-r z-flowmap-line h4`},null,-1),r[13]||=c(`div`,{class:`border-flow-line left-50% translate-x--1/2 absolute top-14 w-2 h-2 border-4 rounded-full`},null,-1),c(`span`,Ee,[r[10]||=c(`i`,{class:`i-ph-airplane-landing-thin text-4 inline-flex`},null,-1),f.value?(d(),l(`time`,{key:0,datetime:new Date(f.value).toISOString()},u(new Date(f.value).toLocaleString()),9,De)):T(``,!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(U(s({__name:`PluginDetailsTable`,props:{modules:{},buildMetrics:{},selectedFields:{},root:{}},setup(i){let a=i,o={resolve:`Resolve Id`,load:`Load`,transform:`Transform`},s=E(()=>a.modules.map(e=>({mod:e,type:K(e.id)}))),f=E(()=>G.filter(e=>s.value.some(t=>e.match.test(t.mod.id)))),p=E(()=>{let e=new Map;for(let{mod:t,type:n}of s.value)e.set(t.id,n.name);return e}),h=r(J.value.pluginDetailsModuleTypes??f.value.map(e=>e.name)),g=E(()=>new Set(h.value)),{state:b,next:x}=A([``,`desc`,`asc`],{initialValue:J.value.pluginDetailsDurationSortType}),S=E(()=>{let e=J.value.pluginDetailSelectedHook,t=J.value.pluginDetailsShowType,n=t!==`all`&&[`load`,`transform`].includes(e),r=new Map(p.value),i=[];for(let o of a.buildMetrics.calls){if(!o.module||e&&o.type!==e||n&&(t===`changed`?o.unchanged:!o.unchanged))continue;let a=r.get(o.module);a||(a=K(o.module).name,r.set(o.module,a)),g.value.has(a)&&i.push(o)}return b.value&&i.sort((e,t)=>b.value===`asc`?e.duration-t.duration:t.duration-e.duration),i});function w(e){h.value?.includes(e.name)?h.value=h.value?.filter(t=>t!==e.name):h.value?.push(e.name),J.value.pluginDetailsModuleTypes=h.value}function D(){x(),J.value.pluginDetailsDurationSortType=b.value}function O(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}return(r,a)=>{let s=ge;return S.value.length&&i.selectedFields.length?(d(),n(ae,{key:0,class:`plugin-details-table min-w-max h-full min-h-0`,role:`table`,items:S.value,"key-prop":`id`,"page-mode":!1,scroller:`fixed`,"item-size":36},{before:m(()=>[c(`div`,ke,[i.selectedFields.includes(`hookName`)?(d(),l(`div`,Ae,` Hook name `)):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,je,[c(`button`,Me,[a[0]||=t(` Module `,-1),v(y(V),null,{popper:m(()=>[c(`div`,Pe,[(d(!0),l(_,null,e(f.value,e=>(d(),l(`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`},[c(`input`,{type:`checkbox`,class:`mr1`,checked:h.value?.includes(e.name),onChange:t=>w(e)},null,40,Ie),c(`div`,{class:C([e.icon,`icon-catppuccin`])},null,2),c(`div`,Le,u(e.description||e.name),1)],8,Fe))),128))])]),default:m(()=>[c(`span`,Ne,[c(`i`,{class:C([`i-ph-funnel-duotone text-xs`,h.value.length===f.value.length?`op50`:`text-primary op100`])},null,2)])]),_:1})])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,Re,[c(`button`,{class:`flex flex-row gap1 items-center justify-center w-full`,onClick:D},[a[1]||=t(` Duration `,-1),c(`span`,ze,[c(`i`,{class:C([`text-xs`,[y(b)===`asc`?`i-ph-arrow-up-duotone`:`i-ph-arrow-down-duotone`,y(b)?`op100 text-primary`:`op50`]])},null,2)])])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Be,` Start Time `)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ve,` End Time `)):T(``,!0)])]),default:m(({item:e,index:t})=>[c(`div`,{role:`row`,class:C([`border-base border-b border-dashed flex flex-row h-9`,[t===S.value.length-1?`border-b-0`:``]])},[i.selectedFields.includes(`hookName`)?(d(),l(`div`,He,[v(ne,{text:o[e.type]},null,8,[`text`])])):T(``,!0),i.selectedFields.includes(`module`)?(d(),l(`div`,Ue,[v(s,{id:e.module,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:i.root,link:O(e.graphModuleId)},null,8,[`id`,`cwd`,`link`])])):T(``,!0),i.selectedFields.includes(`duration`)?(d(),l(`div`,We,[v(X,{duration:e.duration},null,8,[`duration`])])):T(``,!0),i.selectedFields.includes(`startTime`)?(d(),l(`div`,Ge,u(y(Q)(e.timestamp_start)),1)):T(``,!0),i.selectedFields.includes(`endTime`)?(d(),l(`div`,Ke,u(y(Q)(e.timestamp_end)),1)):T(``,!0)],2)]),_:1},8,[`items`])):(d(),l(`div`,qe,[c(`div`,Je,[c(`div`,Ye,[i.selectedFields.length?(d(),l(`p`,Ze,` No data `)):(d(),l(`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(s({__name:`PluginFlow`,props:{modules:{},buildMetrics:{},root:{}},setup(e){let n=e,[i,a]=k(!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=r({selected:J.value.pluginDetailsTableFields,search:!1}),f=E(()=>J.value.pluginDetailsTableFields?J.value.pluginDetailsTableFields:o.map(e=>e.name)),{state:p,next:h}=A([`changed`,`unchanged`,`all`],{initialValue:J.value.pluginDetailsShowType}),g=E(()=>p.value===`all`?`Show Changed`:p.value===`changed`?`Show Unchanged`:`Show All`),_=E(()=>!(![`load`,`transform`].includes(J.value.pluginDetailSelectedHook)||!n.buildMetrics.calls?.filter(e=>e.type===J.value.pluginDetailSelectedHook).filter(e=>e.unchanged).length)),x=E(()=>{let e=n.buildMetrics.calls?.filter(e=>e.type===J.value.pluginDetailSelectedHook).filter(e=>e.unchanged),t=e.reduce((e,t)=>e+t.duration,0);return{count:e.length,duration:t}});b(()=>s.value.selected,e=>{J.value.pluginDetailsTableFields=e});function S(){h(),J.value.pluginDetailsShowType=p.value}return(n,r)=>{let p=Oe,h=Qe;return d(),l(`div`,$e,[c(`div`,et,[y(i)?(d(),l(`div`,tt,[v(p,{"build-metrics":e.buildMetrics},{header:m(()=>[c(`div`,nt,[c(`button`,{class:`w8 h8 rounded-full cursor-pointer hover:bg-active flex items-center justify-center`,onClick:r[0]||=e=>y(a)(!1)},[...r[3]||=[c(`i`,{class:`i-ph-sidebar-simple-duotone inline-flex op50`},null,-1)]])])]),_:1},8,[`build-metrics`])])):T(``,!0),c(`div`,rt,[c(`div`,it,[c(`div`,at,[y(i)?T(``,!0):(d(),l(`button`,{key:0,class:`w8 h8 rounded-full cursor-pointer mr1 hover:bg-active flex items-center justify-center`,onClick:r[1]||=e=>y(a)(!0)},[...r[4]||=[c(`i`,{class:`i-ph-sidebar-duotone inline-flex op50`},null,-1)]])),v(ue,{modelValue:s.value,"onUpdate:modelValue":r[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`])]),_.value?(d(),l(`div`,ot,[c(`p`,st,[v($,{number:x.value.count},null,8,[`number`]),r[5]||=t(` module unchanged, but cost `,-1),v(X,{duration:x.value.duration},null,8,[`duration`])]),c(`button`,{class:`rounded-md px2 py1 select-none h-full border border-base rounded-lg hover:bg-active`,title:g.value,onClick:S},[c(`div`,lt,u(g.value),1)],8,ct)])):T(``,!0)]),c(`div`,ut,[v(h,{modules:e.modules,"build-metrics":e.buildMetrics,"selected-fields":f.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=s({__name:`ChartNavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let r=t,i=n,a=E(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(d(),l(`div`,ft,[(d(!0),l(_,null,e(a.value,(e,t)=>(d(),l(_,{key:e.id},[t>0?(d(),l(`div`,pt)):T(``,!0),c(`button`,{class:`hover:bg-active rounded px1`,onClick:t=>i(`select`,e)},[c(`span`,null,u(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=s({__name:`PluginsSunburst`,props:{graph:{},selected:{}},emits:[`select`],setup(n,{emit:r}){let i=n,a=r,o=p(`el`);w(()=>o.value?.append(i.graph.el));function s(e){return de(i.graph.options.getColor?.(e)||`#000`)}return(r,i)=>{let p=x(`tooltip`);return d(),l(`div`,gt,[c(`div`,{ref_key:`el`,ref:o,class:`w-500px`},null,512),c(`div`,_t,[v(ht,{class:`border-b border-base py2`,selected:n.selected,options:n.graph.options,onSelect:i[0]||=e=>a(`select`,e)},null,8,[`selected`,`options`]),n.selected?(d(),l(`div`,vt,[(d(!0),l(_,null,e(n.selected.children,e=>(d(),l(_,{key:e.id},[c(`button`,{class:`ws-nowrap text-nowrap text-left overflow-hidden text-ellipsis text-sm hover:bg-active rounded px2`,onClick:t=>a(`select`,e)},[e.meta?.type===`hook`?(d(),l(`div`,bt,[i[1]||=c(`i`,{class:`i-ph-function-duotone inline-flex`},null,-1),c(`span`,xt,u(e.text),1)])):h(r.$slots,`module`,{child:e},()=>[c(`span`,null,u(e.text||e.id),1)],void 0,1)],8,yt),c(`button`,{class:`relative flex gap-1 items-center hover:bg-active rounded`,onClick:t=>a(`select`,e)},[c(`div`,{class:`h-5 rounded shadow border border-base`,style:f({background:s(e),width:`${e.size/n.selected.size*100}%`})},null,4),v(X,{duration:e.size,class:`text-xs`},null,8,[`duration`]),e.children.length>0&&e.meta?.type!==`hook`?g((d(),l(`div`,{key:0,title:`${e.children.length} dependencies`,class:`text-xs op-fade`},[t(` (`+u(e.children.length)+`) `,1)],8,Ct)),[[p,`${e.children.length} dependencies`]]):T(``,!0)],8,St)],64))),128))])):T(``,!0)])])}}});function Tt(e){let{data:t,nameKey:n,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=e,f=i(void 0),p=i(void 0),m=r(void 0),h=i(void 0),g,_=E(()=>{if(e.tree)return e.tree.value;let r=y(t),i=new Map,a=0,o={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!r?.length)return{map:i,root:o,maxDepth:a};let u=[];u.unshift(()=>{o.size+=o.children.reduce((e,t)=>e+t.size,0),o.subtext=Y(o.size).join(` `),o.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function d(e,t,n,r,o){if(i.has(t))return i.get(t);o>a&&(a=o);let s={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return i.set(t,s),r.children.push(s),u.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=Y(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:Y(t).join(` `),children:[],meta:{...e,path:``,type:l},parent:s}),s.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),s}function f(e){let t=e[n].split(`/`).filter(Boolean),r=o,a=``,c=0;t.forEach((o,u)=>{if(a+=(a?`/`:``)+o,c++,u===t.length-1){let t={id:e[n],text:o,size:e[s],sizeSelf:e[s],subtext:Y(e[s]).join(` `),children:[],meta:{...e,path:o,type:l}};r.children.push(t),i.set(e[n],t)}else r=d(e,a,o,r,c)})}return r.forEach(f),u.forEach(e=>e()),{map:i,root:o,maxDepth:a}}),v=E(()=>({animate:J.value.chartAnimation,palette:{stroke:H.value?`#222`:`#555`,fg:H.value?`#fff`:`#000`,bg:H.value?`#111`:`#fff`},getColor:pe(_.value.root,H.value?.8:.9,H.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){m.value=e?.meta,e?.children.length||(e=e?.parent),h.value?.select(e,t)}function S(){g?.(),p.value=_.value.root,d?.(),a(()=>{let e=m.value&&_.value.map.get(m.value[n])||null;e&&x(e,!1)}),g=()=>{h.value?.dispose(),h.value=void 0,m.value=void 0}}return a(()=>{b(()=>[_.value,v.value],()=>{S()},{deep:!0,immediate:!1}),S()}),o(()=>{g?.()}),{tree:_,chartOptions:v,graph:h,nodeHover:f,nodeSelected:p,selectedNode:m,selectNode:x,buildGraph:S}}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(s({__name:`PluginDetailsLoader`,props:{plugin:{},query:{},modules:{},root:{}},emits:[`close`],setup(e,{emit:r}){let i=e,a=r,o=te(),{state:s,isLoading:f,execute:p}=P(async()=>await o.value.call(`vite:inspect:get-plugin-details`,i.query,i.plugin),null),h=O(()=>{p()},100);b(()=>[i.query.vite,i.query.env,i.plugin],()=>{p()}),M(()=>{h()});let g=E(()=>{let e=new Set;return s.value?.calls?.filter(t=>!e.has(t.module)&&(e.add(t.module),!0))??[]}),x=E(()=>s.value?.loadMetrics.reduce((e,t)=>e+t.duration,0)),S=E(()=>s.value?.transformMetrics.reduce((e,t)=>e+t.duration,0)),w=E(()=>s.value?.resolveIdMetrics.reduce((e,t)=>e+t.duration,0)),k=E(()=>s.value?.calls?.reduce((e,t)=>e+t.duration,0)),ee=E(()=>i.modules.map(e=>({mod:e,path:me(e.id,i.root),type:K(e.id)}))),A=E(()=>G.filter(e=>ee.value.some(t=>e.match.test(t.mod.id))));function j(e){return e?`/graph?module=${encodeURIComponent(e)}`:!1}let N=E(()=>{let e=new Map;if(!s.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=oe(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=>!A.value.some(t=>K(e.module).name===t.name));return[...A.value.map((r,i)=>{let a=n.filter(e=>K(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`,s.value.resolveIdMetrics),i=n(`loads`,s.value.loadMetrics),a=n(`transforms`,s.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":x.value,"~resolves":w.value,"~transforms":S.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}}),L=D(F()),{tree:R,chartOptions:z,graph:B,nodeHover:V,nodeSelected:H,selectedNode:U,selectNode:W,buildGraph:ne}=Tt({data:[],tree:N,nameKey:`id`,sizeKey:`duration`,rootText:`Project`,graphOptions:{onClick(e){e&&(V.value=e),U.value=e?.meta},onHover(e){e&&(V.value=e),e===null&&(V.value=void 0)},onLeave(){V.value=void 0},onSelect(e){H.value=e||R.value.root,U.value=e?.meta},getSubtext(e){return q(e.size,!0)}},onUpdate(){B.value=new ie(R.value.root,z.value)}});return b(()=>J.value.pluginDetailsViewType,()=>{ne()}),(r,i)=>{let o=I,p=dt,h=ge,b=le;return d(),l(_,null,[y(f)?(d(),n(o,{key:0})):y(s)?.calls?.length?(d(),l(`div`,Et,[v(se,{class:`absolute right-2 top-1.5`,onClick:i[0]||=e=>a(`close`)}),c(`div`,Dt,[c(`div`,Ot,[v(Z,{name:y(s)?.plugin_name},null,8,[`name`])]),c(`div`,kt,[v(X,{duration:w.value,class:`flex gap-1 items-center`,title:`Resolve Id hooks cost: ${y(q)(w.value,!0)}`},{default:m(()=>[...i[3]||=[c(`span`,{class:`i-ph-magnifying-glass-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(X,{duration:x.value,class:`flex gap-1 items-center`,title:`Load hooks cost: ${y(q)(x.value,!0)}`},{default:m(()=>[...i[4]||=[c(`span`,{class:`i-ph-upload-simple-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),v(X,{duration:S.value,class:`flex gap-1 items-center`,title:`Transform hooks cost: ${y(q)(S.value,!0)}`},{default:m(()=>[...i[5]||=[c(`span`,{class:`i-ph-magic-wand-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[7]||=c(`span`,{class:`op40`},`|`,-1),v(X,{duration:k.value,class:`flex gap-1 items-center`,title:`Total build cost: ${y(q)(k.value,!0)}`},{default:m(()=>[...i[6]||=[c(`span`,{class:`i-ph-clock-duotone inline-block`},null,-1)]]),_:1},8,[`duration`,`title`]),i[8]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:g.value.length,icon:`i-catppuccin-java-class-abstract`,color:`transparent color-scale-neutral`,title:`Module processed: ${g.value.length}`},null,8,[`number`,`title`]),i[9]||=c(`span`,{class:`op40`},`|`,-1),v($,{number:y(s)?.calls?.length??0,icon:`i-ph-arrow-counter-clockwise`,color:`transparent color-scale-neutral`,title:`Total calls: ${y(s)?.calls?.length??0}`},null,8,[`number`,`title`])]),c(`div`,At,[c(`button`,{class:C([y(J).pluginDetailsViewType===`flow`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[1]||=e=>y(J).pluginDetailsViewType=`flow`},[...i[10]||=[c(`div`,{class:`i-ph-git-branch-duotone rotate-180`},null,-1),t(` Build Flow `,-1)]],2),c(`button`,{class:C([y(J).pluginDetailsViewType===`sunburst`?`text-primary`:``,`flex gap-2 items-center justify-center px2 py1 w-40 border border-base rounded-lg hover:bg-active`]),onClick:i[2]||=e=>y(J).pluginDetailsViewType=`sunburst`},[...i[11]||=[c(`div`,{"i-ph-chart-sunburst-duotone":``},null,-1),t(` Sunburst `,-1)]],2)])]),c(`div`,jt,[y(J).pluginDetailsViewType===`flow`?(d(),n(p,{key:0,modules:e.modules,"build-metrics":y(s),root:e.root},null,8,[`modules`,`build-metrics`,`root`])):T(``,!0),y(J).pluginDetailsViewType===`sunburst`&&y(B)?(d(),n(wt,{key:1,graph:y(B),selected:y(H),onSelect:y(W)},{module:m(({child:t})=>[v(h,{id:t.text,class:`w-full border-none ws-nowrap hover:bg-active border border-base rounded block px2 py1`,cwd:e.root,link:j(t.meta?.graphModuleId)},null,8,[`id`,`cwd`,`link`])]),_:1},8,[`graph`,`selected`,`onSelect`])):T(``,!0)])])):(d(),l(`div`,Mt,[...i[12]||=[c(`span`,{class:`italic op50`},` No data `,-1)]])),v(b,{"hover-x":L.x,"hover-y":L.y},{default:m(()=>[y(V)?(d(),l(`div`,Nt,[y(V).meta?.title?(d(),l(`div`,Pt,[t(u(y(V).meta.title)+` `,1),v(X,{duration:y(V).meta.duration},null,8,[`duration`])])):(d(),l(_,{key:1},[y(V).meta?.module?(d(),l(`div`,Ft,[v(h,{id:y(V).meta.module,cwd:e.root,link:!1},null,8,[`id`,`cwd`])])):T(``,!0),y(V).meta?.module?(d(),l(`div`,It,[c(`div`,Lt,[i[13]||=c(`label`,{class:`text-xs opacity-70`},`Start Time`,-1),c(`time`,{datetime:new Date(y(V).meta.timestamp_start).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(Q)(y(V).meta.timestamp_start)),9,Rt)]),c(`div`,zt,[i[14]||=c(`label`,{class:`text-xs opacity-70`},`End Time`,-1),c(`time`,{datetime:new Date(y(V).meta.timestamp_end).toISOString(),class:`font-mono text-xs px1.5 py0.5 rounded`,bg:`base/10`},u(y(Q)(y(V).meta.timestamp_end)),9,Bt)]),c(`div`,Vt,[i[15]||=c(`label`,{class:`text-xs op70`},`Duration`,-1),v(X,{duration:y(V).meta.duration},null,8,[`duration`])])])):(d(),l(`div`,Ht,[v(X,{duration:y(V).meta?.duration},null,8,[`duration`])]))],64))])):T(``,!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=s({__name:`PluginsFlatList`,props:{plugins:{},itemSize:{},pageMode:{type:Boolean,default:!0},scroller:{default:`dynamic`}},setup(e){let t=z();return(n,r)=>(d(),l(`div`,Wt,[v(ae,{items:e.plugins,"key-prop":`plugin_id`,"item-size":e.itemSize,"page-mode":e.pageMode,scroller:e.scroller},{default:m(({item:e})=>[c(`div`,Gt,[v(y(R),{to:{path:y(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:m(()=>[c(`div`,Kt,` #`+u(e.plugin_id),1),c(`span`,qt,[v(Z,{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=s({__name:`plugins`,setup(e){let a=te(),o=z(),s=B(),f=i(null),p=i([]),m=r(!0),h=r(null),g=E(()=>typeof o.query.plugin==`string`?o.query.plugin:void 0),_=r({search:o.query.search||``,selected:o.query.plugin_types?G(o.query.plugin_types):null}),y=E(()=>f.value?.instances[0]),b=E(()=>y.value?.environments[0]||``),x=E(()=>y.value?.root||``),C=E(()=>!y.value?.vite||!b.value?null:{vite:y.value.vite,env:b.value}),w=E(()=>y.value?.plugins.map((e,t)=>F(e,t))??[]),D=E(()=>[...W.filter(e=>w.value.some(t=>e.match.test(t.name))),re]),k=E(()=>{let e=w.value;return _.value.selected&&(e=e.filter(e=>{let t=ce(e.name);return _.value.selected.includes(t.name)})),e}),A=j(()=>k.value,()=>new fe(k.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),P=E(()=>_.value.search?A.value.search(_.value.search).map(e=>e.item):k.value);ee(_.value,e=>{s.replace({query:K({...o.query,search:e.search||void 0,plugin_types:e.selected||void 0})})},{debounce:500});function F(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 R(){g.value&&s.replace({query:{...o.query,plugin:void 0}})}async function V(e={}){e.silent||(m.value=!0),h.value=null;try{f.value=await a.value.call(`vite:inspect:get-metadata`),C.value?p.value=(await a.value.call(`vite:inspect:get-modules-list`,C.value)).map(U):p.value=[]}catch(e){h.value=e}finally{e.silent||(m.value=!1)}}let H=O(()=>{V({silent:!0})},100);function U(e){return{...e,imports:e.deps.map(e=>({module_id:e}))}}function G(e){return Array.isArray(e)?e.map(String):[String(e)]}function K(e){return Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0))}return S(()=>{V()}),M(()=>{H()}),N(`Escape`,e=>{e.preventDefault(),!(!e.isTrusted||e.repeat)&&R()}),(e,r)=>{let i=I,a=Ut;return m.value?(d(),n(i,{key:0,text:`Loading plugins...`})):h.value?(d(),l(`div`,Yt,[r[3]||=c(`div`,{class:`i-ph-warning-duotone text-4xl text-amber`},null,-1),c(`div`,Xt,u(h.value.message),1),c(`button`,{class:`btn-action`,onClick:r[0]||=e=>V()},[...r[2]||=[c(`span`,{class:`i-ph-arrow-clockwise-duotone`},null,-1),t(` Retry `,-1)]])])):(d(),l(`div`,Zt,[c(`div`,Qt,[v(ue,{modelValue:_.value,"onUpdate:modelValue":r[1]||=e=>_.value=e,rules:D.value},null,8,[`modelValue`,`rules`])]),v(Jt,{plugins:P.value??[],scroller:`window`},null,8,[`plugins`]),c(`div`,$t,[c(`span`,en,u(P.value.length)+` of `+u(w.value.length||0),1)]),g.value&&C.value?(d(),l(`div`,{key:0,class:`fixed inset-0 backdrop-blur-8 backdrop-brightness-95 z-panel-content`,onClick:L(R,[`self`])},[(d(),l(`div`,{key:g.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`},[v(a,{plugin:g.value,query:C.value,modules:p.value,root:x.value,onClose:R},null,8,[`plugin`,`query`,`modules`,`root`])]))])):T(``,!0)]))}}});export{tn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"11d612d6-1f0e-4868-b74e-0b9832861e25","timestamp":1787110639372}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"11d612d6-1f0e-4868-b74e-0b9832861e25","timestamp":1787110639372,"prerendered":[]}
|