@gsa-tts/graymatter-ui 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- (function(V,ne){typeof exports=="object"&&typeof module<"u"?ne(exports):typeof define=="function"&&define.amd?define(["exports"],ne):(V=typeof globalThis<"u"?globalThis:V||self,ne(V.graymatter={}))})(this,function(V){"use strict";var ac=Object.defineProperty;var Ra=V=>{throw TypeError(V)};var sc=(V,ne,Ce)=>ne in V?ac(V,ne,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):V[ne]=Ce;var be=(V,ne,Ce)=>sc(V,typeof ne!="symbol"?ne+"":ne,Ce),Yi=(V,ne,Ce)=>ne.has(V)||Ra("Cannot "+Ce);var f=(V,ne,Ce)=>(Yi(V,ne,"read from private field"),Ce?Ce.call(V):ne.get(V)),F=(V,ne,Ce)=>ne.has(V)?Ra("Cannot add the same private member more than once"):ne instanceof WeakSet?ne.add(V):ne.set(V,Ce),Z=(V,ne,Ce,vn)=>(Yi(V,ne,"write to private field"),vn?vn.call(V,Ce):ne.set(V,Ce),Ce),ae=(V,ne,Ce)=>(Yi(V,ne,"access private method"),Ce);var Da,Aa,zr,Nr,$t,St,en,Ge,vr,Dt,Et,Tr,hr,ye,Bn,Ba,Fn,Wi,Ji,Fa,Xe,tn,Mt,pr,je,It,Qe,bt,At,gr,er,$r,rn,nn,Ut,Dn,ge,Za,Ya,Wa,Ki,Zn,Yn,Gi,Ua,mt,Lt,et,br,on,an,An,Ht,ut;typeof window<"u"&&((Da=window.__svelte??(window.__svelte={})).v??(Da.v=new Set)).add("5");const Ce=1,vn=2,Xi=4,Ja=8,Ka=16,Ga=1,Xa=4,Qa=8,es=16,Qi=1,ts=2,Wn="[",Jn="[!",eo="[?",Kn="]",mr={},Ie=Symbol(),to="http://www.w3.org/1999/xhtml",rs="@attach",ns=!1;var Gn=Array.isArray,is=Array.prototype.indexOf,wr=Array.prototype.includes,hn=Array.from,pn=Object.keys,Dr=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,os=Object.getOwnPropertyDescriptors,as=Object.prototype,ss=Array.prototype,ro=Object.getPrototypeOf,no=Object.isExtensible;function Ar(e){return typeof e=="function"}const Ze=()=>{};function io(e){for(var t=0;t<e.length;t++)e[t]()}function oo(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const Le=2,_r=4,gn=8,Xn=1<<24,Ot=16,ct=32,Vt=64,Qn=128,rt=512,Se=1024,De=2048,_t=4096,Ye=8192,nt=16384,Pt=32768,ei=1<<25,jt=65536,ao=1<<17,ls=1<<18,rr=1<<19,us=1<<20,kt=1<<25,nr=65536,ti=1<<21,ri=1<<22,Rt=1<<23,Bt=Symbol("$state"),ni=Symbol("legacy props"),cs=Symbol(""),Nt=new class extends Error{constructor(){super(...arguments);be(this,"name","StaleReactionError");be(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},bn=!!((Aa=globalThis.document)!=null&&Aa.contentType)&&globalThis.document.contentType.includes("xml"),mn=3,Ur=8;function ds(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function fs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function vs(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function hs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ps(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function gs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function bs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ms(){throw new Error("https://svelte.dev/e/hydration_failed")}function ws(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function _s(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ys(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function xs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function wn(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Cs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ss(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let G=!1;function We(e){G=e}let j;function Ue(e){if(e===null)throw wn(),mr;return j=e}function Hr(){return Ue(xt(j))}function E(e){if(G){if(xt(j)!==null)throw wn(),mr;j=e}}function dt(e=1){if(G){for(var t=e,r=j;t--;)r=xt(r);j=r}}function qr(e=!0){for(var t=0,r=j;;){if(r.nodeType===Ur){var n=r.data;if(n===Kn){if(t===0)return r;t-=1}else(n===Wn||n===Jn||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=xt(r);e&&r.remove(),r=i}}function ii(e){if(!e||e.nodeType!==Ur)throw wn(),mr;return e.data}function so(e){return e===this.v}function lo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function uo(e){return!lo(e,this.v)}let Es=!1,Oe=null;function kr(e){Oe=e}function ve(e,t=!1,r){Oe={p:Oe,i:!1,c:null,e:null,s:e,x:null,r:Q,l:null}}function he(e){var t=Oe,r=t.e;if(r!==null){t.e=null;for(var n of r)Ho(n)}return e!==void 0&&(t.x=e),t.i=!0,Oe=t.p,e??{}}function co(){return!0}let ir=[];function fo(){var e=ir;ir=[],io(e)}function yt(e){if(ir.length===0&&!Vr){var t=ir;queueMicrotask(()=>{t===ir&&fo()})}ir.push(e)}function Ms(){for(;ir.length>0;)fo()}function vo(e){var t=Q;if(t===null)return J.f|=Rt,e;if((t.f&Pt)===0&&(t.f&_r)===0)throw e;Ft(e,t)}function Ft(e,t){for(;t!==null;){if((t.f&Qn)!==0){if((t.f&Pt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Is=-7169;function _e(e,t){e.f=e.f&Is|t}function oi(e){(e.f&rt)!==0||e.deps===null?_e(e,Se):_e(e,_t)}function ho(e){if(e!==null)for(const t of e)(t.f&Le)===0||(t.f&nr)===0||(t.f^=nr,ho(t.deps))}function po(e,t,r){(e.f&De)!==0?t.add(e):(e.f&_t)!==0&&r.add(e),ho(e.deps),_e(e,Se)}function ai(e,t,r){if(e==null)return t(void 0),r&&r(void 0),Ze;const n=Fr(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const yr=[];function Ls(e,t){return{subscribe:si(e,t).subscribe}}function si(e,t=Ze){let r=null;const n=new Set;function i(l){if(lo(e,l)&&(e=l,r)){const a=!yr.length;for(const u of n)u[1](),yr.push(u,e);if(a){for(let u=0;u<yr.length;u+=2)yr[u][0](yr[u+1]);yr.length=0}}}function o(l){i(l(e))}function s(l,a=Ze){const u=[l,a];return n.add(u),n.size===1&&(r=t(i,o)||Ze),l(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function zs(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ls(r,(s,l)=>{let a=!1;const u=[];let d=0,h=Ze;const c=()=>{if(d)return;h();const b=t(n?u[0]:u,s,l);o?s(b):h=typeof b=="function"?b:Ze},v=i.map((b,x)=>ai(b,p=>{u[x]=p,d&=~(1<<x),a&&c()},()=>{d|=1<<x}));return a=!0,c(),function(){io(v),h(),a=!1}})}function Ns(e){let t;return ai(e,r=>t=r)(),t}let _n=!1,li=Symbol();function ft(e,t,r){const n=r[t]??(r[t]={store:null,source:hi(void 0),unsubscribe:Ze});if(n.store!==e&&!(li in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=Ze;else{var i=!0;n.unsubscribe=ai(e,o=>{i?n.source.v=o:W(n.source,o)}),i=!1}return e&&li in r?Ns(e):g(n.source)}function Or(){const e={};function t(){Cn(()=>{for(var r in e)e[r].unsubscribe();Dr(e,li,{enumerable:!1,value:!0})})}return[e,t]}function Ts(e){var t=_n;try{return _n=!1,[e(),_n]}finally{_n=t}}const Zt=new Set;let X=null,Te=null,ui=null,Vr=!1,ci=!1,xr=null,kn=null;var go=0;let $s=1;const $n=class $n{constructor(){F(this,ye);be(this,"id",$s++);be(this,"current",new Map);be(this,"previous",new Map);F(this,zr,new Set);F(this,Nr,new Set);F(this,$t,new Map);F(this,St,new Map);F(this,en,null);F(this,Ge,[]);F(this,vr,new Set);F(this,Dt,new Set);F(this,Et,new Map);be(this,"is_fork",!1);F(this,Tr,!1);F(this,hr,new Set)}skip_effect(t){f(this,Et).has(t)||f(this,Et).set(t,{d:[],m:[]})}unskip_effect(t){var r=f(this,Et).get(t);if(r){f(this,Et).delete(t);for(var n of r.d)_e(n,De),this.schedule(n);for(n of r.m)_e(n,_t),this.schedule(n)}}capture(t,r,n=!1){r!==Ie&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Rt)===0&&(this.current.set(t,[t.v,n]),Te==null||Te.set(t,t.v))}activate(){X=this}deactivate(){X=null,Te=null}flush(){try{ci=!0,X=this,ae(this,ye,Fn).call(this)}finally{go=0,ui=null,xr=null,kn=null,ci=!1,X=null,Te=null,Wt.clear()}}discard(){for(const t of f(this,Nr))t(this);f(this,Nr).clear(),Zt.delete(this)}increment(t,r){let n=f(this,$t).get(r)??0;if(f(this,$t).set(r,n+1),t){let i=f(this,St).get(r)??0;f(this,St).set(r,i+1)}}decrement(t,r,n){let i=f(this,$t).get(r)??0;if(i===1?f(this,$t).delete(r):f(this,$t).set(r,i-1),t){let o=f(this,St).get(r)??0;o===1?f(this,St).delete(r):f(this,St).set(r,o-1)}f(this,Tr)||n||(Z(this,Tr,!0),yt(()=>{Z(this,Tr,!1),this.flush()}))}transfer_effects(t,r){for(const n of t)f(this,vr).add(n);for(const n of r)f(this,Dt).add(n);t.clear(),r.clear()}oncommit(t){f(this,zr).add(t)}ondiscard(t){f(this,Nr).add(t)}settled(){return(f(this,en)??Z(this,en,oo())).promise}static ensure(){if(X===null){const t=X=new $n;ci||(Zt.add(X),Vr||yt(()=>{X===t&&t.flush()}))}return X}apply(){{Te=null;return}}schedule(t){var i;if(ui=t,(i=t.b)!=null&&i.is_pending&&(t.f&(_r|gn|Xn))!==0&&(t.f&Pt)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(xr!==null&&r===Q&&(J===null||(J.f&Le)===0))return;if((n&(Vt|ct))!==0){if((n&Se)===0)return;r.f^=Se}}f(this,Ge).push(r)}};zr=new WeakMap,Nr=new WeakMap,$t=new WeakMap,St=new WeakMap,en=new WeakMap,Ge=new WeakMap,vr=new WeakMap,Dt=new WeakMap,Et=new WeakMap,Tr=new WeakMap,hr=new WeakMap,ye=new WeakSet,Bn=function(){return this.is_fork||f(this,St).size>0},Ba=function(){for(const n of f(this,hr))for(const i of f(n,St).keys()){for(var t=!1,r=i;r.parent!==null;){if(f(this,Et).has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1},Fn=function(){var l,a;if(go++>1e3&&(Zt.delete(this),Ds()),!ae(this,ye,Bn).call(this)){for(const u of f(this,vr))f(this,Dt).delete(u),_e(u,De),this.schedule(u);for(const u of f(this,Dt))_e(u,_t),this.schedule(u)}const t=f(this,Ge);Z(this,Ge,[]),this.apply();var r=xr=[],n=[],i=kn=[];for(const u of t)try{ae(this,ye,Wi).call(this,u,r,n)}catch(d){throw ko(u),d}if(X=null,i.length>0){var o=$n.ensure();for(const u of i)o.schedule(u)}if(xr=null,kn=null,ae(this,ye,Bn).call(this)||ae(this,ye,Ba).call(this)){ae(this,ye,Ji).call(this,n),ae(this,ye,Ji).call(this,r);for(const[u,d]of f(this,Et))_o(u,d)}else{f(this,$t).size===0&&Zt.delete(this),f(this,vr).clear(),f(this,Dt).clear();for(const u of f(this,zr))u(this);f(this,zr).clear(),bo(n),bo(r),(l=f(this,en))==null||l.resolve()}var s=X;if(f(this,Ge).length>0){const u=s??(s=this);f(u,Ge).push(...f(this,Ge).filter(d=>!f(u,Ge).includes(d)))}s!==null&&(Zt.add(s),ae(a=s,ye,Fn).call(a)),Zt.has(this)||ae(this,ye,Fa).call(this)},Wi=function(t,r,n){t.f^=Se;for(var i=t.first;i!==null;){var o=i.f,s=(o&(ct|Vt))!==0,l=s&&(o&Se)!==0,a=l||(o&Ye)!==0||f(this,Et).has(i);if(!a&&i.fn!==null){s?i.f^=Se:(o&_r)!==0?r.push(i):Rr(i)&&((o&Ot)!==0&&f(this,Dt).add(i),Er(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var d=i.next;if(d!==null){i=d;break}i=i.parent}}},Ji=function(t){for(var r=0;r<t.length;r+=1)po(t[r],f(this,vr),f(this,Dt))},Fa=function(){var u,d,h;for(const c of Zt){var t=c.id<this.id,r=[];for(const[v,[b,x]]of this.current){if(c.current.has(v)){var n=c.current.get(v)[0];if(t&&b!==n)c.current.set(v,[b,x]);else continue}r.push(v)}var i=[...c.current.keys()].filter(v=>!this.current.has(v));if(i.length===0)t&&c.discard();else if(r.length>0){c.activate();var o=new Set,s=new Map;for(var l of r)mo(l,i,o,s);if(f(c,Ge).length>0){c.apply();for(var a of f(c,Ge))ae(u=c,ye,Wi).call(u,a,[],[]);Z(c,Ge,[])}c.deactivate()}}for(const c of Zt)f(c,hr).has(this)&&(f(c,hr).delete(this),f(c,hr).size===0&&!ae(d=c,ye,Bn).call(d)&&(c.activate(),ae(h=c,ye,Fn).call(h)))};let Yt=$n;function m(e){var t=Vr;Vr=!0;try{for(var r;;){if(Ms(),X===null)return r;X.flush()}}finally{Vr=t}}function Ds(){try{bs()}catch(e){Ft(e,ui)}}let vt=null;function bo(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(nt|Ye))===0&&Rr(n)&&(vt=new Set,Er(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Vo(n),(vt==null?void 0:vt.size)>0)){Wt.clear();for(const i of vt){if((i.f&(nt|Ye))!==0)continue;const o=[i];let s=i.parent;for(;s!==null;)vt.has(s)&&(vt.delete(s),o.push(s)),s=s.parent;for(let l=o.length-1;l>=0;l--){const a=o[l];(a.f&(nt|Ye))===0&&Er(a)}}vt.clear()}}vt=null}}function mo(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&Le)!==0?mo(i,t,r,n):(o&(ri|Ot))!==0&&(o&De)===0&&wo(i,t,n)&&(_e(i,De),di(i))}}function wo(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(wr.call(t,i))return!0;if((i.f&Le)!==0&&wo(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function di(e){X.schedule(e)}function _o(e,t){if(!((e.f&ct)!==0&&(e.f&Se)!==0)){(e.f&De)!==0?t.d.push(e):(e.f&_t)!==0&&t.m.push(e),_e(e,Se);for(var r=e.first;r!==null;)_o(r,t),r=r.next}}function ko(e){_e(e,Se);for(var t=e.first;t!==null;)ko(t),t=t.next}function As(e){let t=0,r=or(0),n;return()=>{wi()&&(g(r),_i(()=>(t===0&&(n=Fr(()=>e(()=>Pr(r)))),t+=1,()=>{yt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,Pr(r))})})))}}var Us=jt|rr;function Hs(e,t,r,n){new qs(e,t,r,n)}class qs{constructor(t,r,n,i){F(this,ge);be(this,"parent");be(this,"is_pending",!1);be(this,"transform_error");F(this,Xe);F(this,tn,G?j:null);F(this,Mt);F(this,pr);F(this,je);F(this,It,null);F(this,Qe,null);F(this,bt,null);F(this,At,null);F(this,gr,0);F(this,er,0);F(this,$r,!1);F(this,rn,new Set);F(this,nn,new Set);F(this,Ut,null);F(this,Dn,As(()=>(Z(this,Ut,or(f(this,gr))),()=>{Z(this,Ut,null)})));var o;Z(this,Xe,t),Z(this,Mt,r),Z(this,pr,s=>{var l=Q;l.b=this,l.f|=Qn,n(s)}),this.parent=Q.b,this.transform_error=i??((o=this.parent)==null?void 0:o.transform_error)??(s=>s),Z(this,je,jr(()=>{if(G){const s=f(this,tn);Hr();const l=s.data===Jn;if(s.data.startsWith(eo)){const u=JSON.parse(s.data.slice(eo.length));ae(this,ge,Ya).call(this,u)}else l?ae(this,ge,Wa).call(this):ae(this,ge,Za).call(this)}else ae(this,ge,Ki).call(this)},Us)),G&&Z(this,Xe,j)}defer_effect(t){po(t,f(this,rn),f(this,nn))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!f(this,Mt).pending}update_pending_count(t,r){ae(this,ge,Gi).call(this,t,r),Z(this,gr,f(this,gr)+t),!(!f(this,Ut)||f(this,$r))&&(Z(this,$r,!0),yt(()=>{Z(this,$r,!1),f(this,Ut)&&Cr(f(this,Ut),f(this,gr))}))}get_effect_pending(){return f(this,Dn).call(this),g(f(this,Ut))}error(t){var r=f(this,Mt).onerror;let n=f(this,Mt).failed;if(!r&&!n)throw t;f(this,It)&&(ze(f(this,It)),Z(this,It,null)),f(this,Qe)&&(ze(f(this,Qe)),Z(this,Qe,null)),f(this,bt)&&(ze(f(this,bt)),Z(this,bt,null)),G&&(Ue(f(this,tn)),dt(),Ue(qr()));var i=!1,o=!1;const s=()=>{if(i){Ss();return}i=!0,o&&xs(),f(this,bt)!==null&&sr(f(this,bt),()=>{Z(this,bt,null)}),ae(this,ge,Yn).call(this,()=>{ae(this,ge,Ki).call(this)})},l=a=>{try{o=!0,r==null||r(a,s),o=!1}catch(u){Ft(u,f(this,je)&&f(this,je).parent)}n&&Z(this,bt,ae(this,ge,Yn).call(this,()=>{try{return Ve(()=>{var u=Q;u.b=this,u.f|=Qn,n(f(this,Xe),()=>a,()=>s)})}catch(u){return Ft(u,f(this,je).parent),null}}))};yt(()=>{var a;try{a=this.transform_error(t)}catch(u){Ft(u,f(this,je)&&f(this,je).parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(l,u=>Ft(u,f(this,je)&&f(this,je).parent)):l(a)})}}Xe=new WeakMap,tn=new WeakMap,Mt=new WeakMap,pr=new WeakMap,je=new WeakMap,It=new WeakMap,Qe=new WeakMap,bt=new WeakMap,At=new WeakMap,gr=new WeakMap,er=new WeakMap,$r=new WeakMap,rn=new WeakMap,nn=new WeakMap,Ut=new WeakMap,Dn=new WeakMap,ge=new WeakSet,Za=function(){try{Z(this,It,Ve(()=>f(this,pr).call(this,f(this,Xe))))}catch(t){this.error(t)}},Ya=function(t){const r=f(this,Mt).failed;r&&Z(this,bt,Ve(()=>{r(f(this,Xe),()=>t,()=>()=>{})}))},Wa=function(){const t=f(this,Mt).pending;t&&(this.is_pending=!0,Z(this,Qe,Ve(()=>t(f(this,Xe)))),yt(()=>{var r=Z(this,At,document.createDocumentFragment()),n=it();r.append(n),Z(this,It,ae(this,ge,Yn).call(this,()=>Ve(()=>f(this,pr).call(this,n)))),f(this,er)===0&&(f(this,Xe).before(r),Z(this,At,null),sr(f(this,Qe),()=>{Z(this,Qe,null)}),ae(this,ge,Zn).call(this,X))}))},Ki=function(){try{if(this.is_pending=this.has_pending_snippet(),Z(this,er,0),Z(this,gr,0),Z(this,It,Ve(()=>{f(this,pr).call(this,f(this,Xe))})),f(this,er)>0){var t=Z(this,At,document.createDocumentFragment());xi(f(this,It),t);const r=f(this,Mt).pending;Z(this,Qe,Ve(()=>r(f(this,Xe))))}else ae(this,ge,Zn).call(this,X)}catch(r){this.error(r)}},Zn=function(t){this.is_pending=!1,t.transfer_effects(f(this,rn),f(this,nn))},Yn=function(t){var r=Q,n=J,i=Oe;Ct(f(this,je)),at(f(this,je)),kr(f(this,je).ctx);try{return Yt.ensure(),t()}catch(o){return vo(o),null}finally{Ct(r),at(n),kr(i)}},Gi=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&&ae(n=this.parent,ge,Gi).call(n,t,r);return}Z(this,er,f(this,er)+t),f(this,er)===0&&(ae(this,ge,Zn).call(this,r),f(this,Qe)&&sr(f(this,Qe),()=>{Z(this,Qe,null)}),f(this,At)&&(f(this,Xe).before(f(this,At)),Z(this,At,null)))};function yo(e,t,r,n){const i=xn;var o=e.filter(c=>!c.settled);if(r.length===0&&o.length===0){n(t.map(i));return}var s=Q,l=Os(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(c=>c.promise)):null;function u(c){l();try{n(c)}catch(v){(s.f&nt)===0&&Ft(v,s)}yn()}if(r.length===0){a.then(()=>u(t.map(i)));return}var d=xo();function h(){Promise.all(r.map(c=>Vs(c))).then(c=>u([...t.map(i),...c])).catch(c=>Ft(c,s)).finally(()=>d())}a?a.then(()=>{l(),h(),yn()}):h()}function Os(){var e=Q,t=J,r=Oe,n=X;return function(o=!0){Ct(e),at(t),kr(r),o&&(e.f&nt)===0&&(n==null||n.activate(),n==null||n.apply())}}function yn(e=!0){Ct(null),at(null),kr(null),e&&(X==null||X.deactivate())}function xo(){var e=Q,t=e.b,r=X,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function xn(e){var t=Le|De,r=J!==null&&(J.f&Le)!==0?J:null;return Q!==null&&(Q.f|=rr),{ctx:Oe,deps:null,effects:null,equals:so,f:t,fn:e,reactions:null,rv:0,v:Ie,wv:0,parent:r??Q,ac:null}}function Vs(e,t,r){let n=Q;n===null&&fs();var i=void 0,o=or(Ie),s=!J,l=new Map;return Xs(()=>{var v;var a=Q,u=oo();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(yn)}catch(b){u.reject(b),yn()}var d=X;if(s){if((a.f&Pt)!==0)var h=xo();if(n.b.is_rendered())(v=l.get(d))==null||v.reject(Nt),l.delete(d);else{for(const b of l.values())b.reject(Nt);l.clear()}l.set(d,u)}const c=(b,x=void 0)=>{if(h){var p=x===Nt;h(p)}if(!(x===Nt||(a.f&nt)!==0)){if(d.activate(),x)o.f|=Rt,Cr(o,x);else{(o.f&Rt)!==0&&(o.f^=Rt),Cr(o,b);for(const[_,M]of l){if(l.delete(_),_===d)break;M.reject(Nt)}}d.deactivate()}};u.promise.then(c,b=>c(null,b||"unknown"))}),Cn(()=>{for(const a of l.values())a.reject(Nt)}),new Promise(a=>{function u(d){function h(){d===i?a(o):u(i)}d.then(h,h)}u(i)})}function Y(e){const t=xn(e);return Bo(t),t}function Co(e){const t=xn(e);return t.equals=uo,t}function Ps(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ze(t[r])}}function js(e){for(var t=e.parent;t!==null;){if((t.f&Le)===0)return(t.f&nt)===0?t:null;t=t.parent}return null}function fi(e){var t,r=Q;Ct(js(e));try{e.f&=~nr,Ps(e),t=Jo(e)}finally{Ct(r)}return t}function So(e){var t=e.v,r=fi(e);if(!e.equals(r)&&(e.wv=Yo(),(!(X!=null&&X.is_fork)||e.deps===null)&&(e.v=r,X==null||X.capture(e,t,!0),e.deps===null))){_e(e,Se);return}Kt||(Te!==null?(wi()||X!=null&&X.is_fork)&&Te.set(e,r):oi(e))}function Rs(e){var t,r;if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&((t=n.teardown)==null||t.call(n),(r=n.ac)==null||r.abort(Nt),n.teardown=Ze,n.ac=null,Br(n,0),ki(n))}function Eo(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Er(t)}let vi=new Set;const Wt=new Map;let Mo=!1;function or(e,t){var r={f:0,v:e,reactions:null,equals:so,rv:0,wv:0};return r}function se(e,t){const r=or(e);return Bo(r),r}function hi(e,t=!1,r=!0){const n=or(e);return t||(n.equals=uo),n}function W(e,t,r=!1){J!==null&&(!pt||(J.f&ao)!==0)&&co()&&(J.f&(Le|Ot|ri|ao))!==0&&(st===null||!wr.call(st,e))&&ys();let n=r?Jt(t):t;return Cr(e,n,kn)}function Cr(e,t,r=null){if(!e.equals(t)){var n=e.v;Kt?Wt.set(e,t):Wt.set(e,n),e.v=t;var i=Yt.ensure();if(i.capture(e,n),(e.f&Le)!==0){const o=e;(e.f&De)!==0&&fi(o),Te===null&&oi(o)}e.wv=Yo(),Io(e,De,r),Q!==null&&(Q.f&Se)!==0&&(Q.f&(ct|Vt))===0&&(lt===null?tl([e]):lt.push(e)),!i.is_fork&&vi.size>0&&!Mo&&Bs()}return t}function Bs(){Mo=!1;for(const e of vi)(e.f&Se)!==0&&_e(e,_t),Rr(e)&&Er(e);vi.clear()}function Pr(e){W(e,e.v+1)}function Io(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,o=0;o<i;o++){var s=n[o],l=s.f,a=(l&De)===0;if(a&&_e(s,t),(l&Le)!==0){var u=s;Te==null||Te.delete(u),(l&nr)===0&&(l&rt&&(s.f|=nr),Io(u,_t,r))}else if(a){var d=s;(l&Ot)!==0&&vt!==null&&vt.add(d),r!==null?r.push(d):di(d)}}}function Jt(e){if(typeof e!="object"||e===null||Bt in e)return e;const t=ro(e);if(t!==as&&t!==ss)return e;var r=new Map,n=Gn(e),i=se(0),o=ur,s=l=>{if(ur===o)return l();var a=J,u=ur;at(null),Zo(o);var d=l();return at(a),Zo(u),d};return n&&r.set("length",se(e.length)),new Proxy(e,{defineProperty(l,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&_s();var d=r.get(a);return d===void 0?s(()=>{var h=se(u.value);return r.set(a,h),h}):W(d,u.value,!0),!0},deleteProperty(l,a){var u=r.get(a);if(u===void 0){if(a in l){const d=s(()=>se(Ie));r.set(a,d),Pr(i)}}else W(u,Ie),Pr(i);return!0},get(l,a,u){var v;if(a===Bt)return e;var d=r.get(a),h=a in l;if(d===void 0&&(!h||(v=zt(l,a))!=null&&v.writable)&&(d=s(()=>{var b=Jt(h?l[a]:Ie),x=se(b);return x}),r.set(a,d)),d!==void 0){var c=g(d);return c===Ie?void 0:c}return Reflect.get(l,a,u)},getOwnPropertyDescriptor(l,a){var u=Reflect.getOwnPropertyDescriptor(l,a);if(u&&"value"in u){var d=r.get(a);d&&(u.value=g(d))}else if(u===void 0){var h=r.get(a),c=h==null?void 0:h.v;if(h!==void 0&&c!==Ie)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(l,a){var c;if(a===Bt)return!0;var u=r.get(a),d=u!==void 0&&u.v!==Ie||Reflect.has(l,a);if(u!==void 0||Q!==null&&(!d||(c=zt(l,a))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=d?Jt(l[a]):Ie,b=se(v);return b}),r.set(a,u));var h=g(u);if(h===Ie)return!1}return d},set(l,a,u,d){var S;var h=r.get(a),c=a in l;if(n&&a==="length")for(var v=u;v<h.v;v+=1){var b=r.get(v+"");b!==void 0?W(b,Ie):v in l&&(b=s(()=>se(Ie)),r.set(v+"",b))}if(h===void 0)(!c||(S=zt(l,a))!=null&&S.writable)&&(h=s(()=>se(void 0)),W(h,Jt(u)),r.set(a,h));else{c=h.v!==Ie;var x=s(()=>Jt(u));W(h,x)}var p=Reflect.getOwnPropertyDescriptor(l,a);if(p!=null&&p.set&&p.set.call(d,u),!c){if(n&&typeof a=="string"){var _=r.get("length"),M=Number(a);Number.isInteger(M)&&M>=_.v&&W(_,M+1)}Pr(i)}return!0},ownKeys(l){g(i);var a=Reflect.ownKeys(l).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Ie});for(var[u,d]of r)d.v!==Ie&&!(u in l)&&a.push(u);return a},setPrototypeOf(){ks()}})}function Lo(e){try{if(e!==null&&typeof e=="object"&&Bt in e)return e[Bt]}catch{}return e}function Fs(e,t){return Object.is(Lo(e),Lo(t))}var zo,No,To,$o;function pi(){if(zo===void 0){zo=window,No=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;To=zt(t,"firstChild").get,$o=zt(t,"nextSibling").get,no(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),no(r)&&(r.__t=void 0)}}function it(e=""){return document.createTextNode(e)}function ot(e){return To.call(e)}function xt(e){return $o.call(e)}function L(e,t){if(!G)return ot(e);var r=ot(j);if(r===null)r=j.appendChild(it());else if(t&&r.nodeType!==mn){var n=it();return r==null||r.before(n),Ue(n),n}return t&&bi(r),Ue(r),r}function ar(e,t=!1){if(!G){var r=ot(e);return r instanceof Comment&&r.data===""?xt(r):r}if(t){if((j==null?void 0:j.nodeType)!==mn){var n=it();return j==null||j.before(n),Ue(n),n}bi(j)}return j}function Ee(e,t=1,r=!1){let n=G?j:e;for(var i;t--;)i=n,n=xt(n);if(!G)return n;if(r){if((n==null?void 0:n.nodeType)!==mn){var o=it();return n===null?i==null||i.after(o):n.before(o),Ue(o),o}bi(n)}return Ue(n),n}function Do(e){e.textContent=""}function Ao(){return!1}function gi(e,t,r){return document.createElementNS(to,e,void 0)}function bi(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===mn;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Zs(e,t){if(t){const r=document.body;e.autofocus=!0,yt(()=>{document.activeElement===r&&e.focus()})}}let Uo=!1;function Ys(){Uo||(Uo=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function mi(e){var t=J,r=Q;at(null),Ct(null);try{return e()}finally{at(t),Ct(r)}}function Ws(e){Q===null&&(J===null&&gs(),ps()),Kt&&hs()}function Js(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ht(e,t){var r=Q;r!==null&&(r.f&Ye)!==0&&(e|=Ye);var n={ctx:Oe,deps:null,nodes:null,f:e|De|rt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&_r)!==0)xr!==null?xr.push(n):Yt.ensure().schedule(n);else if(t!==null){try{Er(n)}catch(s){throw ze(n),s}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&rr)===0&&(i=i.first,(e&Ot)!==0&&(e&jt)!==0&&i!==null&&(i.f|=jt))}if(i!==null&&(i.parent=r,r!==null&&Js(i,r),J!==null&&(J.f&Le)!==0&&(e&Vt)===0)){var o=J;(o.effects??(o.effects=[])).push(i)}return n}function wi(){return J!==null&&!pt}function Cn(e){const t=ht(gn,null);return _e(t,Se),t.teardown=e,t}function Sr(e){Ws();var t=Q.f,r=!J&&(t&ct)!==0&&(t&Pt)===0;if(r){var n=Oe;(n.e??(n.e=[])).push(e)}else return Ho(e)}function Ho(e){return ht(_r|us,e)}function Ks(e){Yt.ensure();const t=ht(Vt|rr,e);return()=>{ze(t)}}function Gs(e){Yt.ensure();const t=ht(Vt|rr,e);return(r={})=>new Promise(n=>{r.outro?sr(t,()=>{ze(t),n(void 0)}):(ze(t),n(void 0))})}function Sn(e){return ht(_r,e)}function Xs(e){return ht(ri|rr,e)}function _i(e,t=0){return ht(gn|t,e)}function $e(e,t=[],r=[],n=[]){yo(n,t,r,i=>{ht(gn,()=>e(...i.map(g)))})}function jr(e,t=0){var r=ht(Ot|t,e);return r}function qo(e,t=0){var r=ht(Xn|t,e);return r}function Ve(e){return ht(ct|rr,e)}function Oo(e){var t=e.teardown;if(t!==null){const r=Kt,n=J;Ro(!0),at(null);try{t.call(null)}finally{Ro(r),at(n)}}}function ki(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&mi(()=>{i.abort(Nt)});var n=r.next;(r.f&Vt)!==0?r.parent=null:ze(r,t),r=n}}function Qs(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ct)===0&&ze(t),t=r}}function ze(e,t=!0){var r=!1;(t||(e.f&ls)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(el(e.nodes.start,e.nodes.end),r=!0),_e(e,ei),ki(e,t&&!r),Br(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)o.stop();Oo(e),e.f^=ei,e.f|=nt;var i=e.parent;i!==null&&i.first!==null&&Vo(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function el(e,t){for(;e!==null;){var r=e===t?null:xt(e);e.remove(),e=r}}function Vo(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function sr(e,t,r=!0){var n=[];Po(e,n,!0);var i=()=>{r&&ze(e),t&&t()},o=n.length;if(o>0){var s=()=>--o||i();for(var l of n)l.out(s)}else i()}function Po(e,t,r){if((e.f&Ye)===0){e.f^=Ye;var n=e.nodes&&e.nodes.t;if(n!==null)for(const l of n)(l.is_global||r)&&t.push(l);for(var i=e.first;i!==null;){var o=i.next,s=(i.f&jt)!==0||(i.f&ct)!==0&&(e.f&Ot)!==0;Po(i,t,s?r:!1),i=o}}}function yi(e){jo(e,!0)}function jo(e,t){if((e.f&Ye)!==0){e.f^=Ye,(e.f&Se)===0&&(_e(e,De),Yt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&jt)!==0||(r.f&ct)!==0;jo(r,i?t:!1),r=n}var o=e.nodes&&e.nodes.t;if(o!==null)for(const s of o)(s.is_global||t)&&s.in()}}function xi(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:xt(r);t.append(r),r=i}}let En=!1,Kt=!1;function Ro(e){Kt=e}let J=null,pt=!1;function at(e){J=e}let Q=null;function Ct(e){Q=e}let st=null;function Bo(e){J!==null&&(st===null?st=[e]:st.push(e))}let Pe=null,Je=0,lt=null;function tl(e){lt=e}let Fo=1,lr=0,ur=lr;function Zo(e){ur=e}function Yo(){return++Fo}function Rr(e){var t=e.f;if((t&De)!==0)return!0;if(t&Le&&(e.f&=~nr),(t&_t)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var o=r[i];if(Rr(o)&&So(o),o.wv>e.wv)return!0}(t&rt)!==0&&Te===null&&_e(e,Se)}return!1}function Wo(e,t,r=!0){var n=e.reactions;if(n!==null&&!(st!==null&&wr.call(st,e)))for(var i=0;i<n.length;i++){var o=n[i];(o.f&Le)!==0?Wo(o,t,!1):t===o&&(r?_e(o,De):(o.f&Se)!==0&&_e(o,_t),di(o))}}function Jo(e){var x;var t=Pe,r=Je,n=lt,i=J,o=st,s=Oe,l=pt,a=ur,u=e.f;Pe=null,Je=0,lt=null,J=(u&(ct|Vt))===0?e:null,st=null,kr(e.ctx),pt=!1,ur=++lr,e.ac!==null&&(mi(()=>{e.ac.abort(Nt)}),e.ac=null);try{e.f|=ti;var d=e.fn,h=d();e.f|=Pt;var c=e.deps,v=X==null?void 0:X.is_fork;if(Pe!==null){var b;if(v||Br(e,Je),c!==null&&Je>0)for(c.length=Je+Pe.length,b=0;b<Pe.length;b++)c[Je+b]=Pe[b];else e.deps=c=Pe;if(wi()&&(e.f&rt)!==0)for(b=Je;b<c.length;b++)((x=c[b]).reactions??(x.reactions=[])).push(e)}else!v&&c!==null&&Je<c.length&&(Br(e,Je),c.length=Je);if(co()&&lt!==null&&!pt&&c!==null&&(e.f&(Le|_t|De))===0)for(b=0;b<lt.length;b++)Wo(lt[b],e);if(i!==null&&i!==e){if(lr++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=lr;if(t!==null)for(const p of t)p.rv=lr;lt!==null&&(n===null?n=lt:n.push(...lt))}return(e.f&Rt)!==0&&(e.f^=Rt),h}catch(p){return vo(p)}finally{e.f^=ti,Pe=t,Je=r,lt=n,J=i,st=o,kr(s),pt=l,ur=a}}function rl(e,t){let r=t.reactions;if(r!==null){var n=is.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&Le)!==0&&(Pe===null||!wr.call(Pe,t))){var o=t;(o.f&rt)!==0&&(o.f^=rt,o.f&=~nr),oi(o),Rs(o),Br(o,0)}}function Br(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)rl(e,r[n])}function Er(e){var t=e.f;if((t&nt)===0){_e(e,Se);var r=Q,n=En;Q=e,En=!0;try{(t&(Ot|Xn))!==0?Qs(e):ki(e),Oo(e);var i=Jo(e);e.teardown=typeof i=="function"?i:null,e.wv=Fo;var o;ns&&Es&&(e.f&De)!==0&&e.deps}finally{En=n,Q=r}}}function g(e){var t=e.f,r=(t&Le)!==0;if(J!==null&&!pt){var n=Q!==null&&(Q.f&nt)!==0;if(!n&&(st===null||!wr.call(st,e))){var i=J.deps;if((J.f&ti)!==0)e.rv<lr&&(e.rv=lr,Pe===null&&i!==null&&i[Je]===e?Je++:Pe===null?Pe=[e]:Pe.push(e));else{(J.deps??(J.deps=[])).push(e);var o=e.reactions;o===null?e.reactions=[J]:wr.call(o,J)||o.push(J)}}}if(Kt&&Wt.has(e))return Wt.get(e);if(r){var s=e;if(Kt){var l=s.v;return((s.f&Se)===0&&s.reactions!==null||Go(s))&&(l=fi(s)),Wt.set(s,l),l}var a=(s.f&rt)===0&&!pt&&J!==null&&(En||(J.f&rt)!==0),u=(s.f&Pt)===0;Rr(s)&&(a&&(s.f|=rt),So(s)),a&&!u&&(Eo(s),Ko(s))}if(Te!=null&&Te.has(e))return Te.get(e);if((e.f&Rt)!==0)throw e.v;return e.v}function Ko(e){if(e.f|=rt,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&Le)!==0&&(t.f&rt)===0&&(Eo(t),Ko(t))}function Go(e){if(e.v===Ie)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Wt.has(t)||(t.f&Le)!==0&&Go(t))return!0;return!1}function Fr(e){var t=pt;try{return pt=!0,e()}finally{pt=t}}const cr=Symbol("events"),Xo=new Set,Ci=new Set;function Qo(e,t,r,n={}){function i(o){if(n.capture||Si.call(t,o),!o.cancelBubble)return mi(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?yt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function Ke(e,t,r,n,i){var o={capture:n,passive:i},s=Qo(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Cn(()=>{t.removeEventListener(e,s,o)})}function ke(e,t,r){(t[cr]??(t[cr]={}))[e]=r}function Mr(e){for(var t=0;t<e.length;t++)Xo.add(e[t]);for(var r of Ci)r(e)}let ea=null;function Si(e){var p,_;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],o=i[0]||e.target;ea=e;var s=0,l=ea===e&&e[cr];if(l){var a=i.indexOf(l);if(a!==-1&&(t===document||t===window)){e[cr]=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(s=a)}if(o=i[s]||e.target,o!==t){Dr(e,"currentTarget",{configurable:!0,get(){return o||r}});var d=J,h=Q;at(null),Ct(null);try{for(var c,v=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var x=(_=o[cr])==null?void 0:_[n];x!=null&&(!o.disabled||e.target===o)&&x.call(o,e)}catch(M){c?v.push(M):c=M}if(e.cancelBubble||b===t||b===null)break;o=b}if(c){for(let M of v)queueMicrotask(()=>{throw M});throw c}}finally{e[cr]=t,delete e.currentTarget,at(d),Ct(h)}}}const Ei=((Ua=globalThis==null?void 0:globalThis.window)==null?void 0:Ua.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function nl(e){return(Ei==null?void 0:Ei.createHTML(e))??e}function ta(e){var t=gi("template");return t.innerHTML=nl(e.replaceAll("<!>","<!---->")),t.content}function Tt(e,t){var r=Q;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function le(e,t){var r=(t&Qi)!==0,n=(t&ts)!==0,i,o=!e.startsWith("<!>");return()=>{if(G)return Tt(j,null),j;i===void 0&&(i=ta(o?e:"<!>"+e),r||(i=ot(i)));var s=n||No?document.importNode(i,!0):i.cloneNode(!0);if(r){var l=ot(s),a=s.lastChild;Tt(l,a)}else Tt(s,s);return s}}function il(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&Qi)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(G)return Tt(j,null),j;if(!s){var l=ta(o),a=ot(l);if(i)for(s=document.createDocumentFragment();ot(a);)s.appendChild(ot(a));else s=ot(a)}var u=s.cloneNode(!0);if(i){var d=ot(u),h=u.lastChild;Tt(d,h)}else Tt(u,u);return u}}function pe(e,t){return il(e,t,"svg")}function Mn(){if(G)return Tt(j,null),j;var e=document.createDocumentFragment(),t=document.createComment(""),r=it();return e.append(t,r),Tt(t,r),e}function A(e,t){if(G){var r=Q;((r.f&Pt)===0||r.nodes.end===null)&&(r.nodes.end=j),Hr();return}e!==null&&e.before(t)}function ol(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const al=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function sl(e){return al.includes(e)}const ll={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ul(e){return e=e.toLowerCase(),ll[e]??e}const cl=["touchstart","touchmove"];function dl(e){return cl.includes(e)}function Zr(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=`${r}`)}function ra(e,t){return na(e,t)}function fl(e,t){pi(),t.intro=t.intro??!1;const r=t.target,n=G,i=j;try{for(var o=ot(r);o&&(o.nodeType!==Ur||o.data!==Wn);)o=xt(o);if(!o)throw mr;We(!0),Ue(o);const s=na(e,{...t,anchor:o});return We(!1),s}catch(s){if(s instanceof Error&&s.message.split(`
2
- `).some(l=>l.startsWith("https://svelte.dev/e/")))throw s;return s!==mr&&console.warn("Failed to hydrate: ",s),t.recover===!1&&ms(),pi(),Do(r),We(!1),ra(e,t)}finally{We(n),Ue(i)}}const In=new Map;function na(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0,transformError:l}){pi();var a=void 0,u=Gs(()=>{var d=r??t.appendChild(it());Hs(d,{pending:()=>{}},v=>{ve({});var b=Oe;if(o&&(b.c=o),i&&(n.$$events=i),G&&Tt(v,null),a=e(v,n)||{},G&&(Q.nodes.end=j,j===null||j.nodeType!==Ur||j.data!==Kn))throw wn(),mr;he()},l);var h=new Set,c=v=>{for(var b=0;b<v.length;b++){var x=v[b];if(!h.has(x)){h.add(x);var p=dl(x);for(const S of[t,document]){var _=In.get(S);_===void 0&&(_=new Map,In.set(S,_));var M=_.get(x);M===void 0?(S.addEventListener(x,Si,{passive:p}),_.set(x,1)):_.set(x,M+1)}}}};return c(hn(Xo)),Ci.add(c),()=>{var p;for(var v of h)for(const _ of[t,document]){var b=In.get(_),x=b.get(v);--x==0?(_.removeEventListener(v,Si),b.delete(v),b.size===0&&In.delete(_)):b.set(v,x)}Ci.delete(c),d!==r&&((p=d.parentNode)==null||p.removeChild(d))}});return Mi.set(a,u),a}let Mi=new WeakMap;function vl(e,t){const r=Mi.get(e);return r?(Mi.delete(e),r(t)):Promise.resolve()}class Ii{constructor(t,r=!0){be(this,"anchor");F(this,mt,new Map);F(this,Lt,new Map);F(this,et,new Map);F(this,br,new Set);F(this,on,!0);F(this,an,t=>{if(f(this,mt).has(t)){var r=f(this,mt).get(t),n=f(this,Lt).get(r);if(n)yi(n),f(this,br).delete(r);else{var i=f(this,et).get(r);i&&(f(this,Lt).set(r,i.effect),f(this,et).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,s]of f(this,mt)){if(f(this,mt).delete(o),o===t)break;const l=f(this,et).get(s);l&&(ze(l.effect),f(this,et).delete(s))}for(const[o,s]of f(this,Lt)){if(o===r||f(this,br).has(o))continue;const l=()=>{if(Array.from(f(this,mt).values()).includes(o)){var u=document.createDocumentFragment();xi(s,u),u.append(it()),f(this,et).set(o,{effect:s,fragment:u})}else ze(s);f(this,br).delete(o),f(this,Lt).delete(o)};f(this,on)||!n?(f(this,br).add(o),sr(s,l,!1)):l()}}});F(this,An,t=>{f(this,mt).delete(t);const r=Array.from(f(this,mt).values());for(const[n,i]of f(this,et))r.includes(n)||(ze(i.effect),f(this,et).delete(n))});this.anchor=t,Z(this,on,r)}ensure(t,r){var n=X,i=Ao();if(r&&!f(this,Lt).has(t)&&!f(this,et).has(t))if(i){var o=document.createDocumentFragment(),s=it();o.append(s),f(this,et).set(t,{effect:Ve(()=>r(s)),fragment:o})}else f(this,Lt).set(t,Ve(()=>r(this.anchor)));if(f(this,mt).set(n,t),i){for(const[l,a]of f(this,Lt))l===t?n.unskip_effect(a):n.skip_effect(a);for(const[l,a]of f(this,et))l===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(f(this,an)),n.ondiscard(f(this,An))}else G&&(this.anchor=j),f(this,an).call(this,n)}}mt=new WeakMap,Lt=new WeakMap,et=new WeakMap,br=new WeakMap,on=new WeakMap,an=new WeakMap,An=new WeakMap;function Ln(e,t,...r){var n=new Ii(e);jr(()=>{const i=t()??null;n.ensure(i,i&&(o=>i(o,...r)))},jt)}function hl(e){Oe===null&&ds(),Sr(()=>{const t=Fr(e);if(typeof t=="function")return t})}function ue(e,t,r=!1){var n;G&&(n=j,Hr());var i=new Ii(e),o=r?jt:0;function s(l,a){if(G){var u=ii(n);if(l!==parseInt(u.substring(1))){var d=qr();Ue(d),i.anchor=d,We(!1),i.ensure(l,a),We(!0);return}}i.ensure(l,a)}jr(()=>{var l=!1;t((a,u=0)=>{l=!0,s(u,a)}),l||s(-1,null)},o)}function pl(e,t){return t}function gl(e,t,r){for(var n=[],i=t.length,o,s=t.length,l=0;l<i;l++){let h=t[l];sr(h,()=>{if(o){if(o.pending.delete(h),o.done.add(h),o.pending.size===0){var c=e.outrogroups;Li(e,hn(o.done)),c.delete(o),c.size===0&&(e.outrogroups=null)}}else s-=1},!1)}if(s===0){var a=n.length===0&&r!==null;if(a){var u=r,d=u.parentNode;Do(d),d.append(u),e.items.clear()}Li(e,t,!a)}else o={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(o)}function Li(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const s of e.pending.values())for(const l of s)n.add(e.items.get(l).e)}for(var i=0;i<t.length;i++){var o=t[i];if(n!=null&&n.has(o)){o.f|=kt;const s=document.createDocumentFragment();xi(o,s)}else ze(t[i],r)}}var ia;function oa(e,t,r,n,i,o=null){var s=e,l=new Map,a=(t&Xi)!==0;if(a){var u=e;s=G?Ue(ot(u)):u.appendChild(it())}G&&Hr();var d=null,h=Co(()=>{var S=r();return Gn(S)?S:S==null?[]:hn(S)}),c,v=new Map,b=!0;function x(S){(M.effect.f&nt)===0&&(M.pending.delete(S),M.fallback=d,bl(M,c,s,t,n),d!==null&&(c.length===0?(d.f&kt)===0?yi(d):(d.f^=kt,Wr(d,null,s)):sr(d,()=>{d=null})))}function p(S){M.pending.delete(S)}var _=jr(()=>{c=g(h);var S=c.length;let $=!1;if(G){var z=ii(s)===Jn;z!==(S===0)&&(s=qr(),Ue(s),We(!1),$=!0)}for(var y=new Set,N=X,U=Ao(),R=0;R<S;R+=1){G&&j.nodeType===Ur&&j.data===Kn&&(s=j,$=!0,We(!1));var C=c[R],q=n(C,R),K=b?null:l.get(q);K?(K.v&&Cr(K.v,C),K.i&&Cr(K.i,R),U&&N.unskip_effect(K.e)):(K=ml(l,b?s:ia??(ia=it()),C,q,R,i,t,r),b||(K.e.f|=kt),l.set(q,K)),y.add(q)}if(S===0&&o&&!d&&(b?d=Ve(()=>o(s)):(d=Ve(()=>o(ia??(ia=it()))),d.f|=kt)),S>y.size&&vs(),G&&S>0&&Ue(qr()),!b)if(v.set(N,y),U){for(const[ce,we]of l)y.has(ce)||N.skip_effect(we.e);N.oncommit(x),N.ondiscard(p)}else x(N);$&&We(!0),g(h)}),M={effect:_,items:l,pending:v,outrogroups:null,fallback:d};b=!1,G&&(s=j)}function Yr(e){for(;e!==null&&(e.f&ct)===0;)e=e.next;return e}function bl(e,t,r,n,i){var C,q,K,ce,we,D,ee,I,T;var o=(n&Ja)!==0,s=t.length,l=e.items,a=Yr(e.effect.first),u,d=null,h,c=[],v=[],b,x,p,_;if(o)for(_=0;_<s;_+=1)b=t[_],x=i(b,_),p=l.get(x).e,(p.f&kt)===0&&((q=(C=p.nodes)==null?void 0:C.a)==null||q.measure(),(h??(h=new Set)).add(p));for(_=0;_<s;_+=1){if(b=t[_],x=i(b,_),p=l.get(x).e,e.outrogroups!==null)for(const O of e.outrogroups)O.pending.delete(p),O.done.delete(p);if((p.f&Ye)!==0&&(yi(p),o&&((ce=(K=p.nodes)==null?void 0:K.a)==null||ce.unfix(),(h??(h=new Set)).delete(p))),(p.f&kt)!==0)if(p.f^=kt,p===a)Wr(p,null,r);else{var M=d?d.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Gt(e,d,p),Gt(e,p,M),Wr(p,M,r),d=p,c=[],v=[],a=Yr(d.next);continue}if(p!==a){if(u!==void 0&&u.has(p)){if(c.length<v.length){var S=v[0],$;d=S.prev;var z=c[0],y=c[c.length-1];for($=0;$<c.length;$+=1)Wr(c[$],S,r);for($=0;$<v.length;$+=1)u.delete(v[$]);Gt(e,z.prev,y.next),Gt(e,d,z),Gt(e,y,S),a=S,d=y,_-=1,c=[],v=[]}else u.delete(p),Wr(p,a,r),Gt(e,p.prev,p.next),Gt(e,p,d===null?e.effect.first:d.next),Gt(e,d,p),d=p;continue}for(c=[],v=[];a!==null&&a!==p;)(u??(u=new Set)).add(a),v.push(a),a=Yr(a.next);if(a===null)continue}(p.f&kt)===0&&c.push(p),d=p,a=Yr(p.next)}if(e.outrogroups!==null){for(const O of e.outrogroups)O.pending.size===0&&(Li(e,hn(O.done)),(we=e.outrogroups)==null||we.delete(O));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||u!==void 0){var N=[];if(u!==void 0)for(p of u)(p.f&Ye)===0&&N.push(p);for(;a!==null;)(a.f&Ye)===0&&a!==e.fallback&&N.push(a),a=Yr(a.next);var U=N.length;if(U>0){var R=(n&Xi)!==0&&s===0?r:null;if(o){for(_=0;_<U;_+=1)(ee=(D=N[_].nodes)==null?void 0:D.a)==null||ee.measure();for(_=0;_<U;_+=1)(T=(I=N[_].nodes)==null?void 0:I.a)==null||T.fix()}gl(e,N,R)}}o&&yt(()=>{var O,B;if(h!==void 0)for(p of h)(B=(O=p.nodes)==null?void 0:O.a)==null||B.apply()})}function ml(e,t,r,n,i,o,s,l){var a=(s&Ce)!==0?(s&Ka)===0?hi(r,!1,!1):or(r):null,u=(s&vn)!==0?or(i):null;return{v:a,i:u,e:Ve(()=>(o(t,a??r,u??i,l),()=>{e.delete(n)}))}}function Wr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,o=t&&(t.f&kt)===0?t.nodes.start:r;n!==null;){var s=xt(n);if(o.before(n),n===i)return;n=s}}function Gt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function wl(e,t,r){var n;G&&(n=j,Hr());var i=new Ii(e);jr(()=>{var o=t()??null;if(G){var s=ii(n),l=s===Wn,a=o!==null;if(l!==a){var u=qr();Ue(u),i.anchor=u,We(!1),i.ensure(o,o&&(d=>r(d,o))),We(!0);return}}i.ensure(o,o&&(d=>r(d,o)))},jt)}function Xt(e,t){Sn(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=gi("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function _l(e,t){var r=void 0,n;qo(()=>{r!==(r=t())&&(n&&(ze(n),n=null),r&&(n=Ve(()=>{Sn(()=>r(e))})))})}function aa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=aa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function kl(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=aa(e))&&(n&&(n+=" "),n+=t);return n}function yl(e){return typeof e=="object"?kl(e):e??""}const sa=[...`
3
- \r\f \v\uFEFF`];function xl(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,s=0;(s=n.indexOf(i,s))>=0;){var l=s+o;(s===0||sa.includes(n[s-1]))&&(l===n.length||sa.includes(n[l]))?n=(s===0?"":n.substring(0,s))+n.substring(l+1):s=l}}return n===""?null:n}function la(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function zi(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Cl(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,s=0,l=!1,a=[];n&&a.push(...Object.keys(n).map(zi)),i&&a.push(...Object.keys(i).map(zi));var u=0,d=-1;const x=e.length;for(var h=0;h<x;h++){var c=e[h];if(l?c==="/"&&e[h-1]==="*"&&(l=!1):o?o===c&&(o=!1):c==="/"&&e[h+1]==="*"?l=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!l&&o===!1&&s===0){if(c===":"&&d===-1)d=h;else if(c===";"||h===x-1){if(d!==-1){var v=zi(e.substring(u,d).trim());if(!a.includes(v)){c!==";"&&h++;var b=e.substring(u,h).trim();r+=" "+b+";"}}u=h+1,d=-1}}}}return n&&(r+=la(n)),i&&(r+=la(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function He(e,t,r,n,i,o){var s=e.__className;if(G||s!==r||s===void 0){var l=xl(r,n,o);(!G||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=r}else if(o&&i!==o)for(var a in o){var u=!!o[a];(i==null||u!==!!i[a])&&e.classList.toggle(a,u)}return o}function Ni(e,t={},r,n){for(var i in r){var o=r[i];t[i]!==o&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,n))}}function Sl(e,t,r,n){var i=e.__style;if(G||i!==t){var o=Cl(t,n);(!G||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Ni(e,r==null?void 0:r[0],n[0]),Ni(e,r==null?void 0:r[1],n[1],"important")):Ni(e,r,n));return n}function Ti(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Gn(t))return Cs();for(var n of e.options)n.selected=t.includes(ua(n));return}for(n of e.options){var i=ua(n);if(Fs(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function El(e){var t=new MutationObserver(()=>{Ti(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Cn(()=>{t.disconnect()})}function ua(e){return"__value"in e?e.__value:e.value}const Ir=Symbol("class"),Jr=Symbol("style"),ca=Symbol("is custom element"),da=Symbol("is html"),Ml=bn?"link":"LINK",Il=bn?"input":"INPUT",Ll=bn?"option":"OPTION",zl=bn?"select":"SELECT";function Nl(e){if(G){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;te(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;te(e,"checked",null),e.checked=i}}};e.__on_r=r,yt(r),Ys()}}function Tl(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function te(e,t,r,n){var i=fa(e);G&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===Ml)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[cs]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ha(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function $l(e,t,r,n,i=!1,o=!1){if(G&&i&&e.nodeName===Il){var s=e,l=s.type==="checkbox"?"defaultChecked":"defaultValue";l in r||Nl(s)}var a=fa(e),u=a[ca],d=!a[da];let h=G&&u;h&&We(!1);var c=t||{},v=e.nodeName===Ll;for(var b in t)b in r||(r[b]=null);r.class?r.class=yl(r.class):(n||r[Ir])&&(r.class=null),r[Jr]&&(r.style??(r.style=null));var x=ha(e);for(const y in r){let N=r[y];if(v&&y==="value"&&N==null){e.value=e.__value="",c[y]=N;continue}if(y==="class"){var p=e.namespaceURI==="http://www.w3.org/1999/xhtml";He(e,p,N,n,t==null?void 0:t[Ir],r[Ir]),c[y]=N,c[Ir]=r[Ir];continue}if(y==="style"){Sl(e,N,t==null?void 0:t[Jr],r[Jr]),c[y]=N,c[Jr]=r[Jr];continue}var _=c[y];if(!(N===_&&!(N===void 0&&e.hasAttribute(y)))){c[y]=N;var M=y[0]+y[1];if(M!=="$$")if(M==="on"){const U={},R="$$"+y;let C=y.slice(2);var S=sl(C);if(ol(C)&&(C=C.slice(0,-7),U.capture=!0),!S&&_){if(N!=null)continue;e.removeEventListener(C,c[R],U),c[R]=null}if(S)ke(C,e,N),Mr([C]);else if(N!=null){let q=function(K){c[y].call(this,K)};c[R]=Qo(C,e,q,U)}}else if(y==="style")te(e,y,N);else if(y==="autofocus")Zs(e,!!N);else if(!u&&(y==="__value"||y==="value"&&N!=null))e.value=e.__value=N;else if(y==="selected"&&v)Tl(e,N);else{var $=y;d||($=ul($));var z=$==="defaultValue"||$==="defaultChecked";if(N==null&&!u&&!z)if(a[y]=null,$==="value"||$==="checked"){let U=e;const R=t===void 0;if($==="value"){let C=U.defaultValue;U.removeAttribute($),U.defaultValue=C,U.value=U.__value=R?C:null}else{let C=U.defaultChecked;U.removeAttribute($),U.defaultChecked=C,U.checked=R?C:!1}}else e.removeAttribute(y);else z||x.includes($)&&(u||typeof N!="string")?(e[$]=N,$ in a&&(a[$]=Ie)):typeof N!="function"&&te(e,$,N)}}}return h&&We(!0),c}function Kr(e,t,r=[],n=[],i=[],o,s=!1,l=!1){yo(i,r,n,a=>{var u=void 0,d={},h=e.nodeName===zl,c=!1;if(qo(()=>{var b=t(...a.map(g)),x=$l(e,u,b,o,s,l);c&&h&&"value"in b&&Ti(e,b.value);for(let _ of Object.getOwnPropertySymbols(d))b[_]||ze(d[_]);for(let _ of Object.getOwnPropertySymbols(b)){var p=b[_];_.description===rs&&(!u||p!==u[_])&&(d[_]&&ze(d[_]),d[_]=Ve(()=>_l(e,()=>p))),x[_]=p}u=x}),h){var v=e;Sn(()=>{Ti(v,u.value,!0),El(v)})}c=!0})}function fa(e){return e.__attributes??(e.__attributes={[ca]:e.nodeName.includes("-"),[da]:e.namespaceURI===to})}var va=new Map;function ha(e){var t=e.getAttribute("is")||e.nodeName,r=va.get(t);if(r)return r;va.set(t,r=[]);for(var n,i=e,o=Element.prototype;o!==i;){n=os(i);for(var s in n)n[s].set&&r.push(s);i=ro(i)}return r}function pa(e,t){return e===t||(e==null?void 0:e[Bt])===t}function Qt(e={},t,r,n){var i=Oe.r,o=Q;return Sn(()=>{var s,l;return _i(()=>{s=l,l=(n==null?void 0:n())||[],Fr(()=>{e!==r(...l)&&(t(e,...l),s&&pa(r(...s),e)&&t(null,...s))})}),()=>{let a=o;for(;a!==i&&a.parent!==null&&a.parent.f&ei;)a=a.parent;const u=()=>{l&&pa(r(...l),e)&&t(null,...l)},d=a.teardown;a.teardown=()=>{u(),d==null||d()}}}),e}const Dl={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Gr(e,t,r){return new Proxy({props:e,exclude:t},Dl)}const Al={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ar(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];Ar(i)&&(i=i());const o=zt(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ar(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=zt(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Bt||t===ni)return!1;for(let r of e.props)if(Ar(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ar(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function ga(...e){return new Proxy({props:e},Al)}function w(e,t,r,n){var M;var i=(r&Qa)!==0,o=(r&es)!==0,s=n,l=!0,a=()=>(l&&(l=!1,s=o?Fr(n):n),s);let u;if(i){var d=Bt in e||ni in e;u=((M=zt(e,t))==null?void 0:M.set)??(d&&t in e?S=>e[t]=S:void 0)}var h,c=!1;i?[h,c]=Ts(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=a(),u&&(ws(),u(h)));var v;if(v=()=>{var S=e[t];return S===void 0?a():(l=!0,S)},(r&Xa)===0)return v;if(u){var b=e.$$legacy;return function(S,$){return arguments.length>0?((!$||b||c)&&u($?v():S),S):v()}}var x=!1,p=((r&Ga)!==0?xn:Co)(()=>(x=!1,v()));i&&g(p);var _=Q;return function(S,$){if(arguments.length>0){const z=$?g(p):i?Jt(S):S;return W(p,z),x=!0,s!==void 0&&(s=z),S}return Kt&&x||(_.f&nt)!==0?p.v:g(p)}}function Ul(e){return new Hl(e)}class Hl{constructor(t){F(this,Ht);F(this,ut);var o;var r=new Map,n=(s,l)=>{var a=hi(l,!1,!1);return r.set(s,a),a};const i=new Proxy({...t.props||{},$$events:{}},{get(s,l){return g(r.get(l)??n(l,Reflect.get(s,l)))},has(s,l){return l===ni?!0:(g(r.get(l)??n(l,Reflect.get(s,l))),Reflect.has(s,l))},set(s,l,a){return W(r.get(l)??n(l,a),a),Reflect.set(s,l,a)}});Z(this,ut,(t.hydrate?fl:ra)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&m(),Z(this,Ht,i.$$events);for(const s of Object.keys(f(this,ut)))s==="$set"||s==="$destroy"||s==="$on"||Dr(this,s,{get(){return f(this,ut)[s]},set(l){f(this,ut)[s]=l},enumerable:!0});f(this,ut).$set=s=>{Object.assign(i,s)},f(this,ut).$destroy=()=>{vl(f(this,ut))}}$set(t){f(this,ut).$set(t)}$on(t,r){f(this,Ht)[t]=f(this,Ht)[t]||[];const n=(...i)=>r.call(this,...i);return f(this,Ht)[t].push(n),()=>{f(this,Ht)[t]=f(this,Ht)[t].filter(i=>i!==n)}}$destroy(){f(this,ut).$destroy()}}Ht=new WeakMap,ut=new WeakMap;let ba;typeof HTMLElement=="function"&&(ba=class extends HTMLElement{constructor(t,r,n){super();be(this,"$$ctor");be(this,"$$s");be(this,"$$c");be(this,"$$cn",!1);be(this,"$$d",{});be(this,"$$r",!1);be(this,"$$p_d",{});be(this,"$$l",{});be(this,"$$l_u",new Map);be(this,"$$me");be(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return o=>{const s=gi("slot");i!=="default"&&(s.name=i),A(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=ql(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const o=this.$$g_p(i.name);o in this.$$d||(this.$$d[o]=zn(o,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Ul({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ks(()=>{_i(()=>{var i;this.$$r=!0;for(const o of pn(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=zn(o,this.$$d[o],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[o].attribute||o):this.setAttribute(this.$$p_d[o].attribute||o,s)}this.$$r=!1})});for(const i in this.$$l)for(const o of this.$$l[i]){const s=this.$$c.$on(i,o);this.$$l_u.set(o,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=zn(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return pn(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function zn(e,t,r,n){var o;const i=(o=r[e])==null?void 0:o.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function ql(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function me(e,t,r,n,i,o){let s=class extends ba{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return pn(t).map(l=>(t[l].attribute||l).toLowerCase())}};return pn(t).forEach(l=>{Dr(s.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(a){var h;a=zn(l,a,t),this.$$d[l]=a;var u=this.$$c;if(u){var d=(h=zt(u,l))==null?void 0:h.get;d?u[l]=a:u.$set({[l]:a})}}})}),n.forEach(l=>{Dr(s.prototype,l,{get(){var a;return(a=this.$$c)==null?void 0:a[l]}})}),e.element=s,s}var Ol=le("<a><!></a>"),Vl=le("<button><!></button>");const Pl={hash:"svelte-1klcfz0",code:`
1
+ (function(me,xr){typeof exports=="object"&&typeof module<"u"?xr(exports):typeof define=="function"&&define.amd?define(["exports"],xr):(me=typeof globalThis<"u"?globalThis:me||self,xr(me.graymatter={}))})(this,(function(me){"use strict";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");const qo=1,Oo=2,Kn=4,Vo=8,Po=16,jo=1,Ro=4,Bo=8,Fo=16,Gn=1,Zo=2,Gr="[",Xr="[!",Xn="[?",Qr="]",Ht={},pe=Symbol(),Qn="http://www.w3.org/1999/xhtml",Yo="@attach",Wo=!1;var en=Array.isArray,Jo=Array.prototype.indexOf,qt=Array.prototype.includes,Cr=Array.from,Sr=Object.keys,Kt=Object.defineProperty,at=Object.getOwnPropertyDescriptor,Ko=Object.getOwnPropertyDescriptors,Go=Object.prototype,Xo=Array.prototype,ei=Object.getPrototypeOf,ti=Object.isExtensible;function Gt(e){return typeof e=="function"}const $e=()=>{};function ri(e){for(var t=0;t<e.length;t++)e[t]()}function ni(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const ge=2,Ot=4,Er=8,tn=1<<24,dt=16,Ye=32,ft=64,rn=128,Oe=512,ve=1024,_e=2048,tt=4096,De=8192,Ve=16384,vt=32768,nn=1<<25,ht=65536,ii=1<<17,Qo=1<<18,Mt=1<<19,ea=1<<20,rt=1<<25,It=65536,on=1<<21,an=1<<22,pt=1<<23,gt=Symbol("$state"),sn=Symbol("legacy props"),ta=Symbol(""),st=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Mr=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),Ir=3,Xt=8;function ra(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function na(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ia(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function oa(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function aa(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function sa(e){throw new Error("https://svelte.dev/e/effect_orphan")}function la(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ua(){throw new Error("https://svelte.dev/e/hydration_failed")}function ca(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function da(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function fa(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function va(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ha(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Lr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function pa(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function ga(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let V=!1;function Ae(e){V=e}let B;function Ce(e){if(e===null)throw Lr(),Ht;return B=e}function Qt(){return Ce(it(B))}function E(e){if(V){if(it(B)!==null)throw Lr(),Ht;B=e}}function We(e=1){if(V){for(var t=e,r=B;t--;)r=it(r);B=r}}function er(e=!0){for(var t=0,r=B;;){if(r.nodeType===Xt){var n=r.data;if(n===Qr){if(t===0)return r;t-=1}else(n===Gr||n===Xr||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=it(r);e&&r.remove(),r=i}}function ln(e){if(!e||e.nodeType!==Xt)throw Lr(),Ht;return e.data}function oi(e){return e===this.v}function ai(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function si(e){return!ai(e,this.v)}let ba=!1,Ie=null;function Vt(e){Ie=e}function oe(e,t=!1,r){Ie={p:Ie,i:!1,c:null,e:null,s:e,x:null,r:j,l:null}}function ae(e){var t=Ie,r=t.e;if(r!==null){t.e=null;for(var n of r)Di(n)}return e!==void 0&&(t.x=e),t.i=!0,Ie=t.p,e??{}}function li(){return!0}let Lt=[];function ui(){var e=Lt;Lt=[],ri(e)}function nt(e){if(Lt.length===0&&!rr){var t=Lt;queueMicrotask(()=>{t===Lt&&ui()})}Lt.push(e)}function ma(){for(;Lt.length>0;)ui()}function ci(e){var t=j;if(t===null)return P.f|=pt,e;if((t.f&vt)===0&&(t.f&Ot)===0)throw e;bt(e,t)}function bt(e,t){for(;t!==null;){if((t.f&rn)!==0){if((t.f&vt)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wa=-7169;function ue(e,t){e.f=e.f&wa|t}function un(e){(e.f&Oe)!==0||e.deps===null?ue(e,ve):ue(e,tt)}function di(e){if(e!==null)for(const t of e)(t.f&ge)===0||(t.f&It)===0||(t.f^=It,di(t.deps))}function fi(e,t,r){(e.f&_e)!==0?t.add(e):(e.f&tt)!==0&&r.add(e),di(e.deps),ue(e,ve)}function cn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),$e;const n=sr(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Pt=[];function _a(e,t){return{subscribe:dn(e,t).subscribe}}function dn(e,t=$e){let r=null;const n=new Set;function i(s){if(ai(e,s)&&(e=s,r)){const a=!Pt.length;for(const u of n)u[1](),Pt.push(u,e);if(a){for(let u=0;u<Pt.length;u+=2)Pt[u][0](Pt[u+1]);Pt.length=0}}}function o(s){i(s(e))}function l(s,a=$e){const u=[s,a];return n.add(u),n.size===1&&(r=t(i,o)||$e),s(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:l}}function ka(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return _a(r,(l,s)=>{let a=!1;const u=[];let c=0,h=$e;const d=()=>{if(c)return;h();const g=t(n?u[0]:u,l,s);o?l(g):h=typeof g=="function"?g:$e},f=i.map((g,x)=>cn(g,p=>{u[x]=p,c&=~(1<<x),a&&d()},()=>{c|=1<<x}));return a=!0,d(),function(){ri(f),h(),a=!1}})}function ya(e){let t;return cn(e,r=>t=r)(),t}let zr=!1,fn=Symbol();function Je(e,t,r){const n=r[t]??={store:null,source:mn(void 0),unsubscribe:$e};if(n.store!==e&&!(fn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=$e;else{var i=!0;n.unsubscribe=cn(e,o=>{i?n.source.v=o:q(n.source,o)}),i=!1}return e&&fn in r?ya(e):v(n.source)}function tr(){const e={};function t(){Dr(()=>{for(var r in e)e[r].unsubscribe();Kt(e,fn,{enumerable:!1,value:!0})})}return[e,t]}function xa(e){var t=zr;try{return zr=!1,[e(),zr]}finally{zr=t}}const mt=new Set;let G=null,Ke=null,vn=null,rr=!1,hn=!1,jt=null,Nr=null;var vi=0;let Ca=1;class lt{id=Ca++;current=new Map;previous=new Map;#e=new Set;#r=new Set;#t=new Map;#i=new Map;#o=null;#n=[];#a=new Set;#s=new Set;#l=new Map;is_fork=!1;#d=!1;#u=new Set;#f(){return this.is_fork||this.#i.size>0}#h(){for(const n of this.#u)for(const i of n.#i.keys()){for(var t=!1,r=i;r.parent!==null;){if(this.#l.has(r)){t=!0;break}r=r.parent}if(!t)return!0}return!1}skip_effect(t){this.#l.has(t)||this.#l.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#l.get(t);if(r){this.#l.delete(t);for(var n of r.d)ue(n,_e),this.schedule(n);for(n of r.m)ue(n,tt),this.schedule(n)}}#v(){if(vi++>1e3&&(mt.delete(this),Sa()),!this.#f()){for(const s of this.#a)this.#s.delete(s),ue(s,_e),this.schedule(s);for(const s of this.#s)ue(s,tt),this.schedule(s)}const t=this.#n;this.#n=[],this.apply();var r=jt=[],n=[],i=Nr=[];for(const s of t)try{this.#c(s,r,n)}catch(a){throw mi(s),a}if(G=null,i.length>0){var o=lt.ensure();for(const s of i)o.schedule(s)}if(jt=null,Nr=null,this.#f()||this.#h()){this.#p(n),this.#p(r);for(const[s,a]of this.#l)bi(s,a)}else{this.#t.size===0&&mt.delete(this),this.#a.clear(),this.#s.clear();for(const s of this.#e)s(this);this.#e.clear(),hi(n),hi(r),this.#o?.resolve()}var l=G;if(this.#n.length>0){const s=l??=this;s.#n.push(...this.#n.filter(a=>!s.#n.includes(a)))}l!==null&&(mt.add(l),l.#v()),mt.has(this)||this.#g()}#c(t,r,n){t.f^=ve;for(var i=t.first;i!==null;){var o=i.f,l=(o&(Ye|ft))!==0,s=l&&(o&ve)!==0,a=s||(o&De)!==0||this.#l.has(i);if(!a&&i.fn!==null){l?i.f^=ve:(o&Ot)!==0?r.push(i):or(i)&&((o&dt)!==0&&this.#s.add(i),Ft(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}}#p(t){for(var r=0;r<t.length;r+=1)fi(t[r],this.#a,this.#s)}capture(t,r,n=!1){r!==pe&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&pt)===0&&(this.current.set(t,[t.v,n]),Ke?.set(t,t.v))}activate(){G=this}deactivate(){G=null,Ke=null}flush(){try{hn=!0,G=this,this.#v()}finally{vi=0,vn=null,jt=null,Nr=null,hn=!1,G=null,Ke=null,wt.clear()}}discard(){for(const t of this.#r)t(this);this.#r.clear(),mt.delete(this)}#g(){for(const u of mt){var t=u.id<this.id,r=[];for(const[c,[h,d]]of this.current){if(u.current.has(c)){var n=u.current.get(c)[0];if(t&&h!==n)u.current.set(c,[h,d]);else continue}r.push(c)}var i=[...u.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)t&&u.discard();else if(r.length>0){u.activate();var o=new Set,l=new Map;for(var s of r)pi(s,i,o,l);if(u.#n.length>0){u.apply();for(var a of u.#n)u.#c(a,[],[]);u.#n=[]}u.deactivate()}}for(const u of mt)u.#u.has(this)&&(u.#u.delete(this),u.#u.size===0&&!u.#f()&&(u.activate(),u.#v()))}increment(t,r){let n=this.#t.get(r)??0;if(this.#t.set(r,n+1),t){let i=this.#i.get(r)??0;this.#i.set(r,i+1)}}decrement(t,r,n){let i=this.#t.get(r)??0;if(i===1?this.#t.delete(r):this.#t.set(r,i-1),t){let o=this.#i.get(r)??0;o===1?this.#i.delete(r):this.#i.set(r,o-1)}this.#d||n||(this.#d=!0,nt(()=>{this.#d=!1,this.flush()}))}transfer_effects(t,r){for(const n of t)this.#a.add(n);for(const n of r)this.#s.add(n);t.clear(),r.clear()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#r.add(t)}settled(){return(this.#o??=ni()).promise}static ensure(){if(G===null){const t=G=new lt;hn||(mt.add(G),rr||nt(()=>{G===t&&t.flush()}))}return G}apply(){{Ke=null;return}}schedule(t){if(vn=t,t.b?.is_pending&&(t.f&(Ot|Er|tn))!==0&&(t.f&vt)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(jt!==null&&r===j&&(P===null||(P.f&ge)===0))return;if((n&(ft|Ye))!==0){if((n&ve)===0)return;r.f^=ve}}this.#n.push(r)}}function b(e){var t=rr;rr=!0;try{for(var r;;){if(ma(),G===null)return r;G.flush()}}finally{rr=t}}function Sa(){try{la()}catch(e){bt(e,vn)}}let ut=null;function hi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Ve|De))===0&&or(n)&&(ut=new Set,Ft(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Hi(n),ut?.size>0)){wt.clear();for(const i of ut){if((i.f&(Ve|De))!==0)continue;const o=[i];let l=i.parent;for(;l!==null;)ut.has(l)&&(ut.delete(l),o.push(l)),l=l.parent;for(let s=o.length-1;s>=0;s--){const a=o[s];(a.f&(Ve|De))===0&&Ft(a)}}ut.clear()}}ut=null}}function pi(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const o=i.f;(o&ge)!==0?pi(i,t,r,n):(o&(an|dt))!==0&&(o&_e)===0&&gi(i,t,n)&&(ue(i,_e),pn(i))}}function gi(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(qt.call(t,i))return!0;if((i.f&ge)!==0&&gi(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function pn(e){G.schedule(e)}function bi(e,t){if(!((e.f&Ye)!==0&&(e.f&ve)!==0)){(e.f&_e)!==0?t.d.push(e):(e.f&tt)!==0&&t.m.push(e),ue(e,ve);for(var r=e.first;r!==null;)bi(r,t),r=r.next}}function mi(e){ue(e,ve);for(var t=e.first;t!==null;)mi(t),t=t.next}function Ea(e){let t=0,r=zt(0),n;return()=>{xn()&&(v(r),Cn(()=>(t===0&&(n=sr(()=>e(()=>nr(r)))),t+=1,()=>{nt(()=>{t-=1,t===0&&(n?.(),n=void 0,nr(r))})})))}}var Ma=ht|Mt;function Ia(e,t,r,n){new La(e,t,r,n)}class La{parent;is_pending=!1;transform_error;#e;#r=V?B:null;#t;#i;#o;#n=null;#a=null;#s=null;#l=null;#d=0;#u=0;#f=!1;#h=new Set;#v=new Set;#c=null;#p=Ea(()=>(this.#c=zt(this.#d),()=>{this.#c=null}));constructor(t,r,n,i){this.#e=t,this.#t=r,this.#i=o=>{var l=j;l.b=this,l.f|=rn,n(o)},this.parent=j.b,this.transform_error=i??this.parent?.transform_error??(o=>o),this.#o=ir(()=>{if(V){const o=this.#r;Qt();const l=o.data===Xr;if(o.data.startsWith(Xn)){const a=JSON.parse(o.data.slice(Xn.length));this.#k(a)}else l?this.#y():this.#g()}else this.#w()},Ma),V&&(this.#e=B)}#g(){try{this.#n=Le(()=>this.#i(this.#e))}catch(t){this.error(t)}}#k(t){const r=this.#t.failed;r&&(this.#s=Le(()=>{r(this.#e,()=>t,()=>()=>{})}))}#y(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#a=Le(()=>t(this.#e)),nt(()=>{var r=this.#l=document.createDocumentFragment(),n=Pe();r.append(n),this.#n=this.#m(()=>Le(()=>this.#i(n))),this.#u===0&&(this.#e.before(r),this.#l=null,Tt(this.#a,()=>{this.#a=null}),this.#b(G))}))}#w(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#d=0,this.#n=Le(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();Mn(this.#n,t);const r=this.#t.pending;this.#a=Le(()=>r(this.#e))}else this.#b(G)}catch(r){this.error(r)}}#b(t){this.is_pending=!1,t.transfer_effects(this.#h,this.#v)}defer_effect(t){fi(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=j,n=P,i=Ie;ot(this.#o),Re(this.#o),Vt(this.#o.ctx);try{return lt.ensure(),t()}catch(o){return ci(o),null}finally{ot(r),Re(n),Vt(i)}}#_(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t,r);return}this.#u+=t,this.#u===0&&(this.#b(r),this.#a&&Tt(this.#a,()=>{this.#a=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t,r){this.#_(t,r),this.#d+=t,!(!this.#c||this.#f)&&(this.#f=!0,nt(()=>{this.#f=!1,this.#c&&Rt(this.#c,this.#d)}))}get_effect_pending(){return this.#p(),v(this.#c)}error(t){var r=this.#t.onerror;let n=this.#t.failed;if(!r&&!n)throw t;this.#n&&(be(this.#n),this.#n=null),this.#a&&(be(this.#a),this.#a=null),this.#s&&(be(this.#s),this.#s=null),V&&(Ce(this.#r),We(),Ce(er()));var i=!1,o=!1;const l=()=>{if(i){ga();return}i=!0,o&&ha(),this.#s!==null&&Tt(this.#s,()=>{this.#s=null}),this.#m(()=>{this.#w()})},s=a=>{try{o=!0,r?.(a,l),o=!1}catch(u){bt(u,this.#o&&this.#o.parent)}n&&(this.#s=this.#m(()=>{try{return Le(()=>{var u=j;u.b=this,u.f|=rn,n(this.#e,()=>a,()=>l)})}catch(u){return bt(u,this.#o.parent),null}}))};nt(()=>{var a;try{a=this.transform_error(t)}catch(u){bt(u,this.#o&&this.#o.parent);return}a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(s,u=>bt(u,this.#o&&this.#o.parent)):s(a)})}}function wi(e,t,r,n){const i=$r;var o=e.filter(d=>!d.settled);if(r.length===0&&o.length===0){n(t.map(i));return}var l=j,s=za(),a=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(d=>d.promise)):null;function u(d){s();try{n(d)}catch(f){(l.f&Ve)===0&&bt(f,l)}Tr()}if(r.length===0){a.then(()=>u(t.map(i)));return}var c=_i();function h(){Promise.all(r.map(d=>Na(d))).then(d=>u([...t.map(i),...d])).catch(d=>bt(d,l)).finally(()=>c())}a?a.then(()=>{s(),h(),Tr()}):h()}function za(){var e=j,t=P,r=Ie,n=G;return function(o=!0){ot(e),Re(t),Vt(r),o&&(e.f&Ve)===0&&(n?.activate(),n?.apply())}}function Tr(e=!0){ot(null),Re(null),Vt(null),e&&G?.deactivate()}function _i(){var e=j,t=e.b,r=G,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),(i=!1)=>{t.update_pending_count(-1,r),r.decrement(n,e,i)}}function $r(e){var t=ge|_e,r=P!==null&&(P.f&ge)!==0?P:null;return j!==null&&(j.f|=Mt),{ctx:Ie,deps:null,effects:null,equals:oi,f:t,fn:e,reactions:null,rv:0,v:pe,wv:0,parent:r??j,ac:null}}function Na(e,t,r){let n=j;n===null&&na();var i=void 0,o=zt(pe),l=!P,s=new Map;return Ra(()=>{var a=j,u=ni();i=u.promise;try{Promise.resolve(e()).then(u.resolve,u.reject).finally(Tr)}catch(f){u.reject(f),Tr()}var c=G;if(l){if((a.f&vt)!==0)var h=_i();if(n.b.is_rendered())s.get(c)?.reject(st),s.delete(c);else{for(const f of s.values())f.reject(st);s.clear()}s.set(c,u)}const d=(f,g=void 0)=>{if(h){var x=g===st;h(x)}if(!(g===st||(a.f&Ve)!==0)){if(c.activate(),g)o.f|=pt,Rt(o,g);else{(o.f&pt)!==0&&(o.f^=pt),Rt(o,f);for(const[p,_]of s){if(s.delete(p),p===c)break;_.reject(st)}}c.deactivate()}};u.promise.then(d,f=>d(null,f||"unknown"))}),Dr(()=>{for(const a of s.values())a.reject(st)}),new Promise(a=>{function u(c){function h(){c===i?a(o):u(i)}c.then(h,h)}u(i)})}function H(e){const t=$r(e);return Pi(t),t}function ki(e){const t=$r(e);return t.equals=si,t}function Ta(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)be(t[r])}}function $a(e){for(var t=e.parent;t!==null;){if((t.f&ge)===0)return(t.f&Ve)===0?t:null;t=t.parent}return null}function gn(e){var t,r=j;ot($a(e));try{e.f&=~It,Ta(e),t=Zi(e)}finally{ot(r)}return t}function yi(e){var t=e.v,r=gn(e);if(!e.equals(r)&&(e.wv=Bi(),(!G?.is_fork||e.deps===null)&&(e.v=r,G?.capture(e,t,!0),e.deps===null))){ue(e,ve);return}kt||(Ke!==null?(xn()||G?.is_fork)&&Ke.set(e,r):un(e))}function Da(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(st),t.teardown=$e,t.ac=null,ar(t,0),Sn(t))}function xi(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Ft(t)}let bn=new Set;const wt=new Map;let Ci=!1;function zt(e,t){var r={f:0,v:e,reactions:null,equals:oi,rv:0,wv:0};return r}function ee(e,t){const r=zt(e);return Pi(r),r}function mn(e,t=!1,r=!0){const n=zt(e);return t||(n.equals=si),n}function q(e,t,r=!1){P!==null&&(!Xe||(P.f&ii)!==0)&&li()&&(P.f&(ge|dt|an|ii))!==0&&(Be===null||!qt.call(Be,e))&&va();let n=r?_t(t):t;return Rt(e,n,Nr)}function Rt(e,t,r=null){if(!e.equals(t)){var n=e.v;kt?wt.set(e,t):wt.set(e,n),e.v=t;var i=lt.ensure();if(i.capture(e,n),(e.f&ge)!==0){const o=e;(e.f&_e)!==0&&gn(o),Ke===null&&un(o)}e.wv=Bi(),Si(e,_e,r),j!==null&&(j.f&ve)!==0&&(j.f&(Ye|ft))===0&&(Fe===null?Za([e]):Fe.push(e)),!i.is_fork&&bn.size>0&&!Ci&&Aa()}return t}function Aa(){Ci=!1;for(const e of bn)(e.f&ve)!==0&&ue(e,tt),or(e)&&Ft(e);bn.clear()}function nr(e){q(e,e.v+1)}function Si(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,o=0;o<i;o++){var l=n[o],s=l.f,a=(s&_e)===0;if(a&&ue(l,t),(s&ge)!==0){var u=l;Ke?.delete(u),(s&It)===0&&(s&Oe&&(l.f|=It),Si(u,tt,r))}else if(a){var c=l;(s&dt)!==0&&ut!==null&&ut.add(c),r!==null?r.push(c):pn(c)}}}function _t(e){if(typeof e!="object"||e===null||gt in e)return e;const t=ei(e);if(t!==Go&&t!==Xo)return e;var r=new Map,n=en(e),i=ee(0),o=Dt,l=s=>{if(Dt===o)return s();var a=P,u=Dt;Re(null),Ri(o);var c=s();return Re(a),Ri(u),c};return n&&r.set("length",ee(e.length)),new Proxy(e,{defineProperty(s,a,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&da();var c=r.get(a);return c===void 0?l(()=>{var h=ee(u.value);return r.set(a,h),h}):q(c,u.value,!0),!0},deleteProperty(s,a){var u=r.get(a);if(u===void 0){if(a in s){const c=l(()=>ee(pe));r.set(a,c),nr(i)}}else q(u,pe),nr(i);return!0},get(s,a,u){if(a===gt)return e;var c=r.get(a),h=a in s;if(c===void 0&&(!h||at(s,a)?.writable)&&(c=l(()=>{var f=_t(h?s[a]:pe),g=ee(f);return g}),r.set(a,c)),c!==void 0){var d=v(c);return d===pe?void 0:d}return Reflect.get(s,a,u)},getOwnPropertyDescriptor(s,a){var u=Reflect.getOwnPropertyDescriptor(s,a);if(u&&"value"in u){var c=r.get(a);c&&(u.value=v(c))}else if(u===void 0){var h=r.get(a),d=h?.v;if(h!==void 0&&d!==pe)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(s,a){if(a===gt)return!0;var u=r.get(a),c=u!==void 0&&u.v!==pe||Reflect.has(s,a);if(u!==void 0||j!==null&&(!c||at(s,a)?.writable)){u===void 0&&(u=l(()=>{var d=c?_t(s[a]):pe,f=ee(d);return f}),r.set(a,u));var h=v(u);if(h===pe)return!1}return c},set(s,a,u,c){var h=r.get(a),d=a in s;if(n&&a==="length")for(var f=u;f<h.v;f+=1){var g=r.get(f+"");g!==void 0?q(g,pe):f in s&&(g=l(()=>ee(pe)),r.set(f+"",g))}if(h===void 0)(!d||at(s,a)?.writable)&&(h=l(()=>ee(void 0)),q(h,_t(u)),r.set(a,h));else{d=h.v!==pe;var x=l(()=>_t(u));q(h,x)}var p=Reflect.getOwnPropertyDescriptor(s,a);if(p?.set&&p.set.call(c,u),!d){if(n&&typeof a=="string"){var _=r.get("length"),C=Number(a);Number.isInteger(C)&&C>=_.v&&q(_,C+1)}nr(i)}return!0},ownKeys(s){v(i);var a=Reflect.ownKeys(s).filter(h=>{var d=r.get(h);return d===void 0||d.v!==pe});for(var[u,c]of r)c.v!==pe&&!(u in s)&&a.push(u);return a},setPrototypeOf(){fa()}})}function Ei(e){try{if(e!==null&&typeof e=="object"&&gt in e)return e[gt]}catch{}return e}function Ua(e,t){return Object.is(Ei(e),Ei(t))}var Mi,Ii,Li,zi;function wn(){if(Mi===void 0){Mi=window,Ii=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Li=at(t,"firstChild").get,zi=at(t,"nextSibling").get,ti(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ti(r)&&(r.__t=void 0)}}function Pe(e=""){return document.createTextNode(e)}function je(e){return Li.call(e)}function it(e){return zi.call(e)}function M(e,t){if(!V)return je(e);var r=je(B);if(r===null)r=B.appendChild(Pe());else if(t&&r.nodeType!==Ir){var n=Pe();return r?.before(n),Ce(n),n}return t&&kn(r),Ce(r),r}function Nt(e,t=!1){if(!V){var r=je(e);return r instanceof Comment&&r.data===""?it(r):r}if(t){if(B?.nodeType!==Ir){var n=Pe();return B?.before(n),Ce(n),n}kn(B)}return B}function he(e,t=1,r=!1){let n=V?B:e;for(var i;t--;)i=n,n=it(n);if(!V)return n;if(r){if(n?.nodeType!==Ir){var o=Pe();return n===null?i?.after(o):n.before(o),Ce(o),o}kn(n)}return Ce(n),n}function Ni(e){e.textContent=""}function Ti(){return!1}function _n(e,t,r){return document.createElementNS(Qn,e,void 0)}function kn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===Ir;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Ha(e,t){if(t){const r=document.body;e.autofocus=!0,nt(()=>{document.activeElement===r&&e.focus()})}}let $i=!1;function qa(){$i||($i=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function yn(e){var t=P,r=j;Re(null),ot(null);try{return e()}finally{Re(t),ot(r)}}function Oa(e){j===null&&(P===null&&sa(),aa()),kt&&oa()}function Va(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Ge(e,t){var r=j;r!==null&&(r.f&De)!==0&&(e|=De);var n={ctx:Ie,deps:null,nodes:null,f:e|_e|Oe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},i=n;if((e&Ot)!==0)jt!==null?jt.push(n):lt.ensure().schedule(n);else if(t!==null){try{Ft(n)}catch(l){throw be(n),l}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Mt)===0&&(i=i.first,(e&dt)!==0&&(e&ht)!==0&&i!==null&&(i.f|=ht))}if(i!==null&&(i.parent=r,r!==null&&Va(i,r),P!==null&&(P.f&ge)!==0&&(e&ft)===0)){var o=P;(o.effects??=[]).push(i)}return n}function xn(){return P!==null&&!Xe}function Dr(e){const t=Ge(Er,null);return ue(t,ve),t.teardown=e,t}function Bt(e){Oa();var t=j.f,r=!P&&(t&Ye)!==0&&(t&vt)===0;if(r){var n=Ie;(n.e??=[]).push(e)}else return Di(e)}function Di(e){return Ge(Ot|ea,e)}function Pa(e){lt.ensure();const t=Ge(ft|Mt,e);return()=>{be(t)}}function ja(e){lt.ensure();const t=Ge(ft|Mt,e);return(r={})=>new Promise(n=>{r.outro?Tt(t,()=>{be(t),n(void 0)}):(be(t),n(void 0))})}function Ar(e){return Ge(Ot,e)}function Ra(e){return Ge(an|Mt,e)}function Cn(e,t=0){return Ge(Er|t,e)}function we(e,t=[],r=[],n=[]){wi(n,t,r,i=>{Ge(Er,()=>e(...i.map(v)))})}function ir(e,t=0){var r=Ge(dt|t,e);return r}function Ai(e,t=0){var r=Ge(tn|t,e);return r}function Le(e){return Ge(Ye|Mt,e)}function Ui(e){var t=e.teardown;if(t!==null){const r=kt,n=P;Vi(!0),Re(null);try{t.call(null)}finally{Vi(r),Re(n)}}}function Sn(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&yn(()=>{i.abort(st)});var n=r.next;(r.f&ft)!==0?r.parent=null:be(r,t),r=n}}function Ba(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ye)===0&&be(t),t=r}}function be(e,t=!0){var r=!1;(t||(e.f&Qo)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fa(e.nodes.start,e.nodes.end),r=!0),ue(e,nn),Sn(e,t&&!r),ar(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const o of n)o.stop();Ui(e),e.f^=nn,e.f|=Ve;var i=e.parent;i!==null&&i.first!==null&&Hi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Fa(e,t){for(;e!==null;){var r=e===t?null:it(e);e.remove(),e=r}}function Hi(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Tt(e,t,r=!0){var n=[];qi(e,n,!0);var i=()=>{r&&be(e),t&&t()},o=n.length;if(o>0){var l=()=>--o||i();for(var s of n)s.out(l)}else i()}function qi(e,t,r){if((e.f&De)===0){e.f^=De;var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var o=i.next,l=(i.f&ht)!==0||(i.f&Ye)!==0&&(e.f&dt)!==0;qi(i,t,l?r:!1),i=o}}}function En(e){Oi(e,!0)}function Oi(e,t){if((e.f&De)!==0){e.f^=De,(e.f&ve)===0&&(ue(e,_e),lt.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&ht)!==0||(r.f&Ye)!==0;Oi(r,i?t:!1),r=n}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Mn(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:it(r);t.append(r),r=i}}let Ur=!1,kt=!1;function Vi(e){kt=e}let P=null,Xe=!1;function Re(e){P=e}let j=null;function ot(e){j=e}let Be=null;function Pi(e){P!==null&&(Be===null?Be=[e]:Be.push(e))}let ze=null,Ue=0,Fe=null;function Za(e){Fe=e}let ji=1,$t=0,Dt=$t;function Ri(e){Dt=e}function Bi(){return++ji}function or(e){var t=e.f;if((t&_e)!==0)return!0;if(t&ge&&(e.f&=~It),(t&tt)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var o=r[i];if(or(o)&&yi(o),o.wv>e.wv)return!0}(t&Oe)!==0&&Ke===null&&ue(e,ve)}return!1}function Fi(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Be!==null&&qt.call(Be,e)))for(var i=0;i<n.length;i++){var o=n[i];(o.f&ge)!==0?Fi(o,t,!1):t===o&&(r?ue(o,_e):(o.f&ve)!==0&&ue(o,tt),pn(o))}}function Zi(e){var t=ze,r=Ue,n=Fe,i=P,o=Be,l=Ie,s=Xe,a=Dt,u=e.f;ze=null,Ue=0,Fe=null,P=(u&(Ye|ft))===0?e:null,Be=null,Vt(e.ctx),Xe=!1,Dt=++$t,e.ac!==null&&(yn(()=>{e.ac.abort(st)}),e.ac=null);try{e.f|=on;var c=e.fn,h=c();e.f|=vt;var d=e.deps,f=G?.is_fork;if(ze!==null){var g;if(f||ar(e,Ue),d!==null&&Ue>0)for(d.length=Ue+ze.length,g=0;g<ze.length;g++)d[Ue+g]=ze[g];else e.deps=d=ze;if(xn()&&(e.f&Oe)!==0)for(g=Ue;g<d.length;g++)(d[g].reactions??=[]).push(e)}else!f&&d!==null&&Ue<d.length&&(ar(e,Ue),d.length=Ue);if(li()&&Fe!==null&&!Xe&&d!==null&&(e.f&(ge|tt|_e))===0)for(g=0;g<Fe.length;g++)Fi(Fe[g],e);if(i!==null&&i!==e){if($t++,i.deps!==null)for(let x=0;x<r;x+=1)i.deps[x].rv=$t;if(t!==null)for(const x of t)x.rv=$t;Fe!==null&&(n===null?n=Fe:n.push(...Fe))}return(e.f&pt)!==0&&(e.f^=pt),h}catch(x){return ci(x)}finally{e.f^=on,ze=t,Ue=r,Fe=n,P=i,Be=o,Vt(l),Xe=s,Dt=a}}function Ya(e,t){let r=t.reactions;if(r!==null){var n=Jo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&ge)!==0&&(ze===null||!qt.call(ze,t))){var o=t;(o.f&Oe)!==0&&(o.f^=Oe,o.f&=~It),un(o),Da(o),ar(o,0)}}function ar(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Ya(e,r[n])}function Ft(e){var t=e.f;if((t&Ve)===0){ue(e,ve);var r=j,n=Ur;j=e,Ur=!0;try{(t&(dt|tn))!==0?Ba(e):Sn(e),Ui(e);var i=Zi(e);e.teardown=typeof i=="function"?i:null,e.wv=ji;var o;Wo&&ba&&(e.f&_e)!==0&&e.deps}finally{Ur=n,j=r}}}function v(e){var t=e.f,r=(t&ge)!==0;if(P!==null&&!Xe){var n=j!==null&&(j.f&Ve)!==0;if(!n&&(Be===null||!qt.call(Be,e))){var i=P.deps;if((P.f&on)!==0)e.rv<$t&&(e.rv=$t,ze===null&&i!==null&&i[Ue]===e?Ue++:ze===null?ze=[e]:ze.push(e));else{(P.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[P]:qt.call(o,P)||o.push(P)}}}if(kt&&wt.has(e))return wt.get(e);if(r){var l=e;if(kt){var s=l.v;return((l.f&ve)===0&&l.reactions!==null||Wi(l))&&(s=gn(l)),wt.set(l,s),s}var a=(l.f&Oe)===0&&!Xe&&P!==null&&(Ur||(P.f&Oe)!==0),u=(l.f&vt)===0;or(l)&&(a&&(l.f|=Oe),yi(l)),a&&!u&&(xi(l),Yi(l))}if(Ke?.has(e))return Ke.get(e);if((e.f&pt)!==0)throw e.v;return e.v}function Yi(e){if(e.f|=Oe,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&ge)!==0&&(t.f&Oe)===0&&(xi(t),Yi(t))}function Wi(e){if(e.v===pe)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(wt.has(t)||(t.f&ge)!==0&&Wi(t))return!0;return!1}function sr(e){var t=Xe;try{return Xe=!0,e()}finally{Xe=t}}const lr=Symbol("events"),Ji=new Set,In=new Set;function Ki(e,t,r,n={}){function i(o){if(n.capture||Ln.call(t,o),!o.cancelBubble)return yn(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?nt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function He(e,t,r,n,i){var o={capture:n,passive:i},l=Ki(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Dr(()=>{t.removeEventListener(e,l,o)})}function ce(e,t,r){(t[lr]??={})[e]=r}function Zt(e){for(var t=0;t<e.length;t++)Ji.add(e[t]);for(var r of In)r(e)}let Gi=null;function Ln(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Gi=e;var l=0,s=Gi===e&&e[lr];if(s){var a=i.indexOf(s);if(a!==-1&&(t===document||t===window)){e[lr]=t;return}var u=i.indexOf(t);if(u===-1)return;a<=u&&(l=a)}if(o=i[l]||e.target,o!==t){Kt(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=P,h=j;Re(null),ot(null);try{for(var d,f=[];o!==null;){var g=o.assignedSlot||o.parentNode||o.host||null;try{var x=o[lr]?.[n];x!=null&&(!o.disabled||e.target===o)&&x.call(o,e)}catch(p){d?f.push(p):d=p}if(e.cancelBubble||g===t||g===null)break;o=g}if(d){for(let p of f)queueMicrotask(()=>{throw p});throw d}}finally{e[lr]=t,delete e.currentTarget,Re(c),ot(h)}}}const Wa=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Ja(e){return Wa?.createHTML(e)??e}function Xi(e){var t=_n("template");return t.innerHTML=Ja(e.replaceAll("<!>","<!---->")),t.content}function ct(e,t){var r=j;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function te(e,t){var r=(t&Gn)!==0,n=(t&Zo)!==0,i,o=!e.startsWith("<!>");return()=>{if(V)return ct(B,null),B;i===void 0&&(i=Xi(o?e:"<!>"+e),r||(i=je(i)));var l=n||Ii?document.importNode(i,!0):i.cloneNode(!0);if(r){var s=je(l),a=l.lastChild;ct(s,a)}else ct(l,l);return l}}function Ka(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&Gn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,l;return()=>{if(V)return ct(B,null),B;if(!l){var s=Xi(o),a=je(s);if(i)for(l=document.createDocumentFragment();je(a);)l.appendChild(je(a));else l=je(a)}var u=l.cloneNode(!0);if(i){var c=je(u),h=u.lastChild;ct(c,h)}else ct(u,u);return u}}function se(e,t){return Ka(e,t,"svg")}function Hr(){if(V)return ct(B,null),B;var e=document.createDocumentFragment(),t=document.createComment(""),r=Pe();return e.append(t,r),ct(t,r),e}function T(e,t){if(V){var r=j;((r.f&vt)===0||r.nodes.end===null)&&(r.nodes.end=B),Qt();return}e!==null&&e.before(t)}function Ga(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Xa=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qa(e){return Xa.includes(e)}const es={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ts(e){return e=e.toLowerCase(),es[e]??e}const rs=["touchstart","touchmove"];function ns(e){return rs.includes(e)}function ur(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function Qi(e,t){return eo(e,t)}function is(e,t){wn(),t.intro=t.intro??!1;const r=t.target,n=V,i=B;try{for(var o=je(r);o&&(o.nodeType!==Xt||o.data!==Gr);)o=it(o);if(!o)throw Ht;Ae(!0),Ce(o);const l=eo(e,{...t,anchor:o});return Ae(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
2
+ `).some(s=>s.startsWith("https://svelte.dev/e/")))throw l;return l!==Ht&&console.warn("Failed to hydrate: ",l),t.recover===!1&&ua(),wn(),Ni(r),Ae(!1),Qi(e,t)}finally{Ae(n),Ce(i)}}const qr=new Map;function eo(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:l=!0,transformError:s}){wn();var a=void 0,u=ja(()=>{var c=r??t.appendChild(Pe());Ia(c,{pending:()=>{}},f=>{oe({});var g=Ie;if(o&&(g.c=o),i&&(n.$$events=i),V&&ct(f,null),a=e(f,n)||{},V&&(j.nodes.end=B,B===null||B.nodeType!==Xt||B.data!==Qr))throw Lr(),Ht;ae()},s);var h=new Set,d=f=>{for(var g=0;g<f.length;g++){var x=f[g];if(!h.has(x)){h.add(x);var p=ns(x);for(const I of[t,document]){var _=qr.get(I);_===void 0&&(_=new Map,qr.set(I,_));var C=_.get(x);C===void 0?(I.addEventListener(x,Ln,{passive:p}),_.set(x,1)):_.set(x,C+1)}}}};return d(Cr(Ji)),In.add(d),()=>{for(var f of h)for(const p of[t,document]){var g=qr.get(p),x=g.get(f);--x==0?(p.removeEventListener(f,Ln),g.delete(f),g.size===0&&qr.delete(p)):g.set(f,x)}In.delete(d),c!==r&&c.parentNode?.removeChild(c)}});return zn.set(a,u),a}let zn=new WeakMap;function os(e,t){const r=zn.get(e);return r?(zn.delete(e),r(t)):Promise.resolve()}class Nn{anchor;#e=new Map;#r=new Map;#t=new Map;#i=new Set;#o=!0;constructor(t,r=!0){this.anchor=t,this.#o=r}#n=t=>{if(this.#e.has(t)){var r=this.#e.get(t),n=this.#r.get(r);if(n)En(n),this.#i.delete(r);else{var i=this.#t.get(r);i&&(this.#r.set(r,i.effect),this.#t.delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const s=this.#t.get(l);s&&(be(s.effect),this.#t.delete(l))}for(const[o,l]of this.#r){if(o===r||this.#i.has(o))continue;const s=()=>{if(Array.from(this.#e.values()).includes(o)){var u=document.createDocumentFragment();Mn(l,u),u.append(Pe()),this.#t.set(o,{effect:l,fragment:u})}else be(l);this.#i.delete(o),this.#r.delete(o)};this.#o||!n?(this.#i.add(o),Tt(l,s,!1)):s()}}};#a=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[n,i]of this.#t)r.includes(n)||(be(i.effect),this.#t.delete(n))};ensure(t,r){var n=G,i=Ti();if(r&&!this.#r.has(t)&&!this.#t.has(t))if(i){var o=document.createDocumentFragment(),l=Pe();o.append(l),this.#t.set(t,{effect:Le(()=>r(l)),fragment:o})}else this.#r.set(t,Le(()=>r(this.anchor)));if(this.#e.set(n,t),i){for(const[s,a]of this.#r)s===t?n.unskip_effect(a):n.skip_effect(a);for(const[s,a]of this.#t)s===t?n.unskip_effect(a.effect):n.skip_effect(a.effect);n.oncommit(this.#n),n.ondiscard(this.#a)}else V&&(this.anchor=B),this.#n(n)}}function Or(e,t,...r){var n=new Nn(e);ir(()=>{const i=t()??null;n.ensure(i,i&&(o=>i(o,...r)))},ht)}function as(e){Ie===null&&ra(),Bt(()=>{const t=sr(e);if(typeof t=="function")return t})}function re(e,t,r=!1){var n;V&&(n=B,Qt());var i=new Nn(e),o=r?ht:0;function l(s,a){if(V){var u=ln(n);if(s!==parseInt(u.substring(1))){var c=er();Ce(c),i.anchor=c,Ae(!1),i.ensure(s,a),Ae(!0);return}}i.ensure(s,a)}ir(()=>{var s=!1;t((a,u=0)=>{s=!0,l(u,a)}),s||l(-1,null)},o)}function ss(e,t){return t}function ls(e,t,r){for(var n=[],i=t.length,o,l=t.length,s=0;s<i;s++){let h=t[s];Tt(h,()=>{if(o){if(o.pending.delete(h),o.done.add(h),o.pending.size===0){var d=e.outrogroups;Tn(e,Cr(o.done)),d.delete(o),d.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var a=n.length===0&&r!==null;if(a){var u=r,c=u.parentNode;Ni(c),c.append(u),e.items.clear()}Tn(e,t,!a)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Tn(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const l of e.pending.values())for(const s of l)n.add(e.items.get(s).e)}for(var i=0;i<t.length;i++){var o=t[i];if(n?.has(o)){o.f|=rt;const l=document.createDocumentFragment();Mn(o,l)}else be(t[i],r)}}var to;function ro(e,t,r,n,i,o=null){var l=e,s=new Map,a=(t&Kn)!==0;if(a){var u=e;l=V?Ce(je(u)):u.appendChild(Pe())}V&&Qt();var c=null,h=ki(()=>{var I=r();return en(I)?I:I==null?[]:Cr(I)}),d,f=new Map,g=!0;function x(I){(C.effect.f&Ve)===0&&(C.pending.delete(I),C.fallback=c,us(C,d,l,t,n),c!==null&&(d.length===0?(c.f&rt)===0?En(c):(c.f^=rt,dr(c,null,l)):Tt(c,()=>{c=null})))}function p(I){C.pending.delete(I)}var _=ir(()=>{d=v(h);var I=d.length;let N=!1;if(V){var L=ln(l)===Xr;L!==(I===0)&&(l=er(),Ce(l),Ae(!1),N=!0)}for(var w=new Set,S=G,O=Ti(),U=0;U<I;U+=1){V&&B.nodeType===Xt&&B.data===Qr&&(l=B,N=!0,Ae(!1));var y=d[U],R=n(y,U),F=g?null:s.get(R);F?(F.v&&Rt(F.v,y),F.i&&Rt(F.i,U),O&&S.unskip_effect(F.e)):(F=cs(s,g?l:to??=Pe(),y,R,U,i,t,r),g||(F.e.f|=rt),s.set(R,F)),w.add(R)}if(I===0&&o&&!c&&(g?c=Le(()=>o(l)):(c=Le(()=>o(to??=Pe())),c.f|=rt)),I>w.size&&ia(),V&&I>0&&Ce(er()),!g)if(f.set(S,w),O){for(const[ye,Ee]of s)w.has(ye)||S.skip_effect(Ee.e);S.oncommit(x),S.ondiscard(p)}else x(S);N&&Ae(!0),v(h)}),C={effect:_,items:s,pending:f,outrogroups:null,fallback:c};g=!1,V&&(l=B)}function cr(e){for(;e!==null&&(e.f&Ye)===0;)e=e.next;return e}function us(e,t,r,n,i){var o=(n&Vo)!==0,l=t.length,s=e.items,a=cr(e.effect.first),u,c=null,h,d=[],f=[],g,x,p,_;if(o)for(_=0;_<l;_+=1)g=t[_],x=i(g,_),p=s.get(x).e,(p.f&rt)===0&&(p.nodes?.a?.measure(),(h??=new Set).add(p));for(_=0;_<l;_+=1){if(g=t[_],x=i(g,_),p=s.get(x).e,e.outrogroups!==null)for(const y of e.outrogroups)y.pending.delete(p),y.done.delete(p);if((p.f&De)!==0&&(En(p),o&&(p.nodes?.a?.unfix(),(h??=new Set).delete(p))),(p.f&rt)!==0)if(p.f^=rt,p===a)dr(p,null,r);else{var C=c?c.next:a;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),yt(e,c,p),yt(e,p,C),dr(p,C,r),c=p,d=[],f=[],a=cr(c.next);continue}if(p!==a){if(u!==void 0&&u.has(p)){if(d.length<f.length){var I=f[0],N;c=I.prev;var L=d[0],w=d[d.length-1];for(N=0;N<d.length;N+=1)dr(d[N],I,r);for(N=0;N<f.length;N+=1)u.delete(f[N]);yt(e,L.prev,w.next),yt(e,c,L),yt(e,w,I),a=I,c=w,_-=1,d=[],f=[]}else u.delete(p),dr(p,a,r),yt(e,p.prev,p.next),yt(e,p,c===null?e.effect.first:c.next),yt(e,c,p),c=p;continue}for(d=[],f=[];a!==null&&a!==p;)(u??=new Set).add(a),f.push(a),a=cr(a.next);if(a===null)continue}(p.f&rt)===0&&d.push(p),c=p,a=cr(p.next)}if(e.outrogroups!==null){for(const y of e.outrogroups)y.pending.size===0&&(Tn(e,Cr(y.done)),e.outrogroups?.delete(y));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||u!==void 0){var S=[];if(u!==void 0)for(p of u)(p.f&De)===0&&S.push(p);for(;a!==null;)(a.f&De)===0&&a!==e.fallback&&S.push(a),a=cr(a.next);var O=S.length;if(O>0){var U=(n&Kn)!==0&&l===0?r:null;if(o){for(_=0;_<O;_+=1)S[_].nodes?.a?.measure();for(_=0;_<O;_+=1)S[_].nodes?.a?.fix()}ls(e,S,U)}}o&&nt(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function cs(e,t,r,n,i,o,l,s){var a=(l&qo)!==0?(l&Po)===0?mn(r,!1,!1):zt(r):null,u=(l&Oo)!==0?zt(i):null;return{v:a,i:u,e:Le(()=>(o(t,a??r,u??i,s),()=>{e.delete(n)}))}}function dr(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,o=t&&(t.f&rt)===0?t.nodes.start:r;n!==null;){var l=it(n);if(o.before(n),n===i)return;n=l}}function yt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function ds(e,t,r){var n;V&&(n=B,Qt());var i=new Nn(e);ir(()=>{var o=t()??null;if(V){var l=ln(n),s=l===Gr,a=o!==null;if(s!==a){var u=er();Ce(u),i.anchor=u,Ae(!1),i.ensure(o,o&&(c=>r(c,o))),Ae(!0);return}}i.ensure(o,o&&(c=>r(c,o)))},ht)}function xt(e,t){Ar(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=_n("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function fs(e,t){var r=void 0,n;Ai(()=>{r!==(r=t())&&(n&&(be(n),n=null),r&&(n=Le(()=>{Ar(()=>r(e))})))})}function no(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=no(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function vs(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=no(e))&&(n&&(n+=" "),n+=t);return n}function hs(e){return typeof e=="object"?vs(e):e??""}const io=[...`
3
+ \r\f \v\uFEFF`];function ps(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var o=i.length,l=0;(l=n.indexOf(i,l))>=0;){var s=l+o;(l===0||io.includes(n[l-1]))&&(s===n.length||io.includes(n[s]))?n=(l===0?"":n.substring(0,l))+n.substring(s+1):l=s}}return n===""?null:n}function oo(e,t=!1){var r=t?" !important;":";",n="";for(var i of Object.keys(e)){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function $n(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function gs(e,t){if(t){var r="",n,i;if(Array.isArray(t)?(n=t[0],i=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,s=!1,a=[];n&&a.push(...Object.keys(n).map($n)),i&&a.push(...Object.keys(i).map($n));var u=0,c=-1;const x=e.length;for(var h=0;h<x;h++){var d=e[h];if(s?d==="/"&&e[h-1]==="*"&&(s=!1):o?o===d&&(o=!1):d==="/"&&e[h+1]==="*"?s=!0:d==='"'||d==="'"?o=d:d==="("?l++:d===")"&&l--,!s&&o===!1&&l===0){if(d===":"&&c===-1)c=h;else if(d===";"||h===x-1){if(c!==-1){var f=$n(e.substring(u,c).trim());if(!a.includes(f)){d!==";"&&h++;var g=e.substring(u,h).trim();r+=" "+g+";"}}u=h+1,c=-1}}}}return n&&(r+=oo(n)),i&&(r+=oo(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function Se(e,t,r,n,i,o){var l=e.__className;if(V||l!==r||l===void 0){var s=ps(r,n,o);(!V||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):t?e.className=s:e.setAttribute("class",s)),e.__className=r}else if(o&&i!==o)for(var a in o){var u=!!o[a];(i==null||u!==!!i[a])&&e.classList.toggle(a,u)}return o}function Dn(e,t={},r,n){for(var i in r){var o=r[i];t[i]!==o&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,o,n))}}function bs(e,t,r,n){var i=e.__style;if(V||i!==t){var o=gs(t,n);(!V||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(Dn(e,r?.[0],n[0]),Dn(e,r?.[1],n[1],"important")):Dn(e,r,n));return n}function An(e,t,r=!1){if(e.multiple){if(t==null)return;if(!en(t))return pa();for(var n of e.options)n.selected=t.includes(ao(n));return}for(n of e.options){var i=ao(n);if(Ua(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ms(e){var t=new MutationObserver(()=>{An(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Dr(()=>{t.disconnect()})}function ao(e){return"__value"in e?e.__value:e.value}const Yt=Symbol("class"),fr=Symbol("style"),so=Symbol("is custom element"),lo=Symbol("is html"),ws=Mr?"link":"LINK",_s=Mr?"input":"INPUT",ks=Mr?"option":"OPTION",ys=Mr?"select":"SELECT";function xs(e){if(V){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;Y(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;Y(e,"checked",null),e.checked=i}}};e.__on_r=r,nt(r),qa()}}function Cs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Y(e,t,r,n){var i=uo(e);V&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===ws)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ta]=r),r==null?e.removeAttribute(t):typeof r!="string"&&fo(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ss(e,t,r,n,i=!1,o=!1){if(V&&i&&e.nodeName===_s){var l=e,s=l.type==="checkbox"?"defaultChecked":"defaultValue";s in r||xs(l)}var a=uo(e),u=a[so],c=!a[lo];let h=V&&u;h&&Ae(!1);var d=t||{},f=e.nodeName===ks;for(var g in t)g in r||(r[g]=null);r.class?r.class=hs(r.class):(n||r[Yt])&&(r.class=null),r[fr]&&(r.style??=null);var x=fo(e);for(const w in r){let S=r[w];if(f&&w==="value"&&S==null){e.value=e.__value="",d[w]=S;continue}if(w==="class"){var p=e.namespaceURI==="http://www.w3.org/1999/xhtml";Se(e,p,S,n,t?.[Yt],r[Yt]),d[w]=S,d[Yt]=r[Yt];continue}if(w==="style"){bs(e,S,t?.[fr],r[fr]),d[w]=S,d[fr]=r[fr];continue}var _=d[w];if(!(S===_&&!(S===void 0&&e.hasAttribute(w)))){d[w]=S;var C=w[0]+w[1];if(C!=="$$")if(C==="on"){const O={},U="$$"+w;let y=w.slice(2);var I=Qa(y);if(Ga(y)&&(y=y.slice(0,-7),O.capture=!0),!I&&_){if(S!=null)continue;e.removeEventListener(y,d[U],O),d[U]=null}if(I)ce(y,e,S),Zt([y]);else if(S!=null){let R=function(F){d[w].call(this,F)};d[U]=Ki(y,e,R,O)}}else if(w==="style")Y(e,w,S);else if(w==="autofocus")Ha(e,!!S);else if(!u&&(w==="__value"||w==="value"&&S!=null))e.value=e.__value=S;else if(w==="selected"&&f)Cs(e,S);else{var N=w;c||(N=ts(N));var L=N==="defaultValue"||N==="defaultChecked";if(S==null&&!u&&!L)if(a[w]=null,N==="value"||N==="checked"){let O=e;const U=t===void 0;if(N==="value"){let y=O.defaultValue;O.removeAttribute(N),O.defaultValue=y,O.value=O.__value=U?y:null}else{let y=O.defaultChecked;O.removeAttribute(N),O.defaultChecked=y,O.checked=U?y:!1}}else e.removeAttribute(w);else L||x.includes(N)&&(u||typeof S!="string")?(e[N]=S,N in a&&(a[N]=pe)):typeof S!="function"&&Y(e,N,S)}}}return h&&Ae(!0),d}function vr(e,t,r=[],n=[],i=[],o,l=!1,s=!1){wi(i,r,n,a=>{var u=void 0,c={},h=e.nodeName===ys,d=!1;if(Ai(()=>{var g=t(...a.map(v)),x=Ss(e,u,g,o,l,s);d&&h&&"value"in g&&An(e,g.value);for(let _ of Object.getOwnPropertySymbols(c))g[_]||be(c[_]);for(let _ of Object.getOwnPropertySymbols(g)){var p=g[_];_.description===Yo&&(!u||p!==u[_])&&(c[_]&&be(c[_]),c[_]=Le(()=>fs(e,()=>p))),x[_]=p}u=x}),h){var f=e;Ar(()=>{An(f,u.value,!0),ms(f)})}d=!0})}function uo(e){return e.__attributes??={[so]:e.nodeName.includes("-"),[lo]:e.namespaceURI===Qn}}var co=new Map;function fo(e){var t=e.getAttribute("is")||e.nodeName,r=co.get(t);if(r)return r;co.set(t,r=[]);for(var n,i=e,o=Element.prototype;o!==i;){n=Ko(i);for(var l in n)n[l].set&&r.push(l);i=ei(i)}return r}function vo(e,t){return e===t||e?.[gt]===t}function Ct(e={},t,r,n){var i=Ie.r,o=j;return Ar(()=>{var l,s;return Cn(()=>{l=s,s=n?.()||[],sr(()=>{e!==r(...s)&&(t(e,...s),l&&vo(r(...l),e)&&t(null,...l))})}),()=>{let a=o;for(;a!==i&&a.parent!==null&&a.parent.f&nn;)a=a.parent;const u=()=>{s&&vo(r(...s),e)&&t(null,...s)},c=a.teardown;a.teardown=()=>{u(),c?.()}}}),e}const Es={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function hr(e,t,r){return new Proxy({props:e,exclude:t},Es)}const Ms={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Gt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,r){let n=e.props.length;for(;n--;){let i=e.props[n];Gt(i)&&(i=i());const o=at(i,t);if(o&&o.set)return o.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Gt(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=at(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===gt||t===sn)return!1;for(let r of e.props)if(Gt(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Gt(r)&&(r=r()),!!r){for(const n in r)t.includes(n)||t.push(n);for(const n of Object.getOwnPropertySymbols(r))t.includes(n)||t.push(n)}return t}};function ho(...e){return new Proxy({props:e},Ms)}function m(e,t,r,n){var i=(r&Bo)!==0,o=(r&Fo)!==0,l=n,s=!0,a=()=>(s&&(s=!1,l=o?sr(n):n),l);let u;if(i){var c=gt in e||sn in e;u=at(e,t)?.set??(c&&t in e?C=>e[t]=C:void 0)}var h,d=!1;i?[h,d]=xa(()=>e[t]):h=e[t],h===void 0&&n!==void 0&&(h=a(),u&&(ca(),u(h)));var f;if(f=()=>{var C=e[t];return C===void 0?a():(s=!0,C)},(r&Ro)===0)return f;if(u){var g=e.$$legacy;return(function(C,I){return arguments.length>0?((!I||g||d)&&u(I?f():C),C):f()})}var x=!1,p=((r&jo)!==0?$r:ki)(()=>(x=!1,f()));i&&v(p);var _=j;return(function(C,I){if(arguments.length>0){const N=I?v(p):i?_t(C):C;return q(p,N),x=!0,l!==void 0&&(l=N),C}return kt&&x||(_.f&Ve)!==0?p.v:v(p)})}function Is(e){return new Ls(e)}class Ls{#e;#r;constructor(t){var r=new Map,n=(o,l)=>{var s=mn(l,!1,!1);return r.set(o,s),s};const i=new Proxy({...t.props||{},$$events:{}},{get(o,l){return v(r.get(l)??n(l,Reflect.get(o,l)))},has(o,l){return l===sn?!0:(v(r.get(l)??n(l,Reflect.get(o,l))),Reflect.has(o,l))},set(o,l,s){return q(r.get(l)??n(l,s),s),Reflect.set(o,l,s)}});this.#r=(t.hydrate?is:Qi)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&b(),this.#e=i.$$events;for(const o of Object.keys(this.#r))o==="$set"||o==="$destroy"||o==="$on"||Kt(this,o,{get(){return this.#r[o]},set(l){this.#r[o]=l},enumerable:!0});this.#r.$set=o=>{Object.assign(i,o)},this.#r.$destroy=()=>{os(this.#r)}}$set(t){this.#r.$set(t)}$on(t,r){this.#e[t]=this.#e[t]||[];const n=(...i)=>r.call(this,...i);return this.#e[t].push(n),()=>{this.#e[t]=this.#e[t].filter(i=>i!==n)}}$destroy(){this.#r.$destroy()}}let po;typeof HTMLElement=="function"&&(po=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,r){super(),this.$$ctor=e,this.$$s=t,r&&(this.$$shadowRoot=this.attachShadow(r))}addEventListener(e,t,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,r)}removeEventListener(e,t,r){if(super.removeEventListener(e,t,r),this.$$c){const n=this.$$l_u.get(t);n&&(n(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(n){return i=>{const o=_n("slot");n!=="default"&&(o.name=n),T(i,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const t={},r=zs(this);for(const n of this.$$s)n in r&&(n==="default"&&!this.$$d.children?(this.$$d.children=e(n),t.default=!0):t[n]=e(n));for(const n of this.attributes){const i=this.$$g_p(n.name);i in this.$$d||(this.$$d[i]=Vr(i,n.value,this.$$p_d,"toProp"))}for(const n in this.$$p_d)!(n in this.$$d)&&this[n]!==void 0&&(this.$$d[n]=this[n],delete this[n]);this.$$c=Is({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:t,$$host:this}}),this.$$me=Pa(()=>{Cn(()=>{this.$$r=!0;for(const n of Sr(this.$$c)){if(!this.$$p_d[n]?.reflect)continue;this.$$d[n]=this.$$c[n];const i=Vr(n,this.$$d[n],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[n].attribute||n):this.setAttribute(this.$$p_d[n].attribute||n,i)}this.$$r=!1})});for(const n in this.$$l)for(const i of this.$$l[n]){const o=this.$$c.$on(n,i);this.$$l_u.set(i,o)}this.$$l={}}}attributeChangedCallback(e,t,r){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Vr(e,r,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return Sr(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}});function Vr(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function zs(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function le(e,t,r,n,i,o){let l=class extends po{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Sr(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Sr(t).forEach(s=>{Kt(l.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(a){a=Vr(s,a,t),this.$$d[s]=a;var u=this.$$c;if(u){var c=at(u,s)?.get;c?u[s]=a:u.$set({[s]:a})}}})}),n.forEach(s=>{Kt(l.prototype,s,{get(){return this.$$c?.[s]}})}),e.element=l,l}var Ns=te("<a><!></a>"),Ts=te("<button><!></button>");const $s={hash:"svelte-1klcfz0",code:`
4
4
  /*! purgecss start ignore */:root,
5
5
  :host {
6
6
  /* global button */--ai-button-radius: var(--ai-radius-round);--ai-button-padding-x: 2rem;--ai-button-padding-y: 0.75rem;--ai-button-height: 2.5rem;--ai-button-box-shadow: inset 0 0 0 1px;
@@ -47,10 +47,10 @@
47
47
  ) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-1klcfz0:is(.disabled:where(.svelte-1klcfz0), [disabled]:where(.svelte-1klcfz0), [aria-disabled='true']:where(.svelte-1klcfz0)) {background:none;color:inherit;opacity:0.75;}
48
48
 
49
49
  /* No shadow modifier */.ai-button--no-shadow.svelte-1klcfz0 {box-shadow:none !important;}.ai-button--no-shadow.svelte-1klcfz0:is(:where(.svelte-1klcfz0):hover, :where(.svelte-1klcfz0):focus) {box-shadow:none !important;}
50
- /*! purgecss end ignore */`};function ma(e,t){ve(t,!0),Xt(e,Pl);let r=w(t,"variant",7,"primary"),n=w(t,"theme",7,"default"),i=w(t,"shape",7,"round"),o=w(t,"href",7,void 0),s=w(t,"disabled",7,!1),l=w(t,"onclick",7),a=w(t,"size",7,"medium"),u=w(t,"type",7,"button"),d=w(t,"hasBoxShadow",7,!0),h=w(t,"class",7,""),c=w(t,"children",7),v=Gr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","hasBoxShadow","class","children"]);const b=Y(()=>()=>["usa-button","ai-button",a()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":"",i()==="square"?"ai-button--square":"",d()?"":"ai-button--no-shadow"].filter(Boolean).join(" ")),x=Y(()=>()=>`${g(b)()} ${h()}`.trim());var p={get variant(){return r()},set variant(z="primary"){r(z),m()},get theme(){return n()},set theme(z="default"){n(z),m()},get shape(){return i()},set shape(z="round"){i(z),m()},get href(){return o()},set href(z=void 0){o(z),m()},get disabled(){return s()},set disabled(z=!1){s(z),m()},get onclick(){return l()},set onclick(z){l(z),m()},get size(){return a()},set size(z="medium"){a(z),m()},get type(){return u()},set type(z="button"){u(z),m()},get hasBoxShadow(){return d()},set hasBoxShadow(z=!0){d(z),m()},get class(){return h()},set class(z=""){h(z),m()},get children(){return c()},set children(z){c(z),m()}},_=Mn(),M=ar(_);{var S=z=>{var y=Ol();Kr(y,U=>({class:U,href:o(),onclick:l(),...v,[Ir]:{disabled:s()}}),[()=>g(x)()],void 0,void 0,"svelte-1klcfz0");var N=L(y);Ln(N,()=>c()??Ze),E(y),A(z,y)},$=z=>{var y=Vl();Kr(y,U=>({class:U,type:u(),disabled:s(),onclick:l(),...v}),[()=>g(x)()],void 0,void 0,"svelte-1klcfz0");var N=L(y);Ln(N,()=>c()??Ze),E(y),A(z,y)};ue(M,z=>{o()?z(S):z($,-1)})}return A(e,_),he(p)}me(ma,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},hasBoxShadow:{},class:{},children:{}},[],[],{mode:"open"});function wa(e,t){ve(t,!0);let r=w(t,"variant",7,"primary"),n=w(t,"theme",7,"default"),i=w(t,"href",7,void 0),o=w(t,"disabled",7,!1),s=w(t,"size",7,"medium"),l=w(t,"type",7,"button"),a=w(t,"onclick",7),u=w(t,"class",7,""),d=w(t,"children",7),h=Gr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class","children"]);var c={get variant(){return r()},set variant(v="primary"){r(v),m()},get theme(){return n()},set theme(v="default"){n(v),m()},get href(){return i()},set href(v=void 0){i(v),m()},get disabled(){return o()},set disabled(v=!1){o(v),m()},get size(){return s()},set size(v="medium"){s(v),m()},get type(){return l()},set type(v="button"){l(v),m()},get onclick(){return a()},set onclick(v){a(v),m()},get class(){return u()},set class(v=""){u(v),m()},get children(){return d()},set children(v){d(v),m()}};return ma(e,ga({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return l()},get onclick(){return a()},get children(){return d()},get class(){return u()}},()=>h)),he(c)}customElements.define("graymatter-button",me(wa,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{},children:{}},[],[],{mode:"open"}));const Xr=typeof window<"u";function jl(e,t){if(Xr&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function _a(e,t){const r=jl(e,t),n=si(r);return Xr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}const Rl=_a("subNav-selectedId",null),dr=_a("subNav-selectedTitle","");function ka(e,t){if(Xr&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function ya(e,t){const r=ka(e,t),n=si(r);return Xr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const gt=ya("globalSideNav-isExpanded",!1),fr=ya("globalSideNav-selectedItem",null),$i=zs(fr,e=>e==="discover"),Ae={toggleExpanded:()=>{gt.update(e=>!e)},setExpanded:e=>{gt.set(e)},setSelectedItem:e=>{fr.set(e),e==="discover"?gt.set(!1):Xr&&window.innerWidth>640&&gt.set(!0)},handleLayoutTransition:e=>{if(e)gt.set(!1);else{const t=ka("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),gt.set(!0)):gt.set(!1)}}},Nn=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:gt,isMenuButtonDisabled:$i,navigationStore:Ae,selectedItem:fr,selectedSubNavItemId:Rl,selectedSubNavItemTitle:dr},Symbol.toStringTag,{value:"Module"}));var Bl=le('<div part="global-header"><div class="header-content svelte-k73g25" part="header-content"><span class="header-text svelte-k73g25"> </span></div></div>');const Fl={hash:"svelte-k73g25",code:".global-header.svelte-k73g25 {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-k73g25 {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-k73g25 {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function xa(e,t){ve(t,!0),Xt(e,Fl);const r=()=>ft(fr,"$selectedItem",o),n=()=>ft(gt,"$isExpanded",o),i=()=>ft(dr,"$selectedSubNavItemTitle",o),[o,s]=Or();let l=w(t,"customHeaderText",7,""),a=se(!1);const u=Y(()=>()=>r()&&r()!=="discover"&&!n()&&!g(a)),d=Y(()=>()=>l()||i());Sr(()=>{if(typeof window>"u")return;const M=$=>{if(window.innerWidth<=640)return;let z=null;if(z=sessionStorage.getItem("subNav-topLevelTitle"),z)try{z=JSON.parse(z)}catch{}if(typeof z=="string"&&z.trim()!=="")dr.set(z),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(z));else{const y=$;y.detail&&y.detail.title&&(dr.set(y.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y.detail.title)))}},S=$=>{const z=$,{isMobile:y}=z.detail;y||(W(a,!0),setTimeout(()=>{W(a,!1)},300))};return window.addEventListener("sectionVisible",M),window.addEventListener("layoutTransition",S),()=>{window.removeEventListener("sectionVisible",M),window.removeEventListener("layoutTransition",S)}});var h={get customHeaderText(){return l()},set customHeaderText(M=""){l(M),m()}},c=Bl();let v;var b=L(c),x=L(b),p=L(x,!0);E(x),E(b),E(c),$e((M,S)=>{v=He(c,1,"global-header svelte-k73g25",null,v,M),Zr(p,S)},[()=>({visible:g(u)()}),()=>g(d)()]),A(e,c);var _=he(h);return s(),_}me(xa,{customHeaderText:{}},[],[],{mode:"open"});function Ca(e,t){ve(t,!0);let r=w(t,"customHeaderText",7,"");var n={get customHeaderText(){return r()},set customHeaderText(i=""){r(i),m()}};return xa(e,{get customHeaderText(){return r()}}),he(n)}customElements.define("graymatter-desktop-header",me(Ca,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],{mode:"open"}));var Zl=pe('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),Yl=pe('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Wl=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Di(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Wl(),o=L(i);{var s=a=>{var u=Zl();A(a,u)},l=a=>{var u=Yl();A(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return E(i),A(e,i),he(n)}me(Di,{isSelected:{}},[],[],{mode:"open"});var Jl=pe('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),Kl=pe('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Gl=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Ai(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=Gl(),o=L(i);{var s=a=>{var u=Jl();A(a,u)},l=a=>{var u=Kl();A(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return E(i),A(e,i),he(n)}me(Ai,{isSelected:{}},[],[],{mode:"open"});var Xl=pe('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Ql=pe('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),eu=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Ui(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=eu(),o=L(i);{var s=a=>{var u=Xl();dt(3),A(a,u)},l=a=>{var u=Ql();dt(3),A(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return E(i),A(e,i),he(n)}me(Ui,{isSelected:{}},[],[],{mode:"open"});var tu=pe('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),ru=pe('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),nu=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Hi(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),m()}},i=nu(),o=L(i);{var s=a=>{var u=tu();dt(2),A(a,u)},l=a=>{var u=ru();dt(2),A(a,u)};ue(o,a=>{r()?a(s):a(l,-1)})}return E(i),A(e,i),he(n)}me(Hi,{isSelected:{}},[],[],{mode:"open"});var iu=pe('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),ou=pe('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),au=pe('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),su=pe('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),lu=pe('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),uu=pe('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),cu=pe("<svg><!></svg>");function Tn(e,t){ve(t,!0);let r=w(t,"isDisabled",7,!1),n=w(t,"isHovered",7,!1),i=w(t,"isOpen",7,!1),o=Gr(t,["$$slots","$$events","$$legacy","$$host","isDisabled","isHovered","isOpen"]);var s={get isDisabled(){return r()},set isDisabled(c=!1){r(c),m()},get isHovered(){return n()},set isHovered(c=!1){n(c),m()},get isOpen(){return i()},set isOpen(c=!1){i(c),m()}},l=cu();Kr(l,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...o}));var a=L(l);{var u=c=>{var v=iu(),b=Ee(ar(v));$e(()=>te(b,"d",`M${i()?"8.18018":"9.18018"} ${i()?"5.45068":"3.27222"}V${i()?"18.5208":"20.9203"}`)),A(c,v)},d=c=>{var v=Mn(),b=ar(v);{var x=_=>{var M=ou();dt(),A(_,M)},p=_=>{var M=au();dt(),A(_,M)};ue(b,_=>{i()?_(x):_(p,-1)})}A(c,v)},h=c=>{var v=uu(),b=Ee(ar(v));{var x=_=>{var M=su();A(_,M)},p=_=>{var M=lu();A(_,M)};ue(b,_=>{i()?_(x):_(p,-1)})}A(c,v)};ue(a,c=>{r()?c(u):n()?c(d,1):c(h,-1)})}return E(l),A(e,l),he(s)}me(Tn,{isDisabled:{},isHovered:{},isOpen:{}},[],[],{mode:"open"});var du=le('<span class="icon svelte-4ebv1u"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),fu=le('<button type="button" class="menu-item svelte-4ebv1u" role="menuitem"><!> <div class="menu-text svelte-4ebv1u"> </div></button>'),vu=le('<div tabindex="-1" role="menu"></div>'),hu=le('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-4ebv1u" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-4ebv1u"><div class="user-profile-icon svelte-4ebv1u" part="user-profile-icon"><span class="user-initials svelte-4ebv1u"> </span></div></div></button> <!></div>');const pu={hash:"svelte-4ebv1u",code:`.user-profile-container.svelte-4ebv1u,
50
+ /*! purgecss end ignore */`};function go(e,t){oe(t,!0),xt(e,$s);let r=m(t,"variant",7,"primary"),n=m(t,"theme",7,"default"),i=m(t,"shape",7,"round"),o=m(t,"href",7,void 0),l=m(t,"disabled",7,!1),s=m(t,"onclick",7),a=m(t,"size",7,"medium"),u=m(t,"type",7,"button"),c=m(t,"hasBoxShadow",7,!0),h=m(t,"class",7,""),d=m(t,"children",7),f=hr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","hasBoxShadow","class","children"]);const g=H(()=>()=>["usa-button","ai-button",a()==="small"?"ai-button--small":"",n()==="inverted"&&r()==="primary"?"ai-button--inverted":"",n()==="inverted"&&r()==="secondary"?"ai-button--outline-inverted":"",r()==="primary"?"usa-button--primary":"",r()==="secondary"?"usa-button--outline ai-button--outline":"",r()==="unstyled"?"ai-button--unstyled":"",i()==="square"?"ai-button--square":"",c()?"":"ai-button--no-shadow"].filter(Boolean).join(" ")),x=H(()=>()=>`${v(g)()} ${h()}`.trim());var p={get variant(){return r()},set variant(L="primary"){r(L),b()},get theme(){return n()},set theme(L="default"){n(L),b()},get shape(){return i()},set shape(L="round"){i(L),b()},get href(){return o()},set href(L=void 0){o(L),b()},get disabled(){return l()},set disabled(L=!1){l(L),b()},get onclick(){return s()},set onclick(L){s(L),b()},get size(){return a()},set size(L="medium"){a(L),b()},get type(){return u()},set type(L="button"){u(L),b()},get hasBoxShadow(){return c()},set hasBoxShadow(L=!0){c(L),b()},get class(){return h()},set class(L=""){h(L),b()},get children(){return d()},set children(L){d(L),b()}},_=Hr(),C=Nt(_);{var I=L=>{var w=Ns();vr(w,O=>({class:O,href:o(),onclick:s(),...f,[Yt]:{disabled:l()}}),[()=>v(x)()],void 0,void 0,"svelte-1klcfz0");var S=M(w);Or(S,()=>d()??$e),E(w),T(L,w)},N=L=>{var w=Ts();vr(w,O=>({class:O,type:u(),disabled:l(),onclick:s(),...f}),[()=>v(x)()],void 0,void 0,"svelte-1klcfz0");var S=M(w);Or(S,()=>d()??$e),E(w),T(L,w)};re(C,L=>{o()?L(I):L(N,-1)})}return T(e,_),ae(p)}le(go,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},hasBoxShadow:{},class:{},children:{}},[],[],{mode:"open"});function bo(e,t){oe(t,!0);let r=m(t,"variant",7,"primary"),n=m(t,"theme",7,"default"),i=m(t,"href",7,void 0),o=m(t,"disabled",7,!1),l=m(t,"size",7,"medium"),s=m(t,"type",7,"button"),a=m(t,"onclick",7),u=m(t,"class",7,""),c=m(t,"children",7),h=hr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class","children"]);var d={get variant(){return r()},set variant(f="primary"){r(f),b()},get theme(){return n()},set theme(f="default"){n(f),b()},get href(){return i()},set href(f=void 0){i(f),b()},get disabled(){return o()},set disabled(f=!1){o(f),b()},get size(){return l()},set size(f="medium"){l(f),b()},get type(){return s()},set type(f="button"){s(f),b()},get onclick(){return a()},set onclick(f){a(f),b()},get class(){return u()},set class(f=""){u(f),b()},get children(){return c()},set children(f){c(f),b()}};return go(e,ho({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return l()},get type(){return s()},get onclick(){return a()},get children(){return c()},get class(){return u()}},()=>h)),ae(d)}customElements.define("graymatter-button",le(bo,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{},children:{}},[],[],{mode:"open"}));const pr=typeof window<"u";function Ds(e,t){if(pr&&typeof sessionStorage<"u"){const r=sessionStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function mo(e,t){const r=Ds(e,t),n=dn(r);return pr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}const As=mo("subNav-selectedId",null),At=mo("subNav-selectedTitle","");function wo(e,t){if(pr&&typeof localStorage<"u"){const r=localStorage.getItem(e);if(r!==null)try{return JSON.parse(r)}catch(n){return console.warn(`Failed to parse stored value for ${e}:`,n),t}}return t}function _o(e,t){const r=wo(e,t),n=dn(r);return pr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Qe=_o("globalSideNav-isExpanded",!1),Ut=_o("globalSideNav-selectedItem",null),Un=ka(Ut,e=>e==="discover"),ke={toggleExpanded:()=>{Qe.update(e=>!e)},setExpanded:e=>{Qe.set(e)},setSelectedItem:e=>{Ut.set(e),e==="discover"?Qe.set(!1):pr&&window.innerWidth>640&&Qe.set(!0)},handleLayoutTransition:e=>{if(e)Qe.set(!1);else{const t=wo("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Qe.set(!0)):Qe.set(!1)}}},Pr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Qe,isMenuButtonDisabled:Un,navigationStore:ke,selectedItem:Ut,selectedSubNavItemId:As,selectedSubNavItemTitle:At},Symbol.toStringTag,{value:"Module"}));var Us=te('<div part="global-header"><div class="header-content svelte-k73g25" part="header-content"><span class="header-text svelte-k73g25"> </span></div></div>');const Hs={hash:"svelte-k73g25",code:".global-header.svelte-k73g25 {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-k73g25 {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);background:var(--ai-color-white);height:var(--ai-size-56);padding:0 5.8rem;}.header-content.svelte-k73g25 {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-k73g25 {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function ko(e,t){oe(t,!0),xt(e,Hs);const r=()=>Je(Ut,"$selectedItem",o),n=()=>Je(Qe,"$isExpanded",o),i=()=>Je(At,"$selectedSubNavItemTitle",o),[o,l]=tr();let s=m(t,"customHeaderText",7,""),a=ee(!1);const u=H(()=>()=>r()&&r()!=="discover"&&!n()&&!v(a)),c=H(()=>()=>s()||i());Bt(()=>{if(typeof window>"u")return;const C=N=>{if(window.innerWidth<=640)return;let L=null;if(L=sessionStorage.getItem("subNav-topLevelTitle"),L)try{L=JSON.parse(L)}catch{}if(typeof L=="string"&&L.trim()!=="")At.set(L),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L));else{const w=N;w.detail&&w.detail.title&&(At.set(w.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w.detail.title)))}},I=N=>{const L=N,{isMobile:w}=L.detail;w||(q(a,!0),setTimeout(()=>{q(a,!1)},300))};return window.addEventListener("sectionVisible",C),window.addEventListener("layoutTransition",I),()=>{window.removeEventListener("sectionVisible",C),window.removeEventListener("layoutTransition",I)}});var h={get customHeaderText(){return s()},set customHeaderText(C=""){s(C),b()}},d=Us();let f;var g=M(d),x=M(g),p=M(x,!0);E(x),E(g),E(d),we((C,I)=>{f=Se(d,1,"global-header svelte-k73g25",null,f,C),ur(p,I)},[()=>({visible:v(u)()}),()=>v(c)()]),T(e,d);var _=ae(h);return l(),_}le(ko,{customHeaderText:{}},[],[],{mode:"open"});function yo(e,t){oe(t,!0);let r=m(t,"customHeaderText",7,"");var n={get customHeaderText(){return r()},set customHeaderText(i=""){r(i),b()}};return ko(e,{get customHeaderText(){return r()}}),ae(n)}customElements.define("graymatter-desktop-header",le(yo,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],{mode:"open"}));var qs=se('<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7883 3.2108C11.2367 2.13286 12.7637 2.13286 13.212 3.2108L15.294 8.21652L20.6981 8.64976C21.8619 8.74306 22.3337 10.1953 21.4471 10.9549L17.3298 14.4818L18.5877 19.7553C18.8585 20.8909 17.6232 21.7884 16.6268 21.1799L12.0002 18.354L7.37353 21.1799C6.37721 21.7884 5.14182 20.8909 5.4127 19.7553L6.67062 14.4818L2.55328 10.9549C1.66664 10.1953 2.13851 8.74306 3.30224 8.64976L8.70633 8.21652L10.7883 3.2108Z" fill="black"></path>'),Os=se('<path d="M11.4807 3.49883C11.6729 3.03685 12.3273 3.03685 12.5195 3.49883L14.6454 8.61028C14.7264 8.80504 14.9096 8.93811 15.1199 8.95497L20.6381 9.39736C21.1369 9.43735 21.3391 10.0598 20.9591 10.3853L16.7548 13.9867C16.5946 14.1239 16.5246 14.3392 16.5736 14.5444L17.858 19.9293C17.9741 20.416 17.4447 20.8007 17.0177 20.5398L12.2933 17.6542C12.1133 17.5443 11.8869 17.5443 11.7069 17.6542L6.98251 20.5398C6.55551 20.8007 6.02606 20.416 6.14215 19.9293L7.42664 14.5444C7.47558 14.3392 7.40562 14.1239 7.24543 13.9867L3.04111 10.3853C2.66112 10.0598 2.86335 9.43735 3.36209 9.39736L8.88034 8.95497C9.0906 8.93811 9.27375 8.80504 9.35476 8.61028L11.4807 3.49883Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>'),Vs=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Hn(e,t){oe(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),b()}},i=Vs(),o=M(i);{var l=a=>{var u=qs();T(a,u)},s=a=>{var u=Os();T(a,u)};re(o,a=>{r()?a(l):a(s,-1)})}return E(i),T(e,i),ae(n)}le(Hn,{isSelected:{}},[],[],{mode:"open"});var Ps=se('<path fill-rule="evenodd" clip-rule="evenodd" d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508Z" fill="black"></path>'),js=se('<path d="M17.0508 3C19.6009 3.00039 21.6688 5.06802 21.6689 7.61816V13.2832C21.6688 15.8333 19.6009 17.901 17.0508 17.9014H13.2686L9.23926 21.7168C8.58852 22.3323 7.5166 21.8705 7.5166 20.9746V17.8984C5.01299 17.8445 3.00011 15.7997 3 13.2832V7.61816C3.00012 5.06785 5.06785 3.00012 7.61816 3H17.0508ZM7.61816 4.45898C5.87327 4.4591 4.4591 5.87327 4.45898 7.61816V13.2832C4.4591 15.0281 5.87327 16.4432 7.61816 16.4434L8.24609 16.4424C8.64868 16.4424 8.97539 16.7693 8.97559 17.1719V19.958L12.4775 16.6426C12.6186 16.5091 12.7994 16.4443 12.9795 16.4443V16.4434H17.0508C18.7954 16.443 20.2099 15.0279 20.21 13.2832V7.61816C20.2098 5.87344 18.7954 4.45938 17.0508 4.45898H7.61816Z" fill="#585C63"></path>'),Rs=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function qn(e,t){oe(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),b()}},i=Rs(),o=M(i);{var l=a=>{var u=Ps();T(a,u)},s=a=>{var u=js();T(a,u)};re(o,a=>{r()?a(l):a(s,-1)})}return E(i),T(e,i),ae(n)}le(qn,{isSelected:{}},[],[],{mode:"open"});var Bs=se('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" fill="black" stroke="black" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" fill="black" stroke="black" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="black" stroke-width="1.5" stroke-linecap="square"></path>',1),Fs=se('<rect x="2.75" y="6.02856" width="3.7459" height="12.9262" stroke="#585C63" stroke-width="1.5"></rect><rect x="9.96338" y="9.96313" width="3.7459" height="8.9918" stroke="#585C63" stroke-width="1.5"></rect><rect x="17.1763" y="2.75" width="3.7459" height="16.2049" stroke="#585C63" stroke-width="1.5"></rect><path d="M2.32764 22H21.344" stroke="#585C63" stroke-width="1.5" stroke-linecap="square"></path>',1),Zs=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function On(e,t){oe(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),b()}},i=Zs(),o=M(i);{var l=a=>{var u=Bs();We(3),T(a,u)},s=a=>{var u=Fs();We(3),T(a,u)};re(o,a=>{r()?a(l):a(s,-1)})}return E(i),T(e,i),ae(n)}le(On,{isSelected:{}},[],[],{mode:"open"});var Ys=se('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="black" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4998L2 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4998L20.3335 14.4998" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0005L2 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0005L20.3335 12.0005" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.5L2 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.5L20.3335 9.5" stroke="black" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="black" stroke-width="1.5" stroke-linecap="round"></path></g><path d="M10.5 8.52856H13.7559C14.7224 8.52856 15.5059 9.31207 15.5059 10.2786V13.5344C15.5059 14.5009 14.7224 15.2844 13.7559 15.2844H10.5C9.5335 15.2844 8.75 14.5009 8.75 13.5344V10.2786C8.75 9.31207 9.5335 8.52856 10.5 8.52856Z" fill="black" stroke="black" stroke-width="1.5"></path>',1),Ws=se('<rect x="4.41699" y="4.62451" width="15.1664" height="15.1664" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect><g><path d="M9.5 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 14.4995L2 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 14.4995L20.3335 14.4995" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M9.5 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 12.0002L2 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 12.0002L20.3335 12.0002" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M12.0005 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 3.66664V2" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M3.66664 9.49976L2 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M22.0001 9.49976L20.3335 9.49976" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path><path d="M14.4995 21.9999V20.3333" stroke="#585C63" stroke-width="1.5" stroke-linecap="round"></path></g><rect x="8.52881" y="8.52856" width="6.75594" height="6.75594" rx="1.75" stroke="#585C63" stroke-width="1.5"></rect>',1),Js=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Vn(e,t){oe(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(a=!1){r(a),b()}},i=Js(),o=M(i);{var l=a=>{var u=Ys();We(2),T(a,u)},s=a=>{var u=Ws();We(2),T(a,u)};re(o,a=>{r()?a(l):a(s,-1)})}return E(i),T(e,i),ae(n)}le(Vn,{isSelected:{}},[],[],{mode:"open"});var Ks=se('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#C7CDD6" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path stroke="#C7CDD6" stroke-width="1.5"></path>',1),Gs=se('<path d="M12.25 18L6 12M6 12L12.25 6M6 12L21 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),Xs=se('<path d="M11.75 18.25L18 12M18 12L11.75 5.75M18 12L3 12" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M21 3V21" stroke="black" stroke-width="1.5" stroke-linecap="round"></path>',1),Qs=se('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),el=se('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),tl=se('<path d="M18.75 3H5.25C4.00736 3 3 4.09719 3 5.45064V7.90129V18.5207C3 19.8742 4.00736 20.9714 5.25 20.9714H18.75C19.9926 20.9714 21 19.8742 21 18.5207V7.90129V5.45064C21 4.09719 19.9926 3 18.75 3Z" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><!>',1),rl=se("<svg><!></svg>");function jr(e,t){oe(t,!0);let r=m(t,"isDisabled",7,!1),n=m(t,"isHovered",7,!1),i=m(t,"isOpen",7,!1),o=hr(t,["$$slots","$$events","$$legacy","$$host","isDisabled","isHovered","isOpen"]);var l={get isDisabled(){return r()},set isDisabled(d=!1){r(d),b()},get isHovered(){return n()},set isHovered(d=!1){n(d),b()},get isOpen(){return i()},set isOpen(d=!1){i(d),b()}},s=rl();vr(s,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...o}));var a=M(s);{var u=d=>{var f=Ks(),g=he(Nt(f));we(()=>Y(g,"d",`M${i()?"8.18018":"9.18018"} ${i()?"5.45068":"3.27222"}V${i()?"18.5208":"20.9203"}`)),T(d,f)},c=d=>{var f=Hr(),g=Nt(f);{var x=_=>{var C=Gs();We(),T(_,C)},p=_=>{var C=Xs();We(),T(_,C)};re(g,_=>{i()?_(x):_(p,-1)})}T(d,f)},h=d=>{var f=tl(),g=he(Nt(f));{var x=_=>{var C=Qs();T(_,C)},p=_=>{var C=el();T(_,C)};re(g,_=>{i()?_(x):_(p,-1)})}T(d,f)};re(a,d=>{r()?d(u):n()?d(c,1):d(h,-1)})}return E(s),T(e,s),ae(l)}le(jr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],{mode:"open"});var nl=te('<span class="icon svelte-4ebv1u"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),il=te('<button type="button" class="menu-item svelte-4ebv1u" role="menuitem"><!> <div class="menu-text svelte-4ebv1u"> </div></button>'),ol=te('<div tabindex="-1" role="menu"></div>'),al=te('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-4ebv1u" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-4ebv1u"><div class="user-profile-icon svelte-4ebv1u" part="user-profile-icon"><span class="user-initials svelte-4ebv1u"> </span></div></div></button> <!></div>');const sl={hash:"svelte-4ebv1u",code:`.user-profile-container.svelte-4ebv1u,
51
51
  .user-profile-icon.svelte-4ebv1u {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-4ebv1u,
52
52
  .user-profile-icon.svelte-4ebv1u {display:flex;align-items:center;justify-content:center;}.user-profile-icon.svelte-4ebv1u {background:var(--ai-color-blue-800);border-radius:var(--ai-size-4);box-sizing:border-box;height:var(--ai-size-40);padding:var(--ai-size-4);white-space:nowrap;width:var(--ai-size-40);}.user-initials.svelte-4ebv1u {color:var(--ai-color-white);font-size:var(--ai-size-16);font-style:normal;font-weight:400;line-height:1;overflow:hidden;text-align:center;text-overflow:ellipsis;}.user-profile-button.svelte-4ebv1u {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-4ebv1u:focus {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.user-profile-button.svelte-4ebv1u:focus:not(:focus-visible) {outline:none;}.user-profile-container.svelte-4ebv1u {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.profile-context-menu.svelte-4ebv1u {display:flex;width:13.75rem;padding:var(--ai-size-12);flex-direction:column;align-items:flex-start;gap:var(--ai-size-2);border-radius:var(--ai-size-8);border:0.0625rem solid var(--ai-color-steel-200);background:var(--ai-color-white);box-shadow:0 0.1875rem var(--ai-size-6) 0 rgba(50, 54, 61, 0.2);position:absolute;z-index:var(--ai-layer-50);}.profile-context-menu.desktop-align.svelte-4ebv1u {left:100%;top:auto;bottom:0;margin-left:var(--ai-size-8);
53
- /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-4ebv1u {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-4ebv1u {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-4ebv1u:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-4ebv1u:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-4ebv1u:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-4ebv1u {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-4ebv1u {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function qi(e,t){ve(t,!0),Xt(e,pu);let r=w(t,"menuItems",23,()=>[]),n=w(t,"userMeta",7),i=w(t,"ariaLabel",7,"Open profile menu"),o=w(t,"menuAlign",7,"desktop");const s=`profile-menu-${Math.random().toString(36).slice(2,10)}`;let l=se(!1);function a(){W(l,!g(l))}function u(){W(l,!1)}function d(C){var q;try{const K=new CustomEvent("profileMenuAction",{detail:{action:C,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((q=document.querySelector(".profile-context-menu"))==null?void 0:q.closest("[data-profile-menu]"))||window).dispatchEvent(K)}catch(K){console.error("Error dispatching profile menu action:",K)}}function h(C){const q=C.relatedTarget;(!q||!q.closest(".profile-context-menu"))&&u()}let c=se(null),v=se(Jt([])),b=se(Jt([]));Sr(()=>{W(v,g(b).filter(Boolean),!0)});function x(C,q){var K,ce,we;if(C.key==="ArrowDown"){C.preventDefault();const D=(q+1)%r().length;(K=g(v)[D])==null||K.focus()}else if(C.key==="ArrowUp"){C.preventDefault();const D=(q-1+r().length)%r().length;(ce=g(v)[D])==null||ce.focus()}else C.key==="Escape"&&(u(),(we=g(c))==null||we.focus(),C.stopPropagation())}function p(C){var q;g(l)&&C.key==="Escape"&&(u(),(q=g(c))==null||q.focus(),C.stopPropagation())}Sr(()=>{if(!(typeof window>"u"))return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}});var _={get menuItems(){return r()},set menuItems(C=[]){r(C),m()},get userMeta(){return n()},set userMeta(C){n(C),m()},get ariaLabel(){return i()},set ariaLabel(C="Open profile menu"){i(C),m()},get menuAlign(){return o()},set menuAlign(C="desktop"){o(C),m()}},M=hu(),S=L(M),$=L(S),z=L($),y=L(z),N=L(y,!0);E(y),E(z),E($),E(S),Qt(S,C=>W(c,C),()=>g(c));var U=Ee(S,2);{var R=C=>{var q=vu();oa(q,23,r,K=>K.label,(K,ce,we)=>{var D=fu(),ee=L(D);{var I=B=>{var ie=du(),de=L(ie);E(ie),$e(()=>te(de,"src",g(ce).icon)),A(B,ie)};ue(ee,B=>{g(ce).icon&&B(I)})}var T=Ee(ee,2),O=L(T,!0);E(T),E(D),Qt(D,(B,ie)=>g(b)[ie]=B,B=>{var ie;return(ie=g(b))==null?void 0:ie[B]},()=>[g(we)]),$e(()=>Zr(O,g(ce).label)),ke("click",D,()=>{d(g(ce).action),u()}),ke("keydown",D,B=>x(B,g(we))),A(K,D)}),E(q),$e(()=>{He(q,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-4ebv1u"),te(q,"id",s)}),A(C,q)};ue(U,C=>{g(l)&&C(R)})}return E(M),$e(()=>{var C;te(S,"aria-label",i()),te(S,"aria-expanded",g(l)),te(S,"aria-controls",s),Zr(N,(C=n())==null?void 0:C.initials)}),ke("click",S,a),Ke("blur",S,h),A(e,M),he(_)}Mr(["click","keydown"]),me(qi,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],{mode:"open"});var gu=pe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.87891 7.51884C11.0505 6.49372 12.95 6.49372 14.1215 7.51884C15.2931 8.54397 15.2931 10.206 14.1215 11.2312C13.9176 11.4096 13.6917 11.5569 13.4513 11.6733C12.7056 12.0341 12.0002 12.6716 12.0002 13.5V14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 17.25H12.0075V17.2575H12V17.25Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Oi(e,t){ve(t,!0);let r=w(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(s=!1){r(s),m()}},i=gu(),o=L(i);return E(i),$e(()=>te(o,"stroke",r()?"#000":"#585C63")),A(e,i),he(n)}me(Oi,{isSelected:{}},[],[],{mode:"open"});var bu=le('<a part="discover-item"><div class="icon-container svelte-1cca2eg" part="discover-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Discover</span></a>'),mu=le('<div class="nav-items svelte-1cca2eg" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-1cca2eg" part="chat-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Chat</span></a> <a part="console-item"><div class="icon-container svelte-1cca2eg" part="console-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Console</span></a> <a part="api-item"><div class="icon-container svelte-1cca2eg" part="api-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">API</span></a></div>'),wu=le('<div class="nav-footer-icon-container svelte-1cca2eg" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><div class="icon-container svelte-1cca2eg" part="help-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></a></div>'),_u=le('<div class="nav-footer svelte-1cca2eg" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-1cca2eg"><!></div></div>'),ku=le('<div class="drawer-content svelte-1cca2eg" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-1cca2eg"><!></nav></div>'),yu=le('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-1cca2eg" part="nav-content"><div class="nav-main svelte-1cca2eg" part="nav-main"><div class="menu-section svelte-1cca2eg" part="menu-section"><button><div class="icon-container svelte-1cca2eg" part="icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const xu={hash:"svelte-1cca2eg",code:`.expanded-content.drawer-anim.svelte-1cca2eg {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-1cca2eg {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-1cca2eg {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-1cca2eg nav:where(.svelte-1cca2eg) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1cca2eg:disabled,
53
+ /* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-4ebv1u {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-4ebv1u {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-4ebv1u:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-4ebv1u:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-4ebv1u:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-4ebv1u {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-4ebv1u {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function Pn(e,t){oe(t,!0),xt(e,sl);let r=m(t,"menuItems",23,()=>[]),n=m(t,"userMeta",7),i=m(t,"ariaLabel",7,"Open profile menu"),o=m(t,"menuAlign",7,"desktop");const l=`profile-menu-${Math.random().toString(36).slice(2,10)}`;let s=ee(!1);function a(){q(s,!v(s))}function u(){q(s,!1)}function c(y){try{const R=new CustomEvent("profileMenuAction",{detail:{action:y,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(document.querySelector(".profile-context-menu")?.closest("[data-profile-menu]")||window).dispatchEvent(R)}catch(R){console.error("Error dispatching profile menu action:",R)}}function h(y){const R=y.relatedTarget;(!R||!R.closest(".profile-context-menu"))&&u()}let d=ee(null),f=ee(_t([])),g=ee(_t([]));Bt(()=>{q(f,v(g).filter(Boolean),!0)});function x(y,R){if(y.key==="ArrowDown"){y.preventDefault();const F=(R+1)%r().length;v(f)[F]?.focus()}else if(y.key==="ArrowUp"){y.preventDefault();const F=(R-1+r().length)%r().length;v(f)[F]?.focus()}else y.key==="Escape"&&(u(),v(d)?.focus(),y.stopPropagation())}function p(y){v(s)&&y.key==="Escape"&&(u(),v(d)?.focus(),y.stopPropagation())}Bt(()=>{if(!(typeof window>"u"))return window.addEventListener("keydown",p,!0),()=>{window.removeEventListener("keydown",p,!0)}});var _={get menuItems(){return r()},set menuItems(y=[]){r(y),b()},get userMeta(){return n()},set userMeta(y){n(y),b()},get ariaLabel(){return i()},set ariaLabel(y="Open profile menu"){i(y),b()},get menuAlign(){return o()},set menuAlign(y="desktop"){o(y),b()}},C=al(),I=M(C),N=M(I),L=M(N),w=M(L),S=M(w,!0);E(w),E(L),E(N),E(I),Ct(I,y=>q(d,y),()=>v(d));var O=he(I,2);{var U=y=>{var R=ol();ro(R,23,r,F=>F.label,(F,ye,Ee)=>{var D=il(),Z=M(D);{var z=W=>{var ne=nl(),de=M(ne);E(ne),we(()=>Y(de,"src",v(ye).icon)),T(W,ne)};re(Z,W=>{v(ye).icon&&W(z)})}var A=he(Z,2),J=M(A,!0);E(A),E(D),Ct(D,(W,ne)=>v(g)[ne]=W,W=>v(g)?.[W],()=>[v(Ee)]),we(()=>ur(J,v(ye).label)),ce("click",D,()=>{c(v(ye).action),u()}),ce("keydown",D,W=>x(W,v(Ee))),T(F,D)}),E(R),we(()=>{Se(R,1,`profile-context-menu ${o()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-4ebv1u"),Y(R,"id",l)}),T(y,R)};re(O,y=>{v(s)&&y(U)})}return E(C),we(()=>{Y(I,"aria-label",i()),Y(I,"aria-expanded",v(s)),Y(I,"aria-controls",l),ur(S,n()?.initials)}),ce("click",I,a),He("blur",I,h),T(e,C),ae(_)}Zt(["click","keydown"]),le(Pn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],{mode:"open"});var ll=se('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.87891 7.51884C11.0505 6.49372 12.95 6.49372 14.1215 7.51884C15.2931 8.54397 15.2931 10.206 14.1215 11.2312C13.9176 11.4096 13.6917 11.5569 13.4513 11.6733C12.7056 12.0341 12.0002 12.6716 12.0002 13.5V14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 17.25H12.0075V17.2575H12V17.25Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function jn(e,t){oe(t,!0);let r=m(t,"isSelected",7,!1);var n={get isSelected(){return r()},set isSelected(l=!1){r(l),b()}},i=ll(),o=M(i);return E(i),we(()=>Y(o,"stroke",r()?"#000":"#585C63")),T(e,i),ae(n)}le(jn,{isSelected:{}},[],[],{mode:"open"});var ul=te('<a part="discover-item"><div class="icon-container svelte-1cca2eg" part="discover-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Discover</span></a>'),cl=te('<div class="nav-items svelte-1cca2eg" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-1cca2eg" part="chat-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Chat</span></a> <a part="console-item"><div class="icon-container svelte-1cca2eg" part="console-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">Console</span></a> <a part="api-item"><div class="icon-container svelte-1cca2eg" part="api-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div> <span class="nav-text svelte-1cca2eg">API</span></a></div>'),dl=te('<div class="nav-footer-icon-container svelte-1cca2eg" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><div class="icon-container svelte-1cca2eg" part="help-icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></a></div>'),fl=te('<div class="nav-footer svelte-1cca2eg" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-1cca2eg"><!></div></div>'),vl=te('<div class="drawer-content svelte-1cca2eg" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-1cca2eg"><!></nav></div>'),hl=te('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-1cca2eg" part="nav-content"><div class="nav-main svelte-1cca2eg" part="nav-main"><div class="menu-section svelte-1cca2eg" part="menu-section"><button><div class="icon-container svelte-1cca2eg" part="icon-container"><div class="icon-wrapper svelte-1cca2eg"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const pl={hash:"svelte-1cca2eg",code:`.expanded-content.drawer-anim.svelte-1cca2eg {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-1cca2eg {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-1cca2eg {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-1cca2eg nav:where(.svelte-1cca2eg) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1cca2eg:disabled,
54
54
  .menu-button.disabled.svelte-1cca2eg {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-1cca2eg {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-1cca2eg {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-1cca2eg {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-50);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-1cca2eg .expanded-content:where(.svelte-1cca2eg) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-1cca2eg:not(.expanded) .expanded-content:where(.svelte-1cca2eg) {width:0;opacity:0;}.nav-content.svelte-1cca2eg {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-1cca2eg {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-1cca2eg {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.menu-section.svelte-1cca2eg {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-1cca2eg {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-1cca2eg {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1cca2eg:focus,
55
55
  .nav-item.svelte-1cca2eg:focus,
56
56
  .help-link.svelte-1cca2eg:focus {outline:none;}.menu-button.svelte-1cca2eg:focus .icon-container:where(.svelte-1cca2eg),
@@ -70,9 +70,9 @@
70
70
  .menu-button.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
71
71
  .menu-button.svelte-1cca2eg:active .icon-container:where(.svelte-1cca2eg),
72
72
  .help-link.svelte-1cca2eg:hover .icon-container:where(.svelte-1cca2eg),
73
- .help-link.selected.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1cca2eg {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.svelte-1cca2eg:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1cca2eg {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1cca2eg {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;}.help-link.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-1cca2eg svg {display:block;}`};function Sa(e,t){ve(t,!0),Xt(e,xu);const r=()=>ft(fr,"$selectedItem",o),n=()=>ft(gt,"$isExpanded",o),i=()=>ft($i,"$isMenuButtonDisabled",o),[o,s]=Or();let l=w(t,"ssrSelectedItem",7,void 0),a=w(t,"controlledSelectedItem",7,void 0),u=w(t,"onNavToggle",7,void 0),d=w(t,"onNavItemClick",7,void 0),h=w(t,"showAppIcons",7,!0),c=w(t,"hideDiscover",7,!0),v=w(t,"profileMenuData",7),b=w(t,"apiUrl",7),x=w(t,"chatUrl",7),p=w(t,"consoleUrl",7),_=w(t,"discoverUrl",7),M=w(t,"supplementalMenuData",7),S=w(t,"children",7);const $=Y(()=>()=>{var k,H,P;return(P=(H=(k=M())==null?void 0:k.help)==null?void 0:H.url)==null?void 0:P.trim()});function z(k,H){try{return new URL(k,H).pathname}catch{return null}}function y(){const k=g($)();if(!k||k==="#"||k.startsWith("#"))return!1;const H=globalThis.location;if(H!=null&&H.origin&&(H!=null&&H.pathname)){const P=z(k,H.origin);return P!==null&&H.pathname===P}return!1}const N=Y(()=>()=>y());let U=se(!1),R=se(null),C=se(null),q=se(!1),K=se(!1),ce=se(null),we=se(null),D=se(null),ee=se(null),I=null;function T(k,H){return g(U)?k:H}const O=Y(()=>()=>a()??r()),B=Y(()=>()=>a()??l()),ie=Y(()=>()=>g(B)()),de=Y(()=>()=>g(ie)()==="discover"),qt=Y(()=>()=>g(O)()==="discover");function Re(k){return T(g(O)()===k,g(B)()===k)}function Un(k){return g(C)===k}const sn=Y(()=>()=>T(n(),g(ie)()?!g(de)():!0)),Vi=Y(()=>()=>T(g(qt)(),g(ie)()?g(de)():!1)),Bu=Y(()=>()=>T(n(),g(ie)()?!g(de)():!0)),Fu=Y(()=>()=>g(K)&&g(q)&&!g(Vi)());hl(()=>{if(typeof window>"u")return;W(U,!0),a()===void 0&&l()&&r()===null&&Ae.setSelectedItem(l()),document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),g(R)&&g(R).classList.add("hydrated");const k=typeof window.matchMedia=="function"?window.matchMedia("(hover: hover)"):null,H=qe=>{W(K,qe.matches,!0)};k?(W(K,k.matches,!0),k.addEventListener("change",H)):W(K,!1);const P=qe=>{const Ne=qe,{isMobile:xe}=Ne.detail;if(xe)Ae.setExpanded(!1);else{const re=g(O)();re&&re!=="discover"?Ae.setExpanded(!0):Ae.setExpanded(!1)}};window.addEventListener("layoutTransition",P);const Me=qe=>{const Ne=document.activeElement,xe=!!document.querySelector(".profile-context-menu");qe.key==="Escape"&&n()&&!xe&&!(Ne&&Ne.closest(".profile-context-menu"))&&Ae.setExpanded(!1)};window.addEventListener("keydown",Me);const fe=qe=>{const Ne=qe,{action:xe,isOpen:re}=Ne.detail;xe==="toggle"?Ae.toggleExpanded():xe==="open"?Ae.setExpanded(!0):xe==="close"?Ae.setExpanded(!1):xe==="set"&&typeof re=="boolean"&&Ae.setExpanded(re)};window.addEventListener("graymatter-desktop-nav-control",fe),I=()=>{window.removeEventListener("graymatter-desktop-nav-control",fe)};const Be=()=>{g(N)()};return window.addEventListener("popstate",Be),()=>{window.removeEventListener("layoutTransition",P),window.removeEventListener("keydown",Me),window.removeEventListener("popstate",Be),k&&k.removeEventListener("change",H),I&&I()}});function Zu(k){const H=g($)();(H==="#"||H!=null&&H.startsWith("#"))&&k.preventDefault()}function Yu(){var k;g(Vi)()||(Ae.toggleExpanded(),(k=u())==null||k({expanded:n()}))}function ln(k){var H;if(k!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),a()===void 0&&Ae.setSelectedItem(k),k!=="discover")try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const Me=document.getElementById("main-content");if(Me){const fe=Me.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(fe&&fe.textContent){const Be=fe.textContent.trim();P.set(Be),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Be))}}}},200)}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing state:",P)}else try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:P})=>{P.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(P=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",P)})}catch(P){console.log("[DesktopSideNav] Import failed for clearing Discover state:",P)}(H=d())==null||H({item:k,expanded:n()})}function Hn(k,H){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),ln(H))}function qn(k,H){var fe,Be,qe,Ne;const P=[g(ce),g(we),g(D),g(ee)],Me=P.length;if(Me)if(k.key==="ArrowDown"){k.preventDefault();const xe=(H+1)%Me;(fe=P[xe])==null||fe.focus()}else if(k.key==="ArrowUp"){k.preventDefault();const xe=(H-1+Me)%Me;(Be=P[xe])==null||Be.focus()}else k.key==="Home"?(k.preventDefault(),(qe=P[0])==null||qe.focus()):k.key==="End"&&(k.preventDefault(),(Ne=P[Me-1])==null||Ne.focus())}var Wu={get ssrSelectedItem(){return l()},set ssrSelectedItem(k=void 0){l(k),m()},get controlledSelectedItem(){return a()},set controlledSelectedItem(k=void 0){a(k),m()},get onNavToggle(){return u()},set onNavToggle(k=void 0){u(k),m()},get onNavItemClick(){return d()},set onNavItemClick(k=void 0){d(k),m()},get showAppIcons(){return h()},set showAppIcons(k=!0){h(k),m()},get hideDiscover(){return c()},set hideDiscover(k=!0){c(k),m()},get profileMenuData(){return v()},set profileMenuData(k){v(k),m()},get apiUrl(){return b()},set apiUrl(k){b(k),m()},get chatUrl(){return x()},set chatUrl(k){x(k),m()},get consoleUrl(){return p()},set consoleUrl(k){p(k),m()},get discoverUrl(){return _()},set discoverUrl(k){_(k),m()},get supplementalMenuData(){return M()},set supplementalMenuData(k){M(k),m()},get children(){return S()},set children(k){S(k),m()}},un=yu();let Ha;var Pi=L(un),ji=L(Pi),Ri=L(ji),wt=L(Ri);let qa;var Oa=L(wt),Va=L(Oa),Ju=L(Va);{let k=Y(()=>g(Fu)()),H=Y(()=>g(Vi)()),P=Y(()=>g(Bu)());Tn(Ju,{get isHovered(){return g(k)},get isDisabled(){return g(H)},get isOpen(){return g(P)}})}E(Va),E(Oa),E(wt),E(Ri);var Ku=Ee(Ri,2);{var Gu=k=>{var H=mu(),P=L(H);{var Me=oe=>{var tt=bu();let Pn;var jn=L(tt),Rn=L(jn),Zi=L(Rn);{let tr=Y(()=>Re("discover"));Di(Zi,{get isSelected(){return g(tr)}})}E(Rn),E(jn),dt(2),E(tt),Qt(tt,tr=>W(ce,tr),()=>g(ce)),$e((tr,oc)=>{te(tt,"href",_()||"#"),Pn=He(tt,1,"nav-item discover-item svelte-1cca2eg",null,Pn,tr),te(tt,"aria-current",oc)},[()=>({selected:Re("discover"),hovered:Un("discover")}),()=>Re("discover")?"page":void 0]),ke("click",tt,()=>ln("discover")),ke("keydown",tt,tr=>{Hn(tr,"discover"),qn(tr,0)}),Ke("mouseenter",tt,()=>W(C,"discover")),Ke("mouseleave",tt,()=>W(C,null)),A(oe,tt)};ue(P,oe=>{c()||oe(Me)})}var fe=Ee(P,2);let Be;var qe=L(fe),Ne=L(qe),xe=L(Ne);{let oe=Y(()=>Re("chat"));Ai(xe,{get isSelected(){return g(oe)}})}E(Ne),E(qe),dt(2),E(fe),Qt(fe,oe=>W(we,oe),()=>g(we));var re=Ee(fe,2);let cn;var dn=L(re),fn=L(dn),Fi=L(fn);{let oe=Y(()=>Re("console"));Ui(Fi,{get isSelected(){return g(oe)}})}E(fn),E(dn),dt(2),E(re),Qt(re,oe=>W(D,oe),()=>g(D));var Fe=Ee(re,2);let On;var Vn=L(Fe),ja=L(Vn),ic=L(ja);{let oe=Y(()=>Re("api"));Hi(ic,{get isSelected(){return g(oe)}})}E(ja),E(Vn),dt(2),E(Fe),Qt(Fe,oe=>W(ee,oe),()=>g(ee)),E(H),$e((oe,tt,Pn,jn,Rn,Zi)=>{te(fe,"href",x()||"#"),Be=He(fe,1,"nav-item chat-item svelte-1cca2eg",null,Be,oe),te(fe,"aria-current",tt),te(re,"href",p()||"#"),cn=He(re,1,"nav-item console-item svelte-1cca2eg",null,cn,Pn),te(re,"aria-current",jn),te(Fe,"href",b()||"#"),On=He(Fe,1,"nav-item api-item svelte-1cca2eg",null,On,Rn),te(Fe,"aria-current",Zi)},[()=>({selected:Re("chat"),hovered:Un("chat")}),()=>Re("chat")?"page":void 0,()=>({selected:Re("console"),hovered:Un("console")}),()=>Re("console")?"page":void 0,()=>({selected:Re("api"),hovered:Un("api")}),()=>Re("api")?"page":void 0]),ke("click",fe,()=>ln("chat")),ke("keydown",fe,oe=>{Hn(oe,"chat"),qn(oe,1)}),Ke("mouseenter",fe,()=>W(C,"chat")),Ke("mouseleave",fe,()=>W(C,null)),ke("click",re,()=>ln("console")),ke("keydown",re,oe=>{Hn(oe,"console"),qn(oe,2)}),Ke("mouseenter",re,()=>W(C,"console")),Ke("mouseleave",re,()=>W(C,null)),ke("click",Fe,()=>ln("api")),ke("keydown",Fe,oe=>{Hn(oe,"api"),qn(oe,3)}),Ke("mouseenter",Fe,()=>W(C,"api")),Ke("mouseleave",Fe,()=>W(C,null)),A(k,H)};ue(Ku,k=>{h()&&k(Gu)})}E(ji);var Xu=Ee(ji,2);{var Qu=k=>{var H=_u(),P=L(H);{var Me=Ne=>{var xe=wu(),re=L(xe);let cn;var dn=L(re),fn=L(dn),Fi=L(fn);{let Fe=Y(()=>g(N)());Oi(Fi,{get isSelected(){return g(Fe)}})}E(fn),E(dn),E(re),E(xe),$e((Fe,On,Vn)=>{cn=He(re,1,"help-link svelte-1cca2eg",null,cn,Fe),te(re,"aria-current",On),te(re,"href",Vn)},[()=>({selected:g(N)()}),()=>g(N)()?"page":void 0,()=>g($)()]),ke("click",re,Zu),A(Ne,xe)},fe=Y(()=>g($)());ue(P,Ne=>{g(fe)&&Ne(Me)})}var Be=Ee(P,2),qe=L(Be);{let Ne=Y(()=>{var re;return(re=v())==null?void 0:re.userMeta}),xe=Y(()=>{var re;return(re=v())==null?void 0:re.menuItems});qi(qe,{get userMeta(){return g(Ne)},get menuItems(){return g(xe)},ariaLabel:"Open profile menu",menuAlign:"desktop"})}E(Be),E(H),A(k,H)};ue(Xu,k=>{v()&&k(Qu)})}E(Pi);var Bi=Ee(Pi,2);let Pa;var ec=L(Bi);{var tc=k=>{var H=ku(),P=L(H),Me=L(P);Ln(Me,()=>S()??Ze),E(P),E(H),A(k,H)},rc=Y(()=>g(sn)());ue(ec,k=>{g(rc)&&k(tc)})}E(Bi),E(un),Qt(un,k=>W(R,k),()=>g(R)),$e((k,H,P,Me)=>{Ha=He(un,1,"side-nav-container svelte-1cca2eg",null,Ha,k),qa=He(wt,1,"menu-button svelte-1cca2eg",null,qa,{disabled:i()}),wt.disabled=i(),te(wt,"aria-label",H),te(wt,"aria-expanded",P),Pa=He(Bi,1,"expanded-content drawer-anim svelte-1cca2eg",null,Pa,Me)},[()=>({expanded:g(sn)()}),()=>g(sn)()?"Close navigation menu":"Open navigation menu",()=>g(sn)()?"true":"false",()=>({open:g(sn)()})]),ke("click",wt,Yu),Ke("mouseenter",wt,()=>W(q,!0)),Ke("mouseleave",wt,()=>W(q,!1)),Ke("focus",wt,()=>W(q,!0)),Ke("blur",wt,()=>W(q,!1)),A(e,un);var nc=he(Wu);return s(),nc}Mr(["click","keydown"]),me(Sa,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"});function Ea(e,t){ve(t,!0);let r=w(t,"ssrSelectedItem",7),n=w(t,"controlledSelectedItem",7),i=w(t,"onNavToggle",7),o=w(t,"onNavItemClick",7),s=w(t,"showAppIcons",7,!0),l=w(t,"hideDiscover",7,!0),a=w(t,"profileMenuData",7),u=w(t,"apiUrl",7),d=w(t,"chatUrl",7),h=w(t,"consoleUrl",7),c=w(t,"discoverUrl",7),v=w(t,"supplementalMenuData",7),b=w(t,"children",7);var x={get ssrSelectedItem(){return r()},set ssrSelectedItem(p){r(p),m()},get controlledSelectedItem(){return n()},set controlledSelectedItem(p){n(p),m()},get onNavToggle(){return i()},set onNavToggle(p){i(p),m()},get onNavItemClick(){return o()},set onNavItemClick(p){o(p),m()},get showAppIcons(){return s()},set showAppIcons(p=!0){s(p),m()},get hideDiscover(){return l()},set hideDiscover(p=!0){l(p),m()},get profileMenuData(){return a()},set profileMenuData(p){a(p),m()},get apiUrl(){return u()},set apiUrl(p){u(p),m()},get chatUrl(){return d()},set chatUrl(p){d(p),m()},get consoleUrl(){return h()},set consoleUrl(p){h(p),m()},get discoverUrl(){return c()},set discoverUrl(p){c(p),m()},get supplementalMenuData(){return v()},set supplementalMenuData(p){v(p),m()},get children(){return b()},set children(p){b(p),m()}};return Sa(e,{get ssrSelectedItem(){return r()},get controlledSelectedItem(){return n()},get onNavToggle(){return i()},get onNavItemClick(){return o()},get showAppIcons(){return s()},get hideDiscover(){return l()},get profileMenuData(){return a()},get apiUrl(){return u()},get chatUrl(){return d()},get consoleUrl(){return h()},get discoverUrl(){return c()},get supplementalMenuData(){return v()},get children(){return b()}}),he(x)}customElements.define("graymatter-desktop-side-nav",me(Ea,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"}));var Cu=pe('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>'),Su=pe('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Eu={hash:"svelte-tssf2h",code:"svg.svelte-tssf2h {display:block;}"};function Lr(e,t){ve(t,!0),Xt(e,Eu);const r=w(t,"isInverted",7,!1),n=w(t,"width",7,102),i=w(t,"height",7,30),o=w(t,"showServiceMark",7,!1),s=Gr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),l=Y(()=>()=>r()?"var(--ai-color-white)":"var(--ai-color-black)");var a={get isInverted(){return r()},set isInverted(v=!1){r(v),m()},get width(){return n()},set width(v=102){n(v),m()},get height(){return i()},set height(v=30){i(v),m()},get showServiceMark(){return o()},set showServiceMark(v=!1){o(v),m()}},u=Mn(),d=ar(u);{var h=v=>{var b=Cu();Kr(b,x=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${x??""};`,...s}),[()=>g(l)()],void 0,void 0,"svelte-tssf2h"),A(v,b)},c=v=>{var b=Su();Kr(b,x=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${x??""};`,...s}),[()=>g(l)()],void 0,void 0,"svelte-tssf2h"),A(v,b)};ue(d,v=>{o()?v(c,-1):v(h)})}return A(e,u),he(a)}me(Lr,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],{mode:"open"});function Ma(e,t){ve(t,!0);let r=w(t,"isInverted",7,!1),n=w(t,"width",7,void 0),i=w(t,"height",7,void 0),o=w(t,"showServiceMark",7,!1),s=Gr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);var l={get isInverted(){return r()},set isInverted(a=!1){r(a),m()},get width(){return n()},set width(a=void 0){n(a),m()},get height(){return i()},set height(a=void 0){i(a),m()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),m()}};return Lr(e,ga({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),he(l)}customElements.define("graymatter-logo",me(Ma,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],{mode:"open"}));var Mu=le('<a><div class="icon svelte-1ya5jgu"><!></div> <span class="label svelte-1ya5jgu"> </span></a>'),Iu=le('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Lu={hash:"svelte-1ya5jgu",code:".nav-item.svelte-1ya5jgu {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-1ya5jgu {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-1ya5jgu .icon:where(.svelte-1ya5jgu) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-8);}.nav-item.svelte-1ya5jgu:hover {color:var(--ai-color-neutral-700);}.icon.svelte-1ya5jgu {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-1ya5jgu {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ia(e,t){ve(t,!0),Xt(e,Lu);const r=()=>ft(fr,"$selectedItem",n),[n,i]=Or();let o=w(t,"onNavItemClick",7),s=w(t,"showAppIcons",7,!0),l=w(t,"hideDiscover",7,!0),a=w(t,"apiUrl",7),u=w(t,"chatUrl",7),d=w(t,"consoleUrl",7),h=w(t,"discoverUrl",7),c=w(t,"controlledSelectedItem",7,void 0);const v=Y(()=>()=>c()??r()),b=Y(()=>()=>[{id:"discover",label:"Discover",icon:Di,href:h()||"#"},{id:"chat",label:"Chat",icon:Ai,href:u()||"#"},{id:"console",label:"Console",icon:Ui,href:d()||"#"},{id:"api",label:"API",icon:Hi,href:a()||"#"}]),x=Y(()=>()=>l()?g(b)().filter(y=>y.id!=="discover"):g(b)());function p(y){var N;if(y!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),c()===void 0&&Ae.setSelectedItem(y),y!=="discover")try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:U})=>{U.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const R=document.getElementById("main-content");if(R){const C=R.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(C&&C.textContent){const q=C.textContent.trim();U.set(q),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(q))}}},200)}).catch(U=>{console.log("[MobileBottomNav] Error clearing header state:",U)})}catch(U){console.log("[MobileBottomNav] Import failed for clearing state:",U)}else try{Promise.resolve().then(()=>Nn).then(({selectedSubNavItemTitle:U})=>{U.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(U=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",U)})}catch(U){console.log("[MobileBottomNav] Import failed for clearing Discover state:",U)}(N=o())==null||N({item:y,expanded:!1})}var _={get onNavItemClick(){return o()},set onNavItemClick(y){o(y),m()},get showAppIcons(){return s()},set showAppIcons(y=!0){s(y),m()},get hideDiscover(){return l()},set hideDiscover(y=!0){l(y),m()},get apiUrl(){return a()},set apiUrl(y){a(y),m()},get chatUrl(){return u()},set chatUrl(y){u(y),m()},get consoleUrl(){return d()},set consoleUrl(y){d(y),m()},get discoverUrl(){return h()},set discoverUrl(y){h(y),m()},get controlledSelectedItem(){return c()},set controlledSelectedItem(y=void 0){c(y),m()}},M=Mn(),S=ar(M);{var $=y=>{var N=Iu();oa(N,21,()=>g(x)(),pl,(U,R)=>{var C=Mu();let q;var K=L(C),ce=L(K);{let ee=Y(()=>g(v)()===g(R).id);wl(ce,()=>g(R).icon,(I,T)=>{T(I,{get isSelected(){return g(ee)}})})}E(K);var we=Ee(K,2),D=L(we,!0);E(we),E(C),$e(ee=>{te(C,"href",g(R).href),q=He(C,1,`nav-item ${g(R).id}-item`,"svelte-1ya5jgu",q,ee),te(C,"part",`${g(R).id}-item`),Zr(D,g(R).label)},[()=>({active:g(v)()===g(R).id})]),ke("click",C,()=>p(g(R).id)),A(U,C)}),E(N),A(y,N)};ue(S,y=>{s()&&y($)})}A(e,M);var z=he(_);return i(),z}Mr(["click"]),me(Ia,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"});function La(e,t){ve(t,!0);let r=w(t,"onNavItemClick",7),n=w(t,"showAppIcons",7,!0),i=w(t,"hideDiscover",7,!0),o=w(t,"apiUrl",7),s=w(t,"chatUrl",7),l=w(t,"consoleUrl",7),a=w(t,"discoverUrl",7),u=w(t,"controlledSelectedItem",7);var d={get onNavItemClick(){return r()},set onNavItemClick(h){r(h),m()},get showAppIcons(){return n()},set showAppIcons(h=!0){n(h),m()},get hideDiscover(){return i()},set hideDiscover(h=!0){i(h),m()},get apiUrl(){return o()},set apiUrl(h){o(h),m()},get chatUrl(){return s()},set chatUrl(h){s(h),m()},get consoleUrl(){return l()},set consoleUrl(h){l(h),m()},get discoverUrl(){return a()},set discoverUrl(h){a(h),m()},get controlledSelectedItem(){return u()},set controlledSelectedItem(h){u(h),m()}};return Ia(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return l()},get discoverUrl(){return a()},get controlledSelectedItem(){return u()}}),he(d)}customElements.define("graymatter-mobile-bottom-nav",me(La,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"}));var zu=le('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Nu=le('<a part="logo-link" class="logo-link svelte-otdehu"><!></a>'),Tu=le('<div class="subnav-section svelte-otdehu" part="subnav-section"><!></div>'),$u=le('<div class="no-subnav-message svelte-otdehu" part="no-subnav-message"><p class="svelte-otdehu">Select a section from the bottom navigation</p></div>'),Du=le('<!> <div part="mobile-side-menu"><div class="menu-header svelte-otdehu" part="menu-header"><button class="close-button svelte-otdehu" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-otdehu" part="logo-container"><!></div></div> <div class="menu-content svelte-otdehu" part="menu-content"><!></div></div>',1);const Au={hash:"svelte-otdehu",code:".no-subnav-message.svelte-otdehu {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-otdehu p:where(.svelte-otdehu) {margin:0;}.mobile-side-menu.svelte-otdehu {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-otdehu {transform:translateX(0);}.menu-header.svelte-otdehu {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-otdehu .logo-container:where(.svelte-otdehu) {display:flex;}.logo-link.svelte-otdehu {display:flex;}.close-button.svelte-otdehu {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-otdehu:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-otdehu {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-otdehu {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function za(e,t){ve(t,!0),Xt(e,Au);const r=()=>ft(gt,"$isExpanded",i),n=()=>ft(fr,"$selectedItem",i),[i,o]=Or();let s=se(null),l=null,a=w(t,"logoLinkUrl",7),u=w(t,"logoLinkLabel",7),d=w(t,"children",7);function h(D){if(l=D.detail.hash,c(),l){const I=document.getElementById(l);if(I){const T=document.getElementById("main-content-mobile"),O=T?T.querySelector(`[id="${l}"]`):null;if(O&&T){const B=O.getBoundingClientRect(),ie=T.getBoundingClientRect(),de=T.scrollTop+B.top-ie.top;T.scrollTo({top:de,behavior:"auto"}),setTimeout(()=>{var qt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(qt=O.textContent)==null?void 0:qt.trim(),id:O.id}}))},100)}else{let B=I.parentElement;for(;B&&B!==document.body;){const ie=window.getComputedStyle(B);if(ie.overflowY==="auto"||ie.overflowY==="scroll")break;B=B.parentElement}B&&B!==document.body?document.getElementById("main-content")?(I.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var de;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(de=I.textContent)==null?void 0:de.trim(),id:I.id}}))},100)):I.scrollIntoView({behavior:"auto",block:"start"}):I.scrollIntoView({behavior:"auto",block:"start"})}}l=null}}Sr(()=>{if(typeof window>"u")return;window.addEventListener("mobileAnchorNavigate",h);const D=()=>{c()};window.addEventListener("closeMobileMenu",D);const ee=T=>{const O=T,{isMobile:B}=O.detail;B&&Ae.setExpanded(!1)};window.addEventListener("layoutTransition",ee);const I=T=>{const O=document.activeElement;T.key==="Escape"&&r()&&!(O&&O.closest(".profile-context-menu"))&&c()};return window.addEventListener("keydown",I),()=>{window.removeEventListener("mobileAnchorNavigate",h),window.removeEventListener("closeMobileMenu",D),window.removeEventListener("layoutTransition",ee),window.removeEventListener("keydown",I)}});function c(){Ae.setExpanded(!1)}var v={get logoLinkUrl(){return a()},set logoLinkUrl(D){a(D),m()},get logoLinkLabel(){return u()},set logoLinkLabel(D){u(D),m()},get children(){return d()},set children(D){d(D),m()}},b=Du(),x=ar(b);{var p=D=>{var ee=zu();ke("click",ee,c),ke("keydown",ee,I=>{(I.key==="Enter"||I.key===" ")&&c()}),A(D,ee)};ue(x,D=>{r()&&D(p)})}var _=Ee(x,2);let M;var S=L(_),$=L(S),z=L($);Tn(z,{isOpen:!0}),E($);var y=Ee($,2),N=L(y);{var U=D=>{var ee=Nu(),I=L(ee);Lr(I,{width:75,height:22}),E(ee),$e(()=>{te(ee,"href",a()),te(ee,"aria-label",u())}),A(D,ee)},R=D=>{Lr(D,{width:75,height:22})};ue(N,D=>{a()?D(U):D(R,-1)})}E(y),E(S);var C=Ee(S,2),q=L(C);{var K=D=>{var ee=Tu(),I=L(ee);Ln(I,()=>d()??Ze),E(ee),A(D,ee)},ce=D=>{var ee=$u();A(D,ee)};ue(q,D=>{n()&&n()!=="discover"?D(K):D(ce,-1)})}E(C),E(_),Qt(_,D=>W(s,D),()=>g(s)),$e(()=>M=He(_,1,"mobile-side-menu svelte-otdehu",null,M,{open:r()})),ke("click",$,c),A(e,b);var we=he(v);return o(),we}Mr(["click","keydown"]),me(za,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"});function Na(e,t){ve(t,!0);let r=w(t,"logoLinkUrl",7),n=w(t,"logoLinkLabel",7),i=w(t,"children",7);var o={get logoLinkUrl(){return r()},set logoLinkUrl(s){r(s),m()},get logoLinkLabel(){return n()},set logoLinkLabel(s){n(s),m()},get children(){return i()},set children(s){i(s),m()}};return za(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),he(o)}customElements.define("graymatter-mobile-side-menu",me(Na,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"}));var Uu=le('<a class="display-flex"><!></a>'),Hu=le('<a title="Help" aria-label="Help"><span class="icon-container svelte-1iraudq"><!></span></a>'),qu=le('<nav class="mobile-top-nav svelte-1iraudq" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1iraudq"><!> <span class="brand-text svelte-1iraudq"> </span></div> <!> <!></nav>');const Ou={hash:"svelte-1iraudq",code:`.menu-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1iraudq:disabled,
73
+ .help-link.selected.svelte-1cca2eg .icon-container:where(.svelte-1cca2eg) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1cca2eg {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.svelte-1cca2eg:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1cca2eg {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1cca2eg {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;}.help-link.svelte-1cca2eg {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-1cca2eg svg {display:block;}`};function xo(e,t){oe(t,!0),xt(e,pl);const r=()=>Je(Ut,"$selectedItem",o),n=()=>Je(Qe,"$isExpanded",o),i=()=>Je(Un,"$isMenuButtonDisabled",o),[o,l]=tr();let s=m(t,"ssrSelectedItem",7,void 0),a=m(t,"controlledSelectedItem",7,void 0),u=m(t,"onNavToggle",7,void 0),c=m(t,"onNavItemClick",7,void 0),h=m(t,"showAppIcons",7,!0),d=m(t,"hideDiscover",7,!0),f=m(t,"profileMenuData",7),g=m(t,"apiUrl",7),x=m(t,"chatUrl",7),p=m(t,"consoleUrl",7),_=m(t,"discoverUrl",7),C=m(t,"supplementalMenuData",7),I=m(t,"children",7);const N=H(()=>()=>C()?.help?.url?.trim());function L(k,$){try{return new URL(k,$).pathname}catch{return null}}function w(){const k=v(N)();if(!k||k==="#"||k.startsWith("#"))return!1;const $=globalThis.location;if($?.origin&&$?.pathname){const K=L(k,$.origin);return K!==null&&$.pathname===K}return!1}const S=H(()=>()=>w());let O=ee(!1),U=ee(null),y=ee(null),R=ee(!1),F=ee(!1),ye=ee(null),Ee=ee(null),D=ee(null),Z=ee(null),z=null;function A(k,$){return v(O)?k:$}const J=H(()=>()=>a()??r()),W=H(()=>()=>a()??s()),ne=H(()=>()=>v(W)()),de=H(()=>()=>v(ne)()==="discover"),Jt=H(()=>()=>v(J)()==="discover");function Ne(k){return A(v(J)()===k,v(W)()===k)}function Rr(k){return v(y)===k}const br=H(()=>()=>A(n(),v(ne)()?!v(de)():!0)),Rn=H(()=>()=>A(v(Jt)(),v(ne)()?v(de)():!1)),Ul=H(()=>()=>A(n(),v(ne)()?!v(de)():!0)),Hl=H(()=>()=>v(F)&&v(R)&&!v(Rn)());as(()=>{if(typeof window>"u")return;q(O,!0),a()===void 0&&s()&&r()===null&&ke.setSelectedItem(s()),document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),v(U)&&v(U).classList.add("hydrated");const k=typeof window.matchMedia=="function"?window.matchMedia("(hover: hover)"):null,$=Ze=>{q(F,Ze.matches,!0)};k?(q(F,k.matches,!0),k.addEventListener("change",$)):q(F,!1);const K=Ze=>{const Me=Ze,{isMobile:xe}=Me.detail;if(xe)ke.setExpanded(!1);else{const Q=v(J)();Q&&Q!=="discover"?ke.setExpanded(!0):ke.setExpanded(!1)}};window.addEventListener("layoutTransition",K);const fe=Ze=>{const Me=document.activeElement,xe=!!document.querySelector(".profile-context-menu");Ze.key==="Escape"&&n()&&!xe&&!(Me&&Me.closest(".profile-context-menu"))&&ke.setExpanded(!1)};window.addEventListener("keydown",fe);const ie=Ze=>{const Me=Ze,{action:xe,isOpen:Q}=Me.detail;xe==="toggle"?ke.toggleExpanded():xe==="open"?ke.setExpanded(!0):xe==="close"?ke.setExpanded(!1):xe==="set"&&typeof Q=="boolean"&&ke.setExpanded(Q)};window.addEventListener("graymatter-desktop-nav-control",ie),z=()=>{window.removeEventListener("graymatter-desktop-nav-control",ie)};const St=()=>{v(S)()};return window.addEventListener("popstate",St),()=>{window.removeEventListener("layoutTransition",K),window.removeEventListener("keydown",fe),window.removeEventListener("popstate",St),k&&k.removeEventListener("change",$),z&&z()}});function ql(k){const $=v(N)();($==="#"||$?.startsWith("#"))&&k.preventDefault()}function Ol(){v(Rn)()||(ke.toggleExpanded(),u()?.({expanded:n()}))}function mr(k){if(k!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),a()===void 0&&ke.setSelectedItem(k),k!=="discover")try{Promise.resolve().then(()=>Pr).then(({selectedSubNavItemTitle:$})=>{$.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const K=document.getElementById("main-content");if(K){const fe=K.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(fe&&fe.textContent){const ie=fe.textContent.trim();$.set(ie),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(ie))}}}},200)}).catch($=>{console.log("[DesktopSideNav] Error clearing header state:",$)})}catch($){console.log("[DesktopSideNav] Import failed for clearing state:",$)}else try{Promise.resolve().then(()=>Pr).then(({selectedSubNavItemTitle:$})=>{$.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch($=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",$)})}catch($){console.log("[DesktopSideNav] Import failed for clearing Discover state:",$)}c()?.({item:k,expanded:n()})}function Br(k,$){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),mr($))}function Fr(k,$){const K=[v(ye),v(Ee),v(D),v(Z)],fe=K.length;if(fe)if(k.key==="ArrowDown"){k.preventDefault();const ie=($+1)%fe;K[ie]?.focus()}else if(k.key==="ArrowUp"){k.preventDefault();const ie=($-1+fe)%fe;K[ie]?.focus()}else k.key==="Home"?(k.preventDefault(),K[0]?.focus()):k.key==="End"&&(k.preventDefault(),K[fe-1]?.focus())}var Vl={get ssrSelectedItem(){return s()},set ssrSelectedItem(k=void 0){s(k),b()},get controlledSelectedItem(){return a()},set controlledSelectedItem(k=void 0){a(k),b()},get onNavToggle(){return u()},set onNavToggle(k=void 0){u(k),b()},get onNavItemClick(){return c()},set onNavItemClick(k=void 0){c(k),b()},get showAppIcons(){return h()},set showAppIcons(k=!0){h(k),b()},get hideDiscover(){return d()},set hideDiscover(k=!0){d(k),b()},get profileMenuData(){return f()},set profileMenuData(k){f(k),b()},get apiUrl(){return g()},set apiUrl(k){g(k),b()},get chatUrl(){return x()},set chatUrl(k){x(k),b()},get consoleUrl(){return p()},set consoleUrl(k){p(k),b()},get discoverUrl(){return _()},set discoverUrl(k){_(k),b()},get supplementalMenuData(){return C()},set supplementalMenuData(k){C(k),b()},get children(){return I()},set children(k){I(k),b()}},wr=hl();let To;var Bn=M(wr),Fn=M(Bn),Zn=M(Fn),et=M(Zn);let $o;var Do=M(et),Ao=M(Do),Pl=M(Ao);{let k=H(()=>v(Hl)()),$=H(()=>v(Rn)()),K=H(()=>v(Ul)());jr(Pl,{get isHovered(){return v(k)},get isDisabled(){return v($)},get isOpen(){return v(K)}})}E(Ao),E(Do),E(et),E(Zn);var jl=he(Zn,2);{var Rl=k=>{var $=cl(),K=M($);{var fe=X=>{var qe=ul();let Wr;var Jr=M(qe),Kr=M(Jr),Jn=M(Kr);{let Et=H(()=>Ne("discover"));Hn(Jn,{get isSelected(){return v(Et)}})}E(Kr),E(Jr),We(2),E(qe),Ct(qe,Et=>q(ye,Et),()=>v(ye)),we((Et,Gl)=>{Y(qe,"href",_()||"#"),Wr=Se(qe,1,"nav-item discover-item svelte-1cca2eg",null,Wr,Et),Y(qe,"aria-current",Gl)},[()=>({selected:Ne("discover"),hovered:Rr("discover")}),()=>Ne("discover")?"page":void 0]),ce("click",qe,()=>mr("discover")),ce("keydown",qe,Et=>{Br(Et,"discover"),Fr(Et,0)}),He("mouseenter",qe,()=>q(y,"discover")),He("mouseleave",qe,()=>q(y,null)),T(X,qe)};re(K,X=>{d()||X(fe)})}var ie=he(K,2);let St;var Ze=M(ie),Me=M(Ze),xe=M(Me);{let X=H(()=>Ne("chat"));qn(xe,{get isSelected(){return v(X)}})}E(Me),E(Ze),We(2),E(ie),Ct(ie,X=>q(Ee,X),()=>v(Ee));var Q=he(ie,2);let _r;var kr=M(Q),yr=M(kr),Wn=M(yr);{let X=H(()=>Ne("console"));On(Wn,{get isSelected(){return v(X)}})}E(yr),E(kr),We(2),E(Q),Ct(Q,X=>q(D,X),()=>v(D));var Te=he(Q,2);let Zr;var Yr=M(Te),Ho=M(Yr),Kl=M(Ho);{let X=H(()=>Ne("api"));Vn(Kl,{get isSelected(){return v(X)}})}E(Ho),E(Yr),We(2),E(Te),Ct(Te,X=>q(Z,X),()=>v(Z)),E($),we((X,qe,Wr,Jr,Kr,Jn)=>{Y(ie,"href",x()||"#"),St=Se(ie,1,"nav-item chat-item svelte-1cca2eg",null,St,X),Y(ie,"aria-current",qe),Y(Q,"href",p()||"#"),_r=Se(Q,1,"nav-item console-item svelte-1cca2eg",null,_r,Wr),Y(Q,"aria-current",Jr),Y(Te,"href",g()||"#"),Zr=Se(Te,1,"nav-item api-item svelte-1cca2eg",null,Zr,Kr),Y(Te,"aria-current",Jn)},[()=>({selected:Ne("chat"),hovered:Rr("chat")}),()=>Ne("chat")?"page":void 0,()=>({selected:Ne("console"),hovered:Rr("console")}),()=>Ne("console")?"page":void 0,()=>({selected:Ne("api"),hovered:Rr("api")}),()=>Ne("api")?"page":void 0]),ce("click",ie,()=>mr("chat")),ce("keydown",ie,X=>{Br(X,"chat"),Fr(X,1)}),He("mouseenter",ie,()=>q(y,"chat")),He("mouseleave",ie,()=>q(y,null)),ce("click",Q,()=>mr("console")),ce("keydown",Q,X=>{Br(X,"console"),Fr(X,2)}),He("mouseenter",Q,()=>q(y,"console")),He("mouseleave",Q,()=>q(y,null)),ce("click",Te,()=>mr("api")),ce("keydown",Te,X=>{Br(X,"api"),Fr(X,3)}),He("mouseenter",Te,()=>q(y,"api")),He("mouseleave",Te,()=>q(y,null)),T(k,$)};re(jl,k=>{h()&&k(Rl)})}E(Fn);var Bl=he(Fn,2);{var Fl=k=>{var $=fl(),K=M($);{var fe=Me=>{var xe=dl(),Q=M(xe);let _r;var kr=M(Q),yr=M(kr),Wn=M(yr);{let Te=H(()=>v(S)());jn(Wn,{get isSelected(){return v(Te)}})}E(yr),E(kr),E(Q),E(xe),we((Te,Zr,Yr)=>{_r=Se(Q,1,"help-link svelte-1cca2eg",null,_r,Te),Y(Q,"aria-current",Zr),Y(Q,"href",Yr)},[()=>({selected:v(S)()}),()=>v(S)()?"page":void 0,()=>v(N)()]),ce("click",Q,ql),T(Me,xe)},ie=H(()=>v(N)());re(K,Me=>{v(ie)&&Me(fe)})}var St=he(K,2),Ze=M(St);{let Me=H(()=>f()?.userMeta),xe=H(()=>f()?.menuItems);Pn(Ze,{get userMeta(){return v(Me)},get menuItems(){return v(xe)},ariaLabel:"Open profile menu",menuAlign:"desktop"})}E(St),E($),T(k,$)};re(Bl,k=>{f()&&k(Fl)})}E(Bn);var Yn=he(Bn,2);let Uo;var Zl=M(Yn);{var Yl=k=>{var $=vl(),K=M($),fe=M(K);Or(fe,()=>I()??$e),E(K),E($),T(k,$)},Wl=H(()=>v(br)());re(Zl,k=>{v(Wl)&&k(Yl)})}E(Yn),E(wr),Ct(wr,k=>q(U,k),()=>v(U)),we((k,$,K,fe)=>{To=Se(wr,1,"side-nav-container svelte-1cca2eg",null,To,k),$o=Se(et,1,"menu-button svelte-1cca2eg",null,$o,{disabled:i()}),et.disabled=i(),Y(et,"aria-label",$),Y(et,"aria-expanded",K),Uo=Se(Yn,1,"expanded-content drawer-anim svelte-1cca2eg",null,Uo,fe)},[()=>({expanded:v(br)()}),()=>v(br)()?"Close navigation menu":"Open navigation menu",()=>v(br)()?"true":"false",()=>({open:v(br)()})]),ce("click",et,Ol),He("mouseenter",et,()=>q(R,!0)),He("mouseleave",et,()=>q(R,!1)),He("focus",et,()=>q(R,!0)),He("blur",et,()=>q(R,!1)),T(e,wr);var Jl=ae(Vl);return l(),Jl}Zt(["click","keydown"]),le(xo,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"});function Co(e,t){oe(t,!0);let r=m(t,"ssrSelectedItem",7),n=m(t,"controlledSelectedItem",7),i=m(t,"onNavToggle",7),o=m(t,"onNavItemClick",7),l=m(t,"showAppIcons",7,!0),s=m(t,"hideDiscover",7,!0),a=m(t,"profileMenuData",7),u=m(t,"apiUrl",7),c=m(t,"chatUrl",7),h=m(t,"consoleUrl",7),d=m(t,"discoverUrl",7),f=m(t,"supplementalMenuData",7),g=m(t,"children",7);var x={get ssrSelectedItem(){return r()},set ssrSelectedItem(p){r(p),b()},get controlledSelectedItem(){return n()},set controlledSelectedItem(p){n(p),b()},get onNavToggle(){return i()},set onNavToggle(p){i(p),b()},get onNavItemClick(){return o()},set onNavItemClick(p){o(p),b()},get showAppIcons(){return l()},set showAppIcons(p=!0){l(p),b()},get hideDiscover(){return s()},set hideDiscover(p=!0){s(p),b()},get profileMenuData(){return a()},set profileMenuData(p){a(p),b()},get apiUrl(){return u()},set apiUrl(p){u(p),b()},get chatUrl(){return c()},set chatUrl(p){c(p),b()},get consoleUrl(){return h()},set consoleUrl(p){h(p),b()},get discoverUrl(){return d()},set discoverUrl(p){d(p),b()},get supplementalMenuData(){return f()},set supplementalMenuData(p){f(p),b()},get children(){return g()},set children(p){g(p),b()}};return xo(e,{get ssrSelectedItem(){return r()},get controlledSelectedItem(){return n()},get onNavToggle(){return i()},get onNavItemClick(){return o()},get showAppIcons(){return l()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return u()},get chatUrl(){return c()},get consoleUrl(){return h()},get discoverUrl(){return d()},get supplementalMenuData(){return f()},get children(){return g()}}),ae(x)}customElements.define("graymatter-desktop-side-nav",le(Co,{ssrSelectedItem:{},controlledSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{},children:{}},[],[],{mode:"open"}));var gl=se('<svg><g><path d="M57.5791 20.4177C57.5791 15.5645 53.7309 11.6187 48.9988 11.6187H40.188C38.6688 11.6187 37.4304 10.3567 37.4304 8.80197C37.4304 7.24729 38.6658 5.98522 40.188 5.98522H56.2373V0H38.8757C34.1466 0 30.2983 3.94877 30.2983 8.80197C30.2983 13.6552 34.1466 17.6039 38.8757 17.6039H47.6865C49.2057 17.6039 50.4442 18.866 50.4442 20.4207C50.4442 21.9754 49.2087 23.2374 47.6865 23.2374H31.0284V29.2197H48.9988C53.7309 29.2197 57.5791 25.2709 57.5791 20.4207V20.4177Z"></path><path d="M82.1466 24.7153L82.188 24.7685L83.6747 29.2197H90.6914L80.917 0H68.3525L58.5781 29.2167H65.5949L67.0993 24.7153H82.1466ZM69.186 18.4818L73.3653 5.98522H75.9013L75.919 6.03547L80.1161 18.5793H69.1535L69.186 18.4818Z"></path><path d="M27.198 0H20.5626V15.8158C20.5626 21.4345 16.9626 23.4355 13.5961 23.4355C9.03842 23.4355 6.62956 20.799 6.62956 15.8158V0H0V17.0069C0 20.6985 1.46305 24.0532 4.11724 26.4532C6.64729 28.7409 10.0138 30 13.599 30C20.3586 30 27.198 25.5369 27.198 17.0039V0Z"></path><path d="M101.708 9.78915H93.8662V29.2197H101.708V9.78915Z"></path><path d="M101.823 0H93.8662V5.98227H101.823V0Z"></path></g></svg>'),bl=se('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const ml={hash:"svelte-tssf2h",code:"svg.svelte-tssf2h {display:block;}"};function Wt(e,t){oe(t,!0),xt(e,ml);const r=m(t,"isInverted",7,!1),n=m(t,"width",7,102),i=m(t,"height",7,30),o=m(t,"showServiceMark",7,!1),l=hr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),s=H(()=>()=>r()?"var(--ai-color-white)":"var(--ai-color-black)");var a={get isInverted(){return r()},set isInverted(f=!1){r(f),b()},get width(){return n()},set width(f=102){n(f),b()},get height(){return i()},set height(f=30){i(f),b()},get showServiceMark(){return o()},set showServiceMark(f=!1){o(f),b()}},u=Hr(),c=Nt(u);{var h=f=>{var g=gl();vr(g,x=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${x??""};`,...l}),[()=>v(s)()],void 0,void 0,"svelte-tssf2h"),T(f,g)},d=f=>{var g=bl();vr(g,x=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${x??""};`,...l}),[()=>v(s)()],void 0,void 0,"svelte-tssf2h"),T(f,g)};re(c,f=>{o()?f(d,-1):f(h)})}return T(e,u),ae(a)}le(Wt,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],{mode:"open"});function So(e,t){oe(t,!0);let r=m(t,"isInverted",7,!1),n=m(t,"width",7,void 0),i=m(t,"height",7,void 0),o=m(t,"showServiceMark",7,!1),l=hr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);var s={get isInverted(){return r()},set isInverted(a=!1){r(a),b()},get width(){return n()},set width(a=void 0){n(a),b()},get height(){return i()},set height(a=void 0){i(a),b()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),b()}};return Wt(e,ho({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>l)),ae(s)}customElements.define("graymatter-logo",le(So,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],{mode:"open"}));var wl=te('<a><div class="icon svelte-1ya5jgu"><!></div> <span class="label svelte-1ya5jgu"> </span></a>'),_l=te('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const kl={hash:"svelte-1ya5jgu",code:".nav-item.svelte-1ya5jgu {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-1ya5jgu {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-1ya5jgu .icon:where(.svelte-1ya5jgu) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-8);}.nav-item.svelte-1ya5jgu:hover {color:var(--ai-color-neutral-700);}.icon.svelte-1ya5jgu {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-1ya5jgu {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Eo(e,t){oe(t,!0),xt(e,kl);const r=()=>Je(Ut,"$selectedItem",n),[n,i]=tr();let o=m(t,"onNavItemClick",7),l=m(t,"showAppIcons",7,!0),s=m(t,"hideDiscover",7,!0),a=m(t,"apiUrl",7),u=m(t,"chatUrl",7),c=m(t,"consoleUrl",7),h=m(t,"discoverUrl",7),d=m(t,"controlledSelectedItem",7,void 0);const f=H(()=>()=>d()??r()),g=H(()=>()=>[{id:"discover",label:"Discover",icon:Hn,href:h()||"#"},{id:"chat",label:"Chat",icon:qn,href:u()||"#"},{id:"console",label:"Console",icon:On,href:c()||"#"},{id:"api",label:"API",icon:Vn,href:a()||"#"}]),x=H(()=>()=>s()?v(g)().filter(w=>w.id!=="discover"):v(g)());function p(w){if(w!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),d()===void 0&&ke.setSelectedItem(w),w!=="discover")try{Promise.resolve().then(()=>Pr).then(({selectedSubNavItemTitle:S})=>{S.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document>"u")return;const O=document.getElementById("main-content");if(O){const U=O.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(U&&U.textContent){const y=U.textContent.trim();S.set(y),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(y))}}},200)}).catch(S=>{console.log("[MobileBottomNav] Error clearing header state:",S)})}catch(S){console.log("[MobileBottomNav] Import failed for clearing state:",S)}else try{Promise.resolve().then(()=>Pr).then(({selectedSubNavItemTitle:S})=>{S.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(S=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",S)})}catch(S){console.log("[MobileBottomNav] Import failed for clearing Discover state:",S)}o()?.({item:w,expanded:!1})}var _={get onNavItemClick(){return o()},set onNavItemClick(w){o(w),b()},get showAppIcons(){return l()},set showAppIcons(w=!0){l(w),b()},get hideDiscover(){return s()},set hideDiscover(w=!0){s(w),b()},get apiUrl(){return a()},set apiUrl(w){a(w),b()},get chatUrl(){return u()},set chatUrl(w){u(w),b()},get consoleUrl(){return c()},set consoleUrl(w){c(w),b()},get discoverUrl(){return h()},set discoverUrl(w){h(w),b()},get controlledSelectedItem(){return d()},set controlledSelectedItem(w=void 0){d(w),b()}},C=Hr(),I=Nt(C);{var N=w=>{var S=_l();ro(S,21,()=>v(x)(),ss,(O,U)=>{var y=wl();let R;var F=M(y),ye=M(F);{let Z=H(()=>v(f)()===v(U).id);ds(ye,()=>v(U).icon,(z,A)=>{A(z,{get isSelected(){return v(Z)}})})}E(F);var Ee=he(F,2),D=M(Ee,!0);E(Ee),E(y),we(Z=>{Y(y,"href",v(U).href),R=Se(y,1,`nav-item ${v(U).id}-item`,"svelte-1ya5jgu",R,Z),Y(y,"part",`${v(U).id}-item`),ur(D,v(U).label)},[()=>({active:v(f)()===v(U).id})]),ce("click",y,()=>p(v(U).id)),T(O,y)}),E(S),T(w,S)};re(I,w=>{l()&&w(N)})}T(e,C);var L=ae(_);return i(),L}Zt(["click"]),le(Eo,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"});function Mo(e,t){oe(t,!0);let r=m(t,"onNavItemClick",7),n=m(t,"showAppIcons",7,!0),i=m(t,"hideDiscover",7,!0),o=m(t,"apiUrl",7),l=m(t,"chatUrl",7),s=m(t,"consoleUrl",7),a=m(t,"discoverUrl",7),u=m(t,"controlledSelectedItem",7);var c={get onNavItemClick(){return r()},set onNavItemClick(h){r(h),b()},get showAppIcons(){return n()},set showAppIcons(h=!0){n(h),b()},get hideDiscover(){return i()},set hideDiscover(h=!0){i(h),b()},get apiUrl(){return o()},set apiUrl(h){o(h),b()},get chatUrl(){return l()},set chatUrl(h){l(h),b()},get consoleUrl(){return s()},set consoleUrl(h){s(h),b()},get discoverUrl(){return a()},set discoverUrl(h){a(h),b()},get controlledSelectedItem(){return u()},set controlledSelectedItem(h){u(h),b()}};return Eo(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return l()},get consoleUrl(){return s()},get discoverUrl(){return a()},get controlledSelectedItem(){return u()}}),ae(c)}customElements.define("graymatter-mobile-bottom-nav",le(Mo,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},controlledSelectedItem:{}},[],[],{mode:"open"}));var yl=te('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),xl=te('<a part="logo-link" class="logo-link svelte-otdehu"><!></a>'),Cl=te('<div class="subnav-section svelte-otdehu" part="subnav-section"><!></div>'),Sl=te('<div class="no-subnav-message svelte-otdehu" part="no-subnav-message"><p class="svelte-otdehu">Select a section from the bottom navigation</p></div>'),El=te('<!> <div part="mobile-side-menu"><div class="menu-header svelte-otdehu" part="menu-header"><button class="close-button svelte-otdehu" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-otdehu" part="logo-container"><!></div></div> <div class="menu-content svelte-otdehu" part="menu-content"><!></div></div>',1);const Ml={hash:"svelte-otdehu",code:".no-subnav-message.svelte-otdehu {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-otdehu p:where(.svelte-otdehu) {margin:0;}.mobile-side-menu.svelte-otdehu {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-otdehu {transform:translateX(0);}.menu-header.svelte-otdehu {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-otdehu .logo-container:where(.svelte-otdehu) {display:flex;}.logo-link.svelte-otdehu {display:flex;}.close-button.svelte-otdehu {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-otdehu:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-otdehu {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-otdehu {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Io(e,t){oe(t,!0),xt(e,Ml);const r=()=>Je(Qe,"$isExpanded",i),n=()=>Je(Ut,"$selectedItem",i),[i,o]=tr();let l=ee(null),s=null,a=m(t,"logoLinkUrl",7),u=m(t,"logoLinkLabel",7),c=m(t,"children",7);function h(D){if(s=D.detail.hash,d(),s){const z=document.getElementById(s);if(z){const A=document.getElementById("main-content-mobile"),J=A?A.querySelector(`[id="${s}"]`):null;if(J&&A){const W=J.getBoundingClientRect(),ne=A.getBoundingClientRect(),de=A.scrollTop+W.top-ne.top;A.scrollTo({top:de,behavior:"auto"}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:J.textContent?.trim(),id:J.id}}))},100)}else{let W=z.parentElement;for(;W&&W!==document.body;){const ne=window.getComputedStyle(W);if(ne.overflowY==="auto"||ne.overflowY==="scroll")break;W=W.parentElement}W&&W!==document.body?document.getElementById("main-content")?(z.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:z.textContent?.trim(),id:z.id}}))},100)):z.scrollIntoView({behavior:"auto",block:"start"}):z.scrollIntoView({behavior:"auto",block:"start"})}}s=null}}Bt(()=>{if(typeof window>"u")return;window.addEventListener("mobileAnchorNavigate",h);const D=()=>{d()};window.addEventListener("closeMobileMenu",D);const Z=A=>{const J=A,{isMobile:W}=J.detail;W&&ke.setExpanded(!1)};window.addEventListener("layoutTransition",Z);const z=A=>{const J=document.activeElement;A.key==="Escape"&&r()&&!(J&&J.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",z),()=>{window.removeEventListener("mobileAnchorNavigate",h),window.removeEventListener("closeMobileMenu",D),window.removeEventListener("layoutTransition",Z),window.removeEventListener("keydown",z)}});function d(){ke.setExpanded(!1)}var f={get logoLinkUrl(){return a()},set logoLinkUrl(D){a(D),b()},get logoLinkLabel(){return u()},set logoLinkLabel(D){u(D),b()},get children(){return c()},set children(D){c(D),b()}},g=El(),x=Nt(g);{var p=D=>{var Z=yl();ce("click",Z,d),ce("keydown",Z,z=>{(z.key==="Enter"||z.key===" ")&&d()}),T(D,Z)};re(x,D=>{r()&&D(p)})}var _=he(x,2);let C;var I=M(_),N=M(I),L=M(N);jr(L,{isOpen:!0}),E(N);var w=he(N,2),S=M(w);{var O=D=>{var Z=xl(),z=M(Z);Wt(z,{width:75,height:22}),E(Z),we(()=>{Y(Z,"href",a()),Y(Z,"aria-label",u())}),T(D,Z)},U=D=>{Wt(D,{width:75,height:22})};re(S,D=>{a()?D(O):D(U,-1)})}E(w),E(I);var y=he(I,2),R=M(y);{var F=D=>{var Z=Cl(),z=M(Z);Or(z,()=>c()??$e),E(Z),T(D,Z)},ye=D=>{var Z=Sl();T(D,Z)};re(R,D=>{n()&&n()!=="discover"?D(F):D(ye,-1)})}E(y),E(_),Ct(_,D=>q(l,D),()=>v(l)),we(()=>C=Se(_,1,"mobile-side-menu svelte-otdehu",null,C,{open:r()})),ce("click",N,d),T(e,g);var Ee=ae(f);return o(),Ee}Zt(["click","keydown"]),le(Io,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"});function Lo(e,t){oe(t,!0);let r=m(t,"logoLinkUrl",7),n=m(t,"logoLinkLabel",7),i=m(t,"children",7);var o={get logoLinkUrl(){return r()},set logoLinkUrl(l){r(l),b()},get logoLinkLabel(){return n()},set logoLinkLabel(l){n(l),b()},get children(){return i()},set children(l){i(l),b()}};return Io(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},get children(){return i()}}),ae(o)}customElements.define("graymatter-mobile-side-menu",le(Lo,{logoLinkUrl:{},logoLinkLabel:{},children:{}},[],[],{mode:"open"}));var Il=te('<a class="display-flex"><!></a>'),Ll=te('<a title="Help" aria-label="Help"><span class="icon-container svelte-1iraudq"><!></span></a>'),zl=te('<nav class="mobile-top-nav svelte-1iraudq" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1iraudq"><!> <span class="brand-text svelte-1iraudq"> </span></div> <!> <!></nav>');const Nl={hash:"svelte-1iraudq",code:`.menu-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-1iraudq:disabled,
74
74
  .menu-button.disabled.svelte-1iraudq {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-1iraudq .menu-button:where(.svelte-1iraudq) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1iraudq:hover {background-color:var(--ai-color-neutral-100);}
75
75
 
76
76
  /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1iraudq .menu-button.disabled:where(.svelte-1iraudq),
77
77
  .mobile-top-nav.svelte-1iraudq .menu-button:where(.svelte-1iraudq):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1iraudq {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1iraudq {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-1iraudq {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-1iraudq {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1iraudq:focus {outline:none;}.help-button.svelte-1iraudq:focus {outline:none;}.help-button.svelte-1iraudq:focus .icon-container:where(.svelte-1iraudq) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.help-button.svelte-1iraudq:focus:not(:focus-visible) .icon-container:where(.svelte-1iraudq) {outline:none;}.help-button.svelte-1iraudq {display:flex;align-items:center;justify-content:center;margin-right:var(--ai-size-4);text-decoration:none;color:inherit;}.help-button.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {display:flex;align-items:center;justify-content:center;width:var(--ai-size-40);height:var(--ai-size-40);border-radius:var(--ai-size-4);transition:background-color var(--ai-transition-ease-fast);}.help-button.svelte-1iraudq:hover .icon-container:where(.svelte-1iraudq),
78
- .help-button.selected.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {background-color:var(--ai-color-steel-300);}`};function Ta(e,t){ve(t,!0),Xt(e,Ou);const r=()=>ft(dr,"$selectedSubNavItemTitle",i),n=()=>ft($i,"$isMenuButtonDisabled",i),[i,o]=Or();let s=w(t,"profileMenuData",7),l=w(t,"logoLinkUrl",7),a=w(t,"logoLinkLabel",7),u=w(t,"supplementalMenuData",7);const d=Y(()=>()=>{var I,T,O;return(O=(T=(I=u())==null?void 0:I.help)==null?void 0:T.url)==null?void 0:O.trim()});function h(I,T){try{return new URL(I,T).pathname}catch{return null}}function c(){const I=g(d)();if(!I||I==="#"||I.startsWith("#"))return!1;const T=globalThis.location;if(T!=null&&T.origin&&(T!=null&&T.pathname)){const O=h(I,T.origin);return O!==null&&T.pathname===O}return!1}const v=Y(()=>()=>c());Sr(()=>{if(typeof window>"u")return;const I=ie=>{const de=ie;de.detail&&de.detail.title&&(dr.set(de.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(de.detail.title)))},T=()=>{const ie=document.getElementById("main-content");if(!ie)return;const de=ie.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(de&&de.textContent){const qt=de.textContent.trim();r()||(dr.set(qt),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(qt)))}};window.addEventListener("sectionVisible",I);const O=sessionStorage.getItem("subNav-selectedTitle");(!O||O==='""'||O==="null")&&setTimeout(()=>{T()},100);const B=()=>{g(v)()};return window.addEventListener("popstate",B),()=>{window.removeEventListener("sectionVisible",I),window.removeEventListener("popstate",B)}});function b(){Ae.toggleExpanded()}function x(I){var T;(g(d)()==="#"||(T=g(d)())!=null&&T.startsWith("#"))&&I.preventDefault()}var p={get profileMenuData(){return s()},set profileMenuData(I){s(I),m()},get logoLinkUrl(){return l()},set logoLinkUrl(I){l(I),m()},get logoLinkLabel(){return a()},set logoLinkLabel(I){a(I),m()},get supplementalMenuData(){return u()},set supplementalMenuData(I){u(I),m()}},_=qu(),M=L(_);let S;var $=L(M);Tn($,{}),E(M);var z=Ee(M,2),y=L(z);{var N=I=>{var T=Uu(),O=L(T);Lr(O,{width:75,height:22}),E(T),$e(()=>{te(T,"href",l()),te(T,"aria-label",a())}),A(I,T)},U=I=>{Lr(I,{width:75,height:22})};ue(y,I=>{l()?I(N):I(U,-1)})}var R=Ee(y,2),C=L(R,!0);E(R),E(z);var q=Ee(z,2);{var K=I=>{var T=Hu();let O;var B=L(T),ie=L(B);{let de=Y(()=>g(v)());Oi(ie,{get isSelected(){return g(de)}})}E(B),E(T),$e((de,qt,Re)=>{O=He(T,1,"help-button svelte-1iraudq",null,O,de),te(T,"aria-current",qt),te(T,"href",Re)},[()=>({selected:g(v)()}),()=>g(v)()?"page":void 0,()=>g(d)()]),ke("click",T,x),A(I,T)},ce=Y(()=>g(d)());ue(q,I=>{g(ce)&&I(K)})}var we=Ee(q,2);{var D=I=>{{let T=Y(()=>{var B;return(B=s())==null?void 0:B.userMeta}),O=Y(()=>{var B;return(B=s())==null?void 0:B.menuItems});qi(I,{get userMeta(){return g(T)},get menuItems(){return g(O)},ariaLabel:"Open profile menu",menuAlign:"mobile"})}};ue(we,I=>{s()&&I(D)})}E(_),$e(()=>{S=He(M,1,"menu-button svelte-1iraudq",null,S,{disabled:n()}),M.disabled=n(),Zr(C,r()||"")}),ke("click",M,b),A(e,_);var ee=he(p);return o(),ee}Mr(["click"]),me(Ta,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"});function $a(e,t){ve(t,!0);let r=w(t,"profileMenuData",7),n=w(t,"logoLinkUrl",7),i=w(t,"logoLinkLabel",7),o=w(t,"supplementalMenuData",7);var s={get profileMenuData(){return r()},set profileMenuData(l){r(l),m()},get logoLinkUrl(){return n()},set logoLinkUrl(l){n(l),m()},get logoLinkLabel(){return i()},set logoLinkLabel(l){i(l),m()},get supplementalMenuData(){return o()},set supplementalMenuData(l){o(l),m()}};return Ta(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return o()}}),he(s)}customElements.define("graymatter-mobile-top-nav",me($a,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"}));function Qr(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Vu(){Qr("toggle")}function Pu(){Qr("open")}function ju(){Qr("close")}function Ru(e){Qr("set",e)}V.Button=wa,V.DesktopHeader=Ca,V.DesktopSideNav=Ea,V.Logo=Ma,V.MobileBottomNav=La,V.MobileSideMenu=Na,V.MobileTopNav=$a,V.closeNavigation=ju,V.controlDesktopNavigation=Qr,V.openNavigation=Pu,V.setNavigationState=Ru,V.toggleNavigation=Vu,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
78
+ .help-button.selected.svelte-1iraudq .icon-container:where(.svelte-1iraudq) {background-color:var(--ai-color-steel-300);}`};function zo(e,t){oe(t,!0),xt(e,Nl);const r=()=>Je(At,"$selectedSubNavItemTitle",i),n=()=>Je(Un,"$isMenuButtonDisabled",i),[i,o]=tr();let l=m(t,"profileMenuData",7),s=m(t,"logoLinkUrl",7),a=m(t,"logoLinkLabel",7),u=m(t,"supplementalMenuData",7);const c=H(()=>()=>u()?.help?.url?.trim());function h(z,A){try{return new URL(z,A).pathname}catch{return null}}function d(){const z=v(c)();if(!z||z==="#"||z.startsWith("#"))return!1;const A=globalThis.location;if(A?.origin&&A?.pathname){const J=h(z,A.origin);return J!==null&&A.pathname===J}return!1}const f=H(()=>()=>d());Bt(()=>{if(typeof window>"u")return;const z=ne=>{const de=ne;de.detail&&de.detail.title&&(At.set(de.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(de.detail.title)))},A=()=>{const ne=document.getElementById("main-content");if(!ne)return;const de=ne.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(de&&de.textContent){const Jt=de.textContent.trim();r()||(At.set(Jt),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(Jt)))}};window.addEventListener("sectionVisible",z);const J=sessionStorage.getItem("subNav-selectedTitle");(!J||J==='""'||J==="null")&&setTimeout(()=>{A()},100);const W=()=>{v(f)()};return window.addEventListener("popstate",W),()=>{window.removeEventListener("sectionVisible",z),window.removeEventListener("popstate",W)}});function g(){ke.toggleExpanded()}function x(z){(v(c)()==="#"||v(c)()?.startsWith("#"))&&z.preventDefault()}var p={get profileMenuData(){return l()},set profileMenuData(z){l(z),b()},get logoLinkUrl(){return s()},set logoLinkUrl(z){s(z),b()},get logoLinkLabel(){return a()},set logoLinkLabel(z){a(z),b()},get supplementalMenuData(){return u()},set supplementalMenuData(z){u(z),b()}},_=zl(),C=M(_);let I;var N=M(C);jr(N,{}),E(C);var L=he(C,2),w=M(L);{var S=z=>{var A=Il(),J=M(A);Wt(J,{width:75,height:22}),E(A),we(()=>{Y(A,"href",s()),Y(A,"aria-label",a())}),T(z,A)},O=z=>{Wt(z,{width:75,height:22})};re(w,z=>{s()?z(S):z(O,-1)})}var U=he(w,2),y=M(U,!0);E(U),E(L);var R=he(L,2);{var F=z=>{var A=Ll();let J;var W=M(A),ne=M(W);{let de=H(()=>v(f)());jn(ne,{get isSelected(){return v(de)}})}E(W),E(A),we((de,Jt,Ne)=>{J=Se(A,1,"help-button svelte-1iraudq",null,J,de),Y(A,"aria-current",Jt),Y(A,"href",Ne)},[()=>({selected:v(f)()}),()=>v(f)()?"page":void 0,()=>v(c)()]),ce("click",A,x),T(z,A)},ye=H(()=>v(c)());re(R,z=>{v(ye)&&z(F)})}var Ee=he(R,2);{var D=z=>{{let A=H(()=>l()?.userMeta),J=H(()=>l()?.menuItems);Pn(z,{get userMeta(){return v(A)},get menuItems(){return v(J)},ariaLabel:"Open profile menu",menuAlign:"mobile"})}};re(Ee,z=>{l()&&z(D)})}E(_),we(()=>{I=Se(C,1,"menu-button svelte-1iraudq",null,I,{disabled:n()}),C.disabled=n(),ur(y,r()||"")}),ce("click",C,g),T(e,_);var Z=ae(p);return o(),Z}Zt(["click"]),le(zo,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"});function No(e,t){oe(t,!0);let r=m(t,"profileMenuData",7),n=m(t,"logoLinkUrl",7),i=m(t,"logoLinkLabel",7),o=m(t,"supplementalMenuData",7);var l={get profileMenuData(){return r()},set profileMenuData(s){r(s),b()},get logoLinkUrl(){return n()},set logoLinkUrl(s){n(s),b()},get logoLinkLabel(){return i()},set logoLinkLabel(s){i(s),b()},get supplementalMenuData(){return o()},set supplementalMenuData(s){o(s),b()}};return zo(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return o()}}),ae(l)}customElements.define("graymatter-mobile-top-nav",le(No,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],{mode:"open"}));function gr(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function Tl(){gr("toggle")}function $l(){gr("open")}function Dl(){gr("close")}function Al(e){gr("set",e)}me.Button=bo,me.DesktopHeader=yo,me.DesktopSideNav=Co,me.Logo=So,me.MobileBottomNav=Mo,me.MobileSideMenu=Lo,me.MobileTopNav=No,me.closeNavigation=Dl,me.controlDesktopNavigation=gr,me.openNavigation=$l,me.setNavigationState=Al,me.toggleNavigation=Tl,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})}));