@vitejs/devtools-rolldown 0.1.13 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/index.mjs +39 -712
  2. package/dist/nitro.json +2 -2
  3. package/dist/public/200.html +1 -1
  4. package/dist/public/404.html +1 -1
  5. package/dist/public/_nuxt/{BckBWP8Y.js → 5SREwa_J.js} +1 -1
  6. package/dist/public/_nuxt/B5QvmzNX.js +4 -0
  7. package/dist/public/_nuxt/BA4aNJdc.js +1 -0
  8. package/dist/public/_nuxt/{BbMdHIyp.js → BPvXWYcE.js} +1 -1
  9. package/dist/public/_nuxt/BRHdn2TP2.js +1 -0
  10. package/dist/public/_nuxt/{YInJexJm.js → BYcqRSer.js} +1 -1
  11. package/dist/public/_nuxt/{utGBqPQW.js → BodOO8Ge.js} +1 -1
  12. package/dist/public/_nuxt/Bt8oNIjq.js +1 -0
  13. package/dist/public/_nuxt/{CljeSbIq.js → BtFAY2HJ.js} +4 -4
  14. package/dist/public/_nuxt/{r0DxGHyz.js → C1f8uPlQ.js} +1 -1
  15. package/dist/public/_nuxt/C9-K8SRH.js +1 -0
  16. package/dist/public/_nuxt/{BrH7MV2S.js → CJmfH1zY.js} +1 -1
  17. package/dist/public/_nuxt/CJzuZNT1.js +2 -0
  18. package/dist/public/_nuxt/CL3oUTGS2.js +1 -0
  19. package/dist/public/_nuxt/CRfXUi3G.js +3 -0
  20. package/dist/public/_nuxt/CVZqt4yY2.js +1 -0
  21. package/dist/public/_nuxt/CfHRbb-n.js +1 -0
  22. package/dist/public/_nuxt/CjvJJTNy.js +1 -0
  23. package/dist/public/_nuxt/{hkrGm6WL.js → CorBKXDd.js} +1 -1
  24. package/dist/public/_nuxt/{BpHzZqln.js → CpTuuES2.js} +1 -1
  25. package/dist/public/_nuxt/{BKnfiF85.js → CqNyqKYk.js} +1 -1
  26. package/dist/public/_nuxt/{CfMio2JI2.js → CsPVvMxF.js} +1 -1
  27. package/dist/public/_nuxt/CzCoBrqM.js +1 -0
  28. package/dist/public/_nuxt/{wJd4eZyr.js → D0nH_IG_.js} +1 -1
  29. package/dist/public/_nuxt/{BMpbzaZm2.js → DEctdyhd.js} +1 -1
  30. package/dist/public/_nuxt/{ByozAWPX.js → DM5zgFwu.js} +1 -1
  31. package/dist/public/_nuxt/{BKUGy95W.js → DWUsdlci.js} +1 -1
  32. package/dist/public/_nuxt/D_58kiGa.js +1 -0
  33. package/dist/public/_nuxt/{DxL6khwF.js → Dab8rtPt.js} +1 -1
  34. package/dist/public/_nuxt/{DdnjLjA0.js → DlEGTOj9.js} +1 -1
  35. package/dist/public/_nuxt/DmctoHT82.js +1 -0
  36. package/dist/public/_nuxt/{Bgi9Q5oI2.js → DyCHFg1-2.js} +1 -1
  37. package/dist/public/_nuxt/{D5gbExwF.js → EWiwEEMI.js} +1 -1
  38. package/dist/public/_nuxt/{_session_.BcWOaqe_.css → _session_.Dk6Grde1.css} +1 -1
  39. package/dist/public/_nuxt/bh0jgFfK.js +1 -0
  40. package/dist/public/_nuxt/builds/latest.json +1 -1
  41. package/dist/public/_nuxt/builds/meta/325e31f5-a39f-4526-a997-a203cd2d5c81.json +1 -0
  42. package/dist/public/_nuxt/{entry.BbPdpfMZ.css → entry.bUxZ6pRq.css} +1 -1
  43. package/dist/public/_nuxt/error-404.CcKyMNIP.css +1 -0
  44. package/dist/public/_nuxt/error-500.Bsd8omR1.css +1 -0
  45. package/dist/public/_nuxt/{0b3Up9kD.js → hY2iPUYh.js} +1 -1
  46. package/dist/public/_nuxt/{BoT0VeIE2.js → jSaCY0lI2.js} +1 -1
  47. package/dist/public/_nuxt/{BJrTj8Zw.js → lNa1kApa.js} +1 -1
  48. package/dist/public/_nuxt/mLM3LnKH.js +1 -0
  49. package/dist/public/index.html +1 -1
  50. package/package.json +12 -14
  51. package/dist/public/_nuxt/B78U2q4j.js +0 -1
  52. package/dist/public/_nuxt/BTLlCOZ3.js +0 -1
  53. package/dist/public/_nuxt/BfJK_SLU.js +0 -3
  54. package/dist/public/_nuxt/Bw6oKINi.js +0 -1
  55. package/dist/public/_nuxt/C3WaG9_l.js +0 -1
  56. package/dist/public/_nuxt/C6fMHFxG.js +0 -1
  57. package/dist/public/_nuxt/D1VsDu4A.js +0 -1
  58. package/dist/public/_nuxt/D8Vpa9yk2.js +0 -1
  59. package/dist/public/_nuxt/DJz_FUcO.js +0 -1
  60. package/dist/public/_nuxt/DKF2_lrC2.js +0 -1
  61. package/dist/public/_nuxt/DZUBLlU02.js +0 -1
  62. package/dist/public/_nuxt/Db9eNfm22.js +0 -1
  63. package/dist/public/_nuxt/Dddjvfu6.js +0 -1
  64. package/dist/public/_nuxt/DvOe6iF7.js +0 -1
  65. package/dist/public/_nuxt/FPPtwoaF.js +0 -1
  66. package/dist/public/_nuxt/MX5lF8O0.js +0 -1
  67. package/dist/public/_nuxt/builds/meta/13cd8559-86c3-48c3-847a-978c5a89a258.json +0 -1
  68. package/dist/public/_nuxt/error-404.CIXJRNVA.css +0 -1
  69. package/dist/public/_nuxt/error-500.D6HhFSba.css +0 -1
  70. package/dist/public/_nuxt/h4IG5O3d.js +0 -2
  71. package/dist/public/_nuxt/mPjDuzbZ2.js +0 -1
  72. package/dist/public/_nuxt/qiDKcEVG2.js +0 -1
  73. package/dist/public/_nuxt/yaHSMaAX.js +0 -1
  74. /package/dist/public/_nuxt/{D4aX0j39.js → 5tvbNeKa.js} +0 -0
  75. /package/dist/public/_nuxt/{XAUaDDss.js → BUwCbG2W.js} +0 -0
  76. /package/dist/public/_nuxt/{CKJSqDo0.js → CqfNwh25.js} +0 -0
  77. /package/dist/public/_nuxt/{Cvg1SSG2.js → DoJ6DaKu.js} +0 -0
  78. /package/dist/public/_nuxt/{CB2VayxA2.js → qIAw3Eg02.js} +0 -0
@@ -0,0 +1 @@
1
+ import{A as e,B as t,C as n,D as r,Dt as i,Kt as a,M as o,S as s,Ut as c,Z as l,b as u,h as d,k as f,lt as p,q as m,w as h,x as g,xt as _}from"./CRfXUi3G.js";import{C as v,w as y}from"./CpTuuES2.js";import{g as b,v as x}from"./CJmfH1zY.js";import{r as S}from"./CqfNwh25.js";import{a as C,s as w}from"./5SREwa_J.js";import{t as T}from"./CjvJJTNy.js";import{t as ee}from"./BodOO8Ge.js";import{t as E}from"./BPvXWYcE.js";import{t as D}from"./D0nH_IG_.js";import{n as O}from"./DlEGTOj9.js";import{n as k,r as A,t as j}from"./BA4aNJdc.js";import{t as M}from"./DM5zgFwu.js";import{t as N}from"./DEctdyhd.js";import{n as P,r as F,t as I}from"./mLM3LnKH.js";import{n as L,t as R}from"./qIAw3Eg02.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=Object.assign(o({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>{let a=T;return m(),h(`div`,z,[e(j,{items:t.modules,"key-prop":`id`},{default:p(({item:n})=>[g(`div`,{flex:``,pb2:``,onClick:e=>r(`select`,n)},[e(a,{id:n.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:t.link,"disable-tooltip":t.disableTooltip},null,8,[`id`,`session`,`link`,`disable-tooltip`])],8,B)]),_:1},8,[`items`])])}}}),{__name:`ModulesFlatList`}),H={flex:`~ col gap-2`,p4:``},U={flex:``,pb2:``},W={flex:`~ gap-1 wrap`,"text-xs":``},G={flex:`~ auto text-xs wrap`},K={key:0,flex:`~ items-center`},q={key:0,op20:``},J={flex:`~ none gap-1 wrap justify-end`},Y=Object.assign(o({__name:`DetailedList`,props:{session:{},modules:{}},setup(t){let r=t,i=u(()=>{let e=new Map;for(let t of r.modules){let n=t.buildMetrics?.transforms.filter(e=>e.source_code_size!==e.transformed_code_size).filter(e=>e.transformed_code_size);e.set(t.id,n)}return e});return(r,a)=>{let o=M,c=D,u=T;return m(),h(`div`,H,[e(j,{items:t.modules,"key-prop":`id`},{default:p(({item:r})=>[g(`div`,U,[e(u,{id:r.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:p(()=>[g(`div`,W,[g(`ul`,G,[(m(!0),h(d,null,l(i.value.get(r.id),(t,a)=>(m(),h(d,{key:a},[t.source_code_size!==t.transformed_code_size&&t.transformed_code_size?(m(),h(`li`,K,[e(o,{name:t.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),a===i.value.get(r.id).length-1?n(``,!0):(m(),h(`span`,q,`|`))])):n(``,!0)],64))),128))]),a[0]||=g(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),g(`div`,J,[g(`span`,null,[r.buildMetrics?(m(),s(c,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):n(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),{__name:`ModulesDetailedList`}),X=[`d`,`stroke-dasharray`],Z=Object.assign(o({__name:`Graph`,props:{modules:{},session:{}},setup(n){let r=n,a=u(()=>r.modules);return O({modules:a,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:n,scale:r,spacing:o,tree:s,hierarchy:c,collapsedNodes:l,container:d,modulesMap:f,nodes:p,links:m,nodesMap:h,linksMap:g,width:_,height:v,childToParentMap:y,focusOn:b}=e,x=u(()=>a.value.filter(e=>e.importers.length===0));return(e=!0)=>{_.value=window.innerWidth,v.value=window.innerHeight;let a=new Set,u=c({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{a.add(e),n.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!l.has(e.id),hasChildren:!1}))):l.has(e.module.id)?[]:e.module.imports.map(t=>{let r=f.value.get(t.module_id);if(r&&!a.has(r)&&!(y.has(r.id)&&y.get(r.id)!==e.module.id))return a.add(r),n.value&&y.set(r.id,e.module.id),{module:r,import:t,expanded:!l.has(r.id),hasChildren:!1}}).filter(e=>e!==void 0));n.value&&=!1,s().nodeSize([i(o.height),i(o.width)+i(o.gap)])(u);let S=u.descendants();for(let e of S)[e.x,e.y]=[e.y-i(o.width),e.x],e.data.module.imports&&(e.data.hasChildren=e.data.module.imports?.filter(t=>y.get(t.module_id)===e.data.module.id).length>0);let C=Math.min(...S.map(e=>e.x)),w=Math.min(...S.map(e=>e.y));if(C<i(o.margin))for(let e of S)e.x+=Math.abs(C)+i(o.margin);if(w<i(o.margin))for(let e of S)e.y+=Math.abs(w)+i(o.margin);p.value=S,h.clear();for(let e of S)h.set(e.data.module.id,e);let T=u.links().filter(e=>e.source.data.module.id!==`~root`).map(e=>({...e,import:e.source.data.import,id:`${e.source.data.module.id}|${e.target.data.module.id}`}));g.clear();for(let e of T)g.set(e.id,e);m.value=T,t(()=>{_.value=d.value.scrollWidth/r.value+i(o.margin),v.value=d.value.scrollHeight/r.value+i(o.margin);let n=x.value?.[0]?.id;e&&n&&t(()=>{b(n,!1)})})}}}),(t,r)=>{let i=T,o=I;return m(),s(o,{session:n.session,modules:a.value},{default:p(({node:t,nodesRefMap:r})=>[e(i,{id:t.data.module.id,ref:e=>r.set(t.data.module.id,e?.$el),link:!0,session:n.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:p(({link:e,d:t,linkClass:n})=>[g(`path`,{d:t,class:c(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,X)]),_:1},8,[`session`,`modules`])}}}),{__name:`ModulesGraph`}),Q={"of-auto":``,"max-h-screen":``,relative:``},te={flex:`~ col gap-2`,p4:``},ne=Object.assign(o({__name:`Folder`,props:{session:{},modules:{}},setup(t){let r=t,i=u(()=>{if(!r.session.modulesList.length)return{workspace:{children:{},items:[]},nodeModules:{children:{},items:[]},virtual:{children:{},items:[]}};let e=[],t=[],n=[];return r.modules.map(e=>({full:e.id,path:e.path})).forEach(i=>{i.full.startsWith(r.session.meta.cwd)?(i.path.startsWith(`../`)||(i.path=i.full.slice(r.session.meta.cwd.length+1)),e.push(i)):i.full.includes(`node_modules`)?t.push({full:i.full,path:i.full}):i.full.startsWith(`virtual:`)&&n.push(i)}),{workspace:S(e,`Project Root`),nodeModules:S(t,`Node Modules`),virtual:S(n,`Virtual Modules`)}});return(t,r)=>{let a=N;return m(),h(`div`,Q,[g(`div`,te,[Object.keys(i.value.workspace.children).length?(m(),s(a,{key:0,node:i.value.workspace,p:`l3`,icon:`i-catppuccin:folder-dist icon-catppuccin`,"icon-open":`i-catppuccin:folder-dist-open icon-catppuccin`,link:!0},null,8,[`node`])):n(``,!0),Object.keys(i.value.nodeModules.children).length?(m(),h(d,{key:1},[r[0]||=g(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),e(a,{node:i.value.nodeModules,p:`l3`,icon:`i-catppuccin:folder-node icon-catppuccin`,"icon-open":`i-catppuccin:folder-node-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):n(``,!0),Object.keys(i.value.virtual.children).length?(m(),h(d,{key:2},[r[1]||=g(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),e(a,{node:i.value.virtual,p:`l3`,icon:`i-catppuccin:folder-components icon-catppuccin`,"icon-open":`i-catppuccin:folder-components-open icon-catppuccin`,link:!0,open:!1},null,8,[`node`])],64)):n(``,!0)])])}}}),{__name:`ModulesFolder`}),re={sticky:``,"left-4":``,"right-4":``,"top-4":``,"z-panel-nav":``,"p-4":``},$={key:0,h10:``,mr2:``,flex:`~ items-center`},ie={flex:`~ wrap gap-2 items-center`,p2:``,border:`t base`},ae=[`onClick`],oe={key:4,fixed:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},se={op50:``},ce=o({__name:`index`,props:{session:{}},setup(t){let o=t,S=v(),D=y(),O=_({search:S.query.search||``,selected:S.query.file_types?L(S.query.file_types):null,node_modules:S.query.node_modules?L(S.query.node_modules):null}),j=[{label:`List`,value:`list`,icon:`i-ph-list-bullets-duotone`},{label:`Detailed List`,value:`detailed-list`,icon:`i-ph-list-magnifying-glass-duotone`},{label:`Graph`,value:`graph`,icon:`i-ph-graph-duotone`},{label:`Folder`,value:`folder`,icon:`i-ph-folder-duotone`}];x(O.value,e=>{let t={...S.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};D.replace({query:R(t)})},{debounce:500});let M=u(()=>o.session.modulesList.map(e=>({mod:e,path:ee(e.id,o.session.meta.cwd),type:w(e.id)}))),N=u(()=>C.filter(e=>M.value.some(t=>e.match.test(t.mod.id)))),I=u(()=>{let e=M.value;return O.value.selected&&(e=e.filter(e=>{let t=w(e.mod.id);return O.value.selected.includes(t.name)})),O.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&O.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),{pathSelectorVisible:z,selectPathNodes:B,togglePathSelector:H,normalizedGraph:U}=F({onToggle:e=>{O.value.search=e?!1:``},dataMap:u(()=>new Map(o.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=b(()=>I.value,()=>new A(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=u(()=>O.value.search?W.value.search(O.value.search).map(e=>e.item):I.value);function K(e){S.query.module&&D.replace({query:{...S.query,module:void 0}}),E.value.moduleGraphViewType=e}return(o,u)=>{let _=V,v=T,y=P,b=k,x=Y,S=Z,C=ne;return m(),h(`div`,{relative:``,class:c({"max-h-screen of-hidden":i(E).moduleGraphViewType===`graph`})},[g(`div`,re,[e(b,{modelValue:O.value,"onUpdate:modelValue":u[2]||=e=>O.value=e,rules:N.value},r({"search-end":p(()=>[i(E).moduleGraphViewType===`graph`?(m(),h(`div`,$,[g(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:u[1]||=e=>i(H)(!0)},[...u[3]||=[g(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):n(``,!0)]),default:p(()=>[g(`div`,ie,[u[4]||=g(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(m(),h(d,null,l(j,e=>g(`button`,{key:e.value,"btn-action":``,class:c(i(E).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>K(e.value)},[g(`div`,{class:c(e.icon)},null,2),f(` `+a(e.label),1)],10,ae)),64))])]),_:2},[i(z)?{name:`search`,fn:p(()=>[e(y,{session:t.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:i(B),onClose:u[0]||=e=>i(H)(!1)},{list:p(({select:e,data:r})=>[r?.length?(m(),s(_,{key:0,session:t.session,modules:r,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):n(``,!0)]),item:p(({id:n})=>[e(v,{id:n,session:t.session,block:``,"text-nowrap":``,link:!1,"disable-tooltip":!0},null,8,[`id`,`session`])]),_:1},8,[`session`,`data`,`onSelect`])]),key:`0`}:void 0]),1032,[`modelValue`,`rules`])]),i(E).moduleGraphViewType===`list`?(m(),s(_,{key:0,session:t.session,modules:G.value},null,8,[`session`,`modules`])):i(E).moduleGraphViewType===`detailed-list`?(m(),s(x,{key:1,session:t.session,modules:G.value},null,8,[`session`,`modules`])):i(E).moduleGraphViewType===`graph`?(m(),s(S,{key:2,session:t.session,modules:i(U)},null,8,[`session`,`modules`])):(m(),s(C,{key:3,session:t.session,modules:G.value},null,8,[`session`,`modules`])),i(E).moduleGraphViewType===`list`||i(E).moduleGraphViewType===`detailed-list`?(m(),h(`div`,oe,[g(`span`,se,a(G.value.length)+` of `+a(t.session.modulesList.length),1)])):n(``,!0)],2)}}});export{ce as default};
@@ -0,0 +1 @@
1
+ import{A as e,Kt as t,k as n,lt as r,q as i,w as a,x as o}from"./CRfXUi3G.js";import{c as s}from"#entry";import{t as c}from"./DWUsdlci.js";import{t as l}from"./BUwCbG2W.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 s({title:`${g.status} - ${g.statusText} | ${g.appName}`,script:[{innerHTML:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.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;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1,h2{font-size:inherit;font-weight:inherit}a{color: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 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(s,g)=>{let _=c;return i(),a(`div`,u,[o(`div`,d,[o(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:t(l.status)},null,8,f),o(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:t(l.statusText)},null,8,p),o(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:t(l.description)},null,8,m),o(`div`,h,[e(_,{to:`/`,class:`font-medium hover:text-[#00DC82] text-sm underline underline-offset-3`},{default:r(()=>[n(t(l.backHome),1)]),_:1})])])])}}},[[`__scopeId`,`data-v-ef604f91`]]);export{g as default};
@@ -0,0 +1 @@
1
+ import{A as e,C as t,Dt as n,Gt as r,Kt as i,M as a,Q as o,S as s,Ut as c,b as l,lt as u,q as d,tt as f,w as p,x as m}from"./CRfXUi3G.js";import{C as h}from"./CpTuuES2.js";import{a as g}from"#entry";import{t as _}from"./DWUsdlci.js";import{n as v,r as y}from"./5SREwa_J.js";import{n as b,t as x}from"./hY2iPUYh.js";var S=[`textContent`],C=a({__name:`DisplayBadge`,props:{text:{},color:{type:[Boolean,Number],default:!0},as:{},size:{}},setup(e){let t=e,n=l(()=>!t.text||t.color===!1?{}:{color:typeof t.color==`number`?y(t.color):v(t.text),background:typeof t.color==`number`?y(t.color,.1):v(t.text,.1)}),a=l(()=>{switch(t.size||`sm`){case`sm`:return`px-1.5 text-11px leading-1.6em`}return``});return(l,p)=>(d(),s(f(e.as||`span`),{"ws-nowrap":``,rounded:``,class:c(a.value),style:r(n.value)},{default:u(()=>[o(l.$slots,`default`,{},()=>[m(`span`,{textContent:i(t.text)},null,8,S)])]),_:3},8,[`class`,`style`]))}}),w=/^[A-Za-z]:\//;function T(e=``){return e&&e.replace(/\\/g,`/`).replace(w,e=>e.toUpperCase())}var E=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,D=/^\/([A-Za-z]:)?$/;function O(){return typeof process<`u`&&typeof process.cwd==`function`?process.cwd().replace(/\\/g,`/`):`/`}var k=function(...e){e=e.map(e=>T(e));let t=``,n=!1;for(let r=e.length-1;r>=-1&&!n;r--){let i=r>=0?e[r]:O();!i||i.length===0||(t=`${i}/${t}`,n=j(i))}return t=A(t,!n),n&&!j(t)?`/${t}`:t.length>0?t:`.`};function A(e,t){let n=``,r=0,i=-1,a=0,o=null;for(let s=0;s<=e.length;++s){if(s<e.length)o=e[s];else if(o===`/`)break;else o=`/`;if(o===`/`){if(!(i===s-1||a===1))if(a===2){if(n.length<2||r!==2||n[n.length-1]!==`.`||n[n.length-2]!==`.`){if(n.length>2){let e=n.lastIndexOf(`/`);e===-1?(n=``,r=0):(n=n.slice(0,e),r=n.length-1-n.lastIndexOf(`/`)),i=s,a=0;continue}else if(n.length>0){n=``,r=0,i=s,a=0;continue}}t&&(n+=n.length>0?`/..`:`..`,r=2)}else n.length>0?n+=`/${e.slice(i+1,s)}`:n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===`.`&&a!==-1?++a:a=-1}return n}var j=function(e){return E.test(e)},M=function(e,t){let n=k(e).replace(D,`$1`).split(`/`),r=k(t).replace(D,`$1`).split(`/`);if(r[0][1]===`:`&&n[0][1]===`:`&&n[0]!==r[0])return r.join(`/`);let i=[...n];for(let e of i){if(r[0]!==e)break;n.shift(),r.shift()}return[...n.map(()=>`..`),...r].join(`/`)},N={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},P={"font-mono":``,"text-sm":``},F=Object.assign(a({__name:`ModuleId`,props:{id:{},badges:{type:Boolean},icon:{type:Boolean,default:!0},link:{type:[Boolean,String]},minimal:{type:Boolean},kind:{},session:{},cwd:{},disableTooltip:{type:Boolean,default:!1}},setup(r){let a=r,v=h(),y=window.location,S=l(()=>{if(!a.id)return``;let e=a.id.replace(/%2F/g,`/`),t=a.cwd||a.session.meta.cwd,n=t?M(t,e):e;return n.startsWith(`.`)||(n=`./${n}`),n.startsWith(`./`)||/^(?:\.\.\/){1,3}[^.]/.test(n)?n:e}),w=l(()=>`flex items-center`);return(l,h)=>{let T=b,E=x;return d(),s(f(r.link?n(_):`div`),{to:r.link?typeof r.link==`string`?r.link:{path:n(v).path,query:{...n(v).query,module:r.id,chunk:void 0},hash:n(y).hash}:void 0},{default:u(()=>[e(n(g),{"my-auto":``,"text-sm":``,"font-mono":``,block:``,"w-full":``,triggers:[`hover`],delay:1200,disabled:r.disableTooltip||(a.id?.length||0)<30,placement:`bottom-start`},{popper:u(()=>[m(`span`,P,i(a.id),1)]),default:u(()=>[r.id?(d(),p(`div`,{key:0,class:c(w.value)},[r.icon?(d(),s(T,{key:0,filename:r.id,"mr1.5":``},null,8,[`filename`])):t(``,!0),m(`span`,N,[e(E,{path:S.value,minimal:r.minimal},null,8,[`path`,`minimal`])]),o(l.$slots,`default`),r.kind?(d(),s(C,{key:1,class:`ml1`,text:r.kind},null,8,[`text`])):t(``,!0)],2)):t(``,!0),m(`div`,null,[o(l.$slots,`detail`)])]),_:3},8,[`disabled`])]),_:3},8,[`to`])}}}),{__name:`DisplayModuleId`});export{M as n,C as r,F as t};
@@ -1 +1 @@
1
- import{i as e,r as t}from"./DvOe6iF7.js";import{A as n,C as r,Dt as i,Kt as a,M as o,S as s,Ut as c,Z as l,b as u,ct as d,h as f,k as p,lt as m,q as h,tt as g,w as _,x as v,xt as y,z as b}from"./BfJK_SLU.js";import{t as x}from"./BKUGy95W.js";import{t as S}from"./BJrTj8Zw.js";import{r as C,t as w}from"./C6fMHFxG.js";import{t as T}from"./Bw6oKINi.js";import{t as E}from"./utGBqPQW.js";var D={flex:`~ col gap-2`},O={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},k={"font-mono":``,"font-sm":``},A={key:0,flex:`~ gap-1 items-center`},j={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},M=Object.assign(o({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(e,{emit:t}){let o=e,c=t;function d(e){return E(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let y=u(()=>{let e=o.selectedSessions?.[0];return e?d(e):``});function S(e){return y.value&&y.value!==d(e)}function M(e){o.sessionMode===`compare`&&!S(e)&&c(`select`,e)}return(t,o)=>{let c=w;return h(),_(`div`,D,[(h(!0),_(f,null,l(e.sessions,t=>(h(),_(`div`,{key:t.id,flex:`~ row gap-2`,relative:``},[(h(),s(g(e.sessionMode===`list`?i(x):`button`),b({to:`/session/${t.id}`},{ref_for:!0},e.sessionMode===`list`?{}:{type:`button`},{"aria-label":`Session ${t.id}`,border:`~ rounded-md`,class:e.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[e.selectedSessionIds.includes(t.id)?`border-active`:`border-base`,S(t)||e.selectedSessions.length===2&&!e.selectedSessionIds.includes(t.id)?`op50`:`hover:bg-active`],flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(t)}),{default:m(()=>[v(`div`,O,[o[0]||=v(`div`,{"i-ph-hash-duotone":``},null,-1),p(` `+a(t.id),1)]),v(`div`,k,a(t.meta.cwd),1),t.meta.inputs[0]?(h(),_(`div`,A,[n(c,{id:t.meta.inputs[0].filename,cwd:t.meta.cwd},null,8,[`id`,`cwd`]),n(C,{text:t.meta.inputs[0].name||`entry`},null,8,[`text`]),t.meta.inputs.length>1?(h(),_(`span`,j,` +`+a(t.meta.inputs.length-1),1)):r(``,!0)])):r(``,!0),n(T,{timestamp:t.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1040,[`to`,`aria-label`,`class`,`onClick`]))]))),128))])}}}),{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={key:0,op50:``},F={key:1,op50:``},I={relative:``,flex:`~ col gap3 items-center`},L={key:2,fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},R={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},z=[`title`,`onClick`],B={key:3,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},V={flex:`~ justify-center`,p2:``},H={key:1,op80:``,"text-sm":``},U=o({__name:`index`,async setup(o){let g,b,C=y(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=y([]),E=u(()=>T.value.map(e=>e.id).sort()),D=u(()=>T.value.toSorted((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=t(),k=([g,b]=d(()=>O.value.call(`vite:rolldown:list-sessions`)),g=await g,b(),g);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(t,o)=>{let u=e,d=M,g=S,y=x;return h(),_(`div`,N,[n(u),i(k).length?(h(),_(`p`,P,a(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1)):(h(),_(`p`,F,` No sessions yet, run a build to get started. `)),v(`div`,I,[n(d,{"session-mode":C.value,sessions:i(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),i(k).length?(h(),_(`div`,L,[v(`div`,R,[(h(),_(f,null,l(w,e=>v(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:c({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[v(`span`,{class:c([e.icon,`text-sm`])},null,2)],10,z)),64))])])):r(``,!0),T.value.length>0&&C.value===`compare`?(h(),_(`div`,B,[n(g,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),v(`div`,V,[T.value.length===2?(h(),s(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:m(()=>[...o[0]||=[p(` Compare `,-1)]]),_:1},8,[`to`])):(h(),_(`div`,H,` Select one more session to compare. `))])])):r(``,!0)])}}});export{U as default};
1
+ import{i as e,r as t}from"./B5QvmzNX.js";import{A as n,C as r,Dt as i,Kt as a,M as o,S as s,Ut as c,Z as l,b as u,ct as d,h as f,k as p,lt as m,q as h,tt as g,w as _,x as v,xt as y,z as b}from"./CRfXUi3G.js";import{t as x}from"./DWUsdlci.js";import{t as S}from"./lNa1kApa.js";import{r as C,t as w}from"./CjvJJTNy.js";import{t as T}from"./Bt8oNIjq.js";import{t as E}from"./BodOO8Ge.js";var D={flex:`~ col gap-2`},O={flex:`~ gap-1 items-center`,"font-mono":``,op50:``,"text-sm":``},k={"font-mono":``,"font-sm":``},A={key:0,flex:`~ gap-1 items-center`},j={key:0,op50:``,"text-xs":``,border:`~ base rounded-md`,px1:``,"font-mono":``},M=Object.assign(o({__name:`SessionSelector`,props:{sessionMode:{},sessions:{},selectedSessionIds:{},selectedSessions:{}},emits:[`select`],setup(e,{emit:t}){let o=e,c=t;function d(e){return E(e.meta.inputs[0]?.filename??``,e.meta.cwd).path}let y=u(()=>{let e=o.selectedSessions?.[0];return e?d(e):``});function S(e){return y.value&&y.value!==d(e)}function M(e){o.sessionMode===`compare`&&!S(e)&&c(`select`,e)}return(t,o)=>{let c=w;return h(),_(`div`,D,[(h(!0),_(f,null,l(e.sessions,t=>(h(),_(`div`,{key:t.id,flex:`~ row gap-2`,relative:``},[(h(),s(g(e.sessionMode===`list`?i(x):`button`),b({to:`/session/${t.id}`},{ref_for:!0},e.sessionMode===`list`?{}:{type:`button`},{"aria-label":`Session ${t.id}`,border:`~ rounded-md`,class:e.sessionMode===`list`?[`hover:bg-active`,`border-base`]:[e.selectedSessionIds.includes(t.id)?`border-active`:`border-base`,S(t)||e.selectedSessions.length===2&&!e.selectedSessionIds.includes(t.id)?`op50`:`hover:bg-active`],flex:`~ col gap-1`,px4:``,py3:``,"w-full":``,onClick:e=>M(t)}),{default:m(()=>[v(`div`,O,[o[0]||=v(`div`,{"i-ph-hash-duotone":``},null,-1),p(` `+a(t.id),1)]),v(`div`,k,a(t.meta.cwd),1),t.meta.inputs[0]?(h(),_(`div`,A,[n(c,{id:t.meta.inputs[0].filename,cwd:t.meta.cwd},null,8,[`id`,`cwd`]),n(C,{text:t.meta.inputs[0].name||`entry`},null,8,[`text`]),t.meta.inputs.length>1?(h(),_(`span`,j,` +`+a(t.meta.inputs.length-1),1)):r(``,!0)])):r(``,!0),n(T,{timestamp:t.timestamp,pt2:``,"text-sm":``,op50:``},null,8,[`timestamp`])]),_:2},1040,[`to`,`aria-label`,`class`,`onClick`]))]))),128))])}}}),{__name:`PanelSessionSelector`}),N={p4:``,flex:`~ col gap-4`,"items-center":``,"justify-center":``,relative:``},P={key:0,op50:``},F={key:1,op50:``},I={relative:``,flex:`~ col gap3 items-center`},L={key:2,fixed:``,"top-5":``,"right-5":``,flex:`~ col gap2`},R={flex:`~ row justify-around`,w20:``,h8:``,border:`~ base rounded-8`,"of-hidden":``},z=[`title`,`onClick`],B={key:3,fixed:``,"bottom-5":``,"right-5":``,border:`~ base rounded-2`,w100:``,"max-lg:w85":``,"bg-glass":``,"z-panel-content":``},V={flex:`~ justify-center`,p2:``},H={key:1,op80:``,"text-sm":``},U=o({__name:`index`,async setup(o){let g,b,C=y(`list`),w=[{label:`Session List`,icon:`i-ph-list-bullets-duotone`,value:`list`},{label:`Session Compare`,icon:`i-ph-git-diff-duotone`,value:`compare`}],T=y([]),E=u(()=>T.value.map(e=>e.id).sort()),D=u(()=>T.value.toSorted((e,t)=>e.timestamp-t.timestamp).map((e,t)=>({...e,createdAt:new Date(e.timestamp),title:t===0?`Session A`:`Session B`}))),O=t(),k=([g,b]=d(()=>O.value.call(`vite:rolldown:list-sessions`)),g=await g,b(),g);function A(e){E.value.includes(e.id)?T.value=T.value.filter(t=>t.id!==e.id):T.value=[...T.value,e]}return(t,o)=>{let u=e,d=M,g=S,y=x;return h(),_(`div`,N,[n(u),i(k).length?(h(),_(`p`,P,a(C.value===`list`?`Select a build session to get started:`:`Select 2 build sessions to compare:`),1)):(h(),_(`p`,F,` No sessions yet, run a build to get started. `)),v(`div`,I,[n(d,{"session-mode":C.value,sessions:i(k),"selected-session-ids":E.value,"selected-sessions":T.value,onSelect:A},null,8,[`session-mode`,`sessions`,`selected-session-ids`,`selected-sessions`])]),i(k).length?(h(),_(`div`,L,[v(`div`,R,[(h(),_(f,null,l(w,e=>v(`button`,{key:e.value,title:e.label,"flex-1":``,op50:``,flex:`~ items-center justify-center`,class:c({"bg-active text-base op100!":C.value===e.value}),hover:`bg-active text-base op100!`,onClick:t=>C.value=e.value},[v(`span`,{class:c([e.icon,`text-sm`])},null,2)],10,z)),64))])])):r(``,!0),T.value.length>0&&C.value===`compare`?(h(),_(`div`,B,[n(g,{sessions:D.value,class:`flex-col gap0 [&>div]:border-none! [&>first-child]:border-b!`},null,8,[`sessions`]),v(`div`,V,[T.value.length===2?(h(),s(y,{key:0,tag:`button`,to:`/compare/${E.value.join(`,`)}`,"btn-action":``,"rounded-8":``,"text-3":``,flex:`~ justify-center`,w30:``,h8:``},{default:m(()=>[...o[0]||=[p(` Compare `,-1)]]),_:1},8,[`to`])):(h(),_(`div`,H,` Select one more session to compare. `))])])):r(``,!0)])}}});export{U as default};
@@ -1 +1 @@
1
- import{At as e,B as t,Bt as n,Ct as r,Dt as i,E as a,F as o,Ft as s,Ht as c,I as l,It as u,L as d,Lt as f,M as p,Mt as m,Nt as h,Ot as g,Pt as _,Rt as ee,St as te,T as ne,Vt as v,Y as y,b,i as x,jt as re,kt as S,m as C,ot as ie,p as ae,qt as oe,wt as se,xt as ce,y as w,yt as le,zt as ue}from"./BfJK_SLU.js";var de=void 0,T=typeof window<`u`&&window.trustedTypes;if(T)try{de=T.createPolicy(`vue`,{createHTML:e=>e})}catch{}var E=de?e=>de.createHTML(e):e=>e,fe=`http://www.w3.org/2000/svg`,pe=`http://www.w3.org/1998/Math/MathML`,D=typeof document<`u`?document:null,O=D&&D.createElement(`template`),me={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?D.createElementNS(fe,e):t===`mathml`?D.createElementNS(pe,e):n?D.createElement(e,{is:n}):D.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>D.createTextNode(e),createComment:e=>D.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>D.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{O.innerHTML=E(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=O.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},k=`transition`,A=`animation`,j=Symbol(`_vtc`),he={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ge=e({},C,he),_e=(e=>(e.displayName=`Transition`,e.props=ge,e))((e,{slots:t})=>o(ae,ye(e),t)),M=(e,t=[])=>{_(e)?e.forEach(e=>e(...t)):e&&e(...t)},ve=e=>e?_(e)?e.some(e=>e.length>1):e.length>1:!1;function ye(t){let n={};for(let e in t)e in he||(n[e]=t[e]);if(t.css===!1)return n;let{name:r=`v`,type:i,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:m=`${r}-leave-to`}=t,h=be(a),g=h&&h[0],_=h&&h[1],{onBeforeEnter:ee,onEnter:te,onEnterCancelled:ne,onLeave:v,onLeaveCancelled:y,onBeforeAppear:b=ee,onAppear:x=te,onAppearCancelled:re=ne}=n,S=(e,t,n,r)=>{e._enterCancelled=r,P(e,t?d:c),P(e,t?u:s),n&&n()},C=(e,t)=>{e._isLeaving=!1,P(e,f),P(e,m),P(e,p),t&&t()},ie=e=>(t,n)=>{let r=e?x:te,a=()=>S(t,e,n);M(r,[t,a]),Se(()=>{P(t,e?l:o),N(t,e?d:c),ve(r)||we(t,i,g,a)})};return e(n,{onBeforeEnter(e){M(ee,[e]),N(e,o),N(e,s)},onBeforeAppear(e){M(b,[e]),N(e,l),N(e,u)},onEnter:ie(!1),onAppear:ie(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>C(e,t);N(e,f),e._enterCancelled?(N(e,p),Oe(e)):(Oe(e),N(e,p)),Se(()=>{e._isLeaving&&(P(e,f),N(e,m),ve(v)||we(e,i,_,n))}),M(v,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),M(ne,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),M(re,[e])},onLeaveCancelled(e){C(e),M(y,[e])}})}function be(e){if(e==null)return null;if(f(e))return[xe(e.enter),xe(e.leave)];{let t=xe(e);return[t,t]}}function xe(e){return oe(e)}function N(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[j]||(e[j]=new Set)).add(t)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[j];n&&(n.delete(t),n.size||(e[j]=void 0))}function Se(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ce=0;function we(e,t,n,r){let i=e._endId=++Ce,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Te(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Te(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${k}Delay`),a=r(`${k}Duration`),o=Ee(i,a),s=r(`${A}Delay`),c=r(`${A}Duration`),l=Ee(s,c),u=null,d=0,f=0;t===k?o>0&&(u=k,d=o,f=a.length):t===A?l>0&&(u=A,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?k:A:null,f=u?u===k?a.length:c.length:0);let p=u===k&&/\b(?:transform|all)(?:,|$)/.test(r(`${k}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ee(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>De(t)+De(e[n])))}function De(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Oe(e){return(e?e.ownerDocument:document).body.offsetHeight}function ke(e,t,n){let r=e[j];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ae=Symbol(`_vod`),je=Symbol(`_vsh`),Me={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ae]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ne(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ne(e,!0),r.enter(e)):r.leave(e,()=>{Ne(e,!1)}):Ne(e,t))},beforeUnmount(e,{value:t}){Ne(e,t)}};function Ne(e,t){e.style.display=t?e[Ae]:`none`,e[je]=!t}var Pe=Symbol(``),Fe=/(?:^|;)\s*display\s*:/;function Ie(e,t,r){let i=e.style,a=n(r),o=!1;if(r&&!a){if(t)if(n(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();r[t]??Re(i,t,``)}else for(let e in t)r[e]??Re(i,e,``);for(let e in r)e===`display`&&(o=!0),Re(i,e,r[e])}else if(a){if(t!==r){let e=i[Pe];e&&(r+=`;`+e),i.cssText=r,o=Fe.test(r)}}else t&&e.removeAttribute(`style`);Ae in e&&(e[Ae]=o?i.display:``,e[je]&&(i.display=`none`))}var Le=/\s*!important$/;function Re(e,t,n){if(_(n))n.forEach(n=>Re(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Ve(e,t);Le.test(n)?e.setProperty(re(r),n.replace(Le,``),`important`):e[r]=n}}var ze=[`Webkit`,`Moz`,`ms`],Be={};function Ve(e,t){let n=Be[t];if(n)return n;let r=g(t);if(r!==`filter`&&r in e)return Be[t]=r;r=S(r);for(let n=0;n<ze.length;n++){let i=ze[n]+r;if(i in e)return Be[t]=i}return t}var He=`http://www.w3.org/1999/xlink`;function Ue(e,t,n,r,i,a=ue(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(He,t.slice(6,t.length)):e.setAttributeNS(He,t,n):n==null||a&&!m(n)?e.removeAttribute(t):e.setAttribute(t,a?``:v(n)?String(n):n)}function We(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?E(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=m(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function F(e,t,n,r){e.addEventListener(t,n,r)}function Ge(e,t,n,r){e.removeEventListener(t,n,r)}var Ke=Symbol(`_vei`);function qe(e,t,n,r,i=null){let a=e[Ke]||(e[Ke]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Ye(t);r?F(e,n,a[t]=$e(r,i),s):o&&(Ge(e,n,o,s),a[t]=void 0)}}var Je=/(?:Once|Passive|Capture)$/;function Ye(e){let t;if(Je.test(e)){t={};let n;for(;n=e.match(Je);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):re(e.slice(2)),t]}var Xe=0,Ze=Promise.resolve(),Qe=()=>Xe||=(Ze.then(()=>Xe=0),Date.now());function $e(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;w(et(e,n.value),t,5,[e])};return n.value=e,n.attached=Qe(),n}function et(e,t){if(_(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var tt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,nt=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?ke(e,i,s):t===`style`?Ie(e,r,i):ee(t)?u(t)||qe(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):rt(e,t,i,s))?(We(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ue(e,t,i,s,o,t!==`value`)):e._isVueCE&&(it(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!n(i)))?We(e,g(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),Ue(e,t,i,s))};function rt(e,t,r,i){if(i)return!!(t===`innerHTML`||t===`textContent`||t in e&&tt(t)&&s(r));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return tt(t)&&n(r)?!1:t in e}function it(e,t){let n=e._def.props;if(!n)return!1;let r=g(t);return Array.isArray(n)?n.some(e=>g(e)===r):Object.keys(n).some(e=>g(e)===r)}var at=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return _(t)?e=>h(t,e):t};function ot(e){e.target.composing=!0}function st(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var ct=Symbol(`_assign`);function lt(e,t,n){return t&&(e=e.trim()),n&&(e=c(e)),e}var ut={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ct]=at(i);let a=r||i.props&&i.props.type===`number`;F(e,t?`change`:`input`,t=>{t.target.composing||e[ct](lt(e.value,n,a))}),(n||a)&&F(e,`change`,()=>{e.value=lt(e.value,n,a)}),t||(F(e,`compositionstart`,ot),F(e,`compositionend`,st),F(e,`change`,st))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[ct]=at(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?c(e.value):e.value,l=t??``;if(s===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},dt=[`ctrl`,`shift`,`alt`,`meta`],ft={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>dt.some(n=>e[`${n}Key`]&&!t.includes(n))},pt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=ft[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},mt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},ht=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=re(n.key);if(t.some(e=>e===r||mt[e]===r))return e(n)}))},gt=e({patchProp:nt},me),_t,vt=!1;function yt(){return _t||=a(gt)}function bt(){return _t=vt?_t:ne(gt),vt=!0,_t}var xt=((...e)=>{let t=yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=wt(e);if(!r)return;let i=t._component;!s(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ct(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),St=((...e)=>{let t=bt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=wt(e);if(t)return n(t,!0,Ct(t))},t});function Ct(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function wt(e){return n(e)?document.querySelector(e):e}var Tt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Et=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Dt=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ot(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){kt(e);return}return t}function kt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function At(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!Dt.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Tt.test(e)||Et.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Ot)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var jt=/#/g,Mt=/&/g,Nt=/\//g,Pt=/=/g,Ft=/\?/g,It=/\+/g,Lt=/%5e/gi,Rt=/%60/gi,zt=/%7c/gi,Bt=/%20/gi,Vt=/%2f/gi,Ht=/%252f/gi;function Ut(e){return encodeURI(``+e).replace(zt,`|`)}function Wt(e){return Ut(typeof e==`string`?e:JSON.stringify(e)).replace(It,`%2B`).replace(Bt,`+`).replace(jt,`%23`).replace(Mt,`%26`).replace(Rt,"`").replace(Lt,`^`).replace(Nt,`%2F`)}function Gt(e){return Wt(e).replace(Pt,`%3D`)}function Kt(e){return Ut(e).replace(jt,`%23`).replace(Ft,`%3F`).replace(Ht,`%2F`).replace(Mt,`%26`).replace(It,`%2B`)}function I(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function qt(e){return I(e.replace(Vt,`%252F`))}function Jt(e){return I(e.replace(It,` `))}function Yt(e){return I(e.replace(It,` `))}function Xt(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=Jt(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Yt(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Zt(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Gt(e)}=${Wt(t)}`).join(`&`):`${Gt(e)}=${Wt(t)}`:Gt(e)}function Qt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Zt(t,e[t])).filter(Boolean).join(`&`)}var $t=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,en=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,tn=/^([/\\]\s*){2,}[^/\\]/,nn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,rn=/\/$|\/\?|\/#/,an=/^\.?\//;function L(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?$t.test(e):en.test(e)||(t.acceptRelative?tn.test(e):!1)}function on(e){return!!e&&nn.test(e)}function sn(e=``,t){return t?rn.test(e):e.endsWith(`/`)}function R(e=``,t){if(!t)return(sn(e)?e.slice(0,-1):e)||`/`;if(!sn(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function cn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(sn(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function ln(e,t){if(fn(t)||L(e))return e;let n=R(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return mn(n,e)}function un(e,t){if(fn(t))return e;let n=R(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function dn(e,t){let n=vn(e);return n.search=Qt({...Xt(n.search),...t}),bn(n)}function fn(e){return!e||e===`/`}function pn(e){return e&&e!==`/`}function mn(e,...t){let n=e||``;for(let e of t.filter(e=>pn(e)))if(n){let t=e.replace(an,``);n=cn(n)+t}else n=e;return n}function hn(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&L(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function gn(e,t){return I(R(e))===I(R(t))}var _n=Symbol.for(`ufo:protocolRelative`);function vn(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!L(e,{acceptRelative:!0}))return t?vn(t+e):yn(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=yn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[_n]:!r}}function yn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function bn(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[_n]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function xn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Sn(e,t,n=`.`,r){if(!xn(t))return Sn(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:xn(a)&&xn(i[t])?i[t]=Sn(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Cn(e){return(...t)=>t.reduce((t,n)=>Sn(t,n,``,e),{})}var wn=Cn();function Tn(e,t){try{return t in e}catch{return!1}}var En=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:jn(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=An(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function Dn(e){if(typeof e==`string`)return new En(e);if(On(e))return e;let t=new En(e.message??e.statusMessage??``,{cause:e.cause||e});if(Tn(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=jn(e.statusCode,t.statusCode):e.status&&(t.statusCode=jn(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;An(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function On(e){return e?.constructor?.__h3_error__===!0}var kn=/[^\u0009\u0020-\u007E]/g;function An(e=``){return e.replace(kn,``)}function jn(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var Mn=Symbol(`layout-meta`),Nn=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var z=()=>x()?.$router,Pn=()=>l()?d(Nn,x()._route):x()._route;function Fn(e){return e}var In=()=>{try{if(x()._processingMiddleware)return!0}catch{return!1}return!1},Ln=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Rn(e):z().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=L(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&on(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=In();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=vn(e);return{path:t,...n&&{query:Xt(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=z(),s=x();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let c=typeof e==`string`?zn(e):e;return t?.replace?o.replace(c):o.push(c)};function Rn(e){return dn(e.path||``,e.query||{})+(e.hash||``)}function zn(e){let t=vn(e);return Kt(qt(t.pathname))+t.search+t.hash}var Bn=`__nuxt_error`,Vn=()=>se(x().payload,`error`),Hn=e=>{let t=Gn(e);try{let e=Vn();x().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Un=async(e={})=>{let t=x(),n=Vn();t.callHook(`app:error:cleared`,e),e.redirect&&await z().replace(e.redirect),n.value=void 0},Wn=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Gn=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Dn(e);return Object.defineProperty(t,Bn,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t},B=typeof document<`u`;function Kn(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function qn(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Kn(e.default)}var V=Object.assign;function Jn(e,t){let n={};for(let r in t){let i=t[r];n[r]=H(i)?i.map(e):e(i)}return n}var Yn=()=>{},H=Array.isArray;function Xn(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var U=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Zn=Symbol(``);U.MATCHER_NOT_FOUND,U.NAVIGATION_GUARD_REDIRECT,U.NAVIGATION_ABORTED,U.NAVIGATION_CANCELLED,U.NAVIGATION_DUPLICATED;function W(e,t){return V(Error(),{type:e,[Zn]:!0},t)}function G(e,t){return e instanceof Error&&Zn in e&&(t==null||!!(e.type&t))}var Qn=Symbol(``),$n=Symbol(``),er=Symbol(``),tr=Symbol(``),nr=Symbol(``),rr=/#/g,ir=/&/g,ar=/\//g,or=/=/g,sr=/\?/g,cr=/\+/g,lr=/%5B/g,ur=/%5D/g,dr=/%5E/g,fr=/%60/g,pr=/%7B/g,mr=/%7C/g,hr=/%7D/g,gr=/%20/g;function _r(e){return e==null?``:encodeURI(``+e).replace(mr,`|`).replace(lr,`[`).replace(ur,`]`)}function vr(e){return _r(e).replace(pr,`{`).replace(hr,`}`).replace(dr,`^`)}function yr(e){return _r(e).replace(cr,`%2B`).replace(gr,`+`).replace(rr,`%23`).replace(ir,`%26`).replace(fr,"`").replace(pr,`{`).replace(hr,`}`).replace(dr,`^`)}function br(e){return yr(e).replace(or,`%3D`)}function xr(e){return _r(e).replace(rr,`%23`).replace(sr,`%3F`)}function Sr(e){return xr(e).replace(ar,`%2F`)}function K(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Cr=/\/$/,wr=e=>e.replace(Cr,``);function Tr(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Mr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:K(o)}}function Er(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Dr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Or(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&q(t.matched[r],n.matched[i])&&kr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ar(e[n],t[n]))return!1;return!0}function Ar(e,t){return H(e)?jr(e,t):H(t)?jr(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function jr(e,t){return H(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Mr(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var J={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Nr=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Pr=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Fr(e){if(!e)if(B){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),wr(e)}var Ir=/^[^#]+#/;function Lr(e,t){return e.replace(Ir,`#`)+t}function Rr(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var zr=()=>({left:window.scrollX,top:window.scrollY});function Br(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Rr(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Vr(e,t){return(history.state?history.state.position-t:-1)+e}var Hr=new Map;function Ur(e,t){Hr.set(e,t)}function Wr(e){let t=Hr.get(e);return Hr.delete(e),t}function Gr(e){return typeof e==`string`||e&&typeof e==`object`}function Kr(e){return typeof e==`string`||typeof e==`symbol`}function qr(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(cr,` `),i=r.indexOf(`=`),a=K(i<0?r:r.slice(0,i)),o=i<0?null:K(r.slice(i+1));if(a in t){let e=t[a];H(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Jr(e){let t=``;for(let n in e){let r=e[n];if(n=br(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(H(r)?r.map(e=>e&&yr(e)):[r&&yr(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Yr(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=H(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(W(U.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Gr(e)?c(W(U.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Xr(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Kn(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=qn(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Zr(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>q(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>q(e,s))||i.push(s))}return[n,r,i]}var Qr=()=>location.protocol+`//`+location.host;function $r(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Dr(n,``)}return Dr(n,e)+r+i}function ei(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=$r(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Nr.pop,direction:u?u>0?Pr.forward:Pr.back:Pr.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(V({},e.state,{scroll:zr()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ti(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?zr():null}}function ni(e){let{history:t,location:n}=window,r={value:$r(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Qr()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,V({},t.state,ti(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=V({},i.value,t.state,{forward:e,scroll:zr()});a(o.current,o,!0),a(e,V({},ti(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ri(e){e=Fr(e);let t=ni(e),n=ei(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=V({location:``,base:e,go:r,createHref:Lr.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function ii(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ri(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),ai={type:Z.Static,value:``},oi=/[a-zA-Z0-9_]/;function si(e){if(!e)return[[]];if(e===`/`)return[[ai]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:oi.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ci=`[^/]+?`,li={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),ui=/[.+*?^${}()[\]/\\]/g;function di(e,t){let n=V({},li,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(ui,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ci;if(u!==ci){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(H(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=H(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function fi(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function pi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=fi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(mi(r))return 1;if(mi(i))return-1}return i.length-r.length}function mi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var hi={strict:!1,end:!0,sensitive:!1};function gi(e,t,n){let r=V(di(si(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function _i(e,t){let n=[],r=new Map;t=Xn(hi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=yi(e);s.aliasOf=r&&r.record;let l=Xn(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(yi(V({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=gi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!xi(d)&&o(e.name)),Ti(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Yn}function o(e){if(Kr(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ci(e,n);n.splice(t,0,e),e.record.name&&!xi(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw W(U.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=V(vi(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&vi(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw W(U.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=V({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Si(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function vi(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function yi(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bi(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function bi(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function xi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Si(e){return e.reduce((e,t)=>V(e,t.meta),{})}function Ci(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;pi(e,t[i])<0?r=i:n=i+1}let i=wi(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function wi(e){let t=e;for(;t=t.parent;)if(Ti(t)&&pi(e,t)===0)return t}function Ti({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ei(e){let t=d(er),n=d(tr),r=b(()=>{let n=i(e.to);return t.resolve(n)}),a=b(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(q.bind(null,i));if(o>-1)return o;let s=ji(e[t-2]);return t>1&&ji(i)===s&&a[a.length-1].path!==s?a.findIndex(q.bind(null,e[t-2])):o}),o=b(()=>a.value>-1&&Ai(n.params,r.value.params)),s=b(()=>a.value>-1&&a.value===n.matched.length-1&&kr(n.params,r.value.params));function c(n={}){if(ki(n)){let n=t[i(e.replace)?`replace`:`push`](i(e.to)).catch(Yn);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:b(()=>r.value.href),isActive:o,isExactActive:s,navigate:c}}function Di(e){return e.length===1?e[0]:e}var Oi=p({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ei,setup(e,{slots:t}){let n=le(Ei(e)),{options:r}=d(er),i=b(()=>({[Mi(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Mi(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Di(t.default(n));return e.custom?r:o(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ki(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ai(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!H(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ji(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Mi=(e,t,n)=>e??t??n,Ni=p({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=d(nr),a=b(()=>e.route||r.value),s=d($n,0),c=b(()=>{let e=i(s),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=b(()=>a.value.matched[c.value]);y($n,b(()=>c.value+1)),y(Qn,l),y(nr,a);let u=ce();return ie(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!q(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=a.value,i=e.name,s=l.value,c=s&&s.components[i];if(!c)return Pi(n.default,{Component:c,route:r});let d=s.props[i],f=o(c,V({},d?d===!0?r.params:typeof d==`function`?d(r):d:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:u}));return Pi(n.default,{Component:f,route:r})||f}}});function Pi(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Fi=Ni;function Ii(e){let n=_i(e.routes,e),a=e.parseQuery||qr,o=e.stringifyQuery||Jr,s=e.history,c=Y(),l=Y(),u=Y(),d=r(J),f=J;B&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let p=Jn.bind(null,e=>``+e),m=Jn.bind(null,Sr),h=Jn.bind(null,K);function g(e,t){let r,i;return Kr(e)?(r=n.getRecordMatcher(e),i=t):i=e,n.addRoute(i,r)}function _(e){let t=n.getRecordMatcher(e);t&&n.removeRoute(t)}function ee(){return n.getRoutes().map(e=>e.record)}function ne(e){return!!n.getRecordMatcher(e)}function v(e,t){if(t=V({},t||d.value),typeof e==`string`){let r=Tr(a,e,t.path),i=n.resolve({path:r.path},t),o=s.createHref(r.fullPath);return V(r,i,{params:h(i.params),hash:K(r.hash),redirectedFrom:void 0,href:o})}let r;if(e.path!=null)r=V({},e,{path:Tr(a,e.path,t.path).path});else{let n=V({},e.params);for(let e in n)n[e]??delete n[e];r=V({},e,{params:m(n)}),t.params=m(t.params)}let i=n.resolve(r,t),c=e.hash||``;i.params=p(h(i.params));let l=Er(o,V({},e,{hash:vr(c),path:i.path})),u=s.createHref(l);return V({fullPath:l,hash:c,query:o===Jr?Yr(e.query):e.query||{}},i,{redirectedFrom:void 0,href:u})}function y(e){return typeof e==`string`?Tr(a,e,d.value.path):V({},e)}function b(e,t){if(f!==e)return W(U.NAVIGATION_CANCELLED,{from:t,to:e})}function x(e){return C(e)}function re(e){return x(V(y(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=y(i):{path:i},i.params={}),V({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=f=v(e),r=d.value,i=e.state,a=e.force,s=e.replace===!0,c=S(n,r);if(c)return C(V(y(c),{state:typeof c==`object`?V({},i,c.state):i,force:a,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!a&&Or(o,r,n)&&(u=W(U.NAVIGATION_DUPLICATED,{to:l,from:r}),D(r,r,!0,!1)),(u?Promise.resolve(u):oe(l,r)).catch(e=>G(e)?G(e,U.NAVIGATION_GUARD_REDIRECT)?e:pe(e):E(e,l,r)).then(e=>{if(e){if(G(e,U.NAVIGATION_GUARD_REDIRECT))return C(V({replace:s},y(e.to),{state:typeof e.to==`object`?V({},i,e.to.state):i,force:a}),t||l)}else e=ce(l,r,!0,s,i);return se(l,r,e),e})}function ie(e,t){let n=b(e,t);return n?Promise.reject(n):Promise.resolve()}function ae(e){let t=k.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function oe(e,t){let n,[r,i,a]=Zr(e,t);n=Xr(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ie.bind(null,e,t);return n.push(o),j(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),j(n)}).then(()=>{n=Xr(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),j(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(H(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),j(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Xr(a,`beforeRouteEnter`,e,t,ae),n.push(o),j(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),j(n)}).catch(e=>G(e,U.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function se(e,t,n){u.list().forEach(r=>ae(()=>r(e,t,n)))}function ce(e,t,n,r,i){let a=b(e,t);if(a)return a;let o=t===J,c=B?history.state:{};n&&(r||o?s.replace(e.fullPath,V({scroll:o&&c&&c.scroll},i)):s.push(e.fullPath,i)),d.value=e,D(e,t,n,o),pe()}let w;function le(){w||=s.listen((e,t,n)=>{if(!A.listening)return;let r=v(e),i=S(r,A.currentRoute.value);if(i){C(V(i,{replace:!0,force:!0}),r).catch(Yn);return}f=r;let a=d.value;B&&Ur(Vr(a.fullPath,n.delta),zr()),oe(r,a).catch(e=>G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_CANCELLED)?e:G(e,U.NAVIGATION_GUARD_REDIRECT)?(C(V(y(e.to),{force:!0}),r).then(e=>{G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Nr.pop&&s.go(-1,!1)}).catch(Yn),Promise.reject()):(n.delta&&s.go(-n.delta,!1),E(e,r,a))).then(e=>{e||=ce(r,a,!1),e&&(n.delta&&!G(e,U.NAVIGATION_CANCELLED)?s.go(-n.delta,!1):n.type===Nr.pop&&G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),se(r,a,e)}).catch(Yn)})}let ue=Y(),de=Y(),T;function E(e,t,n){pe(e);let r=de.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function fe(){return T&&d.value!==J?Promise.resolve():new Promise((e,t)=>{ue.add([e,t])})}function pe(e){return T||(T=!e,le(),ue.list().forEach(([t,n])=>e?n(e):t()),ue.reset()),e}function D(n,r,i,a){let{scrollBehavior:o}=e;if(!B||!o)return Promise.resolve();let s=!i&&Wr(Vr(n.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return t().then(()=>o(n,r,s)).then(e=>e&&Br(e)).catch(e=>E(e,n,r))}let O=e=>s.go(e),me,k=new Set,A={currentRoute:d,listening:!0,addRoute:g,removeRoute:_,clearRoutes:n.clearRoutes,hasRoute:ne,getRoutes:ee,resolve:v,options:e,push:x,replace:re,go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:c.add,beforeResolve:l.add,afterEach:u.add,onError:de.add,isReady:fe,install(e){e.component(`RouterLink`,Oi),e.component(`RouterView`,Fi),e.config.globalProperties.$router=A,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>i(d)}),B&&!me&&d.value===J&&(me=!0,x(s.location).catch(e=>{}));let t={};for(let e in J)Object.defineProperty(t,e,{get:()=>d.value[e],enumerable:!0});e.provide(er,A),e.provide(tr,te(t)),e.provide(nr,d);let n=e.unmount;k.add(e),e.unmount=function(){k.delete(e),k.size<1&&(f=J,w&&w(),w=null,d.value=J,me=!1,T=!1),n()}}};function j(e){return e.reduce((e,t)=>e.then(()=>ae(t)),Promise.resolve())}return A}var Li=(e,t)=>({default:()=>e?o(_e,e===!0?{}:e,t):t.default?.()}),Ri=/(:\w+)\([^)]+\)/g,zi=/(:\w+)[?+*]/g,Bi=/:\w+/g;function Vi(e){let t=e?.meta.key??e.path.replace(Ri,`$1`).replace(zi,`$1`).replace(Bi,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Hi(e,t){return e===t||t===J?!1:Vi(e)===Vi(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function Ui(e){return Array.isArray(e)?e:[e]}function Wi(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ui(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ui(n.onBeforeLeave):void 0});return wn(...t)}var Gi={scrollBehavior(e,t,n){let r=x(),i=z().options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Ki(e.hash),behavior:i}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===J?qi(e,t,n,i):new Promise(a=>{let o=()=>{requestAnimationFrame(()=>a(qi(e,t,n,i)))};r.hooks.hookOnce(`page:loading:end`,()=>{let e=r[`~transitionPromise`];e?e.then(o):o()})})}};function Ki(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function qi(e,t,n,r){if(n)return n;let i=Hi(e,t);return e.hash?{el:e.hash,top:Ki(e.hash),behavior:i?r:`instant`}:{left:0,top:0}}var Ji={hashMode:!1,scrollBehaviorType:`auto`,...Gi},Yi=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Xi=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Zi=e=>{let t=x();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{Yi(()=>e())}):Yi(()=>e())};function Qi(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function $i(e,t=z()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>$i(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}export{hn as A,xt as B,Pn as C,wn as D,Nn as E,cn as F,pt as G,ut as H,un as I,R as L,Xt as M,ln as N,L as O,dn as P,At as R,Rn as S,Mn as T,Me as U,St as V,ht as W,Hn as _,Yi as a,zn as b,Li as c,ii as d,ri as f,Wn as g,Gn as h,Xi as i,mn as j,gn as k,Fi as l,Un as m,$i as n,Ji as o,J as p,Zi as r,Wi as s,Qi as t,Ii as u,Vn as v,z as w,Ln as x,Fn as y,_e as z};
1
+ import{At as e,B as t,Bt as n,Ct as r,Dt as i,E as a,F as o,Ft as s,Ht as c,I as l,It as u,L as d,Lt as f,M as p,Mt as m,Nt as h,Ot as g,Pt as _,Rt as ee,St as te,T as ne,Vt as v,Y as y,b,i as x,jt as re,kt as S,m as C,ot as ie,p as ae,qt as oe,wt as se,xt as ce,y as w,yt as le,zt as ue}from"./CRfXUi3G.js";var de=void 0,T=typeof window<`u`&&window.trustedTypes;if(T)try{de=T.createPolicy(`vue`,{createHTML:e=>e})}catch{}var E=de?e=>de.createHTML(e):e=>e,fe=`http://www.w3.org/2000/svg`,pe=`http://www.w3.org/1998/Math/MathML`,D=typeof document<`u`?document:null,O=D&&D.createElement(`template`),me={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?D.createElementNS(fe,e):t===`mathml`?D.createElementNS(pe,e):n?D.createElement(e,{is:n}):D.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>D.createTextNode(e),createComment:e=>D.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>D.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{O.innerHTML=E(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=O.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},k=`transition`,A=`animation`,j=Symbol(`_vtc`),he={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ge=e({},C,he),_e=(e=>(e.displayName=`Transition`,e.props=ge,e))((e,{slots:t})=>o(ae,ye(e),t)),M=(e,t=[])=>{_(e)?e.forEach(e=>e(...t)):e&&e(...t)},ve=e=>e?_(e)?e.some(e=>e.length>1):e.length>1:!1;function ye(t){let n={};for(let e in t)e in he||(n[e]=t[e]);if(t.css===!1)return n;let{name:r=`v`,type:i,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:m=`${r}-leave-to`}=t,h=be(a),g=h&&h[0],_=h&&h[1],{onBeforeEnter:ee,onEnter:te,onEnterCancelled:ne,onLeave:v,onLeaveCancelled:y,onBeforeAppear:b=ee,onAppear:x=te,onAppearCancelled:re=ne}=n,S=(e,t,n,r)=>{e._enterCancelled=r,P(e,t?d:c),P(e,t?u:s),n&&n()},C=(e,t)=>{e._isLeaving=!1,P(e,f),P(e,m),P(e,p),t&&t()},ie=e=>(t,n)=>{let r=e?x:te,a=()=>S(t,e,n);M(r,[t,a]),Se(()=>{P(t,e?l:o),N(t,e?d:c),ve(r)||we(t,i,g,a)})};return e(n,{onBeforeEnter(e){M(ee,[e]),N(e,o),N(e,s)},onBeforeAppear(e){M(b,[e]),N(e,l),N(e,u)},onEnter:ie(!1),onAppear:ie(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>C(e,t);N(e,f),e._enterCancelled?(N(e,p),Oe(e)):(Oe(e),N(e,p)),Se(()=>{e._isLeaving&&(P(e,f),N(e,m),ve(v)||we(e,i,_,n))}),M(v,[e,n])},onEnterCancelled(e){S(e,!1,void 0,!0),M(ne,[e])},onAppearCancelled(e){S(e,!0,void 0,!0),M(re,[e])},onLeaveCancelled(e){C(e),M(y,[e])}})}function be(e){if(e==null)return null;if(f(e))return[xe(e.enter),xe(e.leave)];{let t=xe(e);return[t,t]}}function xe(e){return oe(e)}function N(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[j]||(e[j]=new Set)).add(t)}function P(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[j];n&&(n.delete(t),n.size||(e[j]=void 0))}function Se(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Ce=0;function we(e,t,n,r){let i=e._endId=++Ce,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Te(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Te(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${k}Delay`),a=r(`${k}Duration`),o=Ee(i,a),s=r(`${A}Delay`),c=r(`${A}Duration`),l=Ee(s,c),u=null,d=0,f=0;t===k?o>0&&(u=k,d=o,f=a.length):t===A?l>0&&(u=A,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?k:A:null,f=u?u===k?a.length:c.length:0);let p=u===k&&/\b(?:transform|all)(?:,|$)/.test(r(`${k}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Ee(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>De(t)+De(e[n])))}function De(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Oe(e){return(e?e.ownerDocument:document).body.offsetHeight}function ke(e,t,n){let r=e[j];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ae=Symbol(`_vod`),je=Symbol(`_vsh`),Me={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ae]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Ne(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Ne(e,!0),r.enter(e)):r.leave(e,()=>{Ne(e,!1)}):Ne(e,t))},beforeUnmount(e,{value:t}){Ne(e,t)}};function Ne(e,t){e.style.display=t?e[Ae]:`none`,e[je]=!t}var Pe=Symbol(``),Fe=/(?:^|;)\s*display\s*:/;function Ie(e,t,r){let i=e.style,a=n(r),o=!1;if(r&&!a){if(t)if(n(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();r[t]??Re(i,t,``)}else for(let e in t)r[e]??Re(i,e,``);for(let e in r)e===`display`&&(o=!0),Re(i,e,r[e])}else if(a){if(t!==r){let e=i[Pe];e&&(r+=`;`+e),i.cssText=r,o=Fe.test(r)}}else t&&e.removeAttribute(`style`);Ae in e&&(e[Ae]=o?i.display:``,e[je]&&(i.display=`none`))}var Le=/\s*!important$/;function Re(e,t,n){if(_(n))n.forEach(n=>Re(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Ve(e,t);Le.test(n)?e.setProperty(re(r),n.replace(Le,``),`important`):e[r]=n}}var ze=[`Webkit`,`Moz`,`ms`],Be={};function Ve(e,t){let n=Be[t];if(n)return n;let r=g(t);if(r!==`filter`&&r in e)return Be[t]=r;r=S(r);for(let n=0;n<ze.length;n++){let i=ze[n]+r;if(i in e)return Be[t]=i}return t}var He=`http://www.w3.org/1999/xlink`;function Ue(e,t,n,r,i,a=ue(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(He,t.slice(6,t.length)):e.setAttributeNS(He,t,n):n==null||a&&!m(n)?e.removeAttribute(t):e.setAttribute(t,a?``:v(n)?String(n):n)}function We(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?E(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=m(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function F(e,t,n,r){e.addEventListener(t,n,r)}function Ge(e,t,n,r){e.removeEventListener(t,n,r)}var Ke=Symbol(`_vei`);function qe(e,t,n,r,i=null){let a=e[Ke]||(e[Ke]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Ye(t);r?F(e,n,a[t]=$e(r,i),s):o&&(Ge(e,n,o,s),a[t]=void 0)}}var Je=/(?:Once|Passive|Capture)$/;function Ye(e){let t;if(Je.test(e)){t={};let n;for(;n=e.match(Je);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===`:`?e.slice(3):re(e.slice(2)),t]}var Xe=0,Ze=Promise.resolve(),Qe=()=>Xe||=(Ze.then(()=>Xe=0),Date.now());function $e(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;w(et(e,n.value),t,5,[e])};return n.value=e,n.attached=Qe(),n}function et(e,t){if(_(t)){let n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(e=>t=>!t._stopped&&e&&e(t))}else return t}var tt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,nt=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?ke(e,i,s):t===`style`?Ie(e,r,i):ee(t)?u(t)||qe(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):rt(e,t,i,s))?(We(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ue(e,t,i,s,o,t!==`value`)):e._isVueCE&&(it(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!n(i)))?We(e,g(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),Ue(e,t,i,s))};function rt(e,t,r,i){if(i)return!!(t===`innerHTML`||t===`textContent`||t in e&&tt(t)&&s(r));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return tt(t)&&n(r)?!1:t in e}function it(e,t){let n=e._def.props;if(!n)return!1;let r=g(t);return Array.isArray(n)?n.some(e=>g(e)===r):Object.keys(n).some(e=>g(e)===r)}var at=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return _(t)?e=>h(t,e):t};function ot(e){e.target.composing=!0}function st(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var ct=Symbol(`_assign`);function lt(e,t,n){return t&&(e=e.trim()),n&&(e=c(e)),e}var ut={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[ct]=at(i);let a=r||i.props&&i.props.type===`number`;F(e,t?`change`:`input`,t=>{t.target.composing||e[ct](lt(e.value,n,a))}),(n||a)&&F(e,`change`,()=>{e.value=lt(e.value,n,a)}),t||(F(e,`compositionstart`,ot),F(e,`compositionend`,st),F(e,`change`,st))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[ct]=at(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?c(e.value):e.value,l=t??``;if(s===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===l)||(e.value=l)}},dt=[`ctrl`,`shift`,`alt`,`meta`],ft={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>dt.some(n=>e[`${n}Key`]&&!t.includes(n))},pt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=ft[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},mt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},ht=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=re(n.key);if(t.some(e=>e===r||mt[e]===r))return e(n)}))},gt=e({patchProp:nt},me),_t,vt=!1;function yt(){return _t||=a(gt)}function bt(){return _t=vt?_t:ne(gt),vt=!0,_t}var xt=((...e)=>{let t=yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=wt(e);if(!r)return;let i=t._component;!s(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ct(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),St=((...e)=>{let t=bt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=wt(e);if(t)return n(t,!0,Ct(t))},t});function Ct(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function wt(e){return n(e)?document.querySelector(e):e}var Tt=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Et=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Dt=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Ot(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){kt(e);return}return t}function kt(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function At(e,t={}){if(typeof e!=`string`)return e;if(e[0]===`"`&&e[e.length-1]===`"`&&e.indexOf(`\\`)===-1)return e.slice(1,-1);let n=e.trim();if(n.length<=9)switch(n.toLowerCase()){case`true`:return!0;case`false`:return!1;case`undefined`:return;case`null`:return null;case`nan`:return NaN;case`infinity`:return 1/0;case`-infinity`:return-1/0}if(!Dt.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(Tt.test(e)||Et.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Ot)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var jt=/#/g,Mt=/&/g,Nt=/\//g,Pt=/=/g,Ft=/\?/g,It=/\+/g,Lt=/%5e/gi,Rt=/%60/gi,zt=/%7c/gi,Bt=/%20/gi,Vt=/%2f/gi,Ht=/%252f/gi;function Ut(e){return encodeURI(``+e).replace(zt,`|`)}function Wt(e){return Ut(typeof e==`string`?e:JSON.stringify(e)).replace(It,`%2B`).replace(Bt,`+`).replace(jt,`%23`).replace(Mt,`%26`).replace(Rt,"`").replace(Lt,`^`).replace(Nt,`%2F`)}function Gt(e){return Wt(e).replace(Pt,`%3D`)}function Kt(e){return Ut(e).replace(jt,`%23`).replace(Ft,`%3F`).replace(Ht,`%2F`).replace(Mt,`%26`).replace(It,`%2B`)}function I(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function qt(e){return I(e.replace(Vt,`%252F`))}function Jt(e){return I(e.replace(It,` `))}function Yt(e){return I(e.replace(It,` `))}function Xt(e=``){let t=Object.create(null);e[0]===`?`&&(e=e.slice(1));for(let n of e.split(`&`)){let e=n.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let r=Jt(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Yt(e[2]||``);t[r]===void 0?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]}return t}function Zt(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Gt(e)}=${Wt(t)}`).join(`&`):`${Gt(e)}=${Wt(t)}`:Gt(e)}function Qt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Zt(t,e[t])).filter(Boolean).join(`&`)}var $t=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,en=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,tn=/^([/\\]\s*){2,}[^/\\]/,nn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,rn=/\/$|\/\?|\/#/,an=/^\.?\//;function L(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?$t.test(e):en.test(e)||(t.acceptRelative?tn.test(e):!1)}function on(e){return!!e&&nn.test(e)}function sn(e=``,t){return t?rn.test(e):e.endsWith(`/`)}function R(e=``,t){if(!t)return(sn(e)?e.slice(0,-1):e)||`/`;if(!sn(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);i!==-1&&(n=e.slice(0,i),r=e.slice(i));let[a,...o]=n.split(`?`);return((a.endsWith(`/`)?a.slice(0,-1):a)||`/`)+(o.length>0?`?${o.join(`?`)}`:``)+r}function cn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(sn(e,!0))return e||`/`;let n=e,r=``,i=e.indexOf(`#`);if(i!==-1&&(n=e.slice(0,i),r=e.slice(i),!n))return r;let[a,...o]=n.split(`?`);return a+`/`+(o.length>0?`?${o.join(`?`)}`:``)+r}function ln(e,t){if(fn(t)||L(e))return e;let n=R(t);if(e.startsWith(n)){let t=e[n.length];if(!t||t===`/`||t===`?`)return e}return mn(n,e)}function un(e,t){if(fn(t))return e;let n=R(t);if(!e.startsWith(n))return e;let r=e[n.length];if(r&&r!==`/`&&r!==`?`)return e;let i=e.slice(n.length);return i[0]===`/`?i:`/`+i}function dn(e,t){let n=vn(e);return n.search=Qt({...Xt(n.search),...t}),bn(n)}function fn(e){return!e||e===`/`}function pn(e){return e&&e!==`/`}function mn(e,...t){let n=e||``;for(let e of t.filter(e=>pn(e)))if(n){let t=e.replace(an,``);n=cn(n)+t}else n=e;return n}function hn(...e){let t=/\/(?!\/)/,n=e.filter(Boolean),r=[],i=0;for(let e of n)if(!(!e||e===`/`)){for(let[n,a]of e.split(t).entries())if(!(!a||a===`.`)){if(a===`..`){if(r.length===1&&L(r[0]))continue;r.pop(),i--;continue}if(n===1&&r[r.length-1]?.endsWith(`:/`)){r[r.length-1]+=`/`+a;continue}r.push(a),i++}}let a=r.join(`/`);return i>=0?n[0]?.startsWith(`/`)&&!a.startsWith(`/`)?a=`/`+a:n[0]?.startsWith(`./`)&&!a.startsWith(`./`)&&(a=`./`+a):a=`../`.repeat(-1*i)+a,n[n.length-1]?.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`),a}function gn(e,t){return I(R(e))===I(R(t))}var _n=Symbol.for(`ufo:protocolRelative`);function vn(e=``,t){let n=e.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=``]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:``,host:``,search:``,hash:``}}if(!L(e,{acceptRelative:!0}))return t?vn(t+e):yn(e);let[,r=``,i,a=``]=e.replace(/\\/g,`/`).match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,o=``,s=``]=a.match(/([^#/?]*)(.*)?/)||[];r===`file:`&&(s=s.replace(/\/(?=[A-Za-z]:)/,``));let{pathname:c,search:l,hash:u}=yn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[_n]:!r}}function yn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function bn(e){let t=e.pathname||``,n=e.search?(e.search.startsWith(`?`)?``:`?`)+e.search:``,r=e.hash||``,i=e.auth?e.auth+`@`:``,a=e.host||``;return(e.protocol||e[_n]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function xn(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)===`[object Module]`:!0}function Sn(e,t,n=`.`,r){if(!xn(t))return Sn(e,{},n,r);let i={...t};for(let t of Object.keys(e)){if(t===`__proto__`||t===`constructor`)continue;let a=e[t];a!=null&&(r&&r(i,t,a,n)||(Array.isArray(a)&&Array.isArray(i[t])?i[t]=[...a,...i[t]]:xn(a)&&xn(i[t])?i[t]=Sn(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Cn(e){return(...t)=>t.reduce((t,n)=>Sn(t,n,``,e),{})}var wn=Cn();function Tn(e,t){try{return t in e}catch{return!1}}var En=class extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,t={}){super(e,t),t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){let e={message:this.message,statusCode:jn(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=An(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function Dn(e){if(typeof e==`string`)return new En(e);if(On(e))return e;let t=new En(e.message??e.statusMessage??``,{cause:e.cause||e});if(Tn(e,`stack`))try{Object.defineProperty(t,`stack`,{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=jn(e.statusCode,t.statusCode):e.status&&(t.statusCode=jn(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;An(t.statusMessage)!==e&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function On(e){return e?.constructor?.__h3_error__===!0}var kn=/[^\u0009\u0020-\u007E]/g;function An(e=``){return e.replace(kn,``)}function jn(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var Mn=Symbol(`layout-meta`),Nn=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var z=()=>x()?.$router,Pn=()=>l()?d(Nn,x()._route):x()._route;function Fn(e){return e}var In=()=>{try{if(x()._processingMiddleware)return!0}catch{return!1}return!1},Ln=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Rn(e):z().resolve(e).href;if(t?.open){let{target:e=`_blank`,windowFeatures:r={}}=t.open,i=[];for(let[e,t]of Object.entries(r))t!==void 0&&i.push(`${e.toLowerCase()}=${t}`);return open(n,e,i.join(`, `)),Promise.resolve()}let r=L(n,{acceptRelative:!0}),i=t?.external||r;if(i){if(!t?.external)throw Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");let{protocol:e}=new URL(n,window.location.href);if(e&&on(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=In();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=vn(e);return{path:t,...n&&{query:Xt(n)},...r&&{hash:r},replace:!0}}return{...e,replace:!0}}return e}let o=z(),s=x();if(i)return s._scope.stop(),t?.replace?location.replace(n):location.href=n,a?s.isHydrating?new Promise(()=>{}):!1:Promise.resolve();let c=typeof e==`string`?zn(e):e;return t?.replace?o.replace(c):o.push(c)};function Rn(e){return dn(e.path||``,e.query||{})+(e.hash||``)}function zn(e){let t=vn(e);return Kt(qt(t.pathname))+t.search+t.hash}var Bn=`__nuxt_error`,Vn=()=>se(x().payload,`error`),Hn=e=>{let t=Gn(e);try{let e=Vn();x().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Un=async(e={})=>{let t=x(),n=Vn();t.callHook(`app:error:cleared`,e),e.redirect&&await z().replace(e.redirect),n.value=void 0},Wn=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Gn=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=Dn(e);return Object.defineProperty(t,Bn,{value:!0,configurable:!1,writable:!1}),Object.defineProperty(t,`status`,{get:()=>t.statusCode,configurable:!0}),Object.defineProperty(t,`statusText`,{get:()=>t.statusMessage,configurable:!0}),t},B=typeof document<`u`;function Kn(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function qn(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Kn(e.default)}var V=Object.assign;function Jn(e,t){let n={};for(let r in t){let i=t[r];n[r]=H(i)?i.map(e):e(i)}return n}var Yn=()=>{},H=Array.isArray;function Xn(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var U=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Zn=Symbol(``);U.MATCHER_NOT_FOUND,U.NAVIGATION_GUARD_REDIRECT,U.NAVIGATION_ABORTED,U.NAVIGATION_CANCELLED,U.NAVIGATION_DUPLICATED;function W(e,t){return V(Error(),{type:e,[Zn]:!0},t)}function G(e,t){return e instanceof Error&&Zn in e&&(t==null||!!(e.type&t))}var Qn=Symbol(``),$n=Symbol(``),er=Symbol(``),tr=Symbol(``),nr=Symbol(``),rr=/#/g,ir=/&/g,ar=/\//g,or=/=/g,sr=/\?/g,cr=/\+/g,lr=/%5B/g,ur=/%5D/g,dr=/%5E/g,fr=/%60/g,pr=/%7B/g,mr=/%7C/g,hr=/%7D/g,gr=/%20/g;function _r(e){return e==null?``:encodeURI(``+e).replace(mr,`|`).replace(lr,`[`).replace(ur,`]`)}function vr(e){return _r(e).replace(pr,`{`).replace(hr,`}`).replace(dr,`^`)}function yr(e){return _r(e).replace(cr,`%2B`).replace(gr,`+`).replace(rr,`%23`).replace(ir,`%26`).replace(fr,"`").replace(pr,`{`).replace(hr,`}`).replace(dr,`^`)}function br(e){return yr(e).replace(or,`%3D`)}function xr(e){return _r(e).replace(rr,`%23`).replace(sr,`%3F`)}function Sr(e){return xr(e).replace(ar,`%2F`)}function K(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Cr=/\/$/,wr=e=>e.replace(Cr,``);function Tr(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Mr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:K(o)}}function Er(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Dr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Or(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&q(t.matched[r],n.matched[i])&&kr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function q(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function kr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Ar(e[n],t[n]))return!1;return!0}function Ar(e,t){return H(e)?jr(e,t):H(t)?jr(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function jr(e,t){return H(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Mr(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var J={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},Nr=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Pr=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Fr(e){if(!e)if(B){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),wr(e)}var Ir=/^[^#]+#/;function Lr(e,t){return e.replace(Ir,`#`)+t}function Rr(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var zr=()=>({left:window.scrollX,top:window.scrollY});function Br(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Rr(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Vr(e,t){return(history.state?history.state.position-t:-1)+e}var Hr=new Map;function Ur(e,t){Hr.set(e,t)}function Wr(e){let t=Hr.get(e);return Hr.delete(e),t}function Gr(e){return typeof e==`string`||e&&typeof e==`object`}function Kr(e){return typeof e==`string`||typeof e==`symbol`}function qr(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(cr,` `),i=r.indexOf(`=`),a=K(i<0?r:r.slice(0,i)),o=i<0?null:K(r.slice(i+1));if(a in t){let e=t[a];H(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Jr(e){let t=``;for(let n in e){let r=e[n];if(n=br(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(H(r)?r.map(e=>e&&yr(e)):[r&&yr(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Yr(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=H(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Y(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function X(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(W(U.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Gr(e)?c(W(U.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Xr(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Kn(s)){let c=(s.__vccOpts||s)[t];c&&a.push(X(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=qn(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&X(c,n,r,o,e,i)()}))}}return a}function Zr(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>q(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>q(e,s))||i.push(s))}return[n,r,i]}var Qr=()=>location.protocol+`//`+location.host;function $r(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),Dr(n,``)}return Dr(n,e)+r+i}function ei(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=$r(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:Nr.pop,direction:u?u>0?Pr.forward:Pr.back:Pr.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(V({},e.state,{scroll:zr()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function ti(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?zr():null}}function ni(e){let{history:t,location:n}=window,r={value:$r(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Qr()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,V({},t.state,ti(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=V({},i.value,t.state,{forward:e,scroll:zr()});a(o.current,o,!0),a(e,V({},ti(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ri(e){e=Fr(e);let t=ni(e),n=ei(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=V({location:``,base:e,go:r,createHref:Lr.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}function ii(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ri(e)}var Z=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),Q=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(Q||{}),ai={type:Z.Static,value:``},oi=/[a-zA-Z0-9_]/;function si(e){if(!e)return[[]];if(e===`/`)return[[ai]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=Q.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===Q.Static?a.push({type:Z.Static,value:l}):n===Q.Param||n===Q.ParamRegExp||n===Q.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Z.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==Q.ParamRegExp){r=n,n=Q.EscapeNext;continue}switch(n){case Q.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=Q.Param):f();break;case Q.EscapeNext:f(),n=r;break;case Q.Param:c===`(`?n=Q.ParamRegExp:oi.test(c)?f():(d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case Q.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=Q.ParamRegExpEnd:u+=c;break;case Q.ParamRegExpEnd:d(),n=Q.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===Q.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var ci=`[^/]+?`,li={sensitive:!1,strict:!1,start:!0,end:!0},$=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}($||{}),ui=/[.+*?^${}()[\]/\\]/g;function di(e,t){let n=V({},li,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[$.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=$.Segment+(n.sensitive?$.BonusCaseSensitive:0);if(o.type===Z.Static)r||(i+=`/`),i+=o.value.replace(ui,`\\$&`),s+=$.Static;else if(o.type===Z.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||ci;if(u!==ci){s+=$.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=$.Dynamic,c&&(s+=$.BonusOptional),n&&(s+=$.BonusRepeatable),u===`.*`&&(s+=$.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=$.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Z.Static)n+=e.value;else if(e.type===Z.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(H(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=H(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function fi(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===$.Static+$.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===$.Static+$.Segment?1:-1:0}function pi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=fi(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(mi(r))return 1;if(mi(i))return-1}return i.length-r.length}function mi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var hi={strict:!1,end:!0,sensitive:!1};function gi(e,t,n){let r=V(di(si(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function _i(e,t){let n=[],r=new Map;t=Xn(hi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=yi(e);s.aliasOf=r&&r.record;let l=Xn(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(yi(V({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=gi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!xi(d)&&o(e.name)),Ti(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Yn}function o(e){if(Kr(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ci(e,n);n.splice(t,0,e),e.record.name&&!xi(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw W(U.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=V(vi(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&vi(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw W(U.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=V({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Si(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function vi(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function yi(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:bi(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function bi(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function xi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Si(e){return e.reduce((e,t)=>V(e,t.meta),{})}function Ci(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;pi(e,t[i])<0?r=i:n=i+1}let i=wi(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function wi(e){let t=e;for(;t=t.parent;)if(Ti(t)&&pi(e,t)===0)return t}function Ti({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ei(e){let t=d(er),n=d(tr),r=b(()=>{let n=i(e.to);return t.resolve(n)}),a=b(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(q.bind(null,i));if(o>-1)return o;let s=ji(e[t-2]);return t>1&&ji(i)===s&&a[a.length-1].path!==s?a.findIndex(q.bind(null,e[t-2])):o}),o=b(()=>a.value>-1&&Ai(n.params,r.value.params)),s=b(()=>a.value>-1&&a.value===n.matched.length-1&&kr(n.params,r.value.params));function c(n={}){if(ki(n)){let n=t[i(e.replace)?`replace`:`push`](i(e.to)).catch(Yn);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:b(()=>r.value.href),isActive:o,isExactActive:s,navigate:c}}function Di(e){return e.length===1?e[0]:e}var Oi=p({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:Ei,setup(e,{slots:t}){let n=le(Ei(e)),{options:r}=d(er),i=b(()=>({[Mi(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Mi(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Di(t.default(n));return e.custom?r:o(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function ki(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Ai(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!H(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function ji(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Mi=(e,t,n)=>e??t??n,Ni=p({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=d(nr),a=b(()=>e.route||r.value),s=d($n,0),c=b(()=>{let e=i(s),{matched:t}=a.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=b(()=>a.value.matched[c.value]);y($n,b(()=>c.value+1)),y(Qn,l),y(nr,a);let u=ce();return ie(()=>[u.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!q(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=a.value,i=e.name,s=l.value,c=s&&s.components[i];if(!c)return Pi(n.default,{Component:c,route:r});let d=s.props[i],f=o(c,V({},d?d===!0?r.params:typeof d==`function`?d(r):d:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[i]=null)},ref:u}));return Pi(n.default,{Component:f,route:r})||f}}});function Pi(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Fi=Ni;function Ii(e){let n=_i(e.routes,e),a=e.parseQuery||qr,o=e.stringifyQuery||Jr,s=e.history,c=Y(),l=Y(),u=Y(),d=r(J),f=J;B&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let p=Jn.bind(null,e=>``+e),m=Jn.bind(null,Sr),h=Jn.bind(null,K);function g(e,t){let r,i;return Kr(e)?(r=n.getRecordMatcher(e),i=t):i=e,n.addRoute(i,r)}function _(e){let t=n.getRecordMatcher(e);t&&n.removeRoute(t)}function ee(){return n.getRoutes().map(e=>e.record)}function ne(e){return!!n.getRecordMatcher(e)}function v(e,t){if(t=V({},t||d.value),typeof e==`string`){let r=Tr(a,e,t.path),i=n.resolve({path:r.path},t),o=s.createHref(r.fullPath);return V(r,i,{params:h(i.params),hash:K(r.hash),redirectedFrom:void 0,href:o})}let r;if(e.path!=null)r=V({},e,{path:Tr(a,e.path,t.path).path});else{let n=V({},e.params);for(let e in n)n[e]??delete n[e];r=V({},e,{params:m(n)}),t.params=m(t.params)}let i=n.resolve(r,t),c=e.hash||``;i.params=p(h(i.params));let l=Er(o,V({},e,{hash:vr(c),path:i.path})),u=s.createHref(l);return V({fullPath:l,hash:c,query:o===Jr?Yr(e.query):e.query||{}},i,{redirectedFrom:void 0,href:u})}function y(e){return typeof e==`string`?Tr(a,e,d.value.path):V({},e)}function b(e,t){if(f!==e)return W(U.NAVIGATION_CANCELLED,{from:t,to:e})}function x(e){return C(e)}function re(e){return x(V(y(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=y(i):{path:i},i.params={}),V({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=f=v(e),r=d.value,i=e.state,a=e.force,s=e.replace===!0,c=S(n,r);if(c)return C(V(y(c),{state:typeof c==`object`?V({},i,c.state):i,force:a,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!a&&Or(o,r,n)&&(u=W(U.NAVIGATION_DUPLICATED,{to:l,from:r}),D(r,r,!0,!1)),(u?Promise.resolve(u):oe(l,r)).catch(e=>G(e)?G(e,U.NAVIGATION_GUARD_REDIRECT)?e:pe(e):E(e,l,r)).then(e=>{if(e){if(G(e,U.NAVIGATION_GUARD_REDIRECT))return C(V({replace:s},y(e.to),{state:typeof e.to==`object`?V({},i,e.to.state):i,force:a}),t||l)}else e=ce(l,r,!0,s,i);return se(l,r,e),e})}function ie(e,t){let n=b(e,t);return n?Promise.reject(n):Promise.resolve()}function ae(e){let t=k.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function oe(e,t){let n,[r,i,a]=Zr(e,t);n=Xr(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let o=ie.bind(null,e,t);return n.push(o),j(n).then(()=>{n=[];for(let r of c.list())n.push(X(r,e,t));return n.push(o),j(n)}).then(()=>{n=Xr(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(o),j(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(H(r.beforeEnter))for(let i of r.beforeEnter)n.push(X(i,e,t));else n.push(X(r.beforeEnter,e,t));return n.push(o),j(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Xr(a,`beforeRouteEnter`,e,t,ae),n.push(o),j(n))).then(()=>{n=[];for(let r of l.list())n.push(X(r,e,t));return n.push(o),j(n)}).catch(e=>G(e,U.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function se(e,t,n){u.list().forEach(r=>ae(()=>r(e,t,n)))}function ce(e,t,n,r,i){let a=b(e,t);if(a)return a;let o=t===J,c=B?history.state:{};n&&(r||o?s.replace(e.fullPath,V({scroll:o&&c&&c.scroll},i)):s.push(e.fullPath,i)),d.value=e,D(e,t,n,o),pe()}let w;function le(){w||=s.listen((e,t,n)=>{if(!A.listening)return;let r=v(e),i=S(r,A.currentRoute.value);if(i){C(V(i,{replace:!0,force:!0}),r).catch(Yn);return}f=r;let a=d.value;B&&Ur(Vr(a.fullPath,n.delta),zr()),oe(r,a).catch(e=>G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_CANCELLED)?e:G(e,U.NAVIGATION_GUARD_REDIRECT)?(C(V(y(e.to),{force:!0}),r).then(e=>{G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Nr.pop&&s.go(-1,!1)}).catch(Yn),Promise.reject()):(n.delta&&s.go(-n.delta,!1),E(e,r,a))).then(e=>{e||=ce(r,a,!1),e&&(n.delta&&!G(e,U.NAVIGATION_CANCELLED)?s.go(-n.delta,!1):n.type===Nr.pop&&G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&s.go(-1,!1)),se(r,a,e)}).catch(Yn)})}let ue=Y(),de=Y(),T;function E(e,t,n){pe(e);let r=de.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function fe(){return T&&d.value!==J?Promise.resolve():new Promise((e,t)=>{ue.add([e,t])})}function pe(e){return T||(T=!e,le(),ue.list().forEach(([t,n])=>e?n(e):t()),ue.reset()),e}function D(n,r,i,a){let{scrollBehavior:o}=e;if(!B||!o)return Promise.resolve();let s=!i&&Wr(Vr(n.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return t().then(()=>o(n,r,s)).then(e=>e&&Br(e)).catch(e=>E(e,n,r))}let O=e=>s.go(e),me,k=new Set,A={currentRoute:d,listening:!0,addRoute:g,removeRoute:_,clearRoutes:n.clearRoutes,hasRoute:ne,getRoutes:ee,resolve:v,options:e,push:x,replace:re,go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:c.add,beforeResolve:l.add,afterEach:u.add,onError:de.add,isReady:fe,install(e){e.component(`RouterLink`,Oi),e.component(`RouterView`,Fi),e.config.globalProperties.$router=A,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>i(d)}),B&&!me&&d.value===J&&(me=!0,x(s.location).catch(e=>{}));let t={};for(let e in J)Object.defineProperty(t,e,{get:()=>d.value[e],enumerable:!0});e.provide(er,A),e.provide(tr,te(t)),e.provide(nr,d);let n=e.unmount;k.add(e),e.unmount=function(){k.delete(e),k.size<1&&(f=J,w&&w(),w=null,d.value=J,me=!1,T=!1),n()}}};function j(e){return e.reduce((e,t)=>e.then(()=>ae(t)),Promise.resolve())}return A}var Li=(e,t)=>({default:()=>e?o(_e,e===!0?{}:e,t):t.default?.()}),Ri=/(:\w+)\([^)]+\)/g,zi=/(:\w+)[?+*]/g,Bi=/:\w+/g;function Vi(e){let t=e?.meta.key??e.path.replace(Ri,`$1`).replace(zi,`$1`).replace(Bi,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Hi(e,t){return e===t||t===J?!1:Vi(e)===Vi(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}function Ui(e){return Array.isArray(e)?e:[e]}function Wi(e){let t=[];for(let n of e)n&&t.push({...n,onAfterLeave:n.onAfterLeave?Ui(n.onAfterLeave):void 0,onBeforeLeave:n.onBeforeLeave?Ui(n.onBeforeLeave):void 0});return wn(...t)}var Gi={scrollBehavior(e,t,n){let r=x(),i=z().options?.scrollBehaviorType??`auto`;return e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``)?t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Ki(e.hash),behavior:i}:!1:(typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1?!1:t===J?qi(e,t,n,i):new Promise(a=>{let o=()=>{requestAnimationFrame(()=>a(qi(e,t,n,i)))};r.hooks.hookOnce(`page:loading:end`,()=>{let e=r[`~transitionPromise`];e?e.then(o):o()})})}};function Ki(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function qi(e,t,n,r){if(n)return n;let i=Hi(e,t);return e.hash?{el:e.hash,top:Ki(e.hash),behavior:i?r:`instant`}:{left:0,top:0}}var Ji={hashMode:!1,scrollBehaviorType:`auto`,...Gi},Yi=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),Xi=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Zi=e=>{let t=x();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{Yi(()=>e())}):Yi(()=>e())};function Qi(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function $i(e,t=z()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>$i(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}export{hn as A,xt as B,Pn as C,wn as D,Nn as E,cn as F,pt as G,ut as H,un as I,R as L,Xt as M,ln as N,L as O,dn as P,At as R,Rn as S,Mn as T,Me as U,St as V,ht as W,Hn as _,Yi as a,zn as b,Li as c,ii as d,ri as f,Wn as g,Gn as h,Xi as i,mn as j,gn as k,Fi as l,Un as m,$i as n,Ji as o,J as p,Zi as r,Wi as s,Qi as t,Ii as u,Vn as v,z as w,Ln as x,Fn as y,_e as z};
@@ -1 +1 @@
1
- import{B as e,C as t,Ct as n,Dt as r,Gt as i,K as a,Kt as o,M as s,Q as c,S as l,Tt as u,Z as d,at as f,b as p,h as m,ot as h,q as g,v as _,w as v,x as y,xt as ee}from"./BfJK_SLU.js";import{a as b,c as x,d as S,f as C,i as te,l as w,o as ne,r as re,u as ie}from"./D4aX0j39.js";import{t as T}from"./BrH7MV2S.js";import{t as E}from"./CKJSqDo0.js";import{t as ae}from"./BbMdHIyp.js";function D(){return typeof window<`u`}function O(e){return oe(e)?(e.nodeName||``).toLowerCase():`#document`}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function A(e){return((oe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oe(e){return D()?e instanceof Node||e instanceof k(e).Node:!1}function j(e){return D()?e instanceof Element||e instanceof k(e).Element:!1}function M(e){return D()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function se(e){return!D()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=L(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ce(e){return/^(table|td|th)$/.test(O(e))}function P(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var le=/transform|translate|scale|rotate|perspective|filter/,ue=/paint|layout|strict|content/,F=e=>!!e&&e!==`none`,de;function fe(e){let t=j(e)?L(e):e;return F(t.transform)||F(t.translate)||F(t.scale)||F(t.rotate)||F(t.perspective)||!me()&&(F(t.backdropFilter)||F(t.filter))||le.test(t.willChange||``)||ue.test(t.contain||``)}function pe(e){let t=z(e);for(;M(t)&&!I(t);){if(fe(t))return t;if(P(t))return null;t=z(t)}return null}function me(){return de??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),de}function I(e){return/^(html|body|#document)$/.test(O(e))}function L(e){return k(e).getComputedStyle(e)}function R(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function z(e){if(O(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||se(e)&&e.host||A(e);return se(t)?t.host:t}function he(e){let t=z(e);return I(t)?e.ownerDocument?e.ownerDocument.body:e.body:M(t)&&N(t)?t:he(t)}function ge(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=he(e),i=r===e.ownerDocument?.body,a=k(r);if(i){let e=_e(a);return t.concat(a,a.visualViewport||[],N(r)?r:[],e&&n?ge(e):[])}else return t.concat(r,ge(r,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ve(e){let t=L(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ye(e){return j(e)?e:e.contextElement}function B(e){let t=ye(e);if(!M(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ve(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var be=x(0);function xe(e){let t=k(e);return!me()||!t.visualViewport?be:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Se(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function V(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ye(e),o=x(1);t&&(r?j(r)&&(o=B(r)):o=B(e));let s=Se(a,n,r)?xe(a):x(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=k(a),t=r&&j(r)?k(r):r,n=e,i=_e(n);for(;i&&r&&t!==n;){let e=B(i),t=i.getBoundingClientRect(),r=L(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=k(i),i=_e(n)}}return S({width:u,height:d,x:c,y:l})}function H(e,t){let n=R(e).scrollLeft;return t?t.left+n:V(A(e)).left+n}function Ce(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-H(e,n),y:n.top+t.scrollTop}}function we(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=A(r),s=t?P(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=x(1),u=x(0),d=M(r);if((d||!d&&!a)&&((O(r)!==`body`||N(o))&&(c=R(r)),d)){let e=V(r);l=B(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ce(o,c):x(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Te(e){return Array.from(e.getClientRects())}function Ee(e){let t=A(e),n=R(e),r=e.ownerDocument.body,i=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+H(e),s=-n.scrollTop;return L(r).direction===`rtl`&&(o+=w(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var De=25;function Oe(e,t){let n=k(e),r=A(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=me();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=H(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=De&&(a-=o)}else l<=De&&(a+=l);return{width:a,height:o,x:s,y:c}}function ke(e,t){let n=V(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=M(e)?B(e):x(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ae(e,t,n){let r;if(t===`viewport`)r=Oe(e,n);else if(t===`document`)r=Ee(A(e));else if(j(t))r=ke(t,n);else{let n=xe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function je(e,t){let n=z(e);return n===t||!j(n)||I(n)?!1:L(n).position===`fixed`||je(n,t)}function Me(e,t){let n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(e=>j(e)&&O(e)!==`body`),i=null,a=L(e).position===`fixed`,o=a?z(e):e;for(;j(o)&&!I(o);){let t=L(o),n=fe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||N(o)&&!n&&je(e,o))?r=r.filter(e=>e!==o):i=t,o=z(o)}return t.set(e,r),r}function Ne(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?P(t)?[]:Me(t,this._c):[].concat(n),r],o=Ae(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ae(t,a[e],i);s=w(n.top,s),c=ie(n.right,c),l=ie(n.bottom,l),u=w(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Pe(e){let{width:t,height:n}=ve(e);return{width:t,height:n}}function Fe(e,t,n){let r=M(t),i=A(t),a=n===`fixed`,o=V(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=x(0);function l(){c.x=H(i)}if(r||!r&&!a)if((O(t)!==`body`||N(i))&&(s=R(t)),r){let e=V(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ce(i,s):x(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function U(e){return L(e).position===`static`}function Ie(e,t){if(!M(e)||L(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=k(e);if(P(e))return n;if(!M(e)){let t=z(e);for(;t&&!I(t);){if(j(t)&&!U(t))return t;t=z(t)}return n}let r=Ie(e,t);for(;r&&ce(r)&&U(r);)r=Ie(r,t);return r&&I(r)&&U(r)&&!fe(r)?n:r||pe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return L(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:we,getDocumentElement:A,getClippingRect:Ne,getOffsetParent:Le,getElementRects:Re,getClientRects:Te,getDimensions:Pe,getScale:B,isElement:j,isRTL:ze},Ve=b,He=ne,Ue=te,We=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return re(e,t,{...i,platform:a})},Ge=Object.assign(s({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=u(e),r=f(`hoverElement`),a=ee(0),o=ee(0);return h([t,n],([e,t])=>{We({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},r.value,{placement:`right-start`,middleware:[Ue(),He(),Ve({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{a.value=e,o.value=t})}),(e,t)=>(g(),l(_,{to:`body`},[y(`div`,{ref_key:`hoverElement`,ref:r,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:i({left:`${a.value}px`,top:`${o.value}px`})},[c(e.$slots,`default`)],4)]))}}),{__name:`DisplayGraphHoverView`});function Ke(e,t=1,n=1){let r=(.6+.4*Math.max(0,Math.cos(e)))*t,i=(.5+.2*Math.max(0,Math.cos(e+Math.PI*2/3)))*n;return`hsl(${e*180/Math.PI}deg, ${Math.round(100*r)}%, ${Math.round(100*i)}%)`}var qe,Je,Ye,W,G,K=1,Xe;function Ze(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(qe!==t||Je!==a||Ye!==i){let n=Math.round(64*a)/64;K=i,K=Math.log2(K),K-=Math.floor(K);let r=K,o=Math.min(1,8*r);K=2**K;let s=8*Math.SQRT2/K;qe=t,Je=a,Ye=i,W||=document.createElement(`canvas`),G||=W.getContext(`2d`),W.width=W.height=Math.round(64*n),G.scale(n,n),G.fillStyle=e[0],G.fillRect(0,0,64,64),G.globalAlpha=.25,G.fillStyle=e[1],G.fillRect(0,0,64,64),G.globalAlpha=.67,G.strokeStyle=e[1],G.beginPath();for(let e=0;e<=64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);if(G.lineWidth=s*(1-(o-r)/2),G.stroke(),o+r>0){G.beginPath();for(let e=8;e<64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);G.lineWidth=s*(o+r)/2,G.stroke()}Xe=t.createPattern(W,`repeat`),K/=n}return n/=64*K*a,n-=Math.floor(n),n*=64*K*a,Xe.setTransform(new DOMMatrix([K,0,0,K,n,r])),Xe}function Qe(e){return Array.isArray(e)?`url('data:image/svg+xml,<svg width="26" height="26" xmlns="http://www.w3.org/2000/svg"><rect width="26" height="26" fill="${e[0]}"/><rect width="26" height="26" fill="${e[1]}" fill-opacity="25%"/><path d="M22.5 -3.5L-3.5 22.5M35.5 9.5L9.5 35.5" stroke="${e[1]}" stroke-opacity="67%" stroke-width="9.19239"/></svg>')`:e}function $e(e){return t=>t.id&&e[t.id]||t.color}function et(e,t=1,n=1){let r={};return tt(r,e,0,Math.PI*2,t,n),$e(r)}function tt(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ke(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;tt(e,s,n,t,i,a),n+=t}}var nt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function rt(e=16,t=nt){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function it(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=rt(),r.parent||=t,r.children||=[],r.sizeSelf==null&&r.size!=null&&r.children.length===0?r.sizeSelf=r.size:r.sizeSelf||=0,r.children=(r.children||[]).map(e=>it(e,r,n)),r.size||=r.children.reduce((e,t)=>e+t.size,0)+r.sizeSelf,n&&r.children.sort(n),Object.defineProperty(r,`__nanovis`,{enumerable:!1,value:!0}),r}function at(e){return e.children.length===0?1:Math.max(...e.children.map(e=>at(e)))+1}var ot=/\bFirefox\//.test(navigator.userAgent),st;function ct(e){return st?st.format(e):`${e}`}function q(){return(window.performance||Date).now()}function lt(e){let t=e.toFixed(1).split(`.`,2);return`${ct(+t[0])}.${t[1]}`}function ut(e){return e===1?`1 byte`:e<1024?`${ct(e)} bytes`:e<1024*1024?`${lt(e/1024)} kb`:e<1024*1024*1024?`${lt(e/(1024*1024))} mb`:`${lt(e/(1024*1024*1024))} gb`}function dt(e,t,n,r,i,a){if(ot){let o=e.lineWidth,s=o/2;e.fillStyle=t,e.fillRect(n-s,r-s,i+o,o),e.fillRect(n-s,r+s,o,a-o),e.fillRect(n-s,r+a-s,i+o,o),e.fillRect(n+i-s,r+s,o,a-o);return}e.strokeStyle=t,e.strokeRect(n,r,i,a)}function ft(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function pt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{st=new Intl.NumberFormat}catch{}var mt=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}),J={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},ht={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},gt=46,_t=`14px sans-serif`,vt=`bold ${_t}`,yt=class{el;canvas;c;width=0;height=0;ratio=1;root;maxDepth;events;options;palette;disposables;getColor;getText;getSubtext;_animationFrame=null;constructor(e,t){this.options={...J,...t};let{getColor:n=et(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...ht,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=at(e),this.disposables=[],this.events=mt(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(_t),t.onClick&&this.events.on(`click`,t.onClick),t.onHover&&this.events.on(`hover`,t.onHover),t.onLeave&&this.events.on(`leave`,t.onLeave),t.onSelect&&this.events.on(`select`,t.onSelect),this.el.addEventListener(`mouseleave`,()=>{this.events.emit(`leave`)})}invalidate(){this._animationFrame===null&&(this._animationFrame=requestAnimationFrame(()=>{this._animationFrame=null,this.tick()}))}tick(){this.draw()}draw(){}resize(){this.ratio=window.devicePixelRatio||1,this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.width=Math.round(this.width*this.ratio),this.canvas.height=Math.round(this.height*this.ratio),this.c.scale(this.ratio,this.ratio),this.draw()}select(e,t){this.events.emit(`select`,e)}dispose(){this.disposables.forEach(e=>e()),this.disposables.length=0,this.el.remove()}[Symbol.dispose](){this.dispose()}_font=`14px sans-serif`;_fontWidthCache=new Map;ellipsisWidth=0;getFontCache(){return this._fontWidthCache.has(this._font)||this._fontWidthCache.set(this._font,{}),this._fontWidthCache.get(this._font)}setFont(e){this._font=e,this.c.font=e,this.c.textBaseline=`middle`,this.ellipsisWidth=3*this.charCodeWidth(gt)}charCodeWidth(e){let t=this.getFontCache(),n=t[e];return n===void 0&&(n=this.c.measureText(String.fromCharCode(e)).width,t[e]=n),n}textOverflowEllipsis(e,t){if(t<this.ellipsisWidth)return[``,0];let n=0,r=e.length,i=0;for(;i<r;){let r=this.charCodeWidth(e.charCodeAt(i));if(t<n+this.ellipsisWidth+r)return[`${e.slice(0,i)}...`,n+this.ellipsisWidth];n+=r,i++}return[e,n]}},Y=24,bt=5,xt=.01,St=1e3,Ct=class extends yt{mainEl=document.createElement(`div`);totalBytes;viewportMin;viewportMax;zoomedOutMin=0;zoomedOutWidth=0;prevWheelTime=0;prevWheelWasZoom=!1;stripeScaleAdjust=1;hoveredNode=null;selectedNode=null;nodeStartBytes=new Map;animationFromMin=0;animationFromMax=0;animationToMin=0;animationToMax=0;animationStart=0;constructor(e,t={}){super(e,t),this.totalBytes=e.size,this.viewportMin=this.animationFromMin=this.animationToMin=0,this.viewportMax=this.animationFromMax=this.animationToMax=this.totalBytes,Object.assign(this.mainEl.style,{position:`relative`}),Object.assign(this.canvas.style,{position:`absolute`,left:`0`,top:`0`});let n=!1;this.canvas.onmousedown=e=>{if(n=!1,e.button!==2){let t=e.pageX,r=e=>{let r=e.pageX-t;!n&&Math.abs(r)<3||(n=!0,this.modifyViewport(-r,0,null),t=e.pageX)},i=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};e.preventDefault(),document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}},this.canvas.onmousemove=e=>{this.updateHover(e)},this.canvas.onmouseout=()=>{this.changeHoveredNode(null)},this.canvas.onclick=e=>{if(n)return;let t=this.hitTestNode(e);this.changeHoveredNode(t),this.changeSelectedNode(t),t&&this.events.emit(`click`,t,e)},this.disposables.push(ft(e=>{let t=e.deltaX,n=e.deltaY,r=q(),i=r-this.prevWheelTime<50?this.prevWheelWasZoom:e.ctrlKey||e.metaKey;this.prevWheelTime=r,this.prevWheelWasZoom=i,(i||Math.abs(t)>=Math.abs(n))&&e.preventDefault(),this.modifyViewport(t,n,i?e.pageX:null),this.updateHover(e)})),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.viewportMin=this.animationToMin,this.viewportMax=this.animationToMax):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.viewportMin=this.animationFromMin+(this.animationToMin-this.animationFromMin)*e,this.viewportMax=this.animationFromMax+(this.animationToMax-this.animationFromMax)*e,this.invalidate()),this.draw()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.root,0,0,-1/0,1)}changeSelectedNode(e,t=this.options.animate??J.animate){if(this.selectedNode!==e&&(this.selectedNode=e,this.events.emit(`select`,e),e&&this.nodeStartBytes.has(e.id))){let n=this.nodeStartBytes.get(e.id),r=n+e.size;n=Math.max(0,n-e.size*xt),r=Math.min(this.totalBytes,r+e.size*xt),this.setViewport(n,r,t)}}select(e,t=this.options.animate??J.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*Y+1,this.zoomedOutMin=this.width-St>>1,this.zoomedOutWidth=this.zoomedOutMin+St,this.zoomedOutMin<0&&(this.zoomedOutMin=0),this.zoomedOutWidth>this.width&&(this.zoomedOutWidth=this.width),this.zoomedOutWidth-=this.zoomedOutMin,this.stripeScaleAdjust=this.totalBytes/this.zoomedOutWidth,this.mainEl.style.height=`${this.height}px`,super.resize()}drawNode(e,t,n,r,i){this.nodeStartBytes.set(e.id,n);let a=this.zoomedOutWidth/(this.viewportMax-this.viewportMin),o=this.zoomedOutMin+(n-this.viewportMin)*a,s=e.size*a,c=o+s;if(c<r+1.5)return r;if(o+s<0||o>this.width)return c;let l=s<2?2:s,u=(o>0?o:0)+bt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=Ze(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,Y,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(vt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,Y),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,Y),i|=2)),this.ellipsisWidth<g&&(m=this.c.measureText(f).width,m<=g?h+=m:(f=this.textOverflowEllipsis(f,g)[0],h=g),this.c.fillStyle=v,this.c.fillText(f,u,d)),i&1&&this.setFont(_t),h+this.ellipsisWidth<g&&(p&&f&&(p=` - ${p}`),m=this.c.measureText(p).width,h+m>g&&(p=this.textOverflowEllipsis(p,g-h)[0]),this.c.globalAlpha=.5,this.c.fillText(p,u+h,d),this.c.globalAlpha=1);for(let r of e.children)y=this.drawNode(r,t+Y,n,y,i&-2),n+=r.size;return i&1||dt(this.c,this.palette.stroke,o+.5,t+.5,l,Y),c}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=this.viewportMin+(this.viewportMax-this.viewportMin)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=(e,t,n)=>{if(i>=n&&i<n+e.size){if(r>=t&&r<t+Y&&e.id)return e;if(r>=t+Y)for(let r of e.children){let e=a(r,t+Y,n);if(e)return e;n+=r.size}}return null};return a(this.root,0,0)}modifyViewport(e,t,n){let r=this.viewportMin,i=this.viewportMax,a=0;if(n!==null){let e=r+(i-r)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=1.01**t;r=e+(r-e)*a,i=e+(i-e)*a}else a=e*(i-r)/this.zoomedOutWidth;r+a<0?a=-r:i+a>this.totalBytes&&(a=this.totalBytes-i),r+=a,i+=a,r<0&&(r=0),i>this.totalBytes&&(i=this.totalBytes),this.setViewport(r,i,!1)}setViewport(e,t,n){this.animationFromMin=this.viewportMin,this.animationFromMax=this.viewportMax,this.animationToMin=e,this.animationToMax=t,n?this.animationStart=q():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function wt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Tt(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Tt(e,r,n);for(let e of r.children){if(e===t){n.startAngle_+=n.sweepAngle_*a/i,n.sweepAngle_=e.size/i*n.sweepAngle_;break}a+=e.size}n.depth_+=1}var Et={};function Dt(e){return Et[e]||(Et[e]=400*Math.log(1+Math.log(1+e/8))),Et[e]}var X=-Math.PI/2,Ot=class extends yt{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=X;sourceSweepAngle=Math.PI*2;targetNode;targetDepth=this.sourceDepth;targetStartAngle=this.sourceStartAngle;targetSweepAngle=this.sourceSweepAngle;animatedNode;animatedDepth=this.sourceDepth;animatedStartAngle=this.sourceStartAngle;animatedSweepAngle=this.sourceSweepAngle;previousHoveredNode;historyStack=[];constructor(e,t={}){for(;e.children.length===1;)e=e.children[0];super(e,t),this.currentNode=e,this.targetNode=this.currentNode,this.animatedNode=this.currentNode,this.canvas.onmousemove=e=>{this.handleMouseMove(e)},this.canvas.onmouseout=e=>{this.changeHoveredNode(void 0),this.events.emit(`hover`,null,e)},this.canvas.onclick=e=>{let t=this.hitTestNode(e);if(!t)return;this.events.emit(`click`,t,e);let n=[];t===this.animatedNode.parent?this.historyStack.length>0&&(t=this.historyStack.pop(),n=this.historyStack.slice()):n=this.historyStack.concat(this.currentNode),this.events.emit(`click`,t,e),t.children.length>0?(this.select(t),this.historyStack=n):e.preventDefault()},this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(()=>this.resize())),this.disposables.push(ft(e=>this.handleMouseMove(e)))}select(e,t){(this.currentNode!==e||this.root)&&(this.currentNode=e||this.root,this.updateSunburst(t),this.events.emit(`select`,e))}resize(){this.width=this.el.clientWidth,this.height=this.width,this.centerX=this.width>>1,this.centerY=this.height>>1;let e=2*Math.ceil(Dt(this.maxDepth));this.radiusScale=this.width/e,super.resize()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,3,-1/0),this.c.strokeStyle=this.palette.stroke,this.c.beginPath(),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,1,-1/0),this.c.stroke(),this.animatedDepth===0&&(this.c.fillStyle=this.palette.stroke,this.setFont(vt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??ut(this.targetNode.size),this.centerX,this.centerY))}drawNode(e,t,n,r,i,a,o){let s=this.computeRadius(t+1);if(s>this.centerY)return o;e===this.hoveredNode&&(a|=8);let c=(n+s)/2,l=r+i;if(l-o<1.5/c)return o;let u=2/c;if(i>u&&(u=i),a&2)this.c.fillStyle=Ze(this.getColor(e)||this.palette.fallback,this.c,this.centerX,this.centerY,1),this.c.beginPath(),this.c.arc(this.centerX,this.centerY,n,r,r+u,!1),this.c.arc(this.centerX,this.centerY,s,r+u,r,!0),this.c.fill(),this.hoveredNode&&(a&8||e.parent===this.hoveredNode)&&(this.c.fillStyle=this.palette.hover,this.c.fill());else{let e=u===Math.PI*2,t=a&4||e?s:n;a&1&&n>0&&this.c.arc(this.centerX,this.centerY,n,r+u,r,!0),this.c.moveTo(this.centerX+t*Math.cos(r),this.centerY+t*Math.sin(r)),this.c.arc(this.centerX,this.centerY,s,r,r+u,!1),e||this.c.lineTo(this.centerX+n*Math.cos(r+u),this.centerY+n*Math.sin(r+u))}let d=e.size,f=a&10,p=0,m=-1/0;for(let n of e.children)m=this.drawNode(n,t+1,s,r+i*p/d,n.size/d*i,f,m),p+=n.size,f|=4;return l}changeHoveredNode(e,t){this.hoveredNode!==e&&(this.hoveredNode=e,this.updateSunburst(t))}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left-this.centerX,r=e.clientY-t.top-this.centerY,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n),o=(e,t,n,r,s)=>{let c=this.computeRadius(t+1);if(c>this.centerY)return;if(i>=n&&i<c){let t=a-r;if(t/=Math.PI*2,t-=Math.floor(t),t*=Math.PI*2,t<s)return e===this.animatedNode?e.parent:e}let l=e.size,u=0;for(let n of e.children){let e=o(n,t+1,c,r+s*u/l,n.size/l*s);if(e)return e;u+=n.size}};return o(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.invalidate()),this.animatedDepth=this.sourceDepth+(this.targetDepth-this.sourceDepth)*e,this.animatedStartAngle=this.sourceStartAngle+(this.targetStartAngle-this.sourceStartAngle)*e,this.animatedSweepAngle=this.sourceSweepAngle+(this.targetSweepAngle-this.sourceSweepAngle)*e,this.draw()}handleMouseMove(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),t&&t!==this.animatedNode.parent?(this.events.emit(`hover`,t,e),this.canvas.style.cursor=`pointer`):this.events.emit(`hover`,null,e)}computeRadius(e){return Dt(e)*this.radiusScale}updateSunburst(e=this.options.animate??!0){if(this.previousHoveredNode!==this.hoveredNode&&(this.previousHoveredNode=this.hoveredNode,this.hoveredNode||(this.canvas.style.cursor=`auto`,this.events.emit(`hover`,null)),this.invalidate()),this.targetNode!==this.currentNode){if(this.historyStack.length=0,this.invalidate(),e&&(this.animationStart=q()),wt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Tt(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(wt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Tt(this.currentNode,this.animatedNode,e),this.targetDepth=e.depth_,this.targetStartAngle=e.startAngle_,this.targetSweepAngle=e.sweepAngle_}else this.animationStart=-1/0,this.animatedNode=this.currentNode;this.sourceDepth=this.animatedDepth,this.sourceStartAngle=this.animatedStartAngle,this.sourceSweepAngle=this.animatedSweepAngle,this.targetNode=this.currentNode,this.events.emit(`select`,this.currentNode)}}},Z=4,Q=20,kt=2*Z,$=Q+Z;function At(e,t,n,r,i){let a=[],o=(t,n,r,i,a)=>{let o=e[t].size*a,s=e[n].size*a;return Math.max(r*r*o/(i*i),i*i/(r*r*s))};return((t,n,r,i,s)=>{for(;t<e.length;){let c=0;for(let n=t;n<e.length;n++)c+=e[n].size;let l=Math.min(i,s),u=i*s/c,d=t,f=0,p=0;for(;d<e.length;){let n=e[d].size*u,r=o(t,d,l,f+n,u);if(d>t&&p<r)break;f+=n,p=r,d++}let m=Math.round(f/l),h=0;for(let o=t;o<d;o++){let t=e[o],c=t.size*u,d=Math.round(l*h/f),p=Math.round(l*(h+c)/f),[g,_,v,y]=i>=s?[n,r+d,m,p-d]:[n+d,r,p-d,m];a.push({node:t,box:[g,_,v,y],children:v>kt&&y>$?At(t.children,g+Z,_+Q,v-kt,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var jt=class extends yt{hoveredNode=null;currentNode=null;bgOriginX=0;bgOriginY=0;layers={base:null};baseLayoutCache;currentOriginX=0;currentOriginY=0;animationStart=0;animationBlend=1;animationSource=null;animationTarget=null;constructor(e,t={}){super(e,t),this.canvas.addEventListener(`mousemove`,e=>{this.updateHover(e)}),this.canvas.addEventListener(`mouseout`,e=>{this.changeHoveredNode(null),this.events.emit(`hover`,null,e)}),this.el.addEventListener(`click`,e=>{let t=this.hitTestNode(e);if(t){let n=t.node;this.events.emit(`click`,n,e),n.children.length?t===this.layers.current?this.updateHover(e):(this.changeCurrentLayout(t),this.changeHoveredNode(null)):this.updateHover(e)}else this.currentNode&&(this.changeCurrentLayout(null),this.updateHover(e))}),this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(ft(e=>this.updateHover(e))),this.disposables.push(pt(()=>this.resize()))}select(e,t){let n=null;e===this.root&&(e=null),n=e?this.searchFor([this.layers.current,this.layers.base],e):null,this.changeCurrentLayout(n,t)}drawBaseLayout(){!this.width||!this.height||(this.c.clearRect(0,0,this.width,this.height),this.bgOriginX=this.bgOriginY=0,this.baseLayoutCache?this.c.putImageData(this.baseLayoutCache,0,0):(this.drawLayout(this.layers.base,0,[]),this.baseLayoutCache=this.c.getImageData(0,0,this.width*this.ratio,this.height*this.ratio)))}draw(){this.drawBaseLayout(),this.layers.current||this.drawHoverHighlight(this.layers.base);let e=this.layers.current?this.animationSource?this.animationTarget?1:1-this.animationBlend:this.animationBlend:0;if(this.layers.current){let[t,n,r,i]=this.layers.base.box;this.c.globalAlpha=.6*(!this.layers.current||!this.animationSource?1:e),this.c.fillStyle=this.palette.bg,this.c.fillRect(t,n,r,i),this.c.globalAlpha=1}if(this.layers.previous&&this.drawLayout(this.layers.previous,1,[this.layers.current]),this.layers.current){let[t,n,r,i]=this.layers.current.box,a=this.c.getTransform(),o=Math.sqrt(a.a*a.d);this.c.save(),this.c.shadowColor=this.palette.shadow,this.c.shadowBlur=30*e*o,this.c.shadowOffsetX=o*(2*this.width),this.c.shadowOffsetY=o*(2*this.height+15*e),this.c.fillRect(t-2*this.width,n-2*this.height,r,i),this.c.restore(),this.bgOriginX=this.currentOriginX,this.bgOriginY=this.currentOriginY,this.drawLayout(this.layers.current,0,[]),this.drawHoverHighlight(this.layers.current)}}tick(){let e=this.animationBlend,t=this.currentNode;this.animationBlend=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration),this.animationBlend<0||this.animationBlend>1?(this.currentNode=this.animationTarget,this.layers.previous=void 0,this.animationBlend=1):(this.animationBlend=1-this.animationBlend,this.animationBlend*=this.animationBlend*this.animationBlend,this.animationBlend=1-this.animationBlend,this.invalidate()),(this.animationBlend!==e||this.currentNode!==t)&&this.updateCurrentLayout(),this.draw()}resize(){this.baseLayoutCache=void 0;let e=this.width,t=this.height;this.width=Math.min(this.el.clientWidth,1600),this.height=Math.max(Math.round(this.width/2),innerHeight-200),(this.width!==e||this.height!==t||!this.layers.base)&&(this.layers.base=At([this.root],0,0,this.width-1,this.height-1)[0],this.updateCurrentLayout()),super.resize()}*iterateNodeToDraw(e,t,n){let r=e.node,[i,a,o,s]=e.box,c=r===this.hoveredNode|(e===this.animationTarget?2:0);if(t===1)for(let e of n){if(!e)continue;let[n,r,c,l]=e.box;if(i>=n&&a>=r&&i+o<=n+c&&a+s<=r+l){t=2;break}}for(let r of e.children)c|=yield*this.iterateNodeToDraw(r,t,n);return t!==2&&(yield e),c}drawHoverHighlight(e){let t=this.iterateNodeToDraw(e,0,[]),n=this.c.globalCompositeOperation;for(;;){let e=t.next();if(e.done){this.c.globalCompositeOperation=n;return}let r=e.value.node;if(this.hoveredNode===r){this.c.globalCompositeOperation=`overlay`;let[t,n,r,i]=e.value.box;this.c.fillStyle=this.palette.hover,this.c.fillRect(t,n,r,i)}}}drawNodeBackground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return e.value;let[t,n,i,a]=e.value.box;this.c.fillStyle=Ze(this.getColor(e.value.node)||this.palette.fallback,this.c,this.bgOriginX,this.bgOriginY,1),e.value.children.length?(this.c.fillRect(t,n,i,Q),this.c.fillRect(t,n+a-Z,i,Z),this.c.fillRect(t,n+Q,Z,a-$),this.c.fillRect(t+i-Z,n+Q,Z,a-$)):this.c.fillRect(t,n,i,a)}}drawLayout(e,t,n){this.drawNodeBackground(e,t,n),this.drawNodeForeground(e,t,n)}drawNodeForeground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return;let t=e.value.node,[n,i,a,o]=e.value.box;if(dt(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-kt,r=i+Math.round($/2),[s,c]=this.textOverflowEllipsis(this.getText(t)||``,e),l=n+Math.round((a-c)/2),u=this.getText(t),d=this.getSubtext(t);if(s===u&&t.children.length){let t=d||``;t&&u&&(t=` - ${t}`);let[i,o]=this.textOverflowEllipsis(t,e-c);l=n+Math.round((a-c-o)/2),this.c.globalAlpha=.5,this.c.fillText(i,l+c,r),this.c.globalAlpha=1}if(this.c.fillText(s,l,r),o>$+16&&!t.children.length){let[t,r]=this.textOverflowEllipsis(d||``,e);this.c.globalAlpha=.5;let s=u?Q:Q/2+Z;this.c.fillText(t,n+Math.round((a-r)/2),i+s+Math.round(o-$)/2),this.c.globalAlpha=1}}}}updateCurrentLayout(){let e=this.options.selectedPaddingRatio??.2;if(this.currentNode){let[t,n,r,i]=this.currentNode.box,a=t+r,o=n+i,s=Math.round(this.width*e/2),c=Math.round(this.height*e/2),l=this.width-s-1,u=this.height-c-1,d=this.animationTarget?this.animationBlend:1-this.animationBlend,f=Math.round(t+(s-t)*d),p=Math.round(n+(c-n)*d),m=Math.round(a+(l-a)*d),h=Math.round(o+(u-o)*d),g=e=>e-Math.floor(e/64-.5)*64;this.layers.current=At([this.currentNode.node],f,p,m-f,h-p)[0],this.currentOriginX=g(-(t+a)/2)*(1-d)+(f+m)/2,this.currentOriginY=g(-(n+o)/2)*(1-d)+(p+h)/2}else this.layers.current=void 0,this.currentOriginX=0,this.currentOriginY=0}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=(e,t)=>{for(let a of e){let[e,o,s,c]=a.box;if(n>=e&&r>=o&&n<e+s&&r<o+c)return i(a.children,!1)||(t?null:a)}return null};return this.layers.current?i([this.layers.current],!1):i([this.layers.base],!0)}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t&&t.node),this.events.emit(`hover`,t?.node||null,e)}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}searchFor(e,t){for(let n of e){if(!n)continue;let e=n.node===t?n:this.searchFor(n.children,t);if(e)return e}return null}changeCurrentLayout(e,t=this.options.animate){this.animationTarget!==e&&(this.events.emit(`select`,e?.node||null),this.layers.previous=e?this.layers.current:void 0,t&&(this.animationBlend=0,this.animationStart=q(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Mt={flex:`~ gap-1 items-center wrap`},Nt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Pt=[`onClick`],Ft=Object.assign(s({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=p(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,n)=>(g(),v(`div`,Mt,[(g(!0),v(m,null,d(a.value,(e,n)=>(g(),v(m,{key:e.id},[n>0?(g(),v(`div`,Nt)):t(``,!0),y(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>i(`select`,e)},[y(`span`,null,o(e.text||e.id),1)],8,Pt)],64))),128))]))}}),{__name:`ChartNavBreadcrumb`});function It(t){let{data:i,nameKey:o,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=t,f=n(void 0),m=n(void 0),g=ee(void 0),_=n(void 0),v,y=p(()=>{if(t.tree)return t.tree.value;let e=r(i),n=new Map,a=0,u={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:n,root:u,maxDepth:a};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=E(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,r,i,o){if(n.has(t))return n.get(t);o>a&&(a=o);let s={id:t,text:r,size:0,sizeSelf:0,children:[],meta:{...e,path:r,type:`folder`},parent:i};return n.set(t,s),i.children.push(s),d.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=E(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:E(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 p(e){let t=e[o].split(`/`).filter(Boolean),r=u,i=``,a=0;t.forEach((c,u)=>{if(i+=(i?`/`:``)+c,a++,u===t.length-1){let t={id:e[o],text:c,size:e[s],sizeSelf:e[s],subtext:E(e[s]).join(` `),children:[],meta:{...e,path:c,type:l}};r.children.push(t),n.set(e[o],t)}else r=f(e,i,c,r,a)})}return e.forEach(p),d.forEach(e=>e()),{map:n,root:u,maxDepth:a}}),b=p(()=>({animate:ae.value.chartAnimation,palette:{stroke:T.value?`#222`:`#555`,fg:T.value?`#fff`:`#000`,bg:T.value?`#111`:`#fff`},getColor:et(y.value.root,T.value?.8:.9,T.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){g.value=e?.meta,e?.children.length||(e=e?.parent),_.value?.select(e,t)}function S(){v?.(),m.value=y.value.root,d?.(),e(()=>{let e=g.value&&y.value.map.get(g.value[o])||null;e&&x(e,!1)}),v=()=>{_.value?.dispose(),_.value=void 0,g.value=void 0}}return e(()=>{h(()=>[y.value,b.value],()=>{S()},{deep:!0,immediate:!1}),S()}),a(()=>{v?.()}),{tree:y,graph:_,chartOptions:b,nodeHover:f,nodeSelected:m,selectedNode:g,selectNode:x,buildGraph:S}}export{jt as a,Ge as c,Ot as i,Ft as n,Qe as o,Ct as r,it as s,It as t};
1
+ import{B as e,C as t,Ct as n,Dt as r,Gt as i,K as a,Kt as o,M as s,Q as c,S as l,Tt as u,Z as d,at as f,b as p,h as m,ot as h,q as g,v as _,w as v,x as y,xt as ee}from"./CRfXUi3G.js";import{a as b,c as x,d as S,f as C,i as te,l as w,o as ne,r as re,u as ie}from"./5tvbNeKa.js";import{t as T}from"./CJmfH1zY.js";import{t as E}from"./CqfNwh25.js";import{t as ae}from"./BPvXWYcE.js";function D(){return typeof window<`u`}function O(e){return oe(e)?(e.nodeName||``).toLowerCase():`#document`}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function A(e){return((oe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function oe(e){return D()?e instanceof Node||e instanceof k(e).Node:!1}function j(e){return D()?e instanceof Element||e instanceof k(e).Element:!1}function M(e){return D()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function se(e){return!D()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function N(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=L(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ce(e){return/^(table|td|th)$/.test(O(e))}function P(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var le=/transform|translate|scale|rotate|perspective|filter/,ue=/paint|layout|strict|content/,F=e=>!!e&&e!==`none`,de;function fe(e){let t=j(e)?L(e):e;return F(t.transform)||F(t.translate)||F(t.scale)||F(t.rotate)||F(t.perspective)||!me()&&(F(t.backdropFilter)||F(t.filter))||le.test(t.willChange||``)||ue.test(t.contain||``)}function pe(e){let t=z(e);for(;M(t)&&!I(t);){if(fe(t))return t;if(P(t))return null;t=z(t)}return null}function me(){return de??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),de}function I(e){return/^(html|body|#document)$/.test(O(e))}function L(e){return k(e).getComputedStyle(e)}function R(e){return j(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function z(e){if(O(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||se(e)&&e.host||A(e);return se(t)?t.host:t}function he(e){let t=z(e);return I(t)?e.ownerDocument?e.ownerDocument.body:e.body:M(t)&&N(t)?t:he(t)}function ge(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=he(e),i=r===e.ownerDocument?.body,a=k(r);if(i){let e=_e(a);return t.concat(a,a.visualViewport||[],N(r)?r:[],e&&n?ge(e):[])}else return t.concat(r,ge(r,[],n))}function _e(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ve(e){let t=L(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=M(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=C(n)!==a||C(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ye(e){return j(e)?e:e.contextElement}function B(e){let t=ye(e);if(!M(t))return x(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ve(t),o=(a?C(n.width):n.width)/r,s=(a?C(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var be=x(0);function xe(e){let t=k(e);return!me()||!t.visualViewport?be:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Se(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==k(e)?!1:t}function V(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ye(e),o=x(1);t&&(r?j(r)&&(o=B(r)):o=B(e));let s=Se(a,n,r)?xe(a):x(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=k(a),t=r&&j(r)?k(r):r,n=e,i=_e(n);for(;i&&r&&t!==n;){let e=B(i),t=i.getBoundingClientRect(),r=L(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=k(i),i=_e(n)}}return S({width:u,height:d,x:c,y:l})}function H(e,t){let n=R(e).scrollLeft;return t?t.left+n:V(A(e)).left+n}function Ce(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-H(e,n),y:n.top+t.scrollTop}}function we(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=A(r),s=t?P(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=x(1),u=x(0),d=M(r);if((d||!d&&!a)&&((O(r)!==`body`||N(o))&&(c=R(r)),d)){let e=V(r);l=B(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Ce(o,c):x(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Te(e){return Array.from(e.getClientRects())}function Ee(e){let t=A(e),n=R(e),r=e.ownerDocument.body,i=w(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=w(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+H(e),s=-n.scrollTop;return L(r).direction===`rtl`&&(o+=w(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var De=25;function Oe(e,t){let n=k(e),r=A(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=me();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=H(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=De&&(a-=o)}else l<=De&&(a+=l);return{width:a,height:o,x:s,y:c}}function ke(e,t){let n=V(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=M(e)?B(e):x(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ae(e,t,n){let r;if(t===`viewport`)r=Oe(e,n);else if(t===`document`)r=Ee(A(e));else if(j(t))r=ke(t,n);else{let n=xe(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return S(r)}function je(e,t){let n=z(e);return n===t||!j(n)||I(n)?!1:L(n).position===`fixed`||je(n,t)}function Me(e,t){let n=t.get(e);if(n)return n;let r=ge(e,[],!1).filter(e=>j(e)&&O(e)!==`body`),i=null,a=L(e).position===`fixed`,o=a?z(e):e;for(;j(o)&&!I(o);){let t=L(o),n=fe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||N(o)&&!n&&je(e,o))?r=r.filter(e=>e!==o):i=t,o=z(o)}return t.set(e,r),r}function Ne(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?P(t)?[]:Me(t,this._c):[].concat(n),r],o=Ae(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Ae(t,a[e],i);s=w(n.top,s),c=ie(n.right,c),l=ie(n.bottom,l),u=w(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Pe(e){let{width:t,height:n}=ve(e);return{width:t,height:n}}function Fe(e,t,n){let r=M(t),i=A(t),a=n===`fixed`,o=V(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=x(0);function l(){c.x=H(i)}if(r||!r&&!a)if((O(t)!==`body`||N(i))&&(s=R(t)),r){let e=V(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Ce(i,s):x(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function U(e){return L(e).position===`static`}function Ie(e,t){if(!M(e)||L(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return A(e)===n&&(n=n.ownerDocument.body),n}function Le(e,t){let n=k(e);if(P(e))return n;if(!M(e)){let t=z(e);for(;t&&!I(t);){if(j(t)&&!U(t))return t;t=z(t)}return n}let r=Ie(e,t);for(;r&&ce(r)&&U(r);)r=Ie(r,t);return r&&I(r)&&U(r)&&!fe(r)?n:r||pe(e)||n}var Re=async function(e){let t=this.getOffsetParent||Le,n=this.getDimensions,r=await n(e.floating);return{reference:Fe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ze(e){return L(e).direction===`rtl`}var Be={convertOffsetParentRelativeRectToViewportRelativeRect:we,getDocumentElement:A,getClippingRect:Ne,getOffsetParent:Le,getElementRects:Re,getClientRects:Te,getDimensions:Pe,getScale:B,isElement:j,isRTL:ze},Ve=b,He=ne,Ue=te,We=(e,t,n)=>{let r=new Map,i={platform:Be,...n},a={...i.platform,_c:r};return re(e,t,{...i,platform:a})},Ge=Object.assign(s({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:t,hoverY:n}=u(e),r=f(`hoverElement`),a=ee(0),o=ee(0);return h([t,n],([e,t])=>{We({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},r.value,{placement:`right-start`,middleware:[Ue(),He(),Ve({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{a.value=e,o.value=t})}),(e,t)=>(g(),l(_,{to:`body`},[y(`div`,{ref_key:`hoverElement`,ref:r,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:i({left:`${a.value}px`,top:`${o.value}px`})},[c(e.$slots,`default`)],4)]))}}),{__name:`DisplayGraphHoverView`});function Ke(e,t=1,n=1){let r=(.6+.4*Math.max(0,Math.cos(e)))*t,i=(.5+.2*Math.max(0,Math.cos(e+Math.PI*2/3)))*n;return`hsl(${e*180/Math.PI}deg, ${Math.round(100*r)}%, ${Math.round(100*i)}%)`}var qe,Je,Ye,W,G,K=1,Xe;function Ze(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(qe!==t||Je!==a||Ye!==i){let n=Math.round(64*a)/64;K=i,K=Math.log2(K),K-=Math.floor(K);let r=K,o=Math.min(1,8*r);K=2**K;let s=8*Math.SQRT2/K;qe=t,Je=a,Ye=i,W||=document.createElement(`canvas`),G||=W.getContext(`2d`),W.width=W.height=Math.round(64*n),G.scale(n,n),G.fillStyle=e[0],G.fillRect(0,0,64,64),G.globalAlpha=.25,G.fillStyle=e[1],G.fillRect(0,0,64,64),G.globalAlpha=.67,G.strokeStyle=e[1],G.beginPath();for(let e=0;e<=64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);if(G.lineWidth=s*(1-(o-r)/2),G.stroke(),o+r>0){G.beginPath();for(let e=8;e<64;e+=16)G.moveTo(e-32,e+32),G.lineTo(e+32,e-32);G.lineWidth=s*(o+r)/2,G.stroke()}Xe=t.createPattern(W,`repeat`),K/=n}return n/=64*K*a,n-=Math.floor(n),n*=64*K*a,Xe.setTransform(new DOMMatrix([K,0,0,K,n,r])),Xe}function Qe(e){return Array.isArray(e)?`url('data:image/svg+xml,<svg width="26" height="26" xmlns="http://www.w3.org/2000/svg"><rect width="26" height="26" fill="${e[0]}"/><rect width="26" height="26" fill="${e[1]}" fill-opacity="25%"/><path d="M22.5 -3.5L-3.5 22.5M35.5 9.5L9.5 35.5" stroke="${e[1]}" stroke-opacity="67%" stroke-width="9.19239"/></svg>')`:e}function $e(e){return t=>t.id&&e[t.id]||t.color}function et(e,t=1,n=1){let r={};return tt(r,e,0,Math.PI*2,t,n),$e(r)}function tt(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ke(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;tt(e,s,n,t,i,a),n+=t}}var nt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function rt(e=16,t=nt){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function it(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=rt(),r.parent||=t,r.children||=[],r.sizeSelf==null&&r.size!=null&&r.children.length===0?r.sizeSelf=r.size:r.sizeSelf||=0,r.children=(r.children||[]).map(e=>it(e,r,n)),r.size||=r.children.reduce((e,t)=>e+t.size,0)+r.sizeSelf,n&&r.children.sort(n),Object.defineProperty(r,`__nanovis`,{enumerable:!1,value:!0}),r}function at(e){return e.children.length===0?1:Math.max(...e.children.map(e=>at(e)))+1}var ot=/\bFirefox\//.test(navigator.userAgent),st;function ct(e){return st?st.format(e):`${e}`}function q(){return(window.performance||Date).now()}function lt(e){let t=e.toFixed(1).split(`.`,2);return`${ct(+t[0])}.${t[1]}`}function ut(e){return e===1?`1 byte`:e<1024?`${ct(e)} bytes`:e<1024*1024?`${lt(e/1024)} kb`:e<1024*1024*1024?`${lt(e/(1024*1024))} mb`:`${lt(e/(1024*1024*1024))} gb`}function dt(e,t,n,r,i,a){if(ot){let o=e.lineWidth,s=o/2;e.fillStyle=t,e.fillRect(n-s,r-s,i+o,o),e.fillRect(n-s,r+s,o,a-o),e.fillRect(n-s,r+a-s,i+o,o),e.fillRect(n+i-s,r+s,o,a-o);return}e.strokeStyle=t,e.strokeRect(n,r,i,a)}function ft(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function pt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{st=new Intl.NumberFormat}catch{}var mt=()=>({emit(e,...t){for(let n=this.events[e]||[],r=0,i=n.length;r<i;r++)n[r](...t)},events:{},on(e,t){return(this.events[e]||=[]).push(t),()=>{this.events[e]=this.events[e]?.filter(e=>t!==e)}}}),J={getText:e=>e.text,getSubtext:e=>e.subtext,animate:!0,animateDuration:350},ht={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},gt=46,_t=`14px sans-serif`,vt=`bold ${_t}`,yt=class{el;canvas;c;width=0;height=0;ratio=1;root;maxDepth;events;options;palette;disposables;getColor;getText;getSubtext;_animationFrame=null;constructor(e,t){this.options={...J,...t};let{getColor:n=et(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...ht,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=at(e),this.disposables=[],this.events=mt(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(_t),t.onClick&&this.events.on(`click`,t.onClick),t.onHover&&this.events.on(`hover`,t.onHover),t.onLeave&&this.events.on(`leave`,t.onLeave),t.onSelect&&this.events.on(`select`,t.onSelect),this.el.addEventListener(`mouseleave`,()=>{this.events.emit(`leave`)})}invalidate(){this._animationFrame===null&&(this._animationFrame=requestAnimationFrame(()=>{this._animationFrame=null,this.tick()}))}tick(){this.draw()}draw(){}resize(){this.ratio=window.devicePixelRatio||1,this.canvas.style.width=`${this.width}px`,this.canvas.style.height=`${this.height}px`,this.canvas.width=Math.round(this.width*this.ratio),this.canvas.height=Math.round(this.height*this.ratio),this.c.scale(this.ratio,this.ratio),this.draw()}select(e,t){this.events.emit(`select`,e)}dispose(){this.disposables.forEach(e=>e()),this.disposables.length=0,this.el.remove()}[Symbol.dispose](){this.dispose()}_font=`14px sans-serif`;_fontWidthCache=new Map;ellipsisWidth=0;getFontCache(){return this._fontWidthCache.has(this._font)||this._fontWidthCache.set(this._font,{}),this._fontWidthCache.get(this._font)}setFont(e){this._font=e,this.c.font=e,this.c.textBaseline=`middle`,this.ellipsisWidth=3*this.charCodeWidth(gt)}charCodeWidth(e){let t=this.getFontCache(),n=t[e];return n===void 0&&(n=this.c.measureText(String.fromCharCode(e)).width,t[e]=n),n}textOverflowEllipsis(e,t){if(t<this.ellipsisWidth)return[``,0];let n=0,r=e.length,i=0;for(;i<r;){let r=this.charCodeWidth(e.charCodeAt(i));if(t<n+this.ellipsisWidth+r)return[`${e.slice(0,i)}...`,n+this.ellipsisWidth];n+=r,i++}return[e,n]}},Y=24,bt=5,xt=.01,St=1e3,Ct=class extends yt{mainEl=document.createElement(`div`);totalBytes;viewportMin;viewportMax;zoomedOutMin=0;zoomedOutWidth=0;prevWheelTime=0;prevWheelWasZoom=!1;stripeScaleAdjust=1;hoveredNode=null;selectedNode=null;nodeStartBytes=new Map;animationFromMin=0;animationFromMax=0;animationToMin=0;animationToMax=0;animationStart=0;constructor(e,t={}){super(e,t),this.totalBytes=e.size,this.viewportMin=this.animationFromMin=this.animationToMin=0,this.viewportMax=this.animationFromMax=this.animationToMax=this.totalBytes,Object.assign(this.mainEl.style,{position:`relative`}),Object.assign(this.canvas.style,{position:`absolute`,left:`0`,top:`0`});let n=!1;this.canvas.onmousedown=e=>{if(n=!1,e.button!==2){let t=e.pageX,r=e=>{let r=e.pageX-t;!n&&Math.abs(r)<3||(n=!0,this.modifyViewport(-r,0,null),t=e.pageX)},i=()=>{document.removeEventListener(`mousemove`,r),document.removeEventListener(`mouseup`,i)};e.preventDefault(),document.addEventListener(`mousemove`,r),document.addEventListener(`mouseup`,i)}},this.canvas.onmousemove=e=>{this.updateHover(e)},this.canvas.onmouseout=()=>{this.changeHoveredNode(null)},this.canvas.onclick=e=>{if(n)return;let t=this.hitTestNode(e);this.changeHoveredNode(t),this.changeSelectedNode(t),t&&this.events.emit(`click`,t,e)},this.disposables.push(ft(e=>{let t=e.deltaX,n=e.deltaY,r=q(),i=r-this.prevWheelTime<50?this.prevWheelWasZoom:e.ctrlKey||e.metaKey;this.prevWheelTime=r,this.prevWheelWasZoom=i,(i||Math.abs(t)>=Math.abs(n))&&e.preventDefault(),this.modifyViewport(t,n,i?e.pageX:null),this.updateHover(e)})),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.viewportMin=this.animationToMin,this.viewportMax=this.animationToMax):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.viewportMin=this.animationFromMin+(this.animationToMin-this.animationFromMin)*e,this.viewportMax=this.animationFromMax+(this.animationToMax-this.animationFromMax)*e,this.invalidate()),this.draw()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.root,0,0,-1/0,1)}changeSelectedNode(e,t=this.options.animate??J.animate){if(this.selectedNode!==e&&(this.selectedNode=e,this.events.emit(`select`,e),e&&this.nodeStartBytes.has(e.id))){let n=this.nodeStartBytes.get(e.id),r=n+e.size;n=Math.max(0,n-e.size*xt),r=Math.min(this.totalBytes,r+e.size*xt),this.setViewport(n,r,t)}}select(e,t=this.options.animate??J.animate){this.changeSelectedNode(e,t)}resize(){this.width=this.el.clientWidth,this.height=this.maxDepth*Y+1,this.zoomedOutMin=this.width-St>>1,this.zoomedOutWidth=this.zoomedOutMin+St,this.zoomedOutMin<0&&(this.zoomedOutMin=0),this.zoomedOutWidth>this.width&&(this.zoomedOutWidth=this.width),this.zoomedOutWidth-=this.zoomedOutMin,this.stripeScaleAdjust=this.totalBytes/this.zoomedOutWidth,this.mainEl.style.height=`${this.height}px`,super.resize()}drawNode(e,t,n,r,i){this.nodeStartBytes.set(e.id,n);let a=this.zoomedOutWidth/(this.viewportMax-this.viewportMin),o=this.zoomedOutMin+(n-this.viewportMin)*a,s=e.size*a,c=o+s;if(c<r+1.5)return r;if(o+s<0||o>this.width)return c;let l=s<2?2:s,u=(o>0?o:0)+bt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=Ze(this.getColor(e)||this.palette.fallback,this.c,this.zoomedOutMin-this.viewportMin*a,Y,a*this.stripeScaleAdjust),v=this.palette.text,y=-1/0;i&1?(v=this.palette.fg,this.setFont(vt)):(this.c.fillStyle=_,this.c.fillRect(o,t,l,Y),(i&2||this.hoveredNode&&e.id===this.hoveredNode.id)&&(this.c.fillStyle=this.palette.hover,this.c.fillRect(o,t,l,Y),i|=2)),this.ellipsisWidth<g&&(m=this.c.measureText(f).width,m<=g?h+=m:(f=this.textOverflowEllipsis(f,g)[0],h=g),this.c.fillStyle=v,this.c.fillText(f,u,d)),i&1&&this.setFont(_t),h+this.ellipsisWidth<g&&(p&&f&&(p=` - ${p}`),m=this.c.measureText(p).width,h+m>g&&(p=this.textOverflowEllipsis(p,g-h)[0]),this.c.globalAlpha=.5,this.c.fillText(p,u+h,d),this.c.globalAlpha=1);for(let r of e.children)y=this.drawNode(r,t+Y,n,y,i&-2),n+=r.size;return i&1||dt(this.c,this.palette.stroke,o+.5,t+.5,l,Y),c}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=this.viewportMin+(this.viewportMax-this.viewportMin)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=(e,t,n)=>{if(i>=n&&i<n+e.size){if(r>=t&&r<t+Y&&e.id)return e;if(r>=t+Y)for(let r of e.children){let e=a(r,t+Y,n);if(e)return e;n+=r.size}}return null};return a(this.root,0,0)}modifyViewport(e,t,n){let r=this.viewportMin,i=this.viewportMax,a=0;if(n!==null){let e=r+(i-r)/this.zoomedOutWidth*(n-this.zoomedOutMin),a=1.01**t;r=e+(r-e)*a,i=e+(i-e)*a}else a=e*(i-r)/this.zoomedOutWidth;r+a<0?a=-r:i+a>this.totalBytes&&(a=this.totalBytes-i),r+=a,i+=a,r<0&&(r=0),i>this.totalBytes&&(i=this.totalBytes),this.setViewport(r,i,!1)}setViewport(e,t,n){this.animationFromMin=this.viewportMin,this.animationFromMax=this.viewportMax,this.animationToMin=e,this.animationToMax=t,n?this.animationStart=q():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function wt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Tt(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Tt(e,r,n);for(let e of r.children){if(e===t){n.startAngle_+=n.sweepAngle_*a/i,n.sweepAngle_=e.size/i*n.sweepAngle_;break}a+=e.size}n.depth_+=1}var Et={};function Dt(e){return Et[e]||(Et[e]=400*Math.log(1+Math.log(1+e/8))),Et[e]}var X=-Math.PI/2,Ot=class extends yt{currentNode;hoveredNode;centerX=0;centerY=0;animationStart=0;radiusScale=1;sourceDepth=0;sourceStartAngle=X;sourceSweepAngle=Math.PI*2;targetNode;targetDepth=this.sourceDepth;targetStartAngle=this.sourceStartAngle;targetSweepAngle=this.sourceSweepAngle;animatedNode;animatedDepth=this.sourceDepth;animatedStartAngle=this.sourceStartAngle;animatedSweepAngle=this.sourceSweepAngle;previousHoveredNode;historyStack=[];constructor(e,t={}){for(;e.children.length===1;)e=e.children[0];super(e,t),this.currentNode=e,this.targetNode=this.currentNode,this.animatedNode=this.currentNode,this.canvas.onmousemove=e=>{this.handleMouseMove(e)},this.canvas.onmouseout=e=>{this.changeHoveredNode(void 0),this.events.emit(`hover`,null,e)},this.canvas.onclick=e=>{let t=this.hitTestNode(e);if(!t)return;this.events.emit(`click`,t,e);let n=[];t===this.animatedNode.parent?this.historyStack.length>0&&(t=this.historyStack.pop(),n=this.historyStack.slice()):n=this.historyStack.concat(this.currentNode),this.events.emit(`click`,t,e),t.children.length>0?(this.select(t),this.historyStack=n):e.preventDefault()},this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(pt(()=>this.resize())),this.disposables.push(ft(e=>this.handleMouseMove(e)))}select(e,t){(this.currentNode!==e||this.root)&&(this.currentNode=e||this.root,this.updateSunburst(t),this.events.emit(`select`,e))}resize(){this.width=this.el.clientWidth,this.height=this.width,this.centerX=this.width>>1,this.centerY=this.height>>1;let e=2*Math.ceil(Dt(this.maxDepth));this.radiusScale=this.width/e,super.resize()}draw(){this.c.clearRect(0,0,this.width,this.height),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,3,-1/0),this.c.strokeStyle=this.palette.stroke,this.c.beginPath(),this.drawNode(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle,1,-1/0),this.c.stroke(),this.animatedDepth===0&&(this.c.fillStyle=this.palette.stroke,this.setFont(vt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??ut(this.targetNode.size),this.centerX,this.centerY))}drawNode(e,t,n,r,i,a,o){let s=this.computeRadius(t+1);if(s>this.centerY)return o;e===this.hoveredNode&&(a|=8);let c=(n+s)/2,l=r+i;if(l-o<1.5/c)return o;let u=2/c;if(i>u&&(u=i),a&2)this.c.fillStyle=Ze(this.getColor(e)||this.palette.fallback,this.c,this.centerX,this.centerY,1),this.c.beginPath(),this.c.arc(this.centerX,this.centerY,n,r,r+u,!1),this.c.arc(this.centerX,this.centerY,s,r+u,r,!0),this.c.fill(),this.hoveredNode&&(a&8||e.parent===this.hoveredNode)&&(this.c.fillStyle=this.palette.hover,this.c.fill());else{let e=u===Math.PI*2,t=a&4||e?s:n;a&1&&n>0&&this.c.arc(this.centerX,this.centerY,n,r+u,r,!0),this.c.moveTo(this.centerX+t*Math.cos(r),this.centerY+t*Math.sin(r)),this.c.arc(this.centerX,this.centerY,s,r,r+u,!1),e||this.c.lineTo(this.centerX+n*Math.cos(r+u),this.centerY+n*Math.sin(r+u))}let d=e.size,f=a&10,p=0,m=-1/0;for(let n of e.children)m=this.drawNode(n,t+1,s,r+i*p/d,n.size/d*i,f,m),p+=n.size,f|=4;return l}changeHoveredNode(e,t){this.hoveredNode!==e&&(this.hoveredNode=e,this.updateSunburst(t))}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left-this.centerX,r=e.clientY-t.top-this.centerY,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n),o=(e,t,n,r,s)=>{let c=this.computeRadius(t+1);if(c>this.centerY)return;if(i>=n&&i<c){let t=a-r;if(t/=Math.PI*2,t-=Math.floor(t),t*=Math.PI*2,t<s)return e===this.animatedNode?e.parent:e}let l=e.size,u=0;for(let n of e.children){let e=o(n,t+1,c,r+s*u/l,n.size/l*s);if(e)return e;u+=n.size}};return o(this.animatedNode,this.animatedDepth,this.computeRadius(this.animatedDepth),this.animatedStartAngle,this.animatedSweepAngle)}tick(){let e=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration);e<0||e>1?(e=1,this.animatedNode=this.targetNode,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2):(e<.5?e*=4*e*e:(e=1-e,e*=4*e*e,e=1-e),this.invalidate()),this.animatedDepth=this.sourceDepth+(this.targetDepth-this.sourceDepth)*e,this.animatedStartAngle=this.sourceStartAngle+(this.targetStartAngle-this.sourceStartAngle)*e,this.animatedSweepAngle=this.sourceSweepAngle+(this.targetSweepAngle-this.sourceSweepAngle)*e,this.draw()}handleMouseMove(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),t&&t!==this.animatedNode.parent?(this.events.emit(`hover`,t,e),this.canvas.style.cursor=`pointer`):this.events.emit(`hover`,null,e)}computeRadius(e){return Dt(e)*this.radiusScale}updateSunburst(e=this.options.animate??!0){if(this.previousHoveredNode!==this.hoveredNode&&(this.previousHoveredNode=this.hoveredNode,this.hoveredNode||(this.canvas.style.cursor=`auto`,this.events.emit(`hover`,null)),this.invalidate()),this.targetNode!==this.currentNode){if(this.historyStack.length=0,this.invalidate(),e&&(this.animationStart=q()),wt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Tt(this.animatedNode,this.currentNode,e),this.animatedDepth=e.depth_,this.animatedStartAngle=e.startAngle_,this.animatedSweepAngle=e.sweepAngle_,this.targetDepth=0,this.targetStartAngle=X,this.targetSweepAngle=Math.PI*2,this.animatedNode=this.currentNode}else if(wt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Tt(this.currentNode,this.animatedNode,e),this.targetDepth=e.depth_,this.targetStartAngle=e.startAngle_,this.targetSweepAngle=e.sweepAngle_}else this.animationStart=-1/0,this.animatedNode=this.currentNode;this.sourceDepth=this.animatedDepth,this.sourceStartAngle=this.animatedStartAngle,this.sourceSweepAngle=this.animatedSweepAngle,this.targetNode=this.currentNode,this.events.emit(`select`,this.currentNode)}}},Z=4,Q=20,kt=2*Z,$=Q+Z;function At(e,t,n,r,i){let a=[],o=(t,n,r,i,a)=>{let o=e[t].size*a,s=e[n].size*a;return Math.max(r*r*o/(i*i),i*i/(r*r*s))};return((t,n,r,i,s)=>{for(;t<e.length;){let c=0;for(let n=t;n<e.length;n++)c+=e[n].size;let l=Math.min(i,s),u=i*s/c,d=t,f=0,p=0;for(;d<e.length;){let n=e[d].size*u,r=o(t,d,l,f+n,u);if(d>t&&p<r)break;f+=n,p=r,d++}let m=Math.round(f/l),h=0;for(let o=t;o<d;o++){let t=e[o],c=t.size*u,d=Math.round(l*h/f),p=Math.round(l*(h+c)/f),[g,_,v,y]=i>=s?[n,r+d,m,p-d]:[n+d,r,p-d,m];a.push({node:t,box:[g,_,v,y],children:v>kt&&y>$?At(t.children,g+Z,_+Q,v-kt,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var jt=class extends yt{hoveredNode=null;currentNode=null;bgOriginX=0;bgOriginY=0;layers={base:null};baseLayoutCache;currentOriginX=0;currentOriginY=0;animationStart=0;animationBlend=1;animationSource=null;animationTarget=null;constructor(e,t={}){super(e,t),this.canvas.addEventListener(`mousemove`,e=>{this.updateHover(e)}),this.canvas.addEventListener(`mouseout`,e=>{this.changeHoveredNode(null),this.events.emit(`hover`,null,e)}),this.el.addEventListener(`click`,e=>{let t=this.hitTestNode(e);if(t){let n=t.node;this.events.emit(`click`,n,e),n.children.length?t===this.layers.current?this.updateHover(e):(this.changeCurrentLayout(t),this.changeHoveredNode(null)):this.updateHover(e)}else this.currentNode&&(this.changeCurrentLayout(null),this.updateHover(e))}),this.el.append(this.canvas),this.resize(),Promise.resolve().then(()=>this.resize()),this.disposables.push(ft(e=>this.updateHover(e))),this.disposables.push(pt(()=>this.resize()))}select(e,t){let n=null;e===this.root&&(e=null),n=e?this.searchFor([this.layers.current,this.layers.base],e):null,this.changeCurrentLayout(n,t)}drawBaseLayout(){!this.width||!this.height||(this.c.clearRect(0,0,this.width,this.height),this.bgOriginX=this.bgOriginY=0,this.baseLayoutCache?this.c.putImageData(this.baseLayoutCache,0,0):(this.drawLayout(this.layers.base,0,[]),this.baseLayoutCache=this.c.getImageData(0,0,this.width*this.ratio,this.height*this.ratio)))}draw(){this.drawBaseLayout(),this.layers.current||this.drawHoverHighlight(this.layers.base);let e=this.layers.current?this.animationSource?this.animationTarget?1:1-this.animationBlend:this.animationBlend:0;if(this.layers.current){let[t,n,r,i]=this.layers.base.box;this.c.globalAlpha=.6*(!this.layers.current||!this.animationSource?1:e),this.c.fillStyle=this.palette.bg,this.c.fillRect(t,n,r,i),this.c.globalAlpha=1}if(this.layers.previous&&this.drawLayout(this.layers.previous,1,[this.layers.current]),this.layers.current){let[t,n,r,i]=this.layers.current.box,a=this.c.getTransform(),o=Math.sqrt(a.a*a.d);this.c.save(),this.c.shadowColor=this.palette.shadow,this.c.shadowBlur=30*e*o,this.c.shadowOffsetX=o*(2*this.width),this.c.shadowOffsetY=o*(2*this.height+15*e),this.c.fillRect(t-2*this.width,n-2*this.height,r,i),this.c.restore(),this.bgOriginX=this.currentOriginX,this.bgOriginY=this.currentOriginY,this.drawLayout(this.layers.current,0,[]),this.drawHoverHighlight(this.layers.current)}}tick(){let e=this.animationBlend,t=this.currentNode;this.animationBlend=(q()-this.animationStart)/(this.options.animateDuration??J.animateDuration),this.animationBlend<0||this.animationBlend>1?(this.currentNode=this.animationTarget,this.layers.previous=void 0,this.animationBlend=1):(this.animationBlend=1-this.animationBlend,this.animationBlend*=this.animationBlend*this.animationBlend,this.animationBlend=1-this.animationBlend,this.invalidate()),(this.animationBlend!==e||this.currentNode!==t)&&this.updateCurrentLayout(),this.draw()}resize(){this.baseLayoutCache=void 0;let e=this.width,t=this.height;this.width=Math.min(this.el.clientWidth,1600),this.height=Math.max(Math.round(this.width/2),innerHeight-200),(this.width!==e||this.height!==t||!this.layers.base)&&(this.layers.base=At([this.root],0,0,this.width-1,this.height-1)[0],this.updateCurrentLayout()),super.resize()}*iterateNodeToDraw(e,t,n){let r=e.node,[i,a,o,s]=e.box,c=r===this.hoveredNode|(e===this.animationTarget?2:0);if(t===1)for(let e of n){if(!e)continue;let[n,r,c,l]=e.box;if(i>=n&&a>=r&&i+o<=n+c&&a+s<=r+l){t=2;break}}for(let r of e.children)c|=yield*this.iterateNodeToDraw(r,t,n);return t!==2&&(yield e),c}drawHoverHighlight(e){let t=this.iterateNodeToDraw(e,0,[]),n=this.c.globalCompositeOperation;for(;;){let e=t.next();if(e.done){this.c.globalCompositeOperation=n;return}let r=e.value.node;if(this.hoveredNode===r){this.c.globalCompositeOperation=`overlay`;let[t,n,r,i]=e.value.box;this.c.fillStyle=this.palette.hover,this.c.fillRect(t,n,r,i)}}}drawNodeBackground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return e.value;let[t,n,i,a]=e.value.box;this.c.fillStyle=Ze(this.getColor(e.value.node)||this.palette.fallback,this.c,this.bgOriginX,this.bgOriginY,1),e.value.children.length?(this.c.fillRect(t,n,i,Q),this.c.fillRect(t,n+a-Z,i,Z),this.c.fillRect(t,n+Q,Z,a-$),this.c.fillRect(t+i-Z,n+Q,Z,a-$)):this.c.fillRect(t,n,i,a)}}drawLayout(e,t,n){this.drawNodeBackground(e,t,n),this.drawNodeForeground(e,t,n)}drawNodeForeground(e,t,n){let r=this.iterateNodeToDraw(e,t,n);for(;;){let e=r.next();if(e.done)return;let t=e.value.node,[n,i,a,o]=e.value.box;if(dt(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-kt,r=i+Math.round($/2),[s,c]=this.textOverflowEllipsis(this.getText(t)||``,e),l=n+Math.round((a-c)/2),u=this.getText(t),d=this.getSubtext(t);if(s===u&&t.children.length){let t=d||``;t&&u&&(t=` - ${t}`);let[i,o]=this.textOverflowEllipsis(t,e-c);l=n+Math.round((a-c-o)/2),this.c.globalAlpha=.5,this.c.fillText(i,l+c,r),this.c.globalAlpha=1}if(this.c.fillText(s,l,r),o>$+16&&!t.children.length){let[t,r]=this.textOverflowEllipsis(d||``,e);this.c.globalAlpha=.5;let s=u?Q:Q/2+Z;this.c.fillText(t,n+Math.round((a-r)/2),i+s+Math.round(o-$)/2),this.c.globalAlpha=1}}}}updateCurrentLayout(){let e=this.options.selectedPaddingRatio??.2;if(this.currentNode){let[t,n,r,i]=this.currentNode.box,a=t+r,o=n+i,s=Math.round(this.width*e/2),c=Math.round(this.height*e/2),l=this.width-s-1,u=this.height-c-1,d=this.animationTarget?this.animationBlend:1-this.animationBlend,f=Math.round(t+(s-t)*d),p=Math.round(n+(c-n)*d),m=Math.round(a+(l-a)*d),h=Math.round(o+(u-o)*d),g=e=>e-Math.floor(e/64-.5)*64;this.layers.current=At([this.currentNode.node],f,p,m-f,h-p)[0],this.currentOriginX=g(-(t+a)/2)*(1-d)+(f+m)/2,this.currentOriginY=g(-(n+o)/2)*(1-d)+(p+h)/2}else this.layers.current=void 0,this.currentOriginX=0,this.currentOriginY=0}hitTestNode(e){let t=this.canvas.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top,i=(e,t)=>{for(let a of e){let[e,o,s,c]=a.box;if(n>=e&&r>=o&&n<e+s&&r<o+c)return i(a.children,!1)||(t?null:a)}return null};return this.layers.current?i([this.layers.current],!1):i([this.layers.base],!0)}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t&&t.node),this.events.emit(`hover`,t?.node||null,e)}changeHoveredNode(e){this.hoveredNode!==e&&(this.hoveredNode=e,this.canvas.style.cursor=e&&!e.children.length?`pointer`:`auto`,this.invalidate())}searchFor(e,t){for(let n of e){if(!n)continue;let e=n.node===t?n:this.searchFor(n.children,t);if(e)return e}return null}changeCurrentLayout(e,t=this.options.animate){this.animationTarget!==e&&(this.events.emit(`select`,e?.node||null),this.layers.previous=e?this.layers.current:void 0,t&&(this.animationBlend=0,this.animationStart=q(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Mt={flex:`~ gap-1 items-center wrap`},Nt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Pt=[`onClick`],Ft=Object.assign(s({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(e,{emit:n}){let r=e,i=n,a=p(()=>{let e=[],t=r.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(e,n)=>(g(),v(`div`,Mt,[(g(!0),v(m,null,d(a.value,(e,n)=>(g(),v(m,{key:e.id},[n>0?(g(),v(`div`,Nt)):t(``,!0),y(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:t=>i(`select`,e)},[y(`span`,null,o(e.text||e.id),1)],8,Pt)],64))),128))]))}}),{__name:`ChartNavBreadcrumb`});function It(t){let{data:i,nameKey:o,sizeKey:s,rootText:c,nodeType:l,graphOptions:u,onUpdate:d}=t,f=n(void 0),m=n(void 0),g=ee(void 0),_=n(void 0),v,y=p(()=>{if(t.tree)return t.tree.value;let e=r(i),n=new Map,a=0,u={id:`~root`,text:c,size:0,sizeSelf:0,children:[]};if(!e?.length)return{map:n,root:u,maxDepth:a};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=E(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,r,i,o){if(n.has(t))return n.get(t);o>a&&(a=o);let s={id:t,text:r,size:0,sizeSelf:0,children:[],meta:{...e,path:r,type:`folder`},parent:i};return n.set(t,s),i.children.push(s),d.unshift(()=>{let t=s.sizeSelf;s.size+=s.children.reduce((e,t)=>e+t.size,0),s.subtext=E(s.size).join(` `),s.children.length&&t/s.size>.1&&s.children.push({id:`${s.id}-self`,text:``,size:t,sizeSelf:t,subtext:E(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 p(e){let t=e[o].split(`/`).filter(Boolean),r=u,i=``,a=0;t.forEach((c,u)=>{if(i+=(i?`/`:``)+c,a++,u===t.length-1){let t={id:e[o],text:c,size:e[s],sizeSelf:e[s],subtext:E(e[s]).join(` `),children:[],meta:{...e,path:c,type:l}};r.children.push(t),n.set(e[o],t)}else r=f(e,i,c,r,a)})}return e.forEach(p),d.forEach(e=>e()),{map:n,root:u,maxDepth:a}}),b=p(()=>({animate:ae.value.chartAnimation,palette:{stroke:T.value?`#222`:`#555`,fg:T.value?`#fff`:`#000`,bg:T.value?`#111`:`#fff`},getColor:et(y.value.root,T.value?.8:.9,T.value?1:1.1),getSubtext:e=>e.subtext,...u}));function x(e,t){g.value=e?.meta,e?.children.length||(e=e?.parent),_.value?.select(e,t)}function S(){v?.(),m.value=y.value.root,d?.(),e(()=>{let e=g.value&&y.value.map.get(g.value[o])||null;e&&x(e,!1)}),v=()=>{_.value?.dispose(),_.value=void 0,g.value=void 0}}return e(()=>{h(()=>[y.value,b.value],()=>{S()},{deep:!0,immediate:!1}),S()}),a(()=>{v?.()}),{tree:y,graph:_,chartOptions:b,nodeHover:f,nodeSelected:m,selectedNode:g,selectNode:x,buildGraph:S}}export{jt as a,Ge as c,Ot as i,Ft as n,Qe as o,Ct as r,it as s,It as t};
@@ -1 +1 @@
1
- import{M as e,Q as t,at as n,q as r,st as i,w as a,x as o}from"./BfJK_SLU.js";var s={class:`px4`,flex:`~ col gap2`},c=Object.assign(e({__name:`Treemap`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:c}){let l=e,u=c,d=n(`el`);return i(()=>d.value?.append(l.graph.el)),(n,i)=>(r(),a(`div`,s,[t(n.$slots,`default`,{selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>u(`select`,e)},()=>[i[1]||=o(`div`,{border:`b base`,py2:``,"min-h-10":``},null,-1)]),o(`div`,{ref_key:`el`,ref:d},null,512)]))}}),{__name:`ChartTreemap`});export{c as t};
1
+ import{M as e,Q as t,at as n,q as r,st as i,w as a,x as o}from"./CRfXUi3G.js";var s={class:`px4`,flex:`~ col gap2`},c=Object.assign(e({__name:`Treemap`,props:{graph:{},selected:{}},emits:[`select`],setup(e,{emit:c}){let l=e,u=c,d=n(`el`);return i(()=>d.value?.append(l.graph.el)),(n,i)=>(r(),a(`div`,s,[t(n.$slots,`default`,{selected:e.selected,options:e.graph.options,onSelect:i[0]||=e=>u(`select`,e)},()=>[i[1]||=o(`div`,{border:`b base`,py2:``,"min-h-10":``},null,-1)]),o(`div`,{ref_key:`el`,ref:d},null,512)]))}}),{__name:`ChartTreemap`});export{c as t};
@@ -0,0 +1 @@
1
+ import{Kt as e,q as t,w as n,x as r}from"./CRfXUi3G.js";import{c as i}from"#entry";import{t as a}from"./BUwCbG2W.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(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const o of e)if("childList"===o.type)for(const e of o.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;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{innerHTML:`*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}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 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }`}]}),(i,d)=>(t(),n(`div`,o,[r(`div`,s,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:e(a.status)},null,8,c),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:e(a.statusText)},null,8,l),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:e(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-d9556456`]]);export{d as default};
@@ -1 +1 @@
1
- import{A as e,C as t,Dt as n,M as r,b as i,h as a,lt as o,q as s,w as c,x as l}from"./BfJK_SLU.js";import{r as u}from"./BbMdHIyp.js";import{n as d,t as f}from"./r0DxGHyz.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=Object.assign(r({__name:`BuildMetrics`,props:{metrics:{}},setup(r){let h=r,g=i(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=i(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=i(()=>(h.metrics?.transforms.filter(e=>e.transformed_code_size)).at(-1)?.transformed_code_size);return(r,i)=>{let h=u;return s(),c(`div`,p,[e(f,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(d)(g.value.resolveIds,!0)}`},{default:o(()=>[...i[0]||=[l(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(d)(g.value.loads,!0)}`},{default:o(()=>[...i[1]||=[l(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(d)(g.value.transforms,!0)}`},{default:o(()=>[...i[2]||=[l(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),i[6]||=l(`span`,{op40:``},`|`,-1),e(f,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(d)(g.value.total,!0)}`},{default:o(()=>[...i[3]||=[l(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(s(),c(a,{key:0},[i[5]||=l(`span`,{op40:``},`|`,-1),l(`div`,m,[e(h,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),i[4]||=l(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),e(h,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):t(``,!0)])}}}),{__name:`ModulesBuildMetrics`});export{h as t};
1
+ import{A as e,C as t,Dt as n,M as r,b as i,h as a,lt as o,q as s,w as c,x as l}from"./CRfXUi3G.js";import{r as u}from"./BPvXWYcE.js";import{n as d,t as f}from"./C1f8uPlQ.js";var p={"text-xs":``,"font-mono":``,flex:`~ items-center gap-3`,ml2:``},m={flex:`~ gap-1 items-center`},h=Object.assign(r({__name:`BuildMetrics`,props:{metrics:{}},setup(r){let h=r,g=i(()=>{let e=h.metrics,t=e?.resolve_ids.reduce((e,t)=>(e+=t.duration,e),0),n=e?.loads?.reduce((e,t)=>(e+=t.duration,e),0),r=e?.transforms.reduce((e,t)=>(e+=t.duration,e),0);return{resolveIds:t,loads:n,transforms:r,total:t+n+r}}),_=i(()=>(h.metrics?.transforms)?.[0]?.source_code_size),v=i(()=>(h.metrics?.transforms.filter(e=>e.transformed_code_size)).at(-1)?.transformed_code_size);return(r,i)=>{let h=u;return s(),c(`div`,p,[e(f,{duration:g.value.resolveIds,flex:`~ gap-1 items-center`,title:`Resolve Id hooks cost: ${n(d)(g.value.resolveIds,!0)}`},{default:o(()=>[...i[0]||=[l(`span`,{"i-ph-magnifying-glass-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.loads,flex:`~ gap-1 items-center`,title:`Load hooks cost: ${n(d)(g.value.loads,!0)}`},{default:o(()=>[...i[1]||=[l(`span`,{"i-ph-upload-simple-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),e(f,{duration:g.value.transforms,flex:`~ gap-1 items-center`,title:`Transform hooks cost: ${n(d)(g.value.transforms,!0)}`},{default:o(()=>[...i[2]||=[l(`span`,{"i-ph-magic-wand-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),i[6]||=l(`span`,{op40:``},`|`,-1),e(f,{duration:g.value.total,flex:`~ gap-1 items-center`,title:`Total build cost: ${n(d)(g.value.total,!0)}`},{default:o(()=>[...i[3]||=[l(`span`,{"i-ph-clock-duotone":``,"inline-block":``},null,-1)]]),_:1},8,[`duration`,`title`]),_.value&&v.value?(s(),c(a,{key:0},[i[5]||=l(`span`,{op40:``},`|`,-1),l(`div`,m,[e(h,{title:`Source code size`,bytes:_.value},null,8,[`bytes`]),i[4]||=l(`span`,{"i-ph-arrow-right-duotone":``,op50:``},null,-1),e(h,{title:`Transformed code size`,bytes:v.value},null,8,[`bytes`])])],64)):t(``,!0)])}}}),{__name:`ModulesBuildMetrics`});export{h as t};
@@ -1 +1 @@
1
- import{A as e,C as t,Dt as n,Gt as r,M as i,Q as a,R as o,S as s,Ut as c,Z as l,h as u,lt as d,q as f,rt as p,tt as m,w as h,x as g}from"./BfJK_SLU.js";import{C as _}from"./BpHzZqln.js";import{t as v}from"./BKUGy95W.js";import{n as y,t as b}from"./0b3Up9kD.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=Object.assign(i({__name:`TreeNode`,props:o({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:o([`select`],[`update:open`]),setup(i,{emit:o}){let T=i,E=o,D=p(i,`open`),O=_(),k=window.location;function A(e){T.link||E(`select`,e)}return(o,p)=>{let _=b,T=w,E=y;return f(),h(`details`,{open:D.value,onToggle:p[0]||=e=>D.value=e.target?.open},[g(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:r({paddingLeft:`${i.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[g(`div`,{class:c([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),g(`div`,{class:c(D.value&&i.iconOpen||i.icon),"inline-block":``,"vertical-text-bottom":``},null,2),g(`div`,S,[e(_,{path:i.node.name||``},null,8,[`path`])])],4),D.value?(f(),h(u,{key:0},[(f(!0),h(u,null,l(Object.entries(i.node.children),e=>(f(),s(T,{key:e[0],node:e[1],link:i.link,padding:i.padding+1,"link-query-key":i.linkQueryKey,onSelect:A},{extra:d(({node:e})=>[a(o.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(f(!0),h(u,null,l(i.node.items,t=>(f(),s(m(i.link?n(v):`div`),{key:t.full,to:i.link?typeof i.link==`string`?i.link:{path:n(O).path,query:{...n(O).query,[i.linkQueryKey]:t.full},hash:n(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:r({paddingLeft:`${i.padding+2.7}rem`}),onClick:e=>A(t)},{default:d(()=>[e(E,{filename:t.full},null,8,[`filename`]),g(`div`,C,[e(_,{path:t.path.split(`/`).pop()||``},null,8,[`path`]),a(o.$slots,`extra`,{node:t})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):t(``,!0)],40,x)}}}),{__name:`DisplayTreeNode`});export{w as t};
1
+ import{A as e,C as t,Dt as n,Gt as r,M as i,Q as a,R as o,S as s,Ut as c,Z as l,h as u,lt as d,q as f,rt as p,tt as m,w as h,x as g}from"./CRfXUi3G.js";import{C as _}from"./CpTuuES2.js";import{t as v}from"./DWUsdlci.js";import{n as y,t as b}from"./hY2iPUYh.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=Object.assign(i({__name:`TreeNode`,props:o({node:{},icon:{default:`i-catppuccin:folder icon-catppuccin`},iconOpen:{default:`i-catppuccin:folder-open icon-catppuccin`},link:{type:[String,Boolean]},linkQueryKey:{default:`module`},padding:{default:0},open:{type:Boolean}},{open:{type:Boolean,required:!1,default:!0},openModifiers:{}}),emits:o([`select`],[`update:open`]),setup(i,{emit:o}){let T=i,E=o,D=p(i,`open`),O=_(),k=window.location;function A(e){T.link||E(`select`,e)}return(o,p)=>{let _=b,T=w,E=y;return f(),h(`details`,{open:D.value,onToggle:p[0]||=e=>D.value=e.target?.open},[g(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:r({paddingLeft:`${i.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[g(`div`,{class:c([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),g(`div`,{class:c(D.value&&i.iconOpen||i.icon),"inline-block":``,"vertical-text-bottom":``},null,2),g(`div`,S,[e(_,{path:i.node.name||``},null,8,[`path`])])],4),D.value?(f(),h(u,{key:0},[(f(!0),h(u,null,l(Object.entries(i.node.children),e=>(f(),s(T,{key:e[0],node:e[1],link:i.link,padding:i.padding+1,"link-query-key":i.linkQueryKey,onSelect:A},{extra:d(({node:e})=>[a(o.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(f(!0),h(u,null,l(i.node.items,t=>(f(),s(m(i.link?n(v):`div`),{key:t.full,to:i.link?typeof i.link==`string`?i.link:{path:n(O).path,query:{...n(O).query,[i.linkQueryKey]:t.full},hash:n(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:r({paddingLeft:`${i.padding+2.7}rem`}),onClick:e=>A(t)},{default:d(()=>[e(E,{filename:t.full},null,8,[`filename`]),g(`div`,C,[e(_,{path:t.path.split(`/`).pop()||``},null,8,[`path`]),a(o.$slots,`extra`,{node:t})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):t(``,!0)],40,x)}}}),{__name:`DisplayTreeNode`});export{w as t};
@@ -1 +1 @@
1
- import{F as e,M as t,S as n,q as r,tt as i}from"./BfJK_SLU.js";import{t as a}from"./BckBWP8Y.js";var o=Object.assign(t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let t=o.compact?c:s;for(let n of t)if(o.name.startsWith(n))return o.compact?e(`span`,o.name.slice(n.length)):e(`span`,[e(`span`,{class:`op50`},n),e(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?e(`span`,[e(`span`,{style:{color:a(n[0])}},`${n[0]}:`),e(`span`,n.slice(1).join(`:`))]):e(`span`,o.name)}return(e,t)=>(r(),n(i(l)))}}),{__name:`DisplayPluginName`});export{o as t};
1
+ import{F as e,M as t,S as n,q as r,tt as i}from"./CRfXUi3G.js";import{t as a}from"./5SREwa_J.js";var o=Object.assign(t({__name:`PluginName`,props:{name:{},compact:{type:Boolean},colored:{type:Boolean},hide:{type:Boolean}},setup(t){let o=t,s=[`__load__`,`vite-plugin-`,`vite-`,`rollup-plugin-`,`rollup-`,`unplugin-`],c=[...s,`vite:`];function l(){let t=o.compact?c:s;for(let n of t)if(o.name.startsWith(n))return o.compact?e(`span`,o.name.slice(n.length)):e(`span`,[e(`span`,{class:`op50`},n),e(`span`,o.name.slice(n.length))]);let n=o.name.split(`:`);return n.length>1?e(`span`,[e(`span`,{style:{color:a(n[0])}},`${n[0]}:`),e(`span`,n.slice(1).join(`:`))]):e(`span`,o.name)}return(e,t)=>(r(),n(i(l)))}}),{__name:`DisplayPluginName`});export{o as t};