Files
amcs/internal/app/ui/dist/assets/index-CAayb6ka.js
2026-04-05 10:47:28 +02:00

2 lines
44 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 Ei=Object.defineProperty;var $n=e=>{throw TypeError(e)};var ki=(e,t,n)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fe=(e,t,n)=>ki(e,typeof t!="symbol"?t+"":t,n),hn=(e,t,n)=>t.has(e)||$n("Cannot "+n);var l=(e,t,n)=>(hn(e,t,"read from private field"),n?n.call(e):t.get(e)),b=(e,t,n)=>t.has(e)?$n("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),E=(e,t,n,r)=>(hn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),N=(e,t,n)=>(hn(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const Si="5";var ur;typeof window<"u"&&((ur=window.__svelte??(window.__svelte={})).v??(ur.v=new Set)).add(Si);let Pt=!1,Ai=!1;function Ti(){Pt=!0}Ti();const Mi=1,Ci=2,dr=4,Ni=8,Oi=16,Ri=2,j=Symbol(),hr="http://www.w3.org/1999/xhtml",Di=!1;var vr=Array.isArray,Fi=Array.prototype.indexOf,_t=Array.prototype.includes,fn=Array.from,Ii=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,pr=Object.getOwnPropertyDescriptors,Li=Object.prototype,Pi=Array.prototype,On=Object.getPrototypeOf,Gn=Object.isExtensible;const ji=()=>{};function qi(e){return e()}function _n(e){for(var t=0;t<e.length;t++)e[t]()}function _r(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const P=2,gt=4,jt=8,gr=1<<24,De=16,ve=32,tt=64,gn=128,re=512,I=1024,z=2048,xe=4096,K=8192,ie=16384,lt=32768,Xn=1<<25,mt=65536,mn=1<<17,mr=1<<18,ot=1<<19,wr=1<<20,ye=1<<25,nt=65536,wn=1<<21,un=1<<22,Be=1<<23,Mt=Symbol("$state"),Me=new class extends Error{constructor(){super(...arguments);fe(this,"name","StaleReactionError");fe(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function zi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Hi(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Bi(e,t,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Vi(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ui(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Yi(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Ki(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Wi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $i(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Gi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xi(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Zi(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function br(e){return e===this.v}function Ji(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function yr(e){return!Ji(e,this.v)}let R=null;function wt(e){R=e}function xr(e,t=!1,n){R={p:R,i:!1,c:null,e:null,s:e,x:null,r:k,l:Pt&&!t?{s:null,u:null,$:[]}:null}}function Er(e){var t=R,n=t.e;if(n!==null){t.e=null;for(var r of n)Kr(r)}return t.i=!0,R=t.p,{}}function qt(){return!Pt||R!==null&&R.l===null}let ut=[];function Qi(){var e=ut;ut=[],_n(e)}function Ve(e){if(ut.length===0){var t=ut;queueMicrotask(()=>{t===ut&&Qi()})}ut.push(e)}function kr(e){var t=k;if(t===null)return y.f|=Be,e;if((t.f&lt)===0&&(t.f&gt)===0)throw e;He(e,t)}function He(e,t){for(;t!==null;){if((t.f&gn)!==0){if((t.f&lt)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const es=-7169;function O(e,t){e.f=e.f&es|t}function Rn(e){(e.f&re)!==0||e.deps===null?O(e,I):O(e,xe)}function Sr(e){if(e!==null)for(const t of e)(t.f&P)===0||(t.f&nt)===0||(t.f^=nt,Sr(t.deps))}function Ar(e,t,n){(e.f&z)!==0?t.add(e):(e.f&xe)!==0&&n.add(e),Sr(e.deps),O(e,I)}const Ie=new Set;let x=null,q=null,bn=null,vn=!1,ct=null,Zt=null;var Zn=0;let ts=1;var dt,ht,Ce,_e,Ot,X,Rt,qe,Ne,ge,vt,Ge,F,Jt,Tr,Qt,yn,xn,Mr;const ln=class ln{constructor(){b(this,F);fe(this,"id",ts++);fe(this,"current",new Map);fe(this,"previous",new Map);b(this,dt,new Set);b(this,ht,new Set);b(this,Ce,new Map);b(this,_e,new Map);b(this,Ot,null);b(this,X,[]);b(this,Rt,[]);b(this,qe,new Set);b(this,Ne,new Set);b(this,ge,new Map);fe(this,"is_fork",!1);b(this,vt,!1);b(this,Ge,new Set)}skip_effect(t){l(this,ge).has(t)||l(this,ge).set(t,{d:[],m:[]})}unskip_effect(t){var n=l(this,ge).get(t);if(n){l(this,ge).delete(t);for(var r of n.d)O(r,z),this.schedule(r);for(r of n.m)O(r,xe),this.schedule(r)}}capture(t,n,r=!1){n!==j&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&Be)===0&&(this.current.set(t,[t.v,r]),q==null||q.set(t,t.v))}activate(){x=this}deactivate(){x=null,q=null}flush(){try{vn=!0,x=this,N(this,F,Qt).call(this)}finally{Zn=0,bn=null,ct=null,Zt=null,vn=!1,x=null,q=null,Ue.clear()}}discard(){for(const t of l(this,ht))t(this);l(this,ht).clear(),Ie.delete(this)}register_created_effect(t){l(this,Rt).push(t)}increment(t,n){let r=l(this,Ce).get(n)??0;if(l(this,Ce).set(n,r+1),t){let i=l(this,_e).get(n)??0;l(this,_e).set(n,i+1)}}decrement(t,n,r){let i=l(this,Ce).get(n)??0;if(i===1?l(this,Ce).delete(n):l(this,Ce).set(n,i-1),t){let s=l(this,_e).get(n)??0;s===1?l(this,_e).delete(n):l(this,_e).set(n,s-1)}l(this,vt)||r||(E(this,vt,!0),Ve(()=>{E(this,vt,!1),this.flush()}))}transfer_effects(t,n){for(const r of t)l(this,qe).add(r);for(const r of n)l(this,Ne).add(r);t.clear(),n.clear()}oncommit(t){l(this,dt).add(t)}ondiscard(t){l(this,ht).add(t)}settled(){return(l(this,Ot)??E(this,Ot,_r())).promise}static ensure(){if(x===null){const t=x=new ln;vn||(Ie.add(x),Ve(()=>{x===t&&t.flush()}))}return x}apply(){{q=null;return}}schedule(t){var i;if(bn=t,(i=t.b)!=null&&i.is_pending&&(t.f&(gt|jt|gr))!==0&&(t.f&lt)===0){t.b.defer_effect(t);return}for(var n=t;n.parent!==null;){n=n.parent;var r=n.f;if(ct!==null&&n===k&&(y===null||(y.f&P)===0))return;if((r&(tt|ve))!==0){if((r&I)===0)return;n.f^=I}}l(this,X).push(n)}};dt=new WeakMap,ht=new WeakMap,Ce=new WeakMap,_e=new WeakMap,Ot=new WeakMap,X=new WeakMap,Rt=new WeakMap,qe=new WeakMap,Ne=new WeakMap,ge=new WeakMap,vt=new WeakMap,Ge=new WeakMap,F=new WeakSet,Jt=function(){return this.is_fork||l(this,_e).size>0},Tr=function(){for(const r of l(this,Ge))for(const i of l(r,_e).keys()){for(var t=!1,n=i;n.parent!==null;){if(l(this,ge).has(n)){t=!0;break}n=n.parent}if(!t)return!0}return!1},Qt=function(){var u,o;if(Zn++>1e3&&(Ie.delete(this),ns()),!N(this,F,Jt).call(this)){for(const f of l(this,qe))l(this,Ne).delete(f),O(f,z),this.schedule(f);for(const f of l(this,Ne))O(f,xe),this.schedule(f)}const t=l(this,X);E(this,X,[]),this.apply();var n=ct=[],r=[],i=Zt=[];for(const f of t)try{N(this,F,yn).call(this,f,n,r)}catch(c){throw Or(f),c}if(x=null,i.length>0){var s=ln.ensure();for(const f of i)s.schedule(f)}if(ct=null,Zt=null,N(this,F,Jt).call(this)||N(this,F,Tr).call(this)){N(this,F,xn).call(this,r),N(this,F,xn).call(this,n);for(const[f,c]of l(this,ge))Nr(f,c)}else{l(this,Ce).size===0&&Ie.delete(this),l(this,qe).clear(),l(this,Ne).clear();for(const f of l(this,dt))f(this);l(this,dt).clear(),Jn(r),Jn(n),(u=l(this,Ot))==null||u.resolve()}var a=x;if(l(this,X).length>0){const f=a??(a=this);l(f,X).push(...l(this,X).filter(c=>!l(f,X).includes(c)))}a!==null&&(Ie.add(a),N(o=a,F,Qt).call(o)),Ie.has(this)||N(this,F,Mr).call(this)},yn=function(t,n,r){t.f^=I;for(var i=t.first;i!==null;){var s=i.f,a=(s&(ve|tt))!==0,u=a&&(s&I)!==0,o=u||(s&K)!==0||l(this,ge).has(i);if(!o&&i.fn!==null){a?i.f^=I:(s&gt)!==0?n.push(i):zt(i)&&((s&De)!==0&&l(this,Ne).add(i),yt(i));var f=i.first;if(f!==null){i=f;continue}}for(;i!==null;){var c=i.next;if(c!==null){i=c;break}i=i.parent}}},xn=function(t){for(var n=0;n<t.length;n+=1)Ar(t[n],l(this,qe),l(this,Ne))},Mr=function(){var c,_,h;for(const p of Ie){var t=p.id<this.id,n=[];for(const[d,[w,v]]of this.current){if(p.current.has(d)){var r=p.current.get(d)[0];if(t&&w!==r)p.current.set(d,[w,v]);else continue}n.push(d)}var i=[...p.current.keys()].filter(d=>!this.current.has(d));if(i.length===0)t&&p.discard();else if(n.length>0){p.activate();var s=new Set,a=new Map;for(var u of n)Cr(u,i,s,a);a=new Map;var o=[...p.current.keys()].filter(d=>this.current.has(d)?this.current.get(d)[0]!==d:!0);for(const d of l(this,Rt))(d.f&(ie|K|mn))===0&&Dn(d,o,a)&&((d.f&(un|De))!==0?(O(d,z),p.schedule(d)):l(p,qe).add(d));if(l(p,X).length>0){p.apply();for(var f of l(p,X))N(c=p,F,yn).call(c,f,[],[]);E(p,X,[])}p.deactivate()}}for(const p of Ie)l(p,Ge).has(this)&&(l(p,Ge).delete(this),l(p,Ge).size===0&&!N(_=p,F,Jt).call(_)&&(p.activate(),N(h=p,F,Qt).call(h)))};let rt=ln;function ns(){try{Ki()}catch(e){He(e,bn)}}let ue=null;function Jn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|K))===0&&zt(r)&&(ue=new Set,yt(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&$r(r),(ue==null?void 0:ue.size)>0)){Ue.clear();for(const i of ue){if((i.f&(ie|K))!==0)continue;const s=[i];let a=i.parent;for(;a!==null;)ue.has(a)&&(ue.delete(a),s.push(a)),a=a.parent;for(let u=s.length-1;u>=0;u--){const o=s[u];(o.f&(ie|K))===0&&yt(o)}}ue.clear()}}ue=null}}function Cr(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const i of e.reactions){const s=i.f;(s&P)!==0?Cr(i,t,n,r):(s&(un|De))!==0&&(s&z)===0&&Dn(i,t,r)&&(O(i,z),Fn(i))}}function Dn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const i of e.deps){if(_t.call(t,i))return!0;if((i.f&P)!==0&&Dn(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Fn(e){x.schedule(e)}function Nr(e,t){if(!((e.f&ve)!==0&&(e.f&I)!==0)){(e.f&z)!==0?t.d.push(e):(e.f&xe)!==0&&t.m.push(e),O(e,I);for(var n=e.first;n!==null;)Nr(n,t),n=n.next}}function Or(e){O(e,I);for(var t=e.first;t!==null;)Or(t),t=t.next}function rs(e){let t=0,n=it(0),r;return()=>{jn()&&(S(n),Ss(()=>(t===0&&(r=Bn(()=>e(()=>Ct(n)))),t+=1,()=>{Ve(()=>{t-=1,t===0&&(r==null||r(),r=void 0,Ct(n))})})))}}var is=mt|ot;function ss(e,t,n,r){new ls(e,t,n,r)}var ee,Nn,me,Xe,U,we,Z,ce,Oe,Ze,ze,pt,Dt,Ft,Re,on,L,os,as,fs,En,en,tn,kn;class ls{constructor(t,n,r,i){b(this,L);fe(this,"parent");fe(this,"is_pending",!1);fe(this,"transform_error");b(this,ee);b(this,Nn,null);b(this,me);b(this,Xe);b(this,U);b(this,we,null);b(this,Z,null);b(this,ce,null);b(this,Oe,null);b(this,Ze,0);b(this,ze,0);b(this,pt,!1);b(this,Dt,new Set);b(this,Ft,new Set);b(this,Re,null);b(this,on,rs(()=>(E(this,Re,it(l(this,Ze))),()=>{E(this,Re,null)})));var s;E(this,ee,t),E(this,me,n),E(this,Xe,a=>{var u=k;u.b=this,u.f|=gn,r(a)}),this.parent=k.b,this.transform_error=i??((s=this.parent)==null?void 0:s.transform_error)??(a=>a),E(this,U,dn(()=>{N(this,L,En).call(this)},is))}defer_effect(t){Ar(t,l(this,Dt),l(this,Ft))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(this,me).pending}update_pending_count(t,n){N(this,L,kn).call(this,t,n),E(this,Ze,l(this,Ze)+t),!(!l(this,Re)||l(this,pt))&&(E(this,pt,!0),Ve(()=>{E(this,pt,!1),l(this,Re)&&bt(l(this,Re),l(this,Ze))}))}get_effect_pending(){return l(this,on).call(this),S(l(this,Re))}error(t){var n=l(this,me).onerror;let r=l(this,me).failed;if(!n&&!r)throw t;l(this,we)&&(W(l(this,we)),E(this,we,null)),l(this,Z)&&(W(l(this,Z)),E(this,Z,null)),l(this,ce)&&(W(l(this,ce)),E(this,ce,null));var i=!1,s=!1;const a=()=>{if(i){Zi();return}i=!0,s&&Xi(),l(this,ce)!==null&&Qe(l(this,ce),()=>{E(this,ce,null)}),N(this,L,tn).call(this,()=>{N(this,L,En).call(this)})},u=o=>{try{s=!0,n==null||n(o,a),s=!1}catch(f){He(f,l(this,U)&&l(this,U).parent)}r&&E(this,ce,N(this,L,tn).call(this,()=>{try{return te(()=>{var f=k;f.b=this,f.f|=gn,r(l(this,ee),()=>o,()=>a)})}catch(f){return He(f,l(this,U).parent),null}}))};Ve(()=>{var o;try{o=this.transform_error(t)}catch(f){He(f,l(this,U)&&l(this,U).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(u,f=>He(f,l(this,U)&&l(this,U).parent)):u(o)})}}ee=new WeakMap,Nn=new WeakMap,me=new WeakMap,Xe=new WeakMap,U=new WeakMap,we=new WeakMap,Z=new WeakMap,ce=new WeakMap,Oe=new WeakMap,Ze=new WeakMap,ze=new WeakMap,pt=new WeakMap,Dt=new WeakMap,Ft=new WeakMap,Re=new WeakMap,on=new WeakMap,L=new WeakSet,os=function(){try{E(this,we,te(()=>l(this,Xe).call(this,l(this,ee))))}catch(t){this.error(t)}},as=function(t){const n=l(this,me).failed;n&&E(this,ce,te(()=>{n(l(this,ee),()=>t,()=>()=>{})}))},fs=function(){const t=l(this,me).pending;t&&(this.is_pending=!0,E(this,Z,te(()=>t(l(this,ee)))),Ve(()=>{var n=E(this,Oe,document.createDocumentFragment()),r=Ye();n.append(r),E(this,we,N(this,L,tn).call(this,()=>te(()=>l(this,Xe).call(this,r)))),l(this,ze)===0&&(l(this,ee).before(n),E(this,Oe,null),Qe(l(this,Z),()=>{E(this,Z,null)}),N(this,L,en).call(this,x))}))},En=function(){try{if(this.is_pending=this.has_pending_snippet(),E(this,ze,0),E(this,Ze,0),E(this,we,te(()=>{l(this,Xe).call(this,l(this,ee))})),l(this,ze)>0){var t=E(this,Oe,document.createDocumentFragment());Hn(l(this,we),t);const n=l(this,me).pending;E(this,Z,te(()=>n(l(this,ee))))}else N(this,L,en).call(this,x)}catch(n){this.error(n)}},en=function(t){this.is_pending=!1,t.transfer_effects(l(this,Dt),l(this,Ft))},tn=function(t){var n=k,r=y,i=R;Ee(l(this,U)),le(l(this,U)),wt(l(this,U).ctx);try{return rt.ensure(),t()}catch(s){return kr(s),null}finally{Ee(n),le(r),wt(i)}},kn=function(t,n){var r;if(!this.has_pending_snippet()){this.parent&&N(r=this.parent,L,kn).call(r,t,n);return}E(this,ze,l(this,ze)+t),l(this,ze)===0&&(N(this,L,en).call(this,n),l(this,Z)&&Qe(l(this,Z),()=>{E(this,Z,null)}),l(this,Oe)&&(l(this,ee).before(l(this,Oe)),E(this,Oe,null)))};function us(e,t,n,r){const i=qt()?In:Dr;var s=e.filter(h=>!h.settled);if(n.length===0&&s.length===0){r(t.map(i));return}var a=k,u=cs(),o=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(h=>h.promise)):null;function f(h){u();try{r(h)}catch(p){(a.f&ie)===0&&He(p,a)}sn()}if(n.length===0){o.then(()=>f(t.map(i)));return}var c=Rr();function _(){Promise.all(n.map(h=>ds(h))).then(h=>f([...t.map(i),...h])).catch(h=>He(h,a)).finally(()=>c())}o?o.then(()=>{u(),_(),sn()}):_()}function cs(){var e=k,t=y,n=R,r=x;return function(s=!0){Ee(e),le(t),wt(n),s&&(e.f&ie)===0&&(r==null||r.activate(),r==null||r.apply())}}function sn(e=!0){Ee(null),le(null),wt(null),e&&(x==null||x.deactivate())}function Rr(){var e=k,t=e.b,n=x,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function In(e){var t=P|z,n=y!==null&&(y.f&P)!==0?y:null;return k!==null&&(k.f|=ot),{ctx:R,deps:null,effects:null,equals:br,f:t,fn:e,reactions:null,rv:0,v:j,wv:0,parent:n??k,ac:null}}function ds(e,t,n){let r=k;r===null&&Hi();var i=void 0,s=it(j),a=!y,u=new Map;return ks(()=>{var p;var o=k,f=_r();i=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(sn)}catch(d){f.reject(d),sn()}var c=x;if(a){if((o.f&lt)!==0)var _=Rr();if(r.b.is_rendered())(p=u.get(c))==null||p.reject(Me),u.delete(c);else{for(const d of u.values())d.reject(Me);u.clear()}u.set(c,f)}const h=(d,w=void 0)=>{if(_){var v=w===Me;_(v)}if(!(w===Me||(o.f&ie)!==0)){if(c.activate(),w)s.f|=Be,bt(s,w);else{(s.f&Be)!==0&&(s.f^=Be),bt(s,d);for(const[g,C]of u){if(u.delete(g),g===c)break;C.reject(Me)}}c.deactivate()}};f.promise.then(h,d=>h(null,d||"unknown"))}),Yr(()=>{for(const o of u.values())o.reject(Me)}),new Promise(o=>{function f(c){function _(){c===i?o(s):f(i)}c.then(_,_)}f(i)})}function Dr(e){const t=In(e);return t.equals=yr,t}function hs(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)W(t[n])}}function vs(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return(t.f&ie)===0?t:null;t=t.parent}return null}function Ln(e){var t,n=k;Ee(vs(e));try{e.f&=~nt,hs(e),t=ei(e)}finally{Ee(n)}return t}function Fr(e){var t=e.v,n=Ln(e);if(!e.equals(n)&&(e.wv=Jr(),(!(x!=null&&x.is_fork)||e.deps===null)&&(e.v=n,x==null||x.capture(e,t,!0),e.deps===null))){O(e,I);return}st||(q!==null?(jn()||x!=null&&x.is_fork)&&q.set(e,n):Rn(e))}function ps(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(Me),r.teardown=ji,r.ac=null,Nt(r,0),qn(r))}function Ir(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&yt(t)}let Sn=new Set;const Ue=new Map;let Lr=!1;function it(e,t){var n={f:0,v:e,reactions:null,equals:br,rv:0,wv:0};return n}function Le(e,t){const n=it(e);return Ms(n),n}function nn(e,t=!1,n=!0){var i;const r=it(e);return t||(r.equals=yr),Pt&&n&&R!==null&&R.l!==null&&((i=R.l).s??(i.s=[])).push(r),r}function ne(e,t,n=!1){y!==null&&(!he||(y.f&mn)!==0)&&qt()&&(y.f&(P|De|un|mn))!==0&&(se===null||!_t.call(se,e))&&Gi();let r=n?St(t):t;return bt(e,r,Zt)}function bt(e,t,n=null){if(!e.equals(t)){var r=e.v;st?Ue.set(e,t):Ue.set(e,r),e.v=t;var i=rt.ensure();if(i.capture(e,r),(e.f&P)!==0){const s=e;(e.f&z)!==0&&Ln(s),q===null&&Rn(s)}e.wv=Jr(),Pr(e,z,n),qt()&&k!==null&&(k.f&I)!==0&&(k.f&(ve|tt))===0&&(Q===null?Cs([e]):Q.push(e)),!i.is_fork&&Sn.size>0&&!Lr&&_s()}return t}function _s(){Lr=!1;for(const e of Sn)(e.f&I)!==0&&O(e,xe),zt(e)&&yt(e);Sn.clear()}function Ct(e){ne(e,e.v+1)}function Pr(e,t,n){var r=e.reactions;if(r!==null)for(var i=qt(),s=r.length,a=0;a<s;a++){var u=r[a],o=u.f;if(!(!i&&u===k)){var f=(o&z)===0;if(f&&O(u,t),(o&P)!==0){var c=u;q==null||q.delete(c),(o&nt)===0&&(o&re&&(u.f|=nt),Pr(c,xe,n))}else if(f){var _=u;(o&De)!==0&&ue!==null&&ue.add(_),n!==null?n.push(_):Fn(_)}}}}function St(e){if(typeof e!="object"||e===null||Mt in e)return e;const t=On(e);if(t!==Li&&t!==Pi)return e;var n=new Map,r=vr(e),i=Le(0),s=et,a=u=>{if(et===s)return u();var o=y,f=et;le(null),tr(s);var c=u();return le(o),tr(f),c};return r&&n.set("length",Le(e.length)),new Proxy(e,{defineProperty(u,o,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&Wi();var c=n.get(o);return c===void 0?a(()=>{var _=Le(f.value);return n.set(o,_),_}):ne(c,f.value,!0),!0},deleteProperty(u,o){var f=n.get(o);if(f===void 0){if(o in u){const c=a(()=>Le(j));n.set(o,c),Ct(i)}}else ne(f,j),Ct(i);return!0},get(u,o,f){var p;if(o===Mt)return e;var c=n.get(o),_=o in u;if(c===void 0&&(!_||(p=Tt(u,o))!=null&&p.writable)&&(c=a(()=>{var d=St(_?u[o]:j),w=Le(d);return w}),n.set(o,c)),c!==void 0){var h=S(c);return h===j?void 0:h}return Reflect.get(u,o,f)},getOwnPropertyDescriptor(u,o){var f=Reflect.getOwnPropertyDescriptor(u,o);if(f&&"value"in f){var c=n.get(o);c&&(f.value=S(c))}else if(f===void 0){var _=n.get(o),h=_==null?void 0:_.v;if(_!==void 0&&h!==j)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(u,o){var h;if(o===Mt)return!0;var f=n.get(o),c=f!==void 0&&f.v!==j||Reflect.has(u,o);if(f!==void 0||k!==null&&(!c||(h=Tt(u,o))!=null&&h.writable)){f===void 0&&(f=a(()=>{var p=c?St(u[o]):j,d=Le(p);return d}),n.set(o,f));var _=S(f);if(_===j)return!1}return c},set(u,o,f,c){var T;var _=n.get(o),h=o in u;if(r&&o==="length")for(var p=f;p<_.v;p+=1){var d=n.get(p+"");d!==void 0?ne(d,j):p in u&&(d=a(()=>Le(j)),n.set(p+"",d))}if(_===void 0)(!h||(T=Tt(u,o))!=null&&T.writable)&&(_=a(()=>Le(void 0)),ne(_,St(f)),n.set(o,_));else{h=_.v!==j;var w=a(()=>St(f));ne(_,w)}var v=Reflect.getOwnPropertyDescriptor(u,o);if(v!=null&&v.set&&v.set.call(c,f),!h){if(r&&typeof o=="string"){var g=n.get("length"),C=Number(o);Number.isInteger(C)&&C>=g.v&&ne(g,C+1)}Ct(i)}return!0},ownKeys(u){S(i);var o=Reflect.ownKeys(u).filter(_=>{var h=n.get(_);return h===void 0||h.v!==j});for(var[f,c]of n)c.v!==j&&!(f in u)&&o.push(f);return o},setPrototypeOf(){$i()}})}var Qn,jr,qr,zr,Hr;function gs(){if(Qn===void 0){Qn=window,jr=document,qr=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;zr=Tt(t,"firstChild").get,Hr=Tt(t,"nextSibling").get,Gn(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Gn(n)&&(n.__t=void 0)}}function Ye(e=""){return document.createTextNode(e)}function Br(e){return zr.call(e)}function cn(e){return Hr.call(e)}function m(e,t){return Br(e)}function M(e,t=1,n=!1){let r=e;for(;t--;)r=cn(r);return r}function ms(e){e.textContent=""}function Vr(){return!1}function ws(e,t,n){return document.createElementNS(hr,e,void 0)}function Pn(e){var t=y,n=k;le(null),Ee(null);try{return e()}finally{le(t),Ee(n)}}function Ur(e){k===null&&(y===null&&Yi(),Ui()),st&&Vi()}function bs(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function ke(e,t){var n=k;n!==null&&(n.f&K)!==0&&(e|=K);var r={ctx:R,deps:null,nodes:null,f:e|z|re,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};x==null||x.register_created_effect(r);var i=r;if((e&gt)!==0)ct!==null?ct.push(r):rt.ensure().schedule(r);else if(t!==null){try{yt(r)}catch(a){throw W(r),a}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ot)===0&&(i=i.first,(e&De)!==0&&(e&mt)!==0&&i!==null&&(i.f|=mt))}if(i!==null&&(i.parent=n,n!==null&&bs(i,n),y!==null&&(y.f&P)!==0&&(e&tt)===0)){var s=y;(s.effects??(s.effects=[])).push(i)}return r}function jn(){return y!==null&&!he}function Yr(e){const t=ke(jt,null);return O(t,I),t.teardown=e,t}function An(e){Ur();var t=k.f,n=!y&&(t&ve)!==0&&(t&lt)===0;if(n){var r=R;(r.e??(r.e=[])).push(e)}else return Kr(e)}function Kr(e){return ke(gt|wr,e)}function ys(e){return Ur(),ke(jt|wr,e)}function xs(e){rt.ensure();const t=ke(tt|ot,e);return(n={})=>new Promise(r=>{n.outro?Qe(t,()=>{W(t),r(void 0)}):(W(t),r(void 0))})}function Es(e){return ke(gt,e)}function ks(e){return ke(un|ot,e)}function Ss(e,t=0){return ke(jt|t,e)}function $t(e,t=[],n=[],r=[]){us(r,t,n,i=>{ke(jt,()=>e(...i.map(S)))})}function dn(e,t=0){var n=ke(De|t,e);return n}function te(e){return ke(ve|ot,e)}function Wr(e){var t=e.teardown;if(t!==null){const n=st,r=y;er(!0),le(null);try{t.call(null)}finally{er(n),le(r)}}}function qn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Pn(()=>{i.abort(Me)});var r=n.next;(n.f&tt)!==0?n.parent=null:W(n,t),n=r}}function As(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ve)===0&&W(t),t=n}}function W(e,t=!0){var n=!1;(t||(e.f&mr)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ts(e.nodes.start,e.nodes.end),n=!0),O(e,Xn),qn(e,t&&!n),Nt(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Wr(e),e.f^=Xn,e.f|=ie;var i=e.parent;i!==null&&i.first!==null&&$r(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Ts(e,t){for(;e!==null;){var n=e===t?null:cn(e);e.remove(),e=n}}function $r(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 Qe(e,t,n=!0){var r=[];Gr(e,r,!0);var i=()=>{n&&W(e),t&&t()},s=r.length;if(s>0){var a=()=>--s||i();for(var u of r)u.out(a)}else i()}function Gr(e,t,n){if((e.f&K)===0){e.f^=K;var r=e.nodes&&e.nodes.t;if(r!==null)for(const u of r)(u.is_global||n)&&t.push(u);for(var i=e.first;i!==null;){var s=i.next,a=(i.f&mt)!==0||(i.f&ve)!==0&&(e.f&De)!==0;Gr(i,t,a?n:!1),i=s}}}function zn(e){Xr(e,!0)}function Xr(e,t){if((e.f&K)!==0){e.f^=K,(e.f&I)===0&&(O(e,z),rt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&mt)!==0||(n.f&ve)!==0;Xr(n,i?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const a of s)(a.is_global||t)&&a.in()}}function Hn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:cn(n);t.append(n),n=i}}let rn=!1,st=!1;function er(e){st=e}let y=null,he=!1;function le(e){y=e}let k=null;function Ee(e){k=e}let se=null;function Ms(e){y!==null&&(se===null?se=[e]:se.push(e))}let Y=null,G=0,Q=null;function Cs(e){Q=e}let Zr=1,$e=0,et=$e;function tr(e){et=e}function Jr(){return++Zr}function zt(e){var t=e.f;if((t&z)!==0)return!0;if(t&P&&(e.f&=~nt),(t&xe)!==0){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(zt(s)&&Fr(s),s.wv>e.wv)return!0}(t&re)!==0&&q===null&&O(e,I)}return!1}function Qr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(se!==null&&_t.call(se,e)))for(var i=0;i<r.length;i++){var s=r[i];(s.f&P)!==0?Qr(s,t,!1):t===s&&(n?O(s,z):(s.f&I)!==0&&O(s,xe),Fn(s))}}function ei(e){var w;var t=Y,n=G,r=Q,i=y,s=se,a=R,u=he,o=et,f=e.f;Y=null,G=0,Q=null,y=(f&(ve|tt))===0?e:null,se=null,wt(e.ctx),he=!1,et=++$e,e.ac!==null&&(Pn(()=>{e.ac.abort(Me)}),e.ac=null);try{e.f|=wn;var c=e.fn,_=c();e.f|=lt;var h=e.deps,p=x==null?void 0:x.is_fork;if(Y!==null){var d;if(p||Nt(e,G),h!==null&&G>0)for(h.length=G+Y.length,d=0;d<Y.length;d++)h[G+d]=Y[d];else e.deps=h=Y;if(jn()&&(e.f&re)!==0)for(d=G;d<h.length;d++)((w=h[d]).reactions??(w.reactions=[])).push(e)}else!p&&h!==null&&G<h.length&&(Nt(e,G),h.length=G);if(qt()&&Q!==null&&!he&&h!==null&&(e.f&(P|xe|z))===0)for(d=0;d<Q.length;d++)Qr(Q[d],e);if(i!==null&&i!==e){if($e++,i.deps!==null)for(let v=0;v<n;v+=1)i.deps[v].rv=$e;if(t!==null)for(const v of t)v.rv=$e;Q!==null&&(r===null?r=Q:r.push(...Q))}return(e.f&Be)!==0&&(e.f^=Be),_}catch(v){return kr(v)}finally{e.f^=wn,Y=t,G=n,Q=r,y=i,se=s,wt(a),he=u,et=o}}function Ns(e,t){let n=t.reactions;if(n!==null){var r=Fi.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&(t.f&P)!==0&&(Y===null||!_t.call(Y,t))){var s=t;(s.f&re)!==0&&(s.f^=re,s.f&=~nt),Rn(s),ps(s),Nt(s,0)}}function Nt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Ns(e,n[r])}function yt(e){var t=e.f;if((t&ie)===0){O(e,I);var n=k,r=rn;k=e,rn=!0;try{(t&(De|gr))!==0?As(e):qn(e),Wr(e);var i=ei(e);e.teardown=typeof i=="function"?i:null,e.wv=Zr;var s;Di&&Ai&&(e.f&z)!==0&&e.deps}finally{rn=r,k=n}}}function S(e){var t=e.f,n=(t&P)!==0;if(y!==null&&!he){var r=k!==null&&(k.f&ie)!==0;if(!r&&(se===null||!_t.call(se,e))){var i=y.deps;if((y.f&wn)!==0)e.rv<$e&&(e.rv=$e,Y===null&&i!==null&&i[G]===e?G++:Y===null?Y=[e]:Y.push(e));else{(y.deps??(y.deps=[])).push(e);var s=e.reactions;s===null?e.reactions=[y]:_t.call(s,y)||s.push(y)}}}if(st&&Ue.has(e))return Ue.get(e);if(n){var a=e;if(st){var u=a.v;return((a.f&I)===0&&a.reactions!==null||ni(a))&&(u=Ln(a)),Ue.set(a,u),u}var o=(a.f&re)===0&&!he&&y!==null&&(rn||(y.f&re)!==0),f=(a.f&lt)===0;zt(a)&&(o&&(a.f|=re),Fr(a)),o&&!f&&(Ir(a),ti(a))}if(q!=null&&q.has(e))return q.get(e);if((e.f&Be)!==0)throw e.v;return e.v}function ti(e){if(e.f|=re,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&P)!==0&&(t.f&re)===0&&(Ir(t),ti(t))}function ni(e){if(e.v===j)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Ue.has(t)||(t.f&P)!==0&&ni(t))return!0;return!1}function Bn(e){var t=he;try{return he=!0,e()}finally{he=t}}function Os(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Mt in e)Tn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Mt 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=On(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=pr(n);for(let i in r){const s=r[i].get;if(s)try{s.call(e)}catch{}}}}}const Gt=Symbol("events"),Rs=new Set,nr=new Set;function Ds(e,t,n,r={}){function i(s){if(r.capture||Mn.call(t,s),!s.cancelBubble)return Pn(()=>n==null?void 0:n.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ve(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Fs(e,t,n,r,i){var s={capture:r,passive:i},a=Ds(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yr(()=>{t.removeEventListener(e,a,s)})}let rr=null;function Mn(e){var v,g;var t=this,n=t.ownerDocument,r=e.type,i=((v=e.composedPath)==null?void 0:v.call(e))||[],s=i[0]||e.target;rr=e;var a=0,u=rr===e&&e[Gt];if(u){var o=i.indexOf(u);if(o!==-1&&(t===document||t===window)){e[Gt]=t;return}var f=i.indexOf(t);if(f===-1)return;o<=f&&(a=o)}if(s=i[a]||e.target,s!==t){Ii(e,"currentTarget",{configurable:!0,get(){return s||n}});var c=y,_=k;le(null),Ee(null);try{for(var h,p=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var w=(g=s[Gt])==null?void 0:g[r];w!=null&&(!s.disabled||e.target===s)&&w.call(s,e)}catch(C){h?p.push(C):h=C}if(e.cancelBubble||d===t||d===null)break;s=d}if(h){for(let C of p)queueMicrotask(()=>{throw C});throw h}}finally{e[Gt]=t,delete e.currentTarget,le(c),Ee(_)}}}var cr;const pn=((cr=globalThis==null?void 0:globalThis.window)==null?void 0:cr.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Is(e){return(pn==null?void 0:pn.createHTML(e))??e}function Ls(e){var t=ws("template");return t.innerHTML=Is(e.replaceAll("<!>","<!---->")),t.content}function Ps(e,t){var n=k;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function Ke(e,t){var n=(t&Ri)!==0,r,i=!e.startsWith("<!>");return()=>{r===void 0&&(r=Ls(i?e:"<!>"+e),r=Br(r));var s=n||qr?document.importNode(r,!0):r.cloneNode(!0);return Ps(s,s),s}}function Pe(e,t){e!==null&&e.before(t)}const js=["touchstart","touchmove"];function qs(e){return js.includes(e)}function $(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=`${n}`)}function zs(e,t){return Hs(e,t)}const Xt=new Map;function Hs(e,{target:t,anchor:n,props:r={},events:i,context:s,intro:a=!0,transformError:u}){gs();var o=void 0,f=xs(()=>{var c=n??t.appendChild(Ye());ss(c,{pending:()=>{}},p=>{xr({});var d=R;s&&(d.c=s),i&&(r.$$events=i),o=e(p,r)||{},Er()},u);var _=new Set,h=p=>{for(var d=0;d<p.length;d++){var w=p[d];if(!_.has(w)){_.add(w);var v=qs(w);for(const T of[t,document]){var g=Xt.get(T);g===void 0&&(g=new Map,Xt.set(T,g));var C=g.get(w);C===void 0?(T.addEventListener(w,Mn,{passive:v}),g.set(w,1)):g.set(w,C+1)}}}};return h(fn(Rs)),nr.add(h),()=>{var v;for(var p of _)for(const g of[t,document]){var d=Xt.get(g),w=d.get(p);--w==0?(g.removeEventListener(p,Mn),d.delete(p),d.size===0&&Xt.delete(g)):d.set(p,w)}nr.delete(h),c!==n&&((v=c.parentNode)==null||v.removeChild(c))}});return Bs.set(o,f),o}let Bs=new WeakMap;var de,be,J,Je,It,Lt,an;class Vs{constructor(t,n=!0){fe(this,"anchor");b(this,de,new Map);b(this,be,new Map);b(this,J,new Map);b(this,Je,new Set);b(this,It,!0);b(this,Lt,t=>{if(l(this,de).has(t)){var n=l(this,de).get(t),r=l(this,be).get(n);if(r)zn(r),l(this,Je).delete(n);else{var i=l(this,J).get(n);i&&(l(this,be).set(n,i.effect),l(this,J).delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[s,a]of l(this,de)){if(l(this,de).delete(s),s===t)break;const u=l(this,J).get(a);u&&(W(u.effect),l(this,J).delete(a))}for(const[s,a]of l(this,be)){if(s===n||l(this,Je).has(s))continue;const u=()=>{if(Array.from(l(this,de).values()).includes(s)){var f=document.createDocumentFragment();Hn(a,f),f.append(Ye()),l(this,J).set(s,{effect:a,fragment:f})}else W(a);l(this,Je).delete(s),l(this,be).delete(s)};l(this,It)||!r?(l(this,Je).add(s),Qe(a,u,!1)):u()}}});b(this,an,t=>{l(this,de).delete(t);const n=Array.from(l(this,de).values());for(const[r,i]of l(this,J))n.includes(r)||(W(i.effect),l(this,J).delete(r))});this.anchor=t,E(this,It,n)}ensure(t,n){var r=x,i=Vr();if(n&&!l(this,be).has(t)&&!l(this,J).has(t))if(i){var s=document.createDocumentFragment(),a=Ye();s.append(a),l(this,J).set(t,{effect:te(()=>n(a)),fragment:s})}else l(this,be).set(t,te(()=>n(this.anchor)));if(l(this,de).set(r,t),i){for(const[u,o]of l(this,be))u===t?r.unskip_effect(o):r.skip_effect(o);for(const[u,o]of l(this,J))u===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(l(this,Lt)),r.ondiscard(l(this,an))}else l(this,Lt).call(this,r)}}de=new WeakMap,be=new WeakMap,J=new WeakMap,Je=new WeakMap,It=new WeakMap,Lt=new WeakMap,an=new WeakMap;function Us(e){R===null&&zi(),Pt&&R.l!==null?Ys(R).m.push(e):An(()=>{const t=Bn(e);if(typeof t=="function")return t})}function Ys(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}function ir(e,t,n=!1){var r=new Vs(e),i=n?mt:0;function s(a,u){r.ensure(a,u)}dn(()=>{var a=!1;t((u,o=0)=>{a=!0,s(o,u)}),a||s(-1,null)},i)}function sr(e,t){return t}function Ks(e,t,n){for(var r=[],i=t.length,s,a=t.length,u=0;u<i;u++){let _=t[u];Qe(_,()=>{if(s){if(s.pending.delete(_),s.done.add(_),s.pending.size===0){var h=e.outrogroups;Cn(e,fn(s.done)),h.delete(s),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var o=r.length===0&&n!==null;if(o){var f=n,c=f.parentNode;ms(c),c.append(f),e.items.clear()}Cn(e,t,!o)}else s={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function Cn(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(const a of e.pending.values())for(const u of a)r.add(e.items.get(u).e)}for(var i=0;i<t.length;i++){var s=t[i];if(r!=null&&r.has(s)){s.f|=ye;const a=document.createDocumentFragment();Hn(s,a)}else W(t[i],n)}}var lr;function or(e,t,n,r,i,s=null){var a=e,u=new Map,o=(t&dr)!==0;if(o){var f=e;a=f.appendChild(Ye())}var c=null,_=Dr(()=>{var T=n();return vr(T)?T:T==null?[]:fn(T)}),h,p=new Map,d=!0;function w(T){(C.effect.f&ie)===0&&(C.pending.delete(T),C.fallback=c,Ws(C,h,a,t,r),c!==null&&(h.length===0?(c.f&ye)===0?zn(c):(c.f^=ye,At(c,null,a)):Qe(c,()=>{c=null})))}function v(T){C.pending.delete(T)}var g=dn(()=>{h=S(_);for(var T=h.length,H=new Set,oe=x,Se=Vr(),B=0;B<T;B+=1){var Ae=h[B],Te=r(Ae,B),V=d?null:u.get(Te);V?(V.v&&bt(V.v,Ae),V.i&&bt(V.i,B),Se&&oe.unskip_effect(V.e)):(V=$s(u,d?a:lr??(lr=Ye()),Ae,Te,B,i,t,n),d||(V.e.f|=ye),u.set(Te,V)),H.add(Te)}if(T===0&&s&&!c&&(d?c=te(()=>s(a)):(c=te(()=>s(lr??(lr=Ye()))),c.f|=ye)),T>H.size&&Bi(),!d)if(p.set(oe,H),Se){for(const[at,ft]of u)H.has(at)||oe.skip_effect(ft.e);oe.oncommit(w),oe.ondiscard(v)}else w(oe);S(_)}),C={effect:g,items:u,pending:p,outrogroups:null,fallback:c};d=!1}function kt(e){for(;e!==null&&(e.f&ve)===0;)e=e.next;return e}function Ws(e,t,n,r,i){var V,at,ft,Ht,Bt,Vt,Ut,xt,Yt;var s=(r&Ni)!==0,a=t.length,u=e.items,o=kt(e.effect.first),f,c=null,_,h=[],p=[],d,w,v,g;if(s)for(g=0;g<a;g+=1)d=t[g],w=i(d,g),v=u.get(w).e,(v.f&ye)===0&&((at=(V=v.nodes)==null?void 0:V.a)==null||at.measure(),(_??(_=new Set)).add(v));for(g=0;g<a;g+=1){if(d=t[g],w=i(d,g),v=u.get(w).e,e.outrogroups!==null)for(const ae of e.outrogroups)ae.pending.delete(v),ae.done.delete(v);if((v.f&K)!==0&&(zn(v),s&&((Ht=(ft=v.nodes)==null?void 0:ft.a)==null||Ht.unfix(),(_??(_=new Set)).delete(v))),(v.f&ye)!==0)if(v.f^=ye,v===o)At(v,null,n);else{var C=c?c.next:o;v===e.effect.last&&(e.effect.last=v.prev),v.prev&&(v.prev.next=v.next),v.next&&(v.next.prev=v.prev),je(e,c,v),je(e,v,C),At(v,C,n),c=v,h=[],p=[],o=kt(c.next);continue}if(v!==o){if(f!==void 0&&f.has(v)){if(h.length<p.length){var T=p[0],H;c=T.prev;var oe=h[0],Se=h[h.length-1];for(H=0;H<h.length;H+=1)At(h[H],T,n);for(H=0;H<p.length;H+=1)f.delete(p[H]);je(e,oe.prev,Se.next),je(e,c,oe),je(e,Se,T),o=T,c=Se,g-=1,h=[],p=[]}else f.delete(v),At(v,o,n),je(e,v.prev,v.next),je(e,v,c===null?e.effect.first:c.next),je(e,c,v),c=v;continue}for(h=[],p=[];o!==null&&o!==v;)(f??(f=new Set)).add(o),p.push(o),o=kt(o.next);if(o===null)continue}(v.f&ye)===0&&h.push(v),c=v,o=kt(v.next)}if(e.outrogroups!==null){for(const ae of e.outrogroups)ae.pending.size===0&&(Cn(e,fn(ae.done)),(Bt=e.outrogroups)==null||Bt.delete(ae));e.outrogroups.size===0&&(e.outrogroups=null)}if(o!==null||f!==void 0){var B=[];if(f!==void 0)for(v of f)(v.f&K)===0&&B.push(v);for(;o!==null;)(o.f&K)===0&&o!==e.fallback&&B.push(o),o=kt(o.next);var Ae=B.length;if(Ae>0){var Te=(r&dr)!==0&&a===0?n:null;if(s){for(g=0;g<Ae;g+=1)(Ut=(Vt=B[g].nodes)==null?void 0:Vt.a)==null||Ut.measure();for(g=0;g<Ae;g+=1)(Yt=(xt=B[g].nodes)==null?void 0:xt.a)==null||Yt.fix()}Ks(e,B,Te)}}s&&Ve(()=>{var ae,Et;if(_!==void 0)for(v of _)(Et=(ae=v.nodes)==null?void 0:ae.a)==null||Et.apply()})}function $s(e,t,n,r,i,s,a,u){var o=(a&Mi)!==0?(a&Oi)===0?nn(n,!1,!1):it(n):null,f=(a&Ci)!==0?it(i):null;return{v:o,i:f,e:te(()=>(s(t,o??n,f??i,u),()=>{e.delete(r)}))}}function At(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,s=t&&(t.f&ye)===0?t.nodes.start:n;r!==null;){var a=cn(r);if(s.before(r),r===i)return;r=a}}function je(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Gs(e,t){var n;n=document.head.appendChild(Ye());try{dn(()=>t(n),mr|ot)}finally{}}const Xs=Symbol("is custom element"),Zs=Symbol("is html");function Js(e,t,n,r){var i=Qs(e);i[t]!==(i[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&el(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Qs(e){return e.__attributes??(e.__attributes={[Xs]:e.nodeName.includes("-"),[Zs]:e.namespaceURI===hr})}var ar=new Map;function el(e){var t=e.getAttribute("is")||e.nodeName,n=ar.get(t);if(n)return n;ar.set(t,n=[]);for(var r,i=e,s=Element.prototype;s!==i;){r=pr(i);for(var a in r)r[a].set&&n.push(a);i=On(i)}return n}function tl(e=!1){const t=R,n=t.l.u;if(!n)return;let r=()=>Os(t.s);if(e){let i=0,s={};const a=In(()=>{let u=!1;const o=t.s;for(const f in o)o[f]!==s[f]&&(s[f]=o[f],u=!0);return u&&i++,i});r=()=>S(a)}n.b.length&&ys(()=>{fr(t,r),_n(n.b)}),An(()=>{const i=Bn(()=>n.m.map(qi));return()=>{for(const s of i)typeof s=="function"&&s()}}),n.a.length&&An(()=>{fr(t,r),_n(n.a)})}function fr(e,t){if(e.l.s)for(const n of e.l.s)S(n);t()}var nl=Ke('<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>'),rl=Ke('<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>'),il=Ke('<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>'),sl=Ke('<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>'),ll=Ke('<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>'),ol=Ke('<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>'),al=Ke('<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>'),fl=Ke('<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 ul(e,t){xr(t,!1);let n=nn(null),r=nn(!0),i=nn("");const s=[{href:"/llm",label:"LLM Instructions"},{href:"/healthz",label:"Health Check"},{href:"/readyz",label:"Readiness Check"}];async function a(){ne(r,!0),ne(i,"");try{const A=await fetch("/api/status");if(!A.ok)throw new Error(`Status request failed with ${A.status}`);ne(n,await A.json())}catch(A){ne(i,A instanceof Error?A.message:"Failed to load status")}finally{ne(r,!1)}}function u(A){return new Date(A).toLocaleString()}Us(a),tl();var o=fl();Gs("1n46o8q",A=>{Es(()=>{jr.title="AMCS"})});var f=m(o),c=m(f),_=M(m(c),2),h=m(_),p=m(h),d=M(m(p),2),w=M(m(d),2),v=m(w),g=M(p,2),C=m(g);or(C,1,()=>s,sr,(A,D)=>{var pe=nl(),Fe=m(pe);$t(()=>{Js(pe,"href",S(D).href),$(Fe,S(D).label)}),Pe(A,pe)});var T=M(C,2);{var H=A=>{var D=rl();Pe(A,D)};ir(T,A=>{var D;(D=S(n))!=null&&D.oauth_enabled&&A(H)})}var oe=M(g,2),Se=m(oe),B=M(m(Se),2),Ae=m(B),Te=M(Se,2),V=M(m(Te),2),at=m(V),ft=M(Te,2),Ht=M(m(ft),2),Bt=m(Ht),Vt=M(h,2),Ut=M(m(Vt),2),xt=m(Ut),Yt=M(m(xt),2),ae=m(Yt),Et=M(xt,2),ri=M(m(Et),2),ii=m(ri),si=M(Et,2),li=M(m(si),2),oi=m(li),ai=M(c,2),Vn=m(ai),fi=M(m(Vn),2),ui=M(Vn,2);{var ci=A=>{var D=il();Pe(A,D)},di=A=>{var D=sl(),pe=M(m(D),2),Fe=m(pe);$t(()=>$(Fe,S(i))),Pe(A,D)},hi=A=>{var D=ll();Pe(A,D)},vi=A=>{var D=al(),pe=m(D),Fe=m(pe),Kt=M(m(Fe));or(Kt,5,()=>S(n).entries,sr,(Wt,We)=>{var Un=ol(),Yn=m(Un),pi=m(Yn),_i=m(pi),Kn=M(Yn),gi=m(Kn),Wn=M(Kn),mi=m(Wn),wi=m(mi),bi=M(Wn),yi=m(bi);$t(xi=>{$(_i,S(We).key_id),$(gi,xi),$(wi,S(We).last_path),$(yi,S(We).request_count)},[()=>u(S(We).last_accessed_at)]),Pe(Wt,Un)}),Pe(A,D)};ir(ui,A=>{S(r)?A(ci):S(i)?A(di,1):S(n)&&S(n).entries.length===0?A(hi,2):S(n)&&A(vi,3)})}$t(()=>{var A,D,pe,Fe,Kt,Wt,We;$(v,((A=S(n))==null?void 0:A.description)??"AMCS is a memory server that captures, links, and retrieves structured project thoughts for AI assistants using semantic search, summaries, and MCP tools."),$(Ae,((D=S(n))==null?void 0:D.connected_count)??"—"),$(at,((pe=S(n))==null?void 0:pe.total_known)??"—"),$(Bt,((Fe=S(n))==null?void 0:Fe.version)??"—"),$(ae,((Kt=S(n))==null?void 0:Kt.build_date)??"unknown"),$(ii,((Wt=S(n))==null?void 0:Wt.commit)??"unknown"),$(oi,((We=S(n))==null?void 0:We.connected_window)??"last 10 minutes")}),Fs("click",fi,a),Pe(e,o),Er()}zs(ul,{target:document.getElementById("app")});