@gsa-tts/graymatter-ui 0.4.8 → 0.4.10
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.
- package/dist/graymatter-ui.js +2063 -1956
- package/dist/graymatter-ui.umd.cjs +27 -22
- package/package.json +3 -3
- package/src/components/DesktopSideNav.svelte +47 -19
- package/src/components/MobileTopNav.svelte +74 -1
- package/src/components/MobileTopNav.webcomponent.svelte +8 -2
- package/src/components/icons/HelpIcon.svelte +2 -2
- package/src/layouts/DocsLayout.astro +2 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function($,K){typeof exports=="object"&&typeof module<"u"?K(exports):typeof define=="function"&&define.amd?define(["exports"],K):($=typeof globalThis<"u"?globalThis:$||self,K($.graymatter={}))})(this,function($){"use strict";var wl=Object.defineProperty;var ao=$=>{throw TypeError($)};var _l=($,K,se)=>K in $?wl($,K,{enumerable:!0,configurable:!0,writable:!0,value:se}):$[K]=se;var Ie=($,K,se)=>_l($,typeof K!="symbol"?K+"":K,se),so=($,K,se)=>K.has($)||ao("Cannot "+se);var Ce=($,K,se)=>(so($,K,"read from private field"),se?se.call($):K.get($)),_n=($,K,se)=>K.has($)?ao("Cannot add the same private member more than once"):K instanceof WeakSet?K.add($):K.set($,se),yn=($,K,se,yt)=>(so($,K,"write to private field"),yt?yt.call($,se):K.set($,se),se);var Gi,nt,Ue;typeof window<"u"&&((Gi=window.__svelte??(window.__svelte={})).v??(Gi.v=new Set)).add("5");const se=1,yt=2,kn=4,lo=8,uo=16,co=1,vo=2,xn=4,fo=8,ho=16,Cn=1,bo=2,Ir="[",Nr="[!",Tr="]",kt={},ye=Symbol(),go="http://www.w3.org/1999/xhtml",po="@attach",En=!1;var or=Array.isArray,mo=Array.prototype.indexOf,Dr=Array.from,ar=Object.keys,At=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyDescriptors,wo=Object.prototype,_o=Array.prototype,$r=Object.getPrototypeOf,Ln=Object.isExtensible;function Ut(e){return typeof e=="function"}const ot=()=>{};function yo(e){return e()}function Ht(e){for(var t=0;t<e.length;t++)e[t]()}const Ne=2,Ar=4,Ot=8,Ur=16,Ge=32,ht=64,Hr=128,Ee=256,sr=512,Se=1024,Xe=2048,at=4096,Qe=8192,Or=16384,zn=32768,lr=65536,Mn=1<<17,ko=1<<18,In=1<<19,qr=1<<20,Vr=1<<21,je=Symbol("$state"),Pr=Symbol("legacy props"),xo=Symbol(""),Nn=new class extends Error{constructor(){super(...arguments);Ie(this,"name","StaleReactionError");Ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Tn=3,qt=8;function Dn(e){return e===this.v}function $n(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function An(e){return!$n(e,this.v)}function Co(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Eo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function So(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Lo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zo(){throw new Error("https://svelte.dev/e/hydration_failed")}function Mo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Io(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function No(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function To(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let xt=!1,Do=!1;function $o(){xt=!0}function Ao(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let W=null;function Un(e){W=e}function X(e,t=!1,r){var n=W={p:W,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};xt&&!t&&(W.l={s:null,u:null,r1:[],r2:St(!1)}),dr(()=>{n.d=!0})}function Q(e){const t=W;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=B,n=q;t.e=null;try{for(var i=0;i<s.length;i++){var o=s[i];lt(o.effect),Ke(o.reaction),Gn(o.fn)}}finally{lt(r),Ke(n)}}W=t.p,t.m=!0}return e||{}}function ur(){return!xt||W!==null&&W.l===null}function Ct(e){if(typeof e!="object"||e===null||je in e)return e;const t=$r(e);if(t!==wo&&t!==_o)return e;var r=new Map,n=or(e),i=pe(0),o=q,s=a=>{var l=q;Ke(o);var u=a();return Ke(l),u};return n&&r.set("length",pe(e.length)),new Proxy(e,{defineProperty(a,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Io();var f=r.get(l);return f===void 0?f=s(()=>{var d=pe(u.value);return r.set(l,d),d}):U(f,u.value,!0),!0},deleteProperty(a,l){var u=r.get(l);if(u===void 0){if(l in a){const c=s(()=>pe(ye));r.set(l,c),Rr(i)}}else{if(n&&typeof l=="string"){var f=r.get("length"),d=Number(l);Number.isInteger(d)&&d<f.v&&U(f,d)}U(u,ye),Rr(i)}return!0},get(a,l,u){var v;if(l===je)return e;var f=r.get(l),d=l in a;if(f===void 0&&(!d||(v=We(a,l))!=null&&v.writable)&&(f=s(()=>{var h=Ct(d?a[l]:ye),k=pe(h);return k}),r.set(l,f)),f!==void 0){var c=w(f);return c===ye?void 0:c}return Reflect.get(a,l,u)},getOwnPropertyDescriptor(a,l){var u=Reflect.getOwnPropertyDescriptor(a,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=w(f))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==ye)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(a,l){var c;if(l===je)return!0;var u=r.get(l),f=u!==void 0&&u.v!==ye||Reflect.has(a,l);if(u!==void 0||B!==null&&(!f||(c=We(a,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=f?Ct(a[l]):ye,h=pe(v);return h}),r.set(l,u));var d=w(u);if(d===ye)return!1}return f},set(a,l,u,f){var b;var d=r.get(l),c=l in a;if(n&&l==="length")for(var v=u;v<d.v;v+=1){var h=r.get(v+"");h!==void 0?U(h,ye):v in a&&(h=s(()=>pe(ye)),r.set(v+"",h))}if(d===void 0)(!c||(b=We(a,l))!=null&&b.writable)&&(d=s(()=>pe(void 0)),U(d,Ct(u)),r.set(l,d));else{c=d.v!==ye;var k=s(()=>Ct(u));U(d,k)}var E=Reflect.getOwnPropertyDescriptor(a,l);if(E!=null&&E.set&&E.set.call(f,u),!c){if(n&&typeof l=="string"){var z=r.get("length"),p=Number(l);Number.isInteger(p)&&p>=z.v&&U(z,p+1)}Rr(i)}return!0},ownKeys(a){w(i);var l=Reflect.ownKeys(a).filter(d=>{var c=r.get(d);return c===void 0||c.v!==ye});for(var[u,f]of r)f.v!==ye&&!(u in a)&&l.push(u);return l},setPrototypeOf(){No()}})}function Rr(e,t=1){U(e,e.v+t)}function Hn(e){try{if(e!==null&&typeof e=="object"&&je in e)return e[je]}catch{}return e}function Uo(e,t){return Object.is(Hn(e),Hn(t))}function Et(e){var t=Ne|Xe,r=q!==null&&(q.f&Ne)!==0?q:null;return B===null||r!==null&&(r.f&Ee)!==0?t|=Ee:B.f|=In,{ctx:W,deps:null,effects:null,equals:Dn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??B,ac:null}}function ie(e){const t=Et(e);return ai(t),t}function On(e){const t=Et(e);return t.equals=An,t}function qn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)De(t[r])}}function Ho(e){for(var t=e.parent;t!==null;){if((t.f&Ne)===0)return t;t=t.parent}return null}function Vn(e){var t,r=B;lt(Ho(e));try{qn(e),t=ui(e)}finally{lt(r)}return t}function Pn(e){var t=Vn(e);if(e.equals(t)||(e.v=t,e.wv=si()),!It){var r=(ut||(e.f&Ee)!==0)&&e.deps!==null?at:Se;Ve(e,r)}}const Vt=new Map;function St(e,t){var r={f:0,v:e,reactions:null,equals:Dn,rv:0,wv:0};return r}function pe(e,t){const r=St(e);return ai(r),r}function bt(e,t=!1,r=!0){var i;const n=St(e);return t||(n.equals=An),xt&&r&&W!==null&&W.l!==null&&((i=W.l).s??(i.s=[])).push(n),n}function Oo(e,t){return U(e,qe(()=>w(e))),t}function U(e,t,r=!1){q!==null&&(!Ye||(q.f&Mn)!==0)&&ur()&&(q.f&(Ne|Ur|Mn))!==0&&!((oe==null?void 0:oe.reaction)===q&&oe.sources.includes(e))&&To();let n=r?Ct(t):t;return Br(e,n)}function Br(e,t){if(!e.equals(t)){var r=e.v;It?Vt.set(e,t):Vt.set(e,r),e.v=t,(e.f&Ne)!==0&&((e.f&Xe)!==0&&Vn(e),Ve(e,(e.f&Ee)===0?Se:at)),e.wv=si(),Bn(e,Xe),ur()&&B!==null&&(B.f&Se)!==0&&(B.f&(Ge|ht))===0&&($e===null?Go([e]):$e.push(e))}return t}function Rn(e,t=1){var r=w(e),n=t===1?r++:r--;return U(e,r),n}function Bn(e,t){var r=e.reactions;if(r!==null)for(var n=ur(),i=r.length,o=0;o<i;o++){var s=r[o],a=s.f;(a&Xe)===0&&(!n&&s===B||(Ve(s,t),(a&(Se|Ee))!==0&&((a&Ne)!==0?Bn(s,at):mr(s))))}}function cr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qo(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let H=!1;function He(e){H=e}let R;function Oe(e){if(e===null)throw cr(),kt;return R=e}function Lt(){return Oe(et(R))}function C(e){if(H){if(et(R)!==null)throw cr(),kt;R=e}}function Fe(e=1){if(H){for(var t=e,r=R;t--;)r=et(r);R=r}}function jr(){for(var e=0,t=R;;){if(t.nodeType===qt){var r=t.data;if(r===Tr){if(e===0)return t;e-=1}else(r===Ir||r===Nr)&&(e+=1)}var n=et(t);t.remove(),t=n}}function jn(e){if(!e||e.nodeType!==qt)throw cr(),kt;return e.data}var Fn,Zn,Yn,Kn;function Fr(){if(Fn===void 0){Fn=window,Zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Yn=We(t,"firstChild").get,Kn=We(t,"nextSibling").get,Ln(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ln(r)&&(r.__t=void 0)}}function zt(e=""){return document.createTextNode(e)}function Te(e){return Yn.call(e)}function et(e){return Kn.call(e)}function S(e,t){if(!H)return Te(e);var r=Te(R);if(r===null)r=R.appendChild(zt());else if(t&&r.nodeType!==Tn){var n=zt();return r==null||r.before(n),Oe(n),n}return Oe(r),r}function Ze(e,t){if(!H){var r=Te(e);return r instanceof Comment&&r.data===""?et(r):r}return R}function ue(e,t=1,r=!1){let n=H?R:e;for(var i;t--;)i=n,n=et(n);if(!H)return n;if(r&&(n==null?void 0:n.nodeType)!==Tn){var o=zt();return n===null?i==null||i.after(o):n.before(o),Oe(o),o}return Oe(n),n}function Jn(e){e.textContent=""}function Wn(e){B===null&&q===null&&So(),q!==null&&(q.f&Ee)!==0&&B===null&&Eo(),It&&Co()}function Vo(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function tt(e,t,r,n=!0){var i=B,o={ctx:W,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,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{pr(o),o.f|=zn}catch(l){throw De(o),l}else t!==null&&mr(o);var s=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&(In|Hr))===0;if(!s&&n&&(i!==null&&Vo(o,i),q!==null&&(q.f&Ne)!==0)){var a=q;(a.effects??(a.effects=[])).push(o)}return o}function dr(e){const t=tt(Ot,null,!1);return Ve(t,Se),t.teardown=e,t}function Zr(e){Wn();var t=B!==null&&(B.f&Ge)!==0&&W!==null&&!W.m;if(t){var r=W;(r.e??(r.e=[])).push({fn:e,effect:B,reaction:q})}else return Gn(e)}function Gn(e){return tt(Ar|Vr,e,!1)}function Po(e){return Wn(),tt(Ot|Vr,e,!0)}function Ro(e){const t=tt(ht,e,!0);return()=>{De(t)}}function Bo(e){const t=tt(ht,e,!0);return(r={})=>new Promise(n=>{r.outro?Pt(t,()=>{De(t),n(void 0)}):(De(t),n(void 0))})}function Yr(e){return tt(Ar,e,!1)}function jo(e,t){var r=W,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=vr(()=>{e(),!n.ran&&(n.ran=!0,U(r.l.r2,!0),qe(t))})}function Fo(){var e=W;vr(()=>{if(w(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&Se)!==0&&Ve(r,at),Yt(r)&&pr(r),t.ran=!1}e.l.r2.v=!1}})}function vr(e){return tt(Ot,e,!0)}function be(e,t=[],r=Et){const n=t.map(r);return Mt(()=>e(...n.map(w)))}function Mt(e,t=0){var r=tt(Ot|Ur|t,e,!0);return r}function st(e,t=!0){return tt(Ot|Ge,e,!0,t)}function Xn(e){var t=e.teardown;if(t!==null){const r=It,n=q;oi(!0),Ke(null);try{t.call(null)}finally{oi(r),Ke(n)}}}function Qn(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(Nn);var n=r.next;(r.f&ht)!==0?r.parent=null:De(r,t),r=n}}function Zo(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&De(t),t=r}}function De(e,t=!0){var r=!1;(t||(e.f&ko)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Yo(e.nodes_start,e.nodes_end),r=!0),Qn(e,t&&!r),gr(e,0),Ve(e,Or);var n=e.transitions;if(n!==null)for(const o of n)o.stop();Xn(e);var i=e.parent;i!==null&&i.first!==null&&ei(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Yo(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function ei(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 Pt(e,t){var r=[];Kr(e,r,!0),ti(r,()=>{De(e),t&&t()})}function ti(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Kr(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,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&lr)!==0||(n.f&Ge)!==0;Kr(n,t,o?r:!1),n=i}}}function fr(e){ri(e,!0)}function ri(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&lr)!==0||(r.f&Ge)!==0;ri(r,i?t:!1),r=n}if(e.transitions!==null)for(const o of e.transitions)(o.is_global||t)&&o.in()}}let Rt=[],Jr=[];function ni(){var e=Rt;Rt=[],Ht(e)}function Ko(){var e=Jr;Jr=[],Ht(e)}function Bt(e){Rt.length===0&&queueMicrotask(ni),Rt.push(e)}function Jo(){Rt.length>0&&ni(),Jr.length>0&&Ko()}function Wo(e){var t=B;if((t.f&zn)===0){if((t.f&Hr)===0)throw e;t.fn(e)}else ii(e,t)}function ii(e,t){for(;t!==null;){if((t.f&Hr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let jt=!1,Ft=null,gt=!1,It=!1;function oi(e){It=e}let Zt=[],yl=[],q=null,Ye=!1;function Ke(e){q=e}let B=null;function lt(e){B=e}let oe=null;function ai(e){q!==null&&q.f&qr&&(oe===null?oe={reaction:q,sources:[e]}:oe.sources.push(e))}let me=null,Le=0,$e=null;function Go(e){$e=e}let hr=1,br=0,ut=!1;function si(){return++hr}function Yt(e){var d;var t=e.f;if((t&Xe)!==0)return!0;if((t&at)!==0){var r=e.deps,n=(t&Ee)!==0;if(r!==null){var i,o,s=(t&sr)!==0,a=n&&B!==null&&!ut,l=r.length;if(s||a){var u=e,f=u.parent;for(i=0;i<l;i++)o=r[i],(s||!((d=o==null?void 0:o.reactions)!=null&&d.includes(u)))&&(o.reactions??(o.reactions=[])).push(u);s&&(u.f^=sr),a&&f!==null&&(f.f&Ee)===0&&(u.f^=Ee)}for(i=0;i<l;i++)if(o=r[i],Yt(o)&&Pn(o),o.wv>e.wv)return!0}(!n||B!==null&&!ut)&&Ve(e,Se)}return!1}function li(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var o=n[i];(oe==null?void 0:oe.reaction)===q&&oe.sources.includes(e)||((o.f&Ne)!==0?li(o,t,!1):t===o&&(r?Ve(o,Xe):(o.f&Se)!==0&&Ve(o,at),mr(o)))}}function ui(e){var v;var t=me,r=Le,n=$e,i=q,o=ut,s=oe,a=W,l=Ye,u=e.f;me=null,Le=0,$e=null,ut=(u&Ee)!==0&&(Ye||!gt||q===null),q=(u&(Ge|ht))===0?e:null,oe=null,Un(e.ctx),Ye=!1,br++,e.f|=qr,e.ac!==null&&(e.ac.abort(Nn),e.ac=null);try{var f=(0,e.fn)(),d=e.deps;if(me!==null){var c;if(gr(e,Le),d!==null&&Le>0)for(d.length=Le+me.length,c=0;c<me.length;c++)d[Le+c]=me[c];else e.deps=d=me;if(!ut||(u&Ne)!==0&&e.reactions!==null)for(c=Le;c<d.length;c++)((v=d[c]).reactions??(v.reactions=[])).push(e)}else d!==null&&Le<d.length&&(gr(e,Le),d.length=Le);if(ur()&&$e!==null&&!Ye&&d!==null&&(e.f&(Ne|at|Xe))===0)for(c=0;c<$e.length;c++)li($e[c],e);return i!==null&&i!==e&&(br++,$e!==null&&(n===null?n=$e:n.push(...$e))),f}catch(h){Wo(h)}finally{me=t,Le=r,$e=n,q=i,ut=o,oe=s,Un(a),Ye=l,e.f^=qr}}function Xo(e,t){let r=t.reactions;if(r!==null){var n=mo.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&Ne)!==0&&(me===null||!me.includes(t))&&(Ve(t,at),(t.f&(Ee|sr))===0&&(t.f^=sr),qn(t),gr(t,0))}function gr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Xo(e,r[n])}function pr(e){var t=e.f;if((t&Or)===0){Ve(e,Se);var r=B,n=gt;B=e,gt=!0;try{(t&Ur)!==0?Zo(e):Qn(e),Xn(e);var i=ui(e);e.teardown=typeof i=="function"?i:null,e.wv=hr;var o;En&&Do&&(e.f&Xe)!==0&&e.deps}finally{gt=n,B=r}}}function Qo(){try{Lo()}catch(e){if(Ft!==null)ii(e,Ft);else throw e}}function ci(){var e=gt;try{var t=0;for(gt=!0;Zt.length>0;){t++>1e3&&Qo();var r=Zt,n=r.length;Zt=[];for(var i=0;i<n;i++){var o=ta(r[i]);ea(o)}Vt.clear()}}finally{jt=!1,gt=e,Ft=null}}function ea(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Or|Qe))===0&&Yt(n)){var i=hr;if(pr(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?ei(n):n.fn=null),hr>i&&(n.f&Vr)!==0)break}}for(;r<t;r+=1)mr(e[r])}}function mr(e){jt||(jt=!0,queueMicrotask(ci));for(var t=Ft=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(ht|Ge))!==0){if((r&Se)===0)return;t.f^=Se}}Zt.push(t)}function ta(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|ht))!==0,o=i&&(n&Se)!==0;if(!o&&(n&Qe)===0){(n&Ar)!==0?t.push(r):i?r.f^=Se:Yt(r)&&pr(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 jt=!1,Ft=null,t;jt=!0,ci()}}function w(e){var t=e.f,r=(t&Ne)!==0;if(q!==null&&!Ye){if((oe==null?void 0:oe.reaction)!==q||!(oe!=null&&oe.sources.includes(e))){var n=q.deps;e.rv<br&&(e.rv=br,me===null&&n!==null&&n[Le]===e?Le++:me===null?me=[e]:(!ut||!me.includes(e))&&me.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,o=i.parent;o!==null&&(o.f&Ee)===0&&(i.f^=Ee)}return r&&(i=e,Yt(i)&&Pn(i)),It&&Vt.has(e)?Vt.get(e):e.v}function qe(e){var t=Ye;try{return Ye=!0,e()}finally{Ye=t}}const ra=-7169;function Ve(e,t){e.f=e.f&ra|t}function di(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(je in e)Wr(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&je in r&&Wr(r)}}}function Wr(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{Wr(e[n],t)}catch{}const r=$r(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Sn(r);for(let i in n){const o=n[i].get;if(o)try{o.call(e)}catch{}}}}}function na(e,t){if(t){const r=document.body;e.autofocus=!0,Bt(()=>{document.activeElement===r&&e.focus()})}}function ia(e){var t=q,r=B;Ke(null),lt(null);try{return e()}finally{Ke(t),lt(r)}}const vi=new Set,Gr=new Set;function fi(e,t,r,n={}){function i(o){if(n.capture||Jt.call(t,o),!o.cancelBubble)return ia(()=>r==null?void 0:r.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Bt(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ge(e,t,r,n,i){var o={capture:n,passive:i},s=fi(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&dr(()=>{t.removeEventListener(e,s,o)})}function Kt(e){for(var t=0;t<e.length;t++)vi.add(e[t]);for(var r of Gr)r(e)}function Jt(e){var p;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],o=i[0]||e.target,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){At(e,"currentTarget",{configurable:!0,get(){return o||r}});var f=q,d=B;Ke(null),lt(null);try{for(var c,v=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var k=o["__"+n];if(k!=null&&(!o.disabled||e.target===o))if(or(k)){var[E,...z]=k;E.apply(o,[e,...z])}else k.call(o,e)}catch(b){c?v.push(b):c=b}if(e.cancelBubble||h===t||h===null)break;o=h}if(c){for(let b of v)queueMicrotask(()=>{throw b});throw c}}finally{e.__root=t,delete e.currentTarget,Ke(f),lt(d)}}}function hi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=B;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ee(e,t){var r=(t&Cn)!==0,n=(t&bo)!==0,i,o=!e.startsWith("<!>");return()=>{if(H)return rt(R,null),R;i===void 0&&(i=hi(o?e:"<!>"+e),r||(i=Te(i)));var s=n||Zn?document.importNode(i,!0):i.cloneNode(!0);if(r){var a=Te(s),l=s.lastChild;rt(a,l)}else rt(s,s);return s}}function oa(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&Cn)!==0,o=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(H)return rt(R,null),R;if(!s){var a=hi(o),l=Te(a);if(i)for(s=document.createDocumentFragment();Te(l);)s.appendChild(Te(l));else s=Te(l)}var u=s.cloneNode(!0);if(i){var f=Te(u),d=u.lastChild;rt(f,d)}else rt(u,u);return u}}function te(e,t){return oa(e,t,"svg")}function pt(){if(H)return rt(R,null),R;var e=document.createDocumentFragment(),t=document.createComment(""),r=zt();return e.append(t,r),rt(t,r),e}function N(e,t){if(H){B.nodes_end=R,Lt();return}e!==null&&e.before(t)}function aa(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const sa=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function la(e){return sa.includes(e)}const ua={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 ca(e){return e=e.toLowerCase(),ua[e]??e}const da=["touchstart","touchmove"];function va(e){return da.includes(e)}function Wt(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 bi(e,t){return gi(e,t)}function fa(e,t){Fr(),t.intro=t.intro??!1;const r=t.target,n=H,i=R;try{for(var o=Te(r);o&&(o.nodeType!==qt||o.data!==Ir);)o=et(o);if(!o)throw kt;He(!0),Oe(o),Lt();const s=gi(e,{...t,anchor:o});if(R===null||R.nodeType!==qt||R.data!==Tr)throw cr(),kt;return He(!1),s}catch(s){if(s===kt)return t.recover===!1&&zo(),Fr(),Jn(r),He(!1),bi(e,t);throw s}finally{He(n),Oe(i)}}const Nt=new Map;function gi(e,{target:t,anchor:r,props:n={},events:i,context:o,intro:s=!0}){Fr();var a=new Set,l=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!a.has(v)){a.add(v);var h=va(v);t.addEventListener(v,Jt,{passive:h});var k=Nt.get(v);k===void 0?(document.addEventListener(v,Jt,{passive:h}),Nt.set(v,1)):Nt.set(v,k+1)}}};l(Dr(vi)),Gr.add(l);var u=void 0,f=Bo(()=>{var d=r??t.appendChild(zt());return st(()=>{if(o){X({});var c=W;c.c=o}i&&(n.$$events=i),H&&rt(d,null),u=e(d,n)||{},H&&(B.nodes_end=R),o&&Q()}),()=>{var h;for(var c of a){t.removeEventListener(c,Jt);var v=Nt.get(c);--v===0?(document.removeEventListener(c,Jt),Nt.delete(c)):Nt.set(c,v)}Gr.delete(l),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return Xr.set(u,f),u}let Xr=new WeakMap;function ha(e,t){const r=Xr.get(e);return r?(Xr.delete(e),r(t)):Promise.resolve()}function Gt(e){W===null&&Ao(),xt&&W.l!==null?ba(W).m.push(e):Zr(()=>{const t=qe(e);if(typeof t=="function")return t})}function ba(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function G(e,t,[r,n]=[0,0]){H&&r===0&&Lt();var i=e,o=null,s=null,a=ye,l=r>0?lr:0,u=!1;const f=(c,v=!0)=>{u=!0,d(v,c)},d=(c,v)=>{if(a===(a=c))return;let h=!1;if(H&&n!==-1){if(r===0){const E=jn(i);E===Ir?n=0:E===Nr?n=1/0:(n=parseInt(E.substring(1)),n!==n&&(n=a?1/0:-1))}const k=n>r;!!a===k&&(i=jr(),Oe(i),He(!1),h=!0,n=-1)}a?(o?fr(o):v&&(o=st(()=>v(i))),s&&Pt(s,()=>{s=null})):(s?fr(s):v&&(s=st(()=>v(i,[r+1,n]))),o&&Pt(o,()=>{o=null})),h&&He(!0)};Mt(()=>{u=!1,t(f),u||d(null,null)},l),H&&(i=R)}function ga(e,t){return t}function pa(e,t,r,n){for(var i=[],o=t.length,s=0;s<o;s++)Kr(t[s].e,i,!0);var a=o>0&&i.length===0&&r!==null;if(a){var l=r.parentNode;Jn(l),l.append(r),n.clear(),ct(e,t[0].prev,t[o-1].next)}ti(i,()=>{for(var u=0;u<o;u++){var f=t[u];a||(n.delete(f.k),ct(e,f.prev,f.next)),De(f.e,!a)}})}function pi(e,t,r,n,i,o=null){var s=e,a={flags:t,items:new Map,first:null},l=(t&kn)!==0;if(l){var u=e;s=H?Oe(Te(u)):u.appendChild(zt())}H&&Lt();var f=null,d=!1,c=On(()=>{var v=r();return or(v)?v:v==null?[]:Dr(v)});Mt(()=>{var v=w(c),h=v.length;if(d&&h===0)return;d=h===0;let k=!1;if(H){var E=jn(s)===Nr;E!==(h===0)&&(s=jr(),Oe(s),He(!1),k=!0)}if(H){for(var z=null,p,b=0;b<h;b++){if(R.nodeType===qt&&R.data===Tr){s=R,k=!0,He(!1);break}var g=v[b],m=n(g,b);p=mi(R,a,z,null,g,m,b,i,t,r),a.items.set(m,p),z=p}h>0&&Oe(jr())}H||ma(v,a,s,i,t,n,r),o!==null&&(h===0?f?fr(f):f=st(()=>o(s)):f!==null&&Pt(f,()=>{f=null})),k&&He(!0),w(c)}),H&&(s=R)}function ma(e,t,r,n,i,o,s){var D,j,ce,fe;var a=(i&lo)!==0,l=(i&(se|yt))!==0,u=e.length,f=t.items,d=t.first,c=d,v,h=null,k,E=[],z=[],p,b,g,m;if(a)for(m=0;m<u;m+=1)p=e[m],b=o(p,m),g=f.get(b),g!==void 0&&((D=g.a)==null||D.measure(),(k??(k=new Set)).add(g));for(m=0;m<u;m+=1){if(p=e[m],b=o(p,m),g=f.get(b),g===void 0){var L=c?c.e.nodes_start:r;h=mi(L,t,h,h===null?t.first:h.next,p,b,m,n,i,s),f.set(b,h),E=[],z=[],c=h.next;continue}if(l&&wa(g,p,m,i),(g.e.f&Qe)!==0&&(fr(g.e),a&&((j=g.a)==null||j.unfix(),(k??(k=new Set)).delete(g))),g!==c){if(v!==void 0&&v.has(g)){if(E.length<z.length){var T=z[0],O;h=T.prev;var M=E[0],A=E[E.length-1];for(O=0;O<E.length;O+=1)wi(E[O],T,r);for(O=0;O<z.length;O+=1)v.delete(z[O]);ct(t,M.prev,A.next),ct(t,h,M),ct(t,A,T),c=T,h=A,m-=1,E=[],z=[]}else v.delete(g),wi(g,c,r),ct(t,g.prev,g.next),ct(t,g,h===null?t.first:h.next),ct(t,h,g),h=g;continue}for(E=[],z=[];c!==null&&c.k!==b;)(c.e.f&Qe)===0&&(v??(v=new Set)).add(c),z.push(c),c=c.next;if(c===null)continue;g=c}E.push(g),h=g,c=g.next}if(c!==null||v!==void 0){for(var Z=v===void 0?[]:Dr(v);c!==null;)(c.e.f&Qe)===0&&Z.push(c),c=c.next;var J=Z.length;if(J>0){var I=(i&kn)!==0&&u===0?r:null;if(a){for(m=0;m<J;m+=1)(ce=Z[m].a)==null||ce.measure();for(m=0;m<J;m+=1)(fe=Z[m].a)==null||fe.fix()}pa(t,Z,I,f)}}a&&Bt(()=>{var de;if(k!==void 0)for(g of k)(de=g.a)==null||de.apply()}),B.first=t.first&&t.first.e,B.last=h&&h.e}function wa(e,t,r,n){(n&se)!==0&&Br(e.v,t),(n&yt)!==0?Br(e.i,r):e.i=r}function mi(e,t,r,n,i,o,s,a,l,u){var f=(l&se)!==0,d=(l&uo)===0,c=f?d?bt(i,!1,!1):St(i):i,v=(l&yt)===0?s:St(s),h={i:v,v:c,k:o,a:null,e:null,prev:r,next:n};try{return h.e=st(()=>a(e,c,v,u),H),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?t.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function wi(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=et(o);i.before(o),o=s}}function ct(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 mt(e,t,r,n,i){var a;H&&Lt();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 _a(e,t,r){H&&Lt();var n=e,i,o;Mt(()=>{i!==(i=t())&&(o&&(Pt(o),o=null),i&&(o=st(()=>r(n,i))))},lr),H&&(n=R)}function dt(e,t){Bt(()=>{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 ya(e,t){var r=void 0,n;Mt(()=>{r!==(r=t())&&(n&&(De(n),n=null),r&&(n=st(()=>{Yr(()=>r(e))})))})}function _i(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=_i(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ka(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=_i(e))&&(n&&(n+=" "),n+=t);return n}function xa(e){return typeof e=="object"?ka(e):e??""}const yi=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function Ca(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||yi.includes(n[s-1]))&&(a===n.length||yi.includes(n[a]))?n=(s===0?"":n.substring(0,s))+n.substring(a+1):s=a}}return n===""?null:n}function ki(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 Qr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Ea(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(Qr)),i&&l.push(...Object.keys(i).map(Qr));var u=0,f=-1;const k=e.length;for(var d=0;d<k;d++){var c=e[d];if(a?c==="/"&&e[d-1]==="*"&&(a=!1):o?o===c&&(o=!1):c==="/"&&e[d+1]==="*"?a=!0:c==='"'||c==="'"?o=c:c==="("?s++:c===")"&&s--,!a&&o===!1&&s===0){if(c===":"&&f===-1)f=d;else if(c===";"||d===k-1){if(f!==-1){var v=Qr(e.substring(u,f).trim());if(!l.includes(v)){c!==";"&&d++;var h=e.substring(u,d).trim();r+=" "+h+";"}}u=d+1,f=-1}}}}return n&&(r+=ki(n)),i&&(r+=ki(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ke(e,t,r,n,i,o){var s=e.__className;if(H||s!==r||s===void 0){var a=Ca(r,n,o);(!H||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 en(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 Sa(e,t,r,n){var i=e.__style;if(H||i!==t){var o=Ea(t,n);(!H||o!==e.getAttribute("style"))&&(o==null?e.removeAttribute("style"):e.style.cssText=o),e.__style=t}else n&&(Array.isArray(n)?(en(e,r==null?void 0:r[0],n[0]),en(e,r==null?void 0:r[1],n[1],"important")):en(e,r,n));return n}function tn(e,t,r=!1){if(e.multiple){if(t==null)return;if(!or(t))return qo();for(var n of e.options)n.selected=t.includes(xi(n));return}for(n of e.options){var i=xi(n);if(Uo(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function La(e){var t=new MutationObserver(()=>{tn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),dr(()=>{t.disconnect()})}function xi(e){return"__value"in e?e.__value:e.value}const Tt=Symbol("class"),Xt=Symbol("style"),Ci=Symbol("is custom element"),Ei=Symbol("is html");function za(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function F(e,t,r,n){var i=Si(e);H&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&zi(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ma(e,t,r,n,i=!1){var o=Si(e),s=o[Ci],a=!o[Ei];let l=H&&s;l&&He(!1);var u=t||{},f=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=xa(r.class):(n||r[Tt])&&(r.class=null),r[Xt]&&(r.style??(r.style=null));var c=zi(e);for(const b in r){let g=r[b];if(f&&b==="value"&&g==null){e.value=e.__value="",u[b]=g;continue}if(b==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";ke(e,v,g,n,t==null?void 0:t[Tt],r[Tt]),u[b]=g,u[Tt]=r[Tt];continue}if(b==="style"){Sa(e,g,t==null?void 0:t[Xt],r[Xt]),u[b]=g,u[Xt]=r[Xt];continue}var h=u[b];if(!(g===h&&!(g===void 0&&e.hasAttribute(b)))){u[b]=g;var k=b[0]+b[1];if(k!=="$$")if(k==="on"){const m={},L="$$"+b;let T=b.slice(2);var E=la(T);if(aa(T)&&(T=T.slice(0,-7),m.capture=!0),!E&&h){if(g!=null)continue;e.removeEventListener(T,u[L],m),u[L]=null}if(g!=null)if(E)e[`__${T}`]=g,Kt([T]);else{let O=function(M){u[b].call(this,M)};u[L]=fi(T,e,O,m)}else E&&(e[`__${T}`]=void 0)}else if(b==="style")F(e,b,g);else if(b==="autofocus")na(e,!!g);else if(!s&&(b==="__value"||b==="value"&&g!=null))e.value=e.__value=g;else if(b==="selected"&&f)za(e,g);else{var z=b;a||(z=ca(z));var p=z==="defaultValue"||z==="defaultChecked";if(g==null&&!s&&!p)if(o[b]=null,z==="value"||z==="checked"){let m=e;const L=t===void 0;if(z==="value"){let T=m.defaultValue;m.removeAttribute(z),m.defaultValue=T,m.value=m.__value=L?T:null}else{let T=m.defaultChecked;m.removeAttribute(z),m.defaultChecked=T,m.checked=L?T:!1}}else e.removeAttribute(b);else p||c.includes(z)&&(s||typeof g!="string")?e[z]=g:typeof g!="function"&&F(e,z,g)}}}return l&&He(!0),u}function Qt(e,t,r=[],n,i=!1,o=Et){const s=r.map(o);var a=void 0,l={},u=e.nodeName==="SELECT",f=!1;if(Mt(()=>{var c=t(...s.map(w)),v=Ma(e,a,c,n,i);f&&u&&"value"in c&&tn(e,c.value);for(let k of Object.getOwnPropertySymbols(l))c[k]||De(l[k]);for(let k of Object.getOwnPropertySymbols(c)){var h=c[k];k.description===po&&(!a||h!==a[k])&&(l[k]&&De(l[k]),l[k]=st(()=>ya(e,()=>h))),v[k]=h}a=v}),u){var d=e;Yr(()=>{tn(d,a.value,!0),La(d)})}f=!0}function Si(e){return e.__attributes??(e.__attributes={[Ci]:e.nodeName.includes("-"),[Ei]:e.namespaceURI===go})}var Li=new Map;function zi(e){var t=Li.get(e.nodeName);if(t)return t;Li.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Sn(n);for(var o in r)r[o].set&&t.push(o);n=$r(n)}return t}function Mi(e,t){return e===t||(e==null?void 0:e[je])===t}function vt(e={},t,r,n){return Yr(()=>{var i,o;return vr(()=>{i=o,o=(n==null?void 0:n())||[],qe(()=>{e!==r(...o)&&(t(e,...o),i&&Mi(r(...i),e)&&t(null,...i))})}),()=>{Bt(()=>{o&&Mi(r(...o),e)&&t(null,...o)})}}),e}function Ia(e=!1){const t=W,r=t.l.u;if(!r)return;let n=()=>di(t.s);if(e){let i=0,o={};const s=Et(()=>{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=()=>w(s)}r.b.length&&Po(()=>{Ii(t,n),Ht(r.b)}),Zr(()=>{const i=qe(()=>r.m.map(yo));return()=>{for(const o of i)typeof o=="function"&&o()}}),r.a.length&&Zr(()=>{Ii(t,n),Ht(r.a)})}function Ii(e,t){if(e.l.s)for(const r of e.l.s)w(r);t()}function rn(e,t,r){if(e==null)return t(void 0),r&&r(void 0),ot;const n=qe(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Dt=[];function Na(e,t){return{subscribe:wr(e,t).subscribe}}function wr(e,t=ot){let r=null;const n=new Set;function i(a){if($n(e,a)&&(e=a,r)){const l=!Dt.length;for(const u of n)u[1](),Dt.push(u,e);if(l){for(let u=0;u<Dt.length;u+=2)Dt[u][0](Dt[u+1]);Dt.length=0}}}function o(a){i(a(e))}function s(a,l=ot){const u=[a,l];return n.add(u),n.size===1&&(r=t(i,o)||ot),a(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:o,subscribe:s}}function Ta(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 Na(r,(s,a)=>{let l=!1;const u=[];let f=0,d=ot;const c=()=>{if(f)return;d();const h=t(n?u[0]:u,s,a);o?s(h):d=typeof h=="function"?h:ot},v=i.map((h,k)=>rn(h,E=>{u[k]=E,f&=~(1<<k),l&&c()},()=>{f|=1<<k}));return l=!0,c(),function(){Ht(v),d(),l=!1}})}function nn(e){let t;return rn(e,r=>t=r)(),t}let _r=!1,on=Symbol();function Ae(e,t,r){const n=r[t]??(r[t]={store:null,source:bt(void 0),unsubscribe:ot});if(n.store!==e&&!(on in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=ot;else{var i=!0;n.unsubscribe=rn(e,o=>{i?n.source.v=o:U(n.source,o)}),i=!1}return e&&on in r?nn(e):w(n.source)}function er(){const e={};function t(){dr(()=>{for(var r in e)e[r].unsubscribe();At(e,on,{enumerable:!1,value:!0})})}return[e,t]}function Da(e){var t=_r;try{return _r=!1,[e(),_r]}finally{_r=t}}const $a={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 yr(e,t,r){return new Proxy({props:e,exclude:t},$a)}const Aa={get(e,t){if(!e.exclude.includes(t))return w(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=y({get[t](){return e.props[t]}},t,xn)),e.special[t](r),Rn(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),Rn(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 Ni(e,t){return new Proxy({props:e,exclude:t,special:{},version:St(0)},Aa)}const Ua={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ut(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];Ut(i)&&(i=i());const o=We(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(Ut(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===je||t===Pr)return!1;for(let r of e.props)if(Ut(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ut(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 Ti(...e){return new Proxy({props:e},Ua)}function Ha(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function y(e,t,r,n){var z;var i=!xt||(r&vo)!==0,o=(r&fo)!==0,s=(r&ho)!==0,a=n,l=!0,u=()=>(l&&(l=!1,a=s?qe(n):n),a),f;if(o){var d=je in e||Pr in e;f=((z=We(e,t))==null?void 0:z.set)??(d&&t in e?p=>e[t]=p:void 0)}var c,v=!1;o?[c,v]=Da(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),f&&(i&&Mo(),f(c)));var h;if(i?h=()=>{var p=e[t];return p===void 0?u():(l=!0,p)}:h=()=>{var p=e[t];return p!==void 0&&(a=void 0),p===void 0?a:p},i&&(r&xn)===0)return h;if(f){var k=e.$$legacy;return function(p,b){return arguments.length>0?((!i||!b||k||v)&&f(b?h():p),p):h()}}var E=((r&co)!==0?Et:On)(h);return o&&w(E),function(p,b){if(arguments.length>0){const g=b?w(E):i&&o?Ct(p):p;return U(E,g),a!==void 0&&(a=g),p}return Ha(E)?E.v:w(E)}}function Oa(e){return new qa(e)}class qa{constructor(t){_n(this,nt);_n(this,Ue);var o;var r=new Map,n=(s,a)=>{var l=bt(a,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,a){return w(r.get(a)??n(a,Reflect.get(s,a)))},has(s,a){return a===Pr?!0:(w(r.get(a)??n(a,Reflect.get(s,a))),Reflect.has(s,a))},set(s,a,l){return U(r.get(a)??n(a,l),l),Reflect.set(s,a,l)}});yn(this,Ue,(t.hydrate?fa:bi)(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)&&_(),yn(this,nt,i.$$events);for(const s of Object.keys(Ce(this,Ue)))s==="$set"||s==="$destroy"||s==="$on"||At(this,s,{get(){return Ce(this,Ue)[s]},set(a){Ce(this,Ue)[s]=a},enumerable:!0});Ce(this,Ue).$set=s=>{Object.assign(i,s)},Ce(this,Ue).$destroy=()=>{ha(Ce(this,Ue))}}$set(t){Ce(this,Ue).$set(t)}$on(t,r){Ce(this,nt)[t]=Ce(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return Ce(this,nt)[t].push(n),()=>{Ce(this,nt)[t]=Ce(this,nt)[t].filter(i=>i!==n)}}$destroy(){Ce(this,Ue).$destroy()}}nt=new WeakMap,Ue=new WeakMap;let Di;typeof HTMLElement=="function"&&(Di=class extends HTMLElement{constructor(t,r,n){super();Ie(this,"$$ctor");Ie(this,"$$s");Ie(this,"$$c");Ie(this,"$$cn",!1);Ie(this,"$$d",{});Ie(this,"$$r",!1);Ie(this,"$$p_d",{});Ie(this,"$$l",{});Ie(this,"$$l_u",new Map);Ie(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),N(o,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Va(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]=kr(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=Oa({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ro(()=>{vr(()=>{var i;this.$$r=!0;for(const o of ar(this.$$c)){if(!((i=this.$$p_d[o])!=null&&i.reflect))continue;this.$$d[o]=this.$$c[o];const s=kr(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]=kr(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 ar(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function kr(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 Va(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function re(e,t,r,n,i,o){let s=class extends Di{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return ar(t).map(a=>(t[a].attribute||a).toLowerCase())}};return ar(t).forEach(a=>{At(s.prototype,a,{get(){return this.$$c&&a in this.$$c?this.$$c[a]:this.$$d[a]},set(l){var d;l=kr(a,l,t),this.$$d[a]=l;var u=this.$$c;if(u){var f=(d=We(u,a))==null?void 0:d.get;f?u[a]=l:u.$set({[a]:l})}}})}),n.forEach(a=>{At(s.prototype,a,{get(){var l;return(l=this.$$c)==null?void 0:l[a]}})}),e.element=s,s}var Pa=ee("<a><!></a>"),Ra=ee("<button><!></button>");const Ba={hash:"svelte-zsrcxo",code:`
|
|
1
|
+
(function(A,Q){typeof exports=="object"&&typeof module<"u"?Q(exports):typeof define=="function"&&define.amd?define(["exports"],Q):(A=typeof globalThis<"u"?globalThis:A||self,Q(A.graymatter={}))})(this,function(A){"use strict";var Ll=Object.defineProperty;var fa=A=>{throw TypeError(A)};var Il=(A,Q,de)=>Q in A?Ll(A,Q,{enumerable:!0,configurable:!0,writable:!0,value:de}):A[Q]=de;var ze=(A,Q,de)=>Il(A,typeof Q!="symbol"?Q+"":Q,de),ha=(A,Q,de)=>Q.has(A)||fa("Cannot "+de);var Ee=(A,Q,de)=>(ha(A,Q,"read from private field"),de?de.call(A):Q.get(A)),Sn=(A,Q,de)=>Q.has(A)?fa("Cannot add the same private member more than once"):Q instanceof WeakSet?Q.add(A):Q.set(A,de),Mn=(A,Q,de,yt)=>(ha(A,Q,"write to private field"),yt?yt.call(A,de):Q.set(A,de),de);var ra,nt,Ae;typeof window<"u"&&((ra=window.__svelte??(window.__svelte={})).v??(ra.v=new Set)).add("5");const de=1,yt=2,Ln=4,ba=8,pa=16,ga=1,ma=2,In=4,wa=8,ka=16,zn=1,_a=2,Ur="[",Ar="[!",Hr="]",xt={},ye=Symbol(),ya="http://www.w3.org/1999/xhtml",xa="@attach",Nn=!1;var ur=Array.isArray,Ca=Array.prototype.indexOf,Or=Array.from,cr=Object.keys,Ht=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Tn=Object.getOwnPropertyDescriptors,Ea=Object.prototype,Sa=Array.prototype,qr=Object.getPrototypeOf,Dn=Object.isExtensible;function Ot(e){return typeof e=="function"}const it=()=>{};function Ma(e){return e()}function qt(e){for(var t=0;t<e.length;t++)e[t]()}const Ne=2,Vr=4,Vt=8,Pr=16,Ge=32,ft=64,Rr=128,Se=256,dr=512,Me=1024,Xe=2048,at=4096,Qe=8192,Br=16384,$n=32768,vr=65536,Un=1<<17,La=1<<18,An=1<<19,jr=1<<20,Fr=1<<21,Fe=Symbol("$state"),Zr=Symbol("legacy props"),Ia=Symbol(""),Hn=new class extends Error{constructor(){super(...arguments);ze(this,"name","StaleReactionError");ze(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},On=3,Pt=8;function qn(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 Pn(e){return!Vn(e,this.v)}function za(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Na(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ta(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Da(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $a(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ua(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Aa(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ha(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Oa(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ct=!1,qa=!1;function Va(){Ct=!0}function Pa(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let ee=null;function Rn(e){ee=e}function ie(e,t=!1,r){var n=ee={p:ee,c:null,d:!1,e:null,m:!1,s:e,x:null,l:null};Ct&&!t&&(ee.l={s:null,u:null,r1:[],r2:Mt(!1)}),br(()=>{n.d=!0})}function ae(e){const t=ee;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=Z,n=V;t.e=null;try{for(var i=0;i<s.length;i++){var a=s[i];st(a.effect),Je(a.reaction),ni(a.fn)}}finally{st(r),Je(n)}}ee=t.p,t.m=!0}return e||{}}function fr(){return!Ct||ee!==null&&ee.l===null}function Et(e){if(typeof e!="object"||e===null||Fe in e)return e;const t=qr(e);if(t!==Ea&&t!==Sa)return e;var r=new Map,n=ur(e),i=me(0),a=V,s=o=>{var l=V;Je(a);var u=o();return Je(l),u};return n&&r.set("length",me(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Aa();var f=r.get(l);return f===void 0?f=s(()=>{var d=me(u.value);return r.set(l,d),d}):H(f,u.value,!0),!0},deleteProperty(o,l){var u=r.get(l);if(u===void 0){if(l in o){const c=s(()=>me(ye));r.set(l,c),Yr(i)}}else{if(n&&typeof l=="string"){var f=r.get("length"),d=Number(l);Number.isInteger(d)&&d<f.v&&H(f,d)}H(u,ye),Yr(i)}return!0},get(o,l,u){var v;if(l===Fe)return e;var f=r.get(l),d=l in o;if(f===void 0&&(!d||(v=We(o,l))!=null&&v.writable)&&(f=s(()=>{var h=Et(d?o[l]:ye),y=me(h);return y}),r.set(l,f)),f!==void 0){var c=g(f);return c===ye?void 0:c}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=g(f))}else if(u===void 0){var d=r.get(l),c=d==null?void 0:d.v;if(d!==void 0&&c!==ye)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(o,l){var c;if(l===Fe)return!0;var u=r.get(l),f=u!==void 0&&u.v!==ye||Reflect.has(o,l);if(u!==void 0||Z!==null&&(!f||(c=We(o,l))!=null&&c.writable)){u===void 0&&(u=s(()=>{var v=f?Et(o[l]):ye,h=me(v);return h}),r.set(l,u));var d=g(u);if(d===ye)return!1}return f},set(o,l,u,f){var b;var d=r.get(l),c=l in o;if(n&&l==="length")for(var v=u;v<d.v;v+=1){var h=r.get(v+"");h!==void 0?H(h,ye):v in o&&(h=s(()=>me(ye)),r.set(v+"",h))}if(d===void 0)(!c||(b=We(o,l))!=null&&b.writable)&&(d=s(()=>me(void 0)),H(d,Et(u)),r.set(l,d));else{c=d.v!==ye;var y=s(()=>Et(u));H(d,y)}var M=Reflect.getOwnPropertyDescriptor(o,l);if(M!=null&&M.set&&M.set.call(f,u),!c){if(n&&typeof l=="string"){var L=r.get("length"),p=Number(l);Number.isInteger(p)&&p>=L.v&&H(L,p+1)}Yr(i)}return!0},ownKeys(o){g(i);var l=Reflect.ownKeys(o).filter(d=>{var c=r.get(d);return c===void 0||c.v!==ye});for(var[u,f]of r)f.v!==ye&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Ha()}})}function Yr(e,t=1){H(e,e.v+t)}function Bn(e){try{if(e!==null&&typeof e=="object"&&Fe in e)return e[Fe]}catch{}return e}function Ra(e,t){return Object.is(Bn(e),Bn(t))}function St(e){var t=Ne|Xe,r=V!==null&&(V.f&Ne)!==0?V:null;return Z===null||r!==null&&(r.f&Se)!==0?t|=Se:Z.f|=An,{ctx:ee,deps:null,effects:null,equals:qn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??Z,ac:null}}function te(e){const t=St(e);return vi(t),t}function jn(e){const t=St(e);return t.equals=Pn,t}function Fn(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)De(t[r])}}function Ba(e){for(var t=e.parent;t!==null;){if((t.f&Ne)===0)return t;t=t.parent}return null}function Zn(e){var t,r=Z;st(Ba(e));try{Fn(e),t=bi(e)}finally{st(r)}return t}function Yn(e){var t=Zn(e);if(e.equals(t)||(e.v=t,e.wv=fi()),!Nt){var r=(lt||(e.f&Se)!==0)&&e.deps!==null?at:Me;Pe(e,r)}}const Rt=new Map;function Mt(e,t){var r={f:0,v:e,reactions:null,equals:qn,rv:0,wv:0};return r}function me(e,t){const r=Mt(e);return vi(r),r}function ht(e,t=!1,r=!0){var i;const n=Mt(e);return t||(n.equals=Pn),Ct&&r&&ee!==null&&ee.l!==null&&((i=ee.l).s??(i.s=[])).push(n),n}function ja(e,t){return H(e,Ve(()=>g(e))),t}function H(e,t,r=!1){V!==null&&(!Ke||(V.f&Un)!==0)&&fr()&&(V.f&(Ne|Pr|Un))!==0&&!((ue==null?void 0:ue.reaction)===V&&ue.sources.includes(e))&&Oa();let n=r?Et(t):t;return Kr(e,n)}function Kr(e,t){if(!e.equals(t)){var r=e.v;Nt?Rt.set(e,t):Rt.set(e,r),e.v=t,(e.f&Ne)!==0&&((e.f&Xe)!==0&&Zn(e),Pe(e,(e.f&Se)===0?Me:at)),e.wv=fi(),Jn(e,Xe),fr()&&Z!==null&&(Z.f&Me)!==0&&(Z.f&(Ge|ft))===0&&($e===null?no([e]):$e.push(e))}return t}function Kn(e,t=1){var r=g(e),n=t===1?r++:r--;return H(e,r),n}function Jn(e,t){var r=e.reactions;if(r!==null)for(var n=fr(),i=r.length,a=0;a<i;a++){var s=r[a],o=s.f;(o&Xe)===0&&(!n&&s===Z||(Pe(s,t),(o&(Me|Se))!==0&&((o&Ne)!==0?Jn(s,at):yr(s))))}}function hr(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Fa(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let O=!1;function Oe(e){O=e}let F;function qe(e){if(e===null)throw hr(),xt;return F=e}function Lt(){return qe(et(F))}function E(e){if(O){if(et(F)!==null)throw hr(),xt;F=e}}function Ze(e=1){if(O){for(var t=e,r=F;t--;)r=et(r);F=r}}function Jr(){for(var e=0,t=F;;){if(t.nodeType===Pt){var r=t.data;if(r===Hr){if(e===0)return t;e-=1}else(r===Ur||r===Ar)&&(e+=1)}var n=et(t);t.remove(),t=n}}function Wn(e){if(!e||e.nodeType!==Pt)throw hr(),xt;return e.data}var Gn,Xn,Qn,ei;function Wr(){if(Gn===void 0){Gn=window,Xn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qn=We(t,"firstChild").get,ei=We(t,"nextSibling").get,Dn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Dn(r)&&(r.__t=void 0)}}function It(e=""){return document.createTextNode(e)}function Te(e){return Qn.call(e)}function et(e){return ei.call(e)}function S(e,t){if(!O)return Te(e);var r=Te(F);if(r===null)r=F.appendChild(It());else if(t&&r.nodeType!==On){var n=It();return r==null||r.before(n),qe(n),n}return qe(r),r}function Ye(e,t){if(!O){var r=Te(e);return r instanceof Comment&&r.data===""?et(r):r}return F}function ve(e,t=1,r=!1){let n=O?F:e;for(var i;t--;)i=n,n=et(n);if(!O)return n;if(r&&(n==null?void 0:n.nodeType)!==On){var a=It();return n===null?i==null||i.after(a):n.before(a),qe(a),a}return qe(n),n}function ti(e){e.textContent=""}function ri(e){Z===null&&V===null&&Ta(),V!==null&&(V.f&Se)!==0&&Z===null&&Na(),Nt&&za()}function Za(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function tt(e,t,r,n=!0){var i=Z,a={ctx:ee,deps:null,nodes_start:null,nodes_end:null,f:e|Xe,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{_r(a),a.f|=$n}catch(l){throw De(a),l}else t!==null&&yr(a);var s=r&&a.deps===null&&a.first===null&&a.nodes_start===null&&a.teardown===null&&(a.f&(An|Rr))===0;if(!s&&n&&(i!==null&&Za(a,i),V!==null&&(V.f&Ne)!==0)){var o=V;(o.effects??(o.effects=[])).push(a)}return a}function br(e){const t=tt(Vt,null,!1);return Pe(t,Me),t.teardown=e,t}function Gr(e){ri();var t=Z!==null&&(Z.f&Ge)!==0&&ee!==null&&!ee.m;if(t){var r=ee;(r.e??(r.e=[])).push({fn:e,effect:Z,reaction:V})}else return ni(e)}function ni(e){return tt(Vr|Fr,e,!1)}function Ya(e){return ri(),tt(Vt|Fr,e,!0)}function Ka(e){const t=tt(ft,e,!0);return()=>{De(t)}}function Ja(e){const t=tt(ft,e,!0);return(r={})=>new Promise(n=>{r.outro?Bt(t,()=>{De(t),n(void 0)}):(De(t),n(void 0))})}function Xr(e){return tt(Vr,e,!1)}function Wa(e,t){var r=ee,n={effect:null,ran:!1};r.l.r1.push(n),n.effect=pr(()=>{e(),!n.ran&&(n.ran=!0,H(r.l.r2,!0),Ve(t))})}function Ga(){var e=ee;pr(()=>{if(g(e.l.r2)){for(var t of e.l.r1){var r=t.effect;(r.f&Me)!==0&&Pe(r,at),Jt(r)&&_r(r),t.ran=!1}e.l.r2.v=!1}})}function pr(e){return tt(Vt,e,!0)}function pe(e,t=[],r=St){const n=t.map(r);return zt(()=>e(...n.map(g)))}function zt(e,t=0){var r=tt(Vt|Pr|t,e,!0);return r}function ot(e,t=!0){return tt(Vt|Ge,e,!0,t)}function ii(e){var t=e.teardown;if(t!==null){const r=Nt,n=V;di(!0),Je(null);try{t.call(null)}finally{di(r),Je(n)}}}function ai(e,t=!1){var i;var r=e.first;for(e.first=e.last=null;r!==null;){(i=r.ac)==null||i.abort(Hn);var n=r.next;(r.f&ft)!==0?r.parent=null:De(r,t),r=n}}function Xa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Ge)===0&&De(t),t=r}}function De(e,t=!0){var r=!1;(t||(e.f&La)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Qa(e.nodes_start,e.nodes_end),r=!0),ai(e,t&&!r),kr(e,0),Pe(e,Br);var n=e.transitions;if(n!==null)for(const a of n)a.stop();ii(e);var i=e.parent;i!==null&&i.first!==null&&oi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Qa(e,t){for(;e!==null;){var r=e===t?null:et(e);e.remove(),e=r}}function oi(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 Bt(e,t){var r=[];Qr(e,r,!0),si(r,()=>{De(e),t&&t()})}function si(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function Qr(e,t,r){if((e.f&Qe)===0){if(e.f^=Qe,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,a=(n.f&vr)!==0||(n.f&Ge)!==0;Qr(n,t,a?r:!1),n=i}}}function gr(e){li(e,!0)}function li(e,t){if((e.f&Qe)!==0){e.f^=Qe;for(var r=e.first;r!==null;){var n=r.next,i=(r.f&vr)!==0||(r.f&Ge)!==0;li(r,i?t:!1),r=n}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let jt=[],en=[];function ui(){var e=jt;jt=[],qt(e)}function eo(){var e=en;en=[],qt(e)}function Ft(e){jt.length===0&&queueMicrotask(ui),jt.push(e)}function to(){jt.length>0&&ui(),en.length>0&&eo()}function ro(e){var t=Z;if((t.f&$n)===0){if((t.f&Rr)===0)throw e;t.fn(e)}else ci(e,t)}function ci(e,t){for(;t!==null;){if((t.f&Rr)!==0)try{t.b.error(e);return}catch{}t=t.parent}throw e}let Zt=!1,Yt=null,bt=!1,Nt=!1;function di(e){Nt=e}let Kt=[],zl=[],V=null,Ke=!1;function Je(e){V=e}let Z=null;function st(e){Z=e}let ue=null;function vi(e){V!==null&&V.f&jr&&(ue===null?ue={reaction:V,sources:[e]}:ue.sources.push(e))}let we=null,Le=0,$e=null;function no(e){$e=e}let mr=1,wr=0,lt=!1;function fi(){return++mr}function Jt(e){var d;var t=e.f;if((t&Xe)!==0)return!0;if((t&at)!==0){var r=e.deps,n=(t&Se)!==0;if(r!==null){var i,a,s=(t&dr)!==0,o=n&&Z!==null&&!lt,l=r.length;if(s||o){var u=e,f=u.parent;for(i=0;i<l;i++)a=r[i],(s||!((d=a==null?void 0:a.reactions)!=null&&d.includes(u)))&&(a.reactions??(a.reactions=[])).push(u);s&&(u.f^=dr),o&&f!==null&&(f.f&Se)===0&&(u.f^=Se)}for(i=0;i<l;i++)if(a=r[i],Jt(a)&&Yn(a),a.wv>e.wv)return!0}(!n||Z!==null&&!lt)&&Pe(e,Me)}return!1}function hi(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];(ue==null?void 0:ue.reaction)===V&&ue.sources.includes(e)||((a.f&Ne)!==0?hi(a,t,!1):t===a&&(r?Pe(a,Xe):(a.f&Me)!==0&&Pe(a,at),yr(a)))}}function bi(e){var v;var t=we,r=Le,n=$e,i=V,a=lt,s=ue,o=ee,l=Ke,u=e.f;we=null,Le=0,$e=null,lt=(u&Se)!==0&&(Ke||!bt||V===null),V=(u&(Ge|ft))===0?e:null,ue=null,Rn(e.ctx),Ke=!1,wr++,e.f|=jr,e.ac!==null&&(e.ac.abort(Hn),e.ac=null);try{var f=(0,e.fn)(),d=e.deps;if(we!==null){var c;if(kr(e,Le),d!==null&&Le>0)for(d.length=Le+we.length,c=0;c<we.length;c++)d[Le+c]=we[c];else e.deps=d=we;if(!lt||(u&Ne)!==0&&e.reactions!==null)for(c=Le;c<d.length;c++)((v=d[c]).reactions??(v.reactions=[])).push(e)}else d!==null&&Le<d.length&&(kr(e,Le),d.length=Le);if(fr()&&$e!==null&&!Ke&&d!==null&&(e.f&(Ne|at|Xe))===0)for(c=0;c<$e.length;c++)hi($e[c],e);return i!==null&&i!==e&&(wr++,$e!==null&&(n===null?n=$e:n.push(...$e))),f}catch(h){ro(h)}finally{we=t,Le=r,$e=n,V=i,lt=a,ue=s,Rn(o),Ke=l,e.f^=jr}}function io(e,t){let r=t.reactions;if(r!==null){var n=Ca.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&Ne)!==0&&(we===null||!we.includes(t))&&(Pe(t,at),(t.f&(Se|dr))===0&&(t.f^=dr),Fn(t),kr(t,0))}function kr(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)io(e,r[n])}function _r(e){var t=e.f;if((t&Br)===0){Pe(e,Me);var r=Z,n=bt;Z=e,bt=!0;try{(t&Pr)!==0?Xa(e):ai(e),ii(e);var i=bi(e);e.teardown=typeof i=="function"?i:null,e.wv=mr;var a;Nn&&qa&&(e.f&Xe)!==0&&e.deps}finally{bt=n,Z=r}}}function ao(){try{Da()}catch(e){if(Yt!==null)ci(e,Yt);else throw e}}function pi(){var e=bt;try{var t=0;for(bt=!0;Kt.length>0;){t++>1e3&&ao();var r=Kt,n=r.length;Kt=[];for(var i=0;i<n;i++){var a=so(r[i]);oo(a)}Rt.clear()}}finally{Zt=!1,bt=e,Yt=null}}function oo(e){var t=e.length;if(t!==0){for(var r=0;r<t;r++){var n=e[r];if((n.f&(Br|Qe))===0&&Jt(n)){var i=mr;if(_r(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?oi(n):n.fn=null),mr>i&&(n.f&Fr)!==0)break}}for(;r<t;r+=1)yr(e[r])}}function yr(e){Zt||(Zt=!0,queueMicrotask(pi));for(var t=Yt=e;t.parent!==null;){t=t.parent;var r=t.f;if((r&(ft|Ge))!==0){if((r&Me)===0)return;t.f^=Me}}Kt.push(t)}function so(e){for(var t=[],r=e;r!==null;){var n=r.f,i=(n&(Ge|ft))!==0,a=i&&(n&Me)!==0;if(!a&&(n&Qe)===0){(n&Vr)!==0?t.push(r):i?r.f^=Me:Jt(r)&&_r(r);var s=r.first;if(s!==null){r=s;continue}}var o=r.parent;for(r=r.next;r===null&&o!==null;)r=o.next,o=o.parent}return t}function k(e){for(var t;;){if(to(),Kt.length===0)return Zt=!1,Yt=null,t;Zt=!0,pi()}}function g(e){var t=e.f,r=(t&Ne)!==0;if(V!==null&&!Ke){if((ue==null?void 0:ue.reaction)!==V||!(ue!=null&&ue.sources.includes(e))){var n=V.deps;e.rv<wr&&(e.rv=wr,we===null&&n!==null&&n[Le]===e?Le++:we===null?we=[e]:(!lt||!we.includes(e))&&we.push(e))}}else if(r&&e.deps===null&&e.effects===null){var i=e,a=i.parent;a!==null&&(a.f&Se)===0&&(i.f^=Se)}return r&&(i=e,Jt(i)&&Yn(i)),Nt&&Rt.has(e)?Rt.get(e):e.v}function Ve(e){var t=Ke;try{return Ke=!0,e()}finally{Ke=t}}const lo=-7169;function Pe(e,t){e.f=e.f&lo|t}function gi(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Fe in e)tn(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&Fe in r&&tn(r)}}}function tn(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{tn(e[n],t)}catch{}const r=qr(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=Tn(r);for(let i in n){const a=n[i].get;if(a)try{a.call(e)}catch{}}}}}function uo(e,t){if(t){const r=document.body;e.autofocus=!0,Ft(()=>{document.activeElement===r&&e.focus()})}}function co(e){var t=V,r=Z;Je(null),st(null);try{return e()}finally{Je(t),st(r)}}const mi=new Set,rn=new Set;function wi(e,t,r,n={}){function i(a){if(n.capture||Gt.call(t,a),!a.cancelBubble)return co(()=>r==null?void 0:r.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ft(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function ge(e,t,r,n,i){var a={capture:n,passive:i},s=wi(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&br(()=>{t.removeEventListener(e,s,a)})}function Wt(e){for(var t=0;t<e.length;t++)mi.add(e[t]);for(var r of rn)r(e)}function Gt(e){var p;var t=this,r=t.ownerDocument,n=e.type,i=((p=e.composedPath)==null?void 0:p.call(e))||[],a=i[0]||e.target,s=0,o=e.__root;if(o){var l=i.indexOf(o);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(a=i[s]||e.target,a!==t){Ht(e,"currentTarget",{configurable:!0,get(){return a||r}});var f=V,d=Z;Je(null),st(null);try{for(var c,v=[];a!==null;){var h=a.assignedSlot||a.parentNode||a.host||null;try{var y=a["__"+n];if(y!=null&&(!a.disabled||e.target===a))if(ur(y)){var[M,...L]=y;M.apply(a,[e,...L])}else y.call(a,e)}catch(b){c?v.push(b):c=b}if(e.cancelBubble||h===t||h===null)break;a=h}if(c){for(let b of v)queueMicrotask(()=>{throw b});throw c}}finally{e.__root=t,delete e.currentTarget,Je(f),st(d)}}}function ki(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function rt(e,t){var r=Z;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ne(e,t){var r=(t&zn)!==0,n=(t&_a)!==0,i,a=!e.startsWith("<!>");return()=>{if(O)return rt(F,null),F;i===void 0&&(i=ki(a?e:"<!>"+e),r||(i=Te(i)));var s=n||Xn?document.importNode(i,!0):i.cloneNode(!0);if(r){var o=Te(s),l=s.lastChild;rt(o,l)}else rt(s,s);return s}}function vo(e,t,r="svg"){var n=!e.startsWith("<!>"),i=(t&zn)!==0,a=`<${r}>${n?e:"<!>"+e}</${r}>`,s;return()=>{if(O)return rt(F,null),F;if(!s){var o=ki(a),l=Te(o);if(i)for(s=document.createDocumentFragment();Te(l);)s.appendChild(Te(l));else s=Te(l)}var u=s.cloneNode(!0);if(i){var f=Te(u),d=u.lastChild;rt(f,d)}else rt(u,u);return u}}function oe(e,t){return vo(e,t,"svg")}function pt(){if(O)return rt(F,null),F;var e=document.createDocumentFragment(),t=document.createComment(""),r=It();return e.append(t,r),rt(t,r),e}function I(e,t){if(O){Z.nodes_end=F,Lt();return}e!==null&&e.before(t)}function fo(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ho=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function bo(e){return ho.includes(e)}const po={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 go(e){return e=e.toLowerCase(),po[e]??e}const mo=["touchstart","touchmove"];function wo(e){return mo.includes(e)}function Xt(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 _i(e,t){return yi(e,t)}function ko(e,t){Wr(),t.intro=t.intro??!1;const r=t.target,n=O,i=F;try{for(var a=Te(r);a&&(a.nodeType!==Pt||a.data!==Ur);)a=et(a);if(!a)throw xt;Oe(!0),qe(a),Lt();const s=yi(e,{...t,anchor:a});if(F===null||F.nodeType!==Pt||F.data!==Hr)throw hr(),xt;return Oe(!1),s}catch(s){if(s===xt)return t.recover===!1&&$a(),Wr(),ti(r),Oe(!1),_i(e,t);throw s}finally{Oe(n),qe(i)}}const Tt=new Map;function yi(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:s=!0}){Wr();var o=new Set,l=d=>{for(var c=0;c<d.length;c++){var v=d[c];if(!o.has(v)){o.add(v);var h=wo(v);t.addEventListener(v,Gt,{passive:h});var y=Tt.get(v);y===void 0?(document.addEventListener(v,Gt,{passive:h}),Tt.set(v,1)):Tt.set(v,y+1)}}};l(Or(mi)),rn.add(l);var u=void 0,f=Ja(()=>{var d=r??t.appendChild(It());return ot(()=>{if(a){ie({});var c=ee;c.c=a}i&&(n.$$events=i),O&&rt(d,null),u=e(d,n)||{},O&&(Z.nodes_end=F),a&&ae()}),()=>{var h;for(var c of o){t.removeEventListener(c,Gt);var v=Tt.get(c);--v===0?(document.removeEventListener(c,Gt),Tt.delete(c)):Tt.set(c,v)}rn.delete(l),d!==r&&((h=d.parentNode)==null||h.removeChild(d))}});return nn.set(u,f),u}let nn=new WeakMap;function _o(e,t){const r=nn.get(e);return r?(nn.delete(e),r(t)):Promise.resolve()}function Dt(e){ee===null&&Pa(),Ct&&ee.l!==null?yo(ee).m.push(e):Gr(()=>{const t=Ve(e);if(typeof t=="function")return t})}function yo(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function re(e,t,[r,n]=[0,0]){O&&r===0&&Lt();var i=e,a=null,s=null,o=ye,l=r>0?vr:0,u=!1;const f=(c,v=!0)=>{u=!0,d(v,c)},d=(c,v)=>{if(o===(o=c))return;let h=!1;if(O&&n!==-1){if(r===0){const M=Wn(i);M===Ur?n=0:M===Ar?n=1/0:(n=parseInt(M.substring(1)),n!==n&&(n=o?1/0:-1))}const y=n>r;!!o===y&&(i=Jr(),qe(i),Oe(!1),h=!0,n=-1)}o?(a?gr(a):v&&(a=ot(()=>v(i))),s&&Bt(s,()=>{s=null})):(s?gr(s):v&&(s=ot(()=>v(i,[r+1,n]))),a&&Bt(a,()=>{a=null})),h&&Oe(!0)};zt(()=>{u=!1,t(f),u||d(null,null)},l),O&&(i=F)}function xo(e,t){return t}function Co(e,t,r,n){for(var i=[],a=t.length,s=0;s<a;s++)Qr(t[s].e,i,!0);var o=a>0&&i.length===0&&r!==null;if(o){var l=r.parentNode;ti(l),l.append(r),n.clear(),ut(e,t[0].prev,t[a-1].next)}si(i,()=>{for(var u=0;u<a;u++){var f=t[u];o||(n.delete(f.k),ut(e,f.prev,f.next)),De(f.e,!o)}})}function xi(e,t,r,n,i,a=null){var s=e,o={flags:t,items:new Map,first:null},l=(t&Ln)!==0;if(l){var u=e;s=O?qe(Te(u)):u.appendChild(It())}O&&Lt();var f=null,d=!1,c=jn(()=>{var v=r();return ur(v)?v:v==null?[]:Or(v)});zt(()=>{var v=g(c),h=v.length;if(d&&h===0)return;d=h===0;let y=!1;if(O){var M=Wn(s)===Ar;M!==(h===0)&&(s=Jr(),qe(s),Oe(!1),y=!0)}if(O){for(var L=null,p,b=0;b<h;b++){if(F.nodeType===Pt&&F.data===Hr){s=F,y=!0,Oe(!1);break}var m=v[b],w=n(m,b);p=Ci(F,o,L,null,m,w,b,i,t,r),o.items.set(w,p),L=p}h>0&&qe(Jr())}O||Eo(v,o,s,i,t,n,r),a!==null&&(h===0?f?gr(f):f=ot(()=>a(s)):f!==null&&Bt(f,()=>{f=null})),y&&Oe(!0),g(c)}),O&&(s=F)}function Eo(e,t,r,n,i,a,s){var $,x,U,P;var o=(i&ba)!==0,l=(i&(de|yt))!==0,u=e.length,f=t.items,d=t.first,c=d,v,h=null,y,M=[],L=[],p,b,m,w;if(o)for(w=0;w<u;w+=1)p=e[w],b=a(p,w),m=f.get(b),m!==void 0&&(($=m.a)==null||$.measure(),(y??(y=new Set)).add(m));for(w=0;w<u;w+=1){if(p=e[w],b=a(p,w),m=f.get(b),m===void 0){var T=c?c.e.nodes_start:r;h=Ci(T,t,h,h===null?t.first:h.next,p,b,w,n,i,s),f.set(b,h),M=[],L=[],c=h.next;continue}if(l&&So(m,p,w,i),(m.e.f&Qe)!==0&&(gr(m.e),o&&((x=m.a)==null||x.unfix(),(y??(y=new Set)).delete(m))),m!==c){if(v!==void 0&&v.has(m)){if(M.length<L.length){var D=L[0],J;h=D.prev;var z=M[0],B=M[M.length-1];for(J=0;J<M.length;J+=1)Ei(M[J],D,r);for(J=0;J<L.length;J+=1)v.delete(L[J]);ut(t,z.prev,B.next),ut(t,h,z),ut(t,B,D),c=D,h=B,w-=1,M=[],L=[]}else v.delete(m),Ei(m,c,r),ut(t,m.prev,m.next),ut(t,m,h===null?t.first:h.next),ut(t,h,m),h=m;continue}for(M=[],L=[];c!==null&&c.k!==b;)(c.e.f&Qe)===0&&(v??(v=new Set)).add(c),L.push(c),c=c.next;if(c===null)continue;m=c}M.push(m),h=m,c=m.next}if(c!==null||v!==void 0){for(var G=v===void 0?[]:Or(v);c!==null;)(c.e.f&Qe)===0&&G.push(c),c=c.next;var W=G.length;if(W>0){var N=(i&Ln)!==0&&u===0?r:null;if(o){for(w=0;w<W;w+=1)(U=G[w].a)==null||U.measure();for(w=0;w<W;w+=1)(P=G[w].a)==null||P.fix()}Co(t,G,N,f)}}o&&Ft(()=>{var q;if(y!==void 0)for(m of y)(q=m.a)==null||q.apply()}),Z.first=t.first&&t.first.e,Z.last=h&&h.e}function So(e,t,r,n){(n&de)!==0&&Kr(e.v,t),(n&yt)!==0?Kr(e.i,r):e.i=r}function Ci(e,t,r,n,i,a,s,o,l,u){var f=(l&de)!==0,d=(l&pa)===0,c=f?d?ht(i,!1,!1):Mt(i):i,v=(l&yt)===0?s:Mt(s),h={i:v,v:c,k:a,a:null,e:null,prev:r,next:n};try{return h.e=ot(()=>o(e,c,v,u),O),h.e.prev=r&&r.e,h.e.next=n&&n.e,r===null?t.first=h:(r.next=h,r.e.next=h.e),n!==null&&(n.prev=h,n.e.prev=h.e),h}finally{}}function Ei(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,a=e.e.nodes_start;a!==n;){var s=et(a);i.before(a),a=s}}function ut(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 gt(e,t,r,n,i){var o;O&&Lt();var a=(o=t.$$slots)==null?void 0:o[r],s=!1;a===!0&&(a=t.children,s=!0),a===void 0||a(e,s?()=>n:n)}function Mo(e,t,r){O&&Lt();var n=e,i,a;zt(()=>{i!==(i=t())&&(a&&(Bt(a),a=null),i&&(a=ot(()=>r(n,i))))},vr),O&&(n=F)}function ct(e,t){Ft(()=>{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 Lo(e,t){var r=void 0,n;zt(()=>{r!==(r=t())&&(n&&(De(n),n=null),r&&(n=ot(()=>{Xr(()=>r(e))})))})}function Si(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=Si(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Io(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Si(e))&&(n&&(n+=" "),n+=t);return n}function zo(e){return typeof e=="object"?Io(e):e??""}const Mi=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function No(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 a=i.length,s=0;(s=n.indexOf(i,s))>=0;){var o=s+a;(s===0||Mi.includes(n[s-1]))&&(o===n.length||Mi.includes(n[o]))?n=(s===0?"":n.substring(0,s))+n.substring(o+1):s=o}}return n===""?null:n}function Li(e,t=!1){var r=t?" !important;":";",n="";for(var i in e){var a=e[i];a!=null&&a!==""&&(n+=" "+i+": "+a+r)}return n}function an(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function To(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 a=!1,s=0,o=!1,l=[];n&&l.push(...Object.keys(n).map(an)),i&&l.push(...Object.keys(i).map(an));var u=0,f=-1;const y=e.length;for(var d=0;d<y;d++){var c=e[d];if(o?c==="/"&&e[d-1]==="*"&&(o=!1):a?a===c&&(a=!1):c==="/"&&e[d+1]==="*"?o=!0:c==='"'||c==="'"?a=c:c==="("?s++:c===")"&&s--,!o&&a===!1&&s===0){if(c===":"&&f===-1)f=d;else if(c===";"||d===y-1){if(f!==-1){var v=an(e.substring(u,f).trim());if(!l.includes(v)){c!==";"&&d++;var h=e.substring(u,d).trim();r+=" "+h+";"}}u=d+1,f=-1}}}}return n&&(r+=Li(n)),i&&(r+=Li(i,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function ke(e,t,r,n,i,a){var s=e.__className;if(O||s!==r||s===void 0){var o=No(r,n,a);(!O||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):t?e.className=o:e.setAttribute("class",o)),e.__className=r}else if(a&&i!==a)for(var l in a){var u=!!a[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return a}function on(e,t={},r,n){for(var i in r){var a=r[i];t[i]!==a&&(r[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,n))}}function Do(e,t,r,n){var i=e.__style;if(O||i!==t){var a=To(t,n);(!O||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e.__style=t}else n&&(Array.isArray(n)?(on(e,r==null?void 0:r[0],n[0]),on(e,r==null?void 0:r[1],n[1],"important")):on(e,r,n));return n}function sn(e,t,r=!1){if(e.multiple){if(t==null)return;if(!ur(t))return Fa();for(var n of e.options)n.selected=t.includes(Ii(n));return}for(n of e.options){var i=Ii(n);if(Ra(i,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function $o(e){var t=new MutationObserver(()=>{sn(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),br(()=>{t.disconnect()})}function Ii(e){return"__value"in e?e.__value:e.value}const $t=Symbol("class"),Qt=Symbol("style"),zi=Symbol("is custom element"),Ni=Symbol("is html");function Uo(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Y(e,t,r,n){var i=Ti(e);O&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Ia]=r),r==null?e.removeAttribute(t):typeof r!="string"&&$i(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Ao(e,t,r,n,i=!1){var a=Ti(e),s=a[zi],o=!a[Ni];let l=O&&s;l&&Oe(!1);var u=t||{},f=e.tagName==="OPTION";for(var d in t)d in r||(r[d]=null);r.class?r.class=zo(r.class):(n||r[$t])&&(r.class=null),r[Qt]&&(r.style??(r.style=null));var c=$i(e);for(const b in r){let m=r[b];if(f&&b==="value"&&m==null){e.value=e.__value="",u[b]=m;continue}if(b==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";ke(e,v,m,n,t==null?void 0:t[$t],r[$t]),u[b]=m,u[$t]=r[$t];continue}if(b==="style"){Do(e,m,t==null?void 0:t[Qt],r[Qt]),u[b]=m,u[Qt]=r[Qt];continue}var h=u[b];if(!(m===h&&!(m===void 0&&e.hasAttribute(b)))){u[b]=m;var y=b[0]+b[1];if(y!=="$$")if(y==="on"){const w={},T="$$"+b;let D=b.slice(2);var M=bo(D);if(fo(D)&&(D=D.slice(0,-7),w.capture=!0),!M&&h){if(m!=null)continue;e.removeEventListener(D,u[T],w),u[T]=null}if(m!=null)if(M)e[`__${D}`]=m,Wt([D]);else{let J=function(z){u[b].call(this,z)};u[T]=wi(D,e,J,w)}else M&&(e[`__${D}`]=void 0)}else if(b==="style")Y(e,b,m);else if(b==="autofocus")uo(e,!!m);else if(!s&&(b==="__value"||b==="value"&&m!=null))e.value=e.__value=m;else if(b==="selected"&&f)Uo(e,m);else{var L=b;o||(L=go(L));var p=L==="defaultValue"||L==="defaultChecked";if(m==null&&!s&&!p)if(a[b]=null,L==="value"||L==="checked"){let w=e;const T=t===void 0;if(L==="value"){let D=w.defaultValue;w.removeAttribute(L),w.defaultValue=D,w.value=w.__value=T?D:null}else{let D=w.defaultChecked;w.removeAttribute(L),w.defaultChecked=D,w.checked=T?D:!1}}else e.removeAttribute(b);else p||c.includes(L)&&(s||typeof m!="string")?e[L]=m:typeof m!="function"&&Y(e,L,m)}}}return l&&Oe(!0),u}function er(e,t,r=[],n,i=!1,a=St){const s=r.map(a);var o=void 0,l={},u=e.nodeName==="SELECT",f=!1;if(zt(()=>{var c=t(...s.map(g)),v=Ao(e,o,c,n,i);f&&u&&"value"in c&&sn(e,c.value);for(let y of Object.getOwnPropertySymbols(l))c[y]||De(l[y]);for(let y of Object.getOwnPropertySymbols(c)){var h=c[y];y.description===xa&&(!o||h!==o[y])&&(l[y]&&De(l[y]),l[y]=ot(()=>Lo(e,()=>h))),v[y]=h}o=v}),u){var d=e;Xr(()=>{sn(d,o.value,!0),$o(d)})}f=!0}function Ti(e){return e.__attributes??(e.__attributes={[zi]:e.nodeName.includes("-"),[Ni]:e.namespaceURI===ya})}var Di=new Map;function $i(e){var t=Di.get(e.nodeName);if(t)return t;Di.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Tn(n);for(var a in r)r[a].set&&t.push(a);n=qr(n)}return t}function Ui(e,t){return e===t||(e==null?void 0:e[Fe])===t}function dt(e={},t,r,n){return Xr(()=>{var i,a;return pr(()=>{i=a,a=(n==null?void 0:n())||[],Ve(()=>{e!==r(...a)&&(t(e,...a),i&&Ui(r(...i),e)&&t(null,...i))})}),()=>{Ft(()=>{a&&Ui(r(...a),e)&&t(null,...a)})}}),e}function Ho(e=!1){const t=ee,r=t.l.u;if(!r)return;let n=()=>gi(t.s);if(e){let i=0,a={};const s=St(()=>{let o=!1;const l=t.s;for(const u in l)l[u]!==a[u]&&(a[u]=l[u],o=!0);return o&&i++,i});n=()=>g(s)}r.b.length&&Ya(()=>{Ai(t,n),qt(r.b)}),Gr(()=>{const i=Ve(()=>r.m.map(Ma));return()=>{for(const a of i)typeof a=="function"&&a()}}),r.a.length&&Gr(()=>{Ai(t,n),qt(r.a)})}function Ai(e,t){if(e.l.s)for(const r of e.l.s)g(r);t()}function ln(e,t,r){if(e==null)return t(void 0),r&&r(void 0),it;const n=Ve(()=>e.subscribe(t,r));return n.unsubscribe?()=>n.unsubscribe():n}const Ut=[];function Oo(e,t){return{subscribe:xr(e,t).subscribe}}function xr(e,t=it){let r=null;const n=new Set;function i(o){if(Vn(e,o)&&(e=o,r)){const l=!Ut.length;for(const u of n)u[1](),Ut.push(u,e);if(l){for(let u=0;u<Ut.length;u+=2)Ut[u][0](Ut[u+1]);Ut.length=0}}}function a(o){i(o(e))}function s(o,l=it){const u=[o,l];return n.add(u),n.size===1&&(r=t(i,a)||it),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:i,update:a,subscribe:s}}function qo(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 a=t.length<2;return Oo(r,(s,o)=>{let l=!1;const u=[];let f=0,d=it;const c=()=>{if(f)return;d();const h=t(n?u[0]:u,s,o);a?s(h):d=typeof h=="function"?h:it},v=i.map((h,y)=>ln(h,M=>{u[y]=M,f&=~(1<<y),l&&c()},()=>{f|=1<<y}));return l=!0,c(),function(){qt(v),d(),l=!1}})}function un(e){let t;return ln(e,r=>t=r)(),t}let Cr=!1,cn=Symbol();function Ue(e,t,r){const n=r[t]??(r[t]={store:null,source:ht(void 0),unsubscribe:it});if(n.store!==e&&!(cn in r))if(n.unsubscribe(),n.store=e??null,e==null)n.source.v=void 0,n.unsubscribe=it;else{var i=!0;n.unsubscribe=ln(e,a=>{i?n.source.v=a:H(n.source,a)}),i=!1}return e&&cn in r?un(e):g(n.source)}function tr(){const e={};function t(){br(()=>{for(var r in e)e[r].unsubscribe();Ht(e,cn,{enumerable:!1,value:!0})})}return[e,t]}function Vo(e){var t=Cr;try{return Cr=!1,[e(),Cr]}finally{Cr=t}}const Po={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 Er(e,t,r){return new Proxy({props:e,exclude:t},Po)}const Ro={get(e,t){if(!e.exclude.includes(t))return g(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){return t in e.special||(e.special[t]=_({get[t](){return e.props[t]}},t,In)),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 Hi(e,t){return new Proxy({props:e,exclude:t,special:{},version:Mt(0)},Ro)}const Bo={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ot(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];Ot(i)&&(i=i());const a=We(i,t);if(a&&a.set)return a.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Ot(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const i=We(n,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Fe||t===Zr)return!1;for(let r of e.props)if(Ot(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Ot(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 Oi(...e){return new Proxy({props:e},Bo)}function jo(e){var t;return((t=e.ctx)==null?void 0:t.d)??!1}function _(e,t,r,n){var L;var i=!Ct||(r&ma)!==0,a=(r&wa)!==0,s=(r&ka)!==0,o=n,l=!0,u=()=>(l&&(l=!1,o=s?Ve(n):n),o),f;if(a){var d=Fe in e||Zr in e;f=((L=We(e,t))==null?void 0:L.set)??(d&&t in e?p=>e[t]=p:void 0)}var c,v=!1;a?[c,v]=Vo(()=>e[t]):c=e[t],c===void 0&&n!==void 0&&(c=u(),f&&(i&&Ua(),f(c)));var h;if(i?h=()=>{var p=e[t];return p===void 0?u():(l=!0,p)}:h=()=>{var p=e[t];return p!==void 0&&(o=void 0),p===void 0?o:p},i&&(r&In)===0)return h;if(f){var y=e.$$legacy;return function(p,b){return arguments.length>0?((!i||!b||y||v)&&f(b?h():p),p):h()}}var M=((r&ga)!==0?St:jn)(h);return a&&g(M),function(p,b){if(arguments.length>0){const m=b?g(M):i&&a?Et(p):p;return H(M,m),o!==void 0&&(o=m),p}return jo(M)?M.v:g(M)}}function Fo(e){return new Zo(e)}class Zo{constructor(t){Sn(this,nt);Sn(this,Ae);var a;var r=new Map,n=(s,o)=>{var l=ht(o,!1,!1);return r.set(s,l),l};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return g(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Zr?!0:(g(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,l){return H(r.get(o)??n(o,l),l),Reflect.set(s,o,l)}});Mn(this,Ae,(t.hydrate?ko:_i)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((a=t==null?void 0:t.props)!=null&&a.$$host)||t.sync===!1)&&k(),Mn(this,nt,i.$$events);for(const s of Object.keys(Ee(this,Ae)))s==="$set"||s==="$destroy"||s==="$on"||Ht(this,s,{get(){return Ee(this,Ae)[s]},set(o){Ee(this,Ae)[s]=o},enumerable:!0});Ee(this,Ae).$set=s=>{Object.assign(i,s)},Ee(this,Ae).$destroy=()=>{_o(Ee(this,Ae))}}$set(t){Ee(this,Ae).$set(t)}$on(t,r){Ee(this,nt)[t]=Ee(this,nt)[t]||[];const n=(...i)=>r.call(this,...i);return Ee(this,nt)[t].push(n),()=>{Ee(this,nt)[t]=Ee(this,nt)[t].filter(i=>i!==n)}}$destroy(){Ee(this,Ae).$destroy()}}nt=new WeakMap,Ae=new WeakMap;let qi;typeof HTMLElement=="function"&&(qi=class extends HTMLElement{constructor(t,r,n){super();ze(this,"$$ctor");ze(this,"$$s");ze(this,"$$c");ze(this,"$$cn",!1);ze(this,"$$d",{});ze(this,"$$r",!1);ze(this,"$$p_d",{});ze(this,"$$l",{});ze(this,"$$l_u",new Map);ze(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 a=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),I(a,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Yo(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 a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Sr(a,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=Fo({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ka(()=>{pr(()=>{var i;this.$$r=!0;for(const a of cr(this.$$c)){if(!((i=this.$$p_d[a])!=null&&i.reflect))continue;this.$$d[a]=this.$$c[a];const s=Sr(a,this.$$d[a],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[a].attribute||a):this.setAttribute(this.$$p_d[a].attribute||a,s)}this.$$r=!1})});for(const i in this.$$l)for(const a of this.$$l[i]){const s=this.$$c.$on(i,a);this.$$l_u.set(a,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 cr(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 a;const i=(a=r[e])==null?void 0:a.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 Yo(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function se(e,t,r,n,i,a){let s=class extends qi{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return cr(t).map(o=>(t[o].attribute||o).toLowerCase())}};return cr(t).forEach(o=>{Ht(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(l){var d;l=Sr(o,l,t),this.$$d[o]=l;var u=this.$$c;if(u){var f=(d=We(u,o))==null?void 0:d.get;f?u[o]=l:u.$set({[o]:l})}}})}),n.forEach(o=>{Ht(s.prototype,o,{get(){var l;return(l=this.$$c)==null?void 0:l[o]}})}),e.element=s,s}var Ko=ne("<a><!></a>"),Jo=ne("<button><!></button>");const Wo={hash:"svelte-zsrcxo",code:`
|
|
3
3
|
/*! purgecss start ignore */:root,
|
|
4
4
|
:host {
|
|
5
5
|
/* 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;
|
|
@@ -44,26 +44,31 @@
|
|
|
44
44
|
[disabled]:where(.svelte-zsrcxo),
|
|
45
45
|
[aria-disabled='true']:where(.svelte-zsrcxo)
|
|
46
46
|
) {box-shadow:var(--ai-button-box-shadow) var(--ai-color-neutral-200);color:var(--ai-color-neutral-600);}.ai-button--unstyled.svelte-zsrcxo:is(.disabled:where(.svelte-zsrcxo), [disabled]:where(.svelte-zsrcxo), [aria-disabled='true']:where(.svelte-zsrcxo)) {background:none;color:inherit;opacity:0.75;}
|
|
47
|
-
/*! purgecss end ignore */`};function $i(e,t){X(t,!0),dt(e,Ba);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"shape",7,"round"),o=y(t,"href",7,void 0),s=y(t,"disabled",7,!1),a=y(t,"onclick",7),l=y(t,"size",7,"medium"),u=y(t,"type",7,"button"),f=y(t,"class",7,""),d=yr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const c=ie(()=>()=>["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":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),v=ie(()=>()=>`${w(c)()} ${f()}`.trim());var h=pt(),k=Ze(h);{var E=p=>{var b=Pa();Qt(b,(m,L)=>({class:m,href:o(),onclick:a(),...d,[Tt]:L}),[()=>w(v)(),()=>({disabled:s()})],"svelte-zsrcxo");var g=S(b);mt(g,t,"default",{}),C(b),N(p,b)},z=p=>{var b=Ra();Qt(b,m=>({class:m,type:u(),disabled:s(),onclick:a(),...d}),[()=>w(v)()],"svelte-zsrcxo");var g=S(b);mt(g,t,"default",{}),C(b),N(p,b)};G(k,p=>{o()?p(E):p(z,!1)})}return N(e,h),Q({get variant(){return r()},set variant(p="primary"){r(p),_()},get theme(){return n()},set theme(p="default"){n(p),_()},get shape(){return i()},set shape(p="round"){i(p),_()},get href(){return o()},set href(p=void 0){o(p),_()},get disabled(){return s()},set disabled(p=!1){s(p),_()},get onclick(){return a()},set onclick(p){a(p),_()},get size(){return l()},set size(p="medium"){l(p),_()},get type(){return u()},set type(p="button"){u(p),_()},get class(){return f()},set class(p=""){f(p),_()}})}re($i,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function Ai(e,t){X(t,!0);let r=y(t,"variant",7,"primary"),n=y(t,"theme",7,"default"),i=y(t,"href",7,null),o=y(t,"disabled",7,!1),s=y(t,"size",7,"medium"),a=y(t,"type",7,"button"),l=y(t,"onclick",7),u=y(t,"class",7,""),f=yr(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return $i(e,Ti({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 class(){return u()}},()=>f,{children:(d,c)=>{var v=pt(),h=Ze(v);mt(h,t,"default",{}),N(d,v)},$$slots:{default:!0}})),Q({get variant(){return r()},set variant(d="primary"){r(d),_()},get theme(){return n()},set theme(d="default"){n(d),_()},get href(){return i()},set href(d=null){i(d),_()},get disabled(){return o()},set disabled(d=!1){o(d),_()},get size(){return s()},set size(d="medium"){s(d),_()},get type(){return a()},set type(d="button"){a(d),_()},get onclick(){return l()},set onclick(d){l(d),_()},get class(){return u()},set class(d=""){u(d),_()}})}customElements.define("graymatter-button",re(Ai,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{}},["default"],[],!0));const tr=typeof window<"u";function ja(e,t){if(tr&&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 Ui(e,t){const r=ja(e,t),n=wr(r);return tr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to sessionStorage:`,o)}}),n}const an=Ui("subNav-selectedId",null),wt=Ui("subNav-selectedTitle","");function Hi(e,t){if(tr&&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 Oi(e,t){const r=Hi(e,t),n=wr(r);return tr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(o){console.warn(`Failed to persist ${e} to localStorage:`,o)}}),n}const Pe=Oi("globalSideNav-isExpanded",!1),_t=Oi("globalSideNav-selectedItem",null),sn=Ta(_t,e=>e==="discover"),we={toggleExpanded:()=>{Pe.update(e=>!e)},setExpanded:e=>{Pe.set(e)},setSelectedItem:e=>{_t.set(e),e==="discover"?Pe.set(!1):tr&&window.innerWidth>640&&Pe.set(!0)},handleLayoutTransition:e=>{if(e)Pe.set(!1);else{const t=Hi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Pe.set(!0)):Pe.set(!1)}}},xr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Pe,isMenuButtonDisabled:sn,navigationStore:we,selectedItem:_t,selectedSubNavItemId:an,selectedSubNavItemTitle:wt},Symbol.toStringTag,{value:"Module"})),Fa=wr(!1);var Za=ee('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const Ya={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {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-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function qi(e,t){X(t,!0),dt(e,Ya);const[r,n]=er(),i=()=>Ae(_t,"$selectedItem",r),o=()=>Ae(Pe,"$isExpanded",r),s=()=>Ae(Fa,"$subNavReady",r),a=()=>Ae(wt,"$selectedSubNavItemTitle",r),l=y(t,"customHeaderText",7,"");let u=!1;const f=ie(()=>()=>i()&&i()!=="discover"&&!o()&&!u&&s()),d=ie(()=>()=>l()||a());Gt(()=>{const p=g=>{if(typeof window<"u"&&window.innerWidth<=640)return;let m=null;if(typeof window<"u"&&(m=sessionStorage.getItem("subNav-topLevelTitle"),m))try{m=JSON.parse(m)}catch{}if(typeof m=="string"&&m.trim()!=="")wt.set(m),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(m));else{const L=g;L.detail&&L.detail.title&&(wt.set(L.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(L.detail.title)))}},b=g=>{const m=g,{isMobile:L}=m.detail;L||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",p),window.addEventListener("layoutTransition",b),()=>{window.removeEventListener("sectionVisible",p),window.removeEventListener("layoutTransition",b)}});var c=Za();let v;var h=S(c),k=S(h),E=S(k,!0);C(k),C(h),C(c),be((p,b)=>{v=ke(c,1,"global-header svelte-1e8dq3f",null,v,p),Wt(E,b)},[()=>({visible:w(f)()}),()=>w(d)()]),N(e,c);var z=Q({get customHeaderText(){return l()},set customHeaderText(p=""){l(p),_()}});return n(),z}re(qi,{customHeaderText:{}},[],[],!0);function Vi(e,t){X(t,!0);let r=y(t,"customHeaderText",7,"");return qi(e,{get customHeaderText(){return r()}}),Q({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),_()}})}customElements.define("graymatter-desktop-header",re(Vi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),$o();var Ka=te('<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>'),Ja=te('<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>'),Wa=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function ln(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=Wa(),i=S(n);{var o=a=>{var l=Ka();N(a,l)},s=a=>{var l=Ja();N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(ln,{isSelected:{}},[],[],!0);var Ga=te('<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>'),Xa=te('<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>'),Qa=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function un(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=Qa(),i=S(n);{var o=a=>{var l=Ga();N(a,l)},s=a=>{var l=Xa();N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(un,{isSelected:{}},[],[],!0);var es=te('<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),ts=te('<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),rs=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function cn(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=rs(),i=S(n);{var o=a=>{var l=es();Fe(3),N(a,l)},s=a=>{var l=ts();Fe(3),N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(cn,{isSelected:{}},[],[],!0);var ns=te('<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),is=te('<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),os=te('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function dn(e,t){X(t,!1);let r=y(t,"isSelected",12,!1);var n=os(),i=S(n);{var o=a=>{var l=ns();Fe(2),N(a,l)},s=a=>{var l=is();Fe(2),N(a,l)};G(i,a=>{r()?a(o):a(s,!1)})}return C(n),N(e,n),Q({get isSelected(){return r()},set isSelected(a){r(a),_()}})}re(dn,{isSelected:{}},[],[],!0);var as=te('<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),ss=te('<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),ls=te('<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),us=te('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),cs=te('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),ds=te('<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),vs=te("<svg><!></svg>");function Cr(e,t){const r=Ni(t,["children","$$slots","$$events","$$legacy","$$host"]),n=Ni(r,["isDisabled","isHovered","isOpen"]);X(t,!1);let i=y(t,"isDisabled",12,!1),o=y(t,"isHovered",12,!1),s=y(t,"isOpen",12,!1);var a=vs();Qt(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=d=>{var c=as(),v=ue(Ze(c));be(()=>F(v,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),N(d,c)},f=(d,c)=>{{var v=k=>{var E=pt(),z=Ze(E);{var p=g=>{var m=ss();Fe(),N(g,m)},b=g=>{var m=ls();Fe(),N(g,m)};G(z,g=>{s()?g(p):g(b,!1)})}N(k,E)},h=k=>{var E=ds(),z=ue(Ze(E));{var p=g=>{var m=us();N(g,m)},b=g=>{var m=cs();N(g,m)};G(z,g=>{s()?g(p):g(b,!1)})}N(k,E)};G(d,k=>{o()?k(v):k(h,!1)},c)}};G(l,d=>{i()?d(u):d(f,!1)})}return C(a),N(e,a),Q({get isDisabled(){return i()},set isDisabled(d){i(d),_()},get isHovered(){return o()},set isHovered(d){o(d),_()},get isOpen(){return s()},set isOpen(d){s(d),_()}})}re(Cr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var fs=ee('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),hs=ee('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),bs=ee('<div tabindex="-1" role="menu"></div>'),gs=ee('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const ps={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
|
|
47
|
+
/*! purgecss end ignore */`};function Vi(e,t){ie(t,!0),ct(e,Wo);let r=_(t,"variant",7,"primary"),n=_(t,"theme",7,"default"),i=_(t,"shape",7,"round"),a=_(t,"href",7,void 0),s=_(t,"disabled",7,!1),o=_(t,"onclick",7),l=_(t,"size",7,"medium"),u=_(t,"type",7,"button"),f=_(t,"class",7,""),d=Er(t,["$$slots","$$events","$$legacy","$$host","variant","theme","shape","href","disabled","onclick","size","type","class"]);const c=te(()=>()=>["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":"",i()==="square"?"ai-button--square":""].filter(Boolean).join(" ")),v=te(()=>()=>`${g(c)()} ${f()}`.trim());var h=pt(),y=Ye(h);{var M=p=>{var b=Ko();er(b,(w,T)=>({class:w,href:a(),onclick:o(),...d,[$t]:T}),[()=>g(v)(),()=>({disabled:s()})],"svelte-zsrcxo");var m=S(b);gt(m,t,"default",{}),E(b),I(p,b)},L=p=>{var b=Jo();er(b,w=>({class:w,type:u(),disabled:s(),onclick:o(),...d}),[()=>g(v)()],"svelte-zsrcxo");var m=S(b);gt(m,t,"default",{}),E(b),I(p,b)};re(y,p=>{a()?p(M):p(L,!1)})}return I(e,h),ae({get variant(){return r()},set variant(p="primary"){r(p),k()},get theme(){return n()},set theme(p="default"){n(p),k()},get shape(){return i()},set shape(p="round"){i(p),k()},get href(){return a()},set href(p=void 0){a(p),k()},get disabled(){return s()},set disabled(p=!1){s(p),k()},get onclick(){return o()},set onclick(p){o(p),k()},get size(){return l()},set size(p="medium"){l(p),k()},get type(){return u()},set type(p="button"){u(p),k()},get class(){return f()},set class(p=""){f(p),k()}})}se(Vi,{variant:{},theme:{},shape:{},href:{},disabled:{},onclick:{},size:{},type:{},class:{}},["default"],[],!0);function Pi(e,t){ie(t,!0);let r=_(t,"variant",7,"primary"),n=_(t,"theme",7,"default"),i=_(t,"href",7,null),a=_(t,"disabled",7,!1),s=_(t,"size",7,"medium"),o=_(t,"type",7,"button"),l=_(t,"onclick",7),u=_(t,"class",7,""),f=Er(t,["$$slots","$$events","$$legacy","$$host","variant","theme","href","disabled","size","type","onclick","class"]);return Vi(e,Oi({get variant(){return r()},get theme(){return n()},get href(){return i()},get disabled(){return a()},get size(){return s()},get type(){return o()},get onclick(){return l()},get class(){return u()}},()=>f,{children:(d,c)=>{var v=pt(),h=Ye(v);gt(h,t,"default",{}),I(d,v)},$$slots:{default:!0}})),ae({get variant(){return r()},set variant(d="primary"){r(d),k()},get theme(){return n()},set theme(d="default"){n(d),k()},get href(){return i()},set href(d=null){i(d),k()},get disabled(){return a()},set disabled(d=!1){a(d),k()},get size(){return s()},set size(d="medium"){s(d),k()},get type(){return o()},set type(d="button"){o(d),k()},get onclick(){return l()},set onclick(d){l(d),k()},get class(){return u()},set class(d=""){u(d),k()}})}customElements.define("graymatter-button",se(Pi,{variant:{attribute:"variant",reflect:!0,type:"String"},theme:{attribute:"theme",reflect:!0,type:"String"},href:{attribute:"href",reflect:!0,type:"String"},disabled:{attribute:"disabled",reflect:!0,type:"Boolean"},size:{attribute:"size",reflect:!0,type:"String"},type:{attribute:"type",reflect:!0,type:"String"},onclick:{},class:{}},["default"],[],!0));const rr=typeof window<"u";function Go(e,t){if(rr&&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 Ri(e,t){const r=Go(e,t),n=xr(r);return rr&&n.subscribe(i=>{try{sessionStorage.setItem(e,JSON.stringify(i))}catch(a){console.warn(`Failed to persist ${e} to sessionStorage:`,a)}}),n}const mt=Ri("subNav-selectedId",null),wt=Ri("subNav-selectedTitle","");function Bi(e,t){if(rr&&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 ji(e,t){const r=Bi(e,t),n=xr(r);return rr&&n.subscribe(i=>{try{localStorage.setItem(e,JSON.stringify(i))}catch(a){console.warn(`Failed to persist ${e} to localStorage:`,a)}}),n}const Re=ji("globalSideNav-isExpanded",!1),kt=ji("globalSideNav-selectedItem",null),dn=qo(kt,e=>e==="discover"),_e={toggleExpanded:()=>{Re.update(e=>!e)},setExpanded:e=>{Re.set(e)},setSelectedItem:e=>{kt.set(e),e==="discover"?Re.set(!1):rr&&window.innerWidth>640&&Re.set(!0)},handleLayoutTransition:e=>{if(e)Re.set(!1);else{const t=Bi("globalSideNav-selectedItem",null);t&&t!=="discover"?(console.log("[NavigationStore] Opening navigation for desktop (non-discover page)"),Re.set(!0)):Re.set(!1)}}},Mr=Object.freeze(Object.defineProperty({__proto__:null,isExpanded:Re,isMenuButtonDisabled:dn,navigationStore:_e,selectedItem:kt,selectedSubNavItemId:mt,selectedSubNavItemTitle:wt},Symbol.toStringTag,{value:"Module"})),Xo=xr(!1);var Qo=ne('<div part="global-header"><div class="header-content svelte-1e8dq3f" part="header-content"><span class="header-text svelte-1e8dq3f"> </span></div></div>');const es={hash:"svelte-1e8dq3f",code:".global-header.svelte-1e8dq3f {opacity:0;transition:opacity var(--ai-duration-fast);}.global-header.visible.svelte-1e8dq3f {opacity:1;transition:opacity var(--ai-duration-fast);}.header-content.svelte-1e8dq3f {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-1e8dq3f {display:flex;align-items:center;gap:var(--ai-size-16);align-self:stretch;}.header-text.svelte-1e8dq3f {color:var(--ai-color-black);font-size:var(--ai-size-16);font-weight:400;line-height:1.3;}"};function Fi(e,t){ie(t,!0),ct(e,es);const[r,n]=tr(),i=()=>Ue(kt,"$selectedItem",r),a=()=>Ue(Re,"$isExpanded",r),s=()=>Ue(Xo,"$subNavReady",r),o=()=>Ue(wt,"$selectedSubNavItemTitle",r),l=_(t,"customHeaderText",7,"");let u=!1;const f=te(()=>()=>i()&&i()!=="discover"&&!a()&&!u&&s()),d=te(()=>()=>l()||o());Dt(()=>{const p=m=>{if(typeof window<"u"&&window.innerWidth<=640)return;let w=null;if(typeof window<"u"&&(w=sessionStorage.getItem("subNav-topLevelTitle"),w))try{w=JSON.parse(w)}catch{}if(typeof w=="string"&&w.trim()!=="")wt.set(w),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(w));else{const T=m;T.detail&&T.detail.title&&(wt.set(T.detail.title),sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(T.detail.title)))}},b=m=>{const w=m,{isMobile:T}=w.detail;T||(u=!0,setTimeout(()=>{u=!1},300))};return window.addEventListener("sectionVisible",p),window.addEventListener("layoutTransition",b),()=>{window.removeEventListener("sectionVisible",p),window.removeEventListener("layoutTransition",b)}});var c=Qo();let v;var h=S(c),y=S(h),M=S(y,!0);E(y),E(h),E(c),pe((p,b)=>{v=ke(c,1,"global-header svelte-1e8dq3f",null,v,p),Xt(M,b)},[()=>({visible:g(f)()}),()=>g(d)()]),I(e,c);var L=ae({get customHeaderText(){return l()},set customHeaderText(p=""){l(p),k()}});return n(),L}se(Fi,{customHeaderText:{}},[],[],!0);function Zi(e,t){ie(t,!0);let r=_(t,"customHeaderText",7,"");return Fi(e,{get customHeaderText(){return r()}}),ae({get customHeaderText(){return r()},set customHeaderText(n=""){r(n),k()}})}customElements.define("graymatter-desktop-header",se(Zi,{customHeaderText:{attribute:"custom-header-text",reflect:!0,type:"String"}},[],[],!0)),Va();var ts=oe('<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>'),rs=oe('<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>'),ns=oe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function vn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=ns(),i=S(n);{var a=o=>{var l=ts();I(o,l)},s=o=>{var l=rs();I(o,l)};re(i,o=>{r()?o(a):o(s,!1)})}return E(n),I(e,n),ae({get isSelected(){return r()},set isSelected(o){r(o),k()}})}se(vn,{isSelected:{}},[],[],!0);var is=oe('<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>'),as=oe('<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>'),os=oe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function fn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=os(),i=S(n);{var a=o=>{var l=is();I(o,l)},s=o=>{var l=as();I(o,l)};re(i,o=>{r()?o(a):o(s,!1)})}return E(n),I(e,n),ae({get isSelected(){return r()},set isSelected(o){r(o),k()}})}se(fn,{isSelected:{}},[],[],!0);var ss=oe('<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),ls=oe('<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),us=oe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function hn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=us(),i=S(n);{var a=o=>{var l=ss();Ze(3),I(o,l)},s=o=>{var l=ls();Ze(3),I(o,l)};re(i,o=>{r()?o(a):o(s,!1)})}return E(n),I(e,n),ae({get isSelected(){return r()},set isSelected(o){r(o),k()}})}se(hn,{isSelected:{}},[],[],!0);var cs=oe('<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),ds=oe('<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),vs=oe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><!></svg>');function bn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=vs(),i=S(n);{var a=o=>{var l=cs();Ze(2),I(o,l)},s=o=>{var l=ds();Ze(2),I(o,l)};re(i,o=>{r()?o(a):o(s,!1)})}return E(n),I(e,n),ae({get isSelected(){return r()},set isSelected(o){r(o),k()}})}se(bn,{isSelected:{}},[],[],!0);var fs=oe('<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),hs=oe('<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),bs=oe('<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),ps=oe('<path d="M8.18018 5.45068V18.5208" stroke="#585C63" stroke-width="1.5"></path>'),gs=oe('<path d="M9.18018 3.27222V20.9203" stroke="#585C63" stroke-width="1.5"></path>'),ms=oe('<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),ws=oe("<svg><!></svg>");function Lr(e,t){const r=Hi(t,["children","$$slots","$$events","$$legacy","$$host"]),n=Hi(r,["isDisabled","isHovered","isOpen"]);ie(t,!1);let i=_(t,"isDisabled",12,!1),a=_(t,"isHovered",12,!1),s=_(t,"isOpen",12,!1);var o=ws();er(o,()=>({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",...n}));var l=S(o);{var u=d=>{var c=fs(),v=ve(Ye(c));pe(()=>Y(v,"d",`M${s()?"8.18018":"9.18018"} ${s()?"5.45068":"3.27222"}V${s()?"18.5208":"20.9203"}`)),I(d,c)},f=(d,c)=>{{var v=y=>{var M=pt(),L=Ye(M);{var p=m=>{var w=hs();Ze(),I(m,w)},b=m=>{var w=bs();Ze(),I(m,w)};re(L,m=>{s()?m(p):m(b,!1)})}I(y,M)},h=y=>{var M=ms(),L=ve(Ye(M));{var p=m=>{var w=ps();I(m,w)},b=m=>{var w=gs();I(m,w)};re(L,m=>{s()?m(p):m(b,!1)})}I(y,M)};re(d,y=>{a()?y(v):y(h,!1)},c)}};re(l,d=>{i()?d(u):d(f,!1)})}return E(o),I(e,o),ae({get isDisabled(){return i()},set isDisabled(d){i(d),k()},get isHovered(){return a()},set isHovered(d){a(d),k()},get isOpen(){return s()},set isOpen(d){s(d),k()}})}se(Lr,{isDisabled:{},isHovered:{},isOpen:{}},[],[],!0);var ks=ne('<span class="icon svelte-1ybo61g"><img alt="" aria-hidden="true" width="20" height="20"/></span>'),_s=ne('<button type="button" class="menu-item svelte-1ybo61g" role="menuitem"><!> <div class="menu-text svelte-1ybo61g"> </div></button>'),ys=ne('<div tabindex="-1" role="menu"></div>'),xs=ne('<div style="position: relative; display: inline-block;" data-profile-menu=""><button class="user-profile-button svelte-1ybo61g" tabindex="0" aria-haspopup="menu"><div class="user-profile-container svelte-1ybo61g"><div class="user-profile-icon svelte-1ybo61g" part="user-profile-icon"><span class="user-initials svelte-1ybo61g"> </span></div></div></button> <!></div>');const Cs={hash:"svelte-1ybo61g",code:`.user-profile-container.svelte-1ybo61g,
|
|
48
48
|
.user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-container.svelte-1ybo61g,
|
|
49
49
|
.user-profile-icon.svelte-1ybo61g {display:flex;align-items:center;justify-content:center;}.user-profile-icon.svelte-1ybo61g {background:var(--ai-color-blue-800);border-radius:var(--ai-size-4);box-sizing:border-box;height:var(--ai-size-40);padding:var(--ai-size-4);white-space:nowrap;width:var(--ai-size-40);}.user-initials.svelte-1ybo61g {color:var(--ai-color-white);font-size:var(--ai-size-16);font-style:normal;font-weight:400;line-height:1;overflow:hidden;text-align:center;text-overflow:ellipsis;}.user-profile-button.svelte-1ybo61g {background:none;border:none;padding:0;cursor:pointer;display:flex;justify-content:center;align-items:center;}.user-profile-button.svelte-1ybo61g:focus {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}.user-profile-button.svelte-1ybo61g:focus:not(:focus-visible) {outline:none;}.user-profile-container.svelte-1ybo61g {width:var(--ai-size-40);height:var(--ai-size-40);aspect-ratio:1/1;}.profile-context-menu.svelte-1ybo61g {display:flex;width:13.75rem;padding:var(--ai-size-12);flex-direction:column;align-items:flex-start;gap:var(--ai-size-2);border-radius:var(--ai-size-8);border:0.0625rem solid var(--ai-color-steel-200);background:var(--ai-color-white);box-shadow:0 0.1875rem var(--ai-size-6) 0 rgba(50, 54, 61, 0.2);position:absolute;z-index:var(--ai-layer-50);}.profile-context-menu.desktop-align.svelte-1ybo61g {left:100%;top:auto;bottom:0;margin-left:var(--ai-size-8);
|
|
50
|
-
/* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-1ybo61g {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-1ybo61g {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-1ybo61g:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-1ybo61g:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-1ybo61g:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-1ybo61g {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-1ybo61g {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function
|
|
51
|
-
.menu-button.disabled.svelte-
|
|
52
|
-
.nav-item.svelte-
|
|
53
|
-
.nav-item.svelte-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
/* aligns bottom of menu with bottom of button */transform:translateY(0);}.profile-context-menu.mobile-align.svelte-1ybo61g {top:110%;right:0;left:auto;bottom:auto;margin-left:0;transform:none;}.menu-item.svelte-1ybo61g {display:flex;align-items:center;gap:var(--ai-size-10);flex:1 0 0;width:100%;cursor:pointer;padding:var(--ai-size-8);background:none;border:none;box-shadow:none;outline:none;}.menu-item.svelte-1ybo61g:focus {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);}.menu-item.svelte-1ybo61g:focus:not(:focus-visible) {outline:none;}.menu-item.svelte-1ybo61g:hover {background:var(--ai-color-steel-200);border-radius:var(--ai-size-4);}.icon.svelte-1ybo61g {width:var(--ai-size-20);height:var(--ai-size-20);display:flex;align-items:center;justify-content:center;}.menu-text.svelte-1ybo61g {color:var(--ai-color-black);font-size:var(--ai-size-14);font-style:normal;font-weight:400;line-height:130%;}`};function pn(e,t){ie(t,!1),ct(e,Cs);let r=_(t,"menuItems",28,()=>[]),n=_(t,"userMeta",12),i=_(t,"ariaLabel",12,"Open profile menu"),a=_(t,"menuAlign",12,"desktop"),s=`profile-menu-${Math.random().toString(36).slice(2,10)}`,o=ht(!1);function l(){H(o,!g(o))}function u(){H(o,!1)}function f(z){var B;try{const G=new CustomEvent("profileMenuAction",{detail:{action:z,timestamp:Date.now(),userMeta:n()},bubbles:!0,composed:!0});(((B=document.querySelector(".profile-context-menu"))==null?void 0:B.closest("[data-profile-menu]"))||window).dispatchEvent(G)}catch(G){console.error("Error dispatching profile menu action:",G)}}function d(z){const B=z.relatedTarget;(!B||!B.closest(".profile-context-menu"))&&u()}let c=ht(),v=ht([]),h=ht([]);function y(z,B){var G,W,N;if(z.key==="ArrowDown"){z.preventDefault();const $=(B+1)%r().length;(G=g(v)[$])==null||G.focus()}else if(z.key==="ArrowUp"){z.preventDefault();const $=(B-1+r().length)%r().length;(W=g(v)[$])==null||W.focus()}else z.key==="Escape"&&(u(),(N=g(c))==null||N.focus(),z.stopPropagation())}function M(z){var B;g(o)&&z.key==="Escape"&&(u(),(B=g(c))==null||B.focus(),z.stopPropagation())}Dt(()=>(window.addEventListener("keydown",M,!0),()=>{window.removeEventListener("keydown",M,!0)})),Wa(()=>g(h),()=>{H(v,g(h).filter(Boolean))}),Ga(),Ho();var L=xs(),p=S(L),b=S(p),m=S(b),w=S(m),T=S(w,!0);E(w),E(m),E(b),E(p),dt(p,z=>H(c,z),()=>g(c));var D=ve(p,2);{var J=z=>{var B=ys();xi(B,7,r,G=>G.label,(G,W,N)=>{var $=_s(),x=S($);{var U=K=>{var ce=ks(),vt=S(ce);E(ce),pe(()=>Y(vt,"src",(g(W),Ve(()=>g(W).icon)))),I(K,ce)};re(x,K=>{g(W),Ve(()=>g(W).icon)&&K(U)})}var P=ve(x,2),q=S(P,!0);E(P),E($),dt($,(K,ce)=>ja(h,g(h)[ce]=K),K=>{var ce;return(ce=g(h))==null?void 0:ce[K]},()=>[g(N)]),pe(()=>Xt(q,(g(W),Ve(()=>g(W).label)))),ge("click",$,()=>{f(g(W).action),u()}),ge("keydown",$,K=>y(K,g(N))),I(G,$)}),E(B),pe(()=>{ke(B,1,`profile-context-menu ${a()==="desktop"?"desktop-align":"mobile-align"}`,"svelte-1ybo61g"),Y(B,"id",s)}),I(z,B)};re(D,z=>{g(o)&&z(J)})}return E(L),pe(()=>{Y(p,"aria-label",i()),Y(p,"aria-expanded",g(o)),Y(p,"aria-controls",s),Xt(T,(gi(n()),Ve(()=>{var z;return(z=n())==null?void 0:z.initials})))}),ge("click",p,l),ge("blur",p,d),I(e,L),ae({get menuItems(){return r()},set menuItems(z){r(z),k()},get userMeta(){return n()},set userMeta(z){n(z),k()},get ariaLabel(){return i()},set ariaLabel(z){i(z),k()},get menuAlign(){return a()},set menuAlign(z){a(z),k()}})}se(pn,{menuItems:{},userMeta:{},ariaLabel:{},menuAlign:{}},[],[],!0);var Es=oe('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M9.87891 7.51884C11.0505 6.49372 12.95 6.49372 14.1215 7.51884C15.2931 8.54397 15.2931 10.206 14.1215 11.2312C13.9176 11.4096 13.6917 11.5569 13.4513 11.6733C12.7056 12.0341 12.0002 12.6716 12.0002 13.5V14.25M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM12 17.25H12.0075V17.2575H12V17.25Z" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function gn(e,t){ie(t,!1);let r=_(t,"isSelected",12,!1);var n=Es(),i=S(n);return E(n),pe(()=>Y(i,"stroke",r()?"#000":"#585C63")),I(e,n),ae({get isSelected(){return r()},set isSelected(a){r(a),k()}})}se(gn,{isSelected:{}},[],[],!0);function Ss(){mt.set("help")}function Ms(e,t,r,n){var i;t()||(_e.toggleExpanded(),(i=r())==null||i({expanded:n()}))}var Ls=(e,t)=>t("discover"),Is=(e,t,r)=>{t(e,"discover"),r(e,0)},zs=ne('<a part="discover-item"><div class="icon-container svelte-13uakc8" part="discover-icon-container"><div class="icon-wrapper svelte-13uakc8"><!></div></div> <span class="nav-text svelte-13uakc8">Discover</span></a>'),Ns=(e,t)=>t("chat"),Ts=(e,t,r)=>{t(e,"chat"),r(e,1)},Ds=(e,t)=>t("console"),$s=(e,t,r)=>{t(e,"console"),r(e,2)},Us=(e,t)=>t("api"),As=(e,t,r)=>{t(e,"api"),r(e,3)},Hs=ne('<div class="nav-items svelte-13uakc8" part="nav-items"><!> <a part="chat-item"><div class="icon-container svelte-13uakc8" part="chat-icon-container"><div class="icon-wrapper svelte-13uakc8"><!></div></div> <span class="nav-text svelte-13uakc8">Chat</span></a> <a part="console-item"><div class="icon-container svelte-13uakc8" part="console-icon-container"><div class="icon-wrapper svelte-13uakc8"><!></div></div> <span class="nav-text svelte-13uakc8">Console</span></a> <a part="api-item"><div class="icon-container svelte-13uakc8" part="api-icon-container"><div class="icon-wrapper svelte-13uakc8"><!></div></div> <span class="nav-text svelte-13uakc8">API</span></a></div>'),Os=ne('<div class="nav-footer-icon-container svelte-13uakc8" part="nav-footer-icon-container"><a part="help-link" title="Help" aria-label="Help"><div class="icon-container svelte-13uakc8" part="help-icon-container"><div class="icon-wrapper svelte-13uakc8"><!></div></div></a></div>'),qs=ne('<div class="nav-footer svelte-13uakc8" part="nav-footer"><!> <div class="nav-footer-profile-container svelte-13uakc8"><!></div></div>'),Vs=ne('<div class="drawer-content svelte-13uakc8" part="drawer-content"><nav aria-label="Sub navigation" part="sub-navigation" class="svelte-13uakc8"><!></nav></div>'),Ps=ne('<div part="side-nav-container" data-testid="side-nav-container"><div class="nav-content svelte-13uakc8" part="nav-content"><div class="nav-main svelte-13uakc8" part="nav-main"><div class="menu-section svelte-13uakc8" part="menu-section"><button><div class="icon-container svelte-13uakc8" part="icon-container"><div class="icon-wrapper svelte-13uakc8"><!></div></div></button></div> <!></div> <!></div> <div part="expanded-content"><!></div></div>');const Rs={hash:"svelte-13uakc8",code:`.expanded-content.drawer-anim.svelte-13uakc8 {max-width:0;overflow:hidden;pointer-events:none;transition:max-width var(--ai-duration-fast) cubic-bezier(0.4, 0, 0.2, 1);}.expanded-content.drawer-anim.open.svelte-13uakc8 {max-width:12.5rem;pointer-events:auto;}.drawer-content.svelte-13uakc8 {width:12.5rem;height:100%;display:flex;flex-direction:column;padding-top:var(--ai-size-72);}.drawer-content.svelte-13uakc8 nav:where(.svelte-13uakc8) {flex:1;overflow-y:auto;overflow-x:hidden;}.menu-button.svelte-13uakc8 {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-13uakc8:disabled,
|
|
51
|
+
.menu-button.disabled.svelte-13uakc8 {cursor:not-allowed;opacity:0.5;background-color:transparent;}.side-nav-container.svelte-13uakc8 {display:flex;flex-shrink:0;position:relative;z-index:var(--ai-layer-2);height:100%;}.side-nav-container.expanded.svelte-13uakc8 {width:16.875rem;min-width:12.5rem;max-width:16.875rem;height:100%;}.expanded-content.svelte-13uakc8 {display:flex;width:12.5rem;opacity:1;flex:none;height:100%;background:var(--ai-color-steel-50);border-right:0.0625rem solid var(--ai-color-steel-100);overflow:hidden;flex-direction:column;}.side-nav-container.expanded.svelte-13uakc8 .expanded-content:where(.svelte-13uakc8) {width:12.5rem;opacity:1;overflow:hidden;}.side-nav-container.svelte-13uakc8:not(.expanded) .expanded-content:where(.svelte-13uakc8) {width:0;opacity:0;}.nav-content.svelte-13uakc8 {display:flex;width:var(--ai-size-72);height:100%;padding-bottom:var(--ai-size-16);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:none;background:var(--ai-color-steel-100);border-right:0.0625rem solid var(--ai-color-steel-200);}.nav-main.svelte-13uakc8 {display:flex;flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);flex:1 0 0;align-self:stretch;}.nav-footer.svelte-13uakc8 {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;margin-top:auto;}.menu-section.svelte-13uakc8 {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;align-self:stretch;}.menu-button.svelte-13uakc8 {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-13uakc8 {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-13uakc8:focus,
|
|
52
|
+
.nav-item.svelte-13uakc8:focus {outline:none;}.menu-button.svelte-13uakc8:focus .icon-container:where(.svelte-13uakc8),
|
|
53
|
+
.nav-item.svelte-13uakc8:focus .icon-container:where(.svelte-13uakc8),
|
|
54
|
+
.help-link.svelte-13uakc8:focus .icon-container:where(.svelte-13uakc8) {outline:var(--ai-size-2) solid var(--ai-color-blue-600);outline-offset:var(--ai-size-2);border-radius:var(--ai-size-4);}
|
|
55
|
+
|
|
56
|
+
/* Hide focus outline on click */.menu-button.svelte-13uakc8:focus:not(:focus-visible) .icon-container:where(.svelte-13uakc8),
|
|
57
|
+
.nav-item.svelte-13uakc8:focus:not(:focus-visible) .icon-container:where(.svelte-13uakc8),
|
|
58
|
+
.help-link.svelte-13uakc8:focus:not(:focus-visible) .icon-container:where(.svelte-13uakc8) {outline:none;}.nav-items.svelte-13uakc8 {display:flex;width:var(--ai-size-72);flex-direction:column;align-items:flex-start;gap:var(--ai-size-4);}.nav-item.svelte-13uakc8 {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-13uakc8 {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 var(--ai-transition-ease-medium),
|
|
59
|
+
border-radius var(--ai-transition-ease-medium);}.icon-wrapper.svelte-13uakc8 {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 var(--ai-transition-ease-medium);}.icon-wrapper.svelte-13uakc8 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 var(--ai-transition-ease-medium);}.icon-wrapper.svelte-13uakc8 svg path {stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke var(--ai-transition-ease-medium),
|
|
58
60
|
fill var(--ai-transition-ease-medium),
|
|
59
|
-
stroke-width var(--ai-transition-ease-medium);}.nav-text.svelte-
|
|
60
|
-
.menu-button.svelte-
|
|
61
|
-
.nav-item.svelte-
|
|
62
|
-
.nav-item.selected.svelte-
|
|
63
|
-
.nav-item.selected.hovered.svelte-
|
|
64
|
-
.menu-button.svelte-
|
|
65
|
-
.menu-button.svelte-1d4ucr3:active .icon-container:where(.svelte-1d4ucr3) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-1d4ucr3 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.svelte-1d4ucr3:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-1d4ucr3 {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-1d4ucr3 {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;}.help-link.svelte-1d4ucr3 {border-radius:var(--ai-size-4);padding:var(--ai-size-4);transition:background-color var(--ai-transition-ease-medium);}.help-link.svelte-1d4ucr3 svg {display:block;}.help-link.svelte-1d4ucr3:hover {background:var(--ai-color-steel-300);}.help-link.svelte-1d4ucr3:is(.selected:where(.svelte-1d4ucr3)) {background-color:var(--ai-color-steel-300);}`};function Ri(e,t){X(t,!0),dt(e,$s);const[r,n]=er(),i=()=>Ae(_t,"$selectedItem",r),o=()=>Ae(Pe,"$isExpanded",r),s=()=>Ae(sn,"$isMenuButtonDisabled",r),a=y(t,"ssrSelectedItem",7,void 0),l=y(t,"onNavToggle",7,void 0),u=y(t,"onNavItemClick",7,void 0),f=y(t,"showAppIcons",7,!0),d=y(t,"hideDiscover",7,!0),c=y(t,"profileMenuData",7),v=y(t,"apiUrl",7),h=y(t,"chatUrl",7),k=y(t,"consoleUrl",7),E=y(t,"discoverUrl",7),z=y(t,"supplementalMenuData",7);let p=!1,b,g=pe(null),m=pe(!1),L=pe(!1),T=pe(null),O=pe(null),M=pe(null),A=pe(null),Z=null;function J(x,Y){return p?x:Y}function I(x){return J(i()===x,a()===x)}function D(x){return w(g)===x}const j=ie(()=>()=>J(o(),a()?a()!=="discover":!0)),ce=ie(()=>()=>J(s(),a()?a()==="discover":!1)),fe=ie(()=>()=>J(o(),a()?a()!=="discover":!0)),de=ie(()=>()=>w(L)&&w(m)&&!w(ce)());Gt(()=>{if(p=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),b&&b.classList.add("hydrated"),typeof window<"u"){const x=window.matchMedia("(hover: hover)");U(L,x.matches,!0),x.addEventListener("change",P=>{U(L,P.matches,!0)});const Y=P=>{const he=P,{isMobile:xe}=he.detail;if(xe)we.setExpanded(!1);else{const ze=i();ze&&ze!=="discover"?we.setExpanded(!0):we.setExpanded(!1)}};window.addEventListener("layoutTransition",Y);const V=P=>{const he=document.activeElement;P.key==="Escape"&&o()&&!(he&&he.closest(".profile-context-menu"))&&we.setExpanded(!1)};window.addEventListener("keydown",V);const le=P=>{const he=P,{action:xe,isOpen:ze}=he.detail;xe==="toggle"?we.toggleExpanded():xe==="open"?we.setExpanded(!0):xe==="close"?we.setExpanded(!1):xe==="set"&&typeof ze=="boolean"&&we.setExpanded(ze)};return window.addEventListener("graymatter-desktop-nav-control",le),Z=()=>{window.removeEventListener("graymatter-desktop-nav-control",le)},()=>{window.removeEventListener("layoutTransition",Y),window.removeEventListener("keydown",V),Z&&Z()}}});function ne(x){var Y;if(x!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),we.setSelectedItem(x),x!=="discover")try{Promise.resolve().then(()=>xr).then(({selectedSubNavItemTitle:V})=>{V.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const le=document.getElementById("main-content");if(le){const P=le.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(P&&P.textContent){const he=P.textContent.trim();V.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},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(()=>xr).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)}(Y=u())==null||Y({item:x,expanded:o()})}function ve(x,Y){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),ne(Y))}function it(x,Y){var P,he,xe,ze;const V=[w(T),w(O),w(M),w(A)],le=V.length;if(le)if(x.key==="ArrowDown"){x.preventDefault();const _e=(Y+1)%le;(P=V[_e])==null||P.focus()}else if(x.key==="ArrowUp"){x.preventDefault();const _e=(Y-1+le)%le;(he=V[_e])==null||he.focus()}else x.key==="Home"?(x.preventDefault(),(xe=V[0])==null||xe.focus()):x.key==="End"&&(x.preventDefault(),(ze=V[le-1])==null||ze.focus())}var nr=Ds();let Xi;var fn=S(nr),hn=S(fn),bn=S(hn),Re=S(bn);let Qi;Re.__click=[ws,s,l,o];var eo=S(Re),to=S(eo),nl=S(to);const il=ie(()=>w(de)()),ol=ie(()=>w(ce)()),al=ie(()=>w(fe)());Cr(nl,{get isHovered(){return w(il)},get isDisabled(){return w(ol)},get isOpen(){return w(al)}}),C(to),C(eo),C(Re),C(bn);var sl=ue(bn,2);{var ll=x=>{var Y=Ms(),V=S(Y);{var le=Be=>{var Me=ks();let Lr;Me.__click=[_s,ne],Me.__keydown=[ys,ve,it];var zr=S(Me),Mr=S(zr),mn=S(Mr);const pl=ie(()=>I("discover"));ln(mn,{get isSelected(){return w(pl)}}),C(Mr),C(zr),Fe(2),C(Me),vt(Me,wn=>U(T,wn),()=>w(T)),be((wn,ml)=>{F(Me,"href",E()||"#"),Lr=ke(Me,1,"nav-item discover-item svelte-1d4ucr3",null,Lr,wn),F(Me,"aria-current",ml)},[()=>({selected:I("discover"),hovered:D("discover")}),()=>I("discover")?"page":void 0]),ge("mouseenter",Me,()=>U(g,"discover")),ge("mouseleave",Me,()=>U(g,null)),N(Be,Me)};G(V,Be=>{d()||Be(le)})}var P=ue(V,2);let he;P.__click=[xs,ne],P.__keydown=[Cs,ve,it];var xe=S(P),ze=S(xe),_e=S(ze);const ft=ie(()=>I("chat"));un(_e,{get isSelected(){return w(ft)}}),C(ze),C(xe),Fe(2),C(P),vt(P,Be=>U(O,Be),()=>w(O));var ae=ue(P,2);let ir;ae.__click=[Es,ne],ae.__keydown=[Ss,ve,it];var Er=S(ae),Sr=S(Er),pn=S(Sr);const hl=ie(()=>I("console"));cn(pn,{get isSelected(){return w(hl)}}),C(Sr),C(Er),Fe(2),C(ae),vt(ae,Be=>U(M,Be),()=>w(M));var Je=ue(ae,2);let no;Je.__click=[Ls,ne],Je.__keydown=[zs,ve,it];var io=S(Je),oo=S(io),bl=S(oo);const gl=ie(()=>I("api"));dn(bl,{get isSelected(){return w(gl)}}),C(oo),C(io),Fe(2),C(Je),vt(Je,Be=>U(A,Be),()=>w(A)),C(Y),be((Be,Me,Lr,zr,Mr,mn)=>{F(P,"href",h()||"#"),he=ke(P,1,"nav-item chat-item svelte-1d4ucr3",null,he,Be),F(P,"aria-current",Me),F(ae,"href",k()||"#"),ir=ke(ae,1,"nav-item console-item svelte-1d4ucr3",null,ir,Lr),F(ae,"aria-current",zr),F(Je,"href",v()||"#"),no=ke(Je,1,"nav-item api-item svelte-1d4ucr3",null,no,Mr),F(Je,"aria-current",mn)},[()=>({selected:I("chat"),hovered:D("chat")}),()=>I("chat")?"page":void 0,()=>({selected:I("console"),hovered:D("console")}),()=>I("console")?"page":void 0,()=>({selected:I("api"),hovered:D("api")}),()=>I("api")?"page":void 0]),ge("mouseenter",P,()=>U(g,"chat")),ge("mouseleave",P,()=>U(g,null)),ge("mouseenter",ae,()=>U(g,"console")),ge("mouseleave",ae,()=>U(g,null)),ge("mouseenter",Je,()=>U(g,"api")),ge("mouseleave",Je,()=>U(g,null)),N(x,Y)};G(sl,x=>{f()&&x(ll)})}C(hn);var ul=ue(hn,2);{var cl=x=>{var Y=Ns(),V=S(Y);{var le=_e=>{var ft=Is(),ae=S(ft);let ir;var Er=S(ae);Pi(Er,{}),C(ae),C(ft),be((Sr,pn)=>{ir=ke(ae,1,"help-link svelte-1d4ucr3",null,ir,Sr),F(ae,"aria-current",pn),F(ae,"href",z().help.url)},[()=>({selected:nn(an)==="help"}),()=>nn(an)==="help"]),N(_e,ft)};G(V,_e=>{var ft,ae;(ae=(ft=z())==null?void 0:ft.help)!=null&&ae.url&&_e(le)})}var P=ue(V,2),he=S(P);const xe=ie(()=>{var _e;return(_e=c())==null?void 0:_e.userMeta}),ze=ie(()=>{var _e;return(_e=c())==null?void 0:_e.menuItems});vn(he,{get userMeta(){return w(xe)},get menuItems(){return w(ze)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),C(P),C(Y),N(x,Y)};G(ul,x=>{c()&&x(cl)})}C(fn);var gn=ue(fn,2);let ro;var dl=S(gn);{var vl=x=>{var Y=Ts(),V=S(Y),le=S(V);mt(le,t,"default",{}),C(V),C(Y),N(x,Y)};G(dl,x=>{w(j)()&&x(vl)})}C(gn),C(nr),vt(nr,x=>b=x,()=>b),be((x,Y,V,le,P)=>{Xi=ke(nr,1,"side-nav-container svelte-1d4ucr3",null,Xi,x),Qi=ke(Re,1,"menu-button svelte-1d4ucr3",null,Qi,Y),Re.disabled=s(),F(Re,"aria-label",V),F(Re,"aria-expanded",le),ro=ke(gn,1,"expanded-content drawer-anim svelte-1d4ucr3",null,ro,P)},[()=>({expanded:w(j)()}),()=>({disabled:s()}),()=>w(j)()?"Close navigation menu":"Open navigation menu",()=>w(j)()?"true":"false",()=>({open:w(j)()})]),ge("mouseenter",Re,()=>U(m,!0)),ge("mouseleave",Re,()=>U(m,!1)),ge("focus",Re,()=>U(m,!0)),ge("blur",Re,()=>U(m,!1)),N(e,nr);var fl=Q({get ssrSelectedItem(){return a()},set ssrSelectedItem(x=void 0){a(x),_()},get onNavToggle(){return l()},set onNavToggle(x=void 0){l(x),_()},get onNavItemClick(){return u()},set onNavItemClick(x=void 0){u(x),_()},get showAppIcons(){return f()},set showAppIcons(x=!0){f(x),_()},get hideDiscover(){return d()},set hideDiscover(x=!0){d(x),_()},get profileMenuData(){return c()},set profileMenuData(x){c(x),_()},get apiUrl(){return v()},set apiUrl(x){v(x),_()},get chatUrl(){return h()},set chatUrl(x){h(x),_()},get consoleUrl(){return k()},set consoleUrl(x){k(x),_()},get discoverUrl(){return E()},set discoverUrl(x){E(x),_()},get supplementalMenuData(){return z()},set supplementalMenuData(x){z(x),_()}});return n(),fl}Kt(["click","keydown"]),re(Ri,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0);function Bi(e,t){X(t,!0);let r=y(t,"ssrSelectedItem",7),n=y(t,"onNavToggle",7),i=y(t,"onNavItemClick",7),o=y(t,"showAppIcons",7,!0),s=y(t,"hideDiscover",7,!0),a=y(t,"profileMenuData",7),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),f=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7),c=y(t,"supplementalMenuData",7);return Ri(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return o()},get hideDiscover(){return s()},get profileMenuData(){return a()},get apiUrl(){return l()},get chatUrl(){return u()},get consoleUrl(){return f()},get discoverUrl(){return d()},get supplementalMenuData(){return c()},children:(v,h)=>{var k=pt(),E=Ze(k);mt(E,t,"default",{}),N(v,k)},$$slots:{default:!0}}),Q({get ssrSelectedItem(){return r()},set ssrSelectedItem(v){r(v),_()},get onNavToggle(){return n()},set onNavToggle(v){n(v),_()},get onNavItemClick(){return i()},set onNavItemClick(v){i(v),_()},get showAppIcons(){return o()},set showAppIcons(v=!0){o(v),_()},get hideDiscover(){return s()},set hideDiscover(v=!0){s(v),_()},get profileMenuData(){return a()},set profileMenuData(v){a(v),_()},get apiUrl(){return l()},set apiUrl(v){l(v),_()},get chatUrl(){return u()},set chatUrl(v){u(v),_()},get consoleUrl(){return f()},set consoleUrl(v){f(v),_()},get discoverUrl(){return d()},set discoverUrl(v){d(v),_()},get supplementalMenuData(){return c()},set supplementalMenuData(v){c(v),_()}})}customElements.define("graymatter-desktop-side-nav",re(Bi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0));var As=te('<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>'),Us=te('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Hs={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function $t(e,t){X(t,!0),dt(e,Hs);const r=y(t,"isInverted",7,!1),n=y(t,"width",7,102),i=y(t,"height",7,30),o=y(t,"showServiceMark",7,!1),s=yr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),a=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=pt(),u=Ze(l);{var f=c=>{var v=As();Qt(v,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),N(c,v)},d=c=>{var v=Us();Qt(v,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${a};`,...s}),void 0,"svelte-ieg5x"),N(c,v)};G(u,c=>{o()?c(d,!1):c(f)})}return N(e,l),Q({get isInverted(){return r()},set isInverted(c=!1){r(c),_()},get width(){return n()},set width(c=102){n(c),_()},get height(){return i()},set height(c=30){i(c),_()},get showServiceMark(){return o()},set showServiceMark(c=!1){o(c),_()}})}re($t,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function ji(e,t){X(t,!0);let r=y(t,"isInverted",7,!1),n=y(t,"width",7,void 0),i=y(t,"height",7,void 0),o=y(t,"showServiceMark",7,!1),s=yr(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return $t(e,Ti({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return o()}},()=>s)),Q({get isInverted(){return r()},set isInverted(a=!1){r(a),_()},get width(){return n()},set width(a=void 0){n(a),_()},get height(){return i()},set height(a=void 0){i(a),_()},get showServiceMark(){return o()},set showServiceMark(a=!1){o(a),_()}})}customElements.define("graymatter-logo",re(ji,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],!0));var Os=(e,t,r)=>t(w(r).id),qs=ee('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Vs=ee('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Ps={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Fi(e,t){X(t,!0),dt(e,Ps);const[r,n]=er(),i=()=>Ae(_t,"$selectedItem",r);let o=y(t,"onNavItemClick",7),s=y(t,"showAppIcons",7,!0),a=y(t,"hideDiscover",7,!0),l=y(t,"apiUrl",7),u=y(t,"chatUrl",7),f=y(t,"consoleUrl",7),d=y(t,"discoverUrl",7);const c=[{id:"discover",label:"Discover",icon:ln,href:d()||"#"},{id:"chat",label:"Chat",icon:un,href:u()||"#"},{id:"console",label:"Console",icon:cn,href:f()||"#"},{id:"api",label:"API",icon:dn,href:l()||"#"}],v=a()?c.filter(b=>b.id!=="discover"):c;function h(b){var g;if(b!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),we.setSelectedItem(b),b!=="discover")try{Promise.resolve().then(()=>xr).then(({selectedSubNavItemTitle:m})=>{m.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const L=document.getElementById("main-content");if(L){const T=L.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(T&&T.textContent){const O=T.textContent.trim();m.set(O),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(O))}}},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(()=>xr).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)}(g=o())==null||g({item:b,expanded:!1})}var k=pt(),E=Ze(k);{var z=b=>{var g=Vs();pi(g,21,()=>v,ga,(m,L)=>{var T=qs();let O;T.__click=[Os,h,L];var M=S(T),A=S(M);const Z=ie(()=>i()===w(L).id);_a(A,()=>w(L).icon,(D,j)=>{j(D,{get isSelected(){return w(Z)}})}),C(M);var J=ue(M,2),I=S(J,!0);C(J),C(T),be(D=>{F(T,"href",w(L).href),O=ke(T,1,`nav-item ${w(L).id}-item`,"svelte-gdyha2",O,D),F(T,"part",`${w(L).id}-item`),Wt(I,w(L).label)},[()=>({active:i()===w(L).id})]),N(m,T)}),C(g),N(b,g)};G(E,b=>{s()&&b(z)})}N(e,k);var p=Q({get onNavItemClick(){return o()},set onNavItemClick(b){o(b),_()},get showAppIcons(){return s()},set showAppIcons(b=!0){s(b),_()},get hideDiscover(){return a()},set hideDiscover(b=!0){a(b),_()},get apiUrl(){return l()},set apiUrl(b){l(b),_()},get chatUrl(){return u()},set chatUrl(b){u(b),_()},get consoleUrl(){return f()},set consoleUrl(b){f(b),_()},get discoverUrl(){return d()},set discoverUrl(b){d(b),_()}});return n(),p}Kt(["click"]),re(Fi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Zi(e,t){X(t,!0);let r=y(t,"onNavItemClick",7),n=y(t,"showAppIcons",7,!0),i=y(t,"hideDiscover",7,!0),o=y(t,"apiUrl",7),s=y(t,"chatUrl",7),a=y(t,"consoleUrl",7),l=y(t,"discoverUrl",7);return Fi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return o()},get chatUrl(){return s()},get consoleUrl(){return a()},get discoverUrl(){return l()}}),Q({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),_()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),_()},get hideDiscover(){return i()},set hideDiscover(u=!0){i(u),_()},get apiUrl(){return o()},set apiUrl(u){o(u),_()},get chatUrl(){return s()},set chatUrl(u){s(u),_()},get consoleUrl(){return a()},set consoleUrl(u){a(u),_()},get discoverUrl(){return l()},set discoverUrl(u){l(u),_()}})}customElements.define("graymatter-mobile-bottom-nav",re(Zi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Rs=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Bs=ee('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),js=ee('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Fs=ee('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),Zs=ee('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),Ys=ee('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const Ks={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Yi(e,t){X(t,!0),dt(e,Ks);const[r,n]=er(),i=()=>Ae(Pe,"$isExpanded",r),o=()=>Ae(_t,"$selectedItem",r);let s,a=null,l=y(t,"logoLinkUrl",7),u=y(t,"logoLinkLabel",7);function f(I){if(a=I.detail.hash,d(),a){const j=document.getElementById(a);if(j){const ce=document.getElementById("main-content-mobile"),fe=ce?ce.querySelector(`[id="${a}"]`):null;if(fe&&ce){const de=fe.getBoundingClientRect(),ne=ce.getBoundingClientRect(),ve=ce.scrollTop+de.top-ne.top;ce.scrollTo({top:ve,behavior:"auto"}),setTimeout(()=>{var it;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(it=fe.textContent)==null?void 0:it.trim(),id:fe.id}}))},100)}else{let de=j.parentElement;for(;de&&de!==document.body;){const ne=window.getComputedStyle(de);if(ne.overflowY==="auto"||ne.overflowY==="scroll")break;de=de.parentElement}de&&de!==document.body?document.getElementById("main-content")?(j.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ve;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ve=j.textContent)==null?void 0:ve.trim(),id:j.id}}))},100)):j.scrollIntoView({behavior:"auto",block:"start"}):j.scrollIntoView({behavior:"auto",block:"start"})}}a=null}}Gt(()=>{window.addEventListener("mobileAnchorNavigate",f);const I=()=>{d()};window.addEventListener("closeMobileMenu",I);const D=ce=>{const fe=ce,{isMobile:de}=fe.detail;de&&we.setExpanded(!1)};window.addEventListener("layoutTransition",D);const j=ce=>{const fe=document.activeElement;ce.key==="Escape"&&i()&&!(fe&&fe.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",j),()=>{window.removeEventListener("mobileAnchorNavigate",f),window.removeEventListener("closeMobileMenu",I),window.removeEventListener("layoutTransition",D),window.removeEventListener("keydown",j)}});function d(){we.setExpanded(!1)}var c=Ys(),v=Ze(c);{var h=I=>{var D=Bs();D.__click=d,D.__keydown=[Rs,d],N(I,D)};G(v,I=>{i()&&I(h)})}var k=ue(v,2);let E;var z=S(k),p=S(z);p.__click=d;var b=S(p);Cr(b,{isOpen:!0}),C(p);var g=ue(p,2),m=S(g);{var L=I=>{var D=js(),j=S(D);$t(j,{width:75,height:22}),C(D),be(()=>{F(D,"href",l()),F(D,"aria-label",u())}),N(I,D)},T=I=>{$t(I,{width:75,height:22})};G(m,I=>{l()?I(L):I(T,!1)})}C(g),C(z);var O=ue(z,2),M=S(O);{var A=I=>{var D=Fs(),j=S(D);mt(j,t,"default",{}),C(D),N(I,D)},Z=I=>{var D=Zs();N(I,D)};G(M,I=>{o()&&o()!=="discover"?I(A):I(Z,!1)})}C(O),C(k),vt(k,I=>s=I,()=>s),be(I=>E=ke(k,1,"mobile-side-menu svelte-1anbrit",null,E,I),[()=>({open:i()})]),N(e,c);var J=Q({get logoLinkUrl(){return l()},set logoLinkUrl(I){l(I),_()},get logoLinkLabel(){return u()},set logoLinkLabel(I){u(I),_()}});return n(),J}Kt(["click","keydown"]),re(Yi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Ki(e,t){X(t,!0);let r=y(t,"logoLinkUrl",7),n=y(t,"logoLinkLabel",7);return Yi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,o)=>{var s=pt(),a=Ze(s);mt(a,t,"default",{}),N(i,s)},$$slots:{default:!0}}),Q({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),_()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),_()}})}customElements.define("graymatter-mobile-side-menu",re(Ki,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function Js(){we.toggleExpanded()}var Ws=ee('<a class="display-flex"><!></a>'),Gs=ee('<nav class="mobile-top-nav svelte-g1zhvs" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-g1zhvs"><!> <span class="brand-text svelte-g1zhvs"> </span></div> <!></nav>');const Xs={hash:"svelte-g1zhvs",code:`.menu-button.svelte-g1zhvs {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-g1zhvs:disabled,
|
|
66
|
-
.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
stroke-width var(--ai-transition-ease-medium);}.nav-text.svelte-13uakc8 {font-size:var(--ai-size-12);text-align:center;color:var(--ai-color-neutral-900);line-height:1.3;}.menu-button.disabled.svelte-13uakc8:hover .icon-container:where(.svelte-13uakc8),
|
|
62
|
+
.menu-button.svelte-13uakc8:disabled:hover .icon-container:where(.svelte-13uakc8) {background:none !important;border-radius:var(--ai-size-4);}.nav-item.hovered.svelte-13uakc8 .icon-container:where(.svelte-13uakc8),
|
|
63
|
+
.nav-item.svelte-13uakc8:active .icon-container:where(.svelte-13uakc8),
|
|
64
|
+
.nav-item.selected.svelte-13uakc8 .icon-container:where(.svelte-13uakc8),
|
|
65
|
+
.nav-item.selected.hovered.svelte-13uakc8 .icon-container:where(.svelte-13uakc8),
|
|
66
|
+
.menu-button.svelte-13uakc8:hover .icon-container:where(.svelte-13uakc8),
|
|
67
|
+
.menu-button.svelte-13uakc8:active .icon-container:where(.svelte-13uakc8),
|
|
68
|
+
.help-link.svelte-13uakc8:hover .icon-container:where(.svelte-13uakc8),
|
|
69
|
+
.help-link.selected.svelte-13uakc8 .icon-container:where(.svelte-13uakc8) {background-color:var(--ai-color-steel-300);border-radius:var(--ai-size-4);}.nav-item.svelte-13uakc8 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.svelte-13uakc8:hover {color:var(--ai-color-neutral-700);}.nav-footer-icon-container.svelte-13uakc8 {align-items:center;display:flex;flex-direction:column;justify-content:center;margin-block-end:var(--ai-size-4);}.nav-footer-profile-container.svelte-13uakc8 {display:flex;padding:var(--ai-size-8) var(--ai-size-4);flex-direction:column;justify-content:center;align-items:center;gap:var(--ai-size-4);align-self:stretch;}.help-link.svelte-13uakc8 {display:flex;align-items:center;justify-content:center;text-decoration:none;color:inherit;}.help-link.svelte-13uakc8 svg {display:block;}`};function Yi(e,t){var la,ua,ca;ie(t,!0),ct(e,Rs);const[r,n]=tr(),i=()=>Ue(kt,"$selectedItem",r),a=()=>Ue(Re,"$isExpanded",r),s=()=>Ue(dn,"$isMenuButtonDisabled",r),o=_(t,"ssrSelectedItem",7,void 0),l=_(t,"onNavToggle",7,void 0),u=_(t,"onNavItemClick",7,void 0),f=_(t,"showAppIcons",7,!0),d=_(t,"hideDiscover",7,!0),c=_(t,"profileMenuData",7),v=_(t,"apiUrl",7),h=_(t,"chatUrl",7),y=_(t,"consoleUrl",7),M=_(t,"discoverUrl",7),L=_(t,"supplementalMenuData",7),p=(ca=(ua=(la=L())==null?void 0:la.help)==null?void 0:ua.url)==null?void 0:ca.trim(),b=te(()=>()=>un(mt)==="help");let m=!1,w,T=me(null),D=me(!1),J=me(!1),z=me(null),B=me(null),G=me(null),W=me(null),N=null;function $(C,j){return m?C:j}function x(C){return $(i()===C,o()===C)}function U(C){return g(T)===C}const P=te(()=>()=>$(a(),o()?o()!=="discover":!0)),q=te(()=>()=>$(s(),o()?o()==="discover":!1)),K=te(()=>()=>$(a(),o()?o()!=="discover":!0)),ce=te(()=>()=>g(J)&&g(D)&&!g(q)());Dt(()=>{if(m=!0,document.documentElement.classList.remove("nav-initially-expanded"),document.documentElement.style.removeProperty("--initial-main-top-padding"),w&&w.classList.add("hydrated"),typeof window<"u"){const j=window.matchMedia("(hover: hover)");H(J,j.matches,!0),j.addEventListener("change",he=>{H(J,he.matches,!0)});const R=he=>{const xe=he,{isMobile:Ce}=xe.detail;if(Ce)_e.setExpanded(!1);else{const le=i();le&&le!=="discover"?_e.setExpanded(!0):_e.setExpanded(!1)}};window.addEventListener("layoutTransition",R);const fe=he=>{const xe=document.activeElement;he.key==="Escape"&&a()&&!(xe&&xe.closest(".profile-context-menu"))&&_e.setExpanded(!1)};window.addEventListener("keydown",fe);const X=he=>{const xe=he,{action:Ce,isOpen:le}=xe.detail;Ce==="toggle"?_e.toggleExpanded():Ce==="open"?_e.setExpanded(!0):Ce==="close"?_e.setExpanded(!1):Ce==="set"&&typeof le=="boolean"&&_e.setExpanded(le)};return window.addEventListener("graymatter-desktop-nav-control",X),N=()=>{window.removeEventListener("graymatter-desktop-nav-control",X)},()=>{window.removeEventListener("layoutTransition",R),window.removeEventListener("keydown",fe),N&&N()}}const C=globalThis.location;if(p&&(C!=null&&C.origin)&&(C!=null&&C.pathname)){const j=vt(p,C.origin);j&&C.pathname===j&&mt.set("help")}});function vt(C,j){try{return new URL(C,j).pathname}catch{return null}}function _t(C){var j;if(C!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),_e.setSelectedItem(C),C!=="discover")try{Promise.resolve().then(()=>Mr).then(({selectedSubNavItemTitle:R})=>{R.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{if(typeof document<"u"){const fe=document.getElementById("main-content");if(fe){const X=fe.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(X&&X.textContent){const he=X.textContent.trim();R.set(he),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(he))}}}},200)}).catch(R=>{console.log("[DesktopSideNav] Error clearing header state:",R)})}catch(R){console.log("[DesktopSideNav] Import failed for clearing state:",R)}else try{Promise.resolve().then(()=>Mr).then(({selectedSubNavItemTitle:R})=>{R.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(R=>{console.log("[DesktopSideNav] Error clearing header state for Discover:",R)})}catch(R){console.log("[DesktopSideNav] Import failed for clearing Discover state:",R)}(j=u())==null||j({item:C,expanded:a()})}function Ir(C,j){(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),_t(j))}function zr(C,j){var X,he,xe,Ce;const R=[g(z),g(B),g(G),g(W)],fe=R.length;if(fe)if(C.key==="ArrowDown"){C.preventDefault();const le=(j+1)%fe;(X=R[le])==null||X.focus()}else if(C.key==="ArrowUp"){C.preventDefault();const le=(j-1+fe)%fe;(he=R[le])==null||he.focus()}else C.key==="Home"?(C.preventDefault(),(xe=R[0])==null||xe.focus()):C.key==="End"&&(C.preventDefault(),(Ce=R[fe-1])==null||Ce.focus())}var ir=Ps();let na;var mn=S(ir),wn=S(mn),kn=S(wn),Be=S(kn);let ia;Be.__click=[Ms,s,l,a];var aa=S(Be),oa=S(aa),fl=S(oa);const hl=te(()=>g(ce)()),bl=te(()=>g(q)()),pl=te(()=>g(K)());Lr(fl,{get isHovered(){return g(hl)},get isDisabled(){return g(bl)},get isOpen(){return g(pl)}}),E(oa),E(aa),E(Be),E(kn);var gl=ve(kn,2);{var ml=C=>{var j=Hs(),R=S(j);{var fe=je=>{var Ie=zs();let Tr;Ie.__click=[Ls,_t],Ie.__keydown=[Is,Ir,zr];var Dr=S(Ie),$r=S(Dr),Cn=S($r);const Sl=te(()=>x("discover"));vn(Cn,{get isSelected(){return g(Sl)}}),E($r),E(Dr),Ze(2),E(Ie),dt(Ie,En=>H(z,En),()=>g(z)),pe((En,Ml)=>{Y(Ie,"href",M()||"#"),Tr=ke(Ie,1,"nav-item discover-item svelte-13uakc8",null,Tr,En),Y(Ie,"aria-current",Ml)},[()=>({selected:x("discover"),hovered:U("discover")}),()=>x("discover")?"page":void 0]),ge("mouseenter",Ie,()=>H(T,"discover")),ge("mouseleave",Ie,()=>H(T,null)),I(je,Ie)};re(R,je=>{d()||je(fe)})}var X=ve(R,2);let he;X.__click=[Ns,_t],X.__keydown=[Ts,Ir,zr];var xe=S(X),Ce=S(xe),le=S(Ce);const ar=te(()=>x("chat"));fn(le,{get isSelected(){return g(ar)}}),E(Ce),E(xe),Ze(2),E(X),dt(X,je=>H(B,je),()=>g(B));var be=ve(X,2);let or;be.__click=[Ds,_t],be.__keydown=[$s,Ir,zr];var sr=S(be),lr=S(sr),yn=S(lr);const xn=te(()=>x("console"));hn(yn,{get isSelected(){return g(xn)}}),E(lr),E(sr),Ze(2),E(be),dt(be,je=>H(G,je),()=>g(G));var He=ve(be,2);let Nr;He.__click=[Us,_t],He.__keydown=[As,Ir,zr];var da=S(He),va=S(da),Cl=S(va);const El=te(()=>x("api"));bn(Cl,{get isSelected(){return g(El)}}),E(va),E(da),Ze(2),E(He),dt(He,je=>H(W,je),()=>g(W)),E(j),pe((je,Ie,Tr,Dr,$r,Cn)=>{Y(X,"href",h()||"#"),he=ke(X,1,"nav-item chat-item svelte-13uakc8",null,he,je),Y(X,"aria-current",Ie),Y(be,"href",y()||"#"),or=ke(be,1,"nav-item console-item svelte-13uakc8",null,or,Tr),Y(be,"aria-current",Dr),Y(He,"href",v()||"#"),Nr=ke(He,1,"nav-item api-item svelte-13uakc8",null,Nr,$r),Y(He,"aria-current",Cn)},[()=>({selected:x("chat"),hovered:U("chat")}),()=>x("chat")?"page":void 0,()=>({selected:x("console"),hovered:U("console")}),()=>x("console")?"page":void 0,()=>({selected:x("api"),hovered:U("api")}),()=>x("api")?"page":void 0]),ge("mouseenter",X,()=>H(T,"chat")),ge("mouseleave",X,()=>H(T,null)),ge("mouseenter",be,()=>H(T,"console")),ge("mouseleave",be,()=>H(T,null)),ge("mouseenter",He,()=>H(T,"api")),ge("mouseleave",He,()=>H(T,null)),I(C,j)};re(gl,C=>{f()&&C(ml)})}E(wn);var wl=ve(wn,2);{var kl=C=>{var j=qs(),R=S(j);{var fe=le=>{var ar=Os(),be=S(ar);let or;be.__click=[Ss];var sr=S(be),lr=S(sr),yn=S(lr);const xn=te(()=>g(b)());gn(yn,{get isSelected(){return g(xn)}}),E(lr),E(sr),E(be),E(ar),pe((He,Nr)=>{or=ke(be,1,"help-link svelte-13uakc8",null,or,He),Y(be,"aria-current",Nr),Y(be,"href",p)},[()=>({selected:g(b)()}),()=>g(b)()]),I(le,ar)};re(R,le=>{p&&le(fe)})}var X=ve(R,2),he=S(X);const xe=te(()=>{var le;return(le=c())==null?void 0:le.userMeta}),Ce=te(()=>{var le;return(le=c())==null?void 0:le.menuItems});pn(he,{get userMeta(){return g(xe)},get menuItems(){return g(Ce)},ariaLabel:"Open profile menu",menuAlign:"desktop"}),E(X),E(j),I(C,j)};re(wl,C=>{c()&&C(kl)})}E(mn);var _n=ve(mn,2);let sa;var _l=S(_n);{var yl=C=>{var j=Vs(),R=S(j),fe=S(R);gt(fe,t,"default",{}),E(R),E(j),I(C,j)};re(_l,C=>{g(P)()&&C(yl)})}E(_n),E(ir),dt(ir,C=>w=C,()=>w),pe((C,j,R,fe,X)=>{na=ke(ir,1,"side-nav-container svelte-13uakc8",null,na,C),ia=ke(Be,1,"menu-button svelte-13uakc8",null,ia,j),Be.disabled=s(),Y(Be,"aria-label",R),Y(Be,"aria-expanded",fe),sa=ke(_n,1,"expanded-content drawer-anim svelte-13uakc8",null,sa,X)},[()=>({expanded:g(P)()}),()=>({disabled:s()}),()=>g(P)()?"Close navigation menu":"Open navigation menu",()=>g(P)()?"true":"false",()=>({open:g(P)()})]),ge("mouseenter",Be,()=>H(D,!0)),ge("mouseleave",Be,()=>H(D,!1)),ge("focus",Be,()=>H(D,!0)),ge("blur",Be,()=>H(D,!1)),I(e,ir);var xl=ae({get ssrSelectedItem(){return o()},set ssrSelectedItem(C=void 0){o(C),k()},get onNavToggle(){return l()},set onNavToggle(C=void 0){l(C),k()},get onNavItemClick(){return u()},set onNavItemClick(C=void 0){u(C),k()},get showAppIcons(){return f()},set showAppIcons(C=!0){f(C),k()},get hideDiscover(){return d()},set hideDiscover(C=!0){d(C),k()},get profileMenuData(){return c()},set profileMenuData(C){c(C),k()},get apiUrl(){return v()},set apiUrl(C){v(C),k()},get chatUrl(){return h()},set chatUrl(C){h(C),k()},get consoleUrl(){return y()},set consoleUrl(C){y(C),k()},get discoverUrl(){return M()},set discoverUrl(C){M(C),k()},get supplementalMenuData(){return L()},set supplementalMenuData(C){L(C),k()}});return n(),xl}Wt(["click","keydown"]),se(Yi,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0);function Ki(e,t){ie(t,!0);let r=_(t,"ssrSelectedItem",7),n=_(t,"onNavToggle",7),i=_(t,"onNavItemClick",7),a=_(t,"showAppIcons",7,!0),s=_(t,"hideDiscover",7,!0),o=_(t,"profileMenuData",7),l=_(t,"apiUrl",7),u=_(t,"chatUrl",7),f=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7),c=_(t,"supplementalMenuData",7);return Yi(e,{get ssrSelectedItem(){return r()},get onNavToggle(){return n()},get onNavItemClick(){return i()},get showAppIcons(){return a()},get hideDiscover(){return s()},get profileMenuData(){return o()},get apiUrl(){return l()},get chatUrl(){return u()},get consoleUrl(){return f()},get discoverUrl(){return d()},get supplementalMenuData(){return c()},children:(v,h)=>{var y=pt(),M=Ye(y);gt(M,t,"default",{}),I(v,y)},$$slots:{default:!0}}),ae({get ssrSelectedItem(){return r()},set ssrSelectedItem(v){r(v),k()},get onNavToggle(){return n()},set onNavToggle(v){n(v),k()},get onNavItemClick(){return i()},set onNavItemClick(v){i(v),k()},get showAppIcons(){return a()},set showAppIcons(v=!0){a(v),k()},get hideDiscover(){return s()},set hideDiscover(v=!0){s(v),k()},get profileMenuData(){return o()},set profileMenuData(v){o(v),k()},get apiUrl(){return l()},set apiUrl(v){l(v),k()},get chatUrl(){return u()},set chatUrl(v){u(v),k()},get consoleUrl(){return f()},set consoleUrl(v){f(v),k()},get discoverUrl(){return d()},set discoverUrl(v){d(v),k()},get supplementalMenuData(){return c()},set supplementalMenuData(v){c(v),k()}})}customElements.define("graymatter-desktop-side-nav",se(Ki,{ssrSelectedItem:{},onNavToggle:{},onNavItemClick:{},showAppIcons:{},hideDiscover:{},profileMenuData:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{},supplementalMenuData:{}},["default"],[],!0));var Bs=oe('<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>'),js=oe('<svg><path d="M38.1538 13.6118C38.1538 10.3764 35.6038 7.74581 32.4682 7.74581H26.6298C25.6231 7.74581 24.8025 6.90443 24.8025 5.86798C24.8025 4.83153 25.6211 3.99015 26.6298 3.99015H37.2646V0H25.7602C22.6266 0 20.0765 2.63251 20.0765 5.86798C20.0765 9.10345 22.6266 11.736 25.7602 11.736H31.5986C32.6053 11.736 33.4259 12.5773 33.4259 13.6138C33.4259 14.6502 32.6072 15.4916 31.5986 15.4916H20.5603V19.4798H32.4682C35.6038 19.4798 38.1538 16.8473 38.1538 13.6138V13.6118Z"></path><path d="M54.4317 16.4768L54.4591 16.5123L55.4442 19.4798H60.0938L53.6169 0H45.2912L38.8143 19.4778H43.4639L44.4608 16.4768H54.4317ZM48.6129 3.99015H50.2933L50.305 4.02365L53.0861 12.3862H45.822L48.6129 3.99015Z"></path><path d="M18.0224 0H13.6255V10.5438C13.6255 14.2897 11.24 15.6236 9.00924 15.6236C5.98918 15.6236 4.39298 13.866 4.39298 10.5438V0H0V11.3379C0 13.799 0.969472 16.0355 2.72823 17.6355C4.40473 19.1606 6.6355 20 9.01119 20C13.4903 20 18.0224 17.0246 18.0224 11.336V0Z"></path><path d="M67.3965 6.52612H62.2005V19.4798H67.3965V6.52612Z"></path><path d="M70.6978 2.72727C70.5495 2.72727 70.4078 2.71191 70.2726 2.68118C70.1374 2.64789 70.0178 2.59795 69.9138 2.53137C69.8097 2.46223 69.7278 2.37772 69.668 2.27785C69.6082 2.17542 69.5783 2.05506 69.5783 1.91677C69.5783 1.90141 69.5783 1.88604 69.5783 1.87068C69.5809 1.85531 69.5822 1.84379 69.5822 1.83611H70.0932C70.0932 1.84123 70.0919 1.85147 70.0893 1.86684C70.0893 1.87964 70.0893 1.89117 70.0893 1.90141C70.0893 1.98592 70.114 2.0589 70.1634 2.12036C70.2128 2.17926 70.2843 2.22535 70.3779 2.25864C70.4715 2.28937 70.582 2.30474 70.7095 2.30474C70.7953 2.30474 70.8707 2.29962 70.9357 2.28937C71.0033 2.27913 71.0605 2.26504 71.1073 2.24712C71.1567 2.22663 71.197 2.20359 71.2282 2.17798C71.2594 2.14981 71.2815 2.11908 71.2945 2.08579C71.3101 2.0525 71.3179 2.01665 71.3179 1.97823C71.3179 1.90397 71.2945 1.84251 71.2477 1.79385C71.2009 1.7452 71.1372 1.70423 71.0566 1.67093C70.9786 1.63764 70.8889 1.60819 70.7875 1.58259C70.6887 1.55442 70.586 1.52625 70.4793 1.49808C70.3753 1.46991 70.2726 1.43662 70.1712 1.39821C70.0724 1.35723 69.9827 1.30858 69.9021 1.25224C69.824 1.1959 69.7616 1.12548 69.7148 1.04097C69.668 0.953905 69.6446 0.850192 69.6446 0.729833C69.6446 0.606914 69.6706 0.49936 69.7226 0.40717C69.7772 0.314981 69.8526 0.239437 69.9489 0.180538C70.0477 0.119078 70.1621 0.0742637 70.2921 0.0460946C70.4221 0.0153649 70.5638 0 70.7173 0C70.8603 0 70.9942 0.0153649 71.119 0.0460946C71.2464 0.0742637 71.3582 0.120358 71.4545 0.184379C71.5507 0.245839 71.6261 0.325224 71.6807 0.422535C71.7353 0.517286 71.7626 0.631242 71.7626 0.764405V0.810499H71.2594V0.772087C71.2594 0.697823 71.236 0.635083 71.1892 0.583867C71.145 0.53265 71.0813 0.492958 70.9981 0.464789C70.9175 0.43662 70.8226 0.422535 70.7134 0.422535C70.5963 0.422535 70.4962 0.434059 70.413 0.457106C70.3298 0.477593 70.2661 0.509603 70.2219 0.553137C70.1777 0.59411 70.1556 0.645326 70.1556 0.706786C70.1556 0.770807 70.179 0.824584 70.2258 0.868118C70.2726 0.911652 70.335 0.948784 70.413 0.979513C70.4936 1.01024 70.5833 1.03841 70.6822 1.06402C70.7836 1.08963 70.8863 1.1178 70.9903 1.14853C71.0969 1.1767 71.1996 1.20999 71.2984 1.2484C71.3999 1.28681 71.4896 1.33547 71.5676 1.39437C71.6482 1.4507 71.7119 1.52113 71.7587 1.60563C71.8055 1.69014 71.8289 1.79129 71.8289 1.90909C71.8289 2.10627 71.7795 2.26504 71.6807 2.3854C71.5845 2.50576 71.4506 2.59283 71.2789 2.64661C71.1099 2.70038 70.9162 2.72727 70.6978 2.72727Z"></path><path d="M72.3008 2.68118V0.0460946H73.1004L73.5217 1.51344C73.5373 1.56466 73.5529 1.62228 73.5685 1.6863C73.5841 1.75032 73.5984 1.81178 73.6114 1.87068C73.627 1.92958 73.6387 1.98079 73.6465 2.02433H73.6777C73.6829 1.98592 73.6907 1.93854 73.7011 1.8822C73.7115 1.82586 73.7232 1.76568 73.7362 1.70166C73.7518 1.63508 73.7687 1.57106 73.7869 1.5096L74.2082 0.0460946H75V2.68118H74.4929V1.34827C74.4929 1.23047 74.4942 1.11268 74.4968 0.994878C74.4994 0.877081 74.502 0.775928 74.5046 0.691421C74.5098 0.606914 74.5124 0.556978 74.5124 0.541613H74.4812C74.476 0.564661 74.463 0.614597 74.4422 0.691421C74.4214 0.768246 74.3993 0.851472 74.3759 0.941101C74.3525 1.03073 74.3317 1.10755 74.3135 1.17157L73.8727 2.68118H73.4047L72.9639 1.17542C72.9483 1.12164 72.9301 1.05762 72.9093 0.983355C72.8911 0.90653 72.8716 0.828425 72.8508 0.74904C72.8326 0.669654 72.8157 0.600512 72.8001 0.541613H72.7689C72.7715 0.610755 72.7741 0.693982 72.7767 0.791293C72.7793 0.886043 72.7819 0.983355 72.7845 1.08323C72.7871 1.18054 72.7884 1.26889 72.7884 1.34827V2.68118H72.3008Z"></path><path d="M67.4728 0H62.2005V3.98818H67.4728V0Z"></path></svg>');const Fs={hash:"svelte-ieg5x",code:"svg.svelte-ieg5x {display:block;}"};function At(e,t){ie(t,!0),ct(e,Fs);const r=_(t,"isInverted",7,!1),n=_(t,"width",7,102),i=_(t,"height",7,30),a=_(t,"showServiceMark",7,!1),s=Er(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]),o=r()?"var(--ai-color-white)":"var(--ai-color-black)";var l=pt(),u=Ye(l);{var f=c=>{var v=Bs();er(v,()=>({width:n(),height:i(),viewBox:"0 0 102 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${o};`,...s}),void 0,"svelte-ieg5x"),I(c,v)},d=c=>{var v=js();er(v,()=>({width:n(),height:i(),viewBox:"0 0 75 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:`fill: ${o};`,...s}),void 0,"svelte-ieg5x"),I(c,v)};re(u,c=>{a()?c(d,!1):c(f)})}return I(e,l),ae({get isInverted(){return r()},set isInverted(c=!1){r(c),k()},get width(){return n()},set width(c=102){n(c),k()},get height(){return i()},set height(c=30){i(c),k()},get showServiceMark(){return a()},set showServiceMark(c=!1){a(c),k()}})}se(At,{isInverted:{},width:{},height:{},showServiceMark:{}},[],[],!0);function Ji(e,t){ie(t,!0);let r=_(t,"isInverted",7,!1),n=_(t,"width",7,void 0),i=_(t,"height",7,void 0),a=_(t,"showServiceMark",7,!1),s=Er(t,["$$slots","$$events","$$legacy","$$host","isInverted","width","height","showServiceMark"]);return At(e,Oi({get isInverted(){return r()},get width(){return n()},get height(){return i()},get showServiceMark(){return a()}},()=>s)),ae({get isInverted(){return r()},set isInverted(o=!1){r(o),k()},get width(){return n()},set width(o=void 0){n(o),k()},get height(){return i()},set height(o=void 0){i(o),k()},get showServiceMark(){return a()},set showServiceMark(o=!1){a(o),k()}})}customElements.define("graymatter-logo",se(Ji,{isInverted:{attribute:"is-inverted",reflect:!0,type:"Boolean"},width:{attribute:"width",reflect:!0,type:"Number"},height:{attribute:"height",reflect:!0,type:"Number"},showServiceMark:{attribute:"show-service-mark",reflect:!0,type:"Boolean"}},[],[],!0));var Zs=(e,t,r)=>t(g(r).id),Ys=ne('<a><div class="icon svelte-gdyha2"><!></div> <span class="label svelte-gdyha2"> </span></a>'),Ks=ne('<nav class="mobile-bottom-nav" part="mobile-bottom-nav"></nav>');const Js={hash:"svelte-gdyha2",code:".nav-item.svelte-gdyha2 {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:var(--ai-size-4);text-decoration:none;color:var(--ai-color-neutral-600);transition:color var(--ai-transition-ease-fast);height:100%;}.nav-item.active.svelte-gdyha2 {color:var(--ai-color-neutral-900);}.nav-item.active.svelte-gdyha2 .icon:where(.svelte-gdyha2) {background-color:var(--ai-color-neutral-200);border-radius:var(--ai-size-8);}.nav-item.svelte-gdyha2:hover {color:var(--ai-color-neutral-700);}.icon.svelte-gdyha2 {width:var(--ai-size-24);height:var(--ai-size-24);margin-bottom:var(--ai-size-2);display:flex;align-items:center;justify-content:center;padding:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.label.svelte-gdyha2 {font-size:0.6875rem; /* 11px */font-weight:500;line-height:1;text-align:center;}"};function Wi(e,t){ie(t,!0),ct(e,Js);const[r,n]=tr(),i=()=>Ue(kt,"$selectedItem",r);let a=_(t,"onNavItemClick",7),s=_(t,"showAppIcons",7,!0),o=_(t,"hideDiscover",7,!0),l=_(t,"apiUrl",7),u=_(t,"chatUrl",7),f=_(t,"consoleUrl",7),d=_(t,"discoverUrl",7);const c=[{id:"discover",label:"Discover",icon:vn,href:d()||"#"},{id:"chat",label:"Chat",icon:fn,href:u()||"#"},{id:"console",label:"Console",icon:hn,href:f()||"#"},{id:"api",label:"API",icon:bn,href:l()||"#"}],v=o()?c.filter(b=>b.id!=="discover"):c;function h(b){var m;if(b!=="discover"&&typeof window<"u"&&sessionStorage.setItem("navigatingToMainNav","true"),_e.setSelectedItem(b),b!=="discover")try{Promise.resolve().then(()=>Mr).then(({selectedSubNavItemTitle:w})=>{w.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId")),setTimeout(()=>{const T=document.getElementById("main-content");if(T){const D=T.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(D&&D.textContent){const J=D.textContent.trim();w.set(J),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(J))}}},200)}).catch(w=>{console.log("[MobileBottomNav] Error clearing header state:",w)})}catch(w){console.log("[MobileBottomNav] Import failed for clearing state:",w)}else try{Promise.resolve().then(()=>Mr).then(({selectedSubNavItemTitle:w})=>{w.set(""),typeof window<"u"&&(sessionStorage.removeItem("subNav-selectedTitle"),sessionStorage.removeItem("subNav-selectedId"))}).catch(w=>{console.log("[MobileBottomNav] Error clearing header state for Discover:",w)})}catch(w){console.log("[MobileBottomNav] Import failed for clearing Discover state:",w)}(m=a())==null||m({item:b,expanded:!1})}var y=pt(),M=Ye(y);{var L=b=>{var m=Ks();xi(m,21,()=>v,xo,(w,T)=>{var D=Ys();let J;D.__click=[Zs,h,T];var z=S(D),B=S(z);const G=te(()=>i()===g(T).id);Mo(B,()=>g(T).icon,($,x)=>{x($,{get isSelected(){return g(G)}})}),E(z);var W=ve(z,2),N=S(W,!0);E(W),E(D),pe($=>{Y(D,"href",g(T).href),J=ke(D,1,`nav-item ${g(T).id}-item`,"svelte-gdyha2",J,$),Y(D,"part",`${g(T).id}-item`),Xt(N,g(T).label)},[()=>({active:i()===g(T).id})]),I(w,D)}),E(m),I(b,m)};re(M,b=>{s()&&b(L)})}I(e,y);var p=ae({get onNavItemClick(){return a()},set onNavItemClick(b){a(b),k()},get showAppIcons(){return s()},set showAppIcons(b=!0){s(b),k()},get hideDiscover(){return o()},set hideDiscover(b=!0){o(b),k()},get apiUrl(){return l()},set apiUrl(b){l(b),k()},get chatUrl(){return u()},set chatUrl(b){u(b),k()},get consoleUrl(){return f()},set consoleUrl(b){f(b),k()},get discoverUrl(){return d()},set discoverUrl(b){d(b),k()}});return n(),p}Wt(["click"]),se(Wi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0);function Gi(e,t){ie(t,!0);let r=_(t,"onNavItemClick",7),n=_(t,"showAppIcons",7,!0),i=_(t,"hideDiscover",7,!0),a=_(t,"apiUrl",7),s=_(t,"chatUrl",7),o=_(t,"consoleUrl",7),l=_(t,"discoverUrl",7);return Wi(e,{get onNavItemClick(){return r()},get showAppIcons(){return n()},get hideDiscover(){return i()},get apiUrl(){return a()},get chatUrl(){return s()},get consoleUrl(){return o()},get discoverUrl(){return l()}}),ae({get onNavItemClick(){return r()},set onNavItemClick(u){r(u),k()},get showAppIcons(){return n()},set showAppIcons(u=!0){n(u),k()},get hideDiscover(){return i()},set hideDiscover(u=!0){i(u),k()},get apiUrl(){return a()},set apiUrl(u){a(u),k()},get chatUrl(){return s()},set chatUrl(u){s(u),k()},get consoleUrl(){return o()},set consoleUrl(u){o(u),k()},get discoverUrl(){return l()},set discoverUrl(u){l(u),k()}})}customElements.define("graymatter-mobile-bottom-nav",se(Gi,{onNavItemClick:{},showAppIcons:{},hideDiscover:{},apiUrl:{},chatUrl:{},consoleUrl:{},discoverUrl:{}},[],[],!0));var Ws=(e,t)=>{(e.key==="Enter"||e.key===" ")&&t()},Gs=ne('<div class="mobile-overlay" role="button" tabindex="0" aria-label="Close navigation menu (Escape key supported)" part="mobile-overlay"></div>'),Xs=ne('<a part="logo-link" class="logo-link svelte-1anbrit"><!></a>'),Qs=ne('<div class="subnav-section svelte-1anbrit" part="subnav-section"><!></div>'),el=ne('<div class="no-subnav-message svelte-1anbrit" part="no-subnav-message"><p class="svelte-1anbrit">Select a section from the bottom navigation</p></div>'),tl=ne('<!> <div part="mobile-side-menu"><div class="menu-header svelte-1anbrit" part="menu-header"><button class="close-button svelte-1anbrit" aria-label="Close navigation menu" part="close-button"><!></button> <div class="logo-container svelte-1anbrit" part="logo-container"><!></div></div> <div class="menu-content svelte-1anbrit" part="menu-content"><!></div></div>',1);const rl={hash:"svelte-1anbrit",code:".no-subnav-message.svelte-1anbrit {padding:var(--ai-size-16);text-align:center;color:var(--ai-color-steel-600);font-size:var(--ai-size-14);}.no-subnav-message.svelte-1anbrit p:where(.svelte-1anbrit) {margin:0;}.mobile-side-menu.svelte-1anbrit {position:fixed;top:0;left:0;bottom:0;width:80%;max-width:85vw;background:var(--ai-color-steel-50);transform:translateX(-100%);transition:transform var(--ai-transition-ease-medium);z-index:var(--ai-layer-50);flex-direction:column;box-shadow:var(--ai-size-2) 0 var(--ai-size-10) #0000001a;}.mobile-side-menu.open.svelte-1anbrit {transform:translateX(0);}.menu-header.svelte-1anbrit {display:flex;align-items:center;padding:var(--ai-size-16);gap:var(--ai-size-16);}.mobile-side-menu.svelte-1anbrit .logo-container:where(.svelte-1anbrit) {display:flex;}.logo-link.svelte-1anbrit {display:flex;}.close-button.svelte-1anbrit {display:flex;align-items:center;justify-content:center;padding:0;border:none;background:none;color:var(--ai-color-neutral-700);cursor:pointer;border-radius:var(--ai-size-2);transition:background-color var(--ai-transition-ease-fast);}.close-button.svelte-1anbrit:hover {background-color:var(--ai-color-neutral-100);}.menu-content.svelte-1anbrit {flex:1;overflow-y:auto;padding:0;}.subnav-section.svelte-1anbrit {overflow-y:auto;max-height:calc(100vh - 4rem); /* leave space for header/close */}"};function Xi(e,t){ie(t,!0),ct(e,rl);const[r,n]=tr(),i=()=>Ue(Re,"$isExpanded",r),a=()=>Ue(kt,"$selectedItem",r);let s,o=null,l=_(t,"logoLinkUrl",7),u=_(t,"logoLinkLabel",7);function f(N){if(o=N.detail.hash,d(),o){const x=document.getElementById(o);if(x){const U=document.getElementById("main-content-mobile"),P=U?U.querySelector(`[id="${o}"]`):null;if(P&&U){const q=P.getBoundingClientRect(),K=U.getBoundingClientRect(),ce=U.scrollTop+q.top-K.top;U.scrollTo({top:ce,behavior:"auto"}),setTimeout(()=>{var vt;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(vt=P.textContent)==null?void 0:vt.trim(),id:P.id}}))},100)}else{let q=x.parentElement;for(;q&&q!==document.body;){const K=window.getComputedStyle(q);if(K.overflowY==="auto"||K.overflowY==="scroll")break;q=q.parentElement}q&&q!==document.body?document.getElementById("main-content")?(x.scrollIntoView({behavior:"auto",block:"start"}),setTimeout(()=>{var ce;window.dispatchEvent(new CustomEvent("sectionVisible",{detail:{title:(ce=x.textContent)==null?void 0:ce.trim(),id:x.id}}))},100)):x.scrollIntoView({behavior:"auto",block:"start"}):x.scrollIntoView({behavior:"auto",block:"start"})}}o=null}}Dt(()=>{window.addEventListener("mobileAnchorNavigate",f);const N=()=>{d()};window.addEventListener("closeMobileMenu",N);const $=U=>{const P=U,{isMobile:q}=P.detail;q&&_e.setExpanded(!1)};window.addEventListener("layoutTransition",$);const x=U=>{const P=document.activeElement;U.key==="Escape"&&i()&&!(P&&P.closest(".profile-context-menu"))&&d()};return window.addEventListener("keydown",x),()=>{window.removeEventListener("mobileAnchorNavigate",f),window.removeEventListener("closeMobileMenu",N),window.removeEventListener("layoutTransition",$),window.removeEventListener("keydown",x)}});function d(){_e.setExpanded(!1)}var c=tl(),v=Ye(c);{var h=N=>{var $=Gs();$.__click=d,$.__keydown=[Ws,d],I(N,$)};re(v,N=>{i()&&N(h)})}var y=ve(v,2);let M;var L=S(y),p=S(L);p.__click=d;var b=S(p);Lr(b,{isOpen:!0}),E(p);var m=ve(p,2),w=S(m);{var T=N=>{var $=Xs(),x=S($);At(x,{width:75,height:22}),E($),pe(()=>{Y($,"href",l()),Y($,"aria-label",u())}),I(N,$)},D=N=>{At(N,{width:75,height:22})};re(w,N=>{l()?N(T):N(D,!1)})}E(m),E(L);var J=ve(L,2),z=S(J);{var B=N=>{var $=Qs(),x=S($);gt(x,t,"default",{}),E($),I(N,$)},G=N=>{var $=el();I(N,$)};re(z,N=>{a()&&a()!=="discover"?N(B):N(G,!1)})}E(J),E(y),dt(y,N=>s=N,()=>s),pe(N=>M=ke(y,1,"mobile-side-menu svelte-1anbrit",null,M,N),[()=>({open:i()})]),I(e,c);var W=ae({get logoLinkUrl(){return l()},set logoLinkUrl(N){l(N),k()},get logoLinkLabel(){return u()},set logoLinkLabel(N){u(N),k()}});return n(),W}Wt(["click","keydown"]),se(Xi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0);function Qi(e,t){ie(t,!0);let r=_(t,"logoLinkUrl",7),n=_(t,"logoLinkLabel",7);return Xi(e,{get logoLinkUrl(){return r()},get logoLinkLabel(){return n()},children:(i,a)=>{var s=pt(),o=Ye(s);gt(o,t,"default",{}),I(i,s)},$$slots:{default:!0}}),ae({get logoLinkUrl(){return r()},set logoLinkUrl(i){r(i),k()},get logoLinkLabel(){return n()},set logoLinkLabel(i){n(i),k()}})}customElements.define("graymatter-mobile-side-menu",se(Qi,{logoLinkUrl:{},logoLinkLabel:{}},["default"],[],!0));function nl(){_e.toggleExpanded()}function il(){mt.set("help")}var al=ne('<a class="display-flex"><!></a>'),ol=ne('<a title="Help" aria-label="Help"><span class="icon-container svelte-o9wk7k"><!></span></a>'),sl=ne('<nav class="mobile-top-nav svelte-o9wk7k" part="mobile-top-nav"><button aria-label="Open navigation menu" part="menu-button"><!></button> <div class="brand svelte-o9wk7k"><!> <span class="brand-text svelte-o9wk7k"> </span></div> <!> <!></nav>');const ll={hash:"svelte-o9wk7k",code:`.menu-button.svelte-o9wk7k {display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;border-radius:var(--ai-size-8);transition:background-color var(--ai-transition-ease-fast);}.menu-button.svelte-o9wk7k:disabled,
|
|
70
|
+
.menu-button.disabled.svelte-o9wk7k {cursor:not-allowed;opacity:0.5;background-color:transparent;}.mobile-top-nav.svelte-o9wk7k .menu-button:where(.svelte-o9wk7k) {padding:0;height:var(--ai-size-40);color:var(--ai-color-neutral-700);}.menu-button.svelte-o9wk7k:hover {background-color:var(--ai-color-neutral-100);}
|
|
71
|
+
|
|
72
|
+
/* MobileTopNav specific disabled state */.mobile-top-nav.svelte-o9wk7k .menu-button.disabled:where(.svelte-o9wk7k),
|
|
73
|
+
.mobile-top-nav.svelte-o9wk7k .menu-button:where(.svelte-o9wk7k):disabled {cursor:not-allowed;opacity:0.5;background-color:transparent;}.brand.svelte-o9wk7k {display:flex;align-items:center;gap:var(--ai-size-12);flex:1;margin-left:var(--ai-size-8);}.brand-text.svelte-o9wk7k {color:var(--ai-color-neutral-900);font-size:var(--ai-size-16);font-weight:600;line-height:1;}.menu-button.svelte-o9wk7k {display:flex;padding:var(--ai-size-4);justify-content:center;align-items:center;background:none;border:none;cursor:pointer;opacity:1;transition:opacity var(--ai-transition-ease-fast);will-change:opacity;}.menu-button.disabled.svelte-o9wk7k {cursor:not-allowed;opacity:0.5;will-change:opacity;}.menu-button.svelte-o9wk7k:focus {outline:none;}.help-button.svelte-o9wk7k {display:flex;align-items:center;justify-content:center;margin-right:var(--ai-size-4);text-decoration:none;color:inherit;}.help-button.svelte-o9wk7k .icon-container:where(.svelte-o9wk7k) {display:flex;align-items:center;justify-content:center;width:var(--ai-size-40);height:var(--ai-size-40);border-radius:var(--ai-size-4);transition:background-color var(--ai-transition-ease-fast);}.help-button.svelte-o9wk7k:hover .icon-container:where(.svelte-o9wk7k),
|
|
74
|
+
.help-button.selected.svelte-o9wk7k .icon-container:where(.svelte-o9wk7k) {background-color:var(--ai-color-steel-300);}`};function ea(e,t){var W,N,$;ie(t,!0),ct(e,ll);const[r,n]=tr(),i=()=>Ue(wt,"$selectedSubNavItemTitle",r),a=()=>Ue(dn,"$isMenuButtonDisabled",r);let s=_(t,"profileMenuData",7),o=_(t,"logoLinkUrl",7),l=_(t,"logoLinkLabel",7),u=_(t,"supplementalMenuData",7);const f=($=(N=(W=u())==null?void 0:W.help)==null?void 0:N.url)==null?void 0:$.trim(),d=te(()=>()=>un(mt)==="help");Dt(()=>{const x=q=>{if(window.innerWidth<=640)return;const K=q;K.detail&&K.detail.title&&(wt.set(K.detail.title),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(K.detail.title)))},U=()=>{if(typeof window>"u")return;const q=document.getElementById("main-content");if(!q)return;const K=q.querySelector("h2[id], h3[id], h4[id], h5[id], h6[id]");if(K&&K.textContent){const ce=K.textContent.trim();i()||(wt.set(ce),typeof window<"u"&&sessionStorage.setItem("subNav-selectedTitle",JSON.stringify(ce)))}};window.addEventListener("sectionVisible",x);const P=sessionStorage.getItem("subNav-selectedTitle");return(!P||P==='""'||P==="null")&&setTimeout(()=>{U()},100),()=>{window.removeEventListener("sectionVisible",x)}}),Dt(()=>{const x=globalThis.location;if(f&&(x!=null&&x.origin)&&(x!=null&&x.pathname)){const U=c(f,x.origin);U&&x.pathname===U&&mt.set("help")}});function c(x,U){try{return new URL(x,U).pathname}catch{return null}}var v=sl(),h=S(v);let y;h.__click=[nl];var M=S(h);Lr(M,{}),E(h);var L=ve(h,2),p=S(L);{var b=x=>{var U=al(),P=S(U);At(P,{width:75,height:22}),E(U),pe(()=>{Y(U,"href",o()),Y(U,"aria-label",l())}),I(x,U)},m=x=>{At(x,{width:75,height:22})};re(p,x=>{o()?x(b):x(m,!1)})}var w=ve(p,2),T=S(w,!0);E(w),E(L);var D=ve(L,2);{var J=x=>{var U=ol();let P;U.__click=[il];var q=S(U),K=S(q);const ce=te(()=>g(d)());gn(K,{get isSelected(){return g(ce)}}),E(q),E(U),pe((vt,_t)=>{P=ke(U,1,"help-button svelte-o9wk7k",null,P,vt),Y(U,"aria-current",_t),Y(U,"href",f)},[()=>({selected:g(d)()}),()=>g(d)()]),I(x,U)};re(D,x=>{f&&x(J)})}var z=ve(D,2);{var B=x=>{const U=te(()=>{var q;return(q=s())==null?void 0:q.userMeta}),P=te(()=>{var q;return(q=s())==null?void 0:q.menuItems});pn(x,{get userMeta(){return g(U)},get menuItems(){return g(P)},ariaLabel:"Open profile menu",menuAlign:"mobile"})};re(z,x=>{s()&&x(B)})}E(v),pe(x=>{y=ke(h,1,"menu-button svelte-o9wk7k",null,y,x),h.disabled=a(),Xt(T,i()||"")},[()=>({disabled:a()})]),I(e,v);var G=ae({get profileMenuData(){return s()},set profileMenuData(x){s(x),k()},get logoLinkUrl(){return o()},set logoLinkUrl(x){o(x),k()},get logoLinkLabel(){return l()},set logoLinkLabel(x){l(x),k()},get supplementalMenuData(){return u()},set supplementalMenuData(x){u(x),k()}});return n(),G}Wt(["click"]),se(ea,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],!0);function ta(e,t){ie(t,!0);let r=_(t,"profileMenuData",7),n=_(t,"logoLinkUrl",7),i=_(t,"logoLinkLabel",7),a=_(t,"supplementalMenuData",7);return ea(e,{get profileMenuData(){return r()},get logoLinkUrl(){return n()},get logoLinkLabel(){return i()},get supplementalMenuData(){return a()}}),ae({get profileMenuData(){return r()},set profileMenuData(s){r(s),k()},get logoLinkUrl(){return n()},set logoLinkUrl(s){n(s),k()},get logoLinkLabel(){return i()},set logoLinkLabel(s){i(s),k()},get supplementalMenuData(){return a()},set supplementalMenuData(s){a(s),k()}})}customElements.define("graymatter-mobile-top-nav",se(ta,{profileMenuData:{},logoLinkUrl:{},logoLinkLabel:{},supplementalMenuData:{}},[],[],!0));function nr(e,t){if(typeof window>"u"){console.warn("[DesktopNavControl] Cannot control desktop navigation on server side");return}if(e==="set"&&typeof t!="boolean"){console.error('[DesktopNavControl] isOpen parameter is required when action is "set"');return}const r=new CustomEvent("graymatter-desktop-nav-control",{detail:{action:e,isOpen:t},bubbles:!0,cancelable:!1});window.dispatchEvent(r)}function ul(){nr("toggle")}function cl(){nr("open")}function dl(){nr("close")}function vl(e){nr("set",e)}A.Button=Pi,A.DesktopHeader=Zi,A.DesktopSideNav=Ki,A.Logo=Ji,A.MobileBottomNav=Gi,A.MobileSideMenu=Qi,A.MobileTopNav=ta,A.closeNavigation=dl,A.controlDesktopNavigation=nr,A.openNavigation=cl,A.setNavigationState=vl,A.toggleNavigation=ul,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|