From 7211ce9300bd2ac7894904789ba7face18a55093 Mon Sep 17 00:00:00 2001 From: wweir Date: Thu, 6 Aug 2026 22:10:18 +0800 Subject: [PATCH] fix(admin): keep client chips stable under the client filter The clients aggregate was built only from domains surviving the client filter, so selecting a client chip collapsed every other chip's count to the few shared domains (or made it vanish), and the chips row hid itself entirely when the filter matched no domains - stranding the user with no way to clear the filter. - Snapshot now aggregates chips over the source-filtered view before the client filter is applied; chips stay globally counted and stable. - Traffic page keeps the toolbar and chips visible when the filtered domain list is empty; the empty state only replaces the table. - Regression test pins chips stability, including clients that share no domain with the selected one. --- internal/admin/stats.go | 30 +- internal/admin/stats_test.go | 19 + web/dist/assets/index-CCzmNAbo.js | 1233 +++++++++++++++++++++++++++++ web/dist/assets/index-DYU-q3xW.js | 1233 ----------------------------- web/dist/index.html | 2 +- web/src/views/Traffic.svelte | 16 +- 6 files changed, 1280 insertions(+), 1253 deletions(-) create mode 100644 web/dist/assets/index-CCzmNAbo.js delete mode 100644 web/dist/assets/index-DYU-q3xW.js diff --git a/internal/admin/stats.go b/internal/admin/stats.go index 9a95cf6..8b830f5 100644 --- a/internal/admin/stats.go +++ b/internal/admin/stats.go @@ -323,6 +323,9 @@ func (s *Stats) BindConn(conn net.Conn, domain string) { // domain ordering, source restricts domains to one entry point, and client // restricts them to one client IP; invalid values fall back to // DomainSortBytes and SourceAll, and an empty client disables the filter. +// Clients aggregates per-client counters over the source-filtered view and +// is intentionally unaffected by the client filter, so the console's client +// chips stay stable while one is selected. func (s *Stats) Snapshot(sort DomainSort, source Source, client string) TrafficSnapshot { s.sample() @@ -371,18 +374,9 @@ func (s *Stats) Snapshot(sort DomainSort, source Source, client string) TrafficS ds.BytesDown = src.bytesDown ds.LastSeen = src.lastSeen } - if client != "" { - dc, ok := d.byClient[client] // nil map read is safe - if !ok || (dc.conns == 0 && dc.bytesUp == 0 && dc.bytesDown == 0) { - continue - } - ds.Conns = dc.conns - ds.BytesUp = dc.bytesUp - ds.BytesDown = dc.bytesDown - ds.LastSeen = dc.lastSeen - } - snap.Domains = append(snap.Domains, ds) - + // Aggregate the client chips over the source-filtered view but before + // the client filter: the chip row is a navigation device and must stay + // stable (and globally counted) while a client filter is active. for ip, c := range d.byClient { agg := clientAgg[ip] if agg == nil { @@ -396,6 +390,18 @@ func (s *Stats) Snapshot(sort DomainSort, source Source, client string) TrafficS agg.LastSeen = c.lastSeen } } + + if client != "" { + dc, ok := d.byClient[client] // nil map read is safe + if !ok || (dc.conns == 0 && dc.bytesUp == 0 && dc.bytesDown == 0) { + continue + } + ds.Conns = dc.conns + ds.BytesUp = dc.bytesUp + ds.BytesDown = dc.bytesDown + ds.LastSeen = dc.lastSeen + } + snap.Domains = append(snap.Domains, ds) } sortDomains(snap.Domains, sort) if len(snap.Domains) > snapshotTopN { diff --git a/internal/admin/stats_test.go b/internal/admin/stats_test.go index 0e79765..601e381 100644 --- a/internal/admin/stats_test.go +++ b/internal/admin/stats_test.go @@ -433,6 +433,12 @@ func TestStatsSnapshotClientFilter(t *testing.T) { "192.168.1.10": {conns: 2, bytesUp: 200, bytesDown: 200, lastSeen: now}, }, } + s.domains["c.example"] = &domainStat{ + conns: 7, bytesUp: 700, bytesDown: 700, lastSeen: now, + byClient: map[string]*clientStat{ + "192.168.1.20": {conns: 7, bytesUp: 700, bytesDown: 700, lastSeen: now}, + }, + } s.mu.Unlock() // filtered by client: only that client's domains, with that client's values @@ -452,6 +458,19 @@ func TestStatsSnapshotClientFilter(t *testing.T) { if len(empty.Domains) != 0 { t.Fatalf("expected no domains for unknown client, got %+v", empty.Domains) } + + // the client chips are a navigation device: they must stay stable and + // globally counted regardless of the active client filter, including + // clients that share no domain with the selected one + if len(view.Clients) != 2 { + t.Fatalf("expected both clients in chips under filter, got %+v", view.Clients) + } + if view.Clients[0].IP != "192.168.1.20" || view.Clients[0].Conns != 8 { + t.Fatalf("client .20 must keep its global conns (8) under filter, got %+v", view.Clients[0]) + } + if len(empty.Clients) != 2 { + t.Fatalf("chips must survive an unknown-client filter, got %+v", empty.Clients) + } } func TestStatsSnapshotClientsAggregate(t *testing.T) { diff --git a/web/dist/assets/index-CCzmNAbo.js b/web/dist/assets/index-CCzmNAbo.js new file mode 100644 index 0000000..2e6f156 --- /dev/null +++ b/web/dist/assets/index-CCzmNAbo.js @@ -0,0 +1,1233 @@ +var Np=Object.defineProperty;var zp=Object.getPrototypeOf;var Rp=Reflect.get;var nf=t=>{throw TypeError(t)};var Fp=(t,e,r)=>e in t?Np(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ae=(t,e,r)=>Fp(t,typeof e!="symbol"?e+"":e,r),Pc=(t,e,r)=>e.has(t)||nf("Cannot "+r);var l=(t,e,r)=>(Pc(t,e,"read from private field"),r?r.call(t):e.get(t)),_=(t,e,r)=>e.has(t)?nf("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),$=(t,e,r,n)=>(Pc(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),j=(t,e,r)=>(Pc(t,e,"access private method"),r);var of=(t,e,r,n)=>({set _(o){$(t,e,o,r)},get _(){return l(t,e,n)}}),sf=(t,e,r)=>Rp(zp(t),r,e);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 Th=!1;var Ju=Array.isArray,Lp=Array.prototype.indexOf,bl=Array.prototype.includes,fc=Array.from,Dp=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Oh=Object.getOwnPropertyDescriptors,Bp=Object.prototype,Vp=Array.prototype,Qu=Object.getPrototypeOf,af=Object.isExtensible;function Yo(t){return typeof t=="function"}const Ne=()=>{};function Wp(t){return t()}function Yc(t){for(var e=0;e{t=n,e=o});return{promise:r,resolve:t,reject:e}}function jp(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const r=[];for(const n of t)if(r.push(n),r.length===e)break;return r}const St=2,Es=4,Ca=8,ed=1<<24,hr=16,gr=32,qr=64,Xc=128,vr=512,xt=1024,dt=2048,Er=4096,Dt=8192,nr=16384,Lo=32768,Zc=1<<25,Yr=65536,yl=1<<17,Gp=1<<18,Do=1<<19,$h=1<<20,Br=1<<25,Io=65536,wl=1<<21,rs=1<<22,qn=1<<23,jr=Symbol("$state"),Ih=Symbol("legacy props"),Hp=Symbol(""),Qa=Symbol("attributes"),Jc=Symbol("class"),Qc=Symbol("style"),Js=Symbol("text"),el=Symbol("form reset"),Aa=new class extends Error{constructor(){super(...arguments);ae(this,"name","StaleReactionError");ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Ch;const td=!!((Ch=globalThis.document)!=null&&Ch.contentType)&&globalThis.document.contentType.includes("xml");function Nh(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Kp(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Up(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function qp(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Yp(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xp(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Zp(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jp(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qp(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function em(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tm(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function rm(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const nm=1,om=2,zh=4,sm=8,im=16,am=1,lm=2,Rh=4,cm=8,um=16,dm=4,fm=1,hm=2,ut=Symbol("uninitialized"),Fh="http://www.w3.org/1999/xhtml",vm="http://www.w3.org/2000/svg",Lh="@attach";function gm(){console.warn("https://svelte.dev/e/derived_inert")}function pm(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function mm(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Dh(t){return t===this.v}function bm(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Bh(t){return!bm(t,this.v)}let Fs=!1,ym=!1;function wm(){Fs=!0}let Ue=null;function Ts(t){Ue=t}function lf(t){return hc().get(t)}function xm(t,e){return hc().set(t,e),e}function _m(t){return hc().has(t)}function km(){return hc()}function $e(t,e=!1,r){Ue={p:Ue,i:!1,c:null,e:null,s:t,x:null,r:ze,l:Fs&&!e?{s:null,u:null,$:[]}:null}}function Ie(t){var e=Ue,r=e.e;if(r!==null){e.e=null;for(var n of r)cv(n)}return e.i=!0,Ue=e.p,{}}function Ls(){return!Fs||Ue!==null&&Ue.l===null}function hc(t){return Ue===null&&Nh(),Ue.c??(Ue.c=new Map(Sm(Ue)||void 0))}function Sm(t){let e=t.p;for(;e!==null;){const r=e.c;if(r!==null)return r;e=e.p}return null}let vo=[];function Vh(){var t=vo;vo=[],Yc(t)}function Pr(t){if(vo.length===0&&!ci){var e=vo;queueMicrotask(()=>{e===vo&&Vh()})}vo.push(t)}function Pm(){for(;vo.length>0;)Vh()}function Wh(t){var e=ze;if(e===null)return We.f|=qn,t;if((e.f&Lo)===0&&(e.f&Es)===0)throw t;Kn(t,e)}function Kn(t,e){if(!(e!==null&&(e.f&nr)!==0)){for(;e!==null;){if((e.f&Xc)!==0){if((e.f&Lo)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}const Cm=-7169;function rt(t,e){t.f=t.f&Cm|e}function rd(t){(t.f&vr)!==0||t.deps===null?rt(t,xt):rt(t,Er)}function jh(t){if(t!==null)for(const e of t)(e.f&St)===0||(e.f&Io)===0||(e.f^=Io,jh(e.deps))}function Gh(t,e,r){(t.f&dt)!==0?e.add(t):(t.f&Er)!==0&&r.add(t),jh(t.deps),rt(t,xt)}let Fa=!1;function Am(t){var e=Fa;try{return Fa=!1,[t(),Fa]}finally{Fa=e}}function Em(t,e){if(e){const r=document.body;t.autofocus=!0,Pr(()=>{document.activeElement===r&&t.focus()})}}let cf=!1;function Tm(){cf||(cf=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r[el])==null||e.call(r)})},{capture:!0}))}function to(t){var e=We,r=ze;pr(null),mr(null);try{return t()}finally{pr(e),mr(r)}}function Hh(t,e,r,n=r){t.addEventListener(e,()=>to(r));const o=t[el];o?t[el]=()=>{o(),n(!0)}:t[el]=()=>n(!0),Tm()}function nd(t){let e=0,r=Sn(0),n;return()=>{ld()&&(d(r),pc(()=>(e===0&&(n=br(()=>t(()=>Lr(r)))),e+=1,()=>{Pr(()=>{e-=1,e===0&&(n==null||n(),n=void 0,Lr(r))})})))}}var Om=Yr|Do;function Mm(t,e,r,n){new $m(t,e,r,n)}var ar,Zu,lr,mo,Wt,cr,zt,tr,rn,bo,zn,is,bi,yi,nn,Ll,Ye,Im,Nm,eu,zm,tu,tl,rl,ru,nu;class $m{constructor(e,r,n,o){_(this,Ye);ae(this,"parent");ae(this,"is_pending",!1);ae(this,"transform_error");_(this,ar);_(this,Zu,null);_(this,lr);_(this,mo);_(this,Wt);_(this,cr,null);_(this,zt,null);_(this,tr,null);_(this,rn,null);_(this,bo,0);_(this,zn,0);_(this,is,!1);_(this,bi,new Set);_(this,yi,new Set);_(this,nn,null);_(this,Ll,nd(()=>($(this,nn,Sn(l(this,bo))),()=>{$(this,nn,null)})));var s;$(this,ar,e),$(this,lr,r),$(this,mo,i=>{var a=ze;a.b=this,a.f|=Xc,n(i)}),this.parent=ze.b,this.transform_error=o??((s=this.parent)==null?void 0:s.transform_error)??(i=>i),$(this,Wt,Bo(()=>{j(this,Ye,tu).call(this)},Om))}defer_effect(e){Gh(e,l(this,bi),l(this,yi))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(this,lr).pending}update_pending_count(e,r){j(this,Ye,ru).call(this,e,r),$(this,bo,l(this,bo)+e),!(!l(this,nn)||l(this,is))&&($(this,is,!0),Pr(()=>{$(this,is,!1),l(this,nn)&&Ms(l(this,nn),l(this,bo))}))}get_effect_pending(){return l(this,Ll).call(this),d(l(this,nn))}error(e){if(!l(this,lr).onerror&&!l(this,lr).failed)throw e;Me!=null&&Me.is_fork?(l(this,cr)&&Me.skip_effect(l(this,cr)),l(this,zt)&&Me.skip_effect(l(this,zt)),l(this,tr)&&Me.skip_effect(l(this,tr)),Me.oncommit(()=>{j(this,Ye,nu).call(this,e)})):j(this,Ye,nu).call(this,e)}}ar=new WeakMap,Zu=new WeakMap,lr=new WeakMap,mo=new WeakMap,Wt=new WeakMap,cr=new WeakMap,zt=new WeakMap,tr=new WeakMap,rn=new WeakMap,bo=new WeakMap,zn=new WeakMap,is=new WeakMap,bi=new WeakMap,yi=new WeakMap,nn=new WeakMap,Ll=new WeakMap,Ye=new WeakSet,Im=function(){try{$(this,cr,Yt(()=>l(this,mo).call(this,l(this,ar))))}catch(e){this.error(e)}},Nm=function(e){const r=l(this,lr).failed,{reset:n,invoke_onerror:o}=j(this,Ye,eu).call(this,e);Pr(o),r&&$(this,tr,Yt(()=>{r(l(this,ar),()=>e,()=>n)}))},eu=function(e){var r=!1,n=!1;const o=()=>{if(r){mm();return}r=!0,n&&rm(),l(this,tr)!==null&&$o(l(this,tr),()=>{$(this,tr,null)}),j(this,Ye,rl).call(this,()=>{j(this,Ye,tu).call(this)})};return{reset:o,invoke_onerror:()=>{var i,a;try{n=!0,(a=(i=l(this,lr)).onerror)==null||a.call(i,e,o),n=!1}catch(c){Kn(c,l(this,Wt)&&l(this,Wt).parent)}}}},zm=function(){const e=l(this,lr).pending;e&&(this.is_pending=!0,$(this,zt,Yt(()=>e(l(this,ar)))),Pr(()=>{var r=$(this,rn,document.createDocumentFragment()),n=Gr();r.append(n),$(this,cr,j(this,Ye,rl).call(this,()=>Yt(()=>l(this,mo).call(this,n)))),l(this,zn)===0&&(l(this,ar).before(r),$(this,rn,null),$o(l(this,zt),()=>{$(this,zt,null)}),j(this,Ye,tl).call(this,Me))}))},tu=function(){try{if(this.is_pending=this.has_pending_snippet(),$(this,zn,0),$(this,bo,0),$(this,cr,Yt(()=>{l(this,mo).call(this,l(this,ar))})),l(this,zn)>0){var e=$(this,rn,document.createDocumentFragment());ud(l(this,cr),e);const r=l(this,lr).pending;$(this,zt,Yt(()=>r(l(this,ar))))}else j(this,Ye,tl).call(this,Me)}catch(r){this.error(r)}},tl=function(e){this.is_pending=!1,e.transfer_effects(l(this,bi),l(this,yi))},rl=function(e){var r=ze,n=We,o=Ue;mr(l(this,Wt)),pr(l(this,Wt)),Ts(l(this,Wt).ctx);try{return Xn.ensure(),e()}catch(s){return Wh(s),null}finally{mr(r),pr(n),Ts(o)}},ru=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&j(n=this.parent,Ye,ru).call(n,e,r);return}$(this,zn,l(this,zn)+e),l(this,zn)===0&&(j(this,Ye,tl).call(this,r),l(this,zt)&&$o(l(this,zt),()=>{$(this,zt,null)}),l(this,rn)&&(l(this,ar).before(l(this,rn)),$(this,rn,null)))},nu=function(e){l(this,cr)&&(Pt(l(this,cr)),$(this,cr,null)),l(this,zt)&&(Pt(l(this,zt)),$(this,zt,null)),l(this,tr)&&(Pt(l(this,tr)),$(this,tr,null));let r=l(this,lr).failed;const n=o=>{const{reset:s,invoke_onerror:i}=j(this,Ye,eu).call(this,o);i(),r&&$(this,tr,j(this,Ye,rl).call(this,()=>{try{return Yt(()=>{var a=ze;a.b=this,a.f|=Xc,r(l(this,ar),()=>o,()=>s)})}catch(a){return Kn(a,l(this,Wt).parent),null}}))};Pr(()=>{var o;try{o=this.transform_error(e)}catch(s){Kn(s,l(this,Wt)&&l(this,Wt).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(n,s=>Kn(s,l(this,Wt)&&l(this,Wt).parent)):n(o)})};function Kh(t,e,r,n){const o=Ls()?Os:od;var s=t.filter(g=>!g.settled),i=e.map(o);if(r.length===0&&s.length===0){n(i);return}var a=ze,c=Rm(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(g=>g.promise)):null;function f(g){if((a.f&nr)===0){c();try{n([...i,...g])}catch(p){Kn(p,a)}xl()}}var v=Uh();if(r.length===0){u.then(()=>f([])).finally(v);return}function h(){Promise.all(r.map(g=>Fm(g))).then(f).catch(g=>Kn(g,a)).finally(v)}u?u.then(()=>{c(),h(),xl()}):h()}function Rm(){var t=ze,e=We,r=Ue,n=Me;return function(s=!0){mr(t),pr(e),Ts(r),s&&(t.f&nr)===0&&(n==null||n.activate(),n==null||n.apply())}}function xl(t=!0){mr(null),pr(null),Ts(null),t&&(Me==null||Me.deactivate())}function Uh(){var t=ze,e=t.b,r=Me,n=!!(e!=null&&e.is_rendered());return e==null||e.update_pending_count(1,r),r.increment(n,t),()=>{e==null||e.update_pending_count(-1,r),r.decrement(n,t)}}function Os(t){var e=St|dt;return ze!==null&&(ze.f|=Do),{ctx:Ue,deps:null,effects:null,equals:Dh,f:e,fn:t,reactions:null,rv:0,v:ut,wv:0,parent:ze,ac:null}}const Qs=Symbol("obsolete");function Fm(t,e,r){let n=ze;n===null&&Kp();var o=void 0,s=Sn(ut),i=!We,a=new Set;return Zm(()=>{var g,p;var c=ze,u=Mh();o=u.promise;try{Promise.resolve(t()).then(u.resolve,m=>{m!==Aa&&u.reject(m)}).finally(xl)}catch(m){u.reject(m),xl()}var f=Me;if(i){if((c.f&Lo)!==0)var v=Uh();if((g=n.b)!=null&&g.is_rendered())(p=f.async_deriveds.get(c))==null||p.reject(Qs);else for(const m of a.values())m.reject(Qs);a.add(u),f.async_deriveds.set(c,u)}const h=(m,y=void 0)=>{v==null||v(),a.delete(u),y!==Qs&&(f.activate(),y?(s.f|=qn,Ms(s,y)):((s.f&qn)!==0&&(s.f^=qn),Ms(s,m)),f.deactivate())};u.promise.then(h,m=>h(null,m||"unknown"))}),vc(()=>{for(const c of a)c.reject(Qs)}),new Promise(c=>{function u(f){function v(){f===o?c(s):u(o)}f.then(v,v)}u(o)})}function W(t){const e=Os(t);return mv(e),e}function od(t){const e=Os(t);return e.equals=Bh,e}function Lm(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r{r.ac.abort(Aa),r.ac=null}),r.fn!==null&&(r.teardown=Ne),vi(r,0),cd(r))}function Yh(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&Is(e)}let Cc=null,Ko=null,Me=null,li=null,At=null,ou=null,ci=!1,Ac=!1,Qo=null,nl=null;var uf=0;let Bm=1;var as,Rn,yo,ls,cs,us,on,ds,jt,wi,sn,kr,Ir,fs,wo,qe,su,ei,iu,Xh,Zh,Xo,Vm,ti;const Dl=class Dl{constructor(){_(this,qe);ae(this,"id",Bm++);_(this,as,!1);ae(this,"linked",!0);_(this,Rn,null);_(this,yo,null);ae(this,"async_deriveds",new Map);ae(this,"current",new Map);ae(this,"previous",new Map);_(this,ls,new Set);_(this,cs,new Set);_(this,us,0);_(this,on,new Map);_(this,ds,null);_(this,jt,[]);_(this,wi,[]);_(this,sn,new Set);_(this,kr,new Set);_(this,Ir,new Map);_(this,fs,new Set);ae(this,"is_fork",!1);_(this,wo,!1);Ko===null?Cc=Ko=this:($(Ko,yo,this),$(this,Rn,Ko)),Ko=this}skip_effect(e){l(this,Ir).has(e)||l(this,Ir).set(e,{d:[],m:[]}),l(this,fs).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=l(this,Ir).get(e);if(n){l(this,Ir).delete(e);for(var o of n.d)rt(o,dt),r(o);for(o of n.m)rt(o,Er),r(o)}l(this,fs).add(e)}capture(e,r,n=!1){e.v!==ut&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&qn)===0&&(this.current.set(e,[r,n]),At==null||At.set(e,r)),this.is_fork||(e.v=r)}activate(){Me=this}deactivate(){Me=null,At=null}flush(){try{Ac=!0,Me=this,j(this,qe,ei).call(this)}finally{uf=0,ou=null,Qo=null,nl=null,Ac=!1,Me=null,At=null,Mo.clear()}}discard(){var e;for(const r of l(this,cs))r(this);l(this,cs).clear();for(const r of this.async_deriveds.values())r.reject(Qs);j(this,qe,ti).call(this),(e=l(this,ds))==null||e.resolve()}register_created_effect(e){l(this,wi).push(e)}increment(e,r){if($(this,us,l(this,us)+1),e){let n=l(this,on).get(r)??0;l(this,on).set(r,n+1)}}decrement(e,r){if($(this,us,l(this,us)-1),e){let n=l(this,on).get(r)??0;n===1?l(this,on).delete(r):l(this,on).set(r,n-1)}l(this,wo)||($(this,wo,!0),Pr(()=>{$(this,wo,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)l(this,sn).add(n);for(const n of r)l(this,kr).add(n);e.clear(),r.clear()}oncommit(e){l(this,ls).add(e)}ondiscard(e){l(this,cs).add(e)}settled(){return(l(this,ds)??$(this,ds,Mh())).promise}static ensure(){if(Me===null){const e=Me=new Dl;!Ac&&!ci&&Pr(()=>{l(e,as)||e.flush()})}return Me}apply(){{At=null;return}}schedule(e){var o;if(ou=e,(o=e.b)!=null&&o.is_pending&&(e.f&(Es|Ca|ed))!==0&&(e.f&Lo)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(Qo!==null&&r===ze&&(We===null||(We.f&St)===0))return;if((n&(qr|gr))!==0){if((n&xt)===0)return;r.f^=xt}}l(this,jt).push(r)}};as=new WeakMap,Rn=new WeakMap,yo=new WeakMap,ls=new WeakMap,cs=new WeakMap,us=new WeakMap,on=new WeakMap,ds=new WeakMap,jt=new WeakMap,wi=new WeakMap,sn=new WeakMap,kr=new WeakMap,Ir=new WeakMap,fs=new WeakMap,wo=new WeakMap,qe=new WeakSet,su=function(){if(this.is_fork)return!0;for(const n of l(this,on).keys()){for(var e=n,r=!1;e.parent!==null;){if(l(this,Ir).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},ei=function(){var c,u,f,v;$(this,as,!0),uf++>1e3&&(j(this,qe,ti).call(this),jm());for(const h of l(this,sn))l(this,kr).delete(h),rt(h,dt),this.schedule(h);for(const h of l(this,kr))rt(h,Er),this.schedule(h);const e=l(this,jt);$(this,jt,[]),this.apply();var r=Qo=[],n=[],o=nl=[];for(const h of e)try{j(this,qe,iu).call(this,h,r,n)}catch(g){throw ev(h),j(this,qe,su).call(this)||this.discard(),g}if(Me=null,o.length>0){var s=Dl.ensure();for(const h of o)s.schedule(h)}if(Qo=null,nl=null,j(this,qe,su).call(this)){j(this,qe,Xo).call(this,n),j(this,qe,Xo).call(this,r);for(const[h,g]of l(this,Ir))Qh(h,g);o.length>0&&j(c=Me,qe,ei).call(c);return}const i=j(this,qe,Xh).call(this);if(i){j(this,qe,Xo).call(this,n),j(this,qe,Xo).call(this,r),j(u=i,qe,Zh).call(u,this);return}l(this,sn).clear(),l(this,kr).clear();for(const h of l(this,ls))h(this);l(this,ls).clear(),li=this,df(n),df(r),li=null,(f=l(this,ds))==null||f.resolve();var a=Me;if(l(this,us)===0&&(l(this,jt).length===0||a!==null)&&j(this,qe,ti).call(this),l(this,jt).length>0)if(a!==null){const h=a;l(h,jt).push(...l(this,jt).filter(g=>!l(h,jt).includes(g)))}else a=this;a!==null&&j(v=a,qe,ei).call(v)},iu=function(e,r,n){e.f^=xt;for(var o=e.first;o!==null;){var s=o.f,i=(s&(gr|qr))!==0,a=i&&(s&xt)!==0,c=a||(s&Dt)!==0||l(this,Ir).has(o);if(!c&&o.fn!==null){i?o.f^=xt:(s&Es)!==0?r.push(o):Ta(o)&&((s&hr)!==0&&l(this,kr).add(o),Is(o));var u=o.first;if(u!==null){o=u;continue}}for(;o!==null;){var f=o.next;if(f!==null){o=f;break}o=o.parent}}},Xh=function(){for(var e=l(this,Rn);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=l(e,Rn)}return null},Zh=function(e){var n;for(const[o,s]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,s);for(const[o,s]of e.async_deriveds){const i=this.async_deriveds.get(o);i&&s.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_effects(l(e,sn),l(e,kr));const r=o=>{var s=o.reactions;if(s!==null&&!((o.f&St)!==0&&(o.f&(dt|Er))===0))for(const c of s){var i=c.f;if((i&St)!==0)r(c);else{var a=c;i&(rs|hr)&&!this.async_deriveds.has(a)&&(l(this,kr).delete(a),rt(a,dt),this.schedule(a))}}};for(const o of this.current.keys())r(o);this.oncommit(()=>e.discard()),j(n=e,qe,ti).call(n),Me=this,j(this,qe,ei).call(this)},Xo=function(e){for(var r=0;r!h.current.get(g)[1]);if(!(!l(h,as)||o.length===0)){var s=o.filter(g=>!this.current.has(g));if(s.length===0)e&&h.discard();else if(r.length>0){if(e)for(const g of l(this,fs))h.unskip_effect(g,p=>{var m;(p.f&(hr|rs))!==0?h.schedule(p):j(m=h,qe,Xo).call(m,[p])});h.activate();var i=new Set,a=new Map;for(var c of r)Jh(c,s,i,a);a=new Map;var u=[...h.current].filter(([g,p])=>{const m=this.current.get(g);return m?m[0]!==p[0]||m[1]!==p[1]:!0}).map(([g])=>g);if(u.length>0)for(const g of l(this,wi))(g.f&(nr|Dt|yl))===0&&id(g,u,a)&&((g.f&(rs|hr))!==0?(rt(g,dt),h.schedule(g)):l(h,sn).add(g));if(l(h,jt).length>0&&!l(h,wo)){h.apply();for(var f of l(h,jt))j(v=h,qe,iu).call(v,f,[],[]);$(h,jt,[])}h.deactivate()}}}},ti=function(){if(this.linked){var e=l(this,Rn),r=l(this,yo);e===null?Cc=r:$(e,yo,r),r===null?Ko=e:$(r,Rn,e),this.linked=!1}};let Xn=Dl;function Wm(t){var e=ci;ci=!0;try{for(var r;;){if(Pm(),Me===null)return r;Me.flush()}}finally{ci=e}}function jm(){try{Zp()}catch(t){Kn(t,ou)}}let _r=null;function df(t){var e=t.length;if(e!==0){for(var r=0;r0)){Mo.clear();for(const o of _r){if((o.f&(nr|Dt))!==0)continue;const s=[o];let i=o.parent;for(;i!==null;)_r.has(i)&&(_r.delete(i),s.push(i)),i=i.parent;for(let a=s.length-1;a>=0;a--){const c=s[a];(c.f&(nr|Dt))===0&&Is(c)}}_r.clear()}}_r=null}}function Jh(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const o of t.reactions){const s=o.f;(s&St)!==0?Jh(o,e,r,n):(s&(rs|hr))!==0&&(s&dt)===0&&id(o,e,n)&&(rt(o,dt),ad(o))}}function id(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const o of t.deps){if(bl.call(e,o))return!0;if((o.f&St)!==0&&id(o,e,r))return r.set(o,!0),!0}return r.set(t,!1),!1}function ad(t){Me.schedule(t)}function Qh(t,e){if(!((t.f&gr)!==0&&(t.f&xt)!==0)){(t.f&dt)!==0?e.d.push(t):(t.f&Er)!==0&&e.m.push(t),rt(t,xt);for(var r=t.first;r!==null;)Qh(r,e),r=r.next}}function ev(t){rt(t,xt);for(var e=t.first;e!==null;)ev(e),e=e.next}let _l=new Set;const Mo=new Map;let tv=!1;function Sn(t,e){var r={f:0,v:t,reactions:null,equals:Dh,rv:0,wv:0};return r}function Ae(t,e){const r=Sn(t);return mv(r),r}function Gm(t,e=!1,r=!0){var o;const n=Sn(t);return e||(n.equals=Bh),Fs&&r&&Ue!==null&&Ue.l!==null&&((o=Ue.l).s??(o.s=[])).push(n),n}function R(t,e,r=!1){We!==null&&(!Cr||(We.f&yl)!==0)&&Ls()&&(We.f&(St|hr|rs|yl))!==0&&(Hr===null||!Hr.has(t))&&tm();let n=r?Zt(e):e;return Ms(t,n,nl)}function Ms(t,e,r=null){if(!t.equals(e)){Mo.set(t,Pn?e:t.v);var n=Xn.ensure();if(n.capture(t,e),(t.f&St)!==0){const o=t;(t.f&dt)!==0&&sd(o),At===null&&rd(o)}t.wv=yv(),rv(t,dt,r),Ls()&&ze!==null&&(ze.f&xt)!==0&&(ze.f&(gr|qr))===0&&(ir===null?eb([t]):ir.push(t)),!n.is_fork&&_l.size>0&&!tv&&Hm()}return e}function Hm(){tv=!1;for(const t of _l){(t.f&xt)!==0&&rt(t,Er);let e;try{e=Ta(t)}catch{e=!0}e&&Is(t)}_l.clear()}function ff(t,e=1){var r=d(t),n=e===1?r++:r--;return R(t,r),n}function Lr(t){R(t,t.v+1)}function rv(t,e,r){var n=t.reactions;if(n!==null)for(var o=Ls(),s=n.length,i=0;i{if(xn===s)return a();var c=We,u=xn;pr(null),pf(s);var f=a();return pr(c),pf(u),f};return n&&r.set("length",Ae(t.length)),new Proxy(t,{defineProperty(a,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Qp();var f=r.get(c);return f===void 0?i(()=>{var v=Ae(u.value);return r.set(c,v),v}):R(f,u.value,!0),!0},deleteProperty(a,c){var u=r.get(c);if(u===void 0){if(c in a){const f=i(()=>Ae(ut));r.set(c,f),Lr(o)}}else R(u,ut),Lr(o);return!0},get(a,c,u){var g;if(c===jr)return t;var f=r.get(c),v=c in a;if(f===void 0&&(!v||(g=Un(a,c))!=null&&g.writable)&&(f=i(()=>{var p=Zt(v?a[c]:ut),m=Ae(p);return m}),r.set(c,f)),f!==void 0){var h=d(f);return h===ut?void 0:h}return Reflect.get(a,c,u)},getOwnPropertyDescriptor(a,c){var u=Reflect.getOwnPropertyDescriptor(a,c);if(u&&"value"in u){var f=r.get(c);f&&(u.value=d(f))}else if(u===void 0){var v=r.get(c),h=v==null?void 0:v.v;if(v!==void 0&&h!==ut)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,c){var h;if(c===jr)return!0;var u=r.get(c),f=u!==void 0&&u.v!==ut||Reflect.has(a,c);if(u!==void 0||ze!==null&&(!f||(h=Un(a,c))!=null&&h.writable)){u===void 0&&(u=i(()=>{var g=f?Zt(a[c]):ut,p=Ae(g);return p}),r.set(c,u));var v=d(u);if(v===ut)return!1}return f},set(a,c,u,f){var O;var v=r.get(c),h=c in a;if(n&&c==="length")for(var g=u;gAe(ut)),r.set(g+"",p))}if(v===void 0)(!h||(O=Un(a,c))!=null&&O.writable)&&(v=i(()=>Ae(void 0)),R(v,Zt(u)),r.set(c,v));else{h=v.v!==ut;var m=i(()=>Zt(u));R(v,m)}var y=Reflect.getOwnPropertyDescriptor(a,c);if(y!=null&&y.set&&y.set.call(f,u),!h){if(n&&typeof c=="string"){var w=r.get("length"),k=Number(c);Number.isInteger(k)&&k>=w.v&&R(w,k+1)}Lr(o)}return!0},ownKeys(a){d(o);var c=Reflect.ownKeys(a).filter(v=>{var h=r.get(v);return h===void 0||h.v!==ut});for(var[u,f]of r)f.v!==ut&&!(u in a)&&c.push(u);return c},setPrototypeOf(){em()}})}function hf(t){try{if(t!==null&&typeof t=="object"&&jr in t)return t[jr]}catch{}return t}function Km(t,e){return Object.is(hf(t),hf(e))}var vf,nv,ov,sv;function Um(){if(vf===void 0){vf=window,nv=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ov=Un(e,"firstChild").get,sv=Un(e,"nextSibling").get,af(t)&&(t[Jc]=void 0,t[Qa]=null,t[Qc]=void 0,t.__e=void 0),af(r)&&(r[Js]=void 0)}}function Gr(t=""){return document.createTextNode(t)}function $s(t){return ov.call(t)}function Ea(t){return sv.call(t)}function B(t,e){return $s(t)}function E(t,e=!1){{var r=$s(t);return r instanceof Comment&&r.data===""?Ea(r):r}}function A(t,e=1,r=!1){let n=t;for(;e--;)n=Ea(n);return n}function qm(t){t.textContent=""}function iv(){return!1}function av(t,e,r){return e==null||e===Fh?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function lv(t){ze===null&&(We===null&&Xp(),Yp()),Pn&&qp()}function Ym(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function yr(t,e){var r=ze;r!==null&&(r.f&Dt)!==0&&(t|=Dt);var n={ctx:Ue,deps:null,nodes:null,f:t|dt|vr,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};Me==null||Me.register_created_effect(n);var o=n;if((t&Es)!==0)Qo!==null?Qo.push(n):Xn.ensure().schedule(n);else if(e!==null){try{Is(n)}catch(i){throw Pt(n),i}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Do)===0&&(o=o.first,(t&hr)!==0&&(t&Yr)!==0&&o!==null&&(o.f|=Yr))}if(o!==null&&(o.parent=r,r!==null&&Ym(o,r),We!==null&&(We.f&St)!==0&&(t&qr)===0)){var s=We;(s.effects??(s.effects=[])).push(o)}return n}function ld(){return We!==null&&!Cr}function vc(t){const e=yr(Ca,null);return rt(e,xt),e.teardown=t,e}function ot(t){lv();var e=ze.f,r=!We&&(e&gr)!==0&&Ue!==null&&!Ue.i;if(r){var n=Ue;(n.e??(n.e=[])).push(t)}else return cv(t)}function cv(t){return yr(Es|$h,t)}function uv(t){return lv(),yr(Ca|$h,t)}function dv(t){Xn.ensure();const e=yr(qr|Do,t);return()=>{Pt(e)}}function Xm(t){Xn.ensure();const e=yr(qr|Do,t);return(r={})=>new Promise(n=>{r.outro?$o(e,()=>{Pt(e),n(void 0)}):(Pt(e),n(void 0))})}function gc(t){return yr(Es,t)}function Zm(t){return yr(rs|Do,t)}function pc(t,e=0){return yr(Ca|e,t)}function Oe(t,e=[],r=[],n=[]){Kh(n,e,r,o=>{yr(Ca,()=>{t(...o.map(d))})})}function Bo(t,e=0){var r=yr(hr|e,t);return r}function fv(t,e=0){var r=yr(ed|e,t);return r}function Yt(t){return yr(gr|Do,t)}function hv(t){var e=t.teardown;if(e!==null){const r=Pn,n=We;gf(!0),pr(null);try{e.call(null)}finally{gf(r),pr(n)}}}function cd(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&to(()=>{o.abort(Aa)});var n=r.next;(r.f&qr)!==0?r.parent=null:Pt(r,e),r=n}}function Jm(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&gr)===0&&Pt(e),e=r}}function Pt(t,e=!0){var r=!1;(e||(t.f&Gp)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(Qm(t.nodes.start,t.nodes.end),r=!0),t.f|=Zc,cd(t,e&&!r),vi(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();hv(t),t.f^=Zc,t.f|=nr;var o=t.parent;o!==null&&o.first!==null&&vv(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Qm(t,e){for(;t!==null;){var r=t===e?null:Ea(t);t.remove(),t=r}}function vv(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function $o(t,e,r=!0){var n=[];gv(t,n,!0);var o=()=>{r&&Pt(t),e&&e()},s=n.length;if(s>0){var i=()=>--s||o();for(var a of n)a.out(i)}else o()}function gv(t,e,r){if((t.f&Dt)===0){t.f^=Dt;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&e.push(a);for(var o=t.first;o!==null;){var s=o.next;if((o.f&qr)===0){var i=(o.f&Yr)!==0||(o.f&gr)!==0&&(t.f&hr)!==0;gv(o,e,i?r:!1)}o=s}}}function kl(t){pv(t,!0)}function pv(t,e){if((t.f&Dt)!==0){t.f^=Dt,(t.f&xt)===0&&(rt(t,dt),Xn.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Yr)!==0||(r.f&gr)!==0;pv(r,o?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const i of s)(i.is_global||e)&&i.in()}}function ud(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var o=r===n?null:Ea(r);e.append(r),r=o}}let ol=!1,Pn=!1;function gf(t){Pn=t}let We=null,Cr=!1;function pr(t){We=t}let ze=null;function mr(t){ze=t}let Hr=null;function mv(t){We!==null&&(Hr??(Hr=new Set)).add(t)}let qt=null,er=0,ir=null;function eb(t){ir=t}let bv=1,go=0,xn=go;function pf(t){xn=t}function yv(){return++bv}function Ta(t){var e=t.f;if((e&dt)!==0)return!0;if(e&St&&(t.f&=~Io),(e&Er)!==0){for(var r=t.deps,n=r.length,o=0;ot.wv)return!0}(e&vr)!==0&&At===null&&rt(t,xt)}return!1}function wv(t,e,r=!0){var n=t.reactions;if(n!==null&&!(Hr!==null&&Hr.has(t)))for(var o=0;o{t.ac.abort(Aa)}),t.ac=null);try{t.f|=wl;var f=t.fn,v=f();t.f|=Lo;var h=t.deps,g=Me==null?void 0:Me.is_fork;if(qt!==null){var p;if(g||vi(t,er),h!==null&&er>0)for(h.length=er+qt.length,p=0;p{s.ac.abort(Aa),s.ac=null,rt(s,dt)}),Dm(s),vi(s,0)}}function vi(t,e){var r=t.deps;if(r!==null)for(var n=e;nr==null?void 0:r.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Pr(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function Nt(t,e,r,n={}){var o=dd(e,t,r,n);return()=>{t.removeEventListener(e,o,n)}}function Cv(t,e,r,n,o){var s={capture:n,passive:o},i=dd(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&vc(()=>{e.removeEventListener(t,i,s)})}function ui(t,e,r){(e[po]??(e[po]={}))[t]=r}function fd(t){for(var e=0;e{throw w});throw h}}finally{t[po]=e,delete t.currentTarget,pr(f),mr(v)}}}var Ah;const Ec=((Ah=globalThis==null?void 0:globalThis.window)==null?void 0:Ah.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ub(t){return(Ec==null?void 0:Ec.createHTML(t))??t}function Av(t){var e=av("template");return e.innerHTML=ub(t.replaceAll("","")),e.content}function Ns(t,e){var r=ze;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function le(t,e){var r=(e&fm)!==0,n=(e&hm)!==0,o,s=!t.startsWith("");return()=>{o===void 0&&(o=Av(s?t:""+t),r||(o=$s(o)));var i=n||nv?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=$s(i),c=i.lastChild;Ns(a,c)}else Ns(i,i);return i}}function db(t,e,r="svg"){var n=!t.startsWith(""),o=`<${r}>${n?t:""+t}`,s;return()=>{if(!s){var i=Av(o),a=$s(i);s=$s(a)}var c=s.cloneNode(!0);return Ns(c,c),c}}function Oa(t,e){return db(t,e,"svg")}function Ce(t=""){{var e=Gr(t+"");return Ns(e,e),e}}function te(){var t=document.createDocumentFragment(),e=document.createComment(""),r=Gr();return t.append(e,r),Ns(e,r),t}function b(t,e){t!==null&&t.before(e)}function Ma(){var t;return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}let Sl=!0;function La(t){Sl=t}function Pe(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Js]??(t[Js]=t.nodeValue))&&(t[Js]=r,t.nodeValue=`${r}`)}function Ev(t,e){return fb(t,e)}const Da=new Map;function fb(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:i=!0,transformError:a}){Um();var c=void 0,u=Xm(()=>{var f=r??e.appendChild(Gr());Mm(f,{pending:()=>{}},g=>{$e({});var p=Ue;s&&(p.c=s),o&&(n.$$events=o),Sl=i,c=t(g,n)||{},Sl=!0,Ie()},a);var v=new Set,h=g=>{for(var p=0;p{var y;for(var g of v)for(const w of[e,document]){var p=Da.get(w),m=p.get(g);--m==0?(w.removeEventListener(g,cu),p.delete(g),p.size===0&&Da.delete(w)):p.set(g,m)}lu.delete(h),f!==r&&((y=f.parentNode)==null||y.removeChild(f))}});return uu.set(c,u),c}let uu=new WeakMap;function hb(t,e){const r=uu.get(t);return r?(uu.delete(t),r(e)):Promise.resolve()}var Sr,Nr,rr,xo,xi,_i,Bl;class $a{constructor(e,r=!0){ae(this,"anchor");_(this,Sr,new Map);_(this,Nr,new Map);_(this,rr,new Map);_(this,xo,new Set);_(this,xi,!0);_(this,_i,e=>{if(l(this,Sr).has(e)){var r=l(this,Sr).get(e),n=l(this,Nr).get(r);if(n)kl(n),l(this,xo).delete(r);else{var o=l(this,rr).get(r);o&&(kl(o.effect),l(this,Nr).set(r,o.effect),l(this,rr).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of l(this,Sr)){if(l(this,Sr).delete(s),s===e)break;const a=l(this,rr).get(i);a&&(Pt(a.effect),l(this,rr).delete(i))}for(const[s,i]of l(this,Nr)){if(s===r||l(this,xo).has(s))continue;const a=()=>{if(Array.from(l(this,Sr).values()).includes(s)){var u=document.createDocumentFragment();ud(i,u),u.append(Gr()),l(this,rr).set(s,{effect:i,fragment:u})}else Pt(i);l(this,xo).delete(s),l(this,Nr).delete(s)};l(this,xi)||!n?(l(this,xo).add(s),$o(i,a,!1)):a()}}});_(this,Bl,e=>{l(this,Sr).delete(e);const r=Array.from(l(this,Sr).values());for(const[n,o]of l(this,rr))r.includes(n)||(Pt(o.effect),l(this,rr).delete(n))});this.anchor=e,$(this,xi,r)}ensure(e,r){var n=Me,o=iv();if(r&&!l(this,Nr).has(e)&&!l(this,rr).has(e))if(o){var s=document.createDocumentFragment(),i=Gr();s.append(i),l(this,rr).set(e,{effect:Yt(()=>r(i)),fragment:s})}else l(this,Nr).set(e,Yt(()=>r(this.anchor)));if(l(this,Sr).set(n,e),o){for(const[a,c]of l(this,Nr))a===e?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of l(this,rr))a===e?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(l(this,_i)),n.ondiscard(l(this,Bl))}else l(this,_i).call(this,n)}}Sr=new WeakMap,Nr=new WeakMap,rr=new WeakMap,xo=new WeakMap,xi=new WeakMap,_i=new WeakMap,Bl=new WeakMap;function Fe(t,e,r=!1){var n=new $a(t),o=r?Yr:0;function s(i,a){n.ensure(i,a)}Bo(()=>{var i=!1;e((a,c=0)=>{i=!0,s(c,a)}),i||s(-1,null)},o)}const vb=Symbol("NaN");function Tv(t,e,r){var n=new $a(t),o=!Ls();Bo(()=>{var s=e();s!==s&&(s=vb),o&&s!==null&&typeof s=="object"&&(s={}),n.ensure(s,r)})}function Xt(t,e){return e}function gb(t,e,r){for(var n=[],o=e.length,s,i=e.length,a=0;a{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=t.outrogroups;du(t,fc(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else i-=1},!1)}if(i===0){var c=n.length===0&&r!==null;if(c){var u=r,f=u.parentNode;qm(f),f.append(u),t.items.clear()}du(t,e,!c)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function du(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const i of t.pending.values())for(const a of i)n.add(t.items.get(a).e)}for(var o=0;o{var O=r();return Ju(O)?O:O==null?[]:fc(O)}),h,g=new Map,p=!0;function m(O){(k.effect.f&nr)===0&&(k.pending.delete(O),k.fallback=f,pb(k,h,i,e,n),f!==null&&(h.length===0?(f.f&Br)===0?kl(f):(f.f^=Br,ri(f,null,i)):$o(f,()=>{f=null})))}function y(O){k.pending.delete(O)}var w=Bo(()=>{h=d(v);for(var O=h.length,S=new Set,P=Me,T=iv(),N=0;Ns(i)):(f=Yt(()=>s(bf??(bf=Gr()))),f.f|=Br)),O>S.size&&Up(),!p)if(g.set(P,S),T){for(const[K,L]of a)S.has(K)||P.skip_effect(L.e);P.oncommit(m),P.ondiscard(y)}else m(P);d(v)}),k={effect:w,items:a,pending:g,outrogroups:null,fallback:f};p=!1}function Gs(t){for(;t!==null&&(t.f&gr)===0;)t=t.next;return t}function pb(t,e,r,n,o){var G,K,L,U,Z,z,F,fe,de;var s=(n&sm)!==0,i=e.length,a=t.items,c=Gs(t.effect.first),u,f=null,v,h=[],g=[],p,m,y,w;if(s)for(w=0;w0){var D=(n&zh)!==0&&i===0?r:null;if(s){for(w=0;w{var ce,C;if(v!==void 0)for(y of v)(C=(ce=y.nodes)==null?void 0:ce.a)==null||C.apply()})}function mb(t,e,r,n,o,s,i,a){var c=(i&nm)!==0?(i&im)===0?Gm(r,!1,!1):Sn(r):null,u=(i&om)!==0?Sn(o):null;return{v:c,i:u,e:Yt(()=>(s(e,c??r,u??o,a),()=>{t.delete(n)}))}}function ri(t,e,r){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end,s=e&&(e.f&Br)===0?e.nodes.start:r;n!==null;){var i=Ea(n);if(s.before(n),n===o)return;n=i}}function Tn(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function Je(t,e,r,n,o){var a;var s=(a=e.$$slots)==null?void 0:a[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0||s(t,i?()=>n:n)}function Re(t,e,...r){var n=new $a(t);Bo(()=>{const o=e()??null;n.ensure(o,o&&(s=>o(s,...r)))},Yr)}function I(t,e,r){var n=new $a(t);Bo(()=>{var o=e()??null;n.ensure(o,o&&(s=>r(s,o)))},Yr)}const bb=()=>performance.now(),yn={tick:t=>requestAnimationFrame(t),now:()=>bb(),tasks:new Set};function Ov(){const t=yn.now();yn.tasks.forEach(e=>{e.c(t)||(yn.tasks.delete(e),e.f())}),yn.tasks.size!==0&&yn.tick(Ov)}function yb(t){let e;return yn.tasks.size===0&&yn.tick(Ov),{promise:new Promise(r=>{yn.tasks.add(e={c:t,f:r})}),abort(){yn.tasks.delete(e)}}}function yf(t,e){to(()=>{t.dispatchEvent(new CustomEvent(e))})}function wb(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function wf(t){const e={},r=t.split(";");for(const n of r){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=wb(o.trim());e[i]=s.trim()}return e}const xb=t=>t;function _b(t,e,r,n){var y;var o=(t&dm)!==0,s="in",i,a=e.inert,c=e.style.overflow,u,f;function v(){return to(()=>i??(i=r()(e,(n==null?void 0:n())??{},{direction:s})))}var h={is_global:o,in(){e.inert=a,u==null||u.abort(),u=Mv(e,v(),f,1,()=>{yf(e,"introstart")},()=>{yf(e,"introend"),u==null||u.abort(),u=i=void 0,e.style.overflow=c})},out(w){{w==null||w(),i=void 0;return}},stop:()=>{u==null||u.abort()}},g=ze;if(((y=g.nodes).t??(y.t=[])).push(h),Sl){var p=o;if(!p){for(var m=g.parent;m&&(m.f&Yr)!==0;)for(;(m=m.parent)&&(m.f&hr)===0;);p=!m||(m.f&Lo)!==0}p&&gc(()=>{br(()=>h.in())})}}function Mv(t,e,r,n,o,s){if(Yo(e)){var i,a=!1;return Pr(()=>{if(!a){var y=e({direction:"in"});i=Mv(t,y,r,n,o,s)}}),{abort:()=>{a=!0,i==null||i.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(!(e!=null&&e.duration)&&!(e!=null&&e.delay))return o(),s(),{abort:Ne,deactivate:Ne,reset:Ne,t:()=>n};const{delay:c=0,css:u,tick:f,easing:v=xb}=e;var h=[];if(f&&f(0,1),u){var g=wf(u(0,1));h.push(g,g)}var p=()=>1-n,m=t.animate(h,{duration:c,fill:"forwards"});return m.onfinish=()=>{m.cancel(),o();var y=1-n,w=n-y,k=e.duration*Math.abs(w),O=[];if(k>0){var S=!1;if(u)for(var P=Math.ceil(k/16.666666666666668),T=0;T<=P;T+=1){var N=y+w*v(T/P),x=wf(u(N,1-N));O.push(x),S||(S=x.overflow==="hidden")}S&&(t.style.overflow="hidden"),p=()=>{var D=m.currentTime;return y+w*v(D/k)},f&&yb(()=>{if(m.playState!=="running")return!1;var D=p();return f(D,1-D),!0})}m=t.animate(O,{duration:k,fill:"forwards"}),m.onfinish=()=>{p=()=>n,f==null||f(n,1-n),s()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=Ne)},deactivate:()=>{s=Ne},reset:()=>{},t:()=>p()}}function $v(t,e,r,n,o,s){var i=null,a=t,c=new $a(a,!1);Bo(()=>{const u=e()||null;var f=r||u==="svg"?vm:void 0;if(u===null){c.ensure(null,null),La(!0);return}return c.ensure(u,v=>{if(u){if(i=av(u,f),Ns(i,i),n){var h=null,g=i.appendChild(Gr());n(i,g),h==null||h.remove()}ze.nodes.end=i,v.before(i)}}),La(!0),()=>{u&&La(!1)}},Yr),vc(()=>{La(!0)})}function kb(t,e){var r=void 0,n;fv(()=>{r!==(r=e())&&(n&&(Pt(n),n=null),r&&(n=Yt(()=>{gc(()=>r(t))})))})}function Iv(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e=0;){var a=i+s;(i===0||xf.includes(n[i-1]))&&(a===n.length||xf.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function _f(t,e=!1){var r=e?" !important;":";",n="";for(var o of Object.keys(t)){var s=t[o];s!=null&&s!==""&&(n+=" "+o+": "+s+r)}return n}function Tc(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Pb(t,e){if(e){var r="",n,o;if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,i=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(Tc)),o&&c.push(...Object.keys(o).map(Tc));var u=0,f=-1;const m=t.length;for(var v=0;v{"__value"in t&&hu(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),vc(()=>{e.disconnect()})}function kf(t){return"__value"in t?t.__value:t.value}const Hs=Symbol("class"),Ks=Symbol("style"),Nv=Symbol("is custom element"),zv=Symbol("is html"),Ab=td?"input":"INPUT",Eb=td?"option":"OPTION",Tb=td?"select":"SELECT";function Ob(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Ct(t,e,r,n){var o=Rv(t);o[e]!==(o[e]=r)&&(e==="loading"&&(t[Hp]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Fv(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Mb(t,e,r,n,o=!1,s=!1){var i=Rv(t),a=i[Nv],c=!i[zv],u=e||{},f=t.nodeName===Eb;for(var v in e)v in r||(r[v]=null);r.class?r.class=fu(r.class):r[Hs]&&(r.class=null),r[Ks]&&(r.style??(r.style=null));var h=Fv(t);if(t.nodeName===Ab&&"type"in r&&("value"in r||"__value"in r)){var g=r.type;(g!==u.type||g===void 0&&t.hasAttribute("type"))&&(u.type=g,Ct(t,"type",g))}for(const P in r){let T=r[P];if(f&&P==="value"&&T==null){t.value=t.__value="",u[P]=T;continue}if(P==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";ns(t,p,T,n,e==null?void 0:e[Hs],r[Hs]),u[P]=T,u[Hs]=r[Hs];continue}if(P==="style"){Zo(t,T,e==null?void 0:e[Ks],r[Ks]),u[P]=T,u[Ks]=r[Ks];continue}var m=u[P];if(!(T===m&&!(T===void 0&&t.hasAttribute(P)))){u[P]=T;var y=P[0]+P[1];if(y!=="$$")if(y==="on"){const N={},x="$$"+P;let D=P.slice(2);var w=sb(D);if(nb(D)&&(D=D.slice(0,-7),N.capture=!0),!w&&m){if(T!=null)continue;t.removeEventListener(D,u[x],N),u[x]=null}if(w)ui(D,t,T),fd([D]);else if(T!=null){let G=function(K){u[P].call(this,K)};var S=G;u[x]=dd(D,t,G,N)}}else if(P==="style")Ct(t,P,T);else if(P==="autofocus")Em(t,!!T);else if(!a&&(P==="__value"||P==="value"&&T!=null))t.value=t.__value=T;else if(P==="selected"&&f)Ob(t,T);else{var k=P;c||(k=ab(k));var O=k==="defaultValue"||k==="defaultChecked";if(T==null&&!a&&!O)if(i[P]=null,k==="value"||k==="checked"){let N=t;const x=e===void 0;if(k==="value"){let D=N.defaultValue;N.removeAttribute(k),N.defaultValue=D,N.value=N.__value=x?D:null}else{let D=N.defaultChecked;N.removeAttribute(k),N.defaultChecked=D,N.checked=x?D:!1}}else t.removeAttribute(P);else O||h.includes(k)&&(a||typeof T!="string")?(t[k]=T,k in i&&(i[k]=ut)):typeof T!="function"&&Ct(t,k,T)}}}return u}function Ke(t,e,r=[],n=[],o=[],s,i=!1,a=!1){Kh(o,r,n,c=>{var u=void 0,f={},v=t.nodeName===Tb,h=!1;if(fv(()=>{var p=e(...c.map(d)),m=Mb(t,u,p,s,i,a);h&&v&&"value"in p&&hu(t,p.value);for(let w of Object.getOwnPropertySymbols(f))p[w]||Pt(f[w]);for(let w of Object.getOwnPropertySymbols(p)){var y=p[w];w.description===Lh&&(!u||y!==u[w])&&(f[w]&&Pt(f[w]),f[w]=Yt(()=>kb(t,()=>y))),m[w]=y}u=m}),v){var g=t;gc(()=>{hu(g,u.value,!0),Cb(g)})}h=!0})}function Rv(t){return t[Qa]??(t[Qa]={[Nv]:t.nodeName.includes("-"),[zv]:t.namespaceURI===Fh})}var Sf=new Map;function Fv(t){var e=t.getAttribute("is")||t.nodeName,r=Sf.get(e);if(r)return r;Sf.set(e,r=[]);for(var n,o=t,s=Element.prototype;s!==o;){n=Oh(o);for(var i in n)n[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&r.push(i);o=Qu(o)}return r}function vu(t,e,r=e){var n=new WeakSet;Hh(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Mc(t)?$c(s):s,r(s),Me!==null&&n.add(Me),await _v(),s!==(s=e())){var i=t.selectionStart,a=t.selectionEnd,c=t.value.length;if(t.value=s??"",a!==null){var u=t.value.length;i===a&&a===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=i,t.selectionEnd=Math.min(a,u))}}}),br(e)==null&&t.value&&(r(Mc(t)?$c(t.value):t.value),Me!==null&&n.add(Me)),pc(()=>{var o=e();if(t===document.activeElement){var s=Me;if(n.has(s))return}Mc(t)&&o===$c(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Mc(t){var e=t.type;return e==="number"||e==="range"}function $c(t){return t===""?null:+t}function $b(t,e,r=e){Hh(t,"change",()=>{r(t.files)}),pc(()=>{t.files=e()})}function Ic(t,e){return t===e||(t==null?void 0:t[jr])===e}function st(t={},e,r,n){var o=Ue.r,s=ze;return gc(()=>{var i,a;return pc(()=>{i=a,a=[],br(()=>{Ic(r(...a),t)||(e(t,...a),i&&Ic(r(...i),t)&&e(null,...i))})}),()=>{let c=s;for(;c!==o&&c.parent!==null&&c.parent.f&Zc;)c=c.parent;const u=()=>{a&&Ic(r(...a),t)&&e(null,...a)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Ib(t=!1){const e=Ue,r=e.l.u;if(!r)return;let n=()=>fo(e.s);if(t){let o=0,s={};const i=Os(()=>{let a=!1;const c=e.s;for(const u in c)c[u]!==s[u]&&(s[u]=c[u],a=!0);return a&&o++,o});n=()=>d(i)}r.b.length&&uv(()=>{Pf(e,n),Yc(r.b)}),ot(()=>{const o=br(()=>r.m.map(Wp));return()=>{for(const s of o)typeof s=="function"&&s()}}),r.a.length&&ot(()=>{Pf(e,n),Yc(r.a)})}function Pf(t,e){if(t.l.s)for(const r of t.l.s)d(r);e()}const Nb={get(t,e){if(!t.exclude.has(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.has(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.has(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.has(e))}};function Ge(t,e,r){return new Proxy({props:t,exclude:e},Nb)}const zb={get(t,e){if(!t.exclude.includes(e))return d(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){if(!(e in t.special)){var n=ze;try{mr(t.parent_effect),t.special[e]=M({get[e](){return t.props[e]}},e,Rh)}finally{mr(n)}}return t.special[e](r),ff(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),ff(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Xe(t,e){return new Proxy({props:t,exclude:e,special:{},version:Sn(0),parent_effect:ze},zb)}const Rb={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Yo(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let o=t.props[n];Yo(o)&&(o=o());const s=Un(o,e);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Yo(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const o=Un(n,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===jr||e===Ih)return!1;for(let r of t.props)if(Yo(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(Yo(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function je(...t){return new Proxy({props:t},Rb)}function M(t,e,r,n){var S;var o=!Fs||(r&lm)!==0,s=(r&cm)!==0,i=(r&um)!==0,a=n,c=!0,u=void 0,f=()=>i&&o?(u??(u=Os(n)),d(u)):(c&&(c=!1,a=i?br(n):n),a);let v;if(s){var h=jr in t||Ih in t;v=((S=Un(t,e))==null?void 0:S.set)??(h&&e in t?P=>t[e]=P:void 0)}var g,p=!1;s?[g,p]=Am(()=>t[e]):g=t[e],g===void 0&&n!==void 0&&(g=f(),v&&(o&&Jp(),v(g)));var m;if(o?m=()=>{var P=t[e];return P===void 0?f():(c=!0,P)}:m=()=>{var P=t[e];return P!==void 0&&(a=void 0),P===void 0?a:P},o&&(r&Rh)===0)return m;if(v){var y=t.$$legacy;return(function(P,T){return arguments.length>0?((!o||!T||y||p)&&v(T?m():P),P):m()})}var w=!1,k=((r&am)!==0?Os:od)(()=>(w=!1,m()));s&&d(k);var O=ze;return(function(P,T){if(arguments.length>0){const N=T?d(k):o&&s?Zt(P):P;return R(k,N),w=!0,a!==void 0&&(a=N),P}return Pn&&w||(O.f&nr)!==0?k.v:d(k)})}function hd(t){Ue===null&&Nh(),Fs&&Ue.l!==null?Fb(Ue).m.push(t):ot(()=>{const e=br(t);if(typeof e=="function")return e})}function Fb(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Lb="5";var Eh;typeof window<"u"&&((Eh=window.__svelte??(window.__svelte={})).v??(Eh.v=new Set)).add(Lb);const Db=t=>t;function Bb(t,{delay:e=0,duration:r=400,easing:n=Db}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:s=>`opacity: ${s*o}`}}class ni extends Error{constructor(e,r){super(r),this.status=e}}async function On(t,e){const r=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!r.ok){let n=`HTTP ${r.status}`;try{const o=await r.json();o&&typeof o.error=="string"&&(n=o.error)}catch{}throw new ni(r.status,n)}if(r.status!==204)return await r.json()}const es={login:t=>On("/api/session",{method:"POST",body:JSON.stringify({password:t})}),logout:()=>On("/api/session",{method:"DELETE"}),status:()=>On("/api/status"),rules:(t,e)=>{const r=new URLSearchParams({category:t});return e!=null&&e.q&&r.set("q",e.q),(e==null?void 0:e.offset)!=null&&r.set("offset",String(e.offset)),(e==null?void 0:e.limit)!=null&&r.set("limit",String(e.limit)),On(`/api/rules?${r}`)},addRules:(t,e)=>On("/api/rules",{method:"POST",body:JSON.stringify({category:t,rules:e})}),removeRules:(t,e)=>On("/api/rules",{method:"DELETE",body:JSON.stringify({category:t,rules:e})}),traffic:(t,e,r)=>{const n=[];return t&&n.push(`sort=${t}`),e&&e!=="all"&&n.push(`source=${e}`),r&&n.push(`client=${encodeURIComponent(r)}`),On(n.length?`/api/traffic?${n.join("&")}`:"/api/traffic")},history:()=>On("/api/history")},Vb=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n({classGroupId:t,validator:e}),Lv=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Pl="-",Cf=[],jb="arbitrary..",Gb=t=>{const e=Kb(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Hb(i);const a=i.split(Pl),c=a[0]===""&&a.length>1?1:0;return Dv(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?Vb(u,c):c:u||Cf}return r[i]||Cf}}},Dv=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=Dv(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(Pl):t.slice(e).join(Pl),c=i.length;for(let u=0;ut.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?jb+n:void 0})(),Kb=t=>{const{theme:e,classGroups:r}=t;return Ub(r,e)},Ub=(t,e)=>{const r=Lv();for(const n in t){const o=t[n];vd(o,r,n,e)}return r},vd=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){Yb(t,e,r);return}if(typeof t=="function"){Xb(t,e,r,n);return}Zb(t,e,r,n)},Yb=(t,e,r)=>{const n=t===""?e:Bv(e,t);n.classGroupId=r},Xb=(t,e,r,n)=>{if(Jb(t)){vd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Wb(r,t))},Zb=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(Pl),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,Qb=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,e++,e>t&&(e=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)}}},gu="!",Af=":",ey=[],Ef=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),ty=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const s=[];let i=0,a=0,c=0,u;const f=o.length;for(let m=0;mc?u-c:void 0;return Ef(s,g,h,p)};if(e){const o=e+Af,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Ef(ey,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},ry=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},ny=t=>({cache:Qb(t.cacheSize),parseClassName:ty(t),sortModifiers:ry(t),postfixLookupClassGroupIds:oy(t),...Gb(t)}),oy=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=e,a=[],c=t.trim().split(sy);let u="";for(let f=c.length-1;f>=0;f-=1){const v=c[f],{isExternal:h,modifiers:g,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(v);if(h){u=v+(u.length>0?" "+u:u);continue}let w=!!y,k;if(w){const N=m.substring(0,y);k=n(N);const x=k&&i[k]?n(m):void 0;x&&x!==k&&(k=x,w=!1)}else k=n(m);if(!k){if(!w){u=v+(u.length>0?" "+u:u);continue}if(k=n(m),!k){u=v+(u.length>0?" "+u:u);continue}w=!1}const O=g.length===0?"":g.length===1?g[0]:s(g).join(":"),S=p?O+gu:O,P=S+k;if(a.indexOf(P)>-1)continue;a.push(P);const T=o(k,w);for(let N=0;N0?" "+u:u)}return u},ay=(...t)=>{let e=0,r,n,o="";for(;e{if(typeof t=="string")return t;let e,r="";for(let n=0;n{let r,n,o,s;const i=c=>{const u=e.reduce((f,v)=>v(f),t());return r=ny(u),n=r.cache.get,o=r.cache.set,s=a,a(c)},a=c=>{const u=n(c);if(u)return u;const f=iy(c,r);return o(c,f),f};return s=i,(...c)=>s(ay(...c))},cy=[],bt=t=>{const e=r=>r[t]||cy;return e.isThemeGetter=!0,e},Wv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,jv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,uy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,dy=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fy=/\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$/,hy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Mn=t=>uy.test(t),Be=t=>!!t&&!Number.isNaN(Number(t)),Mr=t=>!!t&&Number.isInteger(Number(t)),Nc=t=>t.endsWith("%")&&Be(t.slice(0,-1)),Qr=t=>dy.test(t),Gv=()=>!0,py=t=>fy.test(t)&&!hy.test(t),gd=()=>!1,my=t=>vy.test(t),by=t=>gy.test(t),yy=t=>!be(t)&&!xe(t),wy=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),xy=t=>ro(t,Uv,gd),be=t=>Wv.test(t),so=t=>ro(t,qv,py),Tf=t=>ro(t,Ty,Be),_y=t=>ro(t,Xv,Gv),ky=t=>ro(t,Yv,gd),Of=t=>ro(t,Hv,gd),Sy=t=>ro(t,Kv,by),Ba=t=>ro(t,Zv,my),xe=t=>jv.test(t),Us=t=>Vo(t,qv),Py=t=>Vo(t,Yv),Mf=t=>Vo(t,Hv),Cy=t=>Vo(t,Uv),Ay=t=>Vo(t,Kv),Va=t=>Vo(t,Zv,!0),Ey=t=>Vo(t,Xv,!0),ro=(t,e,r)=>{const n=Wv.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Vo=(t,e,r=!1)=>{const n=jv.exec(t);return n?n[1]?e(n[1]):r:!1},Hv=t=>t==="position"||t==="percentage",Kv=t=>t==="image"||t==="url",Uv=t=>t==="length"||t==="size"||t==="bg-size",qv=t=>t==="length",Ty=t=>t==="number",Yv=t=>t==="family-name",Xv=t=>t==="number"||t==="weight",Zv=t=>t==="shadow",Oy=()=>{const t=bt("color"),e=bt("font"),r=bt("text"),n=bt("font-weight"),o=bt("tracking"),s=bt("leading"),i=bt("breakpoint"),a=bt("container"),c=bt("spacing"),u=bt("radius"),f=bt("shadow"),v=bt("inset-shadow"),h=bt("text-shadow"),g=bt("drop-shadow"),p=bt("blur"),m=bt("perspective"),y=bt("aspect"),w=bt("ease"),k=bt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),xe,be],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],x=()=>[xe,be,c],D=()=>[Mn,"full","auto",...x()],G=()=>[Mr,"none","subgrid",xe,be],K=()=>["auto",{span:["full",Mr,xe,be]},Mr,xe,be],L=()=>[Mr,"auto",xe,be],U=()=>["auto","min","max","fr",xe,be],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],fe=()=>[Mn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],de=()=>[Mn,"screen","full","dvw","lvw","svw","min","max","fit",...x()],ce=()=>[Mn,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],C=()=>[t,xe,be],we=()=>[...S(),Mf,Of,{position:[xe,be]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",Cy,xy,{size:[xe,be]}],re=()=>[Nc,Us,so],H=()=>["","none","full",u,xe,be],ne=()=>["",Be,Us,so],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Be,Nc,Mf,Of],Q=()=>["","none",p,xe,be],se=()=>["none",Be,xe,be],ee=()=>["none",Be,xe,be],Te=()=>[Be,xe,be],V=()=>[Mn,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qr],breakpoint:[Qr],color:[Gv],container:[Qr],"drop-shadow":[Qr],ease:["in","out","in-out"],font:[yy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qr],shadow:[Qr],spacing:["px",Be],text:[Qr],"text-shadow":[Qr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Mn,be,xe,y]}],container:["container"],"container-type":[{"@container":["","normal","size",xe,be]}],"container-named":[wy],columns:[{columns:[Be,be,xe,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:P()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",xe,be]}],basis:[{basis:[Mn,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,Mn,"auto","initial","none",be]}],grow:[{grow:["",Be,xe,be]}],shrink:[{shrink:["",Be,xe,be]}],order:[{order:[Mr,"first","last","none",xe,be]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[a,"screen",...fe()]}],"min-w":[{"min-w":[a,"screen","none",...fe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,Us,so]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Ey,_y]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nc,be]}],"font-family":[{font:[Py,ky,e]}],"font-features":[{"font-features":[be]}],"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,xe,be]}],"line-clamp":[{"line-clamp":[Be,"none",xe,Tf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",xe,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",xe,so]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Be,"auto",xe,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Mr,xe,be]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,be]}],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",xe,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,xe,be],radial:["",xe,be],conic:[Mr,xe,be]},Ay,Sy]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,xe,be]}],"outline-w":[{outline:["",Be,Us,so]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Va,Ba]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",v,Va,Ba]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Be,so]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Va,Ba]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Be,xe,be]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[xe,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,be]}],filter:[{filter:["","none",xe,be]}],blur:[{blur:Q()}],brightness:[{brightness:[Be,xe,be]}],contrast:[{contrast:[Be,xe,be]}],"drop-shadow":[{"drop-shadow":["","none",g,Va,Ba]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Be,xe,be]}],"hue-rotate":[{"hue-rotate":[Be,xe,be]}],invert:[{invert:["",Be,xe,be]}],saturate:[{saturate:[Be,xe,be]}],sepia:[{sepia:["",Be,xe,be]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,be]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[Be,xe,be]}],"backdrop-contrast":[{"backdrop-contrast":[Be,xe,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,xe,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,xe,be]}],"backdrop-invert":[{"backdrop-invert":["",Be,xe,be]}],"backdrop-opacity":[{"backdrop-opacity":[Be,xe,be]}],"backdrop-saturate":[{"backdrop-saturate":[Be,xe,be]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,xe,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",xe,be]}],ease:[{ease:["linear","initial",w,xe,be]}],delay:[{delay:[Be,xe,be]}],animate:[{animate:["none",k,xe,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,xe,be]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[xe,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Mr,xe,be]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",xe,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",xe,be]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Be,Us,so,Tf]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},My=ly(Oy);function He(...t){return My(di(t))}var $y=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Iy=le("
");function kt(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,$y);var o=Iy();Ke(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>He("px-(--card-spacing)",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var Ny=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),zy=le("

");function Tt(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Ny);var o=zy();Ke(o,i=>({"data-slot":"card-description",class:i,...n}),[()=>He("text-sm text-muted-foreground",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var Ry=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Fy=le("
");function Ot(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Ry);var o=Fy();Ke(o,i=>({"data-slot":"card-header",class:i,...n}),[()=>He("gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var Ly=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Dy=le("
");function Qt(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Ly);var o=Dy();Ke(o,i=>({"data-slot":"card-title",class:i,...n}),[()=>He("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var By=new Set(["$$slots","$$events","$$legacy","ref","class","children","size"]),Vy=le("
");function wt(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"size",3,"default"),o=Ge(e,By);var s=Vy();Ke(s,a=>({"data-slot":"card","data-size":n(),class:a,...o}),[()=>He("gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col",e.class)]);var i=B(s);Re(i,()=>e.children??Ne),st(s,a=>r(a),()=>r()),b(t,s),Ie()}var Wy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),jy=le("
");function pd(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Wy);var o=jy();Ke(o,i=>({"data-slot":"alert-description",class:i,...n}),[()=>He("text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var Gy=Array.isArray,mc=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(Gy(t)){const r=t.length;for(let n=0;ntypeof t!="string"||!t?t:t.replace(Hy," ").trim(),Uy=t=>{const e=t.length;if(e===0)return!1;const r=t.charCodeAt(0),n=t.charCodeAt(e-1);if(r===32||n===32||r>=9&&r<=13||r===160||n>=9&&n<=13||n===160)return!0;for(let o=0;o=9&&s<=13||s===160||s===32&&o+1{const e=mc(t);if(e)return Uy(e)?Ky(e):e},mu=t=>t===!1?"false":t===!0?"true":t===0?"0":t,fr=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},Jv=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=t,n=e,o=Object.keys(r),s=Object.keys(n);if(o.length!==s.length)return!1;for(let i=0;i{const r=t;for(const n in e)if(Object.hasOwn(e,n)){const o=e[n];n in r?r[n]=sl(r[n],o):r[n]=o}return t},Qv=(t,e)=>{for(let r=0;r{const e=[];Qv(t,e);const r=[];for(let n=0;n{const r=t,n=e,o={};for(const s in r){const i=r[s];if(s in n){const a=n[s];pu(i)||pu(a)?o[s]=bu(a,i):typeof i=="object"&&typeof a=="object"&&i&&a?o[s]=md(i,a):o[s]=a+" "+i}else o[s]=i}for(const s in n)s in r||(o[s]=n[s]);return o},Yy={twMerge:!0,twMergeConfig:{}},eg=256,Xy=128,No=Symbol("tv-cache-miss"),Zy=t=>(t==null?void 0:t.class)!=null&&t.class!==""||(t==null?void 0:t.className)!=null&&t.className!=="",$f=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=mu(t),r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return String(e);if(r==="object")try{return JSON.stringify(e)}catch{return null}return null},Uo=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},tg=(t,e,r,n)=>{let o="";const s=Object.create(null);for(let a=0;a1&&i.sort();for(let a=0;a{let r="";for(let n=0;n{let e=new Map,r=null;return{get(n){if(e.has(n))return e.get(n);if(r!=null&&r.has(n)){const o=r.get(n);return e.set(n,o),o}return No},set(n,o){e.size>=t&&(r=e,e=new Map),e.set(n,o)}}},Jy=(t=eg)=>{const e=ng(t);return{get(r){return e.get(r)},set(r,n){e.set(r,n)}}},Qy=(t=Xy)=>{let e=new Map,r=null,n=0;return{get(o,s){const i=e.get(o);if(i){const a=i.get(s);if(a!==void 0||i.has(s))return a}if(r){const a=r.get(o);if(a){const c=a.get(s);if(c!==void 0||a.has(s)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(s)||n++,u.set(s,c),c}}}return No},set(o,s,i){n>=t&&(r=e,e=new Map,n=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(s)||n++,a.set(s,i)}}},bd=(t,e)=>{let r=null;return(n,o)=>{if(!Zy(o))return n;const s=o.class,i=o.className;if(s!=null&&s!==""&&typeof s!="string"||i!=null&&i!==""&&typeof i!="string")return t(e,n,s,i);r??(r=Qy());const a=n??"",c=(typeof s=="string"?s:"")+"\0"+(typeof i=="string"?i:""),u=r.get(a,c);if(u!==No)return u;const f=t(e,n,s,i);return r.set(a,c,f),f}};function ew(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var Ft=ew(),tw=t=>{!fr(t.twMergeConfig)&&!Jv(t.twMergeConfig,Ft.cachedTwMergeConfig)&&(Ft.didTwMergeConfigChange=!0,Ft.cachedTwMergeConfig=t.twMergeConfig)},rw=(t,e)=>{const r=[];for(let n=0;n{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{const e={};for(let r=0;r{const{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=t,c={...Yy,...e},u=t.slots!==void 0,f=r!=null&&r.base?sl(r.base,t==null?void 0:t.base):t==null?void 0:t.base,v=r!=null&&r.variants&&!fr(r.variants)?md(o,r.variants):o,h=r!=null&&r.defaultVariants&&!fr(r.defaultVariants)?{...r.defaultVariants,...a}:a;tw(c);const g=!(r!=null&&r.slots)||fr(r.slots),p=u?g&&(r!=null&&r.base)?sl(t==null?void 0:t.base,r.base):typeof(t==null?void 0:t.base)=="string"||(t==null?void 0:t.base)==null?t.base:sl(t.base):void 0,m=u?{base:p,...n}:{},y=g?m:qy({...r==null?void 0:r.slots},fr(m)?{base:t==null?void 0:t.base}:m),w=!(r!=null&&r.compoundVariants)||fr(r.compoundVariants)?s:bu(r==null?void 0:r.compoundVariants,s),k=!(r!=null&&r.compoundSlots)||fr(r.compoundSlots)?i:bu(r==null?void 0:r.compoundSlots,i),O=Object.keys(v),S=w&&!Array.isArray(w)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`):k&&!Array.isArray(k)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof k}`):null,P=u||!g?"slots":O.length===0?"plain":"variants";return{config:c,extend:r,base:f,variants:v,defaultVariants:h,slots:y,compoundVariants:w,compoundSlots:k,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:S,mode:P,slotKeys:null,variantKeys:O}},og=t=>(t.compiledVariants!==null||(t.compiledVariants=rw(t.variants,t.variantKeys),t.compiledCompoundVariants=nw(t.compoundVariants),t.compiledCompoundSlots=ow(t.compoundSlots),t.compiledCompoundSlotsBySlot=sw(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),yu=[],sg=[],aw=[],lw=[],cw=[],ig=(t,e,r)=>{const n={};for(const o in t)n[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(n[o]=e[o]);if(r)for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n},Wa=t=>t==null||t===!1,uw=(t,e)=>{if(!Array.isArray(t))return t===e||Wa(t)&&Wa(e);for(let r=0;r{if(t.isEmpty)return null;const o=(n==null?void 0:n[t.key])??(r==null?void 0:r[t.key]);if(o===null)return null;const s=mu(o);if(typeof s=="object")return null;const i=e==null?void 0:e[t.key],a=s??mu(i);return t.values[a||"false"]},yd=(t,e)=>{const{conditionKeys:r,source:n}=t;for(let o=0;o{typeof r=="string"?e==="base"&&t.push(r):r&&typeof r=="object"&&r[e]&&t.push(r[e])},dw=(t,e,r)=>{const n=sg;n.length=0;for(let o=0;o{const s=sg;s.length=0;for(let i=0;i{const r=aw;r.length=0;for(let n=0;n{const n=lw;n.length=0;for(let o=0;o{const r=cw;r.length=0;for(let n=0;n{const{base:r,config:n}=t;let o=No;const s=bd(e,n);return(i=>(o===No&&(o=e(n,r)),s(o,i)))},mw=(t,e)=>{const{base:r,config:n,defaultVariants:o,deferredError:s,variantKeys:i}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,u=yu,f=null;const v=bd(e,n);let h=1;const g=p=>{const m=a.length>0?hw(a,ig(o,p)):void 0;return e(n,r,dw(c,o,p),m)};return(p=>{if(s)throw s;(c===null||a===null)&&(og(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??yu);let m;if(h>0)h--,m=g(p);else{f??(f=Jy());const y=tg(i,o,p);if(y!==null){const w=a.length>0||u.length>0?rg(a,u):"",k=y+"#"+w,O=f.get(k);O!==No?m=O:(m=g(p),f.set(k,m))}else m=g(p)}return v(m,p)})},bw=(t,e)=>{const{config:r,defaultVariants:n,deferredError:o,slots:s,variantKeys:i}=t;let a=null,c=null,u=null,f=null,v=!1,h=null,g=null,p=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&og(t);const w=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const k=t.compiledCompoundSlotsBySlot;u=t.slotKeys,v=a.length>0||c.length>0,h=bd(e,r);const O=new Array(u.length);for(let S=0;S{const D=v?ig(n,N,x):void 0,G=D?vw(P,a,D):void 0,K=D?gw(T,D):void 0;return e(r,s[P],fw(P,w,n,N,x),G,K)}}f=O},y=w=>{const k=u,O=f,S=h,P={};for(let T=0;T{if(D==null)return x;let G=!1;for(const K in D)if(!(K==="class"||K==="className")&&D[K]!==void 0){G=!0;break}return S(G?N(w,D):x,D)}}return P};return(w=>{if(o)throw o;if(m(),p>0)return p--,y(w);const k=tg(i,n,w);if(k===null)return y(w);const O=v?rg(a,c):"",S=k+"#"+O;g??(g=ng());const P=g.get(S);if(P!==No)return P;const T=y(w);return g.set(S,T),T})},yw=(t,e)=>{if(t.mode==="plain")return pw(t,e);let r;return(n=>(r??(r=t.mode==="slots"?bw(t,e):mw(t,e)),r(n)))},ww=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},xw=t=>{const e=(n,o)=>{const s=iw(n,o),i=yw(s,t);return ww(i,s),i};return{tv:e,createTV:n=>(o,s)=>e(o,s?md(n,s):n)}},_w=(t,e)=>{const r=t.length,n=e.length,o=new Array(r+n);for(let s=0;s({classGroupId:t,validator:e}),lg=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),Cl="-",Nf=[],Sw="arbitrary..",Pw=t=>{const e=Aw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i[0]==="["&&i[i.length-1]==="]")return Cw(i);const a=i.split(Cl),c=a[0]===""&&a.length>1?1:0;return cg(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?_w(u,c):c:u||Nf}return r[i]||Nf}}},cg=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=cg(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(Cl):t.slice(e).join(Cl),c=i.length;for(let u=0;u{const e=t.slice(1,-1),r=e.indexOf(":");if(r===-1)return;const n=e.slice(0,r);return n?Sw+n:void 0},Aw=t=>{const{theme:e,classGroups:r}=t;return Ew(r,e)},Ew=(t,e)=>{const r=lg();for(const n in t){const o=t[n];wd(o,r,n,e)}return r},wd=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){Ow(t,e,r);return}if(typeof t=="function"){Mw(t,e,r,n);return}$w(t,e,r,n)},Ow=(t,e,r)=>{const n=t===""?e:ug(e,t);n.classGroupId=r},Mw=(t,e,r,n)=>{if(Iw(t)){wd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(kw(r,t))},$w=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(Cl),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,Nw="!",zw=58,Rw=47,Fw=91,Lw=93,Dw=40,Bw=41,zf=33,Vw=(t,e,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:void 0}),Rf=t=>{const e=[];let r=0,n=0,o=0,s;const i=t.length;for(let h=0;ho?s-o:void 0;return Vw(e,u,c,v)},Ww=t=>{const e=new Set(t.orderSensitiveModifiers);return r=>{const n=[];let o=[];for(let s=0;s0){o.sort();for(let u=0;u0){o.sort();for(let s=0;s{const e=Ww(t),r=Kw(t),{getClassGroupId:n,getConflictingClassGroupIds:o}=Pw(t);let s=Object.create(null),i=Object.create(null),a=0,c=new Int32Array(256),u=0,f=new Uint8Array(64),v=!1;const h=O=>{const S=[],P=O.length;let T=-1;v=!1;for(let N=0;N=9&&x<=13?(v=!0,T!==-1&&(S.push(O.slice(T,N)),T=-1)):T===-1&&(T=N)}return T!==-1&&S.push(O.slice(T)),S},g=new Map;let p=0;const m=O=>{let S=g.get(O);if(S===void 0&&(S=p++,g.set(O,S),S>=c.length)){const P=new Int32Array(c.length*2);P.set(c),c=P}return S},y=O=>{const{isExternal:S,modifiers:P,hasImportantModifier:T,baseClassName:N,maybePostfixModifierPosition:x}=Rf(O);if(S)return zc;let D=!!x,G;if(D){const z=N.substring(0,x);G=n(z);const F=G&&r[G]?n(N):void 0;F&&F!==G&&(G=F,D=!1)}else G=n(N);if(!G){if(!D||(G=n(N),!G))return zc;D=!1}const K=P.length===0?"":P.length===1?P[0]:e(P).join(":"),L=T?K+Nw:K,U=o(G,D),Z=[];for(let z=0;z{let S=s[O];return S!==void 0||(S=i[O],S===void 0&&(S=y(O)),s[O]=S,++a>jw&&(a=0,i=s,s=Object.create(null))),S};return{parseClassName:Rf,sortModifiers:e,postfixLookupClassGroupIds:r,getClassGroupId:n,getConflictingClassGroupIds:o,getClassDescriptor:w,mergeClassList:O=>{const S=h(O),P=S.length;if(P===1)return S[0];p>Gw&&(g.clear(),p=0,s=Object.create(null),i=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const T=u;if(P>f.length){let G=f.length;for(;G=0;G-=1){const K=S[G];x+=K.length;const L=w(K);if(L.isExternal){f[G]=1;continue}const U=L.classId;if(c[U]===T){f[G]=0,N=!0;continue}c[U]=T;const Z=L.conflictIds;for(let z=0;z{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{let e,r,n=Object.create(null),o=Object.create(null),s=0;const i=u=>(e=Hw(t()),r=e.mergeClassList,c.mergeString=a,a(u)),a=u=>{let f=n[u];return f!==void 0||(f=o[u],f===void 0&&(f=r(u)),n[u]=f,++s>Uw&&(s=0,o=n,n=Object.create(null))),f},c=(...u)=>c.mergeString(mc(u));return c.mergeString=i,c},qw=[],yt=t=>{const e=r=>r[t]||qw;return e.isThemeGetter=!0,e},dg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Xw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Zw=/\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$/,Jw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Qw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hg=Number,tx=Number.isNaN,rx=Number.isInteger,$n=t=>Yw.test(t),Ve=t=>!!t&&!tx(hg(t)),$r=t=>!!t&&rx(hg(t)),Rc=t=>t.endsWith("%")&&Ve(t.slice(0,-1)),en=t=>Xw.test(t),vg=()=>!0,nx=t=>Zw.test(t)&&!Jw.test(t),xd=()=>!1,ox=t=>Qw.test(t),sx=t=>ex.test(t),ix=t=>!ye(t)&&!_e(t),ax=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),lx=t=>no(t,mg,xd),ye=t=>dg.test(t),io=t=>no(t,bg,nx),Lf=t=>no(t,px,Ve),cx=t=>no(t,wg,vg),ux=t=>no(t,yg,xd),Df=t=>no(t,gg,xd),dx=t=>no(t,pg,sx),ja=t=>no(t,xg,ox),_e=t=>fg.test(t),qs=t=>Wo(t,bg),fx=t=>Wo(t,yg),Bf=t=>Wo(t,gg),hx=t=>Wo(t,mg),vx=t=>Wo(t,pg),Ga=t=>Wo(t,xg,!0),gx=t=>Wo(t,wg,!0),no=(t,e,r)=>{const n=dg.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Wo=(t,e,r=!1)=>{const n=fg.exec(t);return n?n[1]?e(n[1]):r:!1},gg=t=>t==="position"||t==="percentage",pg=t=>t==="image"||t==="url",mg=t=>t==="length"||t==="size"||t==="bg-size",bg=t=>t==="length",px=t=>t==="number",yg=t=>t==="family-name",wg=t=>t==="number"||t==="weight",xg=t=>t==="shadow",Fc=()=>{const t=yt("color"),e=yt("font"),r=yt("text"),n=yt("font-weight"),o=yt("tracking"),s=yt("leading"),i=yt("breakpoint"),a=yt("container"),c=yt("spacing"),u=yt("radius"),f=yt("shadow"),v=yt("inset-shadow"),h=yt("text-shadow"),g=yt("drop-shadow"),p=yt("blur"),m=yt("perspective"),y=yt("aspect"),w=yt("ease"),k=yt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...S(),_e,ye],T=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],x=()=>[_e,ye,c],D=()=>[$n,"full","auto",...x()],G=()=>[$r,"none","subgrid",_e,ye],K=()=>["auto",{span:["full",$r,_e,ye]},$r,_e,ye],L=()=>[$r,"auto",_e,ye],U=()=>["auto","min","max","fr",_e,ye],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],fe=()=>[$n,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],de=()=>[$n,"screen","full","dvw","lvw","svw","min","max","fit",...x()],ce=()=>[$n,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],C=()=>[t,_e,ye],we=()=>[...S(),Bf,Df,{position:[_e,ye]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],q=()=>["auto","cover","contain",hx,lx,{size:[_e,ye]}],re=()=>[Rc,qs,io],H=()=>["","none","full",u,_e,ye],ne=()=>["",Ve,qs,io],X=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Ve,Rc,Bf,Df],Q=()=>["","none",p,_e,ye],se=()=>["none",Ve,_e,ye],ee=()=>["none",Ve,_e,ye],Te=()=>[Ve,_e,ye],V=()=>[$n,"full",...x()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[en],breakpoint:[en],color:[vg],container:[en],"drop-shadow":[en],ease:["in","out","in-out"],font:[ix],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[en],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[en],shadow:[en],spacing:["px",Ve],text:[en],"text-shadow":[en],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$n,ye,_e,y]}],container:["container"],"container-type":[{"@container":["","normal","size",_e,ye]}],"container-named":[ax],columns:[{columns:[Ve,ye,_e,a]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:P()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{"inset-s":D(),start:D()}],end:[{"inset-e":D(),end:D()}],"inset-bs":[{"inset-bs":D()}],"inset-be":[{"inset-be":D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[$r,"auto",_e,ye]}],basis:[{basis:[$n,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,$n,"auto","initial","none",ye]}],grow:[{grow:["",Ve,_e,ye]}],shrink:[{shrink:["",Ve,_e,ye]}],order:[{order:[$r,"first","last","none",_e,ye]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":U()}],"auto-rows":[{"auto-rows":U()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:fe()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[a,"screen",...fe()]}],"min-w":[{"min-w":[a,"screen","none",...fe()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...fe()]}],h:[{h:["screen","lh",...fe()]}],"min-h":[{"min-h":["screen","lh","none",...fe()]}],"max-h":[{"max-h":["screen","lh",...fe()]}],"font-size":[{text:["base",r,qs,io]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,gx,cx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rc,ye]}],"font-family":[{font:[fx,ux,e]}],"font-features":[{"font-features":[ye]}],"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,_e,ye]}],"line-clamp":[{"line-clamp":[Ve,"none",_e,Lf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",_e,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",_e,io]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Ve,"auto",_e,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[$r,_e,ye]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,ye]}],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",_e,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:we()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$r,_e,ye],radial:["",_e,ye],conic:[$r,_e,ye]},vx,dx]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,_e,ye]}],"outline-w":[{outline:["",Ve,qs,io]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Ga,ja]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",v,Ga,ja]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Ve,io]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Ga,ja]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Ve,_e,ye]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[_e,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:we()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,ye]}],filter:[{filter:["","none",_e,ye]}],blur:[{blur:Q()}],brightness:[{brightness:[Ve,_e,ye]}],contrast:[{contrast:[Ve,_e,ye]}],"drop-shadow":[{"drop-shadow":["","none",g,Ga,ja]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Ve,_e,ye]}],"hue-rotate":[{"hue-rotate":[Ve,_e,ye]}],invert:[{invert:["",Ve,_e,ye]}],saturate:[{saturate:[Ve,_e,ye]}],sepia:[{sepia:["",Ve,_e,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,ye]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,_e,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,_e,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,_e,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,_e,ye]}],"backdrop-invert":[{"backdrop-invert":["",Ve,_e,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,_e,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,_e,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,_e,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",_e,ye]}],ease:[{ease:["linear","initial",w,_e,ye]}],delay:[{delay:[Ve,_e,ye]}],animate:[{animate:["none",k,_e,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,_e,ye]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ee()}],"scale-x":[{"scale-x":ee()}],"scale-y":[{"scale-y":ee()}],"scale-z":[{"scale-z":ee()}],"scale-3d":["scale-3d"],skew:[{skew:Te()}],"skew-x":[{"skew-x":Te()}],"skew-y":[{"skew-y":Te()}],transform:[{transform:[_e,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[$r,_e,ye]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",_e,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",_e,ye]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Ve,qs,io,Lf]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mx=(t,{extend:e={},override:r={}})=>(Ha(t.theme,r.theme),Ha(t.classGroups,r.classGroups),Ha(t.conflictingClassGroups,r.conflictingClassGroups),Ha(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),wu(t,"postfixLookupClassGroups",r.postfixLookupClassGroups),wu(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),Ka(t.theme,e.theme),Ka(t.classGroups,e.classGroups),Ka(t.conflictingClassGroups,e.conflictingClassGroups),Ka(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),xu(t,e,"postfixLookupClassGroups"),xu(t,e,"orderSensitiveModifiers"),t),wu=(t,e,r)=>{r!==void 0&&(t[e]=r)},Ha=(t,e)=>{if(e)for(const r in e)wu(t,r,e[r])},Ka=(t,e)=>{if(e)for(const r in e)xu(t,e,r)},xu=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},_g=t=>Ff(t?typeof t=="function"?()=>t(Fc()):()=>mx(Fc(),t):Fc),bx=t=>{if(fr(t))return;const e=t,r={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&r[o]===void 0&&(r[o]=e[o]);const n={};if(Object.keys(r).length>0&&(n.extend=r),e.override!=null&&!fr(e.override)&&(n.override=e.override),!(!n.extend&&!n.override))return n},yx=t=>{const e=bx(t),r=_g(e);return n=>r.mergeString(n)},il,wx=()=>(il||(il=_g()),il),xx=()=>((!Ft.cachedTwMerge||Ft.didTwMergeConfigChange)&&(Ft.didTwMergeConfigChange=!1,Ft.cachedTwMerge=yx(Ft.cachedTwMergeConfig)),Ft.cachedTwMerge),_x=t=>{const e=t==null?void 0:t.twMergeConfig;!e||fr(e)||Jv(e,Ft.cachedTwMergeConfig)||(Ft.cachedTwMergeConfig=e,Ft.didTwMergeConfigChange=!0)},kx=t=>mc(t),Sx=Ft.reset.bind(Ft);Ft.reset=()=>{il=void 0,Sx()};var Px=(t,e)=>{const r=kx(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r||void 0:r.indexOf(" ")===-1?r:(_x(e),(!!(e!=null&&e.twMergeConfig&&!fr(e.twMergeConfig))?xx():wx().mergeString)(r)||void 0)},Cx=(t,...e)=>Px(e,t),Ax=xw(Cx),_d=Ax.tv;const Ex=_d({base:"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full",variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});var Tx=new Set(["$$slots","$$events","$$legacy","ref","class","variant","children"]),Ox=le("
");function kd(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,Tx);var s=Ox();Ke(s,a=>({"data-slot":"alert",role:"alert",class:a,...o}),[()=>He(Ex({variant:n()}),e.class)]);var i=B(s);Re(i,()=>e.children??Ne),st(s,a=>r(a),()=>r()),b(t,s),Ie()}var Mx=new Set(["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]),Vf=le("");function Sd(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"value",15),o=M(e,"files",15),s=M(e,"data-slot",3,"input"),i=Ge(e,Mx);var a=te(),c=E(a);{var u=v=>{var h=Vf();Ke(h,g=>({"data-slot":s(),class:g,type:"file",...i}),[()=>He("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),st(h,g=>r(g),()=>r()),$b(h,o),vu(h,n),b(v,h)},f=v=>{var h=Vf();Ke(h,g=>({"data-slot":s(),class:g,type:e.type,...i}),[()=>He("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),st(h,g=>r(g),()=>r()),vu(h,n),b(v,h)};Fe(c,v=>{e.type==="file"?v(u):v(f,-1)})}b(t,a),Ie()}function $x(t){return typeof t=="function"}function Ia(t){return t!==null&&typeof t=="object"}const Ix=["string","number","bigint","boolean"];function _u(t){return t==null||Ix.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>_u(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const zs=Symbol("box"),bc=Symbol("is-writable");function ge(t,e){const r=W(t);return e?{[zs]:!0,[bc]:!0,get current(){return d(r)},set current(n){e(n)}}:{[zs]:!0,get current(){return t()}}}function Na(t){return Ia(t)&&zs in t}function Pd(t){return Na(t)&&bc in t}function kg(t){return Na(t)?t:$x(t)?ge(t):Vr(t)}function Nx(t){return Object.entries(t).reduce((e,[r,n])=>Na(n)?(Pd(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function zx(t){return Pd(t)?{[zs]:!0,get current(){return t.current}}:t}function Vr(t){let e=Ae(Zt(t));return{[zs]:!0,[bc]:!0,get current(){return d(e)},set current(r){R(e,r,!0)}}}function jo(t){let e=Ae(Zt(t));return{[zs]:!0,[bc]:!0,get current(){return d(e)},set current(r){R(e,r,!0)}}}jo.from=kg;jo.with=ge;jo.flatten=Nx;jo.readonly=zx;jo.isBox=Na;jo.isWritableBox=Pd;function Sg(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var Wf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Rx=/\n/g,Fx=/^\s*/,Lx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dx=/^:\s*/,Bx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Vx=/^[;\s]*/,Wx=/^\s+|\s+$/g,jx=` +`,jf="/",Gf="*",ho="",Gx="comment",Hx="declaration";function Kx(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function o(p){var m=p.match(Rx);m&&(r+=m.length);var y=p.lastIndexOf(jx);n=~y?p.length-y:n+p.length}function s(){var p={line:r,column:n};return function(m){return m.position=new i(p),u(),m}}function i(p){this.start=p,this.end={line:r,column:n},this.source=e.source}i.prototype.content=t;function a(p){var m=new Error(e.source+":"+r+":"+n+": "+p);if(m.reason=p,m.filename=e.source,m.line=r,m.column=n,m.source=t,!e.silent)throw m}function c(p){var m=p.exec(t);if(m){var y=m[0];return o(y),t=t.slice(y.length),m}}function u(){c(Fx)}function f(p){var m;for(p=p||[];m=v();)m!==!1&&p.push(m);return p}function v(){var p=s();if(!(jf!=t.charAt(0)||Gf!=t.charAt(1))){for(var m=2;ho!=t.charAt(m)&&(Gf!=t.charAt(m)||jf!=t.charAt(m+1));)++m;if(m+=2,ho===t.charAt(m-1))return a("End of comment missing");var y=t.slice(2,m-2);return n+=2,o(y),t=t.slice(m),n+=2,p({type:Gx,comment:y})}}function h(){var p=s(),m=c(Lx);if(m){if(v(),!c(Dx))return a("property missing ':'");var y=c(Bx),w=p({type:Hx,property:Hf(m[0].replace(Wf,ho)),value:y?Hf(y[0].replace(Wf,ho)):ho});return c(Vx),w}}function g(){var p=[];f(p);for(var m;m=h();)m!==!1&&(p.push(m),f(p));return p}return u(),g()}function Hf(t){return t?t.replace(Wx,ho):ho}function Ux(t,e){let r=null;if(!t||typeof t!="string")return r;const n=Kx(t),o=typeof e=="function";return n.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?e(i,a,s):a&&(r=r||{},r[i]=a)}),r}const qx=/\d/,Yx=["-","_","/","."];function Xx(t=""){if(!qx.test(t))return t!==t.toLowerCase()}function Zx(t){const e=[];let r="",n,o;for(const s of t){const i=Yx.includes(s);if(i===!0){e.push(r),r="",n=void 0;continue}const a=Xx(s);if(o===!1){if(n===!1&&a===!0){e.push(r),r=s,n=a;continue}if(n===!0&&a===!1&&r.length>1){const c=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=c+s,n=a;continue}}r+=s,n=a,o=i}return e.push(r),e}function Pg(t){return t?Zx(t).map(e=>Qx(e)).join(""):""}function Jx(t){return e_(Pg(t||""))}function Qx(t){return t?t[0].toUpperCase()+t.slice(1):""}function e_(t){return t?t[0].toLowerCase()+t.slice(1):""}function oi(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[Pg(n)]=o;return}if(n.startsWith("--")){e[n]=o;return}e[Jx(n)]=o}return Ux(t,r),e}function os(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function t_(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const r_=t_(/[A-Z]/,t=>`-${t.toLowerCase()}`);function n_(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${r_(e)}: ${t[e]};`).join(` +`)}function Cg(t={}){return n_(t).replace(` +`," ")}const o_=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],s_=new Set(o_);function i_(t){return s_.has(t)}function Kr(...t){const e={...t[0]};for(let r=1;ru.has(h)));f&&Lr(c)}return a}delete(r){var n=l(this,zr),o=n.get(r),s=super.delete(r);return o!==void 0&&(n.delete(r),R(o,-1)),s&&(R(l(this,an),super.size),Lr(l(this,Rr))),s}clear(){if(super.size!==0){super.clear();var r=l(this,zr);R(l(this,an),0);for(var n of r.values())R(n,-1);Lr(l(this,Rr)),r.clear()}}keys(){return d(l(this,Rr)),super.keys()}values(){return j(this,Ar,al).call(this),super.values()}entries(){return j(this,Ar,al).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(l(this,an)),super.size}};zr=new WeakMap,Rr=new WeakMap,an=new WeakMap,Vl=new WeakMap,Ar=new WeakSet,si=function(r){return xn===l(this,Vl)?Ae(r):Sn(r)},al=function(){d(l(this,Rr));var r=l(this,zr);if(l(this,an).v!==r.size){for(var n of sf(Gd.prototype,this,"keys").call(this))if(!r.has(n)){var o=j(this,Ar,si).call(this,0);r.set(n,o)}}for([,o]of l(this,zr))d(o)};let ku=Gd;var hs,ki;class l_{constructor(e={}){_(this,hs);_(this,ki);const{window:r=Ag,document:n=r==null?void 0:r.document}=e;r!==void 0&&($(this,hs,n),$(this,ki,nd(o=>{const s=Nt(r,"focusin",o),i=Nt(r,"focusout",o);return()=>{s(),i()}})))}get current(){var e;return(e=l(this,ki))==null||e.call(this),l(this,hs)?a_(l(this,hs)):null}}hs=new WeakMap,ki=new WeakMap;new l_;function c_(t){return typeof t=="function"}var Si,ln;class Go{constructor(e){_(this,Si);_(this,ln);$(this,Si,e),$(this,ln,Symbol(e))}get key(){return l(this,ln)}exists(){return _m(l(this,ln))}get(){const e=lf(l(this,ln));if(e===void 0)throw new Error(`Context "${l(this,Si)}" not found`);return e}getOr(e){const r=lf(l(this,ln));return r===void 0?e:r}set(e){return xm(l(this,ln),e)}}Si=new WeakMap,ln=new WeakMap;function u_(t,e){switch(t){case"post":ot(e);break;case"pre":uv(e);break}}function Eg(t,e,r,n={}){const{lazy:o=!1}=n;let s=!o,i=Array.isArray(t)?[]:void 0;u_(e,()=>{const a=Array.isArray(t)?t.map(u=>u()):t();if(!s){s=!0,i=a;return}const c=br(()=>r(a,i));return i=a,c})}function or(t,e,r){Eg(t,"post",e,r)}function d_(t,e,r){Eg(t,"pre",e,r)}or.pre=d_;function Kf(t){return c_(t)?t():t}var Fn,vs,gs,ps,Ln,Wl,jl,ms;class f_{constructor(e,r={box:"border-box"}){_(this,Fn,{width:0,height:0});_(this,vs,!1);_(this,gs);_(this,ps);_(this,Ln);_(this,Wl,W(()=>{var e;return(e=d(l(this,ms)))==null||e(),this.getSize().width}));_(this,jl,W(()=>{var e;return(e=d(l(this,ms)))==null||e(),this.getSize().height}));_(this,ms,W(()=>{const e=Kf(l(this,ps));if(e)return nd(r=>{if(!l(this,Ln))return;const n=new(l(this,Ln)).ResizeObserver(o=>{$(this,vs,!0);for(const s of o){const i=l(this,gs).box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];l(this,Fn).width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),l(this,Fn).height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}r()});return n.observe(e),()=>{$(this,vs,!1),n.disconnect()}})}));$(this,Ln,r.window??Ag),$(this,gs,r),$(this,ps,e),$(this,Fn,{width:0,height:0})}calculateSize(){const e=Kf(l(this,ps));if(!e||!l(this,Ln))return;const r=e.offsetWidth,n=e.offsetHeight;if(l(this,gs).box==="border-box")return{width:r,height:n};const o=l(this,Ln).getComputedStyle(e),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=r-s-a,f=n-i-c;return{width:u,height:f}}getSize(){return l(this,vs)?l(this,Fn):this.calculateSize()??l(this,Fn)}get current(){var e;return(e=d(l(this,ms)))==null||e(),this.getSize()}get width(){return d(l(this,Wl))}get height(){return d(l(this,jl))}}Fn=new WeakMap,vs=new WeakMap,gs=new WeakMap,ps=new WeakMap,Ln=new WeakMap,Wl=new WeakMap,jl=new WeakMap,ms=new WeakMap;function Ho(t){ot(()=>()=>{t()})}function h_(t,e){return setTimeout(e,t)}function Dr(t){_v().then(t)}const v_=1,g_=9,p_=11;function Su(t){return Ia(t)&&t.nodeType===v_&&typeof t.nodeName=="string"}function Tg(t){return Ia(t)&&t.nodeType===g_}function m_(t){var e;return Ia(t)&&((e=t.constructor)==null?void 0:e.name)==="VisualViewport"}function b_(t){return Ia(t)&&t.nodeType!==void 0}function Og(t){return b_(t)&&t.nodeType===p_&&"host"in t}function y_(t,e){var n;if(!t||!e||!Su(t)||!Su(e))return!1;const r=(n=e.getRootNode)==null?void 0:n.call(e);if(t===e||t.contains(e))return!0;if(r&&Og(r)){let o=e;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function za(t){return Tg(t)?t:m_(t)?t.document:(t==null?void 0:t.ownerDocument)??document}function Mg(t){var e;return Og(t)?Mg(t.host):Tg(t)?t.defaultView??window:Su(t)?((e=t.ownerDocument)==null?void 0:e.defaultView)??window:window}function w_(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var Pi;class Cd{constructor(e){ae(this,"element");_(this,Pi,W(()=>this.element.current?this.element.current.getRootNode()??document:document));ae(this,"getDocument",()=>za(this.root));ae(this,"getWindow",()=>this.getDocument().defaultView??window);ae(this,"getActiveElement",()=>w_(this.root));ae(this,"isActiveElement",e=>e===this.getActiveElement());ae(this,"querySelector",e=>this.root?this.root.querySelector(e):null);ae(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);ae(this,"setTimeout",(e,r)=>this.getWindow().setTimeout(e,r));ae(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=ge(e):this.element=e}get root(){return d(l(this,Pi))}set root(e){R(l(this,Pi),e)}getElementById(e){return this.root.getElementById(e)}}Pi=new WeakMap;function Yn(t,e){return{[rb()]:r=>Na(t)?(t.current=r,br(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t.current=null,e==null||e(null))}):(t(r),br(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t(null),e==null||e(null))})}}function $g(t){return t?"true":"false"}function Ig(t){return t?"":void 0}function Ng(t){return t?"open":"closed"}function x_(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}var bs,Ci;class __{constructor(e){_(this,bs);_(this,Ci);ae(this,"attrs");$(this,bs,e.getVariant?e.getVariant():null),$(this,Ci,l(this,bs)?`data-${l(this,bs)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(r=>[r,this.getAttr(r)]))}getAttr(e,r){return r?`data-${r}-${e}`:`${l(this,Ci)}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}bs=new WeakMap,Ci=new WeakMap;function zg(t){const e=new __(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const gi="ArrowDown",Ad="ArrowLeft",Ed="ArrowRight",Al="ArrowUp",Rg="End",Fg="Enter",k_="Escape",Lg="Home",S_="PageDown",P_="PageUp",Td=" ",C_="Tab";function A_(t){return window.getComputedStyle(t).getPropertyValue("direction")}function E_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Ad:Ed,vertical:gi}[e]}function T_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Ed:Ad,vertical:Al}[e]}function O_(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:E_(t,e),prevKey:T_(t,e)}}const Dg=typeof document<"u",Uf=M_();function M_(){var t,e;return Dg&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Zn(t){return t instanceof HTMLElement}function fi(t){return t instanceof Element}function Bg(t){return t instanceof Element||t instanceof SVGElement}function $_(t){return t!==null}function I_(t){return t instanceof HTMLInputElement&&"select"in t}var Mt,cn;class N_{constructor(e){_(this,Mt);_(this,cn,jo(null));$(this,Mt,e)}getCandidateNodes(){return l(this,Mt).rootNode.current?l(this,Mt).candidateSelector?Array.from(l(this,Mt).rootNode.current.querySelectorAll(l(this,Mt).candidateSelector)):l(this,Mt).candidateAttr?Array.from(l(this,Mt).rootNode.current.querySelectorAll(`[${l(this,Mt).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var r;const e=this.getCandidateNodes();e.length&&((r=e[0])==null||r.focus())}handleKeydown(e,r,n=!1){var p,m;const o=l(this,Mt).rootNode.current;if(!o||!e)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(e),a=A_(o),{nextKey:c,prevKey:u}=O_(a,l(this,Mt).orientation.current),f=l(this,Mt).loop.current,v={[c]:i+1,[u]:i-1,[Lg]:0,[Rg]:s.length-1};if(n){const y=c===gi?Ed:gi,w=u===Al?Ad:Al;v[y]=i+1,v[w]=i-1}let h=v[r.key];if(h===void 0)return;r.preventDefault(),h<0&&f?h=s.length-1:h===s.length&&f&&(h=0);const g=s[h];if(g)return g.focus(),l(this,cn).current=g.id,(m=(p=l(this,Mt)).onCandidateFocus)==null||m.call(p,g),g}getTabIndex(e){const r=this.getCandidateNodes(),n=l(this,cn).current!==null;return e&&!n&&r[0]===e?(l(this,cn).current=e.id,0):(e==null?void 0:e.id)===l(this,cn).current?0:-1}setCurrentTabStopId(e){l(this,cn).current=e}focusCurrentTabStop(){var n;const e=l(this,cn).current;if(!e)return;const r=(n=l(this,Mt).rootNode.current)==null?void 0:n.querySelector(`#${e}`);!r||!Zn(r)||r.focus()}}Mt=new WeakMap,cn=new WeakMap;var _o,Fr,un,dn,eo,Pu,Cu;class z_{constructor(e){_(this,eo);_(this,_o);_(this,Fr,null);_(this,un,null);_(this,dn,0);$(this,_o,e),Ho(()=>j(this,eo,Pu).call(this))}run(e){j(this,eo,Pu).call(this);const r=l(this,_o).ref.current;if(!r)return;if(typeof r.getAnimations!="function"){j(this,eo,Cu).call(this,e);return}const n=l(this,dn),o=()=>{n===l(this,dn)&&j(this,eo,Cu).call(this,e)},s=()=>{if(n!==l(this,dn))return;const a=r.getAnimations();if(a.length===0){o();return}Promise.all(a.map(c=>c.finished)).then(()=>{o()}).catch(()=>{if(n!==l(this,dn))return;if(r.getAnimations().some(f=>f.pending||f.playState!=="finished")){s();return}o()})},i=()=>{$(this,Fr,window.requestAnimationFrame(()=>{$(this,Fr,null),s()}))};if(!l(this,_o).afterTick.current){i();return}$(this,Fr,window.requestAnimationFrame(()=>{$(this,Fr,null);const a="data-starting-style";if(!r.hasAttribute(a)){i();return}$(this,un,new MutationObserver(()=>{var c;n===l(this,dn)&&(r.hasAttribute(a)||((c=l(this,un))==null||c.disconnect(),$(this,un,null),i()))})),l(this,un).observe(r,{attributes:!0,attributeFilter:[a]})}))}}_o=new WeakMap,Fr=new WeakMap,un=new WeakMap,dn=new WeakMap,eo=new WeakSet,Pu=function(){var e;l(this,Fr)!==null&&(window.cancelAnimationFrame(l(this,Fr)),$(this,Fr,null)),(e=l(this,un))==null||e.disconnect(),$(this,un,null),of(this,dn)._++},Cu=function(e){const r=()=>{e()};l(this,_o).afterTick?Dr(r):r()};var Gt,Ai,Ei,fn,hn,Ti,Dn,Oi,Au;class R_{constructor(e){_(this,Oi);_(this,Gt);_(this,Ai);_(this,Ei);_(this,fn,Ae(!1));_(this,hn,Ae(void 0));_(this,Ti,!1);_(this,Dn,null);$(this,Gt,e),R(l(this,fn),e.open.current,!0),$(this,Ai,e.enabled??!0),$(this,Ei,new z_({ref:l(this,Gt).ref,afterTick:l(this,Gt).open})),Ho(()=>j(this,Oi,Au).call(this)),or(()=>l(this,Gt).open.current,r=>{var n,o,s,i,a,c;if(!l(this,Ti)){$(this,Ti,!0);return}if(j(this,Oi,Au).call(this),!r&&((o=(n=l(this,Gt)).shouldSkipExitAnimation)!=null&&o.call(n))){R(l(this,fn),!1),R(l(this,hn),void 0),(i=(s=l(this,Gt)).onComplete)==null||i.call(s);return}if(r&&R(l(this,fn),!0),R(l(this,hn),r?"starting":"ending",!0),r&&$(this,Dn,window.requestAnimationFrame(()=>{$(this,Dn,null),l(this,Gt).open.current&&R(l(this,hn),void 0)})),!l(this,Ai)){r||R(l(this,fn),!1),R(l(this,hn),void 0),(c=(a=l(this,Gt)).onComplete)==null||c.call(a);return}l(this,Ei).run(()=>{var u,f;r===l(this,Gt).open.current&&(l(this,Gt).open.current||R(l(this,fn),!1),R(l(this,hn),void 0),(f=(u=l(this,Gt)).onComplete)==null||f.call(u))})})}get shouldRender(){return d(l(this,fn))}get transitionStatus(){return d(l(this,hn))}}Gt=new WeakMap,Ai=new WeakMap,Ei=new WeakMap,fn=new WeakMap,hn=new WeakMap,Ti=new WeakMap,Dn=new WeakMap,Oi=new WeakSet,Au=function(){l(this,Dn)!==null&&(window.cancelAnimationFrame(l(this,Dn)),$(this,Dn,null))};function ft(){}function Ra(t,e){return`bits-${t}`}function F_(t,e){var r=te(),n=E(r);Tv(n,()=>e.children,o=>{var s=te(),i=E(s);Re(i,()=>e.children??Ne),b(o,s)}),b(t,r)}const L_=new Go("BitsConfig");function D_(){const t=new B_(null,{});return L_.getOr(t).opts}class B_{constructor(e,r){ae(this,"opts");const n=V_(e,r);this.opts={defaultPortalTo:n(o=>o.defaultPortalTo),defaultLocale:n(o=>o.defaultLocale)}}}function V_(t,e){return r=>ge(()=>{var s,i;const o=(s=r(e))==null?void 0:s.current;if(o!==void 0)return o;if(t!==null)return(i=r(t.opts))==null?void 0:i.current})}function W_(t,e){return r=>{const n=D_();return ge(()=>{const o=r();if(o!==void 0)return o;const s=t(n).current;return s!==void 0?s:e})}}const j_=W_(t=>t.defaultPortalTo,"body");function G_(t,e){$e(e,!0);const r=j_(()=>e.to),n=km();let o=W(s);function s(){if(!Dg||e.disabled)return null;let v=null;return typeof r.current=="string"?v=document.querySelector(r.current):v=r.current,v}let i;function a(){i&&(hb(i),i=null)}or([()=>d(o),()=>e.disabled],([v,h])=>{if(!v||h){a();return}return i=Ev(F_,{target:v,props:{children:e.children},context:n}),()=>{a()}});var c=te(),u=E(c);{var f=v=>{var h=te(),g=E(h);Re(g,()=>e.children??Ne),b(v,h)};Fe(u,v=>{e.disabled&&v(f)})}b(t,c),Ie()}class H_{constructor(e,r={bubbles:!0,cancelable:!0}){ae(this,"eventName");ae(this,"options");this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const o=s=>{r(s)};return Nt(e,this.eventName,o,n)}}function qf(t,e=500){let r=null;const n=(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...o)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Vg(t,e){return t===e||t.contains(e)}function Wg(t){return(t==null?void 0:t.ownerDocument)??document}function K_(t,e){const{clientX:r,clientY:n}=t,o=e.getBoundingClientRect();return ro.right||no.bottom}const U_=[Fg,Td],q_=[gi,P_,Lg],jg=[Al,S_,Rg],Y_=[...q_,...jg];function tn(t){return t.pointerType==="mouse"}function X_(t,{select:e=!1}={}){if(!t||!t.focus)return;const r=za(t);if(r.activeElement===t)return;const n=r.activeElement;t.focus({preventScroll:!0}),t!==n&&I_(t)&&e&&t.select()}function Z_(t,{select:e=!1}={},r){const n=r();for(const o of t)if(X_(o,{select:e}),r()!==n)return!0}let Ys=Ae(!1);const sr=class sr{constructor(){ot(()=>(sr._refs===0&&(sr._cleanup=dv(()=>{const e=[],r=o=>{R(Ys,!1)},n=o=>{R(Ys,!0)};return e.push(Nt(document,"pointerdown",r,{capture:!0}),Nt(document,"pointermove",r,{capture:!0}),Nt(document,"keydown",n,{capture:!0})),os(...e)})),sr._refs++,()=>{var e;sr._refs--,sr._refs===0&&(R(Ys,!1),(e=sr._cleanup)==null||e.call(sr))}))}get current(){return d(Ys)}set current(e){R(Ys,e,!0)}};ae(sr,"_refs",0),ae(sr,"_cleanup");let Eu=sr;/*! +* tabbable 6.5.0 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var Gg=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],El=Gg.join(","),Hg=typeof Element>"u",zo=Hg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Tl=!Hg&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Ol=function(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=o===""||o==="true",i=s||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Ol(e.parentNode));return i},J_=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Kg=function(e,r,n){if(Ol(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(El));return r&&zo.call(e,El)&&o.unshift(e),o=o.filter(n),o},Ml=function(e,r,n){for(var o=[],s=Array.from(e);s.length;){var i=s.shift();if(!Ol(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=Ml(c,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var f=zo.call(i,El);f&&n.filter(i)&&(r||!e.includes(i))&&o.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Ol(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var g=Ml(v===!0?i.children:v.children,!0,n);n.flatten?o.push.apply(o,g):o.push({scopeParent:i,candidates:g})}else s.unshift.apply(s,i.children)}}return o},Ug=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},qg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||J_(e))&&!Ug(e)?0:e.tabIndex},Q_=function(e,r){var n=qg(e);return n<0&&r&&!Ug(e)?0:n},e0=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Yg=function(e){return e.tagName==="INPUT"},t0=function(e){return Yg(e)&&e.type==="hidden"},r0=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},n0=function(e,r){for(var n=0;nsummary:first-of-type"),u=c?e.parentElement:e;if(zo.call(u,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var f=e;e;){var v=e.parentElement,h=Tl(e);if(v&&!v.shadowRoot&&o(v)===!0)return Yf(e);e.assignedSlot?e=e.assignedSlot:!v&&h!==e.ownerDocument?e=h.host:e=v}e=f}if(a0(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Yf(e);return!1},c0=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},Xg=function(e){var r=[],n=[];return e.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Q_(a,i),u=i?Xg(o.candidates):a;c===0?i?r.push.apply(r,u):r.push(a):n.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),n.sort(e0).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},Zg=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Ml([e],r.includeContainer,{filter:Tu.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:u0}):n=Kg(e,r.includeContainer,Tu.bind(null,r)),Xg(n)},Jg=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Ml([e],r.includeContainer,{filter:$l.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=Kg(e,r.includeContainer,$l.bind(null,r)),n},Od=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return zo.call(e,El)===!1?!1:Tu(r,e)},d0=Gg.concat("iframe:not([inert]):not([inert] *)").join(","),Qg=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return zo.call(e,d0)===!1?!1:$l(r,e)};function hi(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function f0(t,e){if(!Od(t,hi()))return h0(t,e);const r=za(t),n=Zg(r.body,hi());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1)[0]}function h0(t,e){const r=za(t);if(!Qg(t,hi()))return r.body;const n=Jg(r.body,hi());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1).find(i=>Od(i,hi()))??r.body}function ep(t,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const v=n.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(v)).length<=1)return ep(t,v,r);const g=r==null?void 0:r.toLowerCase();if(g&&g.startsWith(v)&&g.charAt(v.length)===" "&&e.trim()===v)return r;const p=t.filter(m=>m.toLowerCase().startsWith(n));if(p.length>0){const m=r?t.indexOf(r):-1;return Xf(p,Math.max(m,0)).find(k=>k!==r)||r}}const s=e.length>1&&Array.from(e).every(v=>v===e[0])?e[0]:e,i=s.toLowerCase(),a=r?t.indexOf(r):-1;let c=Xf(t,Math.max(a,0));s.length===1&&(c=c.filter(v=>v!==r));const f=c.find(v=>v==null?void 0:v.toLowerCase().startsWith(i));return f!==r?f:void 0}function Xf(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const v0={afterMs:1e4,onChange:ft};function g0(t,e){const{afterMs:r,onChange:n,getWindow:o}={...v0,...e};let s=null,i=Ae(Zt(t));function a(){return o().setTimeout(()=>{R(i,t,!0),n==null||n(t)},r)}return ot(()=>()=>{s&&o().clearTimeout(s)}),ge(()=>d(i),c=>{R(i,c,!0),n==null||n(c),s&&o().clearTimeout(s),s=a()})}var vn,gn,Gl,Hl;class p0{constructor(e){_(this,vn);_(this,gn);_(this,Gl,W(()=>l(this,vn).onMatch?l(this,vn).onMatch:e=>e.focus()));_(this,Hl,W(()=>l(this,vn).getCurrentItem?l(this,vn).getCurrentItem:l(this,vn).getActiveElement));$(this,vn,e),$(this,gn,g0("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){var c,u;if(!r.length)return;l(this,gn).current=l(this,gn).current+e;const n=d(l(this,Hl))(),o=((u=(c=r.find(f=>f===n))==null?void 0:c.textContent)==null?void 0:u.trim())??"",s=r.map(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())??""}),i=ep(s,l(this,gn).current,o),a=r.find(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())===i});return a&&d(l(this,Gl))(a),a}resetTypeahead(){l(this,gn).current=""}get search(){return l(this,gn).current}}vn=new WeakMap,gn=new WeakMap,Gl=new WeakMap,Hl=new WeakMap;const m0="data-context-menu-trigger",b0="data-context-menu-content",tp=new Go("Menu.Root"),Md=new Go("Menu.Root | Menu.Sub"),rp=new Go("Menu.Content"),y0=new H_("bitsmenuopen",{bubbles:!1,cancelable:!0}),w0=zg({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Ze,ko,Bn,Ht,ur,So,pn,ys,Ee,np,ll,Ou,Mu,$u,Vn,ii,cl,ai,ul,op,Mi,sp,dl,fl,Jo,hl;class x0{constructor(e){_(this,Ee);_(this,Ze);_(this,ko,null);_(this,Bn,null);_(this,Ht,!1);_(this,ur,null);_(this,So,null);_(this,pn,null);_(this,ys,null);_(this,Vn,null);_(this,Mi,e=>{if(!l(this,Ht)||!l(this,ur)||!tn(e))return;const r=l(this,Ze).triggerNode(),n=l(this,Ze).contentNode();if(!r||!n){j(this,Ee,ai).call(this);return}j(this,Ee,Jo).call(this);const o={x:e.clientX,y:e.clientY};$(this,pn,o);const s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(l(this,ur)==="content"&&Jf(o,i)){j(this,Ee,ii).call(this);return}if(l(this,ur)==="trigger"&&_0(o,s,4)){j(this,Ee,ii).call(this);return}if(j(this,Ee,op).call(this,o)){j(this,Ee,fl).call(this);return}const a=j(this,Ee,ll).call(this,o,l(this,ur));if(!a){j(this,Ee,ai).call(this);return}if(j(this,Ee,Ou).call(this,o,a.corridor,a.intent)){j(this,Ee,fl).call(this);return}j(this,Ee,ai).call(this)});$(this,Ze,e),or([e.triggerNode,e.contentNode,e.enabled],([r,n,o])=>{if(j(this,Ee,ul).call(this),!r||!n||!o)return;const s=v=>{tn(v)&&($(this,ys,{x:v.clientX,y:v.clientY}),l(this,Ht)||j(this,Ee,Mu).call(this,v,"content"))},i=v=>{tn(v)&&j(this,Ee,$u).call(this,v,"content")},a=v=>{tn(v)&&(l(this,Ht)||j(this,Ee,Mu).call(this,v,"trigger"))},c=v=>{if(tn(v)){if(fi(v.relatedTarget)){const h=l(this,Ze).subContentSelector(),g=v.relatedTarget.closest(h);if(g&&g!==n&&g.id&&!!n.querySelector(`[aria-controls="${g.id}"]`))return}j(this,Ee,$u).call(this,v,"trigger")}},u=v=>{tn(v)&&j(this,Ee,ii).call(this)},f=v=>{tn(v)&&j(this,Ee,ii).call(this)};return r.addEventListener("pointermove",s),r.addEventListener("pointerleave",i),r.addEventListener("pointerenter",u),n.addEventListener("pointermove",a),n.addEventListener("pointerleave",c),n.addEventListener("pointerenter",f),()=>{r.removeEventListener("pointermove",s),r.removeEventListener("pointerleave",i),r.removeEventListener("pointerenter",u),n.removeEventListener("pointermove",a),n.removeEventListener("pointerleave",c),n.removeEventListener("pointerenter",f),j(this,Ee,ul).call(this)}}),Ho(()=>{j(this,Ee,ul).call(this)})}}Ze=new WeakMap,ko=new WeakMap,Bn=new WeakMap,Ht=new WeakMap,ur=new WeakMap,So=new WeakMap,pn=new WeakMap,ys=new WeakMap,Ee=new WeakSet,np=function(){var r;const e=l(this,Ze).parentContentNode();return e?e.getBoundingClientRect():((r=l(this,Ze).triggerNode())==null?void 0:r.getBoundingClientRect())??null},ll=function(e,r){const n=l(this,Ze).triggerNode(),o=l(this,Ze).contentNode();if(!n||!o)return null;const s=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=k0(s,i);let c,u,f;return r==="content"?(c=l(this,Ht)?l(this,So)??e:e,u=i):(c=l(this,ys)??e,u=j(this,Ee,np).call(this)??s,f=i),$(this,So,c),{corridor:S0(s,i,a),intent:P0(c,u,a,r,f),targetRect:u,side:a}},Ou=function(e,r,n){return Zf(e,r)||Zf(e,n)},Mu=function(e,r){const n={x:e.clientX,y:e.clientY};j(this,Ee,ll).call(this,n,r)&&($(this,ur,r),$(this,pn,n))},$u=function(e,r){if(!l(this,Ze).enabled())return;const n=l(this,Ze).triggerNode(),o=l(this,Ze).contentNode();if(!n||!o)return;const s=e.relatedTarget;if(fi(s)&&(r==="content"&&o.contains(s)||r==="trigger"&&n.contains(s)))return;const i={x:e.clientX,y:e.clientY},a=j(this,Ee,ll).call(this,i,r);if(a){if(!Jf(i,a.targetRect)&&!j(this,Ee,Ou).call(this,i,a.corridor,a.intent)){j(this,Ee,hl).call(this);return}$(this,Ht,!0),$(this,ur,r),$(this,pn,i),l(this,Ze).setIsPointerInTransit(!0),j(this,Ee,sp).call(this),j(this,Ee,fl).call(this)}},Vn=new WeakMap,ii=function(){if(!l(this,Ht))return;const e=l(this,ur)==="trigger";j(this,Ee,dl).call(this),j(this,Ee,Jo).call(this),$(this,Ht,!1),j(this,Ee,hl).call(this),e?(j(this,Ee,cl).call(this),$(this,Vn,setTimeout(()=>{$(this,Vn,null),l(this,Ze).setIsPointerInTransit(!1)},100))):l(this,Ze).setIsPointerInTransit(!1)},cl=function(){l(this,Vn)!==null&&(clearTimeout(l(this,Vn)),$(this,Vn,null))},ai=function(){const e=l(this,pn);j(this,Ee,dl).call(this),j(this,Ee,Jo).call(this),j(this,Ee,cl).call(this),$(this,Ht,!1),l(this,Ze).setIsPointerInTransit(!1),j(this,Ee,hl).call(this),l(this,Ze).onIntentExit(e)},ul=function(){j(this,Ee,dl).call(this),j(this,Ee,Jo).call(this),j(this,Ee,cl).call(this),l(this,Ht)&&l(this,Ze).setIsPointerInTransit(!1),$(this,Ht,!1),$(this,ur,null),$(this,So,null),$(this,pn,null),$(this,ys,null)},op=function(e){const r=l(this,Ze).contentNode();if(!r)return!1;const o=r.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const s=l(this,Ze).subContentSelector(),i=o.closest(s);return!i||i===r?!1:i.id?!!r.querySelector(`[aria-controls="${i.id}"]`):!1},Mi=new WeakMap,sp=function(){if(l(this,ko))return;const e=za(l(this,Ze).triggerNode()??l(this,Ze).contentNode());e&&(e.addEventListener("pointermove",l(this,Mi),!0),$(this,ko,()=>{e.removeEventListener("pointermove",l(this,Mi),!0),$(this,ko,null)}))},dl=function(){var e;(e=l(this,ko))==null||e.call(this)},fl=function(){j(this,Ee,Jo).call(this),$(this,Bn,setTimeout(()=>{$(this,Bn,null),l(this,Ht)&&j(this,Ee,ai).call(this)},500))},Jo=function(){l(this,Bn)!==null&&(clearTimeout(l(this,Bn)),$(this,Bn,null))},hl=function(){$(this,ur,null),$(this,So,null),$(this,pn,null)};function Zf(t,e){const{x:r,y:n}=t;let o=!1;for(let s=0,i=e.length-1;sn!=f>n&&r<(u-a)*(n-c)/(f-c)+a&&(o=!o)}return o}function Jf(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function _0(t,e,r){return t.x>=e.left+r&&t.x<=e.right-r&&t.y>=e.top+r&&t.y<=e.bottom-r}function k0(t,e){const r=t.left+t.width/2,n=t.top+t.height/2,o=e.left+e.width/2,s=e.top+e.height/2,i=o-r,a=s-n;return Math.abs(i)>Math.abs(a)?i>0?"right":"left":a>0?"bottom":"top"}function S0(t,e,r){switch(r){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function P0(t,e,r,n,o){const i=n==="trigger"?C0(r):r,a=o?Math.min(e.top,o.top)-8:e.top-8,c=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,f=o?Math.max(e.right,o.right)+8:e.right+8;switch(i){case"right":return[t,{x:e.left,y:a},{x:e.left,y:c}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:c}];case"bottom":return[t,{x:u,y:e.top},{x:f,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:f,y:e.bottom}]}}function C0(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var $i,Ii;const Hd=class Hd{constructor(e){ae(this,"opts");ae(this,"isUsingKeyboard",new Eu);_(this,$i,Ae(!1));_(this,Ii,Ae(!1));ae(this,"getBitsAttr",e=>w0.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const r=new Hd(e);return tp.set(r)}get ignoreCloseAutoFocus(){return d(l(this,$i))}set ignoreCloseAutoFocus(e){R(l(this,$i),e,!0)}get isPointerInTransit(){return d(l(this,Ii))}set isPointerInTransit(e){R(l(this,Ii),e,!0)}};$i=new WeakMap,Ii=new WeakMap;let Iu=Hd;var Ni,zi;const Kd=class Kd{constructor(e,r,n){ae(this,"opts");ae(this,"root");ae(this,"parentMenu");ae(this,"contentId",ge(()=>""));_(this,Ni,Ae(null));ae(this,"contentPresence");_(this,zi,Ae(null));this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new R_({ref:ge(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>{var o,s;return this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:((s=(o=this.root.opts).shouldSkipExitAnimation)==null?void 0:s.call(o))??!1}}),n&&or(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,r){return Md.set(new Kd(e,r,null))}get contentNode(){return d(l(this,Ni))}set contentNode(e){R(l(this,Ni),e,!0)}get triggerNode(){return d(l(this,zi))}set triggerNode(e){R(l(this,zi),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Ni=new WeakMap,zi=new WeakMap;let Nu=Kd;var Ri,Fi,Li,Di,Bi,Ur,ip,vl,ap,Vi,Wi;const Ud=class Ud{constructor(e,r){_(this,Ur);ae(this,"opts");ae(this,"parentMenu");ae(this,"rovingFocusGroup");ae(this,"domContext");ae(this,"attachment");_(this,Ri,Ae(""));_(this,Fi,0);_(this,Li);_(this,Di,Ae(!1));_(this,Bi);ae(this,"onCloseAutoFocus",e=>{var r,n;if((n=(r=this.opts.onCloseAutoFocus).current)==null||n.call(r,e),!(e.defaultPrevented||l(this,Bi))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Od(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});_(this,Vi,W(()=>({open:this.parentMenu.opts.open.current})));_(this,Wi,W(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Ng(this.parentMenu.opts.open.current),...x_(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));ae(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=r,this.domContext=new Cd(e.ref),this.attachment=Yn(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,$(this,Bi,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new x0({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>{var n;return((n=this.parentMenu.parentMenu)==null?void 0:n.contentNode)??null},subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>{var n;return this.parentMenu.opts.open.current&&!!((n=this.parentMenu.triggerNode)!=null&&n.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onIntentExit:n=>{this.parentMenu.opts.open.current=!1,j(this,Ur,ap).call(this,n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),$(this,Li,new p0({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new N_({rootNode:ge(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:ge(()=>"vertical")}),or(()=>this.parentMenu.contentNode,n=>{if(!n)return;const o=()=>{Dr(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return y0.listen(n,o)}),ot(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,Fi))})}static create(e){return rp.set(new Ud(e,Md.get()))}get search(){return d(l(this,Ri))}set search(e){R(l(this,Ri),e,!0)}get mounted(){return d(l(this,Di))}set mounted(e){R(l(this,Di),e,!0)}handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=f0(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),Dr(()=>{n.focus(),Dr(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){var u,f;if(e.defaultPrevented)return;if(e.key===C_){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!Zn(r)||!Zn(n))return;const o=((u=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))==null?void 0:u.id)===this.parentMenu.contentId.current,s=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const c=j(this,Ur,ip).call(this);o&&!s&&i&&l(this,Li).call(this,e.key,c),((f=e.target)==null?void 0:f.id)===this.parentMenu.contentId.current&&Y_.includes(e.key)&&(e.preventDefault(),jg.includes(e.key)&&c.reverse(),Z_(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){var r,n;fi(e.currentTarget)&&fi(e.target)&&((n=(r=e.currentTarget).contains)!=null&&n.call(r,e.target)||(this.domContext.getWindow().clearTimeout(l(this,Fi)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&Dr(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return j(this,Ur,vl).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||j(this,Ur,vl).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const r=this.parentMenu.contentNode;r==null||r.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!j(this,Ur,vl).call(this)}handleInteractOutside(e){var n;if(!Bg(e.target))return;const r=(n=this.parentMenu.triggerNode)==null?void 0:n.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,Dr(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return d(l(this,Vi))}set snippetProps(e){R(l(this,Vi),e)}get props(){return d(l(this,Wi))}set props(e){R(l(this,Wi),e)}};Ri=new WeakMap,Fi=new WeakMap,Li=new WeakMap,Di=new WeakMap,Bi=new WeakMap,Ur=new WeakSet,ip=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},vl=function(){return this.parentMenu.root.isPointerInTransit},ap=function(e){var s;if(!e)return;const r=(s=this.parentMenu.parentMenu)==null?void 0:s.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!fi(n))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!r.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},Vi=new WeakMap,Wi=new WeakMap;let zu=Ud;var ws,ji;class A0{constructor(e,r){ae(this,"opts");ae(this,"content");ae(this,"attachment");_(this,ws,Ae(!1));_(this,ji,W(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":$g(this.opts.disabled.current),"data-disabled":Ig(this.opts.disabled.current),"data-highlighted":d(l(this,ws))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=r,this.attachment=Yn(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&tn(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Zn(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||tn(e)&&this.content.onItemLeave(e)}onfocus(e){Dr(()=>{e.defaultPrevented||this.opts.disabled.current||R(l(this,ws),!0)})}onblur(e){Dr(()=>{e.defaultPrevented||R(l(this,ws),!1)})}get props(){return d(l(this,ji))}set props(e){R(l(this,ji),e)}}ws=new WeakMap,ji=new WeakMap;var Gi,Kl,lp,Hi;const qd=class qd{constructor(e,r){_(this,Kl);ae(this,"opts");ae(this,"item");ae(this,"root");_(this,Gi,!1);_(this,Hi,W(()=>Kr(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const r=new A0(e,rp.get());return new qd(e,r)}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Td)&&U_.includes(e.key)){if(!Zn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||j(this,Kl,lp).call(this)}onpointerup(e){var r;if(!e.defaultPrevented&&!l(this,Gi)){if(!Zn(e.currentTarget))return;(r=e.currentTarget)==null||r.click()}}onpointerdown(e){$(this,Gi,!0)}get props(){return d(l(this,Hi))}set props(e){R(l(this,Hi),e)}};Gi=new WeakMap,Kl=new WeakSet,lp=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Hi=new WeakMap;let Ru=qd;var Ki;const Yd=class Yd{constructor(e,r){ae(this,"opts");ae(this,"root");ae(this,"attachment");_(this,Ki,W(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=r,this.attachment=Yn(this.opts.ref)}static create(e){return new Yd(e,tp.get())}get props(){return d(l(this,Ki))}set props(e){R(l(this,Ki),e)}};Ki=new WeakMap;let Fu=Yd;var Ul,Ui;const Xd=class Xd{constructor(e,r){ae(this,"opts");ae(this,"parentMenu");ae(this,"attachment");ae(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});ae(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});ae(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});ae(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Td||e.key===Fg){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===gi&&(this.parentMenu.onOpen(),e.preventDefault())}});_(this,Ul,W(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));_(this,Ui,W(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":$g(this.parentMenu.opts.open.current),"aria-controls":d(l(this,Ul)),"data-disabled":Ig(this.opts.disabled.current),"data-state":Ng(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=r,this.attachment=Yn(this.opts.ref,n=>this.parentMenu.triggerNode=n)}static create(e){return new Xd(e,Md.get())}get props(){return d(l(this,Ui))}set props(e){R(l(this,Ui),e)}};Ul=new WeakMap,Ui=new WeakMap;let Lu=Xd;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var xs,Po,Wn,_s,ks,jn,qi,mn,ql,Rs,cp,Yl,Ss,Xl,Zl,Jl,Ql,Yi,up,ec,tc;const Zd=class Zd{constructor(e){_(this,Rs);ae(this,"opts");_(this,xs);_(this,Po);_(this,Wn,{pointerdown:!1});_(this,_s,!1);_(this,ks,!1);_(this,jn);_(this,qi);_(this,mn,ft);_(this,ql,e=>{e.defaultPrevented||this.opts.ref.current&&Dr(()=>{var r,n;!this.opts.ref.current||l(this,Ql).call(this,e.target)||e.target&&!l(this,ks)&&((n=(r=l(this,qi)).current)==null||n.call(r,e))})});_(this,Yl,e=>{let r=e;r.defaultPrevented&&(r=Qf(e)),l(this,xs).current(e)});_(this,Ss,qf(e=>{if(!this.opts.ref.current){l(this,mn).call(this);return}const r=this.opts.isValidEvent.current(e,this.opts.ref.current)||O0(e,this.opts.ref.current);if(!l(this,_s)||j(this,Rs,up).call(this)||!r){l(this,mn).call(this);return}let n=e;if(n.defaultPrevented&&(n=Qf(n)),l(this,Po).current!=="close"&&l(this,Po).current!=="defer-otherwise-close"){l(this,mn).call(this);return}e.pointerType==="touch"?(l(this,mn).call(this),$(this,mn,Nt(l(this,jn),"click",l(this,Yl),{once:!0}))):l(this,xs).current(n)},10));_(this,Xl,e=>{l(this,Wn)[e.type]=!0});_(this,Zl,e=>{l(this,Wn)[e.type]=!1});_(this,Jl,()=>{this.opts.ref.current&&$(this,_s,T0(this.opts.ref.current))});_(this,Ql,e=>this.opts.ref.current?Vg(this.opts.ref.current,e):!1);_(this,Yi,qf(()=>{for(const e in l(this,Wn))l(this,Wn)[e]=!1;$(this,_s,!1)},20));_(this,ec,()=>{$(this,ks,!0)});_(this,tc,()=>{$(this,ks,!1)});ae(this,"props",{onfocuscapture:l(this,ec),onblurcapture:l(this,tc)});this.opts=e,$(this,Po,e.interactOutsideBehavior),$(this,xs,e.onInteractOutside),$(this,qi,e.onFocusOutside),ot(()=>{$(this,jn,Wg(this.opts.ref.current))});let r=ft;const n=()=>{l(this,Yi).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Ss).destroy(),r()};or([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return h_(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,l(this,Po)),r(),r=j(this,Rs,cp).call(this))}),n}),Ho(()=>{l(this,Yi).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Ss).destroy(),l(this,mn).call(this),r()})}static create(e){return new Zd(e)}};xs=new WeakMap,Po=new WeakMap,Wn=new WeakMap,_s=new WeakMap,ks=new WeakMap,jn=new WeakMap,qi=new WeakMap,mn=new WeakMap,ql=new WeakMap,Rs=new WeakSet,cp=function(){return os(Nt(l(this,jn),"pointerdown",os(l(this,Xl),l(this,Jl)),{capture:!0}),Nt(l(this,jn),"pointerdown",os(l(this,Zl),l(this,Ss))),Nt(l(this,jn),"focusin",l(this,ql)))},Yl=new WeakMap,Ss=new WeakMap,Xl=new WeakMap,Zl=new WeakMap,Jl=new WeakMap,Ql=new WeakMap,Yi=new WeakMap,up=function(){return Object.values(l(this,Wn)).some(Boolean)},ec=new WeakMap,tc=new WeakMap;let Du=Zd;function E0(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function T0(t){const e=[...globalThis.bitsDismissableLayers],r=E0(e);if(r)return r[0].opts.ref.current===t;const[n]=e[0];return n.opts.ref.current===t}function O0(t,e){const r=t.target;if(!Bg(r))return!1;const n=!!r.closest(`[${m0}]`),o=!!e.closest(`[${b0}]`);return"button"in t&&t.button>0&&!n?!1:"button"in t&&t.button===0&&n&&o?!0:n&&o?!1:Wg(r).documentElement.contains(r)&&!Vg(e,r)&&K_(t,e)}function Qf(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(n,{get:(i,a)=>a==="currentTarget"?e:a==="target"?r:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:t[a]})}function M0(t,e){$e(e,!0);let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"onInteractOutside",3,ft),o=M(e,"onFocusOutside",3,ft),s=M(e,"isValidEvent",3,()=>!1);const i=Du.create({id:ge(()=>e.id),interactOutsideBehavior:ge(()=>r()),onInteractOutside:ge(()=>n()),enabled:ge(()=>e.enabled),onFocusOutside:ge(()=>o()),isValidEvent:ge(()=>s()),ref:e.ref});var a=te(),c=E(a);Re(c,()=>e.children??Ne,()=>({props:i.props})),b(t,a),Ie()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var rc,nc;const Jd=class Jd{constructor(e){ae(this,"opts");ae(this,"domContext");_(this,rc,()=>Nt(this.domContext.getDocument(),"keydown",l(this,nc),{passive:!1}));_(this,nc,e=>{if(e.key!==k_||!$0(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=e,this.domContext=new Cd(this.opts.ref);let r=ft;or(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=l(this,rc).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new Jd(e)}};rc=new WeakMap,nc=new WeakMap;let Bu=Jd;function $0(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function I0(t,e){$e(e,!0);let r=M(e,"escapeKeydownBehavior",3,"close"),n=M(e,"onEscapeKeydown",3,ft);Bu.create({escapeKeydownBehavior:ge(()=>r()),onEscapeKeydown:ge(()=>n()),enabled:ge(()=>e.enabled),ref:e.ref});var o=te(),s=E(o);Re(s,()=>e.children??Ne),b(t,o),Ie()}var bn,Xi,Co;const oc=class oc{constructor(){_(this,bn,Vr([]));_(this,Xi,new WeakMap);_(this,Co,new WeakMap)}static getInstance(){return this.instance||(this.instance=new oc),this.instance}register(e){const r=this.getActive();r&&r!==e&&r.pause();const n=document.activeElement;n&&n!==document.body&&l(this,Co).set(e,n),l(this,bn).current=l(this,bn).current.filter(o=>o!==e),l(this,bn).current.unshift(e)}unregister(e){l(this,bn).current=l(this,bn).current.filter(n=>n!==e);const r=this.getActive();r&&r.resume()}getActive(){return l(this,bn).current[0]}setFocusMemory(e,r){l(this,Xi).set(e,r)}getFocusMemory(e){return l(this,Xi).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,r){l(this,Co).set(e,r)}getPreFocusMemory(e){return l(this,Co).get(e)}clearPreFocusMemory(e){l(this,Co).delete(e)}};bn=new WeakMap,Xi=new WeakMap,Co=new WeakMap,ae(oc,"instance");let Vu=oc;var Gn,$t,Kt,Ao,Hn,ht,dp,fp,hp,vp,ju,gl,Gu;const Qd=class Qd{constructor(e){_(this,ht);_(this,Gn,!1);_(this,$t,null);_(this,Kt,Vu.getInstance());_(this,Ao,[]);_(this,Hn);$(this,Hn,e)}get paused(){return l(this,Gn)}pause(){$(this,Gn,!0)}resume(){$(this,Gn,!1)}mount(e){l(this,$t)&&this.unmount(),$(this,$t,e),l(this,Kt).register(this),j(this,ht,vp).call(this),j(this,ht,fp).call(this)}unmount(){l(this,$t)&&(j(this,ht,dp).call(this),j(this,ht,hp).call(this),l(this,Kt).unregister(this),l(this,Kt).clearPreFocusMemory(this),$(this,$t,null))}static use(e){let r=null;return or([()=>e.ref.current,()=>e.enabled.current],([n,o])=>{n&&o?(r||(r=new Qd(e)),r.mount(n)):r&&(r.unmount(),r=null)}),Ho(()=>{r==null||r.unmount()}),{get props(){return{tabindex:-1}}}}};Gn=new WeakMap,$t=new WeakMap,Kt=new WeakMap,Ao=new WeakMap,Hn=new WeakMap,ht=new WeakSet,dp=function(){for(const e of l(this,Ao))e();$(this,Ao,[])},fp=function(){if(!l(this,$t))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Hn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,$t))return;const r=j(this,ht,gl).call(this);r?(r.focus(),l(this,Kt).setFocusMemory(this,r)):l(this,$t).focus()})},hp=function(){var r,n;const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((n=(r=l(this,Hn).onCloseAutoFocus).current)==null||n.call(r,e),!e.defaultPrevented){const o=l(this,Kt).getPreFocusMemory(this);if(o&&document.contains(o))try{o.focus()}catch{document.body.focus()}}},vp=function(){if(!l(this,$t)||!l(this,Hn).trap.current)return;const e=l(this,$t),r=e.ownerDocument,n=i=>{if(l(this,Gn)||!l(this,Kt).isActiveScope(this))return;const a=i.target;if(!a)return;if(e.contains(a))l(this,Kt).setFocusMemory(this,a);else{const u=l(this,Kt).getFocusMemory(this);if(u&&e.contains(u)&&Qg(u))i.preventDefault(),u.focus();else{const f=j(this,ht,gl).call(this),v=j(this,ht,Gu).call(this)[0];(f||v||e).focus()}}},o=i=>{if(!l(this,Hn).loop||l(this,Gn)||i.key!=="Tab"||!l(this,Kt).isActiveScope(this))return;const a=j(this,ht,ju).call(this);if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&r.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&r.activeElement===c&&(i.preventDefault(),u.focus())};l(this,Ao).push(Nt(r,"focusin",n,{capture:!0}),Nt(e,"keydown",o));const s=new MutationObserver(()=>{const i=l(this,Kt).getFocusMemory(this);if(i&&!e.contains(i)){const a=j(this,ht,gl).call(this),c=j(this,ht,Gu).call(this)[0],u=a||c;u?(u.focus(),l(this,Kt).setFocusMemory(this,u)):e.focus()}});s.observe(e,{childList:!0,subtree:!0}),l(this,Ao).push(()=>s.disconnect())},ju=function(){return l(this,$t)?Zg(l(this,$t),{includeContainer:!1,getShadowRoot:!0}):[]},gl=function(){return j(this,ht,ju).call(this)[0]||null},Gu=function(){return l(this,$t)?Jg(l(this,$t),{includeContainer:!1,getShadowRoot:!0}):[]};let Wu=Qd;function N0(t,e){$e(e,!0);let r=M(e,"enabled",3,!1),n=M(e,"trapFocus",3,!1),o=M(e,"loop",3,!1),s=M(e,"onCloseAutoFocus",3,ft),i=M(e,"onOpenAutoFocus",3,ft);const a=Wu.use({enabled:ge(()=>r()),trap:ge(()=>n()),loop:o(),onCloseAutoFocus:ge(()=>s()),onOpenAutoFocus:ge(()=>i()),ref:e.ref});var c=te(),u=E(c);Re(u,()=>e.focusScope??Ne,()=>({props:a.props})),b(t,c),Ie()}const eh=()=>{};globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var Ps,Cs,Zi,Ji,sc,gp,ic,ac,Qi;const ef=class ef{constructor(e){_(this,sc);ae(this,"opts");ae(this,"domContext");_(this,Ps,ft);_(this,Cs,!1);_(this,Zi,eh);_(this,Ji,eh);_(this,ic,e=>{l(this,Ji).call(this,e)});_(this,ac,e=>{const r=this.opts.ref.current,n=e.target;!Zn(r)||!Zn(n)||!l(this,Cs)||!R0(this)||!y_(r,n)||(l(this,Zi).call(this,e),!e.defaultPrevented&&$(this,Ps,z0(r,this.domContext.getDocument().body)))});_(this,Qi,()=>{l(this,Ps).call(this),$(this,Ps,ft)});this.opts=e,this.domContext=new Cd(e.ref);let r=ft;or(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([n,o,s])=>($(this,Cs,n),$(this,Zi,o),$(this,Ji,s),n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=j(this,sc,gp).call(this)),()=>{$(this,Cs,!1),r(),l(this,Qi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new ef(e)}};Ps=new WeakMap,Cs=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,sc=new WeakSet,gp=function(){return os(Nt(this.domContext.getDocument(),"pointerdown",l(this,ac)),Nt(this.domContext.getDocument(),"pointerup",Sg(l(this,Qi),l(this,ic))))},ic=new WeakMap,ac=new WeakMap,Qi=new WeakMap;let Hu=ef;const th=t=>t.style.userSelect||t.style.webkitUserSelect;function z0(t,e){const r=th(e),n=th(t);return Ua(e,"none"),Ua(t,"text"),()=>{Ua(e,r),Ua(t,n)}}function Ua(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function R0(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function F0(t,e){$e(e,!0);let r=M(e,"preventOverflowTextSelection",3,!0),n=M(e,"onPointerDown",3,ft),o=M(e,"onPointerUp",3,ft);Hu.create({id:ge(()=>e.id),onPointerDown:ge(()=>n()),onPointerUp:ge(()=>o()),enabled:ge(()=>e.enabled&&r()),ref:e.ref});var s=te(),i=E(s);Re(i,()=>e.children??Ne),b(t,s),Ie()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function $d(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var ea,As,Eo,To,lc,pp;class L0{constructor(e){_(this,lc);_(this,ea);_(this,As,0);_(this,Eo,Ae());_(this,To);$(this,ea,e)}get(...e){return $(this,As,l(this,As)+1),d(l(this,Eo))===void 0&&$(this,To,dv(()=>{R(l(this,Eo),l(this,ea).call(this,...e),!0)})),ot(()=>()=>{j(this,lc,pp).call(this)}),d(l(this,Eo))}}ea=new WeakMap,As=new WeakMap,Eo=new WeakMap,To=new WeakMap,lc=new WeakSet,pp=function(){$(this,As,l(this,As)-1),l(this,To)&&l(this,As)<=0&&(l(this,To).call(this),R(l(this,Eo),void 0),$(this,To,void 0))};const pl=new ku;let qa=Ae(null),ao=null,Xs=null,Zs=!1;const rh=ge(()=>{for(const t of pl.values())if(t)return!0;return!1});let Lc=null;const D0=new L0(()=>{function t(){document.body.setAttribute("style",d(qa)??""),document.body.style.removeProperty("--scrollbar-width"),Uf&&(ao==null||ao()),R(qa,null)}function e(){Xs!==null&&(window.clearTimeout(Xs),Xs=null)}function r(o,s){e(),Zs=!0,Lc=Date.now();const i=Lc,a=()=>{Xs=null,Lc===i&&(mp(pl)?Zs=!1:(Zs=!1,s()))},c=o===null?24:o;Xs=window.setTimeout(a,c)}function n(){d(qa)===null&&pl.size===0&&!Zs&&R(qa,document.body.getAttribute("style"),!0)}return or(()=>rh.current,()=>{var f,v;if(!rh.current)return;n(),Zs=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=((f=o.scrollbarGutter)==null?void 0:f.includes("stable"))||((v=s.scrollbarGutter)==null?void 0:v.includes("stable")),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Uf&&(ao=Nt(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),Dr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Ho(()=>()=>{ao==null||ao()}),{get lockMap(){return pl},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});var Oo,ta,ra,Ut;class B0{constructor(e,r=()=>null){_(this,Oo,$d());_(this,ta);_(this,ra,()=>null);_(this,Ut);ae(this,"locked");$(this,ta,e),$(this,ra,r),$(this,Ut,D0.get()),l(this,Ut)&&(l(this,Ut).cancelPendingCleanup(),l(this,Ut).ensureInitialStyleCaptured(),l(this,Ut).lockMap.set(l(this,Oo),l(this,ta)??!1),this.locked=ge(()=>l(this,Ut).lockMap.get(l(this,Oo))??!1,n=>l(this,Ut).lockMap.set(l(this,Oo),n)),Ho(()=>{if(l(this,Ut).lockMap.delete(l(this,Oo)),mp(l(this,Ut).lockMap))return;const n=l(this,ra).call(this);l(this,Ut).scheduleCleanupIfNoNewLocks(n,()=>{l(this,Ut).resetBodyStyle()})}))}}Oo=new WeakMap,ta=new WeakMap,ra=new WeakMap,Ut=new WeakMap;function mp(t){for(const[e,r]of t)if(r)return!0;return!1}function nh(t,e){$e(e,!0);let r=M(e,"preventScroll",3,!0),n=M(e,"restoreScrollDelay",3,null);r()&&new B0(r(),()=>n()),Ie()}wm();const V0=["top","right","bottom","left"],Jn=Math.min,_n=Math.max,Il=Math.round,Ya=Math.floor,kn=t=>({x:t,y:t}),W0={left:"right",right:"left",bottom:"top",top:"bottom"};function bp(t,e,r){return _n(t,Jn(e,r))}function Cn(t,e){return typeof t=="function"?t(e):t}function Qn(t){return t.split("-")[0]}function Ds(t){return t.split("-")[1]}function Id(t){return t==="x"?"y":"x"}function Nd(t){return t==="y"?"height":"width"}function Wr(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function zd(t){return Id(Wr(t))}function j0(t,e,r){r===void 0&&(r=!1);const n=Ds(t),o=zd(t),s=Nd(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Nl(i)),[i,Nl(i)]}function G0(t){const e=Nl(t);return[Ku(t),e,Ku(e)]}function Ku(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const oh=["left","right"],sh=["right","left"],H0=["top","bottom"],K0=["bottom","top"];function U0(t,e,r){switch(t){case"top":case"bottom":return r?e?sh:oh:e?oh:sh;case"left":case"right":return e?H0:K0;default:return[]}}function q0(t,e,r,n){const o=Ds(t);let s=U0(Qn(t),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(Ku)))),s}function Nl(t){const e=Qn(t);return W0[e]+t.slice(e.length)}function Y0(t){var e,r,n,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(o=t.left)!=null?o:0}}function yp(t){return typeof t!="number"?Y0(t):{top:t,right:t,bottom:t,left:t}}function zl(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function ih(t,e,r){let{reference:n,floating:o}=t;const s=Wr(e),i=zd(e),a=Nd(i),c=Qn(e),u=s==="y",f=n.x+n.width/2-o.width/2,v=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:v};break;case"left":g={x:n.x-o.width,y:v};break;default:g={x:n.x,y:n.y}}const p=Ds(e);return p&&(g[i]+=h*(p==="end"?1:-1)*(r&&u?-1:1)),g}async function X0(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:v="floating",altBoundary:h=!1,padding:g=0}=Cn(e,t),p=yp(g),y=a[h?v==="floating"?"reference":"floating":v],w=zl(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(y)))==null||r?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),k=v==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),S=await(s.isElement==null?void 0:s.isElement(O))&&await(s.getScale==null?void 0:s.getScale(O))||{x:1,y:1},P=zl(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:k,offsetParent:O,strategy:c}):k);return{top:(w.top-P.top+p.top)/S.y,bottom:(P.bottom-w.bottom+p.bottom)/S.y,left:(w.left-P.left+p.left)/S.x,right:(P.right-w.right+p.right)/S.x}}const Z0=50,J0=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:X0},c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:v}=ih(u,n,c),h=n,g=0;const p={};for(let m=0;m({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=e,{element:u,padding:f=0}=Cn(t,e)||{};if(u==null)return{};const v=yp(f),h={x:r,y:n},g=zd(o),p=Nd(g),m=await i.getDimensions(u),y=g==="y",w=y?"top":"left",k=y?"bottom":"right",O=y?"clientHeight":"clientWidth",S=s.reference[p]+s.reference[g]-h[g]-s.floating[p],P=h[g]-s.reference[g],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=T?T[O]:0;(!N||!await(i.isElement==null?void 0:i.isElement(T)))&&(N=a.floating[O]||s.floating[p]);const x=S/2-P/2,D=N/2-m[p]/2-1,G=Jn(v[w],D),K=Jn(v[k],D),L=N-m[p]-K,U=N/2-m[p]/2+x,Z=bp(G,U,L),z=!c.arrow&&Ds(o)!=null&&U!==Z&&s.reference[p]/2-(UZ<=0)){var K,L;const Z=(((K=s.flip)==null?void 0:K.index)||0)+1,z=N[Z];if(z&&(!(v==="alignment"?k!==Wr(z):!1)||G.every(de=>Wr(de.placement)===k?de.overflows[0]>0:!0)))return{data:{index:Z,overflows:G},reset:{placement:z}};let F=(L=G.filter(fe=>fe.overflows[0]<=0).sort((fe,de)=>fe.overflows[1]-de.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var U;const fe=(U=G.filter(de=>{if(T){const ce=Wr(de.placement);return ce===k||ce==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(ce=>ce>0).reduce((ce,C)=>ce+C,0)]).sort((de,ce)=>de[1]-ce[1])[0])==null?void 0:U[0];fe&&(F=fe);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function ah(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function lh(t){return V0.some(e=>t[e]>=0)}const t1=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:o="referenceHidden",...s}=Cn(t,e);switch(o){case"referenceHidden":{const i=await n.detectOverflow(e,{...s,elementContext:"reference"}),a=ah(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:lh(a)}}}case"escaped":{const i=await n.detectOverflow(e,{...s,altBoundary:!0}),a=ah(i,r.floating);return{data:{escapedOffsets:a,escaped:lh(a)}}}default:return{}}}}},wp=new Set(["left","top"]);async function r1(t,e){const{placement:r,platform:n,elements:o}=t,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Qn(r),a=Ds(r),c=Wr(r)==="y",u=wp.has(i)?-1:1,f=s&&c?-1:1,v=Cn(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const n1=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=e,c=await r1(e,t);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},o1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:k=>{let{x:O,y:S}=k;return{x:O,y:S}}},...u}=Cn(t,e),f={x:r,y:n},v=await s.detectOverflow(e,u),h=Wr(o),g=Id(h);let p=f[g],m=f[h];const y=(k,O)=>bp(O+v[k==="y"?"top":"left"],O,O-v[k==="y"?"bottom":"right"]);i&&(p=y(g,p)),a&&(m=y(h,m));const w=c.fn({...e,[g]:p,[h]:m});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[g]:i,[h]:a}}}}}},s1=function(t){return t===void 0&&(t={}),{options:t,fn(e){var r,n;const{x:o,y:s,placement:i,rects:a,middlewareData:c}=e,{offset:u=0,mainAxis:f=!0,crossAxis:v=!0}=Cn(t,e),h={x:o,y:s},g=Wr(i),p=Id(g);let m=h[p],y=h[g];const w=Cn(u,e),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(r=w.mainAxis)!=null?r:0,crossAxis:(n=w.crossAxis)!=null?n:0};if(f){const P=p==="y"?"height":"width",T=a.reference[p]-a.floating[P]+k.mainAxis,N=a.reference[p]+a.reference[P]-k.mainAxis;mN&&(m=N)}if(v){var O,S;const P=p==="y"?"width":"height",T=wp.has(Qn(i)),N=a.reference[g]-a.floating[P]+(T&&((O=c.offset)==null?void 0:O[g])||0)+(T?0:k.crossAxis),x=a.reference[g]+a.reference[P]+(T?0:((S=c.offset)==null?void 0:S[g])||0)-(T?k.crossAxis:0);yx&&(y=x)}return{[p]:m,[g]:y}}}},i1=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:o,elements:s}=e,{apply:i=()=>{},...a}=Cn(t,e),c=await o.detectOverflow(e,a),u=Qn(r),f=Ds(r),v=Wr(r)==="y",{width:h,height:g}=n.floating;let p,m;u==="top"||u==="bottom"?(p=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,p=f==="end"?"top":"bottom");const y=g-c.top-c.bottom,w=h-c.left-c.right,k=Jn(g-c[p],y),O=Jn(h-c[m],w),S=e.middlewareData.shift,P=!S;let T=k,N=O;S!=null&&S.enabled.x&&(N=w),S!=null&&S.enabled.y&&(T=y),P&&!f&&(v?N=h-2*_n(c.left,c.right):T=g-2*_n(c.top,c.bottom)),await i({...e,availableWidth:N,availableHeight:T});const x=await o.getDimensions(s.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function yc(){return typeof window<"u"}function Bs(t){return xp(t)?(t.nodeName||"").toLowerCase():"#document"}function Jt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function An(t){var e;return(e=(xp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xp(t){return yc()?t instanceof Node||t instanceof Jt(t).Node:!1}function Xr(t){return yc()?t instanceof Element||t instanceof Jt(t).Element:!1}function oo(t){return yc()?t instanceof HTMLElement||t instanceof Jt(t).HTMLElement:!1}function ch(t){return!yc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Jt(t).ShadowRoot}function wc(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Zr(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&o!=="inline"&&o!=="contents"}function a1(t){return/^(table|td|th)$/.test(Bs(t))}function xc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const l1=/transform|translate|scale|rotate|perspective|filter/,c1=/paint|layout|strict|content/,lo=t=>!!t&&t!=="none";let Dc;function Rd(t){const e=Xr(t)?Zr(t):t;return lo(e.transform)||lo(e.translate)||lo(e.scale)||lo(e.rotate)||lo(e.perspective)||!Fd()&&(lo(e.backdropFilter)||lo(e.filter))||l1.test(e.willChange||"")||c1.test(e.contain||"")}function u1(t){let e=Ro(t);for(;oo(e)&&!pi(e);){if(Rd(e))return e;if(xc(e))return null;e=Ro(e)}return null}function Fd(){return Dc==null&&(Dc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Dc}function pi(t){return/^(html|body|#document)$/.test(Bs(t))}function Zr(t){return Jt(t).getComputedStyle(t)}function _c(t){return Xr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ro(t){if(Bs(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ch(t)&&t.host||An(t);return ch(e)?e.host:e}function _p(t){const e=Ro(t);return pi(e)?(t.ownerDocument||t).body:oo(e)&&wc(e)?e:_p(e)}function mi(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=_p(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),i=Jt(o);if(s){const a=Uu(i);return e.concat(i,i.visualViewport||[],wc(o)?o:[],a&&r?mi(a):[])}else return e.concat(o,mi(o,[],r))}function Uu(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function kp(t){const e=Zr(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=oo(t),s=o?t.offsetWidth:r,i=o?t.offsetHeight:n,a=Il(r)!==s||Il(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function Ld(t){return Xr(t)?t:t.contextElement}function ss(t){const e=Ld(t);if(!oo(e))return kn(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=kp(e);let i=(s?Il(r.width):r.width)/n,a=(s?Il(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const d1=kn(0);function Sp(t){const e=Jt(t);return!Fd()||!e.visualViewport?d1:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function f1(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Jt(t)}function Fo(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Ld(t);let i=kn(1);e&&(n?Xr(n)&&(i=ss(n)):i=ss(t));const a=f1(s,r,n)?Sp(s):kn(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,v=o.height/i.y;if(s&&n){const h=Jt(s),g=Xr(n)?Jt(n):n;let p=h,m=Uu(p);for(;m&&g!==p;){const y=ss(m),w=m.getBoundingClientRect(),k=Zr(m),O=w.left+(m.clientLeft+parseFloat(k.paddingLeft))*y.x,S=w.top+(m.clientTop+parseFloat(k.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,v*=y.y,c+=O,u+=S,p=Jt(m),m=Uu(p)}}return zl({width:f,height:v,x:c,y:u})}function kc(t,e){const r=_c(t).scrollLeft;return e?e.left+r:Fo(An(t)).left+r}function Pp(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-kc(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function h1(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const s=o==="fixed",i=An(n),a=e?xc(e.floating):!1;if(n===i||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=kn(1);const f=kn(0),v=oo(n);if((v||!s)&&((Bs(n)!=="body"||wc(i))&&(c=_c(n)),v)){const g=Fo(n);u=ss(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=i&&!v&&!s?Pp(i,c):kn(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-c.scrollTop*u.y+f.y+h.y}}function v1(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function g1(t){const e=_c(t),r=t.ownerDocument.body,n=_n(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=_n(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-e.scrollLeft+kc(t);const i=-e.scrollTop;return Zr(r).direction==="rtl"&&(s+=_n(t.clientWidth,r.clientWidth)-n),{width:n,height:o,x:s,y:i}}const p1=25;function m1(t,e,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",o=Jt(t),s=An(t),i=o.visualViewport;let a=s.clientWidth,c=s.clientHeight,u=0,f=0;if(i){const h=!Fd()||e==="fixed";n?h||(u=-i.offsetLeft,f=-i.offsetTop):(a=i.width,c=i.height,h&&(u=i.offsetLeft,f=i.offsetTop))}if(kc(s)<=0){const h=s.ownerDocument,g=h.body,p=getComputedStyle(g),m=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(s.clientWidth-g.clientWidth-m),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;w<=p1&&(a-=w)}return{width:a,height:c,x:u,y:f}}function b1(t,e){const r=Fo(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,s=ss(t),i=t.clientWidth*s.x,a=t.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:i,height:a,x:c,y:u}}function uh(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=m1(t,r,e);else if(e==="document")n=g1(An(t));else if(Xr(e))n=b1(e,r);else{const o=Sp(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return zl(n)}function y1(t,e){const r=e.get(t);if(r)return r;let n=mi(t,[],!1).filter(a=>Xr(a)&&Bs(a)!=="body"),o=null;const s=Zr(t).position==="fixed";let i=s?Ro(t):t;for(;Xr(i)&&!pi(i);){const a=Zr(i),c=Rd(i),u=o?o.position:s?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(v=>v!==i):o=a,i=Ro(i)}return e.set(t,n),n}function w1(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?xc(e)?[]:y1(e,this._c):[].concat(r),n],a=uh(e,i[0],o);let c=a.top,u=a.right,f=a.bottom,v=a.left;for(let h=1;h{a(!1,1e-7)},1e3)}N=!1}try{n=new IntersectionObserver(x,{...T,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,T)}n.observe(t)}const c=Jt(t),u=()=>a(r);return c.addEventListener("resize",u),a(!0),()=>{c.removeEventListener("resize",u),i()}}function A1(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Ld(t),f=o||s?[...u?mi(u):[],...e?mi(e):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",r),s&&w.addEventListener("resize",r)});const v=u&&a?C1(u,r,s):null;let h=-1,g=null;i&&(g=new ResizeObserver(w=>{let[k]=w;k&&k.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var O;(O=g)==null||O.observe(e)})),r()}),u&&!c&&g.observe(u),e&&g.observe(e));let p,m=c?Fo(t):null;c&&y();function y(){const w=Fo(t);m&&!Ap(m,w)&&r(),m=w,p=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(k=>{o&&k.removeEventListener("scroll",r),s&&k.removeEventListener("resize",r)}),v==null||v(),(w=g)==null||w.disconnect(),g=null,c&&cancelAnimationFrame(p)}}const E1=n1,T1=o1,O1=e1,M1=i1,$1=t1,I1=Q0,N1=s1,z1=(t,e,r)=>{const n=new Map,o=r??{},s={...P1,...o.platform,_c:n};return J0(t,e,{...o,platform:s})};function co(t){return typeof t=="function"?t():t}function Ep(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function fh(t,e){const r=Ep(t);return Math.round(e*r)/r}function hh(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function R1(t){const e=t.whileElementsMounted,r=W(()=>co(t.open)??!0),n=W(()=>co(t.middleware)),o=W(()=>co(t.transform)??!0),s=W(()=>co(t.placement)??"bottom"),i=W(()=>co(t.strategy)??"absolute"),a=W(()=>co(t.sideOffset)??0),c=W(()=>co(t.alignOffset)??0),u=t.reference;let f=Ae(0),v=Ae(0);const h=Vr(null);let g=Ae(Zt(d(i))),p=Ae(Zt(d(s))),m=Ae(Zt({})),y=Ae(!1),w=!1,k=0;const O=W(()=>{const G=h.current?fh(h.current,d(f)):d(f),K=h.current?fh(h.current,d(v)):d(v);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${G}px, ${K}px)`,...h.current&&Ep(h.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${G}px`,top:`${K}px`}});let S;function P(){if(u.current===null||h.current===null)return;const G=u.current,K=h.current,L=++k;z1(G,K,{middleware:d(n),placement:d(s),strategy:d(i)}).then(U=>{if(L!==k||u.current!==G||h.current!==K)return;if(F1(G)){R(m,{...d(m),hide:{...d(m).hide,referenceHidden:!0}},!0);return}if(!d(r)&&d(f)!==0&&d(v)!==0){const z=Math.max(Math.abs(d(a)),Math.abs(d(c)),15);if(U.x<=z&&U.y<=z)return}R(f,U.x,!0),R(v,U.y,!0),R(g,U.strategy,!0),R(p,U.placement,!0),R(m,U.middlewareData,!0),R(y,!0)})}function T(){typeof S=="function"&&(S(),S=void 0),k++}function N(){if(T(),e===void 0){P();return}d(r)&&(u.current===null||h.current===null||(S=e(u.current,h.current,P)))}function x(){!d(r)&&h.current===null&&R(y,!1)}function D(){return[d(n),d(s),d(i),d(a),d(c),d(r)]}return ot(()=>{e===void 0&&d(r)&&P()}),ot(N),ot(()=>{if(e!==void 0){if(D(),!d(r)){w=!1;return}if(!d(y)){w=!1;return}if(!w){w=!0;return}P()}}),ot(x),ot(()=>T),{floating:h,reference:u,get strategy(){return d(g)},get placement(){return d(p)},get middlewareData(){return d(m)},get isPositioned(){return d(y)},get floatingStyles(){return d(O)},get update(){return P}}}function F1(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const L1={top:"bottom",right:"left",bottom:"top",left:"right"},Dd=new Go("Floating.Root"),vh=new Go("Floating.Content"),Bd=new Go("Floating.Root");class Rl{constructor(){ae(this,"anchorNode",Vr(null));ae(this,"customAnchorNode",Vr(null));ae(this,"triggerNode",Vr(null));ot(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Bd.set(new Rl):Dd.set(new Rl)}}var na,oa,sa,cc,ia,uc,aa,la,ca,ua,da,fa,ha,va,ga,pa,ma,ba,ya,wa,xa,_a,ka,Sa;const dc=class dc{constructor(e,r){ae(this,"opts");ae(this,"root");ae(this,"contentRef",Vr(null));ae(this,"wrapperRef",Vr(null));ae(this,"arrowRef",Vr(null));ae(this,"contentAttachment",Yn(this.contentRef));ae(this,"wrapperAttachment",Yn(this.wrapperRef));ae(this,"arrowAttachment",Yn(this.arrowRef));ae(this,"arrowId",Vr($d()));_(this,na,W(()=>{if(typeof this.opts.style=="string")return oi(this.opts.style);if(!this.opts.style)return{}}));_(this,oa);_(this,sa,new f_(()=>this.arrowRef.current??void 0));_(this,cc,W(()=>{var e;return((e=l(this,sa))==null?void 0:e.width)??0}));_(this,ia,W(()=>{var e;return((e=l(this,sa))==null?void 0:e.height)??0}));_(this,uc,W(()=>{var e;return((e=this.opts.side)==null?void 0:e.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));_(this,aa,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));_(this,la,W(()=>d(l(this,aa)).length>0));_(this,ca,W(()=>({padding:this.opts.collisionPadding.current,boundary:d(l(this,aa)).filter($_),altBoundary:this.hasExplicitBoundaries})));_(this,ua,Ae(void 0));_(this,da,Ae(void 0));_(this,fa,Ae(void 0));_(this,ha,Ae(void 0));_(this,va,W(()=>[E1({mainAxis:this.opts.sideOffset.current+d(l(this,ia)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&T1({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?N1():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&O1({...this.detectOverflowOptions}),M1({...this.detectOverflowOptions,apply:({rects:e,availableWidth:r,availableHeight:n})=>{const{width:o,height:s}=e.reference;R(l(this,ua),r,!0),R(l(this,da),n,!0),R(l(this,fa),o,!0),R(l(this,ha),s,!0)}}),this.arrowRef.current&&I1({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),D1({arrowWidth:d(l(this,cc)),arrowHeight:d(l(this,ia))}),this.opts.hideWhenDetached.current&&$1({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ae(this,"floating");_(this,ga,W(()=>B1(this.floating.placement)));_(this,pa,W(()=>V1(this.floating.placement)));_(this,ma,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.x)??0}));_(this,ba,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.y)??0}));_(this,ya,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.centerOffset)!==0}));_(this,wa,Ae());_(this,xa,W(()=>L1[this.placedSide]));_(this,_a,W(()=>{var e,r,n;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(e=this.floating.middlewareData.transformOrigin)==null?void 0:e.x} ${(r=this.floating.middlewareData.transformOrigin)==null?void 0:r.y}`,"--bits-floating-available-width":`${d(l(this,ua))}px`,"--bits-floating-available-height":`${d(l(this,da))}px`,"--bits-floating-anchor-width":`${d(l(this,fa))}px`,"--bits-floating-anchor-height":`${d(l(this,ha))}px`,...((n=this.floating.middlewareData.hide)==null?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(l(this,na))},dir:this.opts.dir.current,...this.wrapperAttachment}}));_(this,ka,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Cg({...d(l(this,na))}),...this.contentAttachment})));_(this,Sa,W(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=r,$(this,oa,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),or(()=>e.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=R1({strategy:()=>this.opts.strategy.current,placement:()=>d(l(this,uc)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>{var s;return A1(...n,{animationFrame:((s=l(this,oa))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),ot(()=>{var n;this.floating.isPositioned&&((n=this.opts.onPlaced)==null||n.current())}),or(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const o=Mg(n),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const i=o.getComputedStyle(n).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),ot(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,r=!1){return r?vh.set(new dc(e,Bd.get())):vh.set(new dc(e,Dd.get()))}get hasExplicitBoundaries(){return d(l(this,la))}set hasExplicitBoundaries(e){R(l(this,la),e)}get detectOverflowOptions(){return d(l(this,ca))}set detectOverflowOptions(e){R(l(this,ca),e)}get middleware(){return d(l(this,va))}set middleware(e){R(l(this,va),e)}get placedSide(){return d(l(this,ga))}set placedSide(e){R(l(this,ga),e)}get placedAlign(){return d(l(this,pa))}set placedAlign(e){R(l(this,pa),e)}get arrowX(){return d(l(this,ma))}set arrowX(e){R(l(this,ma),e)}get arrowY(){return d(l(this,ba))}set arrowY(e){R(l(this,ba),e)}get cannotCenterArrow(){return d(l(this,ya))}set cannotCenterArrow(e){R(l(this,ya),e)}get contentZIndex(){return d(l(this,wa))}set contentZIndex(e){R(l(this,wa),e,!0)}get arrowBaseSide(){return d(l(this,xa))}set arrowBaseSide(e){R(l(this,xa),e)}get wrapperProps(){return d(l(this,_a))}set wrapperProps(e){R(l(this,_a),e)}get props(){return d(l(this,ka))}set props(e){R(l(this,ka),e)}get arrowStyle(){return d(l(this,Sa))}set arrowStyle(e){R(l(this,Sa),e)}};na=new WeakMap,oa=new WeakMap,sa=new WeakMap,cc=new WeakMap,ia=new WeakMap,uc=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap,ua=new WeakMap,da=new WeakMap,fa=new WeakMap,ha=new WeakMap,va=new WeakMap,ga=new WeakMap,pa=new WeakMap,ma=new WeakMap,ba=new WeakMap,ya=new WeakMap,wa=new WeakMap,xa=new WeakMap,_a=new WeakMap,ka=new WeakMap,Sa=new WeakMap;let qu=dc;class Fl{constructor(e,r){ae(this,"opts");ae(this,"root");this.opts=e,this.root=r,e.virtualEl&&e.virtualEl.current?r.triggerNode=kg(e.virtualEl.current):r.triggerNode=e.ref}static create(e,r=!1){return r?new Fl(e,Bd.get()):new Fl(e,Dd.get())}}function D1(t){return{name:"transformOrigin",options:t,fn(e){var y,w,k;const{placement:r,rects:n,middlewareData:o}=e,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:t.arrowWidth,c=i?0:t.arrowHeight,[u,f]=Vd(r),v={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,g=(((k=o.arrow)==null?void 0:k.y)??0)+c/2;let p="",m="";return u==="bottom"?(p=i?v:`${h}px`,m=`${-c}px`):u==="top"?(p=i?v:`${h}px`,m=`${n.floating.height+c}px`):u==="right"?(p=`${-c}px`,m=i?v:`${g}px`):u==="left"&&(p=`${n.floating.width+c}px`,m=i?v:`${g}px`),{data:{x:p,y:m}}}}}function Vd(t){const[e,r="center"]=t.split("-");return[e,r]}function B1(t){return Vd(t)[0]}function V1(t){return Vd(t)[1]}function W1(t,e){$e(e,!0);let r=M(e,"tooltip",3,!1);Rl.create(r());var n=te(),o=E(n);Re(o,()=>e.children??Ne),b(t,n),Ie()}function j1(t,e){$e(e,!0);let r=M(e,"tooltip",3,!1);Fl.create({id:ge(()=>e.id),virtualEl:ge(()=>e.virtualEl),ref:e.ref},r());var n=te(),o=E(n);Re(o,()=>e.children??Ne),b(t,n),Ie()}function G1(t,e){$e(e,!0);let r=M(e,"side",3,"bottom"),n=M(e,"sideOffset",3,0),o=M(e,"align",3,"center"),s=M(e,"alignOffset",3,0),i=M(e,"arrowPadding",3,0),a=M(e,"avoidCollisions",3,!0),c=M(e,"collisionBoundary",19,()=>[]),u=M(e,"collisionPadding",3,0),f=M(e,"hideWhenDetached",3,!1),v=M(e,"onPlaced",3,()=>{}),h=M(e,"sticky",3,"partial"),g=M(e,"updatePositionStrategy",3,"optimized"),p=M(e,"strategy",3,"fixed"),m=M(e,"dir",3,"ltr"),y=M(e,"style",19,()=>({})),w=M(e,"wrapperId",19,$d),k=M(e,"customAnchor",3,null),O=M(e,"tooltip",3,!1);const S=qu.create({side:ge(()=>r()),sideOffset:ge(()=>n()),align:ge(()=>o()),alignOffset:ge(()=>s()),id:ge(()=>e.id),arrowPadding:ge(()=>i()),avoidCollisions:ge(()=>a()),collisionBoundary:ge(()=>c()),collisionPadding:ge(()=>u()),hideWhenDetached:ge(()=>f()),onPlaced:ge(()=>v()),sticky:ge(()=>h()),updatePositionStrategy:ge(()=>g()),strategy:ge(()=>p()),dir:ge(()=>m()),style:ge(()=>y()),enabled:ge(()=>e.enabled),wrapperId:ge(()=>w()),customAnchor:ge(()=>k())},O()),P=W(()=>Kr(S.wrapperProps,{style:{pointerEvents:"auto"}}));var T=te(),N=E(T);Re(N,()=>e.content??Ne,()=>({props:S.props,wrapperProps:d(P)})),b(t,T),Ie()}function H1(t,e){$e(e,!0),hd(()=>{var o;(o=e.onPlaced)==null||o.call(e)});var r=te(),n=E(r);Re(n,()=>e.content??Ne,()=>({props:{},wrapperProps:{}})),b(t,r),Ie()}var K1=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function U1(t,e){let r=M(e,"isStatic",3,!1),n=Ge(e,K1);var o=te(),s=E(o);{var i=c=>{H1(c,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=c=>{G1(c,je({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};Fe(s,c=>{r()?c(i):c(a,-1)})}b(t,o)}var q1=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),Y1=le(" ",1);function Tp(t,e){$e(e,!0);let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=M(e,"tooltip",3,!1),c=M(e,"contentPointerEvents",3,"auto"),u=Ge(e,q1);const f=W(()=>e.preventScroll??!0),v=W(()=>e.strategy??(d(f)?"fixed":"absolute"));U1(t,{get isStatic(){return i()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return d(v)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(g,p)=>{let m=()=>(p==null?void 0:p()).props,y=()=>(p==null?void 0:p()).wrapperProps;var w=Y1(),k=E(w);{var O=T=>{nh(T,{get preventScroll(){return d(f)}})},S=T=>{nh(T,{get preventScroll(){return d(f)}})};Fe(k,T=>{e.forceMount&&e.enabled?T(O):e.forceMount||T(S,1)})}var P=A(k,2);N0(P,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return n()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(N,x)=>{let D=()=>(x==null?void 0:x()).props;I0(N,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(G,K)=>{M0(G,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return r()},get isValidEvent(){return o()},get enabled(){return e.enabled},get ref(){return e.ref},children:(U,Z)=>{let z=()=>(Z==null?void 0:Z()).props;F0(U,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(F,fe)=>{var de=te(),ce=E(de);{let C=W(()=>({props:Kr(u,m(),z(),D(),{style:{pointerEvents:c()}}),wrapperProps:y()}));Re(ce,()=>e.popper??Ne,()=>d(C))}b(F,de)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),b(g,w)},$$slots:{content:!0}}),Ie()}var X1=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function Z1(t,e){let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=Ge(e,X1);var c=te(),u=E(c);{var f=v=>{Tp(v,je({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};Fe(u,v=>{e.shouldRender&&v(f)})}b(t,c)}var J1=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function Q1(t,e){let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=Ge(e,J1);Tp(t,je({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}var ek=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),tk=le("
");function rk(t,e){const r=Ma();$e(e,!0);let n=M(e,"ref",15,null),o=M(e,"id",19,()=>Ra(r)),s=M(e,"disabled",3,!1),i=M(e,"onSelect",3,ft),a=M(e,"closeOnSelect",3,!0),c=Ge(e,ek);const u=Ru.create({id:ge(()=>o()),disabled:ge(()=>s()),onSelect:ge(()=>i()),ref:ge(()=>n(),m=>n(m)),closeOnSelect:ge(()=>a())}),f=W(()=>Kr(c,u.props));var v=te(),h=E(v);{var g=m=>{var y=te(),w=E(y);Re(w,()=>e.child,()=>({props:d(f)})),b(m,y)},p=m=>{var y=tk();Ke(y,()=>({...d(f)}));var w=B(y);Re(w,()=>e.children??Ne),b(m,y)};Fe(h,m=>{e.child?m(g):m(p,-1)})}b(t,v),Ie()}var nk=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),ok=le("
");function sk(t,e){const r=Ma();$e(e,!0);let n=M(e,"ref",15,null),o=M(e,"id",19,()=>Ra(r)),s=Ge(e,nk);const i=Fu.create({id:ge(()=>o()),ref:ge(()=>n(),h=>n(h))}),a=W(()=>Kr(s,i.props));var c=te(),u=E(c);{var f=h=>{var g=te(),p=E(g);Re(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=ok();Ke(g,()=>({...d(a)}));var p=B(g);Re(p,()=>e.children??Ne),b(h,g)};Fe(u,h=>{e.child?h(f):h(v,-1)})}b(t,c),Ie()}function ik(t,e){$e(e,!0);let r=M(e,"open",15,!1),n=M(e,"dir",3,"ltr"),o=M(e,"onOpenChange",3,ft),s=M(e,"onOpenChangeComplete",3,ft),i=M(e,"_internal_variant",3,"dropdown-menu"),a=M(e,"_internal_should_skip_exit_animation",3,void 0);const c=Iu.create({variant:ge(()=>i()),dir:ge(()=>n()),onClose:()=>{r(!1),o()(!1)},shouldSkipExitAnimation:()=>{var u;return((u=a())==null?void 0:u())??!1}});Nu.create({open:ge(()=>r(),u=>{r(u),o()(u)}),onOpenChangeComplete:ge(()=>s())},c),W1(t,{children:(u,f)=>{var v=te(),h=E(v);Re(h,()=>e.children??Ne),b(u,v)},$$slots:{default:!0}}),Ie()}var ak=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),gh=le("
");function lk(t,e){const r=Ma();$e(e,!0);let n=M(e,"id",19,()=>Ra(r)),o=M(e,"ref",15,null),s=M(e,"loop",3,!0),i=M(e,"onInteractOutside",3,ft),a=M(e,"onEscapeKeydown",3,ft),c=M(e,"onCloseAutoFocus",3,ft),u=M(e,"forceMount",3,!1),f=M(e,"trapFocus",3,!1),v=Ge(e,ak);const h=zu.create({id:ge(()=>n()),loop:ge(()=>s()),ref:ge(()=>o(),S=>o(S)),onCloseAutoFocus:ge(()=>c())}),g=W(()=>Kr(v,h.props));function p(S){if(h.handleInteractOutside(S),!S.defaultPrevented&&(i()(S),!S.defaultPrevented)){if(S.target&&S.target instanceof Element){const P=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(S.target.closest(P))return}h.parentMenu.onClose()}}function m(S){a()(S),!S.defaultPrevented&&h.parentMenu.onClose()}var y=te(),w=E(y);{var k=S=>{Q1(S,je(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(T,N)=>{let x=()=>(N==null?void 0:N()).props,D=()=>(N==null?void 0:N()).wrapperProps;const G=W(()=>Kr(x(),{style:hh("dropdown-menu")},{style:e.style}));var K=te(),L=E(K);{var U=z=>{var F=te(),fe=E(F);{let de=W(()=>({props:d(G),wrapperProps:D(),...h.snippetProps}));Re(fe,()=>e.child,()=>d(de))}b(z,F)},Z=z=>{var F=gh();Ke(F,()=>({...D()}));var fe=B(F);Ke(fe,()=>({...d(G)}));var de=B(fe);Re(de,()=>e.children??Ne),b(z,F)};Fe(L,z=>{e.child?z(U):z(Z,-1)})}b(T,K)},$$slots:{popper:!0}}))},O=S=>{Z1(S,je(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(T,N)=>{let x=()=>(N==null?void 0:N()).props,D=()=>(N==null?void 0:N()).wrapperProps;const G=W(()=>Kr(x(),{style:hh("dropdown-menu")},{style:e.style}));var K=te(),L=E(K);{var U=z=>{var F=te(),fe=E(F);{let de=W(()=>({props:d(G),wrapperProps:D(),...h.snippetProps}));Re(fe,()=>e.child,()=>d(de))}b(z,F)},Z=z=>{var F=gh();Ke(F,()=>({...D()}));var fe=B(F);Ke(fe,()=>({...d(G)}));var de=B(fe);Re(de,()=>e.children??Ne),b(z,F)};Fe(L,z=>{e.child?z(U):z(Z,-1)})}b(T,K)},$$slots:{popper:!0}}))};Fe(w,S=>{u()?S(k):u()||S(O,1)})}b(t,y),Ie()}var ck=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),uk=le("");function dk(t,e){const r=Ma();$e(e,!0);let n=M(e,"id",19,()=>Ra(r)),o=M(e,"ref",15,null),s=M(e,"disabled",3,!1),i=M(e,"type",3,"button"),a=Ge(e,ck);const c=Lu.create({id:ge(()=>n()),disabled:ge(()=>s()??!1),ref:ge(()=>o(),f=>o(f))}),u=W(()=>Kr(a,c.props,{type:i()}));j1(t,{get id(){return n()},get ref(){return c.opts.ref},children:(f,v)=>{var h=te(),g=E(h);{var p=y=>{var w=te(),k=E(w);Re(k,()=>e.child,()=>({props:d(u)})),b(y,w)},m=y=>{var w=uk();Ke(w,()=>({...d(u)}));var k=B(w);Re(k,()=>e.children??Ne),b(y,w)};Fe(g,y=>{e.child?y(p):y(m,-1)})}b(f,h)},$$slots:{default:!0}}),Ie()}const fk=zg({component:"label",parts:["root"]});var Pa;const tf=class tf{constructor(e){ae(this,"opts");ae(this,"attachment");_(this,Pa,W(()=>({id:this.opts.id.current,[fk.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=Yn(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new tf(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return d(l(this,Pa))}set props(e){R(l(this,Pa),e)}};Pa=new WeakMap;let Yu=tf;var hk=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),vk=le("");function gk(t,e){const r=Ma();$e(e,!0);let n=M(e,"id",19,()=>Ra(r)),o=M(e,"ref",15,null),s=Ge(e,hk);const i=Yu.create({id:ge(()=>n()),ref:ge(()=>o(),h=>o(h))}),a=W(()=>Kr(s,i.props,{for:e.for}));var c=te(),u=E(c);{var f=h=>{var g=te(),p=E(g);Re(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=vk();Ke(g,()=>({...d(a),for:e.for}));var p=B(g);Re(p,()=>e.children??Ne),b(h,g)};Fe(u,h=>{e.child?h(f):h(v,-1)})}b(t,c),Ie()}var pk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function mk(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,pk);var o=te(),s=E(o);{let i=W(()=>He("gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",e.class));I(s,()=>gk,(a,c)=>{c(a,je({"data-slot":"label",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}const ph=_d({base:"rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});var bk=new Set(["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]),yk=le(""),wk=le("");function wn(t,e){$e(e,!0);let r=M(e,"variant",3,"default"),n=M(e,"size",3,"default"),o=M(e,"ref",15,null),s=M(e,"href",3,void 0),i=M(e,"type",3,"button"),a=Ge(e,bk);var c=te(),u=E(c);{var f=h=>{var g=yk();Ke(g,m=>({"data-slot":"button",class:m,href:e.disabled?void 0:s(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...a}),[()=>He(ph({variant:r(),size:n()}),e.class)]);var p=B(g);Re(p,()=>e.children??Ne),st(g,m=>o(m),()=>o()),b(h,g)},v=h=>{var g=wk();Ke(g,m=>({"data-slot":"button",class:m,type:i(),disabled:e.disabled,...a}),[()=>He(ph({variant:r(),size:n()}),e.class)]);var p=B(g);Re(p,()=>e.children??Ne),st(g,m=>o(m),()=>o()),b(h,g)};Fe(u,h=>{s()?h(f):h(v,-1)})}b(t,c),Ie()}/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const xk={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"};/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const _k=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const mh=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();var kk=Oa("");function et(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]),n=Xe(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);$e(e,!1);let o=M(e,"name",8,void 0),s=M(e,"color",8,"currentColor"),i=M(e,"size",8,24),a=M(e,"strokeWidth",8,2),c=M(e,"absoluteStrokeWidth",8,!1),u=M(e,"iconNode",24,()=>[]);Ib();var f=kk();Ke(f,(g,p,m)=>({...xk,...g,...n,width:i(),height:i(),stroke:s(),"stroke-width":p,class:m}),[()=>_k(n)?void 0:{"aria-hidden":"true"},()=>(fo(c()),fo(a()),fo(i()),br(()=>c()?Number(a())*24/Number(i()):a())),()=>(fo(mh),fo(o()),fo(r),br(()=>mh("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var v=B(f);It(v,1,u,Xt,(g,p)=>{var m=W(()=>jp(d(p),2));let y=()=>d(m)[0],w=()=>d(m)[1];var k=te(),O=E(k);$v(O,y,!0,(S,P)=>{Ke(S,()=>({...w()}))}),b(g,k)});var h=A(v);Je(h,e,"default",{}),b(t,f),Ie()}function Sk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];et(t,je({name:"activity"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Pk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];et(t,je({name:"arrow-down-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ck(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];et(t,je({name:"arrow-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ak(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];et(t,je({name:"arrow-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Vc(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m6 9 6 6 6-6"}]];et(t,je({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Wd(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];et(t,je({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function bh(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"1"}]];et(t,je({name:"circle-dot"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ek(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6h4"}]];et(t,je({name:"clock-3"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Nn(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];et(t,je({name:"gauge"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function yh(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];et(t,je({name:"globe"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Tk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]];et(t,je({name:"inbox"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ok(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}]];et(t,je({name:"layout-panel-top"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Mk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];et(t,je({name:"link"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function $k(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M16 5H3"}],["path",{d:"M11 12H3"}],["path",{d:"M16 19H3"}],["path",{d:"m15.5 9.5 5 5"}],["path",{d:"m20.5 9.5-5 5"}]];et(t,je({name:"list-x"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Op(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];et(t,je({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ik(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];et(t,je({name:"log-out"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Nk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]];et(t,je({name:"network"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function zk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];et(t,je({name:"package"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Rk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]];et(t,je({name:"route"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Mp(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];et(t,je({name:"search"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Fk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]];et(t,je({name:"sliders-horizontal"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Lk(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4"}],["path",{d:"M5 21h14"}]];et(t,je({name:"sprout"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function wh(t,e){const r=Xe(e,["children","$$slots","$$events","$$legacy"]);/** + * @license lucide-svelte v1.0.1 - ISC + * + * ISC License + * + * Copyright (c) 2026 Lucide Icons and Contributors + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * --- + * + * The following Lucide icons are derived from the Feather project: + * + * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + * + * The MIT License (MIT) (for the icons listed above) + * + * Copyright (c) 2013-present Cole Bemis + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + */const n=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];et(t,je({name:"star"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=te(),a=E(i);Je(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}var Dk=le('
',1),xh=le(" ",1),Bk=le(" Signing in…",1),Vk=le('
'),Wk=le('
');function jk(t,e){$e(e,!0);let r=Ae(""),n=Ae(""),o=Ae(!1),s=Ae(null);hd(()=>{var u;(u=d(s))==null||u.focus()});async function i(){if(!(!d(r)||d(o))){R(o,!0),R(n,"");try{await es.login(d(r)),R(r,""),e.onLogin()}catch(u){R(n,u instanceof Error?u.message:"login failed",!0)}finally{R(o,!1)}}}var a=Wk(),c=B(a);I(c,()=>wt,(u,f)=>{f(u,{class:"w-full max-w-sm",children:(v,h)=>{var g=xh(),p=E(g);I(p,()=>Ot,(y,w)=>{w(y,{children:(k,O)=>{var S=Dk(),P=E(S),T=B(P);Lk(T,{class:"size-5","aria-hidden":"true"});var N=A(P,2);I(N,()=>Qt,(D,G)=>{G(D,{children:(K,L)=>{var U=Ce("Sower Admin");b(K,U)},$$slots:{default:!0}})});var x=A(N,2);I(x,()=>Tt,(D,G)=>{G(D,{children:(K,L)=>{var U=Ce("输入 sower 配置中的 admin 密码。");b(K,U)},$$slots:{default:!0}})}),b(k,S)},$$slots:{default:!0}})});var m=A(p,2);I(m,()=>kt,(y,w)=>{w(y,{children:(k,O)=>{var S=Vk(),P=B(S),T=B(P);mk(T,{for:"admin-password",children:(K,L)=>{var U=Ce("Password");b(K,U)},$$slots:{default:!0}});var N=A(T,2);Sd(N,{id:"admin-password",type:"password",placeholder:"Password",autocomplete:"current-password",get ref(){return d(s)},set ref(K){R(s,K,!0)},get value(){return d(r)},set value(K){R(r,K,!0)}});var x=A(P,2);{var D=K=>{var L=te(),U=E(L);I(U,()=>kd,(Z,z)=>{z(Z,{variant:"destructive",children:(F,fe)=>{var de=xh(),ce=E(de);Wd(ce,{class:"size-4"});var C=A(ce,2);I(C,()=>pd,(we,Se)=>{Se(we,{children:(q,re)=>{var H=Ce();Oe(()=>Pe(H,d(n))),b(q,H)},$$slots:{default:!0}})}),b(F,de)},$$slots:{default:!0}})}),b(K,L)};Fe(x,K=>{d(n)&&K(D)})}var G=A(x,2);{let K=W(()=>d(o)||!d(r));wn(G,{type:"submit",get disabled(){return d(K)},children:(L,U)=>{var Z=te(),z=E(Z);{var F=de=>{var ce=Bk(),C=E(ce);Op(C,{class:"size-4 animate-spin","aria-hidden":"true"}),b(de,ce)},fe=de=>{var ce=Ce("Sign in");b(de,ce)};Fe(z,de=>{d(o)?de(F):de(fe,-1)})}b(L,Z)},$$slots:{default:!0}})}Cv("submit",S,K=>{K.preventDefault(),i()}),b(k,S)},$$slots:{default:!0}})}),b(v,g)},$$slots:{default:!0}})}),b(t,a),Ie()}function dr(t){if(!Number.isFinite(t)||t<0)return"-";if(t<1024)return`${t} B`;const e=["KB","MB","GB","TB","PB"];let r=t,n=-1;do r/=1024,n++;while(r>=1024&&n0?`${e}d ${r}h`:r>0?`${r}h ${n}m`:n>0?`${n}m ${o}s`:`${o}s`}function Qe(t){return t>=1e9?`${(t/1e9).toFixed(1)}B`:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`}function Hk(t){const e=new Date(t);if(Number.isNaN(e.getTime()))return"-";const r=o=>String(o).padStart(2,"0"),n=`${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`;return e.toDateString()===new Date().toDateString()?n:`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${n}`}const Lt=Zt({status:null,traffic:null,history:[],connected:!1});let Rt=null,Xu="",ml=null;function Wc(t){try{return JSON.parse(t)}catch{return null}}function Kk(t){ml=t}function $p(t=""){Rt&&t===Xu||(Xu=t,Rt==null||Rt.close(),Rt=new EventSource(`/api/stream${t?`?${t}`:""}`),Rt.onopen=()=>Lt.connected=!0,Rt.onerror=()=>Lt.connected=!1,Rt.addEventListener("status",e=>{const r=Wc(e.data);r&&(Lt.status=r)}),Rt.addEventListener("traffic",e=>{const r=Wc(e.data);r&&(Lt.traffic=r)}),Rt.addEventListener("history",e=>{const r=Wc(e.data);r&&(Lt.history=r.samples)}),Rt.addEventListener("auth",()=>{ml==null||ml()}))}function Uk(){Rt==null||Rt.close(),Rt=null,Xu="",Lt.status=null,Lt.traffic=null,Lt.history=[],Lt.connected=!1}const qk=_d({base:"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var Yk=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);function Sc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,Yk);var s=te(),i=E(s);$v(i,()=>e.href?"a":"span",!1,(a,c)=>{st(a,v=>r(v),()=>r()),Ke(a,v=>({"data-slot":"badge",href:e.href,class:v,...o}),[()=>He(qk({variant:n()}),e.class)]);var u=te(),f=E(u);Re(f,()=>e.children??Ne),b(c,u)}),b(t,s),Ie()}var Xk=le('
');function jd(t,e){let r=M(e,"label",3,"加载中…");var n=Xk(),o=B(n);Op(o,{class:"size-4 animate-spin","aria-hidden":"true"});var s=A(o,2),i=B(s);Oe(()=>Pe(i,r())),b(t,n)}var Zk=Oa(''),Jk=Oa(''),Qk=Oa(''),eS=Oa(''),tS=le(" "),rS=le('
',1),nS=le('
等待采样数据…
'),oS=le(' '),sS=le(' '),iS=le('
');function Xa(t,e){$e(e,!0);let r=M(e,"height",3,160),n=M(e,"format",3,L=>String(L));const o=600,s=W(r),i=W(()=>e.series.flatMap(L=>L.values)),a=W(()=>d(i).length?Math.max(...d(i)):0),c=W(()=>d(i).length?Math.min(...d(i)):0),u=W(()=>d(a)-d(c)||1),f=W(()=>d(u)*.12),v=W(()=>d(a)+d(f)),h=W(()=>Math.max(0,d(c)-d(f))),g=W(()=>L=>e.labels.length<=1?0:L/(e.labels.length-1)*o),p=W(()=>L=>d(s)-(L-d(h))/(d(v)-d(h))*d(s)),m=W(()=>L=>L.length?L.map((U,Z)=>`${Z===0?"M":"L"}${d(g)(Z).toFixed(1)},${d(p)(U).toFixed(1)}`).join(" "):""),y=W(()=>L=>L.length?`${d(m)(L)} L${d(g)(L.length-1).toFixed(1)},${d(s)} L${d(g)(0).toFixed(1)},${d(s)} Z`:""),w=W(()=>e.labels.length<=2?[0,e.labels.length-1]:[0,Math.floor(e.labels.length/2),e.labels.length-1]),k=W(()=>d(w).map(L=>e.labels[L])),O=W(()=>e.labels.length>=2);let S=Ae(null),P=Ae(void 0);function T(L){if(!d(P))return;const U=d(P).getBoundingClientRect();if(U.width===0||e.labels.length<2)return;const Z=(L.clientX-U.left)/U.width;R(S,Math.max(0,Math.min(e.labels.length-1,Math.round(Z*(e.labels.length-1)))),!0)}var N=iS(),x=B(N);{var D=L=>{var U=rS(),Z=E(U),z=B(Z);It(z,16,()=>[.25,.5,.75],Xt,(we,Se)=>{var q=Zk();Ct(q,"x2",o),Oe(()=>{Ct(q,"y1",d(s)*Se),Ct(q,"y2",d(s)*Se)}),b(we,q)});var F=A(z);It(F,17,()=>e.series,Xt,(we,Se)=>{var q=Jk();Oe(re=>{Ct(q,"d",re),Zo(q,`fill:${d(Se).color}`)},[()=>d(y)(d(Se).values)]),b(we,q)});var fe=A(F);It(fe,17,()=>e.series,Xt,(we,Se)=>{var q=Qk();Oe(re=>{Ct(q,"d",re),Zo(q,`stroke:${d(Se).color}`)},[()=>d(m)(d(Se).values)]),b(we,q)});var de=A(fe);{var ce=we=>{var Se=eS();Oe((q,re)=>{Ct(Se,"x1",q),Ct(Se,"x2",re),Ct(Se,"y2",d(s))},[()=>d(g)(d(S)),()=>d(g)(d(S))]),b(we,Se)};Fe(de,we=>{d(S)!==null&&we(ce)})}st(Z,we=>R(P,we),()=>d(P));var C=A(Z,2);It(C,21,()=>d(k),Xt,(we,Se)=>{var q=tS(),re=B(q);Oe(()=>Pe(re,d(Se))),b(we,q)}),Oe(()=>{Ct(Z,"viewBox",`0 0 ${o} ${d(s)}`),Zo(Z,`height:${d(s)}px`)}),ui("mousemove",Z,T),Cv("mouseleave",Z,()=>R(S,null)),b(L,U)},G=L=>{var U=nS();Oe(()=>Zo(U,`height:${d(s)}px`)),b(L,U)};Fe(x,L=>{d(O)?L(D):L(G,-1)})}var K=A(x,2);It(K,21,()=>e.series,Xt,(L,U)=>{var Z=sS(),z=B(Z),F=A(z),fe=A(F);{var de=ce=>{var C=oS(),we=B(C);Oe(Se=>Pe(we,Se),[()=>n()(d(U).values[d(S)]??0)]),b(ce,C)};Fe(fe,ce=>{d(S)!==null&&ce(de)})}Oe(()=>{Zo(z,`background:${d(U).color}`),Pe(F,` ${d(U).name??""} `)}),b(L,Z)}),b(t,N),Ie()}fd(["mousemove"]);var ct=le(" ",1),In=le('
',1),aS=le('

自启动以来

'),lS=le('

全部上游查询

'),cS=le('

'),Za=le('

近 60 秒均值

'),jc=le('
'),uS=le('
HTTP
HTTPS
SOCKS5

',1),dS=le('
Block
Direct
Proxy

',1),fS=le('
Goroutines
堆内存
',1),hS=le('

',1);function vS(t,e){$e(e,!0);const r=W(()=>Lt.traffic),n=W(()=>Lt.history),o=p=>new Date(p).toTimeString().slice(0,5),s=W(()=>d(n).map(p=>o(p.at)));function i(p){return d(n).map((m,y)=>{if(y===0)return 0;const w=d(n)[y-1];if(!w)return 0;const k=(new Date(m.at).getTime()-new Date(w.at).getTime())/1e3;return k>0?m[p]/k:0})}const a=p=>`${dr(p)}/s`,c=p=>`${p.toFixed(1)}/s`,u=W(()=>{const p=d(n)[0],m=d(n)[d(n).length-1];return p&&m?`${o(p.at)} – ${o(m.at)} · 进程内历史,重启后清空`:"进程内历史,重启后清空"});var f=te(),v=E(f);{var h=p=>{jd(p,{})},g=p=>{var m=hS(),y=E(m);{var w=q=>{var re=te(),H=E(re);I(H,()=>kd,(ne,X)=>{X(ne,{variant:"destructive",class:"mb-4",children:(ie,J)=>{var Q=ct(),se=E(Q);Wd(se,{class:"size-4"});var ee=A(se,2);I(ee,()=>pd,(Te,V)=>{V(Te,{children:(Y,he)=>{var ve=Ce("实时连接已断开,正在重连…");b(Y,ve)},$$slots:{default:!0}})}),b(ie,Q)},$$slots:{default:!0}})}),b(q,re)};Fe(y,q=>{Lt.connected||q(w)})}var k=A(y,2),O=B(k);I(O,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("版本");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);zk(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl",children:(ue,Le)=>{var pe=Ce();Oe(()=>Pe(pe,e.status.version||"-")),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{Sc(ee,{variant:"secondary",children:(V,Y)=>{var he=Ce();Oe(()=>Pe(he,e.status.date||"unknown build date")),b(V,he)},$$slots:{default:!0}})},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var S=A(O,2);I(S,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("运行时长");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);Ek(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,De),[()=>Gk(d(r).uptime)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=aS();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var P=A(S,2);I(P,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("DNS 查询");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);yh(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,De),[()=>Qe(d(r).dnsQueries)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=lS();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var T=A(P,2);I(T,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("代理流量");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);Pk(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,De),[()=>dr(d(r).bytesUp+d(r).bytesDown)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=cS(),Y=B(V);Oe((he,ve)=>Pe(Y,`↑ ${he??""} / ↓ ${ve??""}`),[()=>dr(d(r).bytesUp),()=>dr(d(r).bytesDown)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var N=A(k,2),x=B(N);I(x,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("上行速率");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);Ak(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,`${De??""}/s`),[()=>dr(d(r).rates.bytesUpPerSec)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=Za();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var D=A(x,2);I(D,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("下行速率");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);Ck(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,`${De??""}/s`),[()=>dr(d(r).rates.bytesDownPerSec)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=Za();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var G=A(D,2);I(G,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("DNS 速率");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);yh(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,`${De??""}/s`),[()=>d(r).rates.dnsPerSec.toFixed(1)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=Za();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var K=A(G,2);I(K,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=In(),Y=E(V),he=B(Y);I(he,()=>Tt,(oe,me)=>{me(oe,{children:(ue,Le)=>{var pe=Ce("连接速率");b(ue,pe)},$$slots:{default:!0}})});var ve=A(he,2);Mk(ve,{class:"size-4 text-muted-foreground"});var ke=A(Y,2);I(ke,()=>Qt,(oe,me)=>{me(oe,{class:"text-xl tabular-nums",children:(ue,Le)=>{var pe=Ce();Oe(De=>Pe(pe,`${De??""}/s`),[()=>d(r).rates.connsPerSec.toFixed(1)]),b(ue,pe)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=Za();b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var L=A(N,2),U=B(L);I(U,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=jc(),Y=B(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("活跃连接");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);Nk(he,{class:"size-4 text-muted-foreground"}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{class:"space-y-2",children:(ee,Te)=>{var V=uS(),Y=E(V),he=A(B(Y),2),ve=B(he),ke=A(Y,2),oe=A(B(ke),2),me=B(oe),ue=A(ke,2),Le=A(B(ue),2),pe=B(Le),De=A(ue,2),nt=B(De);Oe((vt,it,gt)=>{Pe(ve,d(r).active.http),Pe(me,d(r).active.https),Pe(pe,d(r).active.socks5),Pe(nt,`累计 ${vt??""} / ${it??""} / ${gt??""}`)},[()=>Qe(d(r).conns.http),()=>Qe(d(r).conns.https),()=>Qe(d(r).conns.socks5)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var Z=A(U,2);I(Z,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=jc(),Y=B(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("规则命中");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);Rk(he,{class:"size-4 text-muted-foreground"}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{class:"space-y-2",children:(ee,Te)=>{var V=dS(),Y=E(V),he=A(B(Y),2),ve=B(he),ke=A(Y,2),oe=A(B(ke),2),me=B(oe),ue=A(ke,2),Le=A(B(ue),2),pe=B(Le),De=A(ue,2),nt=B(De);Oe((vt,it,gt,at,Et,tt)=>{Pe(ve,vt),Pe(me,it),Pe(pe,gt),Pe(nt,`已配置 ${at??""} / ${Et??""} / ${tt??""} 条`)},[()=>Qe(d(r).ruleHits.block),()=>Qe(d(r).ruleHits.direct),()=>Qe(d(r).ruleHits.proxy),()=>Qe(e.status.rules.block),()=>Qe(e.status.rules.direct),()=>Qe(e.status.rules.proxy)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var z=A(Z,2);I(z,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=jc(),Y=B(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("系统");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);Nn(he,{class:"size-4 text-muted-foreground"}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{class:"space-y-2",children:(ee,Te)=>{var V=fS(),Y=E(V),he=A(B(Y),2),ve=B(he),ke=A(Y,2),oe=A(B(ke),2),me=B(oe);Oe((ue,Le)=>{Pe(ve,ue),Pe(me,Le)},[()=>Qe(d(r).system.goroutines),()=>dr(d(r).system.heapAlloc)]),b(ee,V)},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var F=A(L,2),fe=B(F);I(fe,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=ct(),Y=E(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("流量历史");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);I(he,()=>Qt,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Ce("上下行速率");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{{let V=W(()=>[{name:"下行",color:"var(--chart-1)",values:i("bytesDown")},{name:"上行",color:"var(--chart-4)",values:i("bytesUp")}]);Xa(ee,{get series(){return d(V)},get labels(){return d(s)},format:a})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var de=A(fe,2);I(de,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=ct(),Y=E(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("DNS 与连接");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);I(he,()=>Qt,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Ce("每秒查询 / 新建连接");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{{let V=W(()=>[{name:"DNS",color:"var(--chart-2)",values:i("dns")},{name:"连接",color:"var(--chart-3)",values:i("conns")}]);Xa(ee,{get series(){return d(V)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var ce=A(de,2);I(ce,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=ct(),Y=E(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("活跃连接");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);I(he,()=>Qt,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Ce("分协议在线数");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{{let V=W(()=>[{name:"HTTP",color:"var(--chart-1)",values:d(n).map(Y=>Y.activeHttp)},{name:"HTTPS",color:"var(--chart-4)",values:d(n).map(Y=>Y.activeHttps)},{name:"SOCKS5",color:"var(--chart-3)",values:d(n).map(Y=>Y.activeSocks)}]);Xa(ee,{get series(){return d(V)},get labels(){return d(s)},get format(){return Qe}})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var C=A(ce,2);I(C,()=>wt,(q,re)=>{re(q,{children:(H,ne)=>{var X=ct(),ie=E(X);I(ie,()=>Ot,(Q,se)=>{se(Q,{children:(ee,Te)=>{var V=ct(),Y=E(V);I(Y,()=>Tt,(ve,ke)=>{ke(ve,{children:(oe,me)=>{var ue=Ce("规则命中");b(oe,ue)},$$slots:{default:!0}})});var he=A(Y,2);I(he,()=>Qt,(ve,ke)=>{ke(ve,{class:"text-base",children:(oe,me)=>{var ue=Ce("每秒路由决策");b(oe,ue)},$$slots:{default:!0}})}),b(ee,V)},$$slots:{default:!0}})});var J=A(ie,2);I(J,()=>kt,(Q,se)=>{se(Q,{children:(ee,Te)=>{{let V=W(()=>[{name:"Proxy",color:"var(--chart-1)",values:i("proxy")},{name:"Direct",color:"var(--chart-2)",values:i("direct")},{name:"Block",color:"var(--chart-5)",values:i("block")}]);Xa(ee,{get series(){return d(V)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),b(H,X)},$$slots:{default:!0}})});var we=A(F,2),Se=B(we);Oe(()=>Pe(Se,d(u))),b(p,m)};Fe(v,p=>{!e.status||!d(r)?p(h):p(g,-1)})}b(t,f),Ie()}var gS=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),pS=le("");function mS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"value",15),o=M(e,"data-slot",3,"textarea"),s=Ge(e,gS);var i=pS();Ke(i,a=>({"data-slot":o(),class:a,...s}),[()=>He("rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e.class)]),st(i,a=>r(a),()=>r()),vu(i,n),b(t,i),Ie()}var bS=le(" ",1),yS=le('
',1),wS=le('

'),xS=le('
'),_S=le('
',1),kS=le(" ",1);function SS(t,e){$e(e,!0);const r=200;let n=Ae(null),o=Ae(0),s=Ae(0),i=Ae(""),a=Ae(""),c=Ae(""),u=Ae(!1),f=Ae(!1),v=0,h;function g(K,L){return K===v&&L===e.category}async function p(K){const L=++v,U=e.category,Z=d(a);K||R(f,!0);try{const z=await es.rules(U,{q:Z,offset:K?0:d(s),limit:r});if(!g(L,U))return;R(n,K?z.rules:[...d(n)??[],...z.rules],!0),R(o,z.total,!0),R(s,z.offset+z.rules.length),R(c,"")}catch(z){if(!g(L,U))return;if(z instanceof ni&&z.status===401){e.onUnauthorized();return}R(c,z instanceof Error?z.message:"load failed",!0)}finally{g(L,U)&&R(f,!1)}}async function m(){var Z;const K=++v,L=e.category,U=Math.max(((Z=d(n))==null?void 0:Z.length)??r,r);try{const z=await es.rules(L,{q:d(a),offset:0,limit:U});if(!g(K,L))return;R(n,z.rules,!0),R(o,z.total,!0),R(s,z.offset+z.rules.length),R(c,"")}catch(z){if(!g(K,L))return;if(z instanceof ni&&z.status===401){e.onUnauthorized();return}R(c,z instanceof Error?z.message:"refresh failed",!0)}}async function y(){const K=d(i).split(` +`).map(Z=>Z.trim()).filter(Z=>Z.length>0);if(K.length===0||d(u))return;const L=++v,U=e.category;R(u,!0),R(c,"");try{if(await es.addRules(U,K),!g(L,U))return;R(i,""),await m()}catch(Z){if(!g(L,U))return;if(Z instanceof ni&&Z.status===401){e.onUnauthorized();return}R(c,Z instanceof Error?Z.message:"add failed",!0)}finally{g(L,U)&&R(u,!1)}}async function w(K){if(d(u))return;const L=++v,U=e.category;R(u,!0),R(c,"");try{if(await es.removeRules(U,[K]),!g(L,U))return;await m()}catch(Z){if(!g(L,U))return;if(Z instanceof ni&&Z.status===401){e.onUnauthorized();return}R(c,Z instanceof Error?Z.message:"remove failed",!0)}finally{g(L,U)&&R(u,!1)}}ot(()=>{e.category,clearTimeout(h),R(n,null),R(o,0),R(s,0),R(a,""),R(c,""),R(u,!1),p(!0)});function k(K){R(a,K.currentTarget.value,!0),clearTimeout(h),h=setTimeout(()=>{R(s,0),p(!0)},300)}var O=kS(),S=E(O);{var P=K=>{var L=te(),U=E(L);I(U,()=>kd,(Z,z)=>{z(Z,{variant:"destructive",class:"mb-4",children:(F,fe)=>{var de=bS(),ce=E(de);Wd(ce,{class:"size-4"});var C=A(ce,2);I(C,()=>pd,(we,Se)=>{Se(we,{children:(q,re)=>{var H=Ce();Oe(()=>Pe(H,d(c))),b(q,H)},$$slots:{default:!0}})}),b(F,de)},$$slots:{default:!0}})}),b(K,L)};Fe(S,K=>{d(c)&&K(P)})}var T=A(S,2);I(T,()=>wt,(K,L)=>{L(K,{class:"mb-4",children:(U,Z)=>{var z=te(),F=E(z);I(F,()=>kt,(fe,de)=>{de(fe,{class:"grid gap-3 pt-6",children:(ce,C)=>{var we=yS(),Se=E(we);mS(Se,{rows:3,placeholder:`One rule per line, e.g. example.com or **.cn +Rules take effect immediately and reset on restart.`,get value(){return d(i)},set value(ne){R(i,ne,!0)}});var q=A(Se,2),re=B(q);{let ne=W(()=>d(u)||!d(i).trim());wn(re,{onclick:y,get disabled(){return d(ne)},children:(X,ie)=>{var J=Ce("Add rules");b(X,J)},$$slots:{default:!0}})}var H=A(re,2);wn(H,{variant:"outline",onclick:()=>p(!0),get disabled(){return d(u)},children:(ne,X)=>{var ie=Ce("Refresh");b(ne,ie)},$$slots:{default:!0}}),b(ce,we)},$$slots:{default:!0}})}),b(U,z)},$$slots:{default:!0}})});var N=A(T,2);{var x=K=>{jd(K,{})},D=K=>{var L=wS(),U=B(L);$k(U,{class:"size-5","aria-hidden":"true"});var Z=A(U,2),z=B(Z);Oe(F=>Pe(z,F),[()=>d(a).trim()?`没有匹配“${d(a).trim()}”的规则。`:"该分类暂无规则。"]),b(K,L)},G=K=>{var L=_S(),U=E(L),Z=B(U),z=B(Z);Mp(z,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var F=A(z,2);Sd(F,{get value(){return d(a)},oninput:k,placeholder:"搜索规则…","aria-label":"搜索规则",class:"pl-8"});var fe=A(Z,2);Sc(fe,{variant:"secondary",class:"ml-auto shrink-0",children:(we,Se)=>{var q=te(),re=E(q);{var H=X=>{var ie=Ce();Oe(J=>Pe(ie,`${J??""} rules`),[()=>Qe(d(o))]),b(X,ie)},ne=X=>{var ie=Ce();Oe((J,Q)=>Pe(ie,`${J??""} / ${Q??""} rules`),[()=>Qe(d(n).length),()=>Qe(d(o))]),b(X,ie)};Fe(re,X=>{d(n).length===d(o)?X(H):X(ne,-1)})}b(we,q)},$$slots:{default:!0}});var de=A(U,2);I(de,()=>wt,(we,Se)=>{Se(we,{children:(q,re)=>{var H=te(),ne=E(H);I(ne,()=>kt,(X,ie)=>{ie(X,{class:"divide-y p-0",children:(J,Q)=>{var se=te(),ee=E(se);It(ee,16,()=>d(n),Te=>Te,(Te,V)=>{var Y=xS(),he=B(Y),ve=B(he),ke=A(he,2);wn(ke,{variant:"ghost",size:"sm",class:"shrink-0 text-destructive hover:bg-destructive/10 hover:text-destructive",onclick:()=>w(V),get disabled(){return d(u)},children:(oe,me)=>{var ue=Ce("Remove");b(oe,ue)},$$slots:{default:!0}}),Oe(()=>Pe(ve,V)),b(Te,Y)}),b(J,se)},$$slots:{default:!0}})}),b(q,H)},$$slots:{default:!0}})});var ce=A(de,2);{var C=we=>{{let Se=W(()=>d(f)||d(u));wn(we,{variant:"outline",class:"mt-3 w-full",onclick:()=>p(!1),get disabled(){return d(Se)},children:(q,re)=>{var H=Ce();Oe(ne=>Pe(H,ne),[()=>d(f)?"加载中…":`加载更多(已加载 ${Qe(d(n).length)} / ${Qe(d(o))})`]),b(q,H)},$$slots:{default:!0}})}};Fe(ce,we=>{d(n).length{d(n)===null?K(x):d(o)===0?K(D,1):K(G,-1)})}b(t,O),Ie()}var PS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),CS=le("");function AS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,PS);var o=CS();Ke(o,i=>({"data-slot":"table-body",class:i,...n}),[()=>He("[&_tr:last-child]:border-0",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var ES=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),TS=le("");function uo(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,ES);var o=TS();Ke(o,i=>({"data-slot":"table-cell",class:i,...n}),[()=>He("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var OS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),MS=le("");function qo(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,OS);var o=MS();Ke(o,i=>({"data-slot":"table-head",class:i,...n}),[()=>He("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var $S=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),IS=le("");function NS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,$S);var o=IS();Ke(o,i=>({"data-slot":"table-header",class:i,...n}),[()=>He("[&_tr]:border-b",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var zS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),RS=le("");function Gc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,zS);var o=RS();Ke(o,i=>({"data-slot":"table-row",class:i,...n}),[()=>He("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var FS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),LS=le('
');function DS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,FS);var o=LS(),s=B(o);Ke(s,a=>({"data-slot":"table",class:a,...n}),[()=>He("w-full caption-bottom text-sm",e.class)]);var i=B(s);Re(i,()=>e.children??Ne),st(s,a=>r(a),()=>r()),b(t,o),Ie()}var BS=le('

实时连接已断开,正在自动重连…

'),VS=le(''),WS=le(''),jS=le('
'),GS=le('

'),_h=le(" ",1),kh=le(" ",1),Sh=le(" ",1),HS=le('

',1);function KS(t,e){$e(e,!0);let r=M(e,"source",3,"all");const n=[{value:"bytes",label:"流量"},{value:"recent",label:"最近"},{value:"conns",label:"连接数"}],o=W(()=>Lt.traffic);let s=Ae(""),i=Ae("bytes"),a=Ae("");const c=W(()=>{var k;return((k=n.find(O=>O.value===d(i)))==null?void 0:k.label)??"流量"}),u={all:"流量",http:"HTTP",https:"HTTPS",socks5:"SOCKS5",dns:"DNS"},f=W(()=>u[r()]),v=W(()=>r()==="dns"),h=W(()=>{var S;const k=((S=d(o))==null?void 0:S.domains)??[],O=d(s).trim().toLowerCase();return O?k.filter(P=>P.domain.toLowerCase().includes(O)):k});ot(()=>{const k=new URLSearchParams;d(i)!=="bytes"&&k.set("sort",d(i)),r()!=="all"&&k.set("source",r()),d(a)&&k.set("client",d(a)),$p(k.toString())});const g="sticky top-0 z-10 bg-card";var p=te(),m=E(p);{var y=k=>{jd(k,{})},w=k=>{var O=HS(),S=E(O);{var P=ce=>{var C=BS();b(ce,C)};Fe(S,ce=>{Lt.connected||ce(P)})}var T=A(S,2),N=B(T),x=B(N);Mp(x,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var D=A(x,2);Sd(D,{placeholder:"过滤域名…","aria-label":"过滤域名",class:"pl-8",get value(){return d(s)},set value(ce){R(s,ce,!0)}});var G=A(N,2);It(G,21,()=>n,Xt,(ce,C)=>{var we=VS(),Se=B(we);Oe(()=>{ns(we,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(i)===d(C).value?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),Ct(we,"aria-pressed",d(i)===d(C).value),Pe(Se,d(C).label)}),ui("click",we,()=>R(i,d(C).value,!0)),b(ce,we)});var K=A(G,2);Sc(K,{variant:"secondary",class:"ml-auto shrink-0",children:(ce,C)=>{var we=te(),Se=E(we);{var q=H=>{var ne=Ce();Oe(X=>Pe(ne,`${X??""} domains`),[()=>Qe(d(h).length)]),b(H,ne)},re=H=>{var ne=Ce();Oe((X,ie)=>Pe(ne,`${X??""} / ${ie??""} domains`),[()=>Qe(d(h).length),()=>Qe((d(o).domains??[]).length)]),b(H,ne)};Fe(Se,H=>{d(h).length===(d(o).domains??[]).length?H(q):H(re,-1)})}b(ce,we)},$$slots:{default:!0}});var L=A(T,2);{var U=ce=>{var C=jS(),we=B(C),Se=A(we,2);It(Se,17,()=>d(o).clients,Xt,(q,re)=>{var H=WS(),ne=B(H),X=A(ne),ie=B(X);Oe((J,Q)=>{ns(H,1,`rounded-full border px-3 py-1 font-mono text-xs transition-colors ${d(a)===d(re).ip?"border-primary/40 bg-primary/10 text-foreground":"text-muted-foreground hover:text-foreground"}`),Ct(H,"aria-pressed",d(a)===d(re).ip),Ct(H,"title",J),Pe(ne,`${d(re).ip??""} `),Pe(ie,Q)},[()=>`${Qe(d(re).conns)} 次 · ↑${dr(d(re).bytesUp)} ↓${dr(d(re).bytesDown)}`,()=>Qe(d(re).conns)]),ui("click",H,()=>R(a,d(re).ip,!0)),b(q,H)}),Oe(()=>{ns(we,1,`rounded-full border px-3 py-1 text-xs font-medium transition-colors ${d(a)?"text-muted-foreground hover:text-foreground":"border-primary/40 bg-primary/10 text-foreground"}`),Ct(we,"aria-pressed",!d(a))}),ui("click",we,()=>R(a,"")),b(ce,C)};Fe(L,ce=>{(d(o).clients??[]).length>0&&ce(U)})}var Z=A(L,2);{var z=ce=>{var C=GS(),we=B(C);Tk(we,{class:"size-5","aria-hidden":"true"});var Se=A(we,2),q=B(Se);Oe(()=>Pe(q,`暂无${d(f)??""}记录。`)),b(ce,C)},F=ce=>{var C=te(),we=E(C);I(we,()=>wt,(Se,q)=>{q(Se,{class:"max-h-[70vh] overflow-auto",children:(re,H)=>{var ne=te(),X=E(ne);I(X,()=>DS,(ie,J)=>{J(ie,{children:(Q,se)=>{var ee=Sh(),Te=E(ee);I(Te,()=>NS,(Y,he)=>{he(Y,{children:(ve,ke)=>{var oe=te(),me=E(oe);I(me,()=>Gc,(ue,Le)=>{Le(ue,{children:(pe,De)=>{var nt=kh(),vt=E(nt);I(vt,()=>qo,(tt,pt)=>{pt(tt,{class:g,children:(mt,lt)=>{var Bt=Ce("Domain");b(mt,Bt)},$$slots:{default:!0}})});var it=A(vt,2);I(it,()=>qo,(tt,pt)=>{pt(tt,{class:g+" text-right",children:(mt,lt)=>{var Bt=Ce("Requests");b(mt,Bt)},$$slots:{default:!0}})});var gt=A(it,2);{var at=tt=>{var pt=_h(),mt=E(pt);I(mt,()=>qo,(Tr,_t)=>{_t(Tr,{class:g+" text-right",children:(Vt,wr)=>{var xr=Ce("Up");b(Vt,xr)},$$slots:{default:!0}})});var lt=A(mt,2);I(lt,()=>qo,(Tr,_t)=>{_t(Tr,{class:g+" text-right",children:(Vt,wr)=>{var xr=Ce("Down");b(Vt,xr)},$$slots:{default:!0}})});var Bt=A(lt,2);I(Bt,()=>qo,(Tr,_t)=>{_t(Tr,{class:g+" text-right",children:(Vt,wr)=>{var xr=Ce("Total");b(Vt,xr)},$$slots:{default:!0}})}),b(tt,pt)};Fe(gt,tt=>{d(v)||tt(at)})}var Et=A(gt,2);I(Et,()=>qo,(tt,pt)=>{pt(tt,{class:g+" text-right",children:(mt,lt)=>{var Bt=Ce("Last seen");b(mt,Bt)},$$slots:{default:!0}})}),b(pe,nt)},$$slots:{default:!0}})}),b(ve,oe)},$$slots:{default:!0}})});var V=A(Te,2);I(V,()=>AS,(Y,he)=>{he(Y,{children:(ve,ke)=>{var oe=Sh(),me=E(oe);{var ue=pe=>{var De=te(),nt=E(De);I(nt,()=>Gc,(vt,it)=>{it(vt,{children:(gt,at)=>{var Et=te(),tt=E(Et);{let pt=W(()=>d(v)?3:6);I(tt,()=>uo,(mt,lt)=>{lt(mt,{get colspan(){return d(pt)},class:"py-8 text-center text-sm text-muted-foreground",children:(Bt,Tr)=>{var _t=Ce();Oe(()=>Pe(_t,`没有匹配“${d(s)??""}”的域名。`)),b(Bt,_t)},$$slots:{default:!0}})})}b(gt,Et)},$$slots:{default:!0}})}),b(pe,De)};Fe(me,pe=>{d(h).length===0&&pe(ue)})}var Le=A(me,2);It(Le,17,()=>d(h),pe=>pe.domain,(pe,De)=>{var nt=te(),vt=E(nt);I(vt,()=>Gc,(it,gt)=>{gt(it,{children:(at,Et)=>{var tt=kh(),pt=E(tt);I(pt,()=>uo,(_t,Vt)=>{Vt(_t,{class:"max-w-[20rem] truncate font-mono text-xs",children:(wr,xr)=>{var Or=Ce();Oe(()=>Pe(Or,d(De).domain)),b(wr,Or)},$$slots:{default:!0}})});var mt=A(pt,2);I(mt,()=>uo,(_t,Vt)=>{Vt(_t,{class:"text-right tabular-nums",children:(wr,xr)=>{var Or=Ce();Oe(Jr=>Pe(Or,Jr),[()=>Qe(d(De).conns)]),b(wr,Or)},$$slots:{default:!0}})});var lt=A(mt,2);{var Bt=_t=>{var Vt=_h(),wr=E(Vt);I(wr,()=>uo,(Jr,Vs)=>{Vs(Jr,{class:"text-right tabular-nums",children:(Ws,rf)=>{var En=Ce();Oe(js=>Pe(En,js),[()=>dr(d(De).bytesUp)]),b(Ws,En)},$$slots:{default:!0}})});var xr=A(wr,2);I(xr,()=>uo,(Jr,Vs)=>{Vs(Jr,{class:"text-right tabular-nums",children:(Ws,rf)=>{var En=Ce();Oe(js=>Pe(En,js),[()=>dr(d(De).bytesDown)]),b(Ws,En)},$$slots:{default:!0}})});var Or=A(xr,2);I(Or,()=>uo,(Jr,Vs)=>{Vs(Jr,{class:"text-right font-medium tabular-nums",children:(Ws,rf)=>{var En=Ce();Oe(js=>Pe(En,js),[()=>dr(d(De).bytesUp+d(De).bytesDown)]),b(Ws,En)},$$slots:{default:!0}})}),b(_t,Vt)};Fe(lt,_t=>{d(v)||_t(Bt)})}var Tr=A(lt,2);I(Tr,()=>uo,(_t,Vt)=>{Vt(_t,{class:"text-right text-muted-foreground tabular-nums",children:(wr,xr)=>{var Or=Ce();Oe(Jr=>Pe(Or,Jr),[()=>Hk(d(De).lastSeen)]),b(wr,Or)},$$slots:{default:!0}})}),b(at,tt)},$$slots:{default:!0}})}),b(pe,nt)}),b(ve,oe)},$$slots:{default:!0}})}),b(Q,ee)},$$slots:{default:!0}})}),b(re,ne)},$$slots:{default:!0}})}),b(ce,C)};Fe(Z,ce=>{(d(o).domains??[]).length===0?ce(z):ce(F,-1)})}var fe=A(Z,2),de=B(fe);Oe(()=>Pe(de,`按${d(c)??""}排序的前 100 个${d(v)?"DNS 查询域名":d(f)+"域名"},实时推送。`)),b(k,O)};Fe(m,k=>{d(o)?k(w,-1):k(y)})}b(t,p),Ie()}fd(["click"]);var US=new Set(["$$slots","$$events","$$legacy"]);function qS(t,e){let r=Ge(e,US);var n=te(),o=E(n);I(o,()=>G_,(s,i)=>{i(s,je(()=>r))}),b(t,n)}var YS=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function Hc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"sideOffset",3,4),o=M(e,"align",3,"start"),s=Ge(e,YS);qS(t,je(()=>e.portalProps,{children:(i,a)=>{var c=te(),u=E(c);{let f=W(()=>He("min-w-32 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 z-50 w-(--bits-dropdown-menu-anchor-width) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",e.class));I(u,()=>lk,(v,h)=>{h(v,je({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return o()},get class(){return d(f)}},()=>s,{get ref(){return r()},set ref(g){r(g)}}))})}b(i,c)},$$slots:{default:!0}})),Ie()}var XS=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function Ja(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,XS);var s=te(),i=E(s);{let a=W(()=>He("gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e.class));I(i,()=>rk,(c,u)=>{u(c,je({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return d(a)}},()=>o,{get ref(){return r()},set ref(f){r(f)}}))})}b(t,s),Ie()}var ZS=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),JS=le("
");function Ph(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,ZS);var o=JS();Ke(o,i=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:i,...n}),[()=>He("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7 data-[inset]:pl-8",e.class)]);var s=B(o);Re(s,()=>e.children??Ne),st(o,i=>r(i),()=>r()),b(t,o),Ie()}var QS=new Set(["$$slots","$$events","$$legacy","ref","class"]);function eP(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,QS);var o=te(),s=E(o);{let i=W(()=>He("-mx-1 my-1 h-px bg-border",e.class));I(s,()=>sk,(a,c)=>{c(a,je({"data-slot":"dropdown-menu-separator",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}var tP=new Set(["$$slots","$$events","$$legacy","ref"]);function Kc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,tP);var o=te(),s=E(o);I(s,()=>dk,(i,a)=>{a(i,je({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),b(t,o),Ie()}var rP=new Set(["$$slots","$$events","$$legacy","open"]);function Uc(t,e){$e(e,!0);let r=M(e,"open",15,!1),n=Ge(e,rP);var o=te(),s=E(o);I(s,()=>ik,(i,a)=>{a(i,je(()=>n,{get open(){return r()},set open(c){r(c)}}))}),b(t,o),Ie()}const ts=[{key:"overview",label:"概览",description:"运行状态与流量总览"},{key:"rules",label:"规则",description:"运行期路由规则管理"},{key:"traffic",label:"流量",description:"按域名聚合的实时流量"}];var nP=le(' Sower Admin',1),oP=le(' ',1),sP=le(' ',1),qc=le(" ",1),iP=le(' ',1),aP=le(' '),lP=le(' ',1),cP=le(' '),uP=le('
  • /
  • ',1),dP=le(' ',1),fP=le(''),hP=le(' ',1),vP=le(' ',1),gP=le('
    '),pP=le('

    暂无收藏。点击下方星标加入常用入口。

    '),mP=le(' ',1),bP=le("
    "),yP=le('
    ',1),wP=le('
    ');function xP(t,e){$e(e,!0);let r=M(e,"contextSegments",19,()=>[]),n=M(e,"onContextSelect",3,()=>{}),o=M(e,"onSelectItem",3,()=>{}),s=M(e,"onLogout",3,()=>{}),i=M(e,"status",3,null),a=M(e,"statusError",3,"");const c={overview:Nn,rules:Fk,traffic:Sk};let u=Ae(Zt([])),f=W(()=>new Set(d(u))),v=W(()=>d(u).map(z=>ts.find(F=>F.key===z)).filter(z=>!!z));const h="sower.admin.favoritePages.v1";hd(()=>{R(u,g(),!0);const z=F=>{F.key===h&&R(u,g(),!0)};return window.addEventListener("storage",z),()=>window.removeEventListener("storage",z)});function g(){const z=new Set(ts.map(F=>F.key));try{const F=JSON.parse(localStorage.getItem(h)??"[]");return(Array.isArray(F)?F:[]).filter(fe=>z.has(fe))}catch{return[]}}function p(z){R(u,z.filter((F,fe)=>z.indexOf(F)===fe),!0);try{localStorage.setItem(h,JSON.stringify(d(u)))}catch{}}function m(z,F){if(z.preventDefault(),z.stopPropagation(),d(f).has(F)){p(d(u).filter(fe=>fe!==F));return}p([...d(u),F])}function y(z){switch(z.tone){case"strong":return"text-foreground font-semibold";case"method":return"text-primary font-mono";default:return"text-muted-foreground font-medium"}}var w=wP(),k=B(w),O=B(k),S=B(O),P=B(S);wn(P,{variant:"ghost",class:"h-9 gap-1.5 px-2 text-foreground",onclick:()=>o()("overview"),title:"回到概览",children:(z,F)=>{var fe=nP(),de=E(fe);Nn(de,{class:"size-4 text-primary"}),b(z,fe)},$$slots:{default:!0}});var T=A(S,4),N=B(T);I(N,()=>Uc,(z,F)=>{F(z,{children:(fe,de)=>{const ce=W(()=>c[e.activeItem.key]??Nn);var C=qc(),we=E(C);I(we,()=>Kc,(q,re)=>{re(q,{class:"inline-flex h-9 max-w-[14rem] items-center gap-1.5 rounded-md px-2 text-sm font-semibold text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"控制台分区",children:(H,ne)=>{var X=oP(),ie=E(X);I(ie,()=>d(ce),(ee,Te)=>{Te(ee,{class:"size-4 shrink-0 text-primary"})});var J=A(ie,2),Q=B(J),se=A(J,2);Vc(se,{class:"size-3.5 shrink-0 text-muted-foreground"}),Oe(()=>Pe(Q,e.activeItem.label)),b(H,X)},$$slots:{default:!0}})});var Se=A(we,2);I(Se,()=>Hc,(q,re)=>{re(q,{class:"min-w-56",align:"start",children:(H,ne)=>{var X=te(),ie=E(X);It(ie,17,()=>ts,Xt,(J,Q)=>{const se=W(()=>c[d(Q).key]??Nn);var ee=te(),Te=E(ee);{let V=W(()=>He("gap-2.5 py-2",d(Q).key===e.activeItem.key&&"bg-accent text-accent-foreground"));I(Te,()=>Ja,(Y,he)=>{he(Y,{onSelect:()=>o()(d(Q).key),get class(){return d(V)},children:(ve,ke)=>{var oe=sP(),me=E(oe),ue=B(me);I(ue,()=>d(se),(at,Et)=>{Et(at,{class:"size-4"})});var Le=A(me,2),pe=B(Le),De=B(pe),nt=A(pe,2),vt=B(nt),it=A(Le,2);{var gt=at=>{bh(at,{class:"ms-auto size-4 text-primary"})};Fe(it,at=>{d(Q).key===e.activeItem.key&&at(gt)})}Oe(()=>{Pe(De,d(Q).label),Pe(vt,d(Q).description)}),b(ve,oe)},$$slots:{default:!0}})})}b(J,ee)}),b(H,X)},$$slots:{default:!0}})}),b(fe,C)},$$slots:{default:!0}})});var x=A(T,2);It(x,17,r,Xt,(z,F)=>{var fe=uP(),de=A(E(fe),2),ce=B(de);{var C=Se=>{var q=te(),re=E(q);I(re,()=>Uc,(H,ne)=>{ne(H,{children:(X,ie)=>{var J=qc(),Q=E(J);{let ee=W(()=>He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 rounded-md px-2 text-sm transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted",y(d(F)))),Te=W(()=>d(F).title??`${d(F).label}: ${d(F).value}`),V=W(()=>`${d(F).label}: ${d(F).value}`);I(Q,()=>Kc,(Y,he)=>{he(Y,{get class(){return d(ee)},get title(){return d(Te)},get"aria-label"(){return d(V)},children:(ve,ke)=>{var oe=iP(),me=E(oe),ue=B(me),Le=A(me,2),pe=B(Le),De=A(Le,2);Vc(De,{class:"size-3.5 shrink-0 text-muted-foreground"}),Oe(()=>{Pe(ue,d(F).label),Pe(pe,d(F).value)}),b(ve,oe)},$$slots:{default:!0}})})}var se=A(Q,2);I(se,()=>Hc,(ee,Te)=>{Te(ee,{class:"min-w-44",align:"start",children:(V,Y)=>{var he=te(),ve=E(he);It(ve,17,()=>d(F).options,Xt,(ke,oe)=>{var me=te(),ue=E(me);{let Le=W(()=>He("gap-2",d(oe).active&&"bg-accent text-accent-foreground"));I(ue,()=>Ja,(pe,De)=>{De(pe,{onSelect:()=>n()(d(F).label,d(oe).value),get class(){return d(Le)},children:(nt,vt)=>{var it=lP(),gt=E(it),at=B(gt),Et=A(gt,2);{var tt=lt=>{var Bt=aP(),Tr=B(Bt);Oe(()=>Pe(Tr,d(oe).description)),b(lt,Bt)};Fe(Et,lt=>{d(oe).description&<(tt)})}var pt=A(Et,2);{var mt=lt=>{bh(lt,{class:"ms-auto size-4 text-primary"})};Fe(pt,lt=>{d(oe).active&<(mt)})}Oe(()=>Pe(at,d(oe).label)),b(nt,it)},$$slots:{default:!0}})})}b(ke,me)}),b(V,he)},$$slots:{default:!0}})}),b(X,J)},$$slots:{default:!0}})}),b(Se,q)},we=Se=>{var q=cP(),re=B(q),H=B(re),ne=A(re,2),X=B(ne);Oe(ie=>{ns(q,1,ie),Ct(q,"title",d(F).title??`${d(F).label}: ${d(F).value}`),Pe(H,d(F).label),Pe(X,d(F).value)},[()=>fu(He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 px-2",y(d(F))))]),b(Se,q)};Fe(ce,Se=>{var q;(q=d(F).options)!=null&&q.length?Se(C):Se(we,-1)})}b(z,fe)});var D=A(k,2),G=B(D);{var K=z=>{var F=fP();It(F,21,()=>d(v).slice(0,4),Xt,(fe,de)=>{const ce=W(()=>c[d(de).key]??Nn);{let C=W(()=>He("gap-1.5",d(de).key===e.activeItem.key&&"border-primary/40 bg-primary/10")),we=W(()=>`打开 ${d(de).label}`);wn(fe,{variant:"outline",size:"sm",get class(){return d(C)},get title(){return d(we)},onclick:()=>o()(d(de).key),children:(Se,q)=>{var re=dP(),H=E(re);I(H,()=>d(ce),(ie,J)=>{J(ie,{class:"size-3.5"})});var ne=A(H,2),X=B(ne);Oe(()=>Pe(X,d(de).label)),b(Se,re)},$$slots:{default:!0}})}}),b(z,F)};Fe(G,z=>{d(v).length>0&&z(K)})}var L=A(G,2);I(L,()=>Uc,(z,F)=>{F(z,{children:(fe,de)=>{var ce=qc(),C=E(ce);I(C,()=>Kc,(Se,q)=>{q(Se,{class:"inline-flex h-7 items-center gap-1.5 rounded-md border border-input bg-background px-2.5 text-sm font-medium text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"页面与收藏夹",children:(re,H)=>{var ne=hP(),X=E(ne);Ok(X,{class:"size-3.5"});var ie=A(X,4);Vc(ie,{class:"size-3 text-muted-foreground"}),b(re,ne)},$$slots:{default:!0}})});var we=A(C,2);I(we,()=>Hc,(Se,q)=>{q(Se,{class:"w-64",children:(re,H)=>{var ne=yP(),X=E(ne);I(X,()=>Ph,(V,Y)=>{Y(V,{children:(he,ve)=>{var ke=Ce("收藏夹");b(he,ke)},$$slots:{default:!0}})});var ie=A(X,2);{var J=V=>{var Y=gP();It(Y,21,()=>d(v),Xt,(he,ve)=>{const ke=W(()=>c[d(ve).key]??Nn);var oe=te(),me=E(oe);{let ue=W(()=>He("gap-2 py-1.5",d(ve).key===e.activeItem.key&&"bg-accent text-accent-foreground"));I(me,()=>Ja,(Le,pe)=>{pe(Le,{onSelect:()=>o()(d(ve).key),get class(){return d(ue)},children:(De,nt)=>{var vt=vP(),it=E(vt),gt=B(it);I(gt,()=>d(ke),(pt,mt)=>{mt(pt,{class:"size-3.5"})});var at=A(it,2),Et=B(at),tt=A(at,2);wh(tt,{class:"ms-auto size-3.5 fill-current text-primary"}),Oe(()=>Pe(Et,d(ve).label)),b(De,vt)},$$slots:{default:!0}})})}b(he,oe)}),b(V,Y)},Q=V=>{var Y=pP();b(V,Y)};Fe(ie,V=>{d(v).length>0?V(J):V(Q,-1)})}var se=A(ie,2);I(se,()=>eP,(V,Y)=>{Y(V,{})});var ee=A(se,2);I(ee,()=>Ph,(V,Y)=>{Y(V,{children:(he,ve)=>{var ke=Ce("全部页面");b(he,ke)},$$slots:{default:!0}})});var Te=A(ee,2);It(Te,21,()=>ts,Xt,(V,Y)=>{const he=W(()=>c[d(Y).key]??Nn),ve=W(()=>d(f).has(d(Y).key));var ke=bP(),oe=B(ke);I(oe,()=>Ja,(ue,Le)=>{Le(ue,{onSelect:()=>o()(d(Y).key),class:"min-w-0 flex-1 gap-2 py-1.5",children:(pe,De)=>{var nt=mP(),vt=E(nt),it=B(vt);I(it,()=>d(he),(mt,lt)=>{lt(mt,{class:"size-4"})});var gt=A(vt,2),at=B(gt),Et=B(at),tt=A(at,2),pt=B(tt);Oe(()=>{Pe(Et,d(Y).label),Pe(pt,d(Y).description)}),b(pe,nt)},$$slots:{default:!0}})});var me=A(oe,2);{let ue=W(()=>He("mx-0.5 shrink-0",d(ve)&&"text-primary")),Le=W(()=>`${d(ve)?"取消收藏":"收藏"} ${d(Y).label}`);wn(me,{variant:"ghost",size:"icon-sm",get class(){return d(ue)},get"aria-label"(){return d(Le)},get"aria-pressed"(){return d(ve)},onclick:pe=>m(pe,d(Y).key),children:(pe,De)=>{{let nt=W(()=>He("size-4",d(ve)&&"fill-current"));wh(pe,{get class(){return d(nt)}})}},$$slots:{default:!0}})}Oe(ue=>ns(ke,1,ue),[()=>fu(He("flex items-center gap-0.5 rounded-md",d(Y).key===e.activeItem.key&&"bg-accent text-accent-foreground"))]),b(V,ke)}),b(re,ne)},$$slots:{default:!0}})}),b(fe,ce)},$$slots:{default:!0}})});var U=A(L,2);{let z=W(()=>a()?"destructive":i()?"secondary":"outline");Sc(U,{get variant(){return d(z)},class:"hidden sm:inline-flex",children:(F,fe)=>{var de=Ce();Oe(()=>Pe(de,a()?"Error":i()?"Ready":"Loading")),b(F,de)},$$slots:{default:!0}})}var Z=A(U,2);wn(Z,{variant:"ghost",size:"icon-sm",title:"退出登录","aria-label":"退出登录",get onclick(){return s()},children:(z,F)=>{Ik(z,{class:"size-4"})},$$slots:{default:!0}}),b(t,w),Ie()}var _P=le("
    "),kP=le('
    ',1);function SP(t,e){$e(e,!0);let r=Ae(!1),n=Ae("overview"),o=Ae("proxy"),s=Ae("all");const i=W(()=>Lt.status),a=W(()=>ts.find(w=>w.key===d(n))??ts[0]),c=W(()=>{switch(d(n)){case"overview":return d(i)?[{label:"version",value:d(i).version||"-",tone:"strong",title:`构建日期 ${d(i).date||"未知"}`}]:[];case"rules":return[{label:"category",value:d(o),tone:"strong",options:["block","direct","proxy"].map(w=>({label:w,value:w,active:w===d(o)}))}];case"traffic":return[{label:"source",value:d(s),tone:"strong",options:["all","http","https","socks5","dns"].map(w=>({label:w,value:w,active:w===d(s)}))}]}});function u(){R(r,!0),R(n,"overview"),$p()}async function f(){try{await es.logout()}catch{}finally{v()}}function v(){R(r,!1),Uk()}ot(()=>{Kk(v)});function h(w,k){w==="category"?R(o,k,!0):w==="source"&&R(s,k,!0)}var g=te(),p=E(g);{var m=w=>{jk(w,{onLogin:u})},y=w=>{var k=kP(),O=E(k);xP(O,{get activeItem(){return d(a)},get contextSegments(){return d(c)},onContextSelect:h,onSelectItem:T=>R(n,T,!0),get status(){return d(i)},onLogout:f});var S=A(O,2),P=B(S);Tv(P,()=>d(n),T=>{var N=_P(),x=B(N);{var D=L=>{vS(L,{get status(){return d(i)}})},G=L=>{SS(L,{get category(){return d(o)},onUnauthorized:v})},K=L=>{KS(L,{get source(){return d(s)}})};Fe(x,L=>{d(n)==="overview"?L(D):d(n)==="rules"?L(G,1):L(K,-1)})}_b(1,N,()=>Bb,()=>({duration:120})),b(T,N)}),b(w,k)};Fe(p,w=>{d(r)?w(y,-1):w(m)})}b(t,g),Ie()}document.documentElement.classList.add("dark");const Ip=document.querySelector("#app");if(!Ip)throw new Error("missing #app mount point");Ev(SP,{target:Ip}); diff --git a/web/dist/assets/index-DYU-q3xW.js b/web/dist/assets/index-DYU-q3xW.js deleted file mode 100644 index c52d012..0000000 --- a/web/dist/assets/index-DYU-q3xW.js +++ /dev/null @@ -1,1233 +0,0 @@ -var Op=Object.defineProperty;var Mp=Object.getPrototypeOf;var $p=Reflect.get;var Qd=t=>{throw TypeError(t)};var Ip=(t,e,r)=>e in t?Op(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ae=(t,e,r)=>Ip(t,typeof e!="symbol"?e+"":e,r),xc=(t,e,r)=>e.has(t)||Qd("Cannot "+r);var l=(t,e,r)=>(xc(t,e,"read from private field"),r?r.call(t):e.get(t)),_=(t,e,r)=>e.has(t)?Qd("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),$=(t,e,r,n)=>(xc(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),j=(t,e,r)=>(xc(t,e,"access private method"),r);var ef=(t,e,r,n)=>({set _(o){$(t,e,o,r)},get _(){return l(t,e,n)}}),tf=(t,e,r)=>$p(Mp(t),r,e);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 Ph=!1;var qu=Array.isArray,Np=Array.prototype.indexOf,vl=Array.prototype.includes,lc=Array.from,zp=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,Ch=Object.getOwnPropertyDescriptors,Rp=Object.prototype,Fp=Array.prototype,Yu=Object.getPrototypeOf,rf=Object.isExtensible;function Ho(t){return typeof t=="function"}const ze=()=>{};function Lp(t){return t()}function Hc(t){for(var e=0;e{t=n,e=o});return{promise:r,resolve:t,reject:e}}function Dp(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const r=[];for(const n of t)if(r.push(n),r.length===e)break;return r}const kt=2,Ss=4,_a=8,Xu=1<<24,fr=16,vr=32,Gr=64,Kc=128,hr=512,yt=1024,ft=2048,Pr=4096,Ft=8192,rr=16384,No=32768,Uc=1<<25,Hr=65536,gl=1<<17,Bp=1<<18,zo=1<<19,Eh=1<<20,Rr=1<<25,To=65536,pl=1<<21,Jo=1<<22,Gn=1<<23,Dr=Symbol("$state"),Th=Symbol("legacy props"),Vp=Symbol(""),Ya=Symbol("attributes"),qc=Symbol("class"),Yc=Symbol("style"),qs=Symbol("text"),Xa=Symbol("form reset"),ka=new class extends Error{constructor(){super(...arguments);ae(this,"name","StaleReactionError");ae(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var _h;const Zu=!!((_h=globalThis.document)!=null&&_h.contentType)&&globalThis.document.contentType.includes("xml");function Oh(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Wp(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function jp(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Gp(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hp(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kp(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Up(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function qp(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Yp(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Xp(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zp(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Jp(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Qp=1,em=2,Mh=4,tm=8,rm=16,nm=1,om=2,$h=4,sm=8,im=16,am=4,lm=1,cm=2,dt=Symbol("uninitialized"),Ih="http://www.w3.org/1999/xhtml",um="http://www.w3.org/2000/svg",Nh="@attach";function dm(){console.warn("https://svelte.dev/e/derived_inert")}function fm(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function hm(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function zh(t){return t===this.v}function vm(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Rh(t){return!vm(t,this.v)}let Is=!1,gm=!1;function pm(){Is=!0}let qe=null;function Ps(t){qe=t}function nf(t){return cc().get(t)}function mm(t,e){return cc().set(t,e),e}function bm(t){return cc().has(t)}function ym(){return cc()}function $e(t,e=!1,r){qe={p:qe,i:!1,c:null,e:null,s:t,x:null,r:Re,l:Is&&!e?{s:null,u:null,$:[]}:null}}function Ie(t){var e=qe,r=e.e;if(r!==null){e.e=null;for(var n of r)sv(n)}return e.i=!0,qe=e.p,{}}function Ns(){return!Is||qe!==null&&qe.l===null}function cc(t){return qe===null&&Oh(),qe.c??(qe.c=new Map(wm(qe)||void 0))}function wm(t){let e=t.p;for(;e!==null;){const r=e.c;if(r!==null)return r;e=e.p}return null}let co=[];function Fh(){var t=co;co=[],Hc(t)}function _r(t){if(co.length===0&&!si){var e=co;queueMicrotask(()=>{e===co&&Fh()})}co.push(t)}function xm(){for(;co.length>0;)Fh()}function Lh(t){var e=Re;if(e===null)return Ve.f|=Gn,t;if((e.f&No)===0&&(e.f&Ss)===0)throw t;Wn(t,e)}function Wn(t,e){if(!(e!==null&&(e.f&rr)!==0)){for(;e!==null;){if((e.f&Kc)!==0){if((e.f&No)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}}const _m=-7169;function it(t,e){t.f=t.f&_m|e}function Ju(t){(t.f&hr)!==0||t.deps===null?it(t,yt):it(t,Pr)}function Dh(t){if(t!==null)for(const e of t)(e.f&kt)===0||(e.f&To)===0||(e.f^=To,Dh(e.deps))}function Bh(t,e,r){(t.f&ft)!==0?e.add(t):(t.f&Pr)!==0&&r.add(t),Dh(t.deps),it(t,yt)}let Ia=!1;function km(t){var e=Ia;try{return Ia=!1,[t(),Ia]}finally{Ia=e}}function Sm(t,e){if(e){const r=document.body;t.autofocus=!0,_r(()=>{document.activeElement===r&&t.focus()})}}let of=!1;function Pm(){of||(of=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const r of t.target.elements)(e=r[Xa])==null||e.call(r)})},{capture:!0}))}function Zn(t){var e=Ve,r=Re;gr(null),pr(null);try{return t()}finally{gr(e),pr(r)}}function Vh(t,e,r,n=r){t.addEventListener(e,()=>Zn(r));const o=t[Xa];o?t[Xa]=()=>{o(),n(!0)}:t[Xa]=()=>n(!0),Pm()}function Qu(t){let e=0,r=wn(0),n;return()=>{od()&&(d(r),fc(()=>(e===0&&(n=mr(()=>t(()=>Nr(r)))),e+=1,()=>{_r(()=>{e-=1,e===0&&(n==null||n(),n=void 0,Nr(r))})})))}}var Cm=Hr|zo;function Am(t,e,r,n){new Em(t,e,r,n)}var ir,Uu,ar,ho,Bt,lr,It,er,Jr,vo,Mn,rs,vi,gi,Qr,Nl,Je,Tm,Om,Xc,Mm,Zc,Za,Ja,Jc,Qc;class Em{constructor(e,r,n,o){_(this,Je);ae(this,"parent");ae(this,"is_pending",!1);ae(this,"transform_error");_(this,ir);_(this,Uu,null);_(this,ar);_(this,ho);_(this,Bt);_(this,lr,null);_(this,It,null);_(this,er,null);_(this,Jr,null);_(this,vo,0);_(this,Mn,0);_(this,rs,!1);_(this,vi,new Set);_(this,gi,new Set);_(this,Qr,null);_(this,Nl,Qu(()=>($(this,Qr,wn(l(this,vo))),()=>{$(this,Qr,null)})));var s;$(this,ir,e),$(this,ar,r),$(this,ho,i=>{var a=Re;a.b=this,a.f|=Kc,n(i)}),this.parent=Re.b,this.transform_error=o??((s=this.parent)==null?void 0:s.transform_error)??(i=>i),$(this,Bt,Ro(()=>{j(this,Je,Zc).call(this)},Cm))}defer_effect(e){Bh(e,l(this,vi),l(this,gi))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!l(this,ar).pending}update_pending_count(e,r){j(this,Je,Jc).call(this,e,r),$(this,vo,l(this,vo)+e),!(!l(this,Qr)||l(this,rs))&&($(this,rs,!0),_r(()=>{$(this,rs,!1),l(this,Qr)&&As(l(this,Qr),l(this,vo))}))}get_effect_pending(){return l(this,Nl).call(this),d(l(this,Qr))}error(e){if(!l(this,ar).onerror&&!l(this,ar).failed)throw e;Me!=null&&Me.is_fork?(l(this,lr)&&Me.skip_effect(l(this,lr)),l(this,It)&&Me.skip_effect(l(this,It)),l(this,er)&&Me.skip_effect(l(this,er)),Me.oncommit(()=>{j(this,Je,Qc).call(this,e)})):j(this,Je,Qc).call(this,e)}}ir=new WeakMap,Uu=new WeakMap,ar=new WeakMap,ho=new WeakMap,Bt=new WeakMap,lr=new WeakMap,It=new WeakMap,er=new WeakMap,Jr=new WeakMap,vo=new WeakMap,Mn=new WeakMap,rs=new WeakMap,vi=new WeakMap,gi=new WeakMap,Qr=new WeakMap,Nl=new WeakMap,Je=new WeakSet,Tm=function(){try{$(this,lr,Ut(()=>l(this,ho).call(this,l(this,ir))))}catch(e){this.error(e)}},Om=function(e){const r=l(this,ar).failed,{reset:n,invoke_onerror:o}=j(this,Je,Xc).call(this,e);_r(o),r&&$(this,er,Ut(()=>{r(l(this,ir),()=>e,()=>n)}))},Xc=function(e){var r=!1,n=!1;const o=()=>{if(r){hm();return}r=!0,n&&Jp(),l(this,er)!==null&&Eo(l(this,er),()=>{$(this,er,null)}),j(this,Je,Ja).call(this,()=>{j(this,Je,Zc).call(this)})};return{reset:o,invoke_onerror:()=>{var i,a;try{n=!0,(a=(i=l(this,ar)).onerror)==null||a.call(i,e,o),n=!1}catch(c){Wn(c,l(this,Bt)&&l(this,Bt).parent)}}}},Mm=function(){const e=l(this,ar).pending;e&&(this.is_pending=!0,$(this,It,Ut(()=>e(l(this,ir)))),_r(()=>{var r=$(this,Jr,document.createDocumentFragment()),n=Br();r.append(n),$(this,lr,j(this,Je,Ja).call(this,()=>Ut(()=>l(this,ho).call(this,n)))),l(this,Mn)===0&&(l(this,ir).before(r),$(this,Jr,null),Eo(l(this,It),()=>{$(this,It,null)}),j(this,Je,Za).call(this,Me))}))},Zc=function(){try{if(this.is_pending=this.has_pending_snippet(),$(this,Mn,0),$(this,vo,0),$(this,lr,Ut(()=>{l(this,ho).call(this,l(this,ir))})),l(this,Mn)>0){var e=$(this,Jr,document.createDocumentFragment());id(l(this,lr),e);const r=l(this,ar).pending;$(this,It,Ut(()=>r(l(this,ir))))}else j(this,Je,Za).call(this,Me)}catch(r){this.error(r)}},Za=function(e){this.is_pending=!1,e.transfer_effects(l(this,vi),l(this,gi))},Ja=function(e){var r=Re,n=Ve,o=qe;pr(l(this,Bt)),gr(l(this,Bt)),Ps(l(this,Bt).ctx);try{return Kn.ensure(),e()}catch(s){return Lh(s),null}finally{pr(r),gr(n),Ps(o)}},Jc=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&j(n=this.parent,Je,Jc).call(n,e,r);return}$(this,Mn,l(this,Mn)+e),l(this,Mn)===0&&(j(this,Je,Za).call(this,r),l(this,It)&&Eo(l(this,It),()=>{$(this,It,null)}),l(this,Jr)&&(l(this,ir).before(l(this,Jr)),$(this,Jr,null)))},Qc=function(e){l(this,lr)&&(St(l(this,lr)),$(this,lr,null)),l(this,It)&&(St(l(this,It)),$(this,It,null)),l(this,er)&&(St(l(this,er)),$(this,er,null));let r=l(this,ar).failed;const n=o=>{const{reset:s,invoke_onerror:i}=j(this,Je,Xc).call(this,o);i(),r&&$(this,er,j(this,Je,Ja).call(this,()=>{try{return Ut(()=>{var a=Re;a.b=this,a.f|=Kc,r(l(this,ir),()=>o,()=>s)})}catch(a){return Wn(a,l(this,Bt).parent),null}}))};_r(()=>{var o;try{o=this.transform_error(e)}catch(s){Wn(s,l(this,Bt)&&l(this,Bt).parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(n,s=>Wn(s,l(this,Bt)&&l(this,Bt).parent)):n(o)})};function Wh(t,e,r,n){const o=Ns()?Cs:ed;var s=t.filter(g=>!g.settled),i=e.map(o);if(r.length===0&&s.length===0){n(i);return}var a=Re,c=$m(),u=s.length===1?s[0].promise:s.length>1?Promise.all(s.map(g=>g.promise)):null;function f(g){if((a.f&rr)===0){c();try{n([...i,...g])}catch(p){Wn(p,a)}ml()}}var v=jh();if(r.length===0){u.then(()=>f([])).finally(v);return}function h(){Promise.all(r.map(g=>Im(g))).then(f).catch(g=>Wn(g,a)).finally(v)}u?u.then(()=>{c(),h(),ml()}):h()}function $m(){var t=Re,e=Ve,r=qe,n=Me;return function(s=!0){pr(t),gr(e),Ps(r),s&&(t.f&rr)===0&&(n==null||n.activate(),n==null||n.apply())}}function ml(t=!0){pr(null),gr(null),Ps(null),t&&(Me==null||Me.deactivate())}function jh(){var t=Re,e=t.b,r=Me,n=!!(e!=null&&e.is_rendered());return e==null||e.update_pending_count(1,r),r.increment(n,t),()=>{e==null||e.update_pending_count(-1,r),r.decrement(n,t)}}function Cs(t){var e=kt|ft;return Re!==null&&(Re.f|=zo),{ctx:qe,deps:null,effects:null,equals:zh,f:e,fn:t,reactions:null,rv:0,v:dt,wv:0,parent:Re,ac:null}}const Ys=Symbol("obsolete");function Im(t,e,r){let n=Re;n===null&&Wp();var o=void 0,s=wn(dt),i=!Ve,a=new Set;return Um(()=>{var g,p;var c=Re,u=Ah();o=u.promise;try{Promise.resolve(t()).then(u.resolve,m=>{m!==ka&&u.reject(m)}).finally(ml)}catch(m){u.reject(m),ml()}var f=Me;if(i){if((c.f&No)!==0)var v=jh();if((g=n.b)!=null&&g.is_rendered())(p=f.async_deriveds.get(c))==null||p.reject(Ys);else for(const m of a.values())m.reject(Ys);a.add(u),f.async_deriveds.set(c,u)}const h=(m,y=void 0)=>{v==null||v(),a.delete(u),y!==Ys&&(f.activate(),y?(s.f|=Gn,As(s,y)):((s.f&Gn)!==0&&(s.f^=Gn),As(s,m)),f.deactivate())};u.promise.then(h,m=>h(null,m||"unknown"))}),uc(()=>{for(const c of a)c.reject(Ys)}),new Promise(c=>{function u(f){function v(){f===o?c(s):u(o)}f.then(v,v)}u(o)})}function W(t){const e=Cs(t);return hv(e),e}function ed(t){const e=Cs(t);return e.equals=Rh,e}function Nm(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r{r.ac.abort(ka),r.ac=null}),r.fn!==null&&(r.teardown=ze),ui(r,0),sd(r))}function Hh(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&e.fn!==null&&Ts(e)}let _c=null,Wo=null,Me=null,oi=null,Ct=null,eu=null,si=!1,kc=!1,Yo=null,Qa=null;var sf=0;let Rm=1;var ns,$n,go,os,ss,is,en,as,Vt,pi,tn,wr,Tr,ls,po,Ye,tu,Xs,ru,Kh,Uh,Ko,Fm,Zs;const zl=class zl{constructor(){_(this,Ye);ae(this,"id",Rm++);_(this,ns,!1);ae(this,"linked",!0);_(this,$n,null);_(this,go,null);ae(this,"async_deriveds",new Map);ae(this,"current",new Map);ae(this,"previous",new Map);_(this,os,new Set);_(this,ss,new Set);_(this,is,0);_(this,en,new Map);_(this,as,null);_(this,Vt,[]);_(this,pi,[]);_(this,tn,new Set);_(this,wr,new Set);_(this,Tr,new Map);_(this,ls,new Set);ae(this,"is_fork",!1);_(this,po,!1);Wo===null?_c=Wo=this:($(Wo,go,this),$(this,$n,Wo)),Wo=this}skip_effect(e){l(this,Tr).has(e)||l(this,Tr).set(e,{d:[],m:[]}),l(this,ls).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=l(this,Tr).get(e);if(n){l(this,Tr).delete(e);for(var o of n.d)it(o,ft),r(o);for(o of n.m)it(o,Pr),r(o)}l(this,ls).add(e)}capture(e,r,n=!1){e.v!==dt&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&Gn)===0&&(this.current.set(e,[r,n]),Ct==null||Ct.set(e,r)),this.is_fork||(e.v=r)}activate(){Me=this}deactivate(){Me=null,Ct=null}flush(){try{kc=!0,Me=this,j(this,Ye,Xs).call(this)}finally{sf=0,eu=null,Yo=null,Qa=null,kc=!1,Me=null,Ct=null,Ao.clear()}}discard(){var e;for(const r of l(this,ss))r(this);l(this,ss).clear();for(const r of this.async_deriveds.values())r.reject(Ys);j(this,Ye,Zs).call(this),(e=l(this,as))==null||e.resolve()}register_created_effect(e){l(this,pi).push(e)}increment(e,r){if($(this,is,l(this,is)+1),e){let n=l(this,en).get(r)??0;l(this,en).set(r,n+1)}}decrement(e,r){if($(this,is,l(this,is)-1),e){let n=l(this,en).get(r)??0;n===1?l(this,en).delete(r):l(this,en).set(r,n-1)}l(this,po)||($(this,po,!0),_r(()=>{$(this,po,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)l(this,tn).add(n);for(const n of r)l(this,wr).add(n);e.clear(),r.clear()}oncommit(e){l(this,os).add(e)}ondiscard(e){l(this,ss).add(e)}settled(){return(l(this,as)??$(this,as,Ah())).promise}static ensure(){if(Me===null){const e=Me=new zl;!kc&&!si&&_r(()=>{l(e,ns)||e.flush()})}return Me}apply(){{Ct=null;return}}schedule(e){var o;if(eu=e,(o=e.b)!=null&&o.is_pending&&(e.f&(Ss|_a|Xu))!==0&&(e.f&No)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(Yo!==null&&r===Re&&(Ve===null||(Ve.f&kt)===0))return;if((n&(Gr|vr))!==0){if((n&yt)===0)return;r.f^=yt}}l(this,Vt).push(r)}};ns=new WeakMap,$n=new WeakMap,go=new WeakMap,os=new WeakMap,ss=new WeakMap,is=new WeakMap,en=new WeakMap,as=new WeakMap,Vt=new WeakMap,pi=new WeakMap,tn=new WeakMap,wr=new WeakMap,Tr=new WeakMap,ls=new WeakMap,po=new WeakMap,Ye=new WeakSet,tu=function(){if(this.is_fork)return!0;for(const n of l(this,en).keys()){for(var e=n,r=!1;e.parent!==null;){if(l(this,Tr).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},Xs=function(){var c,u,f,v;$(this,ns,!0),sf++>1e3&&(j(this,Ye,Zs).call(this),Dm());for(const h of l(this,tn))l(this,wr).delete(h),it(h,ft),this.schedule(h);for(const h of l(this,wr))it(h,Pr),this.schedule(h);const e=l(this,Vt);$(this,Vt,[]),this.apply();var r=Yo=[],n=[],o=Qa=[];for(const h of e)try{j(this,Ye,ru).call(this,h,r,n)}catch(g){throw Xh(h),j(this,Ye,tu).call(this)||this.discard(),g}if(Me=null,o.length>0){var s=zl.ensure();for(const h of o)s.schedule(h)}if(Yo=null,Qa=null,j(this,Ye,tu).call(this)){j(this,Ye,Ko).call(this,n),j(this,Ye,Ko).call(this,r);for(const[h,g]of l(this,Tr))Yh(h,g);o.length>0&&j(c=Me,Ye,Xs).call(c);return}const i=j(this,Ye,Kh).call(this);if(i){j(this,Ye,Ko).call(this,n),j(this,Ye,Ko).call(this,r),j(u=i,Ye,Uh).call(u,this);return}l(this,tn).clear(),l(this,wr).clear();for(const h of l(this,os))h(this);l(this,os).clear(),oi=this,af(n),af(r),oi=null,(f=l(this,as))==null||f.resolve();var a=Me;if(l(this,is)===0&&(l(this,Vt).length===0||a!==null)&&j(this,Ye,Zs).call(this),l(this,Vt).length>0)if(a!==null){const h=a;l(h,Vt).push(...l(this,Vt).filter(g=>!l(h,Vt).includes(g)))}else a=this;a!==null&&j(v=a,Ye,Xs).call(v)},ru=function(e,r,n){e.f^=yt;for(var o=e.first;o!==null;){var s=o.f,i=(s&(vr|Gr))!==0,a=i&&(s&yt)!==0,c=a||(s&Ft)!==0||l(this,Tr).has(o);if(!c&&o.fn!==null){i?o.f^=yt:(s&Ss)!==0?r.push(o):Pa(o)&&((s&fr)!==0&&l(this,wr).add(o),Ts(o));var u=o.first;if(u!==null){o=u;continue}}for(;o!==null;){var f=o.next;if(f!==null){o=f;break}o=o.parent}}},Kh=function(){for(var e=l(this,$n);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=l(e,$n)}return null},Uh=function(e){var n;for(const[o,s]of e.current)!this.previous.has(o)&&e.previous.has(o)&&this.previous.set(o,e.previous.get(o)),this.current.set(o,s);for(const[o,s]of e.async_deriveds){const i=this.async_deriveds.get(o);i&&s.promise.then(i.resolve).catch(i.reject)}e.async_deriveds.clear(),this.transfer_effects(l(e,tn),l(e,wr));const r=o=>{var s=o.reactions;if(s!==null&&!((o.f&kt)!==0&&(o.f&(ft|Pr))===0))for(const c of s){var i=c.f;if((i&kt)!==0)r(c);else{var a=c;i&(Jo|fr)&&!this.async_deriveds.has(a)&&(l(this,wr).delete(a),it(a,ft),this.schedule(a))}}};for(const o of this.current.keys())r(o);this.oncommit(()=>e.discard()),j(n=e,Ye,Zs).call(n),Me=this,j(this,Ye,Xs).call(this)},Ko=function(e){for(var r=0;r!h.current.get(g)[1]);if(!(!l(h,ns)||o.length===0)){var s=o.filter(g=>!this.current.has(g));if(s.length===0)e&&h.discard();else if(r.length>0){if(e)for(const g of l(this,ls))h.unskip_effect(g,p=>{var m;(p.f&(fr|Jo))!==0?h.schedule(p):j(m=h,Ye,Ko).call(m,[p])});h.activate();var i=new Set,a=new Map;for(var c of r)qh(c,s,i,a);a=new Map;var u=[...h.current].filter(([g,p])=>{const m=this.current.get(g);return m?m[0]!==p[0]||m[1]!==p[1]:!0}).map(([g])=>g);if(u.length>0)for(const g of l(this,pi))(g.f&(rr|Ft|gl))===0&&rd(g,u,a)&&((g.f&(Jo|fr))!==0?(it(g,ft),h.schedule(g)):l(h,tn).add(g));if(l(h,Vt).length>0&&!l(h,po)){h.apply();for(var f of l(h,Vt))j(v=h,Ye,ru).call(v,f,[],[]);$(h,Vt,[])}h.deactivate()}}}},Zs=function(){if(this.linked){var e=l(this,$n),r=l(this,go);e===null?_c=r:$(e,go,r),r===null?Wo=e:$(r,$n,e),this.linked=!1}};let Kn=zl;function Lm(t){var e=si;si=!0;try{for(var r;;){if(xm(),Me===null)return r;Me.flush()}}finally{si=e}}function Dm(){try{Up()}catch(t){Wn(t,eu)}}let yr=null;function af(t){var e=t.length;if(e!==0){for(var r=0;r0)){Ao.clear();for(const o of yr){if((o.f&(rr|Ft))!==0)continue;const s=[o];let i=o.parent;for(;i!==null;)yr.has(i)&&(yr.delete(i),s.push(i)),i=i.parent;for(let a=s.length-1;a>=0;a--){const c=s[a];(c.f&(rr|Ft))===0&&Ts(c)}}yr.clear()}}yr=null}}function qh(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const o of t.reactions){const s=o.f;(s&kt)!==0?qh(o,e,r,n):(s&(Jo|fr))!==0&&(s&ft)===0&&rd(o,e,n)&&(it(o,ft),nd(o))}}function rd(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const o of t.deps){if(vl.call(e,o))return!0;if((o.f&kt)!==0&&rd(o,e,r))return r.set(o,!0),!0}return r.set(t,!1),!1}function nd(t){Me.schedule(t)}function Yh(t,e){if(!((t.f&vr)!==0&&(t.f&yt)!==0)){(t.f&ft)!==0?e.d.push(t):(t.f&Pr)!==0&&e.m.push(t),it(t,yt);for(var r=t.first;r!==null;)Yh(r,e),r=r.next}}function Xh(t){it(t,yt);for(var e=t.first;e!==null;)Xh(e),e=e.next}let bl=new Set;const Ao=new Map;let Zh=!1;function wn(t,e){var r={f:0,v:t,reactions:null,equals:zh,rv:0,wv:0};return r}function Ce(t,e){const r=wn(t);return hv(r),r}function Bm(t,e=!1,r=!0){var o;const n=wn(t);return e||(n.equals=Rh),Is&&r&&qe!==null&&qe.l!==null&&((o=qe.l).s??(o.s=[])).push(n),n}function R(t,e,r=!1){Ve!==null&&(!kr||(Ve.f&gl)!==0)&&Ns()&&(Ve.f&(kt|fr|Jo|gl))!==0&&(Vr===null||!Vr.has(t))&&Zp();let n=r?Yt(e):e;return As(t,n,Qa)}function As(t,e,r=null){if(!t.equals(e)){Ao.set(t,xn?e:t.v);var n=Kn.ensure();if(n.capture(t,e),(t.f&kt)!==0){const o=t;(t.f&ft)!==0&&td(o),Ct===null&&Ju(o)}t.wv=gv(),Jh(t,ft,r),Ns()&&Re!==null&&(Re.f&yt)!==0&&(Re.f&(vr|Gr))===0&&(sr===null?Xm([t]):sr.push(t)),!n.is_fork&&bl.size>0&&!Zh&&Vm()}return e}function Vm(){Zh=!1;for(const t of bl){(t.f&yt)!==0&&it(t,Pr);let e;try{e=Pa(t)}catch{e=!0}e&&Ts(t)}bl.clear()}function lf(t,e=1){var r=d(t),n=e===1?r++:r--;return R(t,r),n}function Nr(t){R(t,t.v+1)}function Jh(t,e,r){var n=t.reactions;if(n!==null)for(var o=Ns(),s=n.length,i=0;i{if(mn===s)return a();var c=Ve,u=mn;gr(null),ff(s);var f=a();return gr(c),ff(u),f};return n&&r.set("length",Ce(t.length)),new Proxy(t,{defineProperty(a,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Yp();var f=r.get(c);return f===void 0?i(()=>{var v=Ce(u.value);return r.set(c,v),v}):R(f,u.value,!0),!0},deleteProperty(a,c){var u=r.get(c);if(u===void 0){if(c in a){const f=i(()=>Ce(dt));r.set(c,f),Nr(o)}}else R(u,dt),Nr(o);return!0},get(a,c,u){var g;if(c===Dr)return t;var f=r.get(c),v=c in a;if(f===void 0&&(!v||(g=jn(a,c))!=null&&g.writable)&&(f=i(()=>{var p=Yt(v?a[c]:dt),m=Ce(p);return m}),r.set(c,f)),f!==void 0){var h=d(f);return h===dt?void 0:h}return Reflect.get(a,c,u)},getOwnPropertyDescriptor(a,c){var u=Reflect.getOwnPropertyDescriptor(a,c);if(u&&"value"in u){var f=r.get(c);f&&(u.value=d(f))}else if(u===void 0){var v=r.get(c),h=v==null?void 0:v.v;if(v!==void 0&&h!==dt)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(a,c){var h;if(c===Dr)return!0;var u=r.get(c),f=u!==void 0&&u.v!==dt||Reflect.has(a,c);if(u!==void 0||Re!==null&&(!f||(h=jn(a,c))!=null&&h.writable)){u===void 0&&(u=i(()=>{var g=f?Yt(a[c]):dt,p=Ce(g);return p}),r.set(c,u));var v=d(u);if(v===dt)return!1}return f},set(a,c,u,f){var T;var v=r.get(c),h=c in a;if(n&&c==="length")for(var g=u;gCe(dt)),r.set(g+"",p))}if(v===void 0)(!h||(T=jn(a,c))!=null&&T.writable)&&(v=i(()=>Ce(void 0)),R(v,Yt(u)),r.set(c,v));else{h=v.v!==dt;var m=i(()=>Yt(u));R(v,m)}var y=Reflect.getOwnPropertyDescriptor(a,c);if(y!=null&&y.set&&y.set.call(f,u),!h){if(n&&typeof c=="string"){var w=r.get("length"),P=Number(c);Number.isInteger(P)&&P>=w.v&&R(w,P+1)}Nr(o)}return!0},ownKeys(a){d(o);var c=Reflect.ownKeys(a).filter(v=>{var h=r.get(v);return h===void 0||h.v!==dt});for(var[u,f]of r)f.v!==dt&&!(u in a)&&c.push(u);return c},setPrototypeOf(){Xp()}})}function cf(t){try{if(t!==null&&typeof t=="object"&&Dr in t)return t[Dr]}catch{}return t}function Wm(t,e){return Object.is(cf(t),cf(e))}var uf,Qh,ev,tv;function jm(){if(uf===void 0){uf=window,Qh=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;ev=jn(e,"firstChild").get,tv=jn(e,"nextSibling").get,rf(t)&&(t[qc]=void 0,t[Ya]=null,t[Yc]=void 0,t.__e=void 0),rf(r)&&(r[qs]=void 0)}}function Br(t=""){return document.createTextNode(t)}function Es(t){return ev.call(t)}function Sa(t){return tv.call(t)}function B(t,e){return Es(t)}function E(t,e=!1){{var r=Es(t);return r instanceof Comment&&r.data===""?Sa(r):r}}function A(t,e=1,r=!1){let n=t;for(;e--;)n=Sa(n);return n}function Gm(t){t.textContent=""}function rv(){return!1}function nv(t,e,r){return e==null||e===Ih?r?document.createElement(t,{is:r}):document.createElement(t):r?document.createElementNS(e,t,{is:r}):document.createElementNS(e,t)}function ov(t){Re===null&&(Ve===null&&Kp(),Hp()),xn&&Gp()}function Hm(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function br(t,e){var r=Re;r!==null&&(r.f&Ft)!==0&&(t|=Ft);var n={ctx:qe,deps:null,nodes:null,f:t|ft|hr,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};Me==null||Me.register_created_effect(n);var o=n;if((t&Ss)!==0)Yo!==null?Yo.push(n):Kn.ensure().schedule(n);else if(e!==null){try{Ts(n)}catch(i){throw St(n),i}o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&zo)===0&&(o=o.first,(t&fr)!==0&&(t&Hr)!==0&&o!==null&&(o.f|=Hr))}if(o!==null&&(o.parent=r,r!==null&&Hm(o,r),Ve!==null&&(Ve.f&kt)!==0&&(t&Gr)===0)){var s=Ve;(s.effects??(s.effects=[])).push(o)}return n}function od(){return Ve!==null&&!kr}function uc(t){const e=br(_a,null);return it(e,yt),e.teardown=t,e}function lt(t){ov();var e=Re.f,r=!Ve&&(e&vr)!==0&&qe!==null&&!qe.i;if(r){var n=qe;(n.e??(n.e=[])).push(t)}else return sv(t)}function sv(t){return br(Ss|Eh,t)}function iv(t){return ov(),br(_a|Eh,t)}function av(t){Kn.ensure();const e=br(Gr|zo,t);return()=>{St(e)}}function Km(t){Kn.ensure();const e=br(Gr|zo,t);return(r={})=>new Promise(n=>{r.outro?Eo(e,()=>{St(e),n(void 0)}):(St(e),n(void 0))})}function dc(t){return br(Ss,t)}function Um(t){return br(Jo|zo,t)}function fc(t,e=0){return br(_a|e,t)}function Te(t,e=[],r=[],n=[]){Wh(n,e,r,o=>{br(_a,()=>{t(...o.map(d))})})}function Ro(t,e=0){var r=br(fr|e,t);return r}function lv(t,e=0){var r=br(Xu|e,t);return r}function Ut(t){return br(vr|zo,t)}function cv(t){var e=t.teardown;if(e!==null){const r=xn,n=Ve;df(!0),gr(null);try{e.call(null)}finally{df(r),gr(n)}}}function sd(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const o=r.ac;o!==null&&Zn(()=>{o.abort(ka)});var n=r.next;(r.f&Gr)!==0?r.parent=null:St(r,e),r=n}}function qm(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&vr)===0&&St(e),e=r}}function St(t,e=!0){var r=!1;(e||(t.f&Bp)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(Ym(t.nodes.start,t.nodes.end),r=!0),t.f|=Uc,sd(t,e&&!r),ui(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)s.stop();cv(t),t.f^=Uc,t.f|=rr;var o=t.parent;o!==null&&o.first!==null&&uv(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Ym(t,e){for(;t!==null;){var r=t===e?null:Sa(t);t.remove(),t=r}}function uv(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Eo(t,e,r=!0){var n=[];dv(t,n,!0);var o=()=>{r&&St(t),e&&e()},s=n.length;if(s>0){var i=()=>--s||o();for(var a of n)a.out(i)}else o()}function dv(t,e,r){if((t.f&Ft)===0){t.f^=Ft;var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)(a.is_global||r)&&e.push(a);for(var o=t.first;o!==null;){var s=o.next;if((o.f&Gr)===0){var i=(o.f&Hr)!==0||(o.f&vr)!==0&&(t.f&fr)!==0;dv(o,e,i?r:!1)}o=s}}}function yl(t){fv(t,!0)}function fv(t,e){if((t.f&Ft)!==0){t.f^=Ft,(t.f&yt)===0&&(it(t,ft),Kn.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Hr)!==0||(r.f&vr)!==0;fv(r,o?e:!1),r=n}var s=t.nodes&&t.nodes.t;if(s!==null)for(const i of s)(i.is_global||e)&&i.in()}}function id(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var o=r===n?null:Sa(r);e.append(r),r=o}}let el=!1,xn=!1;function df(t){xn=t}let Ve=null,kr=!1;function gr(t){Ve=t}let Re=null;function pr(t){Re=t}let Vr=null;function hv(t){Ve!==null&&(Vr??(Vr=new Set)).add(t)}let Kt=null,Qt=0,sr=null;function Xm(t){sr=t}let vv=1,uo=0,mn=uo;function ff(t){mn=t}function gv(){return++vv}function Pa(t){var e=t.f;if((e&ft)!==0)return!0;if(e&kt&&(t.f&=~To),(e&Pr)!==0){for(var r=t.deps,n=r.length,o=0;ot.wv)return!0}(e&hr)!==0&&Ct===null&&it(t,yt)}return!1}function pv(t,e,r=!0){var n=t.reactions;if(n!==null&&!(Vr!==null&&Vr.has(t)))for(var o=0;o{t.ac.abort(ka)}),t.ac=null);try{t.f|=pl;var f=t.fn,v=f();t.f|=No;var h=t.deps,g=Me==null?void 0:Me.is_fork;if(Kt!==null){var p;if(g||ui(t,Qt),h!==null&&Qt>0)for(h.length=Qt+Kt.length,p=0;p{s.ac.abort(ka),s.ac=null,it(s,ft)}),zm(s),ui(s,0)}}function ui(t,e){var r=t.deps;if(r!==null)for(var n=e;nr==null?void 0:r.call(this,s))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?_r(()=>{e.addEventListener(t,o,n)}):e.addEventListener(t,o,n),o}function $t(t,e,r,n={}){var o=ad(e,t,r,n);return()=>{t.removeEventListener(e,o,n)}}function _v(t,e,r,n,o){var s={capture:n,passive:o},i=ad(t,e,r,s);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&uc(()=>{e.removeEventListener(t,i,s)})}function ii(t,e,r){(e[fo]??(e[fo]={}))[t]=r}function ld(t){for(var e=0;e{throw w});throw h}}finally{t[fo]=e,delete t.currentTarget,gr(f),pr(v)}}}var kh;const Sc=((kh=globalThis==null?void 0:globalThis.window)==null?void 0:kh.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ib(t){return(Sc==null?void 0:Sc.createHTML(t))??t}function kv(t){var e=nv("template");return e.innerHTML=ib(t.replaceAll("","")),e.content}function Os(t,e){var r=Re;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function ce(t,e){var r=(e&lm)!==0,n=(e&cm)!==0,o,s=!t.startsWith("");return()=>{o===void 0&&(o=kv(s?t:""+t),r||(o=Es(o)));var i=n||Qh?document.importNode(o,!0):o.cloneNode(!0);if(r){var a=Es(i),c=i.lastChild;Os(a,c)}else Os(i,i);return i}}function ab(t,e,r="svg"){var n=!t.startsWith(""),o=`<${r}>${n?t:""+t}`,s;return()=>{if(!s){var i=kv(o),a=Es(i);s=Es(a)}var c=s.cloneNode(!0);return Os(c,c),c}}function Ca(t,e){return ab(t,e,"svg")}function Pe(t=""){{var e=Br(t+"");return Os(e,e),e}}function se(){var t=document.createDocumentFragment(),e=document.createComment(""),r=Br();return t.append(e,r),Os(e,r),t}function b(t,e){t!==null&&t.before(e)}function Aa(){var t;return(t=window.__svelte??(window.__svelte={})).uid??(t.uid=1),`c${window.__svelte.uid++}`}let wl=!0;function Na(t){wl=t}function ke(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[qs]??(t[qs]=t.nodeValue))&&(t[qs]=r,t.nodeValue=`${r}`)}function Sv(t,e){return lb(t,e)}const za=new Map;function lb(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:i=!0,transformError:a}){jm();var c=void 0,u=Km(()=>{var f=r??e.appendChild(Br());Am(f,{pending:()=>{}},g=>{$e({});var p=qe;s&&(p.c=s),o&&(n.$$events=o),wl=i,c=t(g,n)||{},wl=!0,Ie()},a);var v=new Set,h=g=>{for(var p=0;p{var y;for(var g of v)for(const w of[e,document]){var p=za.get(w),m=p.get(g);--m==0?(w.removeEventListener(g,su),p.delete(g),p.size===0&&za.delete(w)):p.set(g,m)}ou.delete(h),f!==r&&((y=f.parentNode)==null||y.removeChild(f))}});return iu.set(c,u),c}let iu=new WeakMap;function cb(t,e){const r=iu.get(t);return r?(iu.delete(t),r(e)):Promise.resolve()}var xr,Or,tr,mo,mi,bi,Rl;class Ea{constructor(e,r=!0){ae(this,"anchor");_(this,xr,new Map);_(this,Or,new Map);_(this,tr,new Map);_(this,mo,new Set);_(this,mi,!0);_(this,bi,e=>{if(l(this,xr).has(e)){var r=l(this,xr).get(e),n=l(this,Or).get(r);if(n)yl(n),l(this,mo).delete(r);else{var o=l(this,tr).get(r);o&&(yl(o.effect),l(this,Or).set(r,o.effect),l(this,tr).delete(r),o.fragment.lastChild.remove(),this.anchor.before(o.fragment),n=o.effect)}for(const[s,i]of l(this,xr)){if(l(this,xr).delete(s),s===e)break;const a=l(this,tr).get(i);a&&(St(a.effect),l(this,tr).delete(i))}for(const[s,i]of l(this,Or)){if(s===r||l(this,mo).has(s))continue;const a=()=>{if(Array.from(l(this,xr).values()).includes(s)){var u=document.createDocumentFragment();id(i,u),u.append(Br()),l(this,tr).set(s,{effect:i,fragment:u})}else St(i);l(this,mo).delete(s),l(this,Or).delete(s)};l(this,mi)||!n?(l(this,mo).add(s),Eo(i,a,!1)):a()}}});_(this,Rl,e=>{l(this,xr).delete(e);const r=Array.from(l(this,xr).values());for(const[n,o]of l(this,tr))r.includes(n)||(St(o.effect),l(this,tr).delete(n))});this.anchor=e,$(this,mi,r)}ensure(e,r){var n=Me,o=rv();if(r&&!l(this,Or).has(e)&&!l(this,tr).has(e))if(o){var s=document.createDocumentFragment(),i=Br();s.append(i),l(this,tr).set(e,{effect:Ut(()=>r(i)),fragment:s})}else l(this,Or).set(e,Ut(()=>r(this.anchor)));if(l(this,xr).set(n,e),o){for(const[a,c]of l(this,Or))a===e?n.unskip_effect(c):n.skip_effect(c);for(const[a,c]of l(this,tr))a===e?n.unskip_effect(c.effect):n.skip_effect(c.effect);n.oncommit(l(this,bi)),n.ondiscard(l(this,Rl))}else l(this,bi).call(this,n)}}xr=new WeakMap,Or=new WeakMap,tr=new WeakMap,mo=new WeakMap,mi=new WeakMap,bi=new WeakMap,Rl=new WeakMap;function Be(t,e,r=!1){var n=new Ea(t),o=r?Hr:0;function s(i,a){n.ensure(i,a)}Ro(()=>{var i=!1;e((a,c=0)=>{i=!0,s(c,a)}),i||s(-1,null)},o)}const ub=Symbol("NaN");function Pv(t,e,r){var n=new Ea(t),o=!Ns();Ro(()=>{var s=e();s!==s&&(s=ub),o&&s!==null&&typeof s=="object"&&(s={}),n.ensure(s,r)})}function qt(t,e){return e}function db(t,e,r){for(var n=[],o=e.length,s,i=e.length,a=0;a{if(s){if(s.pending.delete(v),s.done.add(v),s.pending.size===0){var h=t.outrogroups;au(t,lc(s.done)),h.delete(s),h.size===0&&(t.outrogroups=null)}}else i-=1},!1)}if(i===0){var c=n.length===0&&r!==null;if(c){var u=r,f=u.parentNode;Gm(f),f.append(u),t.items.clear()}au(t,e,!c)}else s={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(s)}function au(t,e,r=!0){var n;if(t.pending.size>0){n=new Set;for(const i of t.pending.values())for(const a of i)n.add(t.items.get(a).e)}for(var o=0;o{var T=r();return qu(T)?T:T==null?[]:lc(T)}),h,g=new Map,p=!0;function m(T){(P.effect.f&rr)===0&&(P.pending.delete(T),P.fallback=f,fb(P,h,i,e,n),f!==null&&(h.length===0?(f.f&Rr)===0?yl(f):(f.f^=Rr,Js(f,null,i)):Eo(f,()=>{f=null})))}function y(T){P.pending.delete(T)}var w=Ro(()=>{h=d(v);for(var T=h.length,k=new Set,S=Me,O=rv(),N=0;Ns(i)):(f=Ut(()=>s(vf??(vf=Br()))),f.f|=Rr)),T>k.size&&jp(),!p)if(g.set(S,k),O){for(const[H,D]of a)k.has(H)||S.skip_effect(D.e);S.oncommit(m),S.ondiscard(y)}else m(S);d(v)}),P={effect:w,items:a,pending:g,outrogroups:null,fallback:f};p=!1}function Bs(t){for(;t!==null&&(t.f&vr)===0;)t=t.next;return t}function fb(t,e,r,n,o){var G,H,D,q,Z,z,F,de,ee;var s=(n&tm)!==0,i=e.length,a=t.items,c=Bs(t.effect.first),u,f=null,v,h=[],g=[],p,m,y,w;if(s)for(w=0;w0){var L=(n&Mh)!==0&&i===0?r:null;if(s){for(w=0;w{var fe,C;if(v!==void 0)for(y of v)(C=(fe=y.nodes)==null?void 0:fe.a)==null||C.apply()})}function hb(t,e,r,n,o,s,i,a){var c=(i&Qp)!==0?(i&rm)===0?Bm(r,!1,!1):wn(r):null,u=(i&em)!==0?wn(o):null;return{v:c,i:u,e:Ut(()=>(s(e,c??r,u??o,a),()=>{t.delete(n)}))}}function Js(t,e,r){if(t.nodes)for(var n=t.nodes.start,o=t.nodes.end,s=e&&(e.f&Rr)===0?e.nodes.start:r;n!==null;){var i=Sa(n);if(s.before(n),n===o)return;n=i}}function Pn(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function nt(t,e,r,n,o){var a;var s=(a=e.$$slots)==null?void 0:a[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0||s(t,i?()=>n:n)}function Fe(t,e,...r){var n=new Ea(t);Ro(()=>{const o=e()??null;n.ensure(o,o&&(s=>o(s,...r)))},Hr)}function I(t,e,r){var n=new Ea(t);Ro(()=>{var o=e()??null;n.ensure(o,o&&(s=>r(s,o)))},Hr)}const vb=()=>performance.now(),gn={tick:t=>requestAnimationFrame(t),now:()=>vb(),tasks:new Set};function Cv(){const t=gn.now();gn.tasks.forEach(e=>{e.c(t)||(gn.tasks.delete(e),e.f())}),gn.tasks.size!==0&&gn.tick(Cv)}function gb(t){let e;return gn.tasks.size===0&&gn.tick(Cv),{promise:new Promise(r=>{gn.tasks.add(e={c:t,f:r})}),abort(){gn.tasks.delete(e)}}}function gf(t,e){Zn(()=>{t.dispatchEvent(new CustomEvent(e))})}function pb(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("")}function pf(t){const e={},r=t.split(";");for(const n of r){const[o,s]=n.split(":");if(!o||s===void 0)break;const i=pb(o.trim());e[i]=s.trim()}return e}const mb=t=>t;function bb(t,e,r,n){var y;var o=(t&am)!==0,s="in",i,a=e.inert,c=e.style.overflow,u,f;function v(){return Zn(()=>i??(i=r()(e,(n==null?void 0:n())??{},{direction:s})))}var h={is_global:o,in(){e.inert=a,u==null||u.abort(),u=Av(e,v(),f,1,()=>{gf(e,"introstart")},()=>{gf(e,"introend"),u==null||u.abort(),u=i=void 0,e.style.overflow=c})},out(w){{w==null||w(),i=void 0;return}},stop:()=>{u==null||u.abort()}},g=Re;if(((y=g.nodes).t??(y.t=[])).push(h),wl){var p=o;if(!p){for(var m=g.parent;m&&(m.f&Hr)!==0;)for(;(m=m.parent)&&(m.f&fr)===0;);p=!m||(m.f&No)!==0}p&&dc(()=>{mr(()=>h.in())})}}function Av(t,e,r,n,o,s){if(Ho(e)){var i,a=!1;return _r(()=>{if(!a){var y=e({direction:"in"});i=Av(t,y,r,n,o,s)}}),{abort:()=>{a=!0,i==null||i.abort()},deactivate:()=>i.deactivate(),reset:()=>i.reset(),t:()=>i.t()}}if(!(e!=null&&e.duration)&&!(e!=null&&e.delay))return o(),s(),{abort:ze,deactivate:ze,reset:ze,t:()=>n};const{delay:c=0,css:u,tick:f,easing:v=mb}=e;var h=[];if(f&&f(0,1),u){var g=pf(u(0,1));h.push(g,g)}var p=()=>1-n,m=t.animate(h,{duration:c,fill:"forwards"});return m.onfinish=()=>{m.cancel(),o();var y=1-n,w=n-y,P=e.duration*Math.abs(w),T=[];if(P>0){var k=!1;if(u)for(var S=Math.ceil(P/16.666666666666668),O=0;O<=S;O+=1){var N=y+w*v(O/S),x=pf(u(N,1-N));T.push(x),k||(k=x.overflow==="hidden")}k&&(t.style.overflow="hidden"),p=()=>{var L=m.currentTime;return y+w*v(L/P)},f&&gb(()=>{if(m.playState!=="running")return!1;var L=p();return f(L,1-L),!0})}m=t.animate(T,{duration:P,fill:"forwards"}),m.onfinish=()=>{p=()=>n,f==null||f(n,1-n),s()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=ze)},deactivate:()=>{s=ze},reset:()=>{},t:()=>p()}}function Ev(t,e,r,n,o,s){var i=null,a=t,c=new Ea(a,!1);Ro(()=>{const u=e()||null;var f=r||u==="svg"?um:void 0;if(u===null){c.ensure(null,null),Na(!0);return}return c.ensure(u,v=>{if(u){if(i=nv(u,f),Os(i,i),n){var h=null,g=i.appendChild(Br());n(i,g),h==null||h.remove()}Re.nodes.end=i,v.before(i)}}),Na(!0),()=>{u&&Na(!1)}},Hr),uc(()=>{Na(!0)})}function yb(t,e){var r=void 0,n;lv(()=>{r!==(r=e())&&(n&&(St(n),n=null),r&&(n=Ut(()=>{dc(()=>r(t))})))})}function Tv(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e=0;){var a=i+s;(i===0||mf.includes(n[i-1]))&&(a===n.length||mf.includes(n[a]))?n=(i===0?"":n.substring(0,i))+n.substring(a+1):i=a}}return n===""?null:n}function bf(t,e=!1){var r=e?" !important;":";",n="";for(var o of Object.keys(t)){var s=t[o];s!=null&&s!==""&&(n+=" "+o+": "+s+r)}return n}function Pc(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function xb(t,e){if(e){var r="",n,o;if(Array.isArray(e)?(n=e[0],o=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var s=!1,i=0,a=!1,c=[];n&&c.push(...Object.keys(n).map(Pc)),o&&c.push(...Object.keys(o).map(Pc));var u=0,f=-1;const m=t.length;for(var v=0;v{"__value"in t&&cu(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),uc(()=>{e.disconnect()})}function yf(t){return"__value"in t?t.__value:t.value}const Vs=Symbol("class"),Ws=Symbol("style"),Ov=Symbol("is custom element"),Mv=Symbol("is html"),kb=Zu?"input":"INPUT",Sb=Zu?"option":"OPTION",Pb=Zu?"select":"SELECT";function Cb(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function Pt(t,e,r,n){var o=$v(t);o[e]!==(o[e]=r)&&(e==="loading"&&(t[Vp]=r),r==null?t.removeAttribute(e):typeof r!="string"&&Iv(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function Ab(t,e,r,n,o=!1,s=!1){var i=$v(t),a=i[Ov],c=!i[Mv],u=e||{},f=t.nodeName===Sb;for(var v in e)v in r||(r[v]=null);r.class?r.class=lu(r.class):r[Vs]&&(r.class=null),r[Ws]&&(r.style??(r.style=null));var h=Iv(t);if(t.nodeName===kb&&"type"in r&&("value"in r||"__value"in r)){var g=r.type;(g!==u.type||g===void 0&&t.hasAttribute("type"))&&(u.type=g,Pt(t,"type",g))}for(const S in r){let O=r[S];if(f&&S==="value"&&O==null){t.value=t.__value="",u[S]=O;continue}if(S==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";Qo(t,p,O,n,e==null?void 0:e[Vs],r[Vs]),u[S]=O,u[Vs]=r[Vs];continue}if(S==="style"){Uo(t,O,e==null?void 0:e[Ws],r[Ws]),u[S]=O,u[Ws]=r[Ws];continue}var m=u[S];if(!(O===m&&!(O===void 0&&t.hasAttribute(S)))){u[S]=O;var y=S[0]+S[1];if(y!=="$$")if(y==="on"){const N={},x="$$"+S;let L=S.slice(2);var w=tb(L);if(Qm(L)&&(L=L.slice(0,-7),N.capture=!0),!w&&m){if(O!=null)continue;t.removeEventListener(L,u[x],N),u[x]=null}if(w)ii(L,t,O),ld([L]);else if(O!=null){let G=function(H){u[S].call(this,H)};var k=G;u[x]=ad(L,t,G,N)}}else if(S==="style")Pt(t,S,O);else if(S==="autofocus")Sm(t,!!O);else if(!a&&(S==="__value"||S==="value"&&O!=null))t.value=t.__value=O;else if(S==="selected"&&f)Cb(t,O);else{var P=S;c||(P=nb(P));var T=P==="defaultValue"||P==="defaultChecked";if(O==null&&!a&&!T)if(i[S]=null,P==="value"||P==="checked"){let N=t;const x=e===void 0;if(P==="value"){let L=N.defaultValue;N.removeAttribute(P),N.defaultValue=L,N.value=N.__value=x?L:null}else{let L=N.defaultChecked;N.removeAttribute(P),N.defaultChecked=L,N.checked=x?L:!1}}else t.removeAttribute(S);else T||h.includes(P)&&(a||typeof O!="string")?(t[P]=O,P in i&&(i[P]=dt)):typeof O!="function"&&Pt(t,P,O)}}}return u}function Ke(t,e,r=[],n=[],o=[],s,i=!1,a=!1){Wh(o,r,n,c=>{var u=void 0,f={},v=t.nodeName===Pb,h=!1;if(lv(()=>{var p=e(...c.map(d)),m=Ab(t,u,p,s,i,a);h&&v&&"value"in p&&cu(t,p.value);for(let w of Object.getOwnPropertySymbols(f))p[w]||St(f[w]);for(let w of Object.getOwnPropertySymbols(p)){var y=p[w];w.description===Nh&&(!u||y!==u[w])&&(f[w]&&St(f[w]),f[w]=Ut(()=>yb(t,()=>y))),m[w]=y}u=m}),v){var g=t;dc(()=>{cu(g,u.value,!0),_b(g)})}h=!0})}function $v(t){return t[Ya]??(t[Ya]={[Ov]:t.nodeName.includes("-"),[Mv]:t.namespaceURI===Ih})}var wf=new Map;function Iv(t){var e=t.getAttribute("is")||t.nodeName,r=wf.get(e);if(r)return r;wf.set(e,r=[]);for(var n,o=t,s=Element.prototype;s!==o;){n=Ch(o);for(var i in n)n[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&r.push(i);o=Yu(o)}return r}function uu(t,e,r=e){var n=new WeakSet;Vh(t,"input",async o=>{var s=o?t.defaultValue:t.value;if(s=Ac(t)?Ec(s):s,r(s),Me!==null&&n.add(Me),await bv(),s!==(s=e())){var i=t.selectionStart,a=t.selectionEnd,c=t.value.length;if(t.value=s??"",a!==null){var u=t.value.length;i===a&&a===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=i,t.selectionEnd=Math.min(a,u))}}}),mr(e)==null&&t.value&&(r(Ac(t)?Ec(t.value):t.value),Me!==null&&n.add(Me)),fc(()=>{var o=e();if(t===document.activeElement){var s=Me;if(n.has(s))return}Ac(t)&&o===Ec(t.value)||t.type==="date"&&!o&&!t.value||o!==t.value&&(t.value=o??"")})}function Ac(t){var e=t.type;return e==="number"||e==="range"}function Ec(t){return t===""?null:+t}function Eb(t,e,r=e){Vh(t,"change",()=>{r(t.files)}),fc(()=>{t.files=e()})}function Tc(t,e){return t===e||(t==null?void 0:t[Dr])===e}function ct(t={},e,r,n){var o=qe.r,s=Re;return dc(()=>{var i,a;return fc(()=>{i=a,a=[],mr(()=>{Tc(r(...a),t)||(e(t,...a),i&&Tc(r(...i),t)&&e(null,...i))})}),()=>{let c=s;for(;c!==o&&c.parent!==null&&c.parent.f&Uc;)c=c.parent;const u=()=>{a&&Tc(r(...a),t)&&e(null,...a)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Tb(t=!1){const e=qe,r=e.l.u;if(!r)return;let n=()=>ao(e.s);if(t){let o=0,s={};const i=Cs(()=>{let a=!1;const c=e.s;for(const u in c)c[u]!==s[u]&&(s[u]=c[u],a=!0);return a&&o++,o});n=()=>d(i)}r.b.length&&iv(()=>{xf(e,n),Hc(r.b)}),lt(()=>{const o=mr(()=>r.m.map(Lp));return()=>{for(const s of o)typeof s=="function"&&s()}}),r.a.length&<(()=>{xf(e,n),Hc(r.a)})}function xf(t,e){if(t.l.s)for(const r of t.l.s)d(r);e()}const Ob={get(t,e){if(!t.exclude.has(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.has(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.has(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.has(e))}};function Ge(t,e,r){return new Proxy({props:t,exclude:e},Ob)}const Mb={get(t,e){if(!t.exclude.includes(e))return d(t.version),e in t.special?t.special[e]():t.props[e]},set(t,e,r){if(!(e in t.special)){var n=Re;try{pr(t.parent_effect),t.special[e]=M({get[e](){return t.props[e]}},e,$h)}finally{pr(n)}}return t.special[e](r),lf(t.version),!0},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},deleteProperty(t,e){return t.exclude.includes(e)||(t.exclude.push(e),lf(t.version)),!0},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function Qe(t,e){return new Proxy({props:t,exclude:e,special:{},version:wn(0),parent_effect:Re},Mb)}const $b={get(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Ho(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n)return n[e]}},set(t,e,r){let n=t.props.length;for(;n--;){let o=t.props[n];Ho(o)&&(o=o());const s=jn(o,e);if(s&&s.set)return s.set(r),!0}return!1},getOwnPropertyDescriptor(t,e){let r=t.props.length;for(;r--;){let n=t.props[r];if(Ho(n)&&(n=n()),typeof n=="object"&&n!==null&&e in n){const o=jn(n,e);return o&&!o.configurable&&(o.configurable=!0),o}}},has(t,e){if(e===Dr||e===Th)return!1;for(let r of t.props)if(Ho(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(t){const e=[];for(let r of t.props)if(Ho(r)&&(r=r()),!!r){for(const n in r)e.includes(n)||e.push(n);for(const n of Object.getOwnPropertySymbols(r))e.includes(n)||e.push(n)}return e}};function We(...t){return new Proxy({props:t},$b)}function M(t,e,r,n){var k;var o=!Is||(r&om)!==0,s=(r&sm)!==0,i=(r&im)!==0,a=n,c=!0,u=void 0,f=()=>i&&o?(u??(u=Cs(n)),d(u)):(c&&(c=!1,a=i?mr(n):n),a);let v;if(s){var h=Dr in t||Th in t;v=((k=jn(t,e))==null?void 0:k.set)??(h&&e in t?S=>t[e]=S:void 0)}var g,p=!1;s?[g,p]=km(()=>t[e]):g=t[e],g===void 0&&n!==void 0&&(g=f(),v&&(o&&qp(),v(g)));var m;if(o?m=()=>{var S=t[e];return S===void 0?f():(c=!0,S)}:m=()=>{var S=t[e];return S!==void 0&&(a=void 0),S===void 0?a:S},o&&(r&$h)===0)return m;if(v){var y=t.$$legacy;return(function(S,O){return arguments.length>0?((!o||!O||y||p)&&v(O?m():S),S):m()})}var w=!1,P=((r&nm)!==0?Cs:ed)(()=>(w=!1,m()));s&&d(P);var T=Re;return(function(S,O){if(arguments.length>0){const N=O?d(P):o&&s?Yt(S):S;return R(P,N),w=!0,a!==void 0&&(a=N),S}return xn&&w||(T.f&rr)!==0?P.v:d(P)})}function cd(t){qe===null&&Oh(),Is&&qe.l!==null?Ib(qe).m.push(t):lt(()=>{const e=mr(t);if(typeof e=="function")return e})}function Ib(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Nb="5";var Sh;typeof window<"u"&&((Sh=window.__svelte??(window.__svelte={})).v??(Sh.v=new Set)).add(Nb);const zb=t=>t;function Rb(t,{delay:e=0,duration:r=400,easing:n=zb}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:r,easing:n,css:s=>`opacity: ${s*o}`}}class Qs extends Error{constructor(e,r){super(r),this.status=e}}async function Cn(t,e){const r=await fetch(t,{headers:{"Content-Type":"application/json"},...e});if(!r.ok){let n=`HTTP ${r.status}`;try{const o=await r.json();o&&typeof o.error=="string"&&(n=o.error)}catch{}throw new Qs(r.status,n)}if(r.status!==204)return await r.json()}const Xo={login:t=>Cn("/api/session",{method:"POST",body:JSON.stringify({password:t})}),logout:()=>Cn("/api/session",{method:"DELETE"}),status:()=>Cn("/api/status"),rules:(t,e)=>{const r=new URLSearchParams({category:t});return e!=null&&e.q&&r.set("q",e.q),(e==null?void 0:e.offset)!=null&&r.set("offset",String(e.offset)),(e==null?void 0:e.limit)!=null&&r.set("limit",String(e.limit)),Cn(`/api/rules?${r}`)},addRules:(t,e)=>Cn("/api/rules",{method:"POST",body:JSON.stringify({category:t,rules:e})}),removeRules:(t,e)=>Cn("/api/rules",{method:"DELETE",body:JSON.stringify({category:t,rules:e})}),traffic:(t,e,r)=>{const n=[];return t&&n.push(`sort=${t}`),e&&e!=="all"&&n.push(`source=${e}`),r&&n.push(`client=${encodeURIComponent(r)}`),Cn(n.length?`/api/traffic?${n.join("&")}`:"/api/traffic")},history:()=>Cn("/api/history")},Fb=(t,e)=>{const r=new Array(t.length+e.length);for(let n=0;n({classGroupId:t,validator:e}),Nv=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),xl="-",_f=[],Db="arbitrary..",Bb=t=>{const e=Wb(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Vb(i);const a=i.split(xl),c=a[0]===""&&a.length>1?1:0;return zv(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?Fb(u,c):c:u||_f}return r[i]||_f}}},zv=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=zv(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(xl):t.slice(e).join(xl),c=i.length;for(let u=0;ut.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),r=e.indexOf(":"),n=e.slice(0,r);return n?Db+n:void 0})(),Wb=t=>{const{theme:e,classGroups:r}=t;return jb(r,e)},jb=(t,e)=>{const r=Nv();for(const n in t){const o=t[n];ud(o,r,n,e)}return r},ud=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){Hb(t,e,r);return}if(typeof t=="function"){Kb(t,e,r,n);return}Ub(t,e,r,n)},Hb=(t,e,r)=>{const n=t===""?e:Rv(e,t);n.classGroupId=r},Kb=(t,e,r,n)=>{if(qb(t)){ud(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(Lb(r,t))},Ub=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(xl),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,Yb=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=Object.create(null),n=Object.create(null);const o=(s,i)=>{r[s]=i,e++,e>t&&(e=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)}}},du="!",kf=":",Xb=[],Sf=(t,e,r,n,o)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Zb=t=>{const{prefix:e,experimentalParseClassName:r}=t;let n=o=>{const s=[];let i=0,a=0,c=0,u;const f=o.length;for(let m=0;mc?u-c:void 0;return Sf(s,g,h,p)};if(e){const o=e+kf,s=n;n=i=>i.startsWith(o)?s(i.slice(o.length)):Sf(Xb,!1,i,void 0,!0)}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},Jb=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((r,n)=>{e.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let s=0;s0&&(o.sort(),n.push(...o),o=[]),n.push(i)):o.push(i)}return o.length>0&&(o.sort(),n.push(...o)),n}},Qb=t=>({cache:Yb(t.cacheSize),parseClassName:Zb(t),sortModifiers:Jb(t),postfixLookupClassGroupIds:ey(t),...Bb(t)}),ey=t=>{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:i}=e,a=[],c=t.trim().split(ty);let u="";for(let f=c.length-1;f>=0;f-=1){const v=c[f],{isExternal:h,modifiers:g,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:y}=r(v);if(h){u=v+(u.length>0?" "+u:u);continue}let w=!!y,P;if(w){const N=m.substring(0,y);P=n(N);const x=P&&i[P]?n(m):void 0;x&&x!==P&&(P=x,w=!1)}else P=n(m);if(!P){if(!w){u=v+(u.length>0?" "+u:u);continue}if(P=n(m),!P){u=v+(u.length>0?" "+u:u);continue}w=!1}const T=g.length===0?"":g.length===1?g[0]:s(g).join(":"),k=p?T+du:T,S=k+P;if(a.indexOf(S)>-1)continue;a.push(S);const O=o(P,w);for(let N=0;N0?" "+u:u)}return u},ny=(...t)=>{let e=0,r,n,o="";for(;e{if(typeof t=="string")return t;let e,r="";for(let n=0;n{let r,n,o,s;const i=c=>{const u=e.reduce((f,v)=>v(f),t());return r=Qb(u),n=r.cache.get,o=r.cache.set,s=a,a(c)},a=c=>{const u=n(c);if(u)return u;const f=ry(c,r);return o(c,f),f};return s=i,(...c)=>s(ny(...c))},sy=[],pt=t=>{const e=r=>r[t]||sy;return e.isThemeGetter=!0,e},Lv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iy=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,ay=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ly=/\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$/,cy=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uy=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dy=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,An=t=>iy.test(t),Le=t=>!!t&&!Number.isNaN(Number(t)),Ar=t=>!!t&&Number.isInteger(Number(t)),Oc=t=>t.endsWith("%")&&Le(t.slice(0,-1)),Yr=t=>ay.test(t),Bv=()=>!0,fy=t=>ly.test(t)&&!cy.test(t),dd=()=>!1,hy=t=>uy.test(t),vy=t=>dy.test(t),gy=t=>!me(t)&&!ye(t),py=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),my=t=>Jn(t,jv,dd),me=t=>Lv.test(t),to=t=>Jn(t,Gv,fy),Pf=t=>Jn(t,Py,Le),by=t=>Jn(t,Kv,Bv),yy=t=>Jn(t,Hv,dd),Cf=t=>Jn(t,Vv,dd),wy=t=>Jn(t,Wv,vy),Ra=t=>Jn(t,Uv,hy),ye=t=>Dv.test(t),js=t=>Fo(t,Gv),xy=t=>Fo(t,Hv),Af=t=>Fo(t,Vv),_y=t=>Fo(t,jv),ky=t=>Fo(t,Wv),Fa=t=>Fo(t,Uv,!0),Sy=t=>Fo(t,Kv,!0),Jn=(t,e,r)=>{const n=Lv.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Fo=(t,e,r=!1)=>{const n=Dv.exec(t);return n?n[1]?e(n[1]):r:!1},Vv=t=>t==="position"||t==="percentage",Wv=t=>t==="image"||t==="url",jv=t=>t==="length"||t==="size"||t==="bg-size",Gv=t=>t==="length",Py=t=>t==="number",Hv=t=>t==="family-name",Kv=t=>t==="number"||t==="weight",Uv=t=>t==="shadow",Cy=()=>{const t=pt("color"),e=pt("font"),r=pt("text"),n=pt("font-weight"),o=pt("tracking"),s=pt("leading"),i=pt("breakpoint"),a=pt("container"),c=pt("spacing"),u=pt("radius"),f=pt("shadow"),v=pt("inset-shadow"),h=pt("text-shadow"),g=pt("drop-shadow"),p=pt("blur"),m=pt("perspective"),y=pt("aspect"),w=pt("ease"),P=pt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...k(),ye,me],O=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],x=()=>[ye,me,c],L=()=>[An,"full","auto",...x()],G=()=>[Ar,"none","subgrid",ye,me],H=()=>["auto",{span:["full",Ar,ye,me]},Ar,ye,me],D=()=>[Ar,"auto",ye,me],q=()=>["auto","min","max","fr",ye,me],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],de=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],ee=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...x()],fe=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],C=()=>[t,ye,me],Oe=()=>[...k(),Af,Cf,{position:[ye,me]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",_y,my,{size:[ye,me]}],te=()=>[Oc,js,to],U=()=>["","none","full",u,ye,me],ue=()=>["",Le,js,to],J=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Le,Oc,Af,Cf],oe=()=>["","none",p,ye,me],ne=()=>["none",Le,ye,me],re=()=>["none",Le,ye,me],Ae=()=>[Le,ye,me],V=()=>[An,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Yr],breakpoint:[Yr],color:[Bv],container:[Yr],"drop-shadow":[Yr],ease:["in","out","in-out"],font:[gy],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Yr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Yr],shadow:[Yr],spacing:["px",Le],text:[Yr],"text-shadow":[Yr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,me,ye,y]}],container:["container"],"container-type":[{"@container":["","normal","size",ye,me]}],"container-named":[py],columns:[{columns:[Le,me,ye,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Ar,"auto",ye,me]}],basis:[{basis:[An,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,An,"auto","initial","none",me]}],grow:[{grow:["",Le,ye,me]}],shrink:[{shrink:["",Le,ye,me]}],order:[{order:[Ar,"first","last","none",ye,me]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,js,to]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Sy,by]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Oc,me]}],"font-family":[{font:[xy,yy,e]}],"font-features":[{"font-features":[me]}],"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,ye,me]}],"line-clamp":[{"line-clamp":[Le,"none",ye,Pf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",ye,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",ye,to]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[Le,"auto",ye,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Ar,ye,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,me]}],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",ye,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oe()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ar,ye,me],radial:["",ye,me],conic:[Ar,ye,me]},ky,wy]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,ye,me]}],"outline-w":[{outline:["",Le,js,to]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Fa,Ra]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",v,Fa,Ra]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[Le,to]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Fa,Ra]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[Le,ye,me]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"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":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[ye,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,me]}],filter:[{filter:["","none",ye,me]}],blur:[{blur:oe()}],brightness:[{brightness:[Le,ye,me]}],contrast:[{contrast:[Le,ye,me]}],"drop-shadow":[{"drop-shadow":["","none",g,Fa,Ra]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",Le,ye,me]}],"hue-rotate":[{"hue-rotate":[Le,ye,me]}],invert:[{invert:["",Le,ye,me]}],saturate:[{saturate:[Le,ye,me]}],sepia:[{sepia:["",Le,ye,me]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,me]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[Le,ye,me]}],"backdrop-contrast":[{"backdrop-contrast":[Le,ye,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,ye,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,ye,me]}],"backdrop-invert":[{"backdrop-invert":["",Le,ye,me]}],"backdrop-opacity":[{"backdrop-opacity":[Le,ye,me]}],"backdrop-saturate":[{"backdrop-saturate":[Le,ye,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,ye,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",ye,me]}],ease:[{ease:["linear","initial",w,ye,me]}],delay:[{delay:[Le,ye,me]}],animate:[{animate:["none",P,ye,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ye,me]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[ye,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Ar,ye,me]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",ye,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",ye,me]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[Le,js,to,Pf]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ay=oy(Cy);function He(...t){return Ay(ai(t))}var Ey=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Ty=ce("
    ");function _t(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Ey);var o=Ty();Ke(o,i=>({"data-slot":"card-content",class:i,...n}),[()=>He("px-(--card-spacing)",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var Oy=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),My=ce("

    ");function At(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Oy);var o=My();Ke(o,i=>({"data-slot":"card-description",class:i,...n}),[()=>He("text-sm text-muted-foreground",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var $y=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Iy=ce("
    ");function Et(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,$y);var o=Iy();Ke(o,i=>({"data-slot":"card-header",class:i,...n}),[()=>He("gap-1 rounded-t-xl px-(--card-spacing) [.border-b]:pb-(--card-spacing) group/card-header @container/card-header grid auto-rows-min items-start has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto]",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var Ny=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),zy=ce("
    ");function Jt(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Ny);var o=zy();Ke(o,i=>({"data-slot":"card-title",class:i,...n}),[()=>He("text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var Ry=new Set(["$$slots","$$events","$$legacy","ref","class","children","size"]),Fy=ce("
    ");function bt(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"size",3,"default"),o=Ge(e,Ry);var s=Fy();Ke(s,a=>({"data-slot":"card","data-size":n(),class:a,...o}),[()=>He("gap-(--card-spacing) overflow-hidden rounded-xl bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-foreground/10 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl group/card flex flex-col",e.class)]);var i=B(s);Fe(i,()=>e.children??ze),ct(s,a=>r(a),()=>r()),b(t,s),Ie()}var Ly=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Dy=ce("
    ");function fd(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,Ly);var o=Dy();Ke(o,i=>({"data-slot":"alert-description",class:i,...n}),[()=>He("text-sm text-balance text-muted-foreground md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var By=Array.isArray,hc=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(By(t)){const r=t.length;for(let n=0;ntypeof t!="string"||!t?t:t.replace(Vy," ").trim(),jy=t=>{const e=t.length;if(e===0)return!1;const r=t.charCodeAt(0),n=t.charCodeAt(e-1);if(r===32||n===32||r>=9&&r<=13||r===160||n>=9&&n<=13||n===160)return!0;for(let o=0;o=9&&s<=13||s===160||s===32&&o+1{const e=hc(t);if(e)return jy(e)?Wy(e):e},hu=t=>t===!1?"false":t===!0?"true":t===0?"0":t,dr=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},qv=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const r=t,n=e,o=Object.keys(r),s=Object.keys(n);if(o.length!==s.length)return!1;for(let i=0;i{const r=t;for(const n in e)if(Object.hasOwn(e,n)){const o=e[n];n in r?r[n]=tl(r[n],o):r[n]=o}return t},Yv=(t,e)=>{for(let r=0;r{const e=[];Yv(t,e);const r=[];for(let n=0;n{const r=t,n=e,o={};for(const s in r){const i=r[s];if(s in n){const a=n[s];fu(i)||fu(a)?o[s]=vu(a,i):typeof i=="object"&&typeof a=="object"&&i&&a?o[s]=hd(i,a):o[s]=a+" "+i}else o[s]=i}for(const s in n)s in r||(o[s]=n[s]);return o},Hy={twMerge:!0,twMergeConfig:{}},Xv=256,Ky=128,Oo=Symbol("tv-cache-miss"),Uy=t=>(t==null?void 0:t.class)!=null&&t.class!==""||(t==null?void 0:t.className)!=null&&t.className!=="",Ef=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=hu(t),r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return String(e);if(r==="object")try{return JSON.stringify(e)}catch{return null}return null},jo=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const r=typeof e;if(r==="string"||r==="number"||r==="boolean"||r==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},Zv=(t,e,r,n)=>{let o="";const s=Object.create(null);for(let a=0;a1&&i.sort();for(let a=0;a{let r="";for(let n=0;n{let e=new Map,r=null;return{get(n){if(e.has(n))return e.get(n);if(r!=null&&r.has(n)){const o=r.get(n);return e.set(n,o),o}return Oo},set(n,o){e.size>=t&&(r=e,e=new Map),e.set(n,o)}}},qy=(t=Xv)=>{const e=Qv(t);return{get(r){return e.get(r)},set(r,n){e.set(r,n)}}},Yy=(t=Ky)=>{let e=new Map,r=null,n=0;return{get(o,s){const i=e.get(o);if(i){const a=i.get(s);if(a!==void 0||i.has(s))return a}if(r){const a=r.get(o);if(a){const c=a.get(s);if(c!==void 0||a.has(s)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(s)||n++,u.set(s,c),c}}}return Oo},set(o,s,i){n>=t&&(r=e,e=new Map,n=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(s)||n++,a.set(s,i)}}},vd=(t,e)=>{let r=null;return(n,o)=>{if(!Uy(o))return n;const s=o.class,i=o.className;if(s!=null&&s!==""&&typeof s!="string"||i!=null&&i!==""&&typeof i!="string")return t(e,n,s,i);r??(r=Yy());const a=n??"",c=(typeof s=="string"?s:"")+"\0"+(typeof i=="string"?i:""),u=r.get(a,c);if(u!==Oo)return u;const f=t(e,n,s,i);return r.set(a,c,f),f}};function Xy(){let t=null,e={},r=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(n){t=n},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(n){e=n},get didTwMergeConfigChange(){return r},set didTwMergeConfigChange(n){r=n},reset(){t=null,e={},r=!1}}}var zt=Xy(),Zy=t=>{!dr(t.twMergeConfig)&&!qv(t.twMergeConfig,zt.cachedTwMergeConfig)&&(zt.didTwMergeConfigChange=!0,zt.cachedTwMergeConfig=t.twMergeConfig)},Jy=(t,e)=>{const r=[];for(let n=0;n{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let r=0;r{const e={};for(let r=0;r{const{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=t,c={...Hy,...e},u=t.slots!==void 0,f=r!=null&&r.base?tl(r.base,t==null?void 0:t.base):t==null?void 0:t.base,v=r!=null&&r.variants&&!dr(r.variants)?hd(o,r.variants):o,h=r!=null&&r.defaultVariants&&!dr(r.defaultVariants)?{...r.defaultVariants,...a}:a;Zy(c);const g=!(r!=null&&r.slots)||dr(r.slots),p=u?g&&(r!=null&&r.base)?tl(t==null?void 0:t.base,r.base):typeof(t==null?void 0:t.base)=="string"||(t==null?void 0:t.base)==null?t.base:tl(t.base):void 0,m=u?{base:p,...n}:{},y=g?m:Gy({...r==null?void 0:r.slots},dr(m)?{base:t==null?void 0:t.base}:m),w=!(r!=null&&r.compoundVariants)||dr(r.compoundVariants)?s:vu(r==null?void 0:r.compoundVariants,s),P=!(r!=null&&r.compoundSlots)||dr(r.compoundSlots)?i:vu(r==null?void 0:r.compoundSlots,i),T=Object.keys(v),k=w&&!Array.isArray(w)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof w}`):P&&!Array.isArray(P)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof P}`):null,S=u||!g?"slots":T.length===0?"plain":"variants";return{config:c,extend:r,base:f,variants:v,defaultVariants:h,slots:y,compoundVariants:w,compoundSlots:P,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:k,mode:S,slotKeys:null,variantKeys:T}},eg=t=>(t.compiledVariants!==null||(t.compiledVariants=Jy(t.variants,t.variantKeys),t.compiledCompoundVariants=Qy(t.compoundVariants),t.compiledCompoundSlots=ew(t.compoundSlots),t.compiledCompoundSlotsBySlot=tw(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),gu=[],tg=[],nw=[],ow=[],sw=[],rg=(t,e,r)=>{const n={};for(const o in t)n[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(n[o]=e[o]);if(r)for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n},La=t=>t==null||t===!1,iw=(t,e)=>{if(!Array.isArray(t))return t===e||La(t)&&La(e);for(let r=0;r{if(t.isEmpty)return null;const o=(n==null?void 0:n[t.key])??(r==null?void 0:r[t.key]);if(o===null)return null;const s=hu(o);if(typeof s=="object")return null;const i=e==null?void 0:e[t.key],a=s??hu(i);return t.values[a||"false"]},gd=(t,e)=>{const{conditionKeys:r,source:n}=t;for(let o=0;o{typeof r=="string"?e==="base"&&t.push(r):r&&typeof r=="object"&&r[e]&&t.push(r[e])},aw=(t,e,r)=>{const n=tg;n.length=0;for(let o=0;o{const s=tg;s.length=0;for(let i=0;i{const r=nw;r.length=0;for(let n=0;n{const n=ow;n.length=0;for(let o=0;o{const r=sw;r.length=0;for(let n=0;n{const{base:r,config:n}=t;let o=Oo;const s=vd(e,n);return(i=>(o===Oo&&(o=e(n,r)),s(o,i)))},hw=(t,e)=>{const{base:r,config:n,defaultVariants:o,deferredError:s,variantKeys:i}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,u=gu,f=null;const v=vd(e,n);let h=1;const g=p=>{const m=a.length>0?cw(a,rg(o,p)):void 0;return e(n,r,aw(c,o,p),m)};return(p=>{if(s)throw s;(c===null||a===null)&&(eg(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??gu);let m;if(h>0)h--,m=g(p);else{f??(f=qy());const y=Zv(i,o,p);if(y!==null){const w=a.length>0||u.length>0?Jv(a,u):"",P=y+"#"+w,T=f.get(P);T!==Oo?m=T:(m=g(p),f.set(P,m))}else m=g(p)}return v(m,p)})},vw=(t,e)=>{const{config:r,defaultVariants:n,deferredError:o,slots:s,variantKeys:i}=t;let a=null,c=null,u=null,f=null,v=!1,h=null,g=null,p=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&eg(t);const w=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const P=t.compiledCompoundSlotsBySlot;u=t.slotKeys,v=a.length>0||c.length>0,h=vd(e,r);const T=new Array(u.length);for(let k=0;k{const L=v?rg(n,N,x):void 0,G=L?uw(S,a,L):void 0,H=L?dw(O,L):void 0;return e(r,s[S],lw(S,w,n,N,x),G,H)}}f=T},y=w=>{const P=u,T=f,k=h,S={};for(let O=0;O{if(L==null)return x;let G=!1;for(const H in L)if(!(H==="class"||H==="className")&&L[H]!==void 0){G=!0;break}return k(G?N(w,L):x,L)}}return S};return(w=>{if(o)throw o;if(m(),p>0)return p--,y(w);const P=Zv(i,n,w);if(P===null)return y(w);const T=v?Jv(a,c):"",k=P+"#"+T;g??(g=Qv());const S=g.get(k);if(S!==Oo)return S;const O=y(w);return g.set(k,O),O})},gw=(t,e)=>{if(t.mode==="plain")return fw(t,e);let r;return(n=>(r??(r=t.mode==="slots"?vw(t,e):hw(t,e)),r(n)))},pw=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},mw=t=>{const e=(n,o)=>{const s=rw(n,o),i=gw(s,t);return pw(i,s),i};return{tv:e,createTV:n=>(o,s)=>e(o,s?hd(n,s):n)}},bw=(t,e)=>{const r=t.length,n=e.length,o=new Array(r+n);for(let s=0;s({classGroupId:t,validator:e}),og=(t=new Map,e=null,r)=>({nextPart:t,validators:e,classGroupId:r}),_l="-",Of=[],ww="arbitrary..",xw=t=>{const e=kw(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{if(i[0]==="["&&i[i.length-1]==="]")return _w(i);const a=i.split(_l),c=a[0]===""&&a.length>1?1:0;return sg(a,c,e)},getConflictingClassGroupIds:(i,a)=>{if(a){const c=n[i],u=r[i];return c?u?bw(u,c):c:u||Of}return r[i]||Of}}},sg=(t,e,r)=>{if(t.length-e===0)return r.classGroupId;const o=t[e],s=r.nextPart.get(o);if(s){const u=sg(t,e+1,s);if(u)return u}const i=r.validators;if(i===null)return;const a=e===0?t.join(_l):t.slice(e).join(_l),c=i.length;for(let u=0;u{const e=t.slice(1,-1),r=e.indexOf(":");if(r===-1)return;const n=e.slice(0,r);return n?ww+n:void 0},kw=t=>{const{theme:e,classGroups:r}=t;return Sw(r,e)},Sw=(t,e)=>{const r=og();for(const n in t){const o=t[n];pd(o,r,n,e)}return r},pd=(t,e,r,n)=>{const o=t.length;for(let s=0;s{if(typeof t=="string"){Cw(t,e,r);return}if(typeof t=="function"){Aw(t,e,r,n);return}Ew(t,e,r,n)},Cw=(t,e,r)=>{const n=t===""?e:ig(e,t);n.classGroupId=r},Aw=(t,e,r,n)=>{if(Tw(t)){pd(t(n),e,r,n);return}e.validators===null&&(e.validators=[]),e.validators.push(yw(r,t))},Ew=(t,e,r,n)=>{const o=Object.entries(t),s=o.length;for(let i=0;i{let r=t;const n=e.split(_l),o=n.length;for(let s=0;s"isThemeGetter"in t&&t.isThemeGetter===!0,Ow="!",Mw=58,$w=47,Iw=91,Nw=93,zw=40,Rw=41,Mf=33,Fw=(t,e,r,n)=>({modifiers:t,hasImportantModifier:e,baseClassName:r,maybePostfixModifierPosition:n,isExternal:void 0}),$f=t=>{const e=[];let r=0,n=0,o=0,s;const i=t.length;for(let h=0;ho?s-o:void 0;return Fw(e,u,c,v)},Lw=t=>{const e=new Set(t.orderSensitiveModifiers);return r=>{const n=[];let o=[];for(let s=0;s0){o.sort();for(let u=0;u0){o.sort();for(let s=0;s{const e=Lw(t),r=Ww(t),{getClassGroupId:n,getConflictingClassGroupIds:o}=xw(t);let s=Object.create(null),i=Object.create(null),a=0,c=new Int32Array(256),u=0,f=new Uint8Array(64),v=!1;const h=T=>{const k=[],S=T.length;let O=-1;v=!1;for(let N=0;N=9&&x<=13?(v=!0,O!==-1&&(k.push(T.slice(O,N)),O=-1)):O===-1&&(O=N)}return O!==-1&&k.push(T.slice(O)),k},g=new Map;let p=0;const m=T=>{let k=g.get(T);if(k===void 0&&(k=p++,g.set(T,k),k>=c.length)){const S=new Int32Array(c.length*2);S.set(c),c=S}return k},y=T=>{const{isExternal:k,modifiers:S,hasImportantModifier:O,baseClassName:N,maybePostfixModifierPosition:x}=$f(T);if(k)return Mc;let L=!!x,G;if(L){const z=N.substring(0,x);G=n(z);const F=G&&r[G]?n(N):void 0;F&&F!==G&&(G=F,L=!1)}else G=n(N);if(!G){if(!L||(G=n(N),!G))return Mc;L=!1}const H=S.length===0?"":S.length===1?S[0]:e(S).join(":"),D=O?H+Ow:H,q=o(G,L),Z=[];for(let z=0;z{let k=s[T];return k!==void 0||(k=i[T],k===void 0&&(k=y(T)),s[T]=k,++a>Dw&&(a=0,i=s,s=Object.create(null))),k};return{parseClassName:$f,sortModifiers:e,postfixLookupClassGroupIds:r,getClassGroupId:n,getConflictingClassGroupIds:o,getClassDescriptor:w,mergeClassList:T=>{const k=h(T),S=k.length;if(S===1)return k[0];p>Bw&&(g.clear(),p=0,s=Object.create(null),i=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const O=u;if(S>f.length){let G=f.length;for(;G=0;G-=1){const H=k[G];x+=H.length;const D=w(H);if(D.isExternal){f[G]=1;continue}const q=D.classId;if(c[q]===O){f[G]=0,N=!0;continue}c[q]=O;const Z=D.conflictIds;for(let z=0;z{const e=Object.create(null),r=t.postfixLookupClassGroups;if(r)for(let n=0;n{let e,r,n=Object.create(null),o=Object.create(null),s=0;const i=u=>(e=Vw(t()),r=e.mergeClassList,c.mergeString=a,a(u)),a=u=>{let f=n[u];return f!==void 0||(f=o[u],f===void 0&&(f=r(u)),n[u]=f,++s>jw&&(s=0,o=n,n=Object.create(null))),f},c=(...u)=>c.mergeString(hc(u));return c.mergeString=i,c},Gw=[],mt=t=>{const e=r=>r[t]||Gw;return e.isThemeGetter=!0,e},ag=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,lg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Hw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Kw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Uw=/\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$/,qw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Yw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cg=Number,Zw=Number.isNaN,Jw=Number.isInteger,En=t=>Hw.test(t),De=t=>!!t&&!Zw(cg(t)),Er=t=>!!t&&Jw(cg(t)),$c=t=>t.endsWith("%")&&De(t.slice(0,-1)),Xr=t=>Kw.test(t),ug=()=>!0,Qw=t=>Uw.test(t)&&!qw.test(t),md=()=>!1,ex=t=>Yw.test(t),tx=t=>Xw.test(t),rx=t=>!be(t)&&!we(t),nx=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),ox=t=>Qn(t,hg,md),be=t=>ag.test(t),ro=t=>Qn(t,vg,Qw),Nf=t=>Qn(t,fx,De),sx=t=>Qn(t,pg,ug),ix=t=>Qn(t,gg,md),zf=t=>Qn(t,dg,md),ax=t=>Qn(t,fg,tx),Da=t=>Qn(t,mg,ex),we=t=>lg.test(t),Gs=t=>Lo(t,vg),lx=t=>Lo(t,gg),Rf=t=>Lo(t,dg),cx=t=>Lo(t,hg),ux=t=>Lo(t,fg),Ba=t=>Lo(t,mg,!0),dx=t=>Lo(t,pg,!0),Qn=(t,e,r)=>{const n=ag.exec(t);return n?n[1]?e(n[1]):r(n[2]):!1},Lo=(t,e,r=!1)=>{const n=lg.exec(t);return n?n[1]?e(n[1]):r:!1},dg=t=>t==="position"||t==="percentage",fg=t=>t==="image"||t==="url",hg=t=>t==="length"||t==="size"||t==="bg-size",vg=t=>t==="length",fx=t=>t==="number",gg=t=>t==="family-name",pg=t=>t==="number"||t==="weight",mg=t=>t==="shadow",Ic=()=>{const t=mt("color"),e=mt("font"),r=mt("text"),n=mt("font-weight"),o=mt("tracking"),s=mt("leading"),i=mt("breakpoint"),a=mt("container"),c=mt("spacing"),u=mt("radius"),f=mt("shadow"),v=mt("inset-shadow"),h=mt("text-shadow"),g=mt("drop-shadow"),p=mt("blur"),m=mt("perspective"),y=mt("aspect"),w=mt("ease"),P=mt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...k(),we,be],O=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],x=()=>[we,be,c],L=()=>[En,"full","auto",...x()],G=()=>[Er,"none","subgrid",we,be],H=()=>["auto",{span:["full",Er,we,be]},Er,we,be],D=()=>[Er,"auto",we,be],q=()=>["auto","min","max","fr",we,be],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],z=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...x()],de=()=>[En,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],ee=()=>[En,"screen","full","dvw","lvw","svw","min","max","fit",...x()],fe=()=>[En,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],C=()=>[t,we,be],Oe=()=>[...k(),Rf,zf,{position:[we,be]}],Se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",cx,ox,{size:[we,be]}],te=()=>[$c,Gs,ro],U=()=>["","none","full",u,we,be],ue=()=>["",De,Gs,ro],J=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[De,$c,Rf,zf],oe=()=>["","none",p,we,be],ne=()=>["none",De,we,be],re=()=>["none",De,we,be],Ae=()=>[De,we,be],V=()=>[En,"full",...x()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xr],breakpoint:[Xr],color:[ug],container:[Xr],"drop-shadow":[Xr],ease:["in","out","in-out"],font:[rx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xr],shadow:[Xr],spacing:["px",De],text:[Xr],"text-shadow":[Xr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",En,be,we,y]}],container:["container"],"container-type":[{"@container":["","normal","size",we,be]}],"container-named":[nx],columns:[{columns:[De,be,we,a]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{"inset-s":L(),start:L()}],end:[{"inset-e":L(),end:L()}],"inset-bs":[{"inset-bs":L()}],"inset-be":[{"inset-be":L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Er,"auto",we,be]}],basis:[{basis:[En,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,En,"auto","initial","none",be]}],grow:[{grow:["",De,we,be]}],shrink:[{shrink:["",De,we,be]}],order:[{order:[Er,"first","last","none",we,be]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":q()}],"auto-rows":[{"auto-rows":q()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...z(),"normal"]}],"justify-self":[{"justify-self":["auto",...z()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...z(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...z(),"baseline"]}],"place-self":[{"place-self":["auto",...z()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:de()}],"inline-size":[{inline:["auto",...ee()]}],"min-inline-size":[{"min-inline":["auto",...ee()]}],"max-inline-size":[{"max-inline":["none",...ee()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[a,"screen",...de()]}],"min-w":[{"min-w":[a,"screen","none",...de()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...de()]}],h:[{h:["screen","lh",...de()]}],"min-h":[{"min-h":["screen","lh","none",...de()]}],"max-h":[{"max-h":["screen","lh",...de()]}],"font-size":[{text:["base",r,Gs,ro]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,dx,sx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",$c,be]}],"font-family":[{font:[lx,ix,e]}],"font-features":[{"font-features":[be]}],"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,we,be]}],"line-clamp":[{"line-clamp":[De,"none",we,Nf]}],leading:[{leading:[s,...x()]}],"list-image":[{"list-image":["none",we,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:C()}],"text-color":[{text:C()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",we,ro]}],"text-decoration-color":[{decoration:C()}],"underline-offset":[{"underline-offset":[De,"auto",we,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[Er,we,be]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,be]}],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",we,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Oe()}],"bg-repeat":[{bg:Se()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Er,we,be],radial:["",we,be],conic:[Er,we,be]},ux,ax]}],"bg-color":[{bg:C()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:C()}],"gradient-via":[{via:C()}],"gradient-to":[{to:C()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:C()}],"border-color-x":[{"border-x":C()}],"border-color-y":[{"border-y":C()}],"border-color-s":[{"border-s":C()}],"border-color-e":[{"border-e":C()}],"border-color-bs":[{"border-bs":C()}],"border-color-be":[{"border-be":C()}],"border-color-t":[{"border-t":C()}],"border-color-r":[{"border-r":C()}],"border-color-b":[{"border-b":C()}],"border-color-l":[{"border-l":C()}],"divide-color":[{divide:C()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,we,be]}],"outline-w":[{outline:["",De,Gs,ro]}],"outline-color":[{outline:C()}],shadow:[{shadow:["","none",f,Ba,Da]}],"shadow-color":[{shadow:C()}],"inset-shadow":[{"inset-shadow":["none",v,Ba,Da]}],"inset-shadow-color":[{"inset-shadow":C()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:C()}],"ring-offset-w":[{"ring-offset":[De,ro]}],"ring-offset-color":[{"ring-offset":C()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":C()}],"text-shadow":[{"text-shadow":["none",h,Ba,Da]}],"text-shadow-color":[{"text-shadow":C()}],opacity:[{opacity:[De,we,be]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"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":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":C()}],"mask-image-linear-to-color":[{"mask-linear-to":C()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":C()}],"mask-image-t-to-color":[{"mask-t-to":C()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":C()}],"mask-image-r-to-color":[{"mask-r-to":C()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":C()}],"mask-image-b-to-color":[{"mask-b-to":C()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":C()}],"mask-image-l-to-color":[{"mask-l-to":C()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":C()}],"mask-image-x-to-color":[{"mask-x-to":C()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":C()}],"mask-image-y-to-color":[{"mask-y-to":C()}],"mask-image-radial":[{"mask-radial":[we,be]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":C()}],"mask-image-radial-to-color":[{"mask-radial-to":C()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":C()}],"mask-image-conic-to-color":[{"mask-conic-to":C()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Oe()}],"mask-repeat":[{mask:Se()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,be]}],filter:[{filter:["","none",we,be]}],blur:[{blur:oe()}],brightness:[{brightness:[De,we,be]}],contrast:[{contrast:[De,we,be]}],"drop-shadow":[{"drop-shadow":["","none",g,Ba,Da]}],"drop-shadow-color":[{"drop-shadow":C()}],grayscale:[{grayscale:["",De,we,be]}],"hue-rotate":[{"hue-rotate":[De,we,be]}],invert:[{invert:["",De,we,be]}],saturate:[{saturate:[De,we,be]}],sepia:[{sepia:["",De,we,be]}],"backdrop-filter":[{"backdrop-filter":["","none",we,be]}],"backdrop-blur":[{"backdrop-blur":oe()}],"backdrop-brightness":[{"backdrop-brightness":[De,we,be]}],"backdrop-contrast":[{"backdrop-contrast":[De,we,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,we,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,we,be]}],"backdrop-invert":[{"backdrop-invert":["",De,we,be]}],"backdrop-opacity":[{"backdrop-opacity":[De,we,be]}],"backdrop-saturate":[{"backdrop-saturate":[De,we,be]}],"backdrop-sepia":[{"backdrop-sepia":["",De,we,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",we,be]}],ease:[{ease:["linear","initial",w,we,be]}],delay:[{delay:[De,we,be]}],animate:[{animate:["none",P,we,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,we,be]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:re()}],"scale-x":[{"scale-x":re()}],"scale-y":[{"scale-y":re()}],"scale-z":[{"scale-z":re()}],"scale-3d":["scale-3d"],skew:[{skew:Ae()}],"skew-x":[{"skew-x":Ae()}],"skew-y":[{"skew-y":Ae()}],transform:[{transform:[we,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:V()}],"translate-x":[{"translate-x":V()}],"translate-y":[{"translate-y":V()}],"translate-z":[{"translate-z":V()}],"translate-none":["translate-none"],zoom:[{zoom:[Er,we,be]}],accent:[{accent:C()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:C()}],"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",we,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":C()}],"scrollbar-track-color":[{"scrollbar-track":C()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"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",we,be]}],fill:[{fill:["none",...C()]}],"stroke-w":[{stroke:[De,Gs,ro,Nf]}],stroke:[{stroke:["none",...C()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hx=(t,{extend:e={},override:r={}})=>(Va(t.theme,r.theme),Va(t.classGroups,r.classGroups),Va(t.conflictingClassGroups,r.conflictingClassGroups),Va(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),pu(t,"postfixLookupClassGroups",r.postfixLookupClassGroups),pu(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),Wa(t.theme,e.theme),Wa(t.classGroups,e.classGroups),Wa(t.conflictingClassGroups,e.conflictingClassGroups),Wa(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),mu(t,e,"postfixLookupClassGroups"),mu(t,e,"orderSensitiveModifiers"),t),pu=(t,e,r)=>{r!==void 0&&(t[e]=r)},Va=(t,e)=>{if(e)for(const r in e)pu(t,r,e[r])},Wa=(t,e)=>{if(e)for(const r in e)mu(t,e,r)},mu=(t,e,r)=>{const n=e[r];n!==void 0&&(t[r]=t[r]?t[r].concat(n):n)},bg=t=>If(t?typeof t=="function"?()=>t(Ic()):()=>hx(Ic(),t):Ic),vx=t=>{if(dr(t))return;const e=t,r={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&r[o]===void 0&&(r[o]=e[o]);const n={};if(Object.keys(r).length>0&&(n.extend=r),e.override!=null&&!dr(e.override)&&(n.override=e.override),!(!n.extend&&!n.override))return n},gx=t=>{const e=vx(t),r=bg(e);return n=>r.mergeString(n)},rl,px=()=>(rl||(rl=bg()),rl),mx=()=>((!zt.cachedTwMerge||zt.didTwMergeConfigChange)&&(zt.didTwMergeConfigChange=!1,zt.cachedTwMerge=gx(zt.cachedTwMergeConfig)),zt.cachedTwMerge),bx=t=>{const e=t==null?void 0:t.twMergeConfig;!e||dr(e)||qv(e,zt.cachedTwMergeConfig)||(zt.cachedTwMergeConfig=e,zt.didTwMergeConfigChange=!0)},yx=t=>hc(t),wx=zt.reset.bind(zt);zt.reset=()=>{rl=void 0,wx()};var xx=(t,e)=>{const r=yx(t);return!r||!((e==null?void 0:e.twMerge)??!0)?r||void 0:r.indexOf(" ")===-1?r:(bx(e),(!!(e!=null&&e.twMergeConfig&&!dr(e.twMergeConfig))?mx():px().mergeString)(r)||void 0)},_x=(t,...e)=>xx(e,t),kx=mw(_x),bd=kx.tv;const Sx=bd({base:"grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 group/alert relative w-full",variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});var Px=new Set(["$$slots","$$events","$$legacy","ref","class","variant","children"]),Cx=ce("
    ");function yd(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,Px);var s=Cx();Ke(s,a=>({"data-slot":"alert",role:"alert",class:a,...o}),[()=>He(Sx({variant:n()}),e.class)]);var i=B(s);Fe(i,()=>e.children??ze),ct(s,a=>r(a),()=>r()),b(t,s),Ie()}var Ax=new Set(["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]),Ff=ce("");function wd(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"value",15),o=M(e,"files",15),s=M(e,"data-slot",3,"input"),i=Ge(e,Ax);var a=se(),c=E(a);{var u=v=>{var h=Ff();Ke(h,g=>({"data-slot":s(),class:g,type:"file",...i}),[()=>He("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),ct(h,g=>r(g),()=>r()),Eb(h,o),uu(h,n),b(v,h)},f=v=>{var h=Ff();Ke(h,g=>({"data-slot":s(),class:g,type:e.type,...i}),[()=>He("h-8 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors file:h-6 file:text-sm file:font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",e.class)],void 0,void 0,void 0,!0),ct(h,g=>r(g),()=>r()),uu(h,n),b(v,h)};Be(c,v=>{e.type==="file"?v(u):v(f,-1)})}b(t,a),Ie()}function Ex(t){return typeof t=="function"}function Ta(t){return t!==null&&typeof t=="object"}const Tx=["string","number","bigint","boolean"];function bu(t){return t==null||Tx.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>bu(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const Ms=Symbol("box"),vc=Symbol("is-writable");function pe(t,e){const r=W(t);return e?{[Ms]:!0,[vc]:!0,get current(){return d(r)},set current(n){e(n)}}:{[Ms]:!0,get current(){return t()}}}function Oa(t){return Ta(t)&&Ms in t}function xd(t){return Oa(t)&&vc in t}function yg(t){return Oa(t)?t:Ex(t)?pe(t):Fr(t)}function Ox(t){return Object.entries(t).reduce((e,[r,n])=>Oa(n)?(xd(n)?Object.defineProperty(e,r,{get(){return n.current},set(o){n.current=o}}):Object.defineProperty(e,r,{get(){return n.current}}),e):Object.assign(e,{[r]:n}),{})}function Mx(t){return xd(t)?{[Ms]:!0,get current(){return t.current}}:t}function Fr(t){let e=Ce(Yt(t));return{[Ms]:!0,[vc]:!0,get current(){return d(e)},set current(r){R(e,r,!0)}}}function Do(t){let e=Ce(Yt(t));return{[Ms]:!0,[vc]:!0,get current(){return d(e)},set current(r){R(e,r,!0)}}}Do.from=yg;Do.with=pe;Do.flatten=Ox;Do.readonly=Mx;Do.isBox=Oa;Do.isWritableBox=xd;function wg(...t){return function(e){var r;for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):(r=n.current)==null||r.call(this,e)}}}var Lf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$x=/\n/g,Ix=/^\s*/,Nx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,zx=/^:\s*/,Rx=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fx=/^[;\s]*/,Lx=/^\s+|\s+$/g,Dx=` -`,Df="/",Bf="*",lo="",Bx="comment",Vx="declaration";function Wx(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function o(p){var m=p.match($x);m&&(r+=m.length);var y=p.lastIndexOf(Dx);n=~y?p.length-y:n+p.length}function s(){var p={line:r,column:n};return function(m){return m.position=new i(p),u(),m}}function i(p){this.start=p,this.end={line:r,column:n},this.source=e.source}i.prototype.content=t;function a(p){var m=new Error(e.source+":"+r+":"+n+": "+p);if(m.reason=p,m.filename=e.source,m.line=r,m.column=n,m.source=t,!e.silent)throw m}function c(p){var m=p.exec(t);if(m){var y=m[0];return o(y),t=t.slice(y.length),m}}function u(){c(Ix)}function f(p){var m;for(p=p||[];m=v();)m!==!1&&p.push(m);return p}function v(){var p=s();if(!(Df!=t.charAt(0)||Bf!=t.charAt(1))){for(var m=2;lo!=t.charAt(m)&&(Bf!=t.charAt(m)||Df!=t.charAt(m+1));)++m;if(m+=2,lo===t.charAt(m-1))return a("End of comment missing");var y=t.slice(2,m-2);return n+=2,o(y),t=t.slice(m),n+=2,p({type:Bx,comment:y})}}function h(){var p=s(),m=c(Nx);if(m){if(v(),!c(zx))return a("property missing ':'");var y=c(Rx),w=p({type:Vx,property:Vf(m[0].replace(Lf,lo)),value:y?Vf(y[0].replace(Lf,lo)):lo});return c(Fx),w}}function g(){var p=[];f(p);for(var m;m=h();)m!==!1&&(p.push(m),f(p));return p}return u(),g()}function Vf(t){return t?t.replace(Lx,lo):lo}function jx(t,e){let r=null;if(!t||typeof t!="string")return r;const n=Wx(t),o=typeof e=="function";return n.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?e(i,a,s):a&&(r=r||{},r[i]=a)}),r}const Gx=/\d/,Hx=["-","_","/","."];function Kx(t=""){if(!Gx.test(t))return t!==t.toLowerCase()}function Ux(t){const e=[];let r="",n,o;for(const s of t){const i=Hx.includes(s);if(i===!0){e.push(r),r="",n=void 0;continue}const a=Kx(s);if(o===!1){if(n===!1&&a===!0){e.push(r),r=s,n=a;continue}if(n===!0&&a===!1&&r.length>1){const c=r.at(-1);e.push(r.slice(0,Math.max(0,r.length-1))),r=c+s,n=a;continue}}r+=s,n=a,o=i}return e.push(r),e}function xg(t){return t?Ux(t).map(e=>Yx(e)).join(""):""}function qx(t){return Xx(xg(t||""))}function Yx(t){return t?t[0].toUpperCase()+t.slice(1):""}function Xx(t){return t?t[0].toLowerCase()+t.slice(1):""}function ei(t){if(!t)return{};const e={};function r(n,o){if(n.startsWith("-moz-")||n.startsWith("-webkit-")||n.startsWith("-ms-")||n.startsWith("-o-")){e[xg(n)]=o;return}if(n.startsWith("--")){e[n]=o;return}e[qx(n)]=o}return jx(t,r),e}function es(...t){return(...e)=>{for(const r of t)typeof r=="function"&&r(...e)}}function Zx(t,e){const r=RegExp(t,"g");return n=>{if(typeof n!="string")throw new TypeError(`expected an argument of type string, but got ${typeof n}`);return n.match(r)?n.replace(r,e):n}}const Jx=Zx(/[A-Z]/,t=>`-${t.toLowerCase()}`);function Qx(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${Jx(e)}: ${t[e]};`).join(` -`)}function _g(t={}){return Qx(t).replace(` -`," ")}const e_=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],t_=new Set(e_);function r_(t){return t_.has(t)}function Wr(...t){const e={...t[0]};for(let r=1;ru.has(h)));f&&Nr(c)}return a}delete(r){var n=l(this,Mr),o=n.get(r),s=super.delete(r);return o!==void 0&&(n.delete(r),R(o,-1)),s&&(R(l(this,rn),super.size),Nr(l(this,$r))),s}clear(){if(super.size!==0){super.clear();var r=l(this,Mr);R(l(this,rn),0);for(var n of r.values())R(n,-1);Nr(l(this,$r)),r.clear()}}keys(){return d(l(this,$r)),super.keys()}values(){return j(this,Sr,nl).call(this),super.values()}entries(){return j(this,Sr,nl).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return d(l(this,rn)),super.size}};Mr=new WeakMap,$r=new WeakMap,rn=new WeakMap,Fl=new WeakMap,Sr=new WeakSet,ti=function(r){return mn===l(this,Fl)?Ce(r):wn(r)},nl=function(){d(l(this,$r));var r=l(this,Mr);if(l(this,rn).v!==r.size){for(var n of tf(Bd.prototype,this,"keys").call(this))if(!r.has(n)){var o=j(this,Sr,ti).call(this,0);r.set(n,o)}}for([,o]of l(this,Mr))d(o)};let yu=Bd;var cs,yi;class o_{constructor(e={}){_(this,cs);_(this,yi);const{window:r=kg,document:n=r==null?void 0:r.document}=e;r!==void 0&&($(this,cs,n),$(this,yi,Qu(o=>{const s=$t(r,"focusin",o),i=$t(r,"focusout",o);return()=>{s(),i()}})))}get current(){var e;return(e=l(this,yi))==null||e.call(this),l(this,cs)?n_(l(this,cs)):null}}cs=new WeakMap,yi=new WeakMap;new o_;function s_(t){return typeof t=="function"}var wi,nn;class Bo{constructor(e){_(this,wi);_(this,nn);$(this,wi,e),$(this,nn,Symbol(e))}get key(){return l(this,nn)}exists(){return bm(l(this,nn))}get(){const e=nf(l(this,nn));if(e===void 0)throw new Error(`Context "${l(this,wi)}" not found`);return e}getOr(e){const r=nf(l(this,nn));return r===void 0?e:r}set(e){return mm(l(this,nn),e)}}wi=new WeakMap,nn=new WeakMap;function i_(t,e){switch(t){case"post":lt(e);break;case"pre":iv(e);break}}function Sg(t,e,r,n={}){const{lazy:o=!1}=n;let s=!o,i=Array.isArray(t)?[]:void 0;i_(e,()=>{const a=Array.isArray(t)?t.map(u=>u()):t();if(!s){s=!0,i=a;return}const c=mr(()=>r(a,i));return i=a,c})}function nr(t,e,r){Sg(t,"post",e,r)}function a_(t,e,r){Sg(t,"pre",e,r)}nr.pre=a_;function Wf(t){return s_(t)?t():t}var In,us,ds,fs,Nn,Ll,Dl,hs;class l_{constructor(e,r={box:"border-box"}){_(this,In,{width:0,height:0});_(this,us,!1);_(this,ds);_(this,fs);_(this,Nn);_(this,Ll,W(()=>{var e;return(e=d(l(this,hs)))==null||e(),this.getSize().width}));_(this,Dl,W(()=>{var e;return(e=d(l(this,hs)))==null||e(),this.getSize().height}));_(this,hs,W(()=>{const e=Wf(l(this,fs));if(e)return Qu(r=>{if(!l(this,Nn))return;const n=new(l(this,Nn)).ResizeObserver(o=>{$(this,us,!0);for(const s of o){const i=l(this,ds).box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];l(this,In).width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),l(this,In).height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}r()});return n.observe(e),()=>{$(this,us,!1),n.disconnect()}})}));$(this,Nn,r.window??kg),$(this,ds,r),$(this,fs,e),$(this,In,{width:0,height:0})}calculateSize(){const e=Wf(l(this,fs));if(!e||!l(this,Nn))return;const r=e.offsetWidth,n=e.offsetHeight;if(l(this,ds).box==="border-box")return{width:r,height:n};const o=l(this,Nn).getComputedStyle(e),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=r-s-a,f=n-i-c;return{width:u,height:f}}getSize(){return l(this,us)?l(this,In):this.calculateSize()??l(this,In)}get current(){var e;return(e=d(l(this,hs)))==null||e(),this.getSize()}get width(){return d(l(this,Ll))}get height(){return d(l(this,Dl))}}In=new WeakMap,us=new WeakMap,ds=new WeakMap,fs=new WeakMap,Nn=new WeakMap,Ll=new WeakMap,Dl=new WeakMap,hs=new WeakMap;function Vo(t){lt(()=>()=>{t()})}function c_(t,e){return setTimeout(e,t)}function zr(t){bv().then(t)}const u_=1,d_=9,f_=11;function wu(t){return Ta(t)&&t.nodeType===u_&&typeof t.nodeName=="string"}function Pg(t){return Ta(t)&&t.nodeType===d_}function h_(t){var e;return Ta(t)&&((e=t.constructor)==null?void 0:e.name)==="VisualViewport"}function v_(t){return Ta(t)&&t.nodeType!==void 0}function Cg(t){return v_(t)&&t.nodeType===f_&&"host"in t}function g_(t,e){var n;if(!t||!e||!wu(t)||!wu(e))return!1;const r=(n=e.getRootNode)==null?void 0:n.call(e);if(t===e||t.contains(e))return!0;if(r&&Cg(r)){let o=e;for(;o;){if(t===o)return!0;o=o.parentNode||o.host}}return!1}function Ma(t){return Pg(t)?t:h_(t)?t.document:(t==null?void 0:t.ownerDocument)??document}function Ag(t){var e;return Cg(t)?Ag(t.host):Pg(t)?t.defaultView??window:wu(t)?((e=t.ownerDocument)==null?void 0:e.defaultView)??window:window}function p_(t){let e=t.activeElement;for(;e!=null&&e.shadowRoot;){const r=e.shadowRoot.activeElement;if(r===e)break;e=r}return e}var xi;class _d{constructor(e){ae(this,"element");_(this,xi,W(()=>this.element.current?this.element.current.getRootNode()??document:document));ae(this,"getDocument",()=>Ma(this.root));ae(this,"getWindow",()=>this.getDocument().defaultView??window);ae(this,"getActiveElement",()=>p_(this.root));ae(this,"isActiveElement",e=>e===this.getActiveElement());ae(this,"querySelector",e=>this.root?this.root.querySelector(e):null);ae(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);ae(this,"setTimeout",(e,r)=>this.getWindow().setTimeout(e,r));ae(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=pe(e):this.element=e}get root(){return d(l(this,xi))}set root(e){R(l(this,xi),e)}getElementById(e){return this.root.getElementById(e)}}xi=new WeakMap;function Hn(t,e){return{[Jm()]:r=>Oa(t)?(t.current=r,mr(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t.current=null,e==null||e(null))}):(t(r),mr(()=>e==null?void 0:e(r)),()=>{"isConnected"in r&&r.isConnected||(t(null),e==null||e(null))})}}function Eg(t){return t?"true":"false"}function Tg(t){return t?"":void 0}function Og(t){return t?"open":"closed"}function m_(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}var vs,_i;class b_{constructor(e){_(this,vs);_(this,_i);ae(this,"attrs");$(this,vs,e.getVariant?e.getVariant():null),$(this,_i,l(this,vs)?`data-${l(this,vs)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(r=>[r,this.getAttr(r)]))}getAttr(e,r){return r?`data-${r}-${e}`:`${l(this,_i)}${e}`}selector(e,r){return`[${this.getAttr(e,r)}]`}}vs=new WeakMap,_i=new WeakMap;function Mg(t){const e=new b_(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const di="ArrowDown",kd="ArrowLeft",Sd="ArrowRight",kl="ArrowUp",$g="End",Ig="Enter",y_="Escape",Ng="Home",w_="PageDown",x_="PageUp",Pd=" ",__="Tab";function k_(t){return window.getComputedStyle(t).getPropertyValue("direction")}function S_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?kd:Sd,vertical:di}[e]}function P_(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?Sd:kd,vertical:kl}[e]}function C_(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:S_(t,e),prevKey:P_(t,e)}}const zg=typeof document<"u",jf=A_();function A_(){var t,e;return zg&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Un(t){return t instanceof HTMLElement}function li(t){return t instanceof Element}function Rg(t){return t instanceof Element||t instanceof SVGElement}function E_(t){return t!==null}function T_(t){return t instanceof HTMLInputElement&&"select"in t}var Tt,on;class O_{constructor(e){_(this,Tt);_(this,on,Do(null));$(this,Tt,e)}getCandidateNodes(){return l(this,Tt).rootNode.current?l(this,Tt).candidateSelector?Array.from(l(this,Tt).rootNode.current.querySelectorAll(l(this,Tt).candidateSelector)):l(this,Tt).candidateAttr?Array.from(l(this,Tt).rootNode.current.querySelectorAll(`[${l(this,Tt).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){var r;const e=this.getCandidateNodes();e.length&&((r=e[0])==null||r.focus())}handleKeydown(e,r,n=!1){var p,m;const o=l(this,Tt).rootNode.current;if(!o||!e)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(e),a=k_(o),{nextKey:c,prevKey:u}=C_(a,l(this,Tt).orientation.current),f=l(this,Tt).loop.current,v={[c]:i+1,[u]:i-1,[Ng]:0,[$g]:s.length-1};if(n){const y=c===di?Sd:di,w=u===kl?kd:kl;v[y]=i+1,v[w]=i-1}let h=v[r.key];if(h===void 0)return;r.preventDefault(),h<0&&f?h=s.length-1:h===s.length&&f&&(h=0);const g=s[h];if(g)return g.focus(),l(this,on).current=g.id,(m=(p=l(this,Tt)).onCandidateFocus)==null||m.call(p,g),g}getTabIndex(e){const r=this.getCandidateNodes(),n=l(this,on).current!==null;return e&&!n&&r[0]===e?(l(this,on).current=e.id,0):(e==null?void 0:e.id)===l(this,on).current?0:-1}setCurrentTabStopId(e){l(this,on).current=e}focusCurrentTabStop(){var n;const e=l(this,on).current;if(!e)return;const r=(n=l(this,Tt).rootNode.current)==null?void 0:n.querySelector(`#${e}`);!r||!Un(r)||r.focus()}}Tt=new WeakMap,on=new WeakMap;var bo,Ir,sn,an,Xn,xu,_u;class M_{constructor(e){_(this,Xn);_(this,bo);_(this,Ir,null);_(this,sn,null);_(this,an,0);$(this,bo,e),Vo(()=>j(this,Xn,xu).call(this))}run(e){j(this,Xn,xu).call(this);const r=l(this,bo).ref.current;if(!r)return;if(typeof r.getAnimations!="function"){j(this,Xn,_u).call(this,e);return}const n=l(this,an),o=()=>{n===l(this,an)&&j(this,Xn,_u).call(this,e)},s=()=>{if(n!==l(this,an))return;const a=r.getAnimations();if(a.length===0){o();return}Promise.all(a.map(c=>c.finished)).then(()=>{o()}).catch(()=>{if(n!==l(this,an))return;if(r.getAnimations().some(f=>f.pending||f.playState!=="finished")){s();return}o()})},i=()=>{$(this,Ir,window.requestAnimationFrame(()=>{$(this,Ir,null),s()}))};if(!l(this,bo).afterTick.current){i();return}$(this,Ir,window.requestAnimationFrame(()=>{$(this,Ir,null);const a="data-starting-style";if(!r.hasAttribute(a)){i();return}$(this,sn,new MutationObserver(()=>{var c;n===l(this,an)&&(r.hasAttribute(a)||((c=l(this,sn))==null||c.disconnect(),$(this,sn,null),i()))})),l(this,sn).observe(r,{attributes:!0,attributeFilter:[a]})}))}}bo=new WeakMap,Ir=new WeakMap,sn=new WeakMap,an=new WeakMap,Xn=new WeakSet,xu=function(){var e;l(this,Ir)!==null&&(window.cancelAnimationFrame(l(this,Ir)),$(this,Ir,null)),(e=l(this,sn))==null||e.disconnect(),$(this,sn,null),ef(this,an)._++},_u=function(e){const r=()=>{e()};l(this,bo).afterTick?zr(r):r()};var Wt,ki,Si,ln,cn,Pi,zn,Ci,ku;class $_{constructor(e){_(this,Ci);_(this,Wt);_(this,ki);_(this,Si);_(this,ln,Ce(!1));_(this,cn,Ce(void 0));_(this,Pi,!1);_(this,zn,null);$(this,Wt,e),R(l(this,ln),e.open.current,!0),$(this,ki,e.enabled??!0),$(this,Si,new M_({ref:l(this,Wt).ref,afterTick:l(this,Wt).open})),Vo(()=>j(this,Ci,ku).call(this)),nr(()=>l(this,Wt).open.current,r=>{var n,o,s,i,a,c;if(!l(this,Pi)){$(this,Pi,!0);return}if(j(this,Ci,ku).call(this),!r&&((o=(n=l(this,Wt)).shouldSkipExitAnimation)!=null&&o.call(n))){R(l(this,ln),!1),R(l(this,cn),void 0),(i=(s=l(this,Wt)).onComplete)==null||i.call(s);return}if(r&&R(l(this,ln),!0),R(l(this,cn),r?"starting":"ending",!0),r&&$(this,zn,window.requestAnimationFrame(()=>{$(this,zn,null),l(this,Wt).open.current&&R(l(this,cn),void 0)})),!l(this,ki)){r||R(l(this,ln),!1),R(l(this,cn),void 0),(c=(a=l(this,Wt)).onComplete)==null||c.call(a);return}l(this,Si).run(()=>{var u,f;r===l(this,Wt).open.current&&(l(this,Wt).open.current||R(l(this,ln),!1),R(l(this,cn),void 0),(f=(u=l(this,Wt)).onComplete)==null||f.call(u))})})}get shouldRender(){return d(l(this,ln))}get transitionStatus(){return d(l(this,cn))}}Wt=new WeakMap,ki=new WeakMap,Si=new WeakMap,ln=new WeakMap,cn=new WeakMap,Pi=new WeakMap,zn=new WeakMap,Ci=new WeakSet,ku=function(){l(this,zn)!==null&&(window.cancelAnimationFrame(l(this,zn)),$(this,zn,null))};function ht(){}function $a(t,e){return`bits-${t}`}function I_(t,e){var r=se(),n=E(r);Pv(n,()=>e.children,o=>{var s=se(),i=E(s);Fe(i,()=>e.children??ze),b(o,s)}),b(t,r)}const N_=new Bo("BitsConfig");function z_(){const t=new R_(null,{});return N_.getOr(t).opts}class R_{constructor(e,r){ae(this,"opts");const n=F_(e,r);this.opts={defaultPortalTo:n(o=>o.defaultPortalTo),defaultLocale:n(o=>o.defaultLocale)}}}function F_(t,e){return r=>pe(()=>{var s,i;const o=(s=r(e))==null?void 0:s.current;if(o!==void 0)return o;if(t!==null)return(i=r(t.opts))==null?void 0:i.current})}function L_(t,e){return r=>{const n=z_();return pe(()=>{const o=r();if(o!==void 0)return o;const s=t(n).current;return s!==void 0?s:e})}}const D_=L_(t=>t.defaultPortalTo,"body");function B_(t,e){$e(e,!0);const r=D_(()=>e.to),n=ym();let o=W(s);function s(){if(!zg||e.disabled)return null;let v=null;return typeof r.current=="string"?v=document.querySelector(r.current):v=r.current,v}let i;function a(){i&&(cb(i),i=null)}nr([()=>d(o),()=>e.disabled],([v,h])=>{if(!v||h){a();return}return i=Sv(I_,{target:v,props:{children:e.children},context:n}),()=>{a()}});var c=se(),u=E(c);{var f=v=>{var h=se(),g=E(h);Fe(g,()=>e.children??ze),b(v,h)};Be(u,v=>{e.disabled&&v(f)})}b(t,c),Ie()}class V_{constructor(e,r={bubbles:!0,cancelable:!0}){ae(this,"eventName");ae(this,"options");this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const o=s=>{r(s)};return $t(e,this.eventName,o,n)}}function Gf(t,e=500){let r=null;const n=(...o)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{t(...o)},e)};return n.destroy=()=>{r!==null&&(clearTimeout(r),r=null)},n}function Fg(t,e){return t===e||t.contains(e)}function Lg(t){return(t==null?void 0:t.ownerDocument)??document}function W_(t,e){const{clientX:r,clientY:n}=t,o=e.getBoundingClientRect();return ro.right||no.bottom}const j_=[Ig,Pd],G_=[di,x_,Ng],Dg=[kl,w_,$g],H_=[...G_,...Dg];function Zr(t){return t.pointerType==="mouse"}function K_(t,{select:e=!1}={}){if(!t||!t.focus)return;const r=Ma(t);if(r.activeElement===t)return;const n=r.activeElement;t.focus({preventScroll:!0}),t!==n&&T_(t)&&e&&t.select()}function U_(t,{select:e=!1}={},r){const n=r();for(const o of t)if(K_(o,{select:e}),r()!==n)return!0}let Hs=Ce(!1);const or=class or{constructor(){lt(()=>(or._refs===0&&(or._cleanup=av(()=>{const e=[],r=o=>{R(Hs,!1)},n=o=>{R(Hs,!0)};return e.push($t(document,"pointerdown",r,{capture:!0}),$t(document,"pointermove",r,{capture:!0}),$t(document,"keydown",n,{capture:!0})),es(...e)})),or._refs++,()=>{var e;or._refs--,or._refs===0&&(R(Hs,!1),(e=or._cleanup)==null||e.call(or))}))}get current(){return d(Hs)}set current(e){R(Hs,e,!0)}};ae(or,"_refs",0),ae(or,"_cleanup");let Su=or;/*! -* tabbable 6.5.0 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Bg=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Sl=Bg.join(","),Vg=typeof Element>"u",Mo=Vg?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Pl=!Vg&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t==null?void 0:t.ownerDocument},Cl=function(e,r){var n;r===void 0&&(r=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),s=o===""||o==="true",i=s||r&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Cl(e.parentNode));return i},q_=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},Wg=function(e,r,n){if(Cl(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Sl));return r&&Mo.call(e,Sl)&&o.unshift(e),o=o.filter(n),o},Al=function(e,r,n){for(var o=[],s=Array.from(e);s.length;){var i=s.shift();if(!Cl(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,u=Al(c,!0,n);n.flatten?o.push.apply(o,u):o.push({scopeParent:i,candidates:u})}else{var f=Mo.call(i,Sl);f&&n.filter(i)&&(r||!e.includes(i))&&o.push(i);var v=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),h=!Cl(v,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(v&&h){var g=Al(v===!0?i.children:v.children,!0,n);n.flatten?o.push.apply(o,g):o.push({scopeParent:i,candidates:g})}else s.unshift.apply(s,i.children)}}return o},jg=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Gg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||q_(e))&&!jg(e)?0:e.tabIndex},Y_=function(e,r){var n=Gg(e);return n<0&&r&&!jg(e)?0:n},X_=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},Hg=function(e){return e.tagName==="INPUT"},Z_=function(e){return Hg(e)&&e.type==="hidden"},J_=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},Q_=function(e,r){for(var n=0;nsummary:first-of-type"),u=c?e.parentElement:e;if(Mo.call(u,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var f=e;e;){var v=e.parentElement,h=Pl(e);if(v&&!v.shadowRoot&&o(v)===!0)return Hf(e);e.assignedSlot?e=e.assignedSlot:!v&&h!==e.ownerDocument?e=h.host:e=v}e=f}if(n0(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return Hf(e);return!1},s0=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n=0)},Kg=function(e){var r=[],n=[];return e.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Y_(a,i),u=i?Kg(o.candidates):a;c===0?i?r.push.apply(r,u):r.push(a):n.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:u})}),n.sort(X_).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(r)},Ug=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Al([e],r.includeContainer,{filter:Pu.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:i0}):n=Wg(e,r.includeContainer,Pu.bind(null,r)),Kg(n)},qg=function(e,r){r=r||{};var n;return r.getShadowRoot?n=Al([e],r.includeContainer,{filter:El.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=Wg(e,r.includeContainer,El.bind(null,r)),n},Cd=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Mo.call(e,Sl)===!1?!1:Pu(r,e)},a0=Bg.concat("iframe:not([inert]):not([inert] *)").join(","),Yg=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return Mo.call(e,a0)===!1?!1:El(r,e)};function ci(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function l0(t,e){if(!Cd(t,ci()))return c0(t,e);const r=Ma(t),n=Ug(r.body,ci());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1)[0]}function c0(t,e){const r=Ma(t);if(!Yg(t,ci()))return r.body;const n=qg(r.body,ci());e==="prev"&&n.reverse();const o=n.indexOf(t);return o===-1?r.body:n.slice(o+1).find(i=>Cd(i,ci()))??r.body}function Xg(t,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const v=n.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(v)).length<=1)return Xg(t,v,r);const g=r==null?void 0:r.toLowerCase();if(g&&g.startsWith(v)&&g.charAt(v.length)===" "&&e.trim()===v)return r;const p=t.filter(m=>m.toLowerCase().startsWith(n));if(p.length>0){const m=r?t.indexOf(r):-1;return Kf(p,Math.max(m,0)).find(P=>P!==r)||r}}const s=e.length>1&&Array.from(e).every(v=>v===e[0])?e[0]:e,i=s.toLowerCase(),a=r?t.indexOf(r):-1;let c=Kf(t,Math.max(a,0));s.length===1&&(c=c.filter(v=>v!==r));const f=c.find(v=>v==null?void 0:v.toLowerCase().startsWith(i));return f!==r?f:void 0}function Kf(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const u0={afterMs:1e4,onChange:ht};function d0(t,e){const{afterMs:r,onChange:n,getWindow:o}={...u0,...e};let s=null,i=Ce(Yt(t));function a(){return o().setTimeout(()=>{R(i,t,!0),n==null||n(t)},r)}return lt(()=>()=>{s&&o().clearTimeout(s)}),pe(()=>d(i),c=>{R(i,c,!0),n==null||n(c),s&&o().clearTimeout(s),s=a()})}var un,dn,Bl,Vl;class f0{constructor(e){_(this,un);_(this,dn);_(this,Bl,W(()=>l(this,un).onMatch?l(this,un).onMatch:e=>e.focus()));_(this,Vl,W(()=>l(this,un).getCurrentItem?l(this,un).getCurrentItem:l(this,un).getActiveElement));$(this,un,e),$(this,dn,d0("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){var c,u;if(!r.length)return;l(this,dn).current=l(this,dn).current+e;const n=d(l(this,Vl))(),o=((u=(c=r.find(f=>f===n))==null?void 0:c.textContent)==null?void 0:u.trim())??"",s=r.map(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())??""}),i=Xg(s,l(this,dn).current,o),a=r.find(f=>{var v;return((v=f.textContent)==null?void 0:v.trim())===i});return a&&d(l(this,Bl))(a),a}resetTypeahead(){l(this,dn).current=""}get search(){return l(this,dn).current}}un=new WeakMap,dn=new WeakMap,Bl=new WeakMap,Vl=new WeakMap;const h0="data-context-menu-trigger",v0="data-context-menu-content",Zg=new Bo("Menu.Root"),Ad=new Bo("Menu.Root | Menu.Sub"),Jg=new Bo("Menu.Content"),g0=new V_("bitsmenuopen",{bubbles:!1,cancelable:!0}),p0=Mg({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var rt,yo,Rn,jt,cr,wo,fn,gs,Ee,Qg,ol,Cu,Au,Eu,Fn,ri,sl,ni,il,ep,Ai,tp,al,ll,qo,cl;class m0{constructor(e){_(this,Ee);_(this,rt);_(this,yo,null);_(this,Rn,null);_(this,jt,!1);_(this,cr,null);_(this,wo,null);_(this,fn,null);_(this,gs,null);_(this,Fn,null);_(this,Ai,e=>{if(!l(this,jt)||!l(this,cr)||!Zr(e))return;const r=l(this,rt).triggerNode(),n=l(this,rt).contentNode();if(!r||!n){j(this,Ee,ni).call(this);return}j(this,Ee,qo).call(this);const o={x:e.clientX,y:e.clientY};$(this,fn,o);const s=r.getBoundingClientRect(),i=n.getBoundingClientRect();if(l(this,cr)==="content"&&qf(o,i)){j(this,Ee,ri).call(this);return}if(l(this,cr)==="trigger"&&b0(o,s,4)){j(this,Ee,ri).call(this);return}if(j(this,Ee,ep).call(this,o)){j(this,Ee,ll).call(this);return}const a=j(this,Ee,ol).call(this,o,l(this,cr));if(!a){j(this,Ee,ni).call(this);return}if(j(this,Ee,Cu).call(this,o,a.corridor,a.intent)){j(this,Ee,ll).call(this);return}j(this,Ee,ni).call(this)});$(this,rt,e),nr([e.triggerNode,e.contentNode,e.enabled],([r,n,o])=>{if(j(this,Ee,il).call(this),!r||!n||!o)return;const s=v=>{Zr(v)&&($(this,gs,{x:v.clientX,y:v.clientY}),l(this,jt)||j(this,Ee,Au).call(this,v,"content"))},i=v=>{Zr(v)&&j(this,Ee,Eu).call(this,v,"content")},a=v=>{Zr(v)&&(l(this,jt)||j(this,Ee,Au).call(this,v,"trigger"))},c=v=>{if(Zr(v)){if(li(v.relatedTarget)){const h=l(this,rt).subContentSelector(),g=v.relatedTarget.closest(h);if(g&&g!==n&&g.id&&!!n.querySelector(`[aria-controls="${g.id}"]`))return}j(this,Ee,Eu).call(this,v,"trigger")}},u=v=>{Zr(v)&&j(this,Ee,ri).call(this)},f=v=>{Zr(v)&&j(this,Ee,ri).call(this)};return r.addEventListener("pointermove",s),r.addEventListener("pointerleave",i),r.addEventListener("pointerenter",u),n.addEventListener("pointermove",a),n.addEventListener("pointerleave",c),n.addEventListener("pointerenter",f),()=>{r.removeEventListener("pointermove",s),r.removeEventListener("pointerleave",i),r.removeEventListener("pointerenter",u),n.removeEventListener("pointermove",a),n.removeEventListener("pointerleave",c),n.removeEventListener("pointerenter",f),j(this,Ee,il).call(this)}}),Vo(()=>{j(this,Ee,il).call(this)})}}rt=new WeakMap,yo=new WeakMap,Rn=new WeakMap,jt=new WeakMap,cr=new WeakMap,wo=new WeakMap,fn=new WeakMap,gs=new WeakMap,Ee=new WeakSet,Qg=function(){var r;const e=l(this,rt).parentContentNode();return e?e.getBoundingClientRect():((r=l(this,rt).triggerNode())==null?void 0:r.getBoundingClientRect())??null},ol=function(e,r){const n=l(this,rt).triggerNode(),o=l(this,rt).contentNode();if(!n||!o)return null;const s=n.getBoundingClientRect(),i=o.getBoundingClientRect(),a=y0(s,i);let c,u,f;return r==="content"?(c=l(this,jt)?l(this,wo)??e:e,u=i):(c=l(this,gs)??e,u=j(this,Ee,Qg).call(this)??s,f=i),$(this,wo,c),{corridor:w0(s,i,a),intent:x0(c,u,a,r,f),targetRect:u,side:a}},Cu=function(e,r,n){return Uf(e,r)||Uf(e,n)},Au=function(e,r){const n={x:e.clientX,y:e.clientY};j(this,Ee,ol).call(this,n,r)&&($(this,cr,r),$(this,fn,n))},Eu=function(e,r){if(!l(this,rt).enabled())return;const n=l(this,rt).triggerNode(),o=l(this,rt).contentNode();if(!n||!o)return;const s=e.relatedTarget;if(li(s)&&(r==="content"&&o.contains(s)||r==="trigger"&&n.contains(s)))return;const i={x:e.clientX,y:e.clientY},a=j(this,Ee,ol).call(this,i,r);if(a){if(!qf(i,a.targetRect)&&!j(this,Ee,Cu).call(this,i,a.corridor,a.intent)){j(this,Ee,cl).call(this);return}$(this,jt,!0),$(this,cr,r),$(this,fn,i),l(this,rt).setIsPointerInTransit(!0),j(this,Ee,tp).call(this),j(this,Ee,ll).call(this)}},Fn=new WeakMap,ri=function(){if(!l(this,jt))return;const e=l(this,cr)==="trigger";j(this,Ee,al).call(this),j(this,Ee,qo).call(this),$(this,jt,!1),j(this,Ee,cl).call(this),e?(j(this,Ee,sl).call(this),$(this,Fn,setTimeout(()=>{$(this,Fn,null),l(this,rt).setIsPointerInTransit(!1)},100))):l(this,rt).setIsPointerInTransit(!1)},sl=function(){l(this,Fn)!==null&&(clearTimeout(l(this,Fn)),$(this,Fn,null))},ni=function(){const e=l(this,fn);j(this,Ee,al).call(this),j(this,Ee,qo).call(this),j(this,Ee,sl).call(this),$(this,jt,!1),l(this,rt).setIsPointerInTransit(!1),j(this,Ee,cl).call(this),l(this,rt).onIntentExit(e)},il=function(){j(this,Ee,al).call(this),j(this,Ee,qo).call(this),j(this,Ee,sl).call(this),l(this,jt)&&l(this,rt).setIsPointerInTransit(!1),$(this,jt,!1),$(this,cr,null),$(this,wo,null),$(this,fn,null),$(this,gs,null)},ep=function(e){const r=l(this,rt).contentNode();if(!r)return!1;const o=r.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const s=l(this,rt).subContentSelector(),i=o.closest(s);return!i||i===r?!1:i.id?!!r.querySelector(`[aria-controls="${i.id}"]`):!1},Ai=new WeakMap,tp=function(){if(l(this,yo))return;const e=Ma(l(this,rt).triggerNode()??l(this,rt).contentNode());e&&(e.addEventListener("pointermove",l(this,Ai),!0),$(this,yo,()=>{e.removeEventListener("pointermove",l(this,Ai),!0),$(this,yo,null)}))},al=function(){var e;(e=l(this,yo))==null||e.call(this)},ll=function(){j(this,Ee,qo).call(this),$(this,Rn,setTimeout(()=>{$(this,Rn,null),l(this,jt)&&j(this,Ee,ni).call(this)},500))},qo=function(){l(this,Rn)!==null&&(clearTimeout(l(this,Rn)),$(this,Rn,null))},cl=function(){$(this,cr,null),$(this,wo,null),$(this,fn,null)};function Uf(t,e){const{x:r,y:n}=t;let o=!1;for(let s=0,i=e.length-1;sn!=f>n&&r<(u-a)*(n-c)/(f-c)+a&&(o=!o)}return o}function qf(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function b0(t,e,r){return t.x>=e.left+r&&t.x<=e.right-r&&t.y>=e.top+r&&t.y<=e.bottom-r}function y0(t,e){const r=t.left+t.width/2,n=t.top+t.height/2,o=e.left+e.width/2,s=e.top+e.height/2,i=o-r,a=s-n;return Math.abs(i)>Math.abs(a)?i>0?"right":"left":a>0?"bottom":"top"}function w0(t,e,r){switch(r){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function x0(t,e,r,n,o){const i=n==="trigger"?_0(r):r,a=o?Math.min(e.top,o.top)-8:e.top-8,c=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,f=o?Math.max(e.right,o.right)+8:e.right+8;switch(i){case"right":return[t,{x:e.left,y:a},{x:e.left,y:c}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:c}];case"bottom":return[t,{x:u,y:e.top},{x:f,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:f,y:e.bottom}]}}function _0(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Ei,Ti;const Vd=class Vd{constructor(e){ae(this,"opts");ae(this,"isUsingKeyboard",new Su);_(this,Ei,Ce(!1));_(this,Ti,Ce(!1));ae(this,"getBitsAttr",e=>p0.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const r=new Vd(e);return Zg.set(r)}get ignoreCloseAutoFocus(){return d(l(this,Ei))}set ignoreCloseAutoFocus(e){R(l(this,Ei),e,!0)}get isPointerInTransit(){return d(l(this,Ti))}set isPointerInTransit(e){R(l(this,Ti),e,!0)}};Ei=new WeakMap,Ti=new WeakMap;let Tu=Vd;var Oi,Mi;const Wd=class Wd{constructor(e,r,n){ae(this,"opts");ae(this,"root");ae(this,"parentMenu");ae(this,"contentId",pe(()=>""));_(this,Oi,Ce(null));ae(this,"contentPresence");_(this,Mi,Ce(null));this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new $_({ref:pe(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>{var o,s;return this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:((s=(o=this.root.opts).shouldSkipExitAnimation)==null?void 0:s.call(o))??!1}}),n&&nr(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}static create(e,r){return Ad.set(new Wd(e,r,null))}get contentNode(){return d(l(this,Oi))}set contentNode(e){R(l(this,Oi),e,!0)}get triggerNode(){return d(l(this,Mi))}set triggerNode(e){R(l(this,Mi),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Oi=new WeakMap,Mi=new WeakMap;let Ou=Wd;var $i,Ii,Ni,zi,Ri,jr,rp,ul,np,Fi,Li;const jd=class jd{constructor(e,r){_(this,jr);ae(this,"opts");ae(this,"parentMenu");ae(this,"rovingFocusGroup");ae(this,"domContext");ae(this,"attachment");_(this,$i,Ce(""));_(this,Ii,0);_(this,Ni);_(this,zi,Ce(!1));_(this,Ri);ae(this,"onCloseAutoFocus",e=>{var r,n;if((n=(r=this.opts.onCloseAutoFocus).current)==null||n.call(r,e),!(e.defaultPrevented||l(this,Ri))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Cd(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});_(this,Fi,W(()=>({open:this.parentMenu.opts.open.current})));_(this,Li,W(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Og(this.parentMenu.opts.open.current),...m_(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));ae(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=r,this.domContext=new _d(e.ref),this.attachment=Hn(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,$(this,Ri,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new m0({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>{var n;return((n=this.parentMenu.parentMenu)==null?void 0:n.contentNode)??null},subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>{var n;return this.parentMenu.opts.open.current&&!!((n=this.parentMenu.triggerNode)!=null&&n.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")))},onIntentExit:n=>{this.parentMenu.opts.open.current=!1,j(this,jr,np).call(this,n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),$(this,Ni,new f0({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new O_({rootNode:pe(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:pe(()=>"vertical")}),nr(()=>this.parentMenu.contentNode,n=>{if(!n)return;const o=()=>{zr(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return g0.listen(n,o)}),lt(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,Ii))})}static create(e){return Jg.set(new jd(e,Ad.get()))}get search(){return d(l(this,$i))}set search(e){R(l(this,$i),e,!0)}get mounted(){return d(l(this,zi))}set mounted(e){R(l(this,zi),e,!0)}handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=l0(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),zr(()=>{n.focus(),zr(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){var u,f;if(e.defaultPrevented)return;if(e.key===__){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!Un(r)||!Un(n))return;const o=((u=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`))==null?void 0:u.id)===this.parentMenu.contentId.current,s=e.ctrlKey||e.altKey||e.metaKey,i=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const c=j(this,jr,rp).call(this);o&&!s&&i&&l(this,Ni).call(this,e.key,c),((f=e.target)==null?void 0:f.id)===this.parentMenu.contentId.current&&H_.includes(e.key)&&(e.preventDefault(),Dg.includes(e.key)&&c.reverse(),U_(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){var r,n;li(e.currentTarget)&&li(e.target)&&((n=(r=e.currentTarget).contains)!=null&&n.call(r,e.target)||(this.domContext.getWindow().clearTimeout(l(this,Ii)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&zr(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return j(this,jr,ul).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||j(this,jr,ul).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;const r=this.parentMenu.contentNode;r==null||r.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!j(this,jr,ul).call(this)}handleInteractOutside(e){var n;if(!Rg(e.target))return;const r=(n=this.parentMenu.triggerNode)==null?void 0:n.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,zr(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return d(l(this,Fi))}set snippetProps(e){R(l(this,Fi),e)}get props(){return d(l(this,Li))}set props(e){R(l(this,Li),e)}};$i=new WeakMap,Ii=new WeakMap,Ni=new WeakMap,zi=new WeakMap,Ri=new WeakMap,jr=new WeakSet,rp=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},ul=function(){return this.parentMenu.root.isPointerInTransit},np=function(e){var s;if(!e)return;const r=(s=this.parentMenu.parentMenu)==null?void 0:s.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!li(n))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!r.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},Fi=new WeakMap,Li=new WeakMap;let Mu=jd;var ps,Di;class k0{constructor(e,r){ae(this,"opts");ae(this,"content");ae(this,"attachment");_(this,ps,Ce(!1));_(this,Di,W(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Eg(this.opts.disabled.current),"data-disabled":Tg(this.opts.disabled.current),"data-highlighted":d(l(this,ps))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=r,this.attachment=Hn(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&Zr(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Un(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||Zr(e)&&this.content.onItemLeave(e)}onfocus(e){zr(()=>{e.defaultPrevented||this.opts.disabled.current||R(l(this,ps),!0)})}onblur(e){zr(()=>{e.defaultPrevented||R(l(this,ps),!1)})}get props(){return d(l(this,Di))}set props(e){R(l(this,Di),e)}}ps=new WeakMap,Di=new WeakMap;var Bi,Wl,op,Vi;const Gd=class Gd{constructor(e,r){_(this,Wl);ae(this,"opts");ae(this,"item");ae(this,"root");_(this,Bi,!1);_(this,Vi,W(()=>Wr(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const r=new k0(e,Jg.get());return new Gd(e,r)}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Pd)&&j_.includes(e.key)){if(!Un(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||j(this,Wl,op).call(this)}onpointerup(e){var r;if(!e.defaultPrevented&&!l(this,Bi)){if(!Un(e.currentTarget))return;(r=e.currentTarget)==null||r.click()}}onpointerdown(e){$(this,Bi,!0)}get props(){return d(l(this,Vi))}set props(e){R(l(this,Vi),e)}};Bi=new WeakMap,Wl=new WeakSet,op=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},Vi=new WeakMap;let $u=Gd;var Wi;const Hd=class Hd{constructor(e,r){ae(this,"opts");ae(this,"root");ae(this,"attachment");_(this,Wi,W(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=r,this.attachment=Hn(this.opts.ref)}static create(e){return new Hd(e,Zg.get())}get props(){return d(l(this,Wi))}set props(e){R(l(this,Wi),e)}};Wi=new WeakMap;let Iu=Hd;var jl,ji;const Kd=class Kd{constructor(e,r){ae(this,"opts");ae(this,"parentMenu");ae(this,"attachment");ae(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});ae(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});ae(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});ae(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Pd||e.key===Ig){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===di&&(this.parentMenu.onOpen(),e.preventDefault())}});_(this,jl,W(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));_(this,ji,W(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Eg(this.parentMenu.opts.open.current),"aria-controls":d(l(this,jl)),"data-disabled":Tg(this.opts.disabled.current),"data-state":Og(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=r,this.attachment=Hn(this.opts.ref,n=>this.parentMenu.triggerNode=n)}static create(e){return new Kd(e,Ad.get())}get props(){return d(l(this,ji))}set props(e){R(l(this,ji),e)}};jl=new WeakMap,ji=new WeakMap;let Nu=Kd;globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var ms,xo,Ln,bs,ys,Dn,Gi,hn,Gl,$s,sp,Hl,ws,Kl,Ul,ql,Yl,Hi,ip,Xl,Zl;const Ud=class Ud{constructor(e){_(this,$s);ae(this,"opts");_(this,ms);_(this,xo);_(this,Ln,{pointerdown:!1});_(this,bs,!1);_(this,ys,!1);_(this,Dn);_(this,Gi);_(this,hn,ht);_(this,Gl,e=>{e.defaultPrevented||this.opts.ref.current&&zr(()=>{var r,n;!this.opts.ref.current||l(this,Yl).call(this,e.target)||e.target&&!l(this,ys)&&((n=(r=l(this,Gi)).current)==null||n.call(r,e))})});_(this,Hl,e=>{let r=e;r.defaultPrevented&&(r=Yf(e)),l(this,ms).current(e)});_(this,ws,Gf(e=>{if(!this.opts.ref.current){l(this,hn).call(this);return}const r=this.opts.isValidEvent.current(e,this.opts.ref.current)||C0(e,this.opts.ref.current);if(!l(this,bs)||j(this,$s,ip).call(this)||!r){l(this,hn).call(this);return}let n=e;if(n.defaultPrevented&&(n=Yf(n)),l(this,xo).current!=="close"&&l(this,xo).current!=="defer-otherwise-close"){l(this,hn).call(this);return}e.pointerType==="touch"?(l(this,hn).call(this),$(this,hn,$t(l(this,Dn),"click",l(this,Hl),{once:!0}))):l(this,ms).current(n)},10));_(this,Kl,e=>{l(this,Ln)[e.type]=!0});_(this,Ul,e=>{l(this,Ln)[e.type]=!1});_(this,ql,()=>{this.opts.ref.current&&$(this,bs,P0(this.opts.ref.current))});_(this,Yl,e=>this.opts.ref.current?Fg(this.opts.ref.current,e):!1);_(this,Hi,Gf(()=>{for(const e in l(this,Ln))l(this,Ln)[e]=!1;$(this,bs,!1)},20));_(this,Xl,()=>{$(this,ys,!0)});_(this,Zl,()=>{$(this,ys,!1)});ae(this,"props",{onfocuscapture:l(this,Xl),onblurcapture:l(this,Zl)});this.opts=e,$(this,xo,e.interactOutsideBehavior),$(this,ms,e.onInteractOutside),$(this,Gi,e.onFocusOutside),lt(()=>{$(this,Dn,Lg(this.opts.ref.current))});let r=ht;const n=()=>{l(this,Hi).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,ws).destroy(),r()};nr([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return c_(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,l(this,xo)),r(),r=j(this,$s,sp).call(this))}),n}),Vo(()=>{l(this,Hi).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,ws).destroy(),l(this,hn).call(this),r()})}static create(e){return new Ud(e)}};ms=new WeakMap,xo=new WeakMap,Ln=new WeakMap,bs=new WeakMap,ys=new WeakMap,Dn=new WeakMap,Gi=new WeakMap,hn=new WeakMap,Gl=new WeakMap,$s=new WeakSet,sp=function(){return es($t(l(this,Dn),"pointerdown",es(l(this,Kl),l(this,ql)),{capture:!0}),$t(l(this,Dn),"pointerdown",es(l(this,Ul),l(this,ws))),$t(l(this,Dn),"focusin",l(this,Gl)))},Hl=new WeakMap,ws=new WeakMap,Kl=new WeakMap,Ul=new WeakMap,ql=new WeakMap,Yl=new WeakMap,Hi=new WeakMap,ip=function(){return Object.values(l(this,Ln)).some(Boolean)},Xl=new WeakMap,Zl=new WeakMap;let zu=Ud;function S0(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:r}])=>r==="close"||r==="ignore")}function P0(t){const e=[...globalThis.bitsDismissableLayers],r=S0(e);if(r)return r[0].opts.ref.current===t;const[n]=e[0];return n.opts.ref.current===t}function C0(t,e){const r=t.target;if(!Rg(r))return!1;const n=!!r.closest(`[${h0}]`),o=!!e.closest(`[${v0}]`);return"button"in t&&t.button>0&&!n?!1:"button"in t&&t.button===0&&n&&o?!0:n&&o?!1:Lg(r).documentElement.contains(r)&&!Fg(e,r)&&W_(t,e)}function Yf(t){const e=t.currentTarget,r=t.target;let n;t instanceof PointerEvent?n=new PointerEvent(t.type,t):n=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(n,{get:(i,a)=>a==="currentTarget"?e:a==="target"?r:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:t[a]})}function A0(t,e){$e(e,!0);let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"onInteractOutside",3,ht),o=M(e,"onFocusOutside",3,ht),s=M(e,"isValidEvent",3,()=>!1);const i=zu.create({id:pe(()=>e.id),interactOutsideBehavior:pe(()=>r()),onInteractOutside:pe(()=>n()),enabled:pe(()=>e.enabled),onFocusOutside:pe(()=>o()),isValidEvent:pe(()=>s()),ref:e.ref});var a=se(),c=E(a);Fe(c,()=>e.children??ze,()=>({props:i.props})),b(t,a),Ie()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var Jl,Ql;const qd=class qd{constructor(e){ae(this,"opts");ae(this,"domContext");_(this,Jl,()=>$t(this.domContext.getDocument(),"keydown",l(this,Ql),{passive:!1}));_(this,Ql,e=>{if(e.key!==y_||!E0(this))return;const r=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(r)});this.opts=e,this.domContext=new _d(this.opts.ref);let r=ht;nr(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),r=l(this,Jl).call(this)),()=>{r(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new qd(e)}};Jl=new WeakMap,Ql=new WeakMap;let Ru=qd;function E0(t){const e=[...globalThis.bitsEscapeLayers],r=e.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(r)return r[0]===t;const[n]=e[0];return n===t}function T0(t,e){$e(e,!0);let r=M(e,"escapeKeydownBehavior",3,"close"),n=M(e,"onEscapeKeydown",3,ht);Ru.create({escapeKeydownBehavior:pe(()=>r()),onEscapeKeydown:pe(()=>n()),enabled:pe(()=>e.enabled),ref:e.ref});var o=se(),s=E(o);Fe(s,()=>e.children??ze),b(t,o),Ie()}var vn,Ki,_o;const ec=class ec{constructor(){_(this,vn,Fr([]));_(this,Ki,new WeakMap);_(this,_o,new WeakMap)}static getInstance(){return this.instance||(this.instance=new ec),this.instance}register(e){const r=this.getActive();r&&r!==e&&r.pause();const n=document.activeElement;n&&n!==document.body&&l(this,_o).set(e,n),l(this,vn).current=l(this,vn).current.filter(o=>o!==e),l(this,vn).current.unshift(e)}unregister(e){l(this,vn).current=l(this,vn).current.filter(n=>n!==e);const r=this.getActive();r&&r.resume()}getActive(){return l(this,vn).current[0]}setFocusMemory(e,r){l(this,Ki).set(e,r)}getFocusMemory(e){return l(this,Ki).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,r){l(this,_o).set(e,r)}getPreFocusMemory(e){return l(this,_o).get(e)}clearPreFocusMemory(e){l(this,_o).delete(e)}};vn=new WeakMap,Ki=new WeakMap,_o=new WeakMap,ae(ec,"instance");let Fu=ec;var Bn,Ot,Gt,ko,Vn,vt,ap,lp,cp,up,Du,dl,Bu;const Yd=class Yd{constructor(e){_(this,vt);_(this,Bn,!1);_(this,Ot,null);_(this,Gt,Fu.getInstance());_(this,ko,[]);_(this,Vn);$(this,Vn,e)}get paused(){return l(this,Bn)}pause(){$(this,Bn,!0)}resume(){$(this,Bn,!1)}mount(e){l(this,Ot)&&this.unmount(),$(this,Ot,e),l(this,Gt).register(this),j(this,vt,up).call(this),j(this,vt,lp).call(this)}unmount(){l(this,Ot)&&(j(this,vt,ap).call(this),j(this,vt,cp).call(this),l(this,Gt).unregister(this),l(this,Gt).clearPreFocusMemory(this),$(this,Ot,null))}static use(e){let r=null;return nr([()=>e.ref.current,()=>e.enabled.current],([n,o])=>{n&&o?(r||(r=new Yd(e)),r.mount(n)):r&&(r.unmount(),r=null)}),Vo(()=>{r==null||r.unmount()}),{get props(){return{tabindex:-1}}}}};Bn=new WeakMap,Ot=new WeakMap,Gt=new WeakMap,ko=new WeakMap,Vn=new WeakMap,vt=new WeakSet,ap=function(){for(const e of l(this,ko))e();$(this,ko,[])},lp=function(){if(!l(this,Ot))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Vn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Ot))return;const r=j(this,vt,dl).call(this);r?(r.focus(),l(this,Gt).setFocusMemory(this,r)):l(this,Ot).focus()})},cp=function(){var r,n;const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if((n=(r=l(this,Vn).onCloseAutoFocus).current)==null||n.call(r,e),!e.defaultPrevented){const o=l(this,Gt).getPreFocusMemory(this);if(o&&document.contains(o))try{o.focus()}catch{document.body.focus()}}},up=function(){if(!l(this,Ot)||!l(this,Vn).trap.current)return;const e=l(this,Ot),r=e.ownerDocument,n=i=>{if(l(this,Bn)||!l(this,Gt).isActiveScope(this))return;const a=i.target;if(!a)return;if(e.contains(a))l(this,Gt).setFocusMemory(this,a);else{const u=l(this,Gt).getFocusMemory(this);if(u&&e.contains(u)&&Yg(u))i.preventDefault(),u.focus();else{const f=j(this,vt,dl).call(this),v=j(this,vt,Bu).call(this)[0];(f||v||e).focus()}}},o=i=>{if(!l(this,Vn).loop||l(this,Bn)||i.key!=="Tab"||!l(this,Gt).isActiveScope(this))return;const a=j(this,vt,Du).call(this);if(a.length===0)return;const c=a[0],u=a[a.length-1];!i.shiftKey&&r.activeElement===u?(i.preventDefault(),c.focus()):i.shiftKey&&r.activeElement===c&&(i.preventDefault(),u.focus())};l(this,ko).push($t(r,"focusin",n,{capture:!0}),$t(e,"keydown",o));const s=new MutationObserver(()=>{const i=l(this,Gt).getFocusMemory(this);if(i&&!e.contains(i)){const a=j(this,vt,dl).call(this),c=j(this,vt,Bu).call(this)[0],u=a||c;u?(u.focus(),l(this,Gt).setFocusMemory(this,u)):e.focus()}});s.observe(e,{childList:!0,subtree:!0}),l(this,ko).push(()=>s.disconnect())},Du=function(){return l(this,Ot)?Ug(l(this,Ot),{includeContainer:!1,getShadowRoot:!0}):[]},dl=function(){return j(this,vt,Du).call(this)[0]||null},Bu=function(){return l(this,Ot)?qg(l(this,Ot),{includeContainer:!1,getShadowRoot:!0}):[]};let Lu=Yd;function O0(t,e){$e(e,!0);let r=M(e,"enabled",3,!1),n=M(e,"trapFocus",3,!1),o=M(e,"loop",3,!1),s=M(e,"onCloseAutoFocus",3,ht),i=M(e,"onOpenAutoFocus",3,ht);const a=Lu.use({enabled:pe(()=>r()),trap:pe(()=>n()),loop:o(),onCloseAutoFocus:pe(()=>s()),onOpenAutoFocus:pe(()=>i()),ref:e.ref});var c=se(),u=E(c);Fe(u,()=>e.focusScope??ze,()=>({props:a.props})),b(t,c),Ie()}const Xf=()=>{};globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var xs,_s,Ui,qi,tc,dp,rc,nc,Yi;const Xd=class Xd{constructor(e){_(this,tc);ae(this,"opts");ae(this,"domContext");_(this,xs,ht);_(this,_s,!1);_(this,Ui,Xf);_(this,qi,Xf);_(this,rc,e=>{l(this,qi).call(this,e)});_(this,nc,e=>{const r=this.opts.ref.current,n=e.target;!Un(r)||!Un(n)||!l(this,_s)||!$0(this)||!g_(r,n)||(l(this,Ui).call(this,e),!e.defaultPrevented&&$(this,xs,M0(r,this.domContext.getDocument().body)))});_(this,Yi,()=>{l(this,xs).call(this),$(this,xs,ht)});this.opts=e,this.domContext=new _d(e.ref);let r=ht;nr(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([n,o,s])=>($(this,_s,n),$(this,Ui,o),$(this,qi,s),n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),r(),r=j(this,tc,dp).call(this)),()=>{$(this,_s,!1),r(),l(this,Yi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new Xd(e)}};xs=new WeakMap,_s=new WeakMap,Ui=new WeakMap,qi=new WeakMap,tc=new WeakSet,dp=function(){return es($t(this.domContext.getDocument(),"pointerdown",l(this,nc)),$t(this.domContext.getDocument(),"pointerup",wg(l(this,Yi),l(this,rc))))},rc=new WeakMap,nc=new WeakMap,Yi=new WeakMap;let Vu=Xd;const Zf=t=>t.style.userSelect||t.style.webkitUserSelect;function M0(t,e){const r=Zf(e),n=Zf(t);return ja(e,"none"),ja(t,"text"),()=>{ja(e,r),ja(t,n)}}function ja(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function $0(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const r=e.at(-1);return r?r[0]===t:!1}function I0(t,e){$e(e,!0);let r=M(e,"preventOverflowTextSelection",3,!0),n=M(e,"onPointerDown",3,ht),o=M(e,"onPointerUp",3,ht);Vu.create({id:pe(()=>e.id),onPointerDown:pe(()=>n()),onPointerUp:pe(()=>o()),enabled:pe(()=>e.enabled&&r()),ref:e.ref});var s=se(),i=E(s);Fe(i,()=>e.children??ze),b(t,s),Ie()}globalThis.bitsIdCounter??(globalThis.bitsIdCounter={current:0});function Ed(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var Xi,ks,So,Po,oc,fp;class N0{constructor(e){_(this,oc);_(this,Xi);_(this,ks,0);_(this,So,Ce());_(this,Po);$(this,Xi,e)}get(...e){return $(this,ks,l(this,ks)+1),d(l(this,So))===void 0&&$(this,Po,av(()=>{R(l(this,So),l(this,Xi).call(this,...e),!0)})),lt(()=>()=>{j(this,oc,fp).call(this)}),d(l(this,So))}}Xi=new WeakMap,ks=new WeakMap,So=new WeakMap,Po=new WeakMap,oc=new WeakSet,fp=function(){$(this,ks,l(this,ks)-1),l(this,Po)&&l(this,ks)<=0&&(l(this,Po).call(this),R(l(this,So),void 0),$(this,Po,void 0))};const fl=new yu;let Ga=Ce(null),no=null,Ks=null,Us=!1;const Jf=pe(()=>{for(const t of fl.values())if(t)return!0;return!1});let Nc=null;const z0=new N0(()=>{function t(){document.body.setAttribute("style",d(Ga)??""),document.body.style.removeProperty("--scrollbar-width"),jf&&(no==null||no()),R(Ga,null)}function e(){Ks!==null&&(window.clearTimeout(Ks),Ks=null)}function r(o,s){e(),Us=!0,Nc=Date.now();const i=Nc,a=()=>{Ks=null,Nc===i&&(hp(fl)?Us=!1:(Us=!1,s()))},c=o===null?24:o;Ks=window.setTimeout(a,c)}function n(){d(Ga)===null&&fl.size===0&&!Us&&R(Ga,document.body.getAttribute("style"),!0)}return nr(()=>Jf.current,()=>{var f,v;if(!Jf.current)return;n(),Us=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=((f=o.scrollbarGutter)==null?void 0:f.includes("stable"))||((v=s.scrollbarGutter)==null?void 0:v.includes("stable")),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",jf&&(no=$t(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),zr(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),Vo(()=>()=>{no==null||no()}),{get lockMap(){return fl},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:r,cancelPendingCleanup:e,ensureInitialStyleCaptured:n}});var Co,Zi,Ji,Ht;class R0{constructor(e,r=()=>null){_(this,Co,Ed());_(this,Zi);_(this,Ji,()=>null);_(this,Ht);ae(this,"locked");$(this,Zi,e),$(this,Ji,r),$(this,Ht,z0.get()),l(this,Ht)&&(l(this,Ht).cancelPendingCleanup(),l(this,Ht).ensureInitialStyleCaptured(),l(this,Ht).lockMap.set(l(this,Co),l(this,Zi)??!1),this.locked=pe(()=>l(this,Ht).lockMap.get(l(this,Co))??!1,n=>l(this,Ht).lockMap.set(l(this,Co),n)),Vo(()=>{if(l(this,Ht).lockMap.delete(l(this,Co)),hp(l(this,Ht).lockMap))return;const n=l(this,Ji).call(this);l(this,Ht).scheduleCleanupIfNoNewLocks(n,()=>{l(this,Ht).resetBodyStyle()})}))}}Co=new WeakMap,Zi=new WeakMap,Ji=new WeakMap,Ht=new WeakMap;function hp(t){for(const[e,r]of t)if(r)return!0;return!1}function Qf(t,e){$e(e,!0);let r=M(e,"preventScroll",3,!0),n=M(e,"restoreScrollDelay",3,null);r()&&new R0(r(),()=>n()),Ie()}pm();const F0=["top","right","bottom","left"],qn=Math.min,bn=Math.max,Tl=Math.round,Ha=Math.floor,yn=t=>({x:t,y:t}),L0={left:"right",right:"left",bottom:"top",top:"bottom"};function vp(t,e,r){return bn(t,qn(e,r))}function _n(t,e){return typeof t=="function"?t(e):t}function Yn(t){return t.split("-")[0]}function zs(t){return t.split("-")[1]}function Td(t){return t==="x"?"y":"x"}function Od(t){return t==="y"?"height":"width"}function Lr(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Md(t){return Td(Lr(t))}function D0(t,e,r){r===void 0&&(r=!1);const n=zs(t),o=Md(t),s=Od(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=Ol(i)),[i,Ol(i)]}function B0(t){const e=Ol(t);return[Wu(t),e,Wu(e)]}function Wu(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const eh=["left","right"],th=["right","left"],V0=["top","bottom"],W0=["bottom","top"];function j0(t,e,r){switch(t){case"top":case"bottom":return r?e?th:eh:e?eh:th;case"left":case"right":return e?V0:W0;default:return[]}}function G0(t,e,r,n){const o=zs(t);let s=j0(Yn(t),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),e&&(s=s.concat(s.map(Wu)))),s}function Ol(t){const e=Yn(t);return L0[e]+t.slice(e.length)}function H0(t){var e,r,n,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(n=t.bottom)!=null?n:0,left:(o=t.left)!=null?o:0}}function gp(t){return typeof t!="number"?H0(t):{top:t,right:t,bottom:t,left:t}}function Ml(t){const{x:e,y:r,width:n,height:o}=t;return{width:n,height:o,top:r,left:e,right:e+n,bottom:r+o,x:e,y:r}}function rh(t,e,r){let{reference:n,floating:o}=t;const s=Lr(e),i=Md(e),a=Od(i),c=Yn(e),u=s==="y",f=n.x+n.width/2-o.width/2,v=n.y+n.height/2-o.height/2,h=n[a]/2-o[a]/2;let g;switch(c){case"top":g={x:f,y:n.y-o.height};break;case"bottom":g={x:f,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:v};break;case"left":g={x:n.x-o.width,y:v};break;default:g={x:n.x,y:n.y}}const p=zs(e);return p&&(g[i]+=h*(p==="end"?1:-1)*(r&&u?-1:1)),g}async function K0(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:v="floating",altBoundary:h=!1,padding:g=0}=_n(e,t),p=gp(g),y=a[h?v==="floating"?"reference":"floating":v],w=Ml(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(y)))==null||r?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:c})),P=v==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),k=await(s.isElement==null?void 0:s.isElement(T))&&await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1},S=Ml(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:T,strategy:c}):P);return{top:(w.top-S.top+p.top)/k.y,bottom:(S.bottom-w.bottom+p.bottom)/k.y,left:(w.left-S.left+p.left)/k.x,right:(S.right-w.right+p.right)/k.x}}const U0=50,q0=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=i.detectOverflow?i:{...i,detectOverflow:K0},c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:v}=rh(u,n,c),h=n,g=0;const p={};for(let m=0;m({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=e,{element:u,padding:f=0}=_n(t,e)||{};if(u==null)return{};const v=gp(f),h={x:r,y:n},g=Md(o),p=Od(g),m=await i.getDimensions(u),y=g==="y",w=y?"top":"left",P=y?"bottom":"right",T=y?"clientHeight":"clientWidth",k=s.reference[p]+s.reference[g]-h[g]-s.floating[p],S=h[g]-s.reference[g],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let N=O?O[T]:0;(!N||!await(i.isElement==null?void 0:i.isElement(O)))&&(N=a.floating[T]||s.floating[p]);const x=k/2-S/2,L=N/2-m[p]/2-1,G=qn(v[w],L),H=qn(v[P],L),D=N-m[p]-H,q=N/2-m[p]/2+x,Z=vp(G,q,D),z=!c.arrow&&zs(o)!=null&&q!==Z&&s.reference[p]/2-(qZ<=0)){var H,D;const Z=(((H=s.flip)==null?void 0:H.index)||0)+1,z=N[Z];if(z&&(!(v==="alignment"?P!==Lr(z):!1)||G.every(ee=>Lr(ee.placement)===P?ee.overflows[0]>0:!0)))return{data:{index:Z,overflows:G},reset:{placement:z}};let F=(D=G.filter(de=>de.overflows[0]<=0).sort((de,ee)=>de.overflows[1]-ee.overflows[1])[0])==null?void 0:D.placement;if(!F)switch(g){case"bestFit":{var q;const de=(q=G.filter(ee=>{if(O){const fe=Lr(ee.placement);return fe===P||fe==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(fe=>fe>0).reduce((fe,C)=>fe+C,0)]).sort((ee,fe)=>ee[1]-fe[1])[0])==null?void 0:q[0];de&&(F=de);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function nh(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function oh(t){return F0.some(e=>t[e]>=0)}const Z0=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r,platform:n}=e,{strategy:o="referenceHidden",...s}=_n(t,e);switch(o){case"referenceHidden":{const i=await n.detectOverflow(e,{...s,elementContext:"reference"}),a=nh(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:oh(a)}}}case"escaped":{const i=await n.detectOverflow(e,{...s,altBoundary:!0}),a=nh(i,r.floating);return{data:{escapedOffsets:a,escaped:oh(a)}}}default:return{}}}}},pp=new Set(["left","top"]);async function J0(t,e){const{placement:r,platform:n,elements:o}=t,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Yn(r),a=zs(r),c=Lr(r)==="y",u=pp.has(i)?-1:1,f=s&&c?-1:1,v=_n(e,t);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return a&&typeof p=="number"&&(g=a==="end"?p*-1:p),c?{x:g*f,y:h*u}:{x:h*u,y:g*f}}const Q0=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=e,c=await J0(e,t);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},e1=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o,platform:s}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:P=>{let{x:T,y:k}=P;return{x:T,y:k}}},...u}=_n(t,e),f={x:r,y:n},v=await s.detectOverflow(e,u),h=Lr(o),g=Td(h);let p=f[g],m=f[h];const y=(P,T)=>vp(T+v[P==="y"?"top":"left"],T,T-v[P==="y"?"bottom":"right"]);i&&(p=y(g,p)),a&&(m=y(h,m));const w=c.fn({...e,[g]:p,[h]:m});return{...w,data:{x:w.x-r,y:w.y-n,enabled:{[g]:i,[h]:a}}}}}},t1=function(t){return t===void 0&&(t={}),{options:t,fn(e){var r,n;const{x:o,y:s,placement:i,rects:a,middlewareData:c}=e,{offset:u=0,mainAxis:f=!0,crossAxis:v=!0}=_n(t,e),h={x:o,y:s},g=Lr(i),p=Td(g);let m=h[p],y=h[g];const w=_n(u,e),P=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(r=w.mainAxis)!=null?r:0,crossAxis:(n=w.crossAxis)!=null?n:0};if(f){const S=p==="y"?"height":"width",O=a.reference[p]-a.floating[S]+P.mainAxis,N=a.reference[p]+a.reference[S]-P.mainAxis;mN&&(m=N)}if(v){var T,k;const S=p==="y"?"width":"height",O=pp.has(Yn(i)),N=a.reference[g]-a.floating[S]+(O&&((T=c.offset)==null?void 0:T[g])||0)+(O?0:P.crossAxis),x=a.reference[g]+a.reference[S]+(O?0:((k=c.offset)==null?void 0:k[g])||0)-(O?P.crossAxis:0);yx&&(y=x)}return{[p]:m,[g]:y}}}},r1=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:o,elements:s}=e,{apply:i=()=>{},...a}=_n(t,e),c=await o.detectOverflow(e,a),u=Yn(r),f=zs(r),v=Lr(r)==="y",{width:h,height:g}=n.floating;let p,m;u==="top"||u==="bottom"?(p=u,m=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=u,p=f==="end"?"top":"bottom");const y=g-c.top-c.bottom,w=h-c.left-c.right,P=qn(g-c[p],y),T=qn(h-c[m],w),k=e.middlewareData.shift,S=!k;let O=P,N=T;k!=null&&k.enabled.x&&(N=w),k!=null&&k.enabled.y&&(O=y),S&&!f&&(v?N=h-2*bn(c.left,c.right):O=g-2*bn(c.top,c.bottom)),await i({...e,availableWidth:N,availableHeight:O});const x=await o.getDimensions(s.floating);return h!==x.width||g!==x.height?{reset:{rects:!0}}:{}}}};function gc(){return typeof window<"u"}function Rs(t){return mp(t)?(t.nodeName||"").toLowerCase():"#document"}function Xt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function kn(t){var e;return(e=(mp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mp(t){return gc()?t instanceof Node||t instanceof Xt(t).Node:!1}function Kr(t){return gc()?t instanceof Element||t instanceof Xt(t).Element:!1}function eo(t){return gc()?t instanceof HTMLElement||t instanceof Xt(t).HTMLElement:!1}function sh(t){return!gc()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xt(t).ShadowRoot}function pc(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ur(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&o!=="inline"&&o!=="contents"}function n1(t){return/^(table|td|th)$/.test(Rs(t))}function mc(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const o1=/transform|translate|scale|rotate|perspective|filter/,s1=/paint|layout|strict|content/,oo=t=>!!t&&t!=="none";let zc;function $d(t){const e=Kr(t)?Ur(t):t;return oo(e.transform)||oo(e.translate)||oo(e.scale)||oo(e.rotate)||oo(e.perspective)||!Id()&&(oo(e.backdropFilter)||oo(e.filter))||o1.test(e.willChange||"")||s1.test(e.contain||"")}function i1(t){let e=$o(t);for(;eo(e)&&!fi(e);){if($d(e))return e;if(mc(e))return null;e=$o(e)}return null}function Id(){return zc==null&&(zc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),zc}function fi(t){return/^(html|body|#document)$/.test(Rs(t))}function Ur(t){return Xt(t).getComputedStyle(t)}function bc(t){return Kr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function $o(t){if(Rs(t)==="html")return t;const e=t.assignedSlot||t.parentNode||sh(t)&&t.host||kn(t);return sh(e)?e.host:e}function bp(t){const e=$o(t);return fi(e)?(t.ownerDocument||t).body:eo(e)&&pc(e)?e:bp(e)}function hi(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=bp(t),s=o===((n=t.ownerDocument)==null?void 0:n.body),i=Xt(o);if(s){const a=ju(i);return e.concat(i,i.visualViewport||[],pc(o)?o:[],a&&r?hi(a):[])}else return e.concat(o,hi(o,[],r))}function ju(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function yp(t){const e=Ur(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=eo(t),s=o?t.offsetWidth:r,i=o?t.offsetHeight:n,a=Tl(r)!==s||Tl(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function Nd(t){return Kr(t)?t:t.contextElement}function ts(t){const e=Nd(t);if(!eo(e))return yn(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:s}=yp(e);let i=(s?Tl(r.width):r.width)/n,a=(s?Tl(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const a1=yn(0);function wp(t){const e=Xt(t);return!Id()||!e.visualViewport?a1:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function l1(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Xt(t)}function Io(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),s=Nd(t);let i=yn(1);e&&(n?Kr(n)&&(i=ts(n)):i=ts(t));const a=l1(s,r,n)?wp(s):yn(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,f=o.width/i.x,v=o.height/i.y;if(s&&n){const h=Xt(s),g=Kr(n)?Xt(n):n;let p=h,m=ju(p);for(;m&&g!==p;){const y=ts(m),w=m.getBoundingClientRect(),P=Ur(m),T=w.left+(m.clientLeft+parseFloat(P.paddingLeft))*y.x,k=w.top+(m.clientTop+parseFloat(P.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,v*=y.y,c+=T,u+=k,p=Xt(m),m=ju(p)}}return Ml({width:f,height:v,x:c,y:u})}function yc(t,e){const r=bc(t).scrollLeft;return e?e.left+r:Io(kn(t)).left+r}function xp(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-yc(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function c1(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const s=o==="fixed",i=kn(n),a=e?mc(e.floating):!1;if(n===i||a&&s)return r;let c={scrollLeft:0,scrollTop:0},u=yn(1);const f=yn(0),v=eo(n);if((v||!s)&&((Rs(n)!=="body"||pc(i))&&(c=bc(n)),v)){const g=Io(n);u=ts(n),f.x=g.x+n.clientLeft,f.y=g.y+n.clientTop}const h=i&&!v&&!s?xp(i,c):yn(0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:r.y*u.y-c.scrollTop*u.y+f.y+h.y}}function u1(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function d1(t){const e=bc(t),r=t.ownerDocument.body,n=bn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=bn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-e.scrollLeft+yc(t);const i=-e.scrollTop;return Ur(r).direction==="rtl"&&(s+=bn(t.clientWidth,r.clientWidth)-n),{width:n,height:o,x:s,y:i}}const f1=25;function h1(t,e,r){r===void 0&&(r="viewport");const n=r==="layoutViewport",o=Xt(t),s=kn(t),i=o.visualViewport;let a=s.clientWidth,c=s.clientHeight,u=0,f=0;if(i){const h=!Id()||e==="fixed";n?h||(u=-i.offsetLeft,f=-i.offsetTop):(a=i.width,c=i.height,h&&(u=i.offsetLeft,f=i.offsetTop))}if(yc(s)<=0){const h=s.ownerDocument,g=h.body,p=getComputedStyle(g),m=h.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(s.clientWidth-g.clientWidth-m),w=getComputedStyle(s).scrollbarGutter==="stable both-edges"?y/2:y;w<=f1&&(a-=w)}return{width:a,height:c,x:u,y:f}}function v1(t,e){const r=Io(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,s=ts(t),i=t.clientWidth*s.x,a=t.clientHeight*s.y,c=o*s.x,u=n*s.y;return{width:i,height:a,x:c,y:u}}function ih(t,e,r){let n;if(e==="viewport"||e==="layoutViewport")n=h1(t,r,e);else if(e==="document")n=d1(kn(t));else if(Kr(e))n=v1(e,r);else{const o=wp(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Ml(n)}function g1(t,e){const r=e.get(t);if(r)return r;let n=hi(t,[],!1).filter(a=>Kr(a)&&Rs(a)!=="body"),o=null;const s=Ur(t).position==="fixed";let i=s?$o(t):t;for(;Kr(i)&&!fi(i);){const a=Ur(i),c=$d(i),u=o?o.position:s?"fixed":"";!c&&(u==="fixed"||u==="absolute"&&a.position==="static")?n=n.filter(v=>v!==i):o=a,i=$o(i)}return e.set(t,n),n}function p1(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?mc(e)?[]:g1(e,this._c):[].concat(r),n],a=ih(e,i[0],o);let c=a.top,u=a.right,f=a.bottom,v=a.left;for(let h=1;h{a(!1,1e-7)},1e3)}N=!1}try{n=new IntersectionObserver(x,{...O,root:s.ownerDocument})}catch{n=new IntersectionObserver(x,O)}n.observe(t)}const c=Xt(t),u=()=>a(r);return c.addEventListener("resize",u),a(!0),()=>{c.removeEventListener("resize",u),i()}}function k1(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,u=Nd(t),f=o||s?[...u?hi(u):[],...e?hi(e):[]]:[];f.forEach(w=>{o&&w.addEventListener("scroll",r),s&&w.addEventListener("resize",r)});const v=u&&a?_1(u,r,s):null;let h=-1,g=null;i&&(g=new ResizeObserver(w=>{let[P]=w;P&&P.target===u&&g&&e&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var T;(T=g)==null||T.observe(e)})),r()}),u&&!c&&g.observe(u),e&&g.observe(e));let p,m=c?Io(t):null;c&&y();function y(){const w=Io(t);m&&!kp(m,w)&&r(),m=w,p=requestAnimationFrame(y)}return r(),()=>{var w;f.forEach(P=>{o&&P.removeEventListener("scroll",r),s&&P.removeEventListener("resize",r)}),v==null||v(),(w=g)==null||w.disconnect(),g=null,c&&cancelAnimationFrame(p)}}const S1=Q0,P1=e1,C1=X0,A1=r1,E1=Z0,T1=Y0,O1=t1,M1=(t,e,r)=>{const n=new Map,o=r??{},s={...x1,...o.platform,_c:n};return q0(t,e,{...o,platform:s})};function so(t){return typeof t=="function"?t():t}function Sp(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function lh(t,e){const r=Sp(t);return Math.round(e*r)/r}function ch(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function $1(t){const e=t.whileElementsMounted,r=W(()=>so(t.open)??!0),n=W(()=>so(t.middleware)),o=W(()=>so(t.transform)??!0),s=W(()=>so(t.placement)??"bottom"),i=W(()=>so(t.strategy)??"absolute"),a=W(()=>so(t.sideOffset)??0),c=W(()=>so(t.alignOffset)??0),u=t.reference;let f=Ce(0),v=Ce(0);const h=Fr(null);let g=Ce(Yt(d(i))),p=Ce(Yt(d(s))),m=Ce(Yt({})),y=Ce(!1),w=!1,P=0;const T=W(()=>{const G=h.current?lh(h.current,d(f)):d(f),H=h.current?lh(h.current,d(v)):d(v);return d(o)?{position:d(g),left:"0",top:"0",transform:`translate(${G}px, ${H}px)`,...h.current&&Sp(h.current)>=1.5&&{willChange:"transform"}}:{position:d(g),left:`${G}px`,top:`${H}px`}});let k;function S(){if(u.current===null||h.current===null)return;const G=u.current,H=h.current,D=++P;M1(G,H,{middleware:d(n),placement:d(s),strategy:d(i)}).then(q=>{if(D!==P||u.current!==G||h.current!==H)return;if(I1(G)){R(m,{...d(m),hide:{...d(m).hide,referenceHidden:!0}},!0);return}if(!d(r)&&d(f)!==0&&d(v)!==0){const z=Math.max(Math.abs(d(a)),Math.abs(d(c)),15);if(q.x<=z&&q.y<=z)return}R(f,q.x,!0),R(v,q.y,!0),R(g,q.strategy,!0),R(p,q.placement,!0),R(m,q.middlewareData,!0),R(y,!0)})}function O(){typeof k=="function"&&(k(),k=void 0),P++}function N(){if(O(),e===void 0){S();return}d(r)&&(u.current===null||h.current===null||(k=e(u.current,h.current,S)))}function x(){!d(r)&&h.current===null&&R(y,!1)}function L(){return[d(n),d(s),d(i),d(a),d(c),d(r)]}return lt(()=>{e===void 0&&d(r)&&S()}),lt(N),lt(()=>{if(e!==void 0){if(L(),!d(r)){w=!1;return}if(!d(y)){w=!1;return}if(!w){w=!0;return}S()}}),lt(x),lt(()=>O),{floating:h,reference:u,get strategy(){return d(g)},get placement(){return d(p)},get middlewareData(){return d(m)},get isPositioned(){return d(y)},get floatingStyles(){return d(T)},get update(){return S}}}function I1(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const N1={top:"bottom",right:"left",bottom:"top",left:"right"},zd=new Bo("Floating.Root"),uh=new Bo("Floating.Content"),Rd=new Bo("Floating.Root");class $l{constructor(){ae(this,"anchorNode",Fr(null));ae(this,"customAnchorNode",Fr(null));ae(this,"triggerNode",Fr(null));lt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Rd.set(new $l):zd.set(new $l)}}var Qi,ea,ta,sc,ra,ic,na,oa,sa,ia,aa,la,ca,ua,da,fa,ha,va,ga,pa,ma,ba,ya,wa;const ac=class ac{constructor(e,r){ae(this,"opts");ae(this,"root");ae(this,"contentRef",Fr(null));ae(this,"wrapperRef",Fr(null));ae(this,"arrowRef",Fr(null));ae(this,"contentAttachment",Hn(this.contentRef));ae(this,"wrapperAttachment",Hn(this.wrapperRef));ae(this,"arrowAttachment",Hn(this.arrowRef));ae(this,"arrowId",Fr(Ed()));_(this,Qi,W(()=>{if(typeof this.opts.style=="string")return ei(this.opts.style);if(!this.opts.style)return{}}));_(this,ea);_(this,ta,new l_(()=>this.arrowRef.current??void 0));_(this,sc,W(()=>{var e;return((e=l(this,ta))==null?void 0:e.width)??0}));_(this,ra,W(()=>{var e;return((e=l(this,ta))==null?void 0:e.height)??0}));_(this,ic,W(()=>{var e;return((e=this.opts.side)==null?void 0:e.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));_(this,na,W(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));_(this,oa,W(()=>d(l(this,na)).length>0));_(this,sa,W(()=>({padding:this.opts.collisionPadding.current,boundary:d(l(this,na)).filter(E_),altBoundary:this.hasExplicitBoundaries})));_(this,ia,Ce(void 0));_(this,aa,Ce(void 0));_(this,la,Ce(void 0));_(this,ca,Ce(void 0));_(this,ua,W(()=>[S1({mainAxis:this.opts.sideOffset.current+d(l(this,ra)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&P1({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?O1():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&C1({...this.detectOverflowOptions}),A1({...this.detectOverflowOptions,apply:({rects:e,availableWidth:r,availableHeight:n})=>{const{width:o,height:s}=e.reference;R(l(this,ia),r,!0),R(l(this,aa),n,!0),R(l(this,la),o,!0),R(l(this,ca),s,!0)}}),this.arrowRef.current&&T1({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),z1({arrowWidth:d(l(this,sc)),arrowHeight:d(l(this,ra))}),this.opts.hideWhenDetached.current&&E1({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));ae(this,"floating");_(this,da,W(()=>R1(this.floating.placement)));_(this,fa,W(()=>F1(this.floating.placement)));_(this,ha,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.x)??0}));_(this,va,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.y)??0}));_(this,ga,W(()=>{var e;return((e=this.floating.middlewareData.arrow)==null?void 0:e.centerOffset)!==0}));_(this,pa,Ce());_(this,ma,W(()=>N1[this.placedSide]));_(this,ba,W(()=>{var e,r,n;return{id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${(e=this.floating.middlewareData.transformOrigin)==null?void 0:e.x} ${(r=this.floating.middlewareData.transformOrigin)==null?void 0:r.y}`,"--bits-floating-available-width":`${d(l(this,ia))}px`,"--bits-floating-available-height":`${d(l(this,aa))}px`,"--bits-floating-anchor-width":`${d(l(this,la))}px`,"--bits-floating-anchor-height":`${d(l(this,ca))}px`,...((n=this.floating.middlewareData.hide)==null?void 0:n.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...d(l(this,Qi))},dir:this.opts.dir.current,...this.wrapperAttachment}}));_(this,ya,W(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:_g({...d(l(this,Qi))}),...this.contentAttachment})));_(this,wa,W(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=r,$(this,ea,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),nr(()=>e.customAnchor.current,n=>{this.root.customAnchorNode.current=n}),this.floating=$1({strategy:()=>this.opts.strategy.current,placement:()=>d(l(this,ic)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...n)=>{var s;return k1(...n,{animationFrame:((s=l(this,ea))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),lt(()=>{var n;this.floating.isPositioned&&((n=this.opts.onPlaced)==null||n.current())}),nr(()=>this.contentRef.current,n=>{if(!n||!this.opts.enabled.current)return;const o=Ag(n),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==n||!this.opts.enabled.current)return;const i=o.getComputedStyle(n).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),lt(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,r=!1){return r?uh.set(new ac(e,Rd.get())):uh.set(new ac(e,zd.get()))}get hasExplicitBoundaries(){return d(l(this,oa))}set hasExplicitBoundaries(e){R(l(this,oa),e)}get detectOverflowOptions(){return d(l(this,sa))}set detectOverflowOptions(e){R(l(this,sa),e)}get middleware(){return d(l(this,ua))}set middleware(e){R(l(this,ua),e)}get placedSide(){return d(l(this,da))}set placedSide(e){R(l(this,da),e)}get placedAlign(){return d(l(this,fa))}set placedAlign(e){R(l(this,fa),e)}get arrowX(){return d(l(this,ha))}set arrowX(e){R(l(this,ha),e)}get arrowY(){return d(l(this,va))}set arrowY(e){R(l(this,va),e)}get cannotCenterArrow(){return d(l(this,ga))}set cannotCenterArrow(e){R(l(this,ga),e)}get contentZIndex(){return d(l(this,pa))}set contentZIndex(e){R(l(this,pa),e,!0)}get arrowBaseSide(){return d(l(this,ma))}set arrowBaseSide(e){R(l(this,ma),e)}get wrapperProps(){return d(l(this,ba))}set wrapperProps(e){R(l(this,ba),e)}get props(){return d(l(this,ya))}set props(e){R(l(this,ya),e)}get arrowStyle(){return d(l(this,wa))}set arrowStyle(e){R(l(this,wa),e)}};Qi=new WeakMap,ea=new WeakMap,ta=new WeakMap,sc=new WeakMap,ra=new WeakMap,ic=new WeakMap,na=new WeakMap,oa=new WeakMap,sa=new WeakMap,ia=new WeakMap,aa=new WeakMap,la=new WeakMap,ca=new WeakMap,ua=new WeakMap,da=new WeakMap,fa=new WeakMap,ha=new WeakMap,va=new WeakMap,ga=new WeakMap,pa=new WeakMap,ma=new WeakMap,ba=new WeakMap,ya=new WeakMap,wa=new WeakMap;let Gu=ac;class Il{constructor(e,r){ae(this,"opts");ae(this,"root");this.opts=e,this.root=r,e.virtualEl&&e.virtualEl.current?r.triggerNode=yg(e.virtualEl.current):r.triggerNode=e.ref}static create(e,r=!1){return r?new Il(e,Rd.get()):new Il(e,zd.get())}}function z1(t){return{name:"transformOrigin",options:t,fn(e){var y,w,P;const{placement:r,rects:n,middlewareData:o}=e,i=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=i?0:t.arrowWidth,c=i?0:t.arrowHeight,[u,f]=Fd(r),v={start:"0%",center:"50%",end:"100%"}[f],h=(((w=o.arrow)==null?void 0:w.x)??0)+a/2,g=(((P=o.arrow)==null?void 0:P.y)??0)+c/2;let p="",m="";return u==="bottom"?(p=i?v:`${h}px`,m=`${-c}px`):u==="top"?(p=i?v:`${h}px`,m=`${n.floating.height+c}px`):u==="right"?(p=`${-c}px`,m=i?v:`${g}px`):u==="left"&&(p=`${n.floating.width+c}px`,m=i?v:`${g}px`),{data:{x:p,y:m}}}}}function Fd(t){const[e,r="center"]=t.split("-");return[e,r]}function R1(t){return Fd(t)[0]}function F1(t){return Fd(t)[1]}function L1(t,e){$e(e,!0);let r=M(e,"tooltip",3,!1);$l.create(r());var n=se(),o=E(n);Fe(o,()=>e.children??ze),b(t,n),Ie()}function D1(t,e){$e(e,!0);let r=M(e,"tooltip",3,!1);Il.create({id:pe(()=>e.id),virtualEl:pe(()=>e.virtualEl),ref:e.ref},r());var n=se(),o=E(n);Fe(o,()=>e.children??ze),b(t,n),Ie()}function B1(t,e){$e(e,!0);let r=M(e,"side",3,"bottom"),n=M(e,"sideOffset",3,0),o=M(e,"align",3,"center"),s=M(e,"alignOffset",3,0),i=M(e,"arrowPadding",3,0),a=M(e,"avoidCollisions",3,!0),c=M(e,"collisionBoundary",19,()=>[]),u=M(e,"collisionPadding",3,0),f=M(e,"hideWhenDetached",3,!1),v=M(e,"onPlaced",3,()=>{}),h=M(e,"sticky",3,"partial"),g=M(e,"updatePositionStrategy",3,"optimized"),p=M(e,"strategy",3,"fixed"),m=M(e,"dir",3,"ltr"),y=M(e,"style",19,()=>({})),w=M(e,"wrapperId",19,Ed),P=M(e,"customAnchor",3,null),T=M(e,"tooltip",3,!1);const k=Gu.create({side:pe(()=>r()),sideOffset:pe(()=>n()),align:pe(()=>o()),alignOffset:pe(()=>s()),id:pe(()=>e.id),arrowPadding:pe(()=>i()),avoidCollisions:pe(()=>a()),collisionBoundary:pe(()=>c()),collisionPadding:pe(()=>u()),hideWhenDetached:pe(()=>f()),onPlaced:pe(()=>v()),sticky:pe(()=>h()),updatePositionStrategy:pe(()=>g()),strategy:pe(()=>p()),dir:pe(()=>m()),style:pe(()=>y()),enabled:pe(()=>e.enabled),wrapperId:pe(()=>w()),customAnchor:pe(()=>P())},T()),S=W(()=>Wr(k.wrapperProps,{style:{pointerEvents:"auto"}}));var O=se(),N=E(O);Fe(N,()=>e.content??ze,()=>({props:k.props,wrapperProps:d(S)})),b(t,O),Ie()}function V1(t,e){$e(e,!0),cd(()=>{var o;(o=e.onPlaced)==null||o.call(e)});var r=se(),n=E(r);Fe(n,()=>e.content??ze,()=>({props:{},wrapperProps:{}})),b(t,r),Ie()}var W1=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function j1(t,e){let r=M(e,"isStatic",3,!1),n=Ge(e,W1);var o=se(),s=E(o);{var i=c=>{V1(c,{get content(){return e.content},get onPlaced(){return e.onPlaced}})},a=c=>{B1(c,We({get content(){return e.content},get onPlaced(){return e.onPlaced}},()=>n))};Be(s,c=>{r()?c(i):c(a,-1)})}b(t,o)}var G1=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),H1=ce(" ",1);function Pp(t,e){$e(e,!0);let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=M(e,"tooltip",3,!1),c=M(e,"contentPointerEvents",3,"auto"),u=Ge(e,G1);const f=W(()=>e.preventScroll??!0),v=W(()=>e.strategy??(d(f)?"fixed":"absolute"));j1(t,{get isStatic(){return i()},get id(){return e.id},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return d(v)},get dir(){return e.dir},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get enabled(){return e.enabled},get tooltip(){return a()},content:(g,p)=>{let m=()=>(p==null?void 0:p()).props,y=()=>(p==null?void 0:p()).wrapperProps;var w=H1(),P=E(w);{var T=O=>{Qf(O,{get preventScroll(){return d(f)}})},k=O=>{Qf(O,{get preventScroll(){return d(f)}})};Be(P,O=>{e.forceMount&&e.enabled?O(T):e.forceMount||O(k,1)})}var S=A(P,2);O0(S,{get onOpenAutoFocus(){return e.onOpenAutoFocus},get onCloseAutoFocus(){return e.onCloseAutoFocus},get loop(){return e.loop},get enabled(){return e.enabled},get trapFocus(){return n()},get forceMount(){return e.forceMount},get ref(){return e.ref},focusScope:(N,x)=>{let L=()=>(x==null?void 0:x()).props;T0(N,{get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get enabled(){return e.enabled},get ref(){return e.ref},children:(G,H)=>{A0(G,{get id(){return e.id},get onInteractOutside(){return e.onInteractOutside},get onFocusOutside(){return e.onFocusOutside},get interactOutsideBehavior(){return r()},get isValidEvent(){return o()},get enabled(){return e.enabled},get ref(){return e.ref},children:(q,Z)=>{let z=()=>(Z==null?void 0:Z()).props;I0(q,{get id(){return e.id},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get enabled(){return e.enabled},get ref(){return e.ref},children:(F,de)=>{var ee=se(),fe=E(ee);{let C=W(()=>({props:Wr(u,m(),z(),L(),{style:{pointerEvents:c()}}),wrapperProps:y()}));Fe(fe,()=>e.popper??ze,()=>d(C))}b(F,ee)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),b(g,w)},$$slots:{content:!0}}),Ie()}var K1=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function U1(t,e){let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=Ge(e,K1);var c=se(),u=E(c);{var f=v=>{Pp(v,We({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.open},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside},forceMount:!1,get ref(){return e.ref}},()=>a))};Be(u,v=>{e.shouldRender&&v(f)})}b(t,c)}var q1=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function Y1(t,e){let r=M(e,"interactOutsideBehavior",3,"close"),n=M(e,"trapFocus",3,!0),o=M(e,"isValidEvent",3,()=>!1),s=M(e,"customAnchor",3,null),i=M(e,"isStatic",3,!1),a=Ge(e,q1);Pp(t,We({get popper(){return e.popper},get onEscapeKeydown(){return e.onEscapeKeydown},get escapeKeydownBehavior(){return e.escapeKeydownBehavior},get preventOverflowTextSelection(){return e.preventOverflowTextSelection},get id(){return e.id},get onPointerDown(){return e.onPointerDown},get onPointerUp(){return e.onPointerUp},get side(){return e.side},get sideOffset(){return e.sideOffset},get align(){return e.align},get alignOffset(){return e.alignOffset},get arrowPadding(){return e.arrowPadding},get avoidCollisions(){return e.avoidCollisions},get collisionBoundary(){return e.collisionBoundary},get collisionPadding(){return e.collisionPadding},get sticky(){return e.sticky},get hideWhenDetached(){return e.hideWhenDetached},get updatePositionStrategy(){return e.updatePositionStrategy},get strategy(){return e.strategy},get dir(){return e.dir},get preventScroll(){return e.preventScroll},get wrapperId(){return e.wrapperId},get style(){return e.style},get onPlaced(){return e.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return e.enabled},get onInteractOutside(){return e.onInteractOutside},get onCloseAutoFocus(){return e.onCloseAutoFocus},get onOpenAutoFocus(){return e.onOpenAutoFocus},get interactOutsideBehavior(){return r()},get loop(){return e.loop},get trapFocus(){return n()},get isValidEvent(){return o()},get onFocusOutside(){return e.onFocusOutside}},()=>a,{forceMount:!0}))}var X1=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),Z1=ce("
    ");function J1(t,e){const r=Aa();$e(e,!0);let n=M(e,"ref",15,null),o=M(e,"id",19,()=>$a(r)),s=M(e,"disabled",3,!1),i=M(e,"onSelect",3,ht),a=M(e,"closeOnSelect",3,!0),c=Ge(e,X1);const u=$u.create({id:pe(()=>o()),disabled:pe(()=>s()),onSelect:pe(()=>i()),ref:pe(()=>n(),m=>n(m)),closeOnSelect:pe(()=>a())}),f=W(()=>Wr(c,u.props));var v=se(),h=E(v);{var g=m=>{var y=se(),w=E(y);Fe(w,()=>e.child,()=>({props:d(f)})),b(m,y)},p=m=>{var y=Z1();Ke(y,()=>({...d(f)}));var w=B(y);Fe(w,()=>e.children??ze),b(m,y)};Be(h,m=>{e.child?m(g):m(p,-1)})}b(t,v),Ie()}var Q1=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),ek=ce("
    ");function tk(t,e){const r=Aa();$e(e,!0);let n=M(e,"ref",15,null),o=M(e,"id",19,()=>$a(r)),s=Ge(e,Q1);const i=Iu.create({id:pe(()=>o()),ref:pe(()=>n(),h=>n(h))}),a=W(()=>Wr(s,i.props));var c=se(),u=E(c);{var f=h=>{var g=se(),p=E(g);Fe(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=ek();Ke(g,()=>({...d(a)}));var p=B(g);Fe(p,()=>e.children??ze),b(h,g)};Be(u,h=>{e.child?h(f):h(v,-1)})}b(t,c),Ie()}function rk(t,e){$e(e,!0);let r=M(e,"open",15,!1),n=M(e,"dir",3,"ltr"),o=M(e,"onOpenChange",3,ht),s=M(e,"onOpenChangeComplete",3,ht),i=M(e,"_internal_variant",3,"dropdown-menu"),a=M(e,"_internal_should_skip_exit_animation",3,void 0);const c=Tu.create({variant:pe(()=>i()),dir:pe(()=>n()),onClose:()=>{r(!1),o()(!1)},shouldSkipExitAnimation:()=>{var u;return((u=a())==null?void 0:u())??!1}});Ou.create({open:pe(()=>r(),u=>{r(u),o()(u)}),onOpenChangeComplete:pe(()=>s())},c),L1(t,{children:(u,f)=>{var v=se(),h=E(v);Fe(h,()=>e.children??ze),b(u,v)},$$slots:{default:!0}}),Ie()}var nk=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),dh=ce("
    ");function ok(t,e){const r=Aa();$e(e,!0);let n=M(e,"id",19,()=>$a(r)),o=M(e,"ref",15,null),s=M(e,"loop",3,!0),i=M(e,"onInteractOutside",3,ht),a=M(e,"onEscapeKeydown",3,ht),c=M(e,"onCloseAutoFocus",3,ht),u=M(e,"forceMount",3,!1),f=M(e,"trapFocus",3,!1),v=Ge(e,nk);const h=Mu.create({id:pe(()=>n()),loop:pe(()=>s()),ref:pe(()=>o(),k=>o(k)),onCloseAutoFocus:pe(()=>c())}),g=W(()=>Wr(v,h.props));function p(k){if(h.handleInteractOutside(k),!k.defaultPrevented&&(i()(k),!k.defaultPrevented)){if(k.target&&k.target instanceof Element){const S=`[${h.parentMenu.root.getBitsAttr("sub-content")}]`;if(k.target.closest(S))return}h.parentMenu.onClose()}}function m(k){a()(k),!k.defaultPrevented&&h.parentMenu.onClose()}var y=se(),w=E(y);{var P=k=>{Y1(k,We(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get enabled(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!0,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(O,N)=>{let x=()=>(N==null?void 0:N()).props,L=()=>(N==null?void 0:N()).wrapperProps;const G=W(()=>Wr(x(),{style:ch("dropdown-menu")},{style:e.style}));var H=se(),D=E(H);{var q=z=>{var F=se(),de=E(F);{let ee=W(()=>({props:d(G),wrapperProps:L(),...h.snippetProps}));Fe(de,()=>e.child,()=>d(ee))}b(z,F)},Z=z=>{var F=dh();Ke(F,()=>({...L()}));var de=B(F);Ke(de,()=>({...d(G)}));var ee=B(de);Fe(ee,()=>e.children??ze),b(z,F)};Be(D,z=>{e.child?z(q):z(Z,-1)})}b(O,H)},$$slots:{popper:!0}}))},T=k=>{U1(k,We(()=>d(g),()=>h.popperProps,{get ref(){return h.opts.ref},get open(){return h.parentMenu.opts.open.current},onInteractOutside:p,onEscapeKeydown:m,get trapFocus(){return f()},get loop(){return s()},forceMount:!1,get id(){return n()},get shouldRender(){return h.shouldRender},popper:(O,N)=>{let x=()=>(N==null?void 0:N()).props,L=()=>(N==null?void 0:N()).wrapperProps;const G=W(()=>Wr(x(),{style:ch("dropdown-menu")},{style:e.style}));var H=se(),D=E(H);{var q=z=>{var F=se(),de=E(F);{let ee=W(()=>({props:d(G),wrapperProps:L(),...h.snippetProps}));Fe(de,()=>e.child,()=>d(ee))}b(z,F)},Z=z=>{var F=dh();Ke(F,()=>({...L()}));var de=B(F);Ke(de,()=>({...d(G)}));var ee=B(de);Fe(ee,()=>e.children??ze),b(z,F)};Be(D,z=>{e.child?z(q):z(Z,-1)})}b(O,H)},$$slots:{popper:!0}}))};Be(w,k=>{u()?k(P):u()||k(T,1)})}b(t,y),Ie()}var sk=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),ik=ce("");function ak(t,e){const r=Aa();$e(e,!0);let n=M(e,"id",19,()=>$a(r)),o=M(e,"ref",15,null),s=M(e,"disabled",3,!1),i=M(e,"type",3,"button"),a=Ge(e,sk);const c=Nu.create({id:pe(()=>n()),disabled:pe(()=>s()??!1),ref:pe(()=>o(),f=>o(f))}),u=W(()=>Wr(a,c.props,{type:i()}));D1(t,{get id(){return n()},get ref(){return c.opts.ref},children:(f,v)=>{var h=se(),g=E(h);{var p=y=>{var w=se(),P=E(w);Fe(P,()=>e.child,()=>({props:d(u)})),b(y,w)},m=y=>{var w=ik();Ke(w,()=>({...d(u)}));var P=B(w);Fe(P,()=>e.children??ze),b(y,w)};Be(g,y=>{e.child?y(p):y(m,-1)})}b(f,h)},$$slots:{default:!0}}),Ie()}const lk=Mg({component:"label",parts:["root"]});var xa;const Zd=class Zd{constructor(e){ae(this,"opts");ae(this,"attachment");_(this,xa,W(()=>({id:this.opts.id.current,[lk.root]:"",onmousedown:this.onmousedown,...this.attachment})));this.opts=e,this.attachment=Hn(this.opts.ref),this.onmousedown=this.onmousedown.bind(this)}static create(e){return new Zd(e)}onmousedown(e){e.detail>1&&e.preventDefault()}get props(){return d(l(this,xa))}set props(e){R(l(this,xa),e)}};xa=new WeakMap;let Hu=Zd;var ck=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","for"]),uk=ce("");function dk(t,e){const r=Aa();$e(e,!0);let n=M(e,"id",19,()=>$a(r)),o=M(e,"ref",15,null),s=Ge(e,ck);const i=Hu.create({id:pe(()=>n()),ref:pe(()=>o(),h=>o(h))}),a=W(()=>Wr(s,i.props,{for:e.for}));var c=se(),u=E(c);{var f=h=>{var g=se(),p=E(g);Fe(p,()=>e.child,()=>({props:d(a)})),b(h,g)},v=h=>{var g=uk();Ke(g,()=>({...d(a),for:e.for}));var p=B(g);Fe(p,()=>e.children??ze),b(h,g)};Be(u,h=>{e.child?h(f):h(v,-1)})}b(t,c),Ie()}var fk=new Set(["$$slots","$$events","$$legacy","ref","class"]);function hk(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,fk);var o=se(),s=E(o);{let i=W(()=>He("gap-2 text-sm leading-none font-medium group-data-[disabled=true]:opacity-50 peer-disabled:opacity-50 flex items-center select-none group-data-[disabled=true]:pointer-events-none peer-disabled:cursor-not-allowed",e.class));I(s,()=>dk,(a,c)=>{c(a,We({"data-slot":"label",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}const fh=bd({base:"rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});var vk=new Set(["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]),gk=ce(""),pk=ce("");function pn(t,e){$e(e,!0);let r=M(e,"variant",3,"default"),n=M(e,"size",3,"default"),o=M(e,"ref",15,null),s=M(e,"href",3,void 0),i=M(e,"type",3,"button"),a=Ge(e,vk);var c=se(),u=E(c);{var f=h=>{var g=gk();Ke(g,m=>({"data-slot":"button",class:m,href:e.disabled?void 0:s(),"aria-disabled":e.disabled,role:e.disabled?"link":void 0,tabindex:e.disabled?-1:void 0,...a}),[()=>He(fh({variant:r(),size:n()}),e.class)]);var p=B(g);Fe(p,()=>e.children??ze),ct(g,m=>o(m),()=>o()),b(h,g)},v=h=>{var g=pk();Ke(g,m=>({"data-slot":"button",class:m,type:i(),disabled:e.disabled,...a}),[()=>He(fh({variant:r(),size:n()}),e.class)]);var p=B(g);Fe(p,()=>e.children??ze),ct(g,m=>o(m),()=>o()),b(h,g)};Be(u,h=>{s()?h(f):h(v,-1)})}b(t,c),Ie()}/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const mk={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"};/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const bk=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const hh=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();var yk=Ca("");function st(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]),n=Qe(r,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);$e(e,!1);let o=M(e,"name",8,void 0),s=M(e,"color",8,"currentColor"),i=M(e,"size",8,24),a=M(e,"strokeWidth",8,2),c=M(e,"absoluteStrokeWidth",8,!1),u=M(e,"iconNode",24,()=>[]);Tb();var f=yk();Ke(f,(g,p,m)=>({...mk,...g,...n,width:i(),height:i(),stroke:s(),"stroke-width":p,class:m}),[()=>bk(n)?void 0:{"aria-hidden":"true"},()=>(ao(c()),ao(a()),ao(i()),mr(()=>c()?Number(a())*24/Number(i()):a())),()=>(ao(hh),ao(o()),ao(r),mr(()=>hh("lucide-icon","lucide",o()?`lucide-${o()}`:"",r.class)))]);var v=B(f);Mt(v,1,u,qt,(g,p)=>{var m=W(()=>Dp(d(p),2));let y=()=>d(m)[0],w=()=>d(m)[1];var P=se(),T=E(P);Ev(T,y,!0,(k,S)=>{Ke(k,()=>({...w()}))}),b(g,P)});var h=A(v);nt(h,e,"default",{}),b(t,f),Ie()}function wk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];st(t,We({name:"activity"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function xk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"m21 8-4-4-4 4"}],["path",{d:"M17 4v16"}]];st(t,We({name:"arrow-down-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function _k(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]];st(t,We({name:"arrow-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function kk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]];st(t,We({name:"arrow-up"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Fc(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m6 9 6 6 6-6"}]];st(t,We({name:"chevron-down"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ld(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]];st(t,We({name:"circle-alert"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function vh(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"1"}]];st(t,We({name:"circle-dot"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Sk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6h4"}]];st(t,We({name:"clock-3"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function On(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]];st(t,We({name:"gauge"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function gh(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]];st(t,We({name:"globe"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Pk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]];st(t,We({name:"inbox"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ck(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["rect",{width:"18",height:"7",x:"3",y:"3",rx:"1"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"}]];st(t,We({name:"layout-panel-top"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ak(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]];st(t,We({name:"link"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ek(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M16 5H3"}],["path",{d:"M11 12H3"}],["path",{d:"M16 19H3"}],["path",{d:"m15.5 9.5 5 5"}],["path",{d:"m20.5 9.5-5 5"}]];st(t,We({name:"list-x"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Cp(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]];st(t,We({name:"loader-circle"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Tk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]];st(t,We({name:"log-out"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ok(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}],["path",{d:"M12 12V8"}]];st(t,We({name:"network"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Mk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]];st(t,We({name:"package"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function $k(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["circle",{cx:"6",cy:"19",r:"3"}],["path",{d:"M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15"}],["circle",{cx:"18",cy:"5",r:"3"}]];st(t,We({name:"route"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ap(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]];st(t,We({name:"search"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Ik(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]];st(t,We({name:"sliders-horizontal"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function Nk(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3"}],["path",{d:"M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4"}],["path",{d:"M5 21h14"}]];st(t,We({name:"sprout"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}function ph(t,e){const r=Qe(e,["children","$$slots","$$events","$$legacy"]);/** - * @license lucide-svelte v1.0.1 - ISC - * - * ISC License - * - * Copyright (c) 2026 Lucide Icons and Contributors - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - * - * --- - * - * The following Lucide icons are derived from the Feather project: - * - * airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out - * - * The MIT License (MIT) (for the icons listed above) - * - * Copyright (c) 2013-present Cole Bemis - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */const n=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]];st(t,We({name:"star"},()=>r,{get iconNode(){return n},children:(o,s)=>{var i=se(),a=E(i);nt(a,e,"default",{}),b(o,i)},$$slots:{default:!0}}))}var zk=ce('
    ',1),mh=ce(" ",1),Rk=ce(" Signing in…",1),Fk=ce('
    '),Lk=ce('
    ');function Dk(t,e){$e(e,!0);let r=Ce(""),n=Ce(""),o=Ce(!1),s=Ce(null);cd(()=>{var u;(u=d(s))==null||u.focus()});async function i(){if(!(!d(r)||d(o))){R(o,!0),R(n,"");try{await Xo.login(d(r)),R(r,""),e.onLogin()}catch(u){R(n,u instanceof Error?u.message:"login failed",!0)}finally{R(o,!1)}}}var a=Lk(),c=B(a);I(c,()=>bt,(u,f)=>{f(u,{class:"w-full max-w-sm",children:(v,h)=>{var g=mh(),p=E(g);I(p,()=>Et,(y,w)=>{w(y,{children:(P,T)=>{var k=zk(),S=E(k),O=B(S);Nk(O,{class:"size-5","aria-hidden":"true"});var N=A(S,2);I(N,()=>Jt,(L,G)=>{G(L,{children:(H,D)=>{var q=Pe("Sower Admin");b(H,q)},$$slots:{default:!0}})});var x=A(N,2);I(x,()=>At,(L,G)=>{G(L,{children:(H,D)=>{var q=Pe("输入 sower 配置中的 admin 密码。");b(H,q)},$$slots:{default:!0}})}),b(P,k)},$$slots:{default:!0}})});var m=A(p,2);I(m,()=>_t,(y,w)=>{w(y,{children:(P,T)=>{var k=Fk(),S=B(k),O=B(S);hk(O,{for:"admin-password",children:(H,D)=>{var q=Pe("Password");b(H,q)},$$slots:{default:!0}});var N=A(O,2);wd(N,{id:"admin-password",type:"password",placeholder:"Password",autocomplete:"current-password",get ref(){return d(s)},set ref(H){R(s,H,!0)},get value(){return d(r)},set value(H){R(r,H,!0)}});var x=A(S,2);{var L=H=>{var D=se(),q=E(D);I(q,()=>yd,(Z,z)=>{z(Z,{variant:"destructive",children:(F,de)=>{var ee=mh(),fe=E(ee);Ld(fe,{class:"size-4"});var C=A(fe,2);I(C,()=>fd,(Oe,Se)=>{Se(Oe,{children:(K,te)=>{var U=Pe();Te(()=>ke(U,d(n))),b(K,U)},$$slots:{default:!0}})}),b(F,ee)},$$slots:{default:!0}})}),b(H,D)};Be(x,H=>{d(n)&&H(L)})}var G=A(x,2);{let H=W(()=>d(o)||!d(r));pn(G,{type:"submit",get disabled(){return d(H)},children:(D,q)=>{var Z=se(),z=E(Z);{var F=ee=>{var fe=Rk(),C=E(fe);Cp(C,{class:"size-4 animate-spin","aria-hidden":"true"}),b(ee,fe)},de=ee=>{var fe=Pe("Sign in");b(ee,fe)};Be(z,ee=>{d(o)?ee(F):ee(de,-1)})}b(D,Z)},$$slots:{default:!0}})}_v("submit",k,H=>{H.preventDefault(),i()}),b(P,k)},$$slots:{default:!0}})}),b(v,g)},$$slots:{default:!0}})}),b(t,a),Ie()}function ur(t){if(!Number.isFinite(t)||t<0)return"-";if(t<1024)return`${t} B`;const e=["KB","MB","GB","TB","PB"];let r=t,n=-1;do r/=1024,n++;while(r>=1024&&n0?`${e}d ${r}h`:r>0?`${r}h ${n}m`:n>0?`${n}m ${o}s`:`${o}s`}function ot(t){return t>=1e9?`${(t/1e9).toFixed(1)}B`:t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:`${t}`}function Vk(t){const e=new Date(t);if(Number.isNaN(e.getTime()))return"-";const r=o=>String(o).padStart(2,"0"),n=`${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`;return e.toDateString()===new Date().toDateString()?n:`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${n}`}const Rt=Yt({status:null,traffic:null,history:[],connected:!1});let Nt=null,Ku="",hl=null;function Lc(t){try{return JSON.parse(t)}catch{return null}}function Wk(t){hl=t}function Ep(t=""){Nt&&t===Ku||(Ku=t,Nt==null||Nt.close(),Nt=new EventSource(`/api/stream${t?`?${t}`:""}`),Nt.onopen=()=>Rt.connected=!0,Nt.onerror=()=>Rt.connected=!1,Nt.addEventListener("status",e=>{const r=Lc(e.data);r&&(Rt.status=r)}),Nt.addEventListener("traffic",e=>{const r=Lc(e.data);r&&(Rt.traffic=r)}),Nt.addEventListener("history",e=>{const r=Lc(e.data);r&&(Rt.history=r.samples)}),Nt.addEventListener("auth",()=>{hl==null||hl()}))}function jk(){Nt==null||Nt.close(),Nt=null,Ku="",Rt.status=null,Rt.traffic=null,Rt.history=[],Rt.connected=!1}const Gk=bd({base:"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! group/badge inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap transition-colors focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none",variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});var Hk=new Set(["$$slots","$$events","$$legacy","ref","href","class","variant","children"]);function wc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,Hk);var s=se(),i=E(s);Ev(i,()=>e.href?"a":"span",!1,(a,c)=>{ct(a,v=>r(v),()=>r()),Ke(a,v=>({"data-slot":"badge",href:e.href,class:v,...o}),[()=>He(Gk({variant:n()}),e.class)]);var u=se(),f=E(u);Fe(f,()=>e.children??ze),b(c,u)}),b(t,s),Ie()}var Kk=ce('
    ');function Dd(t,e){let r=M(e,"label",3,"加载中…");var n=Kk(),o=B(n);Cp(o,{class:"size-4 animate-spin","aria-hidden":"true"});var s=A(o,2),i=B(s);Te(()=>ke(i,r())),b(t,n)}var Uk=Ca(''),qk=Ca(''),Yk=Ca(''),Xk=Ca(''),Zk=ce(" "),Jk=ce('
    ',1),Qk=ce('
    等待采样数据…
    '),eS=ce(' '),tS=ce(' '),rS=ce('
    ');function Ka(t,e){$e(e,!0);let r=M(e,"height",3,160),n=M(e,"format",3,D=>String(D));const o=600,s=W(r),i=W(()=>e.series.flatMap(D=>D.values)),a=W(()=>d(i).length?Math.max(...d(i)):0),c=W(()=>d(i).length?Math.min(...d(i)):0),u=W(()=>d(a)-d(c)||1),f=W(()=>d(u)*.12),v=W(()=>d(a)+d(f)),h=W(()=>Math.max(0,d(c)-d(f))),g=W(()=>D=>e.labels.length<=1?0:D/(e.labels.length-1)*o),p=W(()=>D=>d(s)-(D-d(h))/(d(v)-d(h))*d(s)),m=W(()=>D=>D.length?D.map((q,Z)=>`${Z===0?"M":"L"}${d(g)(Z).toFixed(1)},${d(p)(q).toFixed(1)}`).join(" "):""),y=W(()=>D=>D.length?`${d(m)(D)} L${d(g)(D.length-1).toFixed(1)},${d(s)} L${d(g)(0).toFixed(1)},${d(s)} Z`:""),w=W(()=>e.labels.length<=2?[0,e.labels.length-1]:[0,Math.floor(e.labels.length/2),e.labels.length-1]),P=W(()=>d(w).map(D=>e.labels[D])),T=W(()=>e.labels.length>=2);let k=Ce(null),S=Ce(void 0);function O(D){if(!d(S))return;const q=d(S).getBoundingClientRect();if(q.width===0||e.labels.length<2)return;const Z=(D.clientX-q.left)/q.width;R(k,Math.max(0,Math.min(e.labels.length-1,Math.round(Z*(e.labels.length-1)))),!0)}var N=rS(),x=B(N);{var L=D=>{var q=Jk(),Z=E(q),z=B(Z);Mt(z,16,()=>[.25,.5,.75],qt,(Oe,Se)=>{var K=Uk();Pt(K,"x2",o),Te(()=>{Pt(K,"y1",d(s)*Se),Pt(K,"y2",d(s)*Se)}),b(Oe,K)});var F=A(z);Mt(F,17,()=>e.series,qt,(Oe,Se)=>{var K=qk();Te(te=>{Pt(K,"d",te),Uo(K,`fill:${d(Se).color}`)},[()=>d(y)(d(Se).values)]),b(Oe,K)});var de=A(F);Mt(de,17,()=>e.series,qt,(Oe,Se)=>{var K=Yk();Te(te=>{Pt(K,"d",te),Uo(K,`stroke:${d(Se).color}`)},[()=>d(m)(d(Se).values)]),b(Oe,K)});var ee=A(de);{var fe=Oe=>{var Se=Xk();Te((K,te)=>{Pt(Se,"x1",K),Pt(Se,"x2",te),Pt(Se,"y2",d(s))},[()=>d(g)(d(k)),()=>d(g)(d(k))]),b(Oe,Se)};Be(ee,Oe=>{d(k)!==null&&Oe(fe)})}ct(Z,Oe=>R(S,Oe),()=>d(S));var C=A(Z,2);Mt(C,21,()=>d(P),qt,(Oe,Se)=>{var K=Zk(),te=B(K);Te(()=>ke(te,d(Se))),b(Oe,K)}),Te(()=>{Pt(Z,"viewBox",`0 0 ${o} ${d(s)}`),Uo(Z,`height:${d(s)}px`)}),ii("mousemove",Z,O),_v("mouseleave",Z,()=>R(k,null)),b(D,q)},G=D=>{var q=Qk();Te(()=>Uo(q,`height:${d(s)}px`)),b(D,q)};Be(x,D=>{d(T)?D(L):D(G,-1)})}var H=A(x,2);Mt(H,21,()=>e.series,qt,(D,q)=>{var Z=tS(),z=B(Z),F=A(z),de=A(F);{var ee=fe=>{var C=eS(),Oe=B(C);Te(Se=>ke(Oe,Se),[()=>n()(d(q).values[d(k)]??0)]),b(fe,C)};Be(de,fe=>{d(k)!==null&&fe(ee)})}Te(()=>{Uo(z,`background:${d(q).color}`),ke(F,` ${d(q).name??""} `)}),b(D,Z)}),b(t,N),Ie()}ld(["mousemove"]);var ut=ce(" ",1),Tn=ce('
    ',1),nS=ce('

    自启动以来

    '),oS=ce('

    全部上游查询

    '),sS=ce('

    '),Ua=ce('

    近 60 秒均值

    '),Dc=ce('
    '),iS=ce('
    HTTP
    HTTPS
    SOCKS5

    ',1),aS=ce('
    Block
    Direct
    Proxy

    ',1),lS=ce('
    Goroutines
    堆内存
    ',1),cS=ce('

    ',1);function uS(t,e){$e(e,!0);const r=W(()=>Rt.traffic),n=W(()=>Rt.history),o=p=>new Date(p).toTimeString().slice(0,5),s=W(()=>d(n).map(p=>o(p.at)));function i(p){return d(n).map((m,y)=>{if(y===0)return 0;const w=d(n)[y-1];if(!w)return 0;const P=(new Date(m.at).getTime()-new Date(w.at).getTime())/1e3;return P>0?m[p]/P:0})}const a=p=>`${ur(p)}/s`,c=p=>`${p.toFixed(1)}/s`,u=W(()=>{const p=d(n)[0],m=d(n)[d(n).length-1];return p&&m?`${o(p.at)} – ${o(m.at)} · 进程内历史,重启后清空`:"进程内历史,重启后清空"});var f=se(),v=E(f);{var h=p=>{Dd(p,{})},g=p=>{var m=cS(),y=E(m);{var w=K=>{var te=se(),U=E(te);I(U,()=>yd,(ue,J)=>{J(ue,{variant:"destructive",class:"mb-4",children:(le,X)=>{var oe=ut(),ne=E(oe);Ld(ne,{class:"size-4"});var re=A(ne,2);I(re,()=>fd,(Ae,V)=>{V(Ae,{children:(Y,ve)=>{var ge=Pe("实时连接已断开,正在重连…");b(Y,ge)},$$slots:{default:!0}})}),b(le,oe)},$$slots:{default:!0}})}),b(K,te)};Be(y,K=>{Rt.connected||K(w)})}var P=A(y,2),T=B(P);I(T,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("版本");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);Mk(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl",children:(ie,Ne)=>{var _e=Pe();Te(()=>ke(_e,e.status.version||"-")),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{wc(re,{variant:"secondary",children:(V,Y)=>{var ve=Pe();Te(()=>ke(ve,e.status.date||"unknown build date")),b(V,ve)},$$slots:{default:!0}})},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var k=A(T,2);I(k,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("运行时长");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);Sk(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,je),[()=>Bk(d(r).uptime)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=nS();b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var S=A(k,2);I(S,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("DNS 查询");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);gh(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,je),[()=>ot(d(r).dnsQueries)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=oS();b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var O=A(S,2);I(O,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("代理流量");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);xk(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,je),[()=>ur(d(r).bytesUp+d(r).bytesDown)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=sS(),Y=B(V);Te((ve,ge)=>ke(Y,`↑ ${ve??""} / ↓ ${ge??""}`),[()=>ur(d(r).bytesUp),()=>ur(d(r).bytesDown)]),b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var N=A(P,2),x=B(N);I(x,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("上行速率");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);kk(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,`${je??""}/s`),[()=>ur(d(r).rates.bytesUpPerSec)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Ua();b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var L=A(x,2);I(L,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("下行速率");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);_k(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,`${je??""}/s`),[()=>ur(d(r).rates.bytesDownPerSec)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Ua();b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var G=A(L,2);I(G,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("DNS 速率");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);gh(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,`${je??""}/s`),[()=>d(r).rates.dnsPerSec.toFixed(1)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Ua();b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var H=A(G,2);I(H,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Tn(),Y=E(V),ve=B(Y);I(ve,()=>At,(Q,he)=>{he(Q,{children:(ie,Ne)=>{var _e=Pe("连接速率");b(ie,_e)},$$slots:{default:!0}})});var ge=A(ve,2);Ak(ge,{class:"size-4 text-muted-foreground"});var xe=A(Y,2);I(xe,()=>Jt,(Q,he)=>{he(Q,{class:"text-xl tabular-nums",children:(ie,Ne)=>{var _e=Pe();Te(je=>ke(_e,`${je??""}/s`),[()=>d(r).rates.connsPerSec.toFixed(1)]),b(ie,_e)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Ua();b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var D=A(N,2),q=B(D);I(q,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Dc(),Y=B(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("活跃连接");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);Ok(ve,{class:"size-4 text-muted-foreground"}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{class:"space-y-2",children:(re,Ae)=>{var V=iS(),Y=E(V),ve=A(B(Y),2),ge=B(ve),xe=A(Y,2),Q=A(B(xe),2),he=B(Q),ie=A(xe,2),Ne=A(B(ie),2),_e=B(Ne),je=A(ie,2),wt=B(je);Te((xt,Xe,Ze)=>{ke(ge,d(r).active.http),ke(he,d(r).active.https),ke(_e,d(r).active.socks5),ke(wt,`累计 ${xt??""} / ${Xe??""} / ${Ze??""}`)},[()=>ot(d(r).conns.http),()=>ot(d(r).conns.https),()=>ot(d(r).conns.socks5)]),b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var Z=A(q,2);I(Z,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Dc(),Y=B(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("规则命中");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);$k(ve,{class:"size-4 text-muted-foreground"}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{class:"space-y-2",children:(re,Ae)=>{var V=aS(),Y=E(V),ve=A(B(Y),2),ge=B(ve),xe=A(Y,2),Q=A(B(xe),2),he=B(Q),ie=A(xe,2),Ne=A(B(ie),2),_e=B(Ne),je=A(ie,2),wt=B(je);Te((xt,Xe,Ze,Ue,at,gt)=>{ke(ge,xt),ke(he,Xe),ke(_e,Ze),ke(wt,`已配置 ${Ue??""} / ${at??""} / ${gt??""} 条`)},[()=>ot(d(r).ruleHits.block),()=>ot(d(r).ruleHits.direct),()=>ot(d(r).ruleHits.proxy),()=>ot(e.status.rules.block),()=>ot(e.status.rules.direct),()=>ot(e.status.rules.proxy)]),b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var z=A(Z,2);I(z,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=Dc(),Y=B(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("系统");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);On(ve,{class:"size-4 text-muted-foreground"}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{class:"space-y-2",children:(re,Ae)=>{var V=lS(),Y=E(V),ve=A(B(Y),2),ge=B(ve),xe=A(Y,2),Q=A(B(xe),2),he=B(Q);Te((ie,Ne)=>{ke(ge,ie),ke(he,Ne)},[()=>ot(d(r).system.goroutines),()=>ur(d(r).system.heapAlloc)]),b(re,V)},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var F=A(D,2),de=B(F);I(de,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=ut(),Y=E(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("流量历史");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);I(ve,()=>Jt,(ge,xe)=>{xe(ge,{class:"text-base",children:(Q,he)=>{var ie=Pe("上下行速率");b(Q,ie)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{{let V=W(()=>[{name:"下行",color:"var(--chart-1)",values:i("bytesDown")},{name:"上行",color:"var(--chart-4)",values:i("bytesUp")}]);Ka(re,{get series(){return d(V)},get labels(){return d(s)},format:a})}},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var ee=A(de,2);I(ee,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=ut(),Y=E(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("DNS 与连接");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);I(ve,()=>Jt,(ge,xe)=>{xe(ge,{class:"text-base",children:(Q,he)=>{var ie=Pe("每秒查询 / 新建连接");b(Q,ie)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{{let V=W(()=>[{name:"DNS",color:"var(--chart-2)",values:i("dns")},{name:"连接",color:"var(--chart-3)",values:i("conns")}]);Ka(re,{get series(){return d(V)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var fe=A(ee,2);I(fe,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=ut(),Y=E(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("活跃连接");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);I(ve,()=>Jt,(ge,xe)=>{xe(ge,{class:"text-base",children:(Q,he)=>{var ie=Pe("分协议在线数");b(Q,ie)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{{let V=W(()=>[{name:"HTTP",color:"var(--chart-1)",values:d(n).map(Y=>Y.activeHttp)},{name:"HTTPS",color:"var(--chart-4)",values:d(n).map(Y=>Y.activeHttps)},{name:"SOCKS5",color:"var(--chart-3)",values:d(n).map(Y=>Y.activeSocks)}]);Ka(re,{get series(){return d(V)},get labels(){return d(s)},get format(){return ot}})}},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var C=A(fe,2);I(C,()=>bt,(K,te)=>{te(K,{children:(U,ue)=>{var J=ut(),le=E(J);I(le,()=>Et,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{var V=ut(),Y=E(V);I(Y,()=>At,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=Pe("规则命中");b(Q,ie)},$$slots:{default:!0}})});var ve=A(Y,2);I(ve,()=>Jt,(ge,xe)=>{xe(ge,{class:"text-base",children:(Q,he)=>{var ie=Pe("每秒路由决策");b(Q,ie)},$$slots:{default:!0}})}),b(re,V)},$$slots:{default:!0}})});var X=A(le,2);I(X,()=>_t,(oe,ne)=>{ne(oe,{children:(re,Ae)=>{{let V=W(()=>[{name:"Proxy",color:"var(--chart-1)",values:i("proxy")},{name:"Direct",color:"var(--chart-2)",values:i("direct")},{name:"Block",color:"var(--chart-5)",values:i("block")}]);Ka(re,{get series(){return d(V)},get labels(){return d(s)},format:c})}},$$slots:{default:!0}})}),b(U,J)},$$slots:{default:!0}})});var Oe=A(F,2),Se=B(Oe);Te(()=>ke(Se,d(u))),b(p,m)};Be(v,p=>{!e.status||!d(r)?p(h):p(g,-1)})}b(t,f),Ie()}var dS=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),fS=ce("");function hS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"value",15),o=M(e,"data-slot",3,"textarea"),s=Ge(e,dS);var i=fS();Ke(i,a=>({"data-slot":o(),class:a,...s}),[()=>He("rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e.class)]),ct(i,a=>r(a),()=>r()),uu(i,n),b(t,i),Ie()}var vS=ce(" ",1),gS=ce('
    ',1),pS=ce('

    '),mS=ce('
    '),bS=ce('
    ',1),yS=ce(" ",1);function wS(t,e){$e(e,!0);const r=200;let n=Ce(null),o=Ce(0),s=Ce(0),i=Ce(""),a=Ce(""),c=Ce(""),u=Ce(!1),f=Ce(!1),v=0,h;function g(H,D){return H===v&&D===e.category}async function p(H){const D=++v,q=e.category,Z=d(a);H||R(f,!0);try{const z=await Xo.rules(q,{q:Z,offset:H?0:d(s),limit:r});if(!g(D,q))return;R(n,H?z.rules:[...d(n)??[],...z.rules],!0),R(o,z.total,!0),R(s,z.offset+z.rules.length),R(c,"")}catch(z){if(!g(D,q))return;if(z instanceof Qs&&z.status===401){e.onUnauthorized();return}R(c,z instanceof Error?z.message:"load failed",!0)}finally{g(D,q)&&R(f,!1)}}async function m(){var Z;const H=++v,D=e.category,q=Math.max(((Z=d(n))==null?void 0:Z.length)??r,r);try{const z=await Xo.rules(D,{q:d(a),offset:0,limit:q});if(!g(H,D))return;R(n,z.rules,!0),R(o,z.total,!0),R(s,z.offset+z.rules.length),R(c,"")}catch(z){if(!g(H,D))return;if(z instanceof Qs&&z.status===401){e.onUnauthorized();return}R(c,z instanceof Error?z.message:"refresh failed",!0)}}async function y(){const H=d(i).split(` -`).map(Z=>Z.trim()).filter(Z=>Z.length>0);if(H.length===0||d(u))return;const D=++v,q=e.category;R(u,!0),R(c,"");try{if(await Xo.addRules(q,H),!g(D,q))return;R(i,""),await m()}catch(Z){if(!g(D,q))return;if(Z instanceof Qs&&Z.status===401){e.onUnauthorized();return}R(c,Z instanceof Error?Z.message:"add failed",!0)}finally{g(D,q)&&R(u,!1)}}async function w(H){if(d(u))return;const D=++v,q=e.category;R(u,!0),R(c,"");try{if(await Xo.removeRules(q,[H]),!g(D,q))return;await m()}catch(Z){if(!g(D,q))return;if(Z instanceof Qs&&Z.status===401){e.onUnauthorized();return}R(c,Z instanceof Error?Z.message:"remove failed",!0)}finally{g(D,q)&&R(u,!1)}}lt(()=>{e.category,clearTimeout(h),R(n,null),R(o,0),R(s,0),R(a,""),R(c,""),R(u,!1),p(!0)});function P(H){R(a,H.currentTarget.value,!0),clearTimeout(h),h=setTimeout(()=>{R(s,0),p(!0)},300)}var T=yS(),k=E(T);{var S=H=>{var D=se(),q=E(D);I(q,()=>yd,(Z,z)=>{z(Z,{variant:"destructive",class:"mb-4",children:(F,de)=>{var ee=vS(),fe=E(ee);Ld(fe,{class:"size-4"});var C=A(fe,2);I(C,()=>fd,(Oe,Se)=>{Se(Oe,{children:(K,te)=>{var U=Pe();Te(()=>ke(U,d(c))),b(K,U)},$$slots:{default:!0}})}),b(F,ee)},$$slots:{default:!0}})}),b(H,D)};Be(k,H=>{d(c)&&H(S)})}var O=A(k,2);I(O,()=>bt,(H,D)=>{D(H,{class:"mb-4",children:(q,Z)=>{var z=se(),F=E(z);I(F,()=>_t,(de,ee)=>{ee(de,{class:"grid gap-3 pt-6",children:(fe,C)=>{var Oe=gS(),Se=E(Oe);hS(Se,{rows:3,placeholder:`One rule per line, e.g. example.com or **.cn -Rules take effect immediately and reset on restart.`,get value(){return d(i)},set value(ue){R(i,ue,!0)}});var K=A(Se,2),te=B(K);{let ue=W(()=>d(u)||!d(i).trim());pn(te,{onclick:y,get disabled(){return d(ue)},children:(J,le)=>{var X=Pe("Add rules");b(J,X)},$$slots:{default:!0}})}var U=A(te,2);pn(U,{variant:"outline",onclick:()=>p(!0),get disabled(){return d(u)},children:(ue,J)=>{var le=Pe("Refresh");b(ue,le)},$$slots:{default:!0}}),b(fe,Oe)},$$slots:{default:!0}})}),b(q,z)},$$slots:{default:!0}})});var N=A(O,2);{var x=H=>{Dd(H,{})},L=H=>{var D=pS(),q=B(D);Ek(q,{class:"size-5","aria-hidden":"true"});var Z=A(q,2),z=B(Z);Te(F=>ke(z,F),[()=>d(a).trim()?`没有匹配“${d(a).trim()}”的规则。`:"该分类暂无规则。"]),b(H,D)},G=H=>{var D=bS(),q=E(D),Z=B(q),z=B(Z);Ap(z,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var F=A(z,2);wd(F,{get value(){return d(a)},oninput:P,placeholder:"搜索规则…","aria-label":"搜索规则",class:"pl-8"});var de=A(Z,2);wc(de,{variant:"secondary",class:"ml-auto shrink-0",children:(Oe,Se)=>{var K=se(),te=E(K);{var U=J=>{var le=Pe();Te(X=>ke(le,`${X??""} rules`),[()=>ot(d(o))]),b(J,le)},ue=J=>{var le=Pe();Te((X,oe)=>ke(le,`${X??""} / ${oe??""} rules`),[()=>ot(d(n).length),()=>ot(d(o))]),b(J,le)};Be(te,J=>{d(n).length===d(o)?J(U):J(ue,-1)})}b(Oe,K)},$$slots:{default:!0}});var ee=A(q,2);I(ee,()=>bt,(Oe,Se)=>{Se(Oe,{children:(K,te)=>{var U=se(),ue=E(U);I(ue,()=>_t,(J,le)=>{le(J,{class:"divide-y p-0",children:(X,oe)=>{var ne=se(),re=E(ne);Mt(re,16,()=>d(n),Ae=>Ae,(Ae,V)=>{var Y=mS(),ve=B(Y),ge=B(ve),xe=A(ve,2);pn(xe,{variant:"ghost",size:"sm",class:"shrink-0 text-destructive hover:bg-destructive/10 hover:text-destructive",onclick:()=>w(V),get disabled(){return d(u)},children:(Q,he)=>{var ie=Pe("Remove");b(Q,ie)},$$slots:{default:!0}}),Te(()=>ke(ge,V)),b(Ae,Y)}),b(X,ne)},$$slots:{default:!0}})}),b(K,U)},$$slots:{default:!0}})});var fe=A(ee,2);{var C=Oe=>{{let Se=W(()=>d(f)||d(u));pn(Oe,{variant:"outline",class:"mt-3 w-full",onclick:()=>p(!1),get disabled(){return d(Se)},children:(K,te)=>{var U=Pe();Te(ue=>ke(U,ue),[()=>d(f)?"加载中…":`加载更多(已加载 ${ot(d(n).length)} / ${ot(d(o))})`]),b(K,U)},$$slots:{default:!0}})}};Be(fe,Oe=>{d(n).length{d(n)===null?H(x):d(o)===0?H(L,1):H(G,-1)})}b(t,T),Ie()}var xS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),_S=ce("");function kS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,xS);var o=_S();Ke(o,i=>({"data-slot":"table-body",class:i,...n}),[()=>He("[&_tr:last-child]:border-0",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var SS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),PS=ce("");function io(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,SS);var o=PS();Ke(o,i=>({"data-slot":"table-cell",class:i,...n}),[()=>He("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var CS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),AS=ce("");function Go(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,CS);var o=AS();Ke(o,i=>({"data-slot":"table-head",class:i,...n}),[()=>He("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var ES=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),TS=ce("");function OS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,ES);var o=TS();Ke(o,i=>({"data-slot":"table-header",class:i,...n}),[()=>He("[&_tr]:border-b",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var MS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),$S=ce("");function Bc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,MS);var o=$S();Ke(o,i=>({"data-slot":"table-row",class:i,...n}),[()=>He("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var IS=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),NS=ce('
    ');function zS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,IS);var o=NS(),s=B(o);Ke(s,a=>({"data-slot":"table",class:a,...n}),[()=>He("w-full caption-bottom text-sm",e.class)]);var i=B(s);Fe(i,()=>e.children??ze),ct(s,a=>r(a),()=>r()),b(t,o),Ie()}var RS=ce('

    '),FS=ce('

    实时连接已断开,正在自动重连…

    '),LS=ce(''),DS=ce(''),BS=ce('
    '),bh=ce(" ",1),yh=ce(" ",1),wh=ce(" ",1),VS=ce('

    ',1);function WS(t,e){$e(e,!0);let r=M(e,"source",3,"all");const n=[{value:"bytes",label:"流量"},{value:"recent",label:"最近"},{value:"conns",label:"连接数"}],o=W(()=>Rt.traffic);let s=Ce(""),i=Ce("bytes"),a=Ce("");const c=W(()=>{var T;return((T=n.find(k=>k.value===d(i)))==null?void 0:T.label)??"流量"}),u={all:"流量",http:"HTTP",https:"HTTPS",socks5:"SOCKS5",dns:"DNS"},f=W(()=>u[r()]),v=W(()=>r()==="dns"),h=W(()=>{var S;const T=((S=d(o))==null?void 0:S.domains)??[],k=d(s).trim().toLowerCase();return k?T.filter(O=>O.domain.toLowerCase().includes(k)):T});lt(()=>{const T=new URLSearchParams;d(i)!=="bytes"&&T.set("sort",d(i)),r()!=="all"&&T.set("source",r()),d(a)&&T.set("client",d(a)),Ep(T.toString())});const g="sticky top-0 z-10 bg-card";var p=se(),m=E(p);{var y=T=>{Dd(T,{})},w=T=>{var k=RS(),S=B(k);Pk(S,{class:"size-5","aria-hidden":"true"});var O=A(S,2),N=B(O);Te(()=>ke(N,`暂无${d(f)??""}记录。`)),b(T,k)},P=T=>{var k=VS(),S=E(k);{var O=ee=>{var fe=FS();b(ee,fe)};Be(S,ee=>{Rt.connected||ee(O)})}var N=A(S,2),x=B(N),L=B(x);Ap(L,{class:"pointer-events-none absolute left-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground"});var G=A(L,2);wd(G,{placeholder:"过滤域名…","aria-label":"过滤域名",class:"pl-8",get value(){return d(s)},set value(ee){R(s,ee,!0)}});var H=A(x,2);Mt(H,21,()=>n,qt,(ee,fe)=>{var C=LS(),Oe=B(C);Te(()=>{Qo(C,1,`rounded-sm px-2.5 py-1 text-xs font-medium transition-colors ${d(i)===d(fe).value?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`),Pt(C,"aria-pressed",d(i)===d(fe).value),ke(Oe,d(fe).label)}),ii("click",C,()=>R(i,d(fe).value,!0)),b(ee,C)});var D=A(H,2);wc(D,{variant:"secondary",class:"ml-auto shrink-0",children:(ee,fe)=>{var C=se(),Oe=E(C);{var Se=te=>{var U=Pe();Te(ue=>ke(U,`${ue??""} domains`),[()=>ot(d(h).length)]),b(te,U)},K=te=>{var U=Pe();Te((ue,J)=>ke(U,`${ue??""} / ${J??""} domains`),[()=>ot(d(h).length),()=>ot((d(o).domains??[]).length)]),b(te,U)};Be(Oe,te=>{d(h).length===(d(o).domains??[]).length?te(Se):te(K,-1)})}b(ee,C)},$$slots:{default:!0}});var q=A(N,2);{var Z=ee=>{var fe=BS(),C=B(fe),Oe=A(C,2);Mt(Oe,17,()=>d(o).clients,qt,(Se,K)=>{var te=DS(),U=B(te),ue=A(U),J=B(ue);Te((le,X)=>{Qo(te,1,`rounded-full border px-3 py-1 font-mono text-xs transition-colors ${d(a)===d(K).ip?"border-primary/40 bg-primary/10 text-foreground":"text-muted-foreground hover:text-foreground"}`),Pt(te,"aria-pressed",d(a)===d(K).ip),Pt(te,"title",le),ke(U,`${d(K).ip??""} `),ke(J,X)},[()=>`${ot(d(K).conns)} 次 · ↑${ur(d(K).bytesUp)} ↓${ur(d(K).bytesDown)}`,()=>ot(d(K).conns)]),ii("click",te,()=>R(a,d(K).ip,!0)),b(Se,te)}),Te(()=>{Qo(C,1,`rounded-full border px-3 py-1 text-xs font-medium transition-colors ${d(a)?"text-muted-foreground hover:text-foreground":"border-primary/40 bg-primary/10 text-foreground"}`),Pt(C,"aria-pressed",!d(a))}),ii("click",C,()=>R(a,"")),b(ee,fe)};Be(q,ee=>{(d(o).clients??[]).length>0&&ee(Z)})}var z=A(q,2);I(z,()=>bt,(ee,fe)=>{fe(ee,{class:"max-h-[70vh] overflow-auto",children:(C,Oe)=>{var Se=se(),K=E(Se);I(K,()=>zS,(te,U)=>{U(te,{children:(ue,J)=>{var le=wh(),X=E(le);I(X,()=>OS,(ne,re)=>{re(ne,{children:(Ae,V)=>{var Y=se(),ve=E(Y);I(ve,()=>Bc,(ge,xe)=>{xe(ge,{children:(Q,he)=>{var ie=yh(),Ne=E(ie);I(Ne,()=>Go,(Xe,Ze)=>{Ze(Xe,{class:g,children:(Ue,at)=>{var gt=Pe("Domain");b(Ue,gt)},$$slots:{default:!0}})});var _e=A(Ne,2);I(_e,()=>Go,(Xe,Ze)=>{Ze(Xe,{class:g+" text-right",children:(Ue,at)=>{var gt=Pe("Requests");b(Ue,gt)},$$slots:{default:!0}})});var je=A(_e,2);{var wt=Xe=>{var Ze=bh(),Ue=E(Ze);I(Ue,()=>Go,(Lt,et)=>{et(Lt,{class:g+" text-right",children:(tt,Dt)=>{var Zt=Pe("Up");b(tt,Zt)},$$slots:{default:!0}})});var at=A(Ue,2);I(at,()=>Go,(Lt,et)=>{et(Lt,{class:g+" text-right",children:(tt,Dt)=>{var Zt=Pe("Down");b(tt,Zt)},$$slots:{default:!0}})});var gt=A(at,2);I(gt,()=>Go,(Lt,et)=>{et(Lt,{class:g+" text-right",children:(tt,Dt)=>{var Zt=Pe("Total");b(tt,Zt)},$$slots:{default:!0}})}),b(Xe,Ze)};Be(je,Xe=>{d(v)||Xe(wt)})}var xt=A(je,2);I(xt,()=>Go,(Xe,Ze)=>{Ze(Xe,{class:g+" text-right",children:(Ue,at)=>{var gt=Pe("Last seen");b(Ue,gt)},$$slots:{default:!0}})}),b(Q,ie)},$$slots:{default:!0}})}),b(Ae,Y)},$$slots:{default:!0}})});var oe=A(X,2);I(oe,()=>kS,(ne,re)=>{re(ne,{children:(Ae,V)=>{var Y=wh(),ve=E(Y);{var ge=Q=>{var he=se(),ie=E(he);I(ie,()=>Bc,(Ne,_e)=>{_e(Ne,{children:(je,wt)=>{var xt=se(),Xe=E(xt);{let Ze=W(()=>d(v)?3:6);I(Xe,()=>io,(Ue,at)=>{at(Ue,{get colspan(){return d(Ze)},class:"py-8 text-center text-sm text-muted-foreground",children:(gt,Lt)=>{var et=Pe();Te(()=>ke(et,`没有匹配“${d(s)??""}”的域名。`)),b(gt,et)},$$slots:{default:!0}})})}b(je,xt)},$$slots:{default:!0}})}),b(Q,he)};Be(ve,Q=>{d(h).length===0&&Q(ge)})}var xe=A(ve,2);Mt(xe,17,()=>d(h),Q=>Q.domain,(Q,he)=>{var ie=se(),Ne=E(ie);I(Ne,()=>Bc,(_e,je)=>{je(_e,{children:(wt,xt)=>{var Xe=yh(),Ze=E(Xe);I(Ze,()=>io,(et,tt)=>{tt(et,{class:"max-w-[20rem] truncate font-mono text-xs",children:(Dt,Zt)=>{var Cr=Pe();Te(()=>ke(Cr,d(he).domain)),b(Dt,Cr)},$$slots:{default:!0}})});var Ue=A(Ze,2);I(Ue,()=>io,(et,tt)=>{tt(et,{class:"text-right tabular-nums",children:(Dt,Zt)=>{var Cr=Pe();Te(qr=>ke(Cr,qr),[()=>ot(d(he).conns)]),b(Dt,Cr)},$$slots:{default:!0}})});var at=A(Ue,2);{var gt=et=>{var tt=bh(),Dt=E(tt);I(Dt,()=>io,(qr,Fs)=>{Fs(qr,{class:"text-right tabular-nums",children:(Ls,Jd)=>{var Sn=Pe();Te(Ds=>ke(Sn,Ds),[()=>ur(d(he).bytesUp)]),b(Ls,Sn)},$$slots:{default:!0}})});var Zt=A(Dt,2);I(Zt,()=>io,(qr,Fs)=>{Fs(qr,{class:"text-right tabular-nums",children:(Ls,Jd)=>{var Sn=Pe();Te(Ds=>ke(Sn,Ds),[()=>ur(d(he).bytesDown)]),b(Ls,Sn)},$$slots:{default:!0}})});var Cr=A(Zt,2);I(Cr,()=>io,(qr,Fs)=>{Fs(qr,{class:"text-right font-medium tabular-nums",children:(Ls,Jd)=>{var Sn=Pe();Te(Ds=>ke(Sn,Ds),[()=>ur(d(he).bytesUp+d(he).bytesDown)]),b(Ls,Sn)},$$slots:{default:!0}})}),b(et,tt)};Be(at,et=>{d(v)||et(gt)})}var Lt=A(at,2);I(Lt,()=>io,(et,tt)=>{tt(et,{class:"text-right text-muted-foreground tabular-nums",children:(Dt,Zt)=>{var Cr=Pe();Te(qr=>ke(Cr,qr),[()=>Vk(d(he).lastSeen)]),b(Dt,Cr)},$$slots:{default:!0}})}),b(wt,Xe)},$$slots:{default:!0}})}),b(Q,ie)}),b(Ae,Y)},$$slots:{default:!0}})}),b(ue,le)},$$slots:{default:!0}})}),b(C,Se)},$$slots:{default:!0}})});var F=A(z,2),de=B(F);Te(()=>ke(de,`按${d(c)??""}排序的前 100 个${d(v)?"DNS 查询域名":d(f)+"域名"},实时推送。`)),b(T,k)};Be(m,T=>{d(o)?(d(o).domains??[]).length===0?T(w,1):T(P,-1):T(y)})}b(t,p),Ie()}ld(["click"]);var jS=new Set(["$$slots","$$events","$$legacy"]);function GS(t,e){let r=Ge(e,jS);var n=se(),o=E(n);I(o,()=>B_,(s,i)=>{i(s,We(()=>r))}),b(t,n)}var HS=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function Vc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"sideOffset",3,4),o=M(e,"align",3,"start"),s=Ge(e,HS);GS(t,We(()=>e.portalProps,{children:(i,a)=>{var c=se(),u=E(c);{let f=W(()=>He("min-w-32 rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 z-50 w-(--bits-dropdown-menu-anchor-width) overflow-x-hidden overflow-y-auto outline-none data-closed:overflow-hidden",e.class));I(u,()=>ok,(v,h)=>{h(v,We({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return o()},get class(){return d(f)}},()=>s,{get ref(){return r()},set ref(g){r(g)}}))})}b(i,c)},$$slots:{default:!0}})),Ie()}var KS=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function qa(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=M(e,"variant",3,"default"),o=Ge(e,KS);var s=se(),i=E(s);{let a=W(()=>He("gap-1.5 rounded-md px-1.5 py-1 text-sm focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive group/dropdown-menu-item relative flex cursor-default items-center outline-hidden select-none data-[inset]:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",e.class));I(i,()=>J1,(c,u)=>{u(c,We({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return d(a)}},()=>o,{get ref(){return r()},set ref(f){r(f)}}))})}b(t,s),Ie()}var US=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),qS=ce("
    ");function xh(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,US);var o=qS();Ke(o,i=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:i,...n}),[()=>He("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7 data-[inset]:pl-8",e.class)]);var s=B(o);Fe(s,()=>e.children??ze),ct(o,i=>r(i),()=>r()),b(t,o),Ie()}var YS=new Set(["$$slots","$$events","$$legacy","ref","class"]);function XS(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,YS);var o=se(),s=E(o);{let i=W(()=>He("-mx-1 my-1 h-px bg-border",e.class));I(s,()=>tk,(a,c)=>{c(a,We({"data-slot":"dropdown-menu-separator",get class(){return d(i)}},()=>n,{get ref(){return r()},set ref(u){r(u)}}))})}b(t,o),Ie()}var ZS=new Set(["$$slots","$$events","$$legacy","ref"]);function Wc(t,e){$e(e,!0);let r=M(e,"ref",15,null),n=Ge(e,ZS);var o=se(),s=E(o);I(s,()=>ak,(i,a)=>{a(i,We({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),b(t,o),Ie()}var JS=new Set(["$$slots","$$events","$$legacy","open"]);function jc(t,e){$e(e,!0);let r=M(e,"open",15,!1),n=Ge(e,JS);var o=se(),s=E(o);I(s,()=>rk,(i,a)=>{a(i,We(()=>n,{get open(){return r()},set open(c){r(c)}}))}),b(t,o),Ie()}const Zo=[{key:"overview",label:"概览",description:"运行状态与流量总览"},{key:"rules",label:"规则",description:"运行期路由规则管理"},{key:"traffic",label:"流量",description:"按域名聚合的实时流量"}];var QS=ce(' Sower Admin',1),eP=ce(' ',1),tP=ce(' ',1),Gc=ce(" ",1),rP=ce(' ',1),nP=ce(' '),oP=ce(' ',1),sP=ce(' '),iP=ce('
  • /
  • ',1),aP=ce(' ',1),lP=ce(''),cP=ce(' ',1),uP=ce(' ',1),dP=ce('
    '),fP=ce('

    暂无收藏。点击下方星标加入常用入口。

    '),hP=ce(' ',1),vP=ce("
    "),gP=ce('
    ',1),pP=ce('
    ');function mP(t,e){$e(e,!0);let r=M(e,"contextSegments",19,()=>[]),n=M(e,"onContextSelect",3,()=>{}),o=M(e,"onSelectItem",3,()=>{}),s=M(e,"onLogout",3,()=>{}),i=M(e,"status",3,null),a=M(e,"statusError",3,"");const c={overview:On,rules:Ik,traffic:wk};let u=Ce(Yt([])),f=W(()=>new Set(d(u))),v=W(()=>d(u).map(z=>Zo.find(F=>F.key===z)).filter(z=>!!z));const h="sower.admin.favoritePages.v1";cd(()=>{R(u,g(),!0);const z=F=>{F.key===h&&R(u,g(),!0)};return window.addEventListener("storage",z),()=>window.removeEventListener("storage",z)});function g(){const z=new Set(Zo.map(F=>F.key));try{const F=JSON.parse(localStorage.getItem(h)??"[]");return(Array.isArray(F)?F:[]).filter(de=>z.has(de))}catch{return[]}}function p(z){R(u,z.filter((F,de)=>z.indexOf(F)===de),!0);try{localStorage.setItem(h,JSON.stringify(d(u)))}catch{}}function m(z,F){if(z.preventDefault(),z.stopPropagation(),d(f).has(F)){p(d(u).filter(de=>de!==F));return}p([...d(u),F])}function y(z){switch(z.tone){case"strong":return"text-foreground font-semibold";case"method":return"text-primary font-mono";default:return"text-muted-foreground font-medium"}}var w=pP(),P=B(w),T=B(P),k=B(T),S=B(k);pn(S,{variant:"ghost",class:"h-9 gap-1.5 px-2 text-foreground",onclick:()=>o()("overview"),title:"回到概览",children:(z,F)=>{var de=QS(),ee=E(de);On(ee,{class:"size-4 text-primary"}),b(z,de)},$$slots:{default:!0}});var O=A(k,4),N=B(O);I(N,()=>jc,(z,F)=>{F(z,{children:(de,ee)=>{const fe=W(()=>c[e.activeItem.key]??On);var C=Gc(),Oe=E(C);I(Oe,()=>Wc,(K,te)=>{te(K,{class:"inline-flex h-9 max-w-[14rem] items-center gap-1.5 rounded-md px-2 text-sm font-semibold text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"控制台分区",children:(U,ue)=>{var J=eP(),le=E(J);I(le,()=>d(fe),(re,Ae)=>{Ae(re,{class:"size-4 shrink-0 text-primary"})});var X=A(le,2),oe=B(X),ne=A(X,2);Fc(ne,{class:"size-3.5 shrink-0 text-muted-foreground"}),Te(()=>ke(oe,e.activeItem.label)),b(U,J)},$$slots:{default:!0}})});var Se=A(Oe,2);I(Se,()=>Vc,(K,te)=>{te(K,{class:"min-w-56",align:"start",children:(U,ue)=>{var J=se(),le=E(J);Mt(le,17,()=>Zo,qt,(X,oe)=>{const ne=W(()=>c[d(oe).key]??On);var re=se(),Ae=E(re);{let V=W(()=>He("gap-2.5 py-2",d(oe).key===e.activeItem.key&&"bg-accent text-accent-foreground"));I(Ae,()=>qa,(Y,ve)=>{ve(Y,{onSelect:()=>o()(d(oe).key),get class(){return d(V)},children:(ge,xe)=>{var Q=tP(),he=E(Q),ie=B(he);I(ie,()=>d(ne),(Ue,at)=>{at(Ue,{class:"size-4"})});var Ne=A(he,2),_e=B(Ne),je=B(_e),wt=A(_e,2),xt=B(wt),Xe=A(Ne,2);{var Ze=Ue=>{vh(Ue,{class:"ms-auto size-4 text-primary"})};Be(Xe,Ue=>{d(oe).key===e.activeItem.key&&Ue(Ze)})}Te(()=>{ke(je,d(oe).label),ke(xt,d(oe).description)}),b(ge,Q)},$$slots:{default:!0}})})}b(X,re)}),b(U,J)},$$slots:{default:!0}})}),b(de,C)},$$slots:{default:!0}})});var x=A(O,2);Mt(x,17,r,qt,(z,F)=>{var de=iP(),ee=A(E(de),2),fe=B(ee);{var C=Se=>{var K=se(),te=E(K);I(te,()=>jc,(U,ue)=>{ue(U,{children:(J,le)=>{var X=Gc(),oe=E(X);{let re=W(()=>He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 rounded-md px-2 text-sm transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted",y(d(F)))),Ae=W(()=>d(F).title??`${d(F).label}: ${d(F).value}`),V=W(()=>`${d(F).label}: ${d(F).value}`);I(oe,()=>Wc,(Y,ve)=>{ve(Y,{get class(){return d(re)},get title(){return d(Ae)},get"aria-label"(){return d(V)},children:(ge,xe)=>{var Q=rP(),he=E(Q),ie=B(he),Ne=A(he,2),_e=B(Ne),je=A(Ne,2);Fc(je,{class:"size-3.5 shrink-0 text-muted-foreground"}),Te(()=>{ke(ie,d(F).label),ke(_e,d(F).value)}),b(ge,Q)},$$slots:{default:!0}})})}var ne=A(oe,2);I(ne,()=>Vc,(re,Ae)=>{Ae(re,{class:"min-w-44",align:"start",children:(V,Y)=>{var ve=se(),ge=E(ve);Mt(ge,17,()=>d(F).options,qt,(xe,Q)=>{var he=se(),ie=E(he);{let Ne=W(()=>He("gap-2",d(Q).active&&"bg-accent text-accent-foreground"));I(ie,()=>qa,(_e,je)=>{je(_e,{onSelect:()=>n()(d(F).label,d(Q).value),get class(){return d(Ne)},children:(wt,xt)=>{var Xe=oP(),Ze=E(Xe),Ue=B(Ze),at=A(Ze,2);{var gt=tt=>{var Dt=nP(),Zt=B(Dt);Te(()=>ke(Zt,d(Q).description)),b(tt,Dt)};Be(at,tt=>{d(Q).description&&tt(gt)})}var Lt=A(at,2);{var et=tt=>{vh(tt,{class:"ms-auto size-4 text-primary"})};Be(Lt,tt=>{d(Q).active&&tt(et)})}Te(()=>ke(Ue,d(Q).label)),b(wt,Xe)},$$slots:{default:!0}})})}b(xe,he)}),b(V,ve)},$$slots:{default:!0}})}),b(J,X)},$$slots:{default:!0}})}),b(Se,K)},Oe=Se=>{var K=sP(),te=B(K),U=B(te),ue=A(te,2),J=B(ue);Te(le=>{Qo(K,1,le),Pt(K,"title",d(F).title??`${d(F).label}: ${d(F).value}`),ke(U,d(F).label),ke(J,d(F).value)},[()=>lu(He("inline-flex h-9 max-w-[16rem] items-center gap-1.5 px-2",y(d(F))))]),b(Se,K)};Be(fe,Se=>{var K;(K=d(F).options)!=null&&K.length?Se(C):Se(Oe,-1)})}b(z,de)});var L=A(P,2),G=B(L);{var H=z=>{var F=lP();Mt(F,21,()=>d(v).slice(0,4),qt,(de,ee)=>{const fe=W(()=>c[d(ee).key]??On);{let C=W(()=>He("gap-1.5",d(ee).key===e.activeItem.key&&"border-primary/40 bg-primary/10")),Oe=W(()=>`打开 ${d(ee).label}`);pn(de,{variant:"outline",size:"sm",get class(){return d(C)},get title(){return d(Oe)},onclick:()=>o()(d(ee).key),children:(Se,K)=>{var te=aP(),U=E(te);I(U,()=>d(fe),(le,X)=>{X(le,{class:"size-3.5"})});var ue=A(U,2),J=B(ue);Te(()=>ke(J,d(ee).label)),b(Se,te)},$$slots:{default:!0}})}}),b(z,F)};Be(G,z=>{d(v).length>0&&z(H)})}var D=A(G,2);I(D,()=>jc,(z,F)=>{F(z,{children:(de,ee)=>{var fe=Gc(),C=E(fe);I(C,()=>Wc,(Se,K)=>{K(Se,{class:"inline-flex h-7 items-center gap-1.5 rounded-md border border-input bg-background px-2.5 text-sm font-medium text-foreground transition-colors outline-none hover:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 aria-expanded:bg-muted","aria-label":"页面与收藏夹",children:(te,U)=>{var ue=cP(),J=E(ue);Ck(J,{class:"size-3.5"});var le=A(J,4);Fc(le,{class:"size-3 text-muted-foreground"}),b(te,ue)},$$slots:{default:!0}})});var Oe=A(C,2);I(Oe,()=>Vc,(Se,K)=>{K(Se,{class:"w-64",children:(te,U)=>{var ue=gP(),J=E(ue);I(J,()=>xh,(V,Y)=>{Y(V,{children:(ve,ge)=>{var xe=Pe("收藏夹");b(ve,xe)},$$slots:{default:!0}})});var le=A(J,2);{var X=V=>{var Y=dP();Mt(Y,21,()=>d(v),qt,(ve,ge)=>{const xe=W(()=>c[d(ge).key]??On);var Q=se(),he=E(Q);{let ie=W(()=>He("gap-2 py-1.5",d(ge).key===e.activeItem.key&&"bg-accent text-accent-foreground"));I(he,()=>qa,(Ne,_e)=>{_e(Ne,{onSelect:()=>o()(d(ge).key),get class(){return d(ie)},children:(je,wt)=>{var xt=uP(),Xe=E(xt),Ze=B(Xe);I(Ze,()=>d(xe),(Lt,et)=>{et(Lt,{class:"size-3.5"})});var Ue=A(Xe,2),at=B(Ue),gt=A(Ue,2);ph(gt,{class:"ms-auto size-3.5 fill-current text-primary"}),Te(()=>ke(at,d(ge).label)),b(je,xt)},$$slots:{default:!0}})})}b(ve,Q)}),b(V,Y)},oe=V=>{var Y=fP();b(V,Y)};Be(le,V=>{d(v).length>0?V(X):V(oe,-1)})}var ne=A(le,2);I(ne,()=>XS,(V,Y)=>{Y(V,{})});var re=A(ne,2);I(re,()=>xh,(V,Y)=>{Y(V,{children:(ve,ge)=>{var xe=Pe("全部页面");b(ve,xe)},$$slots:{default:!0}})});var Ae=A(re,2);Mt(Ae,21,()=>Zo,qt,(V,Y)=>{const ve=W(()=>c[d(Y).key]??On),ge=W(()=>d(f).has(d(Y).key));var xe=vP(),Q=B(xe);I(Q,()=>qa,(ie,Ne)=>{Ne(ie,{onSelect:()=>o()(d(Y).key),class:"min-w-0 flex-1 gap-2 py-1.5",children:(_e,je)=>{var wt=hP(),xt=E(wt),Xe=B(xt);I(Xe,()=>d(ve),(et,tt)=>{tt(et,{class:"size-4"})});var Ze=A(xt,2),Ue=B(Ze),at=B(Ue),gt=A(Ue,2),Lt=B(gt);Te(()=>{ke(at,d(Y).label),ke(Lt,d(Y).description)}),b(_e,wt)},$$slots:{default:!0}})});var he=A(Q,2);{let ie=W(()=>He("mx-0.5 shrink-0",d(ge)&&"text-primary")),Ne=W(()=>`${d(ge)?"取消收藏":"收藏"} ${d(Y).label}`);pn(he,{variant:"ghost",size:"icon-sm",get class(){return d(ie)},get"aria-label"(){return d(Ne)},get"aria-pressed"(){return d(ge)},onclick:_e=>m(_e,d(Y).key),children:(_e,je)=>{{let wt=W(()=>He("size-4",d(ge)&&"fill-current"));ph(_e,{get class(){return d(wt)}})}},$$slots:{default:!0}})}Te(ie=>Qo(xe,1,ie),[()=>lu(He("flex items-center gap-0.5 rounded-md",d(Y).key===e.activeItem.key&&"bg-accent text-accent-foreground"))]),b(V,xe)}),b(te,ue)},$$slots:{default:!0}})}),b(de,fe)},$$slots:{default:!0}})});var q=A(D,2);{let z=W(()=>a()?"destructive":i()?"secondary":"outline");wc(q,{get variant(){return d(z)},class:"hidden sm:inline-flex",children:(F,de)=>{var ee=Pe();Te(()=>ke(ee,a()?"Error":i()?"Ready":"Loading")),b(F,ee)},$$slots:{default:!0}})}var Z=A(q,2);pn(Z,{variant:"ghost",size:"icon-sm",title:"退出登录","aria-label":"退出登录",get onclick(){return s()},children:(z,F)=>{Tk(z,{class:"size-4"})},$$slots:{default:!0}}),b(t,w),Ie()}var bP=ce("
    "),yP=ce('
    ',1);function wP(t,e){$e(e,!0);let r=Ce(!1),n=Ce("overview"),o=Ce("proxy"),s=Ce("all");const i=W(()=>Rt.status),a=W(()=>Zo.find(w=>w.key===d(n))??Zo[0]),c=W(()=>{switch(d(n)){case"overview":return d(i)?[{label:"version",value:d(i).version||"-",tone:"strong",title:`构建日期 ${d(i).date||"未知"}`}]:[];case"rules":return[{label:"category",value:d(o),tone:"strong",options:["block","direct","proxy"].map(w=>({label:w,value:w,active:w===d(o)}))}];case"traffic":return[{label:"source",value:d(s),tone:"strong",options:["all","http","https","socks5","dns"].map(w=>({label:w,value:w,active:w===d(s)}))}]}});function u(){R(r,!0),R(n,"overview"),Ep()}async function f(){try{await Xo.logout()}catch{}finally{v()}}function v(){R(r,!1),jk()}lt(()=>{Wk(v)});function h(w,P){w==="category"?R(o,P,!0):w==="source"&&R(s,P,!0)}var g=se(),p=E(g);{var m=w=>{Dk(w,{onLogin:u})},y=w=>{var P=yP(),T=E(P);mP(T,{get activeItem(){return d(a)},get contextSegments(){return d(c)},onContextSelect:h,onSelectItem:O=>R(n,O,!0),get status(){return d(i)},onLogout:f});var k=A(T,2),S=B(k);Pv(S,()=>d(n),O=>{var N=bP(),x=B(N);{var L=D=>{uS(D,{get status(){return d(i)}})},G=D=>{wS(D,{get category(){return d(o)},onUnauthorized:v})},H=D=>{WS(D,{get source(){return d(s)}})};Be(x,D=>{d(n)==="overview"?D(L):d(n)==="rules"?D(G,1):D(H,-1)})}bb(1,N,()=>Rb,()=>({duration:120})),b(O,N)}),b(w,P)};Be(p,w=>{d(r)?w(y,-1):w(m)})}b(t,g),Ie()}document.documentElement.classList.add("dark");const Tp=document.querySelector("#app");if(!Tp)throw new Error("missing #app mount point");Sv(wP,{target:Tp}); diff --git a/web/dist/index.html b/web/dist/index.html index b6c31c4..30c5dd9 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ Sower Admin - + diff --git a/web/src/views/Traffic.svelte b/web/src/views/Traffic.svelte index e428e88..8cc761e 100644 --- a/web/src/views/Traffic.svelte +++ b/web/src/views/Traffic.svelte @@ -57,11 +57,6 @@ {#if !traffic} -{:else if (traffic.domains ?? []).length === 0} -
    -
    {:else} {#if !live.connected}

    @@ -132,7 +127,13 @@ {/each} {/if} - + {#if (traffic.domains ?? []).length === 0} +

    +
    + {:else} + @@ -172,7 +173,8 @@ {/each} - + + {/if}

    按{activeSortLabel}排序的前 100 个{isDNSView ? 'DNS 查询域名' : sourceLabel + '域名'},实时推送。