@gsa-tts/graymatter-ui 0.1.0 → 0.2.1

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.
@@ -0,0 +1,40 @@
1
+ (function(z,j){typeof exports=="object"&&typeof module<"u"?j(exports):typeof define=="function"&&define.amd?define(["exports"],j):(z=typeof globalThis<"u"?globalThis:z||self,j(z.graymatter={}))})(this,function(z){"use strict";var ol=Object.defineProperty;var Xi=z=>{throw TypeError(z)};var al=(z,j,J)=>j in z?ol(z,j,{enumerable:!0,configurable:!0,writable:!0,value:J}):z[j]=J;var le=(z,j,J)=>al(z,typeof j!="symbol"?j+"":j,J),Qi=(z,j,J)=>j.has(z)||Xi("Cannot "+J);var ne=(z,j,J)=>(Qi(z,j,"read from private field"),J?J.call(z):j.get(z)),Qr=(z,j,J)=>j.has(z)?Xi("Cannot add the same private member more than once"):j instanceof WeakSet?j.add(z):j.set(z,J),en=(z,j,J,jt)=>(Qi(z,j,"write to private field"),jt?jt.call(z,J):j.set(z,J),J);var Mi,Re,ge;const j="5";typeof window<"u"&&((Mi=window.__svelte??(window.__svelte={})).v??(Mi.v=new Set)).add(j);const J=1,jt=2,eo=16,to=1,ro=2,tn=4,no=8,io=16,rn=1,oo=2,dr="[",fr="[!",vr="]",ot={},re=Symbol(),ao="http://www.w3.org/1999/xhtml",so="@attach",nn=!1;var Dt=Array.isArray,lo=Array.prototype.indexOf,hr=Array.from,Ht=Object.keys,wt=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,on=Object.getOwnPropertyDescriptors,uo=Object.prototype,co=Array.prototype,br=Object.getPrototypeOf,an=Object.isExtensible;function _t(e){return typeof e=="function"}const ue=()=>{};function fo(e){return e()}function kt(e){for(var t=0;t<e.length;t++)e[t]()}const ce=2,pr=4,yt=8,gr=16,Oe=32,Xe=64,mr=128,ie=256,Vt=512,oe=1024,qe=2048,Fe=4096,Pe=8192,wr=16384,sn=32768,xt=65536,ln=1<<17,vo=1<<18,un=1<<19,_r=1<<20,kr=1<<21,Ce=Symbol("$state"),yr=Symbol("legacy props"),ho=Symbol(""),cn=new class extends Error{constructor(){super(...arguments);le(this,"name","StaleReactionError");le(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},dn=3,Et=8;function fn(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function hn(e){return!vn(e,this.v)}function bo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function po(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function go(e){throw new Error("https://svelte.dev/e/effect_orphan")}function mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function wo(){throw new Error("https://svelte.dev/e/hydration_failed")}function _o(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function ko(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function yo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function xo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let at=!1,Eo=!1;function Co(){at=!0}function So(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let D=null;function bn(e){D=e}function Y(e,t=!1,r){var n=D={p:D,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};at&&!t&&(D.l={s:null,u:null,r1:[],r2:ut(!1)}),Yt(()=>{n.d=!0})}function Z(e){const t=D;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=O,n=U;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];Ze(o.effect),Ne(o.reaction),Tn(o.fn)}}finally{Ze(r),Ne(n)}}D=t.p,t.m=!0}return e||{}}function Rt(){return!at||D!==null&&D.l===null}function st(e){if(typeof e!="object"||e===null||Ce in e)return e;const t=br(e);if(t!==uo&&t!==co)return e;var r=new Map,n=Dt(e),i=we(0),o=U,s=a=>{var l=U;Ne(o);var u=a();return Ne(l),u};return n&&r.set("length",we(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ko();var d=r.get(l);return d===void 0?d=s(()=>{var f=we(u.value);return r.set(l,f),f}):q(d,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>we(re));r.set(l,c),xr(i)}}else{if(n&&typeof l=="string"){var d=r.get("length"),f=Number(l);Number.isInteger(f)&&f<d.v&&q(d,f)}q(u,re),xr(i)}return!0},get(a,l,u){var v;if(l===Ce)return e;var d=r.get(l),f=l in a;if(d===void 0&&(!f||(v=Ae(a,l))!=null&&v.writable)&&(d=s(()=>{var b=st(f?a[l]:re),g=we(b);return g}),r.set(l,d)),d!==void 0){var c=E(d);return c===re?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var d=r.get(l);d&&(u.value=E(d))}else if(u===void 0){var f=r.get(l),c=f==null?void 0:f.v;if(f!==void 0&&c!==re)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===Ce)return!0;var u=r.get(l),d=u!==void 0&&u.v!==re||Reflect.has(a,l);if(u!==void 0||O!==null&&(!d||(c=Ae(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=d?st(a[l]):re,b=we(v);return b}),r.set(l,u));var f=E(u);if(f===re)return!1}return d},set(a,l,u,d){var p;var f=r.get(l),c=l in a;if(n&&l==="length")for(var v=u;v<f.v;v+=1){var b=r.get(v+"");b!==void 0?q(b,re):v in a&&(b=s(()=>we(re)),r.set(v+"",b))}if(f===void 0)(!c||(p=Ae(a,l))!=null&&p.writable)&&(f=s(()=>we(void 0)),q(f,st(u)),r.set(l,f));else{c=f.v!==re;var g=s(()=>st(u));q(f,g)}var y=Reflect.getOwnPropertyDescriptor(a,l);if(y!=null&&y.set&&y.set.call(d,u),!c){if(n&&typeof l=="string"){var m=r.get("length"),h=Number(l);Number.isInteger(h)&&h>=m.v&&q(m,h+1)}xr(i)}return!0},ownKeys(a){E(i);var l=Reflect.ownKeys(a).filter(f=>{var c=r.get(f);return c===void 0||c.v!==re});for(var[u,d]of r)d.v!==re&&!(u in a)&&l.push(u);return l},setPrototypeOf(){yo()}})}function xr(e,t=1){q(e,e.v+t)}function pn(e){try{if(e!==null&&typeof e=="object"&&Ce in e)return e[Ce]}catch{}return e}function $o(e,t){return Object.is(pn(e),pn(t))}function lt(e){var t=ce|qe,r=U!==null&&(U.f&ce)!==0?U:null;return O===null||r!==null&&(r.f&ie)!==0?t|=ie:O.f|=un,{ctx:D,deps:null,effects:null,equals:fn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??O,ac:null}}function G(e){const t=lt(e);return jn(t),t}function Bt(e){const t=lt(e);return t.equals=hn,t}function gn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)ae(t[r])}}function No(e){for(var t=e.parent;t!==null;){if((t.f&ce)===0)return t;t=t.parent}return null}function mn(e){var t,r=O;Ze(No(e));try{gn(e),t=Vn(e)}finally{Ze(r)}return t}function wn(e){var t=mn(e);if(e.equals(t)||(e.v=t,e.wv=Dn()),!vt){var r=(Je||(e.f&ie)!==0)&&e.deps!==null?Fe:oe;ye(e,r)}}const Ct=new Map;function ut(e,t){var r={f:0,v:e,reactions:null,equals:fn,rv:0,wv:0};return r}function we(e,t){const r=ut(e);return jn(r),r}function St(e,t=!1,r=!0){var i;const n=ut(e);return t||(n.equals=hn),at&&r&&D!==null&&D.l!==null&&((i=D.l).s??(i.s=[])).push(n),n}function q(e,t,r=!1){U!==null&&(!$e||(U.f&ln)!==0)&&Rt()&&(U.f&(ce|gr|ln))!==0&&!((R==null?void 0:R.reaction)===U&&R.sources.includes(e))&&xo();let n=r?st(t):t;return _n(e,n)}function _n(e,t){if(!e.equals(t)){var r=e.v;vt?Ct.set(e,t):Ct.set(e,r),e.v=t,(e.f&ce)!==0&&((e.f&qe)!==0&&mn(e),ye(e,(e.f&ie)===0?oe:Fe)),e.wv=Dn(),yn(e,qe),Rt()&&O!==null&&(O.f&oe)!==0&&(O.f&(Oe|Xe))===0&&(fe===null?Ho([e]):fe.push(e))}return t}function kn(e,t=1){var r=E(e),n=t===1?r++:r--;return q(e,r),n}function yn(e,t){var r=e.reactions;if(r!==null)for(var n=Rt(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&qe)===0&&(!n&&s===O||(ye(s,t),(a&(oe|ie))!==0&&((a&ce)!==0?yn(s,Fe):er(s))))}}function Ft(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Io(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let M=!1;function _e(e){M=e}let A;function ke(e){if(e===null)throw Ft(),ot;return A=e}function ct(){return ke(je(A))}function C(e){if(M){if(je(A)!==null)throw Ft(),ot;A=e}}function Se(e=1){if(M){for(var t=e,r=A;t--;)r=je(r);A=r}}function Er(){for(var e=0,t=A;;){if(t.nodeType===Et){var r=t.data;if(r===vr){if(e===0)return t;e-=1}else(r===dr||r===fr)&&(e+=1)}var n=je(t);t.remove(),t=n}}function xn(e){if(!e||e.nodeType!==Et)throw Ft(),ot;return e.data}var En,Cn,Sn,$n;function Cr(){if(En===void 0){En=window,Cn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Sn=Ae(t,"firstChild").get,$n=Ae(t,"nextSibling").get,an(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),an(r)&&(r.__t=void 0)}}function dt(e=""){return document.createTextNode(e)}function de(e){return Sn.call(e)}function je(e){return $n.call(e)}function S(e,t){if(!M)return de(e);var r=de(A);if(r===null)r=A.appendChild(dt());else if(t&&r.nodeType!==dn){var n=dt();return r==null||r.before(n),ke(n),n}return ke(r),r}function Ye(e,t){if(!M){var r=de(e);return r instanceof Comment&&r.data===""?je(r):r}return A}function X(e,t=1,r=!1){let n=M?A:e;for(var i;t--;)i=n,n=je(n);if(!M)return n;if(r&&(n==null?void 0:n.nodeType)!==dn){var o=dt();return n===null?i==null||i.after(o):n.before(o),ke(o),o}return ke(n),n}function Nn(e){e.textContent=""}function In(e){O===null&&U===null&&go(),U!==null&&(U.f&ie)!==0&&O===null&&po(),vt&&bo()}function To(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function De(e,t,r,n=!0){var i=O,o={ctx:D,deps:null,nodes_start:null,nodes_end:null,f:e|qe,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(r)try{Qt(o),o.f|=sn}catch(l){throw ae(o),l}else t!==null&&er(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(un|mr))===0;if(!s&&n&&(i!==null&&To(o,i),U!==null&&(U.f&ce)!==0)){var a=U;(a.effects??(a.effects=[])).push(o)}return o}function Yt(e){const t=De(yt,null,!1);return ye(t,oe),t.teardown=e,t}function Sr(e){In();var t=O!==null&&(O.f&Oe)!==0&&D!==null&&!D.m;if(t){var r=D;(r.e??(r.e=[])).push({fn:e,effect:O,reaction:U})}else return Tn(e)}function Tn(e){return De(pr|kr,e,!1)}function zo(e){return In(),De(yt|kr,e,!0)}function Mo(e){const t=De(Xe,e,!0);return()=>{ae(t)}}function Lo(e){const t=De(Xe,e,!0);return(r={})=>new Promise(n=>{r.outro?$t(t,()=>{ae(t),n(void 0)}):(ae(t),n(void 0))})}function $r(e){return De(pr,e,!1)}function Uo(e,t){var r=D,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=Zt(()=>{e(),!n.ran&&(n.ran=!0,q(r.l.r2,!0),ht(t))})}function Ao(){var e=D;Zt(()=>{if(E(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&oe)!==0&&ye(r,Fe),Mt(r)&&Qt(r),t.ran=!1}e.l.r2.v=!1}})}function Zt(e){return De(yt,e,!0)}function ft(e,t=[],r=lt){const n=t.map(r);return Qe(()=>e(...n.map(E)))}function Qe(e,t=0){var r=De(yt|gr|t,e,!0);return r}function He(e,t=!0){return De(yt|Oe,e,!0,t)}function zn(e){var t=e.teardown;if(t!==null){const r=vt,n=U;Pn(!0),Ne(null);try{t.call(null)}finally{Pn(r),Ne(n)}}}function Mn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(cn);var n=r.next;(r.f&Xe)!==0?r.parent=null:ae(r,t),r=n}}function Oo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Oe)===0&&ae(t),t=r}}function ae(e,t=!0){var r=!1;(t||(e.f&vo)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(qo(e.nodes_start,e.nodes_end),r=!0),Mn(e,t&&!r),Xt(e,0),ye(e,wr);var n=e.transitions;if(n!==null)for(const o of n)o.stop();zn(e);var i=e.parent;i!==null&&i.first!==null&&Ln(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function qo(e,t){for(;e!==null;){var r=e===t?null:je(e);e.remove(),e=r}}function Ln(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 $t(e,t){var r=[];Nr(e,r,!0),Un(r,()=>{ae(e),t&&t()})}function Un(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Nr(e,t,r){if((e.f&Pe)===0){if(e.f^=Pe,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,o=(n.f&xt)!==0||(n.f&Oe)!==0;Nr(n,t,o?r:!1),n=i}}}function Jt(e){An(e,!0)}function An(e,t){if((e.f&Pe)!==0){e.f^=Pe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&xt)!==0||(r.f&Oe)!==0;An(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Nt=[],Ir=[];function On(){var e=Nt;Nt=[],kt(e)}function Po(){var e=Ir;Ir=[],kt(e)}function Wt(e){Nt.length===0&&queueMicrotask(On),Nt.push(e)}function jo(){Nt.length>0&&On(),Ir.length>0&&Po()}function Do(e){var t=O;if((t.f&sn)===0){if((t.f&mr)===0)throw e;t.fn(e)}else qn(e,t)}function qn(e,t){for(;t!==null;){if((t.f&mr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let It=!1,Tt=null,et=!1,vt=!1;function Pn(e){vt=e}let zt=[],sl=[],U=null,$e=!1;function Ne(e){U=e}let O=null;function Ze(e){O=e}let R=null;function jn(e){U!==null&&U.f&_r&&(R===null?R={reaction:U,sources:[e]}:R.sources.push(e))}let Q=null,se=0,fe=null;function Ho(e){fe=e}let Kt=1,Gt=0,Je=!1;function Dn(){return++Kt}function Mt(e){var f;var t=e.f;if((t&qe)!==0)return!0;if((t&Fe)!==0){var r=e.deps,n=(t&ie)!==0;if(r!==null){var i,o,s=(t&Vt)!==0,a=n&&O!==null&&!Je,l=r.length;if(s||a){var u=e,d=u.parent;for(i=0;i<l;i++)o=r[i],(s||!((f=o==null?void 0:o.reactions)!=null&&f.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);s&&(u.f^=Vt),a&&d!==null&&(d.f&ie)===0&&(u.f^=ie)}for(i=0;i<l;i++)if(o=r[i],Mt(o)&&wn(o),o.wv>e.wv)return!0}(!n||O!==null&&!Je)&&ye(e,oe)}return!1}function Hn(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(R==null?void 0:R.reaction)===U&&R.sources.includes(e)||((o.f&ce)!==0?Hn(o,t,!1):t===o&&(r?ye(o,qe):(o.f&oe)!==0&&ye(o,Fe),er(o)))}}function Vn(e){var v;var t=Q,r=se,n=fe,i=U,o=Je,s=R,a=D,l=$e,u=e.f;Q=null,se=0,fe=null,Je=(u&ie)!==0&&($e||!et||U===null),U=(u&(Oe|Xe))===0?e:null,R=null,bn(e.ctx),$e=!1,Gt++,e.f|=_r,e.ac!==null&&(e.ac.abort(cn),e.ac=null);try{var d=(0,e.fn)(),f=e.deps;if(Q!==null){var c;if(Xt(e,se),f!==null&&se>0)for(f.length=se+Q.length,c=0;c<Q.length;c++)f[se+c]=Q[c];else e.deps=f=Q;if(!Je||(u&ce)!==0&&e.reactions!==null)for(c=se;c<f.length;c++)((v=f[c]).reactions??(v.reactions=[])).push(e)}else f!==null&&se<f.length&&(Xt(e,se),f.length=se);if(Rt()&&fe!==null&&!$e&&f!==null&&(e.f&(ce|Fe|qe))===0)for(c=0;c<fe.length;c++)Hn(fe[c],e);return i!==null&&i!==e&&(Gt++,fe!==null&&(n===null?n=fe:n.push(...fe))),d}catch(b){Do(b)}finally{Q=t,se=r,fe=n,U=i,Je=o,R=s,bn(a),$e=l,e.f^=_r}}function Vo(e,t){let r=t.reactions;if(r!==null){var n=lo.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&(t.f&ce)!==0&&(Q===null||!Q.includes(t))&&(ye(t,Fe),(t.f&(ie|Vt))===0&&(t.f^=Vt),gn(t),Xt(t,0))}function Xt(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Vo(e,r[n])}function Qt(e){var t=e.f;if((t&wr)===0){ye(e,oe);var r=O,n=et;O=e,et=!0;try{(t&gr)!==0?Oo(e):Mn(e),zn(e);var i=Vn(e);e.teardown=typeof i=="function"?i:null,e.wv=Kt;var o;nn&&Eo&&(e.f&qe)!==0&&e.deps}finally{et=n,O=r}}}function Ro(){try{mo()}catch(e){if(Tt!==null)qn(e,Tt);else throw e}}function Rn(){var e=et;try{var t=0;for(et=!0;zt.length>0;){t++>1e3&&Ro();var r=zt,n=r.length;zt=[];for(var i=0;i<n;i++){var o=Fo(r[i]);Bo(o)}Ct.clear()}}finally{It=!1,et=e,Tt=null}}function Bo(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(wr|Pe))===0&&Mt(n)){var i=Kt;if(Qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Ln(n):n.fn=null),Kt>i&&(n.f&kr)!==0)break}}for(;r<t;r+=1)er(e[r])}}function er(e){It||(It=!0,queueMicrotask(Rn));for(var t=Tt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(Xe|Oe))!==0){if((r&oe)===0)return;t.f^=oe}}zt.push(t)}function Fo(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Oe|Xe))!==0,o=i&&(n&oe)!==0;if(!o&&(n&Pe)===0){(n&pr)!==0?t.push(r):i?r.f^=oe:Mt(r)&&Qt(r);var s=r.first;if(s!==null){r=s;continue}}var a=r.parent;for(r=r.next;r===null&&a!==null;)r=a.next,a=a.parent}return t}function _(e){for(var t;;){if(jo(),zt.length===0)return It=!1,Tt=null,t;It=!0,Rn()}}function E(e){var t=e.f,r=(t&ce)!==0;if(U!==null&&!$e){if((R==null?void 0:R.reaction)!==U||!(R!=null&&R.sources.includes(e))){var n=U.deps;e.rv<Gt&&(e.rv=Gt,Q===null&&n!==null&&n[se]===e?se++:Q===null?Q=[e]:(!Je||!Q.includes(e))&&Q.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&ie)===0&&(i.f^=ie)}return r&&(i=e,Mt(i)&&wn(i)),vt&&Ct.has(e)?Ct.get(e):e.v}function ht(e){var t=$e;try{return $e=!0,e()}finally{$e=t}}const Yo=-7169;function ye(e,t){e.f=e.f&Yo|t}function Bn(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Ce in e)Tr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Ce in r&&Tr(r)}}}function Tr(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Tr(e[n],t)}catch{}const r=br(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=on(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function Zo(e,t){if(t){const r=document.body;e.autofocus=!0,Wt(()=>{document.activeElement===r&&e.focus()})}}function Jo(e){var t=U,r=O;Ne(null),Ze(null);try{return e()}finally{Ne(t),Ze(r)}}const Fn=new Set,zr=new Set;function Yn(e,t,r,n={}){function i(o){if(n.capture||Lt.call(t,o),!o.cancelBubble)return Jo(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function W(e,t,r,n,i){var o={capture:n,passive:i},s=Yn(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yt(()=>{t.removeEventListener(e,s,o)})}function Mr(e){for(var t=0;t<e.length;t++)Fn.add(e[t]);for(var r of zr)r(e)}function Lt(e){var h;var t=this,r=t.ownerDocument,n=e.type,i=((h=e.composedPath)==null?void 0:h.call(e))||[],o=i[0]||e.target,s=0,a=e.__root;if(a){var l=i.indexOf(a);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){wt(e,"currentTarget",{configurable:!0,get(){return o||r}});var d=U,f=O;Ne(null),Ze(null);try{for(var c,v=[];o!==null;){var b=o.assignedSlot||o.parentNode||o.host||null;try{var g=o["__"+n];if(g!=null&&(!o.disabled||e.target===o))if(Dt(g)){var[y,...m]=g;y.apply(o,[e,...m])}else g.call(o,e)}catch(p){c?v.push(p):c=p}if(e.cancelBubble||b===t||b===null)break;o=b}if(c){for(let p of v)queueMicrotask(()=>{throw p});throw c}}finally{e.__root=t,delete e.currentTarget,Ne(d),Ze(f)}}}function Zn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Ve(e,t){var r=O;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ve(e,t){var r=(t&rn)!==0,n=(t&oo)!==0,i,o=!e.startsWith("<!>");return()=>{if(M)return Ve(A,null),A;i===void 0&&(i=Zn(o?e:"<!>"+e),r||(i=de(i)));var s=n||Cn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=de(s),l=s.lastChild;Ve(a,l)}else Ve(s,s);return s}}function Wo(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&rn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(M)return Ve(A,null),A;if(!s){var a=Zn(o),l=de(a);if(i)for(s=document.createDocumentFragment();de(l);)s.appendChild(de(l));else s=de(l)}var u=s.cloneNode(!0);if(i){var d=de(u),f=u.lastChild;Ve(d,f)}else Ve(u,u);return u}}function H(e,t){return Wo(e,t,"svg")}function Ut(){if(M)return Ve(A,null),A;var e=document.createDocumentFragment(),t=document.createComment(""),r=dt();return e.append(t,r),Ve(t,r),e}function I(e,t){if(M){O.nodes_end=A,ct();return}e!==null&&e.before(t)}function Ko(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Go=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xo(e){return Go.includes(e)}const Qo={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 ea(e){return e=e.toLowerCase(),Qo[e]??e}const ta=["touchstart","touchmove"];function ra(e){return ta.includes(e)}function Lr(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 Jn(e,t){return Wn(e,t)}function na(e,t){Cr(),t.intro=t.intro??!1;const r=t.target,n=M,i=A;try{for(var o=de(r);o&&(o.nodeType!==Et||o.data!==dr);)o=je(o);if(!o)throw ot;_e(!0),ke(o),ct();const s=Wn(e,{...t,anchor:o});if(A===null||A.nodeType!==Et||A.data!==vr)throw Ft(),ot;return _e(!1),s}catch(s){if(s===ot)return t.recover===!1&&wo(),Cr(),Nn(r),_e(!1),Jn(e,t);throw s}finally{_e(n),ke(i)}}const bt=new Map;function Wn(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Cr();var a=new Set,l=f=>{for(var c=0;c<f.length;c++){var v=f[c];if(!a.has(v)){a.add(v);var b=ra(v);t.addEventListener(v,Lt,{passive:b});var g=bt.get(v);g===void 0?(document.addEventListener(v,Lt,{passive:b}),bt.set(v,1)):bt.set(v,g+1)}}};l(hr(Fn)),zr.add(l);var u=void 0,d=Lo(()=>{var f=r??t.appendChild(dt());return He(()=>{if(o){Y({});var c=D;c.c=o}i&&(n.$$events=i),M&&Ve(f,null),u=e(f,n)||{},M&&(O.nodes_end=A),o&&Z()}),()=>{var b;for(var c of a){t.removeEventListener(c,Lt);var v=bt.get(c);--v===0?(document.removeEventListener(c,Lt),bt.delete(c)):bt.set(c,v)}zr.delete(l),f!==r&&((b=f.parentNode)==null||b.removeChild(f))}});return Ur.set(u,d),u}let Ur=new WeakMap;function ia(e,t){const r=Ur.get(e);return r?(Ur.delete(e),r(t)):Promise.resolve()}function Ar(e,t,...r){var n=e,i=ue,o;Qe(()=>{i!==(i=t())&&(o&&(ae(o),o=null),o=He(()=>i(n,...r)))},xt),M&&(n=A)}function tr(e){D===null&&So(),at&&D.l!==null?oa(D).m.push(e):Sr(()=>{const t=ht(e);if(typeof t=="function")return t})}function oa(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function he(e,t,[r,n]=[0,0]){M&&r===0&&ct();var i=e,o=null,s=null,a=re,l=r>0?xt:0,u=!1;const d=(c,v=!0)=>{u=!0,f(v,c)},f=(c,v)=>{if(a===(a=c))return;let b=!1;if(M&&n!==-1){if(r===0){const y=xn(i);y===dr?n=0:y===fr?n=1/0:(n=parseInt(y.substring(1)),n!==n&&(n=a?1/0:-1))}const g=n>r;!!a===g&&(i=Er(),ke(i),_e(!1),b=!0,n=-1)}a?(o?Jt(o):v&&(o=He(()=>v(i))),s&&$t(s,()=>{s=null})):(s?Jt(s):v&&(s=He(()=>v(i,[r+1,n]))),o&&$t(o,()=>{o=null})),b&&_e(!0)};Qe(()=>{u=!1,t(d),u||f(null,null)},l),M&&(i=A)}function aa(e,t){return t}function sa(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Nr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Nn(l),l.append(r),n.clear(),We(e,t[0].prev,t[o-1].next)}Un(i,()=>{for(var u=0;u<o;u++){var d=t[u];a||(n.delete(d.k),We(e,d.prev,d.next)),ae(d.e,!a)}})}function la(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null};{var l=e;s=M?ke(de(l)):l.appendChild(dt())}M&&ct();var u=null,d=!1,f=Bt(()=>{var c=r();return Dt(c)?c:c==null?[]:hr(c)});Qe(()=>{var c=E(f),v=c.length;if(d&&v===0)return;d=v===0;let b=!1;if(M){var g=xn(s)===fr;g!==(v===0)&&(s=Er(),ke(s),_e(!1),b=!0)}if(M){for(var y=null,m,h=0;h<v;h++){if(A.nodeType===Et&&A.data===vr){s=A,b=!0,_e(!1);break}var p=c[h],w=n(p,h);m=Kn(A,a,y,null,p,w,h,i,t,r),a.items.set(w,m),y=m}v>0&&ke(Er())}M||ua(c,a,s,i,t,n,r),o!==null&&(v===0?u?Jt(u):u=He(()=>o(s)):u!==null&&$t(u,()=>{u=null})),b&&_e(!0),E(f)}),M&&(s=A)}function ua(e,t,r,n,i,o,s){var a=e.length,l=t.items,u=t.first,d=u,f,c=null,v=[],b=[],g,y,m,h;for(h=0;h<a;h+=1){if(g=e[h],y=o(g,h),m=l.get(y),m===void 0){var p=d?d.e.nodes_start:r;c=Kn(p,t,c,c===null?t.first:c.next,g,y,h,n,i,s),l.set(y,c),v=[],b=[],d=c.next;continue}if(ca(m,g,h),(m.e.f&Pe)!==0&&Jt(m.e),m!==d){if(f!==void 0&&f.has(m)){if(v.length<b.length){var w=b[0],x;c=w.prev;var L=v[0],$=v[v.length-1];for(x=0;x<v.length;x+=1)Gn(v[x],w,r);for(x=0;x<b.length;x+=1)f.delete(b[x]);We(t,L.prev,$.next),We(t,c,L),We(t,$,w),d=w,c=$,h-=1,v=[],b=[]}else f.delete(m),Gn(m,d,r),We(t,m.prev,m.next),We(t,m,c===null?t.first:c.next),We(t,c,m),c=m;continue}for(v=[],b=[];d!==null&&d.k!==y;)(d.e.f&Pe)===0&&(f??(f=new Set)).add(d),b.push(d),d=d.next;if(d===null)continue;m=d}v.push(m),c=m,d=m.next}if(d!==null||f!==void 0){for(var T=f===void 0?[]:hr(f);d!==null;)(d.e.f&Pe)===0&&T.push(d),d=d.next;var P=T.length;if(P>0){var F=a===0?r:null;sa(t,T,F,l)}}O.first=t.first&&t.first.e,O.last=c&&c.e}function ca(e,t,r,n){_n(e.v,t),e.i=r}function Kn(e,t,r,n,i,o,s,a,l,u){var d=(l&J)!==0,f=(l&eo)===0,c=d?f?St(i,!1,!1):ut(i):i,v=(l&jt)===0?s:ut(s),b={i:v,v:c,k:o,a:null,e:null,prev:r,next:n};try{return b.e=He(()=>a(e,c,v,u),M),b.e.prev=r&&r.e,b.e.next=n&&n.e,r===null?t.first=b:(r.next=b,r.e.next=b.e),n!==null&&(n.prev=b,n.e.prev=b.e),b}finally{}}function Gn(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,o=e.e.nodes_start;o!==n;){var s=je(o);i.before(o),o=s}}function We(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function rr(e,t,r,n,i){var a;M&&ct();var o=(a=t.$$slots)==null?void 0:a[r],s=!1;o===!0&&(o=t.children,s=!0),o===void 0||o(e,s?()=>n:n)}function da(e,t,r){M&&ct();var n=e,i,o;Qe(()=>{i!==(i=t())&&(o&&($t(o),o=null),i&&(o=He(()=>r(n,i))))},xt),M&&(n=A)}function pt(e,t){Wt(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function fa(e,t){var r=void 0,n;Qe(()=>{r!==(r=t())&&(n&&(ae(n),n=null),r&&(n=He(()=>{$r(()=>r(e))})))})}function Xn(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=Xn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function va(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Xn(e))&&(n&&(n+=" "),n+=t);return n}function ha(e){return typeof e=="object"?va(e):e??""}const Qn=[...`
2
+ \r\f \v\uFEFF`];function ba(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var i in 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 a=s+o;(s===0||Qn.includes(n[s-1]))&&(a===n.length||Qn.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function ei(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var o=e[i];o!=null&&o!==""&&(n+=" "+i+": "+o+r)}return n}function Or(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function pa(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,a=!1,l=[];n&&l.push(...Object.keys(n).map(Or)),i&&l.push(...Object.keys(i).map(Or));var u=0,d=-1;const g=e.length;for(var f=0;f<g;f++){var c=e[f];if(a?c==="/"&&e[f-1]==="*"&&(a=!1):o?o===c&&(o=!1):c==="/"&&e[f+1]==="*"?a=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!a&&o===!1&&s===0){if(c===":"&&d===-1)d=f;else if(c===";"||f===g-1){if(d!==-1){var v=Or(e.substring(u,d).trim());if(!l.includes(v)){c!==";"&&f++;var b=e.substring(u,f).trim();r+=" "+b+";"}}u=f+1,d=-1}}}}return n&&(r+=ei(n)),i&&(r+=ei(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function be(e,t,r,n,i,o){var s=e.__className;if(M||s!==r||s===void 0){var a=ba(r,n,o);(!M||a!==e.getAttribute("class"))&&(a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=r}else if(o&&i!==o)for(var l in o){var u=!!o[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return o}function qr(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 ga(e,t,r,n){var i=e.__style;if(M||i!==t){var o=pa(t,n);(!M||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(qr(e,r==null?void 0:r[0],n[0]),qr(e,r==null?void 0:r[1],n[1],"important")):qr(e,r,n));return n}function Pr(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Dt(t))return Io();for(var n of e.options)n.selected=t.includes(ti(n));return}for(n of e.options){var i=ti(n);if($o(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function ma(e){var t=new MutationObserver(()=>{Pr(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Yt(()=>{t.disconnect()})}function ti(e){return"__value"in e?e.__value:e.value}const gt=Symbol("class"),At=Symbol("style"),ri=Symbol("is custom element"),ni=Symbol("is html");function wa(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ee(e,t,r,n){var i=ii(e);M&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[ho]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ai(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function _a(e,t,r,n,i=!1){var o=ii(e),s=o[ri],a=!o[ni];let l=M&&s;l&&_e(!1);var u=t||{},d=e.tagName==="OPTION";for(var f in t)f in r||(r[f]=null);r.class?r.class=ha(r.class):(n||r[gt])&&(r.class=null),r[At]&&(r.style??(r.style=null));var c=ai(e);for(const p in r){let w=r[p];if(d&&p==="value"&&w==null){e.value=e.__value="",u[p]=w;continue}if(p==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";be(e,v,w,n,t==null?void 0:t[gt],r[gt]),u[p]=w,u[gt]=r[gt];continue}if(p==="style"){ga(e,w,t==null?void 0:t[At],r[At]),u[p]=w,u[At]=r[At];continue}var b=u[p];if(!(w===b&&!(w===void 0&&e.hasAttribute(p)))){u[p]=w;var g=p[0]+p[1];if(g!=="$$")if(g==="on"){const x={},L="$$"+p;let $=p.slice(2);var y=Xo($);if(Ko($)&&($=$.slice(0,-7),x.capture=!0),!y&&b){if(w!=null)continue;e.removeEventListener($,u[L],x),u[L]=null}if(w!=null)if(y)e[`__${$}`]=w,Mr([$]);else{let T=function(P){u[p].call(this,P)};u[L]=Yn($,e,T,x)}else y&&(e[`__${$}`]=void 0)}else if(p==="style")ee(e,p,w);else if(p==="autofocus")Zo(e,!!w);else if(!s&&(p==="__value"||p==="value"&&w!=null))e.value=e.__value=w;else if(p==="selected"&&d)wa(e,w);else{var m=p;a||(m=ea(m));var h=m==="defaultValue"||m==="defaultChecked";if(w==null&&!s&&!h)if(o[p]=null,m==="value"||m==="checked"){let x=e;const L=t===void 0;if(m==="value"){let $=x.defaultValue;x.removeAttribute(m),x.defaultValue=$,x.value=x.__value=L?$:null}else{let $=x.defaultChecked;x.removeAttribute(m),x.defaultChecked=$,x.checked=L?$:!1}}else e.removeAttribute(p);else h||c.includes(m)&&(s||typeof w!="string")?e[m]=w:typeof w!="function"&&ee(e,m,w)}}}return l&&_e(!0),u}function nr(e,t,r=[],n,i=!1,o=lt){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",d=!1;if(Qe(()=>{var c=t(...s.map(E)),v=_a(e,a,c,n,i);d&&u&&"value"in c&&Pr(e,c.value);for(let g of Object.getOwnPropertySymbols(l))c[g]||ae(l[g]);for(let g of Object.getOwnPropertySymbols(c)){var b=c[g];g.description===so&&(!a||b!==a[g])&&(l[g]&&ae(l[g]),l[g]=He(()=>fa(e,()=>b))),v[g]=b}a=v}),u){var f=e;$r(()=>{Pr(f,a.value,!0),ma(f)})}d=!0}function ii(e){return e.__attributes??(e.__attributes={[ri]:e.nodeName.includes("-"),[ni]:e.namespaceURI===ao})}var oi=new Map;function ai(e){var t=oi.get(e.nodeName);if(t)return t;oi.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=on(n);for(var o in r)r[o].set&&t.push(o);n=br(n)}return t}function si(e,t){return e===t||(e==null?void 0:e[Ce])===t}function li(e={},t,r,n){return $r(()=>{var i,o;return Zt(()=>{i=o,o=[],ht(()=>{e!==r(...o)&&(t(e,...o),i&&si(r(...i),e)&&t(null,...i))})}),()=>{Wt(()=>{o&&si(r(...o),e)&&t(null,...o)})}}),e}function ui(e=!1){const t=D,r=t.l.u;if(!r)return;let n=()=>Bn(t.s);if(e){let i=0,o={};const s=lt(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});n=()=>E(s)}r.b.length&&zo(()=>{ci(t,n),kt(r.b)}),Sr(()=>{const i=ht(()=>r.m.map(fo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Sr(()=>{ci(t,n),kt(r.a)})}function ci(e,t){if(e.l.s)for(const r of e.l.s)E(r);t()}function jr(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ue;const n=ht(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const mt=[];function ka(e,t){return{subscribe:ir(e,t).subscribe}}function ir(e,t=ue){let r=null;const n=new Set;function i(a){if(vn(e,a)&&(e=a,r)){const l=!mt.length;for(const u of n)u[1](),mt.push(u,e);if(l){for(let u=0;u<mt.length;u+=2)mt[u][0](mt[u+1]);mt.length=0}}}function o(a){i(a(e))}function s(a,l=ue){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,o)||ue),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function ya(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 ka(r,(s,a)=>{let l=!1;const u=[];let d=0,f=ue;const c=()=>{if(d)return;f();const b=t(n?u[0]:u,s,a);o?s(b):f=typeof b=="function"?b:ue},v=i.map((b,g)=>jr(b,y=>{u[g]=y,d&=~(1<<g),l&&c()},()=>{d|=1<<g}));return l=!0,c(),function(){kt(v),f(),l=!1}})}function xa(e){let t;return jr(e,r=>t=r)(),t}let or=!1,Dr=Symbol();function pe(e,t,r){const n=r[t]??(r[t]={store:null,source:St(void 0),unsubscribe:ue});if(n.store!==e&&!(Dr in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=ue;else{var i=!0;n.unsubscribe=jr(e,o=>{i?n.source.v=o:q(n.source,o)}),i=!1}return e&&Dr in r?xa(e):E(n.source)}function Ot(){const e={};function t(){Yt(()=>{for(var r in e)e[r].unsubscribe();wt(e,Dr,{enumerable:!1,value:!0})})}return[e,t]}function Ea(e){var t=or;try{return or=!1,[e(),or]}finally{or=t}}const Ca={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},Ca)}const Sa={get(e,t){if(!e.exclude.includes(t))return E(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=k({get[t](){return e.props[t]}},t,tn)),e.special[t](r),kn(e.version),!0},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},deleteProperty(e,t){return e.exclude.includes(t)||(e.exclude.push(t),kn(e.version)),!0},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 ar(e,t){return new Proxy({props:e,exclude:t,special:{},version:ut(0)},Sa)}const $a={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(_t(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];_t(i)&&(i=i());const o=Ae(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(_t(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=Ae(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Ce||t===yr)return!1;for(let r of e.props)if(_t(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(_t(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 di(...e){return new Proxy({props:e},$a)}function Na(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function k(e,t,r,n){var m;var i=!at||(r&ro)!==0,o=(r&no)!==0,s=(r&io)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?ht(n):n),a),d;if(o){var f=Ce in e||yr in e;d=((m=Ae(e,t))==null?void 0:m.set)??(f&&t in e?h=>e[t]=h:void 0)}var c,v=!1;o?[c,v]=Ea(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),d&&(i&&_o(),d(c)));var b;if(i?b=()=>{var h=e[t];return h===void 0?u():(l=!0,h)}:b=()=>{var h=e[t];return h!==void 0&&(a=void 0),h===void 0?a:h},i&&(r&tn)===0)return b;if(d){var g=e.$$legacy;return function(h,p){return arguments.length>0?((!i||!p||g||v)&&d(p?b():h),h):b()}}var y=((r&to)!==0?lt:Bt)(b);return o&&E(y),function(h,p){if(arguments.length>0){const w=p?E(y):i&&o?st(h):h;return q(y,w),a!==void 0&&(a=w),h}return Na(y)?y.v:E(y)}}function Ia(e){return new Ta(e)}class Ta{constructor(t){Qr(this,Re);Qr(this,ge);var o;var r=new Map,n=(s,a)=>{var l=St(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return E(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===yr?!0:(E(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return q(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});en(this,ge,(t.hydrate?na:Jn)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((o=t==null?void 0:t.props)!=null&&o.$$host)||t.sync===!1)&&_(),en(this,Re,i.$$events);for(const s of Object.keys(ne(this,ge)))s==="$set"||s==="$destroy"||s==="$on"||wt(this,s,{get(){return ne(this,ge)[s]},set(a){ne(this,ge)[s]=a},enumerable:!0});ne(this,ge).$set=s=>{Object.assign(i,s)},ne(this,ge).$destroy=()=>{ia(ne(this,ge))}}$set(t){ne(this,ge).$set(t)}$on(t,r){ne(this,Re)[t]=ne(this,Re)[t]||[];const n=(...i)=>r.call(this,...i);return ne(this,Re)[t].push(n),()=>{ne(this,Re)[t]=ne(this,Re)[t].filter(i=>i!==n)}}$destroy(){ne(this,ge).$destroy()}}Re=new WeakMap,ge=new WeakMap;let fi;typeof HTMLElement=="function"&&(fi=class extends HTMLElement{constructor(t,r,n){super();le(this,"$$ctor");le(this,"$$s");le(this,"$$c");le(this,"$$cn",!1);le(this,"$$d",{});le(this,"$$r",!1);le(this,"$$p_d",{});le(this,"$$l",{});le(this,"$$l_u",new Map);le(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}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=document.createElement("slot");i!=="default"&&(s.name=i),I(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=za(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]=sr(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=Ia({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Mo(()=>{Zt(()=>{var i;this.$$r=!0;for(const o of Ht(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=sr(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]=sr(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 Ht(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function sr(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 za(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function B(e,t,r,n,i,o){let s=class extends fi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Ht(t).map(a=>(t[a].attribute||a).toLowerCase())}};return Ht(t).forEach(a=>{wt(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var f;l=sr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var d=(f=Ae(u,a))==null?void 0:f.get;d?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{wt(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Ma=ve("<a><!></a>"),La=ve("<button><!></button>");const Ua={hash:"svelte-zftwkm",code:`:root, :host {
3
+ /* 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;
4
+
5
+ /* primary button */--ai-button-background-primary-rest: var(--ai-color-black);--ai-button-background-primary-hover: var(
6
+ --ai-color-neutral-900
7
+ );--ai-button-background-primary-disabled: var(
8
+ --ai-color-neutral-200
9
+ );--ai-button-text-primary-rest: var(--ai-color-white);--ai-button-text-primary-hover: var(--ai-button-text-primary-rest);--ai-button-text-primary-disabled: var(--ai-color-neutral-800);
10
+
11
+ /* inverted button */--ai-button-background-inverted-rest: var(--ai-color-white);--ai-button-background-inverted-hover: var(--ai-color-neutral-200);--ai-button-background-inverted-disabled: var(--ai-color-neutral-500);--ai-button-text-inverted-rest: var(--ai-color-black);--ai-button-text-inverted-hover: var(--ai-color-black);--ai-button-text-inverted-disabled: var(--ai-color-neutral-900);--ai-button-border-inverted-rest: none;--ai-button-border-inverted-hover: none;
12
+
13
+ /* unstyled */--ai-button-text-unstyled-disabled: var(--ai-color-neutral-700);--ai-button-text-unstyled-inverted-disabled: var(--ai-color-neutral-700);
14
+
15
+ /* outline button */--ai-button-background-outline-hover: var(--ai-color-black);--ai-button-text-outline-rest: var(--ai-color-black);--ai-button-text-outline-hover: var(--ai-color-white);--ai-button-border-outline-rest: var(--ai-color-black);--ai-button-border-outline-hover: var(--ai-button-border-outline-rest);
16
+
17
+ /* outline inverted button */--ai-button-background-outline-inverted-hover: var(--ai-color-white);--ai-button-text-outline-inverted-rest: var(--ai-color-white);--ai-button-text-outline-inverted-hover: var(--ai-color-black);--ai-button-border-outline-inverted-rest: var(--ai-color-white);--ai-button-border-outline-inverted-hover: var(
18
+ --ai-button-border-outline-inverted-rest
19
+ );}.ai-button.svelte-zftwkm {background-color:var(--ai-button-background-primary-rest);border-radius:var(--ai-button-radius);color:var(--ai-button-text-primary-rest);font-weight:var(--ai-font-weight-medium);padding-inline:var(--ai-button-padding-x);padding-block:var(--ai-button-padding-y);margin:0;}.ai-button.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-primary-hover);color:var(--ai-button-text-primary-hover);}.ai-button--small.svelte-zftwkm {--ai-button-padding-x: var(--ai-size-24);--ai-button-padding-y: var(--ai-size-8);font-size:var(--ai-size-12);}.ai-button--outline.svelte-zftwkm {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-rest);color:var(--ai-button-text-outline-rest);}.ai-button--outline.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-outline-hover);box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-hover);color:var(--ai-button-text-outline-hover);}.ai-button--outline-inverted.svelte-zftwkm {background-color:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-inverted-rest);color:var(--ai-button-text-outline-inverted-rest);}.ai-button--outline-inverted.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-outline-inverted-hover);box-shadow:var(--ai-button-box-shadow) var(--ai-button-border-outline-inverted-hover);color:var(--ai-button-text-outline-inverted-hover);}.ai-button--inverted.svelte-zftwkm {background-color:var(--ai-button-background-inverted-rest);color:var(--ai-button-text-inverted-rest);box-shadow:none;border:var(--ai-button-border-inverted-rest);}.ai-button--inverted.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background-color:var(--ai-button-background-inverted-hover);color:var(--ai-button-text-inverted-hover);border:var(--ai-button-border-inverted-hover);}.ai-button--unstyled.svelte-zftwkm {background:none;color:inherit;border:none;box-shadow:none;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:var(--ai-font-underline-offset);}.ai-button--unstyled.svelte-zftwkm:is(:where(.svelte-zftwkm):hover, :where(.svelte-zftwkm):focus) {background:none;color:inherit;border:none;box-shadow:none;text-decoration:underline;}.ai-menu-buttons.svelte-zftwkm {display:flex;gap:var(--ai-size-16);}
20
+
21
+ /* disabled button styles */:is(.disabled.svelte-zftwkm, [disabled].svelte-zftwkm, [aria-disabled=true].svelte-zftwkm) {background:var(--ai-button-background-primary-disabled);color:var(--ai-button-text-primary-disabled);cursor:not-allowed;}.ai-button--inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:var(--ai-button-background-inverted-disabled);color:var(--ai-button-text-inverted-disabled);}.ai-button--outline.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:transparent;box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-700);color:var(--ai-color-neutral-700);}.ai-button--outline-inverted.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zftwkm:is(.disabled:where(.svelte-zftwkm), [disabled]:where(.svelte-zftwkm), [aria-disabled=true]:where(.svelte-zftwkm)) {background:none;color:inherit;opacity:0.75;}`};function vi(e,t){Y(t,!0),pt(e,Ua);let r=k(t,"variant",7,"primary"),n=k(t,"theme",7,"default"),i=k(t,"href",7,null),o=k(t,"disabled",7,!1),s=k(t,"onclick",7),a=k(t,"children",7,null),l=k(t,"size",7,"medium"),u=k(t,"type",7,"button"),d=k(t,"class",7,""),f=Hr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","onclick","children","size","type","class"]);const c=G(()=>()=>["usa-button","ai-button",l()==="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":""].filter(Boolean).join(" ")),v=G(()=>()=>`${E(c)()} ${d()}`.trim());var b=Ut(),g=Ye(b);{var y=h=>{var p=Ma();nr(p,(x,L)=>({class:x,href:i(),onclick:s(),...f,[gt]:L}),[()=>E(v)(),()=>({disabled:o()})],"svelte-zftwkm");var w=S(p);Ar(w,()=>a()??ue),C(p),I(h,p)},m=h=>{var p=La();nr(p,x=>({class:x,type:u(),disabled:o(),onclick:s(),...f}),[()=>E(v)()],"svelte-zftwkm");var w=S(p);Ar(w,()=>a()??ue),C(p),I(h,p)};he(g,h=>{i()?h(y):h(m,!1)})}return I(e,b),Z({get variant(){return r()},set variant(h="primary"){r(h),_()},get theme(){return n()},set theme(h="default"){n(h),_()},get href(){return i()},set href(h=null){i(h),_()},get disabled(){return o()},set disabled(h=!1){o(h),_()},get onclick(){return s()},set onclick(h){s(h),_()},get children(){return a()},set children(h=null){a(h),_()},get size(){return l()},set size(h="medium"){l(h),_()},get type(){return u()},set type(h="button"){u(h),_()},get class(){return d()},set class(h=""){d(h),_()}})}B(vi,{variant:{},theme:{},href:{},disabled:{},onclick:{},children:{},size:{},type:{},class:{}},[],[],!0);function hi(e,t){Y(t,!0);let r=k(t,"variant",7,"primary"),n=k(t,"theme",7,"default"),i=k(t,"href",7,null),o=k(t,"disabled",7,!1),s=k(t,"size",7,"medium"),a=k(t,"type",7,"button"),l=k(t,"onclick",7),u=k(t,"children",7,null),d=k(t,"class",7,""),f=Hr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","children","class"]);return vi(e,di({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return o()},get size(){return s()},get type(){return a()},get onclick(){return l()},get children(){return u()},get class(){return d()}},()=>f,{$$slots:{default:(c,v)=>{var b=Ut(),g=Ye(b);rr(g,t,"default",{}),I(c,b)}}})),Z({get variant(){return r()},set variant(c="primary"){r(c),_()},get theme(){return n()},set theme(c="default"){n(c),_()},get href(){return i()},set href(c=null){i(c),_()},get disabled(){return o()},set disabled(c=!1){o(c),_()},get size(){return s()},set size(c="medium"){s(c),_()},get type(){return a()},set type(c="button"){a(c),_()},get onclick(){return l()},set onclick(c){l(c),_()},get children(){return u()},set children(c=null){u(c),_()},get class(){return d()},set class(c=""){d(c),_()}})}customElements.define("graymatter-button",B(hi,{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:{},children:{},class:{}},["default"],[],!0));const qt=typeof window<"u";function Aa(e,t){if(qt&&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 bi(e,t){const r=Aa(e,t),n=ir(r);return qt&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}bi("subNav-selectedId",null);const tt=bi("subNav-selectedTitle","");function pi(e,t){if(qt&&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 gi(e,t){const r=pi(e,t),n=ir(r);return qt&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const xe=gi("globalSideNav-isExpanded",!1),rt=gi("globalSideNav-selectedItem",null),Vr=ya(rt,e=>e==="discover"),Ie={toggleExpanded:()=>{xe.update(e=>!e)},setExpanded:e=>{xe.set(e)},setSelectedItem:e=>{rt.set(e),e==="discover"?xe.set(!1):qt&&window.innerWidth>640&&xe.set(!0)},handleLayoutTransition:e=>{if(e)xe.set(!1);else{const t=pi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),xe.set(!0)):xe.set(!1)}}},lr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:xe,isMenuButtonDisabled:Vr,navigationStore:Ie,selectedItem:rt,selectedSubNavItemTitle:tt},Symbol.toStringTag,{value:"Module"})),Oa=ir(!1);var qa=ve('<div part="global-header"><div class="header-content svelte-1p8bjnn" part="header-content"><span class="header-text svelte-1p8bjnn"> </span></div></div>');const Pa={hash:"svelte-1p8bjnn",code:".global-header.svelte-1p8bjnn {opacity:0;transition:opacity 0.2s;}.global-header.visible.svelte-1p8bjnn {opacity:1;transition:opacity 0.2s;}.header-content.svelte-1p8bjnn {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-1p8bjnn {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1p8bjnn {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function mi(e,t){Y(t,!0),pt(e,Pa);const[r,n]=Ot(),i=()=>pe(rt,"$selectedItem",r),o=()=>pe(xe,"$isExpanded",r),s=()=>pe(Oa,"$subNavReady",r),a=()=>pe(tt,"$selectedSubNavItemTitle",r),l=k(t,"customHeaderText",7,"");let u=!1;const d=G(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&s()),f=G(()=>()=>l()||a());tr(()=>{const h=w=>{if(typeof window<"u"&&window.innerWidth<=640)return;let x=null;if(typeof window<"u"&&(x=sessionStorage.getItem("subNav-topLevelTitle"),x))try{x=JSON.parse(x)}catch{}if(typeof x=="string"&&x.trim()!=="")tt.set(x),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(x));else{const L=w;L.detail&&L.detail.title&&(tt.set(L.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L.detail.title)))}},p=w=>{const x=w,{isMobile:L}=x.detail;L||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",h),window.addEventListener("layoutTransition",p),()=>{window.removeEventListener("sectionVisible",h),window.removeEventListener("layoutTransition",p)}});var c=qa();let v;var b=S(c),g=S(b),y=S(g,!0);C(g),C(b),C(c),ft((h,p)=>{v=be(c,1,"global-header svelte-1p8bjnn",null,v,h),Lr(y,p)},[()=>({visible:E(d)()}),()=>E(f)()]),I(e,c);var m=Z({get customHeaderText(){return l()},set customHeaderText(h=""){l(h),_()}});return n(),m}B(mi,{customHeaderText:{}},[],[],!0);function wi(e,t){Y(t,!0);let r=k(t,"customHeaderText",7,"");return mi(e,{get customHeaderText(){return r()}}),Z({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",B(wi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Co();var ja=H('<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>'),Da=H('<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>'),Ha=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Rr(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Ha(),i=S(n);{var o=a=>{var l=ja();I(a,l)},s=a=>{var l=Da();I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Rr,{isSelected:{}},[],[],!0);var Va=H('<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>'),Ra=H('<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>'),Ba=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Br(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Ba(),i=S(n);{var o=a=>{var l=Va();I(a,l)},s=a=>{var l=Ra();I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Br,{isSelected:{}},[],[],!0);var Fa=H('<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),Ya=H('<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),Za=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Fr(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Za(),i=S(n);{var o=a=>{var l=Fa();Se(3),I(a,l)},s=a=>{var l=Ya();Se(3),I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Fr,{isSelected:{}},[],[],!0);var Ja=H('<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),Wa=H('<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),Ka=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function Yr(e,t){Y(t,!1);let r=k(t,"isSelected",12,!1);var n=Ka(),i=S(n);{var o=a=>{var l=Ja();Se(2),I(a,l)},s=a=>{var l=Wa();Se(2),I(a,l)};he(i,a=>{r()?a(o):a(s,!1)})}return C(n),I(e,n),Z({get isSelected(){return r()},set isSelected(a){r(a),_()}})}B(Yr,{isSelected:{}},[],[],!0);var Ga=H('<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),Xa=H('<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),Qa=H('<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),es=H('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),ts=H('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),rs=H('<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),ns=H("<svg><!></svg>");function Zr(e,t){const r=ar(t,["children","$$slots","$$events","$$legacy","$$host"]),n=ar(r,["isDisabled","isHovered","isOpen"]);Y(t,!1);let i=k(t,"isDisabled",12,!1),o=k(t,"isHovered",12,!1),s=k(t,"isOpen",12,!1);var a=ns();nr(a,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=S(a);{var u=f=>{var c=Ga(),v=X(Ye(c));ft(()=>ee(v,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),I(f,c)},d=(f,c)=>{{var v=g=>{var y=Ut(),m=Ye(y);{var h=w=>{var x=Xa();Se(),I(w,x)},p=w=>{var x=Qa();Se(),I(w,x)};he(m,w=>{s()?w(h):w(p,!1)})}I(g,y)},b=g=>{var y=rs(),m=X(Ye(y));{var h=w=>{var x=es();I(w,x)},p=w=>{var x=ts();I(w,x)};he(m,w=>{s()?w(h):w(p,!1)})}I(g,y)};he(f,g=>{o()?g(v):g(b,!1)},c)}};he(l,f=>{i()?f(u):f(d,!1)})}return C(a),I(e,a),Z({get isDisabled(){return i()},set isDisabled(f){i(f),_()},get isHovered(){return o()},set isHovered(f){o(f),_()},get isOpen(){return s()},set isOpen(f){s(f),_()}})}B(Zr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);const is={};function Jr(e,t){t||console.warn(`[getAppUrls] Environment variable for ${e} is missing!`)}function _i(e){const t=is,r="#",n=t.PUBLIC_CHAT_URL,i=t.PUBLIC_CONSOLE_URL,o=t.PUBLIC_API_URL,s=t.PUBLIC_DISCOVER_URL;return Jr("chat",n),Jr("console",i),Jr("api",o),{chat:n||r,console:i||r,api:o||"/api",discover:s||"/discover"}}function os(e,t,r,n){var i;t()||(Ie.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var as=(e,t)=>t("discover"),ss=(e,t)=>t(e,"discover"),ls=(e,t)=>t("chat"),us=(e,t)=>t(e,"chat"),cs=(e,t)=>t("console"),ds=(e,t)=>t(e,"console"),fs=(e,t)=>t("api"),vs=(e,t)=>t(e,"api"),hs=(e,t)=>{var r;return(r=t())==null?void 0:r()},bs=(e,t)=>{var r;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),(r=t())==null||r())},ps=ve('<div class="drawer-content svelte-14q02bh" part="drawer-content"><div class="logo-placeholder svelte-14q02bh"></div> <nav aria-label="Sub navigation"><!></nav></div>'),gs=ve('<div part="side-nav-container"><div class="nav-content svelte-14q02bh"><div class="nav-main svelte-14q02bh" part="nav-main"><div class="menu-section svelte-14q02bh"><button><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div></button></div> <div class="nav-items svelte-14q02bh" part="nav-items"><a part="discover-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Discover</span></a> <a part="chat-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Chat</span></a> <a part="console-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">Console</span></a> <a part="api-item"><div class="icon-container svelte-14q02bh"><div class="icon-wrapper svelte-14q02bh"><!></div></div> <span class="nav-text svelte-14q02bh">API</span></a></div></div> <div class="nav-footer svelte-14q02bh" part="nav-footer"><button class="user-profile-button svelte-14q02bh" tabindex="0"><div class="user-profile-container svelte-14q02bh"><div class="user-profile-icon svelte-14q02bh" part="user-profile-icon"><span class="user-initials svelte-14q02bh">ZW</span></div></div></button></div></div> <div part="expanded-content"><!></div></div>');const ms={hash:"svelte-14q02bh",code:`.expanded-content.drawer-anim.svelte-14q02bh {max-width:0;overflow:hidden;pointer-events:none;transition:max-width 0.2s cubic-bezier(.4, 0, .2, 1);}.expanded-content.drawer-anim.open.svelte-14q02bh {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-14q02bh {width:12.5rem;height:100%;}.logo-placeholder.svelte-14q02bh {height:var(--ai-size-72);}.user-profile-container.svelte-14q02bh,
22
+ .user-profile-icon.svelte-14q02bh {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-14q02bh {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-14q02bh:disabled,
23
+ .menu-button.disabled.svelte-14q02bh {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-14q02bh {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-14q02bh {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.side-nav-container.svelte-14q02bh {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-14q02bh {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-14q02bh {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-14q02bh .expanded-content:where(.svelte-14q02bh) {width:12.5rem;opacity:1;overflow-y:auto;}.side-nav-container.svelte-14q02bh:not(.expanded) .expanded-content:where(.svelte-14q02bh) {width:0;opacity:0;}.nav-content.svelte-14q02bh {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-200);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-14q02bh {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-14q02bh {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;}.user-profile-button.svelte-14q02bh {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-14q02bh: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-container.svelte-14q02bh {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-14q02bh {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-14q02bh {font-size:var(--ai-size-16);font-style:normal;}.menu-section.svelte-14q02bh {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-14q02bh {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-14q02bh {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-14q02bh:focus,
24
+ .nav-item.svelte-14q02bh:focus {outline:none;}.menu-button.svelte-14q02bh:focus .icon-container:where(.svelte-14q02bh),
25
+ .nav-item.svelte-14q02bh:focus .icon-container:where(.svelte-14q02bh) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.nav-items.svelte-14q02bh {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-14q02bh {display:flex;height:4.125rem;padding:var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-2);align-self:stretch;cursor:pointer;text-decoration:none;color:inherit;position:relative;flex-shrink:0;}.icon-container.svelte-14q02bh {display:flex;width:var(--ai-size-40);height:var(--ai-size-40);padding:var(--ai-size-8);justify-content:center;align-items:center;flex-shrink:0;position:relative;contain:layout style;transition:background-color 0.3s ease,
26
+ border-radius 0.3s ease;}.icon-wrapper.svelte-14q02bh {display:flex;width:var(--ai-size-28);height:var(--ai-size-28);justify-content:center;align-items:center;flex-shrink:0;aspect-ratio:1/1;position:relative;overflow:hidden;transition:transform 0.3s ease;}.icon-wrapper.svelte-14q02bh svg {width:var(--ai-size-24);height:var(--ai-size-24);flex-shrink:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);transition:all 0.3s ease;}.icon-wrapper.svelte-14q02bh svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke 0.3s ease,
27
+ fill 0.3s ease,
28
+ stroke-width 0.3s ease;}.nav-text.svelte-14q02bh {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-14q02bh:hover .icon-container:where(.svelte-14q02bh),
29
+ .menu-button.svelte-14q02bh:disabled:hover .icon-container:where(.svelte-14q02bh) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
30
+ .nav-item.svelte-14q02bh:active .icon-container:where(.svelte-14q02bh),
31
+ .nav-item.selected.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
32
+ .nav-item.selected.hovered.svelte-14q02bh .icon-container:where(.svelte-14q02bh),
33
+ .menu-button.svelte-14q02bh:hover .icon-container:where(.svelte-14q02bh),
34
+ .menu-button.svelte-14q02bh:active .icon-container:where(.svelte-14q02bh) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-14q02bh {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 0.2s ease;height:100%;}.nav-item.svelte-14q02bh:hover {color:var(--ai-color-neutral-700);}`};function ki(e,t){Y(t,!0),pt(e,ms);const[r,n]=Ot(),i=()=>pe(rt,"$selectedItem",r),o=()=>pe(xe,"$isExpanded",r),s=()=>pe(Vr,"$isMenuButtonDisabled",r),a=_i(),l=k(t,"ssrSelectedItem",7,void 0),u=k(t,"onNavToggle",7,void 0),d=k(t,"onNavItemClick",7,void 0),f=k(t,"onProfileClick",7,void 0),c=k(t,"children",7),v=k(t,"apiUrl",7),b=k(t,"chatUrl",7),g=k(t,"consoleUrl",7),y=k(t,"discoverUrl",7);let m=!1,h,p=we(null),w=we(!1),x=we(!1);function L(N,te){return m?N:te}function $(N){return L(i()===N,l()===N)}function T(N){return E(p)===N}const P=G(()=>()=>L(o(),l()?l()!=="discover":!0)),F=G(()=>()=>L(s(),l()?l()==="discover":!1)),me=G(()=>()=>L(o(),l()?l()!=="discover":!0)),Ke=G(()=>()=>E(x)&&E(w)&&!E(F)());tr(()=>{if(m=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),h&&h.classList.add("hydrated"),typeof window<"u"){const N=window.matchMedia("(hover: hover)");q(x,N.matches,!0),N.addEventListener("change",V=>{q(x,V.matches,!0)});const te=V=>{const Ge=V,{isMobile:nt}=Ge.detail;if(nt)Ie.setExpanded(!1);else{const it=i();it&&it!=="discover"?Ie.setExpanded(!0):Ie.setExpanded(!1)}};return window.addEventListener("layoutTransition",te),()=>{window.removeEventListener("layoutTransition",te)}}});function K(N){var te;if(N!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),Ie.setSelectedItem(N),N!=="discover")try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const Ge=document.getElementById("main-content");if(Ge){const nt=Ge.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(nt&&nt.textContent){const it=nt.textContent.trim();V.set(it),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(it))}}},200)}).catch(V=>{console.log("[DesktopSideNav] Error clearing header state:",V)})}catch(V){console.log("[DesktopSideNav] Import failed for clearing state:",V)}else try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(V=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",V)})}catch(V){console.log("[DesktopSideNav] Import failed for clearing Discover state:",V)}(te=d())==null||te({item:N,expanded:o()})}function Te(N,te){(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),K(te))}var ze=gs();let Pt;var Wr=S(ze),Kr=S(Wr),Gr=S(Kr),Ee=S(Gr);let Li;Ee.__click=[os,s,u,o];var Ui=S(Ee),Ai=S(Ui),qs=S(Ai);const Ps=G(()=>E(Ke)()),js=G(()=>E(F)()),Ds=G(()=>E(me)());Zr(qs,{get isHovered(){return E(Ps)},get isDisabled(){return E(js)},get isOpen(){return E(Ds)}}),C(Ai),C(Ui),C(Ee),C(Gr);var Oi=X(Gr,2),Me=S(Oi);let qi;Me.__click=[as,K],Me.__keydown=[ss,Te];var Pi=S(Me),ji=S(Pi),Hs=S(ji);const Vs=G(()=>$("discover"));Rr(Hs,{get isSelected(){return E(Vs)}}),C(ji),C(Pi),Se(2),C(Me);var Le=X(Me,2);let Di;Le.__click=[ls,K],Le.__keydown=[us,Te];var Hi=S(Le),Vi=S(Hi),Rs=S(Vi);const Bs=G(()=>$("chat"));Br(Rs,{get isSelected(){return E(Bs)}}),C(Vi),C(Hi),Se(2),C(Le);var Ue=X(Le,2);let Ri;Ue.__click=[cs,K],Ue.__keydown=[ds,Te];var Bi=S(Ue),Fi=S(Bi),Fs=S(Fi);const Ys=G(()=>$("console"));Fr(Fs,{get isSelected(){return E(Ys)}}),C(Fi),C(Bi),Se(2),C(Ue);var Be=X(Ue,2);let Yi;Be.__click=[fs,K],Be.__keydown=[vs,Te];var Zi=S(Be),Ji=S(Zi),Zs=S(Ji);const Js=G(()=>$("api"));Yr(Zs,{get isSelected(){return E(Js)}}),C(Ji),C(Zi),Se(2),C(Be),C(Oi),C(Kr);var Wi=X(Kr,2),Ki=S(Wi);Ki.__click=[hs,f],Ki.__keydown=[bs,f],C(Wi),C(Wr);var Xr=X(Wr,2);let Gi;var Ws=S(Xr);{var Ks=N=>{var te=ps(),V=X(S(te),2),Ge=S(V);Ar(Ge,()=>c()??ue),C(V),C(te),I(N,te)};he(Ws,N=>{E(P)()&&N(Ks)})}C(Xr),C(ze),li(ze,N=>h=N,()=>h),ft((N,te,V,Ge,nt,it,Xs,Qs,el,tl,rl,nl,il)=>{Pt=be(ze,1,"side-nav-container svelte-14q02bh",null,Pt,N),Li=be(Ee,1,"menu-button svelte-14q02bh",null,Li,te),Ee.disabled=s(),ee(Ee,"aria-label",V),ee(Ee,"aria-expanded",Ge),ee(Me,"href",y()||a.discover),qi=be(Me,1,"nav-item discover-item svelte-14q02bh",null,qi,nt),ee(Me,"aria-current",it),ee(Le,"href",b()||a.chat),Di=be(Le,1,"nav-item chat-item svelte-14q02bh",null,Di,Xs),ee(Le,"aria-current",Qs),ee(Ue,"href",g()||a.console),Ri=be(Ue,1,"nav-item console-item svelte-14q02bh",null,Ri,el),ee(Ue,"aria-current",tl),ee(Be,"href",v()||a.api),Yi=be(Be,1,"nav-item api-item svelte-14q02bh",null,Yi,rl),ee(Be,"aria-current",nl),Gi=be(Xr,1,"expanded-content drawer-anim svelte-14q02bh",null,Gi,il)},[()=>({expanded:E(P)()}),()=>({disabled:s()}),()=>E(P)()?"Close navigation menu":"Open navigation menu",()=>E(P)()?"true":"false",()=>({selected:$("discover"),hovered:T("discover")}),()=>$("discover")?"page":void 0,()=>({selected:$("chat"),hovered:T("chat")}),()=>$("chat")?"page":void 0,()=>({selected:$("console"),hovered:T("console")}),()=>$("console")?"page":void 0,()=>({selected:$("api"),hovered:T("api")}),()=>$("api")?"page":void 0,()=>({open:E(P)()})]),W("mouseenter",Ee,()=>q(w,!0)),W("mouseleave",Ee,()=>q(w,!1)),W("focus",Ee,()=>q(w,!0)),W("blur",Ee,()=>q(w,!1)),W("mouseenter",Me,()=>q(p,"discover")),W("mouseleave",Me,()=>q(p,null)),W("mouseenter",Le,()=>q(p,"chat")),W("mouseleave",Le,()=>q(p,null)),W("mouseenter",Ue,()=>q(p,"console")),W("mouseleave",Ue,()=>q(p,null)),W("mouseenter",Be,()=>q(p,"api")),W("mouseleave",Be,()=>q(p,null)),I(e,ze);var Gs=Z({get ssrSelectedItem(){return l()},set ssrSelectedItem(N=void 0){l(N),_()},get onNavToggle(){return u()},set onNavToggle(N=void 0){u(N),_()},get onNavItemClick(){return d()},set onNavItemClick(N=void 0){d(N),_()},get onProfileClick(){return f()},set onProfileClick(N=void 0){f(N),_()},get children(){return c()},set children(N){c(N),_()},get apiUrl(){return v()},set apiUrl(N){v(N),_()},get chatUrl(){return b()},set chatUrl(N){b(N),_()},get consoleUrl(){return g()},set consoleUrl(N){g(N),_()},get discoverUrl(){return y()},set discoverUrl(N){y(N),_()}});return n(),Gs}Mr(["click","keydown"]),B(ki,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},onProfileClick:{},children:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function yi(e,t){Y(t,!0);let r=k(t,"ssrSelectedItem",7),n=k(t,"onNavToggle",7),i=k(t,"onNavItemClick",7),o=k(t,"onProfileClick",7),s=k(t,"apiUrl",7),a=k(t,"chatUrl",7),l=k(t,"consoleUrl",7),u=k(t,"discoverUrl",7);return ki(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get onProfileClick(){return o()},get apiUrl(){return s()},get chatUrl(){return a()},get consoleUrl(){return l()},get discoverUrl(){return u()},children:(d,f)=>{var c=Ut(),v=Ye(c);rr(v,t,"default",{}),I(d,c)},$$slots:{default:!0}}),Z({get ssrSelectedItem(){return r()},set ssrSelectedItem(d){r(d),_()},get onNavToggle(){return n()},set onNavToggle(d){n(d),_()},get onNavItemClick(){return i()},set onNavItemClick(d){i(d),_()},get onProfileClick(){return o()},set onProfileClick(d){o(d),_()},get apiUrl(){return s()},set apiUrl(d){s(d),_()},get chatUrl(){return a()},set chatUrl(d){a(d),_()},get consoleUrl(){return l()},set consoleUrl(d){l(d),_()},get discoverUrl(){return u()},set discoverUrl(d){u(d),_()}})}customElements.define("graymatter-desktop-side-nav",B(yi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},onProfileClick:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},["default"],[],!0));var ws=H('<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>');function ur(e,t){const r=ar(t,["children","$$slots","$$events","$$legacy","$$host"]),n=ar(r,["isInverted","width","height"]);Y(t,!1);const i=St();let o=k(t,"isInverted",12,!1),s=k(t,"width",12),a=k(t,"height",12);const l=102,u=30;s(s()||l),a(a()||u),Uo(()=>Bn(o()),()=>{q(i,o()?"var(--ai-color-white)":"var(--ai-color-black)")}),Ao();var d=ws();return nr(d,()=>({width:s(),height:a(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${E(i)??""};`,...n})),I(e,d),Z({get isInverted(){return o()},set isInverted(f){o(f),_()},get width(){return s()},set width(f){s(f),_()},get height(){return a()},set height(f){a(f),_()}})}B(ur,{isInverted:{},width:{},height:{}},[],[],!0);function xi(e,t){Y(t,!0);let r=k(t,"isInverted",7,!1),n=k(t,"width",7,void 0),i=k(t,"height",7,void 0),o=Hr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height"]);return ur(e,di({get isInverted(){return r()},get width(){return n()},get height(){return i()}},()=>o)),Z({get isInverted(){return r()},set isInverted(s=!1){r(s),_()},get width(){return n()},set width(s=void 0){n(s),_()},get height(){return i()},set height(s=void 0){i(s),_()}})}customElements.define("graymatter-logo",B(xi,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"}},[],[],!0));function _s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cr={exports:{}},ks=cr.exports,Ei;function ys(){return Ei||(Ei=1,function(e,t){(function(r,n,i){e.exports=i(),e.exports.default=i()})("slugify",ks,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=n[s.locale]||{},l=s.replacement===void 0?"-":s.replacement,u=s.trim===void 0?!0:s.trim,d=o.normalize().split("").reduce(function(f,c){var v=a[c];return v===void 0&&(v=r[c]),v===void 0&&(v=c),v===l&&(v=" "),f+v.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(d=d.replace(/[^A-Za-z0-9\s]/g,"")),u&&(d=d.trim()),d=d.replace(/\s+/g,l),s.lower&&(d=d.toLowerCase()),d}return i.extend=function(o){Object.assign(r,o)},i})}(cr)),cr.exports}var xs=ys();const Es=_s(xs);var Cs=(e,t,r)=>t(E(r).id),Ss=ve('<a><div class="icon svelte-cugc62"><!></div> <span class="label svelte-cugc62"> </span></a>'),$s=ve('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ns={hash:"svelte-cugc62",code:".nav-item.svelte-cugc62 {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 0.2s ease;height:100%;}.nav-item.active.svelte-cugc62 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-cugc62 .icon:where(.svelte-cugc62) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-cugc62:hover {color:var(--ai-color-neutral-700);}.icon.svelte-cugc62 {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 0.2s ease;}.label.svelte-cugc62 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Ci(e,t){Y(t,!0),pt(e,Ns);const[r,n]=Ot(),i=()=>pe(rt,"$selectedItem",r);let o=k(t,"onNavItemClick",7),s=k(t,"apiUrl",7),a=k(t,"chatUrl",7),l=k(t,"consoleUrl",7),u=k(t,"discoverUrl",7);const d=_i(),f=[{id:"discover",label:"Discover",icon:Rr,href:u()||d.discover},{id:"chat",label:"Chat",icon:Br,href:a()||d.chat},{id:"console",label:"Console",icon:Fr,href:l()||d.console},{id:"api",label:"API",icon:Yr,href:s()||d.api}];function c(g){var y;if(g!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),Ie.setSelectedItem(g),g!=="discover")try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const h=document.getElementById("main-content");if(h){const p=h.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(p&&p.textContent){const w=p.textContent.trim();m.set(w),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w))}}},200)}).catch(m=>{console.log("[MobileBottomNav] Error clearing header state:",m)})}catch(m){console.log("[MobileBottomNav] Import failed for clearing state:",m)}else try{Promise.resolve().then(()=>lr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(m=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",m)})}catch(m){console.log("[MobileBottomNav] Import failed for clearing Discover state:",m)}(y=o())==null||y({item:g,expanded:!1})}var v=$s();la(v,21,()=>f,aa,(g,y)=>{var m=Ss();let h;m.__click=[Cs,c,y];var p=S(m),w=S(p);const x=G(()=>i()===E(y).id);da(w,()=>E(y).icon,(T,P)=>{P(T,{get isSelected(){return E(x)}})}),C(p);var L=X(p,2),$=S(L,!0);C(L),C(m),ft((T,P)=>{ee(m,"href",E(y).href),h=be(m,1,"nav-item svelte-cugc62",null,h,T),ee(m,"part",P),Lr($,E(y).label)},[()=>({active:i()===E(y).id}),()=>`${Es(E(y).id)}-item`]),I(g,m)}),C(v),I(e,v);var b=Z({get onNavItemClick(){return o()},set onNavItemClick(g){o(g),_()},get apiUrl(){return s()},set apiUrl(g){s(g),_()},get chatUrl(){return a()},set chatUrl(g){a(g),_()},get consoleUrl(){return l()},set consoleUrl(g){l(g),_()},get discoverUrl(){return u()},set discoverUrl(g){u(g),_()}});return n(),b}Mr(["click"]),B(Ci,{onNavItemClick:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Si(e,t){Y(t,!0);let r=k(t,"onNavItemClick",7),n=k(t,"apiUrl",7),i=k(t,"chatUrl",7),o=k(t,"consoleUrl",7),s=k(t,"discoverUrl",7);return Ci(e,{get onNavItemClick(){return r()},get apiUrl(){return n()},get chatUrl(){return i()},get consoleUrl(){return o()},get discoverUrl(){return s()}}),Z({get onNavItemClick(){return r()},set onNavItemClick(a){r(a),_()},get apiUrl(){return n()},set apiUrl(a){n(a),_()},get chatUrl(){return i()},set chatUrl(a){i(a),_()},get consoleUrl(){return o()},set consoleUrl(a){o(a),_()},get discoverUrl(){return s()},set discoverUrl(a){s(a),_()}})}customElements.define("graymatter-mobile-bottom-nav",B(Si,{onNavItemClick:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Is=H('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M6 18L18 6M6 6L18 18" stroke="#585C63" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function $i(e){var t=Is();I(e,t)}B($i,{},[],[],!0);var Ts=ve('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),zs=ve('<div class="subnav-section svelte-1xj1twt" part="subnav-section"><!></div>'),Ms=ve('<div class="no-subnav-message svelte-1xj1twt" part="no-subnav-message"><p class="svelte-1xj1twt">Select a section from the bottom navigation</p></div>'),Ls=ve('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1xj1twt" part="menu-header"><div class="logo-container svelte-1xj1twt" part="logo-container"><!></div> <button class="close-button svelte-1xj1twt" aria-label="Close navigation menu" part="close-button"><!></button></div> <div class="menu-content svelte-1xj1twt" part="menu-content"><!></div></div>',1);const Us={hash:"svelte-1xj1twt",code:".no-subnav-message.svelte-1xj1twt {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1xj1twt p:where(.svelte-1xj1twt) {margin:0;}.mobile-side-menu.svelte-1xj1twt {position:fixed;top:0;left:0;bottom:0;width:15rem;max-width:85vw;background:var(--ai-color-white);transform:translateX(-100%);transition:transform 0.3s ease;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-1xj1twt {transform:translateX(0);}.menu-header.svelte-1xj1twt {display:flex;align-items:center;justify-content:space-between;padding:var(--ai-size-16) var(--ai-size-20);border-bottom:0.0625rem solid var(--ai-color-neutral-200);}.mobile-side-menu.svelte-1xj1twt .logo-container:where(.svelte-1xj1twt) {display:flex;}.close-button.svelte-1xj1twt {display:flex;align-items:center;justify-content:center;width:var(--ai-size-32);height:var(--ai-size-32);border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-6);transition:background-color 0.2s ease;}.close-button.svelte-1xj1twt:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1xj1twt {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1xj1twt {padding:var(--ai-size-16) 0;overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Ni(e,t){Y(t,!1),pt(e,Us);const[r,n]=Ot(),i=()=>pe(xe,"$isExpanded",r),o=()=>pe(rt,"$selectedItem",r);let s=St(),a=null;function l(T){if(a=T.detail.hash,u(),a){const F=document.getElementById(a);if(F){const me=document.getElementById("main-content-mobile"),Ke=me?me.querySelector(`[id="${a}"]`):null;if(Ke&&me){const K=Ke.getBoundingClientRect(),Te=me.getBoundingClientRect(),ze=me.scrollTop+K.top-Te.top;me.scrollTo({top:ze,behavior:"auto"}),setTimeout(()=>{var Pt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(Pt=Ke.textContent)==null?void 0:Pt.trim(),id:Ke.id}}))},100)}else{let K=F.parentElement;for(;K&&K!==document.body;){const Te=window.getComputedStyle(K);if(Te.overflowY==="auto"||Te.overflowY==="scroll")break;K=K.parentElement}K&&K!==document.body?document.getElementById("main-content")?(F.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ze;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ze=F.textContent)==null?void 0:ze.trim(),id:F.id}}))},100)):F.scrollIntoView({behavior:"auto",block:"start"}):F.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}tr(()=>{window.addEventListener("mobileAnchorNavigate",l);const T=()=>{u()};window.addEventListener("closeMobileMenu",T);const P=me=>{const Ke=me,{isMobile:K}=Ke.detail;K&&Ie.setExpanded(!1)};window.addEventListener("layoutTransition",P);const F=me=>{me.key==="Escape"&&i()&&u()};return window.addEventListener("keydown",F),()=>{window.removeEventListener("mobileAnchorNavigate",l),window.removeEventListener("closeMobileMenu",T),window.removeEventListener("layoutTransition",P),window.removeEventListener("keydown",F)}});function u(){Ie.setExpanded(!1)}ui();var d=Ls(),f=Ye(d);{var c=T=>{var P=Ts();W("click",P,u),W("keydown",P,F=>{(F.key==="Enter"||F.key===" ")&&u()}),I(T,P)};he(f,T=>{i()&&T(c)})}var v=X(f,2);let b;var g=S(v),y=S(g),m=S(y);ur(m,{width:75,height:22}),C(y);var h=X(y,2),p=S(h);$i(p),C(h),C(g);var w=X(g,2),x=S(w);{var L=T=>{var P=zs(),F=S(P);rr(F,t,"default",{}),C(P),I(T,P)},$=T=>{var P=Ms();I(T,P)};he(x,T=>{o()&&o()!=="discover"?T(L):T($,!1)})}C(w),C(v),li(v,T=>q(s,T),()=>E(s)),ft(T=>b=be(v,1,"mobile-side-menu svelte-1xj1twt",null,b,T),[()=>({open:i()})],Bt),W("click",h,u),I(e,d),Z(),n()}B(Ni,{},["default"],[],!0);function Ii(e,t){Ni(e,{children:(r,n)=>{var i=Ut(),o=Ye(i);rr(o,t,"default",{}),I(r,i)},$$slots:{default:!0}})}customElements.define("graymatter-mobile-side-menu",B(Ii,{},["default"],[],!0));var As=ve('<nav class="mobile-top-nav svelte-1u5nbcr" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-1u5nbcr"><!> <span class="brand-text svelte-1u5nbcr"> </span></div> <button class="profile-button svelte-1u5nbcr" aria-label="Open profile menu" part="profile-button"><div class="user-profile-container svelte-1u5nbcr"><div class="user-profile-icon svelte-1u5nbcr" part="user-profile-icon"><span class="user-initials svelte-1u5nbcr">ZW</span></div></div></button></nav>');const Os={hash:"svelte-1u5nbcr",code:`.user-profile-container.svelte-1u5nbcr,
35
+ .user-profile-icon.svelte-1u5nbcr {display:flex;align-items:center;justify-content:center;}.menu-button.svelte-1u5nbcr,
36
+ .profile-button.svelte-1u5nbcr {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color 0.2s ease;}.menu-button.svelte-1u5nbcr:disabled,
37
+ .menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;background-color:transparent;}.user-profile-icon.svelte-1u5nbcr {border-radius:var(--ai-size-6);background:var(--ai-color-steel-700);}.user-initials.svelte-1u5nbcr {color:var(--ai-color-white);text-align:center;font-weight:400;line-height:1.3;}.mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr) {width:var(--ai-size-40);height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}
38
+
39
+ /* MobileTopNav specific disabled state */.mobile-top-nav.svelte-1u5nbcr .menu-button.disabled:where(.svelte-1u5nbcr),
40
+ .mobile-top-nav.svelte-1u5nbcr .menu-button:where(.svelte-1u5nbcr):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-1u5nbcr {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-1u5nbcr {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.profile-button.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);}.profile-button.svelte-1u5nbcr:hover {background-color:var(--ai-color-neutral-100);}.mobile-top-nav.svelte-1u5nbcr .user-profile-icon:where(.svelte-1u5nbcr) {width:var(--ai-size-32);height:var(--ai-size-32);border-radius:0.3125rem;}.mobile-top-nav.svelte-1u5nbcr .user-initials:where(.svelte-1u5nbcr) {font-size:var(--ai-size-14);line-height:1;}.user-profile-container.svelte-1u5nbcr {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.user-profile-icon.svelte-1u5nbcr {padding:0.5556rem 0.4931rem 0.5694rem 0.3819rem;}.user-initials.svelte-1u5nbcr {font-size:var(--ai-size-16);font-style:normal;}.menu-button.svelte-1u5nbcr {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity 0.2s ease;will-change:opacity;}.menu-button.disabled.svelte-1u5nbcr {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-1u5nbcr:focus {outline:none;}`};function Ti(e,t){Y(t,!1),pt(e,Os);const[r,n]=Ot(),i=()=>pe(tt,"$selectedSubNavItemTitle",r),o=()=>pe(Vr,"$isMenuButtonDisabled",r);let s=k(t,"onProfileClick",12,void 0);tr(()=>{const p=L=>{if(window.innerWidth<=640)return;const $=L;$.detail&&$.detail.title&&(tt.set($.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify($.detail.title)))},w=()=>{if(typeof window>"u")return;const L=document.getElementById("main-content");if(!L)return;const $=L.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if($&&$.textContent){const T=$.textContent.trim();i()||(tt.set(T),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(T)))}};window.addEventListener("sectionVisible",p);const x=sessionStorage.getItem("subNav-selectedTitle");return(!x||x==='""'||x==="null")&&setTimeout(()=>{w()},100),()=>{window.removeEventListener("sectionVisible",p)}});function a(){Ie.toggleExpanded()}function l(){var p;(p=s())==null||p()}ui();var u=As(),d=S(u);let f;var c=S(d);Zr(c,{}),C(d);var v=X(d,2),b=S(v);ur(b,{width:75,height:22});var g=X(b,2),y=S(g,!0);C(g),C(v);var m=X(v,2);C(u),ft(p=>{f=be(d,1,"menu-button svelte-1u5nbcr",null,f,p),d.disabled=o(),Lr(y,i()||"")},[()=>({disabled:o()})],Bt),W("click",d,a),W("click",m,l),I(e,u);var h=Z({get onProfileClick(){return s()},set onProfileClick(p){s(p),_()}});return n(),h}B(Ti,{onProfileClick:{}},[],[],!0);function zi(e,t){Y(t,!0);let r=k(t,"onMenuToggle",7);return Ti(e,{get onMenuToggle(){return r()}}),Z({get onMenuToggle(){return r()},set onMenuToggle(n){r(n),_()}})}customElements.define("graymatter-mobile-top-nav",B(zi,{onMenuToggle:{}},[],[],!0)),z.Button=hi,z.DesktopHeader=wi,z.DesktopSideNav=yi,z.Logo=xi,z.MobileBottomNav=Si,z.MobileSideMenu=Ii,z.MobileTopNav=zi,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"})});
package/index.ts CHANGED
@@ -4,3 +4,4 @@ export * from './src/helpers';
4
4
  export * from './src/component-options';
5
5
  export * from './src/stores/navigationStore';
6
6
  export * from './src/stores/subNavReadyStore';
7
+ export * from './src/utils';
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@gsa-tts/graymatter-ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "exports": {
9
9
  ".": "./index.ts",
10
+ "./graymatter-ui.js": "./dist/graymatter-ui.js",
11
+ "./graymatter-ui.umd.cjs": "./dist/graymatter-ui.umd.cjs",
10
12
  "./stores/navigationStore": "./src/stores/navigationStore.ts",
11
13
  "./stores/subNavReadyStore": "./src/stores/subNavReadyStore.ts",
12
14
  "./assets/*": "./assets/*",
@@ -18,6 +20,8 @@
18
20
  "./constants": "./src/constants/index.ts",
19
21
  "./helpers": "./src/helpers/index.ts",
20
22
  "./helpers/*": "./src/helpers/*",
23
+ "./utils": "./src/utils/index.ts",
24
+ "./utils/*": "./src/utils/*",
21
25
  "./layouts/*": "./src/layouts/*",
22
26
  "./static/*": "./static/*",
23
27
  "./styles": "./src/styles/index.ts",
@@ -51,19 +55,19 @@
51
55
  "typescript": "5.7.3",
52
56
  "vitest": "^3.0.7",
53
57
  "vite": "^6.3.5",
58
+ "@gsa-tts/graymatter-eslint": "0.0.1",
54
59
  "@gsa-tts/graymatter-typescript-config": "0.0.1",
55
- "@gsa-tts/graymatter-vitest-config": "0.0.1",
56
- "@gsa-tts/graymatter-eslint": "0.0.1"
60
+ "@gsa-tts/graymatter-vitest-config": "0.0.1"
57
61
  },
58
62
  "dependencies": {
59
63
  "@fontsource-variable/archivo": "^5.2.6",
60
64
  "@uswds/uswds": "3.12.0",
61
65
  "astro": "^5.11.0",
62
66
  "slugify": "^1.6.6",
63
- "@gsa-tts/graymatter-style-tokens": "0.0.2"
67
+ "@gsa-tts/graymatter-style-tokens": "0.2.1"
64
68
  },
65
69
  "scripts": {
66
- "build": "gulp update",
70
+ "build": "gulp update && vite build",
67
71
  "lint": "eslint . --max-warnings 0",
68
72
  "check-types": "tsc --noEmit",
69
73
  "test": "vitest run"
@@ -1,15 +1,3 @@
1
- <svelte:options customElement={{
2
- tag: 'ai-button',
3
- props: {
4
- variant: { reflect: true, type: 'String', attribute: 'variant' },
5
- theme: { reflect: true, type: 'String', attribute: 'theme' },
6
- href: { reflect: true, type: 'String', attribute: 'href' },
7
- disabled: { reflect: true, type: 'Boolean', attribute: 'disabled' },
8
- size: { reflect: true, type: 'String', attribute: 'size' },
9
- type: { reflect: true, type: 'String', attribute: 'type' }
10
- }
11
- }} />
12
-
13
1
  <script lang="ts">
14
2
  interface Props {
15
3
  variant?: 'primary' | 'secondary';
@@ -19,7 +7,7 @@
19
7
  size: 'small' | 'medium' | 'large';
20
8
  type?: 'button' | 'submit' | 'reset';
21
9
  onclick?: (event: MouseEvent) => void;
22
- children: import('svelte').Snippet;
10
+ children?: string | null;
23
11
  class?: string;
24
12
  [key: `data-${string}`]: string;
25
13
  [key: `aria-${string}`]: string;
@@ -31,10 +19,11 @@
31
19
  href = null,
32
20
  disabled = false,
33
21
  onclick,
34
- children,
22
+ children = null,
35
23
  size = 'medium',
36
24
  type = 'button',
37
25
  class: className = '',
26
+ // eslint-disable-next-line svelte/valid-compile
38
27
  ...props
39
28
  }: Props = $props();
40
29
 
@@ -64,7 +53,7 @@
64
53
  {onclick}
65
54
  {...props}
66
55
  >
67
- {@render children()}
56
+ {@render children?.()}
68
57
  </a>
69
58
  {:else}
70
59
  <button
@@ -74,13 +63,12 @@
74
63
  {onclick}
75
64
  {...props}
76
65
  >
77
- {@render children()}
66
+ {@render children?.()}
78
67
  </button>
79
68
  {/if}
80
69
 
81
-
82
70
  <style>
83
- :root {
71
+ :root, :host {
84
72
  /* global button */
85
73
  --ai-button-radius: var(--ai-radius-round);
86
74
  --ai-button-padding-x: 2rem;
@@ -109,7 +97,7 @@
109
97
  --ai-button-text-inverted-disabled: var(--ai-color-neutral-900);
110
98
  --ai-button-border-inverted-rest: none;
111
99
  --ai-button-border-inverted-hover: none;
112
-
100
+
113
101
  /* unstyled */
114
102
  --ai-button-text-unstyled-disabled: var(--ai-color-neutral-700);
115
103
  --ai-button-text-unstyled-inverted-disabled: var(--ai-color-neutral-700);
@@ -145,7 +133,7 @@
145
133
  background-color: var(--ai-button-background-primary-hover);
146
134
  color: var(--ai-button-text-primary-hover);
147
135
  }
148
-
136
+
149
137
  .ai-button--small {
150
138
  --ai-button-padding-x: var(--ai-size-24);
151
139
  --ai-button-padding-y: var(--ai-size-8);
@@ -220,7 +208,7 @@
220
208
  color: var(--ai-button-text-primary-disabled);
221
209
  cursor: not-allowed;
222
210
  }
223
-
211
+
224
212
  .ai-button--inverted:is(.disabled, [disabled], [aria-disabled=true]) {
225
213
  background: var(--ai-button-background-inverted-disabled);
226
214
  color: var(--ai-button-text-inverted-disabled);
@@ -231,12 +219,12 @@
231
219
  box-shadow: var(--ai-button-box-shadow) var(--ai-color-neutral-700);
232
220
  color: var(--ai-color-neutral-700);
233
221
  }
234
-
222
+
235
223
  .ai-button--outline-inverted:is(.disabled, [disabled], [aria-disabled=true]) {
236
224
  box-shadow: var(--ai-button-box-shadow) var(--ai-color-neutral-200);
237
225
  color: var(--ai-color-neutral-600);
238
226
  }
239
-
227
+
240
228
  .ai-button--unstyled:is(.disabled, [disabled], [aria-disabled=true]) {
241
229
  background: none;
242
230
  color: inherit;
@@ -0,0 +1,44 @@
1
+ <svelte:options customElement={{
2
+ tag: 'graymatter-button',
3
+ props: {
4
+ variant: { reflect: true, type: 'String', attribute: 'variant' },
5
+ theme: { reflect: true, type: 'String', attribute: 'theme' },
6
+ href: { reflect: true, type: 'String', attribute: 'href' },
7
+ disabled: { reflect: true, type: 'Boolean', attribute: 'disabled' },
8
+ size: { reflect: true, type: 'String', attribute: 'size' },
9
+ type: { reflect: true, type: 'String', attribute: 'type' }
10
+ }
11
+ }} />
12
+
13
+ <script lang="ts">
14
+ import Button from './Button.svelte';
15
+
16
+ // Props for the web component
17
+ let {
18
+ variant = 'primary',
19
+ theme = 'default',
20
+ href = null,
21
+ disabled = false,
22
+ size = 'medium',
23
+ type = 'button',
24
+ onclick,
25
+ children = null,
26
+ class: className = '',
27
+ ...props
28
+ } = $props();
29
+ </script>
30
+
31
+ <Button
32
+ {variant}
33
+ {theme}
34
+ {href}
35
+ {disabled}
36
+ {size}
37
+ {type}
38
+ {onclick}
39
+ {children}
40
+ class={className}
41
+ {...props}
42
+ >
43
+ <slot />
44
+ </Button>
@@ -1,6 +1,5 @@
1
1
  <script lang="ts">
2
2
  import { selectedItem, isExpanded, selectedSubNavItemTitle } from '../stores/navigationStore.js';
3
- import Logo from './Logo.svelte';
4
3
  import { onMount } from 'svelte';
5
4
  import { subNavReady } from '../stores/subNavReadyStore';
6
5
 
@@ -62,28 +61,41 @@ onMount(() => {
62
61
  });
63
62
  </script>
64
63
 
65
- {#if showHeader()}
66
- <div class="global-header">
67
- <div class="header-content">
68
- <Logo width={75} height={22} />
69
- <span class="header-text">{headerText()}</span>
70
- </div>
64
+ <div class="global-header" class:visible={showHeader()} part="global-header">
65
+ <div class="header-content" part="header-content">
66
+ <span class="header-text">{headerText()}</span>
71
67
  </div>
72
- {/if}
68
+ </div>
73
69
 
74
70
  <style>
75
71
  .global-header {
76
- transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
72
+ opacity: 0;
73
+ transition: opacity 0.2s;
77
74
  }
78
-
79
- /* Optional: Add a subtle slide effect */
80
- .global-header {
81
- transform: translateY(0);
75
+ .global-header.visible {
76
+ opacity: 1;
77
+ transition: opacity 0.2s;
82
78
  }
83
-
84
- /* When hiding, we can add a subtle slide up effect */
85
- .global-header:not(:defined) {
86
- opacity: 0;
87
- transform: translateY(-10px);
79
+ .header-content {
80
+ display: flex;
81
+ align-items: center;
82
+ gap: var(--ai-size-16);
83
+ background: var(--ai-color-white);
84
+ height: var(--ai-size-56);
85
+ padding: 0 5.8rem;
86
+ }
87
+
88
+ .header-content {
89
+ display: flex;
90
+ align-items: center;
91
+ gap: var(--ai-size-16);
92
+ align-self: stretch;
93
+ }
94
+
95
+ .header-text {
96
+ color: var(--ai-color-black);
97
+ font-size: var(--ai-size-16);
98
+ font-weight: 400;
99
+ line-height: 1.3;
88
100
  }
89
101
  </style>