1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../chunks/x-W9U6bU.js","../chunks/BQ5i3HPE.js","../chunks/BMpThM65.js"])))=>i.map(i=>d[i]); 2import{$ as e,C as t,Ct as n,D as r,Dt as i,F as a,G as o,H as s,I as c,J as l,K as u,L as d,M as f,N as p,P as m,R as h,S as g,St as _,T as v,U as y,V as b,X as x,Y as S,a as C,at as w,b as T,bt as E,c as ee,ct as D,et as O,f as k,g as A,h as j,ht as M,j as N,k as P,mt as F,nt as I,o as L,r as R,rt as te,s as z,st as B,tt as V,u as H,w as ne,wt as re,xt as U,yt as W}from"../chunks/BQ5i3HPE.js";import{t as ie}from"../chunks/uBIymjUX.js";import"../chunks/xihTtKlq.js";import{t as ae}from"../chunks/CT-tksry.js";import{t as oe}from"../chunks/DVy-MfqO.js";import{n as se,t as ce}from"../chunks/Czr6tvRo.js";import{$ as le,C as ue,H as de,K as fe,L as pe,N as me,O as he,Q as ge,R as _e,T as ve,U as ye,V as be,Z as xe,_ as Se,a as G,b as Ce,et as we,h as Te,i as Ee,k as De,l as Oe,m as ke,n as Ae,o as je,q as Me,r as Ne,s as Pe,t as Fe,u as Ie,v as Le,w as Re,x as ze,z as Be}from"../chunks/C9eliEmi.js";import{a as Ve,c as He,d as Ue,f as We,i as Ge,l as Ke,n as K,o as qe,r as Je,s as Ye,t as Xe,u as Ze}from"../chunks/BS8aCWrW.js";import{i as Qe}from"../chunks/FEn-48i9.js";import{t as $e}from"../chunks/7dkakuwt.js";import{i as et}from"../chunks/CpqNDfrK.js";import{n as tt}from"../chunks/C7-coWnf.js";var nt=i({prerender:()=>!0});function rt(){if(typeof document>`u`)return!1;let e=document.documentElement;return e.classList.contains(`dark`)||e.getAttribute(`data-mode`)===`dark`||typeof getComputedStyle==`function`&&getComputedStyle(e).colorScheme===`dark`}function it(e,t){return e??t}function at(e){if(typeof document>`u`)return()=>{};let t=()=>e(rt()),n=new MutationObserver(t);n.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-mode`]});let r=typeof matchMedia==`function`?matchMedia(`(prefers-color-scheme: dark)`):null;return r?.addEventListener(`change`,t),t(),()=>{n.disconnect(),r?.removeEventListener(`change`,t)}}var ot=typeof window<`u`,st=m(`<radialGradient cx="50%" cy="50%" r="80%"><stop offset="0%" stop-opacity="calc(var(--tv-blob-intensity) * 0.5)"></stop><stop offset="40%" stop-opacity="calc(var(--tv-blob-intensity) * 0.3)"></stop><stop offset="70%" stop-opacity="calc(var(--tv-blob-intensity) * 0.15)"></stop><stop offset="100%" stop-opacity="0"></stop></radialGradient><radialGradient cx="50%" cy="50%" r="50%"><stop offset="0%" stop-opacity="calc(var(--tv-blob-intensity) * 0.9)"></stop><stop offset="50%" stop-opacity="calc(var(--tv-blob-intensity) * 0.6)"></stop><stop offset="80%" stop-opacity="calc(var(--tv-blob-intensity) * 0.3)"></stop><stop offset="100%" stop-opacity="0"></stop></radialGradient><radialGradient cx="50%" cy="50%" r="30%"><stop offset="0%" stop-opacity="calc(var(--tv-blob-intensity) * 1.0)"></stop><stop offset="60%" stop-opacity="calc(var(--tv-blob-intensity) * 0.7)"></stop><stop offset="100%" stop-opacity="calc(var(--tv-blob-intensity) * 0.3)"></stop></radialGradient>`,1),ct=m(`<path></path>`),lt=m(`<path></path>`),ut=m(`<path></path>`),dt=m(`<svg width="100%" height="100%" viewBox="-33 -33 133 133" preserveAspectRatio="xMidYMid slice" class="h-full w-full"><defs><filter id="glowFilter" x="-100%" y="-100%" width="300%" height="300%"><feGaussianBlur in="SourceGraphic" stdDeviation="4.0" result="glow"></feGaussianBlur></filter><filter id="softEdge" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur in="SourceGraphic" stdDeviation="1.5" result="soft"></feGaussianBlur></filter><!></defs><g filter="url(#glowFilter)" opacity="0.35"></g><g filter="url(#softEdge)" opacity="0.75"></g><g opacity="0.9"></g></svg>`);function ft(e,t){M(t,!0);let n=C(t,`blobs`,19,()=>[]),r=C(t,`physics`,3,null),i=C(t,`isDark`,3,null),a=B(!1),o=D(()=>it(i(),y(a))?`screen`:`multiply`);x(()=>{if(ot&&i()==null)return at(e=>{w(a,e,!0)})});function s(e,t,n){return`M ${e-n},${t} A ${n},${n} 0 1,1 ${e+n},${t} A ${n},${n} 0 1,1 ${e-n},${t}`}function c(e){return r()&&e.controlPoints&&e.controlPoints.length>0?r().generateSmoothBlobPath(e):s(e.currentX,e.currentY,e.size)}var l=dt(),u=O(l),d=I(O(u),2);v(d,19,n,e=>e.gradientId,(e,t)=>{var n=st(),r=V(n),i=O(r),a=I(i),o=I(a),s=I(o);E(r);var c=I(r),l=O(c),u=I(l),d=I(u),f=I(d);E(c);var p=I(c),m=O(p),h=I(m),g=I(h);E(p),S(()=>{k(r,`id`,`${y(t).gradientId??``}Glow`),j(r,`--tv-blob-intensity: ${y(t).intensity??``}`),k(i,`stop-color`,y(t).color),k(a,`stop-color`,y(t).color),k(o,`stop-color`,y(t).color),k(s,`stop-color`,y(t).color),k(c,`id`,`${y(t).gradientId??``}Main`),j(c,`--tv-blob-intensity: ${y(t).intensity??``}`),k(l,`stop-color`,y(t).color),k(u,`stop-color`,y(t).color),k(d,`stop-color`,y(t).color),k(f,`stop-color`,y(t).color),k(p,`id`,`${y(t).gradientId??``}Core`),j(p,`--tv-blob-intensity: ${y(t).intensity??``}`),k(m,`stop-color`,y(t).color),k(h,`stop-color`,y(t).color),k(g,`stop-color`,y(t).color)}),N(e,n)}),E(u);var f=I(u);v(f,21,n,e=>e.gradientId,(e,t)=>{var n=ct();S(e=>{k(n,`d`,e),k(n,`fill`,`url(#${y(t).gradientId??``}Glow)`)},[()=>s(y(t).currentX,y(t).currentY,y(t).size*2.5)]),N(e,n)}),E(f);var p=I(f);let m;v(p,21,n,e=>e.gradientId,(e,t)=>{var n=lt();S(e=>{k(n,`d`,e),k(n,`fill`,`url(#${y(t).gradientId??``}Main)`)},[()=>c(y(t))]),N(e,n)}),E(p);var h=I(p);let g;v(h,21,n,e=>e.gradientId,(e,t)=>{var n=ut();S(e=>{k(n,`d`,e),k(n,`fill`,`url(#${y(t).gradientId??``}Core)`)},[()=>s(y(t).currentX,y(t).currentY,y(t).size*.6)]),N(e,n)}),E(h),E(l),S(()=>{m=j(p,``,m,{"mix-blend-mode":y(o)}),g=j(h,``,g,{"mix-blend-mode":y(o)})}),N(e,l),F()}var pt=class{cellSize;cells;blobToCell;constructor(e=50){this.cellSize=e,this.cells=new Map,this.blobToCell=new Map}hash(e,t){return`${Math.floor(e/this.cellSize)},${Math.floor(t/this.cellSize)}`}parseKey(e){let[t,n]=e.split(`,`).map(Number);return{cellX:t,cellY:n}}rebuild(e){this.cells.clear(),this.blobToCell.clear();for(let t of e){let e=this.hash(t.currentX,t.currentY);this.cells.has(e)||this.cells.set(e,[]),this.cells.get(e).push(t),this.blobToCell.set(t,e)}}query(e,t,n,r){let i=[],a=Math.ceil(n/this.cellSize),o=n*n,s=Math.floor(e/this.cellSize),c=Math.floor(t/this.cellSize);for(let n=-a;n<=a;n++)for(let l=-a;l<=a;l++){let a=`${s+n},${c+l}`,u=this.cells.get(a);if(u)for(let n of u){if(n===r)continue;let a=n.currentX-e,s=n.currentY-t;a*a+s*s<o&&i.push(n)}}return i}queryNeighbors(e,t){return this.query(e.currentX,e.currentY,t,e)}getAllPairs(e){let t=[],n=e*e;for(let[e,r]of this.cells){let{cellX:i,cellY:a}=this.parseKey(e);for(let e=0;e<r.length;e++)for(let i=e+1;i<r.length;i++){let a=r[e],o=r[i],s=o.currentX-a.currentX,c=o.currentY-a.currentY,l=s*s+c*c;l<n&&t.push([a,o,Math.sqrt(l)])}for(let[e,o]of[[1,0],[1,1],[0,1],[-1,1]]){let s=`${i+e},${a+o}`,c=this.cells.get(s);if(c)for(let e of r)for(let r of c){let i=r.currentX-e.currentX,a=r.currentY-e.currentY,o=i*i+a*a;o<n&&t.push([e,r,Math.sqrt(o)])}}}return t}getCellSize(){return this.cellSize}getCellCount(){return this.cells.size}getCell(e,t){let n=this.hash(e,t);return this.cells.get(n)||[]}clear(){this.cells.clear(),this.blobToCell.clear()}},mt=class{weights;halfSize;size;constructor(e=5,t=1){this.size=e%2==0?e+1:e,this.halfSize=Math.floor(this.size/2),this.weights=new Float32Array(this.size),this.computeWeights(t)}computeWeights(e){let t=0,n=2*e*e;for(let e=0;e<this.size;e++){let r=e-this.halfSize,i=Math.exp(-(r*r)/n);this.weights[e]=i,t+=i}for(let e=0;e<this.size;e++)this.weights[e]/=t}convolve(e){let t=e.length;if(t<3)return;let n=new Float32Array(t);for(let r=0;r<t;r++)n[r]=e[r].radius;for(let r=0;r<t;r++){let i=0;for(let e=0;e<this.size;e++){let a=(r+e-this.halfSize+t)%t;i+=n[a]*this.weights[e]}e[r].radius=i}}convolveArray(e,t){let n=new Float32Array(t);for(let r=0;r<t;r++){let i=0;for(let n=0;n<this.size;n++){let a=(r+n-this.halfSize+t)%t;i+=e[a]*this.weights[n]}n[r]=i}return n}getWeights(){return this.weights}getSize(){return this.size}static computeVariance(e){let t=e.length;if(t===0)return 0;let n=0;for(let r=0;r<t;r++)n+=e[r];let r=n/t,i=0;for(let n=0;n<t;n++){let t=e[n]-r;i+=t*t}return i/t}},ht={springConstant:.08,dampingCoeff:.12,couplingStrength:.05,surfaceTension:.03,pressure:1,maxDeformation:.3,maxVelocity:2},gt=class{config;constructor(e={}){this.config={...ht,...e}}updateControlPoint(e,t,n,r,i,a){let o=e.radius-e.baseRadius,s=-this.config.springConstant*o,c=(n.radius+r.radius)/2,l=e.radiu
2s-c,u=-this.config.surfaceTension*l,d=(this.config.pressure-1)*e.baseRadius*.01,f=n.radius-e.radius,p=r.radius-e.radius,m=this.config.couplingStrength*(f+p)*.5,h=-this.config.dampingCoeff*t.radialVelocity,g=i,_=s+u+d+m+h+g;t.radialVelocity+=_*a,t.radialVelocity=Math.max(-this.config.maxVelocity,Math.min(this.config.maxVelocity,t.radialVelocity)),e.radius+=t.radialVelocity*a;let v=e.baseRadius*(1-this.config.maxDeformation),y=e.baseRadius*(1+this.config.maxDeformation);e.radius=Math.max(v,Math.min(y,e.radius)),(e.radius===v||e.radius===y)&&(t.radialVelocity*=.3)}updateAllControlPoints(e,t,n,r){let i=e.length;if(!(i<3))for(let a=0;a<i;a++){let o=(a-1+i)%i,s=(a+1)%i,c=Array.isArray(n)?n[a]||0:n;this.updateControlPoint(e[a],t[a],e[o],e[s],c,r)}}applyImpulse(e,t,n,r){for(let i=0;i<e.length;i++){let a=e[i],o=t[i],s=Math.cos(a.angle-n);o.radialVelocity-=s*r}}applyPressure(e,t){for(let n of e)n.radialVelocity+=t*.1}getKineticEnergy(e){let t=0;for(let n of e)t+=.5*n.radialVelocity*n.radialVelocity;return t}getPotentialEnergy(e){let t=0;for(let n of e){let e=n.radius-n.baseRadius;t+=.5*this.config.springConstant*e*e}return t}isAtRest(e,t,n=.001){return this.getKineticEnergy(t)+this.getPotentialEnergy(e)<n}setConfig(e){this.config={...this.config,...e}}getConfig(){return{...this.config}}};function _t(e,t,n=1){let r=Math.max(0,n),i=e.x*t,a=e.y*t,o=Math.sqrt(i*i+a*a);if(r===0||o===0)return{x:0,y:0};if(o<=r)return{x:i,y:a};let s=r/o;return{x:i*s,y:a*s}}var vt=8e-4,yt=.003,bt={antiClusteringStrength:.15,bounceDamping:.7,deformationSpeed:.5,territoryStrength:.1,viscosity:.3,useSpatialHash:!0,useGaussianSmoothing:!0,useSpringSystem:!0,springConfig:{}},xt=1/60,St=8,Ct=.992,wt=class{blobs=[];config;numBlobs;initialized=!1;accumulatedTime=0;simulationClock=Math.random()*45;mouseX=50;mouseY=50;mouseVelX=0;mouseVelY=0;gravity={x:0,y:0};gravityField={x:0,y:0};tilt={x:0,y:0,z:0};scrollStickiness=0;PHYSICS_MIN=-40;PHYSICS_MAX=140;spatialHash;gaussianKernel;springSystem;controlRadiusScratch=[];constructor(e,t={}){this.numBlobs=e,this.config={...bt,...t},this.spatialHash=new pt(60),this.gaussianKernel=new mt(5,1.2),this.springSystem=new gt({...ht,...this.config.springConfig})}
2async init(){this.initialized||=(this.initializeBlobs(),!0)}isReady(){return this.initialized}dispose(){this.blobs=[],this.initialized=!1,this.accumulatedTime=0,this.simulationClock=0}setGravity(e){this.gravity=e,this.gravityField=_t(e,vt,yt)}setTilt(e){this.tilt=e}setScrollStickiness(e){this.scrollStickiness=e}tick(e,t){if(!this.initialized)return;e=Number.isFinite(e)?Math.max(e,0):0;let n=xt*St;this.accumulatedTime=Math.min(this.accumulatedTime+e,n);let r=0;for(;this.accumulatedTime>=xt&&r<St;)this.simulationClock+=xt,this.step(xt,this.simulationClock),this.accumulatedTime-=xt,r++}step(e,t){this.config.useSpatialHash&&this.spatialHash.rebuild(this.blobs),this.config.useSpatialHash?this.applyAntiClusteringWithSpatialHash():this.applyEnhancedAntiClustering(),this.blobs.forEach(n=>this.updateScreensaverPhysics(n,e,t)),this.mouseVelX*=.96,this.mouseVelY*=.96}applyAntiClusteringWithSpatialHash(){for(let e of this.blobs){let t=this.spatialHash.queryNeighbors(e,60);for(let n of t){let t=n.currentX-e.currentX,r=n.currentY-e.currentY,i=Math.sqrt(t*t+r*r),a=Math.max(e.personalSpace||50,n.personalSpace||50);if(i<a&&i>0){let n=(a-i)/a*.055*this.config.antiClusteringStrength/.15,o=t/i,s=r/i,c=e.repulsionStrength||.03,l=i<a*.7?3.5:1;e.velocityX-=o*n*c*l*.5,e.velocityY-=s*n*c*l*.5,e.lastRepulsionTime=Date.now()}}}}updateMousePosition(e,t){let n=this.mouseX,r=this.mouseY;this.mouseVelX=e-n,this.mouseVelY=t-r,this.mouseX=e,this.mouseY=t}getBlobs(e){if(e&&e.length>0)for(let t=0;t<this.blobs.length;t++)this.blobs[t].color=e[t%e.length];return this.blobs.slice()}generateSmoothBlobPath(e){if(!e.controlPoints||e.controlPoints.length<3){let t=e.currentX,n=e.currentY,r=e.size;return`M ${t-r},${n} 3 A ${r},${r} 0 1,1 ${t+r},${n} 4 A ${r},${r} 0 1,1 ${t-r},${n}`}let t=e.currentX,n=e.currentY,r=e.controlPoints.map(e=>({x:t+Math.cos(e.angle)*e.radius,y:n+Math.sin(e.angle)*e.radius})),i=this.generateConvexHull(r),a=`M ${i[0].x},${i[0].y}`;for(let e=0;e<i.length;e++){let t=i[e],n=i[(e+1)%i.length],r=i[(e+2)%i.length],o=t.x+(n.x-t.x)*.15,s=t.y+(n.y-t.y)*.15,c=n.x-(r.x-t.x)*.05,l=n.y-(r.y-t.y)*.05;a+=` C ${o},${s} ${c},${l} ${n.x},${n.y}`}return a+=` Z`,a}initializeBlobs(){this.blobs=[];for(let e=0;e<this.numBlobs;e++){let t=Math.ceil(Math.sqrt(this.numBlobs)),n=Math.ceil(this.numBlobs/t),r=e%t,i=Math.floor(e/t),a=(this.PHYSICS_MAX-this.PHYSICS_MIN-40)/t,o=(this.PHYSICS_MAX-this.PHYSICS_MIN-40)/n,s=this.PHYSICS_MIN+20+r*a+a/2+(Math.random()-.5)*a*.5,c=this.PHYSICS_MIN+20+i*o+o/2+(Math.random()-.5)*o*.5,l=Math.max(this.PHYSICS_MIN+20,Math.min(this.PHYSICS_MAX-20,s)),u=Math.max(this.PHYSICS_MIN+20,Math.min(this.PHYSICS_MAX-20,c)),d=15+Math.random()*12,f=[],p=[];for(let e=0;e<8;e++){let t=e/8*Math.PI*2,n=d*(.8+Math.random()*.35);f.push({radius:n,angle:t,targetRadius:n,baseRadius:n,pressure:1,adhesion:.15+Math.random()*.1,tension:.3+Math.random()*.15}),p.push({radialVelocity:0,angularVelocity:(Math.random()-.5)*4e-4,pressureVelocity:0})}this.blobs.push({baseX:l,baseY:u,currentX:l,currentY:u,velocityX:(Math.random()-.5)*.02,velocityY:(Math.random()-.5)*.02,size:d,elasticity:4e-4+Math.random()*2e-4,viscosity:.995+Math.random()*.003,phase:Math.random()*Math.PI*2,speed:.003+Math.random()*.002,color:`hsl(${e*30%360}, 70%, 60%)`,gradientId:`blob-gradient-${e}`,intensity:.65+Math.random()*.2,stickiness:2,isAttractive:e%2==0,mouseDistance:100,isStuck:!1,radiusVariations:[],fluidMass:.5+Math.random()*.25,scrollAffinity:.3+Math.random()*.5,surfaceTension:.02+Math.random()*.01,density:.4+Math.random()*.1,flowResistance:.002+Math.random()*.001,controlPoints:f,controlVelocities:p,deformationStrength:.3+Math.random()*.15,cohesion:.05+Math.random()*.03,stretchability:.8+Math.random()*.3,lastCollisionTime:0,mergeThreshold:d*.5,splitThreshold:d*1.5,isSettled:!1,settleTime:0,groundContactPoints:[],restHeight:d*.7,wetting:.15+Math.random()*.1,contactAngle:70+Math.random()*30,pressureDistribution:Array(8).fill(1),chaosLevel:0,turbulenceDecay:.985,expansionPhase:!1,expansionTime:0,maxExpansionTime:20+Math.random()*40,wallBounceCount:0,lastBounceTime:0,driftAngle:Math.random()*Math.PI*2,driftSpeed:.05+Math.random()*.05,territoryRadius:100+Math.random()*60,territoryX:l,territoryY:u,personalSpace
4:35+Math.random()*20,repulsionStrength:.025+Math.random()*.015,lastRepulsionTime:0})}}applyEnhancedAntiClustering(){for(let e=0;e<this.blobs.length;e++){let t=this.blobs[e];for(let n=e+1;n<this.blobs.length;n++){let e=this.blobs[n],r=e.currentX-t.currentX,i=e.currentY-t.currentY,a=Math.sqrt(r*r+i*i),o=Math.max(t.personalSpace||50,e.personalSpace||50);if(a<o&&a>0){let n=(o-a)/o*.055*this.config.antiClusteringStrength/.15,s=r/a,c=i/a,l=t.repulsionStrength||.03,u=e.repulsionStrength||.03,d=a<o*.7?3.5:1;t.velocityX-=s*n*l*d,t.velocityY-=c*n*l*d,e.velocityX+=s*n*u*d,e.velocityY+=c*n*u*d,t.lastRepulsionTime=Date.now(),e.lastRepulsionTime=Date.now()}}}}updateScreensaverPhysics(e,t,n){e.mouseDistance=Math.sqrt((e.currentX-this.mouseX)**2+(e.currentY-this.mouseY)**2),this.updateTerritorialMovement(e,n),this.applyAccelerometerForces(e),this.applyPointerField(e),this.updateMovementWithAccelerometer(e,n),this.addEscapeVelocity(e),this.updateSafeOrganicDeformation(e,n),this.scrollStickiness>.01&&this.applyScrollEffect(e),e.currentX+=e.velocityX,e.currentY+=e.velocityY,this.handleWallBouncing(e),e.velocityX*=Ct,e.velocityY*=Ct}applyAccelerometerForces(e){if(e.velocityX+=this.gravityField.x,e.velocityY+=this.gravityField.y,e.controlPoints&&(Math.abs(this.gravity.x)>.3||Math.abs(this.gravity.y)>.3)){let t=Math.min(.08,(Math.abs(this.gravity.x)+Math.abs(this.gravity.y))*.02);e.chaosLevel=Math.min((e.chaosLevel||0)+t,.2)}}applyPointerField(e){if(this.mouseX===50&&this.mouseY===50)return;let t=this.mouseX-e.currentX,n=this.mouseY-e.currentY,r=Math.sqrt(t*t+n*n);if(r===0||r>=34)return;let i=1-r/34,a=i*i*.0014/r;e.velocityX+=t*a,e.velocityY+=n*a}updateMovementWithAccelerometer(e,t){let n=(Math.random()-.5)*.001,r=(Math.random()-.5)*.001;e.velocityX+=n,e.velocityY+=r;let i=t*.1+e.phase,a=Math.sin(i+(e.driftAngle||0))*5e-4,o=Math.cos(i*1.3+(e.driftAngle||0))*5e-4;e.velocityX+=a,e.velocityY+=o;let s=e.driftAngle||0,c=(e.driftSpeed??.075)*.008000000000000007;e.velocityX+=Math.cos(s)*c,e.velocityY+=Math.sin(s)*c,Math.random()<.002&&(e.driftAngle=Math.random()*Math.PI*2)}updateTerritorialMovement(e,t){let n=e.territoryX||e.baseX,r=e.territoryY||e.baseY,i=e.territoryRadius||70,a=Math.sqrt((e.currentX-n)**2+(e.currentY-r)**2);if(a>i){let t=(a-i)/i*2e-4*this.config.territoryStrength/.1,o=Math.atan2(r-e.currentY,n-e.currentX);e.velocityX+=Math.cos(o)*t,e.velocityY+=Math.sin(o)*t}e.velocityX+=(Math.random()-.5)*.003,e.velocityY+=(Math.random()-.5)*.003,t%45<.1&&(e.territoryX=Math.max(this.PHYSICS_MIN+35,Math.min(this.PHYSICS_MAX-35,n+(Math.random()-.5)*35)),e.territoryY=Math.max(this.PHYSICS_MIN+35,Math.min(this.PHYSICS_MAX-35,r+(Math.random()-.5)*35)))}addEscapeVelocity(e){if(e.lastRepulsionTime&&Date.now()-e.lastRepulsionTime<3e3){let t=Math.random()*Math.PI*2;e.velocityX+=Math.cos(t)*.01,e.velocityY+=Math.sin(t)*.01}}updateSafeOrganicDeformation(e,t){!e.controlPoints||!e.controlVelocities||(this.config.useSpringSystem?this.updateSpringDeformation(e,t):this.updateSinusoidalDeformation(e,t),this.config.useGaussianSmoothing?this.gaussianKernel.convolve(e.controlPoints):this.smoothControlPoints(e))}updateSpringDeformation(e,t){if(!e.controlPoints||!e.controlVelocities)return;let n=Math.sqrt(e.velocityX*e.velocityX+e.velocityY*e.velocityY),r=Math.atan2(e.velocityY,e.velocityX),i=e.controlPoints.map(e=>-Math.cos(e.angle-r)*n*.5);if(e.chaosLevel&&e.chaosLevel>.01)for(let t=0;t<i.length;t++)i[t]+=(Math.random()-.5)*e.chaosLevel*.3;this.springSystem.updateAllControlPoints(e.controlPoints,e.controlVelocities,i,.016);for(let t=0;t<e.controlPoints.length;t++){let n=e.controlVelocities[t];n.angularVelocity+=(Math.random()-.5)*2e-5,n.angularVelocity*=.998,n.angularVelocity=Math.max(-6e-4,Math.min(6e-4,n.angularVelocity)),e.controlPoints[t].angle+=n.angularVelocity}e.chaosLevel&&(e.chaosLevel*=e.turbulenceDecay||.985)}updateSinusoidalDeformation(e,t){!e.controlPoints||!e.controlVelocities||e.controlPoints.forEach((n,r)=>{let i=t*.15*this.config.deformationSpeed/.5+r*.4+e.phase,a=Math.sin(i)*.02,o=n.baseRadius*.85,s=n.baseRadius*1.15,c=n.baseRadius*(1+a);n.targetRadius=Math.max(o,Math.min(s,c));let l=n.targetRadius-n.radius;n.radius+=l*.008,e.controlVelocities&&e.controlVelocities[r]&&(e.controlVelocities[r].angularVelocity+=(Math.random()-.5)*3e-5,e.controlVelocities[r].angularVelocity*=.999,e.controlVelocities[r].angularVelocity=Math.max(-8e-4,Math.min(8e-4,e.controlVelocities[r].angularVelocity)),n.angle+=e.controlVelocities[r].angularVelocity)})}smoothControlPoints(e){if(!e.controlPoints||e.controlPoints.length<3)return;let t=e.controlPoints,n=this.controlRadiusScratch,r=t.length;for(let e=0;e<r;e++)n[e]=t[e].radius;for(let i=0;i<r;i++){let a=t[i],o=n[(i-1+r)%r],s=n[i],c=n[(i+1)%r],l=(o+s+c)/3;a.radius=s*.95+l*.05;let u=e.size*.1,d=(o+c)*.5,f=a.radius-d,p=Math.abs(f)-u;p>0&&(a.radius-=f>0?p*.5:-p*.5)}}applyScrollEffect(e){let t=this.scrollStickiness*e.scrollAffinity
4*2e-4;e.velocityX+=(this.mouseX-e.currentX)*t,e.velocityY+=(this.mouseY-e.currentY)*t,this.scrollStickiness>.15&&(e.chaosLevel=Math.min((e.chaosLevel||0)+this.scrollStickiness*.02,.15))}handleWallBouncing(e){let t=e.size*.8,n=this.config.bounceDamping,r=Date.now();e.currentX<this.PHYSICS_MIN+t&&(e.currentX=this.PHYSICS_MIN+t,e.velocityX=Math.abs(e.velocityX)*n,this.recordBounce(e,r)),e.currentX>this.PHYSICS_MAX-t&&(e.currentX=this.PHYSICS_MAX-t,e.velocityX=-Math.abs(e.velocityX)*n,this.recordBounce(e,r)),e.currentY<this.PHYSICS_MIN+t*1.5&&(e.currentY=this.PHYSICS_MIN+t*1.5,e.velocityY=Math.abs(e.velocityY)*n,this.recordBounce(e,r)),e.currentY>this.PHYSICS_MAX-t*1.5&&(e.currentY=this.PHYSICS_MAX-t*1.5,e.velocityY=-Math.abs(e.velocityY)*n,this.recordBounce(e,r))}recordBounce(e,t){e.wallBounceCount=(e.wallBounceCount||0)+1,e.lastBounceTime=t,e.velocityX+=(Math.random()-.5)*.05,e.velocityY+=(Math.random()-.5)*.05,e.driftAngle=Math.random()*Math.PI*2,e.controlPoints&&(e.chaosLevel=Math.min((e.chaosLevel||0)+.04,.15))}generateConvexHull(e){if(e.length<3)return e;let t=e.length*2,n=0,r=[],i=e[0],a=0;for(let t=0;t<e.length;t++){let n=e[t];(n.y<i.y||n.y===i.y&&n.x<i.x)&&(i=n,a=t)}let o=a;do{r.push(e[o]);let t=0;for(let n=0;n<e.length;n++)(t===o||this.isLeftTurn(e[o],e[t],e[n]))&&(t=n);o=t,n++}while(o!==a&&r.length<e.length&&n<t);return r}isLeftTurn(e,t,n){return(t.x-e.x)*(n.y-e.y)-(t.y-e.y)*(n.x-e.x)>0}},Tt=e=>1/(2*Math.PI*e),Et=(e,t)=>1/(1+Tt(e)/t),Dt=class{y;filter(e,t){return this.y=this.y===void 0?e:t*e+(1-t)*this.y,this.y}reset(){this.y=void 0}},Ot=class{constructor(e){if(this.p=e,e.minCutoff<=0||e.dCutoff<=0)throw RangeError(`OneEuro: minCutoff and dCutoff must be > 0`)}x=new Dt;dx=new Dt;prevX;prevT;filter(e,t){if(this.prevT===void 0||this.prevX===void 0)return this.prevT=t,this.prevX=e,this.x.filter(e,1);let n=Math.max(.001,(t-this.prevT)/1e3),r=(e-this.prevX)/n,i=this.dx.filter(r,Et(this.p.dCutoff,n)),a=this.p.minCutoff+this.p.beta*Math.abs(i),o=this.x.filter(e,Et(a,n));return this.prevX=e,this.prevT=t,o}reset(){this.x.reset(),this.dx.reset(),this.prevX=this.prevT=void 0}},kt={oneEuroMinCutoff:.5,oneEuroBeta:.01,oneEuroDCutoff:1,baselineAlpha:8e-4,warmupMs:250,faceDownThreshold:120,staleEventMs:2e3,idleResetMs:2e3,range:45,calibrationSamples:8,deadZone:.015};function At(e,t,n){switch(n){case 90:return[e,-t];case 180:return[-t,-e];case 270:return[-e,t];default:return[t,e]}}function jt(e,t=-1,n=1){return Math.max(t,Math.min(n,e))}function Mt(e,t){return Math.abs(e)<t?0:e}function Nt(){if(typeof window>`u`)return null;let e=window.DeviceOrientationEvent,t=e?.requestPermission;return typeof t==`function`?t.bind(e):null}function Pt(){return typeof window>`u`?`unsupported`:window.isSecureContext?`DeviceOrientationEvent`in window?`unknown`:`unsupported`:`insecure`}function Ft(){return Nt()!==null}function It(){return typeof screen>`u`?0:screen.orientation?.angle??0}function Lt(e,t){if(typeof e.addEventListener==`function`){e.addEventListener(`change`,t);return}e.addListener?.(t)}function Rt(e,t){if(typeof e.removeEventListener==`function`){e.removeEventListener(`change`,t);return}e.removeListener?.(t)}var zt=class{callback;opts;filterX;filterY;permissionState=`unknown`;isListening=!1;disposed=!1;listenerStartedAt=0;lastEventAt=0;baseX=0;baseY=0;lastScreen=null;calibrationRemaining=0;calibrationTargetSamples=0;calibrationTotalX=0;calibrationTotalY=0;boundOrientation=null;boundVisibility=null;reducedMotionMql=null;reducedMotionListener=null;blockedByReducedMotion=!1;idleResetTimer=null;constructor(e,t={}){this.callback=e,this.opts={...kt,...t};let n={minCutoff:this.opts.oneEuroMinCutoff,beta:this.opts.oneEuroBeta,dCutoff:this.opts.oneEuroDCutoff};this.filterX=new Ot(n),this.filterY=new Ot(n)}async initialize(){return this.detectSupport()?(this.observeReducedMotion(),this.prefersReducedMotion()?(this.blockedByReducedMotion=!0,this.permissionState=`denied`,this.stopListening(),!1):Nt()?(this.permissionState=`prompt`,!1):(this.permissionState=`granted`,this.startListening(),!0)):!1}async requestPermission(){if(!this.detectSupport())return!1;if(this.observeReducedMotion(),this.prefersReducedMotion())return this.blockedByReducedMotion=!0,this.permissionState=`denied`,this.stopListening(),!1;let e=Nt();if(e){this.permissionState=`prompt`;try{this.permissionState=await e()}catch{this.permissionState=`denied`}}else this.permissionState=`granted`;return this.disposed?(this.stopListening(),!1):this.prefersReducedMotion()?(this.blockedByReducedMotion=!0,this.stopListening(),this.resetFilterState(),this.emitNeutral(),!1):this.permissionState===`granted`?(this.startListening(),!0):(this.stopListening(),!1)}calibrate(e=this.opts.calibrationSamples){let t=Math.max(0,Math.floor(e));if(this.resetFilterState({resetWarmup:!1}),t===0){this.lastScreen&&(this.baseX=this.lastScreen.x,this.baseY=this.lastScreen.y),this.calibrationRemaining=0;return}this.calibrationRemaining=t,this.calibrationTargetSamples=t,this.calibrationTotalX=0,this.calibrationTotalY=0}getPermissionState(){return this.permissionState}isActive(){return this.isListening}cleanup(){this.disposed=!0,this.stopListening(),this.reducedMotionMql&&this.reducedMotionListener&&Rt(this.reducedMotionMql,this.reducedMotionListener),this.reducedMotionMql=null,this.reducedMotionListener=null,this.blockedByReducedMotion=!1,this.resetFilterState()}detectSupport(){if(this.disposed)return!1;let e=Pt();return e===`unknown`||(this.permissionState=e,!1)}observeReducedMotion(){this.reducedMotionMql||typeof window>`u`||(this.reducedMotionMql=window.matchMedia?.(`(prefers-reduced-motion: reduce)`)??null,this.reducedMotionListener=()=>{if(!this.disposed&&this.reducedMotionMql){if(this.reducedMotionMql.matches){this.blockedByReducedMotion=!0,this.stopListening(),this.resetFilterState(),this.emitNeutral();return}if(this.blockedByReducedMotion){if(this.blockedByReducedMotion=!1,this.permissionState===`granted`||!Nt()){this.permissionState=`granted`,this.startListening();return}this.permissionState=`prompt`;return}this.permissionState===`granted`&&this.startListening()}},this.reducedMotionMql&&Lt(this.reducedMotionMql,this.reducedMotionListener))}prefersReducedMotion(){return this.reducedMotionMql?.matches??!1}startListening(){this.disposed||this.isListening||typeof window>`u`||(this.boundOrientation=e=>this.handleOrientation(e),window.addEventListener(`deviceorientation`,this.boundOrientation,{passive:!0}),this.boundVisibility=()=>
4{document.hidden&&(this.resetFilterState(),this.emitNeutral())},document.addEventListener(`visibilitychange`,this.boundVisibility),this.listenerStartedAt=this.now(),this.lastEventAt=0,this.isListening=!0,this.armIdleReset())}stopListening(){this.isListening&&=(this.clearIdleReset(),this.boundOrientation&&=(window.removeEventListener(`deviceorientation`,this.boundOrientation),null),this.boundVisibility&&=(document.removeEventListener(`visibilitychange`,this.boundVisibility),null),!1)}handleOrientation(e){if(this.disposed||e.beta==null||e.gamma==null)return;let t=this.now();if(t-this.listenerStartedAt<this.opts.warmupMs)return;if(this.lastEventAt>0&&t-this.lastEventAt>this.opts.staleEventMs){this.resetFilterState(),this.listenerStartedAt=t,this.lastEventAt=t,this.emitNeutral(),this.armIdleReset();return}if(this.lastEventAt=t,Math.abs(e.beta)>this.opts.faceDownThreshold){this.emitNeutral(),this.armIdleReset();return}let[n,r]=At(e.beta,e.gamma,It());if(this.lastScreen={x:n,y:r},!this.consumeCalibrationSample(n,r)){this.armIdleReset();return}let i=this.opts.baselineAlpha;this.baseX+=i*(n-this.baseX),this.baseY+=i*(r-this.baseY);let a=(n-this.baseX)/this.opts.range,o=(r-this.baseY)/this.opts.range,s=this.filterX.filter(a,t),c=this.filterY.filter(o,t);this.callback({x:Mt(jt(s),this.opts.deadZone),y:Mt(jt(c),this.opts.deadZone),z:0}),this.armIdleReset()}consumeCalibrationSample(e,t){if(this.calibrationRemaining<=0)return!0;if(this.calibrationTotalX+=e,this.calibrationTotalY+=t,--this.calibrationRemaining,this.calibrationRemaining>0)return!1;let n=Math.max(1,this.calibrationTargetSamples);return this.baseX=this.calibrationTotalX/n,this.baseY=this.calibrationTotalY/n,this.calibrationTotalX=0,this.calibrationTotalY=0,this.resetFilterState({resetWarmup:!1}),!1}resetFilterState({resetWarmup:e=!0}={}){this.filterX.reset(),this.filterY.reset(),e&&(this.listenerStartedAt=this.now()),this.lastEventAt=0}emitNeutral(){this.callback({x:0,y:0,z:0})}armIdleReset(){this.clearIdleReset(),!(!this.isListening||this.opts.idleResetMs<=0)&&(this.idleResetTimer=setTimeout(()=>{this.idleResetTimer=null,!this.disposed&&this.isListening&&(this.resetFilterState({resetWarmup:!1}),this.emitNeutral())},this.opts.idleResetMs),this.idleResetTimer.unref?.())}clearIdleReset(){this.idleResetTimer!==null&&(clearTimeout(this.idleResetTimer),this.idleResetTimer=null)}now(){return typeof performance<`u`?performance.now():Date.now()}},Bt={min:0,max:100},Vt=e=>Math.max(0,Math.min(1,e));function Ht(e,t,n,r=Bt){if(n.width<=0||n.height<=0)return{x:(r.min+r.max)/2,y:(r.min+r.max)/2};let i=r.max-r.min,a=Vt((e-n.left)/n.width),o=Vt((t-n.top)/n.height);return{x:r.min+a*i,y:r.min+o*i}}function Ut(e){let t=typeof e.getCoalescedEvents==`function`?e.getCoalescedEvents():[];return t.length>0?t[t.length-1]:e}function Wt(e=globalThis){return typeof e.PointerEvent<`u`||(e.navigator?.maxTouchPoints??0)>0||e.matchMedia?.(`(pointer: fine), (pointer: coarse)`).matches?!0:typeof e.MouseEvent<`u`}function Gt(e){let t=e?(e.min+e.max)/2:50;return{x:t,y:t}}function Kt(e){let t=e.requestFrame??requestAnimationFrame,n=e.cancelFrame??cancelAnimationFrame,r=e.supportsPointerEvents??typeof PointerEvent<`u`,i=r?`pointermove`:`mousemove`,a=r?`pointerout`:`mouseout`,o=r?`pointercancel`:null,s=null,c=null,l=!1,u=()=>{s=null,!l&&c&&(e.updatePosition(c),c=null)},d=()=>{s!==null&&(n(s),s=null),c=null,e.updatePosition(Gt(e.range))},f=n=>{if(l)return;let r=Ut(n);c=Ht(r.clientX,r.clientY,e.getBounds(),e.range),s===null&&(s=t(u))},p=e=>{l||e.relatedTarget||d()},m=()=>{l||d()};return e.target.addEventListener(i,f,{passive:!0}),e.target.addEventListener(a,p,{passive:!0}),o&&e.target.addEventListener(o,m),e.target.addEventListener(`blur`,m),{eventName:i,exitEventName:a,cancelEventName:o,flush:u,dispose(){l||(l=!0,e.target.removeEventListener(i,f),e.target.removeEventListener(a,p),o&&e.target.removeEventListener(o,m),e.target.removeEventListener(`blur`,m),s!==null&&(n(s),s=null),c=null)}}}var qt=class{stickiness=0;lastScrollTime=0;scrollVelocity=0;decayRate=.92;totalScrollDistance=0;scrollStartTime=0;isScrolling=!1;scrollDirection=0;pullForces=[];peakVelocity=0;decayFrame=null;scrollEndTimer=null;disposed=!1;maxForces=null;constructor(e){e?.decayRate&&(this.decayRate=e.decayRate),typeof e?.maxForces==`number`&&(this.maxForces=Math.max(0,Math.floor(e.maxForces
4)))}handleScroll(e){if(this.disposed)return;let t=Date.now(),n=t-this.lastScrollTime;this.scrollDirection=e.deltaY>0?1:-1,(!this.isScrolling||n>200)&&(this.isScrolling=!0,this.scrollStartTime=t,this.totalScrollDistance=0,this.peakVelocity=0),this.totalScrollDistance+=Math.abs(e.deltaY);let r=Math.abs(e.deltaY)/Math.max(n,16);this.peakVelocity=Math.max(this.peakVelocity,r),this.scrollVelocity=this.scrollVelocity*.7+r*.3;let i=Math.min(this.scrollVelocity/1.5,2),a=Math.min(this.totalScrollDistance/400,2.5),o=i*a>2||i>1.2&&a>1,s=Math.max(i,a*.9);o&&(s=Math.min(s*1.8,4)),this.stickiness=Math.max(this.stickiness,s),(i>.3||a>.3||o)&&this.generatePullForce(i,a,this.scrollDirection,o),this.lastScrollTime=t,this.startDecay(),this.scheduleScrollEnd()}scheduleScrollEnd(){this.scrollEndTimer!==null&&clearTimeout(this.scrollEndTimer),this.scrollEndTimer=setTimeout(()=>{this.scrollEndTimer=null,Date.now()-this.lastScrollTime>=200&&(this.isScrolling=!1,this.totalScrollDistance=0,this.peakVelocity=0)},200)}generatePullForce(e,t,n,r){if(n<=0||e>.4||t>.4||r){let n=e+t*.7;n=r?Math.min(n*2.5,8):Math.min(n,3);let i=r?.6+Math.random()*.4:.4+Math.random()*.5;this.pullForces.push({strength:n,time:0,randomness:i,explosive:r});let a=this.maxForces??(r?10:8);this.pullForces.length>a&&this.pullForces.splice(0,this.pullForces.length-a)}}startDecay(){if(this.decayFrame!==null)return;let e=()=>{this.decayFrame=null,!this.disposed&&(this.stickiness*=this.decayRate,this.scrollVelocity*=this.decayRate,this.pullForces=this.pullForces.filter(e=>{e.time+=.016;let t=e.explosive?3.5:2;return e.time<t}).map(e=>({...e,strength:e.strength*(e.explosive?.995:.98)})),this.stickiness>.01||this.pullForces.length>0?this.decayFrame=requestAnimationFrame(e):(this.stickiness=0,this.scrollVelocity=0))};this.decayFrame=requestAnimationFrame(e)}getStickiness(){return this.stickiness}getScrollVelocity(){return this.scrollVelocity}getTotalScrollDistance(){return this.totalScrollDistance}getPullForces(){return this.pullForces}getScrollDirection(){return this.scrollDirection}isActivelyScrolling(){return this.isScrolling}getPeakVelocity(){return this.peakVelocity}dispose(){this.disposed=!0,this.decayFrame!==null&&(cancelAnimationFrame(this.decayFrame),this.decayFrame=null),this.scrollEndTimer!==null&&(clearTimeout(this.scrollEndTimer),this.scrollEndTimer=null),this.stickiness=0,this.scrollVelocity=0,this.totalScrollDistance=0,this.peakVelocity=0,this.isScrolling=!1,this.pullForces=[]}};function Jt(e){if(typeof matchMedia!=`function`)return()=>{};let t=matchMedia(`(prefers-reduced-motion: reduce)`),n=()=>e(t.matches);return t.addEventListener(`change`,n),n(),()=>{t.removeEventListener(`change`,n)}}var Yt=class{elementIntersecting=!0;observer=null;disposed=!1;onChange;boundVisibilityChange;constructor(e,t){this.onChange=t.onChange,this.boundVisibilityChange=()=>this.notify(),typeof document<`u`&&(document.addEventListener(`visibilitychange`,this.boundVisibilityChange),e&&typeof IntersectionObserver<`u`&&(this.observer=new IntersectionObserver(e=>{let t=e[e.length-1];t&&(this.elementIntersecting=t.isIntersecting,this.notify())},{threshold:t.threshold??0,rootMargin:t.rootMargin??`10%`}),this.observer.observe(e)))}isVisible(){return!(typeof document<`u`&&document.hidden)&&this.elementIntersecting}notify(){this.disposed||this.onChange(this.isVisible())}dispose(){this.disposed||(this.disposed=!0,typeof document<`u`&&document.removeEventListener(`visibilitychange`,this.boundVisibilityChange),this.observer?.disconnect(),this.observer=null)}},Xt={tinyland:[`rgba(139,92,246,.55)`,`rgba(59,130,246,.55)`,`rgba(236,72,153,.50)`,`rgba(242,242,245,.45)`],trans:[`rgba(91,206,250,.60)`,`rgba(245,169,184,.65)`,`rgba(242,242,245,.50)`,`rgba(170,225,250,.55)`,`rgba(160,190,255,.65)`,`rgba(250,200,210,.55)`,`rgba(255,160,220,.65)`,`rgba(220,220,255,.55)`],pride:[`rgba(228,3,3,.55)`,`rgba(255,140,0,.55)`,`rgba(255,237,0,.55)`,`rgba(0,128,38,.55)`,`rgba(36,64,142,.55)`,`rgba(115,41,130,.55)`],"high-contrast":[],custom:[]},Zt=p(`<div aria-hidden="true" role="presentation"><!></div>`);function Qt(e,t){M(t,!0);let n=C(t,`theme`,3,`tinyland`),i=C(t,`colors`,19,()=>[]),a=C(t,`animated`,3,!0),o=C(t,`opacity`,3,1),s=C(t,`shouldLoad`,3,!0),c=C(t,`blobCount`,3,8),l=C(t,`physicsConfig`,19,()=>({})),d=C(t,`enableDeviceMotion`,3,!0),p=C(t,`enableScrollPhysics`,3,!0),m=C(t,`enablePointerPhysics`,3,!0),h=C(t,`deviceMotionStrength`,3,.8),g=C(t,`deviceMotionCalibrationSamples`,3,8),_=C(t,`deviceMotionIdleResetMs`,3,2e3),v=C(t,`isDark`,3,null),b=C(t,`respectReducedMotion`,3,!0),T=B(void 0),k=B(te([])),A=
4B(!1),P=B(!1),I=B(!0),L=B(null),R=null,z=0,H=null,ne=null,re=null,U=D(()=>i().length>0?i():Xt[n()]??[]),W=D(()=>a()&&!(b()&&y(P))&&y(I)),ie=()=>ot&&Pt()===`unknown`,ae=()=>new zt(oe,{calibrationSamples:g(),deadZone:.015,idleResetMs:_()}),oe=e=>{y(L)&&(t.onDeviceMotion?.(e),y(L).setGravity({x:e.x*h(),y:e.y*h()}),y(L).setTilt(e))};async function se(){return!ot||!d()||!y(L)||!ie()?!1:(H??=ae(),await H.requestPermission())}function ce(e){H?.calibrate(e)}function le(){let e=Pt(),t=H?.getPermissionState()??e;return{enabled:d(),supported:e!==`unsupported`&&e!==`insecure`,requiresPermission:ot&&Ft(),permissionState:t,active:H?.isActive()??!1}}let ue=e=>{if(!ne||!y(L))return;ne.handleScroll(e);let t=ne.getStickiness()*.12;y(L).setScrollStickiness(t)},de=()=>{let e=y(T)?.getBoundingClientRect();return e&&e.width>0&&e.height>0?{left:e.left,top:e.top,width:e.width,height:e.height}:{left:0,top:0,width:window.innerWidth||1,height:window.innerHeight||1}};function fe(e){let t=Math.min((e-z)/1e3,.033);z=e,y(L)&&(y(L).tick(t,e/1e3),w(k,y(L).getBlobs(y(U)),!0)),R=requestAnimationFrame(fe)}function pe(){R||=(z=performance.now(),requestAnimationFrame(fe))}function me(){R&&=(cancelAnimationFrame(R),null)}x(()=>{if(!ot||!s())return;let e=!1,t=d(),n=p(),r=m(),i=!1;return u(()=>{let a=new wt(c(),l());w(L,a,!0),a.init().then(()=>{if(e||y(L)!==a)return;let r=ie();w(A,!0),t&&r&&(H||(H=ae(),H.initialize())),n&&(ne=new qt),y(W)?pe():y(L)&&w(k,y(L).getBlobs(y(U)),!0)}),n&&(window.addEventListener(`wheel`,ue,{passive:!0}),i=!0),r&&Wt(window)&&(re=Kt({target:window,getBounds:de,supportsPointerEvents:`PointerEvent`in
4window,updatePosition(e){y(L)?.updateMousePosition(e.x,e.y)}}))}),()=>{e=!0,me(),i&&window.removeEventListener(`wheel`,ue),re?.dispose(),re=null,H?.cleanup(),H=null,ne?.dispose(),ne=null,y(L)?.dispose(),w(L,null),w(A,!1),w(k,[],!0)}}),x(()=>{y(A)&&(y(W)?pe():(y(L)&&w(k,y(L).getBlobs(y(U)),!0),me()))}),x(()=>{if(!ot||!s())return;let e=Jt(e=>{w(P,e,!0)});return()=>{e()}}),x(()=>{if(!ot)return;let e=new Yt(y(T),{onChange:e=>{w(I,e,!0)}});return w(I,e.isVisible(),!0),()=>{e.dispose()}});var he={requestDeviceMotionPermission:se,calibrateDeviceMotion:ce,getDeviceMotionStatus:le},ge=f(),_e=V(ge),ve=e=>{var t=Zt();let n;ft(O(t),{get blobs(){return y(k)},get physics(){return y(L)},get isDark(){return v()}}),E(t),ee(t,e=>w(T,e),()=>y(T)),S(()=>n=j(t,``,n,{position:`absolute`,inset:`0`,width:`100%`,height:`100%`,overflow:`hidden`,"pointer-events":`none`,opacity:o(),transition:`opacity 0.8s ease-in-out`})),N(e,t)};return r(_e,e=>{s()&&y(U).length>0&&e(ve)}),N(e,ge),F(he)}var $t=p(`<div class="brand-vectors svelte-jc50u9" aria-hidden="true" data-testid="brand-vectors-bg"><!></div>`);function en(e,t){M(t,!0);let n=B(!1);R(()=>{if(typeof window.requestIdleCallback==`function`){let e=window.requestIdleCallback(()=>{w(n,!0)},{timeout:800});return()=>window.cancelIdleCallback(e)}let e=window.setTimeout(()=>{w(n,!0)},0);return()=>window.clearTimeout(e)});var i=f(),a=V(i),o=e=>{var t=$t();Qt(O(t),{theme:`custom`,colors:[`var(--color-primary-400)`,`var(--color-primary-500)`,`var(--color-secondary-500)`,`var(--color-tertiary-300)`,`var(--color-surface-400)`],opacity:.14,blobCount:5,enableScrollPhysics:!0,enablePointerPhysics:!1,enableDeviceMotion:!1,respectReducedMotion:!0}),E(t),N(e,t)};r(a,e=>{y(n)&&e(o)}),N(e,i),F()}var tn=p(`<div class="saturn-crest" aria-hidden="true" data-testid="saturn-crest"><div class="saturn-crest__pulse"><!> <!> <!></div></div> <div class="saturn-interstitial" aria-hidden="true" data-saturn-interstitial="" data-testid="saturn-interstitial"><!></div>`,1);function nn(e,t){M(t,!0),R(()=>{let e=document.documentElement,t=document.querySelector(`[data-saturn-interstitial]`),n=window.matchMedia(`(prefers-reduced-motion: reduce)`),r=window.matchMedia(`(forced-colors: active)`),i=0,a=!1,o=t=>{a||(a=!0,window.clearTimeout(i),e.classList.remove(`saturn-intro-armed`,`saturn-intro-live`),e.dataset.saturnIntro=t)};if(!t||!e.classList.contains(`saturn-intro-armed`)||n.matches||r.matches){o(`skipped`);return}let s=()=>o(`cancelled`),c=e=>{e.target===t&&e.animationName===`saturn-interstitial-lift`&&o(`done`)},l=e=>{e.matches&&s()},u=[`wheel`,`touchstart`,`pointerdown`,`keydown`];for(let e of u)window.addEventListener(e,s,{capture:!0,passive:!0});return t.addEventListener(`animationend`,c),n.addEventListener(`change`,l),r.addEventListener(`change`,l),e.dataset.saturnIntro=`active`,e.classList.add(`saturn-intro-live`),i=window.setTimeout(()=>o(`done`),3200),()=>{window.clearTimeout(i);for(let e of u)window.removeEventListener(e,s,{capture:!0});t.removeEventListener(`animationend`,c),n.removeEventListener(`change`,l),r.removeEventListener(`change`,l),e.classList.remove(`saturn-intro-armed`,`saturn-intro-live`)}});var n=tn(),r=V(n),i=O(r),a=O(i);oe(a,{decorative:!0,class:`saturn-crest__stroke saturn-crest__highlight`});var o=I(a,2);oe(o,{decorative:!0,class:`saturn-crest__stroke saturn-crest__shadow`});var s=I(o,2);oe(s,{decorative:!0,class:`saturn-crest__stroke saturn-crest__face`}),E(i),E(r);var c=I(r,2),l=O(c);oe(l,{decorative:!0,class:`saturn-interstitial__mark`}),E(c),N(e,n),F()}var rn=p(`<meta name="keywords"/>`),an=p(`<meta property="og:image"/> <meta property="og:image:alt"/>`,1),on=p(`<meta name="twitter:image"/> <meta name="twitter:image:alt"/>`,1),sn=p(`<meta name="robots" content="noindex, nofollow"/>`),cn=p(`<meta name="robots" content="index, follow"/>`),ln=p(`<meta name="description"/> <!> <link rel="canonical"/> <meta property="og:type"/> <meta property="og:url"/> <meta property="og:title"/> <meta property="og:description"/> <!> <meta property="og:site_name"/> <meta name="twitter:card" content="summary_large_image"/> <meta name="twitter:title"/> <meta name="twitter:description"/> <!> <!> <!>`,1);function un(t,n){M(n,!0);let i=C(n,`keywords`,3,``),a=C(n,`image`,3,``),o=C(n,`imageAlt`,3,``),s=C(n,`noindex`,3,!1),c=C(n,`canonical`,3,void 0),u=C(n,`ogType`,3,`website`),d=C(n,`siteName`,3,`xoxd.ai`),p=C(n,`origin`,3,`https://xoxd.ai`),m=C(n,`jsonLd`,3,null),h=D(()=>c()||`${p()}${ae.url.pathname}`),g=D(s),_=D(()=>{let e=y(h);try{let t=new URL(e),n=t.pathname;
4return n!==`/`&&n.endsWith(`/`)?n=n.slice(0,-1):n===`/`&&(n=``),`${t.protocol}//${t.host}${n}${t.search}`}catch{return e.replace(/\/$/,``)}}),v=D(()=>m()?JSON.stringify(m()).replace(/</g,`\\u003c`):null);T(`1qasyfb`,t=>{var s=ln(),c=V(s),p=I(c,2),m=e=>{var t=rn();S(()=>k(t,`content`,i())),N(e,t)};r(p,e=>{i()&&e(m)});var h=I(p,2),b=I(h,2),x=I(b,2),C=I(x,2),w=I(C,2),T=I(w,2),E=e=>{var t=an(),n=V(t),r=I(n,2);S(()=>{k(n,`content`,a()),k(r,`content`,o())}),N(e,t)};r(T,e=>{a()&&e(E)});var ee=I(T,2),D=I(ee,4),O=I(D,2),A=I(O,2),j=e=>{var t=on(),n=V(t),r=I(n,2);S(()=>{k(n,`content`,a()),k(r,`content`,o())}),N(e,t)};r(A,e=>{a()&&e(j)});var M=I(A,2),P=e=>{var t=sn();N(e,t)},F=e=>{var t=cn();N(e,t)};r(M,e=>{y(g)?e(P):e(F,-1)});var L=I(M,2),R=e=>{var t=f(),n=V(t);ne(n,()=>`<script type="application/ld+json">${y(v)}<\/script>`),N(e,t)};r(L,e=>{y(v)&&e(R)}),S(()=>{k(c,`content`,n.description),k(h,`href`,y(_)),k(b,`content`,u()),k(x,`content`,y(_)),k(C,`content`,n.title),k(w,`content`,n.description),k(ee,`content`,d()),k(D,`content`,n.title),k(O,`content`,n.description)}),l(()=>{e.title=n.title??``}),N(t,s)}),F()}var dn=new Set([`ip`,`loc`]);function fn(e){let t=new Map;for(let n of e.split(/\r?\n/u)){let e=n.indexOf(`=`);if(e<=0)continue;let r=n.slice(0,e),i=n.slice(e+1).trim();dn.has(r)&&i&&t.set(r,i)}let n=t.get(`ip`),r=t.get(`loc`);return!n||!r||!/^[A-Z]{2}$/u.test(r)?null:{ip:n,countryCode:r}}function pn(e){for(let[t,n]of[[/Edg\/([\d.]+)/u,`Edge`],[/OPR\/([\d.]+)/u,`Opera`],[/Firefox\/([\d.]+)/u,`Firefox`],[/CriOS\/([\d.]+)/u,`Chrome`],[/Chrome\/([\d.]+)/u,`Chrome`],[/Version\/([\d.]+).*Safari\//u,`Safari`]]){let r=e.match(t);if(r?.[1])return`${n} ${r[1].split(`.`)[0]}`}return`Browser unavailable`}function mn(e){try{return new Intl.DisplayNames([`en`],{type:`region`}).of(e)??e}catch{return e}}var hn=p(`<section class="site-footer__group space-y-2" aria-labelledby="visitor-details-heading"><h2 id="visitor-details-heading" class="font-mono">Your connection</h2> <dl class="grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-surface-500">IP</dt> <dd class="min-w-0 break-all font-mono"> </dd> <dt class="text-surface-500">Approx. location</dt> <dd> </dd> <dt class="text-surface-500">Browser</dt> <dd> </dd></dl> <p class="text-surface-500 max-w-sm text-[0.7rem] leading-relaxed">IP and country come from Cloudflare request metadata. Browser details stay in this page. No third-party location 5 lookup.</p></section>`);function gn(e,t){M(t,!0);let n=B(`unavailable`),r=B(``),i=B(``),a=B(`Browser unavailable`);R(()=>{w(n,`loading`),w(a,pn(navigator.userAgent),!0);let e=new AbortController,t=window.setTimeout(()=>e.abort(),5e3);return fetch(`/cdn-cgi/trace`,{cache:`no-store`,credentials:`omit`,referrerPolicy:`no-referrer`,signal:e.signal}).then(e=>{if(!e.ok)throw Error(`trace request returned ${e.status}`);return e.text()}).then(e=>{let t=fn(e);if(!t)throw Error(`trace response did not contain visitor details`);w(r,t.ip,!0),w(i,mn(t.countryCode),!0),w(n,`ready`)}).catch(()=>{w(n,`unavailable`)}).finally(()=>window.clearTimeout(t)),()=>{window.clearTimeout(t),e.abort()}});var o=hn(),s=I(O(o),2),c=I(O(s),2),l=O(c,!0);E(c);var u=I(c,4),d=O(u,!0);E(u);var f=I(u,4),p=O(f,!0);E(f),E(s),W(2),E(o),S(()=>{P(l,y(n)===`loading`?`Detectingâ¦`:y(n)===`ready`?y(r):`Unavailable`),P(d,y(n)===`loading`?`Detectingâ¦`:y(n)===`ready`?y(i):`Unavailable`),P(p,y(a))}),N(e,o),F()}function _n(e,t=Object.is){let n={...e},r=new Set,i=e=>(r.add(e),()=>r.delete(e)),a=()=>{r.forEach(e=>e())};return{subscribe:i,get:e=>n[e],set:(e,r)=>{t(n[e],r)||(n[e]=r,a())},update:e=>{let r=!1;for(let i in e){let a=e[i];a!==void 0&&!t(n[i],a)&&(n[i]=a,r=!0)}r&&a()},snapshot:()=>({...n})}}function vn(e){return e==null?null:typeof e==`function`?e():e}function yn(e,t,n){if(!t)return null;let r=Ue(e.ownerDocument.body,{getShadowRoot:n}),i=r.indexOf(t);if(i===-1)return null;for(let t=i+1;t<r.length;t++){let n=r[t];if(!ue(e,n))return n}return null}function bn(e,t={}){let{triggerElement:n,onFocus:r,onFocusEnter:i,getShadowRoot:a}=t,o=(vn(e)??vn(n))?.ownerDocument||document;function s(t){if(t.key!==`Tab`)return;let o=vn(e),s=vn(n);if(!o)return;let[c,l]=Ze(o,{includeContainer:!0,getShadowRoot:a}),u=!c&&!l,d=null;if(t.shiftKey&&(De(c)||u))d=s;else if(!t.shiftKey&&De(s))i?.(),d=c;else if(!t.shiftKey&&(De(l)||u))d=yn(o,s,a);else if(t.shiftKey){let e=yn(o,s,a);De(e)&&(i?.(),d=l)}d&&(t.preventDefault(),typeof r==`function`?r(d):d.focus())}return Ie(o,`keydown`,s,!0)}function xn(e,t){let{defer:n,...r}=t,i=n?Oe:e=>e(),a=[];return a.push(i(()=>{a.push(bn(e,r))}
vendor: 5,803 bytes, line 5
5)),()=>{a.forEach(e=>e?.())}}function Sn(e,t={}){function n(t={}){let{container:n,disabled:r,getRootNode:i}=t;if(r)return;let a=i?.().ownerDocument??document;(n??a.body).appendChild(e)}return n(t),{destroy:()=>e.remove(),update:n}}var Cn=[`top`,`right`,`bottom`,`left`],wn=Math.min,q=Math.max,Tn=Math.round,En=Math.floor,Dn=e=>({x:e,y:e}),On={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function kn(e,t,n){return q(e,wn(t,n))}function An(e,t){return typeof e==`function`?e(t):e}function jn(e){return e.split(`-`)[0]}function Mn(e){return e.split(`-`)[1]}function Nn(e){return e===`x`?`y`:`x`}function Pn(e){return e===`y`?`height`:`width`}function Fn(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function In(e){return Nn(Fn(e))}function Ln(e,t,n){n===void 0&&(n=!1);let r=Mn(e),i=In(e),a=Pn(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Kn(o)),[o,Kn(o)]}function Rn(e){let t=Kn(e);return[zn(e),t,zn(t)]}function zn(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Bn=[`left`,`right`],Vn=[`right`,`left`],Hn=[`top`,`bottom`],Un=[`bottom`,`top`];function Wn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Vn:Bn:t?Bn:Vn;case`left`:case`right`:return t?Hn:Un;default:return[]}}function Gn(e,t,n,r){let i=Mn(e),a=Wn(jn(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(zn)))),a}function Kn(e){let t=jn(e);return On[t]+e.slice(t.length)}function qn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:qn(e)}function Yn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Xn(e,t,n){let{reference:r,floating:i}=e,a=Fn(t),o=In(t),s=Pn(o),c=jn(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Mn(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function Zn(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=An(t,e),p=Jn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Yn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Yn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Qn=50,$n=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Zn},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Xn(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Qn&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Xn(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},er=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=An(e,t)||{};if(l==null)return{};let d=Jn(u),f={x:n,y:r},p=In(i),m=Pn(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=wn(d[_],T),ee=wn(d[v],T),D=E,O=C-h[m]-ee,k=C/2-h[m]/2+w,A=kn(D,k,O),j=!c.arrow&&Mn(i)!=null&&k!==A&&a.reference[m]/2-(k<D?E:ee)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),tr=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=An(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=jn(r),_=Fn(o),v=jn(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Kn(o)]:Rn(o)),x=p!==`none`;!d&&x&&b.push(...Gn(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ln(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Fn(t)||T.every(e=>Fn(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>
vendor: 5,921 bytes, line 5
5e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Fn(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function nr(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function rr(e){return Cn.some(t=>e[t]>=0)}var ir=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=An(e,t);switch(i){case`referenceHidden`:{let e=nr(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:rr(e)}}}case`escaped`:{let e=nr(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:rr(e)}}}default:return{}}}}},ar=new Set([`left`,`top`]);async function or(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=jn(n),s=Mn(n),c=Fn(n)===`y`,l=ar.has(o)?-1:1,u=a&&c?-1:1,d=An(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var sr=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await or(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},cr=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=An(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Fn(jn(i)),p=Nn(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=kn(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=kn(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},lr=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=An(e,t),u={x:n,y:r},d=Fn(i),f=Nn(d),p=u[f],m=u[d],h=An(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ar.has(jn(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ur=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=An(e,t),u=await o.detectOverflow(t,l),d=jn(i),f=Mn(i),p=Fn(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=wn(h-u[g],v),x=wn(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=q(u.left,0),t=q(u.right,0),n=q(u.top,0),r=q(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:q(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:q(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function dr(){return typeof window<`u`}function fr(e){return mr(e)?(e.nodeName||``).toLowerCase():`#document`}function J(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pr(e){return((mr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function mr(e){return dr()?e instanceof Node||e instanceof J(e).Node:!1}function Y(e){return dr()?e instanceof Element||e instanceof J(e).Element:!1}function hr(e){return dr()?e instanceof HTMLElement||e instanceof J(e).HTMLElement:!1}function gr(e){return!dr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof J(e).ShadowRoot}function _r(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function vr(e){return/^(table|td|th)$/.test(fr(e))}function yr(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var br=/transform|translate|scale|rotate|perspective|filter/,xr=/paint|layout|strict|content/,Sr=e=>!!e&&e!==`none`,Cr;function wr(e){let t=Y(e)?X(e):e;return Sr(t.transform)||Sr(t.translate)||Sr(t.scale)||Sr(t.rotate)||Sr(t.perspective)||!Er()&&(Sr(t.backdropFilter)||Sr(t.filter))||br.test(t.willChange||``)||xr.test(t.contain||``)}function Tr(e){let t=kr(e);for(;hr(t)&&!Dr(t);){if(wr(t))return t;if(yr(t))return null;t=kr(t)}return null}function Er(){return Cr??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Cr}function Dr(e){return/^(html|body|#document)$/.test(fr(e))}function X(e){return J(e).getComputedStyle(e)}function Or(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function kr(e){if(fr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||gr(e)&&e.host||pr(e);return gr(t)?t.host:t}function Ar(e){let t=kr(e);return Dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:hr(t)&&_r(t)?t:Ar(t)}function jr(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ar(e),i=r===e.ownerDocument?.body,a=J(r);
vendor: 5,763 bytes, line 5
5if(i){let e=Mr(a);return t.concat(a,a.visualViewport||[],_r(r)?r:[],e&&n?jr(e):[])}return t.concat(r,jr(r,[],n))}function Mr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nr(e){let t=X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=hr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Tn(n)!==a||Tn(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Pr(e){return Y(e)?e:e.contextElement}function Fr(e){let t=Pr(e);if(!hr(t))return Dn(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Nr(t),o=(a?Tn(n.width):n.width)/r,s=(a?Tn(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ir=Dn(0);function Lr(e){let t=J(e);return!Er()||!t.visualViewport?Ir:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rr(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==J(e)?!1:t}function zr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Pr(e),o=Dn(1);t&&(r?Y(r)&&(o=Fr(r)):o=Fr(e));let s=Rr(a,n,r)?Lr(a):Dn(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=J(a),t=r&&Y(r)?J(r):r,n=e,i=Mr(n);for(;i&&r&&t!==n;){let e=Fr(i),t=i.getBoundingClientRect(),r=X(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=J(i),i=Mr(n)}}return Yn({width:u,height:d,x:c,y:l})}function Br(e,t){let n=Or(e).scrollLeft;return t?t.left+n:zr(pr(e)).left+n}function Vr(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Br(e,n),y:n.top+t.scrollTop}}function Hr(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=pr(r),s=t?yr(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Dn(1),u=Dn(0),d=hr(r);if((d||!d&&!a)&&((fr(r)!==`body`||_r(o))&&(c=Or(r)),d)){let e=zr(r);l=Fr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Vr(o,c):Dn(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 Ur(e){return Array.from(e.getClientRects())}function Wr(e){let t=pr(e),n=Or(e),r=e.ownerDocument.body,i=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Br(e),s=-n.scrollTop;return X(r).direction===`rtl`&&(o+=q(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Gr=25;function Kr(e,t){let n=J(e),r=pr(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Er();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Br(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<=Gr&&(a-=o)}else l<=Gr&&(a+=l);return{width:a,height:o,x:s,y:c}}function qr(e,t){let n=zr(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=hr(e)?Fr(e):Dn(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Jr(e,t,n){let r;if(t===`viewport`)r=Kr(e,n);else if(t===`document`)r=Wr(pr(e));else if(Y(t))r=qr(t,n);else{let n=Lr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Yn(r)}function Yr(e,t){let n=kr(e);return n===t||!Y(n)||Dr(n)?!1:X(n).position===`fixed`||Yr(n,t)}function Xr(e,t){let n=t.get(e);if(n)return n;let r=jr(e,[],!1).filter(e=>Y(e)&&fr(e)!==`body`),i=null,a=X(e).position===`fixed`,o=a?kr(e):e;for(;Y(o)&&!Dr(o);){let t=X(o),n=wr(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||_r(o)&&!n&&Yr(e,o))?r=r.filter(e=>e!==o):i=t,o=kr(o)}return t.set(e,r),r}function Zr(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?yr(t)?[]:Xr(t,this._c):[].concat(n),r],o=Jr(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=Jr(t,a[e],i);s=q(n.top,s),c=wn(n.right,c),l=wn(n.bottom,l),u=q(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Qr(e){let{width:t,height:n}=Nr(e);return{width:t,height:n}}function $r(e,t,n){let r=hr(t),i=pr(t),a=n===`fixed`,o=zr(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Dn(0);function l(){c.x=Br(i)}if(r||!r&&!a){if((fr(t)!==`body`||_r(i))&&(s=Or(t)),r){let e=zr(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?Vr(i,s):Dn(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 ei(e){return X(e).position===`static`}function ti(e,t){if(!hr(e)||X(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return pr(e)===n&&(n=n.ownerDocument.body),n}function ni(e,t){let n=J(e);if(yr(e))return n;if(!hr(e)){let t=kr(e);for(;t&&!Dr(t);){if(Y(t)&&!ei(t))return t;t=kr(t)}return n}let r=ti(e,t);for(;r&&vr(r)&&ei(r);)r=ti(r,t);return r&&Dr(r)&&ei(r)&&!wr(r)?n:r||Tr(e)||n}var ri=async function(e){let t=this.getOffsetParent||ni,n=this.getDimensions,r=await n(e.floating);return{reference:$r(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ii(e){return X(e).direction===`rtl`}var ai={convertOffsetParentRelativeRectToViewportRelativeRect:Hr,getDocumentElement:pr,getClippingRect:Zr,getOffsetParent:ni,getElementRects:ri,getClientRects:Ur,getDimensions:Qr,getScale:Fr,isElement:Y,isRTL:ii};function oi(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function si(e,t){let n=null,r,i=pr(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;
vendor: 5,534 bytes, line 5
5let m=En(d),h=En(i.clientWidth-(u+f)),g=En(i.clientHeight-(d+p)),_=En(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:q(0,wn(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!oi(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ci(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Pr(e),u=i||a?[...l?jr(l):[],...t?jr(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?si(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?zr(e):null;c&&g();function g(){let t=zr(e);h&&!oi(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var li=sr,ui=cr,di=tr,fi=ur,pi=ir,mi=er,hi=lr,gi=(e,t,n)=>{let r=new Map,i={platform:ai,...n},a={...i.platform,_c:r};return $n(e,t,{...i,platform:a})};function _i(e=0,t=0,n=0,r=0){if(typeof DOMRect==`function`)return new DOMRect(e,t,n,r);let i={x:e,y:t,width:n,height:r,top:t,right:e+n,bottom:t+r,left:e};return{...i,toJSON:()=>i}}function vi(e){if(!e)return _i();let{x:t,y:n,width:r,height:i}=e;return _i(t,n,r,i)}function yi(e,t){return{contextElement:me(e)?e:e?.contextElement,getBoundingClientRect:()=>{let n=e,r=t?.(n);return r||!n?vi(r):n.getBoundingClientRect()}}}var bi=e=>({variable:e,reference:`var(${e})`}),xi={arrowSize:bi(`--arrow-size`),arrowSizeHalf:bi(`--arrow-size-half`),arrowBg:bi(`--arrow-background`),transformOrigin:bi(`--transform-origin`),arrowOffset:bi(`--arrow-offset`)},Si=e=>e===`top`||e===`bottom`?`y`:`x`;function Ci(e,t){return{name:`transformOrigin`,fn(n){let{elements:r,middlewareData:i,placement:a,rects:o,y:s}=n,c=a.split(`-`)[0],l=Si(c),u=i.arrow?.x||0,d=i.arrow?.y||0,f=t?.clientWidth||0,p=t?.clientHeight||0,m=u+f/2,h=d+p/2,g=Math.abs(i.shift?.y||0),_=o.reference.height/2,v=p/2,y=e.offset?.mainAxis??e.gutter,b=typeof y==`number`?y+v:y??v,x=g>b,S={top:`${m}px calc(100% + ${b}px)`,bottom:`${m}px ${-b}px`,left:`calc(100% + ${b}px) ${h}px`,right:`${-b}px ${h}px`}[c],C=`${m}px ${o.reference.y+_-s}px`,w=!!e.overlap&&l===`y`&&x;return r.floating.style.setProperty(xi.transformOrigin.variable,w?C:S),{data:{transformOrigin:w?C:S}}}}}var wi={name:`rects`,fn({rects:e}){return{data:e}}},Ti=e=>{if(e)return{name:`shiftArrow`,fn({placement:t,middlewareData:n}){if(!n.arrow)return{};let{x:r,y:i}=n.arrow,a=t.split(`-`)[0];return Object.assign(e.style,{left:r==null?``:`${r}px`,top:i==null?``:`${i}px`,[a]:`calc(100% + ${xi.arrowOffset.reference})`}),{}}}};function Ei(e){let[t,n]=e.split(`-`);return{side:t,align:n,hasAlign:n!=null}}function Di(e){return e.split(`-`)[0]}var Oi={strategy:`absolute`,placement:`bottom`,listeners:!0,restoreStyles:!1,applyStyles:!0,gutter:8,flip:!0,slide:!0,overlap:!1,sameWidth:!1,fitViewport:!1,overflowPadding:8,arrowPadding:4};function ki(e,t){let n=e.devicePixelRatio||1;return Math.round(t*n)/n}function Ai(e,t){return e!=null&&Math.abs(e-t)<.5}function ji(e){return typeof e==`function`?e():e===`clipping-ancestors`?`clippingAncestors`:e}function Mi(e,t,n){return mi({element:e||t.createElement(`div`),padding:n.arrowPadding})}function Ni(e,t){if(!le(t.offset??t.gutter))return li(({placement:n})=>{let r=(e?.clientHeight||0)/2,i=t.offset?.mainAxis??t.gutter,a=typeof i==`number`?i+r:i??r,{hasAlign:o}=Ei(n),s=o?void 0:t.shift,c=t.offset?.crossAxis??s;return fe({crossAxis:c,mainAxis:a,alignmentAxis:t.shift})})}function Pi(e){if(e.flip)return di(()=>{let t=ji(e.boundary);return{...t?{boundary:t}:void 0,padding:e.overflowPadding,fallbackPlacements:e.flip===!0?void 0:e.flip}})}function Fi(e){if(e.slide||e.overlap)return ui(()=>{let t=ji(e.boundary);return{...t?{boundary:t}:void 0,mainAxis:e.slide,crossAxis:e.overlap,padding:e.overflowPadding,limiter:hi()}})}function Ii(e){if(e.sizeMiddleware===!1&&!e.sameWidth&&!e.fitViewport)return;let t,n,r,i;return fi(()=>{let a=ji(e.boundary);return{padding:e.overflowPadding,...a?{boundary:a}:void 0,apply({elements:e,rects:a,availableHeight:o,availableWidth:s}){let c=e.floating,l=Math.round(a.reference.width),u=Math.round(a.reference.height);s=Math.floor(s),o=Math.floor(o),Ai(t,l)||(c.style.setProperty(`--reference-width`,`${l}px`),t=l),Ai(n,u)||(c.style.setProperty(`--reference-height`,`${u}px`),n=u),Ai(r,s)||(c.style.setProperty(`--available-width`,`${s}px`),r=s),Ai(i,o)||(c.style.setProperty(`--available-height`,`${o}px`),i=o)}}})}function Li(e){if(e.hideWhenDetached)return pi(()=>({strategy:`referenceHidden`,boundary:ji(e.boundary)??`clippingAncestors`}))}function Ri(e){return e?e===!0?{ancestorResize:!0,ancestorScroll:!0,elementResize:!0,layoutShift:!0}:e:{}}var zi=[`transform`,`visibility`,`pointer-events`,`--x`,`--y`,`--z-index`,`--reference-width`,`--reference-height`,`--available-width`,`--available-height`,`--transform-origin`],Bi=[`top`,`right`,`bottom`,`left`];function Vi(e,t){if(!e)return xe;let n=new Map(t.map(t=>[t,e.style.getPropertyValue(t)]));return()=>
5{n.forEach((t,n)=>{t?e.style.setProperty(n,t):e.style.removeProperty(n)}),e.style.length===0&&e.removeAttribute(`style`)}}function Hi(e){return e==null?null:me(e)?e:typeof e==`object`&&e&&`contextElement`in e&&e.contextElement?e.contextElement:e}function Ui(e,t,n={}){let r=()=>(typeof t==`function`?t():t)??null,i=()=>{let t=typeof e==`function`?e():e;return n.getAnchorElement?.()??t},a=()=>{let e=i();return!e&&!n.getAnchorRect?null:yi(e,n.getAnchorRect)},o=Object.assign({},Oi,n),s=[],c=null,l,u;function d(e){l?.(),u?.(),c=e,l=o.restoreStyles?Vi(e,zi):void 0;let t=e.querySelector(`[data-part=arrow]`);u=o.restoreStyles?Vi(t,Bi):void 0,s=[Ni(t,o),Pi(o),Fi(o),Mi(t,e.ownerDocument,o),Ti(t),Ci({gutter:o.gutter,offset:o.offset,overlap:o.overlap},t),Ii(o),Li(o),wi]}let{placement:f,strategy:p,onComplete:m,onPositioned:h}=o,g,_,v=!1,y,b,x=xe,S=Ri(o.listeners);function C(){if(!o.listeners)return;let e=i(),t=a(),n=r();t&&n&&(Hi(e)!==Hi(y)||n!==b)&&(x(),y=e,b=n,x=ci(t,n,T,S))}async function w(){C();let e=r();if(!e)return;e!==c&&(d(e),v=!1);let t=a();if(!t)return;let n=await gi(t,e,{placement:f,middleware:s,strategy:p}),i=he(e),l=ki(i,n.x),u=ki(i,n.y);if(m?.({...n,x:l,y:u}),o.applyStyles!==!1&&(Ai(g,l)||(e.style.setProperty(`--x`,`${l}px`),g=l),Ai(_,u)||(e.style.setProperty(`--y`,`${u}px`),_=u),o.hideWhenDetached&&(n.middlewareData.hide?.referenceHidden?(e.style.setProperty(`visibility`,`hidden`),e.style.setProperty(`pointer-events`,`none`)):(e.style.removeProperty(`visibility`),e.style.removeProperty(`pointer-events`))),!v)){let t=e.firstElementChild;t&&(e.style.setProperty(`--z-index`,We(t).zIndex),v=!0)}}async function T(){n.updatePosition?(await n.updatePosition({updatePosition:w,floatingElement:r()}),h?.({placed:!0})):await w()}return T(),()=>{x(),u?.(),l?.(),h?.({placed:!1})}}function Wi(e,t,n={}){let{defer:r,...i}=n,a=r?Oe:e=>e(),o=[];return o.push(a(()=>{o.push(Ui(e,t,i))})),()=>{o.forEach(e=>e?.())}}var Gi={bottom:`rotate(45deg)`,left:`rotate(135deg)`,top:`rotate(225deg)`,right:`rotate(315deg)`};function Ki(e={}){let{placement:t,sameWidth:n,fitViewport:r,strategy:i=`absolute`}=e;return{arrow:{position:`absolute`,width:xi.arrowSize.reference,height:xi.arrowSize.reference,[xi.arrowSizeHalf.variable]:`calc(${xi.arrowSize.reference} / 2)`,[xi.arrowOffset.variable]:`calc(${xi.arrowSizeHalf.reference} * -1)`},arrowTip:{transform:t?Gi[t.split(`-`)[0]]:void 0,background:xi.arrowBg.reference,top:`0`,left:`0`,width:`100%`,height:`100%`,position:`absolute`,zIndex:`inherit`},floating:{position:i,isolation:`isolate`,minWidth:n?void 0:`max-content`,width:n?`var(--reference-width)`:void 0,maxWidth:r?`var(--available-width)`:void 0,maxHeight:r?`var(--available-height)`:void 0,pointerEvents:t?void 0:`none`,top:`0px`,left:`0px`,transform:t?`translate3d(var(--x), var(--y), 0)`:`translate3d(0, -100vh, 0)`,zIndex:`var(--z-index)`}}}function qi(e){return!(e.metaKey||!Ce()&&e.altKey||e.ctrlKey||e.key===`Control`||e.key===`Shift`||e.key===`Meta`)}var Ji=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]);function Yi(e,t,n){let r=n?ke(n):null,i=ve(r),a=he(r),o=Re(i);return e=e||o instanceof a.HTMLInputElement&&!Ji.has(o?.type)||o instanceof a.HTMLTextAreaElement||o instanceof a.HTMLElement&&o.isContentEditable,!(e&&t===`keyboard`&&n instanceof a.KeyboardEvent&&!Reflect.has(ta,n.key))}var Xi=null,Zi=new Set,Qi=new Map,$i=!1,ea=!1,ta={Tab:!0,Escape:!0};function na(e,t){for(let n of Zi)n(e,t)}function ra(e){$i=!0,qi(e)&&(Xi=`keyboard`,na(`keyboard`,e))}function Z(e){Xi=`pointer`,(e.type===`mousedown`||e.type===`pointerdown`)&&($i=!0,na(`pointer`,e))}function ia(e){Le(e)&&($i=!0,Xi=`virtual`)}function aa(e){let t=ke(e);t!==he(t)&&t!==ve(t)&&e.isTrusted&&(!$i&&!ea&&(Xi=`virtual`,na(`virtual`,e)),$i=!1,ea=!1)}function oa(){$i=!1,ea=!0}function sa(e){if(typeof window>`u`||Qi.get(he(e)))return;let t=he(e),n=ve(e),r=t.HTMLElement.prototype.focus;function i(){$i=!0,r.apply(this,arguments)}try{Object.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,value:i})}catch{}
5n.addEventListener(`keydown`,ra,!0),n.addEventListener(`keyup`,ra,!0),n.addEventListener(`click`,ia,!0),t.addEventListener(`focus`,aa,!0),t.addEventListener(`blur`,oa,!1),t.PointerEvent===void 0?(n.addEventListener(`mousedown`,Z,!0),n.addEventListener(`mousemove`,Z,!0),n.addEventListener(`mouseup`,Z,!0)):(n.addEventListener(`pointerdown`,Z,!0),n.addEventListener(`pointermove`,Z,!0),n.addEventListener(`pointerup`,Z,!0)),t.addEventListener(`beforeunload`,()=>{ca(e)},{once:!0}),Qi.set(t,{focus:r})}var ca=(e,t)=>{let n=he(e),r=ve(e);t&&r.removeEventListener(`DOMContentLoaded`,t);let i=Qi.get(n);if(i){try{Object.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,value:i.focus})}catch{}r.removeEventListener(`keydown`,ra,!0),r.removeEventListener(`keyup`,ra,!0),r.removeEventListener(`click`,ia,!0),n.removeEventListener(`focus`,aa,!0),n.removeEventListener(`blur`,oa,!1),n.PointerEvent===void 0?(r.removeEventListener(`mousedown`,Z,!0),r.removeEventListener(`mousemove`,Z,!0),r.removeEventListener(`mouseup`,Z,!0)):(r.removeEventListener(`pointerdown`,Z,!0),r.removeEventListener(`pointermove`,Z,!0),r.removeEventListener(`pointerup`,Z,!0)),Qi.delete(n)}};function la(){return Xi===`keyboard`||Xi===`virtual`}function ua(e={}){let{isTextInput:t,autoFocus:n,onChange:r,root:i}=e;sa(i),r?.({isFocusVisible:n||la(),modality:Xi});let a=(e,n)=>{Yi(!!t,e,n)&&r?.({isFocusVisible:la(),modality:e})};return Zi.add(a),()=>{Zi.delete(a)}}var da=we(),fa=p(`<div><!></div>`);function pa(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`content`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=fa();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var ma=p(`<footer><!></footer>`);function ha(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`footer`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=ma();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var ga=p(`<div><!></div>`);function _a(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`group`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=ga();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var va=p(`<header><!></header>`);function ya(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`header`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=va();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var ba=p(`<div><!></div>`);function xa(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`label`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=ba();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Sa=p(`<div><!></div>`);function Ca(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`menu`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Sa();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var wa=p(`<a><!></a>`);function Ta(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`trigger-anchor`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=wa();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Ea=p(`<button><!></button>`);function Da(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`trigger`,"data-layout":o().layout,type:`button`},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Ea();H(r,()=>({type:`button`,...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Oa=p(`<span><!></span>`);function ka(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=da.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G({"data-scope":`navigation`,"data-part":`trigger-text`,"data-layout":o().layout},y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Oa();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Aa=p(`<div><!></div>`);function ja(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Ae.consume(),s=D(()=>_(i.layout,`bar`)),c=D(()=>i.element),l=D(()=>i.children),u=D(()=>U(a,[`layout`,`element`,`children`])),d=D(()=>G({dir:o().dir,"data-scope":`navigation`,"data-part":`root`,"data-layout":y(s)},y(u)));da.provide(()=>({layout:y(s)}));var p=f(),m=V(p),h=e=>{var n=f(),r=V(n);t(r,()=>y(c),()=>y(d)),N(e,n)},g=e=>{var r=Aa();H(r,()=>({...y(d)}));var i=O(r);t(i,()=>y(l)??n),E(r),N(e,r)};r(m,e=>{y(c)?e(h):e(g,-1)}),N(e,p),F()}var Ma=Object.assign(ja,{Header:ya,Content:pa,Group:_a,Label:xa,Menu:Ca,Trigger:Da,TriggerAnchor:Ta,TriggerText:ka,Footer:ha}),Q=we(),Na=p(`<div><!></div>`);function Pa(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getAnchorProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Na();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Fa=p(`<div><!></div>`);function Ia(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getArrowTipProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Fa();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var La=p(`<div><!></div>`);function Ra(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getArrowProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=La();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var za=p(`<button><!></button>`);function Ba(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getCloseTriggerProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=za();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Va=p(`<div><!></div>`);function Ha(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getContentProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Va();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Ua=p(`<div><!></div>`);function Wa(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getDescriptionProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Ua();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Ga=p(`<div><!></div>`);function Ka(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getPositionerProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Ga();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}function qa(e,n){M(n,!0),L(n,[`$$slots`,`$$events`,`$$legacy`]);let r=Q.consume(),i=D(()=>n.children);var a=f(),o=V(a);t(o,()=>y(i),()=>r),N(e,a),F()}function Ja(e,r){M(r,!0),L(r,[`$$slots`,`$$events`,`$$legacy`]);let i=D(()=>r.children),a=D(()=>r.value);Q.provide(()=>y(a)());var o=f(),s=V(o);t(s,()=>y(i)??n),N(e,o),F()}var Ya=Ne(`popover`).parts(`arrow`,`arrowTip`,`anchor`,`trigger`,`indicator`,`positioner`,`content`,`title`,`description`,`closeTrigger`).build(),Xa=e=>e.ids?.anchor??`popover:${e.id}:anchor`,Za=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`popover:${e.id}:trigger:${t}`:`popover:${e.id}:trigger`:ge(n)?n(t):n},Qa=e=>e.ids?.content??`popover:${e.id}
5:content`,$a=e=>e.ids?.positioner??`popover:${e.id}:popper`,eo=e=>e.ids?.arrow??`popover:${e.id}:arrow`,to=e=>e.ids?.title??`popover:${e.id}:title`,no=e=>e.ids?.description??`popover:${e.id}:desc`,ro=e=>e.ids?.closeTrigger??`popover:${e.id}:close`,io=e=>e.getById(Xa(e)),ao=e=>e.getById(Za(e)),oo=e=>Ye(e.getRootNode(),`[data-scope="popover"][data-part="trigger"]${Be(e.id)}`),so=(e,t)=>t==null?ao(e)??oo(e)[0]:e.getById(Za(e,t)),co=e=>e.getById(Qa(e)),lo=e=>e.getById($a(e)),uo=e=>e.getById(to(e)),fo=e=>e.getById(no(e));function po(e,t){let{state:n,context:r,send:i,computed:a,prop:o,scope:s}=e,c=o(`translations`),l=n.matches(`open`),u=r.get(`currentPlacement`),d=u?Di(u):void 0,f=a(`currentPortalled`),p=r.get(`renderedElements`),m=r.get(`triggerValue`),h=Ki({...o(`positioning`),placement:u});return{portalled:f,open:l,setOpen(e){n.matches(`open`)!==e&&i({type:e?`OPEN`:`CLOSE`})},triggerValue:m,setTriggerValue(e){i({type:`TRIGGER_VALUE.SET`,value:e})},reposition(e={}){i({type:`POSITIONING.SET`,options:e})},getArrowProps(){return t.element({id:eo(s),...Ya.arrow.attrs,dir:o(`dir`),style:h.arrow})},getArrowTipProps(){return t.element({...Ya.arrowTip.attrs,dir:o(`dir`),style:h.arrowTip})},getAnchorProps(){return t.element({...Ya.anchor.attrs,dir:o(`dir`),id:Xa(s)})},getTriggerProps(e={}){let{value:n}=e,r=n!=null&&m===n;return t.button({...Ya.trigger.attrs,dir:o(`dir`),type:`button`,"data-placement":u,"data-side":d,id:Za(s,n),"data-ownedby":s.id,"data-value":n,"data-current":_e(r),"aria-haspopup":`dialog`,"aria-expanded":n==null?l:l&&r,"data-state":l?`open`:`closed`,"aria-controls":Qa(s),onPointerDown(e){Se(e)&&ze()&&e.currentTarget.focus()},onClick(e){e.defaultPrevented||i({type:l&&n!=null&&!r?`TRIGGER_VALUE.SET`:`TOGGLE`,value:n})},onBlur(e){i({type:`TRIGGER_BLUR`,target:e.relatedTarget})}})},getIndicatorProps(){return t.element({...Ya.indicator.attrs,dir:o(`dir`),"data-state":l?`open`:`closed`})},getPositionerProps(){return t.element({id:$a(s),...Ya.positioner.attrs,dir:o(`dir`),style:h.floating})},getContentProps(){return t.element({...Ya.content.attrs,dir:o(`dir`),id:Qa(s),tabIndex:-1,role:`dialog`,"aria-modal":pe(o(`modal`)),hidden:!l,"data-state":l?`open`:`closed`,"data-expanded":_e(l),"aria-labelledby":p.title?to(s):void 0,"aria-describedby":p.description?no(s):void 0,"data-placement":u,"data-side":d})},getTitleProps(){return t.element({...Ya.title.attrs,id:to(s),dir:o(`dir`)})},getDescriptionProps(){return t.element({...Ya.description.attrs,id:no(s),dir:o(`dir`)})},getCloseTriggerProps(){return t.button({...Ya.closeTrigger.attrs,dir:o(`dir`),id:ro(s),type:`button`,"aria-label":c.closeTriggerLabel,onClick(e){e.defaultPrevented||(e.stopPropagation(),i({type:`CLOSE`}))}})}}}var mo=de({props({props:e}){return{closeOnInteractOutside:!0,closeOnEscape:!0,autoFocus:!0,modal:!1,portalled:!0,restoreFocus:!0,...e,translations:{closeTriggerLabel:`close`,...e.translations},positioning:{placement:`bottom`,...e.positioning}}},initialState({prop:e}){return e(`open`)||e(`defaultOpen`)?`open`:`closed`},context({bindable:e,prop:t,scope:n}){return{currentPlacement:e(()=>({defaultValue:void 0})),renderedElements:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:so(n,e)})}}))}},computed:{currentPortalled:({prop:e})=>!!e(`modal`)||!!e(`portalled`)},watch({track:e,prop:t,action:n}){e([()=>t(`open`)],()=>{n([`toggleVisibility`])})},entry:[`checkRenderedElements`],on:{"TRIGGER_VALUE.SET":{actions:[`setTriggerValue`,`reposition`]}},states:{closed:{on:{"CONTROLLED.OPEN":{target:`open`,actions:[`setInitialFocus`]},TOGGLE:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`,`setInitialFocus`]}],OPEN:[{guard:`isOpenControlled`,actions:[`invokeOnOpen`,`setTriggerValue`]},{target:`open`,actions:[`invokeOnOpen`,`setTriggerValue`,`setInitialFocus`]}]}},open:{effects:[`trapFocus`,`preventScroll`,`hideContentBelow`,`trackDismissableElement`,`trackPositioning`,`proxyTabFocus`],on:{"CONTROLLED.CLOSE":{target:`closed`,actions:[`setFinalFocus`]},CLOSE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed`,actions:[`invokeOnClose`,`setFinalFocus`]}],TOGGLE:[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed`,actions:[`invokeOnClose`]}],"POSITIONING.SET":{actions:[`reposition`]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>e(`open`)!=null},effects:{trackPositioning({context:e,prop:t,scope:n}){e.set(`currentPlacement`,t(`positioning`).placement);let r=io(n);return Wi(()=>r??so(n,e.get(`triggerValue`)),()=>lo(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})},trackDismissableElement({send:e,prop:t,scope:n}){let r=()=>co(n),i=!0;return qe(r,{type:`popover`,pointerBlocking:t(`modal`),exclude:[ao(n),...oo(n)].filter(
5Boolean),defer:!0,onEscapeKeyDown(e){t(`onEscapeKeyDown`)?.(e),!t(`closeOnEscape`)&&e.preventDefault()},onInteractOutside(e){t(`onInteractOutside`)?.(e),!e.defaultPrevented&&(i=!(e.detail.focusable||e.detail.contextmenu),t(`closeOnInteractOutside`)||e.preventDefault())},onPointerDownOutside:t(`onPointerDownOutside`),onFocusOutside:t(`onFocusOutside`),persistentElements:t(`persistentElements`),onRequestDismiss:t(`onRequestDismiss`),onDismiss(){e({type:`CLOSE`,src:`interact-outside`,restoreFocus:i})}})},proxyTabFocus({prop:e,scope:t,context:n}){return e(`modal`)||!e(`portalled`)?void 0:xn(()=>co(t),{triggerElement:so(t,n.get(`triggerValue`)),defer:!0,getShadowRoot:!0,onFocus(e){e.focus({preventScroll:!0})}})},hideContentBelow({prop:e,scope:t,context:n}){return e(`modal`)?Ve(()=>[co(t),so(t,n.get(`triggerValue`))],{defer:!0}):void 0},preventScroll({prop:e,scope:t}){if(e(`modal`))return Je(t.getDoc())},trapFocus({prop:e,scope:t,context:n}){return e(`modal`)?Ge(()=>co(t),{preventScroll:!0,returnFocusOnDeactivate:!!e(`restoreFocus`),initialFocus:()=>Ke({root:co(t),getInitialEl:e(`initialFocusEl`),enabled:e(`autoFocus`)}),setReturnFocus:r=>{let i=e(`finalFocusEl`)?.();if(i)return i;let a=n.get(`triggerValue`);if(a){let e=so(t,a);if(e)return e}return oo(t)[0]||r},getShadowRoot:!0}):void 0}},actions:{reposition({event:e,prop:t,scope:n,context:r}){let i=io(n);Wi(()=>i??so(n,r.get(`triggerValue`)),()=>lo(n),{...t(`positioning`),...e.options,defer:!0,listeners:!1,onComplete(e){r.set(`currentPlacement`,e.placement)}})},setTriggerValue({context:e,event:t}){t.value!==void 0&&e.set(`triggerValue`,t.value)},checkRenderedElements({context:e,scope:t}){Oe(()=>{Object.assign(e.get(`renderedElements`),{title:!!uo(t),description:!!fo(t)})})},setInitialFocus({prop:e,scope:t}){e(`modal`)||Oe(()=>{Ke({root:co(t),getInitialEl:e(`initialFocusEl`),enabled:e(`autoFocus`)})?.focus({preventScroll:!0})})},setFinalFocus({event:e,prop:t,scope:n,context:r}){let i=e.restoreFocus??e.previousEvent?.restoreFocus;(i==null||i)&&t(`restoreFocus`)&&Oe(()=>{let e=t(`finalFocusEl`)?.();if(e){e.focus({preventScroll:!0});return}so(n,r.get(`triggerValue`))?.focus({preventScroll:!0})})},invokeOnOpen({prop:e,flush:t}){t(()=>{e(`onOpenChange`)?.({open:!0})})},invokeOnClose({prop:e,flush:t}){t(()=>{e(`onOpenChange`)?.({open:!1})})},toggleVisibility({event:e,send:t,prop:n}){t({type:n(`open`)?`CONTROLLED.OPEN`:`CONTROLLED.CLOSE`,previousEvent:e})}}}}),ho=Pe()(`autoFocus.closeOnEscape.closeOnInteractOutside.defaultOpen.defaultTriggerValue.dir.getRootNode.id.ids.finalFocusEl.initialFocusEl.modal.onEscapeKeyDown.onFocusOutside.onInteractOutside.onOpenChange.onPointerDownOutside.onTriggerValueChange.onRequestDismiss.open.persistentElements.portalled.restoreFocus.positioning.translations.triggerValue`.split(`.`)),go=Me(ho);function _o(e){let t=Ae.consume(),n=Ee(mo,()=>({dir:t().dir,...typeof e==`function`?e():e})),r=D(()=>po(n,je));return()=>y(r)}function vo(e,r){let i=a();M(r,!0);let o=L(r,[`$$slots`,`$$events`,`$$legacy`]),s=D(()=>go(o)),c=D(()=>re(y(s),2)),l=D(()=>y(c)[0]),u=D(()=>y(c)[1]),d=D(()=>y(u).children),p=_o(()=>({...y(l),id:i}));Q.provide(()=>p());var m=f(),h=V(m);t(h,()=>y(d)??n),N(e,m),F()}var yo=p(`<div><!></div>`);function bo(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getTitleProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=yo();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var xo=p(`<button><!></button>`);function So(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=Q.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getTriggerProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=xo();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Co=Object.assign(vo,{Provider:Ja,Context:qa,Anchor:Pa,Trigger:So,Positioner:Ka,Content:Ha,Arrow:Ra,ArrowTip:Ia,Title:bo,Description:Wa,CloseTrigger:Ba}),wo=we(),To=p(`<div><!></div>`);function Eo(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=wo.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getArrowTipProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=To();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var Do=p(`<div><!></div>`);function Oo(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=wo.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getArrowProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Do();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var ko=p(`<div><!></div>`);function Ao(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=wo.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getContentProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=ko();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var jo=p(`<div><!></div>`);function Mo(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=wo.consume(),c=D(()=>i.element),l=D(()=>i.children),u=D(()=>U(a,[`element`,`children`])),d=D(()=>G(o().getPositionerProps(),{[b()]:s(Sn,()=>void 0)},y(u)));var p=f(),m=V(p),h=e=>{var n=f(),r=V(n);t(r,()=>y(c),()=>y(d)),N(e,n)},g=e=>{var r=jo();H(r,()=>({...y(d)}));var i=O(r);t(i,()=>y(l)??n),E(r),N(e,r)};r(m,e=>{y(c)?e(h):e(g,-1)}),N(e,p),F()}function No(e,n){M(n,!0),L(n,[`$$slots`,`$$events`,`$$legacy`]);let r=wo.consume(),i=D(()=>n.children);var a=f(),o=V(a);t(o,()=>y(i),()=>r),N(e,a),F()}var Po=Ne(`tooltip`).parts(`trigger`,`arrow`,`arrowTip`,`positioner`,`content`).build(),Fo=(e,t)=>{let n=e.ids?.trigger;return n==null?t?`tooltip:${e.id}:trigger:${t}`:`tooltip:${e.id}:trigger`:ge(n)?n(t):n},Io=e=>e.ids?.content??`tooltip:${e.id}:content`,Lo=e=>e.ids?.arrow??`tooltip:${e.id}:arrow`,Ro=e=>e.ids?.positioner??`tooltip:${e.id}:popper`,zo=e=>e.getById(Fo(e)),Bo=e=>e.getById(Ro(e)),Vo=e=>Ye(e.getRootNode(),`[data-scope="tooltip"][data-part="trigger"]${Be(e.id)}`),Ho=(e,t)=>t==null?zo(e)??Vo(e)[0]:e.getById(Fo(e,t)),$=_n({id:null,prevId:null,instant:!1});function Uo(e,t){let{state:n,context:r,send:i,scope:a,prop:o,event:s}=e,c=o(`id`),l=!!o(`aria-label`),u=n.matches(`open`,`closing`),d=r.get(`triggerValue`),f=r.get(`currentPlacement`),p=f?Di(f):void 0,m=Io(a),h=o(`disabled`),g=Ki({...o(`positioning`),placement:f});return{open:u,setOpen(e){n.matches(`open`,`closing`)!==e&&i({type:e?`open`:`close`})},triggerValue:d,setTriggerValue(e){i({type:`triggerValue.set`,value:e??void 0})},reposition(e={}
5){i({type:`positioning.set`,options:e})},getTriggerProps(e={}){let{value:n}=e,r=n!=null&&d===n,s=Fo(a,n);return t.button({...Po.trigger.attrs,id:s,"data-ownedby":a.id,"data-value":n,"data-current":_e(r),dir:o(`dir`),"data-expanded":_e(u),"data-state":u?`open`:`closed`,"aria-describedby":u?m:void 0,onClick(e){e.defaultPrevented||h||o(`closeOnClick`)&&i({type:u&&n!=null&&!r?`triggerValue.set`:`close`,src:`trigger.click`,value:n,triggerId:s})},onFocus(e){e.defaultPrevented||h||la()&&i({type:u&&n!=null&&!r?`triggerValue.set`:`open`,src:`trigger.focus`,value:n,triggerId:s})},onBlur(e){e.defaultPrevented||h||c===$.get(`id`)&&((e.relatedTarget??a.getDoc().activeElement)?.closest(Be(a.id))??i({type:`close`,src:`trigger.blur`,value:n,triggerId:s}))},onPointerDown(e){e.defaultPrevented||h||Se(e)&&o(`closeOnPointerDown`)&&c===$.get(`id`)&&i({type:`close`,src:`trigger.pointerdown`,value:n,triggerId:s})},onPointerMove(e){e.defaultPrevented||h||e.pointerType!==`touch`&&i({type:u&&n!=null&&!r?`triggerValue.set`:`pointer.move`,value:n,triggerId:s})},onPointerOver(e){e.defaultPrevented||h||e.pointerType!==`touch`&&i({type:`pointer.move`,value:n,triggerId:s})},onPointerLeave(){h||i({type:`pointer.leave`})},onPointerCancel(){h||i({type:`pointer.leave`})}})},getArrowProps(){return t.element({id:Lo(a),...Po.arrow.attrs,dir:o(`dir`),style:g.arrow})},getArrowTipProps(){return t.element({...Po.arrowTip.attrs,dir:o(`dir`),style:g.arrowTip})},getPositionerProps(){return t.element({id:Ro(a),...Po.positioner.attrs,dir:o(`dir`),style:g.floating})},getContentProps(){let e=$.get(`id`)===c,n=$.get(`prevId`)===c,r=$.get(`instant`)&&(u&&e||n);return t.element({...Po.content.attrs,dir:o(`dir`),hidden:!u,"data-state":u?`open`:`closed`,"data-instant":_e(r),role:l?void 0:`tooltip`,id:l?void 0:m,"data-placement":f,"data-side":p,onPointerEnter(){i({type:`content.pointer.move`})},onPointerLeave(){i({type:`content.pointer.leave`})},style:{pointerEvents:o(`interactive`)?`auto`:`none`}})}}}var{and:Wo,not:Go}=be(),Ko=de({initialState:({prop:e})=>e(`open`)||e(`defaultOpen`)?`open`:`closed`,props({props:e}){ye(e,[`id`]);let t=e.closeOnClick??!0,n=e.closeOnPointerDown??t;return{openDelay:400,closeDelay:150,closeOnEscape:!0,interactive:!1,closeOnScroll:!0,disabled:!1,...e,closeOnPointerDown:n,closeOnClick:t,positioning:{placement:`bottom`,...e.positioning}}},effects:[`trackFocusVisible`,`trackStore`],context:({bindable:e,prop:t,scope:n})=>({currentPlacement:e(()=>({defaultValue:void 0})),hasPointerMoveOpened:e(()=>({defaultValue:null})),triggerValue:e(()=>({defaultValue:t(`defaultTriggerValue`)??null,value:t(`triggerValue`),onChange(e){let r=t(`onTriggerValueChange`);r&&r({value:e,triggerElement:Ho(n,e)})}}))}),watch({track:e,action:t,prop:n}){e([()=>n(`disabled`)],()=>{t([`closeIfDisabled`])}),e([()=>n(`open`)],()=>{t([`toggleVisibility`])}),e([()=>n(`triggerValue`)],()=>{t([`repositionImmediate`])})},on:{"triggerValue.set":{actions:[`setTriggerValue`,`repositionImmediate`]}},states:{closed:{entry:[`clearGlobalId`],on:{"controlled.open":{target:`open`},open:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}],"pointer.leave":{actions:[`clearPointerMoveOpened`]},"pointer.move":[{guard:Wo(`noVisibleTooltip`,Go(`hasPointerMoveOpened`)),target:`opening`,actions:[`setTriggerValue`]},{guard:Go(`hasPointerMoveOpened`),target:`open`,actions:[`setPointerMoveOpened`,`invokeOnOpen`,`setTriggerValue`]}]}},opening:{effects:[`trackScroll`,`trackPointerlockChange`,`waitForOpenDelay`],on:{"after.openDelay":[{guard:`isOpenControlled`,actions:[`setPointerMoveOpened`,`invokeOnOpen`]},{target:`open`,actions:[`setPointerMoveOpened`,`invokeOnOpen`]}],"controlled.open":{target:`open`},"controlled.close":{target:`closed`},open:[{guard:`isOpenControlled`,actions:[`setTriggerValue`,`invokeOnOpen`]},{target:`open`,actions:[`setTriggerValue`,`invokeOnOpen`]}],"pointer.leave":[{guard:`isOpenControlled`,actions:[`clearPointerMoveOpened`,`invokeOnClose`,`toggleVisibility`]},{target:`closed`,actions:[`clearPointerMoveOpened`,`invokeOnClose`]}],close:[{guard:`isOpenControlled`,actions:[`invokeOnClose`,`toggleVisibility`]},{target:`closed`,actions:[`invokeOnClose`]}]}},open:{effects:[`trackEscapeKey`,`trackScroll`,`trackPointerlockChange`,`trackPositioning`],entry:[`setGlobalId`],on:{"controlled.close":{target:`closed`},close:[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed`,actions:[`invokeOnClose`]}],"pointer.leave":[{guard:`isVisible`,target:`closing`,actions:[`clearPointerMoveOpened`]},{guard:`isOpenControlled`,actions:[`clearPointerMoveOpened`,`invokeOnClose`]},{target:`closed`,actions:[`clearPointerMoveOpened`,`invokeOnClose`]}],"content.pointer.leave":{guard:`isInteractive`,target:`closing`},"positioning.set":{actions:[`reposition`]},"triggerValue.set":{target:`closing`,actions:[`setTriggerValue`,`immediateReopen`]}}},closing:{effects:[`trackPositioning`,`waitForCloseDelay`],on:{"after.closeDelay":[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed`,actions:[`invokeOnClose`]}],"controlled.close":{target:`closed`},"controlled.open":{target:`open`},close:[{guard:`isOpenControlled`,actions:[`invokeOnClose`]},{target:`closed`,actions:[`invokeOnClose`]}],"pointer.move":[{guard:`isOpenControlled`,actions:[`setPointerMoveOpened`,`setTriggerValue`,`invokeOnOpen`,`toggleVisibility`]},{target:`open`,actions:[`setPointerMoveOpened`,`setTriggerValue`,`invokeOnOpen`]}],"triggerValue.set":{target:`open`,actions:[`setTriggerValue`,`repositionImmediate`]},reopen:{target:`open`},"content.pointer.move":{guard:`isInteractive`,target:`open`},"positioning.set":{actions:[`reposition`]}}}},implementations:{guards:{noVisibleTooltip:()=>$.get(`id`)===null,isVisible:({prop:e})=>e(`id`)===$.get(`id`),isInteractive:({prop:e})=>!!e(`interactive`),hasPointerMoveOpened:({context:e})=>!!e.get(`hasPointerMoveOpened`),isOpenControlled:({prop:e})=>e(`open`)!==void 0},actions:{setGlobalId:({prop:e})=>{let t=$.get(`id`),n=t!==null&&t!==e(`id`);$.update({id:e(`id`),prevId:n?t:null,instant:n})},clearGlobalId:({prop:e})=>{e(`id`)===$.get(`id`)&&$.update({id:null,prevId:null,instant:!1})},invokeOnOpen:({prop:e})=>{e(`onOpenChange`)?.({open:!0})},invokeOnClose:({prop:e})=>{e(`onOpenChange`)?.({open:!1})},closeIfDisabled:({prop:e,send:t})=>{e(`disabled`)&&t({type:`close`,src:`disabled.change`})},reposition:({context:e,event:t,prop:n,scope:r})=>{t.type===`positioning.set`&&Wi(()=>Ho(r,e.get(`triggerValue`)),()=>Bo(r),{...n(`positioning`),...t.options,listeners:!1,onComplete(t){e.set(`currentPlacement`,t.placement)}})},repositionImmediate:({context:e,event:t,prop:n,scope:r})=>{let i=t.value??e.get(`triggerValue`);return Wi(()=>Ho(r,i),()=>Bo(r),{...n(`positioning`),onComplete(t){e.set(`currentPlacement`,t.placement)}})},toggleVisibility:({prop:e,event:t,send:n})=>{queueMicrotask(()=>{n({type:e(`open`)?`controlled.open`:`controlled.close`,previousEvent:t})})},setPointerMoveOpened:({context:e,event:t})=>{let n=t.triggerId??t.previousEvent?.triggerId;e.set(`hasPointerMoveOpened`,n??null)},clearPointerMoveOpened:({context:e})=>{e.set(`hasPointerMoveOpened`,null)},setTriggerValue:({context:e,event:t})=>{t.value!==void 0&&e.set(`triggerValue`,t.value)},immediateReopen:({send:e})=>{queueMicrotask(()=>{e({type:`reopen`})})}},effects:{trackFocusVisible:({scope:e})=>ua({root:e.getRootNode?.()}),trackPositioning:({context:e,prop:t,scope:n})=>(e.get(`currentPlacement`)||e.set(`currentPlacement`,t(`positioning`).placement),Wi(()=>Ho(n,e.get(`triggerValue`)),()=>Bo(n),{...t(`positioning`),defer:!0,onComplete(t){e.set(`currentPlacement`,t.placement)}})),trackPointerlockChange:({send:e,scope:t})=>{let n=t.getDoc();return Ie(n,`pointerlockchange`,()=>e({type:`close`,src:`pointerlock:change`}),!1)},trackScroll:({send:e,prop:t,scope:n,context:r})=>{if(!t(`closeOnScroll`))return;let i=Ho(n,r.get(`triggerValue`));if(!i)return;let a=He(i).map(t=>Ie(t,`scroll`,()=>{e({type:`close`,src:`scroll`})},{passive:!0,capture:!0}));return()=>
5{a.forEach(e=>e?.())}},trackStore:({prop:e,send:t})=>{let n;return queueMicrotask(()=>{n=$.subscribe(()=>{$.get(`id`)!==e(`id`)&&t({type:`close`,src:`id.change`})})}),()=>n?.()},trackEscapeKey:({send:e,prop:t})=>t(`closeOnEscape`)?Ie(document,`keydown`,t=>{Te(t)||t.key===`Escape`&&(t.stopPropagation(),e({type:`close`,src:`keydown.escape`}))},!0):void 0,waitForOpenDelay:({send:e,prop:t,event:n})=>{let r=setTimeout(()=>{e({type:`after.openDelay`,previousEvent:n})},t(`openDelay`));return()=>clearTimeout(r)},waitForCloseDelay:({send:e,prop:t,event:n})=>{let r=setTimeout(()=>{e({type:`after.closeDelay`,previousEvent:n})},t(`closeDelay`));return()=>clearTimeout(r)}}}}),qo=Pe()([`aria-label`,`closeDelay`,`closeOnClick`,`closeOnEscape`,`closeOnPointerDown`,`closeOnScroll`,`defaultOpen`,`defaultTriggerValue`,`dir`,`disabled`,`getRootNode`,`id`,`ids`,`interactive`,`onOpenChange`,`onTriggerValueChange`,`open`,`openDelay`,`positioning`,`triggerValue`]),Jo=Me(qo);function Yo(e){let t=Ae.consume(),n=Ee(Ko,()=>({dir:t().dir,...typeof e==`function`?e():e})),r=D(()=>Uo(n,je));return()=>y(r)}function Xo(e,r){M(r,!0),L(r,[`$$slots`,`$$events`,`$$legacy`]);let i=D(()=>r.children),a=D(()=>r.value);wo.provide(()=>y(a)());var o=f(),s=V(o);t(s,()=>y(i)??n),N(e,o),F()}function Zo(e,r){let i=a();M(r,!0);let o=L(r,[`$$slots`,`$$events`,`$$legacy`]),s=D(()=>Jo(o)),c=D(()=>re(y(s),2)),l=D(()=>y(c)[0]),u=D(()=>y(c)[1]),d=D(()=>y(u).children),p=Yo(()=>({...y(l),id:i}));wo.provide(()=>p());var m=f(),h=V(m);t(h,()=>y(d)??n),N(e,m),F()}var Qo=p(`<button><!></button>`);function $o(e,i){M(i,!0);let a=L(i,[`$$slots`,`$$events`,`$$legacy`]),o=wo.consume(),s=D(()=>i.element),c=D(()=>i.children),l=D(()=>U(a,[`element`,`children`])),u=D(()=>G(o().getTriggerProps(),y(l)));var d=f(),p=V(d),m=e=>{var n=f(),r=V(n);t(r,()=>y(s),()=>y(u)),N(e,n)},h=e=>{var r=Qo();H(r,()=>({...y(u)}));var i=O(r);t(i,()=>y(c)??n),E(r),N(e,r)};r(p,e=>{y(s)?e(m):e(h,-1)}),N(e,d),F()}var es=Object.assign(Zo,{Provider:Xo,Context:No,Trigger:$o,Positioner:Mo,Content:Ao,Arrow:Oo,ArrowTip:Eo}),ts=p(` <span class="sr-only">(private; show details)</span>`,1),ns=p(`<!> <!>`,1),rs=p(`<span class="text-surface-600-400"> </span> <p data-private-constellation-fallback="" class="text-surface-600-400 mt-1 text-xs"> </p>`,1);function is(e,t){M(t,!0);let n=B(!1),i=B(!1);R(()=>{w(i,!0)});var a=f(),o=V(a),s=e=>{es(e,{get open(){return y(n)},onOpenChange:e=>w(n,e.open,!0),openDelay:0,closeOnClick:!1,positioning:{placement:`top`},children:(e,r)=>{var i=ns(),a=V(i);g(a,()=>es.Trigger,(e,r)=>{r(e,{type:`button`,get title(){return t.explanation},class:`text-surface-600-400 cursor-help rounded-sm text-left focus:outline-2 focus:outline-offset-4 focus:outline-primary-500`,onclick:()=>w(n,!y(n)),children:(e,n)=>{W();var r=ts(),i=V(r,!0);W(),S(()=>P(i,t.name)),N(e,r)},$$slots:{default:!0}})});var o=I(a,2);Fe(o,{children:(e,n)=>{var r=f(),i=V(r);g(i,()=>es.Positioner,(e,n)=>{n(e,{class:`z-(--z-tooltip)`,children:(e,n)=>{var r=f(),i=V(r);g(i,()=>es.Content,(e,n)=>{n(e,{class:`border-surface-300-700 bg-surface-50-950 text-surface-900-50 max-w-[min(20rem,calc(100vw-2rem))] border p-3 text-sm leading-relaxed shadow-xl`,children:(e,n)=>{W();var r=c();S(()=>P(r,t.explanation)),N(e,r)},$$slots:{default:!0}})}),N(e,r)},$$slots:{default:!0}})}),N(e,r)},$$slots:{default:!0}}),N(e,i)},$$slots:{default:!0}})},l=e=>{var n=rs(),r=V(n),i=O(r,!0);E(r);var a=I(r,2),o=O(a,!0);E(a),S(()=>{P(i,t.name),P(o,t.explanation)}),N(e,n)};r(o,e=>{y(i)?e(s):e(l,-1)}),N(e,a),F()}var as=p(`<p class="text-surface-600-400 text-xs leading-5"> </p>`),os=p(`<p class="text-surface-600-400 text-xs"> </p>`),ss=p(`<li><a class="hover:text-primary-500 rounded-sm transition-colors hover:underline focus:outline-2 focus:outline-offset-4 focus:outline-primary-500"> </a></li>`),cs=p(`<li><a class="hover:text-primary-500 rounded-sm transition-colors hover:underline focus:outline-2 focus:outline-offset-4 focus:outline-primary-500"> </a></li>`),ls=p(`<li><!></li>`),us=p(`<a class="hover:text-primary-500 rounded-sm underline-offset-2 transition-colors hover:underline focus:outline-2 focus:outline-offset-4 focus:outline-primary-500"> </a>`),ds=p(`<p class="text-surface-700-300 leading-6"> <!> </p>`),fs=p(`<a href="/engineering" class="hover:text-primary-500 rounded-sm transition-colors hover:underline focus:outline-2 focus:outline-offset-4 focus:outline-primary-500">Engineering & Contracting</a>`),ps=p(`<footer id="contact" class="site-footer border-surface-200-800 bg-surface-100-900/85 mt-16 border-t backdrop-blur-sm"><div class="site-footer__inner py-12 text-sm"><div class="public-footer-grid grid gap-9 sm:grid-cols-2 lg:grid-cols-4"><section class="space-y-4"><h2 class="site-footer__wordmark text-primary-500 dark:text-primary-400 font-mono font-bold tracking-tight">xoxd.ai</h2> <p class="text-surface-900-50 font-medium"> </p> <p class="text-surface-700-300 max-w-xl leading-6"> </p> <!> <!></section> <nav aria-label="Site" class="site-footer__group"><h2 class="text-surface-900-50">Site</h2> <ul class="space-y-2"></ul></nav> <nav aria-label="Constellation" class="site-footer__group"><h2 class="text-surface-900-50">Constellation</h2> <ul class="space-y-2"><!> <!></ul></nav> <section aria-labelledby="footer-contact-heading" class="site-footer__group"><h2 id="footer-contact-heading" class="text-surface-900-50">Contact</h2> <!> <p class="text-surface-600-400 mt-4 text-xs leading-5">This address reaches Jess directly.</p></section></div> <div class="border-surface-200-800 mt-10 grid gap-5 border-t pt-6 sm:grid-cols-[1fr_auto] sm:items-end"><!> <div class="flex flex-col gap-3 text-xs sm:items-end"><p class="text-surface-600-400 flex items-center gap-2"><img src="/media/cassini/pia06193-320.webp" alt="" aria-hidden="true" width="64" height="32" loading="lazy" decoding="async" class="h-8 w-16 rounded" data-testid="footer-accent"/> <span> </span></p> <p class="text-surface-600-400">Built with free and open-source software · <a href="/attribution" class="hover:text-primary-500 underline-offset-2 hover:underline">attribution</a> · <a href="/agents.md" class="hover:text-primary-500 underline-offset-2 hover:underline">agents.md</a> · <a href="/llms.txt" class="hover:text-primary-500 underline-offset-2 hover:underline">llms.txt</a> · <a href="/agent-map.md" class="hover:text-primary-500 underline-offset-2 hover:underline">agent-map.md</a></p></div></div></div></footer>`);function ms(e,t){M(t,!0);let n=new Date().getUTCFullYear(),i=se[`footer-contact`],a=i?.match(/[\w.+-]+@[\w-]+(?:\.[\w-]+)+/u)?.[0],o=a?i?.slice(0,i.indexOf(a)):i,s=a?i?.slice((i.indexOf(a)??0)+a.length):``,c=D(()=>[...t.navLinks,{href:`/agent`,label:`Agent guide`},{href:`/privacy`,label:`Privacy`},{href:`/attribution`,label:`Attribution`}
5]),l=[{href:`https://glorious.build`,label:`glorious.build`},{href:`https://darkmap.xoxd.ai/`,label:`darkmap`},{href:`https://transscendsurvival.org`,label:`transscendsurvival.org`},{href:`https://github.com/xoxd-ai`,label:`xoxd-ai on GitHub`}],u=Qe.find(e=>e.slug===`mothership`);var d=ps(),f=O(d),p=O(f),m=O(p),h=I(O(m),2),g=O(h,!0);E(h);var _=I(h,2),b=O(_,!0);E(_);var x=I(_,2),C=e=>{var t=as(),n=O(t,!0);E(t),S(()=>P(n,se[`footer-estate`])),N(e,t)};r(x,e=>{se[`footer-estate`]&&e(C)});var w=I(x,2),T=e=>{var t=os(),n=O(t,!0);E(t),S(()=>P(n,se[`footer-licence`])),N(e,t)};r(w,e=>{se[`footer-licence`]&&e(T)}),E(m);var ee=I(m,2),A=I(O(ee),2);v(A,21,()=>y(c),e=>e.href,(e,t)=>{var n=ss(),r=O(n),i=O(r,!0);E(r),E(n),S(()=>{k(r,`href`,y(t).href),P(i,y(t).label)}),N(e,n)}),E(A),E(ee);var j=I(ee,2),L=I(O(j),2),R=O(L);v(R,17,()=>l,e=>e.href,(e,t)=>{var n=cs(),r=O(n),i=O(r,!0);E(r),E(n),S(()=>{k(r,`href`,y(t).href),P(i,y(t).label)}),N(e,n)});var te=I(R,2),z=e=>{var t=ls();is(O(t),{get name(){return u.name},get explanation(){return u.paragraphs[0]}}),E(t),N(e,t)};r(te,e=>{u&&e(z)}),E(L),E(j);var B=I(j,2),V=I(O(B),2),H=e=>{var t=ds(),n=O(t,!0),i=I(n),c=e=>{var t=us(),n=O(t,!0);E(t),S(()=>{k(t,`href`,`mailto:${a}`),P(n,a)}),N(e,t)};r(i,e=>{a&&e(c)});var l=I(i,1,!0);E(t),S(()=>{P(n,o),P(l,s)}),N(e,t)},ne=e=>{var t=fs();N(e,t)};r(V,e=>{i?e(H):e(ne,-1)}),W(2),E(B),E(p);var re=I(p,2),U=O(re);gn(U,{});var ie=I(U,2),ae=O(ie),oe=O(ae),le=I(oe,2),ue=O(le);E(le),E(ae),W(2),E(ie),E(re),E(f),E(d),S(()=>{P(g,ce[`home-tagline`]),P(b,ce[`home-thesis`]),P(ue,`Copyleft ${n??``} xoxd.ai.`)}),N(e,d),F()}function hs(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M7 7h10v10`}],[`path`,{d:`M7 17 17 7`}]];$e(e,z({name:`arrow-up-right`},()=>n,{get iconNode(){return r}}))}function gs(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M20 6 9 17l-5-5`}]];$e(e,z({name:`check`},()=>n,{get iconNode(){return r}}))}function _s(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`}],[`circle`,{cx:`18`,cy:`6`,r:`3`}],[`circle`,{cx:`6`,cy:`18`,r:`3`}]];$e(e,z({name:`git-branch`},()=>n,{get iconNode(){return r}}))}function vs(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`circle`,{cx:`12`,cy:`16`,r:`1`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`}]];$e(e,z({name:`lock-keyhole`},()=>n,{get iconNode(){return r}}))}function ys(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M4 5h16`}],[`path`,{d:`M4 12h16`}],[`path`,{d:`M4 19h16`}]];$e(e,z({name:`menu`},()=>n,{get iconNode(){return r}}))}function bs(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`}]];$e(e,z({name:`monitor`},()=>n,{get iconNode(){return r}}))}function xs(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`}]];$e(e,z({name:`moon`},()=>n,{get iconNode(){return r}}))}function Ss(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`}]];$e(e,z({name:`palette`},()=>n,{get iconNode(){return r}}))}function Cs(e,t){let n=L(t,[`$$slots`,`$$events`,`$$legacy`]),r=[[`circle`,{cx:`12`,cy:`12`,r:`4`}],[`path`,{d:`M12 2v2`}],[`path`,{d:`M12 20v2`}],[`path`,{d:`m4.93 4.93 1.41 1.41`}],[`path`,{d:`m17.66 17.66 1.41 1.41`}],[`path`,{d:`M2 12h2`}],[`path`,{d:`M20 12h2`}],[`path`,{d:`m6.34 17.66-1.41 1.41`}],[`path`,{d:`m19.07 4.93-1.41 1.41`}]];$e(e,z({name:`sun`},()=>n,{get iconNode(){return r}}))}var ws=`xoxd`,Ts=[{id:`xoxd`,label:`xoxd.ai`,source:`carrier`,file:`inhouse/xoxd-theme/pkg/theme/theme-xoxd.css`,colors:[`#cc003b`,`#659bd2`,`#682893`],contrast:{body:{light:19.02,dark:19.02},subAaShades:[`primary-400`,`secondary-600`,`warning-600`,`warning-700`,`error-400`,`surface-500`],fillExceptionsOnPaper:[`secondary`,`warning`],fillExceptionsOnInk:[`tertiary`]}},{id:`scaffold`,label:`Scaffold`,source:`authored`,file:`src/lib/styles/theme-scaffold.css`,colors:[`#5f636a`,`#69615f`,`#666167`],
5contrast:{body:{light:17.89,dark:17.89},subAaShades:[],fillExceptionsOnPaper:[],fillExceptionsOnInk:[]}},{id:`pine`,label:`Pine`,source:`package`,file:`@skeletonlabs/skeleton/themes/pine`,colors:[`#a0814d`,`#57123c`,`#878678`],contrast:{body:{light:11.59,dark:11.59},subAaShades:[`primary-500`,`primary-600`,`tertiary-500`,`warning-600`,`warning-700`,`warning-800`,`error-500`,`error-600`,`error-700`,`surface-400`,`surface-500`,`surface-600`],fillExceptionsOnPaper:[`primary`,`tertiary`,`warning`,`error`],fillExceptionsOnInk:[`secondary`,`success`]}},{id:`rose`,label:`Rose`,source:`package`,file:`@skeletonlabs/skeleton/themes/rose`,colors:[`#d87bac`,`#383fd2`,`#b9b0e8`],contrast:{body:{light:14.22,dark:14.22},subAaShades:[`primary-500`,`primary-600`,`primary-700`,`secondary-200`,`secondary-300`,`secondary-400`,`tertiary-600`,`tertiary-700`,`success-500`,`success-600`,`success-700`,`warning-600`,`warning-700`,`warning-800`,`error-300`,`error-400`,`error-500`,`error-600`,`surface-500`],fillExceptionsOnPaper:[`primary`,`tertiary`,`success`,`warning`,`error`],fillExceptionsOnInk:[`secondary`]}},{id:`catppuccin`,label:`Catppuccin`,source:`package`,file:`@skeletonlabs/skeleton/themes/catppuccin`,colors:[`#7186ff`,`#e977ca`,`#0f9299`],contrast:{body:{light:6,dark:12.41},subAaShades:`primary-100.primary-200.primary-300.primary-400.primary-500.primary-600.primary-700.primary-800.primary-900.secondary-400.secondary-500.secondary-600.secondary-700.secondary-800.tertiary-300.tertiary-400.tertiary-500.tertiary-600.tertiary-700.success-300.success-400.success-500.success-600.success-700.success-800.warning-300.warning-400.warning-500.warning-600.warning-700.warning-800.error-100.error-200.error-300.error-400.error-500.error-600.error-700.error-800.surface-600`.split(`.`),fillExceptionsOnPaper:[`secondary`,`warning`],fillExceptionsOnInk:[]}},{id:`trans`,label:`Trans`,source:`authored`,file:`src/lib/styles/themes/trans.css`,colors:[`#00c3f1`,`#f89dc9`,`#00a1a9`],contrast:{body:{light:19.18,dark:19.18},subAaShades:[`primary-700`,`warning-600`,`warning-700`,`error-500`,`surface-400`,`surface-500`],fillExceptionsOnPaper:[`primary`,`secondary`,`tertiary`,`warning`],fillExceptionsOnInk:[]}}];Ts.map(e=>e.id);function Es(e){return typeof e==`string`&&Ts.some(t=>t.id===e)}function Ds(e){let t=Ts.find(t=>t.id===e);if(!t)throw Error(`no theme ${e} in the suite`);return t}var Os=[`light`,`dark`,`system`],ks=`dark`,As=ws,js=`skeleton-theme`,Ms=`color-mode`;function Ns(e){return typeof e==`string`&&Os.includes(e)}function Ps(e){try{return localStorage.getItem(e)}catch{return null}}function Fs(e,t){try{localStorage.setItem(e,t)}catch{}}function Is(e){try{localStorage.removeItem(e)}catch{}}function Ls(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches}var Rs=new class{#e=B(ks);get mode(){return y(this.#e)}set mode(e){w(this.#e,e,!0)}#t=B(te(As));get currentTheme(){return y(this.#t)}set currentTheme(e){w(this.#t,e,!0)}initialized=!1;#n=D(()=>this.mode===`dark`||this.mode===`system`&&Ls());get isDark(){return y(this.#n)}set isDark(e){w(this.#n,e)}init(){if(this.initialized)return;this.initialized=!0;let e=Ps(Ms),t=Ps(js);this.mode=Ns(e)?e:ks,Es(t)?this.currentTheme=t:(t!==null&&Is(js),this.currentTheme=As),this.applyMode(),this.applyTheme(),window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{this.mode===`system`&&this.applyMode()})}setMode(e){this.mode=e,Fs(Ms,e),this.applyMode()}setTheme(e){this.currentTheme=e,Fs(js,e),this.applyTheme()}applyMode(){let e=this.mode===`system`?Ls()?`dark`:`light`:this.mode;document.documentElement.setAttribute(`data-mode`,e),document.documentElement.style.colorScheme=e}applyTheme(){document.documentElement.setAttribute(`data-theme`,this.currentTheme)}},zs=p(`<span aria-hidden="true"><!></span>`),Bs=p(`<button type="button"><span class="flex items-center gap-2"><!> </span> <!></button>`),Vs=p(`<span class="border-surface-300-700 size-2.5 rounded-full border"></span>`),Hs=p(`<button type="button"><span class="flex gap-0.5" aria-hidden="true"></span> <!></button>`),Us=p(`<!> <!> <div class="border-surface-300-700 my-1.5 border-t"></div> <p class="text-surface-600-400 px-3 py-1 text-xs font-semibold tracking-wide uppercase">Theme</p> <!>`,1),Ws=p(`<!> <!>`,1);function Gs(e,t){M(t,!0);let n=C(t,`contained`,3,!1),i=B(!1),a=[{id:`light`,label:`Light`,hint:`Light scheme`,icon:Cs}
5,{id:`dark`,label:`Dark`,hint:`Dark scheme, the default`,icon:xs},{id:`system`,label:`System`,hint:`Follows the OS preference`,icon:bs}],o=D(()=>a.find(e=>e.id===Rs.mode)??a[1]),s=D(()=>Ds(Rs.currentTheme));R(()=>{Rs.init()});function l(e){w(i,e.open,!0)}function u(e){Rs.setMode(e),w(i,!1)}function d(e){Rs.setTheme(e),w(i,!1)}Co(e,{get open(){return y(i)},onOpenChange:l,positioning:{placement:`bottom-end`,gutter:8},closeOnInteractOutside:!0,closeOnEscape:!0,children:(e,t)=>{var i=Ws(),l=V(i);{let e=D(()=>`Theme: ${y(s).label}. Color mode: ${y(o).label}. Choose theme and color mode`),t=D(()=>`${y(s).label} theme, ${y(o).label.toLowerCase()} color mode`);g(l,()=>Co.Trigger,(n,r)=>{r(n,{class:`text-primary-600-400 hover:text-primary-500 inline-flex size-11 shrink-0 items-center justify-center rounded-sm leading-none transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500`,get"aria-label"(){return y(e)},get title(){return y(t)},"data-testid":`theme-picker-trigger`,children:(e,t)=>{var n=zs();Ss(O(n),{class:`size-5`,strokeWidth:2}),E(n),N(e,n)},$$slots:{default:!0}})})}var p=I(l,2);Fe(p,{get disabled(){return n()},children:(e,t)=>{var n=f(),i=V(n);g(i,()=>Co.Positioner,(e,t)=>{t(e,{class:`z-(--z-tooltip)`,children:(e,t)=>{var n=f(),i=V(n);g(i,()=>Co.Content,(e,t)=>{t(e,{class:`bg-surface-50-950 border-surface-300-700 max-h-[calc(100vh-5rem)] min-w-52 max-w-[calc(100vw-2rem)] overflow-y-auto overscroll-contain rounded-sm border py-2 shadow-lg`,"data-testid":`theme-picker-content`,children:(e,t)=>{var n=Us(),i=V(n);g(i,()=>Co.Title,(e,t)=>{t(e,{class:`text-surface-600-400 px-3 py-1 text-xs font-semibold tracking-wide uppercase`,children:(e,t)=>{W();var n=c(`Color mode`);N(e,n)},$$slots:{default:!0}})});var o=I(i,2);v(o,17,()=>a,e=>e.id,(e,t)=>{let n=D(()=>y(t).icon),i=D(()=>Rs.mode===y(t).id);var a=Bs(),o=O(a),s=O(o);g(s,()=>y(n),(e,t)=>{t(e,{class:`size-5`,"aria-hidden":`true`})});var c=I(s);E(o);var l=I(o,2),d=e=>{gs(e,{class:`size-4`,"aria-hidden":`true`})};r(l,e=>{y(i)&&e(d)}),E(a),S(()=>{k(a,`aria-label`,`Set color mode to ${y(t).label}`),k(a,`aria-pressed`,y(i)),k(a,`title`,y(t).hint),A(a,1,`hover:bg-surface-200-800 flex min-h-11 w-full items-center justify-between gap-3 px-3 py-2 text-left text-sm transition-colors ${y(i)?`text-primary-500 font-semibold`:``}`),P(c,` ${y(t).label??``}`)}),h(`click`,a,()=>u(y(t).id)),N(e,a)});var s=I(o,6);v(s,17,()=>Ts,e=>e.id,(e,t)=>{let n=D(()=>Rs.currentTheme===y(t).id);var i=Hs(),a=O(i);v(a,23,()=>y(t).colors,(e,n)=>`${y(t).id}-${n}`,(e,t)=>{var n=Vs();S(()=>j(n,`background: ${y(t)??``}`)),N(e,n)}),E(a);var o=I(a),s=I(o),c=e=>{gs(e,{class:`ml-auto size-4`,"aria-hidden":`true`})};r(s,e=>{y(n)&&e(c)}),E(i),S(()=>{k(i,`aria-label`,`Set theme to ${y(t).label}`),k(i,`aria-pressed`,y(n)),A(i,1,`hover:bg-surface-200-800 flex min-h-11 w-full items-center gap-3 px-3 py-2 text-left text-sm transition-colors ${y(n)?`text-primary-500 font-semibold`:``}`),P(o,` ${y(t).label??``} `)}),h(`click`,i,()=>d(y(t).id)),N(e,i)}),N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}}),N(e,i)},$$slots:{default:!0}}),F()}d([`click`]);var Ks=p(`<div class="flex items-start justify-between gap-4"><div class="flex items-center gap-3"><span class="bg-primary-500/15 text-primary-500 grid size-10 place-items-center rounded-full" aria-hidden="true"><!></span> <div><!> <!></div></div> <!></div> <p class="text-surface-700-300 mt-5 text-sm leading-6">Cloudflare Access will verify your approved email before it lets you in.</p> <div class="mt-6 flex flex-wrap justify-end gap-3"><!> <a href="https://plan.xoxd.ai" class="bg-primary-500 text-surface-50 hover:bg-primary-600 inline-flex items-center gap-2 rounded px-4 py-2 text-sm font-semibold transition-colors">Continue to Access <!></a></div>`,1),qs=p(`<!> <!>`,1);function Js(e,t){M(t,!0);let n=C(t,`open`,15,!1);K(e,{get open(){return n()},onOpenChange:e=>{n(e.open)},closeOnInteractOutside:!0,closeOnEscape:!0,preventScroll:!0,"aria-label":`Private plan access`,children:(e,t)=>{Fe(e,{children:(e,t)=>{var n=qs(),r=V(n);g(r,()=>K.Backdrop,(e,t)=>{t(e,{class:`fixed inset-0 z-(--z-modal-backdrop) bg-black/55 backdrop-blur-sm`})});var i=I(r,2);g(i,()=>K.Positioner,(e,t)=>{t(e,{class:`fixed inset-0 z-(--z-modal) grid place-items-center p-4`,children:(e,t)=>{var n=f(),r=V(n);g(r,()=>K.Content,(e,t)=>{t(e,{class:`bg-surface-50-950 border-surface-300-700 w-full max-w-md rounded-lg border p-6 shadow-2xl`,children:(e,t)=>{var n=Ks(),r=V(n),i=O(r),a=O(i);vs(O(a),{class:`size-5`}),E(a);var o=I(a,2),s=O(o);g(s,()=>K.Title,(e,t)=>{t(e,{class:`text-lg font-semibold`,children:(e,t)=>{W();var n=c(`Whoa there.`);N(e,n)},$$slots:{default:!0}})});var l=I(s,2);g(l,()=>K.Description,(e,t)=>{t(e,{class:`text-surface-600-400 mt-1 text-sm`,children:(e,t)=>{W();var n=c(`This is a private xoxd.ai plan.`);N(e,n)},$$slots:{default:!0}})}),E(o),E(i);var u=I(i,2);g(u,()=>K.CloseTrigger,(e,t)=>{t(e,{class:`hover:bg-surface-200-800 rounded-sm p-2`,"aria-label":`Close access notice`,children:(e,t)=>{Xe(e,{class:`size-5`})},$$slots:{default:!0}})}),E(r);var d=I(r,4),f=O(d);g(f,()=>K.CloseTrigger,(e,t)=>{t(e,{class:`border-surface-300-700 hover:bg-surface-100-900 rounded border px-4 py-2 text-sm font-medium`,children:(e,t)=>{W();var n=c(`Stay here`);N(e,n)},$$slots:{default:!0}})});var p=I(f,2);hs(I(O(p)),{class:`size-4`,"aria-hidden":`true`}),E(p),E(d),N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}})},$$slots:{default:!0}}),F()}var Ys=p(`<a class="hover:text-primary-500 rounded-sm transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500"> </a>`),Xs=p(`<a class="site-chrome__quick-link hover:text-primary-500 rounded-sm whitespace-nowrap transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500 svelte-1kttko1" data-testid="quick-link"> </a>`),Zs=p(`<!> <!> <!> <button type="button" class="text-surface-950-50 hover:bg-surface-100-900 flex w-full items-center px-3 py-2 text-left text-sm">Dastardly schemes</button>`,1),Qs=p(`<div class="flex justify-center py-3"><!></div>`),$s=p(`<!> <!>`,1),ec=p(`<div class="border-surface-200-800 flex items-center justify-between border-b px-4 py-3"><!> <!></div> <!>`,1),tc=p(`<!> <!>`,1),nc=p(`<button type="button" class="site-chrome__menu hover:bg-surface-200-800 ml-auto rounded-sm p-2 focus:outline-2 focus:outline-offset-4 focus:outline-primary-500" aria-label="Open navigation"><!></button> <!>`,1),rc=p(`<header data-testid="public-navigation"><div class="site-chrome__bar saturn-nav svelte-1kttko1"><div class="site-header__inner flex min-h-14 items-center gap-3 py-2 svelte-1kttko1"><a href="/" class="site-chrome__brand hover:text-primary-500 inline-flex items-center gap-2 rounded-sm font-mono text-lg font-bold tracking-tight transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500" aria-label="xoxd.ai home"><!> <span class="site-chrome__wordmark svelte-1kttko1">xoxd.ai</span></a> <nav class="site-chrome__full ml-auto hidden items-center gap-5 text-sm lg:flex svelte-1kttko1" aria-label="Primary navigation"><!> <a href="https://glorious.build" class="hover:text-primary-500 rounded-sm transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500">glorious.build</a> <a href="https://github.com/xoxd-ai" class="hover:text-primary-500 inline-flex items-center gap-1 rounded-sm transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500"><!> GitHub</a> <button type="button" class="hover:text-primary-500 rounded-sm transition-colors focus:outline-2 focus:outline-offset-4 focus:outline-primary-500">Dastardly schemes</button> <!></nav> <nav class="site-chrome__quick ml-auto items-center gap-3 text-sm svelte-1kttko1" aria-label="Quick navigation"></nav> <div class="site-chrome__theme svelte-1kttko1"><!></div> <!></div></div></header> <!>`,1);function ic(e,t){M(t,!0);let n=[{href:`/engineering`,label:`Engineering`},{href:`/contact`,label:`Contact`}],r=D(()=>n.filter(e=>t.navLinks.some(t=>t.href===e.href))),i=e=>ae.url.pathname===e||ae.url.pathname.startsWith(`${e}/`),a=B(!1),s=B(!1),l=B(!1);async function u(){w(a,!1),await o(),w(s,!0)}R(()=>{let e=()=>{w(l,window.scrollY>32)};return e(),window.addEventListener(`scroll`,e,{passive:!0}),()=>window.removeEventListener(`scroll`,e)});var d=rc(),p=V(d);let m;var _=O(p),b=O(_),x=O(b),C=O(x);oe(C,{class:`text-primary-500 dark:text-primary-400 h-[1.05em] w-[1.05em]`}),W(2),E(x);var T=I(x,2),ee=O(T);v(ee,17,()=>
5t.navLinks,({href:e,label:t})=>e,(e,t)=>{let n=()=>y(t).href,r=()=>y(t).label;var i=Ys(),a=O(i,!0);E(i),S(()=>{k(i,`href`,n()),P(a,r())}),N(e,i)});var j=I(ee,4);_s(O(j),{class:`size-4`,"aria-hidden":`true`}),W(),E(j);var L=I(j,2);Gs(I(L,2),{}),E(T);var te=I(T,2);v(te,21,()=>y(r),({href:e,label:t})=>e,(e,t)=>{let n=()=>y(t).href,r=()=>y(t).label;var a=Xs(),o=O(a,!0);E(a),S(e=>{k(a,`href`,n()),k(a,`aria-current`,e),P(o,r())},[()=>i(n())?`page`:void 0]),N(e,a)}),E(te);var z=I(te,2);Gs(O(z),{}),E(z);var H=I(z,2);K(H,{get open(){return y(a)},onOpenChange:e=>{w(a,e.open,!0)},closeOnInteractOutside:!0,closeOnEscape:!0,preventScroll:!0,children:(e,n)=>{var r=nc(),i=V(r);ys(O(i),{class:`size-5`}),E(i);var o=I(i,2);Fe(o,{children:(e,n)=>{var r=tc(),i=V(r);g(i,()=>K.Backdrop,(e,t)=>{t(e,{class:`fixed inset-0 z-(--z-modal-backdrop) bg-black/45`})});var o=I(i,2);g(o,()=>K.Positioner,(e,n)=>{n(e,{class:`fixed inset-y-0 right-0 z-(--z-modal) flex w-80 max-w-[90vw]`,children:(e,n)=>{var r=f(),i=V(r);g(i,()=>K.Content,(e,n)=>{n(e,{class:`bg-surface-50-950 flex w-full flex-col shadow-2xl`,children:(e,n)=>{var r=ec(),i=V(r),o=O(i);g(o,()=>K.Title,(e,t)=>{t(e,{class:`font-mono text-sm font-semibold`,children:(e,t)=>{W();var n=c(`xoxd.ai navigation`);N(e,n)},$$slots:{default:!0}})});var s=I(o,2);g(s,()=>K.CloseTrigger,(e,t)=>{t(e,{class:`hover:bg-surface-200-800 rounded-sm p-2`,"aria-label":`Close navigation`,children:(e,t)=>{Xe(e,{class:`size-5`})},$$slots:{default:!0}})}),E(i),Ma(I(i,2),{layout:`sidebar`,children:(e,n)=>{var r=$s(),i=V(r);g(i,()=>Ma.Content,(e,n)=>{n(e,{children:(e,n)=>{var r=f(),i=V(r);g(i,()=>Ma.Menu,(e,n)=>{n(e,{children:(e,n)=>{var r=Zs(),i=V(r);v(i,17,()=>t.navLinks,({href:e,label:t})=>e,(e,t)=>{let n=()=>y(t).href,r=()=>y(t).label;var i=f(),o=V(i);g(o,()=>Ma.TriggerAnchor,(e,t)=>{t(e,{get href(){return n()},onclick:()=>w(a,!1),children:(e,t)=>{var n=f(),i=V(n);g(i,()=>Ma.TriggerText,(e,t)=>{t(e,{children:(e,t)=>{W();var n=c();S(()=>P(n,r())),N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}})}),N(e,i)});var o=I(i,2);g(o,()=>Ma.TriggerAnchor,(e,t)=>{t(e,{href:`https://glorious.build`,children:(e,t)=>{var n=f(),r=V(n);g(r,()=>Ma.TriggerText,(e,t)=>{t(e,{children:(e,t)=>{W();var n=c(`glorious.build`);N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}})});var s=I(o,2);g(s,()=>Ma.TriggerAnchor,(e,t)=>{t(e,{href:`https://github.com/xoxd-ai`,children:(e,t)=>{var n=f(),r=V(n);g(r,()=>Ma.TriggerText,(e,t)=>{t(e,{children:(e,t)=>{W();var n=c(`GitHub`);N(e,n)},$$slots:{default:!0}})}),N(e,n)},$$slots:{default:!0}})});var l=I(s,2);h(`click`,l,u),N(e,r)},$$slots:{default:!0}})}),N(e,r)},$$slots:{default:!0}})});var o=I(i,2);g(o,()=>Ma.Footer,(e,t)=>{t(e,{children:(e,t)=>{var n=Qs();Gs(O(n),{contained:!0}),E(n),N(e,n)},$$slots:{default:!0}})}),N(e,r)},$$slots:{default:!0}}),N(e,r)},$$slots:{default:!0}})}),N(e,r)},$$slots:{default:!0}})}),N(e,r)},$$slots:{default:!0}}),h(`click`,i,()=>{w(a,!0)}),N(e,r)},$$slots:{default:!0}}),E(b),E(_),E(p),Js(I(p,2),{get open(){return y(s)},set open(e){w(s,e,!0)}}),S(()=>m=A(p,1,`site-chrome sticky top-0 z-(--z-sticky) svelte-1kttko1`,null,m,{"site-chrome--compact":y(l)})),h(`click`,L,()=>w(s,!0)),N(e,d),F()}d([`click`]);var ac=`https://static.cloudflareinsights.com/beacon.min.js`;function oc(e){let t=e?.trim()??``;return/^[0-9a-f]{32}$/u.test(t)?{src:ac,beacon:JSON.stringify({token:t})}:null}function sc(e,t){let n=oc(e);if(!n||t.querySelector(`script[data-cf-beacon]`))return null;let r=t.createElement(`script`);return r.defer=!0,r.src=n.src,r.setAttribute(`data-cf-beacon`,n.beacon),t.head.appendChild(r),r}var cc=`telemetry:load`,lc=2e3;function uc(e,t){if(!e)return{load:!1,reason:`no-config`};if(!t.browser)return{load:!1,reason:`not-browser`};if(t.doNotTrack===`1`||t.globalPrivacyControl===!0)return{load:!1,reason:`privacy-signal`};let n;try{n=new URL(e.collectorUrl)}catch{return{load:!1,reason:`invalid-url`}}return n.protocol===`https:`?e.appName?{load:!0}:{load:!1,reason:`invalid-url`}:{load:!1,reason:`not-https`}}function dc(e){return{doNotTrack:e.doNotTrack??null,globalPrivacyControl:e.globalPrivacyControl
5===!0}}function fc(e,t){let n=!1,r=0,i=0,a=0,o=!1,s=()=>{n||e()},c=()=>{n||(typeof t.requestIdleCallback==`function`?(o=!0,i=t.requestIdleCallback(s,{timeout:lc})):a=t.setTimeout(s,0))};return r=t.requestAnimationFrame(()=>{n||(r=t.requestAnimationFrame(c))}),()=>{n=!0,t.cancelAnimationFrame(r),o&&typeof t.cancelIdleCallback==`function`&&t.cancelIdleCallback(i),t.clearTimeout(a)}}function pc(e){try{let t=new URL(e);return t.search=``,t.hash=``,t.toString()}catch{return``}}async function mc(e){let[{initializeFaro:t,getWebInstrumentations:n,InternalLoggerLevel:r},{TracingInstrumentation:i}]=await Promise.all([ie(()=>import(`../chunks/x-W9U6bU.js`).then(e=>e.t),__vite__mapDeps([0,1]),import.meta.url),ie(()=>import(`../chunks/BMpThM65.js`),__vite__mapDeps([2,1,0]),import.meta.url)]);return t({url:e.collectorUrl,app:{name:e.appName,version:e.appVersion??`unknown`,environment:e.environment??`production`},isolate:!0,preventGlobalExposure:!0,internalLoggerLevel:r.OFF,sessionTracking:{enabled:!0,persistent:!1},instrumentations:[...n({captureConsole:!1,enablePerformanceInstrumentation:!1}),new i({instrumentationOptions:{propagateTraceHeaderCorsUrls:[]}})],beforeSend:e=>{let t=e.meta.page;return t?.url?{...e,meta:{...e.meta,page:{...t,url:pc(t.url)}}}:e}})}function hc(e,t){M(t,!0);let n=C(t,`config`,3,null);function r(e){document.documentElement.dataset.telemetry=e}R(()=>{if(!uc(n(),{browser:!0,...dc(navigator)}).load||!n()){r(`off`);return}let e=n();return r(`scheduled`),fc(()=>{r(`loading`),performance.mark(cc),sc(e.webAnalyticsToken,document),mc(e).then(()=>r(`started`)).catch(()=>r(`failed`))},window)}),F()}var gc={collectorUrl:`https://rum.xoxd.ai/collect`,appName:`xoxd.ai`,webAnalyticsToken:`dc7f9b38120c42aa8a3807a2cfd269dc`,environment:`production`},_c=p(`<!> <!> <div class="relative isolate"><!> <!> <div class="relative z-10 flex min-h-screen flex-col bg-transparent" data-saturn-content=""><a href="#content" class="focus:bg-primary-500 sr-only focus:not-sr-only focus:absolute focus:top-2 focus:left-2 focus:z-(--z-tooltip) focus:rounded-sm focus:px-4 focus:py-2 focus:text-sm focus:font-semibold focus:text-white">Skip to content</a> <!> <div id="content" class="flex-1"><!></div> <!></div></div>`,1);function vc(e,r){M(r,!0);let i=new Set(tt({projectCount:Qe.length,logCount:et.length})),a=[{href:`/`,label:`Overview`},{href:`/engineering`,label:`Engineering & Contracting`},{href:`/projects`,label:`Work`},{href:`/log/`,label:`Log`},{href:`/contact`,label:`Contact`}].filter(e=>i.has(e.href)),o=`xoxd.ai`,s=`https://xoxd.ai`,c=`${ce[`home-title`]}: ${ce[`home-tagline`]}`,l=ce[`home-thesis`],u=D(()=>ae.url.pathname.replace(/\/$/,``)===`/engineering`),d=D(()=>y(u)?`xoxd.ai Engineering & Contracting`:c),f=D(()=>y(u)?ce[`services-hardening-lede`]:l),p={"@context":`https://schema.org`,"@type":`WebSite`,"@id":`${s}/#website`,url:s,name:o,description:l,inLanguage:`en`};var m=_c(),h=V(m);un(h,{get title(){return y(d)},get description(){return y(f)},siteName:o,origin:s,get jsonLd(){return p}});var g=I(h,2);hc(g,{get config(){return gc}});var _=I(g,2),v=O(_);nn(v,{});var b=I(v,2);en(b,{});var x=I(b,2),S=I(O(x),2);ic(S,{get navLinks(){return a}});var C=I(S,2),w=O(C);t(w,()=>r.children??n),E(C),ms(I(C,2),{get navLinks(){return a}}),E(x),E(_),N(e,m),F()}export{vc as component,nt as universal};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.