PageSourceSearch

https://opengdp.network/_app/immutable/nodes/0.pOCtNLS2.js

js opengdp.network collected 2026-10-07 22:00:48 UTC 90,252 bytes, 46 lines download raw bytes

vendor: 4,498 bytes, line 1
1var qo=Object.defineProperty;var Xo=Object.getPrototypeOf;var Yo=Reflect.get;var Gr=n=>{throw TypeError(n)};var Qo=(n,t,e)=>t in n?qo(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var p=(n,t,e)=>Qo(n,typeof t!="symbol"?t+"":t,e),rr=(n,t,e)=>t.has(n)||Gr("Cannot "+e);var a=(n,t,e)=>(rr(n,t,"read from private field"),e?e.call(n):t.get(n)),x=(n,t,e)=>t.has(n)?Gr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),Z=(n,t,e,r)=>(rr(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),pt=(n,t,e)=>(rr(n,t,"access private method"),e);var Ur=(n,t,e)=>Yo(Xo(n),e,t);import{B as Zo,c as L,a as C,f as R,p as zt,e as Jo,t as $o}from"../chunks/x0RoEPa2.js";import{as as ti,h as ei,d as ni,b8 as ri,b as oi,w as vo,k as ht,x as ii,m as Qt,B as si,Q as ai,E as ci,b9 as ui,ba as li,bb as di,aL as mo,a$ as fi,y as hi,A as et,bc as vi,bd as mi,D as q,be as qr,ad as pi,g as u,G as P,az as de,p as B,f as O,a as W,t as nt,s as M,u as At,z as A,j as Et,c as k,r as S,bf as gi,H as Er,I as Nn,F as Ut,bg as bi,N as yi,bh as wi,b7 as xi,C as _i,a4 as Ci,bi as Ti,bj as Ei}from"../chunks/BZLW8lyd.js";import{b as or,s as Q,c as Ni,a as po}from"../chunks/D5JJthAF.js";import"../chunks/D4wgzmu4.js";import{k as Ai,i as $,p as E,l as qt,e as lt,s as Dt,j as Pi,o as gt,m as Si,u as Oi,r as ct,d as go}from"../chunks/BxzlnPNY.js";import{s as J,e as Tt,i as It,a as ki,b as mt}from"../chunks/CzCh2uMQ.js";import{i as Zn}from"../chunks/DRaQ5CtJ.js";import{u as bo,d as Nr,f as Mi,a as yo,h as Ii,m as wn,g as xn,i as Xr,j as Yr,k as Qr,n as _n,o as Zr,p as Ri,q as Jr,r as Di,I as Jn,s as se,e as he,v as Li,b as Fi,c as Lt,t as ji,w as Vi,x as Ki}from"../chunks/DX_wsRAv.js";import{p as ve,T as zi}from"../chunks/BIriY7Oa.js";import{c as Xt}from"../chunks/CUjvhzkK.js";import{o as Bi}from"../chunks/DNX8YGBc.js";function Wi(){return Symbol(ti)}function Hi(n,t,e){ei&&ni();var r=new Zo(n),o=!ri();oi(()=>{var i=t();o&&i!==null&&typeof i=="object"&&(i={}),r.ensure(i,e)})}function Gi(n,t,e){vo(()=>{var r=ht(()=>t(n,e==null?void 0:e())||{});if(e&&(r!=null&&r.update)){var o=!1,i={};ii(()=>{var s=e();Qt(s),o&&si(i,s)&&(i=s,r.update(s))}),o=!0}if(r!=null&&r.destroy)return()=>r.destroy()})}const Ui=()=>performance.now(),Rt={tick:n=>requestAnimationFrame(n),now:()=>Ui(),tasks:new Set};function wo(){const n=Rt.now();Rt.tasks.forEach(t=>{t.c(n)||(Rt.tasks.delete(t),t.f())}),Rt.tasks.size!==0&&Rt.tick(wo)}function qi(n){let t;return Rt.tasks.size===0&&Rt.tick(wo),{promise:new Promise(e=>{Rt.tasks.add(t={c:n,f:e})}),abort(){Rt.tasks.delete(t)}}}function Cn(n,t){mo(()=>{n.dispatchEvent(new CustomEvent(t))})}function Xi(n){if(n==="float")return"cssFloat";if(n==="offset")return"cssOffset";if(n.startsWith("--"))return n;const t=n.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(e=>e[0].toUpperCase()+e.slice(1)).join("")}function $r(n){const t={},e=n.split(";");for(const r of e){const[o,i]=r.split(":");if(!o||i===void 0)break;const s=Xi(o.trim());t[s]=i.trim()}return t}const Yi=n=>n;function ar(n,t,e,r){var o=(n&vi)!==0,i=(n&mi)!==0,s=o&&i,c=(n&di)!==0,l=s?"both":o?"in":"out",v,m=t.inert,y=t.style.overflow,g,w;function h(){return mo(()=>v??(v=e()(t,(r==null?void 0:r())??{},{direction:l})))}var d={is_global:c,in(){var T;if(t.inert=m,!o){w==null||w.abort(),(T=w==null?void 0:w.reset)==null||T.call(w);return}i||g==null||g.abort(),Cn(t,"introstart"),g=cr(t,h(),w,1,()=>{Cn(t,"introend"),g==null||g.abort(),g=v=void 0,t.style.overflow=y})},out(T){if(!i){T==null||T(),v=void 0;return}t.inert=!0,Cn(t,"outrostart"),w=cr(t,h(),g,0,()=>{Cn(t,"outroend"),T==null||T()})},stop:()=>{g==null||g.abort(),w==null||w.abort()}},f=ai;if((f.transitions??(f.transitions=[])).push(d),o&&Ai){var b=c;if(!b){for(var _=f.parent;_&&(_.f&ci)!==0;)for(;(_=_.parent)&&(_.f&ui)===0;);b=!_||(_.f&li)!==0}b&&vo(()=>{ht(()=>d.in())})}}function cr(n,t,e,r,o){var i=r===1;if(fi(t)){var s,c=!1;return hi(()=>{if(!c){var f=t({direction:i?"in":"out"});s=cr(n,f,e,r,o)}}),{abort:()=>{c=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(e==null||e.deactivate(),!(t!=null&&t.duration))return o(),{abort:et,deactivate:et,reset:et,t:()=>r};const{delay:l=0,css:v,tick:m,easing:y=Yi}=t;var g=[];if(i&&e===void 0&&(m&&m(0,1),v)){var w=$r(v(0,1));g.push(w,w)}var h=()=>1-r,d=n.animate(g,{duration:l,fill:"forwards"});return d.onfinish=()=>{d.cancel();var f=(e==null?void 0:e.t())??1-r;e==null||e.abort();var b=r-f,_=t.duration*Math.abs(b),T=[];
1if(_>0){var N=!1;if(v)for(var X=Math.ceil(_/16.666666666666668),z=0;z<=X;z+=1){var it=f+b*y(z/X),G=$r(v(it,1-it));T.push(G),N||(N=G.overflow==="hidden")}N&&(n.style.overflow="hidden"),h=()=>{var U=d.currentTime;return f+b*y(U/_)},m&&qi(()=>{if(d.playState!=="running")return!1;var U=h();return m(U,1-U),!0})}d=n.animate(T,{duration:_,fill:"forwards"}),d.onfinish=()=>{h=()=>r,m==null||m(r,1-r),o()}},{abort:()=>{d&&(d.cancel(),d.effect=null,d.onfinish=et)},deactivate:()=>{o=et},reset:()=>{r===0&&(m==null||m(1,0))},t:()=>h()}}var _t,Ct,St,kn,bt,fe,En;const Ir=class Ir extends Map{constructor(e){super();x(this,bt);x(this,_t,new Map);x(this,Ct,q(0));x(this,St,q(0));x(this,kn,qr||-1);if(e){for(var[r,o]of e)super.set(r,o);a(this,St).v=super.size}}has(e){var r=a(this,_t),o=r.get(e);if(o===void 0){var i=super.get(e);if(i!==void 0)o=pt(this,bt,fe).call(this,0),r.set(e,o);else return u(a(this,Ct)),!1}return u(o),!0}forEach(e,r){pt(this,bt,En).call(this),super.forEach(e,r)}get(e){var r=a(this,_t),o=r.get(e);if(o===void 0){var i=super.get(e);
1if(i!==void 0)o=pt(this,bt,fe).call(this,0),r.set(e,o);else{u(a(this,Ct));return}}return u(o),super.get(e)}set(e,r){var y;var o=a(this,_t),i=o.get(e),s=super.get(e),c=super.set(e,r),l=a(this,Ct);if(i===void 0)i=pt(this,bt,fe).call(this,0),o.set(e,i),P(a(this,St),super.size),de(l);else if(s!==r){de(i);var v=l.reactions===null?null:new Set(l.reactions),m=v===null||!((y=i.reactions)!=null&&y.every(g=>v.has(g)));m&&de(l)}return c}delete(e){var r=a(this,_t),o=r.get(e),i=super.delete(e);return o!==void 0&&(r.delete(e),P(a(this,St),super.size),P(o,-1),de(a(this,Ct))),i}clear(){if(super.size!==0){super.clear();var e=a(this,_t);P(a(this,St),0);for(var r of e.values())P(r,-1);de(a(this,Ct)),e.clear()}}keys(){return u(a(this,Ct)),super.keys()}values(){return pt(this,bt,En).call(this),super.values()}entries(){return pt(this,bt,En).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return u(a(this,St)),super.size}};_t=new WeakMap,Ct=new WeakMap,St=new WeakMap,kn=new WeakMap,bt=new WeakSet,fe=function(e){return qr===a(this,kn)?q(e):pi(e)},En=function(){u(a(this,Ct));var e=a(this,_t);if(a(this,St).v!==e.size){for(var r of Ur(Ir.prototype,this,"keys").call(this))if(!e.has(r)){var o=pt(this,bt,fe).call(this,0);e.set(r,o)}}for([,o]of a(this,_t))u(o)};let ur=Ir;var to=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Qi=/\n/g,Zi=/^\s*/,Ji=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$i=/^:\s*/,ts=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,es=/^[;\s]*/,ns=/^\s+|\s+$/g,rs=`
2`,eo="/",no="*",Wt="",os="comment",is="declaration";function ss(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function o(h){var d=h.match(Qi);d&&(e+=d.length);var f=h.lastIndexOf(rs);r=~f?h.length-f:r+h.length}function i(){var h={line:e,column:r};return function(d){return d.position=new s(h),v(),d}}function s(h){this.start=h,this.end={line:e,column:r},this.source=t.source}s.prototype.content=n;function c(h){var d=new Error(t.source+":"+e+":"+r+": "+h);if(d.reason=h,d.filename=t.source,d.line=e,d.column=r,d.source=n,!t.silent)throw d}function l(h){var d=h.exec(n);if(d){var f=d[0];return o(f),n=n.slice(f.length),d}}function v(){l(Zi)}function m(h){var d;for(h=h||[];d=y();)d!==!1&&h.push(d);return h}function y(){var h=i();if(!(eo!=n.charAt(0)||no!=n.charAt(1))){for(var d=2;Wt!=n.charAt(d)&&(no!=n.charAt(d)||eo!=n.charAt(d+1));)++d;if(d+=2,Wt===n.charAt(d-1))return c("End of comment missing");var f=n.slice(2,d-2);return r+=2,o(f),n=n.slice(d),r+=2,h({type:os,comment:f})}}function g(){var h=i(),d=l(Ji);if(d){if(y(),!l($i))return c("property missing ':'");var f=l(ts),b=h({type:is,property:ro(d[0].replace(to,Wt)),value:f?ro(f[0].replace(to,Wt)):Wt});return l(es),b}}function w(){var h=[];m(h);for(var d;d=g();)d!==!1&&(h.push(d),m(h));return h}return v(),w()}function ro(n){return n?n.replace(ns,Wt):Wt}function as(n,t){let e=null;if(!n||typeof n!="string")return e;const r=ss(n),o=typeof t=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:s,value:c}=i;o?t(s,c,i):c&&(e=e||{},e[s]=c)}),e}function Zt(){bo.current=Nr.current==="dark"?"light":"dark"}function cs(n){bo.current=n}function us(n){Mi.current=n}function ls({defaultMode:n="system",themeColors:t,darkClassNames:e=["dark"],lightClassNames:r=[],defaultTheme:o="",modeStorageKey:i="mode-watcher-mode",themeStorageKey:s="mode-watcher-theme"}){const c=document.documentElement,l=localStorage.getItem(i)??n,v=localStorage.getItem(s)??o,m=l==="light"||l==="system"&&window.matchMedia("(prefers-color-scheme: light)").matches;if(m?(e.length&&c.classList.remove(...e.filter(Boolean)),r.length&&c.classList.add(...r.filter(Boolean))):(r.length&&c.classList.remove(...r.filter(Boolean)),e.length&&c.classList.add(...e.filter(Boolean))),c.style.colorScheme=m?"light":"dark",t){const y=document.querySelector('meta[name="theme-color"]');y&&y.setAttribute("content",l==="light"?t.light:t.dark)}v&&(c.setAttribute("data-theme",v),localStorage.setItem(s,v)),localStorage.setItem(i,l)}var ds=R('<meta name="theme-color"/>');function fs(n,t){B(t,!0);var e=L(),r=O(e);{var o=i=>{var s=ds();nt(()=>
2J(s,"content",t.themeColors.dark)),C(i,s)};$(r,i=>{t.themeColors&&i(o)})}C(n,e),W()}var hs=R('<meta name="theme-color"/>'),vs=R("<!> <!>",1);function ms(n,t){B(t,!0);let e=E(t,"trueNonce",3,"");yo("1funsus",r=>{var o=vs(),i=O(o);{var s=l=>{var v=hs();nt(()=>J(v,"content",t.themeColors.dark)),C(l,v)};$(i,l=>{t.themeColors&&l(s)})}var c=M(i,2);Ii(c,()=>`<script${e()?` nonce=${e()}`:""}>(`+ls.toString()+")("+JSON.stringify(t.initConfig)+");<\/script>"),C(r,o)}),W()}function ps(n,t){B(t,!0);let e=E(t,"track",3,!0),r=E(t,"defaultMode",3,"system"),o=E(t,"disableTransitions",3,!0),i=E(t,"darkClassNames",19,()=>["dark"]),s=E(t,"lightClassNames",19,()=>[]),c=E(t,"defaultTheme",3,""),l=E(t,"nonce",3,""),v=E(t,"themeStorageKey",3,"mode-watcher-theme"),m=E(t,"modeStorageKey",3,"mode-watcher-mode"),y=E(t,"disableHeadScriptInjection",3,!1),g=E(t,"synchronousModeChanges",3,!1);wn.current=m(),xn.current=v(),Xr.current=i(),Yr.current=s(),Qr.current=o(),_n.current=t.themeColors,Zr.current=g(),At(()=>{Zr.current=g()}),At(()=>{Qr.current=o()}),At(()=>{_n.current=t.themeColors}),At(()=>{Xr.current=i()}),At(()=>{Yr.current=s()}),At(()=>{wn.current=m()}),At(()=>{xn.current=v()}),At(()=>{Nr.current,wn.current,xn.current,Ri.current}),Bi(()=>{Jr.tracking(e()),Jr.query();const T=localStorage.getItem(wn.current);cs(Di(T)?T:r());const N=localStorage.getItem(xn.current);us(N||c())});const w={defaultMode:r(),themeColors:t.themeColors,darkClassNames:i(),lightClassNames:s(),defaultTheme:c(),modeStorageKey:m(),themeStorageKey:v()},h=A(()=>typeof window>"u"?l():"");var d=L(),f=O(d);{var b=T=>{fs(T,{get themeColors(){return _n.current}})},_=T=>{ms(T,{get trueNonce(){return u(h)},get initConfig(){return w},get themeColors(){return _n.current}})};$(f,T=>{y()?T(b):T(_,!1)})}C(n,d),W()}var gs=R('<a href="/" class="max-w-[170px]"><img fetchpriority="high" class="w-fit min-w-0" alt="logo"/></a>');function xo(n,t){B(t,!0);let e=E(t,"path",7,"/logo.svg");Et(()=>{Nr.current==="dark"?e("/logo_dark.svg"):e("/logo.svg")});var r=gs(),o=k(r);S(r),nt(()=>J(o,"src",e())),C(n,r),W()}function bs(n,t){const e=qt(t,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M4 8l16 0"}],["path",{d:"M4 16l16 0"}]];Jn(n,lt({type:"outline",name:"menu"},()=>e,{get iconNode(){return r},children:(o,i)=>{var s=L(),c=O(s);se(c,t,"default",{}),C(o,s)},$$slots:{default:!0}}))}function _o(n,t){const e=qt(t,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M12 3c.132 0 .263 0 .393 0a7.5 7.5 0 0 0 7.92 12.446a9 9 0 1 1 -8.313 -12.454z"}]];Jn(n,lt({type:"outline",name:"moon"},()=>e,{get iconNode(){return r},children:(o,i)=>{var s=L(),c=O(s);se(c,t,"default",{}),C(o,s)},$$slots:{default:!0}}))}function Co(n,t){const e=qt(t,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M12 12m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"}],["path",{d:"M3 12h1m8 -9v1m8 8h1m-9 8v1m-6.4 -15.4l.7 .7m12.1 -.7l-.7 .7m0 11.4l.7 .7m-12.1 -.7l-.7 .7"}]];Jn(n,lt({type:"outline",name:"sun"},()=>e,{get iconNode(){return r},children:(o,i)=>{var s=L(),c=O(s);se(c,t,"default",{}),C(o,s)},$$slots:{default:!0}}))}function ys(n,t){const e=qt(t,["children","$$slots","$$events","$$legacy"]),r=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];Jn(n,lt({type:"outline",name:"x"},()=>e,{get iconNode(){return r},children:(o,i)=>{var s=L(),c=O(s);se(c,t,"default",{}),C(o,s)},$$slots:{default:!0}}))}var ws=R('<a class="text-sm hover:underline"> </a>'),xs=R('<div class="flex flex-col"><p class="text-fg mb-4 text-sm font-medium"> </p> <div class="flex flex-col gap-2"></div></div>'),_s=R('<a target="_blank" class="hover:text-fg transition-opacity"><!></a>'),Cs=R('<a class="text-sm hover:underline"> </a>'),Ts=R('<div class="from-primary to-secondary h-[3px] max-w-full rounded-full bg-gradient-to-r"></div>'),Es=R('<div class="contain text-muted mb-40 flex w-full flex-col items-center justify-center"><footer class="rounded-site bg-bg border-border flex w-full flex-col gap-10 border p-12 px-10"><div class="flex flex-col justify-between gap-10 md:flex-row"><div class="mb-4 flex flex-col"><!> <p class="mt-6 text-sm"> </p></div> <div class="flex flex-wrap gap-10"></div></div> <div class="flex flex-col gap-10"><div class="flex gap-3"></div> <div class="flex gap-3"></div></div></footer> <div class="flex w-full flex-col items-center gap-2"></div></div>');function Ns(n,t){B(t,!1),Zn();var e=Es(),r=k(e),o=k(r),i=k(o),s=k(i);xo(s,{path:"/logo.svg"});var c=M(s,2),l=k(c);S(c),S(i);var v=M(i,2);Tt(v,5,()=>he.footer.groups.filter(h=>h.title!=="Legal"),It,(h,d)=>{var f=xs(),b=k(f),_=k(b,!0);S(b);var T=M(b,2);Tt(T,5,()=>u(d).links,It,(N,X)=>{var z=ws(),it=k(z,!0);S(z),nt(()=>{J(z,"href",u(X).href),Dt(it,u(X).title)}),C(N,z)}),S(T),S(f),nt(()=>Dt(_,u(d).title)),C(h,f)}),S(v),S(o);var m=M(o,2),y=k(m);Tt(y,5,()=>Li,It,(h,d)=>{let f=()=>u(d).icon,b=()=>u(d).href;var _=_s(),T=k(_);f()(T,{class:"h-6 w-6"}),S(_),nt(()=>J(_,"href",b())),C(h,_)}),S(y);var g=M(y,2);Tt(g,4,()=>["Privacy Policy","Terms of Service"],It,(h,d)=>{var f=Cs(),b=k(f,!0);S(f),nt(()=>{J(f,"href",he.links[d].href),Dt(b,d)}),C(h,f)}),S(g),S(m),S(r);var w=M(r,2);Tt(w,4,()=>({length:5}),It,(h,d,f)=>{var b=Ts();ki(b,`width: ${170/f}%`),C(h,b)}),S(w),S(e),nt(h=>Dt(l,`© ${h??""}
3					${he.name} Foundation. All rights reserved.`),[()=>new Date().getFullYear()]),C(n,e),W()}var As=R('<meta name="title"/> <meta name="description"/> <meta property="og:type"/> <meta property="og:site_name" content="OpenGDP"/> <meta property="og:url"/> <meta property="og:title"/> <meta property="og:description"/> <meta property="og:image"/> <meta property="twitter:card" content="summary_large_image"/> <meta property="twitter:url"/> <meta property="twitter:title"/> <meta property="twitter:description"/> <meta property="twitter:image"/>',1);function Ps(n,t){B(t,!0);const e="OpenGDP - The Global Base Layer for Programmable GDP",r="The Global Base Layer for Programmable GDP.",o="https://imagedelivery.net/sup2qa56KpsI1jnV0C1g4g/d19f0192-b735-4fa9-b7be-e85122261c00/public",i=A(()=>ve.data.meta??{}),s=A(()=>ve.url.origin),c=A(()=>u(i).title??e),l=A(()=>u(i).description??r),v=A(()=>u(i).image?u(i).image.startsWith("http")?u(i).image:`${u(s)}${u(i).image}`:o),m=A(()=>`${u(s)}${ve.url.pathname}`),y=A(()=>u(i).ogType??"website");yo("dtd66p",g=>
3{var w=As(),h=O(w),d=M(h,2),f=M(d,2),b=M(f,4),_=M(b,2),T=M(_,2),N=M(T,2),X=M(N,4),z=M(X,2),it=M(z,2),G=M(it,2);nt(()=>{J(h,"content",u(c)),J(d,"content",u(l)),J(f,"content",u(y)),J(b,"content",u(m)),J(_,"content",u(c)),J(T,"content",u(l)),J(N,"content",u(v)),J(X,"content",u(m)),J(z,"content",u(c)),J(it,"content",u(l)),J(G,"content",u(v))}),nt(()=>{gi.title=u(c)??""},void 0,void 0,void 0,!0),C(g,w)}),W()}const ir=(n,t)=>{const e=r=>{t.shortcuts.forEach(o=>{const i=s=>{var c;return((c=o.modifiers)==null?void 0:c[s])===void 0||o.modifiers[s]===r[s]};r.code===o.code&&i("ctrlKey")&&i("altKey")&&i("shiftKey")&&i("metaKey")&&(r.preventDefault(),o.callback())})};return window.addEventListener("keydown",e),{destroy(){window.removeEventListener("keydown",e)}}},oo=Symbol();var ge;class Ar{constructor(t){x(this,ge,q(!1));t&&(this.isOpen=t.isOpen),Er(oo,this)}get isOpen(){return u(a(this,ge))}set isOpen(t){P(a(this,ge),t,!0)}static get(){return Nn(oo)}toggle(){this.isOpen=!this.isOpen}open(){this.isOpen=!0}close(){this.isOpen=!1}}ge=new WeakMap;const Ss=n=>n;function Os(n){const t=n-1;return t*t*t+1}function io(n){const t=typeof n=="string"&&n.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[n,"px"]}function so(n,{delay:t=0,duration:e=400,easing:r=Ss}={}){const o=+getComputedStyle(n).opacity;return{delay:t,duration:e,easing:r,css:i=>`opacity: ${i*o}`}}function ks(n,{delay:t=0,duration:e=400,easing:r=Os,x:o=0,y:i=0,opacity:s=0}={}){const c=getComputedStyle(n),l=+c.opacity,v=c.transform==="none"?"":c.transform,m=l*(1-s),[y,g]=io(o),[w,h]=io(i);return{delay:t,duration:e,easing:r,css:(d,f)=>`
4			transform: ${v} translate(${(1-d)*y}${g}, ${(1-d)*w}${h});
5			opacity: ${l-m*f}`}}var Ms=R('<a class="hover:text-fg py-1"> </a>'),Is=R('<div class="flex flex-col gap-4 pb-6"><p class="text-muted font-medium uppercase"> </p> <div class="flex flex-col gap-1"></div></div>'),Rs=R('<div class="contain bg-body fixed top-[4rem] right-0 bottom-0 left-0 z-50 flex h-screen min-w-min flex-col pt-8 pb-20"><div class="flex flex-col items-start gap-4 *:w-full *:text-left"><div class="divide-border flex flex-col gap-8 divide-y"><a href="/#solutions" class="hover:text-fg pb-8">Solutions</a> <a href="/#products" class="hover:text-fg pb-8">Platform</a> <!></div></div></div>');function Ds(n,t){B(t,!0);let e=q(320);const r=Ar.get();Et(()=>{u(e)>870&&r.close()}),Et(()=>{ve.url.href&&r.close()}),Et(()=>{r.isOpen?document.body.classList.add("no-doc-scroll"):r.isOpen||document.body.classList.remove("no-doc-scroll")});var o=L(),i=O(o);{var s=c=>{var l=Rs(),v=k(l),m=k(v),y=M(k(m),4);Tt(y,17,()=>he.nav.groups.filter(g=>!["Platform","Solutions"].includes(g.title)),It,(g,w)=>{var h=Is(),d=k(h),f=k(d,!0);S(d);var b=M(d,2);Tt(b,21,()=>u(w).links,It,(_,T)=>{var N=Ms(),X=k(N,!0);S(N),nt(()=>{J(N,"href",u(T).href),Dt(X,u(T).title)}),C(_,N)}),S(b),S(h),nt(()=>Dt(f,u(w).title)),C(g,h)}),S(m),S(v),S(l),Gi(l,(g,w)=>ir==null?void 0:ir(g,w),()=>({shortcuts:[{code:"Escape",callback:()=>{r.close()}}]})),ar(3,l,()=>ks,()=>({y:500})),C(c,l)};$(i,c=>{r.isOpen&&c(s)})}Fi("innerWidth",c=>P(e,c,!0)),C(n,o),W()}function Ls(n){return typeof n=="function"}function gn(n){return n!==null&&typeof n=="object"}const Fs=["string","number","bigint","boolean"];function lr(n){return n==null||Fs.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>lr(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const oe=Symbol("box"),$n=Symbol("is-writable");function I(n,t){const e=A(n);return t?{[oe]:!0,[$n]:!0,get current(){return u(e)},set current(r){t(r)}}:{[oe]:!0,get current(){return n()}}}function bn(n){return gn(n)&&oe in n}function Pr(n){return bn(n)&&$n in n}function js(n){return bn(n)?n:Ls(n)?I(n):ft(n)}function Vs(n){return Object.entries(n).reduce((t,[e,r])=>bn(r)?(Pr(r)?Object.defineProperty(t,e,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,e,{get(){return r.current}}),t):Object.assign(t,{[e]:r}),{})}function Ks(n){return Pr(n)?{[oe]:!0,get current(){return n.current}}:n}function ft(n){let t=q(Ut(n));
5return{[oe]:!0,[$n]:!0,get current(){return u(t)},set current(e){P(t,e,!0)}}}function Yt(n){let t=q(Ut(n));return{[oe]:!0,[$n]:!0,get current(){return u(t)},set current(e){P(t,e,!0)}}}Yt.from=js;Yt.with=I;Yt.flatten=Vs;Yt.readonly=Ks;Yt.isBox=bn;Yt.isWritableBox=Pr;function zs(...n){return function(t){var e;for(const r of n)if(r){if(t.defaultPrevented)return;typeof r=="function"?r.call(this,t):(e=r.current)==null||e.call(this,t)}}}const Bs=/\d/,Ws=["-","_","/","."];function Hs(n=""){if(!Bs.test(n))return n!==n.toLowerCase()}function Gs(n){const t=[];let e="",r,o;for(const i of n){const s=Ws.includes(i);if(s===!0){t.push(e),e="",r=void 0;continue}const c=Hs(i);if(o===!1){if(r===!1&&c===!0){t.push(e),e=i,r=c;continue}if(r===!0&&c===!1&&e.length>1){const l=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=l+i,r=c;continue}}e+=i,r=c,o=s}return t.push(e),t}function To(n){return n?Gs(n).map(t=>qs(t)).join(""):""}function Us(n){return Xs(To(n||""))}function qs(n){return n?n[0].toUpperCase()+n.slice(1):""}function Xs(n){return n?n[0].toLowerCase()+n.slice(1):""}function Tn(n){if(!n)return{};const t={};function e(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[To(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Us(r)]=o}return as(n,e),t}function me(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Ys(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const Qs=Ys(/[A-Z]/,n=>`-${n.toLowerCase()}`);function Zs(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${Qs(t)}: ${n[t]};`).join(`
6`)}function Js(n={}){return Zs(n).replace(`
7`," ")}const $s=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],ta=new Set($s);function ea(n){return ta.has(n)}function yt(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const o of Object.keys(r)){const i=t[o],s=r[o],c=typeof i=="function",l=typeof s=="function";if(c&&ea(o)){const v=i,m=s;t[o]=zs(v,m)}else if(c&&l)t[o]=me(i,s);else if(o==="class"){const v=lr(i),m=lr(s);v&&m?t[o]=or(i,s):v?t[o]=or(i):m&&(t[o]=or(s))}else if(o==="style"){const v=typeof i=="object",m=typeof s=="object",y=typeof i=="string",g=typeof s=="string";if(v&&m)t[o]={...i,...s};else if(v&&g){const w=Tn(s);t[o]={...i,...w}}else if(y&&m){const w=Tn(i);t[o]={...w,...s}}else if(y&&g){const w=Tn(i),h=Tn(s);t[o]={...w,...h}}else v?t[o]=i:m?t[o]=s:y?t[o]=i:g&&(t[o]=s)}else t[o]=s!==void 0?s:i}for(const o of Object.getOwnPropertySymbols(r)){const i=t[o],s=r[o];t[o]=s!==void 0?s:i}}}return typeof t.style=="object"&&(t.style=Js(t.style).replaceAll(`
8`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const na=typeof window<"u"?window:void 0;function ra(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var Jt,be;class oa{constructor(t={}){x(this,Jt);x(this,be);const{window:e=na,document:r=e==null?void 0:e.document}=t;e!==void 0&&(Z(this,Jt,r),Z(this,be,Pi(o=>{const i=gt(e,"focusin",o),s=gt(e,"focusout",o);return()=>{i(),s()}})))}get current(){var t;return(t=a(this,be))==null||t.call(this),a(this,Jt)?ra(a(this,Jt)):null}}Jt=new WeakMap,be=new WeakMap;new oa;function ia(n){return typeof n=="function"}function sa(n,t){if(ia(n)){const r=n();return r===void 0?t:r}return n===void 0?t:n}var ye,Ot;class ae{constructor(t){x(this,ye);x(this,Ot);Z(this,ye,t),Z(this,Ot,Symbol(t))}get key(){return a(this,Ot)}exists(){return bi(a(this,Ot))}get(){const t=Nn(a(this,Ot));if(t===void 0)throw new Error(`Context "${a(this,ye)}" not found`);return t}getOr(t){const e=Nn(a(this,Ot));return e===void 0?t:e}set(t){return Er(a(this,Ot),t)}}ye=new WeakMap,Ot=new WeakMap;function aa(n,t){let e=q(null);const r=A(()=>sa(t,250));function o(...i){if(u(e))u(e).timeout&&clearTimeout(u(e).timeout);else{let s,c;const l=new Promise((v,m)=>{s=v,c=m});P(e,{timeout:null,runner:null,promise:l,resolve:s,reject:c},!0)}return u(e).runner=async()=>
8{if(!u(e))return;const s=u(e);P(e,null);try{s.resolve(await n.apply(this,i))}catch(c){s.reject(c)}},u(e).timeout=setTimeout(u(e).runner,u(r)),u(e).promise}return o.cancel=async()=>{(!u(e)||u(e).timeout===null)&&(await new Promise(i=>setTimeout(i,0)),!u(e)||u(e).timeout===null)||(clearTimeout(u(e).timeout),u(e).reject("Cancelled"),P(e,null))},o.runScheduledNow=async()=>{var i,s;(!u(e)||!u(e).timeout)&&(await new Promise(c=>setTimeout(c,0)),!u(e)||!u(e).timeout)||(clearTimeout(u(e).timeout),u(e).timeout=null,await((s=(i=u(e)).runner)==null?void 0:s.call(i)))},Object.defineProperty(o,"pending",{enumerable:!0,get(){var i;return!!((i=u(e))!=null&&i.timeout)}}),o}function ca(n,t){switch(n){case"post":Et(t);break;case"pre":At(t);break}}function Eo(n,t,e,r={}){const{lazy:o=!1}=r;let i=!o,s=Array.isArray(n)?[]:void 0;ca(t,()=>{const c=Array.isArray(n)?n.map(v=>v()):n();if(!i){i=!0,s=c;return}const l=ht(()=>e(c,s));return s=c,l})}function wt(n,t,e){Eo(n,"post",t,e)}function ua(n,t,e){Eo(n,"pre",t,e)}wt.pre=ua;var we,Mn;class la{constructor(t,e){x(this,we,()=>{});x(this,Mn,A(()=>a(this,we).call(this)));let r;e!==void 0&&(r=e),Z(this,we,()=>{try{return r}finally{r=t()}})}get current(){return u(a(this,Mn))}}we=new WeakMap,Mn=new WeakMap;function da(n){Et(()=>()=>{n()})}function fa(n){Et(()=>ht(()=>n()))}function No(n,t){return setTimeout(t,n)}function Ao(n){yi().then(n)}const ha=1,va=9,ma=11;function pa(n){return gn(n)&&n.nodeType===ha&&typeof n.nodeName=="string"}function Po(n){return gn(n)&&n.nodeType===va}function ga(n){var t;return gn(n)&&((t=n.constructor)==null?void 0:t.name)==="VisualViewport"}function ba(n){return gn(n)&&n.nodeType!==void 0}function ya(n){return ba(n)&&n.nodeType===ma&&"host"in n}function So(n){return Po(n)?n:ga(n)?n.document:(n==null?void 0:n.ownerDocument)??document}function Sr(n){var t;return ya(n)?Sr(n.host):Po(n)?n.defaultView??window:pa(n)?((t=n.ownerDocument)==null?void 0:t.defaultView)??window:window}function wa(n){let t=n.activeElement;for(;t!=null&&t.shadowRoot;){const e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var xe;class Or{constructor(t){p(this,"element");x(this,xe,A(()=>this.element.current?this.element.current.getRootNode()??document:document));p(this,"getDocument",()=>So(this.root));p(this,"getWindow",()=>this.getDocument().defaultView??window);p(this,"getActiveElement",()=>wa(this.root));p(this,"isActiveElement",t=>t===this.getActiveElement());p(this,"querySelector",t=>this.root?this.root.querySelector(t):null);p(this,"querySelectorAll",t=>this.root?this.root.querySelectorAll(t):[]);p(this,"setTimeout",(t,e)=>this.getWindow().setTimeout(t,e));p(this,"clearTimeout",t=>this.getWindow().clearTimeout(t));typeof t=="function"?this.element=I(t):this.element=t}get root(){return u(a(this,xe))}set root(t){P(a(this,xe),t)}getElementById(t){return this.root.getElementById(t)}}xe=new WeakMap;function Nt(n,t){return{[Wi()]:e=>bn(n)?(n.current=e,ht(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n.current=null,t==null||t(null))}):(n(e),ht(()=>t==null?void 0:t(e)),()=>{"isConnected"in e&&e.isConnected||(n(null),t==null||t(null))})}}function xa(n){return n?"true":"false"}function _a(n){return n?"":void 0}function kr(n){return n?"open":"closed"}var $t,_e;class Ca{constructor(t){x(this,$t);x(this,_e);p(this,"attrs");Z(this,$t,t.getVariant?t.getVariant():null),Z(this,_e,a(this,$t)?`data-${a(this,$t)}-`:`data-${t.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(e=>[e,this.getAttr(e)]))}getAttr(t,e){return e?`data-${e}-${t}`:`${a(this,_e)}${t}`}selector(t,e){return`[${this.getAttr(t,e)}]`}}$t=new WeakMap,_e=new WeakMap;function Oo(n){const t=new Ca(n);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const An="ArrowDown",tr="ArrowLeft",er="ArrowRight",dr="ArrowUp",Ta="End",Ea="Escape",Na="Home",Aa="Tab";function Pa(n){return window.getComputedStyle(n).getPropertyValue("direction")}function Sa(n="ltr",t="horizontal"){return{horizontal:n==="rtl"?tr:er,vertical:An}[t]}function Oa(n="ltr",t="horizontal"){return{horizontal:n==="rtl"?er:tr,vertical:dr}[t]}function ka(n="ltr",t="horizontal"){return["ltr","rtl"].includes(n)||(n="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:Sa(n,t),prevKey:Oa(n,t)}}const Ma=typeof document<"u";function Ia(n){return n instanceof HTMLElement}function Ra(n){return n instanceof Element}function Da(n){return n instanceof Element||n instanceof SVGElement}var at,kt;class La{constructor(t){x(this,at);x(this,kt,Yt(null));Z(this,at,t)}getCandidateNodes(){return a(this,at).rootNode.current?a(this,at).candidateSelector?Array.from(a(this,at).rootNode.current.querySelectorAll(a(this,at).candidateSelector)):a(this,at).candidateAttr?Array.from(a(this,at).rootNode.current.querySelectorAll(`[${a(this,at).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var e;const t=this.getCandidateNodes();t.length&&((e=t[0])==null||e.focus())}handleKeydown(t,e,r=!1){var h,d;const o=a(this,at).rootNode.current;if(!o||!t)return;const i=this.getCandidateNodes();if(!i.length)return;const s=i.indexOf(t),c=Pa(o),{nextKey:l,prevKey:v}=ka(c,a(this,at).orientation.current),m=a(this,at).loop.current,y={[l]:s+1,[v]:s-1,[Na]:0,[Ta]:i.length-1};if(r){const f=l===An?er:An,b=v===dr?tr:dr;y[f]=s+1,y[b]=s-1}let g=y[e.key];if(g===void 0)return;e.preventDefault(),g<0&&m?g=i.length-1:g===i.length&&m&&(g=0);const w=i[g];if(w)return w.focus(),a(this,kt).current=w.id,(d=(h=a(this,at)).onCandidateFocus)==null||d.call(h,w),w}getTabIndex(t){const e=this.getCandidateNodes(),r=a(this,kt).current!==null;return t&&!r&&e[0]===t?(a(this,kt).current=t.id,0):(t==null?void 0:t.id)===a(this,kt).current?0:-1}setCurrentTabStopId(t){a(this,kt).current=t}focusCurrentTabStop(){var r;const t=a(this,kt).current;if(!t)return;const e=(r=a(this,at).rootNode.current)==null?void 0:r.querySelector(`#${t}`);!e||!Ia(e)||e.focus()}}at=new WeakMap,kt=new WeakMap;function tt(){}function Bt(n,t){return`bits-${n}`}function Fa(n,t){var e=L(),r=O(e);Hi(r,()=>t.children,o=>{var i=L(),s=O(i);Q(s,()=>t.children??et),C(o,i)}),C(n,e)}const ja=new ae("BitsConfig");function Va(){const n=new Ka(null,{});return ja.getOr(n).opts}class Ka{constructor(t,e){p(this,"opts");const r=za(t,e);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function za(n,t){return e=>I(()=>{var i,s;const o=(i=e(t))==null?void 0:i.current;if(o!==void 0)return o;if(n!==null)return(s=e(n.opts))==null?void 0:s.current})}function Ba(n,t){return e=>{const r=Va();return I(()=>{const o=e();if(o!==void 0)return o;const i=n(r).current;return i!==void 0?i:t})}}const Wa=Ba(n=>n.defaultPortalTo,"body");function Ha(n,t){B(t,!0);const e=Wa(()=>t.to),r=wi();let o=A(i);function i(){if(!Ma||t.disabled)return null;let y=null;return typeof e.current=="string"?y=document.querySelector(e.current):y=e.current,y}let s;
8function c(){s&&(Oi(s),s=null)}wt([()=>u(o),()=>t.disabled],([y,g])=>{if(!y||g){c();return}return s=Si(Fa,{target:y,props:{children:t.children},context:r}),()=>{c()}});var l=L(),v=O(l);{var m=y=>{var g=L(),w=O(g);Q(w,()=>t.children??et),C(y,g)};$(v,y=>{t.disabled&&y(m)})}C(n,l),W()}class ko{constructor(t,e={bubbles:!0,cancelable:!0}){p(this,"eventName");p(this,"options");this.eventName=t,this.options=e}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,e){const r=this.createEvent(e);return t.dispatchEvent(r),r}listen(t,e,r){const o=i=>{e(i)};return gt(t,this.eventName,o,r)}}function ao(n,t=500){let e=null;const r=(...o)=>{e!==null&&clearTimeout(e),e=setTimeout(()=>{n(...o)},t)};return r.destroy=()=>{e!==null&&(clearTimeout(e),e=null)},r}function Mo(n,t){return n===t||n.contains(t)}function Io(n){return(n==null?void 0:n.ownerDocument)??document}function Ga(n,t){const{clientX:e,clientY:r}=n,o=t.getBoundingClientRect();return e<o.left||e>o.right||r<o.top||r>o.bottom}function fr(n){const t=[],r=So(n).createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}const Ua={afterMs:1e4,onChange:tt};function Ro(n,t){const{afterMs:e,onChange:r,getWindow:o}={...Ua,...t};let i=null,s=q(Ut(n));function c(){return o().setTimeout(()=>{P(s,n,!0),r==null||r(n)},e)}return Et(()=>()=>{i&&o().clearTimeout(i)}),I(()=>u(s),l=>{P(s,l,!0),r==null||r(l),i&&o().clearTimeout(i),i=c()})}const qa="data-context-menu-trigger",Xa="data-context-menu-content";Oo({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var te,Ht,Vt,ee,ne,Kt,Ce,Mt,In,ie,Do,Rn,re,Dn,Ln,Fn,jn,Te,Lo,Vn,Kn;const Rr=class Rr{constructor(t){x(this,ie);p(this,"opts");x(this,te);x(this,Ht);x(this,Vt,{pointerdown:!1});x(this,ee,!1);x(this,ne,!1);x(this,Kt);x(this,Ce);x(this,Mt,tt);x(this,In,t=>{t.defaultPrevented||this.opts.ref.current&&Ao(()=>{var e,r;!this.opts.ref.current||a(this,jn).call(this,t.target)||t.target&&!a(this,ne)&&((r=(e=a(this,Ce)).current)==null||r.call(e,t))})});x(this,Rn,t=>{let e=t;e.defaultPrevented&&(e=co(t)),a(this,te).current(t)});x(this,re,ao(t=>{if(!this.opts.ref.current){a(this,Mt).call(this);return}const e=this.opts.isValidEvent.current(t,this.opts.ref.current)||Za(t,this.opts.ref.current);if(!a(this,ee)||pt(this,ie,Lo).call(this)||!e){a(this,Mt).call(this);return}let r=t;if(r.defaultPrevented&&(r=co(r)),a(this,Ht).current!=="close"&&a(this,Ht).current!=="defer-otherwise-close"){a(this,Mt).call(this);return}t.pointerType==="touch"?(a(this,Mt).call(this),Z(this,Mt,gt(a(this,Kt),"click",a(this,Rn),{once:!0}))):a(this,te).current(r)},10));x(this,Dn,t=>{a(this,Vt)[t.type]=!0});x(this,Ln,t=>{a(this,Vt)[t.type]=!1});x(this,Fn,()=>{this.opts.ref.current&&Z(this,ee,Qa(this.opts.ref.current))});x(this,jn,t=>this.opts.ref.current?Mo(this.opts.ref.current,t):!1);x(this,Te,ao(()=>{for(const t in a(this,Vt))a(this,Vt)[t]=!1;Z(this,ee,!1)},20));x(this,Vn,()=>{Z(this,ne,!0)});x(this,Kn,()=>{Z(this,ne,!1)});p(this,"props",{onfocuscapture:a(this,Vn),onblurcapture:a(this,Kn)});this.opts=t,Z(this,Ht,t.interactOutsideBehavior),Z(this,te,t.onInteractOutside),Z(this,Ce,t.onFocusOutside),Et(()=>{Z(this,Kt,Io(this.opts.ref.current))});let e=tt;const r=()=>{a(this,Te).call(this),globalThis.bitsDismissableLayers.delete(this),a(this,re).destroy(),e()};wt([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return No(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,a(this,Ht)),e(),e=pt(this,ie,Do).call(this))}),r}),da(()=>{a(this,Te).destroy(),globalThis.bitsDismissableLayers.delete(this),a(this,re).destroy(),a(this,Mt).call(this),e()})}static create(t){return new Rr(t)}};te=new WeakMap,Ht=new WeakMap,Vt=new WeakMap,ee=new WeakMap,ne=new WeakMap,Kt=ne
8w WeakMap,Ce=new WeakMap,Mt=new WeakMap,In=new WeakMap,ie=new WeakSet,Do=function(){return me(gt(a(this,Kt),"pointerdown",me(a(this,Dn),a(this,Fn)),{capture:!0}),gt(a(this,Kt),"pointerdown",me(a(this,Ln),a(this,re))),gt(a(this,Kt),"focusin",a(this,In)))},Rn=new WeakMap,re=new WeakMap,Dn=new WeakMap,Ln=new WeakMap,Fn=new WeakMap,jn=new WeakMap,Te=new WeakMap,Lo=function(){return Object.values(a(this,Vt)).some(Boolean)},Vn=new WeakMap,Kn=new WeakMap;let hr=Rr;function Ya(n=[...globalThis.bitsDismissableLayers]){return n.findLast(([t,{current:e}])=>e==="close"||e==="ignore")}function Qa(n){const t=[...globalThis.bitsDismissableLayers],e=Ya(t);if(e)return e[0].opts.ref.current===n;const[r]=t[0];return r.opts.ref.current===n}function Za(n,t){const e=n.target;if(!Da(e))return!1;const r=!!e.closest(`[${qa}]`);if("button"in n&&n.button>0&&!r)return!1;if("button"in n&&n.button===0&&r)return!0;const o=!!t.closest(`[${Xa}]`);return r&&o?!1:Io(e).documentElement.contains(e)&&!Mo(t,e)&&Ga(n,t)}function co(n){const t=n.currentTarget,e=n.target;let r;n instanceof PointerEvent?r=new PointerEvent(n.type,n):r=new PointerEvent("pointerdown",n);let o=!1;return new Proxy(r,{get:(s,c)=>c==="currentTarget"?t:c==="target"?e:c==="preventDefault"?()=>{o=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:c==="defaultPrevented"?o:c in s?s[c]:n[c]})}function Ja(n,t){B(t,!0);let e=E(t,"interactOutsideBehavior",3,"close"),r=E(t,"onInteractOutside",3,tt),o=E(t,"onFocusOutside",3,tt),i=E(t,"isValidEvent",3,()=>!1);const s=hr.create({id:I(()=>t.id),interactOutsideBehavior:I(()=>e()),onInteractOutside:I(()=>r()),enabled:I(()=>t.enabled),onFocusOutside:I(()=>o()),isValidEvent:I(()=>i()),ref:t.ref});var c=L(),l=O(c);Q(l,()=>t.children??et,()=>({props:s.props})),C(n,c),W()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var zn,Bn;const Dr=class Dr{constructor(t){p(this,"opts");p(this,"domContext");x(this,zn,()=>gt(this.domContext.getDocument(),"keydown",a(this,Bn),{passive:!1}));x(this,Bn,t=>{if(t.key!==Ea||!$a(this))return;const e=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(e)});this.opts=t,this.domContext=new Or(this.opts.ref);let e=tt;wt(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),e=a(this,zn).call(this)),()=>{e(),globalThis.bitsEscapeLayers.delete(this)}))}static create(t){return new Dr(t)}};zn=new WeakMap,Bn=new WeakMap;let vr=Dr;function $a(n){const t=[...globalThis.bitsEscapeLayers],e=t.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(e)return e[0]===n;const[r]=t[0];return r===n}function tc(n,t){B(t,!0);let e=E(t,"escapeKeydownBehavior",3,"close"),r=E(t,"onEscapeKeydown",3,tt);vr.create({escapeKeydownBehavior:I(()=>e()),onEscapeKeydown:I(()=>r()),enabled:I(()=>t.enabled),ref:t.ref});var o=L(),i=O(o);Q(i,()=>t.children??et),C(n,o),W()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Fo(n="bits"){return globalThis.bitsIdCounter.current++,`${n}-${globalThis.bitsIdCounter.current}`}function pe(n,t){B(t,!0);let e=E(t,"mounted",15,!1),r=E(t,"onMountedChange",3,tt);fa(()=>(e(!0),r()(!0),()=>{e(!1),r()(!1)})),W()}const ec=["INPUT","TEXTAREA"];function nc(n,t,e,r){if(!t||ec.includes(t.nodeName))return null;const{arrowKeyOptions:o="both",itemsArray:i=[],loop:s=!0,dir:c="ltr",preventScroll:l=!0,focus:v=!1}=r,[m,y,g,w,h,d]=[n.key==="ArrowRight",n.key==="ArrowLeft",n.key==="ArrowUp",n.key==="ArrowDown",n.key==="Home",n.key==="End"],f=g||w,b=m||y;if(!h&&!d&&(!f&&!b||o==="vertical"&&b||o==="horizontal"&&f))return null;const _=i;if(!_.length)return null;l&&n.preventDefault();let T=null;return b||f?T=jo(_,t,{goForward:f?w:c==="ltr"?m:y,loop:s}):h?T=_.at(0)||null:d&&(T=_.at(-1)||null),v&&(T==null||T.focus()),T}function jo(n,t,{goForward:e,loop:r},o=n.length){if(--o===0)return null;const i=n.indexOf(t),s=e?i+1:i-1;if(!r&&(s<0||s>=n.length))return null;const c=(s+n.length)%n.length,l=n[c];return l?l.hasAttribute("disabled")&&l.getAttribute("disabled")!=="false"?jo(n,l,{goForward:e,loop:r},o):l:null}var Ee,Ne;class rc{constructor(t,e){x(this,Ee);x(this,Ne);Z(this,Ee,t),Z(this,Ne,e),this.handler=this.handler.bind(this),Et(this.handler)}handler(){let t=0;const e=a(this,Ee).call(this);if(!e)return;const r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(a(this,Ne))});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}}Ee=new WeakMap,Ne=new WeakMap;const vt=Oo({component:"navigation-menu",parts:["root","sub","item","list","trigger","content","link","viewport","menu","indicator"]}),ce=new ae("NavigationMenu.Root"),ue=new ae("NavigationMenu.Item"),nr=new ae("NavigationMenu.List"),oc=new ae("NavigationMenu.Content"),ic=new ae("NavigationMenu.Sub");class Mr{constructor(t){p(this,"opts");p(this,"indicatorTrackRef",ft(null));p(this,"viewportRef",ft(null));p(this,"viewportContent",new ur);p(this,"onTriggerEnter");p(this,"onTriggerLeave",tt);p(this,"onContentEnter",tt);p(this,"onContentLeave",tt);p(this,"onItemSelect");p(this,"onItemDismiss");p(this,"activeItem",null);p(this,"prevActiveItem",null);p(this,"setActiveItem",t=>{this.prevActiveItem=this.activeItem,this.activeItem=t});this.opts=t,this.onTriggerEnter=t.onTriggerEnter,this.onTriggerLeave=t.onTriggerLeave??tt,this.onContentEnter=t.onContentEnter??tt,this.onContentLeave=t.onContentLeave??tt,this.onItemDismiss=t.onItemDismiss,this.onItemSelect=t.onItemSelect}static create(t){return ce.set(new Mr(t))}}var Wn,Gt,Hn,Gn,Un,qn,Xn,Yn,Ae;const Lr=class Lr{constructor(t){p(this,"opts");p(this,"attachment");p(this,"provider");p(this,"previousValue",ft(""));p(this,"isDelaySkipped");x(this,Wn,A(()=>{var e,r;return((r=(e=this.opts)==null?void 0:e.value)==null?void 0:r.current)!==""||this.isDelaySkipped.current?100:this.opts.delayDuration.current}));x(this,Gt,aa((t,e)=>{typeof t=="string"&&this.setValue(t,e)}
8,()=>u(a(this,Wn))));x(this,Hn,(t,e)=>{a(this,Gt).call(this,t,e)});x(this,Gn,()=>{this.isDelaySkipped.current=!1,a(this,Gt).call(this,"",null)});x(this,Un,()=>{a(this,Gt).call(this,void 0,null)});x(this,qn,()=>{this.provider.activeItem&&this.provider.activeItem.opts.openOnHover.current===!1||a(this,Gt).call(this,"",null)});x(this,Xn,(t,e)=>{this.setValue(t,e)});x(this,Yn,()=>{this.setValue("",null)});p(this,"setValue",(t,e)=>{this.previousValue.current=this.opts.value.current,this.opts.value.current=t,this.provider.setActiveItem(e),t===""&&(this.previousValue.current="")});x(this,Ae,A(()=>({id:this.opts.id.current,"data-orientation":this.opts.orientation.current,dir:this.opts.dir.current,[vt.root]:"",[vt.menu]:"",...this.attachment})));this.opts=t,this.attachment=Nt(this.opts.ref),this.isDelaySkipped=Ro(!1,{afterMs:this.opts.skipDelayDuration.current,getWindow:()=>Sr(t.ref.current)}),this.provider=Mr.create({value:this.opts.value,previousValue:this.previousValue,dir:this.opts.dir,orientation:this.opts.orientation,rootNavigationMenuRef:this.opts.ref,isRootMenu:!0,onTriggerEnter:(e,r)=>{a(this,Hn).call(this,e,r)},onTriggerLeave:a(this,Gn),onContentEnter:a(this,Un),onContentLeave:a(this,qn),onItemSelect:a(this,Xn),onItemDismiss:a(this,Yn)})}static create(t){return new Lr(t)}get props(){return u(a(this,Ae))}set props(t){P(a(this,Ae),t)}};Wn=new WeakMap,Gt=new WeakMap,Hn=new WeakMap,Gn=new WeakMap,Un=new WeakMap,qn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap,Ae=new WeakMap;let mr=Lr;var Pe,Se,Oe,ke;const Fr=class Fr{constructor(t,e){p(this,"wrapperId",ft(Fo()));p(this,"wrapperRef",ft(null));p(this,"opts");p(this,"context");p(this,"attachment");p(this,"wrapperAttachment",Nt(this.wrapperRef,t=>this.context.indicatorTrackRef.current=t));x(this,Pe,q([]));p(this,"rovingFocusGroup");x(this,Se,q(!1));x(this,Oe,A(()=>({id:this.wrapperId.current,...this.wrapperAttachment})));x(this,ke,A(()=>({id:this.opts.id.current,"data-orientation":this.context.opts.orientation.current,[vt.list]:"",...this.attachment})));this.opts=t,this.context=e,this.attachment=Nt(this.opts.ref),this.rovingFocusGroup=new La({rootNode:t.ref,candidateSelector:`${vt.selector("trigger")}:not([data-disabled]), ${vt.selector("link")}:not([data-disabled])`,loop:I(()=>!1),orientation:this.context.opts.orientation})}static create(t){return nr.set(new Fr(t,ce.get()))}get listTriggers(){return u(a(this,Pe))}set listTriggers(t){P(a(this,Pe),t)}get wrapperMounted(){return u(a(this,Se))}set wrapperMounted(t){P(a(this,Se),t,!0)}registerTrigger(t){return t&&this.listTriggers.push(t),()=>{this.listTriggers=this.listTriggers.filter(e=>e.id!==t.id)}}get wrapperProps(){return u(a(this,Oe))}set wrapperProps(t){P(a(this,Oe),t)}get props(){return u(a(this,ke))}set props(t){P(a(this,ke),t)}};Pe=new WeakMap,Se=new WeakMap,Oe=new WeakMap,ke=new WeakMap;let pr=Fr;var Me,Ie,Re,De,Le,Fe,je,Ve;const jr=class jr{constructor(t,e){p(this,"opts");p(this,"attachment");p(this,"listContext");x(this,Me,q(null));x(this,Ie,q(null));x(this,Re,q(null));p(this,"restoreContentTabOrder",tt);p(this,"wasEscapeClose",!1);x(this,De,A(()=>{var t;return(t=this.contentNode)==null?void 0:t.id}));x(this,Le,A(()=>{var t;return(t=this.triggerNode)==null?void 0:t.id}));p(this,"contentChildren",ft(void 0));p(this,"contentChild",ft(void 0));p(this,"contentProps",ft({}));p(this,"domContext");x(this,Fe,(t="start")=>{if(!this.contentNode)return;this.restoreContentTabOrder();const e=fr(this.contentNode);e.length&&Ko(t==="start"?e:e.reverse(),()=>this.domContext.getActiveElement())});x(this,je,()=>{if(!this.contentNode)return;const t=fr(this.contentNode);t.length&&(this.restoreContentTabOrder=sc(t))});p(this,"onEntryKeydown",a(this,Fe));p(this,"onFocusProxyEnter",a(this,Fe));p(this,"onRootContentClose",a(this,je));p(this,"onContentFocusOutside",a(this,je));x(this,Ve,A(()=>({id:this.opts.id.current,[vt.item]:"",...this.attachment})));this.opts=t,this.listContext=e,this.domContext=new Or(t.ref),this.attachment=Nt(this.opts.ref)}static create(t){return ue.set(new jr(t,nr.get()))}get contentNode(){return u(a(this,Me))}set contentNode(t){P(a(this,Me),t,!0)}get triggerNode(){return u(a(this,Ie))}set triggerNode(t){P(a(this,Ie),t,!0)}get focusProxyNode(){return u(a(this,Re))}set focusProxyNode(t){P(a(this,Re),t,!0)}get contentId(){return u(a(this,De))}set contentId(t){P(a(this,De),t)}get triggerId(){return u(a(this,Le))}set triggerId(t){P(a(this,Le),t)}get props(){return u(a(this,Ve))}set props(t){P(a(this,Ve),t)}};Me=new WeakMap,Ie=new WeakMap,Re=new WeakMap,De=new WeakMap,Le=new WeakMap,Fe=new WeakMap,je=new WeakMap,Ve=new WeakMap;let gr=jr;var Ke,ze,Be,We;
8const Vr=class Vr{constructor(t,e){p(this,"opts");p(this,"attachment");p(this,"focusProxyId",ft(Fo()));p(this,"focusProxyRef",ft(null));p(this,"focusProxyAttachment",Nt(this.focusProxyRef,t=>this.itemContext.focusProxyNode=t));p(this,"context");p(this,"itemContext");p(this,"listContext");p(this,"hasPointerMoveOpened",ft(!1));p(this,"wasClickClose",!1);x(this,Ke,q(!1));x(this,ze,A(()=>this.itemContext.opts.value.current===this.context.opts.value.current));p(this,"onpointerenter",t=>{this.wasClickClose=!1,this.itemContext.wasEscapeClose=!1});p(this,"onpointermove",Pn(()=>{this.opts.disabled.current||this.wasClickClose||this.itemContext.wasEscapeClose||this.hasPointerMoveOpened.current||!this.itemContext.opts.openOnHover.current||(this.context.onTriggerEnter(this.itemContext.opts.value.current,this.itemContext),this.hasPointerMoveOpened.current=!0)}));p(this,"onpointerleave",Pn(()=>{this.opts.disabled.current||!this.itemContext.opts.openOnHover.current||(this.context.onTriggerLeave(),this.hasPointerMoveOpened.current=!1)}));p(this,"onclick",()=>{if(this.hasPointerMoveOpened.current)return;const t=this.open&&(!this.itemContext.opts.openOnHover.current||this.context.opts.isRootMenu);t?this.context.onItemSelect("",null):this.open||this.context.onItemSelect(this.itemContext.opts.value.current,this.itemContext),this.wasClickClose=t});p(this,"onkeydown",t=>{const e=this.context.opts.dir.current==="rtl"?tr:er,r={horizontal:An,vertical:e}[this.context.opts.orientation.current];if(this.open&&t.key===r){this.itemContext.onEntryKeydown(),t.preventDefault();return}this.itemContext.listContext.rovingFocusGroup.handleKeydown(this.opts.ref.current,t)});p(this,"focusProxyOnFocus",t=>{const e=this.itemContext.contentNode,r=t.relatedTarget,o=this.opts.ref.current&&r===this.opts.ref.current,i=e==null?void 0:e.contains(r);(o||!i)&&this.itemContext.onFocusProxyEnter(o?"start":"end")});x(this,Be,A(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"data-disabled":_a(!!this.opts.disabled.current),"data-state":kr(this.open),"data-value":this.itemContext.opts.value.current,"aria-expanded":xa(this.open),"aria-controls":this.itemContext.contentId,[vt.trigger]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onpointerenter:this.onpointerenter,onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));x(this,We,A(()=>({id:this.focusProxyId.current,tabindex:0,onfocus:this.focusProxyOnFocus,...this.focusProxyAttachment})));this.opts=t,this.attachment=Nt(this.opts.ref,r=>this.itemContext.triggerNode=r),this.hasPointerMoveOpened=Ro(!1,{afterMs:300,getWindow:()=>Sr(t.ref.current)}),this.context=e.provider,this.itemContext=e.item,this.listContext=e.list,wt(()=>this.opts.ref.current,()=>{const r=this.opts.ref.current;if(r)return this.listContext.registerTrigger(r)})}static create(t){return new Vr(t,{provider:ce.get(),item:ue.get(),list:nr.get(),sub:ic.getOr(null)})}get focusProxyMounted(){return u(a(this,Ke))}set focusProxyMounted(t){P(a(this,Ke),t,!0)}get open(){return u(a(this,ze))}set open(t){P(a(this,ze),t)}get props(){return u(a(this,Be))}set props(t){P(a(this,Be),t)}get focusProxyProps(){return u(a(this,We))}set focusProxyProps(t){P(a(this,We),t)}};Ke=new WeakMap,ze=new WeakMap,Be=new WeakMap,We=new WeakMap;let br=Vr;const uo=new ko("bitsLinkSelect",{bubbles:!0,cancelable:!0}),Vo=new ko("bitsRootContentDismiss",{cancelable:!0,bubbles:!0});var He,Ge,Ue;const Kr=class Kr{constructor(t,e){p(this,"opts");p(this,"context");p(this,"attachment");x(this,He,q(!1));p(this,"onclick",t=>{const e=t.currentTarget;uo.listen(e,o=>this.opts.onSelect.current(o),{once:!0}),!uo.dispatch(e).defaultPrevented&&!t.metaKey&&Vo.dispatch(e)});p(this,"onkeydown",t=>{this.context.item.contentNode||this.context.item.listContext.rovingFocusGroup.handleKeydown(this.opts.ref.current,t)});p(this,"onfocus",t=>{this.isFocused=!0});p(this,"onblur",t=>{this.isFocused=!1});x(this,Ge,()=>{const t=this.context.provider.opts.value.current,e=this.context.item.opts.value.current===t,r=this.context.item.listContext.context.activeItem;r&&!r.opts.openOnHover.current||t&&!e&&this.context.provider.onItemDismiss()});p(this,"onpointerenter",()=>{a(this,Ge).call(this)});p(this,"onpointermove",Pn(()=>{a(this,Ge).call(this)}));x(this,Ue,A(()=>({id:this.opts.id.current,"data-active":this.opts.active.current?"":void 0,"aria-current":this.opts.active.current?"page":void 0,"data-focused":this.isFocused?""
8:void 0,onclick:this.onclick,onkeydown:this.onkeydown,onfocus:this.onfocus,onblur:this.onblur,onpointerenter:this.onpointerenter,onpointermove:this.onpointermove,[vt.link]:"",...this.attachment})));this.opts=t,this.context=e,this.attachment=Nt(this.opts.ref)}static create(t){return new Kr(t,{provider:ce.get(),item:ue.get()})}get isFocused(){return u(a(this,He))}set isFocused(t){P(a(this,He),t,!0)}get props(){return u(a(this,Ue))}set props(t){P(a(this,Ue),t)}};He=new WeakMap,Ge=new WeakMap,Ue=new WeakMap;let yr=Kr;var qe,Xe,Ye,Qe,Ze;const zr=class zr{constructor(t,e){p(this,"opts");p(this,"context");p(this,"itemContext");p(this,"listContext");p(this,"attachment");x(this,qe,q(!1));x(this,Xe,A(()=>this.itemContext.opts.value.current===this.context.opts.value.current));x(this,Ye,A(()=>this.itemContext.opts.value.current));x(this,Qe,A(()=>this.context.viewportRef.current&&!this.context.opts.value.current&&this.context.opts.previousValue.current?this.context.opts.previousValue.current===this.itemContext.opts.value.current:!1));p(this,"onpointerenter",t=>{this.context.onContentEnter()});p(this,"onpointerleave",Pn(()=>{this.itemContext.opts.openOnHover.current&&this.context.onContentLeave()}));x(this,Ze,A(()=>({id:this.opts.id.current,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.context=e.provider,this.itemContext=e.item,this.listContext=e.list,this.attachment=Nt(this.opts.ref,r=>this.itemContext.contentNode=r)}static create(t){return oc.set(new zr(t,{provider:ce.get(),item:ue.get(),list:nr.get()}))}get mounted(){return u(a(this,qe))}set mounted(t){P(a(this,qe),t,!0)}get open(){return u(a(this,Xe))}set open(t){P(a(this,Xe),t)}get value(){return u(a(this,Ye))}set value(t){P(a(this,Ye),t)}get isLastActiveValue(){return u(a(this,Qe))}set isLastActiveValue(t){P(a(this,Qe),t)}get props(){return u(a(this,Ze))}set props(t){P(a(this,Ze),t)}};qe=new WeakMap,Xe=new WeakMap,Ye=new WeakMap,Qe=new WeakMap,Ze=new WeakMap;let wr=zr;var Je,$e,tn;const Br=class Br{constructor(t,e){p(this,"opts");p(this,"itemContext");p(this,"context");p(this,"listContext");p(this,"attachment");x(this,Je,q(null));x(this,$e,A(()=>{const e=this.listContext.listTriggers.map(l=>l.getAttribute("data-value")).filter(Boolean);this.context.opts.dir.current==="rtl"&&e.reverse();const r=e.indexOf(this.context.opts.value.current),o=e.indexOf(this.context.opts.previousValue.current),i=this.itemContext.opts.value.current===this.context.opts.value.current,s=o===e.indexOf(this.itemContext.opts.value.current);if(!this.context.opts.value.current&&!this.context.opts.previousValue.current)return ht(()=>this.prevMotionAttribute=null),null;if(!i&&!s)return ht(()=>this.prevMotionAttribute);const c=(()=>{if(r!==o){if(i&&o!==-1)return r>o?"from-end":"from-start";if(s&&r!==-1)return r>o?"to-start":"to-end"}return null})();return ht(()=>this.prevMotionAttribute=c),c}));p(this,"domContext");p(this,"onFocusOutside",t=>{var r;this.itemContext.onContentFocusOutside();const e=t.target;if((r=this.context.opts.rootNavigationMenuRef.current)!=null&&r.contains(e)){t.preventDefault();return}this.context.onItemDismiss()});p(this,"onInteractOutside",t=>{var i;const e=t.target,r=this.listContext.listTriggers.some(s=>s.contains(e)),o=this.context.opts.isRootMenu&&((i=this.context.viewportRef.current)==null?void 0:i.contains(e));if(!this.context.opts.isRootMenu&&!r){this.context.onItemDismiss();return}if(r||o){t.preventDefault();return}this.itemContext.opts.openOnHover.current||this.context.onItemSelect("",null)});p(this,"onkeydown",t=>{const e=t.target;if(!Ra(e)||e.closest(vt.selector("menu"))!==this.context.opts.rootNavigationMenuRef.current)return;const r=t.altKey||t.ctrlKey||t.metaKey,o=t.key===Aa&&!r,i=fr(t.currentTarget);if(o){const l=this.domContext.getActiveElement(),v=i.findIndex(g=>g===l),y=t.shiftKey?i.slice(0,v).reverse():i.slice(v+1,i.length);if(Ko(y,()=>this.domContext.getActiveElement())){t.preventDefault();return}else{ac(this.itemContext.focusProxyNode);return}}let s=this.domContext.getActiveElement();if(this.itemContext.contentNode){const l=this.itemContext.contentNode.querySelector("[data-focused]");l&&(s=l)}if(s===this.itemContext.triggerNode)return;const c=nc(t,s,void 0,{itemsArray:i,candidateSelector:vt.selector("link"),loop:!1});c==null||c.focus()});
8p(this,"onEscapeKeydown",t=>{var e;this.context.onItemDismiss(),(e=this.itemContext.triggerNode)==null||e.focus(),this.itemContext.wasEscapeClose=!0});x(this,tn,A(()=>({id:this.opts.id.current,"aria-labelledby":this.itemContext.triggerId,"data-motion":this.motionAttribute??void 0,"data-orientation":this.context.opts.orientation.current,"data-state":kr(this.context.opts.value.current===this.itemContext.opts.value.current),onkeydown:this.onkeydown,[vt.content]:"",...this.attachment})));this.opts=t,this.attachment=Nt(this.opts.ref),this.itemContext=e,this.listContext=e.listContext,this.context=e.listContext.context,this.domContext=new Or(t.ref),wt([()=>this.itemContext.opts.value.current,()=>this.itemContext.triggerNode,()=>this.opts.ref.current],()=>{const r=this.opts.ref.current;if(!(r&&this.context.opts.isRootMenu))return;const o=()=>{var s;this.context.onItemDismiss(),this.itemContext.onRootContentClose(),r.contains(this.domContext.getActiveElement())&&((s=this.itemContext.triggerNode)==null||s.focus())},i=Vo.listen(r,o);return()=>{i()}})}static create(t,e){return new Br(t,e??ue.get())}get prevMotionAttribute(){return u(a(this,Je))}set prevMotionAttribute(t){P(a(this,Je),t,!0)}get motionAttribute(){return u(a(this,$e))}set motionAttribute(t){P(a(this,$e),t)}get props(){return u(a(this,tn))}set props(t){P(a(this,tn),t)}};Je=new WeakMap,$e=new WeakMap,tn=new WeakMap;let xr=Br;var en,nn,rn,on,sn,an,cn,un;const Wr=class Wr{constructor(t,e){p(this,"opts");p(this,"context");p(this,"attachment");x(this,en,A(()=>!!this.context.opts.value.current));x(this,nn,A(()=>this.size?`${this.size.width}px`:void 0));x(this,rn,A(()=>this.size?`${this.size.height}px`:void 0));x(this,on,A(()=>this.context.opts.value.current));x(this,sn,q(null));x(this,an,q(null));x(this,cn,q(!1));x(this,un,A(()=>({id:this.opts.id.current,"data-state":kr(this.open),"data-orientation":this.context.opts.orientation.current,style:{pointerEvents:!this.open&&this.context.opts.isRootMenu?"none":void 0,"--bits-navigation-menu-viewport-width":this.viewportWidth,"--bits-navigation-menu-viewport-height":this.viewportHeight},[vt.viewport]:"",onpointerenter:this.context.onContentEnter,onpointerleave:this.context.onContentLeave,...this.attachment})));this.opts=t,this.context=e,this.attachment=Nt(this.opts.ref,r=>this.context.viewportRef.current=r),wt([()=>this.activeContentValue,()=>this.open],()=>{Ao(()=>{var i,s;const r=this.context.viewportRef.current;if(!r)return;const o=((s=(i=r.querySelector("[data-state=open]"))==null?void 0:i.children)==null?void 0:s[0])??null;this.contentNode=o})}),new rc(()=>this.contentNode,()=>{this.contentNode&&(this.size={width:this.contentNode.offsetWidth,height:this.contentNode.offsetHeight})}),wt(()=>this.mounted,()=>{!this.mounted&&this.size&&(this.size=null)})}static create(t){return new Wr(t,ce.get())}get open(){return u(a(this,en))}set open(t){P(a(this,en),t)}get viewportWidth(){return u(a(this,nn))}set viewportWidth(t){P(a(this,nn),t)}get viewportHeight(){return u(a(this,rn))}set viewportHeight(t){P(a(this,rn),t)}get activeContentValue(){return u(a(this,on))}set activeContentValue(t){P(a(this,on),t)}get size(){return u(a(this,sn))}set size(t){P(a(this,sn),t,!0)}get contentNode(){return u(a(this,an))}set contentNode(t){P(a(this,an),t,!0)}get mounted(){return u(a(this,cn))}set mounted(t){P(a(this,cn),t,!0)}get props(){return u(a(this,un))}set props(t){P(a(this,un),t)}};en=new WeakMap,nn=new WeakMap,rn=new WeakMap,on=new WeakMap,sn=new WeakMap,an=new WeakMap,cn=new WeakMap,un=new WeakMap;let _r=Wr;function Ko(n,t){const e=t();return n.some(r=>r===e?!0:(r.focus(),t()!==e))}function sc(n){return n.forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")}),()=>{n.forEach(t=>{const e=t.dataset.tabindex;t.setAttribute("tabindex",e)})}}function Pn(n){return t=>t.pointerType==="mouse"?n(t):void 0}function ac(n,t){if(!n)return;const e=n.getAttribute("aria-hidden");n.removeAttribute("aria-hidden"),n.focus(t),No(0,()=>{e===null?n.setAttribute("aria-hidden",""):n.setAttribute("aria-hidden",e)})}var cc=R("<nav><!></nav>");function uc(n,t){const e=zt();B(t,!0);
8let r=E(t,"id",19,()=>Bt(e)),o=E(t,"ref",15,null),i=E(t,"value",15,""),s=E(t,"onValueChange",3,tt),c=E(t,"delayDuration",3,200),l=E(t,"skipDelayDuration",3,300),v=E(t,"dir",3,"ltr"),m=E(t,"orientation",3,"horizontal"),y=ct(t,["$$slots","$$events","$$legacy","child","children","id","ref","value","onValueChange","delayDuration","skipDelayDuration","dir","orientation"]);const g=mr.create({id:I(()=>r()),value:I(()=>i(),_=>{i(_),s()(_)}),delayDuration:I(()=>c()),skipDelayDuration:I(()=>l()),dir:I(()=>v()),orientation:I(()=>m()),ref:I(()=>o(),_=>o(_))}),w=A(()=>yt({"aria-label":"main"},y,g.props));var h=L(),d=O(h);{var f=_=>{var T=L(),N=O(T);Q(N,()=>t.child,()=>({props:u(w)})),C(_,T)},b=_=>{var T=cc();mt(T,()=>({...u(w)}));var N=k(T);Q(N,()=>t.children??et),S(T),C(_,T)};$(d,_=>{t.child?_(f):_(b,!1)})}C(n,h),W()}var lc=R("<div><!></div>");function dc(n,t){const e=zt();B(t,!0);let r=E(t,"ref",15,null),o=E(t,"id",19,()=>Bt(e)),i=E(t,"onInteractOutside",3,tt),s=E(t,"onFocusOutside",3,tt),c=E(t,"onEscapeKeydown",3,tt),l=E(t,"escapeKeydownBehavior",3,"close"),v=E(t,"interactOutsideBehavior",3,"close"),m=ct(t,["$$slots","$$events","$$legacy","ref","id","child","children","onInteractOutside","onFocusOutside","onEscapeKeydown","escapeKeydownBehavior","interactOutsideBehavior","itemState","onRefChange"]);const y=xr.create({id:I(()=>o()),ref:I(()=>r(),w=>{r(w),ht(()=>{var h;return(h=t.onRefChange)==null?void 0:h.call(t,w)})})},t.itemState);t.itemState&&ue.set(t.itemState);const g=A(()=>yt(m,y.props));Ja(n,{get id(){return o()},get ref(){return y.opts.ref},enabled:!0,onInteractOutside:h=>{i()(h),!h.defaultPrevented&&y.onInteractOutside(h)},onFocusOutside:h=>{s()(h),!h.defaultPrevented&&y.onFocusOutside(h)},get interactOutsideBehavior(){return v()},children:(h,d)=>{let f=()=>d==null?void 0:d().props;tc(h,{enabled:!0,get ref(){return y.opts.ref},onEscapeKeydown:b=>{c()(b),!b.defaultPrevented&&y.onEscapeKeydown(b)},get escapeKeydownBehavior(){return l()},children:(b,_)=>{const T=A(()=>yt(u(g),f()));var N=L(),X=O(N);{var z=G=>{var U=L(),xt=O(U);Q(xt,()=>t.child,()=>({props:u(T)})),C(G,U)},it=G=>{var U=lc();mt(U,()=>({...u(T)}));var xt=k(U);Q(xt,()=>t.children??et),S(U),C(G,U)};$(X,G=>{t.child?G(z):G(it,!1)})}C(b,N)},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}var ln,Qn,zo;class fc{constructor(t,e){x(this,Qn);p(this,"state");x(this,ln);this.state=ft(t),Z(this,ln,e),this.dispatch=this.dispatch.bind(this)}dispatch(t){this.state.current=pt(this,Qn,zo).call(this,t)}}ln=new WeakMap,Qn=new WeakSet,zo=function(t){return a(this,ln)[this.state.current][t]??this.state.current};const hc={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}};var dn,fn,hn;class vc{constructor(t){p(this,"opts");x(this,dn,q("none"));x(this,fn,q(Ut({})));p(this,"initialStatus");p(this,"previousPresent");p(this,"machine");p(this,"present");x(this,hn,A(()=>["mounted","unmountSuspended"].includes(this.machine.state.current)));this.opts=t,this.present=this.opts.open,this.initialStatus=t.open.current?"mounted":"unmounted",this.previousPresent=new la(()=>this.present.current),this.machine=new fc(this.initialStatus,hc),this.handleAnimationEnd=this.handleAnimationEnd.bind(this),this.handleAnimationStart=this.handleAnimationStart.bind(this),mc(this),pc(this),gc(this)}get prevAnimationNameState(){return u(a(this,dn))}set prevAnimationNameState(t){P(a(this,dn),t,!0)}get styles(){return u(a(this,fn))}set styles(t){P(a(this,fn),t,!0)}handleAnimationEnd(t){if(!this.opts.ref.current)return;const e=Sn(this.opts.ref.current),r=e.includes(t.animationName)||e==="none";t.target===this.opts.ref.current&&r&&this.machine.dispatch("ANIMATION_END")}handleAnimationStart(t){this.opts.ref.current&&t.target===this.opts.ref.current&&(this.prevAnimationNameState=Sn(this.opts.ref.current))}get isPresent(){return u(a(this,hn))}set isPresent(t){P(a(this,hn),t)}}dn=new WeakMap,fn=new WeakMap,hn=new WeakMap;function mc(n){wt(()=>n.present.current,()=>{if(!n.opts.ref.current||!(n.present.current!==n.previousPresent.current))return;const e=n.prevAnimationNameState,r=Sn(n.opts.ref.current);if(n.present.current)n.machine.dispatch("MOUNT");else if(r==="none"||n.styles.display==="none")n.machine.dispatch("UNMOUNT");else{const o=e!==r;n.previousPresent.current&&o?n.machine.dispatch("ANIMATION_OUT"):n.machine.dispatch("UNMOUNT")}})}function pc(n){wt(()=>n.machine.state.current,()=>{if(!n.opts.ref.current)return;const t=Sn(n.opts.ref.current);n.prevAnimationNameState=n.machine.state.current==="mounted"?t:"none"})}function gc(n){wt(()=>n.opts.ref.current,()=>{if(n.opts.ref.current)return n.styles=getComputedStyle(n.opts.ref.current),me(gt(n.opts.ref.current,"animationstart",n.handleAnimationStart),gt(n.opts.ref.current,"animationcancel",n.handleAnimationEnd),gt(n.opts.ref.current,"animationend",n.handleAnimationEnd))})}function Sn(n){return n&&getComputedStyle(n).animationName||"none"}function Bo(n,t){B(t,!0);const e=new vc({open:I(()=>t.open),ref:t.ref});var r=L(),o=O(r);{var i=s=>{var c=L(),l=O(c);Q(l,()=>t.presence??et,()=>({present:e.isPresent})),C(s,c)};$(o,s=>{(t.forceMount||t.open||e.isPresent)&&s(i)})}C(n,r),W()}var bc=R("<!> <!>",1);function yc(n,t){const e=zt();B(t,!0);let r=E(t,"ref",15,null),o=E(t,"id",19,()=>Bt(e)),i=E(t,"forceMount",3,!1),s=ct(t,["$$slots","$$events","$$legacy","ref","id","children","child","forceMount"]);const c=wr.create({id:I(()=>o()),ref:I(()=>r(),v=>r(v))}),l=A(()=>yt(s,c.props));{let v=A(()=>c.context.viewportRef.current||void 0),m=A(()=>!c.context.viewportRef.current);Ha(n,{get to(){return u(v)},get disabled(){return u(m)},children:(y,g)=>{{const w=d=>{var f=bc(),b=O(f);dc(b,lt(()=>u(l),{get children(){return t.children},get child(){return t.child}}));var _=M(b,2);pe(_,{get mounted(){return c.mounted}
8,set mounted(T){c.mounted=T}}),C(d,f)};let h=A(()=>i()||c.open||c.isLastActiveValue);Bo(y,{get open(){return u(h)},get ref(){return c.opts.ref},presence:w,$$slots:{presence:!0}})}},$$slots:{default:!0}})}W()}var wc=R("<li><!></li>");function xc(n,t){const e=zt();B(t,!0);const r=Bt(e);let o=E(t,"id",3,r),i=E(t,"value",3,r),s=E(t,"ref",15,null),c=E(t,"openOnHover",3,!0),l=ct(t,["$$slots","$$events","$$legacy","id","value","ref","child","children","openOnHover"]);const v=gr.create({id:I(()=>o()),ref:I(()=>s(),d=>s(d)),value:I(()=>i()),openOnHover:I(()=>c())}),m=A(()=>yt(l,v.props));var y=L(),g=O(y);{var w=d=>{var f=L(),b=O(f);Q(b,()=>t.child,()=>({props:u(m)})),C(d,f)},h=d=>{var f=wc();mt(f,()=>({...u(m)}));var b=k(f);Q(b,()=>t.children??et),S(f),C(d,f)};$(g,d=>{t.child?d(w):d(h,!1)})}C(n,y),W()}var _c=R("<a><!></a>");function Cc(n,t){const e=zt();B(t,!0);let r=E(t,"id",19,()=>Bt(e)),o=E(t,"ref",15,null),i=E(t,"active",3,!1),s=E(t,"onSelect",3,tt),c=E(t,"tabindex",3,0),l=ct(t,["$$slots","$$events","$$legacy","id","ref","child","children","active","onSelect","tabindex"]);const v=yr.create({id:I(()=>r()),ref:I(()=>o(),d=>o(d)),active:I(()=>i()),onSelect:I(()=>s())}),m=A(()=>yt(l,v.props,{tabindex:c()}));var y=L(),g=O(y);{var w=d=>{var f=L(),b=O(f);Q(b,()=>t.child,()=>({props:u(m)})),C(d,f)},h=d=>{var f=_c();mt(f,()=>({...u(m)}));var b=k(f);Q(b,()=>t.children??et),S(f),C(d,f)};$(g,d=>{t.child?d(w):d(h,!1)})}C(n,y),W()}var Tc=R("<!> <!>",1),Ec=R("<div><ul><!></ul></div> <!>",1);function Nc(n,t){const e=zt();B(t,!0);let r=E(t,"id",19,()=>Bt(e)),o=E(t,"ref",15,null),i=ct(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const s=pr.create({id:I(()=>r()),ref:I(()=>o(),w=>o(w))}),c=A(()=>yt(i,s.props)),l=A(()=>yt(s.wrapperProps));var v=L(),m=O(v);{var y=w=>{var h=Tc(),d=O(h);Q(d,()=>t.child,()=>({props:u(c),wrapperProps:u(l)}));var f=M(d,2);pe(f,{get mounted(){return s.wrapperMounted},set mounted(b){s.wrapperMounted=b}}),C(w,h)},g=w=>{var h=Ec(),d=O(h);mt(d,()=>({...u(l)}));var f=k(d);mt(f,()=>({...u(c)}));var b=k(f);Q(b,()=>t.children??et),S(f),S(d);var _=M(d,2);pe(_,{get mounted(){return s.wrapperMounted},set mounted(T){s.wrapperMounted=T}}),C(w,h)};$(m,w=>{t.child?w(y):w(g,!1)})}C(n,v),W()}var Ac=R("<span><!></span>");function Pc(n,t){B(t,!0);let e=ct(t,["$$slots","$$events","$$legacy","children","child"]);const r={position:"absolute",border:0,width:"1px",display:"inline-block",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0 0 0 0)",whiteSpace:"nowrap",wordWrap:"normal"},o=A(()=>yt(e,{style:r}));var i=L(),s=O(i);{var c=v=>{var m=L(),y=O(m);Q(y,()=>t.child,()=>({props:u(o)})),C(v,m)},l=v=>{var m=Ac();mt(m,()=>({...u(o)}));var y=k(m);Q(y,()=>t.children??et),S(m),C(v,m)};$(s,v=>{t.child?v(c):v(l,!1)})}C(n,i),W()}var Sc=R("<button><!></button>"),Oc=R("<span></span>"),kc=R("<!> <!> <!>",1),Mc=R("<!> <!>",1);function Ic(n,t){const e=zt();B(t,!0);let r=E(t,"id",19,()=>Bt(e)),o=E(t,"disabled",3,!1),i=E(t,"ref",15,null),s=E(t,"tabindex",3,0),c=ct(t,["$$slots","$$events","$$legacy","id","disabled","children","child","ref","tabindex"]);const l=br.create({id:I(()=>r()),disabled:I(()=>o()??!1),ref:I(()=>i(),f=>i(f))}),v=A(()=>yt(c,l.props,{tabindex:s()}));var m=Mc(),y=O(m);{var g=f=>{var b=L(),_=O(b);Q(_,()=>t.child,()=>({props:u(v)})),C(f,b)},w=f=>{var b=Sc();mt(b,()=>({...u(v)}));var _=k(b);Q(_,()=>t.children??et),S(b),C(f,b)};$(y,f=>{t.child?f(g):f(w,!1)})}var h=M(y,2);{var d=f=>{var b=kc(),_=O(b);Pc(_,lt(()=>l.focusProxyProps));var T=M(_,2);pe(T,{get mounted(){return l.focusProxyMounted},set mounted(z){l.focusProxyMounted=z}});var N=M(T,2);{var X=z=>{var it=Oc();nt(()=>J(it,"aria-owns",l.itemContext.contentId??void 0)),C(z,it)};$(N,z=>{l.context.viewportRef.current&&z(X)})}C(f,b)};$(h,f=>{l.open&&f(d)})}C(n,m),W()}var Rc=R("<div><!></div>"),Dc=R("<!> <!>",1);function Lc(n,t){const e=zt();B(t,!0);let r=E(t,"id",19,()=>Bt(e)),o=E(t,"ref",15,null),i=E(t,"forceMount",3,!1),s=ct(t,["$$slots","$$events","$$legacy","id","ref","forceMount","child","children"]);const c=_r.create({id:I(()=>r()),ref:I(()=>o(),v=>o(v))}),l=A(()=>yt(s,c.props));{const v=y=>{var g=Dc(),w=O(g);{var h=b=>{var _=L(),T=O(_);Q(T,()=>t.child,()=>({props:u(l)})),C(b,_)},d=b=>{var _=Rc();mt(_,()=>({...u(l)}));var T=k(_);Q(T,()=>t.children??et),S(_),C(b,_)};$(w,b=>{t.child?b(h):b(d,!1)})}var f=M(w,2);pe(f,{get mounted(){return c.mounted},set mounted(b){c.mounted=b}}),C(y,g)};let m=A(()=>i()||c.open);Bo(n,{get open(){return u(m)},get ref(){return c.opts.ref},presence:v,$$slots:{presence:!0}})}W()}var Fc=R("<div><!></div>");function jc(n,t){B(t,!0);let e=E(t,"ref",15,null),r=ct(t,["$$slots","$$events","$$legacy","ref","class"]);var o=Fc(),i=k(o);{let s=A(()=>Lt("origin-top-right bg-bg text-popover-foreground relative mt-1.5 h-[var(--bits-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md shadow md:w-[var(--bits-navigation-menu-viewport-width)] !transition-none border border-border",t.class));Xt(i,()=>Lc,(c,l)=>{l(c,lt({"data-slot":"navigation-menu-viewport",get class(){return u(s)}},()=>r,{get ref(){return e()},set ref(v){e(v)}}))})}S(o),nt(s=>po(o,1,s),[()=>Ni(Lt("absolute right-0 top-full isolate z-50 flex justify-end"))]),C(n,o),W()}var Vc=R("<!> <!>",1);function Kc(n,t){B(t,!0);let e=E(t,"ref",15,null),r=E(t,"viewport",3,!0),o=ct(t,["$$slots","$$events","$$legacy","ref","class","viewport","children"]);var i=L(),s=O(i);{let c=A(()=>Lt("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t.class));Xt(s,()=>uc,(l,v)=>{v(l,lt({"data-slot":"navigation-menu",get"data-viewport"(){return r()},get class(){return u(c)}},()=>o,{get ref(){return e()},set ref(m){e(m)},children:(m,y)=>{var g=Vc(),w=O(g);Q(w,()=>t.children??et);var h=M(w,2);{var d=f=>{jc(f,{})};$(h,f=>
8{r()&&f(d)})}C(m,g)},$$slots:{default:!0}}))})}C(n,i),W()}function zc(n,t){B(t,!0);let e=E(t,"ref",15,null),r=ct(t,["$$slots","$$events","$$legacy","ref","class"]);var o=L(),i=O(o);{let s=A(()=>Lt("top-0 left-0 w-full md:absolute md:w-auto bg-bg","group-data-[viewport=false]/navigation-menu:bg-bg group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:shadow **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",t.class));Xt(i,()=>yc,(c,l)=>{l(c,lt({"data-slot":"navigation-menu-content",get class(){return u(s)}},()=>r,{get ref(){return e()},set ref(v){e(v)}}))})}C(n,o),W()}function Bc(n,t){B(t,!0);let e=E(t,"ref",15,null),r=ct(t,["$$slots","$$events","$$legacy","ref","class"]);var o=L(),i=O(o);{let s=A(()=>Lt("relative",t.class));Xt(i,()=>xc,(c,l)=>{l(c,lt({"data-slot":"navigation-menu-item",get class(){return u(s)}},()=>r,{get ref(){return e()},set ref(v){e(v)}}))})}C(n,o),W()}function Wc(n,t){B(t,!0);let e=E(t,"ref",15,null),r=ct(t,["$$slots","$$events","$$legacy","ref","class"]);var o=L(),i=O(o);{let s=A(()=>Lt("data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground flex flex-col gap-1 rounded-sm p-2 text-sm outline-none focus-visible:outline-1 focus-visible:ring-[3px] [&_svg:not([class*='size-'])]:size-4 !transition-none",t.class));Xt(i,()=>Cc,(c,l)=>{l(c,lt({"data-slot":"navigation-menu-link",get class(){return u(s)}},()=>r,{get ref(){return e()},set ref(v){e(v)}}))})}C(n,o),W()}function Hc(n,t){B(t,!0);let e=E(t,"ref",15,null),r=ct(t,["$$slots","$$events","$$legacy","ref","class"]);var o=L(),i=O(o);{let s=A(()=>Lt("group flex flex-1 list-none items-center justify-center gap-1",t.class));Xt(i,()=>Nc,(c,l)=>{l(c,lt({"data-slot":"navigation-menu-list",get class(){return u(s)}},()=>r,{get ref(){return e()},set ref(v){e(v)}}))})}C(n,o),W()}var Gc=/\s+/g,Cr=n=>typeof n!="string"||!n?n:n.replace(Gc," ").trim(),On=(...n)=>{let t=[],e=r=>{if(!r&&r!==0&&r!==0n)return;if(Array.isArray(r)){for(let i=0,s=r.length;i<s;i++)e(r[i]);return}let o=typeof r;if(o==="string"||o==="number"||o==="bigint"){if(o==="number"&&r!==r)return;t.push(String(r))}else if(o==="object"){let i=Object.keys(r);for(let s=0,c=i.length;s<c;s++){let l=i[s];r[l]&&t.push(l)}}};for(let r=0,o=n.length;r<o;r++){let i=n[r];i!=null&&e(i)}return t.length>0?Cr(t.join(" ")):void 0},lo=n=>n===!1?"false":n===!0?"true":n===0?"0":n,ut=n=>{if(!n||typeof n!="object")return!0;for(let t in n)return!1;return!0},Uc=(n,t)=>{if(n===t)return!0;if(!n||!t)return!1;let e=Object.keys(n),r=Object.keys(t);if(e.length!==r.length)return!1;for(let o=0;o<e.length;o++){let i=e[o];if(!r.includes(i)||n[i]!==t[i])return!1}return!0},fo=(n,t)=>{for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let r=t[e];e in n?n[e]=On(n[e],r):n[e]=r}return n},Wo=(n,t)=>{for(let e=0;e<n.length;e++){let r=n[e];Array.isArray(r)?Wo(r,t):r&&t.push(r)}},Ho=(...n)=>{let t=[];Wo(n,t);let e=[];for(let r=0;r<t.length;r++)t[r]&&e.push(t[r]);return e},Tr=(n,t)=>{let e={};for(let r in n){let o=n[r];if(r in t){let i=t[r];Array.isArray(o)||Array.isArray(i)?e[r]=Ho(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?e[r]=Tr(o,i):e[r]=i+" "+o}else e[r]=o}for(let r in t)r in n||(e[r]=t[r]);return e},qc={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function Xc(){let n=null,t={},e=!1;return{get cachedTwMerge(){return n},set cachedTwMerge(r){n=r},get cachedTwMergeConfig(){return t},set cachedTwMergeConfig(r){t=r},get didTwMergeConfigChange(){return e},set didTwMergeConfigChange(r){e=r},reset(){n=null,t={},e=!1}}}var Pt=Xc(),Yc=n=>{let t=(e,r)=>{let{extend:o=null,slots:i={},variants:s={},compoundVariants:c=[],compoundSlots:l=[],defaultVariants:v={}}=e,m={...qc,...r},y=o!=null&&o.base?On(o.base,e==null?void 0:e.base):e==null?void 0:e.base,g=o!=null&&o.variants&&!ut(o.variants)?Tr(s,o.variants):s,w=o!=null&&o.defaultVariants&&!ut(o.defaultVariants)?{...o.defaultVariants,...v}:v;!ut(m.twMergeConfig)&&!Uc(m.twMergeConfig,Pt.cachedTwMergeConfig)&&(Pt.didTwMergeConfigChange=!0,Pt.cachedTwMergeConfig=m.twMergeConfig);let h=ut(o==null?void 0:o.slots),d=ut(i)?{}:{base:On(e==null?void 0:e.base,h&&(o==null?void 0:o.base)),...i},f=h?d:fo({...o==null?void 0:o.slots},ut(d)?{base:e==null?void 0:e.base}:d),b=ut(o==null?void 0:o.compoundVariants)?c:Ho(o==null?void 0:o.compoundVariants,c),_=N=>{if(ut(g)&&ut(i)&&h)return n(y,N==null?void 0:N.class,N==null?void 0:N.className)(m);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof b}`);if(l&&!Array.isArray(l))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof l}`);let X=(V,F,K=[],D)=>{let H=K;
8if(typeof F=="string"){let j=Cr(F).split(" ");for(let Y=0;Y<j.length;Y++)H.push(`${V}:${j[Y]}`)}else if(Array.isArray(F))for(let j=0;j<F.length;j++)H.push(`${V}:${F[j]}`);else if(typeof F=="object"&&typeof D=="string"&&D in F){let j=F[D];if(j&&typeof j=="string"){let Y=Cr(j).split(" "),st=[];for(let ot=0;ot<Y.length;ot++)st.push(`${V}:${Y[ot]}`);H[D]=H[D]?H[D].concat(st):st}else if(Array.isArray(j)&&j.length>0){let Y=[];for(let st=0;st<j.length;st++)Y.push(`${V}:${j[st]}`);H[D]=Y}}return H},z=(V,F=g,K=null,D=null)=>{let H=F[V];if(!H||ut(H))return null;let j=(D==null?void 0:D[V])??(N==null?void 0:N[V]);if(j===null)return null;let Y=lo(j),st=Array.isArray(m.responsiveVariants)&&m.responsiveVariants.length>0||m.responsiveVariants===!0,ot=w==null?void 0:w[V],rt=[];if(typeof Y=="object"&&st)for(let[jt,Hr]of Object.entries(Y)){let Uo=H[Hr];if(jt==="initial"){ot=Hr;continue}Array.isArray(m.responsiveVariants)&&!m.responsiveVariants.includes(jt)||(rt=X(jt,Uo,rt,K))}let Ft=Y!=null&&typeof Y!="object"?Y:lo(ot),dt=H[Ft||"false"];return typeof rt=="object"&&typeof K=="string"&&rt[K]?fo(rt,dt):rt.length>0?(rt.push(dt),K==="base"?rt.join(" "):rt):dt},it=()=>{if(!g)return null;let V=Object.keys(g),F=[];for(let K=0;K<V.length;K++){let D=z(V[K],g);D&&F.push(D)}return F},G=(V,F)=>{if(!g||typeof g!="object")return null;let K=[];for(let D in g){let H=z(D,g,V,F),j=V==="base"&&typeof H=="string"?H:H&&H[V];j&&K.push(j)}return K},U={};for(let V in N){let F=N[V];F!==void 0&&(U[V]=F)}let xt=(V,F)=>{var D;let K=typeof(N==null?void 0:N[V])=="object"?{[V]:(D=N[V])==null?void 0:D.initial}:{};return{...w,...U,...K,...F}},yn=(V=[],F)=>{let K=[],D=V.length;for(let H=0;H<D;H++){let{class:j,className:Y,...st}=V[H],ot=!0,rt=xt(null,F);for(let Ft in st){let dt=st[Ft],jt=rt[Ft];if(Array.isArray(dt)){if(!dt.includes(jt)){ot=!1;break}}else{if((dt==null||dt===!1)&&(jt==null||jt===!1))continue;if(jt!==dt){ot=!1;break}}}ot&&(j&&K.push(j),Y&&K.push(Y))}return K},le=V=>{let F=yn(b,V);if(!Array.isArray(F))return F;let K={},D=n;for(let H=0;H<F.length;H++){let j=F[H];if(typeof j=="string")K.base=D(K.base,j)(m);else if(typeof j=="object")for(let Y in j)K[Y]=D(K[Y],j[Y])(m)}return K},Go=V=>{if(l.length<1)return null;let F={},K=xt(null,V);for(let D=0;D<l.length;D++){let{slots:H=[],class:j,className:Y,...st}=l[D];if(!ut(st)){let ot=!0;for(let rt in st){let Ft=K[rt],dt=st[rt];if(Ft===void 0||(Array.isArray(dt)?!dt.includes(Ft):dt!==Ft)){ot=!1;break}}if(!ot)continue}for(let ot=0;ot<H.length;ot++){let rt=H[ot];F[rt]||(F[rt]=[]),F[rt].push([j,Y])}}return F};if(!ut(i)||!h){let V={};if(typeof f=="object"&&!ut(f)){let F=n;for(let K in f)V[K]=D=>{let H=le(D),j=Go(D);return F(f[K],G(K,D),H?H[K]:void 0,j?j[K]:void 0,D==null?void 0:D.class,D==null?void 0:D.className)(m)}}return V}return n(y,it(),yn(b),N==null?void 0:N.class,N==null?void 0:N.className)(m)},T=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return _.variantKeys=T(),_.extend=o,_.base=y,_.slots=f,_.variants=g,_.defaultVariants=w,_.compoundSlots=l,_.compoundVariants=b,_};return{tv:t,createTV:e=>(r,o)=>t(r,o?Tr(e,o):e)}},Qc=n=>ut(n)?ji:Vi({...n,extend:{theme:n.theme,classGroups:n.classGroups,conflictingClassGroupModifiers:n.conflictingClassGroupModifiers,conflictingClassGroups:n.conflictingClassGroups,...n.extend}}),Zc=(...n)=>t=>{let e=On(n);
8return!e||!t.twMerge?e:((!Pt.cachedTwMerge||Pt.didTwMergeConfigChange)&&(Pt.didTwMergeConfigChange=!1,Pt.cachedTwMerge=Qc(Pt.cachedTwMergeConfig)),Pt.cachedTwMerge(e)||void 0)},{tv:Jc}=Yc(Zc);/**
9 * @license lucide-svelte v0.483.0 - ISC
10 *
11 * ISC License
12 * 
13 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
14 * 
15 * Permission to use, copy, modify, and/or distribute this software for any
16 * purpose with or without fee is hereby granted, provided that the above
17 * copyright notice and this permission notice appear in all copies.
18 * 
19 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
20 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
21 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
22 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
25 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26 * 
27 */const $c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var tu=Jo("<svg><!><!></svg>");function eu(n,t){const e=qt(t,["children","$$slots","$$events","$$legacy"]),r=qt(e,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);B(t,!1);let o=E(t,"name",8,void 0),i=E(t,"color",8,"currentColor"),s=E(t,"size",8,24),c=E(t,"strokeWidth",8,2),l=E(t,"absoluteStrokeWidth",8,!1),v=E(t,"iconNode",24,()=>[]);const m=(...h)=>h.filter((d,f,b)=>!!d&&b.indexOf(d)===f).join(" ");Zn();var y=tu();mt(y,(h,d)=>({...$c,...r,width:s(),height:s(),stroke:i(),"stroke-width":h,class:d}),[()=>(Qt(l()),Qt(c()),Qt(s()),ht(()=>l()?Number(c())*24/Number(s()):c())),()=>(Qt(o()),Qt(e),ht(()=>m("lucide-icon","lucide",o()?`lucide-${o()}`:"",e.class)))]);var g=k(y);Tt(g,1,v,It,(h,d)=>{var f=A(()=>xi(u(d),2));let b=()=>u(f)[0],_=()=>u(f)[1];var T=L(),N=O(T);Ki(N,b,!0,(X,z)=>{mt(X,()=>({..._()}))}),C(h,T)});var w=M(g);se(w,t,"default",{}),S(y),C(n,y),W()}function nu(n,t){const e=qt(t,["children","$$slots","$$events","$$legacy"]);/**
28 * @license lucide-svelte v0.483.0 - ISC
29 *
30 * ISC License
31 *
32 * Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
33 *
34 * Permission to use, copy, modify, and/or distribute this software for any
35 * purpose with or without fee is hereby granted, provided that the above
36 * copyright notice and this permission notice appear in all copies.
37 *
38 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
39 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
40 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
41 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
42 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
43 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
44 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
45 *
46 */const r=[["path",{d:"m6 9 6 6 6-6"}]];eu(n,lt({name:"chevron-down"},()=>e,{get iconNode(){return r},children:(o,i)=>{var s=L(),c=O(s);se(c,t,"default",{}),C(o,s)},$$slots:{default:!0}}))}const ru=Jc({base:"bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 group inline-flex h-9 w-max items-center justify-center rounded-md px-4 py-2 text-sm font-medium outline-none focus-visible:outline-1 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 !transition-none"});var ou=R("<!> <!>",1);function iu(n,t){B(t,!0);let e=E(t,"ref",15,null),r=ct(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=L(),i=O(o);{let s=A(()=>Lt(ru(),"group",t.class));Xt(i,()=>Ic,(c,l)=>{l(c,lt({"data-slot":"navigation-menu-trigger",get class(){return u(s)}},()=>r,{get ref(){return e()},set ref(v){e(v)},children:(v,m)=>{var y=ou(),g=O(y);Q(g,()=>t.children??et);var w=M(g,2);nu(w,{class:"relative top-[1px] ml-1 size-4 transition-transform duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"}),C(v,y)},$$slots:{default:!0}}
46))})}C(n,o),W()}const su=(n,t)=>{let e=()=>t==null?void 0:t().title,r=()=>t==null?void 0:t().href,o=()=>t==null?void 0:t().description,i=()=>t==null?void 0:t().icon,s=()=>t==null?void 0:t().imgSrc,c=Ci(()=>Ei(t==null?void 0:t().clickable,!0)),l=()=>t==null?void 0:t().class,v=()=>Ti(t==null?void 0:t(),["title","href","description","icon","imgSrc","clickable","class"]);var m=lu(),y=k(m);Wc(y,{child:w=>{var h=uu();mt(h,G=>({href:r(),class:G,...v()}),[()=>Lt("hover:bg-accent hover:text-accent-foreground hover:bg-border/20 hover:border-border focus:bg-accent focus:text-accent-foreground block space-y-1 rounded-md border border-transparent p-3 leading-none !font-normal no-underline outline-none select-none hover:border",{"pointer-events-none":!u(c)},l())]);var d=k(h),f=k(d);{var b=G=>{var U=au();nt(()=>{J(U,"src",s()),J(U,"alt",e())}),C(G,U)},_=G=>{var U=L(),xt=O(U);{var yn=le=>{i()(le,{class:"size-6 shrink-0"})};$(xt,le=>{i()&&le(yn)},!0)}C(G,U)};$(f,G=>{s()?G(b):G(_,!1)})}var T=M(f,2),N=k(T),X=k(N,!0);S(N);var z=M(N,2);{var it=G=>{var U=cu(),xt=k(U,!0);S(U),nt(()=>Dt(xt,o())),C(G,U)};$(z,G=>{o()&&G(it)})}S(T),S(d),S(h),nt(()=>Dt(X,e())),C(w,h)},$$slots:{child:!0}}),S(m),C(n,m)};var au=R('<img class="size-7"/>'),cu=R('<p class="text-muted text-sm leading-snug"> </p>'),uu=R('<a><div class="flex items-start gap-3"><!> <div class="flex flex-col gap-2"><div class="text-sm leading-none font-medium"> </div> <!></div></div></a>'),lu=R("<li><!></li>"),du=R('<ul class="grid w-[800px] gap-3 p-6 md:grid-cols-2"></ul>'),fu=R("<!> <!>",1),hu=R('<!> <button class="nav-item hover:bg-muted/[5%] dark:hover:bg-muted/20 flex size-9 cursor-pointer items-center justify-center rounded-md" name="toggle theme" aria-label="toggle theme"><!> <!></button>',1);function vu(n,t){B(t,!1),Zn(),Kc(n,{viewport:!0,class:"showNavLinks:flex relative z-10 hidden w-full justify-end",children:(e,r)=>{Hc(e,{class:"group flex list-none items-center justify-center gap-2",children:(o,i)=>{var s=hu(),c=O(s);Tt(c,1,()=>he.nav.groups,It,(y,g)=>{Bc(y,{class:"hover:bg-muted/[5%] dark:hover:bg-muted/20 has-[[data-state=open]]:bg-muted/[5%] h-fit roun
46ded-md py-0",children:(w,h)=>{var d=fu(),f=O(d);iu(f,{class:"font-normal",children:(_,T)=>{_i();var N=$o();nt(()=>Dt(N,u(g).title)),C(_,N)},$$slots:{default:!0}});var b=M(f,2);zc(b,{class:"bg-bg",children:(_,T)=>{var N=du();Tt(N,5,()=>u(g).links,X=>X.title,(X,z)=>{su(X,()=>({href:u(z).href,title:u(z).title,icon:u(z).icon,description:u(z).description,imgSrc:u(z).imgSrc,clickable:u(g).title==="Resources"?!0:u(z).href.length>1}))}),S(N),C(_,N)},$$slots:{default:!0}}),C(w,d)},$$slots:{default:!0}})});var l=M(c,2);l.__click=function(...y){Zt==null||Zt.apply(this,y)};var v=k(l);Co(v,{class:"size-[1.2rem] scale-100 rotate-0 !transition-all dark:scale-0 dark:-rotate-90"});var m=M(v,2);_o(m,{class:"absolute size-[1.2rem] scale-0 rotate-90 !transition-all dark:scale-100 dark:rotate-0"}),S(l),C(o,s)},$$slots:{default:!0}})},$$slots:{default:!0}}),W()}go(["click"]);var mu=R("<div><!></div>"),pu=R("<div><!></div>"),gu=R('<div><nav class="text-md contain mx-auto flex w-full items-center justify-between py-5"><!> <div class="flex items-center gap-2"><button class="nav-item showNavLinks:hidden cursor-pointer" name="menu" aria-label="menu"><!></button> <button class="nav-item showNavLinks:hidden hover:bg-muted/[5%] flex size-9 cursor-pointer items-center justify-center rounded-md transition-colors" name="toggle theme" aria-label="toggle theme"><!> <!></button></div> <!></nav></div>');function bu(n,t){B(t,!1);const e=Ar.get();Zn();var r=gu();let o;var i=k(r),s=k(i);xo(s,{});var c=M(s,2),l=k(c);l.__click=()=>e.toggle();var v=k(l);{var m=f=>{var b=mu(),_=k(b);ys(_,{}),S(b),ar(1,b,()=>so,()=>({duration:250})),C(f,b)},y=f=>{var b=pu(),_=k(b);bs(_,{}),S(b),ar(1,b,()=>so,()=>({duration:250})),C(f,b)};$(v,f=>{e.isOpen?f(m):f(y,!1)})}S(l);var g=M(l,2);g.__click=function(...f){Zt==null||Zt.apply(this,f)};var w=k(g);Co(w,{class:"size-[1.2rem] rotate-0 scale-100 !transition-all dark:-rotate-90 dark:scale-0"});var h=M(w,2);_o(h,{class:"absolute size-[1.2rem] rotate-90 scale-0 !transition-all dark:rotate-0 dark:scale-100"}),S(g),S(c);var d=M(c,2);vu(d,{}),S(i),S(r),nt(()=>o=po(r,1,"border-border flex w-full justify-center",null,o,{"border-b":ve.url.pathname!=="/"})),C(n,r),W()}go(["click"]);const ho=Symbol(),sr={isOpen:!1,props:{}};var vn,mn,pn;class yu{constructor(){x(this,vn,q(Ut(sr)));x(this,mn,q(Ut(sr)));x(this,pn,q(Ut({...sr})));Er(ho,this)}get modal(){return u(a(this,vn))}set modal(t){P(a(this,vn),t,!0)}get sheet(){return u(a(this,mn))}set sheet(t){P(a(this,mn),t,!0)}get alert(){return u(a(this,pn))}set alert(t){P(a(this,pn),t,!0)}static get(){return Nn(ho)}open(t){const e=this[t.dialog];e.props=t.props,e.isOpen=!0}close(t){const e=this[t];e.isOpen=!1}}vn=new WeakMap,mn=new WeakMap,pn=new WeakMap;function wu(){new zi({hidden:!0}),new Ar,new yu}var xu=R("<!> <!> <!> <!> <!> <!>",1);function Ru(n,t){B(t,!0),wu();var e=xu(),r=O(e);Ps(r,{});var o=M(r,2);ps(o,{});var i=M(o,2);bu(i,{});var s=M(i,2);Ds(s,{});var c=M(s,2);Q(c,()=>t.children);var l=M(c,2);Ns(l,{}),C(n,e),W()}export{Ru as component};

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.