@zooid/web 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,63 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/json-editor-Bq4vRFHc.js","assets/json-editor-DfH04Znl.css"])))=>i.map(i=>d[i]);
2
- var al=Object.defineProperty;var ks=e=>{throw TypeError(e)};var ll=(e,t,r)=>t in e?al(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ie=(e,t,r)=>ll(e,typeof t!="symbol"?t+"":t,r),ro=(e,t,r)=>t.has(e)||ks("Cannot "+r);var x=(e,t,r)=>(ro(e,t,"read from private field"),r?r.call(e):t.get(e)),ce=(e,t,r)=>t.has(e)?ks("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ne=(e,t,r,n)=>(ro(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ve=(e,t,r)=>(ro(e,t,"access private method"),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();const cl="5";var pi;typeof window<"u"&&((pi=window.__svelte??(window.__svelte={})).v??(pi.v=new Set)).add(cl);const ul=1,dl=2,vi=4,fl=8,pl=16,hl=1,gl=2,mi=4,vl=8,ml=16,bi=1,bl=2,ze=Symbol(),xi="http://www.w3.org/1999/xhtml",xl="@attach",po=!1;var Fo=Array.isArray,wl=Array.prototype.indexOf,$r=Array.prototype.includes,Yn=Array.from,yl=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,wi=Object.getOwnPropertyDescriptors,_l=Object.prototype,kl=Array.prototype,Ho=Object.getPrototypeOf,Ss=Object.isExtensible;function Zr(e){return typeof e=="function"}const Gn=()=>{};function fh(e){return e()}function Sl(e){for(var t=0;t<e.length;t++)e[t]()}function yi(){var e,t,r=new Promise((n,o)=>{e=n,t=o});return{promise:r,resolve:e,reject:t}}const Ie=2,un=4,bn=8,Uo=1<<24,$t=16,ut=32,wr=64,ho=128,Xe=512,Re=1024,Pe=2048,Ke=4096,Ze=8192,It=16384,xn=32768,Yt=65536,As=1<<17,_i=1<<18,Nr=1<<19,ki=1<<20,Tt=1<<25,vr=65536,go=1<<21,Wo=1<<22,Ut=1<<23,bt=Symbol("$state"),Si=Symbol("legacy props"),Al=Symbol(""),sr=new class extends Error{constructor(){super(...arguments);ie(this,"name","StaleReactionError");ie(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var hi;const Zo=!!((hi=globalThis.document)!=null&&hi.contentType)&&globalThis.document.contentType.includes("xml");function Cl(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Rl(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Tl(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zl(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function El(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ml(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Il(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hh(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Pl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function $l(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ol(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ll(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function jl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Nl(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Bl(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ai(e){return e===this.v}function Gl(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ci(e){return!Gl(e,this.v)}let wn=!1,Dl=!1;function gh(){wn=!0}let xe=null;function Or(e){xe=e}function vh(e){return Ri().get(e)}function mh(e,t){return Ri().set(e,t),t}function rt(e,t=!1,r){xe={p:xe,i:!1,c:null,e:null,s:e,x:null,l:wn&&!t?{s:null,u:null,$:[]}:null}}function nt(e){var t=xe,r=t.e;if(r!==null){t.e=null;for(var n of r)Wi(n)}return e!==void 0&&(t.x=e),t.i=!0,xe=t.p,e??{}}function yn(){return!wn||xe!==null&&xe.l===null}function Ri(e){return xe===null&&Cl(),xe.c??(xe.c=new Map(Vl(xe)||void 0))}function Vl(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let ir=[];function Ti(){var e=ir;ir=[],Sl(e)}function xt(e){if(ir.length===0&&!sn){var t=ir;queueMicrotask(()=>{t===ir&&Ti()})}ir.push(e)}function ql(){for(;ir.length>0;)Ti()}function zi(e){var t=ue;if(t===null)return le.f|=Ut,e;if((t.f&xn)===0&&(t.f&un)===0)throw e;Lr(e,t)}function Lr(e,t){for(;t!==null;){if((t.f&ho)!==0){if((t.f&xn)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const Fl=-7169;function _e(e,t){e.f=e.f&Fl|t}function Yo(e){(e.f&Xe)!==0||e.deps===null?_e(e,Re):_e(e,Ke)}function Ei(e){if(e!==null)for(const t of e)(t.f&Ie)===0||(t.f&vr)===0||(t.f^=vr,Ei(t.deps))}function Mi(e,t,r){(e.f&Pe)!==0?t.add(e):(e.f&Ke)!==0&&r.add(e),Ei(e.deps),_e(e,Re)}const Rn=new Set;let oe=null,vo=null,Ee=null,Ne=[],Xn=null,mo=!1,sn=!1;var Rr,Tr,cr,zr,hn,gn,ur,St,Er,wt,bo,xo,Ii;const _s=class _s{constructor(){ce(this,wt);ie(this,"committed",!1);ie(this,"current",new Map);ie(this,"previous",new Map);ce(this,Rr,new Set);ce(this,Tr,new Set);ce(this,cr,0);ce(this,zr,0);ce(this,hn,null);ce(this,gn,new Set);ce(this,ur,new Set);ce(this,St,new Map);ie(this,"is_fork",!1);ce(this,Er,!1)}is_deferred(){return this.is_fork||x(this,zr)>0}skip_effect(t){x(this,St).has(t)||x(this,St).set(t,{d:[],m:[]})}unskip_effect(t){var r=x(this,St).get(t);if(r){x(this,St).delete(t);for(var n of r.d)_e(n,Pe),lt(n);for(n of r.m)_e(n,Ke),lt(n)}}process(t){var o;Ne=[],this.apply();var r=[],n=[];for(const s of t)Ve(this,wt,bo).call(this,s,r,n);if(this.is_deferred()){Ve(this,wt,xo).call(this,n),Ve(this,wt,xo).call(this,r);for(const[s,i]of x(this,St))Li(s,i)}else{for(const s of x(this,Rr))s();x(this,Rr).clear(),x(this,cr)===0&&Ve(this,wt,Ii).call(this),vo=this,oe=null,Cs(n),Cs(r),vo=null,(o=x(this,hn))==null||o.resolve()}Ee=null}capture(t,r){r!==ze&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Ut)===0&&(this.current.set(t,t.v),Ee==null||Ee.set(t,t.v))}activate(){oe=this,this.apply()}deactivate(){oe===this&&(oe=null,Ee=null)}flush(){if(this.activate(),Ne.length>0){if(Pi(),oe!==null&&oe!==this)return}else x(this,cr)===0&&this.process([]);this.deactivate()}discard(){for(const t of x(this,Tr))t(this);x(this,Tr).clear()}increment(t){ne(this,cr,x(this,cr)+1),t&&ne(this,zr,x(this,zr)+1)}decrement(t){ne(this,cr,x(this,cr)-1),t&&ne(this,zr,x(this,zr)-1),!x(this,Er)&&(ne(this,Er,!0),xt(()=>{ne(this,Er,!1),this.is_deferred()?Ne.length>0&&this.flush():this.revive()}))}revive(){for(const t of x(this,gn))x(this,ur).delete(t),_e(t,Pe),lt(t);for(const t of x(this,ur))_e(t,Ke),lt(t);this.flush()}oncommit(t){x(this,Rr).add(t)}ondiscard(t){x(this,Tr).add(t)}settled(){return(x(this,hn)??ne(this,hn,yi())).promise}static ensure(){if(oe===null){const t=oe=new _s;Rn.add(oe),sn||xt(()=>{oe===t&&t.flush()})}return oe}apply(){}};Rr=new WeakMap,Tr=new WeakMap,cr=new WeakMap,zr=new WeakMap,hn=new WeakMap,gn=new WeakMap,ur=new WeakMap,St=new WeakMap,Er=new WeakMap,wt=new WeakSet,bo=function(t,r,n){t.f^=Re;for(var o=t.first,s=null;o!==null;){var i=o.f,a=(i&(ut|wr))!==0,c=a&&(i&Re)!==0,l=c||(i&Ze)!==0||x(this,St).has(o);if(!l&&o.fn!==null){a?o.f^=Re:s!==null&&(i&(un|bn|Uo))!==0?s.b.defer_effect(o):(i&un)!==0?r.push(o):Br(o)&&((i&$t)!==0&&x(this,ur).add(o),mr(o));var u=o.first;if(u!==null){o=u;continue}}for(;o!==null;){o===s&&(s=null);var f=o.next;if(f!==null){o=f;break}o=o.parent}}},xo=function(t){for(var r=0;r<t.length;r+=1)Mi(t[r],x(this,gn),x(this,ur))},Ii=function(){var o;if(Rn.size>1){this.previous.clear();var t=Ee,r=!0;for(const s of Rn){if(s===this){r=!1;continue}const i=[];for(const[c,l]of this.current){if(s.current.has(c))if(r&&l!==s.current.get(c))s.current.set(c,l);else continue;i.push(c)}if(i.length===0)continue;const a=[...s.current.keys()].filter(c=>!this.current.has(c));if(a.length>0){var n=Ne;Ne=[];const c=new Set,l=new Map;for(const u of i)$i(u,a,c,l);if(Ne.length>0){oe=s,s.apply();for(const u of Ne)Ve(o=s,wt,bo).call(o,u,[],[]);s.deactivate()}Ne=n}}oe=null,Ee=t}this.committed=!0,Rn.delete(this)};let Wt=_s;function Hl(e){var t=sn;sn=!0;try{for(var r;;){if(ql(),Ne.length===0&&(oe==null||oe.flush(),Ne.length===0))return Xn=null,r;Pi()}}finally{sn=t}}function Pi(){mo=!0;var e=null;try{for(var t=0;Ne.length>0;){var r=Wt.ensure();if(t++>1e3){var n,o;Ul()}r.process(Ne),Zt.clear()}}finally{Ne=[],mo=!1,Xn=null}}function Ul(){try{Il()}catch(e){Lr(e,Xn)}}let st=null;function Cs(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(It|Ze))===0&&Br(n)&&(st=new Set,mr(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Ji(n),(st==null?void 0:st.size)>0)){Zt.clear();for(const o of st){if((o.f&(It|Ze))!==0)continue;const s=[o];let i=o.parent;for(;i!==null;)st.has(i)&&(st.delete(i),s.push(i)),i=i.parent;for(let a=s.length-1;a>=0;a--){const c=s[a];(c.f&(It|Ze))===0&&mr(c)}}st.clear()}}st=null}}function $i(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const o of e.reactions){const s=o.f;(s&Ie)!==0?$i(o,t,r,n):(s&(Wo|$t))!==0&&(s&Pe)===0&&Oi(o,t,n)&&(_e(o,Pe),lt(o))}}function Oi(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const o of e.deps){if($r.call(t,o))return!0;if((o.f&Ie)!==0&&Oi(o,t,r))return r.set(o,!0),!0}return r.set(e,!1),!1}function lt(e){for(var t=Xn=e;t.parent!==null;){t=t.parent;var r=t.f;if(mo&&t===ue&&(r&$t)!==0&&(r&_i)===0)return;if((r&(wr|ut))!==0){if((r&Re)===0)return;t.f^=Re}}Ne.push(t)}function Li(e,t){if(!((e.f&ut)!==0&&(e.f&Re)!==0)){(e.f&Pe)!==0?t.d.push(e):(e.f&Ke)!==0&&t.m.push(e),_e(e,Re);for(var r=e.first;r!==null;)Li(r,t),r=r.next}}function Wl(e){let t=0,r=Xt(0),n;return()=>{Ko()&&(p(r),kn(()=>(t===0&&(n=Gr(()=>e(()=>an(r)))),t+=1,()=>{xt(()=>{t-=1,t===0&&(n==null||n(),n=void 0,an(r))})})))}}var Zl=Yt|Nr;function Yl(e,t,r){new Xl(e,t,r)}var it,qo,At,dr,pt,ht,Fe,gt,Ct,fr,qt,Mr,Ir,Pr,Rt,Wn,Ge,Jl,Kl,wo,jn,yo;class Xl{constructor(t,r,n){ce(this,Ge);ie(this,"parent");ie(this,"is_pending",!1);ce(this,it);ce(this,qo,null);ce(this,At);ce(this,dr);ce(this,pt);ce(this,ht,null);ce(this,Fe,null);ce(this,gt,null);ce(this,Ct,null);ce(this,fr,0);ce(this,qt,0);ce(this,Mr,!1);ce(this,Ir,new Set);ce(this,Pr,new Set);ce(this,Rt,null);ce(this,Wn,Wl(()=>(ne(this,Rt,Xt(x(this,fr))),()=>{ne(this,Rt,null)})));ne(this,it,t),ne(this,At,r),ne(this,dr,o=>{var s=ue;s.b=this,s.f|=ho,n(o)}),this.parent=ue.b,ne(this,pt,Sn(()=>{Ve(this,Ge,wo).call(this)},Zl))}defer_effect(t){Mi(t,x(this,Ir),x(this,Pr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!x(this,At).pending}update_pending_count(t){Ve(this,Ge,yo).call(this,t),ne(this,fr,x(this,fr)+t),!(!x(this,Rt)||x(this,Mr))&&(ne(this,Mr,!0),xt(()=>{ne(this,Mr,!1),x(this,Rt)&&jr(x(this,Rt),x(this,fr))}))}get_effect_pending(){return x(this,Wn).call(this),p(x(this,Rt))}error(t){var r=x(this,At).onerror;let n=x(this,At).failed;if(!r&&!n)throw t;x(this,ht)&&(Me(x(this,ht)),ne(this,ht,null)),x(this,Fe)&&(Me(x(this,Fe)),ne(this,Fe,null)),x(this,gt)&&(Me(x(this,gt)),ne(this,gt,null));var o=!1,s=!1;const i=()=>{if(o){Bl();return}o=!0,s&&jl(),x(this,gt)!==null&&hr(x(this,gt),()=>{ne(this,gt,null)}),Ve(this,Ge,jn).call(this,()=>{Wt.ensure(),Ve(this,Ge,wo).call(this)})};xt(()=>{try{s=!0,r==null||r(t,i),s=!1}catch(a){Lr(a,x(this,pt)&&x(this,pt).parent)}n&&ne(this,gt,Ve(this,Ge,jn).call(this,()=>{Wt.ensure();try{return Ue(()=>{var a=ue;a.b=this,a.f|=ho,n(x(this,it),()=>t,()=>i)})}catch(a){return Lr(a,x(this,pt).parent),null}}))})}}it=new WeakMap,qo=new WeakMap,At=new WeakMap,dr=new WeakMap,pt=new WeakMap,ht=new WeakMap,Fe=new WeakMap,gt=new WeakMap,Ct=new WeakMap,fr=new WeakMap,qt=new WeakMap,Mr=new WeakMap,Ir=new WeakMap,Pr=new WeakMap,Rt=new WeakMap,Wn=new WeakMap,Ge=new WeakSet,Jl=function(){try{ne(this,ht,Ue(()=>x(this,dr).call(this,x(this,it))))}catch(t){this.error(t)}},Kl=function(){const t=x(this,At).pending;t&&(this.is_pending=!0,ne(this,Fe,Ue(()=>t(x(this,it)))),xt(()=>{var r=ne(this,Ct,document.createDocumentFragment()),n=Pt();r.append(n),ne(this,ht,Ve(this,Ge,jn).call(this,()=>(Wt.ensure(),Ue(()=>x(this,dr).call(this,n))))),x(this,qt)===0&&(x(this,it).before(r),ne(this,Ct,null),hr(x(this,Fe),()=>{ne(this,Fe,null)}),this.is_pending=!1)}))},wo=function(){try{if(this.is_pending=this.has_pending_snippet(),ne(this,qt,0),ne(this,fr,0),ne(this,ht,Ue(()=>{x(this,dr).call(this,x(this,it))})),x(this,qt)>0){var t=ne(this,Ct,document.createDocumentFragment());ea(x(this,ht),t);const r=x(this,At).pending;ne(this,Fe,Ue(()=>r(x(this,it))))}else this.is_pending=!1}catch(r){this.error(r)}},jn=function(t){var r=ue,n=le,o=xe;et(x(this,pt)),Qe(x(this,pt)),Or(x(this,pt).ctx);try{return t()}catch(s){return zi(s),null}finally{et(r),Qe(n),Or(o)}},yo=function(t){var r;if(!this.has_pending_snippet()){this.parent&&Ve(r=this.parent,Ge,yo).call(r,t);return}if(ne(this,qt,x(this,qt)+t),x(this,qt)===0){this.is_pending=!1;for(const n of x(this,Ir))_e(n,Pe),lt(n);for(const n of x(this,Pr))_e(n,Ke),lt(n);x(this,Ir).clear(),x(this,Pr).clear(),x(this,Fe)&&hr(x(this,Fe),()=>{ne(this,Fe,null)}),x(this,Ct)&&(x(this,it).before(x(this,Ct)),ne(this,Ct,null))}};function ji(e,t,r,n){const o=yn()?Jn:Xo;var s=e.filter(d=>!d.settled);if(r.length===0&&s.length===0){n(t.map(o));return}var i=oe,a=ue,c=Ql(),l=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(d=>d.promise)):null;function u(d){c();try{n(d)}catch(v){(a.f&It)===0&&Lr(v,a)}i==null||i.deactivate(),_o()}if(r.length===0){l.then(()=>u(t.map(o)));return}function f(){c(),Promise.all(r.map(d=>ec(d))).then(d=>u([...t.map(o),...d])).catch(d=>Lr(d,a))}l?l.then(f):f()}function Ql(){var e=ue,t=le,r=xe,n=oe;return function(s=!0){et(e),Qe(t),Or(r),s&&(n==null||n.activate())}}function _o(){et(null),Qe(null),Or(null)}function Jn(e){var t=Ie|Pe,r=le!==null&&(le.f&Ie)!==0?le:null;return ue!==null&&(ue.f|=Nr),{ctx:xe,deps:null,effects:null,equals:Ai,f:t,fn:e,reactions:null,rv:0,v:ze,wv:0,parent:r??ue,ac:null}}function ec(e,t,r){let n=ue;n===null&&Rl();var o=n.b,s=void 0,i=Xt(ze),a=!le,c=new Map;return gc(()=>{var v;var l=yi();s=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(()=>{u===oe&&u.committed&&u.deactivate(),_o()})}catch(g){l.reject(g),_o()}var u=oe;if(a){var f=o.is_rendered();o.update_pending_count(1),u.increment(f),(v=c.get(u))==null||v.reject(sr),c.delete(u),c.set(u,l)}const d=(g,b=void 0)=>{if(u.activate(),b)b!==sr&&(i.f|=Ut,jr(i,b));else{(i.f&Ut)!==0&&(i.f^=Ut),jr(i,g);for(const[h,m]of c){if(c.delete(h),h===u)break;m.reject(sr)}}a&&(o.update_pending_count(-1),u.decrement(f))};l.promise.then(d,g=>d(null,g||"unknown"))}),Qo(()=>{for(const l of c.values())l.reject(sr)}),new Promise(l=>{function u(f){function d(){f===s?l(i):u(s)}f.then(d,d)}u(s)})}function Se(e){const t=Jn(e);return ta(t),t}function Xo(e){const t=Jn(e);return t.equals=Ci,t}function tc(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Me(t[r])}}function rc(e){for(var t=e.parent;t!==null;){if((t.f&Ie)===0)return(t.f&It)===0?t:null;t=t.parent}return null}function Jo(e){var t,r=ue;et(rc(e));try{e.f&=~vr,tc(e),t=sa(e)}finally{et(r)}return t}function Ni(e){var t=Jo(e);if(!e.equals(t)&&(e.wv=na(),(!(oe!=null&&oe.is_fork)||e.deps===null)&&(e.v=t,e.deps===null))){_e(e,Re);return}Jt||(Ee!==null?(Ko()||oe!=null&&oe.is_fork)&&Ee.set(e,t):Yo(e))}function nc(e){var t,r;if(e.effects!==null)for(const n of e.effects)(n.teardown||n.ac)&&((t=n.teardown)==null||t.call(n),(r=n.ac)==null||r.abort(sr),n.teardown=Gn,n.ac=null,dn(n,0),ts(n))}function Bi(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&mr(t)}let ko=new Set;const Zt=new Map;let Gi=!1;function Xt(e,t){var r={f:0,v:e,reactions:null,equals:Ai,rv:0,wv:0};return r}function re(e,t){const r=Xt(e);return ta(r),r}function oc(e,t=!1,r=!0){var o;const n=Xt(e);return t||(n.equals=Ci),wn&&r&&xe!==null&&xe.l!==null&&((o=xe.l).s??(o.s=[])).push(n),n}function bh(e,t){return A(e,Gr(()=>p(e))),t}function A(e,t,r=!1){le!==null&&(!ct||(le.f&As)!==0)&&yn()&&(le.f&(Ie|$t|Wo|As))!==0&&(Je===null||!$r.call(Je,e))&&Ll();let n=r?mt(t):t;return jr(e,n)}function jr(e,t){if(!e.equals(t)){var r=e.v;Jt?Zt.set(e,t):Zt.set(e,r),e.v=t;var n=Wt.ensure();if(n.capture(e,r),(e.f&Ie)!==0){const o=e;(e.f&Pe)!==0&&Jo(o),Yo(o)}e.wv=na(),Di(e,Pe),yn()&&ue!==null&&(ue.f&Re)!==0&&(ue.f&(ut|wr))===0&&(Ye===null?mc([e]):Ye.push(e)),!n.is_fork&&ko.size>0&&!Gi&&sc()}return t}function sc(){Gi=!1;for(const e of ko)(e.f&Re)!==0&&_e(e,Ke),Br(e)&&mr(e);ko.clear()}function Rs(e,t=1){var r=p(e),n=t===1?r++:r--;return A(e,r),n}function an(e){A(e,e.v+1)}function Di(e,t){var r=e.reactions;if(r!==null)for(var n=yn(),o=r.length,s=0;s<o;s++){var i=r[s],a=i.f;if(!(!n&&i===ue)){var c=(a&Pe)===0;if(c&&_e(i,t),(a&Ie)!==0){var l=i;Ee==null||Ee.delete(l),(a&vr)===0&&(a&Xe&&(i.f|=vr),Di(l,Ke))}else c&&((a&$t)!==0&&st!==null&&st.add(i),lt(i))}}}function mt(e){if(typeof e!="object"||e===null||bt in e)return e;const t=Ho(e);if(t!==_l&&t!==kl)return e;var r=new Map,n=Fo(e),o=re(0),s=gr,i=a=>{if(gr===s)return a();var c=le,l=gr;Qe(null),Is(s);var u=a();return Qe(c),Is(l),u};return n&&r.set("length",re(e.length)),new Proxy(e,{defineProperty(a,c,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&$l();var u=r.get(c);return u===void 0?i(()=>{var f=re(l.value);return r.set(c,f),f}):A(u,l.value,!0),!0},deleteProperty(a,c){var l=r.get(c);if(l===void 0){if(c in a){const u=i(()=>re(ze));r.set(c,u),an(o)}}else A(l,ze),an(o);return!0},get(a,c,l){var v;if(c===bt)return e;var u=r.get(c),f=c in a;if(u===void 0&&(!f||(v=Ht(a,c))!=null&&v.writable)&&(u=i(()=>{var g=mt(f?a[c]:ze),b=re(g);return b}),r.set(c,u)),u!==void 0){var d=p(u);return d===ze?void 0:d}return Reflect.get(a,c,l)},getOwnPropertyDescriptor(a,c){var l=Reflect.getOwnPropertyDescriptor(a,c);if(l&&"value"in l){var u=r.get(c);u&&(l.value=p(u))}else if(l===void 0){var f=r.get(c),d=f==null?void 0:f.v;if(f!==void 0&&d!==ze)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(a,c){var d;if(c===bt)return!0;var l=r.get(c),u=l!==void 0&&l.v!==ze||Reflect.has(a,c);if(l!==void 0||ue!==null&&(!u||(d=Ht(a,c))!=null&&d.writable)){l===void 0&&(l=i(()=>{var v=u?mt(a[c]):ze,g=re(v);return g}),r.set(c,l));var f=p(l);if(f===ze)return!1}return u},set(a,c,l,u){var S;var f=r.get(c),d=c in a;if(n&&c==="length")for(var v=l;v<f.v;v+=1){var g=r.get(v+"");g!==void 0?A(g,ze):v in a&&(g=i(()=>re(ze)),r.set(v+"",g))}if(f===void 0)(!d||(S=Ht(a,c))!=null&&S.writable)&&(f=i(()=>re(void 0)),A(f,mt(l)),r.set(c,f));else{d=f.v!==ze;var b=i(()=>mt(l));A(f,b)}var h=Reflect.getOwnPropertyDescriptor(a,c);if(h!=null&&h.set&&h.set.call(u,l),!d){if(n&&typeof c=="string"){var m=r.get("length"),w=Number(c);Number.isInteger(w)&&w>=m.v&&A(m,w+1)}an(o)}return!0},ownKeys(a){p(o);var c=Reflect.ownKeys(a).filter(f=>{var d=r.get(f);return d===void 0||d.v!==ze});for(var[l,u]of r)u.v!==ze&&!(l in a)&&c.push(l);return c},setPrototypeOf(){Ol()}})}function Ts(e){try{if(e!==null&&typeof e=="object"&&bt in e)return e[bt]}catch{}return e}function ic(e,t){return Object.is(Ts(e),Ts(t))}var zs,Vi,qi,Fi;function ac(){if(zs===void 0){zs=window,Vi=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;qi=Ht(t,"firstChild").get,Fi=Ht(t,"nextSibling").get,Ss(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ss(r)&&(r.__t=void 0)}}function Pt(e=""){return document.createTextNode(e)}function We(e){return qi.call(e)}function _n(e){return Fi.call(e)}function E(e,t){return We(e)}function ke(e,t=!1){{var r=We(e);return r instanceof Comment&&r.data===""?_n(r):r}}function j(e,t=1,r=!1){let n=e;for(;t--;)n=_n(n);return n}function lc(e){e.textContent=""}function Hi(){return!1}function cc(e,t,r){return document.createElementNS(xi,e,void 0)}function uc(e,t){if(t){const r=document.body;e.autofocus=!0,xt(()=>{document.activeElement===r&&e.focus()})}}let Es=!1;function dc(){Es||(Es=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const r of e.target.elements)(t=r.__on_r)==null||t.call(r)})},{capture:!0}))}function Kn(e){var t=le,r=ue;Qe(null),et(null);try{return e()}finally{Qe(t),et(r)}}function fc(e,t,r,n=r){e.addEventListener(t,()=>Kn(r));const o=e.__on_r;o?e.__on_r=()=>{o(),n(!0)}:e.__on_r=()=>n(!0),dc()}function Ui(e){ue===null&&(le===null&&Ml(),El()),Jt&&zl()}function pc(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function dt(e,t,r){var n=ue;n!==null&&(n.f&Ze)!==0&&(e|=Ze);var o={ctx:xe,deps:null,nodes:null,f:e|Pe|Xe,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{mr(o)}catch(a){throw Me(o),a}else t!==null&&lt(o);var s=o;if(r&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Nr)===0&&(s=s.first,(e&$t)!==0&&(e&Yt)!==0&&s!==null&&(s.f|=Yt)),s!==null&&(s.parent=n,n!==null&&pc(s,n),le!==null&&(le.f&Ie)!==0&&(e&wr)===0)){var i=le;(i.effects??(i.effects=[])).push(s)}return o}function Ko(){return le!==null&&!ct}function Qo(e){const t=dt(bn,null,!1);return _e(t,Re),t.teardown=e,t}function Dn(e){Ui();var t=ue.f,r=!le&&(t&ut)!==0&&(t&xn)===0;if(r){var n=xe;(n.e??(n.e=[])).push(e)}else return Wi(e)}function Wi(e){return dt(un|ki,e,!1)}function xh(e){return Ui(),dt(bn|ki,e,!0)}function hc(e){Wt.ensure();const t=dt(wr|Nr,e,!0);return(r={})=>new Promise(n=>{r.outro?hr(t,()=>{Me(t),n(void 0)}):(Me(t),n(void 0))})}function es(e){return dt(un,e,!1)}function wh(e,t){var r=xe,n={effect:null,ran:!1,deps:e};r.l.$.push(n),n.effect=kn(()=>{e(),!n.ran&&(n.ran=!0,Gr(t))})}function yh(){var e=xe;kn(()=>{for(var t of e.l.$){t.deps();var r=t.effect;(r.f&Re)!==0&&r.deps!==null&&_e(r,Ke),Br(r)&&mr(r),t.ran=!1}})}function gc(e){return dt(Wo|Nr,e,!0)}function kn(e,t=0){return dt(bn|t,e,!0)}function ge(e,t=[],r=[],n=[]){ji(n,t,r,o=>{dt(bn,()=>e(...o.map(p)),!0)})}function Sn(e,t=0){var r=dt($t|t,e,!0);return r}function Zi(e,t=0){var r=dt(Uo|t,e,!0);return r}function Ue(e){return dt(ut|Nr,e,!0)}function Yi(e){var t=e.teardown;if(t!==null){const r=Jt,n=le;Ms(!0),Qe(null);try{t.call(null)}finally{Ms(r),Qe(n)}}}function ts(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const o=r.ac;o!==null&&Kn(()=>{o.abort(sr)});var n=r.next;(r.f&wr)!==0?r.parent=null:Me(r,t),r=n}}function vc(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&ut)===0&&Me(t),t=r}}function Me(e,t=!0){var r=!1;(t||(e.f&_i)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Xi(e.nodes.start,e.nodes.end),r=!0),ts(e,t&&!r),dn(e,0),_e(e,It);var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)s.stop();Yi(e);var o=e.parent;o!==null&&o.first!==null&&Ji(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Xi(e,t){for(;e!==null;){var r=e===t?null:_n(e);e.remove(),e=r}}function Ji(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 hr(e,t,r=!0){var n=[];Ki(e,n,!0);var o=()=>{r&&Me(e),t&&t()},s=n.length;if(s>0){var i=()=>--s||o();for(var a of n)a.out(i)}else o()}function Ki(e,t,r){if((e.f&Ze)===0){e.f^=Ze;var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&t.push(a);for(var o=e.first;o!==null;){var s=o.next,i=(o.f&Yt)!==0||(o.f&ut)!==0&&(e.f&$t)!==0;Ki(o,t,i?r:!1),o=s}}}function rs(e){Qi(e,!0)}function Qi(e,t){if((e.f&Ze)!==0){e.f^=Ze,(e.f&Re)===0&&(_e(e,Pe),lt(e));for(var r=e.first;r!==null;){var n=r.next,o=(r.f&Yt)!==0||(r.f&ut)!==0;Qi(r,o?t:!1),r=n}var s=e.nodes&&e.nodes.t;if(s!==null)for(const i of s)(i.is_global||t)&&i.in()}}function ea(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var o=r===n?null:_n(r);t.append(r),r=o}}let Nn=!1,Jt=!1;function Ms(e){Jt=e}let le=null,ct=!1;function Qe(e){le=e}let ue=null;function et(e){ue=e}let Je=null;function ta(e){le!==null&&(Je===null?Je=[e]:Je.push(e))}let Be=null,qe=0,Ye=null;function mc(e){Ye=e}let ra=1,ar=0,gr=ar;function Is(e){gr=e}function na(){return++ra}function Br(e){var t=e.f;if((t&Pe)!==0)return!0;if(t&Ie&&(e.f&=~vr),(t&Ke)!==0){for(var r=e.deps,n=r.length,o=0;o<n;o++){var s=r[o];if(Br(s)&&Ni(s),s.wv>e.wv)return!0}(t&Xe)!==0&&Ee===null&&_e(e,Re)}return!1}function oa(e,t,r=!0){var n=e.reactions;if(n!==null&&!(Je!==null&&$r.call(Je,e)))for(var o=0;o<n.length;o++){var s=n[o];(s.f&Ie)!==0?oa(s,t,!1):t===s&&(r?_e(s,Pe):(s.f&Re)!==0&&_e(s,Ke),lt(s))}}function sa(e){var b;var t=Be,r=qe,n=Ye,o=le,s=Je,i=xe,a=ct,c=gr,l=e.f;Be=null,qe=0,Ye=null,le=(l&(ut|wr))===0?e:null,Je=null,Or(e.ctx),ct=!1,gr=++ar,e.ac!==null&&(Kn(()=>{e.ac.abort(sr)}),e.ac=null);try{e.f|=go;var u=e.fn,f=u();e.f|=xn;var d=e.deps,v=oe==null?void 0:oe.is_fork;if(Be!==null){var g;if(v||dn(e,qe),d!==null&&qe>0)for(d.length=qe+Be.length,g=0;g<Be.length;g++)d[qe+g]=Be[g];else e.deps=d=Be;if(Ko()&&(e.f&Xe)!==0)for(g=qe;g<d.length;g++)((b=d[g]).reactions??(b.reactions=[])).push(e)}else!v&&d!==null&&qe<d.length&&(dn(e,qe),d.length=qe);if(yn()&&Ye!==null&&!ct&&d!==null&&(e.f&(Ie|Ke|Pe))===0)for(g=0;g<Ye.length;g++)oa(Ye[g],e);if(o!==null&&o!==e){if(ar++,o.deps!==null)for(let h=0;h<r;h+=1)o.deps[h].rv=ar;if(t!==null)for(const h of t)h.rv=ar;Ye!==null&&(n===null?n=Ye:n.push(...Ye))}return(e.f&Ut)!==0&&(e.f^=Ut),f}catch(h){return zi(h)}finally{e.f^=go,Be=t,qe=r,Ye=n,le=o,Je=s,Or(i),ct=a,gr=c}}function bc(e,t){let r=t.reactions;if(r!==null){var n=wl.call(r,e);if(n!==-1){var o=r.length-1;o===0?r=t.reactions=null:(r[n]=r[o],r.pop())}}if(r===null&&(t.f&Ie)!==0&&(Be===null||!$r.call(Be,t))){var s=t;(s.f&Xe)!==0&&(s.f^=Xe,s.f&=~vr),Yo(s),nc(s),dn(s,0)}}function dn(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)bc(e,r[n])}function mr(e){var t=e.f;if((t&It)===0){_e(e,Re);var r=ue,n=Nn;ue=e,Nn=!0;try{(t&($t|Uo))!==0?vc(e):ts(e),Yi(e);var o=sa(e);e.teardown=typeof o=="function"?o:null,e.wv=ra;var s;po&&Dl&&(e.f&Pe)!==0&&e.deps}finally{Nn=n,ue=r}}}async function ia(){await Promise.resolve(),Hl()}function p(e){var t=e.f,r=(t&Ie)!==0;if(le!==null&&!ct){var n=ue!==null&&(ue.f&It)!==0;if(!n&&(Je===null||!$r.call(Je,e))){var o=le.deps;if((le.f&go)!==0)e.rv<ar&&(e.rv=ar,Be===null&&o!==null&&o[qe]===e?qe++:Be===null?Be=[e]:Be.push(e));else{(le.deps??(le.deps=[])).push(e);var s=e.reactions;s===null?e.reactions=[le]:$r.call(s,le)||s.push(le)}}}if(Jt&&Zt.has(e))return Zt.get(e);if(r){var i=e;if(Jt){var a=i.v;return((i.f&Re)===0&&i.reactions!==null||la(i))&&(a=Jo(i)),Zt.set(i,a),a}var c=(i.f&Xe)===0&&!ct&&le!==null&&(Nn||(le.f&Xe)!==0),l=(i.f&xn)===0;Br(i)&&(c&&(i.f|=Xe),Ni(i)),c&&!l&&(Bi(i),aa(i))}if(Ee!=null&&Ee.has(e))return Ee.get(e);if((e.f&Ut)!==0)throw e.v;return e.v}function aa(e){if(e.f|=Xe,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&Ie)!==0&&(t.f&Xe)===0&&(Bi(t),aa(t))}function la(e){if(e.v===ze)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Zt.has(t)||(t.f&Ie)!==0&&la(t))return!0;return!1}function Gr(e){var t=ct;try{return ct=!0,e()}finally{ct=t}}function _h(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(bt in e)So(e);else if(!Array.isArray(e))for(let t in e){const r=e[t];typeof r=="object"&&r&&bt in r&&So(r)}}}function So(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{So(e[n],t)}catch{}const r=Ho(e);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const n=wi(r);for(let o in n){const s=n[o].get;if(s)try{s.call(e)}catch{}}}}}const lr=Symbol("events"),ca=new Set,Ao=new Set;function ua(e,t,r,n={}){function o(s){if(n.capture||Co.call(t,s),!s.cancelBubble)return Kn(()=>r==null?void 0:r.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?xt(()=>{t.addEventListener(e,o,n)}):t.addEventListener(e,o,n),o}function xc(e,t,r,n,o){var s={capture:n,passive:o},i=ua(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Qo(()=>{t.removeEventListener(e,i,s)})}function we(e,t,r){(t[lr]??(t[lr]={}))[e]=r}function yr(e){for(var t=0;t<e.length;t++)ca.add(e[t]);for(var r of Ao)r(e)}let Ps=null;function Co(e){var h,m;var t=this,r=t.ownerDocument,n=e.type,o=((h=e.composedPath)==null?void 0:h.call(e))||[],s=o[0]||e.target;Ps=e;var i=0,a=Ps===e&&e[lr];if(a){var c=o.indexOf(a);if(c!==-1&&(t===document||t===window)){e[lr]=t;return}var l=o.indexOf(t);if(l===-1)return;c<=l&&(i=c)}if(s=o[i]||e.target,s!==t){yl(e,"currentTarget",{configurable:!0,get(){return s||r}});var u=le,f=ue;Qe(null),et(null);try{for(var d,v=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var b=(m=s[lr])==null?void 0:m[n];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(w){d?v.push(w):d=w}if(e.cancelBubble||g===t||g===null)break;s=g}if(d){for(let w of v)queueMicrotask(()=>{throw w});throw d}}finally{e[lr]=t,delete e.currentTarget,Qe(u),et(f)}}}var gi;const no=((gi=globalThis==null?void 0:globalThis.window)==null?void 0:gi.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function wc(e){return(no==null?void 0:no.createHTML(e))??e}function ns(e,t=!1){var r=cc("template");return e=e.replaceAll("<!>","<!---->"),r.innerHTML=t?wc(e):e,r.content}function br(e,t){var r=ue;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function H(e,t){var r=(t&bi)!==0,n=(t&bl)!==0,o,s=!e.startsWith("<!>");return()=>{o===void 0&&(o=ns(s?e:"<!>"+e,!0),r||(o=We(o)));var i=n||Vi?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=We(i),c=i.lastChild;br(a,c)}else br(i,i);return i}}function yc(e,t,r="svg"){var n=!e.startsWith("<!>"),o=(t&bi)!==0,s=`<${r}>${n?e:"<!>"+e}</${r}>`,i;return()=>{if(!i){var a=ns(s,!0),c=We(a);if(o)for(i=document.createDocumentFragment();We(c);)i.appendChild(We(c));else i=We(c)}var l=i.cloneNode(!0);if(o){var u=We(l),f=l.lastChild;br(u,f)}else br(l,l);return l}}function da(e,t){return yc(e,t,"svg")}function Cr(e=""){{var t=Pt(e+"");return br(t,t),t}}function ln(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Pt();return e.append(t,r),br(t,r),e}function $(e,t){e!==null&&e.before(t)}function _c(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const kc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sc(e){return kc.includes(e)}const Ac={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 Cc(e){return e=e.toLowerCase(),Ac[e]??e}const Rc=["touchstart","touchmove"];function Tc(e){return Rc.includes(e)}function he(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 zc(e,t){return Ec(e,t)}const Tn=new Map;function Ec(e,{target:t,anchor:r,props:n={},events:o,context:s,intro:i=!0}){ac();var a=void 0,c=hc(()=>{var l=r??t.appendChild(Pt());Yl(l,{pending:()=>{}},d=>{rt({});var v=xe;s&&(v.c=s),o&&(n.$$events=o),a=e(d,n)||{},nt()});var u=new Set,f=d=>{for(var v=0;v<d.length;v++){var g=d[v];if(!u.has(g)){u.add(g);var b=Tc(g);for(const w of[t,document]){var h=Tn.get(w);h===void 0&&(h=new Map,Tn.set(w,h));var m=h.get(g);m===void 0?(w.addEventListener(g,Co,{passive:b}),h.set(g,1)):h.set(g,m+1)}}}};return f(Yn(ca)),Ao.add(f),()=>{var b;for(var d of u)for(const h of[t,document]){var v=Tn.get(h),g=v.get(d);--g==0?(h.removeEventListener(d,Co),v.delete(d),v.size===0&&Tn.delete(h)):v.set(d,g)}Ao.delete(f),l!==r&&((b=l.parentNode)==null||b.removeChild(l))}});return Mc.set(a,c),a}let Mc=new WeakMap;var at,vt,He,pr,vn,mn,Zn;class os{constructor(t,r=!0){ie(this,"anchor");ce(this,at,new Map);ce(this,vt,new Map);ce(this,He,new Map);ce(this,pr,new Set);ce(this,vn,!0);ce(this,mn,()=>{var t=oe;if(x(this,at).has(t)){var r=x(this,at).get(t),n=x(this,vt).get(r);if(n)rs(n),x(this,pr).delete(r);else{var o=x(this,He).get(r);o&&(x(this,vt).set(r,o.effect),x(this,He).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of x(this,at)){if(x(this,at).delete(s),s===t)break;const a=x(this,He).get(i);a&&(Me(a.effect),x(this,He).delete(i))}for(const[s,i]of x(this,vt)){if(s===r||x(this,pr).has(s))continue;const a=()=>{if(Array.from(x(this,at).values()).includes(s)){var l=document.createDocumentFragment();ea(i,l),l.append(Pt()),x(this,He).set(s,{effect:i,fragment:l})}else Me(i);x(this,pr).delete(s),x(this,vt).delete(s)};x(this,vn)||!n?(x(this,pr).add(s),hr(i,a,!1)):a()}}});ce(this,Zn,t=>{x(this,at).delete(t);const r=Array.from(x(this,at).values());for(const[n,o]of x(this,He))r.includes(n)||(Me(o.effect),x(this,He).delete(n))});this.anchor=t,ne(this,vn,r)}ensure(t,r){var n=oe,o=Hi();if(r&&!x(this,vt).has(t)&&!x(this,He).has(t))if(o){var s=document.createDocumentFragment(),i=Pt();s.append(i),x(this,He).set(t,{effect:Ue(()=>r(i)),fragment:s})}else x(this,vt).set(t,Ue(()=>r(this.anchor)));if(x(this,at).set(n,t),o){for(const[a,c]of x(this,vt))a===t?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of x(this,He))a===t?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(x(this,mn)),n.ondiscard(x(this,Zn))}else x(this,mn).call(this)}}at=new WeakMap,vt=new WeakMap,He=new WeakMap,pr=new WeakMap,vn=new WeakMap,mn=new WeakMap,Zn=new WeakMap;function Ic(e,t,...r){var n=new os(e);Sn(()=>{const o=t()??null;n.ensure(o,o&&(s=>o(s,...r)))},Yt)}function fe(e,t,r=!1){var n=new os(e),o=r?Yt:0;function s(i,a){n.ensure(i,a)}Sn(()=>{var i=!1;t((a,c=0)=>{i=!0,s(c,a)}),i||s(!1,null)},o)}function rn(e,t){return t}function Pc(e,t,r){for(var n=[],o=t.length,s,i=t.length,a=0;a<o;a++){let f=t[a];hr(f,()=>{if(s){if(s.pending.delete(f),s.done.add(f),s.pending.size===0){var d=e.outrogroups;Ro(Yn(s.done)),d.delete(s),d.size===0&&(e.outrogroups=null)}}else i-=1},!1)}if(i===0){var c=n.length===0&&r!==null;if(c){var l=r,u=l.parentNode;lc(u),u.append(l),e.items.clear()}Ro(t,!c)}else s={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(s)}function Ro(e,t=!0){for(var r=0;r<e.length;r++)Me(e[r],t)}var $s;function Ft(e,t,r,n,o,s=null){var i=e,a=new Map,c=(t&vi)!==0;if(c){var l=e;i=l.appendChild(Pt())}var u=null,f=Xo(()=>{var m=r();return Fo(m)?m:m==null?[]:Yn(m)}),d,v=!0;function g(){h.fallback=u,$c(h,d,i,t,n),u!==null&&(d.length===0?(u.f&Tt)===0?rs(u):(u.f^=Tt,nn(u,null,i)):hr(u,()=>{u=null}))}var b=Sn(()=>{d=p(f);for(var m=d.length,w=new Set,S=oe,_=Hi(),z=0;z<m;z+=1){var y=d[z],M=n(y,z),C=v?null:a.get(M);C?(C.v&&jr(C.v,y),C.i&&jr(C.i,z),_&&S.unskip_effect(C.e)):(C=Oc(a,v?i:$s??($s=Pt()),y,M,z,o,t,r),v||(C.e.f|=Tt),a.set(M,C)),w.add(M)}if(m===0&&s&&!u&&(v?u=Ue(()=>s(i)):(u=Ue(()=>s($s??($s=Pt()))),u.f|=Tt)),m>w.size&&Tl(),!v)if(_){for(const[U,W]of a)w.has(U)||S.skip_effect(W.e);S.oncommit(g),S.ondiscard(()=>{})}else g();p(f)}),h={effect:b,items:a,outrogroups:null,fallback:u};v=!1}function Yr(e){for(;e!==null&&(e.f&ut)===0;)e=e.next;return e}function $c(e,t,r,n,o){var W,K,P,V,q,Z,T,X,k;var s=(n&fl)!==0,i=t.length,a=e.items,c=Yr(e.effect.first),l,u=null,f,d=[],v=[],g,b,h,m;if(s)for(m=0;m<i;m+=1)g=t[m],b=o(g,m),h=a.get(b).e,(h.f&Tt)===0&&((K=(W=h.nodes)==null?void 0:W.a)==null||K.measure(),(f??(f=new Set)).add(h));for(m=0;m<i;m+=1){if(g=t[m],b=o(g,m),h=a.get(b).e,e.outrogroups!==null)for(const Y of e.outrogroups)Y.pending.delete(h),Y.done.delete(h);if((h.f&Tt)!==0)if(h.f^=Tt,h===c)nn(h,null,r);else{var w=u?u.next:c;h===e.effect.last&&(e.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),Bt(e,u,h),Bt(e,h,w),nn(h,w,r),u=h,d=[],v=[],c=Yr(u.next);continue}if((h.f&Ze)!==0&&(rs(h),s&&((V=(P=h.nodes)==null?void 0:P.a)==null||V.unfix(),(f??(f=new Set)).delete(h))),h!==c){if(l!==void 0&&l.has(h)){if(d.length<v.length){var S=v[0],_;u=S.prev;var z=d[0],y=d[d.length-1];for(_=0;_<d.length;_+=1)nn(d[_],S,r);for(_=0;_<v.length;_+=1)l.delete(v[_]);Bt(e,z.prev,y.next),Bt(e,u,z),Bt(e,y,S),c=S,u=y,m-=1,d=[],v=[]}else l.delete(h),nn(h,c,r),Bt(e,h.prev,h.next),Bt(e,h,u===null?e.effect.first:u.next),Bt(e,u,h),u=h;continue}for(d=[],v=[];c!==null&&c!==h;)(l??(l=new Set)).add(c),v.push(c),c=Yr(c.next);if(c===null)continue}(h.f&Tt)===0&&d.push(h),u=h,c=Yr(h.next)}if(e.outrogroups!==null){for(const Y of e.outrogroups)Y.pending.size===0&&(Ro(Yn(Y.done)),(q=e.outrogroups)==null||q.delete(Y));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var M=[];if(l!==void 0)for(h of l)(h.f&Ze)===0&&M.push(h);for(;c!==null;)(c.f&Ze)===0&&c!==e.fallback&&M.push(c),c=Yr(c.next);var C=M.length;if(C>0){var U=(n&vi)!==0&&i===0?r:null;if(s){for(m=0;m<C;m+=1)(T=(Z=M[m].nodes)==null?void 0:Z.a)==null||T.measure();for(m=0;m<C;m+=1)(k=(X=M[m].nodes)==null?void 0:X.a)==null||k.fix()}Pc(e,M,U)}}s&&xt(()=>{var Y,se;if(f!==void 0)for(h of f)(se=(Y=h.nodes)==null?void 0:Y.a)==null||se.apply()})}function Oc(e,t,r,n,o,s,i,a){var c=(i&ul)!==0?(i&pl)===0?oc(r,!1,!1):Xt(r):null,l=(i&dl)!==0?Xt(o):null;return{v:c,i:l,e:Ue(()=>(s(t,c??r,l??o,a),()=>{e.delete(n)}))}}function nn(e,t,r){if(e.nodes)for(var n=e.nodes.start,o=e.nodes.end,s=t&&(t.f&Tt)===0?t.nodes.start:r;n!==null;){var i=_n(n);if(s.before(n),n===o)return;n=i}}function Bt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function To(e,t,r=!1,n=!1,o=!1){var s=e,i="";ge(()=>{var a=ue;if(i!==(i=t()??"")&&(a.nodes!==null&&(Xi(a.nodes.start,a.nodes.end),a.nodes=null),i!=="")){var c=i+"";r?c=`<svg>${c}</svg>`:n&&(c=`<math>${c}</math>`);var l=ns(c);if((r||n)&&(l=We(l)),br(We(l),l.lastChild),r||n)for(;We(l);)s.before(We(l));else s.before(l)}})}function Lc(e,t,r){var n=new os(e);Sn(()=>{var o=t()??null;n.ensure(o,o&&(s=>r(s,o)))},Yt)}function jc(e,t){var r=void 0,n;Zi(()=>{r!==(r=t())&&(n&&(Me(n),n=null),r&&(n=Ue(()=>{es(()=>r(e))})))})}function fa(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=fa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function pa(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fa(e))&&(n&&(n+=" "),n+=t);return n}function ha(e){return typeof e=="object"?pa(e):e??""}const Os=[...`
3
- \r\f \v\uFEFF`];function Nc(e,t,r){var n=e==null?"":""+e;if(t&&(n=n?n+" "+t:t),r){for(var o in r)if(r[o])n=n?n+" "+o:o;else if(n.length)for(var s=o.length,i=0;(i=n.indexOf(o,i))>=0;){var a=i+s;(i===0||Os.includes(n[i-1]))&&(a===n.length||Os.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function Ls(e,t=!1){var r=t?" !important;":";",n="";for(var o in e){var s=e[o];s!=null&&s!==""&&(n+=" "+o+": "+s+r)}return n}function oo(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function Bc(e,t){if(t){var r="",n,o;if(Array.isArray(t)?(n=t[0],o=t[1]):n=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,i=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(oo)),o&&c.push(...Object.keys(o).map(oo));var l=0,u=-1;const b=e.length;for(var f=0;f<b;f++){var d=e[f];if(a?d==="/"&&e[f-1]==="*"&&(a=!1):s?s===d&&(s=!1):d==="/"&&e[f+1]==="*"?a=!0:d==='"'||d==="'"?s=d:d==="("?i++:d===")"&&i--,!a&&s===!1&&i===0){if(d===":"&&u===-1)u=f;else if(d===";"||f===b-1){if(u!==-1){var v=oo(e.substring(l,u).trim());if(!c.includes(v)){d!==";"&&f++;var g=e.substring(l,f).trim();r+=" "+g+";"}}l=f+1,u=-1}}}}return n&&(r+=Ls(n)),o&&(r+=Ls(o,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function zt(e,t,r,n,o,s){var i=e.__className;if(i!==r||i===void 0){var a=Nc(r,n,s);a==null?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a),e.__className=r}else if(s&&o!==s)for(var c in s){var l=!!s[c];(o==null||l!==!!o[c])&&e.classList.toggle(c,l)}return s}function so(e,t={},r,n){for(var o in r){var s=r[o];t[o]!==s&&(r[o]==null?e.style.removeProperty(o):e.style.setProperty(o,s,n))}}function Vt(e,t,r,n){var o=e.__style;if(o!==t){var s=Bc(t,n);s==null?e.removeAttribute("style"):e.style.cssText=s,e.__style=t}else n&&(Array.isArray(n)?(so(e,r==null?void 0:r[0],n[0]),so(e,r==null?void 0:r[1],n[1],"important")):so(e,r,n));return n}function zo(e,t,r=!1){if(e.multiple){if(t==null)return;if(!Fo(t))return Nl();for(var n of e.options)n.selected=t.includes(js(n));return}for(n of e.options){var o=js(n);if(ic(o,t)){n.selected=!0;return}}(!r||t!==void 0)&&(e.selectedIndex=-1)}function Gc(e){var t=new MutationObserver(()=>{zo(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Qo(()=>{t.disconnect()})}function js(e){return"__value"in e?e.__value:e.value}const Xr=Symbol("class"),Jr=Symbol("style"),ga=Symbol("is custom element"),va=Symbol("is html"),Dc=Zo?"option":"OPTION",Vc=Zo?"select":"SELECT",qc=Zo?"progress":"PROGRESS";function kh(e,t){var r=is(e);r.value===(r.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==qc)||(e.value=t??"")}function Fc(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function fn(e,t,r,n){var o=is(e);o[t]!==(o[t]=r)&&(t==="loading"&&(e[Al]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ma(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Hc(e,t,r,n,o=!1,s=!1){var i=is(e),a=i[ga],c=!i[va],l=t||{},u=e.nodeName===Dc;for(var f in t)f in r||(r[f]=null);r.class?r.class=ha(r.class):(n||r[Xr])&&(r.class=null),r[Jr]&&(r.style??(r.style=null));var d=ma(e);for(const S in r){let _=r[S];if(u&&S==="value"&&_==null){e.value=e.__value="",l[S]=_;continue}if(S==="class"){var v=e.namespaceURI==="http://www.w3.org/1999/xhtml";zt(e,v,_,n,t==null?void 0:t[Xr],r[Xr]),l[S]=_,l[Xr]=r[Xr];continue}if(S==="style"){Vt(e,_,t==null?void 0:t[Jr],r[Jr]),l[S]=_,l[Jr]=r[Jr];continue}var g=l[S];if(!(_===g&&!(_===void 0&&e.hasAttribute(S)))){l[S]=_;var b=S[0]+S[1];if(b!=="$$")if(b==="on"){const z={},y="$$"+S;let M=S.slice(2);var h=Sc(M);if(_c(M)&&(M=M.slice(0,-7),z.capture=!0),!h&&g){if(_!=null)continue;e.removeEventListener(M,l[y],z),l[y]=null}if(h)we(M,e,_),yr([M]);else if(_!=null){let C=function(U){l[S].call(this,U)};l[y]=ua(M,e,C,z)}}else if(S==="style")fn(e,S,_);else if(S==="autofocus")uc(e,!!_);else if(!a&&(S==="__value"||S==="value"&&_!=null))e.value=e.__value=_;else if(S==="selected"&&u)Fc(e,_);else{var m=S;c||(m=Cc(m));var w=m==="defaultValue"||m==="defaultChecked";if(_==null&&!a&&!w)if(i[S]=null,m==="value"||m==="checked"){let z=e;const y=t===void 0;if(m==="value"){let M=z.defaultValue;z.removeAttribute(m),z.defaultValue=M,z.value=z.__value=y?M:null}else{let M=z.defaultChecked;z.removeAttribute(m),z.defaultChecked=M,z.checked=y?M:!1}}else e.removeAttribute(S);else w||d.includes(m)&&(a||typeof _!="string")?(e[m]=_,m in i&&(i[m]=ze)):typeof _!="function"&&fn(e,m,_)}}}return l}function ss(e,t,r=[],n=[],o=[],s,i=!1,a=!1){ji(o,r,n,c=>{var l=void 0,u={},f=e.nodeName===Vc,d=!1;if(Zi(()=>{var g=t(...c.map(p)),b=Hc(e,l,g,s,i,a);d&&f&&"value"in g&&zo(e,g.value);for(let m of Object.getOwnPropertySymbols(u))g[m]||Me(u[m]);for(let m of Object.getOwnPropertySymbols(g)){var h=g[m];m.description===xl&&(!l||h!==l[m])&&(u[m]&&Me(u[m]),u[m]=Ue(()=>jc(e,()=>h))),b[m]=h}l=b}),f){var v=e;es(()=>{zo(v,l.value,!0),Gc(v)})}d=!0})}function is(e){return e.__attributes??(e.__attributes={[ga]:e.nodeName.includes("-"),[va]:e.namespaceURI===xi})}var Ns=new Map;function ma(e){var t=e.getAttribute("is")||e.nodeName,r=Ns.get(t);if(r)return r;Ns.set(t,r=[]);for(var n,o=e,s=Element.prototype;s!==o;){n=wi(o);for(var i in n)n[i].set&&r.push(i);o=Ho(o)}return r}function Eo(e,t,r=t){var n=new WeakSet;fc(e,"input",async o=>{var s=o?e.defaultValue:e.value;if(s=io(e)?ao(s):s,r(s),oe!==null&&n.add(oe),await ia(),s!==(s=t())){var i=e.selectionStart,a=e.selectionEnd,c=e.value.length;if(e.value=s??"",a!==null){var l=e.value.length;i===a&&a===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=i,e.selectionEnd=Math.min(a,l))}}}),Gr(t)==null&&e.value&&(r(io(e)?ao(e.value):e.value),oe!==null&&n.add(oe)),kn(()=>{var o=t();if(e===document.activeElement){var s=vo??oe;if(n.has(s))return}io(e)&&o===ao(e.value)||e.type==="date"&&!o&&!e.value||o!==e.value&&(e.value=o??"")})}function io(e){var t=e.type;return t==="number"||t==="range"}function ao(e){return e===""?null:+e}function Bs(e,t){return e===t||(e==null?void 0:e[bt])===t}function Uc(e={},t,r,n){return es(()=>{var o,s;return kn(()=>{o=s,s=[],Gr(()=>{e!==r(...s)&&(t(e,...s),o&&Bs(r(...o),e)&&t(null,...o))})}),()=>{xt(()=>{s&&Bs(r(...s),e)&&t(null,...s)})}}),e}let zn=!1;function Wc(e){var t=zn;try{return zn=!1,[e(),zn]}finally{zn=t}}const Zc={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 as(e,t,r){return new Proxy({props:e,exclude:t},Zc)}const Yc={get(e,t){if(!e.exclude.includes(t))return p(e.version),t in e.special?e.special[t]():e.props[t]},set(e,t,r){if(!(t in e.special)){var n=ue;try{et(e.parent_effect),e.special[t]=tt({get[t](){return e.props[t]}},t,mi)}finally{et(n)}}return e.special[t](r),Rs(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),Rs(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 Sh(e,t){return new Proxy({props:e,exclude:t,special:{},version:Xt(0),parent_effect:ue},Yc)}const Xc={get(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Zr(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 o=e.props[n];Zr(o)&&(o=o());const s=Ht(o,t);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(e,t){let r=e.props.length;for(;r--;){let n=e.props[r];if(Zr(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const o=Ht(n,t);return o&&!o.configurable&&(o.configurable=!0),o}}},has(e,t){if(t===bt||t===Si)return!1;for(let r of e.props)if(Zr(r)&&(r=r()),r!=null&&t in r)return!0;return!1},ownKeys(e){const t=[];for(let r of e.props)if(Zr(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 Ah(...e){return new Proxy({props:e},Xc)}function tt(e,t,r,n){var S;var o=!wn||(r&gl)!==0,s=(r&vl)!==0,i=(r&ml)!==0,a=n,c=!0,l=()=>(c&&(c=!1,a=i?Gr(n):n),a),u;if(s){var f=bt in e||Si in e;u=((S=Ht(e,t))==null?void 0:S.set)??(f&&t in e?_=>e[t]=_:void 0)}var d,v=!1;s?[d,v]=Wc(()=>e[t]):d=e[t],d===void 0&&n!==void 0&&(d=l(),u&&(o&&Pl(),u(d)));var g;if(o?g=()=>{var _=e[t];return _===void 0?l():(c=!0,_)}:g=()=>{var _=e[t];return _!==void 0&&(a=void 0),_===void 0?a:_},o&&(r&mi)===0)return g;if(u){var b=e.$$legacy;return(function(_,z){return arguments.length>0?((!o||!z||b||v)&&u(z?g():_),_):g()})}var h=!1,m=((r&hl)!==0?Jn:Xo)(()=>(h=!1,g()));s&&p(m);var w=ue;return(function(_,z){if(arguments.length>0){const y=z?p(m):o&&s?mt(_):_;return A(m,y),h=!0,a!==void 0&&(a=y),_}return Jt&&h||(w.f&It)!==0?m.v:p(m)})}var Jc=H('<button class="p-1.5 rounded hover:bg-secondary transition-colors md:hidden" aria-label="Close sidebar"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button>'),Kc=da('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground/40 shrink-0"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>'),Qc=H('<button><span class="text-muted-foreground/60 shrink-0">#</span> <span class="truncate flex-1"> </span> <!></button>'),eu=H('<div class="px-3 py-4 text-xs text-muted-foreground/60 text-center">No channels yet</div>'),tu=H('<span class="text-muted-foreground/30">WS</span>'),ru=H('<span class="text-muted-foreground/30"> </span>'),nu=H('<div class="flex flex-col h-full w-full bg-[oklch(0.13_0_0)] border-r border-border"><div class="flex items-center justify-between px-3 h-12 border-b border-border shrink-0"><span class="font-semibold text-sm truncate"> </span> <!></div> <div class="flex-1 overflow-y-auto py-2"><div class="px-3 mb-1 text-[10px] font-semibold text-muted-foreground uppercase tracking-wider">Channels</div> <!> <!></div> <button class="border-t border-border px-3 h-12 flex items-center gap-2 w-full hover:bg-secondary/50 transition-colors shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="5"></circle><path d="M20 21a8 8 0 0 0-16 0"></path></svg> <span> </span></button> <div class="border-t border-border px-3 py-2 flex items-center justify-between text-[10px] text-muted-foreground/50"><div class="flex items-center gap-1.5"><span></span> <span> </span> <!></div> <a href="https://zooid.dev" class="underline hover:text-muted-foreground/70">Zooid</a></div></div>');function Gs(e,t){rt(t,!0);const r={connected:"bg-primary",polling:"bg-primary",reconnecting:"bg-yellow-500",error:"bg-destructive",idle:"bg-muted-foreground",loading:"bg-muted-foreground"},n={connected:"Connected",polling:"Connected",reconnecting:"Reconnecting...",error:"Error",idle:"Idle",loading:"Loading..."};var o=nu(),s=E(o),i=E(s),a=E(i),c=j(i,2);{var l=W=>{var K=Jc();we("click",K,function(...P){var V;(V=t.onClose)==null||V.apply(this,P)}),$(W,K)};fe(c,W=>{t.onClose&&W(l)})}var u=j(s,2),f=j(E(u),2);Ft(f,17,()=>t.channels,W=>W.id,(W,K)=>{var P=Qc(),V=j(E(P),2),q=E(V),Z=j(V,2);{var T=X=>{var k=Kc();$(X,k)};fe(Z,X=>{p(K).is_public||X(T)})}ge(()=>{zt(P,1,`w-full text-left px-3 py-1.5 flex items-center gap-2 text-sm transition-colors
4
- ${t.selectedId===p(K).id?"bg-secondary text-foreground":"text-muted-foreground hover:text-foreground hover:bg-secondary/50"}`),he(q,p(K).name)}),we("click",P,()=>t.onSelect(p(K).id)),$(W,P)});var d=j(f,2);{var v=W=>{var K=eu();$(W,K)};fe(d,W=>{t.channels.length===0&&W(v)})}var g=j(u,2),b=E(g),h=j(b,2),m=E(h),w=j(g,2),S=E(w),_=E(S),z=j(_,2),y=E(z),M=j(z,2);{var C=W=>{var K=tu();$(W,K)},U=W=>{var K=ru(),P=E(K);ge(()=>he(P,`${t.pollInterval??""}s`)),$(W,K)};fe(M,W=>{t.status==="connected"?W(C):t.status==="polling"&&W(U,1)})}ge(()=>{he(a,t.serverName),fn(g,"title",t.hasAuth?"Authenticated":"Sign in"),zt(b,0,ha(t.hasAuth?"text-primary":"text-muted-foreground")),zt(h,1,`text-xs ${t.hasAuth?"text-foreground":"text-muted-foreground"}`),he(m,t.hasAuth?"Signed in":"Sign in"),zt(_,1,`inline-block w-1.5 h-1.5 rounded-full ${r[t.status]}`),he(y,n[t.status])}),we("click",g,function(...W){var K;(K=t.onAuthClick)==null||K.apply(this,W)}),$(e,o),nt()}yr(["click"]);var Ds=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,je=e=>!e||typeof e!="object"||Object.keys(e).length===0,ou=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function ba(e,t){e.forEach(function(r){Array.isArray(r)?ba(r,t):t.push(r)})}function xa(e){let t=[];return ba(e,t),t}var wa=(...e)=>xa(e).filter(Boolean),ya=(e,t)=>{let r={},n=Object.keys(e),o=Object.keys(t);for(let s of n)if(o.includes(s)){let i=e[s],a=t[s];Array.isArray(i)||Array.isArray(a)?r[s]=wa(a,i):typeof i=="object"&&typeof a=="object"?r[s]=ya(i,a):r[s]=a+" "+i}else r[s]=e[s];for(let s of o)n.includes(s)||(r[s]=t[s]);return r},Vs=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();const ls="-",su=e=>{const t=au(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(ls);return a[0]===""&&a.length!==1&&a.shift(),_a(a,t)||iu(i)},getConflictingClassGroupIds:(i,a)=>{const c=r[i]||[];return a&&n[i]?[...c,...n[i]]:c}}},_a=(e,t)=>{var i;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?_a(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(ls);return(i=t.validators.find(({validator:a})=>a(s)))==null?void 0:i.classGroupId},qs=/^\[(.+)\]$/,iu=e=>{if(qs.test(e)){const t=qs.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},au=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Mo(r[o],n,o,t);return n},Mo=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Fs(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(lu(o)){Mo(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{Mo(i,Fs(t,s),r,n)})})},Fs=(e,t)=>{let r=e;return t.split(ls).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},lu=e=>e.isThemeGetter,cu=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},Io="!",Po=":",uu=Po.length,du=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,c=0,l;for(let g=0;g<o.length;g++){let b=o[g];if(i===0&&a===0){if(b===Po){s.push(o.slice(c,g)),c=g+uu;continue}if(b==="/"){l=g;continue}}b==="["?i++:b==="]"?i--:b==="("?a++:b===")"&&a--}const u=s.length===0?o:o.substring(c),f=fu(u),d=f!==u,v=l&&l>c?l-c:void 0;return{modifiers:s,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:v}};if(t){const o=t+Po,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},fu=e=>e.endsWith(Io)?e.substring(0,e.length-1):e.startsWith(Io)?e.substring(1):e,pu=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},hu=e=>({cache:cu(e.cacheSize),parseClassName:du(e),sortModifiers:pu(e),...su(e)}),gu=/\s+/,vu=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(gu);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:d,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:b}=r(u);if(f){c=u+(c.length>0?" "+c:c);continue}let h=!!b,m=n(h?g.substring(0,b):g);if(!m){if(!h){c=u+(c.length>0?" "+c:c);continue}if(m=n(g),!m){c=u+(c.length>0?" "+c:c);continue}h=!1}const w=s(d).join(":"),S=v?w+Io:w,_=S+m;if(i.includes(_))continue;i.push(_);const z=o(m,h);for(let y=0;y<z.length;++y){const M=z[y];i.push(S+M)}c=u+(c.length>0?" "+c:c)}return c};function mu(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ka(t))&&(n&&(n+=" "),n+=r);return n}const ka=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=ka(e[n]))&&(r&&(r+=" "),r+=t);return r};function $o(e,...t){let r,n,o,s=i;function i(c){const l=t.reduce((u,f)=>f(u),e());return r=hu(l),n=r.cache.get,o=r.cache.set,s=a,a(c)}function a(c){const l=n(c);if(l)return l;const u=vu(c,r);return o(c,u),u}return function(){return s(mu.apply(null,arguments))}}const Te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Sa=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Aa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,bu=/^\d+\/\d+$/,xu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wu=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,yu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,_u=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ku=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Sr=e=>bu.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),tr=e=>!!e&&Number.isInteger(Number(e)),Hs=e=>e.endsWith("%")&&ae(e.slice(0,-1)),Gt=e=>xu.test(e),Su=()=>!0,Au=e=>wu.test(e)&&!yu.test(e),cs=()=>!1,Cu=e=>_u.test(e),Ru=e=>ku.test(e),Tu=e=>!N(e)&&!B(e),zu=e=>Dr(e,Ta,cs),N=e=>Sa.test(e),rr=e=>Dr(e,za,Au),lo=e=>Dr(e,Gu,ae),Eu=e=>Dr(e,Ca,cs),Mu=e=>Dr(e,Ra,Ru),Iu=e=>Dr(e,cs,Cu),B=e=>Aa.test(e),En=e=>Vr(e,za),Pu=e=>Vr(e,Du),$u=e=>Vr(e,Ca),Ou=e=>Vr(e,Ta),Lu=e=>Vr(e,Ra),ju=e=>Vr(e,Vu,!0),Dr=(e,t,r)=>{const n=Sa.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Vr=(e,t,r=!1)=>{const n=Aa.exec(e);return n?n[1]?t(n[1]):r:!1},Ca=e=>e==="position",Nu=new Set(["image","url"]),Ra=e=>Nu.has(e),Bu=new Set(["length","size","percentage"]),Ta=e=>Bu.has(e),za=e=>e==="length",Gu=e=>e==="number",Du=e=>e==="family-name",Vu=e=>e==="shadow",Oo=()=>{const e=Te("color"),t=Te("font"),r=Te("text"),n=Te("font-weight"),o=Te("tracking"),s=Te("leading"),i=Te("breakpoint"),a=Te("container"),c=Te("spacing"),l=Te("radius"),u=Te("shadow"),f=Te("inset-shadow"),d=Te("drop-shadow"),v=Te("blur"),g=Te("perspective"),b=Te("aspect"),h=Te("ease"),m=Te("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],_=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],y=()=>[B,N,c],M=()=>[Sr,"full","auto",...y()],C=()=>[tr,"none","subgrid",B,N],U=()=>["auto",{span:["full",tr,B,N]},B,N],W=()=>[tr,"auto",B,N],K=()=>["auto","min","max","fr",B,N],P=()=>["start","end","center","between","around","evenly","stretch","baseline"],V=()=>["start","end","center","stretch"],q=()=>["auto",...y()],Z=()=>[Sr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],T=()=>[e,B,N],X=()=>[Hs,rr],k=()=>["","none","full",l,B,N],Y=()=>["",ae,En,rr],se=()=>["solid","dashed","dotted","double"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>["","none",v,B,N],Q=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",B,N],de=()=>["none",ae,B,N],R=()=>["none",ae,B,N],O=()=>[ae,B,N],I=()=>[Sr,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gt],breakpoint:[Gt],color:[Su],container:[Gt],"drop-shadow":[Gt],ease:["in","out","in-out"],font:[Tu],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gt],shadow:[Gt],spacing:["px",ae],text:[Gt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Sr,N,B,b]}],container:["container"],columns:[{columns:[ae,N,B,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...S(),N,B]}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:M()}],"inset-x":[{"inset-x":M()}],"inset-y":[{"inset-y":M()}],start:[{start:M()}],end:[{end:M()}],top:[{top:M()}],right:[{right:M()}],bottom:[{bottom:M()}],left:[{left:M()}],visibility:["visible","invisible","collapse"],z:[{z:[tr,"auto",B,N]}],basis:[{basis:[Sr,"full","auto",a,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Sr,"auto","initial","none",N]}],grow:[{grow:["",ae,B,N]}],shrink:[{shrink:["",ae,B,N]}],order:[{order:[tr,"first","last","none",B,N]}],"grid-cols":[{"grid-cols":C()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":C()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":K()}],"auto-rows":[{"auto-rows":K()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:[...P(),"normal"]}],"justify-items":[{"justify-items":[...V(),"normal"]}],"justify-self":[{"justify-self":["auto",...V()]}],"align-content":[{content:["normal",...P()]}],"align-items":[{items:[...V(),"baseline"]}],"align-self":[{self:["auto",...V(),"baseline"]}],"place-content":[{"place-content":P()}],"place-items":[{"place-items":[...V(),"baseline"]}],"place-self":[{"place-self":["auto",...V()]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...Z()]}],h:[{h:["screen",...Z()]}],"min-h":[{"min-h":["screen","none",...Z()]}],"max-h":[{"max-h":["screen",...Z()]}],"font-size":[{text:["base",r,En,rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,B,lo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Hs,N]}],"font-family":[{font:[Pu,N,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,B,N]}],"line-clamp":[{"line-clamp":[ae,"none",B,lo]}],leading:[{leading:[s,...y()]}],"list-image":[{"list-image":["none",B,N]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,N]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",B,rr]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ae,"auto",B,N]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,N]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B,N]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...S(),$u,Eu]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Ou,zu]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tr,B,N],radial:["",B,N],conic:[tr,B,N]},Lu,Mu]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,B,N]}],"outline-w":[{outline:["",ae,En,rr]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",u,ju,Iu]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",B,N,f]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ae,rr]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":T()}],opacity:[{opacity:[ae,B,N]}],"mix-blend":[{"mix-blend":[...J(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none",B,N]}],blur:[{blur:F()}],brightness:[{brightness:[ae,B,N]}],contrast:[{contrast:[ae,B,N]}],"drop-shadow":[{"drop-shadow":["","none",d,B,N]}],grayscale:[{grayscale:["",ae,B,N]}],"hue-rotate":[{"hue-rotate":[ae,B,N]}],invert:[{invert:["",ae,B,N]}],saturate:[{saturate:[ae,B,N]}],sepia:[{sepia:["",ae,B,N]}],"backdrop-filter":[{"backdrop-filter":["","none",B,N]}],"backdrop-blur":[{"backdrop-blur":F()}],"backdrop-brightness":[{"backdrop-brightness":[ae,B,N]}],"backdrop-contrast":[{"backdrop-contrast":[ae,B,N]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,B,N]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,B,N]}],"backdrop-invert":[{"backdrop-invert":["",ae,B,N]}],"backdrop-opacity":[{"backdrop-opacity":[ae,B,N]}],"backdrop-saturate":[{"backdrop-saturate":[ae,B,N]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,B,N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,N]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",B,N]}],ease:[{ease:["linear","initial",h,B,N]}],delay:[{delay:[ae,B,N]}],animate:[{animate:["none",m,B,N]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,B,N]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:R()}],"scale-x":[{"scale-x":R()}],"scale-y":[{"scale-y":R()}],"scale-z":[{"scale-z":R()}],"scale-3d":["scale-3d"],skew:[{skew:O()}],"skew-x":[{"skew-x":O()}],"skew-y":[{"skew-y":O()}],transform:[{transform:[B,N,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:I()}],"translate-x":[{"translate-x":I()}],"translate-y":[{"translate-y":I()}],"translate-z":[{"translate-z":I()}],"translate-none":["translate-none"],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B,N]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B,N]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ae,En,rr,lo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},qu=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:s={}})=>(on(e,"cacheSize",t),on(e,"prefix",r),on(e,"experimentalParseClassName",n),Mn(e.theme,s.theme),Mn(e.classGroups,s.classGroups),Mn(e.conflictingClassGroups,s.conflictingClassGroups),Mn(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),on(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),In(e.theme,o.theme),In(e.classGroups,o.classGroups),In(e.conflictingClassGroups,o.conflictingClassGroups),In(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ea(e,o,"orderSensitiveModifiers"),e),on=(e,t,r)=>{r!==void 0&&(e[t]=r)},Mn=(e,t)=>{if(t)for(const r in t)on(e,r,t[r])},In=(e,t)=>{if(t)for(const r in t)Ea(e,t,r)},Ea=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Fu=(e,...t)=>typeof e=="function"?$o(Oo,e,...t):$o(()=>qu(Oo(),e),...t),Hu=$o(Oo);var Uu={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Ma=e=>e||void 0,pn=(...e)=>Ma(xa(e).filter(Boolean).join(" ")),co=null,kt={},Lo=!1,Kr=(...e)=>t=>t.twMerge?((!co||Lo)&&(Lo=!1,co=je(kt)?Hu:Fu({...kt,extend:{theme:kt.theme,classGroups:kt.classGroups,conflictingClassGroupModifiers:kt.conflictingClassGroupModifiers,conflictingClassGroups:kt.conflictingClassGroups,...kt.extend}})),Ma(co(pn(e)))):pn(e),Us=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=pn(e[r],t[r]):e[r]=t[r];return e},Ia=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=e,c={...Uu,...t},l=r!=null&&r.base?pn(r.base,e==null?void 0:e.base):e==null?void 0:e.base,u=r!=null&&r.variants&&!je(r.variants)?ya(o,r.variants):o,f=r!=null&&r.defaultVariants&&!je(r.defaultVariants)?{...r.defaultVariants,...a}:a;!je(c.twMergeConfig)&&!ou(c.twMergeConfig,kt)&&(Lo=!0,kt=c.twMergeConfig);let d=je(r==null?void 0:r.slots),v=je(n)?{}:{base:pn(e==null?void 0:e.base,d&&(r==null?void 0:r.base)),...n},g=d?v:Us({...r==null?void 0:r.slots},je(v)?{base:e==null?void 0:e.base}:v),b=je(r==null?void 0:r.compoundVariants)?s:wa(r==null?void 0:r.compoundVariants,s),h=w=>{if(je(u)&&je(n)&&d)return Kr(l,w==null?void 0:w.class,w==null?void 0:w.className)(c);if(b&&!Array.isArray(b))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof b}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let S=(P,V,q=[],Z)=>{let T=q;if(typeof V=="string")T=T.concat(Vs(V).split(" ").map(X=>`${P}:${X}`));else if(Array.isArray(V))T=T.concat(V.reduce((X,k)=>X.concat(`${P}:${k}`),[]));else if(typeof V=="object"&&typeof Z=="string"){for(let X in V)if(V.hasOwnProperty(X)&&X===Z){let k=V[X];if(k&&typeof k=="string"){let Y=Vs(k);T[Z]?T[Z]=T[Z].concat(Y.split(" ").map(se=>`${P}:${se}`)):T[Z]=Y.split(" ").map(se=>`${P}:${se}`)}else Array.isArray(k)&&k.length>0&&(T[Z]=k.reduce((Y,se)=>Y.concat(`${P}:${se}`),[]))}}return T},_=(P,V=u,q=null,Z=null)=>{var T;let X=V[P];if(!X||je(X))return null;let k=(T=Z==null?void 0:Z[P])!=null?T:w==null?void 0:w[P];if(k===null)return null;let Y=Ds(k),se=Array.isArray(c.responsiveVariants)&&c.responsiveVariants.length>0||c.responsiveVariants===!0,J=f==null?void 0:f[P],F=[];if(typeof Y=="object"&&se)for(let[R,O]of Object.entries(Y)){let I=X[O];if(R==="initial"){J=O;continue}Array.isArray(c.responsiveVariants)&&!c.responsiveVariants.includes(R)||(F=S(R,I,F,q))}let Q=Y!=null&&typeof Y!="object"?Y:Ds(J),de=X[Q||"false"];return typeof F=="object"&&typeof q=="string"&&F[q]?Us(F,de):F.length>0?(F.push(de),q==="base"?F.join(" "):F):de},z=()=>u?Object.keys(u).map(P=>_(P,u)):null,y=(P,V)=>{if(!u||typeof u!="object")return null;let q=new Array;for(let Z in u){let T=_(Z,u,P,V),X=P==="base"&&typeof T=="string"?T:T&&T[P];X&&(q[q.length]=X)}return q},M={};for(let P in w)w[P]!==void 0&&(M[P]=w[P]);let C=(P,V)=>{var q;let Z=typeof(w==null?void 0:w[P])=="object"?{[P]:(q=w[P])==null?void 0:q.initial}:{};return{...f,...M,...Z,...V}},U=(P=[],V)=>{let q=[];for(let{class:Z,className:T,...X}of P){let k=!0;for(let[Y,se]of Object.entries(X)){let J=C(Y,V)[Y];if(Array.isArray(se)){if(!se.includes(J)){k=!1;break}}else{let F=Q=>Q==null||Q===!1;if(F(se)&&F(J))continue;if(J!==se){k=!1;break}}}k&&(Z&&q.push(Z),T&&q.push(T))}return q},W=P=>{let V=U(b,P);if(!Array.isArray(V))return V;let q={};for(let Z of V)if(typeof Z=="string"&&(q.base=Kr(q.base,Z)(c)),typeof Z=="object")for(let[T,X]of Object.entries(Z))q[T]=Kr(q[T],X)(c);return q},K=P=>{if(i.length<1)return null;let V={};for(let{slots:q=[],class:Z,className:T,...X}of i){if(!je(X)){let k=!0;for(let Y of Object.keys(X)){let se=C(Y,P)[Y];if(se===void 0||(Array.isArray(X[Y])?!X[Y].includes(se):X[Y]!==se)){k=!1;break}}if(!k)continue}for(let k of q)V[k]=V[k]||[],V[k].push([Z,T])}return V};if(!je(n)||!d){let P={};if(typeof g=="object"&&!je(g))for(let V of Object.keys(g))P[V]=q=>{var Z,T;return Kr(g[V],y(V,q),((Z=W(q))!=null?Z:[])[V],((T=K(q))!=null?T:[])[V],q==null?void 0:q.class,q==null?void 0:q.className)(c)};return P}return Kr(l,z(),U(b),w==null?void 0:w.class,w==null?void 0:w.className)(c)},m=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return h.variantKeys=m(),h.extend=r,h.base=l,h.slots=g,h.variants=u,h.defaultVariants=f,h.compoundSlots=i,h.compoundVariants=b,h};const Wu=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},Zu=(e,t)=>({classGroupId:e,validator:t}),Pa=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Vn="-",Ws=[],Yu="arbitrary..",Xu=e=>{const t=Ku(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Ju(i);const a=i.split(Vn),c=a[0]===""&&a.length>1?1:0;return $a(a,c,t)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],l=r[i];return c?l?Wu(l,c):c:l||Ws}return r[i]||Ws}}},$a=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],s=r.nextPart.get(o);if(s){const l=$a(e,t+1,s);if(l)return l}const i=r.validators;if(i===null)return;const a=t===0?e.join(Vn):e.slice(t).join(Vn),c=i.length;for(let l=0;l<c;l++){const u=i[l];if(u.validator(a))return u.classGroupId}},Ju=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Yu+n:void 0})(),Ku=e=>{const{theme:t,classGroups:r}=e;return Qu(r,t)},Qu=(e,t)=>{const r=Pa();for(const n in e){const o=e[n];us(o,r,n,t)}return r},us=(e,t,r,n)=>{const o=e.length;for(let s=0;s<o;s++){const i=e[s];ed(i,t,r,n)}},ed=(e,t,r,n)=>{if(typeof e=="string"){td(e,t,r);return}if(typeof e=="function"){rd(e,t,r,n);return}nd(e,t,r,n)},td=(e,t,r)=>{const n=e===""?t:Oa(t,e);n.classGroupId=r},rd=(e,t,r,n)=>{if(od(e)){us(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(Zu(r,e))},nd=(e,t,r,n)=>{const o=Object.entries(e),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];us(c,Oa(t,a),r,n)}},Oa=(e,t)=>{let r=e;const n=t.split(Vn),o=n.length;for(let s=0;s<o;s++){const i=n[s];let a=r.nextPart.get(i);a||(a=Pa(),r.nextPart.set(i,a)),r=a}return r},od=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,sd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let i=r[s];if(i!==void 0)return i;if((i=n[s])!==void 0)return o(s,i),i},set(s,i){s in r?r[s]=i:o(s,i)}}},jo="!",Zs=":",id=[],Ys=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),ad=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,c=0,l;const u=o.length;for(let b=0;b<u;b++){const h=o[b];if(i===0&&a===0){if(h===Zs){s.push(o.slice(c,b)),c=b+1;continue}if(h==="/"){l=b;continue}}h==="["?i++:h==="]"?i--:h==="("?a++:h===")"&&a--}const f=s.length===0?o:o.slice(c);let d=f,v=!1;f.endsWith(jo)?(d=f.slice(0,-1),v=!0):f.startsWith(jo)&&(d=f.slice(1),v=!0);const g=l&&l>c?l-c:void 0;return Ys(s,v,d,g)};if(t){const o=t+Zs,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Ys(id,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},ld=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s<r.length;s++){const i=r[s],a=i[0]==="[",c=t.has(i);a||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},cd=e=>({cache:sd(e.cacheSize),parseClassName:ad(e),sortModifiers:ld(e),...Xu(e)}),ud=/\s+/,dd=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(ud);let c="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{isExternal:f,modifiers:d,hasImportantModifier:v,baseClassName:g,maybePostfixModifierPosition:b}=r(u);if(f){c=u+(c.length>0?" "+c:c);continue}let h=!!b,m=n(h?g.substring(0,b):g);if(!m){if(!h){c=u+(c.length>0?" "+c:c);continue}if(m=n(g),!m){c=u+(c.length>0?" "+c:c);continue}h=!1}const w=d.length===0?"":d.length===1?d[0]:s(d).join(":"),S=v?w+jo:w,_=S+m;if(i.indexOf(_)>-1)continue;i.push(_);const z=o(m,h);for(let y=0;y<z.length;++y){const M=z[y];i.push(S+M)}c=u+(c.length>0?" "+c:c)}return c},fd=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=La(r))&&(o&&(o+=" "),o+=n);return o},La=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=La(e[n]))&&(r&&(r+=" "),r+=t);return r},pd=(e,...t)=>{let r,n,o,s;const i=c=>{const l=t.reduce((u,f)=>f(u),e());return r=cd(l),n=r.cache.get,o=r.cache.set,s=a,a(c)},a=c=>{const l=n(c);if(l)return l;const u=dd(c,r);return o(c,u),u};return s=i,(...c)=>s(fd(...c))},hd=[],Ce=e=>{const t=r=>r[e]||hd;return t.isThemeGetter=!0,t},ja=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Na=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gd=/^\d+\/\d+$/,vd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,md=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ar=e=>gd.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),Dt=e=>!!e&&Number.isInteger(Number(e)),uo=e=>e.endsWith("%")&&te(e.slice(0,-1)),_t=e=>vd.test(e),Ba=()=>!0,yd=e=>md.test(e)&&!bd.test(e),ds=()=>!1,_d=e=>xd.test(e),kd=e=>wd.test(e),Sd=e=>!G(e)&&!D(e),Ad=e=>Kt(e,Va,ds),G=e=>ja.test(e),nr=e=>Kt(e,qa,yd),Xs=e=>Kt(e,Pd,te),Cd=e=>Kt(e,Ha,Ba),Rd=e=>Kt(e,Fa,ds),Js=e=>Kt(e,Ga,ds),Td=e=>Kt(e,Da,kd),Pn=e=>Kt(e,Ua,_d),D=e=>Na.test(e),Qr=e=>_r(e,qa),zd=e=>_r(e,Fa),Ks=e=>_r(e,Ga),Ed=e=>_r(e,Va),Md=e=>_r(e,Da),$n=e=>_r(e,Ua,!0),Id=e=>_r(e,Ha,!0),Kt=(e,t,r)=>{const n=ja.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},_r=(e,t,r=!1)=>{const n=Na.exec(e);return n?n[1]?t(n[1]):r:!1},Ga=e=>e==="position"||e==="percentage",Da=e=>e==="image"||e==="url",Va=e=>e==="length"||e==="size"||e==="bg-size",qa=e=>e==="length",Pd=e=>e==="number",Fa=e=>e==="family-name",Ha=e=>e==="number"||e==="weight",Ua=e=>e==="shadow",$d=()=>{const e=Ce("color"),t=Ce("font"),r=Ce("text"),n=Ce("font-weight"),o=Ce("tracking"),s=Ce("leading"),i=Ce("breakpoint"),a=Ce("container"),c=Ce("spacing"),l=Ce("radius"),u=Ce("shadow"),f=Ce("inset-shadow"),d=Ce("text-shadow"),v=Ce("drop-shadow"),g=Ce("blur"),b=Ce("perspective"),h=Ce("aspect"),m=Ce("ease"),w=Ce("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],z=()=>[..._(),D,G],y=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],C=()=>[D,G,c],U=()=>[Ar,"full","auto",...C()],W=()=>[Dt,"none","subgrid",D,G],K=()=>["auto",{span:["full",Dt,D,G]},Dt,D,G],P=()=>[Dt,"auto",D,G],V=()=>["auto","min","max","fr",D,G],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...C()],X=()=>[Ar,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],k=()=>[e,D,G],Y=()=>[..._(),Ks,Js,{position:[D,G]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",Ed,Ad,{size:[D,G]}],F=()=>[uo,Qr,nr],Q=()=>["","none","full",l,D,G],de=()=>["",te,Qr,nr],R=()=>["solid","dashed","dotted","double"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],I=()=>[te,uo,Ks,Js],be=()=>["","none",g,D,G],ye=()=>["none",te,D,G],$e=()=>["none",te,D,G],ot=()=>[te,D,G],De=()=>[Ar,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_t],breakpoint:[_t],color:[Ba],container:[_t],"drop-shadow":[_t],ease:["in","out","in-out"],font:[Sd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_t],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_t],shadow:[_t],spacing:["px",te],text:[_t],"text-shadow":[_t],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ar,G,D,h]}],container:["container"],columns:[{columns:[te,G,D,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:z()}],overflow:[{overflow:y()}],"overflow-x":[{"overflow-x":y()}],"overflow-y":[{"overflow-y":y()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[Dt,"auto",D,G]}],basis:[{basis:[Ar,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Ar,"auto","initial","none",G]}],grow:[{grow:["",te,D,G]}],shrink:[{shrink:["",te,D,G]}],order:[{order:[Dt,"first","last","none",D,G]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[a,"screen",...X()]}],"min-w":[{"min-w":[a,"screen","none",...X()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,Qr,nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Id,Cd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uo,G]}],"font-family":[{font:[zd,Rd,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,D,G]}],"line-clamp":[{"line-clamp":[te,"none",D,Xs]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",D,G]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",D,G]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",D,nr]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[te,"auto",D,G]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D,G]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D,G]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:se()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Dt,D,G],radial:["",D,G],conic:[Dt,D,G]},Md,Td]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...R(),"hidden","none"]}],"divide-style":[{divide:[...R(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...R(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,D,G]}],"outline-w":[{outline:["",te,Qr,nr]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",u,$n,Pn]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",f,$n,Pn]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[te,nr]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",d,$n,Pn]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[te,D,G]}],"mix-blend":[{"mix-blend":[...O(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":O()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":I()}],"mask-image-linear-to-pos":[{"mask-linear-to":I()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":I()}],"mask-image-t-to-pos":[{"mask-t-to":I()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":I()}],"mask-image-r-to-pos":[{"mask-r-to":I()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":I()}],"mask-image-b-to-pos":[{"mask-b-to":I()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":I()}],"mask-image-l-to-pos":[{"mask-l-to":I()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":I()}],"mask-image-x-to-pos":[{"mask-x-to":I()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":I()}],"mask-image-y-to-pos":[{"mask-y-to":I()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[D,G]}],"mask-image-radial-from-pos":[{"mask-radial-from":I()}],"mask-image-radial-to-pos":[{"mask-radial-to":I()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":I()}],"mask-image-conic-to-pos":[{"mask-conic-to":I()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:se()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",D,G]}],filter:[{filter:["","none",D,G]}],blur:[{blur:be()}],brightness:[{brightness:[te,D,G]}],contrast:[{contrast:[te,D,G]}],"drop-shadow":[{"drop-shadow":["","none",v,$n,Pn]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",te,D,G]}],"hue-rotate":[{"hue-rotate":[te,D,G]}],invert:[{invert:["",te,D,G]}],saturate:[{saturate:[te,D,G]}],sepia:[{sepia:["",te,D,G]}],"backdrop-filter":[{"backdrop-filter":["","none",D,G]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[te,D,G]}],"backdrop-contrast":[{"backdrop-contrast":[te,D,G]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,D,G]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,D,G]}],"backdrop-invert":[{"backdrop-invert":["",te,D,G]}],"backdrop-opacity":[{"backdrop-opacity":[te,D,G]}],"backdrop-saturate":[{"backdrop-saturate":[te,D,G]}],"backdrop-sepia":[{"backdrop-sepia":["",te,D,G]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",D,G]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",D,G]}],ease:[{ease:["linear","initial",m,D,G]}],delay:[{delay:[te,D,G]}],animate:[{animate:["none",w,D,G]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,D,G]}],"perspective-origin":[{"perspective-origin":z()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:$e()}],"scale-x":[{"scale-x":$e()}],"scale-y":[{"scale-y":$e()}],"scale-z":[{"scale-z":$e()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[D,G,"","none","gpu","cpu"]}],"transform-origin":[{origin:z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:De()}],"translate-x":[{"translate-x":De()}],"translate-y":[{"translate-y":De()}],"translate-z":[{"translate-z":De()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D,G]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D,G]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[te,Qr,nr,Xs]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Od=pd($d);function fs(...e){return Od(pa(e))}Ia({base:"inline-flex items-center rounded-md border px-2 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});var Ld=H("<div></div>");function jd(e,t){rt(t,!0);let r=tt(t,"orientation",3,"horizontal"),n=as(t,["$$slots","$$events","$$legacy","class","orientation"]);var o=Ld();ss(o,s=>({role:"separator","aria-orientation":r(),class:s,...n}),[()=>fs("shrink-0 bg-border",r()==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t.class)]),$(e,o),nt()}function Nd(e){const r=/Z|[+-]\d{2}:?\d{2}$/.test(e)?e:e+"Z";return new Date(r).toLocaleString()}function Bd(e){const r=/Z|[+-]\d{2}:?\d{2}$/.test(e)?e:e+"Z",n=Date.now()-new Date(r).getTime(),o=Math.floor(n/1e3);if(o<60)return`${o}s ago`;const s=Math.floor(o/60);if(s<60)return`${s}m ago`;const i=Math.floor(s/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}var Gd=H('<button class="p-1 rounded hover:bg-secondary transition-colors md:hidden shrink-0" aria-label="Open channels"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button>'),Dd=da('<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground/40"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg>'),Vd=H('<!> <span class="text-xs text-muted-foreground truncate hidden sm:block"> </span>',1),qd=H('<div class="flex items-center gap-3 px-4 h-12 border-b border-border shrink-0"><!> <span class="text-muted-foreground/60">#</span> <span class="font-semibold text-sm"> </span> <!> <!> <div class="ml-auto flex items-center gap-2"><span class="text-[10px] text-muted-foreground hidden sm:block"> </span> <div class="flex items-center bg-muted/50 rounded-md p-0.5 text-[11px]"><button>Pretty</button> <button></button></div></div></div>');function Fd(e,t){rt(t,!0);let r=tt(t,"viewMode",15,"pretty");var n=qd(),o=E(n);{var s=w=>{var S=Gd();we("click",S,function(..._){var z;(z=t.onMenuClick)==null||z.apply(this,_)}),$(w,S)};fe(o,w=>{t.onMenuClick&&w(s)})}var i=j(o,4),a=E(i),c=j(i,2);{var l=w=>{var S=Dd();$(w,S)};fe(c,w=>{t.channel.is_public||w(l)})}var u=j(c,2);{var f=w=>{var S=Vd(),_=ke(S);jd(_,{orientation:"vertical",class:"h-4"});var z=j(_,2),y=E(z);ge(()=>he(y,t.channel.description)),$(w,S)};fe(u,w=>{t.channel.description&&w(f)})}var d=j(u,2),v=E(d),g=E(v),b=j(v,2),h=E(b),m=j(h,2);m.textContent="{ }",ge(()=>{he(a,t.channel.name),he(g,`${t.channel.event_count??""} events`),zt(h,1,`px-2 py-0.5 rounded transition-colors ${r()==="pretty"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),zt(m,1,`px-2 py-0.5 rounded transition-colors font-mono ${r()==="raw"?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`)}),we("click",h,()=>r("pretty")),we("click",m,()=>r("raw")),$(e,n),nt()}yr(["click"]);function ps(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var kr=ps();function Wa(e){kr=e}var cn={exec:()=>null};function me(e,t=""){let r=typeof e=="string"?e:e.source;const n={replace:(o,s)=>{let i=typeof s=="string"?s:s.source;return i=i.replace(Oe.caret,"$1"),r=r.replace(o,i),n},getRegex:()=>new RegExp(r,t)};return n}var Oe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Hd=/^(?:[ \t]*(?:\n|$))+/,Ud=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Wd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,An=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Zd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hs=/(?:[*+-]|\d{1,9}[.)])/,Za=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ya=me(Za).replace(/bull/g,hs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Yd=me(Za).replace(/bull/g,hs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Xd=/^[^\n]+/,vs=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Jd=me(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vs).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kd=me(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hs).getRegex(),Qn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ms=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Qd=me("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ms).replace("tag",Qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xa=me(gs).replace("hr",An).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qn).getRegex(),ef=me(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xa).getRegex(),bs={blockquote:ef,code:Ud,def:Jd,fences:Wd,heading:Zd,hr:An,html:Qd,lheading:Ya,list:Kd,newline:Hd,paragraph:Xa,table:cn,text:Xd},Qs=me("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",An).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qn).getRegex(),tf={...bs,lheading:Yd,table:Qs,paragraph:me(gs).replace("hr",An).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Qs).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Qn).getRegex()},rf={...bs,html:me(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ms).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:cn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:me(gs).replace("hr",An).replace("heading",` *#{1,6} *[^
5
- ]`).replace("lheading",Ya).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},nf=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,of=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ja=/^( {2,}|\\)\n(?!\s*$)/,sf=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,eo=/[\p{P}\p{S}]/u,xs=/[\s\p{P}\p{S}]/u,Ka=/[^\s\p{P}\p{S}]/u,af=me(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,xs).getRegex(),Qa=/(?!~)[\p{P}\p{S}]/u,lf=/(?!~)[\s\p{P}\p{S}]/u,cf=/(?:[^\s\p{P}\p{S}]|~)/u,uf=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,el=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,df=me(el,"u").replace(/punct/g,eo).getRegex(),ff=me(el,"u").replace(/punct/g,Qa).getRegex(),tl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pf=me(tl,"gu").replace(/notPunctSpace/g,Ka).replace(/punctSpace/g,xs).replace(/punct/g,eo).getRegex(),hf=me(tl,"gu").replace(/notPunctSpace/g,cf).replace(/punctSpace/g,lf).replace(/punct/g,Qa).getRegex(),gf=me("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ka).replace(/punctSpace/g,xs).replace(/punct/g,eo).getRegex(),vf=me(/\\(punct)/,"gu").replace(/punct/g,eo).getRegex(),mf=me(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),bf=me(ms).replace("(?:-->|$)","-->").getRegex(),xf=me("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",bf).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),qn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,wf=me(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",qn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rl=me(/^!?\[(label)\]\[(ref)\]/).replace("label",qn).replace("ref",vs).getRegex(),nl=me(/^!?\[(ref)\](?:\[\])?/).replace("ref",vs).getRegex(),yf=me("reflink|nolink(?!\\()","g").replace("reflink",rl).replace("nolink",nl).getRegex(),ws={_backpedal:cn,anyPunctuation:vf,autolink:mf,blockSkip:uf,br:Ja,code:of,del:cn,emStrongLDelim:df,emStrongRDelimAst:pf,emStrongRDelimUnd:gf,escape:nf,link:wf,nolink:nl,punctuation:af,reflink:rl,reflinkSearch:yf,tag:xf,text:sf,url:cn},_f={...ws,link:me(/^!?\[(label)\]\((.*?)\)/).replace("label",qn).getRegex(),reflink:me(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",qn).getRegex()},No={...ws,emStrongRDelimAst:hf,emStrongLDelim:ff,url:me(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},kf={...No,br:me(Ja).replace("{2,}","*").getRegex(),text:me(No.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},On={normal:bs,gfm:tf,pedantic:rf},en={normal:ws,gfm:No,breaks:kf,pedantic:_f},Sf={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ei=e=>Sf[e];function ft(e,t){if(t){if(Oe.escapeTest.test(e))return e.replace(Oe.escapeReplace,ei)}else if(Oe.escapeTestNoEncode.test(e))return e.replace(Oe.escapeReplaceNoEncode,ei);return e}function ti(e){try{e=encodeURI(e).replace(Oe.percentDecode,"%")}catch{return null}return e}function ri(e,t){var s;const r=e.replace(Oe.findPipe,(i,a,c)=>{let l=!1,u=a;for(;--u>=0&&c[u]==="\\";)l=!l;return l?"|":" |"}),n=r.split(Oe.splitPipe);let o=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Oe.slashPipe,"|");return n}function tn(e,t,r){const n=e.length;if(n===0)return"";let o=0;for(;o<n&&e.charAt(n-o-1)===t;)o++;return e.slice(0,n-o)}function Af(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function ni(e,t,r,n,o){const s=t.href,i=t.title||null,a=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;const c={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:i,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,c}function Cf(e,t,r){const n=e.match(r.other.indentCodeCompensation);if(n===null)return t;const o=n[1];return t.split(`
6
- `).map(s=>{const i=s.match(r.other.beginningSpace);if(i===null)return s;const[a]=i;return a.length>=o.length?s.slice(o.length):s}).join(`
7
- `)}var Fn=class{constructor(e){ie(this,"options");ie(this,"rules");ie(this,"lexer");this.options=e||kr}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:tn(r,`
8
- `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Cf(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){const n=tn(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:tn(t[0],`
9
- `)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let r=tn(t[0],`
10
- `).split(`
11
- `),n="",o="";const s=[];for(;r.length>0;){let i=!1;const a=[];let c;for(c=0;c<r.length;c++)if(this.rules.other.blockquoteStart.test(r[c]))a.push(r[c]),i=!0;else if(!i)a.push(r[c]);else break;r=r.slice(c);const l=a.join(`
12
- `),u=l.replace(this.rules.other.blockquoteSetextReplace,`
13
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
14
- ${l}`:l,o=o?`${o}
15
- ${u}`:u;const f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,s,!0),this.lexer.state.top=f,r.length===0)break;const d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){const v=d,g=v.raw+`
16
- `+r.join(`
17
- `),b=this.blockquote(g);s[s.length-1]=b,n=n.substring(0,n.length-v.raw.length)+b.raw,o=o.substring(0,o.length-v.text.length)+b.text;break}else if((d==null?void 0:d.type)==="list"){const v=d,g=v.raw+`
18
- `+r.join(`
19
- `),b=this.list(g);s[s.length-1]=b,n=n.substring(0,n.length-d.raw.length)+b.raw,o=o.substring(0,o.length-v.raw.length)+b.raw,r=g.substring(s.at(-1).raw.length).split(`
20
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:o}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,o={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");const s=this.rules.other.listItemRegex(r);let i=!1;for(;e;){let c=!1,l="",u="";if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let f=t[2].split(`
21
- `,1)[0].replace(this.rules.other.listReplaceTabs,m=>" ".repeat(3*m.length)),d=e.split(`
22
- `,1)[0],v=!f.trim(),g=0;if(this.options.pedantic?(g=2,u=f.trimStart()):v?g=t[1].length+1:(g=t[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,u=f.slice(g),g+=t[1].length),v&&this.rules.other.blankLine.test(d)&&(l+=d+`
23
- `,e=e.substring(d.length+1),c=!0),!c){const m=this.rules.other.nextBulletRegex(g),w=this.rules.other.hrRegex(g),S=this.rules.other.fencesBeginRegex(g),_=this.rules.other.headingBeginRegex(g),z=this.rules.other.htmlBeginRegex(g);for(;e;){const y=e.split(`
24
- `,1)[0];let M;if(d=y,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),M=d):M=d.replace(this.rules.other.tabCharGlobal," "),S.test(d)||_.test(d)||z.test(d)||m.test(d)||w.test(d))break;if(M.search(this.rules.other.nonSpaceChar)>=g||!d.trim())u+=`
25
- `+M.slice(g);else{if(v||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(f)||_.test(f)||w.test(f))break;u+=`
26
- `+d}!v&&!d.trim()&&(v=!0),l+=y+`
27
- `,e=e.substring(y.length+1),f=M.slice(g)}}o.loose||(i?o.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(i=!0));let b=null,h;this.options.gfm&&(b=this.rules.other.listIsTask.exec(u),b&&(h=b[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:l,task:!!b,checked:h,loose:!1,text:u,tokens:[]}),o.raw+=l}const a=o.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){const l=o.items[c].tokens.filter(f=>f.type==="space"),u=l.length>0&&l.some(f=>this.rules.other.anyLine.test(f.raw));o.loose=u}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:o}}}table(e){var i;const t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;const r=ri(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(i=t[3])!=null&&i.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
28
- `):[],s={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(const a of o)s.rows.push(ri(a,s.header.length).map((c,l)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[l]})));return s}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
29
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const s=tn(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Af(t[2],"()");if(s===-2)return;if(s>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],o="";if(this.options.pedantic){const s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],o=s[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),ni(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=t[n.toLowerCase()];if(!o){const s=r[0].charAt(0);return{type:"text",raw:s,text:s}}return ni(r,o,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const s=[...n[0]].length-1;let i,a,c=s,l=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+s);(n=u.exec(t))!=null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(a=[...i].length,n[3]||n[4]){c+=a;continue}else if((n[5]||n[6])&&s%3&&!((s+a)%3)){l+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+l);const f=[...n[0]][0].length,d=e.slice(0,s+n.index+f+a);if(Math.min(s,a)%2){const g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}const v=d.slice(2,-2);return{type:"strong",raw:d,text:v,tokens:this.lexer.inlineTokens(v)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,o;if(t[2]==="@")n=t[0],o="mailto:"+n;else{let s;do s=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(s!==t[0]);n=t[0],t[1]==="www."?o="http://"+t[0]:o=t[0]}return{type:"link",raw:t[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},Et=class Bo{constructor(t){ie(this,"tokens");ie(this,"options");ie(this,"state");ie(this,"tokenizer");ie(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||kr,this.options.tokenizer=this.options.tokenizer||new Fn,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const r={other:Oe,block:On.normal,inline:en.normal};this.options.pedantic?(r.block=On.pedantic,r.inline=en.pedantic):this.options.gfm&&(r.block=On.gfm,this.options.breaks?r.inline=en.breaks:r.inline=en.gfm),this.tokenizer.rules=r}static get rules(){return{block:On,inline:en}}static lex(t,r){return new Bo(r).lex(t)}static lexInline(t,r){return new Bo(r).inlineTokens(t)}lex(t){t=t.replace(Oe.carriageReturn,`
30
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){const n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var o,s,i;for(this.options.pedantic&&(t=t.replace(Oe.tabCharGlobal," ").replace(Oe.spaceLine,""));t;){let a;if((s=(o=this.options.extensions)==null?void 0:o.block)!=null&&s.some(l=>(a=l.call({lexer:this},t,r))?(t=t.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);const l=r.at(-1);a.raw.length===1&&l!==void 0?l.raw+=`
31
- `:r.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=`
32
- `+a.raw,l.text+=`
33
- `+a.text,this.inlineQueue.at(-1).src=l.text):r.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="paragraph"||(l==null?void 0:l.type)==="text"?(l.raw+=`
34
- `+a.raw,l.text+=`
35
- `+a.raw,this.inlineQueue.at(-1).src=l.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title});continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),r.push(a);continue}let c=t;if((i=this.options.extensions)!=null&&i.startBlock){let l=1/0;const u=t.slice(1);let f;this.options.extensions.startBlock.forEach(d=>{f=d.call({lexer:this},u),typeof f=="number"&&f>=0&&(l=Math.min(l,f))}),l<1/0&&l>=0&&(c=t.substring(0,l+1))}if(this.state.top&&(a=this.tokenizer.paragraph(c))){const l=r.at(-1);n&&(l==null?void 0:l.type)==="paragraph"?(l.raw+=`
36
- `+a.raw,l.text+=`
37
- `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(a),n=c.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);const l=r.at(-1);(l==null?void 0:l.type)==="text"?(l.raw+=`
38
- `+a.raw,l.text+=`
39
- `+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):r.push(a);continue}if(t){const l="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var a,c,l;let n=t,o=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let s=!1,i="";for(;t;){s||(i=""),s=!1;let u;if((c=(a=this.options.extensions)==null?void 0:a.inline)!=null&&c.some(d=>(u=d.call({lexer:this},t,r))?(t=t.substring(u.raw.length),r.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=r.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):r.push(u);continue}if(u=this.tokenizer.emStrong(t,n,i)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),r.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),r.push(u);continue}let f=t;if((l=this.options.extensions)!=null&&l.startInline){let d=1/0;const v=t.slice(1);let g;this.options.extensions.startInline.forEach(b=>{g=b.call({lexer:this},v),typeof g=="number"&&g>=0&&(d=Math.min(d,g))}),d<1/0&&d>=0&&(f=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(f)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(i=u.raw.slice(-1)),s=!0;const d=r.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):r.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return r}},Hn=class{constructor(e){ie(this,"options");ie(this,"parser");this.options=e||kr}space(e){return""}code({text:e,lang:t,escaped:r}){var s;const n=(s=(t||"").match(Oe.notSpaceStart))==null?void 0:s[0],o=e.replace(Oe.endingNewline,"")+`
40
- `;return n?'<pre><code class="language-'+ft(n)+'">'+(r?o:ft(o,!0))+`</code></pre>
41
- `:"<pre><code>"+(r?o:ft(o,!0))+`</code></pre>
42
- `}blockquote({tokens:e}){return`<blockquote>
43
- ${this.parser.parse(e)}</blockquote>
44
- `}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
45
- `}hr(e){return`<hr>
46
- `}list(e){const t=e.ordered,r=e.start;let n="";for(let i=0;i<e.items.length;i++){const a=e.items[i];n+=this.listitem(a)}const o=t?"ol":"ul",s=t&&r!==1?' start="'+r+'"':"";return"<"+o+s+`>
47
- `+n+"</"+o+`>
48
- `}listitem(e){var r;let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?((r=e.tokens[0])==null?void 0:r.type)==="paragraph"?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=n+" "+ft(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
49
- `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
50
- `}table(e){let t="",r="";for(let o=0;o<e.header.length;o++)r+=this.tablecell(e.header[o]);t+=this.tablerow({text:r});let n="";for(let o=0;o<e.rows.length;o++){const s=e.rows[o];r="";for(let i=0;i<s.length;i++)r+=this.tablecell(s[i]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
51
- <thead>
52
- `+t+`</thead>
53
- `+n+`</table>
54
- `}tablerow({text:e}){return`<tr>
55
- ${e}</tr>
56
- `}tablecell(e){const t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
57
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ft(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){const n=this.parser.parseInline(r),o=ti(e);if(o===null)return n;e=o;let s='<a href="'+e+'"';return t&&(s+=' title="'+ft(t)+'"'),s+=">"+n+"</a>",s}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));const o=ti(e);if(o===null)return ft(r);e=o;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${ft(t)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ft(e.text)}},ys=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Mt=class Go{constructor(t){ie(this,"options");ie(this,"renderer");ie(this,"textRenderer");this.options=t||kr,this.options.renderer=this.options.renderer||new Hn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ys}static parse(t,r){return new Go(r).parse(t)}static parseInline(t,r){return new Go(r).parseInline(t)}parse(t,r=!0){var o,s;let n="";for(let i=0;i<t.length;i++){const a=t[i];if((s=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&s[a.type]){const l=a,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(l.type)){n+=u||"";continue}}const c=a;switch(c.type){case"space":{n+=this.renderer.space(c);continue}case"hr":{n+=this.renderer.hr(c);continue}case"heading":{n+=this.renderer.heading(c);continue}case"code":{n+=this.renderer.code(c);continue}case"table":{n+=this.renderer.table(c);continue}case"blockquote":{n+=this.renderer.blockquote(c);continue}case"list":{n+=this.renderer.list(c);continue}case"html":{n+=this.renderer.html(c);continue}case"paragraph":{n+=this.renderer.paragraph(c);continue}case"text":{let l=c,u=this.renderer.text(l);for(;i+1<t.length&&t[i+1].type==="text";)l=t[++i],u+=`
58
- `+this.renderer.text(l);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{const l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(t,r=this.renderer){var o,s;let n="";for(let i=0;i<t.length;i++){const a=t[i];if((s=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&s[a.type]){const l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=l||"";continue}}const c=a;switch(c.type){case"escape":{n+=r.text(c);break}case"html":{n+=r.html(c);break}case"link":{n+=r.link(c);break}case"image":{n+=r.image(c);break}case"strong":{n+=r.strong(c);break}case"em":{n+=r.em(c);break}case"codespan":{n+=r.codespan(c);break}case"br":{n+=r.br(c);break}case"del":{n+=r.del(c);break}case"text":{n+=r.text(c);break}default:{const l='Token with "'+c.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},fo,Bn=(fo=class{constructor(e){ie(this,"options");ie(this,"block");this.options=e||kr}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Et.lex:Et.lexInline}provideParser(){return this.block?Mt.parse:Mt.parseInline}},ie(fo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),fo),Rf=class{constructor(...e){ie(this,"defaults",ps());ie(this,"options",this.setOptions);ie(this,"parse",this.parseMarkdown(!0));ie(this,"parseInline",this.parseMarkdown(!1));ie(this,"Parser",Mt);ie(this,"Renderer",Hn);ie(this,"TextRenderer",ys);ie(this,"Lexer",Et);ie(this,"Tokenizer",Fn);ie(this,"Hooks",Bn);this.use(...e)}walkTokens(e,t){var n,o;let r=[];for(const s of e)switch(r=r.concat(t.call(this,s)),s.type){case"table":{const i=s;for(const a of i.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of i.rows)for(const c of a)r=r.concat(this.walkTokens(c.tokens,t));break}case"list":{const i=s;r=r.concat(this.walkTokens(i.items,t));break}default:{const i=s;(o=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&o[i.type]?this.defaults.extensions.childTokens[i.type].forEach(a=>{const c=i[a].flat(1/0);r=r.concat(this.walkTokens(c,t))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){const s=t.renderers[o.name];s?t.renderers[o.name]=function(...i){let a=o.renderer.apply(this,i);return a===!1&&(a=s.apply(this,i)),a}:t.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=t[o.level];s?s.unshift(o.tokenizer):t[o.level]=[o.tokenizer],o.start&&(o.level==="block"?t.startBlock?t.startBlock.push(o.start):t.startBlock=[o.start]:o.level==="inline"&&(t.startInline?t.startInline.push(o.start):t.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(t.childTokens[o.name]=o.childTokens)}),n.extensions=t),r.renderer){const o=this.defaults.renderer||new Hn(this.defaults);for(const s in r.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const i=s,a=r.renderer[i],c=o[i];o[i]=(...l)=>{let u=a.apply(o,l);return u===!1&&(u=c.apply(o,l)),u||""}}n.renderer=o}if(r.tokenizer){const o=this.defaults.tokenizer||new Fn(this.defaults);for(const s in r.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const i=s,a=r.tokenizer[i],c=o[i];o[i]=(...l)=>{let u=a.apply(o,l);return u===!1&&(u=c.apply(o,l)),u}}n.tokenizer=o}if(r.hooks){const o=this.defaults.hooks||new Bn;for(const s in r.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const i=s,a=r.hooks[i],c=o[i];Bn.passThroughHooks.has(s)?o[i]=l=>{if(this.defaults.async)return Promise.resolve(a.call(o,l)).then(f=>c.call(o,f));const u=a.call(o,l);return c.call(o,u)}:o[i]=(...l)=>{let u=a.apply(o,l);return u===!1&&(u=c.apply(o,l)),u}}n.hooks=o}if(r.walkTokens){const o=this.defaults.walkTokens,s=r.walkTokens;n.walkTokens=function(i){let a=[];return a.push(s.call(this,i)),o&&(a=a.concat(o.call(this,i))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Et.lex(e,t??this.defaults)}parser(e,t){return Mt.parse(e,t??this.defaults)}parseMarkdown(e){return(r,n)=>{const o={...n},s={...this.defaults,...o},i=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&o.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=e);const a=s.hooks?s.hooks.provideLexer():e?Et.lex:Et.lexInline,c=s.hooks?s.hooks.provideParser():e?Mt.parse:Mt.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(r):r).then(l=>a(l,s)).then(l=>s.hooks?s.hooks.processAllTokens(l):l).then(l=>s.walkTokens?Promise.all(this.walkTokens(l,s.walkTokens)).then(()=>l):l).then(l=>c(l,s)).then(l=>s.hooks?s.hooks.postprocess(l):l).catch(i);try{s.hooks&&(r=s.hooks.preprocess(r));let l=a(r,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let u=c(l,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(l){return i(l)}}}onError(e,t){return r=>{if(r.message+=`
59
- Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+ft(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},xr=new Rf;function ve(e,t){return xr.parse(e,t)}ve.options=ve.setOptions=function(e){return xr.setOptions(e),ve.defaults=xr.defaults,Wa(ve.defaults),ve};ve.getDefaults=ps;ve.defaults=kr;ve.use=function(...e){return xr.use(...e),ve.defaults=xr.defaults,Wa(ve.defaults),ve};ve.walkTokens=function(e,t){return xr.walkTokens(e,t)};ve.parseInline=xr.parseInline;ve.Parser=Mt;ve.parser=Mt.parse;ve.Renderer=Hn;ve.TextRenderer=ys;ve.Lexer=Et;ve.lexer=Et.lex;ve.Tokenizer=Fn;ve.Hooks=Bn;ve.parse=ve;ve.options;ve.setOptions;ve.use;ve.walkTokens;ve.parseInline;Mt.parse;Et.lex;ve.setOptions({breaks:!0,gfm:!0});const Tf=/[*_#\[`~>]|\n[-*] |\n\d+\. /;function zf(e){return Tf.test(e)}function oi(e){return ve.parse(e,{async:!1})}function Ef(e){try{const t=JSON.parse(e);return typeof t!="object"||t===null||Array.isArray(t)?null:Do(t)}catch{return null}}function Do(e){return Object.entries(e).map(([t,r])=>{if(typeof r=="object"&&r!==null&&!Array.isArray(r))return{kind:"group",key:t,children:Do(r)};if(Array.isArray(r)&&r.length>0)return{kind:"list",key:t,items:r.map(s=>typeof s=="object"&&s!==null&&!Array.isArray(s)?Do(s):[{kind:"text",key:"",value:String(s),markdown:!1,multiline:!1}])};const n=typeof r=="string"?r:JSON.stringify(r),o=n.includes(`
60
- `);return{kind:"text",key:t,value:n,markdown:zf(n),multiline:o}})}function or(e){return e.replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Mf(e){var t,r,n,o,s,i,a;const c=(t=e.meta)===null||t===void 0?void 0:t.title,l=(r=e.meta)===null||r===void 0?void 0:r.creator,u=(n=e.meta)===null||n===void 0?void 0:n.source,f=(s=(o=e.meta)===null||o===void 0?void 0:o.license)===null||s===void 0?void 0:s.url,d=If(e);return!c&&!l&&!u&&!f&&!d?"":'<metadata xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"><rdf:RDF><rdf:Description>'+(c?`<dc:title>${or(c)}</dc:title>`:"")+(l?`<dc:creator>${or(l)}</dc:creator>`:"")+(u?`<dc:source xsi:type="dcterms:URI">${or((a=(i=e.meta)===null||i===void 0?void 0:i.source)!==null&&a!==void 0?a:"")}</dc:source>`:"")+(f?`<dcterms:license xsi:type="dcterms:URI">${or(f)}</dcterms:license>`:"")+(d?`<dc:rights>${or(d)}</dc:rights>`:"")+"</rdf:Description></rdf:RDF></metadata>"}function If(e){var t,r,n,o,s,i,a,c,l,u,f,d,v,g,b;let h=!((t=e.meta)===null||t===void 0)&&t.title?`„${(r=e.meta)===null||r===void 0?void 0:r.title}”`:"Design",m=`„${(o=(n=e.meta)===null||n===void 0?void 0:n.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((s=e.meta)===null||s===void 0)&&s.source&&(h+=` (${e.meta.source})`);let w="";return((a=(i=e.meta)===null||i===void 0?void 0:i.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((c=e.meta)===null||c===void 0?void 0:c.creator)!=="DiceBear"&&(!((l=e.meta)===null||l===void 0)&&l.title)&&(w+="Remix of "),w+=`${h} by ${m}`,!((f=(u=e.meta)===null||u===void 0?void 0:u.license)===null||f===void 0)&&f.name&&(w+=`, licensed under „${(v=(d=e.meta)===null||d===void 0?void 0:d.license)===null||v===void 0?void 0:v.name}”`,!((b=(g=e.meta)===null||g===void 0?void 0:g.license)===null||b===void 0)&&b.url&&(w+=` (${e.meta.license.url})`)),w}const si=-2147483648,Pf=2147483647;function ol(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function $f(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0,t=ol(t);return t}function Un(e=""){e=e.toString();let t=$f(e)||1;const r=()=>t=ol(t),n=(o,s)=>Math.floor((r()-si)/(Pf-si)*(s+1-o)+o);return{seed:e,next:r,bool(o=50){return n(1,100)<=o},integer(o,s){return n(o,s)},pick(o,s){var i;return o.length===0?(r(),s):(i=o[n(0,o.length-1)])!==null&&i!==void 0?i:s},shuffle(o){const s=Un(r().toString()),i=[...o];for(let a=i.length-1;a>0;a--){const c=s.integer(0,a);[i[a],i[c]]=[i[c],i[a]]}return i},string(o,s="abcdefghijklmnopqrstuvwxyz1234567890"){const i=Un(r().toString());let a="";for(let c=0;c<o;c++)a+=s[i.integer(0,s.length-1)];return a}}}function qr(e){let t=e.attributes.viewBox.split(" "),r=parseInt(t[0]),n=parseInt(t[1]),o=parseInt(t[2]),s=parseInt(t[3]);return{x:r,y:n,width:o,height:s}}function Of(e,t,r,n,o){let{width:s,height:i,x:a,y:c}=qr(e);const l=`<rect fill="${t}" width="${s}" height="${i}" x="${a}" y="${c}" />`;switch(n){case"solid":return l+e.body;case"gradientLinear":return`<rect fill="url(#backgroundLinear)" width="${s}" height="${i}" x="${a}" y="${c}" /><defs><linearGradient id="backgroundLinear" gradientTransform="rotate(${o} 0.5 0.5)"><stop stop-color="${t}"/><stop offset="1" stop-color="${r}"/></linearGradient></defs>`+e.body}}function Lf(e,t){let{width:r,height:n,x:o,y:s}=qr(e),i=t?(t-100)/100:0,a=(r/2+o)*i*-1,c=(n/2+s)*i*-1;return`<g transform="translate(${a} ${c}) scale(${t/100})">${e.body}</g>`}function jf(e,t,r){let n=qr(e),o=(n.width+n.x*2)*((t??0)/100),s=(n.height+n.y*2)*((r??0)/100);return`<g transform="translate(${o} ${s})">${e.body}</g>`}function Nf(e,t){let{width:r,height:n,x:o,y:s}=qr(e);return`<g transform="rotate(${t}, ${r/2+o}, ${n/2+s})">${e.body}</g>`}function Bf(e){let{width:t,x:r}=qr(e);return`<g transform="scale(-1 1) translate(${t*-1-r*2} 0)">${e.body}</g>`}function Gf(e,t){let{width:r,height:n,x:o,y:s}=qr(e),i=t?r*t/100:0,a=t?n*t/100:0;return`<mask id="viewboxMask"><rect width="${r}" height="${n}" rx="${i}" ry="${a}" x="${o}" y="${s}" fill="#fff" /></mask><g mask="url(#viewboxMask)">${e.body}</g>`}function Df(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(r=>`${or(r)}="${or(t[r])}"`).join(" ")}function Vf(e){const t=Un(Math.random().toString()),r={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(n,o,s,i)=>(r[s]=r[s]||t.string(8),`${o}${r[s]}${i}`))}const qf={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function ii(e){var t;let r={},n=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(n).forEach(o=>{let s=n[o];typeof s=="object"&&s.default!==void 0&&(Array.isArray(s.default)?r[o]=[...s.default]:typeof s.default=="object"?r[o]={...s.default}:r[o]=s.default)}),r}function Ff(e,t){var r;let n={...ii(qf),...ii((r=e.schema)!==null&&r!==void 0?r:{}),...t};return JSON.parse(JSON.stringify(n))}function ai(e){return e==="transparent"?e:`#${e}`}function Hf(e,t,r){var n;let o=e.shuffle(t);o.length<=1||t.length==2&&r=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const s=o[0],i=(n=o[1])!==null&&n!==void 0?n:o[0];return{primary:ai(s),secondary:ai(i)}}function Uf(e,t={}){var r,n,o,s,i;t=Ff(e,t);const a=Un(t.seed),c=e.create({prng:a,options:t}),l=a.pick((r=t.backgroundType)!==null&&r!==void 0?r:[],"solid"),{primary:u,secondary:f}=Hf(a,(n=t.backgroundColor)!==null&&n!==void 0?n:[],l),d=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((s=t.backgroundRotation)===null||s===void 0)&&s.length?Math.max(...t.backgroundRotation):0);t.size&&(c.attributes.width=t.size.toString(),c.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(c.body=Lf(c,t.scale)),t.flip&&(c.body=Bf(c)),t.rotate&&(c.body=Nf(c,t.rotate)),(t.translateX||t.translateY)&&(c.body=jf(c,t.translateX,t.translateY)),u!=="transparent"&&f!=="transparent"&&(c.body=Of(c,u,f,l,d)),(t.radius||t.clip)&&(c.body=Gf(c,(i=t.radius)!==null&&i!==void 0?i:0)),t.randomizeIds&&(c.body=Vf(c));const v=Df(c),g=Mf(e),b=`<svg ${v}>${g}${c.body}</svg>`;return{toString:()=>b,toJson:()=>{var h;return{svg:b,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:f,backgroundType:l,backgroundRotation:d,...(h=c.extra)===null||h===void 0?void 0:h.call(c)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(b)}`}}const Wf={g:(e,t)=>'<path d="M101.6 51.2a20 20 0 0 0-14.7-14.5q-3.9-1-8.5-1-10 0-17 4.7A30 30 0 0 0 50.9 54q-3.6 9-3.6 21.6 0 12.8 3.5 21.8 3.4 9 10.3 14a29 29 0 0 0 17.2 4.8q9 0 15-2.6 6-2.7 9-7.5t3-11.4l6.8.7H78.7v-28h64.5v20q0 20-8.4 34.1a56 56 0 0 1-23.2 21.6Q97 150.7 78 150.7q-21.3 0-37.3-9t-25-25.8q-9-16.5-9-39.7a87 87 0 0 1 5.4-32 67 67 0 0 1 38-38q12.9-5 27.6-5 12.9 0 24 3.7 11.1 3.6 19.7 10.4a50 50 0 0 1 20.2 36z" fill="white"/>',r:(e,t)=>'<path d="M17.6 148.7V3.2h62.8q16.2 0 28.3 6 12 5.8 18.9 16.9a50 50 0 0 1 6.7 26.6q0 15.6-7 26.3A43 43 0 0 1 108 95.2q-12.5 5.5-29 5.5H41.3V70H71q7 0 11.8-1.7a15 15 0 0 0 7.6-5.6 17 17 0 0 0 2.7-10q0-6.3-2.7-10.2a15 15 0 0 0-7.6-5.8q-4.9-2-11.8-2H57v114zm85.2-66.8 36.4 66.8h-43L60.9 81.9z" fill="white"/>',a:(e,t)=>'<path d="M42.6 148.7H0L48 3.2h54l48 145.5h-42.7L75.5 43.3h-1.1zm-8-57.4h80.1v29.5h-80z" fill="white"/>',d:(e,t)=>'<path d="M67 148.7H11V3.2h55.4q22.5 0 38.8 8.8a60 60 0 0 1 25.3 25q9 16.2 9 39 0 22.6-9 39a61 61 0 0 1-25 25 81 81 0 0 1-38.5 8.7m-16.5-33.5h15a44 44 0 0 0 18.5-3.5q7.6-3.5 11.6-12t4-23.8q0-15-4-23.7a24 24 0 0 0-12-12 47 47 0 0 0-19.2-3.5H50.5z" fill="white"/>',i:(e,t)=>'<path d="M94.8 3.2v145.5H55.3V3.2z" fill="white"/>',e:(e,t)=>'<path d="M22.2 148.7V3.2H127V35H61.7v25h59.9v32h-60v25h65.1v31.8z" fill="white"/>',n:(e,t)=>'<path d="M138 3.2v145.5h-33L52.5 72.3h-1v76.4H12.2V3.2h33.5l51.7 76.2h1.2V3.2z" fill="white"/>',t:(e,t)=>'<path d="M11.7 35V3.2h126.5V35H94.4v113.7h-39V35z" fill="white"/>'},Zf={g:(e,t)=>'<path d="M101.6 51.1a20 20 0 0 0-14.7-14.5q-3.9-1-8.5-1.1-10 0-17 4.8A30 30 0 0 0 50.9 54q-3.6 9-3.6 21.6 0 12.8 3.5 21.8 3.4 9 10.3 14a29 29 0 0 0 17.2 4.8q9 0 15-2.6 6-2.7 9-7.5t3-11.4l6.8.7H78.7v-28h64.5v20q0 20-8.4 34.1a56 56 0 0 1-23.2 21.6Q97 150.6 78 150.6q-21.3 0-37.3-9t-25-25.8-9-39.7a87 87 0 0 1 5.4-32 67 67 0 0 1 38-38Q63 1 77.6 1q12.9 0 24 3.7 11.1 3.6 19.7 10.4a50 50 0 0 1 20.2 36z" fill="white"/>',r:(e,t)=>'<path d="M17.6 148.6V3h62.8q16.2 0 28.3 6 12 5.8 18.9 16.9a50 50 0 0 1 6.7 26.5q0 15.7-7 26.4A43 43 0 0 1 108 95q-12.5 5.5-29 5.5H41.3V69.9H71q7 0 11.8-1.7a15 15 0 0 0 7.6-5.6 17 17 0 0 0 2.7-10q0-6.3-2.7-10.2a15 15 0 0 0-7.6-5.8q-4.9-2-11.8-2H57v114zm85.2-66.8 36.4 66.8h-43L60.9 81.8z" fill="white"/>',a:(e,t)=>'<path d="M42.6 148.6H0L48 3h54l48 145.5h-42.7L75.5 43.2h-1.1zm-8-57.4h80.1v29.5h-80z" fill="white"/>',d:(e,t)=>'<path d="M67 148.6H11V3h55.4q22.5 0 38.8 8.7a60 60 0 0 1 25.3 25q9 16.4 9 39 0 22.8-9 39.1a61 61 0 0 1-25 25 81 81 0 0 1-38.5 8.7M50.5 115h15a44 44 0 0 0 18.5-3.4q7.6-3.6 11.6-12t4-23.8q0-15-4-23.7a24 24 0 0 0-12-12 47 47 0 0 0-19.2-3.5H50.5z" fill="white"/>',i:(e,t)=>'<path d="M94.8 3.1v145.5H55.3V3z" fill="white"/>',e:(e,t)=>'<path d="M22.2 148.6V3H127v32H61.7v25h59.9v31.8h-60v25h65.1v31.9z" fill="white"/>',n:(e,t)=>'<path d="M138 3.1v145.5h-33L52.5 72h-1v76.5H12.2V3h33.5l51.7 76.1h1.2v-76z" fill="white"/>',t:(e,t)=>'<path d="M11.7 35V3h126.5v32H94.4v113.7h-39V34.9z" fill="white"/>'},Yf=Object.freeze(Object.defineProperty({__proto__:null,shape1:Zf,shape2:Wf},Symbol.toStringTag,{value:"Module"}));function li({prng:e,group:t,width:r,height:n,values:o=[],rotation:s,offsetX:i,offsetY:a}){const c=Yf,l=e.pick(o),u=e.integer(Math.min(...s),Math.max(...s)),f=e.integer(Math.min(...i),Math.max(...i)),d=e.integer(Math.min(...a),Math.max(...a));if(l&&c[t][l])return{name:l,value(v,g){var b,h,m;let w=c[t][l](v,g);return(this.rotation||this.offsetX||this.offsetY)&&(w=`<g transform="translate(${(b=this.offsetX)!==null&&b!==void 0?b:0}, ${(h=this.offsetY)!==null&&h!==void 0?h:0}) rotate(${(m=this.rotation)!==null&&m!==void 0?m:0} ${r/2} ${n/2})">${w}</g>`),w},rotation:u,offsetX:f,offsetY:d}}function Xf({prng:e,options:t}){var r,n,o,s,i,a;const c=li({prng:e,group:"shape2",values:t.shape2,width:150,height:150,rotation:!((r=t.shape2Rotation)===null||r===void 0)&&r.length?t.shape2Rotation:[0],offsetX:!((n=t.shape2OffsetX)===null||n===void 0)&&n.length?t.shape2OffsetX:[0],offsetY:!((o=t.shape2OffsetY)===null||o===void 0)&&o.length?t.shape2OffsetY:[0]}),l=li({prng:e,group:"shape1",values:t.shape1,width:150,height:150,rotation:!((s=t.shape1Rotation)===null||s===void 0)&&s.length?t.shape1Rotation:[0],offsetX:!((i=t.shape1OffsetX)===null||i===void 0)&&i.length?t.shape1OffsetX:[0],offsetY:!((a=t.shape1OffsetY)===null||a===void 0)&&a.length?t.shape1OffsetY:[0]});return{shape2:c,shape1:l}}function Jf({prng:e,options:t}){return{}}const Kf={$schema:"http://json-schema.org/draft-07/schema#",properties:{backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"},default:["eb4747","eb6247","eb7e47","eb9947","ebb447","ebd047","ebeb47","d0eb47","b4eb47","99eb47","7eeb47","62eb47","47eb47","47eb62","47eb7e","47eb99","47ebb4","47ebd0","47ebeb","47d0eb","47b4eb","4799eb","477eeb","4762eb","4747eb","6247eb","7e47eb","9947eb","b447eb","d047eb","eb47eb","eb47d0","eb4799","eb477e","eb4762"]},shape1:{type:"array",items:{type:"string",enum:["g","r","a","d","i","e","n","t"]},default:["g","r","a","d","i","e","n","t"]},shape1OffsetX:{type:"array",items:{type:"integer",minimum:-80,maximum:80},maxItems:2,default:[-80,80]},shape1OffsetY:{type:"array",items:{type:"integer",minimum:-80,maximum:80},maxItems:2,default:[-80,80]},shape1Rotation:{type:"array",items:{type:"integer",minimum:-180,maximum:180},maxItems:2,default:[-180,180]},shape2:{type:"array",items:{type:"string",enum:["g","r","a","d","i","e","n","t"]},default:["g","r","a","d","i","e","n","t"]},shape2OffsetX:{type:"array",items:{type:"integer",minimum:-80,maximum:80},maxItems:2,default:[-80,80]},shape2OffsetY:{type:"array",items:{type:"integer",minimum:-80,maximum:80},maxItems:2,default:[-80,80]},shape2Rotation:{type:"array",items:{type:"integer",minimum:-160,maximum:160},maxItems:2,default:[-160,160]}}},Qf={title:"Glass",creator:"DiceBear",source:"https://www.dicebear.com",homepage:"https://www.dicebear.com",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},ep=({prng:e,options:t})=>{var r,n,o,s;const i=Xf({prng:e,options:t}),a=Jf({prng:e,options:t});return{attributes:{viewBox:"0 0 100 100",fill:"none","shape-rendering":"auto"},body:`<g style="mix-blend-mode:screen" opacity="0.6" filter="url(#dicebearGlass-a)"><g transform="translate(-25 -25)">${(n=(r=i.shape2)===null||r===void 0?void 0:r.value(i,a))!==null&&n!==void 0?n:""}</g></g><g style="mix-blend-mode:screen" opacity="0.6" filter="url(#dicebearGlass-b)"><g transform="translate(-25 -25)">${(s=(o=i.shape1)===null||o===void 0?void 0:o.value(i,a))!==null&&s!==void 0?s:""}</g></g><defs><filter id="dicebearGlass-a" x="-57" y="-57" width="214" height="214" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="16" result="effect1_foregroundBlur_25_7"/></filter><filter id="dicebearGlass-b" x="-57" y="-57" width="214" height="214" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"/><feGaussianBlur stdDeviation="16" result="effect1_foregroundBlur_25_7"/></filter></defs>`,extra:()=>({...Object.entries(i).reduce((c,[l,u])=>(c[l]=u==null?void 0:u.name,c),{}),...Object.entries(a).reduce((c,[l,u])=>(c[`${l}Color`]=u,c),{})})}},tp=Object.freeze(Object.defineProperty({__proto__:null,create:ep,meta:Qf,schema:Kf},Symbol.toStringTag,{value:"Module"}));var rp=H('<span class="inline-flex shrink-0 rounded-full overflow-hidden"><!></span>');function np(e,t){rt(t,!0);let r=tt(t,"size",3,24),n=Se(()=>s(t.event)),o=Se(()=>Uf(tp,{seed:p(n),size:r()}).toString());function s(c){const l=c.publisher_id,u=c.publisher_name;if(!l)return u??"anonymous";const f=l.indexOf(":"),d=f>0?l.slice(0,f):l,v=f>0?l.slice(f+1):null;return v?`${v}+${d}`:u?`${u}+${d}`:d}var i=rp(),a=E(i);To(a,()=>p(o)),ge(()=>Vt(i,`width: ${r()??""}px; height: ${r()??""}px`)),$(e,i),nt()}const Vo=(e,t=Gn,r=Gn)=>{var n=ln(),o=ke(n);{var s=l=>{var u=ap(),f=ke(u),d=E(f),v=E(d),g=j(f,2),b=E(g);{var h=w=>{var S=op(),_=E(S);To(_,()=>oi(t().value)),$(w,S)},m=w=>{var S=ln(),_=ke(S);Ft(_,17,()=>t().value.split(`
61
- `),rn,(z,y,M)=>{var C=ip(),U=ke(C);{var W=P=>{var V=sp();$(P,V)};fe(U,P=>{M>0&&P(W)})}var K=j(U,1,!0);ge(()=>he(K,p(y))),$(z,C)}),$(w,S)};fe(b,w=>{t().markdown?w(h):w(m,!1)})}ge(()=>{Vt(f,r()>0?`padding-left: ${r()*.75}rem`:""),he(v,t().key),Vt(g,`padding-left: ${(r()+1)*.75}rem`)}),$(l,u)},i=l=>{var u=up(),f=E(u);{var d=h=>{var m=lp(),w=ke(m),S=E(w);ge(()=>he(S,t().key)),$(h,m)};fe(f,h=>{t().key&&h(d)})}var v=j(f);{var g=h=>{var m=cp(),w=E(m);To(w,()=>oi(t().value)),$(h,m)},b=h=>{var m=Cr();ge(()=>he(m,t().value)),$(h,m)};fe(v,h=>{t().markdown?h(g):h(b,!1)})}ge(()=>Vt(u,r()>0?`padding-left: ${r()*.75}rem`:"")),$(l,u)},a=l=>{var u=dp(),f=ke(u),d=E(f),v=E(d),g=j(f,2);Ft(g,17,()=>t().children,rn,(b,h)=>{Vo(b,()=>p(h),()=>r()+1)}),ge(()=>{Vt(f,r()>0?`padding-left: ${r()*.75}rem`:""),he(v,t().key)}),$(l,u)},c=l=>{var u=pp(),f=ke(u),d=E(f),v=E(d),g=j(f,2);Ft(g,21,()=>t().items,rn,(b,h)=>{var m=fp(),w=E(m);{var S=z=>{var y=Cr();ge(()=>he(y,p(h)[0].value)),$(z,y)},_=z=>{var y=ln(),M=ke(y);Ft(M,17,()=>p(h),rn,(C,U)=>{Vo(C,()=>p(U),()=>r()+2)}),$(z,y)};fe(w,z=>{p(h).length===1&&p(h)[0].kind==="text"&&!p(h)[0].key?z(S):z(_,!1)})}$(b,m)}),ge(()=>{Vt(f,r()>0?`padding-left: ${r()*.75}rem`:""),he(v,t().key),Vt(g,`padding-left: ${(r()+1)*.75}rem`)}),$(l,u)};fe(o,l=>{t().kind==="text"&&t().multiline?l(s):t().kind==="text"?l(i,1):t().kind==="group"?l(a,2):l(c,!1)})}$(e,n)};var op=H('<span class="prose-inline"><!></span>'),sp=H("<br/>"),ip=H("<!> ",1),ap=H('<div><span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span></div> <div class="break-words overflow-wrap-anywhere text-foreground/70"><!></div>',1),lp=H('<span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span>',1),cp=H('<span class="prose-inline"><!></span>'),up=H('<div class="break-words overflow-wrap-anywhere"><!><!></div>'),dp=H('<div><span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span></div> <!>',1),fp=H('<li class="text-foreground/80"><!></li>'),pp=H('<div><span class="font-semibold text-foreground/90"> </span><span class="text-foreground/50">:</span></div> <ol class="list-decimal list-inside"></ol>',1),hp=H('<span class="text-[10px] font-mono text-muted-foreground/60 bg-secondary/60 px-1.5 py-0 rounded"> </span>'),gp=H('<button class="text-[10px] font-mono text-primary/60 hover:text-primary bg-primary/10 hover:bg-primary/20 px-1.5 py-0 rounded cursor-pointer transition-colors" title="Scroll to parent event">&#8593; reply</button>'),vp=H('<button class="text-[10px] text-muted-foreground/0 group-hover:text-muted-foreground/40 hover:!text-foreground transition-colors px-1" title="Reply"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 17 4 12 9 7"></polyline><path d="M20 18v-2a4 4 0 0 0-4-4H4"></path></svg></button>'),mp=H('<div class="text-sm text-foreground/80 flex flex-col gap-0.5 pl-0"></div>'),bp=H('<pre class="text-xs text-foreground/60 overflow-x-auto whitespace-pre-wrap break-all font-mono"> </pre>'),xp=H('<div><div class="text-muted-foreground mb-0.5">Type</div> <div class="text-foreground font-mono"> </div></div>'),wp=H('<div><div class="text-muted-foreground mb-0.5">Publisher</div> <div class="text-foreground"> </div></div>'),yp=H('<button type="button" class="fixed inset-0 bg-background/40 z-40" aria-label="Close detail panel"></button> <div class="fixed inset-y-0 right-0 w-72 max-w-[80vw] bg-card border-l border-border shadow-lg z-50 p-4 flex flex-col gap-3 animate-slide-in-right svelte-1i0f4p7"><div class="flex items-center justify-between"><h3 class="text-sm font-semibold">Event detail</h3> <button class="text-muted-foreground hover:text-foreground transition-colors" aria-label="Close"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div> <div class="flex flex-col gap-2 text-xs"><div><div class="text-muted-foreground mb-0.5">Created</div> <div class="text-foreground font-mono"> </div></div> <div><div class="text-muted-foreground mb-0.5">Event ID</div> <div class="text-foreground font-mono break-all select-all"> </div></div> <!> <!></div></div>',1),_p=H('<div class="group py-2 px-2 hover:bg-secondary/30 rounded transition-colors"><div class="flex items-center gap-2 mb-0.5"><!> <span class="font-semibold text-sm text-foreground"> </span> <!> <!> <div class="ml-auto shrink-0 flex items-center gap-1"><!> <button class="text-[10px] text-muted-foreground/40 hover:text-foreground transition-colors relative"> </button></div></div> <!></div> <!>',1);function kp(e,t){rt(t,!0);let r=tt(t,"viewMode",3,"pretty"),n=tt(t,"canReply",3,!1),o=Se(()=>f(t.event.data)),s=Se(()=>Ef(t.event.data)),i=Se(()=>Bd(t.event.created_at)),a=Se(()=>Nd(t.event.created_at)),c=Se(()=>g(t.event)),l=Se(()=>d(t.event.data)),u=re(!1);function f(J){try{return JSON.stringify(JSON.parse(J),null,2)}catch{return J}}function d(J){try{const F=JSON.parse(J);if(typeof F.in_reply_to=="string")return F.in_reply_to}catch{}return null}function v(J){const F=document.getElementById(`event-${J}`);F&&(F.scrollIntoView({behavior:"smooth",block:"center"}),F.classList.add("bg-primary/10"),setTimeout(()=>F.classList.remove("bg-primary/10"),1500))}function g(J){const F=J.publisher_id,Q=J.publisher_name;if(!Q&&!F)return null;const de=(F==null?void 0:F.indexOf(":"))??-1,R=de>0?F.slice(0,de):null;return Q&&(R&&R!=="local")?`${Q} (@${R})`:Q||F}function b(){A(u,!p(u))}function h(){A(u,!1)}var m=_p(),w=ke(m),S=E(w),_=E(S);np(_,{get event(){return t.event},size:20});var z=j(_,2),y=E(z),M=j(z,2);{var C=J=>{var F=hp(),Q=E(F);ge(()=>he(Q,t.event.type)),$(J,F)};fe(M,J=>{t.event.type&&J(C)})}var U=j(M,2);{var W=J=>{var F=gp();we("click",F,()=>v(p(l))),$(J,F)};fe(U,J=>{p(l)&&J(W)})}var K=j(U,2),P=E(K);{var V=J=>{var F=vp();we("click",F,()=>{var Q;return(Q=t.onReply)==null?void 0:Q.call(t,t.event.id)}),$(J,F)};fe(P,J=>{n()&&J(V)})}var q=j(P,2),Z=E(q),T=j(S,2);{var X=J=>{var F=mp();Ft(F,21,()=>p(s),rn,(Q,de)=>{Vo(Q,()=>p(de),()=>0)}),$(J,F)},k=J=>{var F=bp(),Q=E(F);ge(()=>he(Q,p(o))),$(J,F)};fe(T,J=>{r()==="pretty"&&p(s)?J(X):J(k,!1)})}var Y=j(w,2);{var se=J=>{var F=yp(),Q=ke(F),de=j(Q,2),R=E(de),O=j(E(R),2),I=j(R,2),be=E(I),ye=j(E(be),2),$e=E(ye),ot=j(be,2),De=j(E(ot),2),Qt=E(De),Ot=j(ot,2);{var Lt=yt=>{var er=xp(),Hr=j(E(er),2),Ur=E(Hr);ge(()=>he(Ur,t.event.type)),$(yt,er)};fe(Ot,yt=>{t.event.type&&yt(Lt)})}var jt=j(Ot,2);{var Fr=yt=>{var er=wp(),Hr=j(E(er),2),Ur=E(Hr);ge(()=>he(Ur,p(c))),$(yt,er)};fe(jt,yt=>{p(c)&&yt(Fr)})}ge(()=>{he($e,p(a)),he(Qt,t.event.id)}),we("click",Q,h),we("click",O,h),$(J,F)};fe(Y,J=>{p(u)&&J(se)})}ge(()=>{fn(w,"id",`event-${t.event.id??""}`),he(y,p(c)??"anonymous"),he(Z,p(i))}),we("click",q,b),$(e,m),nt()}yr(["click"]);var Sp=H('<div class="flex items-center justify-center h-32 text-sm text-muted-foreground">No events yet. Waiting for signals...</div>'),Ap=H('<div class="border-t border-border/30 mx-2"></div>'),Cp=H("<!> <!>",1),Rp=H('<div class="mt-auto"></div> <div class="flex flex-col pt-2 pb-4"></div>',1),Tp=H('<div class="flex-1 overflow-auto px-4 flex flex-col"><!></div>');function zp(e,t){rt(t,!0);let r=tt(t,"viewMode",3,"pretty"),n=tt(t,"canReply",3,!1),o=Se(()=>[...t.events].reverse()),s=re(void 0);Dn(()=>{t.events.length,p(s)&&ia().then(()=>{p(s).scrollTop=p(s).scrollHeight})});var i=Tp(),a=E(i);{var c=u=>{var f=Sp();$(u,f)},l=u=>{var f=Rp(),d=j(ke(f),2);Ft(d,23,()=>p(o),v=>v.id,(v,g,b)=>{var h=Cp(),m=ke(h);{var w=_=>{var z=Ap();$(_,z)};fe(m,_=>{p(b)>0&&_(w)})}var S=j(m,2);kp(S,{get event(){return p(g)},get viewMode(){return r()},get canReply(){return n()},get onReply(){return t.onReply}}),$(v,h)}),$(u,f)};fe(a,u=>{t.events.length===0?u(c):u(l,!1)})}Uc(i,u=>A(s,u),()=>p(s)),$(e,i),nt()}const Ep="modulepreload",Mp=function(e){return"/"+e},ci={},Ip=function(t,r,n){let o=Promise.resolve();if(r&&r.length>0){let i=function(l){return Promise.all(l.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=i(r.map(l=>{if(l=Mp(l),l in ci)return;ci[l]=!0;const u=l.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${f}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Ep,u||(d.as="script"),d.crossOrigin="",d.href=l,c&&d.setAttribute("nonce",c),document.head.appendChild(d),u)return new Promise((v,g)=>{d.addEventListener("load",v),d.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return o.then(i=>{for(const a of i||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})};var Pp=H("<button> </button>"),$p=H('<div class="absolute bottom-full left-0 mb-1 bg-popover border border-border rounded-md shadow-lg py-1 z-10 min-w-[120px]"></div>'),Op=H('<div class="relative"><button class="flex items-center gap-1 px-2 py-0.5 rounded text-[11px] bg-secondary text-muted-foreground hover:text-foreground transition-colors"><span class="font-mono"> </span> <svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"></path></svg></button> <!></div>'),Lp=H('<div class="flex items-center gap-1"><span class="text-[10px] text-muted-foreground/50">type:</span> <input type="text" class="bg-transparent border-none outline-none text-[11px] font-mono text-muted-foreground w-20 placeholder:text-muted-foreground/30" placeholder="message"/></div>'),jp=H('<div class="flex items-center gap-2 px-3 py-1 border-b border-border/50 text-[11px] text-muted-foreground"><svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 17 4 12 9 7"></polyline><path d="M20 18v-2a4 4 0 0 0-4-4H4"></path></svg> <span class="font-mono truncate"> </span> <button class="ml-auto text-muted-foreground/60 hover:text-foreground transition-colors" aria-label="Cancel reply"><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg></button></div>'),Np=H('<input type="text" class="w-full bg-transparent outline-none text-sm text-foreground placeholder:text-muted-foreground/40" autocomplete="off"/>'),Bp=H('<div class="text-sm text-muted-foreground/40 py-1">Loading editor...</div>'),Gp=H('<button type="button" class="fixed inset-0 z-5" aria-label="Close dropdown"></button>'),Dp=H('<div class="border-t border-border mx-4 mb-3 mt-1 mb-[calc(0.75rem+env(safe-area-inset-bottom))] rounded-lg border bg-secondary/30 max-h-[250px] flex flex-col"><div class="flex items-center gap-2 px-3 py-1.5 border-b border-border/50"><!></div> <!> <div class="px-3 py-2 flex-1 overflow-auto min-h-0"><!></div> <div class="flex items-center justify-between px-3 py-1.5 border-t border-border/50"><div class="flex items-center gap-1"></div> <button aria-label="Send"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"></path><path d="m21.854 2.147-10.94 10.939"></path></svg></button></div></div> <!>',1);function Vp(e,t){rt(t,!0);let r=tt(t,"replyTo",15,null),n=re(""),o=re(mt({json:{}})),s=re("message"),i=re(""),a=re(!1),c=re(!1),l=re(null);async function u(){if(!p(l)){const R=await Ip(()=>import("./json-editor-Bq4vRFHc.js"),__vite__mapDeps([0,1]));A(l,R.default,!0)}}let f=Se(()=>{const R=t.channel.config;if(!(R!=null&&R.types))return[];const O=Object.keys(R.types);return!R.strict&&O.length>0&&!O.includes("message")?[...O,"message"]:O}),d=Se(()=>p(f).length>0?p(s):p(i).trim()||"message"),v=Se(()=>{var O,I;if(!p(d))return null;const R=t.channel.config;return((I=(O=R==null?void 0:R.types)==null?void 0:O[p(d)])==null?void 0:I.schema)??null}),g=Se(()=>{var I;if(!p(v))return!1;const R=p(v).properties;if(!R)return!1;const O=Object.keys(R);return!(O.length===1&&((I=R[O[0]])==null?void 0:I.type)==="string")}),b=Se(()=>{if(p(g)||!p(v))return null;const R=p(v).properties;return R?Object.keys(R)[0]:null});function h(R){if(!R)return{};const O=R.properties;if(!O)return{};const I={};for(const[be,ye]of Object.entries(O))if(ye.default!==void 0)I[be]=ye.default;else if(ye.enum&&ye.enum.length>0)I[be]=ye.enum[0];else{const $e={string:"",number:0,boolean:!1,array:[],object:{}};I[be]=$e[ye.type??"string"]??""}return I}function m(R){var I,be;const O=t.channel.config;return((be=(I=O==null?void 0:O.types)==null?void 0:I[R])==null?void 0:be.schema)??null}let w=null;Dn(()=>{r()&&r()!==w&&A(s,"message"),w=r()});let S="",_="";Dn(()=>{const R=t.channel.id!==S,O=p(d)!==_;if(R){S=t.channel.id,A(n,""),A(i,"");const I=t.channel.config,be=I!=null&&I.types?Object.keys(I.types):[];A(s,be[0]??"message",!0)}if(R||O){_=p(d);const I=m(p(d));A(o,{json:h(I)},!0),p(g)&&u()}});async function z(R){if(!p(a)){A(a,!0);try{if(p(g)){let O;"json"in p(o)?O=p(o).json:"text"in p(o)&&(O=JSON.parse(p(o).text)),t.onPublish({type:p(d),data:O}),A(o,{json:h(p(v))},!0)}else{const O=p(n).trim();if(!O)return;let I;if(p(b))I={[p(b)]:O};else try{I=JSON.parse(O)}catch{I={body:O}}r()&&typeof I=="object"&&I!==null&&(I={...I,in_reply_to:r()}),t.onPublish({type:p(d),data:I}),A(n,""),r(null)}}catch{}finally{A(a,!1)}}}function y(R){R.key==="Enter"&&!R.shiftKey&&(R.preventDefault(),z())}function M(R){A(s,R,!0),A(c,!1)}var C=Dp(),U=ke(C),W=E(U),K=E(W);{var P=R=>{var O=Op(),I=E(O),be=E(I),ye=E(be),$e=j(I,2);{var ot=De=>{var Qt=$p();Ft(Qt,20,()=>p(f),Ot=>Ot,(Ot,Lt)=>{var jt=Pp(),Fr=E(jt);ge(()=>{zt(jt,1,`w-full text-left px-3 py-1 text-[11px] font-mono transition-colors
62
- ${p(d)===Lt?"bg-secondary text-foreground":"text-muted-foreground hover:text-foreground hover:bg-secondary/50"}`),he(Fr,Lt)}),we("click",jt,()=>M(Lt)),$(Ot,jt)}),$(De,Qt)};fe($e,De=>{p(c)&&De(ot)})}ge(()=>he(ye,p(d))),we("click",I,()=>A(c,!p(c))),$(R,O)},V=R=>{var O=Lp(),I=j(E(O),2);Eo(I,()=>p(i),be=>A(i,be)),$(R,O)};fe(K,R=>{p(f).length>0?R(P):R(V,!1)})}var q=j(W,2);{var Z=R=>{var O=jp(),I=j(E(O),2),be=E(I),ye=j(I,2);ge($e=>he(be,`Replying to ${$e??""}...`),[()=>r().slice(0,12)]),we("click",ye,()=>r(null)),$(R,O)};fe(q,R=>{r()&&R(Z)})}var T=j(q,2),X=E(T);{var k=R=>{var O=Np();ge(()=>fn(O,"placeholder",`Message #${t.channel.id??""}`)),we("keydown",O,y),Eo(O,()=>p(n),I=>A(n,I)),$(R,O)},Y=R=>{var O=ln(),I=ke(O);Lc(I,()=>p(l),(be,ye)=>{ye(be,{get schema(){return p(v)},get content(){return p(o)},set content($e){A(o,$e,!0)}})}),$(R,O)},se=R=>{var O=Bp();$(R,O)};fe(X,R=>{p(g)?p(l)?R(Y,1):R(se,!1):R(k)})}var J=j(T,2),F=j(E(J),2),Q=j(U,2);{var de=R=>{var O=Gp();we("click",O,()=>A(c,!1)),$(R,O)};fe(Q,R=>{p(c)&&R(de)})}ge((R,O)=>{zt(F,1,`flex items-center gap-1 px-2 py-1 rounded text-xs transition-colors
63
- ${R??""}`),F.disabled=O},[()=>(p(g)||p(n).trim())&&!p(a)?"text-foreground hover:bg-secondary":"text-muted-foreground/30 cursor-default",()=>!p(g)&&!p(n).trim()||p(a)]),we("click",F,()=>z()),$(e,C),nt()}yr(["click","keydown"]);const qp=Ia({base:"inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}});var Fp=H("<button><!></button>");function Ln(e,t){rt(t,!0);let r=tt(t,"variant",3,"default"),n=tt(t,"size",3,"default"),o=as(t,["$$slots","$$events","$$legacy","class","variant","size","children"]);var s=Fp();ss(s,a=>({class:a,...o}),[()=>fs(qp({variant:r(),size:n()}),t.class)]);var i=E(s);Ic(i,()=>t.children??Gn),$(e,s),nt()}var Hp=H("<input/>");function Up(e,t){rt(t,!0);let r=tt(t,"value",15),n=as(t,["$$slots","$$events","$$legacy","class","value"]);var o=Hp();ss(o,s=>({class:s,...n}),[()=>fs("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t.class)],void 0,void 0,void 0,!0),Eo(o,r),$(e,o),nt()}var Wp=H('<div class="bg-secondary rounded-md px-3 py-2 mb-4"><div class="text-sm font-medium text-foreground"> </div> <div class="text-xs text-muted-foreground mt-1 font-mono"> </div></div> <div class="flex gap-2"><!> <!></div>',1),Zp=H('<p class="text-xs text-destructive"> </p>'),Yp=H('<form class="flex flex-col gap-3"><!> <!> <div class="flex gap-2"><!> <!></div></form>'),Xp=H('<div class="fixed inset-0 bg-background/80 backdrop-blur-sm z-50 flex items-center justify-center p-4" role="dialog" aria-modal="true" aria-label="Authentication" tabindex="-1"><div class="bg-card border border-border rounded-lg shadow-lg w-full max-w-sm p-6"><h2 class="font-semibold text-sm mb-1">Authentication</h2> <p class="text-xs text-muted-foreground mb-4">Paste an admin or publish token to unlock channels and publishing.</p> <!></div></div>');function Jp(e,t){rt(t,!0);let r=re(""),n=re(""),o=re(!1);async function s(f){f.preventDefault();const d=p(r).trim();if(!(!d||p(o))){A(n,""),A(o,!0);try{await t.onSave(d)?A(r,""):A(n,"Invalid token. Check that it is correct and not expired.")}catch{A(n,"Failed to validate token. Is the server reachable?")}finally{A(o,!1)}}}function i(f){f.target===f.currentTarget&&t.onClose()}function a(f){f.key==="Escape"&&t.onClose()}Dn(()=>{t.open&&A(n,"")});var c=ln(),l=ke(c);{var u=f=>{var d=Xp(),v=E(d),g=j(E(v),4);{var b=m=>{var w=Wp(),S=ke(w),_=E(S),z=E(_),y=j(_,2),M=E(y),C=j(S,2),U=E(C);Ln(U,{variant:"destructive",size:"sm",class:"flex-1",get onclick(){return t.onLogout},children:(K,P)=>{var V=Cr("Sign out");$(K,V)},$$slots:{default:!0}});var W=j(U,2);Ln(W,{variant:"outline",size:"sm",class:"flex-1",get onclick(){return t.onClose},children:(K,P)=>{var V=Cr("Close");$(K,V)},$$slots:{default:!0}}),ge(K=>{he(z,`Signed in as ${(t.claims.name||t.claims.sub||"Unknown")??""}`),he(M,K)},[()=>t.claims.scopes.join(", ")]),$(m,w)},h=m=>{var w=Yp(),S=E(w);Up(S,{type:"text",placeholder:"eyJhbGci...",oninput:()=>A(n,""),autocomplete:"off",spellcheck:"false",get value(){return p(r)},set value(U){A(r,U,!0)}});var _=j(S,2);{var z=U=>{var W=Zp(),K=E(W);ge(()=>he(K,p(n))),$(U,W)};fe(_,U=>{p(n)&&U(z)})}var y=j(_,2),M=E(y);{let U=Se(()=>!p(r).trim()||p(o));Ln(M,{type:"submit",size:"sm",class:"flex-1",get disabled(){return p(U)},children:(W,K)=>{var P=Cr();ge(()=>he(P,p(o)?"Verifying...":"Sign in")),$(W,P)},$$slots:{default:!0}})}var C=j(M,2);Ln(C,{variant:"outline",size:"sm",class:"flex-1",get onclick(){return t.onClose},children:(U,W)=>{var K=Cr("Cancel");$(U,K)},$$slots:{default:!0}}),xc("submit",w,s),$(m,w)};fe(g,m=>{t.currentToken&&t.claims?m(b):m(h,!1)})}we("click",d,i),we("keydown",d,a),$(f,d)};fe(l,f=>{t.open&&f(u)})}$(e,c),nt()}yr(["click","keydown"]);function Cn(e){const t={};return e&&(t.Authorization=`Bearer ${e}`),t}async function Kp(e,t){const r=await fetch(`${e}/api/v1/channels`,{headers:Cn(t)});return r.ok?(await r.json()).channels:[]}async function ui(e,t,r){const n=await fetch(`${e}/api/v1/channels`,{headers:Cn(r)});return n.ok?(await n.json()).channels.find(s=>s.id===t)??null:null}const di={server_name:"Zooid",server_description:null,poll_interval:5,delivery:["poll"]};async function fi(e){try{const t=await fetch(`${e}/.well-known/zooid.json`);if(!t.ok)return di;const r=await t.json();return{server_name:r.server_name??"Zooid",server_description:r.server_description??null,poll_interval:r.poll_interval??5,delivery:Array.isArray(r.delivery)?r.delivery:["poll"],auth_url:r.auth_url??void 0}}catch{return di}}async function Qp(e,t){try{const r=await fetch(`${e}/api/v1/tokens/claims`,{headers:Cn(t)});return r.ok?r.json():null}catch{return null}}async function eh(e,t,r,n){return(await fetch(`${e}/api/v1/channels/${t}/events`,{method:"POST",headers:{...Cn(n),"Content-Type":"application/json"},body:JSON.stringify(r)})).ok}async function th(e){try{const t=await fetch(`${e}/api/v1/auth/refresh`,{method:"POST",credentials:"include"});return t.ok?t.json():null}catch{return null}}async function rh(e){try{await fetch(`${e}/api/v1/auth/logout`,{method:"POST",credentials:"include"})}catch{}}async function nh(e,t,r){const n=new URLSearchParams;r.cursor&&n.set("cursor",r.cursor),r.since&&n.set("since",r.since),n.set("limit",String(r.limit));const o=n.toString(),s=`${e}/api/v1/channels/${t}/events${o?`?${o}`:""}`,i=await fetch(s,{headers:Cn(r.token)});return i.ok?i.json():{events:[],cursor:null,has_more:!1}}var oh=H('<button type="button" class="fixed inset-0 bg-background/60 z-40 md:hidden" aria-label="Close sidebar"></button> <div class="fixed inset-y-0 left-0 w-60 z-50 md:hidden"><!></div>',1),sh=H(`<div class="border-t border-border mx-4 mb-3 mt-1 mb-[calc(0.75rem+env(safe-area-inset-bottom))] px-3 py-2 rounded-lg border bg-secondary/20 text-xs text-muted-foreground/50 text-center">You don't have publish access to this channel</div>`),ih=H("<!> <!> <!>",1),ah=H('<div class="flex-1 flex flex-col"><div class="flex items-center gap-3 px-4 h-12 border-b border-border"><button class="p-1 rounded hover:bg-secondary transition-colors md:hidden" aria-label="Open channels"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <span class="text-sm text-muted-foreground"> </span></div></div>'),lh=H('<div class="flex-1 flex flex-col items-center justify-center text-muted-foreground"><button class="p-2 rounded hover:bg-secondary transition-colors md:hidden mb-4" aria-label="Open channels"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="4" x2="20" y1="12" y2="12"></line><line x1="4" x2="20" y1="6" y2="6"></line><line x1="4" x2="20" y1="18" y2="18"></line></svg></button> <p class="text-sm">Select a channel</p> <p class="text-xs text-muted-foreground/60 mt-1">or create one with <code class="text-foreground/80">npx zooid channel create</code></p></div>'),ch=H('<div class="flex h-dvh w-full overflow-hidden"><div class="hidden md:flex w-60 shrink-0"><!></div> <!> <div class="flex-1 flex flex-col min-w-0"><!></div></div> <!>',1);function uh(e,t){rt(t,!0);const r=60,n=[0,1e3,2e3,4e3,8e3],o=window.location.origin;let s=re(mt(localStorage.getItem("zooid_token")??"")),i=re(null),a=re(!1),c=re(mt([])),l=re(null),u=re(null),f=re(mt([])),d=re("pretty"),v=re("idle"),g=re(null),b=re(null),h=re(5),m=re(null),w=0,S=null,_=re("Zooid"),z=re(void 0),y=re(null),M=re(null),C=re(!1);const U=new Set;let W=Se(()=>{if(!p(i)||!p(l))return!1;const L=p(i).scopes;return L.includes("admin")?!0:L.some(ee=>ee===`pub:${p(l)}`||ee==="pub:*"||ee.endsWith("*")&&ee.startsWith("pub:")&&p(l).startsWith(ee.slice(4,-1)))}),K=Se(()=>{var ee;if(!p(W)||!p(u))return!1;const L=p(u).config;return L!=null&&L.strict?!!((ee=L==null?void 0:L.types)!=null&&ee.message):!0});function P(L){A(M,L,!0)}const q=window.location.pathname.match(/^\/([a-z0-9][a-z0-9-]{1,62}[a-z0-9])$/);q&&A(l,q[1],!0);async function Z(){var pe;const L=localStorage.getItem("zooid_token");L&&L!==p(s)&&A(s,L,!0);const[ee]=await Promise.all([fi(o),T(),p(s)?X():Promise.resolve()]);A(_,ee.server_name,!0),A(h,ee.poll_interval,!0),A(z,ee.auth_url,!0),(pe=p(i))!=null&&pe.exp&&ye(),p(l)&&k(p(l))}async function T(){A(c,await Kp(o,p(s)||void 0),!0)}async function X(){if(!p(s)){A(i,null);return}A(i,await Qp(o,p(s)),!0),p(i)||(A(s,""),localStorage.removeItem("zooid_token"))}function k(L){p(l)===L&&p(u)||(A(l,L,!0),A(C,!1),window.history.pushState({},"",`/${L}`),document.title=`${L} — Zooid`,se())}function Y(){p(b)&&(clearInterval(p(b)),A(b,null)),S&&(clearTimeout(S),S=null),p(m)&&(p(m).close(),A(m,null)),U.clear(),A(f,[],!0),A(g,null),A(M,null)}async function se(){if(!p(l))return;Y(),A(v,"loading");const L=await ui(o,p(l),p(s)||void 0);if(!L){A(u,null),A(v,"idle");return}A(u,L,!0),document.title=`${L.name} — Zooid`,R(p(l),p(s)||void 0),await J();const ee=await fi(o);ee.delivery.includes("websocket")&&ee.poll_interval<=r?Q():(A(h,ee.poll_interval,!0),F())}async function J(){var L;if(p(l))try{const ee=await nh(o,p(l),{cursor:p(g)??void 0,token:p(s)||void 0,limit:50});if(ee.events.length>0){const Ae=ee.events.slice().reverse().filter(Le=>!U.has(Le.id));for(const Le of Ae)U.add(Le.id);p(g)&&Ae.length>0?A(f,[...Ae,...p(f)],!0):p(g)||A(f,Ae,!0),A(g,((L=ee.events[ee.events.length-1])==null?void 0:L.id)??p(g),!0)}}catch{A(v,"error")}}function F(){p(b)&&clearInterval(p(b)),A(v,"polling"),A(b,setInterval(async()=>{if(p(l)){const L=await ui(o,p(l),p(s)||void 0);L&&A(u,L,!0)}await J(),A(v,"polling")},p(h)*1e3),!0)}function Q(){if(!p(l))return;const L=window.location.protocol==="https:"?"wss:":"ws:",ee=new URL(`${L}//${window.location.host}/api/v1/channels/${p(l)}/ws`);p(s)&&ee.searchParams.set("token",p(s));const pe=new WebSocket(ee.toString());pe.addEventListener("open",()=>{A(v,"connected"),w=0,J()}),pe.addEventListener("message",Ae=>{try{const Le=JSON.parse(Ae.data);if(U.has(Le.id))return;U.add(Le.id),A(f,[Le,...p(f)],!0),A(g,Le.id,!0)}catch{}}),pe.addEventListener("close",()=>{A(m,null),de()}),pe.addEventListener("error",()=>{}),A(m,pe,!0)}function de(){if(w>=n.length){F();return}A(v,"reconnecting");const L=n[w];w++,S=setTimeout(()=>{S=null,Q()},L)}function R(L,ee){let pe=document.querySelector('link[rel="alternate"][type="application/rss+xml"]');pe||(pe=document.createElement("link"),pe.rel="alternate",pe.type="application/rss+xml",document.head.appendChild(pe)),pe.href=ee?`${o}/api/v1/channels/${L}/rss?token=${ee}`:`${o}/api/v1/channels/${L}/rss`,pe.title=`${L} RSS Feed`}function O(){if(p(i)){A(a,!0);return}if(p(z)){window.location.href=p(z);return}A(a,!0)}async function I(L){return A(s,L,!0),localStorage.setItem("zooid_token",L),await X(),p(i)?(A(a,!1),p(i).exp&&ye(),await T(),p(l)&&se(),!0):!1}async function be(){p(y)&&(clearInterval(p(y)),A(y,null)),await rh(o),A(s,""),A(i,null),localStorage.removeItem("zooid_token"),A(a,!1),T(),p(l)&&se()}function ye(){p(y)&&clearInterval(p(y)),A(y,setInterval(async()=>{var pe;if(!((pe=p(i))!=null&&pe.exp))return;const L=Math.floor(Date.now()/1e3);if(p(i).exp-L<120){const Ae=await th(o);Ae!=null&&Ae.token?(A(s,Ae.token,!0),localStorage.setItem("zooid_token",p(s)),await X()):be()}},3e4),!0)}async function $e(L){if(!p(l)||!p(s))return;await eh(o,p(l),L,p(s))&&await J()}window.addEventListener("popstate",()=>{const L=window.location.pathname.match(/^\/([a-z0-9][a-z0-9-]{1,62}[a-z0-9])$/);L?(A(l,L[1],!0),se()):(A(l,null),A(u,null),Y())}),Z();var ot=ch(),De=ke(ot),Qt=E(De),Ot=E(Qt);{let L=Se(()=>!!p(i));Gs(Ot,{get channels(){return p(c)},get selectedId(){return p(l)},get serverName(){return p(_)},get hasAuth(){return p(L)},get status(){return p(v)},get pollInterval(){return p(h)},onSelect:k,onAuthClick:O})}var Lt=j(Qt,2);{var jt=L=>{var ee=oh(),pe=ke(ee),Ae=j(pe,2),Le=E(Ae);{let Wr=Se(()=>!!p(i));Gs(Le,{get channels(){return p(c)},get selectedId(){return p(l)},get serverName(){return p(_)},get hasAuth(){return p(Wr)},get status(){return p(v)},get pollInterval(){return p(h)},onSelect:k,onAuthClick:()=>{A(C,!1),O()},onClose:()=>A(C,!1)})}we("click",pe,()=>A(C,!1)),$(L,ee)};fe(Lt,L=>{p(C)&&L(jt)})}var Fr=j(Lt,2),yt=E(Fr);{var er=L=>{var ee=ih(),pe=ke(ee);Fd(pe,{get channel(){return p(u)},onMenuClick:()=>A(C,!0),get viewMode(){return p(d)},set viewMode(Nt){A(d,Nt,!0)}});var Ae=j(pe,2);zp(Ae,{get events(){return p(f)},get viewMode(){return p(d)},get canReply(){return p(K)},onReply:P});var Le=j(Ae,2);{var Wr=Nt=>{Vp(Nt,{get channel(){return p(u)},onPublish:$e,get replyTo(){return p(M)},set replyTo(to){A(M,to,!0)}})},il=Nt=>{var to=sh();$(Nt,to)};fe(Le,Nt=>{p(W)?Nt(Wr):p(i)&&Nt(il,1)})}$(L,ee)},Hr=L=>{var ee=ah(),pe=E(ee),Ae=E(pe),Le=j(Ae,2),Wr=E(Le);ge(()=>he(Wr,p(v)==="loading"?"Loading...":"Channel not found")),we("click",Ae,()=>A(C,!0)),$(L,ee)},Ur=L=>{var ee=lh(),pe=E(ee);we("click",pe,()=>A(C,!0)),$(L,ee)};fe(yt,L=>{p(u)?L(er):p(l)?L(Hr,1):L(Ur,!1)})}var sl=j(De,2);{let L=Se(()=>p(i)?p(s):null);Jp(sl,{get open(){return p(a)},get currentToken(){return p(L)},get claims(){return p(i)},onSave:I,onLogout:be,onClose:()=>A(a,!1)})}$(e,ot),nt()}yr(["click"]);zc(uh,{target:document.getElementById("app")});export{zs as $,fe as A,os as B,Uc as C,$ as D,nt as E,oc as F,E as G,j as H,Lc as I,ge as J,Vt as K,H as L,Ah as M,mh as N,wh as O,yh as P,ke as Q,Ft as R,rn as S,To as T,da as U,Sh as V,ss as W,Xr as X,ln as Y,fn as Z,zt as _,Gr as a,Xo as a0,Ip as a1,vh as a2,ha as a3,bh as a4,Cr as a5,he as a6,Ic as a7,Gn as a8,we as a9,Se as aa,yr as ab,re as ac,ia as ad,Eo as ae,kh as af,Hl as ag,mt as ah,hh as b,xe as c,wn as d,Sn as e,yn as f,es as g,_h as h,Fo as i,Ht as j,xh as k,Cl as l,fh as m,Sl as n,p as o,Jn as p,A as q,kn as r,Gl as s,Qo as t,Dn as u,Xt as v,gh as w,rt as x,tt as y,xc as z};