Files
amcs/internal/app/ui/dist/assets/index-CIozj4p7.js
2026-04-05 09:40:38 +02:00

2 lines
38 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Br=Object.defineProperty;var bn=e=>{throw TypeError(e)};var Ur=(e,t,n)=>t in e?Br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var be=(e,t,n)=>Ur(e,typeof t!="symbol"?t+"":t,n),Bt=(e,t,n)=>t.has(e)||bn("Cannot "+n);var c=(e,t,n)=>(Bt(e,t,"read from private field"),n?n.call(e):t.get(e)),M=(e,t,n)=>t.has(e)?bn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),De=(e,t,n,r)=>(Bt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),U=(e,t,n)=>(Bt(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const Vr="5";var In;typeof window<"u"&&((In=window.__svelte??(window.__svelte={})).v??(In.v=new Set)).add(Vr);let pt=!1,Yr=!1;function Kr(){pt=!0}Kr();const Gr=1,Wr=2,Ln=4,$r=8,Xr=16,Zr=2,F=Symbol(),Pn="http://www.w3.org/1999/xhtml",Jr=!1;var jn=Array.isArray,Qr=Array.prototype.indexOf,$e=Array.prototype.includes,rn=Array.from,es=Object.defineProperty,Ut=Object.getOwnPropertyDescriptor,qn=Object.getOwnPropertyDescriptors,ts=Object.prototype,ns=Array.prototype,sn=Object.getPrototypeOf;const rs=()=>{};function ss(e){return e()}function Gt(e){for(var t=0;t<e.length;t++)e[t]()}function zn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const I=2,Xe=4,qt=8,Hn=1<<24,we=16,se=32,Ze=64,is=128,X=512,N=1024,P=2048,ue=4096,B=8192,Z=16384,ze=32768,yn=1<<25,it=65536,Wt=1<<17,Bn=1<<18,_t=1<<19,Un=1<<20,fe=1<<25,je=65536,$t=1<<21,zt=1<<22,Te=1<<23,st=Symbol("$state"),pe=new class extends Error{constructor(){super(...arguments);be(this,"name","StaleReactionError");be(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function ls(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function as(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function os(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function fs(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function us(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function cs(e){throw new Error("https://svelte.dev/e/effect_orphan")}function ds(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function vs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hs(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ps(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Vn(e){return e===this.v}function _s(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yn(e){return!_s(e,this.v)}let D=null;function Dt(e){D=e}function gs(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:E,l:pt&&!t?{s:null,u:null,$:[]}:null}}function ms(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)fr(r)}return t.i=!0,D=t.p,{}}function gt(){return!pt||D!==null&&D.l===null}let Ue=[];function ws(){var e=Ue;Ue=[],Gt(e)}function It(e){if(Ue.length===0){var t=Ue;queueMicrotask(()=>{t===Ue&&ws()})}Ue.push(e)}function xs(e){var t=E;if(t===null)return m.f|=Te,e;if((t.f&ze)===0&&(t.f&Xe)===0)throw e;Ft(e,t)}function Ft(e,t){for(;t!==null;){if((t.f&is)!==0){if((t.f&ze)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const bs=-7169;function C(e,t){e.f=e.f&bs|t}function ln(e){(e.f&X)!==0||e.deps===null?C(e,N):C(e,ue)}function Kn(e){if(e!==null)for(const t of e)(t.f&I)===0||(t.f&je)===0||(t.f^=je,Kn(t.deps))}function ys(e,t,n){(e.f&P)!==0?t.add(e):(e.f&ue)!==0&&n.add(e),Kn(e.deps),C(e,N)}const ye=new Set;let w=null,L=null,Xt=null,Vt=!1,Ve=null,Mt=null;var En=0;let Es=1;var Ke,Ge,_e,le,ct,K,dt,Se,ge,ae,We,Fe,O,Ct,Gn,Rt,Zt,Jt,Wn;const Pt=class Pt{constructor(){M(this,O);be(this,"id",Es++);be(this,"current",new Map);be(this,"previous",new Map);M(this,Ke,new Set);M(this,Ge,new Set);M(this,_e,new Map);M(this,le,new Map);M(this,ct,null);M(this,K,[]);M(this,dt,[]);M(this,Se,new Set);M(this,ge,new Set);M(this,ae,new Map);be(this,"is_fork",!1);M(this,We,!1);M(this,Fe,new Set)}skip_effect(t){c(this,ae).has(t)||c(this,ae).set(t,{d:[],m:[]})}unskip_effect(t){var n=c(this,ae).get(t);if(n){c(this,ae).delete(t);for(var r of n.d)C(r,P),this.schedule(r);for(r of n.m)C(r,ue),this.schedule(r)}}capture(t,n,r=!1){n!==F&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Te)===0&&(this.current.set(t,[t.v,r]),L==null||L.set(t,t.v))}activate(){w=this}deactivate(){w=null,L=null}flush(){try{Vt=!0,w=this,U(this,O,Rt).call(this)}finally{En=0,Xt=null,Ve=null,Mt=null,Vt=!1,w=null,L=null,Me.clear()}}discard(){for(const t of c(this,Ge))t(this);c(this,Ge).clear(),ye.delete(this)}register_created_effect(t){c(this,dt).push(t)}increment(t,n){let r=c(this,_e).get(n)??0;if(c(this,_e).set(n,r+1),t){let s=c(this,le).get(n)??0;c(this,le).set(n,s+1)}}decrement(t,n,r){let s=c(this,_e).get(n)??0;if(s===1?c(this,_e).delete(n):c(this,_e).set(n,s-1),t){let i=c(this,le).get(n)??0;i===1?c(this,le).delete(n):c(this,le).set(n,i-1)}c(this,We)||r||(De(this,We,!0),It(()=>{De(this,We,!1),this.flush()}))}transfer_effects(t,n){for(const r of t)c(this,Se).add(r);for(const r of n)c(this,ge).add(r);t.clear(),n.clear()}oncommit(t){c(this,Ke).add(t)}ondiscard(t){c(this,Ge).add(t)}settled(){return(c(this,ct)??De(this,ct,zn())).promise}static ensure(){if(w===null){const t=w=new Pt;Vt||(ye.add(w),It(()=>{w===t&&t.flush()}))}return w}apply(){{L=null;return}}schedule(t){var s;if(Xt=t,(s=t.b)!=null&&s.is_pending&&(t.f&(Xe|qt|Hn))!==0&&(t.f&ze)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(Ve!==null&&n===E&&(m===null||(m.f&I)===0))return;if((r&(Ze|se))!==0){if((r&N)===0)return;n.f^=N}}c(this,K).push(n)}};Ke=new WeakMap,Ge=new WeakMap,_e=new WeakMap,le=new WeakMap,ct=new WeakMap,K=new WeakMap,dt=new WeakMap,Se=new WeakMap,ge=new WeakMap,ae=new WeakMap,We=new WeakMap,Fe=new WeakMap,O=new WeakSet,Ct=function(){return this.is_fork||c(this,le).size>0},Gn=function(){for(const r of c(this,Fe))for(const s of c(r,le).keys()){for(var t=!1,n=s;n.parent!==null;){if(c(this,ae).has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1},Rt=function(){var f,l;if(En++>1e3&&(ye.delete(this),ks()),!U(this,O,Ct).call(this)){for(const o of c(this,Se))c(this,ge).delete(o),C(o,P),this.schedule(o);for(const o of c(this,ge))C(o,ue),this.schedule(o)}const t=c(this,K);De(this,K,[]),this.apply();var n=Ve=[],r=[],s=Mt=[];for(const o of t)try{U(this,O,Zt).call(this,o,n,r)}catch(u){throw Zn(o),u}if(w=null,s.length>0){var i=Pt.ensure();for(const o of s)i.schedule(o)}if(Ve=null,Mt=null,U(this,O,Ct).call(this)||U(this,O,Gn).call(this)){U(this,O,Jt).call(this,r),U(this,O,Jt).call(this,n);for(const[o,u]of c(this,ae))Xn(o,u)}else{c(this,_e).size===0&&ye.delete(this),c(this,Se).clear(),c(this,ge).clear();for(const o of c(this,Ke))o(this);c(this,Ke).clear(),kn(r),kn(n),(f=c(this,ct))==null||f.resolve()}var a=w;if(c(this,K).length>0){const o=a??(a=this);c(o,K).push(...c(this,K).filter(u=>!c(o,K).includes(u)))}a!==null&&(ye.add(a),U(l=a,O,Rt).call(l)),ye.has(this)||U(this,O,Wn).call(this)},Zt=function(t,n,r){t.f^=N;for(var s=t.first;s!==null;){var i=s.f,a=(i&(se|Ze))!==0,f=a&&(i&N)!==0,l=f||(i&B)!==0||c(this,ae).has(s);if(!l&&s.fn!==null){a?s.f^=N:(i&Xe)!==0?n.push(s):mt(s)&&((i&we)!==0&&c(this,ge).add(s),Je(s));var o=s.first;if(o!==null){s=o;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}},Jt=function(t){for(var n=0;n<t.length;n+=1)ys(t[n],c(this,Se),c(this,ge))},Wn=function(){var u,_,d;for(const p of ye){var t=p.id<this.id,n=[];for(const[h,[k,v]]of this.current){if(p.current.has(h)){var r=p.current.get(h)[0];if(t&&k!==r)p.current.set(h,[k,v]);else continue}n.push(h)}var s=[...p.current.keys()].filter(h=>!this.current.has(h));if(s.length===0)t&&p.discard();else if(n.length>0){p.activate();var i=new Set,a=new Map;for(var f of n)$n(f,s,i,a);a=new Map;var l=[...p.current.keys()].filter(h=>this.current.has(h)?this.current.get(h)[0]!==h:!0);for(const h of c(this,dt))(h.f&(Z|B|Wt))===0&&an(h,l,a)&&((h.f&(zt|we))!==0?(C(h,P),p.schedule(h)):c(p,Se).add(h));if(c(p,K).length>0){p.apply();for(var o of c(p,K))U(u=p,O,Zt).call(u,o,[],[]);De(p,K,[])}p.deactivate()}}for(const p of ye)c(p,Fe).has(this)&&(c(p,Fe).delete(this),c(p,Fe).size===0&&!U(_=p,O,Ct).call(_)&&(p.activate(),U(d=p,O,Rt).call(d)))};let lt=Pt;function ks(){try{ds()}catch(e){Ft(e,Xt)}}let te=null;function kn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Z|B))===0&&mt(r)&&(te=new Set,Je(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&cr(r),(te==null?void 0:te.size)>0)){Me.clear();for(const s of te){if((s.f&(Z|B))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)te.has(a)&&(te.delete(a),i.push(a)),a=a.parent;for(let f=i.length-1;f>=0;f--){const l=i[f];(l.f&(Z|B))===0&&Je(l)}}te.clear()}}te=null}}function $n(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&I)!==0?$n(s,t,n,r):(i&(zt|we))!==0&&(i&P)===0&&an(s,t,r)&&(C(s,P),on(s))}}function an(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if($e.call(t,s))return!0;if((s.f&I)!==0&&an(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function on(e){w.schedule(e)}function Xn(e,t){if(!((e.f&se)!==0&&(e.f&N)!==0)){(e.f&P)!==0?t.d.push(e):(e.f&ue)!==0&&t.m.push(e),C(e,N);for(var n=e.first;n!==null;)Xn(n,t),n=n.next}}function Zn(e){C(e,N);for(var t=e.first;t!==null;)Zn(t),t=t.next}function As(e,t,n,r){const s=gt()?fn:Qn;var i=e.filter(d=>!d.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var a=E,f=Ss(),l=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(d=>d.promise)):null;function o(d){f();try{r(d)}catch(p){(a.f&Z)===0&&Ft(p,a)}Lt()}if(n.length===0){l.then(()=>o(t.map(s)));return}var u=Jn();function _(){Promise.all(n.map(d=>Ts(d))).then(d=>o([...t.map(s),...d])).catch(d=>Ft(d,a)).finally(()=>u())}l?l.then(()=>{f(),_(),Lt()}):_()}function Ss(){var e=E,t=m,n=D,r=w;return function(i=!0){Ce(e),ce(t),Dt(n),i&&(e.f&Z)===0&&(r==null||r.activate(),r==null||r.apply())}}function Lt(e=!0){Ce(null),ce(null),Dt(null),e&&(w==null||w.deactivate())}function Jn(){var e=E,t=e.b,n=w,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(s=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,s)}}function fn(e){var t=I|P,n=m!==null&&(m.f&I)!==0?m:null;return E!==null&&(E.f|=_t),{ctx:D,deps:null,effects:null,equals:Vn,f:t,fn:e,reactions:null,rv:0,v:F,wv:0,parent:n??E,ac:null}}function Ts(e,t,n){let r=E;r===null&&as();var s=void 0,i=at(F),a=!m,f=new Map;return Hs(()=>{var p;var l=E,o=zn();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(Lt)}catch(h){o.reject(h),Lt()}var u=w;if(a){if((l.f&ze)!==0)var _=Jn();if(r.b.is_rendered())(p=f.get(u))==null||p.reject(pe),f.delete(u);else{for(const h of f.values())h.reject(pe);f.clear()}f.set(u,o)}const d=(h,k=void 0)=>{if(_){var v=k===pe;_(v)}if(!(k===pe||(l.f&Z)!==0)){if(u.activate(),k)i.f|=Te,ot(i,k);else{(i.f&Te)!==0&&(i.f^=Te),ot(i,h);for(const[x,S]of f){if(f.delete(x),x===u)break;S.reject(pe)}}u.deactivate()}};o.promise.then(d,h=>d(null,h||"unknown"))}),or(()=>{for(const l of f.values())l.reject(pe)}),new Promise(l=>{function o(u){function _(){u===s?l(i):o(s)}u.then(_,_)}o(s)})}function Qn(e){const t=fn(e);return t.equals=Yn,t}function Ms(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)me(t[n])}}function Cs(e){for(var t=e.parent;t!==null;){if((t.f&I)===0)return(t.f&Z)===0?t:null;t=t.parent}return null}function un(e){var t,n=E;Ce(Cs(e));try{e.f&=~je,Ms(e),t=mr(e)}finally{Ce(n)}return t}function er(e){var t=e.v,n=un(e);if(!e.equals(n)&&(e.wv=_r(),(!(w!=null&&w.is_fork)||e.deps===null)&&(e.v=n,w==null||w.capture(e,t,!0),e.deps===null))){C(e,N);return}qe||(L!==null?(ar()||w!=null&&w.is_fork)&&L.set(e,n):ln(e))}function Rs(e){var t,n;if(e.effects!==null)for(const r of e.effects)(r.teardown||r.ac)&&((t=r.teardown)==null||t.call(r),(n=r.ac)==null||n.abort(pe),r.teardown=rs,r.ac=null,ut(r,0),vn(r))}function tr(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Je(t)}let Qt=new Set;const Me=new Map;let nr=!1;function at(e,t){var n={f:0,v:e,reactions:null,equals:Vn,rv:0,wv:0};return n}function Ee(e,t){const n=at(e);return Vs(n),n}function Ot(e,t=!1,n=!0){var s;const r=at(e);return t||(r.equals=Yn),pt&&n&&D!==null&&D.l!==null&&((s=D.l).s??(s.s=[])).push(r),r}function $(e,t,n=!1){m!==null&&(!re||(m.f&Wt)!==0)&&gt()&&(m.f&(I|we|zt|Wt))!==0&&(J===null||!$e.call(J,e))&&ps();let r=n?nt(t):t;return ot(e,r,Mt)}function ot(e,t,n=null){if(!e.equals(t)){var r=e.v;qe?Me.set(e,t):Me.set(e,r),e.v=t;var s=lt.ensure();if(s.capture(e,r),(e.f&I)!==0){const i=e;(e.f&P)!==0&&un(i),L===null&&ln(i)}e.wv=_r(),rr(e,P,n),gt()&&E!==null&&(E.f&N)!==0&&(E.f&(se|Ze))===0&&(W===null?Ys([e]):W.push(e)),!s.is_fork&&Qt.size>0&&!nr&&Os()}return t}function Os(){nr=!1;for(const e of Qt)(e.f&N)!==0&&C(e,ue),mt(e)&&Je(e);Qt.clear()}function Yt(e){$(e,e.v+1)}function rr(e,t,n){var r=e.reactions;if(r!==null)for(var s=gt(),i=r.length,a=0;a<i;a++){var f=r[a],l=f.f;if(!(!s&&f===E)){var o=(l&P)===0;if(o&&C(f,t),(l&I)!==0){var u=f;L==null||L.delete(u),(l&je)===0&&(l&X&&(f.f|=je),rr(u,ue,n))}else if(o){var _=f;(l&we)!==0&&te!==null&&te.add(_),n!==null?n.push(_):on(_)}}}}function nt(e){if(typeof e!="object"||e===null||st in e)return e;const t=sn(e);if(t!==ts&&t!==ns)return e;var n=new Map,r=jn(e),s=Ee(0),i=Pe,a=f=>{if(Pe===i)return f();var l=m,o=Pe;ce(null),Sn(i);var u=f();return ce(l),Sn(o),u};return r&&n.set("length",Ee(e.length)),new Proxy(e,{defineProperty(f,l,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&vs();var u=n.get(l);return u===void 0?a(()=>{var _=Ee(o.value);return n.set(l,_),_}):$(u,o.value,!0),!0},deleteProperty(f,l){var o=n.get(l);if(o===void 0){if(l in f){const u=a(()=>Ee(F));n.set(l,u),Yt(s)}}else $(o,F),Yt(s);return!0},get(f,l,o){var p;if(l===st)return e;var u=n.get(l),_=l in f;if(u===void 0&&(!_||(p=Ut(f,l))!=null&&p.writable)&&(u=a(()=>{var h=nt(_?f[l]:F),k=Ee(h);return k}),n.set(l,u)),u!==void 0){var d=y(u);return d===F?void 0:d}return Reflect.get(f,l,o)},getOwnPropertyDescriptor(f,l){var o=Reflect.getOwnPropertyDescriptor(f,l);if(o&&"value"in o){var u=n.get(l);u&&(o.value=y(u))}else if(o===void 0){var _=n.get(l),d=_==null?void 0:_.v;if(_!==void 0&&d!==F)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return o},has(f,l){var d;if(l===st)return!0;var o=n.get(l),u=o!==void 0&&o.v!==F||Reflect.has(f,l);if(o!==void 0||E!==null&&(!u||(d=Ut(f,l))!=null&&d.writable)){o===void 0&&(o=a(()=>{var p=u?nt(f[l]):F,h=Ee(p);return h}),n.set(l,o));var _=y(o);if(_===F)return!1}return u},set(f,l,o,u){var T;var _=n.get(l),d=l in f;if(r&&l==="length")for(var p=o;p<_.v;p+=1){var h=n.get(p+"");h!==void 0?$(h,F):p in f&&(h=a(()=>Ee(F)),n.set(p+"",h))}if(_===void 0)(!d||(T=Ut(f,l))!=null&&T.writable)&&(_=a(()=>Ee(void 0)),$(_,nt(o)),n.set(l,_));else{d=_.v!==F;var k=a(()=>nt(o));$(_,k)}var v=Reflect.getOwnPropertyDescriptor(f,l);if(v!=null&&v.set&&v.set.call(u,o),!d){if(r&&typeof l=="string"){var x=n.get("length"),S=Number(l);Number.isInteger(S)&&S>=x.v&&$(x,S+1)}Yt(s)}return!0},ownKeys(f){y(s);var l=Reflect.ownKeys(f).filter(_=>{var d=n.get(_);return d===void 0||d.v!==F});for(var[o,u]of n)u.v!==F&&!(o in f)&&l.push(o);return l},setPrototypeOf(){hs()}})}var Ns,Ds,Is,Fs;function Ye(e=""){return document.createTextNode(e)}function sr(e){return Is.call(e)}function Ht(e){return Fs.call(e)}function g(e,t){return sr(e)}function A(e,t=1,n=!1){let r=e;for(;t--;)r=Ht(r);return r}function Ls(e){e.textContent=""}function ir(){return!1}function Ps(e,t,n){return document.createElementNS(Pn,e,void 0)}function cn(e){var t=m,n=E;ce(null),Ce(null);try{return e()}finally{ce(t),Ce(n)}}function lr(e){E===null&&(m===null&&cs(),us()),qe&&fs()}function js(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Re(e,t){var n=E;n!==null&&(n.f&B)!==0&&(e|=B);var r={ctx:D,deps:null,nodes:null,f:e|P|X,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};w==null||w.register_created_effect(r);var s=r;if((e&Xe)!==0)Ve!==null?Ve.push(r):lt.ensure().schedule(r);else if(t!==null){try{Je(r)}catch(a){throw me(r),a}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&_t)===0&&(s=s.first,(e&we)!==0&&(e&it)!==0&&s!==null&&(s.f|=it))}if(s!==null&&(s.parent=n,n!==null&&js(s,n),m!==null&&(m.f&I)!==0&&(e&Ze)===0)){var i=m;(i.effects??(i.effects=[])).push(s)}return r}function ar(){return m!==null&&!re}function or(e){const t=Re(qt,null);return C(t,N),t.teardown=e,t}function en(e){lr();var t=E.f,n=!m&&(t&se)!==0&&(t&ze)===0;if(n){var r=D;(r.e??(r.e=[])).push(e)}else return fr(e)}function fr(e){return Re(Xe|Un,e)}function qs(e){return lr(),Re(qt|Un,e)}function zs(e){return Re(Xe,e)}function Hs(e){return Re(zt|_t,e)}function St(e,t=[],n=[],r=[]){As(r,t,n,s=>{Re(qt,()=>e(...s.map(y)))})}function dn(e,t=0){var n=Re(we|t,e);return n}function ft(e){return Re(se|_t,e)}function ur(e){var t=e.teardown;if(t!==null){const n=qe,r=m;An(!0),ce(null);try{t.call(null)}finally{An(n),ce(r)}}}function vn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&cn(()=>{s.abort(pe)});var r=n.next;(n.f&Ze)!==0?n.parent=null:me(n,t),n=r}}function Bs(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&se)===0&&me(t),t=n}}function me(e,t=!0){var n=!1;(t||(e.f&Bn)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Us(e.nodes.start,e.nodes.end),n=!0),C(e,yn),vn(e,t&&!n),ut(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();ur(e),e.f^=yn,e.f|=Z;var s=e.parent;s!==null&&s.first!==null&&cr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Us(e,t){for(;e!==null;){var n=e===t?null:Ht(e);e.remove(),e=n}}function cr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hn(e,t,n=!0){var r=[];dr(e,r,!0);var s=()=>{n&&me(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var f of r)f.out(a)}else s()}function dr(e,t,n){if((e.f&B)===0){e.f^=B;var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)(f.is_global||n)&&t.push(f);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&it)!==0||(s.f&se)!==0&&(e.f&we)!==0;dr(s,t,a?n:!1),s=i}}}function pn(e){vr(e,!0)}function vr(e,t){if((e.f&B)!==0){e.f^=B,(e.f&N)===0&&(C(e,P),lt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&it)!==0||(n.f&se)!==0;vr(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function hr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Ht(n);t.append(n),n=s}}let Nt=!1,qe=!1;function An(e){qe=e}let m=null,re=!1;function ce(e){m=e}let E=null;function Ce(e){E=e}let J=null;function Vs(e){m!==null&&(J===null?J=[e]:J.push(e))}let H=null,Y=0,W=null;function Ys(e){W=e}let pr=1,Ie=0,Pe=Ie;function Sn(e){Pe=e}function _r(){return++pr}function mt(e){var t=e.f;if((t&P)!==0)return!0;if(t&I&&(e.f&=~je),(t&ue)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(mt(i)&&er(i),i.wv>e.wv)return!0}(t&X)!==0&&L===null&&C(e,N)}return!1}function gr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(J!==null&&$e.call(J,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&I)!==0?gr(i,t,!1):t===i&&(n?C(i,P):(i.f&N)!==0&&C(i,ue),on(i))}}function mr(e){var k;var t=H,n=Y,r=W,s=m,i=J,a=D,f=re,l=Pe,o=e.f;H=null,Y=0,W=null,m=(o&(se|Ze))===0?e:null,J=null,Dt(e.ctx),re=!1,Pe=++Ie,e.ac!==null&&(cn(()=>{e.ac.abort(pe)}),e.ac=null);try{e.f|=$t;var u=e.fn,_=u();e.f|=ze;var d=e.deps,p=w==null?void 0:w.is_fork;if(H!==null){var h;if(p||ut(e,Y),d!==null&&Y>0)for(d.length=Y+H.length,h=0;h<H.length;h++)d[Y+h]=H[h];else e.deps=d=H;if(ar()&&(e.f&X)!==0)for(h=Y;h<d.length;h++)((k=d[h]).reactions??(k.reactions=[])).push(e)}else!p&&d!==null&&Y<d.length&&(ut(e,Y),d.length=Y);if(gt()&&W!==null&&!re&&d!==null&&(e.f&(I|ue|P))===0)for(h=0;h<W.length;h++)gr(W[h],e);if(s!==null&&s!==e){if(Ie++,s.deps!==null)for(let v=0;v<n;v+=1)s.deps[v].rv=Ie;if(t!==null)for(const v of t)v.rv=Ie;W!==null&&(r===null?r=W:r.push(...W))}return(e.f&Te)!==0&&(e.f^=Te),_}catch(v){return xs(v)}finally{e.f^=$t,H=t,Y=n,W=r,m=s,J=i,Dt(a),re=f,Pe=l}}function Ks(e,t){let n=t.reactions;if(n!==null){var r=Qr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&I)!==0&&(H===null||!$e.call(H,t))){var i=t;(i.f&X)!==0&&(i.f^=X,i.f&=~je),ln(i),Rs(i),ut(i,0)}}function ut(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ks(e,n[r])}function Je(e){var t=e.f;if((t&Z)===0){C(e,N);var n=E,r=Nt;E=e,Nt=!0;try{(t&(we|Hn))!==0?Bs(e):vn(e),ur(e);var s=mr(e);e.teardown=typeof s=="function"?s:null,e.wv=pr;var i;Jr&&Yr&&(e.f&P)!==0&&e.deps}finally{Nt=r,E=n}}}function y(e){var t=e.f,n=(t&I)!==0;if(m!==null&&!re){var r=E!==null&&(E.f&Z)!==0;if(!r&&(J===null||!$e.call(J,e))){var s=m.deps;if((m.f&$t)!==0)e.rv<Ie&&(e.rv=Ie,H===null&&s!==null&&s[Y]===e?Y++:H===null?H=[e]:H.push(e));else{(m.deps??(m.deps=[])).push(e);var i=e.reactions;i===null?e.reactions=[m]:$e.call(i,m)||i.push(m)}}}if(qe&&Me.has(e))return Me.get(e);if(n){var a=e;if(qe){var f=a.v;return((a.f&N)===0&&a.reactions!==null||xr(a))&&(f=un(a)),Me.set(a,f),f}var l=(a.f&X)===0&&!re&&m!==null&&(Nt||(m.f&X)!==0),o=(a.f&ze)===0;mt(a)&&(l&&(a.f|=X),er(a)),l&&!o&&(tr(a),wr(a))}if(L!=null&&L.has(e))return L.get(e);if((e.f&Te)!==0)throw e.v;return e.v}function wr(e){if(e.f|=X,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&I)!==0&&(t.f&X)===0&&(tr(t),wr(t))}function xr(e){if(e.v===F)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Me.has(t)||(t.f&I)!==0&&xr(t))return!0;return!1}function br(e){var t=re;try{return re=!0,e()}finally{re=t}}function Gs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(st in e)tn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&st in n&&tn(n)}}}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 r in e)try{tn(e[r],t)}catch{}const n=sn(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=qn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const Tt=Symbol("events");function Ws(e,t,n,r={}){function s(i){if(r.capture||Xs.call(t,i),!i.cancelBubble)return cn(()=>n==null?void 0:n.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?It(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function $s(e,t,n,r,s){var i={capture:r,passive:s},a=Ws(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&or(()=>{t.removeEventListener(e,a,i)})}let Tn=null;function Xs(e){var v,x;var t=this,n=t.ownerDocument,r=e.type,s=((v=e.composedPath)==null?void 0:v.call(e))||[],i=s[0]||e.target;Tn=e;var a=0,f=Tn===e&&e[Tt];if(f){var l=s.indexOf(f);if(l!==-1&&(t===document||t===window)){e[Tt]=t;return}var o=s.indexOf(t);if(o===-1)return;l<=o&&(a=l)}if(i=s[a]||e.target,i!==t){es(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=m,_=E;ce(null),Ce(null);try{for(var d,p=[];i!==null;){var h=i.assignedSlot||i.parentNode||i.host||null;try{var k=(x=i[Tt])==null?void 0:x[r];k!=null&&(!i.disabled||e.target===i)&&k.call(i,e)}catch(S){d?p.push(S):d=S}if(e.cancelBubble||h===t||h===null)break;i=h}if(d){for(let S of p)queueMicrotask(()=>{throw S});throw d}}finally{e[Tt]=t,delete e.currentTarget,ce(u),Ce(_)}}}var Fn;const Kt=((Fn=globalThis==null?void 0:globalThis.window)==null?void 0:Fn.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Zs(e){return(Kt==null?void 0:Kt.createHTML(e))??e}function Js(e){var t=Ps("template");return t.innerHTML=Zs(e.replaceAll("<!>","<!---->")),t.content}function Qs(e,t){var n=E;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Oe(e,t){var n=(t&Zr)!==0,r,s=!e.startsWith("<!>");return()=>{r===void 0&&(r=Js(s?e:"<!>"+e),r=sr(r));var i=n||Ds?document.importNode(r,!0):r.cloneNode(!0);return Qs(i,i),i}}function ke(e,t){e!==null&&e.before(t)}function V(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}var ne,oe,G,Le,vt,ht,jt;class ei{constructor(t,n=!0){be(this,"anchor");M(this,ne,new Map);M(this,oe,new Map);M(this,G,new Map);M(this,Le,new Set);M(this,vt,!0);M(this,ht,t=>{if(c(this,ne).has(t)){var n=c(this,ne).get(t),r=c(this,oe).get(n);if(r)pn(r),c(this,Le).delete(n);else{var s=c(this,G).get(n);s&&(c(this,oe).set(n,s.effect),c(this,G).delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,a]of c(this,ne)){if(c(this,ne).delete(i),i===t)break;const f=c(this,G).get(a);f&&(me(f.effect),c(this,G).delete(a))}for(const[i,a]of c(this,oe)){if(i===n||c(this,Le).has(i))continue;const f=()=>{if(Array.from(c(this,ne).values()).includes(i)){var o=document.createDocumentFragment();hr(a,o),o.append(Ye()),c(this,G).set(i,{effect:a,fragment:o})}else me(a);c(this,Le).delete(i),c(this,oe).delete(i)};c(this,vt)||!r?(c(this,Le).add(i),hn(a,f,!1)):f()}}});M(this,jt,t=>{c(this,ne).delete(t);const n=Array.from(c(this,ne).values());for(const[r,s]of c(this,G))n.includes(r)||(me(s.effect),c(this,G).delete(r))});this.anchor=t,De(this,vt,n)}ensure(t,n){var r=w,s=ir();if(n&&!c(this,oe).has(t)&&!c(this,G).has(t))if(s){var i=document.createDocumentFragment(),a=Ye();i.append(a),c(this,G).set(t,{effect:ft(()=>n(a)),fragment:i})}else c(this,oe).set(t,ft(()=>n(this.anchor)));if(c(this,ne).set(r,t),s){for(const[f,l]of c(this,oe))f===t?r.unskip_effect(l):r.skip_effect(l);for(const[f,l]of c(this,G))f===t?r.unskip_effect(l.effect):r.skip_effect(l.effect);r.oncommit(c(this,ht)),r.ondiscard(c(this,jt))}else c(this,ht).call(this,r)}}ne=new WeakMap,oe=new WeakMap,G=new WeakMap,Le=new WeakMap,vt=new WeakMap,ht=new WeakMap,jt=new WeakMap;function ti(e){D===null&&ls(),pt&&D.l!==null?ni(D).m.push(e):en(()=>{const t=br(e);if(typeof t=="function")return t})}function ni(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function Mn(e,t,n=!1){var r=new ei(e),s=n?it:0;function i(a,f){r.ensure(a,f)}dn(()=>{var a=!1;t((f,l=0)=>{a=!0,i(l,f)}),a||i(-1,null)},s)}function Cn(e,t){return t}function ri(e,t,n){for(var r=[],s=t.length,i,a=t.length,f=0;f<s;f++){let _=t[f];hn(_,()=>{if(i){if(i.pending.delete(_),i.done.add(_),i.pending.size===0){var d=e.outrogroups;nn(e,rn(i.done)),d.delete(i),d.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var l=r.length===0&&n!==null;if(l){var o=n,u=o.parentNode;Ls(u),u.append(o),e.items.clear()}nn(e,t,!l)}else i={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function nn(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const f of a)r.add(e.items.get(f).e)}for(var s=0;s<t.length;s++){var i=t[s];if(r!=null&&r.has(i)){i.f|=fe;const a=document.createDocumentFragment();hr(i,a)}else me(t[s],n)}}var Rn;function On(e,t,n,r,s,i=null){var a=e,f=new Map,l=(t&Ln)!==0;if(l){var o=e;a=o.appendChild(Ye())}var u=null,_=Qn(()=>{var T=n();return jn(T)?T:T==null?[]:rn(T)}),d,p=new Map,h=!0;function k(T){(S.effect.f&Z)===0&&(S.pending.delete(T),S.fallback=u,si(S,d,a,t,r),u!==null&&(d.length===0?(u.f&fe)===0?pn(u):(u.f^=fe,rt(u,null,a)):hn(u,()=>{u=null})))}function v(T){S.pending.delete(T)}var x=dn(()=>{d=y(_);for(var T=d.length,j=new Set,Q=w,de=ir(),q=0;q<T;q+=1){var ve=d[q],he=r(ve,q),z=h?null:f.get(he);z?(z.v&&ot(z.v,ve),z.i&&ot(z.i,q),de&&Q.unskip_effect(z.e)):(z=ii(f,h?a:Rn??(Rn=Ye()),ve,he,q,s,t,n),h||(z.e.f|=fe),f.set(he,z)),j.add(he)}if(T===0&&i&&!u&&(h?u=ft(()=>i(a)):(u=ft(()=>i(Rn??(Rn=Ye()))),u.f|=fe)),T>j.size&&os(),!h)if(p.set(Q,j),de){for(const[He,Be]of f)j.has(He)||Q.skip_effect(Be.e);Q.oncommit(k),Q.ondiscard(v)}else k(Q);y(_)}),S={effect:x,items:f,pending:p,outrogroups:null,fallback:u};h=!1}function tt(e){for(;e!==null&&(e.f&se)===0;)e=e.next;return e}function si(e,t,n,r,s){var z,He,Be,wt,xt,bt,yt,Qe,Et;var i=(r&$r)!==0,a=t.length,f=e.items,l=tt(e.effect.first),o,u=null,_,d=[],p=[],h,k,v,x;if(i)for(x=0;x<a;x+=1)h=t[x],k=s(h,x),v=f.get(k).e,(v.f&fe)===0&&((He=(z=v.nodes)==null?void 0:z.a)==null||He.measure(),(_??(_=new Set)).add(v));for(x=0;x<a;x+=1){if(h=t[x],k=s(h,x),v=f.get(k).e,e.outrogroups!==null)for(const ee of e.outrogroups)ee.pending.delete(v),ee.done.delete(v);if((v.f&B)!==0&&(pn(v),i&&((wt=(Be=v.nodes)==null?void 0:Be.a)==null||wt.unfix(),(_??(_=new Set)).delete(v))),(v.f&fe)!==0)if(v.f^=fe,v===l)rt(v,null,n);else{var S=u?u.next:l;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),Ae(e,u,v),Ae(e,v,S),rt(v,S,n),u=v,d=[],p=[],l=tt(u.next);continue}if(v!==l){if(o!==void 0&&o.has(v)){if(d.length<p.length){var T=p[0],j;u=T.prev;var Q=d[0],de=d[d.length-1];for(j=0;j<d.length;j+=1)rt(d[j],T,n);for(j=0;j<p.length;j+=1)o.delete(p[j]);Ae(e,Q.prev,de.next),Ae(e,u,Q),Ae(e,de,T),l=T,u=de,x-=1,d=[],p=[]}else o.delete(v),rt(v,l,n),Ae(e,v.prev,v.next),Ae(e,v,u===null?e.effect.first:u.next),Ae(e,u,v),u=v;continue}for(d=[],p=[];l!==null&&l!==v;)(o??(o=new Set)).add(l),p.push(l),l=tt(l.next);if(l===null)continue}(v.f&fe)===0&&d.push(v),u=v,l=tt(v.next)}if(e.outrogroups!==null){for(const ee of e.outrogroups)ee.pending.size===0&&(nn(e,rn(ee.done)),(xt=e.outrogroups)==null||xt.delete(ee));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||o!==void 0){var q=[];if(o!==void 0)for(v of o)(v.f&B)===0&&q.push(v);for(;l!==null;)(l.f&B)===0&&l!==e.fallback&&q.push(l),l=tt(l.next);var ve=q.length;if(ve>0){var he=(r&Ln)!==0&&a===0?n:null;if(i){for(x=0;x<ve;x+=1)(yt=(bt=q[x].nodes)==null?void 0:bt.a)==null||yt.measure();for(x=0;x<ve;x+=1)(Et=(Qe=q[x].nodes)==null?void 0:Qe.a)==null||Et.fix()}ri(e,q,he)}}i&&It(()=>{var ee,et;if(_!==void 0)for(v of _)(et=(ee=v.nodes)==null?void 0:ee.a)==null||et.apply()})}function ii(e,t,n,r,s,i,a,f){var l=(a&Gr)!==0?(a&Xr)===0?Ot(n,!1,!1):at(n):null,o=(a&Wr)!==0?at(s):null;return{v:l,i:o,e:ft(()=>(i(t,l??n,o??s,f),()=>{e.delete(r)}))}}function rt(e,t,n){if(e.nodes)for(var r=e.nodes.start,s=e.nodes.end,i=t&&(t.f&fe)===0?t.nodes.start:n;r!==null;){var a=Ht(r);if(i.before(r),r===s)return;r=a}}function Ae(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function li(e,t){var n;n=document.head.appendChild(Ye());try{dn(()=>t(n),Bn|_t)}finally{}}const ai=Symbol("is custom element"),oi=Symbol("is html");function fi(e,t,n,r){var s=ui(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&ci(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ui(e){return e.__attributes??(e.__attributes={[ai]:e.nodeName.includes("-"),[oi]:e.namespaceURI===Pn})}var Nn=new Map;function ci(e){var t=e.getAttribute("is")||e.nodeName,n=Nn.get(t);if(n)return n;Nn.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=qn(s);for(var a in r)r[a].set&&n.push(a);s=sn(s)}return n}function di(e=!1){const t=D,n=t.l.u;if(!n)return;let r=()=>Gs(t.s);if(e){let s=0,i={};const a=fn(()=>{let f=!1;const l=t.s;for(const o in l)l[o]!==i[o]&&(i[o]=l[o],f=!0);return f&&s++,s});r=()=>y(a)}n.b.length&&qs(()=>{Dn(t,r),Gt(n.b)}),en(()=>{const s=br(()=>n.m.map(ss));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&en(()=>{Dn(t,r),Gt(n.a)})}function Dn(e,t){if(e.l.s)for(const n of e.l.s)y(n);t()}var vi=Oe('<a class="inline-flex items-center justify-center rounded-xl border border-cyan-300/20 bg-cyan-400/10 px-4 py-2 text-sm font-semibold text-cyan-100 transition hover:border-cyan-300/40 hover:bg-cyan-400/20"> </a>'),hi=Oe('<a class="inline-flex items-center justify-center rounded-xl border border-violet-300/20 bg-violet-400/10 px-4 py-2 text-sm font-semibold text-violet-100 transition hover:border-violet-300/40 hover:bg-violet-400/20" href="/oauth-authorization-server">OAuth Authorization Server</a>'),pi=Oe('<div class="mt-6 rounded-2xl border border-dashed border-white/10 bg-slate-950/40 px-4 py-10 text-center text-slate-400">Loading status…</div>'),_i=Oe('<div class="mt-6 rounded-2xl border border-rose-400/30 bg-rose-400/10 px-4 py-6 text-sm text-rose-100"><p class="font-semibold">Couldnt load the status snapshot.</p> <p class="mt-1 text-rose-100/80"> </p></div>'),gi=Oe('<div class="mt-6 rounded-2xl border border-dashed border-white/10 bg-slate-950/40 px-4 py-10 text-center text-slate-400">No authenticated access recorded yet.</div>'),mi=Oe('<tr class="hover:bg-white/[0.03]"><td class="px-4 py-3 align-top"><code class="rounded bg-white/5 px-2 py-1 font-mono text-xs text-cyan-100"> </code></td><td class="px-4 py-3 align-top text-slate-200"> </td><td class="px-4 py-3 align-top"><code class="text-slate-100"> </code></td><td class="px-4 py-3 align-top font-semibold text-white"> </td></tr>'),wi=Oe('<div class="mt-6 overflow-hidden rounded-2xl border border-white/10"><div class="overflow-x-auto"><table class="min-w-full divide-y divide-white/10 text-left text-sm text-slate-300"><thead class="bg-white/5 text-xs uppercase tracking-[0.2em] text-slate-500"><tr><th class="px-4 py-3 font-medium">Principal</th><th class="px-4 py-3 font-medium">Last accessed</th><th class="px-4 py-3 font-medium">Last path</th><th class="px-4 py-3 font-medium">Requests</th></tr></thead><tbody class="divide-y divide-white/5 bg-slate-950/30"></tbody></table></div></div>'),xi=Oe('<div class="min-h-screen bg-slate-950 text-slate-100"><main class="mx-auto flex min-h-screen max-w-7xl flex-col px-4 py-6 sm:px-6 lg:px-8"><section class="overflow-hidden rounded-3xl border border-white/10 bg-slate-900 shadow-2xl shadow-slate-950/40"><img src="/images/project.jpg" alt="Avelon Memory Crystal" class="h-64 w-full object-cover object-center sm:h-80"/> <div class="grid gap-8 p-6 sm:p-8 lg:grid-cols-[1.6fr_1fr] lg:p-10"><div class="space-y-6"><div class="space-y-4"><div class="inline-flex items-center gap-2 rounded-full border border-cyan-400/20 bg-cyan-400/10 px-3 py-1 text-sm font-medium text-cyan-200"><span class="h-2 w-2 rounded-full bg-emerald-400"></span> Avalon Memory Crystal Server</div> <div><h1 class="text-3xl font-semibold tracking-tight text-white sm:text-4xl">Avelon Memory Crystal Server (AMCS)</h1> <p class="mt-3 max-w-3xl text-base leading-7 text-slate-300 sm:text-lg"> </p></div></div> <div class="flex flex-wrap gap-3"><!> <!></div> <div class="grid gap-4 sm:grid-cols-3"><div class="rounded-2xl border border-white/10 bg-white/5 p-5"><p class="text-sm uppercase tracking-[0.2em] text-slate-400">Connected users</p> <p class="mt-2 text-3xl font-semibold text-white"> </p></div> <div class="rounded-2xl border border-white/10 bg-white/5 p-5"><p class="text-sm uppercase tracking-[0.2em] text-slate-400">Known principals</p> <p class="mt-2 text-3xl font-semibold text-white"> </p></div> <div class="rounded-2xl border border-white/10 bg-white/5 p-5"><p class="text-sm uppercase tracking-[0.2em] text-slate-400">Version</p> <p class="mt-2 break-all text-2xl font-semibold text-white"> </p></div></div></div> <aside class="space-y-4 rounded-2xl border border-white/10 bg-slate-950/50 p-5"><div><h2 class="text-lg font-semibold text-white">Build details</h2> <p class="mt-1 text-sm text-slate-400">The same status info as the old landing page, just without looking like it escaped from 2004.</p></div> <dl class="space-y-3 text-sm text-slate-300"><div><dt class="text-slate-500">Build date</dt> <dd class="mt-1 font-medium text-white"> </dd></div> <div><dt class="text-slate-500">Commit</dt> <dd class="mt-1 break-all rounded-lg bg-white/5 px-3 py-2 font-mono text-xs text-cyan-100"> </dd></div> <div><dt class="text-slate-500">Connected window</dt> <dd class="mt-1 font-medium text-white"> </dd></div></dl></aside></div></section> <section class="mt-6 rounded-3xl border border-white/10 bg-slate-900/80 p-6 shadow-xl shadow-slate-950/20 sm:p-8"><div class="flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between"><div><h2 class="text-2xl font-semibold text-white">Recent access</h2> <p class="mt-1 text-sm text-slate-400">Authenticated principals AMCS has seen recently.</p></div> <button class="inline-flex items-center justify-center rounded-xl border border-white/10 bg-white/5 px-4 py-2 text-sm font-medium text-slate-200 transition hover:bg-white/10">Refresh</button></div> <!></section></main></div>');function bi(e,t){gs(t,!1);let n=Ot(null),r=Ot(!0),s=Ot("");const i=[{href:"/llm",label:"LLM Instructions"},{href:"/healthz",label:"Health Check"},{href:"/readyz",label:"Readiness Check"}];async function a(){$(r,!0),$(s,"");try{const b=await fetch("/api/status");if(!b.ok)throw new Error(`Status request failed with ${b.status}`);$(n,await b.json())}catch(b){$(s,b instanceof Error?b.message:"Failed to load status")}finally{$(r,!1)}}function f(b){return new Date(b).toLocaleString()}ti(a),di();var l=xi();li("1n46o8q",b=>{zs(()=>{Ns.title="AMCS"})});var o=g(l),u=g(o),_=A(g(u),2),d=g(_),p=g(d),h=A(g(p),2),k=A(g(h),2),v=g(k),x=A(p,2),S=g(x);On(S,1,()=>i,Cn,(b,R)=>{var ie=vi(),xe=g(ie);St(()=>{fi(ie,"href",y(R).href),V(xe,y(R).label)}),ke(b,ie)});var T=A(S,2);{var j=b=>{var R=hi();ke(b,R)};Mn(T,b=>{var R;(R=y(n))!=null&&R.oauth_enabled&&b(j)})}var Q=A(x,2),de=g(Q),q=A(g(de),2),ve=g(q),he=A(de,2),z=A(g(he),2),He=g(z),Be=A(he,2),wt=A(g(Be),2),xt=g(wt),bt=A(d,2),yt=A(g(bt),2),Qe=g(yt),Et=A(g(Qe),2),ee=g(Et),et=A(Qe,2),yr=A(g(et),2),Er=g(yr),kr=A(et,2),Ar=A(g(kr),2),Sr=g(Ar),Tr=A(u,2),_n=g(Tr),Mr=A(g(_n),2),Cr=A(_n,2);{var Rr=b=>{var R=pi();ke(b,R)},Or=b=>{var R=_i(),ie=A(g(R),2),xe=g(ie);St(()=>V(xe,y(s))),ke(b,R)},Nr=b=>{var R=gi();ke(b,R)},Dr=b=>{var R=wi(),ie=g(R),xe=g(ie),kt=A(g(xe));On(kt,5,()=>y(n).entries,Cn,(At,Ne)=>{var gn=mi(),mn=g(gn),Ir=g(mn),Fr=g(Ir),wn=A(mn),Lr=g(wn),xn=A(wn),Pr=g(xn),jr=g(Pr),qr=A(xn),zr=g(qr);St(Hr=>{V(Fr,y(Ne).key_id),V(Lr,Hr),V(jr,y(Ne).last_path),V(zr,y(Ne).request_count)},[()=>f(y(Ne).last_accessed_at)]),ke(At,gn)}),ke(b,R)};Mn(Cr,b=>{y(r)?b(Rr):y(s)?b(Or,1):y(n)&&y(n).entries.length===0?b(Nr,2):y(n)&&b(Dr,3)})}St(()=>{var b,R,ie,xe,kt,At,Ne;V(v,((b=y(n))==null?void 0:b.description)??"AMCS is a memory server that captures, links, and retrieves structured project thoughts for AI assistants using semantic search, summaries, and MCP tools."),V(ve,((R=y(n))==null?void 0:R.connected_count)??"—"),V(He,((ie=y(n))==null?void 0:ie.total_known)??"—"),V(xt,((xe=y(n))==null?void 0:xe.version)??"—"),V(ee,((kt=y(n))==null?void 0:kt.build_date)??"unknown"),V(Er,((At=y(n))==null?void 0:At.commit)??"unknown"),V(Sr,((Ne=y(n))==null?void 0:Ne.connected_window)??"last 10 minutes")}),$s("click",Mr,a),ke(e,l),ms()}new bi({target:document.getElementById("app")});