@vitejs/devtools-rolldown 0.0.0-alpha.32 → 0.0.0-alpha.33

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 (93) hide show
  1. package/dist/dirs.mjs +1 -3
  2. package/dist/index.mjs +140 -430
  3. package/dist/nitro.json +1 -1
  4. package/dist/public/200.html +1 -1
  5. package/dist/public/404.html +1 -1
  6. package/dist/public/_nuxt/5tvbNeKa.js +1 -0
  7. package/dist/public/_nuxt/BCkes08a.js +1 -0
  8. package/dist/public/_nuxt/BCt7AJYr2.js +1 -0
  9. package/dist/public/_nuxt/BLuztO_U.js +1 -0
  10. package/dist/public/_nuxt/BNP_0CNt2.js +1 -0
  11. package/dist/public/_nuxt/BcpFGloo.js +1 -0
  12. package/dist/public/_nuxt/Bf1Vsod8.js +1 -0
  13. package/dist/public/_nuxt/BpPHJgjs2.js +1 -0
  14. package/dist/public/_nuxt/Bpe250WO.js +1 -0
  15. package/dist/public/_nuxt/BvZxqrTM.js +1 -0
  16. package/dist/public/_nuxt/C0X3s2js.js +1 -0
  17. package/dist/public/_nuxt/CA89J8qi.js +1 -0
  18. package/dist/public/_nuxt/CF32XUOn.js +1 -0
  19. package/dist/public/_nuxt/CHhX9QsC.js +2 -0
  20. package/dist/public/_nuxt/CPGUpoLC.js +1 -0
  21. package/dist/public/_nuxt/CPkjYaSh.js +1 -0
  22. package/dist/public/_nuxt/CbqJqu0C.js +1 -0
  23. package/dist/public/_nuxt/CeiaCdJS.js +1 -0
  24. package/dist/public/_nuxt/CrBvhj22.js +1 -0
  25. package/dist/public/_nuxt/CsiiwekO.js +1 -0
  26. package/dist/public/_nuxt/CwqxH2u32.js +1 -0
  27. package/dist/public/_nuxt/CxeKBgeG2.js +1 -0
  28. package/dist/public/_nuxt/D2T_16Oh.js +1 -0
  29. package/dist/public/_nuxt/D6dVxvIe.js +1 -0
  30. package/dist/public/_nuxt/DPYc9JW_.js +1 -0
  31. package/dist/public/_nuxt/DSkKpnKG.js +1 -0
  32. package/dist/public/_nuxt/D_QsDu4w2.js +1 -0
  33. package/dist/public/_nuxt/{DataVirtualList.BMBI8CMU.css → DataVirtualList.lGV_3v2U.css} +1 -1
  34. package/dist/public/_nuxt/De6hoB0p.js +1 -0
  35. package/dist/public/_nuxt/Dg1pxj30.js +1 -0
  36. package/dist/public/_nuxt/F3PiHIWc.js +1 -0
  37. package/dist/public/_nuxt/FKW482sT.js +1 -0
  38. package/dist/public/_nuxt/FdBHH-Ya.js +33 -0
  39. package/dist/public/_nuxt/SPaSZIbm.js +1 -0
  40. package/dist/public/_nuxt/T6zWo6PM.js +1 -0
  41. package/dist/public/_nuxt/builds/latest.json +1 -1
  42. package/dist/public/_nuxt/builds/meta/9cc7d1a5-e72f-46b3-8d66-edb9a68d1a1a.json +1 -0
  43. package/dist/public/_nuxt/{entry.DQK1Fncc.css → entry.DSzfs26p.css} +1 -1
  44. package/dist/public/_nuxt/error-404.UDn5o4zm.css +1 -0
  45. package/dist/public/_nuxt/error-500.B2y7voNR.css +1 -0
  46. package/dist/public/_nuxt/gtHejcxM.js +3 -0
  47. package/dist/public/_nuxt/o3Asd-6w.js +1 -0
  48. package/dist/public/_nuxt/olITPEcD.js +2 -0
  49. package/dist/public/_nuxt/v2o5fpbj.js +1 -0
  50. package/dist/public/_nuxt/yUVoggG_.js +1 -0
  51. package/dist/public/index.html +1 -1
  52. package/package.json +15 -15
  53. package/dist/public/_nuxt/6TUvuKw-.js +0 -1
  54. package/dist/public/_nuxt/B9ATRPQ7.js +0 -1
  55. package/dist/public/_nuxt/B9O9mwcz.js +0 -1
  56. package/dist/public/_nuxt/BYYOuuQ8.js +0 -1
  57. package/dist/public/_nuxt/Bb89bWCj.js +0 -1
  58. package/dist/public/_nuxt/Bjj8tBzd.js +0 -1
  59. package/dist/public/_nuxt/BlOp-aa0.js +0 -1
  60. package/dist/public/_nuxt/By3-Oigm.js +0 -1
  61. package/dist/public/_nuxt/C3g8Qo0F.js +0 -1
  62. package/dist/public/_nuxt/C4ZBTBfN.js +0 -1
  63. package/dist/public/_nuxt/C56jC-Rb.js +0 -1
  64. package/dist/public/_nuxt/CBrsTh9c.js +0 -1
  65. package/dist/public/_nuxt/CMcxTY2l.js +0 -1
  66. package/dist/public/_nuxt/CavFgEiy.js +0 -1
  67. package/dist/public/_nuxt/Ckamtj1Q.js +0 -1
  68. package/dist/public/_nuxt/Cs9u2aM3.js +0 -1
  69. package/dist/public/_nuxt/D1SGgpeJ.js +0 -1
  70. package/dist/public/_nuxt/D4Jp6GBh.js +0 -1
  71. package/dist/public/_nuxt/D68gMgDN.js +0 -33
  72. package/dist/public/_nuxt/D8SB5Fj6.js +0 -1
  73. package/dist/public/_nuxt/DG5LouYQ.js +0 -1
  74. package/dist/public/_nuxt/DGPFtmYw.js +0 -1
  75. package/dist/public/_nuxt/DKKnluDw.js +0 -1
  76. package/dist/public/_nuxt/DTB_fvd1.js +0 -1
  77. package/dist/public/_nuxt/Daqw8s3u.js +0 -1
  78. package/dist/public/_nuxt/DdkVNznP.js +0 -1
  79. package/dist/public/_nuxt/DicSvcoI.js +0 -2
  80. package/dist/public/_nuxt/DmCbLhAV.js +0 -1
  81. package/dist/public/_nuxt/Dy45_BSj.js +0 -1
  82. package/dist/public/_nuxt/EoT68z9_.js +0 -1
  83. package/dist/public/_nuxt/OLyU6pOh.js +0 -1
  84. package/dist/public/_nuxt/Vyw3NrOX.js +0 -1
  85. package/dist/public/_nuxt/builds/meta/64b3b8a7-2713-4a0b-a273-f1b096d1de48.json +0 -1
  86. package/dist/public/_nuxt/error-404.2Q-XfgR7.css +0 -1
  87. package/dist/public/_nuxt/error-500.3QnkDFAn.css +0 -1
  88. package/dist/public/_nuxt/hK0Xv1bA.js +0 -1
  89. package/dist/public/_nuxt/vcHT-ufV.js +0 -1
  90. package/dist/public/_nuxt/zkWX764r.js +0 -4
  91. /package/dist/public/_nuxt/{C3MbbcWQ.js → BUwCbG2W.js} +0 -0
  92. /package/dist/public/_nuxt/{2NHbZxRd.js → DoJ6DaKu.js} +0 -0
  93. /package/dist/public/_nuxt/{BmEqTRfc.js → qIAw3Eg02.js} +0 -0
@@ -0,0 +1 @@
1
+ import{C as e,Ct as t,G as n,K as r,S as i,Tt as a,Ut as o,Wt as s,X as c,Z as l,_ as u,at as d,b as f,it as p,j as m,m as h,x as g,xt as _,y as v,yt as y,z as ee}from"./gtHejcxM.js";import{a as te,c as b,d as x,f as S,i as ne,l as C,o as re,r as ie,u as ae}from"./5tvbNeKa.js";import{t as w}from"./CbqJqu0C.js";import{t as T}from"./D04G8HHr.js";import{t as oe}from"./CPGUpoLC.js";function E(){return typeof window<`u`}function D(e){return se(e)?(e.nodeName||``).toLowerCase():`#document`}function O(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function k(e){return((se(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function se(e){return E()?e instanceof Node||e instanceof O(e).Node:!1}function A(e){return E()?e instanceof Element||e instanceof O(e).Element:!1}function j(e){return E()?e instanceof HTMLElement||e instanceof O(e).HTMLElement:!1}function ce(e){return!E()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof O(e).ShadowRoot}function M(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=I(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function le(e){return/^(table|td|th)$/.test(D(e))}function N(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ue=/transform|translate|scale|rotate|perspective|filter/,de=/paint|layout|strict|content/,P=e=>!!e&&e!==`none`,fe;function pe(e){let t=A(e)?I(e):e;return P(t.transform)||P(t.translate)||P(t.scale)||P(t.rotate)||P(t.perspective)||!he()&&(P(t.backdropFilter)||P(t.filter))||ue.test(t.willChange||``)||de.test(t.contain||``)}function me(e){let t=R(e);for(;j(t)&&!F(t);){if(pe(t))return t;if(N(t))return null;t=R(t)}return null}function he(){return fe??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),fe}function F(e){return/^(html|body|#document)$/.test(D(e))}function I(e){return O(e).getComputedStyle(e)}function L(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function R(e){if(D(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ce(e)&&e.host||k(e);return ce(t)?t.host:t}function ge(e){let t=R(e);return F(t)?e.ownerDocument?e.ownerDocument.body:e.body:j(t)&&M(t)?t:ge(t)}function _e(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ge(e),i=r===e.ownerDocument?.body,a=O(r);if(i){let e=ve(a);return t.concat(a,a.visualViewport||[],M(r)?r:[],e&&n?_e(e):[])}else return t.concat(r,_e(r,[],n))}function ve(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ye(e){let t=I(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=j(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=S(n)!==a||S(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function be(e){return A(e)?e:e.contextElement}function z(e){let t=be(e);if(!j(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ye(t),o=(a?S(n.width):n.width)/r,s=(a?S(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var xe=b(0);function Se(e){let t=O(e);return!he()||!t.visualViewport?xe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ce(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==O(e)?!1:t}function B(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=be(e),o=b(1);t&&(r?A(r)&&(o=z(r)):o=z(e));let s=Ce(a,n,r)?Se(a):b(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=O(a),t=r&&A(r)?O(r):r,n=e,i=ve(n);for(;i&&r&&t!==n;){let e=z(i),t=i.getBoundingClientRect(),r=I(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=O(i),i=ve(n)}}return x({width:u,height:d,x:c,y:l})}function V(e,t){let n=L(e).scrollLeft;return t?t.left+n:B(k(e)).left+n}function we(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-V(e,n),y:n.top+t.scrollTop}}function Te(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=k(r),s=t?N(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=b(1),u=b(0),d=j(r);if((d||!d&&!a)&&((D(r)!==`body`||M(o))&&(c=L(r)),d)){let e=B(r);l=z(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?we(o,c):b(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 Ee(e){return Array.from(e.getClientRects())}function De(e){let t=k(e),n=L(e),r=e.ownerDocument.body,i=C(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=C(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+V(e),s=-n.scrollTop;return I(r).direction===`rtl`&&(o+=C(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Oe=25;function ke(e,t){let n=O(e),r=k(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=he();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=V(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<=Oe&&(a-=o)}else l<=Oe&&(a+=l);return{width:a,height:o,x:s,y:c}}function Ae(e,t){let n=B(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=j(e)?z(e):b(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function je(e,t,n){let r;if(t===`viewport`)r=ke(e,n);else if(t===`document`)r=De(k(e));else if(A(t))r=Ae(t,n);else{let n=Se(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return x(r)}function Me(e,t){let n=R(e);return n===t||!A(n)||F(n)?!1:I(n).position===`fixed`||Me(n,t)}function Ne(e,t){let n=t.get(e);if(n)return n;let r=_e(e,[],!1).filter(e=>A(e)&&D(e)!==`body`),i=null,a=I(e).position===`fixed`,o=a?R(e):e;for(;A(o)&&!F(o);){let t=I(o),n=pe(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||M(o)&&!n&&Me(e,o))?r=r.filter(e=>e!==o):i=t,o=R(o)}return t.set(e,r),r}function Pe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?N(t)?[]:Ne(t,this._c):[].concat(n),r],o=je(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=je(t,a[e],i);s=C(n.top,s),c=ae(n.right,c),l=ae(n.bottom,l),u=C(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Fe(e){let{width:t,height:n}=ye(e);return{width:t,height:n}}function Ie(e,t,n){let r=j(t),i=k(t),a=n===`fixed`,o=B(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=b(0);function l(){c.x=V(i)}if(r||!r&&!a)if((D(t)!==`body`||M(i))&&(s=L(t)),r){let e=B(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?we(i,s):b(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 Le(e){return I(e).position===`static`}function Re(e,t){if(!j(e)||I(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function ze(e,t){let n=O(e);if(N(e))return n;if(!j(e)){let t=R(e);for(;t&&!F(t);){if(A(t)&&!Le(t))return t;t=R(t)}return n}let r=Re(e,t);for(;r&&le(r)&&Le(r);)r=Re(r,t);return r&&F(r)&&Le(r)&&!pe(r)?n:r||me(e)||n}var Be=async function(e){let t=this.getOffsetParent||ze,n=this.getDimensions,r=await n(e.floating);return{reference:Ie(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ve(e){return I(e).direction===`rtl`}var He={convertOffsetParentRelativeRectToViewportRelativeRect:Te,getDocumentElement:k,getClippingRect:Pe,getOffsetParent:ze,getElementRects:Be,getClientRects:Ee,getDimensions:Fe,getScale:z,isElement:A,isRTL:Ve},Ue=te,We=re,Ge=ne,Ke=(e,t,n)=>{let r=new Map,i={platform:He,...n},a={...i.platform,_c:r};return ie(e,t,{...i,platform:a})},qe=m({__name:`GraphHoverView`,props:{hoverX:{},hoverY:{}},setup(e){let{hoverX:n,hoverY:i}=t(e),a=p(`hoverElement`),s=y(0),c=y(0);return d([n,i],([e,t])=>{Ke({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e,right:e,top:t,bottom:t}}},a.value,{placement:`right-start`,middleware:[Ge(),We(),Ue({mainAxis:8,alignmentAxis:8})]}).then(({x:e,y:t})=>{s.value=e,c.value=t})}),(e,t)=>(r(),g(u,{to:`body`},[f(`div`,{ref_key:`hoverElement`,ref:a,fixed:``,"z-panel-content":``,"pointer-events-none":``,style:o({left:`${s.value}px`,top:`${c.value}px`})},[l(e.$slots,`default`)],4)]))}}),Je=Object.assign(qe,{__name:`DisplayGraphHoverView`});function Ye(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 Xe,Ze,Qe,H,U,W=1,$e;function et(e,t,n,r,i){if(!Array.isArray(e))return e;let a=window.devicePixelRatio||1;if(Xe!==t||Ze!==a||Qe!==i){let n=Math.round(64*a)/64;W=i,W=Math.log2(W),W-=Math.floor(W);let r=W,o=Math.min(1,8*r);W=2**W;let s=8*Math.SQRT2/W;Xe=t,Ze=a,Qe=i,H||=document.createElement(`canvas`),U||=H.getContext(`2d`),H.width=H.height=Math.round(64*n),U.scale(n,n),U.fillStyle=e[0],U.fillRect(0,0,64,64),U.globalAlpha=.25,U.fillStyle=e[1],U.fillRect(0,0,64,64),U.globalAlpha=.67,U.strokeStyle=e[1],U.beginPath();for(let e=0;e<=64;e+=16)U.moveTo(e-32,e+32),U.lineTo(e+32,e-32);if(U.lineWidth=s*(1-(o-r)/2),U.stroke(),o+r>0){U.beginPath();for(let e=8;e<64;e+=16)U.moveTo(e-32,e+32),U.lineTo(e+32,e-32);U.lineWidth=s*(o+r)/2,U.stroke()}$e=t.createPattern(H,`repeat`),W/=n}return n/=64*W*a,n-=Math.floor(n),n*=64*W*a,$e.setTransform(new DOMMatrix([W,0,0,W,n,r])),$e}function tt(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 nt(e){return t=>t.id&&e[t.id]||t.color}function rt(e,t=1,n=1){let r={};return it(r,e,0,Math.PI*2,t,n),nt(r)}function it(e,t,n,r,i=1,a=1){let o=t.size;e[t.id]=Ye(n+r/2,i,a);for(let s of t.children){let t=s.size/o*r;it(e,s,n,t,i,a),n+=t}}var at=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ot(e=16,t=at){let n=``,r=e,i=t.length;for(;r--;)n+=t[Math.random()*i|0];return n}function st(e,t,n=(e,t)=>t.size-e.size){if(e.__nanovis)return e;let r={...e};return r.id||=ot(),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=>st(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 ct(e){return e.children.length===0?1:Math.max(...e.children.map(e=>ct(e)))+1}var lt=/\bFirefox\//.test(navigator.userAgent),G;function ut(e){return G?G.format(e):`${e}`}function K(){return(window.performance||Date).now()}function q(e){let t=e.toFixed(1).split(`.`,2);return`${ut(+t[0])}.${t[1]}`}function dt(e){return e===1?`1 byte`:e<1024?`${ut(e)} bytes`:e<1024*1024?`${q(e/1024)} kb`:e<1024*1024*1024?`${q(e/(1024*1024))} mb`:`${q(e/(1024*1024*1024))} gb`}function ft(e,t,n,r,i,a){if(lt){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 pt(e){return window.addEventListener(`wheel`,e,{passive:!1}),()=>window.removeEventListener(`wheel`,e)}function mt(e){return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)}try{G=new Intl.NumberFormat}catch{}var ht=()=>({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},gt={fallback:`#CCC`,stroke:`#0008`,text:`#222`,hover:`#fff5`,shadow:`#0008`,fg:`#fff`,bg:`#222`},_t=46,vt=`14px sans-serif`,yt=`bold ${vt}`,bt=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=rt(e),getText:r=()=>void 0,getSubtext:i=()=>void 0}=this.options;this.palette={...gt,...t.palette},this.el=document.createElement(`div`),this.canvas=document.createElement(`canvas`),this.c=this.canvas.getContext(`2d`),this.root=e,this.maxDepth=ct(e),this.disposables=[],this.events=ht(),this.getColor=n,this.getText=r,this.getSubtext=i,this.setFont(vt),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(_t)}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,xt=5,St=.01,Ct=1e3,wt=class extends bt{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(pt(e=>{let t=e.deltaX,n=e.deltaY,r=K(),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(mt(()=>this.resize())),this.mainEl.append(this.canvas),this.el.append(this.mainEl)}tick(){let e=(K()-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*St),r=Math.min(this.totalBytes,r+e.size*St),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-Ct>>1,this.zoomedOutWidth=this.zoomedOutMin+Ct,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)+xt,d=t+Y/2,f=this.getText(e)||``,p=this.getSubtext(e)||``,m,h=0,g=s+o-u,_=et(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(yt)):(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(vt),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||ft(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=K():this.animationStart=0,this.invalidate()}updateHover(e){let t=this.hitTestNode(e);this.changeHoveredNode(t),this.events.emit(`hover`,t,e)}};function Tt(e,t){for(;t;){if(t===e)return!0;t=t.parent}return!1}function Et(e,t,n){if(e===t)return;let r=t.parent,i=r.size||1,a=0;Et(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 Dt={};function Ot(e){return Dt[e]||(Dt[e]=400*Math.log(1+Math.log(1+e/8))),Dt[e]}var X=-Math.PI/2,kt=class extends bt{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(mt(()=>this.resize())),this.disposables.push(pt(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(Ot(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(yt),this.c.textAlign=`center`,this.c.fillText(this.getSubtext(this.targetNode)??dt(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=et(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=(K()-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 Ot(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=K()),Tt(this.animatedNode,this.currentNode)){let e={depth_:this.animatedDepth,startAngle_:this.animatedStartAngle,sweepAngle_:this.animatedSweepAngle};Et(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(Tt(this.currentNode,this.animatedNode)){let e={depth_:0,startAngle_:X,sweepAngle_:Math.PI*2};Et(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,At=2*Z,$=Q+Z;function jt(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>At&&y>$?jt(t.children,g+Z,_+Q,v-At,y-$):[]}),h+=c}t=d,i>=s?(n+=m,i-=m):(r+=m,s-=m)}})(0,t,n,r,i),a}var Mt=class extends bt{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(pt(e=>this.updateHover(e))),this.disposables.push(mt(()=>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=(K()-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=jt([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?1:0)|(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=et(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(ft(this.c,this.palette.stroke,n+.5,i+.5,a,o),o>=Q){this.c.fillStyle=this.palette.text;let e=a-At,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=jt([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=K(),this.animationSource=this.currentNode),this.animationTarget=e,this.currentNode=e||this.searchFor([this.layers.base],this.currentNode.node),this.updateCurrentLayout(),this.invalidate())}},Nt={flex:`~ gap-1 items-center wrap`},Pt={key:0,"i-ph-arrow-right-bold":``,"text-sm":``,"op-fade":``},Ft=[`onClick`],It=m({__name:`NavBreadcrumb`,props:{selected:{},options:{}},emits:[`select`],setup(t,{emit:n}){let a=t,o=n,l=v(()=>{let e=[],t=a.selected;for(;t;)e.unshift(t),t=t.parent;return e});return(t,n)=>(r(),e(`div`,Nt,[(r(!0),e(h,null,c(l.value,(t,n)=>(r(),e(h,{key:t.id},[n>0?(r(),e(`div`,Pt)):i(``,!0),f(`button`,{hover:`bg-active`,rounded:``,px1:``,onClick:e=>o(`select`,t)},[f(`span`,null,s(t.text||t.id),1)],8,Ft)],64))),128))]))}}),Lt=Object.assign(It,{__name:`ChartNavBreadcrumb`});function Rt(e){let{data:t,nameKey:r,sizeKey:i,rootText:o,nodeType:s,graphOptions:c,onUpdate:l}=e,u=_(void 0),f=_(void 0),p=y(void 0),m=_(void 0),h,g=v(()=>{if(e.tree)return e.tree.value;let n=a(t),c=new Map,l=0,u={id:`~root`,text:o,size:0,sizeSelf:0,children:[]};if(!n?.length)return{map:c,root:u,maxDepth:l};let d=[];d.unshift(()=>{u.size+=u.children.reduce((e,t)=>e+t.size,0),u.subtext=T(u.size).join(` `),u.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))});function f(e,t,n,r,i){if(c.has(t))return c.get(t);i>l&&(l=i);let a={id:t,text:n,size:0,sizeSelf:0,children:[],meta:{...e,path:n,type:`folder`},parent:r};return c.set(t,a),r.children.push(a),d.unshift(()=>{let t=a.sizeSelf;a.size+=a.children.reduce((e,t)=>e+t.size,0),a.subtext=T(a.size).join(` `),a.children.length&&t/a.size>.1&&a.children.push({id:`${a.id}-self`,text:``,size:t,sizeSelf:t,subtext:T(t).join(` `),children:[],meta:{...e,path:``,type:s},parent:a}),a.children.sort((e,t)=>t.size-e.size||e.id.localeCompare(t.id))}),a}function p(e){let t=e[r].split(`/`).filter(Boolean),n=u,a=``,o=0;t.forEach((l,u)=>{if(a+=(a?`/`:``)+l,o++,u===t.length-1){let t={id:e[r],text:l,size:e[i],sizeSelf:e[i],subtext:T(e[i]).join(` `),children:[],meta:{...e,path:l,type:s}};n.children.push(t),c.set(e[r],t)}else n=f(e,a,l,n,o)})}return n.forEach(p),d.forEach(e=>e()),{map:c,root:u,maxDepth:l}}),te=v(()=>({animate:oe.value.chartAnimation,palette:{stroke:w.value?`#222`:`#555`,fg:w.value?`#fff`:`#000`,bg:w.value?`#111`:`#fff`},getColor:rt(g.value.root,w.value?.8:.9,w.value?1:1.1),getSubtext:e=>e.subtext,...c}));function b(e,t){p.value=e?.meta,e?.children.length||(e=e?.parent),m.value?.select(e,t)}function x(){h?.(),f.value=g.value.root,l?.(),ee(()=>{let e=p.value&&g.value.map.get(p.value[r])||null;e&&b(e,!1)}),h=()=>{m.value?.dispose(),m.value=void 0,p.value=void 0}}return ee(()=>{d(()=>[g.value,te.value],()=>{x()},{deep:!0,immediate:!1}),x()}),n(()=>{h?.()}),{tree:g,graph:m,chartOptions:te,nodeHover:u,nodeSelected:f,selectedNode:p,selectNode:b,buildGraph:x}}export{Mt as a,Je as c,kt as i,Lt as n,tt as o,wt as r,st as s,Rt as t};
@@ -0,0 +1 @@
1
+ import{P as e,Q as t,V as n,W as r,a as i,c as a,i as o,j as s,xt as c,y as l,yt as u}from"./gtHejcxM.js";import{A as d,C as f,D as p,I as m,P as h,a as g,b as _,i as v,j as y,n as b,r as x,x as S,y as C}from"./Dg1pxj30.js";var w=(...e)=>e.find(e=>e!==void 0);function T(a){let m=a.componentName||`NuxtLink`;function h(e){return typeof e==`string`&&e.startsWith(`#`)}function T(e,t,n){let r=n??a.trailingSlash;if(!e||r!==`append`&&r!==`remove`)return e;if(typeof e==`string`)return D(e,r);let i=`path`in e&&e.path!==void 0?e.path:t(e).path;return{...e,name:void 0,path:D(i,r)}}function E(e){let n=f(),r=i(),o=l(()=>!!e.target&&e.target!==`_self`),s=l(()=>{let t=e.to||e.href||``;return typeof t==`string`&&p(t,{acceptRelative:!0})}),c=t(`RouterLink`),u=c&&typeof c!=`string`?c.useLink:void 0,m=l(()=>{if(e.external)return!0;let t=e.to||e.href||``;return typeof t==`object`?!1:t===``||s.value}),g=l(()=>{let t=e.to||e.href||``;return m.value?t:T(t,n.resolve,e.trailingSlash)}),v=m.value?void 0:u?.({...e,to:g}),y=l(()=>{let t=e.trailingSlash??a.trailingSlash;if(!g.value||s.value||h(g.value))return g.value;if(m.value){let e=typeof g.value==`object`&&`path`in g.value?S(g.value):g.value;return D(typeof e==`object`?n.resolve(e).href:e,t)}return typeof g.value==`object`?n.resolve(g.value)?.href??null:D(d(r.app.baseURL,g.value),t)});return{to:g,hasTarget:o,isAbsoluteUrl:s,isExternal:m,href:y,isActive:v?.isActive??l(()=>g.value===n.currentRoute.value.path),isExactActive:v?.isExactActive??l(()=>g.value===n.currentRoute.value.path),route:v?.route??l(()=>n.resolve(g.value)),async navigate(t){await _(y.value,{replace:e.replace,external:m.value||o.value})}}}return s({name:m,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:E,setup(i,{slots:s}){let l=f(),{to:d,href:p,navigate:m,isExternal:_,hasTarget:T,isAbsoluteUrl:D}=E(i),k=c(!1),j=u(null),M=e=>{j.value=i.custom?e?.$el?.nextElementSibling:e?.$el};function N(e){return!k.value&&(typeof i.prefetchOn==`string`?i.prefetchOn===e:i.prefetchOn?.[e]??a.prefetchOn?.[e])&&(i.prefetch??a.prefetch)!==!1&&i.noPrefetch!==!0&&i.target!==`_blank`&&!A()}async function P(e=o()){if(k.value)return;k.value=!0;let t=typeof d.value==`string`?d.value:_.value?S(d.value):l.resolve(d.value).fullPath,n=_.value?new URL(t,window.location.href).href:t;await Promise.all([e.hooks.callHook(`link:prefetch`,n).catch(()=>{}),!_.value&&!T.value&&b(d.value,l).catch(()=>{})])}if(N(`visibility`)){let e=o(),t,i=null;r(()=>{let n=O();x(()=>{t=g(()=>{j?.value?.tagName&&(i=n.observe(j.value,async()=>{i?.(),i=null,await P(e)}))})})}),n(()=>{t&&v(t),i?.(),i=null})}return()=>{if(!_.value&&!T.value&&!h(d.value)){let n={ref:M,to:d.value,activeClass:i.activeClass||a.activeClass,exactActiveClass:i.exactActiveClass||a.exactActiveClass,replace:i.replace,ariaCurrentValue:i.ariaCurrentValue,custom:i.custom};return i.custom||(N(`interaction`)&&(n.onPointerenter=P.bind(null,void 0),n.onFocus=P.bind(null,void 0)),k.value&&(n.class=i.prefetchedClass||a.prefetchedClass),n.rel=i.rel||void 0),e(t(`RouterLink`),n,s.default)}let n=i.target||null,r=w(i.noRel?``:i.rel,a.externalRelAttribute,D.value||T.value?`noopener noreferrer`:``)||null;return i.custom?s.default?s.default({href:p.value,navigate:m,prefetch:P,get route(){if(!p.value)return;let e=new URL(p.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return y(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p.value}},rel:r,target:n,isExternal:_.value||T.value,isActive:!1,isExactActive:!1}):null:e(`a`,{ref:j,href:p.value||null,rel:r,target:n,onClick:async e=>{if(!(_.value||T.value)){e.preventDefault();try{let e=C(p.value);return await(i.replace?l.replace(e):l.push(e))}finally{if(h(d.value)){let e=d.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},s.default?.())}}})}var E=T(a);function D(e,t){let n=t===`append`?h:m;return p(e)&&!e.startsWith(`http`)?e:n(e,!0)}function O(){let e=o();if(e._observer)return e._observer;let t=null,n=new Map;return e._observer={observe:(e,r)=>(t||=new IntersectionObserver(e=>{for(let t of e){let e=n.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),n.set(e,r),t.observe(e),()=>{n.delete(e),t?.unobserve(e),n.size===0&&(t?.disconnect(),t=null)})}}var k=/2g/;function A(){let e=navigator.connection;return!!(e&&(e.saveData||k.test(e.effectiveType)))}export{E as t};
@@ -0,0 +1 @@
1
+ import{C as e,E as t,K as n,O as r,S as i,Tt as a,Vt as o,Wt as s,X as c,b as l,ct as u,j as d,k as f,m as p,x as m,y as h,yt as g,z as _}from"./gtHejcxM.js";import{C as v,S as y}from"./Dg1pxj30.js";import{g as b,v as x}from"./CbqJqu0C.js";import"./CsiiwekO.js";import{r as S}from"./D04G8HHr.js";import{a as C,s as w}from"./D6dVxvIe.js";import{t as T}from"./v2o5fpbj.js";import{t as E}from"./BvZxqrTM.js";import{t as D}from"./CPGUpoLC.js";import{t as O}from"./CA89J8qi.js";import{n as k}from"./BLuztO_U.js";import{n as A,r as j,t as M}from"./olITPEcD.js";import{t as N}from"./Bpe250WO.js";import{t as P}from"./DPYc9JW_.js";import{n as ee,r as F,t as I}from"./DSkKpnKG.js";import{n as L,t as R}from"./qIAw3Eg02.js";var z={flex:`~ col gap-2`,p4:``},B=[`onClick`],V=d({__name:`FlatList`,props:{session:{},modules:{},disableTooltip:{type:Boolean,default:!1},link:{type:Boolean,default:!0}},emits:[`select`],setup(t,{emit:r}){let i=r;return(r,a)=>{let o=T;return n(),e(`div`,z,[f(M,{items:t.modules,"key-prop":`id`},{default:u(({item:e})=>[l(`div`,{flex:``,pb2:``,onClick:t=>i(`select`,e)},[f(o,{id:e.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`])])}}}),H=Object.assign(V,{__name:`ModulesFlatList`}),U={flex:`~ col gap-2`,p4:``},W={flex:``,pb2:``},G={flex:`~ gap-1 wrap`,"text-xs":``},K={flex:`~ auto text-xs wrap`},q={key:0,flex:`~ items-center`},J={key:0,op20:``},Y={flex:`~ none gap-1 wrap justify-end`},X=d({__name:`DetailedList`,props:{session:{},modules:{}},setup(t){let r=t,a=h(()=>{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,o)=>{let s=N,d=O,h=T;return n(),e(`div`,U,[f(M,{items:t.modules,"key-prop":`id`},{default:u(({item:r})=>[l(`div`,W,[f(h,{id:r.id,session:t.session,hover:`bg-active`,block:``,px2:``,p1:``,"w-full":``,border:`~ base rounded`,link:!0},{detail:u(()=>[l(`div`,G,[l(`ul`,K,[(n(!0),e(p,null,c(a.value.get(r.id),(t,o)=>(n(),e(p,{key:o},[t.source_code_size!==t.transformed_code_size&&t.transformed_code_size?(n(),e(`li`,q,[f(s,{name:t.plugin_name,class:`font-mono ws-nowrap op-50`},null,8,[`name`]),o===a.value.get(r.id).length-1?i(``,!0):(n(),e(`span`,J,`|`))])):i(``,!0)],64))),128))]),o[0]||=l(`div`,{flex:`~ auto gap-1`,"of-hidden":``},null,-1),l(`div`,Y,[l(`span`,null,[r.buildMetrics?(n(),m(d,{key:0,metrics:r.buildMetrics},null,8,[`metrics`])):i(``,!0)])])])]),_:2},1032,[`id`,`session`])])]),_:1},8,[`items`])])}}}),Z=Object.assign(X,{__name:`ModulesDetailedList`}),Q=[`d`,`stroke-dasharray`],te=d({__name:`Graph`,props:{modules:{},session:{}},setup(e){let t=e,r=h(()=>t.modules);return k({modules:r,spacing:{width:400,height:55,linkOffset:20,margin:800,gap:150},generateGraph:e=>{let{isFirstCalculateGraph:t,scale:n,spacing:i,tree:o,hierarchy:s,collapsedNodes:c,container:l,modulesMap:u,nodes:d,links:f,nodesMap:p,linksMap:m,width:g,height:v,childToParentMap:y,focusOn:b}=e,x=h(()=>r.value.filter(e=>e.importers.length===0));return(e=!0)=>{g.value=window.innerWidth,v.value=window.innerHeight;let r=new Set,h=s({module:{id:`~root`}},e=>e.module.id===`~root`?(x.value.forEach(e=>{r.add(e),t.value&&y.set(e.id,`~root`)}),x.value.map(e=>({module:e,expanded:!c.has(e.id),hasChildren:!1}))):c.has(e.module.id)?[]:e.module.imports.map(n=>{let i=u.value.get(n.module_id);if(i&&!r.has(i)&&!(y.has(i.id)&&y.get(i.id)!==e.module.id))return r.add(i),t.value&&y.set(i.id,e.module.id),{module:i,import:n,expanded:!c.has(i.id),hasChildren:!1}}).filter(e=>e!==void 0));t.value&&=!1,o().nodeSize([a(i.height),a(i.width)+a(i.gap)])(h);let S=h.descendants();for(let e of S)[e.x,e.y]=[e.y-a(i.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<a(i.margin))for(let e of S)e.x+=Math.abs(C)+a(i.margin);if(w<a(i.margin))for(let e of S)e.y+=Math.abs(w)+a(i.margin);d.value=S,p.clear();for(let e of S)p.set(e.data.module.id,e);let T=h.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}`}));m.clear();for(let e of T)m.set(e.id,e);f.value=T,_(()=>{g.value=l.value.scrollWidth/n.value+a(i.margin),v.value=l.value.scrollHeight/n.value+a(i.margin);let t=x.value?.[0]?.id;e&&t&&_(()=>{b(t,!1)})})}}}),(t,i)=>{let a=T,s=I;return n(),m(s,{session:e.session,modules:r.value},{default:u(({node:t,nodesRefMap:n})=>[f(a,{id:t.data.module.id,ref:e=>n.set(t.data.module.id,e?.$el),link:!0,session:e.session,minimal:!0,flex:`1`},null,8,[`id`,`session`])]),link:u(({link:e,d:t,linkClass:n})=>[l(`path`,{d:t,class:o(n),"stroke-dasharray":e.import?.kind===`dynamic-import`?`3 6`:void 0,fill:`none`},null,10,Q)]),_:1},8,[`session`,`modules`])}}}),ne=Object.assign(te,{__name:`ModulesGraph`}),re={"of-auto":``,"max-h-screen":``,"pt-45":``,relative:``},ie={flex:`~ col gap-2`,p4:``},ae=d({__name:`Folder`,props:{session:{},modules:{}},setup(t){let r=t,a=h(()=>{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 o=P;return n(),e(`div`,re,[l(`div`,ie,[Object.keys(a.value.workspace.children).length?(n(),m(o,{key:0,node:a.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`])):i(``,!0),Object.keys(a.value.nodeModules.children).length?(n(),e(p,{key:1},[r[0]||=l(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(o,{node:a.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)):i(``,!0),Object.keys(a.value.virtual.children).length?(n(),e(p,{key:2},[r[1]||=l(`div`,{"w-full":``,"h-1px":``,border:`t base`},null,-1),f(o,{node:a.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)):i(``,!0)])])}}}),oe=Object.assign(ae,{__name:`ModulesFolder`}),se={relative:``,"max-h-screen":``,"of-hidden":``},ce={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},le={key:0,h10:``,mr2:``,flex:`~ items-center`},ue={flex:`~ gap-2 items-center`,p2:``,border:`t base`},de=[`onClick`],fe={key:0,"of-auto":``,"h-screen":``,"pt-45":``},pe={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},$={op50:``},me={key:1,"of-auto":``,"h-screen":``,"pt-45":``},he={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},ge={op50:``},_e=d({__name:`index`,props:{session:{}},setup(d){let _=d,S=y(),O=v(),k=g({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}),M=[{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(k.value,e=>{let t={...S.query,search:e.search||void 0,file_types:e.selected||void 0,node_modules:e.node_modules||void 0};O.replace({query:R(t)})},{debounce:500});let N=h(()=>_.session.modulesList.map(e=>({mod:e,path:E(e.id,_.session.meta.cwd),type:w(e.id)}))),P=h(()=>C.filter(e=>N.value.some(t=>e.match.test(t.mod.id)))),I=h(()=>{let e=N.value;return k.value.selected&&(e=e.filter(e=>{let t=w(e.mod.id);return k.value.selected.includes(t.name)})),k.value.node_modules&&(e=e.filter(e=>e.path.moduleName&&k.value.node_modules.includes(e.path.moduleName))),e.map(e=>({...e.mod,path:e.path.path}))}),{pathSelectorVisible:z,selectPathNodes:B,togglePathSelector:V,normalizedGraph:U}=F({onToggle:e=>{k.value.search=e?!1:``},dataMap:h(()=>new Map(_.session.modulesList.map(e=>[e.id,e]))),list:I,importIdKey:`module_id`}),W=b(()=>I.value,()=>new j(I.value,{includeScore:!0,keys:[`id`],ignoreLocation:!0,threshold:.4})),G=h(()=>k.value.search?W.value.search(k.value.search).map(e=>e.item):I.value);function K(e){S.query.module&&O.replace({query:{...S.query,module:void 0}}),D.value.moduleGraphViewType=e}return(h,g)=>{let _=H,v=T,y=ee,b=A,x=Z,S=ne,C=oe;return n(),e(`div`,se,[l(`div`,ce,[f(b,{modelValue:k.value,"onUpdate:modelValue":g[2]||=e=>k.value=e,rules:P.value},t({"search-end":u(()=>[a(D).moduleGraphViewType===`graph`?(n(),e(`div`,le,[l(`button`,{"w-8":``,"h-8":``,"rounded-full":``,flex:``,"items-center":``,"justify-center":``,hover:`bg-active op100`,op50:``,title:`Graph Path Selector`,onClick:g[1]||=e=>a(V)(!0)},[...g[3]||=[l(`i`,{"i-ri:route-line":``,flex:``},null,-1)]])])):i(``,!0)]),default:u(()=>[l(`div`,ue,[g[4]||=l(`span`,{op50:``,pl2:``,"text-sm":``},`View as`,-1),(n(),e(p,null,c(M,e=>l(`button`,{key:e.value,"btn-action":``,class:o(a(D).moduleGraphViewType===e.value?`bg-active`:`grayscale op50`),onClick:t=>K(e.value)},[l(`div`,{class:o(e.icon)},null,2),r(` `+s(e.label),1)],10,de)),64))])]),_:2},[a(z)?{name:`search`,fn:u(()=>[f(y,{session:d.session,data:G.value,"import-id-key":`module_id`,"search-keys":[`id`],onSelect:a(B),onClose:g[0]||=e=>a(V)(!1)},{list:u(({select:e,data:t})=>[t?.length?(n(),m(_,{key:0,session:d.session,modules:t,"disable-tooltip":``,link:!1,onSelect:e},null,8,[`session`,`modules`,`onSelect`])):i(``,!0)]),item:u(({id:e})=>[f(v,{id:e,session:d.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`])]),a(D).moduleGraphViewType===`list`?(n(),e(`div`,fe,[f(_,{session:d.session,modules:G.value},null,8,[`session`,`modules`]),l(`div`,pe,[l(`span`,$,s(G.value.length)+` of `+s(d.session.modulesList.length),1)])])):a(D).moduleGraphViewType===`detailed-list`?(n(),e(`div`,me,[f(x,{session:d.session,modules:G.value},null,8,[`session`,`modules`]),l(`div`,he,[l(`span`,ge,s(G.value.length)+` of `+s(d.session.modulesList.length),1)])])):a(D).moduleGraphViewType===`graph`?(n(),m(S,{key:2,session:d.session,modules:a(U)},null,8,[`session`,`modules`])):(n(),m(C,{key:3,session:d.session,modules:G.value},null,8,[`session`,`modules`]))])}}});export{_e as default};
@@ -0,0 +1 @@
1
+ import{r as e}from"./F3PiHIWc.js";import{C as t,K as n,S as r,Tt as i,Wt as a,X as o,b as s,ct as c,j as l,k as u,m as d,x as f}from"./gtHejcxM.js";import{S as p}from"./Dg1pxj30.js";import{c as m}from"./CbqJqu0C.js";import{n as h,o as g}from"#entry";import"./CsiiwekO.js";import{r as _,t as v}from"./v2o5fpbj.js";import{t as y}from"./T6zWo6PM.js";import{t as b}from"./Bpe250WO.js";var x={key:0},S={key:2},C={op50:``},w={key:3},T=[`textContent`],E=[`textContent`],D=l({__name:`RawEventsTable`,props:{events:{},fields:{default:()=>[`event_id`,`action`,`module_id`,`plugin_name`,`timestamp`,`content`,`*`]},session:{}},setup(e){let l=e;function p(e,t){let n=new Set(t);return n.has(`content`)&&n.add(`content`),n.has(`plugin_name`)&&n.add(`plugin_index`),Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e)))}function m(e){return e.action===`HookLoadCallEnd`||e.action===`HookTransformCallStart`||e.action===`HookTransformCallEnd`?e.content:null}return(h,D)=>{let O=v,k=b;return n(),t(d,null,[e.events.length?r(``,!0):(n(),t(`div`,x,[...D[0]||=[s(`div`,{p5:``,italic:``},` No events found `,-1)]])),s(`table`,null,[s(`tbody`,null,[(n(!0),t(d,null,o(l.events,h=>(n(),t(`tr`,{key:h.event_id},[(n(!0),t(d,null,o(l.fields,o=>(n(),t(`td`,{key:o,px2:``},[o===`module_id`?(n(),f(O,{key:0,id:`module_id`in h?h.module_id:``,session:e.session},null,8,[`id`,`session`])):o===`action`?(n(),f(_,{key:1,text:h.action},null,8,[`text`])):o===`plugin_name`&&`plugin_name`in h?(n(),t(`div`,S,[u(k,{"font-mono":``,name:h.plugin_name},null,8,[`name`]),s(`code`,C,`#`+a(h.plugin_id),1)])):o===`event_id`?(n(),t(`div`,w,a(h.event_id),1)):o===`content`&&m(h)?(n(),f(i(g),{key:4},{popper:c(()=>[s(`pre`,{p1:``,"text-sm":``,textContent:a(m(h))},null,8,T)]),default:c(()=>[D[1]||=s(`div`,{"i-ph-code":``},null,-1)]),_:2},1024)):o===`timestamp`&&`timestamp`in h?(n(),f(y,{key:5,"text-sm":``,timestamp:h.timestamp},null,8,[`timestamp`])):o===`*`?(n(),t(`pre`,{key:6,"text-sm":``,textContent:a(p(h,e.fields))},null,8,E)):r(``,!0)]))),128))]))),128))])])],64)}}}),O=Object.assign(D,{__name:`DataRawEventsTable`}),k={key:1},A=l({__name:`raw`,props:{session:{}},setup(a){let o=a,c=e(),l=p().query,g=m(async()=>await c.value.call(`vite:rolldown:get-module-raw-events`,{session:o.session.id,module:l.module}),{events:[]});return(e,o)=>{let c=h,l=O;return n(),t(d,null,[i(g).isLoading?(n(),f(c,{key:0})):r(``,!0),s(`div`,null,[i(g).isReady?(n(),f(l,{key:0,events:i(g).state.value.events,session:a.session},null,8,[`events`,`session`])):(n(),t(`div`,k,[u(c)]))])],64)}}});export{A as default};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Vt as n,Wt as r,Z as i,b as a,ct as o,j as s,x as c,y as l}from"./gtHejcxM.js";function u(e,t){let n=[];return n=e==null?[``,`-`]:e<1?[`<1`,`ms`]:e<1e3?[e.toFixed(0),`ms`]:e<1e3*60?[(e/1e3).toFixed(1),`s`]:[(e/1e3/60).toFixed(1),`min`],t?n.join(` `):n}var d={"ml-0.4":``,"text-xs":``,op75:``},f=s({__name:`DisplayNumberWithUnit`,props:{number:{},unit:{}},setup(n){return(o,s)=>(t(),e(`div`,null,[i(o.$slots,`default`),a(`span`,null,r(n.number),1),a(`span`,d,r(n.unit),1)]))}}),p=s({__name:`DisplayDuration`,props:{duration:{},factor:{default:1},unit:{default:`ms`},color:{type:Boolean,default:!0}},setup(e){let r=e,a=l(()=>{if(r.duration!=null)return r.unit===`ns`?r.duration/1e3:r.duration});function s(e){return!r.color||e==null?``:(e*=r.factor,e<1?`op50`:e>1e4?`color-scale-critical`:e>1e3?`color-scale-high`:e>500?`color-scale-medium`:e>200?`color-scale-low`:`color-scale-neutral`)}let d=l(()=>u(a.value));return(e,r)=>(t(),c(f,{class:n(s(a.value)),number:d.value[0],unit:d.value[1]},{default:o(()=>[i(e.$slots,`default`)]),_:3},8,[`class`,`number`,`unit`]))}});export{u as n,p as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./CbqJqu0C.js";Symbol.toStringTag;var t=class{_mapTree;constructor(e){this.length=e,this._mapTree=new Map}_getLastMap(e){let t=this._mapTree;for(let n of e.slice(0,-1))t.has(n)||t.set(n,new Map),t=t.get(n);return t}set(e,t){if(e.length!==this.length)throw Error(`Expect tuple of length ${this.length}, got ${e.length}`);return this._getLastMap(e).set(e[e.length-1],t),this}get(e){return this._getLastMap(e).get(e[e.length-1])}clear(){this._mapTree.clear()}delete(e){return this._getLastMap(e).delete(e[e.length-1])}get size(){return this._mapTree.size}*_traverseMap(){function*e(t,n,r){if(r===0)yield{keys:n,map:t};else for(let[i,a]of t.entries())yield*e(a,[...n,i],r-1)}yield*e(this._mapTree,[],this.length)}},n=class{_lengthMap;constructor(){this._lengthMap=new Map}get(e){let t=e.length;return this._lengthMap.get(t)?.get(e)}set(e,n){let r=e.length,i=this._lengthMap.get(r);return i||(i=new t(r),this._lengthMap.set(r,i)),i.set(e,n),this}delete(e){let t=e.length;return this._lengthMap.get(t)?.delete(e)??!1}clear(){this._lengthMap.clear()}};function r(e){let t=new n,r=function(...n){let r=t.get(n);return r||(r=e(...n),t.set(n,r),r)};return r.cache=t,r}var i=[{match:/[\\/]node_modules[\\/]/i,name:`node_modules`,description:`Node Modules`,icon:`i-catppuccin-npm`},{match:/virtual:|^\0/,name:`virtual`,description:`Virtual`,icon:`i-catppuccin-symlink`},{match:/^@?[\w-]+\/?/,name:`package`,description:`Package`,icon:`i-catppuccin-java-class-abstract`},{match:/\.vue$/i,name:`vue`,description:`Vue`,icon:`i-catppuccin-vue`},{match:/\.[cm]?[tj]sx$/i,name:`jsx`,description:`JavaScript React`,icon:`i-catppuccin-javascript-react`},{match:/\.[cm]?ts$/i,name:`ts`,description:`TypeScript`,icon:`i-catppuccin-typescript`},{match:/\.[cm]?js$/i,name:`js`,description:`JavaScript`,icon:`i-catppuccin-javascript`},{match:/\.svelte$/i,name:`svelte`,description:`Svelte`,icon:`i-catppuccin-svelte`},{match:/\.mdx$/i,name:`mdx`,description:`MDX`,icon:`i-catppuccin-mdx`},{match:/\.md$/i,name:`md`,description:`Markdown`,icon:`i-catppuccin-markdown`},{match:/\.astro$/i,name:`astro`,description:`Astro`,icon:`i-catppuccin-astro`},{match:/\.angular$/i,name:`angular`,description:`Angular`,icon:`i-catppuccin-angular`},{match:/\.html?$/i,name:`html`,description:`HTML`,icon:`i-catppuccin-html`},{match:/\.(css|scss|less|postcss)$/i,name:`css`,description:`CSS`,icon:`i-catppuccin-css`},{match:/\.json[c5]?$/i,name:`json`,description:`JSON`,icon:`i-catppuccin-json`},{match:/\.(yaml|yml)$/i,name:`yaml`,description:`YAML`,icon:`i-catppuccin-yaml`},{match:/\.toml$/i,name:`toml`,description:`TOML`,icon:`i-catppuccin-toml`},{match:/\.svg$/i,name:`svg`,description:`SVG`,icon:`i-catppuccin-svg`}],a=[{match:/^(replace|define|alias)$/,name:`rollup`,description:`Rollup`,icon:`i-catppuccin-rollup`},{match:/^vite:/i,name:`vite`,description:`Vite`,icon:`i-catppuccin-vite`},{match:/^unocss:/i,name:`unocss`,description:`Unocss`,icon:`i-catppuccin-unocss`},{match:/^nuxt:/i,name:`nuxt`,description:`Nuxt`,icon:`i-catppuccin-nuxt`},{match:/^builtin:/i,name:`builtin`,description:`Builtin`,icon:`i-catppuccin-folder-prisma`}],o={name:`file`,match:/.*/,description:`File`,icon:`i-catppuccin-file`},s={name:`plugin`,match:/.*/,description:`User Plugins`,icon:`i-catppuccin-folder-plugins`};function c(e){return i.find(t=>t.name===e)??o}var l=r(e=>{e=e.replace(/(\?|&)v=[^&]*/,`$1`).replace(/\?$/,``);for(let t of i)if(t.match.test(e))return t;return o}),u=r(e=>{for(let t of a)if(t.match.test(e))return t;return s});function d(e,t=1){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return f(n%360,t)}function f(t,n=1){return`hsla(${t}, ${e.value?50:65}%, ${e.value?60:40}%, ${n})`}var p={error:0,client:60,bailout:-1,ssr:270,vite:250,vite1:240,vite2:120,virtual:160,nuxt:140};function m(e,t=1){if(e=e.replace(/[^a-z]+/gi,``).toLowerCase(),e in p){let n=p[e];return typeof n==`number`?f(n,t):t===1?n:n+Math.floor(t*255).toString(16).padStart(2,`0`)}return d(e,t)}export{i as a,c,s as i,u as l,d as n,a as o,f as r,l as s,m as t,r as u};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,L as n,S as r,Tt as i,Ut as a,Vt as o,X as s,Z as c,b as l,ct as u,et as d,j as f,k as p,m,nt as h,x as g}from"./gtHejcxM.js";import{S as _}from"./Dg1pxj30.js";import{t as v}from"./CsiiwekO.js";import{n as y,t as b}from"./Bf1Vsod8.js";var x=[`open`],S={"font-mono":``},C={"font-mono":``},w=f({__name:`TreeNode`,props:n({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:n([`select`],[`update:open`]),setup(n,{emit:f}){let w=n,E=f,D=h(n,`open`),O=_(),k=window.location;function A(e){w.link||E(`select`,e)}return(f,h)=>{let _=b,w=T,E=y;return t(),e(`details`,{open:D.value,onToggle:h[0]||=e=>D.value=e.target?.open},[l(`summary`,{"cursor-default":``,"select-none":``,"text-sm":``,truncate:``,style:a({paddingLeft:`${n.padding+.5}rem`}),flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active `},[l(`div`,{class:o([`i-ph-caret-right-duotone transition op50`,D.value?`rotate-90`:``])},null,2),l(`div`,{class:o(D.value&&n.iconOpen||n.icon),"inline-block":``,"vertical-text-bottom":``},null,2),l(`div`,S,[p(_,{path:n.node.name||``},null,8,[`path`])])],4),D.value?(t(),e(m,{key:0},[(t(!0),e(m,null,s(Object.entries(n.node.children),e=>(t(),g(w,{key:e[0],node:e[1],link:n.link,padding:n.padding+1,"link-query-key":n.linkQueryKey,onSelect:A},{extra:u(({node:e})=>[c(f.$slots,`extra`,{node:e})]),_:3},8,[`node`,`link`,`padding`,`link-query-key`]))),128)),(t(!0),e(m,null,s(n.node.items,e=>(t(),g(d(n.link?i(v):`div`),{key:e.full,to:n.link?typeof n.link==`string`?n.link:{path:i(O).path,query:{...i(O).query,[n.linkQueryKey]:e.full},hash:i(k).hash}:void 0,"text-sm":``,"ws-nowrap":``,flex:`~ gap-1`,px2:``,py1:``,rounded:``,hover:`bg-active`,style:a({paddingLeft:`${n.padding+2.7}rem`}),onClick:t=>A(e)},{default:u(()=>[p(E,{filename:e.full},null,8,[`filename`]),l(`div`,C,[p(_,{path:e.path.split(`/`).pop()||``},null,8,[`path`]),c(f.$slots,`extra`,{node:e})])]),_:2},1032,[`to`,`style`,`onClick`]))),128))],64)):r(``,!0)],40,x)}}}),T=Object.assign(w,{__name:`DisplayTreeNode`});export{T as t};
@@ -0,0 +1 @@
1
+ import{$ as e,C as t,Ht as n,K as r,L as i,R as a,S as o,Tt as s,Ut as c,Vt as l,W as u,Wt as d,X as f,Z as p,at as m,b as h,ct as g,j as _,k as v,lt as y,m as b,nt as x,x as S,y as C,yt as w}from"./gtHejcxM.js";import{R as T,V as E,W as D}from"./Dg1pxj30.js";import{g as O}from"./CbqJqu0C.js";import{i as k,r as A}from"#entry";import{a as j,c as ee,i as M,o as N,r as P,s as F,t as I}from"./BLuztO_U.js";import{r as L}from"./olITPEcD.js";var R={"flex-1":``,"w-0":``,"h-full":``},z={key:0,"w-full":``,"overflow-hidden":``,flex:`~ items-center`,border:`~ base rounded`,p1:``,relative:``},B={"overflow-hidden":``,"text-ellipsis":``,pr6:``,"w-0":``,"flex-1":``},V=[`placeholder`],H={class:`p2 w100`,flex:`~ col gap2`},U=_({__name:`PathSelectorItem`,props:i({selector:{},placeholder:{},session:{},data:{default:void 0},emptyStateText:{default:void 0},onClear:{type:Function,default:void 0}},{search:{required:!0},searchModifiers:{}}),emits:i([`clear`],[`update:search`]),setup(e,{emit:n}){let i=n,a=x(e,`search`);return(n,o)=>(r(),t(`div`,R,[e.selector.state.value.selected?(r(),t(`div`,z,[h(`div`,B,[p(n.$slots,`item`)]),h(`button`,{"i-carbon-clean":``,"text-4":``,hover:`op100`,op50:``,title:`Clear`,absolute:``,"right-2":``,onClick:o[0]||=e=>i(`clear`)})])):(r(),S(s(A),{key:1,distance:15,triggers:[`click`],"auto-hide":!1,delay:{show:300,hide:150},class:`h-full`},{popper:g(()=>[h(`div`,H,[e.data?.length?p(n.$slots,`list`,{key:0}):p(n.$slots,`empty`,{key:1})])]),default:g(()=>[y(h(`input`,{"onUpdate:modelValue":o[1]||=e=>a.value=e,py1:``,px4:``,"w-full":``,"h-full":``,border:`~ base rounded-1`,style:{outline:`none`},placeholder:e.placeholder,onBlur:o[2]||=(...e)=>s(k)&&s(k)(...e)},null,40,V),[[E,a.value]])]),_:3}))]))}}),W=Object.assign(U,{__name:`DataPathSelectorItem`});function G(e){let t=w({search:``,selected:null}),n=w(),r=C(e.getModules);function i(t){n.value=O(t,()=>new L(t.value,{includeScore:!0,keys:e.searchKeys||[`id`],ignoreLocation:!0,threshold:.4}))}function a(e){t.value.selected=e.id,t.value.search=``}function o(){t.value.selected=null}return{state:t,modules:r,fuse:n,initSelector:i,select:a,clear:o}}function K(e){let{onToggle:t,dataMap:n,list:r,importIdKey:i}=e,a=w(!1),o=w({start:``,end:``});function s(e){a.value=e??!a.value,t?.(a.value)}function c(e){o.value={start:e.start,end:e.end}}return{pathSelectorVisible:a,togglePathSelector:s,pathNodes:o,selectPathNodes:c,normalizedGraph:C(()=>{let{start:e,end:t}=o.value;if(!e&&!t)return r.value;let a=new Set,s=(e,t,n)=>{let r=[e],i=new Set,o=new Map([[`${e}`,[`${e}`]]]);for(;r.length>0;){let e=r.shift();i.has(e)||(i.add(e),n?e===n&&o.get(e)?.forEach(e=>a.add(e)):a.add(e),(!n||e!==n)&&t(e).forEach(t=>{i.has(`${t}`)||(r.push(`${t}`),n&&o.set(`${t}`,[...o.get(e)||[],`${t}`]))}))}};return e&&t?s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[],t):e&&s(e,e=>n.value.get(e)?.imports.map(e=>e[i])||[]),r.value.filter(e=>a.has(e.id)).map(t=>t.id===e?{...t,importers:[]}:t)})}}var q={h10:``,px4:``,p1:``,relative:``,flex:`~ gap2 items-center`},J={flex:`~ items-center gap2`,class:`flex-1 h-full`,"min-w-0":``},Y={flex:`~ items-center justify-center`,"w-full":``,"h-20":``},X={italic:``,op50:``},Z=_({__name:`PathSelector`,props:{session:{},data:{},importIdKey:{},searchKeys:{}},emits:[`close`,`select`],setup(e,{emit:n}){let i=e,a=n,o=C(()=>{let e=new Map;return i.data.forEach(t=>{e.set(t.id,t)}),e}),c=G({searchKeys:i.searchKeys,getModules:()=>c.state.value.search?c.fuse.value.value?.search(c.state.value.search).map(e=>e.item)??[]:i.data});c.initSelector(C(()=>i.data));function l(e,t=new Set){if(t.has(e))return[];t.add(e);let n=o.value.get(e);if(!n?.imports?.length)return[];let r=[];for(let e of n.imports){let n=o.value.get(`${e[i.importIdKey]}`);n&&(t.has(n.id)||(r.push(n),r.push(...l(n.id,t))))}return r}let u=G({searchKeys:i.searchKeys,getModules:()=>c.state.value.selected?l(c.state.value.selected):[]});u.initSelector(u.modules);let f=C(()=>u.state.value.search?u.fuse.value.value?.search(u.state.value.search).map(e=>e.item)??[]:u.modules.value);m([()=>c.state.value.selected,()=>u.state.value.selected],()=>{a(`select`,{start:c.state.value.selected??``,end:u.state.value.selected??``})});function _(){a(`select`,{start:``,end:``}),a(`close`)}return(n,i)=>{let a=W;return r(),t(`div`,q,[h(`div`,J,[v(a,{search:s(c).state.value.search,"onUpdate:search":i[0]||=e=>s(c).state.value.search=e,placeholder:`Start`,selector:s(c),session:e.session,data:s(c).modules.value,onClear:i[1]||=()=>{s(c).clear(),s(u).clear()}},{list:g(()=>[p(n.$slots,`list`,{select:s(c).select,data:s(c).modules.value})]),item:g(()=>[p(n.$slots,`item`,{id:s(c).state.value.selected})]),_:3},8,[`search`,`selector`,`session`,`data`]),i[3]||=h(`div`,{class:`i-carbon-arrow-right op50`,"flex-shrink-0":``},null,-1),v(a,{search:s(u).state.value.search,"onUpdate:search":i[2]||=e=>s(u).state.value.search=e,placeholder:`End`,selector:s(u),session:e.session,data:f.value,onClear:s(u).clear},{list:g(()=>[p(n.$slots,`list`,{select:s(u).select,data:f.value})]),item:g(()=>[p(n.$slots,`item`,{id:s(u).state.value.selected})]),empty:g(()=>[h(`div`,Y,[h(`span`,X,d(s(c).state.value.selected?`No modules`:`Select a start module to get end modules`),1)])]),_:3},8,[`search`,`selector`,`session`,`data`,`onClear`])]),v(I,{class:`mr--2`,onClick:_})])}}}),Q=Object.assign(Z,{__name:`DataPathSelector`}),te=_({inheritAttrs:!1,__name:`TimeoutView`,props:{content:{},hideInterval:{default:1500}},setup(e){let i=w(!1),s=null;return m(()=>e.content,()=>{s&&clearTimeout(s),i.value=!0,s=setTimeout(()=>{i.value=!1},e.hideInterval)}),(s,c)=>(r(),S(T,{"enter-active-class":`transition-opacity duration-200 ease-in`,"leave-active-class":`transition-opacity duration-500 ease-out`,"enter-from-class":`opacity-0`,"leave-to-class":`opacity-0`},{default:g(()=>[i.value?(r(),t(`div`,n(a({key:0},s.$attrs)),d(e.content),17)):o(``,!0)]),_:1}))}}),ne=Object.assign(te,{__name:`DisplayTimeoutView`}),re=[`width`,`height`],ie=[`d`],ae={class:`w-4`},oe=[`disabled`,`title`,`onClick`],$={fixed:``,"right-6":``,"bottom-6":``,"z-panel-nav":``,flex:`~ col gap-2 items-center`},se={"w-10":``,flex:`~ items-center justify-center`},ce={"bg-glass":``,"rounded-full":``,border:``,"border-base":``,shadow:``,flex:`~ col gap-1 p1`},le=[`disabled`],ue=[`disabled`],de=[`disabled`],fe=[`disabled`],pe=_({__name:`ModuleGraph`,props:{modules:{},session:{},expandControls:{type:Boolean,default:!0}},setup(n){let i=n,{isFirstCalculateGraph:a,childToParentMap:d,collapsedNodes:g,calculateGraph:_,container:x,width:S,height:C,scale:w,nodes:T,links:E,spacing:O,nodesRefMap:k}=F(),{isGrabbing:A,init:I}=j(),{zoomIn:L,zoomOut:R,ZOOM_MIN:z,ZOOM_MAX:B}=N(),{isGraphNodeToggling:V,toggleNode:H,expandAll:U,collapseAll:W}=ee({modules:i.modules});return u(()=>{I(),m(()=>i.modules,()=>{a.value=!0,g.clear(),d.clear(),_()},{immediate:!0})}),(i,a)=>{let u=ne,d=e(`tooltip`);return r(),t(`div`,{ref_key:`container`,ref:x,"w-full":``,"h-screen":``,"of-scroll":``,relative:``,"select-none":``,class:l(s(A)?`cursor-grabbing`:``)},[h(`div`,{style:c({width:`${s(S)*s(w)}px`,height:`${s(C)*s(w)}px`})},[h(`div`,{flex:`~ items-center justify-center`,style:c({transform:`scale(${s(w)})`,transformOrigin:`0 0`})},[h(`div`,{absolute:``,"left-0":``,"top-0":``,style:c({width:`${s(S)}px`,height:`${s(C)}px`}),class:`bg-dots`},null,4),(r(),t(`svg`,{"pointer-events-none":``,absolute:``,"left-0":``,"top-0":``,"z-graph-link":``,width:s(S),height:s(C)},[h(`g`,null,[(r(!0),t(b,null,f(s(E),e=>(r(),t(b,{key:e.id},[e.target?p(i.$slots,`link`,{key:0,link:e,d:s(P)(e,s(O)),linkClass:s(M)(e)},()=>[(r(),t(`path`,{key:e.id,d:s(P)(e,s(O)),class:l(s(M)(e)),fill:`none`},null,10,ie))]):o(``,!0)],64))),128))])],8,re)),(r(!0),t(b,null,f(s(T),e=>(r(),t(b,{key:e.data.module.id},[e.data.module.id===`~root`?o(``,!0):(r(),t(`div`,{key:0,absolute:``,class:`group z-graph-node flex gap-1 items-center`,style:c({left:`${e.x}px`,top:`${e.y}px`,transform:`translate(-50%, -50%)`})},[h(`div`,{flex:`~ items-center gap-1`,"bg-glass":``,border:`~ base rounded`,class:`group-hover:bg-active block px2 p1`,style:c({minWidth:`${s(s(O).width)}px`,maxWidth:`${s(s(O).width)}px`,maxHeight:`${s(s(O).height)}px`,overflow:`hidden`,transition:`all 0.3s ease`})},[p(i.$slots,`default`,{node:e,nodesRefMap:s(k)})],4),h(`div`,ae,[e.data.hasChildren?(r(),t(`button`,{key:0,"w-4":``,"h-4":``,"rounded-full":``,flex:`items-center justify-center`,"text-xs":``,border:`~ active`,class:l([`flex cursor-pointer z-graph-node-active bg-base`,{"cursor-not-allowed":s(V),"hover:bg-active":!s(V)}]),disabled:s(V),title:e.data.expanded?`Collapse`:`Expand`,onClick:D(t=>s(H)(e.data.module.id),[`stop`])},[h(`div`,{class:l([`text-primary h-4`,[e.data.expanded?`i-ph-minus`:`i-ph-plus`]]),transition:`transform duration-200`},null,2)],10,oe)):o(``,!0)])],4))],64))),128))],4)],4),h(`div`,$,[h(`div`,se,[v(u,{content:`${Math.round(s(w)*100)}%`,class:`text-sm`},null,8,[`content`])]),h(`div`,ce,[n.expandControls?(r(),t(b,{key:0},[y((r(),t(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:s(V),class:l({"op50 cursor-not-allowed":s(V),"hover:bg-active":!s(V)}),title:`Expand All`,onClick:a[0]||=e=>s(U)()},[...a[4]||=[h(`div`,{class:`i-ph-arrows-out-simple-duotone`},null,-1)]],10,le)),[[d,`Expand All`,void 0,{left:!0}]]),y((r(),t(`button`,{"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,flex:`~ items-center justify-center`,disabled:s(V),class:l({"op50 cursor-not-allowed":s(V),"hover:bg-active":!s(V)}),title:`Collapse All`,onClick:a[1]||=e=>s(W)()},[...a[5]||=[h(`div`,{class:`i-ph-arrows-in-simple-duotone`},null,-1)]],10,ue)),[[d,`Collapse All`,void 0,{left:!0}]]),a[6]||=h(`div`,{border:`t base`,my1:``},null,-1)],64)):o(``,!0),y((r(),t(`button`,{disabled:s(w)>=s(B),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom In (Ctrl + =)`,onClick:a[2]||=e=>s(L)()},[...a[7]||=[h(`div`,{"i-ph-magnifying-glass-plus-duotone":``},null,-1)]],8,de)),[[d,`Zoom In (Ctrl + =)`,void 0,{left:!0}]]),y((r(),t(`button`,{disabled:s(w)<=s(z),"w-10":``,"h-10":``,"rounded-full":``,"hover:bg-active":``,"op-fade":``,"hover:op100":``,"disabled:op20":``,"disabled:bg-none":``,"disabled:cursor-not-allowed":``,flex:`~ items-center justify-center`,title:`Zoom Out (Ctrl + -)`,onClick:a[3]||=e=>s(R)()},[...a[8]||=[h(`div`,{"i-ph-magnifying-glass-minus-duotone":``},null,-1)]],8,fe)),[[d,`Zoom Out (Ctrl + -)`,void 0,{left:!0}]])])])],2)}}}),me=Object.assign(pe,{__name:`DisplayModuleGraph`});export{Q as n,K as r,me as t};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Tt as n,Wt as r,b as i,ct as a,j as o,k as s,y as c,yt as l}from"./gtHejcxM.js";import{C as u,S as d}from"./Dg1pxj30.js";import{g as f,v as p}from"./CbqJqu0C.js";import{t as m}from"./CsiiwekO.js";import{i as h,l as g,o as _}from"./D6dVxvIe.js";import{n as v,r as y,t as b}from"./olITPEcD.js";import{t as x}from"./Bpe250WO.js";import{n as S,t as C}from"./qIAw3Eg02.js";var w={flex:`~ col gap-2`,p4:``},T={flex:``,pb2:``},E={"w-8":``,"text-right":``,"text-xs":``,op50:``},D={"overflow-hidden":``,"text-ellipsis":``,"break-all":``,"line-clamp-2":``},O=o({__name:`FlatList`,props:{plugins:{}},setup(o){let c=d();return(l,u)=>{let d=x,f=m;return t(),e(`div`,w,[s(b,{items:o.plugins,"key-prop":`plugin_id`},{default:a(({item:e})=>[i(`div`,T,[s(f,{to:{path:n(c).path,query:{plugin:e.plugin_id}},"font-mono":``,border:`~ rounded base`,"w-full":``,px2:``,py1:``,"text-sm":``,hover:`bg-active`,flex:`~ gap-4 items-center`},{default:a(()=>[i(`div`,E,` #`+r(e.plugin_id),1),i(`span`,D,[s(d,{name:e.name},null,8,[`name`])])]),_:2},1032,[`to`])])]),_:1},8,[`items`])])}}}),k=Object.assign(O,{__name:`PluginsFlatList`}),A={relative:``,"max-h-screen":``,"of-hidden":``},j={absolute:``,"left-4":``,"top-4":``,"z-panel-nav":``},M={"of-auto":``,"h-screen":``,flex:`~ col gap-2`,pt32:``},N={absolute:``,"bottom-4":``,"py-1":``,"px-2":``,"bg-glass":``,left:`1/2`,"translate-x":`-1/2`,border:`~ base rounded-full`,text:`center xs`},P={op50:``},F=o({__name:`plugins`,props:{session:{}},setup(n){let a=n,o=d(),m=u(),b=l({search:o.query.search||``,selected:o.query.plugin_types?S(o.query.plugin_types):null}),x=c(()=>[..._.filter(e=>a.session?.meta?.plugins?.some(t=>e.match.test(t.name))),h]),w=c(()=>{let e=a.session?.meta?.plugins;return b.value.selected&&(e=e.filter(e=>{let t=g(e.name);return b.value.selected.includes(t.name)})),e}),T=f(()=>w.value,()=>new y(w.value,{includeScore:!0,keys:[`name`],ignoreLocation:!0,threshold:.4})),E=c(()=>b.value.search?T.value.search(b.value.search).map(e=>e.item):w.value);return p(b.value,e=>{let t={...o.query,search:e.search||void 0,plugin_types:e.selected||void 0};m.replace({query:C(t)})},{debounce:500}),(a,o)=>{let c=v,l=k;return t(),e(`div`,A,[i(`div`,j,[s(c,{modelValue:b.value,"onUpdate:modelValue":o[0]||=e=>b.value=e,rules:x.value},null,8,[`modelValue`,`rules`])]),i(`div`,M,[s(l,{plugins:E.value??[]},null,8,[`plugins`]),i(`div`,N,[i(`span`,P,r(E.value.length)+` of `+r(n.session?.meta?.plugins?.length||0),1)])])])}}});export{F as default};
@@ -1 +1 @@
1
- .vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;display:block;height:100%;left:0;opacity:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}
1
+ .vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex:1;flex:1;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{left:0;position:absolute;top:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{background-color:transparent;border:none;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{display:block;height:100%;left:0;overflow:hidden;pointer-events:none;position:absolute;top:0;width:100%;z-index:-1}
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Wt as n,b as r}from"./gtHejcxM.js";import{s 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(),e(`div`,o,[r(`div`,s,[r(`h1`,{class:`font-semibold leading-none mb-4 sm:text-[110px] tabular-nums text-[80px]`,textContent:n(a.status)},null,8,c),r(`h2`,{class:`font-semibold mb-2 sm:text-3xl text-2xl`,textContent:n(a.statusText)},null,8,l),r(`p`,{class:`mb-4 px-2 text-[#64748B] text-md`,textContent:n(a.description)},null,8,u)])]))}},[[`__scopeId`,`data-v-32cc777c`]]);export{d as default};
@@ -0,0 +1 @@
1
+ import{At as e,Bt as t,Dt as n,Et as r,F as i,Ft as a,Gt as o,I as s,It as c,J as l,Lt as u,Mt as d,Nt as f,Ot as p,P as m,Pt as h,Rt as g,St as _,T as v,Tt as y,_t as ee,at as b,bt as te,f as ne,i as x,j as S,jt as C,kt as w,p as re,v as ie,w as ae,xt as oe,y as T,yt as se,z as ce,zt as le}from"./gtHejcxM.js";var ue=void 0,E=typeof window<`u`&&window.trustedTypes;if(E)try{ue=E.createPolicy(`vue`,{createHTML:e=>e})}catch{}var D=ue?e=>ue.createHTML(e):e=>e,de=`http://www.w3.org/2000/svg`,fe=`http://www.w3.org/1998/Math/MathML`,O=typeof document<`u`?document:null,pe=O&&O.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`?O.createElementNS(de,e):t===`mathml`?O.createElementNS(fe,e):n?O.createElement(e,{is:n}):O.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>O.createTextNode(e),createComment:e=>O.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>O.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{pe.innerHTML=D(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=pe.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=p({},re,he),_e=(e=>(e.displayName=`Transition`,e.props=ge,e))((e,{slots:t})=>m(ne,ye(e),t)),M=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},ve=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function ye(e){let t={};for(let n in e)n in he||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=be(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:ee,onLeave:b,onLeaveCancelled:te,onBeforeAppear:ne=v,onAppear:x=y,onAppearCancelled:S=ee}=t,C=(e,t,n,r)=>{e._enterCancelled=r,P(e,t?u:s),P(e,t?l:o),n&&n()},w=(e,t)=>{e._isLeaving=!1,P(e,d),P(e,m),P(e,f),t&&t()},re=e=>(t,n)=>{let i=e?x:y,o=()=>C(t,e,n);M(i,[t,o]),Se(()=>{P(t,e?c:a),N(t,e?u:s),ve(i)||we(t,r,g,o)})};return p(t,{onBeforeEnter(e){M(v,[e]),N(e,a),N(e,o)},onBeforeAppear(e){M(ne,[e]),N(e,c),N(e,l)},onEnter:re(!1),onAppear:re(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>w(e,t);N(e,d),e._enterCancelled?(N(e,f),Oe(e)):(Oe(e),N(e,f)),Se(()=>{e._isLeaving&&(P(e,d),N(e,m),ve(b)||we(e,r,_,n))}),M(b,[e,n])},onEnterCancelled(e){C(e,!1,void 0,!0),M(ee,[e])},onAppearCancelled(e){C(e,!0,void 0,!0),M(S,[e])},onLeaveCancelled(e){w(e),M(te,[e])}})}function be(e){if(e==null)return null;if(a(e))return[xe(e.enter),xe(e.leave)];{let t=xe(e);return[t,t]}}function xe(e){return o(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,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Re(r,t,``)}else for(let e in t)n[e]??Re(r,e,``);for(let e in n)e===`display`&&(a=!0),Re(r,e,n[e])}else if(i){if(t!==n){let e=r[Pe];e&&(n+=`;`+e),r.cssText=n,a=Fe.test(n)}}else t&&e.removeAttribute(`style`);Ae in e&&(e[Ae]=a?r.display:``,e[je]&&(r.display=`none`))}var Le=/\s*!important$/;function Re(e,t,n){if(d(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(w(r),n.replace(Le,``),`important`):e[r]=n}}var ze=[`Webkit`,`Moz`,`ms`],Be={};function Ve(e,t){let i=Be[t];if(i)return i;let a=r(t);if(a!==`filter`&&a in e)return Be[t]=a;a=n(a);for(let n=0;n<ze.length;n++){let r=ze[n]+a;if(r in e)return Be[t]=r}return t}var He=`http://www.w3.org/1999/xlink`;function Ue(t,n,r,i,a,o=u(n)){i&&n.startsWith(`xlink:`)?r==null?t.removeAttributeNS(He,n.slice(6,n.length)):t.setAttributeNS(He,n,r):r==null||o&&!e(r)?t.removeAttribute(n):t.setAttribute(n,o?``:le(r)?String(r):r)}function We(t,n,r,i,a){if(n===`innerHTML`||n===`textContent`){r!=null&&(t[n]=n===`innerHTML`?D(r):r);return}let o=t.tagName;if(n===`value`&&o!==`PROGRESS`&&!o.includes(`-`)){let e=o===`OPTION`?t.getAttribute(`value`)||``:t.value,i=r==null?t.type===`checkbox`?`on`:``:String(r);(e!==i||!(`_value`in t))&&(t.value=i),r??t.removeAttribute(n),t._value=r;return}let s=!1;if(r===``||r==null){let i=typeof t[n];i===`boolean`?r=e(r):r==null&&i===`string`?(r=``,s=!0):i===`number`&&(r=0,s=!0)}try{t[n]=r}catch{}s&&t.removeAttribute(a||n)}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):w(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;ie(et(e,n.value),t,5,[e])};return n.value=e,n.attached=Qe(),n}function et(e,t){if(d(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,n,i,a,o)=>{let s=a===`svg`;t===`class`?ke(e,i,s):t===`style`?Ie(e,n,i):c(t)?h(t)||qe(e,t,n,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&&(/[A-Z]/.test(t)||!g(i))?We(e,r(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,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&tt(t)&&f(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return tt(t)&&g(n)?!1:t in e}var it=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>C(t,e):t};function at(e){e.target.composing=!0}function ot(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var st=Symbol(`_assign`);function ct(e,n,r){return n&&(e=e.trim()),r&&(e=t(e)),e}var lt={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[st]=it(i);let a=r||i.props&&i.props.type===`number`;F(e,t?`change`:`input`,t=>{t.target.composing||e[st](ct(e.value,n,a))}),(n||a)&&F(e,`change`,()=>{e.value=ct(e.value,n,a)}),t||(F(e,`compositionstart`,at),F(e,`compositionend`,ot),F(e,`change`,ot))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:n,oldValue:r,modifiers:{lazy:i,trim:a,number:o}},s){if(e[st]=it(s),e.composing)return;let c=(o||e.type===`number`)&&!/^0\d/.test(e.value)?t(e.value):e.value,l=n??``;c!==l&&(document.activeElement===e&&e.type!==`range`&&(i&&n===r||a&&e.value.trim()===l)||(e.value=l))}},ut=[`ctrl`,`shift`,`alt`,`meta`],dt={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)=>ut.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(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=dt[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},pt={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},mt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=w(n.key);if(t.some(e=>e===r||pt[e]===r))return e(n)}))},ht=p({patchProp:nt},me),gt,_t=!1;function vt(){return gt||=v(ht)}function yt(){return gt=_t?gt:ae(ht),_t=!0,gt}var bt=((...e)=>{let t=vt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ct(e);if(!r)return;let i=t._component;!f(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,St(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),xt=((...e)=>{let t=yt().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Ct(e);if(t)return n(t,!0,St(t))},t});function St(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ct(e){return g(e)?document.querySelector(e):e}var wt=/"(?:_|\\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*:/,Tt=/"(?: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*:/,Et=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function Dt(e,t){if(e===`__proto__`||e===`constructor`&&t&&typeof t==`object`&&`prototype`in t){Ot(e);return}return t}function Ot(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function kt(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(!Et.test(e)){if(t.strict)throw SyntaxError(`[destr] Invalid JSON`);return e}try{if(wt.test(e)||Tt.test(e)){if(t.strict)throw Error(`[destr] Possible prototype pollution`);return JSON.parse(e,Dt)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}String.fromCharCode;var At=/#/g,jt=/&/g,Mt=/\//g,Nt=/=/g,Pt=/\?/g,Ft=/\+/g,It=/%5e/gi,Lt=/%60/gi,Rt=/%7c/gi,zt=/%20/gi,Bt=/%2f/gi,Vt=/%252f/gi;function Ht(e){return encodeURI(``+e).replace(Rt,`|`)}function Ut(e){return Ht(typeof e==`string`?e:JSON.stringify(e)).replace(Ft,`%2B`).replace(zt,`+`).replace(At,`%23`).replace(jt,`%26`).replace(Lt,"`").replace(It,`^`).replace(Mt,`%2F`)}function Wt(e){return Ut(e).replace(Nt,`%3D`)}function Gt(e){return Ht(e).replace(At,`%23`).replace(Pt,`%3F`).replace(Vt,`%2F`).replace(jt,`%26`).replace(Ft,`%2B`)}function I(e=``){try{return decodeURIComponent(``+e)}catch{return``+e}}function Kt(e){return I(e.replace(Bt,`%252F`))}function qt(e){return I(e.replace(Ft,` `))}function Jt(e){return I(e.replace(Ft,` `))}function Yt(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=qt(e[1]);if(r===`__proto__`||r===`constructor`)continue;let i=Jt(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 Xt(e,t){return(typeof t==`number`||typeof t==`boolean`)&&(t=String(t)),t?Array.isArray(t)?t.map(t=>`${Wt(e)}=${Ut(t)}`).join(`&`):`${Wt(e)}=${Ut(t)}`:Wt(e)}function Zt(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Xt(t,e[t])).filter(Boolean).join(`&`)}var Qt=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,$t=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,en=/^([/\\]\s*){2,}[^/\\]/,tn=/^[\s\0]*(blob|data|javascript|vbscript):$/i,nn=/\/$|\/\?|\/#/,rn=/^\.?\//;function L(e,t={}){return typeof t==`boolean`&&(t={acceptRelative:t}),t.strict?Qt.test(e):$t.test(e)||(t.acceptRelative?en.test(e):!1)}function an(e){return!!e&&tn.test(e)}function on(e=``,t){return t?nn.test(e):e.endsWith(`/`)}function R(e=``,t){if(!t)return(on(e)?e.slice(0,-1):e)||`/`;if(!on(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 sn(e=``,t){if(!t)return e.endsWith(`/`)?e:e+`/`;if(on(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 cn(e,t){if(dn(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 pn(n,e)}function ln(e,t){if(dn(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 un(e,t){let n=_n(e);return n.search=Zt({...Yt(n.search),...t}),yn(n)}function dn(e){return!e||e===`/`}function fn(e){return e&&e!==`/`}function pn(e,...t){let n=e||``;for(let e of t.filter(e=>fn(e)))if(n){let t=e.replace(rn,``);n=sn(n)+t}else n=e;return n}function mn(...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 hn(e,t){return I(R(e))===I(R(t))}var gn=Symbol.for(`ufo:protocolRelative`);function _n(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?_n(t+e):vn(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}=vn(s);return{protocol:r.toLowerCase(),auth:i?i.slice(0,Math.max(0,i.length-1)):``,host:o,pathname:c,search:l,hash:u,[gn]:!r}}function vn(e=``){let[t=``,n=``,r=``]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:r}}function yn(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[gn]?(e.protocol||``)+`//`:``)+i+a+t+n+r}function bn(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 xn(e,t,n=`.`,r){if(!bn(t))return xn(e,{},n,r);let i=Object.assign({},t);for(let t in 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]]:bn(a)&&bn(i[t])?i[t]=xn(a,i[t],(n?`${n}.`:``)+t.toString(),r):i[t]=a))}return i}function Sn(e){return(...t)=>t.reduce((t,n)=>xn(t,n,``,e),{})}var Cn=Sn();function wn(e,t){try{return t in e}catch{return!1}}var Tn=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:An(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=kn(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}};function En(e){if(typeof e==`string`)return new Tn(e);if(Dn(e))return e;let t=new Tn(e.message??e.statusMessage??``,{cause:e.cause||e});if(wn(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=An(e.statusCode,t.statusCode):e.status&&(t.statusCode=An(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){let e=t.statusMessage;kn(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 Dn(e){return e?.constructor?.__h3_error__===!0}var On=/[^\u0009\u0020-\u007E]/g;function kn(e=``){return e.replace(On,``)}function An(e,t=200){return!e||(typeof e==`string`&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}globalThis.Headers,globalThis.Response;var jn=Symbol(`layout-meta`),Mn=Symbol(`route`);import.meta.url.replace(/\/app\/.*$/,`/`);var z=()=>x()?.$router,Nn=()=>i()?s(Mn,x()._route):x()._route;function Pn(e){return e}var Fn=()=>{try{if(x()._processingMiddleware)return!0}catch{return!1}return!1},In=(e,t)=>{e||=`/`;let n=typeof e==`string`?e:`path`in e?Ln(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&&an(e))throw Error(`Cannot navigate to a URL with '${e}' protocol.`)}let a=Fn();if(!i&&a){if(t?.replace){if(typeof e==`string`){let{pathname:t,search:n,hash:r}=_n(e);return{path:t,...n&&{query:Yt(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`?Rn(e):e;return t?.replace?o.replace(c):o.push(c)};function Ln(e){return un(e.path||``,e.query||{})+(e.hash||``)}function Rn(e){let t=_n(e);return Gt(Kt(t.pathname))+t.search+t.hash}var zn=`__nuxt_error`,Bn=()=>_(x().payload,`error`),Vn=e=>{let t=Wn(e);try{let e=Bn();x().hooks.callHook(`app:error`,t),e.value||=t}catch{throw t}return t},Hn=async(e={})=>{let t=x(),n=Bn();t.callHook(`app:error:cleared`,e),e.redirect&&await z().replace(e.redirect),n.value=void 0},Un=e=>!!e&&typeof e==`object`&&`__nuxt_error`in e,Wn=e=>{typeof e!=`string`&&e.statusText&&(e.message??=e.statusText);let t=En(e);return Object.defineProperty(t,zn,{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 Gn(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Kn(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Gn(e.default)}var V=Object.assign;function qn(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 Jn=()=>{},H=Array.isArray;function Yn(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}({}),Xn=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,[Xn]:!0},t)}function G(e,t){return e instanceof Error&&Xn in e&&(t==null||!!(e.type&t))}var Zn=Symbol(``),Qn=Symbol(``),$n=Symbol(``),er=Symbol(``),tr=Symbol(``),nr=/#/g,rr=/&/g,ir=/\//g,ar=/=/g,or=/\?/g,sr=/\+/g,cr=/%5B/g,lr=/%5D/g,ur=/%5E/g,dr=/%60/g,fr=/%7B/g,pr=/%7C/g,mr=/%7D/g,hr=/%20/g;function gr(e){return e==null?``:encodeURI(``+e).replace(pr,`|`).replace(cr,`[`).replace(lr,`]`)}function _r(e){return gr(e).replace(fr,`{`).replace(mr,`}`).replace(ur,`^`)}function vr(e){return gr(e).replace(sr,`%2B`).replace(hr,`+`).replace(nr,`%23`).replace(rr,`%26`).replace(dr,"`").replace(fr,`{`).replace(mr,`}`).replace(ur,`^`)}function yr(e){return vr(e).replace(ar,`%3D`)}function br(e){return gr(e).replace(nr,`%23`).replace(or,`%3F`)}function xr(e){return br(e).replace(ir,`%2F`)}function K(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Sr=/\/$/,Cr=e=>e.replace(Sr,``);function wr(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=jr(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:K(o)}}function Tr(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function Er(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function Dr(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])&&Or(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 Or(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!kr(e[n],t[n]))return!1;return!0}function kr(e,t){return H(e)?Ar(e,t):H(t)?Ar(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Ar(e,t){return H(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function jr(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},Mr=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Nr=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function Pr(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),Cr(e)}var Fr=/^[^#]+#/;function Ir(e,t){return e.replace(Fr,`#`)+t}function Lr(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 Rr=()=>({left:window.scrollX,top:window.scrollY});function zr(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=Lr(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 Br(e,t){return(history.state?history.state.position-t:-1)+e}var Vr=new Map;function Hr(e,t){Vr.set(e,t)}function Ur(e){let t=Vr.get(e);return Vr.delete(e),t}function Wr(e){return typeof e==`string`||e&&typeof e==`object`}function Gr(e){return typeof e==`string`||typeof e==`symbol`}function Kr(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(sr,` `),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 qr(e){let t=``;for(let n in e){let r=e[n];if(n=yr(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(H(r)?r.map(e=>e&&vr(e)):[r&&vr(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Jr(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):Wr(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 Yr(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(Gn(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=Kn(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 Xr(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 Zr=()=>location.protocol+`//`+location.host;function Qr(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),Er(n,``)}return Er(n,e)+r+i}function $r(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Qr(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:Mr.pop,direction:u?u>0?Nr.forward:Nr.back:Nr.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:Rr()}),``)}}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 ei(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Rr():null}}function ti(e){let{history:t,location:n}=window,r={value:Qr(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:Zr()+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,ei(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:Rr()});a(o.current,o,!0),a(e,V({},ei(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function ni(e){e=Pr(e);let t=ti(e),n=$r(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:Ir.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 ri(e){return e=location.host?e||location.pathname+location.search:``,e.includes(`#`)||(e+=`#`),ni(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||{}),ii={type:Z.Static,value:``},ai=/[a-zA-Z0-9_]/;function oi(e){if(!e)return[[]];if(e===`/`)return[[ii]];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:ai.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 si=`[^/]+?`,ci={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}($||{}),li=/[.+*?^${}()[\]/\\]/g;function ui(e,t){let n=V({},ci,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(li,`\\$&`),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||si;if(u!==si){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 di(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 fi(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=di(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(pi(r))return 1;if(pi(i))return-1}return i.length-r.length}function pi(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var mi={strict:!1,end:!0,sensitive:!1};function hi(e,t,n){let r=V(ui(oi(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function gi(e,t){let n=[],r=new Map;t=Yn(mi,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=vi(e);s.aliasOf=r&&r.record;let l=Yn(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(vi(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=hi(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!bi(d)&&o(e.name)),wi(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)}:Jn}function o(e){if(Gr(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=Si(e,n);n.splice(t,0,e),e.record.name&&!bi(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(_i(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&_i(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:xi(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 _i(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function vi(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:yi(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 yi(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 bi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xi(e){return e.reduce((e,t)=>V(e,t.meta),{})}function Si(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;fi(e,t[i])<0?r=i:n=i+1}let i=Ci(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ci(e){let t=e;for(;t=t.parent;)if(wi(t)&&fi(e,t)===0)return t}function wi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ti(e){let t=s($n),n=s(er),r=T(()=>{let n=y(e.to);return t.resolve(n)}),i=T(()=>{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=Ai(e[t-2]);return t>1&&Ai(i)===s&&a[a.length-1].path!==s?a.findIndex(q.bind(null,e[t-2])):o}),a=T(()=>i.value>-1&&ki(n.params,r.value.params)),o=T(()=>i.value>-1&&i.value===n.matched.length-1&&Or(n.params,r.value.params));function c(n={}){if(Oi(n)){let n=t[y(e.replace)?`replace`:`push`](y(e.to)).catch(Jn);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:T(()=>r.value.href),isActive:a,isExactActive:o,navigate:c}}function Ei(e){return e.length===1?e[0]:e}var Di=S({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:Ti,setup(e,{slots:t}){let n=ee(Ti(e)),{options:r}=s($n),i=T(()=>({[ji(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[ji(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&Ei(t.default(n));return e.custom?r:m(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function Oi(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 ki(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 Ai(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var ji=(e,t,n)=>e??t??n,Mi=S({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=s(tr),i=T(()=>e.route||r.value),a=s(Qn,0),o=T(()=>{let e=y(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),c=T(()=>i.value.matched[o.value]);l(Qn,T(()=>o.value+1)),l(Zn,c),l(tr,i);let u=se();return b(()=>[u.value,c.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=i.value,a=e.name,o=c.value,s=o&&o.components[a];if(!s)return Ni(n.default,{Component:s,route:r});let l=o.props[a],d=m(s,V({},l?l===!0?r.params:typeof l==`function`?l(r):l:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:u}));return Ni(n.default,{Component:d,route:r})||d}}});function Ni(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Pi=Mi;function Fi(e){let t=gi(e.routes,e),n=e.parseQuery||Kr,r=e.stringifyQuery||qr,i=e.history,a=Y(),o=Y(),s=Y(),c=oe(J),l=J;B&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=qn.bind(null,e=>``+e),d=qn.bind(null,xr),f=qn.bind(null,K);function p(e,n){let r,i;return Gr(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=V({},a||c.value),typeof e==`string`){let r=wr(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return V(r,o,{params:f(o.params),hash:K(r.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=V({},e,{path:wr(n,e.path,a.path).path});else{let t=V({},e.params);for(let e in t)t[e]??delete t[e];o=V({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=Tr(r,V({},e,{hash:_r(l),path:s.path})),m=i.createHref(p);return V({fullPath:p,hash:l,query:r===qr?Jr(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?wr(n,e,c.value.path):V({},e)}function ee(e,t){if(l!==e)return W(U.NAVIGATION_CANCELLED,{from:t,to:e})}function b(e){return S(e)}function ne(e){return b(V(v(e),{replace:!0}))}function x(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=v(i):{path:i},i.params={}),V({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function S(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=x(n,i);if(u)return S(V(v(u),{state:typeof u==`object`?V({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&Dr(r,i,n)&&(f=W(U.NAVIGATION_DUPLICATED,{to:d,from:i}),O(i,i,!0,!1)),(f?Promise.resolve(f):re(d,i)).catch(e=>G(e)?G(e,U.NAVIGATION_GUARD_REDIRECT)?e:fe(e):D(e,d,i)).then(e=>{if(e){if(G(e,U.NAVIGATION_GUARD_REDIRECT))return S(V({replace:s},v(e.to),{state:typeof e.to==`object`?V({},a,e.to.state):a,force:o}),t||d)}else e=ae(d,i,!0,s,a);return ie(d,i,e),e})}function C(e,t){let n=ee(e,t);return n?Promise.reject(n):Promise.resolve()}function w(e){let t=k.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function re(e,t){let n,[r,i,s]=Xr(e,t);n=Yr(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(X(r,e,t))});let c=C.bind(null,e,t);return n.push(c),j(n).then(()=>{n=[];for(let r of a.list())n.push(X(r,e,t));return n.push(c),j(n)}).then(()=>{n=Yr(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(X(r,e,t))});return n.push(c),j(n)}).then(()=>{n=[];for(let r of s)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(c),j(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Yr(s,`beforeRouteEnter`,e,t,w),n.push(c),j(n))).then(()=>{n=[];for(let r of o.list())n.push(X(r,e,t));return n.push(c),j(n)}).catch(e=>G(e,U.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function ie(e,t,n){s.list().forEach(r=>w(()=>r(e,t,n)))}function ae(e,t,n,r,a){let o=ee(e,t);if(o)return o;let s=t===J,l=B?history.state:{};n&&(r||s?i.replace(e.fullPath,V({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,O(e,t,n,s),fe()}let T;function se(){T||=i.listen((e,t,n)=>{if(!A.listening)return;let r=_(e),a=x(r,A.currentRoute.value);if(a){S(V(a,{replace:!0,force:!0}),r).catch(Jn);return}l=r;let o=c.value;B&&Hr(Br(o.fullPath,n.delta),Rr()),re(r,o).catch(e=>G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_CANCELLED)?e:G(e,U.NAVIGATION_GUARD_REDIRECT)?(S(V(v(e.to),{force:!0}),r).then(e=>{G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===Mr.pop&&i.go(-1,!1)}).catch(Jn),Promise.reject()):(n.delta&&i.go(-n.delta,!1),D(e,r,o))).then(e=>{e||=ae(r,o,!1),e&&(n.delta&&!G(e,U.NAVIGATION_CANCELLED)?i.go(-n.delta,!1):n.type===Mr.pop&&G(e,U.NAVIGATION_ABORTED|U.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),ie(r,o,e)}).catch(Jn)})}let le=Y(),ue=Y(),E;function D(e,t,n){fe(e);let r=ue.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function de(){return E&&c.value!==J?Promise.resolve():new Promise((e,t)=>{le.add([e,t])})}function fe(e){return E||(E=!e,se(),le.list().forEach(([t,n])=>e?n(e):t()),le.reset()),e}function O(t,n,r,i){let{scrollBehavior:a}=e;if(!B||!a)return Promise.resolve();let o=!r&&Ur(Br(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return ce().then(()=>a(t,n,o)).then(e=>e&&zr(e)).catch(e=>D(e,t,n))}let pe=e=>i.go(e),me,k=new Set,A={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:ne,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ue.add,isReady:de,install(e){e.component(`RouterLink`,Di),e.component(`RouterView`,Pi),e.config.globalProperties.$router=A,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>y(c)}),B&&!me&&c.value===J&&(me=!0,b(i.location).catch(e=>{}));let t={};for(let e in J)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide($n,A),e.provide(er,te(t)),e.provide(tr,c);let n=e.unmount;k.add(e),e.unmount=function(){k.delete(e),k.size<1&&(l=J,T&&T(),T=null,c.value=J,me=!1,E=!1),n()}}};function j(e){return e.reduce((e,t)=>e.then(()=>w(t)),Promise.resolve())}return A}var Ii=(e,t)=>({default:()=>e?m(_e,e===!0?{}:e,t):t.default?.()}),Li=/(:\w+)\([^)]+\)/g,Ri=/(:\w+)[?+*]/g,zi=/:\w+/g;function Bi(e){let t=e?.meta.key??e.path.replace(Li,`$1`).replace(Ri,`$1`).replace(zi,t=>e.params[t.slice(1)]?.toString()||``);return typeof t==`function`?t(e):t}function Vi(e,t){return e===t||t===J?!1:Bi(e)===Bi(t)?!e.matched.every((e,n)=>e.components&&e.components.default===t.matched[n]?.components?.default):!0}var Hi={scrollBehavior(e,t,n){let r=x(),i=z().options?.scrollBehaviorType??`auto`;if(e.path.replace(/\/$/,``)===t.path.replace(/\/$/,``))return t.hash&&!e.hash?{left:0,top:0}:e.hash?{el:e.hash,top:Ui(e.hash),behavior:i}:!1;if((typeof e.meta.scrollToTop==`function`?e.meta.scrollToTop(e,t):e.meta.scrollToTop)===!1)return!1;let a=r._runningTransition?`page:transition:finish`:`page:loading:end`;return new Promise(o=>{if(t===J){o(Wi(e,t,n,i));return}r.hooks.hookOnce(a,()=>{requestAnimationFrame(()=>o(Wi(e,t,n,i)))})})}};function Ui(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 Wi(e,t,n,r){if(n)return n;let i=Vi(e,t);return e.hash?{el:e.hash,top:Ui(e.hash),behavior:i?r:`instant`}:{left:0,top:0}}var Gi={hashMode:!1,scrollBehaviorType:`auto`,...Hi},Ki=globalThis.requestIdleCallback||(e=>{let t=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-t))};return setTimeout(()=>{e(n)},1)}),qi=globalThis.cancelIdleCallback||(e=>{clearTimeout(e)}),Ji=e=>{let t=x();t.isHydrating?t.hooks.hookOnce(`app:suspense:resolve`,()=>{Ki(()=>e())}):Ki(()=>e())};function Yi(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function Xi(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(()=>Xi(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)));i.push(n)}await Promise.all(i)}export{pn as A,xt as B,z as C,L as D,Cn as E,ln as F,Me as H,R as I,kt as L,cn as M,un as N,hn as O,sn as P,_e as R,Nn as S,Mn as T,mt as U,lt as V,ft as W,Bn as _,Ki as a,In as b,Pi as c,ni as d,J as f,Vn as g,Un as h,qi as i,Yt as j,mn as k,Fi as l,Wn as m,Xi as n,Gi as o,Hn as p,Ji as r,Ii as s,Yi as t,ri as u,Pn as v,jn as w,Ln as x,Rn as y,bt as z};
@@ -0,0 +1 @@
1
+ import{C as e,D as t,K as n,_t as r,a as i,b as a,j as o,xt as s,y as c}from"./gtHejcxM.js";import{t as l}from"./CbqJqu0C.js";var u=Object.create,d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,m=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=p(t),a=0,o=i.length,s;a<o;a++)s=i[a],!h.call(e,s)&&s!==n&&d(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=f(t,s))||r.enumerable});return e},v=(e,t,n)=>(n=e==null?{}:u(m(e)),_(t||!e||!e.__esModule?d(n,`default`,{value:e,enumerable:!0}):n,e)),y={class:`flex gap-2 group`,w140:``,p4:``,relative:``},b={width:`1123`,height:`47`,viewBox:`0 0 1123 47`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},x={"clip-path":`url(#clip0_12_249)`},S=[`fill`],ee=[`fill`],C=[`fill`],w=o({__name:`LogoBanner`,setup(r){let i=c(()=>l.value?`white`:`#08060E`);return(r,o)=>(n(),e(`div`,y,[o[2]||=a(`div`,{op10:``,"group-hover":`op100`,transition:``,"duration-800":``,class:`absolute -bottom-[10px] -left-[20px] w-[80px] h-[80px] bg-linear-to-b from-[#61d9ff] to-transparent blur-[30px]`},null,-1),o[3]||=a(`div`,{op10:``,"group-hover":`op100`,transition:``,"duration-800":``,class:`absolute -top-[10px] left-300px w-[80px] h-[80px] bg-[linear-gradient(270deg,_#7a23a1,_#715ebde6_60%,_#715ebde6,_#bd34fe00)] blur-[30px]`},null,-1),(n(),e(`svg`,b,[a(`g`,x,[a(`path`,{d:`M84.875 0C103.939 0 113.956 8.014 113.956 23.395C113.956 38.776 103.939 46.789 84.875 46.789C65.811 46.789 55.859 38.775 55.858 23.395C55.858 8.014 65.811 0 84.875 0ZM304.339 0C323.403 0 333.42 8.014 333.42 23.395C333.42 38.776 323.403 46.789 304.339 46.789C285.275 46.789 275.322 38.775 275.322 23.395C275.322 8.014 285.274 0 304.339 0ZM35.349 0.775C45.689 0.775 51.571 6.139 51.571 15.575C51.571 21.003 48.986 25.01 44.98 27.337L51.765 46.013H35.285L30.567 31.343H15.51V46.013H0V0.775H35.349ZM135.411 34.705H162.488V46.013H119.9V0.775H135.411V34.705ZM183.791 34.705H210.869V46.013H168.281V0.775H183.791V34.705ZM245.53 0.774C261.234 0.774 270.217 7.884 270.217 23.394C270.217 38.904 261.169 46.012 245.465 46.012H217.095V0.775L245.53 0.774ZM356.661 31.86L363.253 8.854H380.637L387.616 32.764L393.109 0.776H408.232L398.926 46.014H379.345L371.849 20.423L364.546 46.013H344.899L335.594 0.776H350.975L356.661 31.86ZM432.876 0.775L451.553 30.18H451.682V0.775H466.417V46.013H447.805L428.999 16.48H428.805V46.013H414.135V0.775H432.876ZM84.875 11.115C75.892 11.115 71.691 14.993 71.691 23.395C71.691 31.795 75.892 35.608 84.875 35.608C93.858 35.608 98.058 31.86 98.058 23.395C98.058 14.93 93.858 11.115 84.875 11.115ZM304.339 11.115C295.356 11.115 291.155 14.993 291.155 23.395C291.155 31.795 295.356 35.608 304.339 35.608C313.322 35.608 317.522 31.86 317.522 23.395C317.522 14.93 313.322 11.115 304.339 11.115ZM232.604 35.026H243.333C250.7 35.026 254.318 31.86 254.318 23.394C254.318 14.928 250.7 11.762 243.333 11.762H232.604V35.026ZM15.51 20.68H30.955C34.122 20.68 35.673 19 35.673 16.027C35.673 13.054 34.122 11.438 30.955 11.438H15.51V20.68Z`,fill:i.value},null,8,S),o[0]||=t(`<path d="M530.998 0.773438C531.957 0.773438 532.48 1.89144 531.866 2.62844L521.423 15.1604C520.195 16.6334 521.242 18.8714 523.161 18.8714H533.262C534.221 18.8714 534.744 19.9894 534.13 20.7264L513.922 44.9804C513.816 45.108 513.683 45.2107 513.533 45.2811C513.383 45.3516 513.219 45.3881 513.053 45.3881C512.887 45.3881 512.723 45.3516 512.573 45.2811C512.423 45.2107 512.29 45.108 512.184 44.9804L491.975 20.7284C491.361 19.9914 491.885 18.8734 492.844 18.8734H502.942C504.859 18.8734 505.909 16.6354 504.681 15.1624L494.237 2.62844C493.623 1.89144 494.147 0.773438 495.105 0.773438H530.998Z" fill="#FF4100"></path><mask id="mask0_12_249" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="491" y="0" width="44" height="46"><path d="M530.998 0.773438C531.957 0.773438 532.48 1.89144 531.866 2.62844L521.423 15.1604C520.195 16.6334 521.242 18.8714 523.161 18.8714H533.262C534.221 18.8714 534.744 19.9904 534.13 20.7264L513.922 44.9804C513.816 45.108 513.683 45.2107 513.533 45.2811C513.383 45.3516 513.219 45.3881 513.053 45.3881C512.887 45.3881 512.723 45.3516 512.573 45.2811C512.423 45.2107 512.29 45.108 512.184 44.9804L491.975 20.7284C491.361 19.9924 491.885 18.8734 492.844 18.8734H502.942C504.859 18.8734 505.909 16.6354 504.681 15.1624L494.237 2.62844C493.623 1.89144 494.147 0.773438 495.105 0.773438H530.998Z" fill="black"></path></mask><g mask="url(#mask0_12_249)"><g filter="url(#filter0_f_12_249)"><path d="M522.914 21.3028C520.339 19.8011 523.571 9.4636 530.133 -1.78663C536.695 -13.0369 544.101 -20.9396 546.676 -19.4379C549.251 -17.9361 546.019 -7.59863 539.457 3.6516C532.895 14.9018 525.489 22.8046 522.914 21.3028Z" fill="#FFE6E4"></path></g><g filter="url(#filter1_f_12_249)"><path d="M521.765 44.2794C519.191 42.7777 522.423 32.4402 528.984 21.1899C535.546 9.9397 542.953 2.03698 545.527 3.5387C548.102 5.04042 544.87 15.3779 538.308 26.6282C531.747 37.8784 524.34 45.7811 521.765 44.2794Z" fill="#FFE6E4"></path></g><g filter="url(#filter2_f_12_249)"><path d="M505.243 19.0907C506.903 17.8808 502.491 9.00184 495.388 -0.740904C488.285 -10.4836 481.182 -17.4008 479.522 -16.1909C477.863 -14.9809 482.275 -6.10195 489.378 3.6408C496.48 13.3835 503.584 20.3007 505.243 19.0907Z" fill="#FF00B3"></path></g><g filter="url(#filter3_f_12_249)"><path d="M510.988 51.7548C512.647 50.5448 508.235 41.6659 501.132 31.9231C494.029 22.1804 486.926 15.2632 485.266 16.4732C483.607 17.6832 488.019 26.5621 495.122 36.3049C502.225 46.0476 509.328 52.9648 510.988 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter4_f_12_249)"><path d="M520.885 19.0986C519.225 17.8886 523.638 9.00965 530.74 -0.733098C537.843 -10.4758 544.946 -17.393 546.606 -16.183C548.266 -14.9731 543.853 -6.09413 536.751 3.64861C529.648 13.3914 522.545 20.3085 520.885 19.0986Z" fill="#FF00B3"></path></g><g filter="url(#filter5_f_12_249)"><path d="M513.991 51.7548C512.332 50.5448 516.744 41.6659 523.847 31.9232C530.95 22.1804 538.053 15.2632 539.713 16.4732C541.372 17.6832 536.96 26.5621 529.857 36.3049C522.754 46.0476 515.651 52.9648 513.991 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter6_f_12_249)"><path d="M517.438 19.0986C515.778 17.8886 520.191 9.00965 527.294 -0.733098C534.396 -10.4758 541.5 -17.393 543.159 -16.183C544.819 -14.9731 540.407 -6.09413 533.304 3.64861C526.201 13.3914 519.098 20.3085 517.438 19.0986Z" fill="#FF00B3"></path></g><g filter="url(#filter7_f_12_249)"><path d="M511.695 51.7548C510.035 50.5448 514.447 41.6659 521.55 31.9232C528.653 22.1804 535.756 15.2632 537.416 16.4732C539.075 17.6832 534.663 26.5621 527.56 36.3049C520.458 46.0476 513.354 52.9648 511.695 51.7548Z" fill="#FF00B3"></path></g><g filter="url(#filter8_f_12_249)"><path d="M509.95 20.8515C512.203 18.8996 507.115 9.33806 498.586 -0.50467C490.056 -10.3474 481.316 -16.7441 479.064 -14.7922C476.811 -12.8402 481.899 -3.2787 490.428 6.56403C498.957 16.4068 507.697 22.8035 509.95 20.8515Z" fill="#E23D14"></path></g><g filter="url(#filter9_f_12_249)"><path d="M512.003 47.6172C514.417 45.8699 510.186 35.8997 502.551 25.3482C494.916 14.7966 486.77 7.65931 484.355 9.40659C481.94 11.1539 486.172 21.124 493.806 31.6756C501.441 42.2272 509.588 49.3645 512.003 47.6172Z" fill="#E23D14"></path></g></g>`,3),a(`path`,{d:`M481.842 0C472.643 13.166 472.59 33.575 481.842 46.789H488.057C478.807 33.575 478.86 13.166 488.057 0H481.842ZM544.263 0H538.048C547.247 13.166 547.3 33.575 538.048 46.789H544.263C553.513 33.575 553.459 13.166 544.263 0Z`,fill:i.value},null,8,ee)]),a(`path`,{d:`M570 46.221V0.779005H605.216C624.665 0.779005 635.79 7.98481 635.79 23.5C635.79 39.0801 624.585 46.221 605.136 46.221H570ZM616.101 23.5C616.101 14.9959 611.619 11.8149 602.495 11.8149H589.209V35.1851H602.495C611.619 35.1851 616.101 32.0041 616.101 23.5ZM645.582 46.221V0.779005H700.887V11.8149H664.791V17.9171H700.327V28.6285H664.791V35.1851H701.928V46.221H645.582ZM726.183 0.779005L740.99 33.4972L755.556 0.779005H775.485L753.395 46.221H727.783L705.693 0.779005H726.183ZM799.702 46.221V11.9447H778.172V0.779005H840.44V11.9447H818.91V46.221H799.702ZM878.247 47C854.636 47 842.31 38.9503 842.31 23.5C842.31 8.04972 854.636 0 878.247 0C901.857 0 914.263 8.04972 914.263 23.5C914.263 38.9503 901.857 47 878.247 47ZM878.247 35.7693C889.372 35.7693 894.574 31.9392 894.574 23.5C894.574 14.9959 889.372 11.1657 878.247 11.1657C867.121 11.1657 861.919 14.9959 861.919 23.5C861.919 31.9392 867.121 35.7693 878.247 35.7693ZM956.486 47C932.875 47 920.549 38.9503 920.549 23.5C920.549 8.04972 932.875 0 956.486 0C980.096 0 992.502 8.04972 992.502 23.5C992.502 38.9503 980.096 47 956.486 47ZM956.486 35.7693C967.611 35.7693 972.813 31.9392 972.813 23.5C972.813 14.9959 967.611 11.1657 956.486 11.1657C945.36 11.1657 940.158 14.9959 940.158 23.5C940.158 31.9392 945.36 35.7693 956.486 35.7693ZM1002.23 46.221V0.779005H1021.44V34.8605H1054.97V46.221H1002.23ZM1090.83 47C1067.93 47 1058.25 42.1961 1058.25 31.0304V30.9655H1077.7V31.0304C1077.7 34.7956 1080.82 36.808 1090.83 36.808C1101.15 36.808 1103.55 35.25 1103.55 32.8481C1103.55 30.7058 1101.79 29.732 1097.95 29.4724L1081.62 28.4337C1064.33 27.3301 1059.05 23.0456 1059.05 14.866C1059.05 4.99862 1069.62 0 1091.15 0C1113.16 0 1122.04 4.60912 1122.04 15.2555V15.3854H1102.91V15.2555C1102.91 11.4903 1100.03 10.0622 1090.83 10.0622C1081.14 10.0622 1078.18 11.4903 1078.18 14.0221C1078.18 16.2293 1080.34 17.0732 1085.38 17.3978L1101.55 18.3715C1116.76 19.2804 1123 23.2403 1123 31.7445C1123 41.547 1113.96 47 1090.83 47Z`,fill:i.value},null,8,C),o[1]||=t(`<defs><filter id="filter0_f_12_249" x="515.134" y="-26.5112" width="39.3207" height="54.8896" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter1_f_12_249" x="513.986" y="-3.53463" width="39.3207" height="54.8896" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter2_f_12_249" x="472.279" y="-23.2221" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter3_f_12_249" x="478.023" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter4_f_12_249" x="513.642" y="-23.2143" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter5_f_12_249" x="506.748" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter6_f_12_249" x="510.195" y="-23.2143" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter7_f_12_249" x="504.451" y="9.44194" width="40.2079" height="49.3427" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter8_f_12_249" x="471.636" y="-22.0346" width="45.7411" height="50.1318" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><filter id="filter9_f_12_249" x="476.782" y="2.24662" width="42.7939" height="52.5302" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.447" result="effect1_foregroundBlur_12_249"></feGaussianBlur></filter><clipPath id="clip0_12_249"><rect width="552" height="47" fill="white"></rect></clipPath></defs>`,1)]))]))}}),te=Object.assign(w,{__name:`VisualLogoBanner`});async function ne(e,t){return e.__resolved?e.__resolved:e.setup?(e.__promise??=Promise.resolve(e.setup(t)).then(t=>(e.__resolved=t,e.__promise=void 0,t)),e.__resolved??=await e.__promise):{}}async function T(e,t){if(e.handler)return e.handler;let n=await ne(e,t);if(!n.handler)throw Error(`[devtools-rpc] Either handler or setup function must be provided for RPC function "${e.name}"`);return n.handler}var E=class{definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return T(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Error(`RPC function "${e.name}" is already registered`);this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Error(`RPC function "${e.name}" is not registered. Use register() to add new functions.`);this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await T(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Error(`RPC function "${String(e)}" is not registered`);return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}},re=`q`,D=`s`;function ie(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var ae=Math.random.bind(Math),oe=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function se(e=21){let t=``,n=e;for(;n--;)t+=oe[ae()*64|0];return t}var ce=6e4,O=e=>e,le=O,{clearTimeout:ue,setTimeout:de}=globalThis;function fe(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=O,deserialize:s=le,resolver:c,bind:l=`rpc`,timeout:u=ce,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:re};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=ie(),_=se();s.i=_;let v;async function y(n=s){return u>=0&&(v=de(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{ue(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===re){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:D,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:D,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(ue(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function pe(e,t){let{preset:n,rpcOptions:r={}}=t;return fe(e,{...n,timeout:-1,...r,proxify:!1})}var me=-1,k=0,A=1,j=2,M=3,N=4,P=5,he=6,ge=7,F=8,_e=typeof self==`object`?self:globalThis,ve=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case k:case me:return n(o,i);case A:{let e=n([],i);for(let t of o)e.push(r(t));return e}case j:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case M:return n(new Date(o),i);case N:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case P:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case he:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case ge:{let{name:e,message:t}=o;return n(new _e[e](t),i)}case F:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i)}return n(new _e[a](o),i)};return r},ye=e=>ve(new Map,e)(0),I=``,{toString:L}={},{keys:R}=Object,z=e=>{let t=typeof e;if(t!==`object`||!e)return[k,t];let n=L.call(e).slice(8,-1);switch(n){case`Array`:return[A,I];case`Object`:return[j,I];case`Date`:return[M,I];case`RegExp`:return[N,I];case`Map`:return[P,I];case`Set`:return[he,I]}return n.includes(`Array`)?[A,n]:n.includes(`Error`)?[ge,n]:[j,n]},be=([e,t])=>e===k&&(t===`function`||t===`symbol`),xe=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=z(r);switch(o){case k:{let t=r;switch(s){case`bigint`:o=F,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([me],r)}return i([o,t],r)}case A:{if(s)return i([s,[...r]],r);let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case j:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of R(r))(e||!be(z(r[t])))&&n.push([a(t),a(r[t])]);return c}case M:return i([o,r.toISOString()],r);case N:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case P:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(be(z(n))||be(z(i))))&&t.push([a(n),a(i)]);return n}case he:{let t=[],n=i([o,t],r);for(let n of r)(e||!be(z(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},Se=(e,{json:t,lossy:n}={})=>{let r=[];return xe(!(t||n),!!t,new Map,r)(e),r},{parse:Ce,stringify:we}=JSON,Te={json:!0,lossy:!0},Ee=e=>ye(Ce(e)),De=e=>we(Se(e,Te)),Oe=Ee;function ke(e){return e}function Ae(){}var je=ke(e=>{let t=e.url;e.authId&&(t=`${t}?vite_devtools_auth_id=${encodeURIComponent(e.authId)}`);let n=new WebSocket(t),{onConnected:r=Ae,onError:i=Ae,onDisconnected:a=Ae}=e;return n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{i(e instanceof Error?e:Error(e.type))}),n.addEventListener(`close`,e=>{a(e)}),{on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else{function t(){n.send(e),n.removeEventListener(`open`,t)}n.addEventListener(`open`,t)}},serialize:De,deserialize:Oe}}),Me=g(((e,t)=>{(function(n,r){var i=``,a=`?`,o=`function`,s=`undefined`,c=`object`,l=`string`,u=`major`,d=`model`,f=`name`,p=`type`,m=`vendor`,h=`version`,g=`architecture`,_=`console`,v=`mobile`,y=`tablet`,b=`smarttv`,x=`wearable`,S=`embedded`,ee=500,C=`Amazon`,w=`Apple`,te=`ASUS`,ne=`BlackBerry`,T=`Browser`,E=`Chrome`,re=`Edge`,D=`Firefox`,ie=`Google`,ae=`Huawei`,oe=`LG`,se=`Microsoft`,ce=`Motorola`,O=`Opera`,le=`Samsung`,ue=`Sharp`,de=`Sony`,fe=`Xiaomi`,pe=`Zebra`,me=`Facebook`,k=`Chromium OS`,A=`Mac OS`,j=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},M=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===l?P(t).indexOf(P(e))!==-1:!1},P=function(e){return e.toLowerCase()},he=function(e){return typeof e===l?e.replace(/[^\d\.]/g,i).split(`.`)[0]:r},ge=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,i),typeof t===s?e:e.substring(0,ee)},F=function(e,t){for(var n=0,i,a,s,l,u,d;n<t.length&&!u;){var f=t[n],p=t[n+1];for(i=a=0;i<f.length&&!u&&f[i];)if(u=f[i++].exec(e),u)for(s=0;s<p.length;s++)d=u[++a],l=p[s],typeof l===c&&l.length>0?l.length===2?typeof l[1]==o?this[l[0]]=l[1].call(this,d):this[l[0]]=l[1]:l.length===3?typeof l[1]===o&&!(l[1].exec&&l[1].test)?this[l[0]]=d?l[1].call(this,d,l[2]):r:this[l[0]]=d?d.replace(l[1],l[2]):r:l.length===4&&(this[l[0]]=d?l[3].call(this,d.replace(l[1],l[2])):r):this[l]=d||r;n+=2}},_e=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(N(t[n][i],e))return n===a?r:n}else if(N(t[n],e))return n===a?r:n;return e},ve={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},ye={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},I={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[f,`Chrome`]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[f,`Edge`]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,h],[/opios[\/ ]+([\w\.]+)/i],[h,[f,O+` Mini`]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[f,O+` GX`]],[/\bopr\/([\w\.]+)/i],[h,[f,O]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[f,`Baidu`]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,h],[/\bddg\/([\w\.]+)/i],[h,[f,`DuckDuckGo`]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[f,`UC`+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[f,`WeChat`]],[/konqueror\/([\w\.]+)/i],[h,[f,`Konqueror`]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[f,`IE`]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[f,`Yandex`]],[/slbrowser\/([\w\.]+)/i],[h,[f,`Smart Lenovo `+T]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,`$1 Secure `+T],h],[/\bfocus\/([\w\.]+)/i],[h,[f,D+` Focus`]],[/\bopt\/([\w\.]+)/i],[h,[f,O+` Touch`]],[/coc_coc\w+\/([\w\.]+)/i],[h,[f,`Coc Coc`]],[/dolfin\/([\w\.]+)/i],[h,[f,`Dolphin`]],[/coast\/([\w\.]+)/i],[h,[f,O+` Coast`]],[/miuibrowser\/([\w\.]+)/i],[h,[f,`MIUI `+T]],[/fxios\/([-\w\.]+)/i],[h,[f,D]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,`360 `+T]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,`$1 `+T],h],[/samsungbrowser\/([\w\.]+)/i],[h,[f,le+` Internet`]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g,` `],h],[/metasr[\/ ]?([\d\.]+)/i],[h,[f,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,`Sogou Mobile`],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,h],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,me],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[f,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[f,`TikTok`]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[f,E+` Headless`]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,E+` WebView`],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[f,`Android `+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[f,`Mobile Safari`]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[h,_e,ve]],[/(webkit|khtml)\/([\w\.]+)/i],[f,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,`Netscape`],h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[f,D+` Reality`]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,h],[/(cobalt)\/([\w\.]+)/i],[f,[h,/master.|lts./,``]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,`amd64`]],[/(ia32(?=;))/i],[[g,P]],[/((?:i[346]|x)86)[;\)]/i],[[g,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,`armhf`]],[/windows (ce|mobile); ppc;/i],[[g,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,i,P]],[/(sun4\w)[;\)]/i],[[g,`sparc`]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,P]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[m,le],[p,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[d,[m,le],[p,v]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[m,w],[p,v]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[m,w],[p,y]],[/(macintosh);/i],[d,[m,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[m,ue],[p,v]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[m,ae],[p,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[m,ae],[p,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[d,/_/g,` `],[m,fe],[p,v]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g,` `],[m,fe],[p,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[m,`OPPO`],[p,v]],[/\b(opd2\d{3}a?) bui/i],[d,[m,`OPPO`],[p,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[m,`Vivo`],[p,v]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[m,`Realme`],[p,v]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[m,ce],[p,v]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[m,ce],[p,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[m,oe],[p,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[m,oe],[p,v]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[m,`Lenovo`],[p,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g,` `],[m,`Nokia`],[p,v]],[/(pixel c)\b/i],[d,[m,ie],[p,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[m,ie],[p,v]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[m,de],[p,v]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,`Xperia Tablet`],[m,de],[p,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[m,`OnePlus`],[p,v]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[m,C],[p,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,`Fire Phone $1`],[m,C],[p,v]],[/(playbook);[-\w\),; ]+(rim)/i],[d,m,[p,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[m,ne],[p,v]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[m,te],[p,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[m,te],[p,v]],[/(nexus 9)/i],[d,[m,`HTC`],[p,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[d,/_/g,` `],[p,v]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[m,`Acer`],[p,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[m,`Meizu`],[p,v]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[m,`Ulefone`],[p,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,d,[p,v]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,d,[p,y]],[/(surface duo)/i],[d,[m,se],[p,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[m,`Fairphone`],[p,v]],[/(u304aa)/i],[d,[m,`AT&T`],[p,v]],[/\bsie-(\w*)/i],[d,[m,`Siemens`],[p,v]],[/\b(rct\w+) b/i],[d,[m,`RCA`],[p,y]],[/\b(venue[\d ]{2,7}) b/i],[d,[m,`Dell`],[p,y]],[/\b(q(?:mv|ta)\w+) b/i],[d,[m,`Verizon`],[p,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[m,`Barnes & Noble`],[p,y]],[/\b(tm\d{3}\w+) b/i],[d,[m,`NuVision`],[p,y]],[/\b(k88) b/i],[d,[m,`ZTE`],[p,y]],[/\b(nx\d{3}j) b/i],[d,[m,`ZTE`],[p,v]],[/\b(gen\d{3}) b.+49h/i],[d,[m,`Swiss`],[p,v]],[/\b(zur\d{3}) b/i],[d,[m,`Swiss`],[p,y]],[/\b((zeki)?tb.*\b) b/i],[d,[m,`Zeki`],[p,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,`Dragon Touch`],d,[p,y]],[/\b(ns-?\w{0,9}) b/i],[d,[m,`Insignia`],[p,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[m,`NextBook`],[p,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,`Voice`],d,[p,v]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,`LvTel`],d,[p,v]],[/\b(ph-1) /i],[d,[m,`Essential`],[p,v]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[m,`Envizen`],[p,y]],[/\b(trio[-\w\. ]+) b/i],[d,[m,`MachSpeed`],[p,y]],[/\btu_(1491) b/i],[d,[m,`Rotor`],[p,y]],[/(shield[\w ]+) b/i],[d,[m,`Nvidia`],[p,y]],[/(sprint) (\w+)/i],[m,d,[p,v]],[/(kin\.[onetw]{3})/i],[[d,/\./g,` `],[m,se],[p,v]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[m,pe],[p,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[m,pe],[p,v]],[/smart-tv.+(samsung)/i],[m,[p,b]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,`SmartTV`],[m,le],[p,b]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,oe],[p,b]],[/(apple) ?tv/i],[m,[d,w+` TV`],[p,b]],[/crkey/i],[[d,E+`cast`],[m,ie],[p,b]],[/droid.+aft(\w+)( bui|\))/i],[d,[m,C],[p,b]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[m,ue],[p,b]],[/(bravia[\w ]+)( bui|\))/i],[d,[m,de],[p,b]],[/(mitv-\w{5}) bui/i],[d,[m,fe],[p,b]],[/Hbbtv.*(technisat) (.*);/i],[m,d,[p,b]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[m,ge],[d,ge],[p,b]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,b]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,d,[p,_]],[/droid.+; (shield) bui/i],[d,[m,`Nvidia`],[p,_]],[/(playstation [345portablevi]+)/i],[d,[m,de],[p,_]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[m,se],[p,_]],[/((pebble))app/i],[m,d,[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[m,w],[p,x]],[/droid.+; (glass) \d/i],[d,[m,ie],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[m,pe],[p,x]],[/(quest( \d| pro)?)/i],[d,[m,me],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[p,S]],[/(aeobc)\b/i],[d,[m,C],[p,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,v]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,v]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[m,`Generic`]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[f,re+`HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[f,`Blink`]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,h],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,h],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[h,_e,ye]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,_e,ye],[f,`Windows`]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,`.`],[f,`iOS`]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,A],[h,/_/g,`.`]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,h],[/\(bb(10);/i],[h,[f,ne]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[h,[f,`Symbian`]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[f,D+` OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[f,`webOS`]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[f,`watchOS`]],[/crkey\/([\d\.]+)/i],[h,[f,E+`cast`]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,k],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,h],[/(sunos) ?([\w\.\d]*)/i],[[f,`Solaris`],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,h]]},L=function(e,t){if(typeof e===c&&(t=e,e=r),!(this instanceof L))return new L(e,t).getResult();var a=typeof n!==s&&n.navigator?n.navigator:r,_=e||(a&&a.userAgent?a.userAgent:i),b=a&&a.userAgentData?a.userAgentData:r,x=t?j(I,t):I,S=a&&a.userAgent==_;return this.getBrowser=function(){var e={};return e[f]=r,e[h]=r,F.call(e,_,x.browser),e[u]=he(e[h]),S&&a&&a.brave&&typeof a.brave.isBrave==o&&(e[f]=`Brave`),e},this.getCPU=function(){var e={};return e[g]=r,F.call(e,_,x.cpu),e},this.getDevice=function(){var e={};return e[m]=r,e[d]=r,e[p]=r,F.call(e,_,x.device),S&&!e[p]&&b&&b.mobile&&(e[p]=v),S&&e[d]==`Macintosh`&&a&&typeof a.standalone!==s&&a.maxTouchPoints&&a.maxTouchPoints>2&&(e[d]=`iPad`,e[p]=y),e},this.getEngine=function(){var e={};return e[f]=r,e[h]=r,F.call(e,_,x.engine),e},this.getOS=function(){var e={};return e[f]=r,e[h]=r,F.call(e,_,x.os),S&&!e[f]&&b&&b.platform&&b.platform!=`Unknown`&&(e[f]=b.platform.replace(/chrome os/i,k).replace(/macos/i,A)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _},this.setUA=function(e){return _=typeof e===l&&e.length>ee?ge(e,ee):e,this},this.setUA(_),this};L.BROWSER=M([f,h,u]),L.CPU=M([g]),L.DEVICE=M([d,m,p,_,v,b,y,x,S]),L.ENGINE=L.OS=M([f,h]),typeof e===s?typeof define===o&&define.amd?define(function(){return L}):typeof n!==s&&(n.UAParser=L):(typeof t!==s&&t.exports&&(e=t.exports=L),e.UAParser=L);var R=typeof n!==s&&(n.jQuery||n.Zepto);if(R&&!R.ua){var z=new L;R.ua=z.getResult(),R.ua.get=function(){return z.getUA()},R.ua.set=function(e){z.setUA(e);var t=z.getResult();for(var n in t)R.ua[n]=t[n]}}})(typeof window==`object`?window:e)}));function Ne(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var Pe=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Fe(e=21){let t=``,n=e;for(;n--;)t+=Pe[Math.random()*64|0];return t}function Ie(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Le=Symbol.for(`immer-nothing`),Re=Symbol.for(`immer-draftable`),B=Symbol.for(`immer-state`);function V(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var H=Object,U=H.getPrototypeOf,ze=`constructor`,Be=`prototype`,Ve=`configurable`,He=`enumerable`,Ue=`writable`,We=`value`,W=e=>!!e&&!!e[B];function G(e){return e?qe(e)||Qe(e)||!!e[Re]||!!e[ze]?.[Re]||$e(e)||et(e):!1}var Ge=H[Be][ze].toString(),Ke=new WeakMap;function qe(e){if(!e||!J(e))return!1;let t=U(e);if(t===null||t===H[Be])return!0;let n=H.hasOwnProperty.call(t,ze)&&t[ze];if(n===Object)return!0;if(!Y(n))return!1;let r=Ke.get(n);return r===void 0&&(r=Function.toString.call(n),Ke.set(n,r)),r===Ge}function Je(e,t,n=!0){K(e)===0?(n?Reflect.ownKeys(e):H.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function K(e){let t=e[B];return t?t.type_:Qe(e)?1:$e(e)?2:et(e)?3:0}var Ye=(e,t,n=K(e))=>n===2?e.has(t):H[Be].hasOwnProperty.call(e,t),q=(e,t,n=K(e))=>n===2?e.get(t):e[t],Xe=(e,t,n,r=K(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ze(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Qe=Array.isArray,$e=e=>e instanceof Map,et=e=>e instanceof Set,J=e=>typeof e==`object`,Y=e=>typeof e==`function`,tt=e=>typeof e==`boolean`;function nt(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var rt=e=>J(e)?e?.[B]:null,X=e=>e.copy_||e.base_,it=e=>e.modified_?e.copy_:e.base_;function at(e,t){if($e(e))return new Map(e);if(et(e))return new Set(e);if(Qe(e))return Array[Be].slice.call(e);let n=qe(e);if(t===!0||t===`class_only`&&!n){let t=H.getOwnPropertyDescriptors(e);delete t[B];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ue]===!1&&(a[Ue]=!0,a[Ve]=!0),(a.get||a.set)&&(t[i]={[Ve]:!0,[Ue]:!0,[He]:a[He],[We]:e[i]})}return H.create(U(e),t)}else{let t=U(e);if(t!==null&&n)return{...e};let r=H.create(t);return H.assign(r,e)}}function ot(e,t=!1){return lt(e)||W(e)||!G(e)?e:(K(e)>1&&H.defineProperties(e,{set:ct,add:ct,clear:ct,delete:ct}),H.freeze(e),t&&Je(e,(e,t)=>{ot(t,!0)},!1),e)}function st(){V(2)}var ct={[We]:st};function lt(e){return e===null||!J(e)?!0:H.isFrozen(e)}var ut=`MapSet`,dt=`Patches`,ft=`ArrayMethods`,pt={};function Z(e){let t=pt[e];return t||V(0,e),t}var mt=e=>!!pt[e];function ht(e,t){pt[e]||(pt[e]=t)}var gt,_t=()=>gt,vt=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:mt(ut)?Z(ut):void 0,arrayMethodsPlugin_:mt(ft)?Z(ft):void 0});function yt(e,t){t&&(e.patchPlugin_=Z(dt),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bt(e){xt(e),e.drafts_.forEach(Ct),e.drafts_=null}function xt(e){e===gt&&(gt=e.parent_)}var St=e=>gt=vt(gt,e);function Ct(e){let t=e[B];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function wt(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[B].modified_&&(bt(t),V(4)),G(e)&&(e=Tt(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[B].base_,e,t)}else e=Tt(t,n);return Et(t,e,!0),bt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Le?void 0:e}function Tt(e,t){if(lt(t))return t;let n=t[B];if(!n)return Pt(t,e.handledSet_,e);if(!Ot(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Mt(n,e)}return n.copy_}function Et(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ot(t,n)}function Dt(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Ot=(e,t)=>e.scope_===t,kt=[];function At(e,t,n,r){let i=X(e),a=e.type_;if(r!==void 0&&q(i,r,a)===t){Xe(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Je(i,(e,n)=>{if(W(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??kt;for(let e of o)Xe(i,e,n,a)}function jt(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Ot(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=it(i);At(e,i.draft_??i,a,n),Mt(i,r)})}function Mt(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Dt(e)}}function Nt(e,t,n){let{scope_:r}=e;if(W(n)){let i=n[B];Ot(i,r)&&i.callbacks_.push(function(){Ht(e),At(e,n,it(i),t)})}else G(n)&&e.callbacks_.push(function(){let i=X(e);e.type_===3?i.has(n)&&Pt(n,r.handledSet_,r):q(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Pt(q(e.copy_,t,e.type_),r.handledSet_,r)})}function Pt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||W(e)||t.has(e)||!G(e)||lt(e)?e:(t.add(e),Je(e,(r,i)=>{if(W(i)){let t=i[B];Ot(t,n)&&(Xe(e,r,it(t),e.type_),Dt(t))}else G(i)&&Pt(i,t,n)}),e)}function Ft(e,t){let n=Qe(e),r={type_:n?1:0,scope_:t?t.scope_:_t(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=It;n&&(i=[r],a=Lt);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var It={get(e,t){if(t===B)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=X(e);if(!Ye(i,t,e.type_))return zt(e,i,t);let a=i[t];if(e.finalized_||!G(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&nt(t))return a;if(a===Rt(e.base_,t)){Ht(e);let n=e.type_===1?+t:t,r=Wt(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in X(e)},ownKeys(e){return Reflect.ownKeys(X(e))},set(e,t,n){let r=Bt(X(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Rt(X(e),t),i=r?.[B];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ze(n,r)&&(n!==void 0||Ye(e.base_,t,e.type_)))return!0;Ht(e),Vt(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Nt(e,t,n),!0)},deleteProperty(e,t){return Ht(e),Rt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Vt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=X(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ue]:!0,[Ve]:e.type_!==1||t!==`length`,[He]:r[He],[We]:n[t]}},defineProperty(){V(11)},getPrototypeOf(e){return U(e.base_)},setPrototypeOf(){V(12)}},Lt={};for(let e in It){let t=It[e];Lt[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Lt.deleteProperty=function(e,t){return Lt.set.call(this,e,t,void 0)},Lt.set=function(e,t,n){return It.set.call(this,e[0],t,n,e[0])};function Rt(e,t){let n=e[B];return(n?X(n):e)[t]}function zt(e,t,n){let r=Bt(t,n);return r?We in r?r[We]:r.get?.call(e.draft_):void 0}function Bt(e,t){if(!(t in e))return;let n=U(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=U(n)}}function Vt(e){e.modified_||(e.modified_=!0,e.parent_&&Vt(e.parent_))}function Ht(e){e.copy_||=(e.assigned_=new Map,at(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ut=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Y(e)&&!Y(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Y(t)||V(6),n!==void 0&&!Y(n)&&V(7);let r;if(G(e)){let i=St(this),a=Wt(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?bt(i):xt(i)}return yt(i,n),wt(r,i)}else if(!e||!J(e)){if(r=t(e),r===void 0&&(r=e),r===Le&&(r=void 0),this.autoFreeze_&&ot(r,!0),n){let t=[],i=[];Z(dt).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else V(1,e)},this.produceWithPatches=(e,t)=>{if(Y(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},tt(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),tt(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),tt(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){G(e)||V(8),W(e)&&(e=Gt(e));let t=St(this),n=Wt(t,e,void 0);return n[B].isManual_=!0,xt(t),n}finishDraft(e,t){let n=e&&e[B];(!n||!n.isManual_)&&V(9);let{scope_:r}=n;return yt(r,t),wt(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Z(dt).applyPatches_;return W(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Wt(e,t,n,r){let[i,a]=$e(t)?Z(ut).proxyMap_(t,n):et(t)?Z(ut).proxySet_(t,n):Ft(t,n);return(n?.scope_??_t()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?jt(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Gt(e){return W(e)||V(10,e),Kt(e)}function Kt(e){if(!G(e)||lt(e))return e;let t=e[B],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=at(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=at(e,!0);return Je(n,(e,t)=>{Xe(n,e,Kt(t))},r),t&&(t.finalized_=!1),n}function qt(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=rt(q(e,n.key_)),i=q(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Ye(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=q(n,r),!J(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[B];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;Je(e.assigned_,(e,l)=>{let u=q(o,e,c),f=q(s,e,c),p=l?Ye(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===Le?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=K(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===ze)&&V(19),Y(o)&&n===Be&&V(19),o=q(o,n),J(o)||V(18,i.join(`/`))}let s=K(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:V(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:V(17,a)}}),e}function u(e){if(!G(e))return e;if(Qe(e))return e.map(u);if($e(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(et(e))return new Set(Array.from(e).map(u));let t=Object.create(U(e));for(let n in e)t[n]=u(e[n]);return Ye(e,Re)&&(t[Re]=e[Re]),t}function d(e){return W(e)?u(e):e}ht(dt,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var Jt=new Ut,Yt=Jt.produce,Xt=Jt.produceWithPatches.bind(Jt),Zt=Jt.applyPatches.bind(Jt);function Qt(e){let{enablePatches:t=!1}=e,n=Ne(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Fe())=>{i.has(t)||(qt(),r=Zt(r,e),i.add(t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Fe())=>{if(!i.has(a))if(i.add(a),t){let[t,i]=Xt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Yt(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}function $t(e){let t=new Map;e.client.register({name:`devtoolskit:internal:rpc:client-state:updated`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>n,r)}}),e.client.register({name:`devtoolskit:internal:rpc:client-state:patch`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function n(t,n){let r=[];return r.push(n.on(`updated`,(n,r,i)=>{r?e.callEvent(`devtoolskit:internal:rpc:server-state:patch`,t,r,i):e.callEvent(`devtoolskit:internal:rpc:server-state:set`,t,n,i)})),()=>{for(let e of r)e()}}return{get:async(r,i)=>{if(t.has(r))return t.get(r);let a=Qt({initialValue:i?.initialValue,enablePatches:!1});async function o(){if(e.callEvent(`devtoolskit:internal:rpc:server-state:subscribe`,r),i?.initialValue!==void 0)return t.set(r,a),e.call(`devtoolskit:internal:rpc:server-state:get`,r).then(e=>{a.mutate(()=>e)}).catch(e=>{console.error(`Error getting server state`,e)}),n(r,a),a;{let i=await e.call(`devtoolskit:internal:rpc:server-state:get`,r);return a.mutate(()=>i),t.set(r,a),n(r,a),a}}return new Promise(t=>{e.isTrusted?o().then(t):(t(a),e.events.on(`rpc:is-trusted:updated`,e=>{e&&o()}))})}}}var en=Me(),tn=`__VITE_DEVTOOLS_CONNECTION_META__`,Q=`__VITE_DEVTOOLS_CONNECTION_AUTH_ID__`;function nn(e){return e==null?!1:`${+e}`==`${e}`}function rn(e){let t=[()=>e,()=>localStorage.getItem(Q),()=>window?.[Q],()=>globalThis?.[Q],()=>parent.window?.[Q]],n;for(let e of t)try{if(n=e(),n)break}catch{}return n||=Fe(),localStorage.setItem(Q,n),globalThis[Q]=n,n}function an(){let e=[()=>window?.[tn],()=>globalThis?.[tn],()=>parent.window?.[tn]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function on(e={}){let{baseURL:t=`/.devtools/`,rpcOptions:n={}}=e,r=Ne(),i=Array.isArray(t)?t:[t],a=e.connectionMeta||an();if(!a){let e=[];for(let t of i)try{a=await fetch(`${t}.vdt-connection.json`).then(e=>e.json()),globalThis[tn]=a;break}catch(t){e.push(t)}if(!a)throw Error(`Failed to get connection meta from ${i.join(`, `)}`,{cause:e})}let o=nn(a.websocket)?`${location.protocol.replace(`http`,`ws`)}//${location.hostname}:${a.websocket}`:a.websocket,s={rpc:void 0},c=rn(e.authId),l=!1,u=Ie(),d=new E(s),f=pe(d.functions,{preset:je({url:o,authId:c,...e.wsOptions}),rpcOptions:n});async function p(){if(l)return!0;let e=new en.UAParser(navigator.userAgent).getResult(),t=[e.browser.name,e.browser.version,`|`,e.os.name,e.os.version,e.device.type].filter(e=>e).join(` `),n=await f.$call(`vite:anonymous:auth`,{authId:c,ua:t,origin:location.origin});return l=n.isTrusted,u.resolve(l),r.emit(`rpc:is-trusted:updated`,l),n.isTrusted}async function m(e=6e4){if(l&&u.resolve(!0),e<=0)return u.promise;let t=()=>{};return await Promise.race([u.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[Vite DevTools] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),l}let h={events:r,get isTrusted(){return l},connectionMeta:a,ensureTrusted:m,requestTrust:p,call:(...e)=>f.$call(...e),callEvent:(...e)=>f.$callEvent(...e),callOptional:(...e)=>f.$callOptional(...e),client:d,sharedState:void 0};return h.sharedState=$t(h),s.rpc=h,p(),h}var $=r({connected:!1,error:null}),sn=s(void 0);async function cn(){let e=i();try{sn.value=await on({baseURL:[`/.devtools/`,e.app.baseURL],connectionMeta:e.app.connection,wsOptions:{onConnected:()=>{$.connected=!0},onError:e=>{$.error=e},onDisconnected:()=>{$.connected=!1}},rpcOptions:{onGeneralError:(e,t)=>{$.error=e,console.error(`[rolldown-devtools] RPC error on executing "${t}":`)},onFunctionError:(e,t)=>{$.error=e,console.error(`[rolldown-devtools] RPC error on executing "${t}":`)}}}),$.connected=!0}catch(e){$.error=e}}function ln(){return sn}export{g as a,te as i,$ as n,v as o,ln as r,cn as t};
@@ -0,0 +1 @@
1
+ import{C as e,K as t,Z as n,b as r,it as i,j as a,ot as o}from"./gtHejcxM.js";var s={class:`px4`,flex:`~ col gap2`},c=a({__name:`Treemap`,props:{graph:{},selected:{}},emits:[`select`],setup(a,{emit:c}){let l=a,u=c,d=i(`el`);return o(()=>d.value?.append(l.graph.el)),(i,o)=>(t(),e(`div`,s,[n(i.$slots,`default`,{selected:a.selected,options:a.graph.options,onSelect:o[0]||=e=>u(`select`,e)},()=>[o[1]||=r(`div`,{border:`b base`,py2:``,"min-h-10":``},null,-1)]),r(`div`,{ref_key:`el`,ref:d},null,512)]))}}),l=Object.assign(c,{__name:`ChartTreemap`});export{l as t};