rssany 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/README.md +1 -5
  2. package/app/plugins/builtin/agi-eval-evaluation.rssany.js +1 -1
  3. package/app/plugins/builtin/brightdata-blog.rssany.js +1 -1
  4. package/app/plugins/builtin/five-radar.rssany.js +1 -1
  5. package/app/plugins/builtin/google-deepmind-research.rssany.js +1 -1
  6. package/app/plugins/builtin/opendrivelab-publications.rssany.js +1 -1
  7. package/app/plugins/builtin/pjlab-adg-publications.rssany.js +1 -1
  8. package/app/plugins/builtin/theinformation-briefings.rssany.js +150 -136
  9. package/app/plugins/builtin/zhipu-research.rssany.js +2 -2
  10. package/app/plugins/site.rssany.js +1 -0
  11. package/dist/index.js +347 -255
  12. package/dist/index.js.map +1 -1
  13. package/init/config.json +1 -1
  14. package/package.json +8 -8
  15. package/webui/build/200.html +6 -6
  16. package/webui/build/_app/immutable/assets/12.DfJcfUWl.css +1 -0
  17. package/webui/build/_app/immutable/assets/5.B-dPiwB7.css +1 -0
  18. package/webui/build/_app/immutable/assets/6.B27N7pdA.css +1 -0
  19. package/webui/build/_app/immutable/assets/8.Cgji2b15.css +1 -0
  20. package/webui/build/_app/immutable/assets/9.BsCIAvn3.css +1 -0
  21. package/webui/build/_app/immutable/chunks/{C0J2-L94.js → 5LVkDJzw.js} +1 -1
  22. package/webui/build/_app/immutable/chunks/{CLOXMsDk.js → Bns1MuyM.js} +3 -3
  23. package/webui/build/_app/immutable/chunks/{DgceFEv5.js → Bu9HsS-V.js} +1 -1
  24. package/webui/build/_app/immutable/chunks/{SqCUd34O.js → CmjOpds-.js} +1 -1
  25. package/webui/build/_app/immutable/chunks/{BwlaCkNX.js → bvuf_jZd.js} +1 -1
  26. package/webui/build/_app/immutable/entry/{app.B8zBPipq.js → app.BVkrDt5l.js} +2 -2
  27. package/webui/build/_app/immutable/entry/start.D3Q-BMMd.js +1 -0
  28. package/webui/build/_app/immutable/nodes/{0.ChLNE3xy.js → 0.I1lQdWMl.js} +1 -1
  29. package/webui/build/_app/immutable/nodes/{1.1N74-4Io.js → 1.BiQQfx2j.js} +1 -1
  30. package/webui/build/_app/immutable/nodes/{10.DY30t9Ib.js → 10.CvfUsqsw.js} +1 -1
  31. package/webui/build/_app/immutable/nodes/{11.ITuxnukH.js → 11.B4LHPNL6.js} +1 -1
  32. package/webui/build/_app/immutable/nodes/12.DVFJuIWI.js +1 -0
  33. package/webui/build/_app/immutable/nodes/{14.BHnIxbVM.js → 14.DfaAf0f8.js} +1 -1
  34. package/webui/build/_app/immutable/nodes/{15.CLjT9il3.js → 15.CMzkX9OK.js} +1 -1
  35. package/webui/build/_app/immutable/nodes/{16.BD-mKCLN.js → 16.zPgTQNze.js} +1 -1
  36. package/webui/build/_app/immutable/nodes/{18.Ba_qJjp6.js → 18.BIzqhTqv.js} +1 -1
  37. package/webui/build/_app/immutable/nodes/{3.Dt5o2Fmz.js → 3.B8Viux9S.js} +1 -1
  38. package/webui/build/_app/immutable/nodes/5.B6fR3n6J.js +2 -0
  39. package/webui/build/_app/immutable/nodes/{6.DvclsL6H.js → 6.j2O5Mwjv.js} +1 -1
  40. package/webui/build/_app/immutable/nodes/{7.D2nJy-Uz.js → 7.Bd2USIrl.js} +1 -1
  41. package/webui/build/_app/immutable/nodes/{8.C75mhrqs.js → 8.Bw_d63B_.js} +1 -1
  42. package/webui/build/_app/immutable/nodes/{9.Bp_QXw3w.js → 9.pMMi5PP6.js} +1 -1
  43. package/webui/build/_app/version.json +1 -1
  44. package/app/plugins/builtin/google.rssany.js +0 -187
  45. package/webui/build/_app/immutable/assets/12.Ct59LCqW.css +0 -1
  46. package/webui/build/_app/immutable/assets/5.ClehBQ0g.css +0 -1
  47. package/webui/build/_app/immutable/assets/6.DSJfjJwx.css +0 -1
  48. package/webui/build/_app/immutable/assets/8.Ba5_jYIY.css +0 -1
  49. package/webui/build/_app/immutable/assets/9.m-LCx_kl.css +0 -1
  50. package/webui/build/_app/immutable/entry/start.CxRCKeCl.js +0 -1
  51. package/webui/build/_app/immutable/nodes/12.qLzWqB1c.js +0 -1
  52. package/webui/build/_app/immutable/nodes/5.Dy3vSsIP.js +0 -1
@@ -1,4 +1,4 @@
1
- var Cs=Object.defineProperty;var Yr=e=>{throw TypeError(e)};var Ss=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var it=(e,t,n)=>Ss(e,typeof t!="symbol"?t+"":t,n),Jo=(e,t,n)=>t.has(e)||Yr("Cannot "+n);var f=(e,t,n)=>(Jo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Yr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Jo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Jo(e,t,"access private method"),n);import{c as pt,a as k,f as at,p as Ci,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Si}from"./Bp63qm3L.js";import{aA as H,i as o,b4 as bt,a4 as Zo,an as he,a5 as d,at as ie,f as Y,aj as ne,au as se,aw as M,av as S,ax as C,aC as bn,aD as As,ay as zt,az as Tt,U as nt,u as Xt,z as G,aq as Qo}from"./BbWUOQ_m.js";import{f as ks,o as xn,d as zs,a as Ct,s as Lt,e as Fs,r as Es}from"./DMWEh-Ek.js";import{s as Ts,a as qr}from"./DjNLq3TF.js";import{i as _t}from"./Dt2CddFe.js";import{e as Go,i as Jr}from"./BQqoDzLx.js";import{e as _n,r as Ye,a as qe,c as Ds,s as $o}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ms}from"./CVzlFH44.js";import{g as Zr}from"./D5GvRCv7.js";import{p as tr}from"./DgceFEv5.js";import{s as Ze}from"./tB7QMF3U.js";import{R as Ls,M as Is,P as Ws,a as Hs,h as Qr,S as Ns,b as Rs,r as Bs,s as Vs,c as Ks}from"./CLOXMsDk.js";import{a as Yt}from"./CBY2biv-.js";import{e as Us,s as _e,C as Eo,f as js,g as Pn,u as Ai,h as Xs,i as Ys,j as qs,w as On,k as Js,l as Rt,m as K,n as Ge,F as Zs,S as Gr,E as Qs,o as Gs,T as $s,p as ta,q as ze,r as $r,t as ea,v as bo,x as na,y as oa,z as ki,A as ra,B as ia,G as sa,H as zi,J as Qe,I as Me,D as ti,P as go,a as ei,b as ni,c as oi,d as mo}from"./mW5RwvnK.js";import{P as aa}from"./CWNeClHp.js";import{s as Le}from"./B-OsL1Ct.js";import{p as z,s as Bt,r as cn,l as Ie}from"./xtNWTdbD.js";function la(e){return typeof e=="function"}function ri(e){return la(e)?e():e}var pe,tn,en,nn,ve,So,Ao,on;class ca{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,tn,!1);A(this,en);A(this,nn);A(this,ve);A(this,So,H(()=>{var t;return(t=o(f(this,on)))==null||t(),this.getSize().width}));A(this,Ao,H(()=>{var t;return(t=o(f(this,on)))==null||t(),this.getSize().height}));A(this,on,H(()=>{const t=ri(f(this,nn));if(t)return ks(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,tn,!0);for(const s of i){const a=f(this,en).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,tn,!1),r.disconnect()}})}));j(this,ve,n.window??Us),j(this,en,n),j(this,nn,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=ri(f(this,nn));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,en).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,tn)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,on)))==null||t(),this.getSize()}get width(){return o(f(this,So))}get height(){return o(f(this,Ao))}}pe=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,ve=new WeakMap,So=new WeakMap,Ao=new WeakMap,on=new WeakMap;const ua=["top","right","bottom","left"],Pe=Math.min,It=Math.max,xo=Math.round,yo=Math.floor,Gt=e=>({x:e,y:e}),da={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function wr(e){return e==="x"?"y":"x"}function br(e){return e==="y"?"height":"width"}function Qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function xr(e){return wr(Qt(e))}function fa(e,t,n){n===void 0&&(n=!1);const r=un(e),i=xr(e),s=br(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=_o(a)),[a,_o(a)]}function ha(e){const t=_o(e);return[sr(e),t,sr(t)]}function sr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ii=["left","right"],si=["right","left"],pa=["top","bottom"],va=["bottom","top"];function ga(e,t,n){switch(e){case"top":case"bottom":return n?t?si:ii:t?ii:si;case"left":case"right":return t?pa:va;default:return[]}}function ma(e,t,n,r){const i=un(e);let s=ga(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(sr)))),s}function _o(e){const t=re(e);return da[t]+e.slice(t.length)}function ya(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fi(e){return typeof e!="number"?ya(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ai(e,t,n){let{reference:r,floating:i}=e;const s=Qt(t),a=xr(t),l=br(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(un(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function wa(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=Fi(p),O=l[g?v==="floating"?"reference":"floating":v],_=Po(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),F=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},I=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(_.top-I.top+w.top)/F.y,bottom:(I.bottom-_.bottom+w.bottom)/F.y,left:(_.left-I.left+w.left)/F.x,right:(I.right-_.right+w.right)/F.x}}const ba=50,xa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:wa},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=ai(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:_,fn:D}=O,{x:T,y:F,data:I,reset:E}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=F??v,w[_]={...w[_],...I},E&&p<ba&&(p++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(m=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:y,y:v}=ai(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},_a=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=Fi(y),g={x:n,y:r},p=xr(i),w=br(p),P=await a.getDimensions(m),O=p==="y",_=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",F=s.reference[w]+s.reference[p]-g[p]-s.floating[w],I=g[p]-s.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=E?E[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(E)))&&(Q=l.floating[T]||s.floating[w]);const ft=F/2-I/2,R=Q/2-P[w]/2-1,$=Pe(v[_],R),ot=Pe(v[D],R),tt=$,rt=Q-P[w]-ot,X=Q/2-P[w]/2+ft,vt=ir(tt,X,rt),et=!h.arrow&&un(i)!=null&&X!==vt&&s.reference[w]/2-(X<tt?$:ot)-P[w]/2<0,J=et?X<tt?X-tt:X-rt:0;return{[p]:g[p]+J,data:{[p]:vt,centerOffset:X-vt-J,...et&&{alignmentOffset:J}},reset:et}}}),Pa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=re(i),D=Qt(l),T=re(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(m.floating)),I=g||(T||!P?[_o(l)]:ha(l)),E=w!=="none";!g&&E&&I.push(...ma(l,P,w,F));const Q=[l,...I],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[_]),v){const X=fa(i,a,F);R.push(ft[X[0]],ft[X[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(X=>X<=0)){var ot,tt;const X=(((ot=s.flip)==null?void 0:ot.index)||0)+1,vt=Q[X];if(vt&&(!(v==="alignment"?D!==Qt(vt):!1)||$.every(V=>Qt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:vt}};let et=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!et)switch(p){case"bestFit":{var rt;const J=(rt=$.filter(V=>{if(E){const Z=Qt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,st)=>Z+st,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:rt[0];J&&(et=J);break}case"initialPlacement":et=l;break}if(i!==et)return{reset:{placement:et}}}return{}}}};function li(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ci(e){return ua.some(t=>e[t]>=0)}const Oa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=li(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ci(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=li(a,n.floating);return{data:{escapedOffsets:l,escaped:ci(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Ca(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=un(n),h=Qt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Sa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Ca(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Aa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:_=>{let{x:D,y:T}=_;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Qt(re(i)),p=wr(g);let w=y[p],P=y[g];if(a){const _=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[_],F=w-v[D];w=ir(T,w,F)}if(l){const _=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[_],F=P-v[D];P=ir(T,P,F)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Qt(i),g=wr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",F=s.reference[g]-s.floating[T]+O.mainAxis,I=s.reference[g]+s.reference[T]-O.mainAxis;p<F?p=F:p>I&&(p=I)}if(m){var _,D;const T=g==="y"?"width":"height",F=Ei.has(re(i)),I=s.reference[v]-s.floating[T]+(F&&((_=a.offset)==null?void 0:_[v])||0)+(F?0:O.crossAxis),E=s.reference[v]+s.reference[T]+(F?0:((D=a.offset)==null?void 0:D[v])||0)-(F?O.crossAxis:0);w<I?w=I:w>E&&(w=E)}return{[g]:p,[v]:w}}}},za=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=un(i),p=Qt(i)==="y",{width:w,height:P}=s.floating;let O,_;v==="top"||v==="bottom"?(O=v,_=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,F=Pe(P-y[O],D),I=Pe(w-y[_],T),E=!t.middlewareData.shift;let Q=F,ft=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),E&&!g){const $=It(y.left,0),ot=It(y.right,0),tt=It(y.top,0),rt=It(y.bottom,0);p?ft=w-2*($!==0||ot!==0?$+ot:It(y.left,y.right)):Q=P-2*(tt!==0||rt!==0?tt+rt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function To(){return typeof window<"u"}function dn(e){return Ti(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ti(e){return To()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return To()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return To()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ui(e){return!To()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function ro(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Fa(e){return/^(table|td|th)$/.test(dn(e))}function Do(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ea=/transform|translate|scale|rotate|perspective|filter/,Ta=/paint|layout|strict|content/,Ae=e=>!!e&&e!=="none";let er;function _r(e){const t=Vt(e)?Kt(e):e;return Ae(t.transform)||Ae(t.translate)||Ae(t.scale)||Ae(t.rotate)||Ae(t.perspective)||!Pr()&&(Ae(t.backdropFilter)||Ae(t.filter))||Ea.test(t.willChange||"")||Ta.test(t.contain||"")}function Da(e){let t=Oe(e);for(;ae(t)&&!ln(t);){if(_r(t))return t;if(Do(t))return null;t=Oe(t)}return null}function Pr(){return er==null&&(er=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),er}function ln(e){return/^(html|body|#document)$/.test(dn(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Mo(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ui(e)&&e.host||$t(e);return ui(t)?t.host:t}function Di(e){const t=Oe(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&ro(t)?t:Di(t)}function Cn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Di(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=ar(a);return t.concat(a,a.visualViewport||[],ro(i)?i:[],l&&n?Cn(l):[])}else return t.concat(i,Cn(i,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mi(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=xo(n)!==s||xo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Or(e){return Vt(e)?e:e.contextElement}function $e(e){const t=Or(e);if(!ae(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Mi(t);let a=(s?xo(n.width):n.width)/r,l=(s?xo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ma=Gt(0);function Li(e){const t=Wt(e);return!Pr()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function La(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function De(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Or(e);let a=Gt(1);t&&(r?Vt(r)&&(a=$e(r)):a=$e(e));const l=La(s,n,r)?Li(s):Gt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=ar(w);for(;P&&r&&p!==w;){const O=$e(P),_=P.getBoundingClientRect(),D=Kt(P),T=_.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,F=_.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=F,w=Wt(P),P=ar(w)}}return Po({width:y,height:v,x:h,y:m})}function Lo(e,t){const n=Mo(e).scrollLeft;return t?t.left+n:De($t(e)).left+n}function Ii(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Lo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ia(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=$t(r),l=t?Do(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Gt(1);const y=Gt(0),v=ae(r);if((v||!v&&!s)&&((dn(r)!=="body"||ro(a))&&(h=Mo(r)),v)){const p=De(r);m=$e(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Ii(a,h):Gt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function Wa(e){return Array.from(e.getClientRects())}function Ha(e){const t=$t(e),n=Mo(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Lo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const di=25;function Na(e,t){const n=Wt(e),r=$t(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=Pr();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Lo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=di&&(s-=w)}else m<=di&&(s+=m);return{width:s,height:a,x:l,y:h}}function Ra(e,t){const n=De(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?$e(e):Gt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function fi(e,t,n){let r;if(t==="viewport")r=Na(e,n);else if(t==="document")r=Ha($t(e));else if(Vt(t))r=Ra(t,n);else{const i=Li(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Po(r)}function Wi(e,t){const n=Oe(e);return n===t||!Vt(n)||ln(n)?!1:Kt(n).position==="fixed"||Wi(n,t)}function Ba(e,t){const n=t.get(e);if(n)return n;let r=Cn(e,[],!1).filter(l=>Vt(l)&&dn(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!ln(a);){const l=Kt(a),h=_r(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ro(a)&&!h&&Wi(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Va(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Do(t)?[]:Ba(t,this._c):[].concat(n),r],l=fi(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=fi(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ka(e){const{width:t,height:n}=Mi(e);return{width:t,height:n}}function Ua(e,t,n){const r=ae(t),i=$t(t),s=n==="fixed",a=De(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Gt(0);function m(){h.x=Lo(i)}if(r||!r&&!s)if((dn(t)!=="body"||ro(i))&&(l=Mo(t)),r){const p=De(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Ii(i,l):Gt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function nr(e){return Kt(e).position==="static"}function hi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $t(e)===n&&(n=n.ownerDocument.body),n}function Hi(e,t){const n=Wt(e);if(Do(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!ln(i);){if(Vt(i)&&!nr(i))return i;i=Oe(i)}return n}let r=hi(e,t);for(;r&&Fa(r)&&nr(r);)r=hi(r,t);return r&&ln(r)&&nr(r)&&!_r(r)?n:r||Da(e)||n}const ja=async function(e){const t=this.getOffsetParent||Hi,n=this.getDimensions,r=await n(e.floating);return{reference:Ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xa(e){return Kt(e).direction==="rtl"}const Ya={convertOffsetParentRelativeRectToViewportRelativeRect:Ia,getDocumentElement:$t,getClippingRect:Va,getOffsetParent:Hi,getElementRects:ja,getClientRects:Wa,getDimensions:Ka,getScale:$e,isElement:Vt,isRTL:Xa};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qa(e,t){let n=null,r;const i=$t(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=yo(v),P=yo(i.clientWidth-(y+g)),O=yo(i.clientHeight-(v+p)),_=yo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-_+"px",threshold:It(0,Pe(1,h))||1};let F=!0;function I(E){const Q=E[0].intersectionRatio;if(Q!==h){if(!F)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),F=!1}try{n=new IntersectionObserver(I,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,T)}n.observe(e)}return a(!0),s}function Ja(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Or(e),y=i||s?[...m?Cn(m):[],...t?Cn(t):[]]:[];y.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const v=m&&l?qa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(_=>{let[D]=_;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?De(e):null;h&&O();function O(){const _=De(e);P&&!Ni(P,_)&&n(),P=_,w=requestAnimationFrame(O)}return n(),()=>{var _;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(_=p)==null||_.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const Za=Sa,Qa=Aa,Ga=Pa,$a=za,tl=Oa,el=_a,nl=ka,ol=(e,t,n)=>{const r=new Map,i={platform:Ya,...n},s={...i.platform,_c:r};return xa(e,t,{...i,platform:s})};function ke(e){return typeof e=="function"?e():e}function Ri(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pi(e,t){const n=Ri(e);return Math.round(t*n)/n}function vi(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function rl(e){const t=e.whileElementsMounted,n=H(()=>ke(e.open)??!0),r=H(()=>ke(e.middleware)),i=H(()=>ke(e.transform)??!0),s=H(()=>ke(e.placement)??"bottom"),a=H(()=>ke(e.strategy)??"absolute"),l=H(()=>ke(e.sideOffset)??0),h=H(()=>ke(e.alignOffset)??0),m=e.reference;let y=bt(0),v=bt(0);const g=_e(null);let p=bt(Zo(o(a))),w=bt(Zo(o(s))),P=bt(Zo({})),O=bt(!1),_=!1,D=0;const T=H(()=>{const $=g.current?pi(g.current,o(y)):o(y),ot=g.current?pi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${ot}px)`,...g.current&&Ri(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${ot}px`}});let F;function I(){if(m.current===null||g.current===null)return;const $=m.current,ot=g.current,tt=++D;ol($,ot,{middleware:o(r),placement:o(s),strategy:o(a)}).then(rt=>{if(tt!==D||m.current!==$||g.current!==ot)return;if(il($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const vt=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(rt.x<=vt&&rt.y<=vt)return}d(y,rt.x,!0),d(v,rt.y,!0),d(p,rt.strategy,!0),d(w,rt.placement,!0),d(P,rt.middlewareData,!0),d(O,!0)})}function E(){typeof F=="function"&&(F(),F=void 0),D++}function Q(){if(E(),t===void 0){I();return}o(n)&&(m.current===null||g.current===null||(F=t(m.current,g.current,I)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&I()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){_=!1;return}if(!o(O)){_=!1;return}if(!_){_=!0;return}I()}}),he(ft),he(()=>E),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return I}}}function il(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const sl={top:"bottom",right:"left",bottom:"top",left:"right"},Cr=new Eo("Floating.Root"),gi=new Eo("Floating.Content"),Sr=new Eo("Floating.Root");class Oo{constructor(){it(this,"anchorNode",_e(null));it(this,"customAnchorNode",_e(null));it(this,"triggerNode",_e(null));he(()=>{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(t=!1){return t?Sr.set(new Oo):Cr.set(new Oo)}}var Sn,An,kn,ko,zn,zo,Fn,En,Tn,Dn,Mn,Ln,In,Wn,Hn,Nn,Rn,Bn,Vn,Kn,Un,jn,Xn,Yn;const Fo=class Fo{constructor(t,n){it(this,"opts");it(this,"root");it(this,"contentRef",_e(null));it(this,"wrapperRef",_e(null));it(this,"arrowRef",_e(null));it(this,"contentAttachment",Pn(this.contentRef));it(this,"wrapperAttachment",Pn(this.wrapperRef));it(this,"arrowAttachment",Pn(this.arrowRef));it(this,"arrowId",_e(Ai()));A(this,Sn,H(()=>{if(typeof this.opts.style=="string")return Xs(this.opts.style);if(!this.opts.style)return{}}));A(this,An);A(this,kn,new ca(()=>this.arrowRef.current??void 0));A(this,ko,H(()=>{var t;return((t=f(this,kn))==null?void 0:t.width)??0}));A(this,zn,H(()=>{var t;return((t=f(this,kn))==null?void 0:t.height)??0}));A(this,zo,H(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,Fn,H(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,H(()=>o(f(this,Fn)).length>0));A(this,Tn,H(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,Fn)).filter(Ys),altBoundary:this.hasExplicitBoundaries})));A(this,Dn,bt(void 0));A(this,Mn,bt(void 0));A(this,Ln,bt(void 0));A(this,In,bt(void 0));A(this,Wn,H(()=>[Za({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Qa({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?nl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ga({...this.detectOverflowOptions}),$a({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Dn),n,!0),d(f(this,Mn),r,!0),d(f(this,Ln),i,!0),d(f(this,In),s,!0)}}),this.arrowRef.current&&el({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),al({arrowWidth:o(f(this,ko)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&tl({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));it(this,"floating");A(this,Hn,H(()=>ll(this.floating.placement)));A(this,Nn,H(()=>cl(this.floating.placement)));A(this,Rn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Bn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Vn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Kn,bt());A(this,Un,H(()=>sl[this.placedSide]));A(this,jn,H(()=>{var t,n,r;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":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Dn))}px`,"--bits-floating-available-height":`${o(f(this,Mn))}px`,"--bits-floating-anchor-width":`${o(f(this,Ln))}px`,"--bits-floating-anchor-height":`${o(f(this,In))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Sn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,Xn,H(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:qs({...o(f(this,Sn))}),...this.contentAttachment})));A(this,Yn,H(()=>({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=t,this.root=n,j(this,An,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),On(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=rl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ja(...r,{animationFrame:((s=f(this,An))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),On(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Js(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?gi.set(new Fo(t,Sr.get())):gi.set(new Fo(t,Cr.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Tn))}set detectOverflowOptions(t){d(f(this,Tn),t)}get middleware(){return o(f(this,Wn))}set middleware(t){d(f(this,Wn),t)}get placedSide(){return o(f(this,Hn))}set placedSide(t){d(f(this,Hn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Rn))}set arrowX(t){d(f(this,Rn),t)}get arrowY(){return o(f(this,Bn))}set arrowY(t){d(f(this,Bn),t)}get cannotCenterArrow(){return o(f(this,Vn))}set cannotCenterArrow(t){d(f(this,Vn),t)}get contentZIndex(){return o(f(this,Kn))}set contentZIndex(t){d(f(this,Kn),t,!0)}get arrowBaseSide(){return o(f(this,Un))}set arrowBaseSide(t){d(f(this,Un),t)}get wrapperProps(){return o(f(this,jn))}set wrapperProps(t){d(f(this,jn),t)}get props(){return o(f(this,Xn))}set props(t){d(f(this,Xn),t)}get arrowStyle(){return o(f(this,Yn))}set arrowStyle(t){d(f(this,Yn),t)}};Sn=new WeakMap,An=new WeakMap,kn=new WeakMap,ko=new WeakMap,zn=new WeakMap,zo=new WeakMap,Fn=new WeakMap,En=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Hn=new WeakMap,Nn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;let lr=Fo;class Co{constructor(t,n){it(this,"opts");it(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=js(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Co(t,Sr.get()):new Co(t,Cr.get())}}function al(e){return{name:"transformOrigin",options:e,fn(t){var O,_,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Ar(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((_=i.arrow)==null?void 0:_.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Ar(e){const[t,n="center"]=e.split("-");return[t,n]}function ll(e){return Ar(e)[0]}function cl(e){return Ar(e)[1]}function ul(e,t){ie(t,!0);let n=z(t,"tooltip",3,!1);Oo.create(n());var r=pt(),i=Y(r);Rt(i,()=>t.children??ne),k(e,r),se()}function dl(e,t){ie(t,!0);let n=z(t,"tooltip",3,!1);Co.create({id:K(()=>t.id),virtualEl:K(()=>t.virtualEl),ref:t.ref},n());var r=pt(),i=Y(r);Rt(i,()=>t.children??ne),k(e,r),se()}function fl(e,t){ie(t,!0);let n=z(t,"side",3,"bottom"),r=z(t,"sideOffset",3,0),i=z(t,"align",3,"center"),s=z(t,"alignOffset",3,0),a=z(t,"arrowPadding",3,0),l=z(t,"avoidCollisions",3,!0),h=z(t,"collisionBoundary",19,()=>[]),m=z(t,"collisionPadding",3,0),y=z(t,"hideWhenDetached",3,!1),v=z(t,"onPlaced",3,()=>{}),g=z(t,"sticky",3,"partial"),p=z(t,"updatePositionStrategy",3,"optimized"),w=z(t,"strategy",3,"fixed"),P=z(t,"dir",3,"ltr"),O=z(t,"style",19,()=>({})),_=z(t,"wrapperId",19,Ai),D=z(t,"customAnchor",3,null),T=z(t,"tooltip",3,!1);const F=lr.create({side:K(()=>n()),sideOffset:K(()=>r()),align:K(()=>i()),alignOffset:K(()=>s()),id:K(()=>t.id),arrowPadding:K(()=>a()),avoidCollisions:K(()=>l()),collisionBoundary:K(()=>h()),collisionPadding:K(()=>m()),hideWhenDetached:K(()=>y()),onPlaced:K(()=>v()),sticky:K(()=>g()),updatePositionStrategy:K(()=>p()),strategy:K(()=>w()),dir:K(()=>P()),style:K(()=>O()),enabled:K(()=>t.enabled),wrapperId:K(()=>_()),customAnchor:K(()=>D())},T()),I=H(()=>Ge(F.wrapperProps,{style:{pointerEvents:"auto"}}));var E=pt(),Q=Y(E);Rt(Q,()=>t.content??ne,()=>({props:F.props,wrapperProps:o(I)})),k(e,E),se()}function hl(e,t){ie(t,!0),Si(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=pt(),r=Y(n);Rt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),k(e,n),se()}function pl(e,t){let n=z(t,"isStatic",3,!1),r=cn(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=pt(),s=Y(i);{var a=h=>{hl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{fl(h,Bt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};_t(s,h=>{n()?h(a):h(l,-1)})}k(e,i)}var vl=at("<!> <!>",1);function Bi(e,t){ie(t,!0);let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=z(t,"tooltip",3,!1),h=z(t,"contentPointerEvents",3,"auto"),m=cn(t,["$$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"]);const y=H(()=>t.preventScroll??!0),v=H(()=>t.strategy??(o(y)?"fixed":"absolute"));pl(e,{get isStatic(){return a()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return o(v)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var _=vl(),D=Y(_);{var T=E=>{Gr(E,{get preventScroll(){return o(y)}})},F=E=>{Gr(E,{get preventScroll(){return o(y)}})};_t(D,E=>{t.forceMount&&t.enabled?E(T):t.forceMount||E(F,1)})}var I=M(D,2);Zs(I,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Qs(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,ot)=>{Gs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,X)=>{let vt=()=>X==null?void 0:X().props;$s(rt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(et,J)=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:Ge(m,P(),vt(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Rt(Z,()=>t.popper??ne,()=>o(st))}k(et,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),k(p,_)},$$slots:{content:!0}}),se()}function gl(e,t){let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=cn(t,["$$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"]);var h=pt(),m=Y(h);{var y=v=>{Bi(v,Bt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};_t(m,v=>{t.shouldRender&&v(y)})}k(e,h)}function ml(e,t){let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=cn(t,["$$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"]);Bi(e,Bt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function or(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function rr(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function mi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,rn,sn,Jt,Dt,Fe,Ee,me,ye,q,wo,cr,ur,Vi,Ki,qt,dr,Ui,ji;class yl{constructor(t){A(this,q);A(this,ge);A(this,rn);A(this,sn);A(this,Jt,null);A(this,Dt,null);A(this,Fe,[]);A(this,Ee,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,rn,t.buffer??1);const n=t.transitIntentTimeout;j(this,sn,typeof n=="number"&&n>0?n:null),On([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Ee,null),B(this,q,qt).call(this);return}f(this,Ee)&&f(this,Ee)!==r&&B(this,q,qt).call(this),j(this,Ee,r);const a=ta(r),l=g=>{B(this,q,Ki).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(ze(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];ze(p)&&w.some(_=>_===p||_.contains(p))||(j(this,Fe,ze(p)&&w.length>0?w.filter(_=>p.contains(_)):[]),j(this,Jt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,cr).call(this))},m=()=>{B(this,q,qt).call(this)},y=()=>{B(this,q,qt).call(this)},v=g=>{const p=g.relatedTarget;ze(p)&&r.contains(p)||(j(this,Jt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,cr).call(this))};return[xn(a,"pointermove",l),xn(r,"pointerleave",h),xn(r,"pointerenter",m),xn(i,"pointerenter",y),xn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,rn=new WeakMap,sn=new WeakMap,Jt=new WeakMap,Dt=new WeakMap,Fe=new WeakMap,Ee=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,wo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},cr=function(){B(this,q,wo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Jt)||!f(this,Dt))&&(B(this,q,qt).call(this),f(this,ge).onPointerExit())}))},ur=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Vi=function(){f(this,sn)!==null&&(B(this,q,ur).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Jt)||!f(this,Dt))&&(B(this,q,qt).call(this),f(this,ge).onPointerExit())},f(this,sn))))},Ki=function(t,n,r){if(!f(this,Jt)||!f(this,Dt))return;B(this,q,wo).call(this),B(this,q,Vi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&rr(t,s)){B(this,q,qt).call(this);return}if(f(this,Dt)==="trigger"&&rr(t,i)){B(this,q,qt).call(this);return}if(f(this,Dt)==="content"&&f(this,Fe).length>0)for(const y of f(this,Fe)){const v=y.getBoundingClientRect();if(rr(t,v))return;const g=mi(i,v),p=B(this,q,dr).call(this,i,v,g);if(p&&or(t,p))return}const a=mi(i,s),l=B(this,q,dr).call(this,i,s,a);if(l&&or(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ui).call(this,f(this,Jt),h,a,f(this,Dt));or(t,m)||(B(this,q,qt).call(this),f(this,ge).onPointerExit())},qt=function(){j(this,Jt,null),j(this,Dt,null),j(this,Fe,[]),B(this,q,wo).call(this),B(this,q,ur).call(this)},dr=function(t,n,r){const i=f(this,rn);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ui=function(t,n,r,i){const s=f(this,rn)*4,[a,l]=t;switch(i==="trigger"?B(this,q,ji).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},ji=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const fr=sa({component:"popover",parts:["root","trigger","content","close","overlay"]}),kr=new Eo("Popover.Root");var qn,Jn,Zn,Qn,Gn,$n,to,we,be,Zt,fe;const zr=class zr{constructor(t){A(this,Zt);it(this,"opts");A(this,qn,bt(null));it(this,"contentPresence");A(this,Jn,bt(null));A(this,Zn,bt(null));it(this,"overlayPresence");A(this,Qn,bt(!1));A(this,Gn,bt(!1));A(this,$n,bt(!1));A(this,to,bt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new $r({ref:K(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $r({ref:K(()=>this.overlayNode),open:this.opts.open}),On(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,Zt,fe).call(this))})}static create(t){return kr.set(new zr(t))}get contentNode(){return o(f(this,qn))}set contentNode(t){d(f(this,qn),t,!0)}get triggerNode(){return o(f(this,Jn))}set triggerNode(t){d(f(this,Jn),t,!0)}get overlayNode(){return o(f(this,Zn))}set overlayNode(t){d(f(this,Zn),t,!0)}get openedViaHover(){return o(f(this,Qn))}set openedViaHover(t){d(f(this,Qn),t,!0)}get hasInteractedWithContent(){return o(f(this,Gn))}set hasInteractedWithContent(t){d(f(this,Gn),t,!0)}get hoverCooldown(){return o(f(this,$n))}set hoverCooldown(t){d(f(this,$n),t,!0)}get closeDelay(){return o(f(this,to))}set closeDelay(t){d(f(this,to),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,Zt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,Zt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,Zt,fe).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(B(this,Zt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,Zt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,Zt,fe).call(this)}};qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,to=new WeakMap,we=new WeakMap,be=new WeakMap,Zt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let hr=zr;var xe,an,Te,Ht,vr,gr,mr,Xi,eo;const Fr=class Fr{constructor(t,n){A(this,Ht);it(this,"opts");it(this,"root");it(this,"attachment");it(this,"domContext");A(this,xe,null);A(this,an,null);A(this,Te,bt(!1));A(this,eo,H(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ra(this.root.opts.open.current),"data-state":ki(this.root.opts.open.current),"aria-controls":B(this,Ht,Xi).call(this),[fr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=Pn(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new ea(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),On(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new Fr(t,kr.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||bo(t)||(d(f(this,Te),!0),B(this,Ht,gr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(bo(t)||(d(f(this,Te),!1),B(this,Ht,vr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,mr).call(this),o(f(this,Te))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Te))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===na||t.key===oa)&&(t.preventDefault(),B(this,Ht,mr).call(this),this.root.toggleOpen())}get props(){return o(f(this,eo))}set props(t){d(f(this,eo),t)}};xe=new WeakMap,an=new WeakMap,Te=new WeakMap,Ht=new WeakSet,vr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},gr=function(){f(this,an)!==null&&(this.domContext.clearTimeout(f(this,an)),j(this,an,null))},mr=function(){B(this,Ht,vr).call(this),B(this,Ht,gr).call(this)},Xi=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},eo=new WeakMap;let pr=Fr;var no,oo;const Er=class Er{constructor(t,n){it(this,"opts");it(this,"root");it(this,"attachment");it(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ze(t.target))return;const n=t.target.closest(fr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ze(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});it(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,no,H(()=>({open:this.root.opts.open.current})));A(this,oo,H(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ki(this.root.opts.open.current),[fr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));it(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=Pn(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new yl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new Er(t,kr.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ze(n)&&ia(n)&&this.root.markInteraction()}onpointerenter(t){bo(t)||this.root.cancelDelayedClose()}onpointerleave(t){bo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,no))}set snippetProps(t){d(f(this,no),t)}get props(){return o(f(this,oo))}set props(t){d(f(this,oo),t)}};no=new WeakMap,oo=new WeakMap;let yr=Er;var wl=at("<div><div><!></div></div>"),bl=at("<div><div><!></div></div>");function yi(e,t){const n=Ci();ie(t,!0);let r=z(t,"ref",15,null),i=z(t,"id",19,()=>zi(n)),s=z(t,"forceMount",3,!1),a=z(t,"onOpenAutoFocus",3,Qe),l=z(t,"onCloseAutoFocus",3,Qe),h=z(t,"onEscapeKeydown",3,Qe),m=z(t,"onInteractOutside",3,Qe),y=z(t,"trapFocus",3,!0),v=z(t,"preventScroll",3,!1),g=z(t,"customAnchor",3,null),p=cn(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=yr.create({id:K(()=>i()),ref:K(()=>r(),E=>r(E)),onInteractOutside:K(()=>m()),onEscapeKeydown:K(()=>h()),customAnchor:K(()=>g())}),P=H(()=>Ge(p,w.props)),O=H(()=>y()&&w.shouldTrapFocus);function _(E){w.shouldTrapFocus||E.preventDefault(),a()(E)}var D=pt(),T=Y(D);{var F=E=>{ml(E,Bt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:_,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,ot=()=>R==null?void 0:R().wrapperProps;const tt=H(()=>Ge($(),{style:vi("popover")},{style:t.style}));var rt=pt(),X=Y(rt);{var vt=J=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:o(tt),wrapperProps:ot(),...w.snippetProps}));Rt(Z,()=>t.child,()=>o(st))}k(J,V)},et=J=>{var V=wl();_n(V,()=>({...ot()}));var Z=S(V);_n(Z,()=>({...o(tt)}));var st=S(Z);Rt(st,()=>t.children??ne),C(Z),C(V),k(J,V)};_t(X,J=>{t.child?J(vt):J(et,-1)})}k(ft,rt)},$$slots:{popper:!0}}))},I=E=>{gl(E,Bt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:_,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,ot=()=>R==null?void 0:R().wrapperProps;const tt=H(()=>Ge($(),{style:vi("popover")},{style:t.style}));var rt=pt(),X=Y(rt);{var vt=J=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:o(tt),wrapperProps:ot(),...w.snippetProps}));Rt(Z,()=>t.child,()=>o(st))}k(J,V)},et=J=>{var V=bl();_n(V,()=>({...ot()}));var Z=S(V);_n(Z,()=>({...o(tt)}));var st=S(Z);Rt(st,()=>t.children??ne),C(Z),C(V),k(J,V)};_t(X,J=>{t.child?J(vt):J(et,-1)})}k(ft,rt)},$$slots:{popper:!0}}))};_t(T,E=>{s()?E(F):s()||E(I,1)})}k(e,D),se()}var xl=at("<button><!></button>");function wi(e,t){const n=Ci();ie(t,!0);let r=z(t,"id",19,()=>zi(n)),i=z(t,"ref",15,null),s=z(t,"type",3,"button"),a=z(t,"disabled",3,!1),l=z(t,"openOnHover",3,!1),h=z(t,"openDelay",3,700),m=z(t,"closeDelay",3,300),y=cn(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=pr.create({id:K(()=>r()),ref:K(()=>i(),p=>i(p)),disabled:K(()=>!!a()),openOnHover:K(()=>l()),openDelay:K(()=>h()),closeDelay:K(()=>m())}),g=H(()=>Ge(y,v.props,{type:s()}));dl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=pt(),O=Y(P);{var _=T=>{var F=pt(),I=Y(F);Rt(I,()=>t.child,()=>({props:o(g)})),k(T,F)},D=T=>{var F=xl();_n(F,()=>({...o(g)}));var I=S(F);Rt(I,()=>t.children??ne),C(F),k(T,F)};_t(O,T=>{t.child?T(_):T(D,-1)})}k(p,P)},$$slots:{default:!0}}),se()}function bi(e,t){ie(t,!0);let n=z(t,"open",15,!1),r=z(t,"onOpenChange",3,Qe),i=z(t,"onOpenChangeComplete",3,Qe);hr.create({open:K(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:K(()=>i())}),ul(e,{children:(s,a)=>{var l=pt(),h=Y(l);Rt(h,()=>t.children??ne),k(s,l)},$$slots:{default:!0}}),se()}function _l(e,t){const n=Ie(t,["children","$$slots","$$events","$$legacy"]);/**
1
+ var Cs=Object.defineProperty;var Yr=e=>{throw TypeError(e)};var Ss=(e,t,n)=>t in e?Cs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var it=(e,t,n)=>Ss(e,typeof t!="symbol"?t+"":t,n),Jo=(e,t,n)=>t.has(e)||Yr("Cannot "+n);var f=(e,t,n)=>(Jo(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?Yr("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Jo(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),B=(e,t,n)=>(Jo(e,t,"access private method"),n);import{c as pt,a as k,f as at,p as Ci,t as Xe}from"./BK3WtZwv.js";import"./lk5LaiqA.js";import{o as Si}from"./Bp63qm3L.js";import{aA as H,i as o,b4 as bt,a4 as Zo,an as he,a5 as d,at as ie,f as Y,aj as ne,au as se,aw as M,av as S,ax as C,aC as bn,aD as As,ay as zt,az as Tt,U as nt,u as Xt,z as G,aq as Qo}from"./BbWUOQ_m.js";import{f as ks,o as xn,d as zs,a as Ct,s as Lt,e as Fs,r as Es}from"./DMWEh-Ek.js";import{s as Ts,a as qr}from"./DjNLq3TF.js";import{i as _t}from"./Dt2CddFe.js";import{e as Go,i as Jr}from"./BQqoDzLx.js";import{e as _n,r as Ye,a as qe,c as Ds,s as $o}from"./B2Q1a1-H.js";import{b as Je}from"./Dw782Tjs.js";import{i as Ms}from"./CVzlFH44.js";import{g as Zr}from"./D5GvRCv7.js";import{p as tr}from"./Bu9HsS-V.js";import{s as Ze}from"./tB7QMF3U.js";import{R as Ls,M as Is,P as Ws,a as Hs,h as Qr,S as Ns,b as Rs,r as Bs,s as Vs,c as Ks}from"./Bns1MuyM.js";import{a as Yt}from"./CBY2biv-.js";import{e as Us,s as _e,C as Eo,f as js,g as Pn,u as Ai,h as Xs,i as Ys,j as qs,w as On,k as Js,l as Rt,m as K,n as Ge,F as Zs,S as Gr,E as Qs,o as Gs,T as $s,p as ta,q as ze,r as $r,t as ea,v as bo,x as na,y as oa,z as ki,A as ra,B as ia,G as sa,H as zi,J as Qe,I as Me,D as ti,P as go,a as ei,b as ni,c as oi,d as mo}from"./mW5RwvnK.js";import{P as aa}from"./CWNeClHp.js";import{s as Le}from"./B-OsL1Ct.js";import{p as z,s as Bt,r as cn,l as Ie}from"./xtNWTdbD.js";function la(e){return typeof e=="function"}function ri(e){return la(e)?e():e}var pe,tn,en,nn,ve,So,Ao,on;class ca{constructor(t,n={box:"border-box"}){A(this,pe,{width:0,height:0});A(this,tn,!1);A(this,en);A(this,nn);A(this,ve);A(this,So,H(()=>{var t;return(t=o(f(this,on)))==null||t(),this.getSize().width}));A(this,Ao,H(()=>{var t;return(t=o(f(this,on)))==null||t(),this.getSize().height}));A(this,on,H(()=>{const t=ri(f(this,nn));if(t)return ks(n=>{if(!f(this,ve))return;const r=new(f(this,ve)).ResizeObserver(i=>{j(this,tn,!0);for(const s of i){const a=f(this,en).box==="content-box"?s.contentBoxSize:s.borderBoxSize,l=Array.isArray(a)?a:[a];f(this,pe).width=l.reduce((h,m)=>Math.max(h,m.inlineSize),0),f(this,pe).height=l.reduce((h,m)=>Math.max(h,m.blockSize),0)}n()});return r.observe(t),()=>{j(this,tn,!1),r.disconnect()}})}));j(this,ve,n.window??Us),j(this,en,n),j(this,nn,t),j(this,pe,{width:0,height:0})}calculateSize(){const t=ri(f(this,nn));if(!t||!f(this,ve))return;const n=t.offsetWidth,r=t.offsetHeight;if(f(this,en).box==="border-box")return{width:n,height:r};const i=f(this,ve).getComputedStyle(t),s=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),a=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),l=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth),h=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth),m=n-s-l,y=r-a-h;return{width:m,height:y}}getSize(){return f(this,tn)?f(this,pe):this.calculateSize()??f(this,pe)}get current(){var t;return(t=o(f(this,on)))==null||t(),this.getSize()}get width(){return o(f(this,So))}get height(){return o(f(this,Ao))}}pe=new WeakMap,tn=new WeakMap,en=new WeakMap,nn=new WeakMap,ve=new WeakMap,So=new WeakMap,Ao=new WeakMap,on=new WeakMap;const ua=["top","right","bottom","left"],Pe=Math.min,It=Math.max,xo=Math.round,yo=Math.floor,Gt=e=>({x:e,y:e}),da={left:"right",right:"left",bottom:"top",top:"bottom"};function ir(e,t,n){return It(e,Pe(t,n))}function oe(e,t){return typeof e=="function"?e(t):e}function re(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function wr(e){return e==="x"?"y":"x"}function br(e){return e==="y"?"height":"width"}function Qt(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function xr(e){return wr(Qt(e))}function fa(e,t,n){n===void 0&&(n=!1);const r=un(e),i=xr(e),s=br(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(a=_o(a)),[a,_o(a)]}function ha(e){const t=_o(e);return[sr(e),t,sr(t)]}function sr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ii=["left","right"],si=["right","left"],pa=["top","bottom"],va=["bottom","top"];function ga(e,t,n){switch(e){case"top":case"bottom":return n?t?si:ii:t?ii:si;case"left":case"right":return t?pa:va;default:return[]}}function ma(e,t,n,r){const i=un(e);let s=ga(re(e),n==="start",r);return i&&(s=s.map(a=>a+"-"+i),t&&(s=s.concat(s.map(sr)))),s}function _o(e){const t=re(e);return da[t]+e.slice(t.length)}function ya(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fi(e){return typeof e!="number"?ya(e):{top:e,right:e,bottom:e,left:e}}function Po(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ai(e,t,n){let{reference:r,floating:i}=e;const s=Qt(t),a=xr(t),l=br(a),h=re(t),m=s==="y",y=r.x+r.width/2-i.width/2,v=r.y+r.height/2-i.height/2,g=r[l]/2-i[l]/2;let p;switch(h){case"top":p={x:y,y:r.y-i.height};break;case"bottom":p={x:y,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:v};break;case"left":p={x:r.x-i.width,y:v};break;default:p={x:r.x,y:r.y}}switch(un(t)){case"start":p[a]-=g*(n&&m?-1:1);break;case"end":p[a]+=g*(n&&m?-1:1);break}return p}async function wa(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:a,elements:l,strategy:h}=e,{boundary:m="clippingAncestors",rootBoundary:y="viewport",elementContext:v="floating",altBoundary:g=!1,padding:p=0}=oe(t,e),w=Fi(p),O=l[g?v==="floating"?"reference":"floating":v],_=Po(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(O)))==null||n?O:O.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:m,rootBoundary:y,strategy:h})),D=v==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,T=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),F=await(s.isElement==null?void 0:s.isElement(T))?await(s.getScale==null?void 0:s.getScale(T))||{x:1,y:1}:{x:1,y:1},I=Po(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:D,offsetParent:T,strategy:h}):D);return{top:(_.top-I.top+w.top)/F.y,bottom:(I.bottom-_.bottom+w.bottom)/F.y,left:(_.left-I.left+w.left)/F.x,right:(I.right-_.right+w.right)/F.x}}const ba=50,xa=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:wa},h=await(a.isRTL==null?void 0:a.isRTL(t));let m=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:y,y:v}=ai(m,r,h),g=r,p=0;const w={};for(let P=0;P<s.length;P++){const O=s[P];if(!O)continue;const{name:_,fn:D}=O,{x:T,y:F,data:I,reset:E}=await D({x:y,y:v,initialPlacement:r,placement:g,strategy:i,middlewareData:w,rects:m,platform:l,elements:{reference:e,floating:t}});y=T??y,v=F??v,w[_]={...w[_],...I},E&&p<ba&&(p++,typeof E=="object"&&(E.placement&&(g=E.placement),E.rects&&(m=E.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:y,y:v}=ai(m,g,h)),P=-1)}return{x:y,y:v,placement:g,strategy:i,middlewareData:w}},_a=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:a,elements:l,middlewareData:h}=t,{element:m,padding:y=0}=oe(e,t)||{};if(m==null)return{};const v=Fi(y),g={x:n,y:r},p=xr(i),w=br(p),P=await a.getDimensions(m),O=p==="y",_=O?"top":"left",D=O?"bottom":"right",T=O?"clientHeight":"clientWidth",F=s.reference[w]+s.reference[p]-g[p]-s.floating[w],I=g[p]-s.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(m));let Q=E?E[T]:0;(!Q||!await(a.isElement==null?void 0:a.isElement(E)))&&(Q=l.floating[T]||s.floating[w]);const ft=F/2-I/2,R=Q/2-P[w]/2-1,$=Pe(v[_],R),ot=Pe(v[D],R),tt=$,rt=Q-P[w]-ot,X=Q/2-P[w]/2+ft,vt=ir(tt,X,rt),et=!h.arrow&&un(i)!=null&&X!==vt&&s.reference[w]/2-(X<tt?$:ot)-P[w]/2<0,J=et?X<tt?X-tt:X-rt:0;return{[p]:g[p]+J,data:{[p]:vt,centerOffset:X-vt-J,...et&&{alignmentOffset:J}},reset:et}}}),Pa=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:l,platform:h,elements:m}=t,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:g,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:P=!0,...O}=oe(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const _=re(i),D=Qt(l),T=re(l)===l,F=await(h.isRTL==null?void 0:h.isRTL(m.floating)),I=g||(T||!P?[_o(l)]:ha(l)),E=w!=="none";!g&&E&&I.push(...ma(l,P,w,F));const Q=[l,...I],ft=await h.detectOverflow(t,O),R=[];let $=((r=s.flip)==null?void 0:r.overflows)||[];if(y&&R.push(ft[_]),v){const X=fa(i,a,F);R.push(ft[X[0]],ft[X[1]])}if($=[...$,{placement:i,overflows:R}],!R.every(X=>X<=0)){var ot,tt;const X=(((ot=s.flip)==null?void 0:ot.index)||0)+1,vt=Q[X];if(vt&&(!(v==="alignment"?D!==Qt(vt):!1)||$.every(V=>Qt(V.placement)===D?V.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:vt}};let et=(tt=$.filter(J=>J.overflows[0]<=0).sort((J,V)=>J.overflows[1]-V.overflows[1])[0])==null?void 0:tt.placement;if(!et)switch(p){case"bestFit":{var rt;const J=(rt=$.filter(V=>{if(E){const Z=Qt(V.placement);return Z===D||Z==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(Z=>Z>0).reduce((Z,st)=>Z+st,0)]).sort((V,Z)=>V[1]-Z[1])[0])==null?void 0:rt[0];J&&(et=J);break}case"initialPlacement":et=l;break}if(i!==et)return{reset:{placement:et}}}return{}}}};function li(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ci(e){return ua.some(t=>e[t]>=0)}const Oa=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...s}=oe(e,t);switch(i){case"referenceHidden":{const a=await r.detectOverflow(t,{...s,elementContext:"reference"}),l=li(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ci(l)}}}case"escaped":{const a=await r.detectOverflow(t,{...s,altBoundary:!0}),l=li(a,n.floating);return{data:{escapedOffsets:l,escaped:ci(l)}}}default:return{}}}}},Ei=new Set(["left","top"]);async function Ca(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=re(n),l=un(n),h=Qt(n)==="y",m=Ei.has(a)?-1:1,y=s&&h?-1:1,v=oe(t,e);let{mainAxis:g,crossAxis:p,alignmentAxis:w}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return l&&typeof w=="number"&&(p=l==="end"?w*-1:w),h?{x:p*y,y:g*m}:{x:g*m,y:p*y}}const Sa=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:a,middlewareData:l}=t,h=await Ca(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+h.x,y:s+h.y,data:{...h,placement:a}}}}},Aa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:h={fn:_=>{let{x:D,y:T}=_;return{x:D,y:T}}},...m}=oe(e,t),y={x:n,y:r},v=await s.detectOverflow(t,m),g=Qt(re(i)),p=wr(g);let w=y[p],P=y[g];if(a){const _=p==="y"?"top":"left",D=p==="y"?"bottom":"right",T=w+v[_],F=w-v[D];w=ir(T,w,F)}if(l){const _=g==="y"?"top":"left",D=g==="y"?"bottom":"right",T=P+v[_],F=P-v[D];P=ir(T,P,F)}const O=h.fn({...t,[p]:w,[g]:P});return{...O,data:{x:O.x-n,y:O.y-r,enabled:{[p]:a,[g]:l}}}}}},ka=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:a}=t,{offset:l=0,mainAxis:h=!0,crossAxis:m=!0}=oe(e,t),y={x:n,y:r},v=Qt(i),g=wr(v);let p=y[g],w=y[v];const P=oe(l,t),O=typeof P=="number"?{mainAxis:P,crossAxis:0}:{mainAxis:0,crossAxis:0,...P};if(h){const T=g==="y"?"height":"width",F=s.reference[g]-s.floating[T]+O.mainAxis,I=s.reference[g]+s.reference[T]-O.mainAxis;p<F?p=F:p>I&&(p=I)}if(m){var _,D;const T=g==="y"?"width":"height",F=Ei.has(re(i)),I=s.reference[v]-s.floating[T]+(F&&((_=a.offset)==null?void 0:_[v])||0)+(F?0:O.crossAxis),E=s.reference[v]+s.reference[T]+(F?0:((D=a.offset)==null?void 0:D[v])||0)-(F?O.crossAxis:0);w<I?w=I:w>E&&(w=E)}return{[g]:p,[v]:w}}}},za=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:a,elements:l}=t,{apply:h=()=>{},...m}=oe(e,t),y=await a.detectOverflow(t,m),v=re(i),g=un(i),p=Qt(i)==="y",{width:w,height:P}=s.floating;let O,_;v==="top"||v==="bottom"?(O=v,_=g===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=v,O=g==="end"?"top":"bottom");const D=P-y.top-y.bottom,T=w-y.left-y.right,F=Pe(P-y[O],D),I=Pe(w-y[_],T),E=!t.middlewareData.shift;let Q=F,ft=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ft=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(Q=D),E&&!g){const $=It(y.left,0),ot=It(y.right,0),tt=It(y.top,0),rt=It(y.bottom,0);p?ft=w-2*($!==0||ot!==0?$+ot:It(y.left,y.right)):Q=P-2*(tt!==0||rt!==0?tt+rt:It(y.top,y.bottom))}await h({...t,availableWidth:ft,availableHeight:Q});const R=await a.getDimensions(l.floating);return w!==R.width||P!==R.height?{reset:{rects:!0}}:{}}}};function To(){return typeof window<"u"}function dn(e){return Ti(e)?(e.nodeName||"").toLowerCase():"#document"}function Wt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $t(e){var t;return(t=(Ti(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ti(e){return To()?e instanceof Node||e instanceof Wt(e).Node:!1}function Vt(e){return To()?e instanceof Element||e instanceof Wt(e).Element:!1}function ae(e){return To()?e instanceof HTMLElement||e instanceof Wt(e).HTMLElement:!1}function ui(e){return!To()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wt(e).ShadowRoot}function ro(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Kt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!=="inline"&&i!=="contents"}function Fa(e){return/^(table|td|th)$/.test(dn(e))}function Do(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Ea=/transform|translate|scale|rotate|perspective|filter/,Ta=/paint|layout|strict|content/,Ae=e=>!!e&&e!=="none";let er;function _r(e){const t=Vt(e)?Kt(e):e;return Ae(t.transform)||Ae(t.translate)||Ae(t.scale)||Ae(t.rotate)||Ae(t.perspective)||!Pr()&&(Ae(t.backdropFilter)||Ae(t.filter))||Ea.test(t.willChange||"")||Ta.test(t.contain||"")}function Da(e){let t=Oe(e);for(;ae(t)&&!ln(t);){if(_r(t))return t;if(Do(t))return null;t=Oe(t)}return null}function Pr(){return er==null&&(er=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),er}function ln(e){return/^(html|body|#document)$/.test(dn(e))}function Kt(e){return Wt(e).getComputedStyle(e)}function Mo(e){return Vt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Oe(e){if(dn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ui(e)&&e.host||$t(e);return ui(t)?t.host:t}function Di(e){const t=Oe(e);return ln(t)?e.ownerDocument?e.ownerDocument.body:e.body:ae(t)&&ro(t)?t:Di(t)}function Cn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Di(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Wt(i);if(s){const l=ar(a);return t.concat(a,a.visualViewport||[],ro(i)?i:[],l&&n?Cn(l):[])}else return t.concat(i,Cn(i,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Mi(e){const t=Kt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ae(e),s=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=xo(n)!==s||xo(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function Or(e){return Vt(e)?e:e.contextElement}function $e(e){const t=Or(e);if(!ae(t))return Gt(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=Mi(t);let a=(s?xo(n.width):n.width)/r,l=(s?xo(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Ma=Gt(0);function Li(e){const t=Wt(e);return!Pr()||!t.visualViewport?Ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function La(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wt(e)?!1:t}function De(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=Or(e);let a=Gt(1);t&&(r?Vt(r)&&(a=$e(r)):a=$e(e));const l=La(s,n,r)?Li(s):Gt(0);let h=(i.left+l.x)/a.x,m=(i.top+l.y)/a.y,y=i.width/a.x,v=i.height/a.y;if(s){const g=Wt(s),p=r&&Vt(r)?Wt(r):r;let w=g,P=ar(w);for(;P&&r&&p!==w;){const O=$e(P),_=P.getBoundingClientRect(),D=Kt(P),T=_.left+(P.clientLeft+parseFloat(D.paddingLeft))*O.x,F=_.top+(P.clientTop+parseFloat(D.paddingTop))*O.y;h*=O.x,m*=O.y,y*=O.x,v*=O.y,h+=T,m+=F,w=Wt(P),P=ar(w)}}return Po({width:y,height:v,x:h,y:m})}function Lo(e,t){const n=Mo(e).scrollLeft;return t?t.left+n:De($t(e)).left+n}function Ii(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Lo(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Ia(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",a=$t(r),l=t?Do(t.floating):!1;if(r===a||l&&s)return n;let h={scrollLeft:0,scrollTop:0},m=Gt(1);const y=Gt(0),v=ae(r);if((v||!v&&!s)&&((dn(r)!=="body"||ro(a))&&(h=Mo(r)),v)){const p=De(r);m=$e(r),y.x=p.x+r.clientLeft,y.y=p.y+r.clientTop}const g=a&&!v&&!s?Ii(a,h):Gt(0);return{width:n.width*m.x,height:n.height*m.y,x:n.x*m.x-h.scrollLeft*m.x+y.x+g.x,y:n.y*m.y-h.scrollTop*m.y+y.y+g.y}}function Wa(e){return Array.from(e.getClientRects())}function Ha(e){const t=$t(e),n=Mo(e),r=e.ownerDocument.body,i=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Lo(e);const l=-n.scrollTop;return Kt(r).direction==="rtl"&&(a+=It(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:l}}const di=25;function Na(e,t){const n=Wt(e),r=$t(e),i=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,l=0,h=0;if(i){s=i.width,a=i.height;const y=Pr();(!y||y&&t==="fixed")&&(l=i.offsetLeft,h=i.offsetTop)}const m=Lo(r);if(m<=0){const y=r.ownerDocument,v=y.body,g=getComputedStyle(v),p=y.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-v.clientWidth-p);w<=di&&(s-=w)}else m<=di&&(s+=m);return{width:s,height:a,x:l,y:h}}function Ra(e,t){const n=De(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ae(e)?$e(e):Gt(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,h=i*s.x,m=r*s.y;return{width:a,height:l,x:h,y:m}}function fi(e,t,n){let r;if(t==="viewport")r=Na(e,n);else if(t==="document")r=Ha($t(e));else if(Vt(t))r=Ra(t,n);else{const i=Li(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Po(r)}function Wi(e,t){const n=Oe(e);return n===t||!Vt(n)||ln(n)?!1:Kt(n).position==="fixed"||Wi(n,t)}function Ba(e,t){const n=t.get(e);if(n)return n;let r=Cn(e,[],!1).filter(l=>Vt(l)&&dn(l)!=="body"),i=null;const s=Kt(e).position==="fixed";let a=s?Oe(e):e;for(;Vt(a)&&!ln(a);){const l=Kt(a),h=_r(a);!h&&l.position==="fixed"&&(i=null),(s?!h&&!i:!h&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ro(a)&&!h&&Wi(e,a))?r=r.filter(y=>y!==a):i=l,a=Oe(a)}return t.set(e,r),r}function Va(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Do(t)?[]:Ba(t,this._c):[].concat(n),r],l=fi(t,a[0],i);let h=l.top,m=l.right,y=l.bottom,v=l.left;for(let g=1;g<a.length;g++){const p=fi(t,a[g],i);h=It(p.top,h),m=Pe(p.right,m),y=Pe(p.bottom,y),v=It(p.left,v)}return{width:m-v,height:y-h,x:v,y:h}}function Ka(e){const{width:t,height:n}=Mi(e);return{width:t,height:n}}function Ua(e,t,n){const r=ae(t),i=$t(t),s=n==="fixed",a=De(e,!0,s,t);let l={scrollLeft:0,scrollTop:0};const h=Gt(0);function m(){h.x=Lo(i)}if(r||!r&&!s)if((dn(t)!=="body"||ro(i))&&(l=Mo(t)),r){const p=De(t,!0,s,t);h.x=p.x+t.clientLeft,h.y=p.y+t.clientTop}else i&&m();s&&!r&&i&&m();const y=i&&!r&&!s?Ii(i,l):Gt(0),v=a.left+l.scrollLeft-h.x-y.x,g=a.top+l.scrollTop-h.y-y.y;return{x:v,y:g,width:a.width,height:a.height}}function nr(e){return Kt(e).position==="static"}function hi(e,t){if(!ae(e)||Kt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return $t(e)===n&&(n=n.ownerDocument.body),n}function Hi(e,t){const n=Wt(e);if(Do(e))return n;if(!ae(e)){let i=Oe(e);for(;i&&!ln(i);){if(Vt(i)&&!nr(i))return i;i=Oe(i)}return n}let r=hi(e,t);for(;r&&Fa(r)&&nr(r);)r=hi(r,t);return r&&ln(r)&&nr(r)&&!_r(r)?n:r||Da(e)||n}const ja=async function(e){const t=this.getOffsetParent||Hi,n=this.getDimensions,r=await n(e.floating);return{reference:Ua(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xa(e){return Kt(e).direction==="rtl"}const Ya={convertOffsetParentRelativeRectToViewportRelativeRect:Ia,getDocumentElement:$t,getClippingRect:Va,getOffsetParent:Hi,getElementRects:ja,getClientRects:Wa,getDimensions:Ka,getScale:$e,isElement:Vt,isRTL:Xa};function Ni(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qa(e,t){let n=null,r;const i=$t(e);function s(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,h){l===void 0&&(l=!1),h===void 0&&(h=1),s();const m=e.getBoundingClientRect(),{left:y,top:v,width:g,height:p}=m;if(l||t(),!g||!p)return;const w=yo(v),P=yo(i.clientWidth-(y+g)),O=yo(i.clientHeight-(v+p)),_=yo(y),T={rootMargin:-w+"px "+-P+"px "+-O+"px "+-_+"px",threshold:It(0,Pe(1,h))||1};let F=!0;function I(E){const Q=E[0].intersectionRatio;if(Q!==h){if(!F)return a();Q?a(!1,Q):r=setTimeout(()=>{a(!1,1e-7)},1e3)}Q===1&&!Ni(m,e.getBoundingClientRect())&&a(),F=!1}try{n=new IntersectionObserver(I,{...T,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,T)}n.observe(e)}return a(!0),s}function Ja(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,m=Or(e),y=i||s?[...m?Cn(m):[],...t?Cn(t):[]]:[];y.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),s&&_.addEventListener("resize",n)});const v=m&&l?qa(m,n):null;let g=-1,p=null;a&&(p=new ResizeObserver(_=>{let[D]=_;D&&D.target===m&&p&&t&&(p.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var T;(T=p)==null||T.observe(t)})),n()}),m&&!h&&p.observe(m),t&&p.observe(t));let w,P=h?De(e):null;h&&O();function O(){const _=De(e);P&&!Ni(P,_)&&n(),P=_,w=requestAnimationFrame(O)}return n(),()=>{var _;y.forEach(D=>{i&&D.removeEventListener("scroll",n),s&&D.removeEventListener("resize",n)}),v==null||v(),(_=p)==null||_.disconnect(),p=null,h&&cancelAnimationFrame(w)}}const Za=Sa,Qa=Aa,Ga=Pa,$a=za,tl=Oa,el=_a,nl=ka,ol=(e,t,n)=>{const r=new Map,i={platform:Ya,...n},s={...i.platform,_c:r};return xa(e,t,{...i,platform:s})};function ke(e){return typeof e=="function"?e():e}function Ri(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function pi(e,t){const n=Ri(e);return Math.round(t*n)/n}function vi(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function rl(e){const t=e.whileElementsMounted,n=H(()=>ke(e.open)??!0),r=H(()=>ke(e.middleware)),i=H(()=>ke(e.transform)??!0),s=H(()=>ke(e.placement)??"bottom"),a=H(()=>ke(e.strategy)??"absolute"),l=H(()=>ke(e.sideOffset)??0),h=H(()=>ke(e.alignOffset)??0),m=e.reference;let y=bt(0),v=bt(0);const g=_e(null);let p=bt(Zo(o(a))),w=bt(Zo(o(s))),P=bt(Zo({})),O=bt(!1),_=!1,D=0;const T=H(()=>{const $=g.current?pi(g.current,o(y)):o(y),ot=g.current?pi(g.current,o(v)):o(v);return o(i)?{position:o(p),left:"0",top:"0",transform:`translate(${$}px, ${ot}px)`,...g.current&&Ri(g.current)>=1.5&&{willChange:"transform"}}:{position:o(p),left:`${$}px`,top:`${ot}px`}});let F;function I(){if(m.current===null||g.current===null)return;const $=m.current,ot=g.current,tt=++D;ol($,ot,{middleware:o(r),placement:o(s),strategy:o(a)}).then(rt=>{if(tt!==D||m.current!==$||g.current!==ot)return;if(il($)){d(P,{...o(P),hide:{...o(P).hide,referenceHidden:!0}},!0);return}if(!o(n)&&o(y)!==0&&o(v)!==0){const vt=Math.max(Math.abs(o(l)),Math.abs(o(h)),15);if(rt.x<=vt&&rt.y<=vt)return}d(y,rt.x,!0),d(v,rt.y,!0),d(p,rt.strategy,!0),d(w,rt.placement,!0),d(P,rt.middlewareData,!0),d(O,!0)})}function E(){typeof F=="function"&&(F(),F=void 0),D++}function Q(){if(E(),t===void 0){I();return}o(n)&&(m.current===null||g.current===null||(F=t(m.current,g.current,I)))}function ft(){!o(n)&&g.current===null&&d(O,!1)}function R(){return[o(r),o(s),o(a),o(l),o(h),o(n)]}return he(()=>{t===void 0&&o(n)&&I()}),he(Q),he(()=>{if(t!==void 0){if(R(),!o(n)){_=!1;return}if(!o(O)){_=!1;return}if(!_){_=!0;return}I()}}),he(ft),he(()=>E),{floating:g,reference:m,get strategy(){return o(p)},get placement(){return o(w)},get middlewareData(){return o(P)},get isPositioned(){return o(O)},get floatingStyles(){return o(T)},get update(){return I}}}function il(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const sl={top:"bottom",right:"left",bottom:"top",left:"right"},Cr=new Eo("Floating.Root"),gi=new Eo("Floating.Content"),Sr=new Eo("Floating.Root");class Oo{constructor(){it(this,"anchorNode",_e(null));it(this,"customAnchorNode",_e(null));it(this,"triggerNode",_e(null));he(()=>{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(t=!1){return t?Sr.set(new Oo):Cr.set(new Oo)}}var Sn,An,kn,ko,zn,zo,Fn,En,Tn,Dn,Mn,Ln,In,Wn,Hn,Nn,Rn,Bn,Vn,Kn,Un,jn,Xn,Yn;const Fo=class Fo{constructor(t,n){it(this,"opts");it(this,"root");it(this,"contentRef",_e(null));it(this,"wrapperRef",_e(null));it(this,"arrowRef",_e(null));it(this,"contentAttachment",Pn(this.contentRef));it(this,"wrapperAttachment",Pn(this.wrapperRef));it(this,"arrowAttachment",Pn(this.arrowRef));it(this,"arrowId",_e(Ai()));A(this,Sn,H(()=>{if(typeof this.opts.style=="string")return Xs(this.opts.style);if(!this.opts.style)return{}}));A(this,An);A(this,kn,new ca(()=>this.arrowRef.current??void 0));A(this,ko,H(()=>{var t;return((t=f(this,kn))==null?void 0:t.width)??0}));A(this,zn,H(()=>{var t;return((t=f(this,kn))==null?void 0:t.height)??0}));A(this,zo,H(()=>{var t;return((t=this.opts.side)==null?void 0:t.current)+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")}));A(this,Fn,H(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));A(this,En,H(()=>o(f(this,Fn)).length>0));A(this,Tn,H(()=>({padding:this.opts.collisionPadding.current,boundary:o(f(this,Fn)).filter(Ys),altBoundary:this.hasExplicitBoundaries})));A(this,Dn,bt(void 0));A(this,Mn,bt(void 0));A(this,Ln,bt(void 0));A(this,In,bt(void 0));A(this,Wn,H(()=>[Za({mainAxis:this.opts.sideOffset.current+o(f(this,zn)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Qa({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?nl():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Ga({...this.detectOverflowOptions}),$a({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:s}=t.reference;d(f(this,Dn),n,!0),d(f(this,Mn),r,!0),d(f(this,Ln),i,!0),d(f(this,In),s,!0)}}),this.arrowRef.current&&el({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),al({arrowWidth:o(f(this,ko)),arrowHeight:o(f(this,zn))}),this.opts.hideWhenDetached.current&&tl({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));it(this,"floating");A(this,Hn,H(()=>ll(this.floating.placement)));A(this,Nn,H(()=>cl(this.floating.placement)));A(this,Rn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.x)??0}));A(this,Bn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.y)??0}));A(this,Vn,H(()=>{var t;return((t=this.floating.middlewareData.arrow)==null?void 0:t.centerOffset)!==0}));A(this,Kn,bt());A(this,Un,H(()=>sl[this.placedSide]));A(this,jn,H(()=>{var t,n,r;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":`${(t=this.floating.middlewareData.transformOrigin)==null?void 0:t.x} ${(n=this.floating.middlewareData.transformOrigin)==null?void 0:n.y}`,"--bits-floating-available-width":`${o(f(this,Dn))}px`,"--bits-floating-available-height":`${o(f(this,Mn))}px`,"--bits-floating-anchor-width":`${o(f(this,Ln))}px`,"--bits-floating-anchor-height":`${o(f(this,In))}px`,...((r=this.floating.middlewareData.hide)==null?void 0:r.referenceHidden)&&{visibility:"hidden","pointer-events":"none"},...o(f(this,Sn))},dir:this.opts.dir.current,...this.wrapperAttachment}}));A(this,Xn,H(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:qs({...o(f(this,Sn))}),...this.contentAttachment})));A(this,Yn,H(()=>({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=t,this.root=n,j(this,An,t.updatePositionStrategy),t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),On(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=rl({strategy:()=>this.opts.strategy.current,placement:()=>o(f(this,zo)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>{var s;return Ja(...r,{animationFrame:((s=f(this,An))==null?void 0:s.current)==="always"})},open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),he(()=>{var r;this.floating.isPositioned&&((r=this.opts.onPlaced)==null||r.current())}),On(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const i=Js(r),s=i.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const a=i.getComputedStyle(r).zIndex;a!==this.contentZIndex&&(this.contentZIndex=a)});return()=>{i.cancelAnimationFrame(s)}}),he(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(t,n=!1){return n?gi.set(new Fo(t,Sr.get())):gi.set(new Fo(t,Cr.get()))}get hasExplicitBoundaries(){return o(f(this,En))}set hasExplicitBoundaries(t){d(f(this,En),t)}get detectOverflowOptions(){return o(f(this,Tn))}set detectOverflowOptions(t){d(f(this,Tn),t)}get middleware(){return o(f(this,Wn))}set middleware(t){d(f(this,Wn),t)}get placedSide(){return o(f(this,Hn))}set placedSide(t){d(f(this,Hn),t)}get placedAlign(){return o(f(this,Nn))}set placedAlign(t){d(f(this,Nn),t)}get arrowX(){return o(f(this,Rn))}set arrowX(t){d(f(this,Rn),t)}get arrowY(){return o(f(this,Bn))}set arrowY(t){d(f(this,Bn),t)}get cannotCenterArrow(){return o(f(this,Vn))}set cannotCenterArrow(t){d(f(this,Vn),t)}get contentZIndex(){return o(f(this,Kn))}set contentZIndex(t){d(f(this,Kn),t,!0)}get arrowBaseSide(){return o(f(this,Un))}set arrowBaseSide(t){d(f(this,Un),t)}get wrapperProps(){return o(f(this,jn))}set wrapperProps(t){d(f(this,jn),t)}get props(){return o(f(this,Xn))}set props(t){d(f(this,Xn),t)}get arrowStyle(){return o(f(this,Yn))}set arrowStyle(t){d(f(this,Yn),t)}};Sn=new WeakMap,An=new WeakMap,kn=new WeakMap,ko=new WeakMap,zn=new WeakMap,zo=new WeakMap,Fn=new WeakMap,En=new WeakMap,Tn=new WeakMap,Dn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,In=new WeakMap,Wn=new WeakMap,Hn=new WeakMap,Nn=new WeakMap,Rn=new WeakMap,Bn=new WeakMap,Vn=new WeakMap,Kn=new WeakMap,Un=new WeakMap,jn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap;let lr=Fo;class Co{constructor(t,n){it(this,"opts");it(this,"root");this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=js(t.virtualEl.current):n.triggerNode=t.ref}static create(t,n=!1){return n?new Co(t,Sr.get()):new Co(t,Cr.get())}}function al(e){return{name:"transformOrigin",options:e,fn(t){var O,_,D;const{placement:n,rects:r,middlewareData:i}=t,a=((O=i.arrow)==null?void 0:O.centerOffset)!==0,l=a?0:e.arrowWidth,h=a?0:e.arrowHeight,[m,y]=Ar(n),v={start:"0%",center:"50%",end:"100%"}[y],g=(((_=i.arrow)==null?void 0:_.x)??0)+l/2,p=(((D=i.arrow)==null?void 0:D.y)??0)+h/2;let w="",P="";return m==="bottom"?(w=a?v:`${g}px`,P=`${-h}px`):m==="top"?(w=a?v:`${g}px`,P=`${r.floating.height+h}px`):m==="right"?(w=`${-h}px`,P=a?v:`${p}px`):m==="left"&&(w=`${r.floating.width+h}px`,P=a?v:`${p}px`),{data:{x:w,y:P}}}}}function Ar(e){const[t,n="center"]=e.split("-");return[t,n]}function ll(e){return Ar(e)[0]}function cl(e){return Ar(e)[1]}function ul(e,t){ie(t,!0);let n=z(t,"tooltip",3,!1);Oo.create(n());var r=pt(),i=Y(r);Rt(i,()=>t.children??ne),k(e,r),se()}function dl(e,t){ie(t,!0);let n=z(t,"tooltip",3,!1);Co.create({id:K(()=>t.id),virtualEl:K(()=>t.virtualEl),ref:t.ref},n());var r=pt(),i=Y(r);Rt(i,()=>t.children??ne),k(e,r),se()}function fl(e,t){ie(t,!0);let n=z(t,"side",3,"bottom"),r=z(t,"sideOffset",3,0),i=z(t,"align",3,"center"),s=z(t,"alignOffset",3,0),a=z(t,"arrowPadding",3,0),l=z(t,"avoidCollisions",3,!0),h=z(t,"collisionBoundary",19,()=>[]),m=z(t,"collisionPadding",3,0),y=z(t,"hideWhenDetached",3,!1),v=z(t,"onPlaced",3,()=>{}),g=z(t,"sticky",3,"partial"),p=z(t,"updatePositionStrategy",3,"optimized"),w=z(t,"strategy",3,"fixed"),P=z(t,"dir",3,"ltr"),O=z(t,"style",19,()=>({})),_=z(t,"wrapperId",19,Ai),D=z(t,"customAnchor",3,null),T=z(t,"tooltip",3,!1);const F=lr.create({side:K(()=>n()),sideOffset:K(()=>r()),align:K(()=>i()),alignOffset:K(()=>s()),id:K(()=>t.id),arrowPadding:K(()=>a()),avoidCollisions:K(()=>l()),collisionBoundary:K(()=>h()),collisionPadding:K(()=>m()),hideWhenDetached:K(()=>y()),onPlaced:K(()=>v()),sticky:K(()=>g()),updatePositionStrategy:K(()=>p()),strategy:K(()=>w()),dir:K(()=>P()),style:K(()=>O()),enabled:K(()=>t.enabled),wrapperId:K(()=>_()),customAnchor:K(()=>D())},T()),I=H(()=>Ge(F.wrapperProps,{style:{pointerEvents:"auto"}}));var E=pt(),Q=Y(E);Rt(Q,()=>t.content??ne,()=>({props:F.props,wrapperProps:o(I)})),k(e,E),se()}function hl(e,t){ie(t,!0),Si(()=>{var i;(i=t.onPlaced)==null||i.call(t)});var n=pt(),r=Y(n);Rt(r,()=>t.content??ne,()=>({props:{},wrapperProps:{}})),k(e,n),se()}function pl(e,t){let n=z(t,"isStatic",3,!1),r=cn(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var i=pt(),s=Y(i);{var a=h=>{hl(h,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},l=h=>{fl(h,Bt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};_t(s,h=>{n()?h(a):h(l,-1)})}k(e,i)}var vl=at("<!> <!>",1);function Bi(e,t){ie(t,!0);let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=z(t,"tooltip",3,!1),h=z(t,"contentPointerEvents",3,"auto"),m=cn(t,["$$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"]);const y=H(()=>t.preventScroll??!0),v=H(()=>t.strategy??(o(y)?"fixed":"absolute"));pl(e,{get isStatic(){return a()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return o(v)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return l()},content:(p,w)=>{let P=()=>w==null?void 0:w().props,O=()=>w==null?void 0:w().wrapperProps;var _=vl(),D=Y(_);{var T=E=>{Gr(E,{get preventScroll(){return o(y)}})},F=E=>{Gr(E,{get preventScroll(){return o(y)}})};_t(D,E=>{t.forceMount&&t.enabled?E(T):t.forceMount||E(F,1)})}var I=M(D,2);Zs(I,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(Q,ft)=>{let R=()=>ft==null?void 0:ft().props;Qs(Q,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:($,ot)=>{Gs($,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return i()},get enabled(){return t.enabled},get ref(){return t.ref},children:(rt,X)=>{let vt=()=>X==null?void 0:X().props;$s(rt,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(et,J)=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:Ge(m,P(),vt(),R(),{style:{pointerEvents:h()}}),wrapperProps:O()}));Rt(Z,()=>t.popper??ne,()=>o(st))}k(et,V)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),k(p,_)},$$slots:{content:!0}}),se()}function gl(e,t){let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=cn(t,["$$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"]);var h=pt(),m=Y(h);{var y=v=>{Bi(v,Bt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>l))};_t(m,v=>{t.shouldRender&&v(y)})}k(e,h)}function ml(e,t){let n=z(t,"interactOutsideBehavior",3,"close"),r=z(t,"trapFocus",3,!0),i=z(t,"isValidEvent",3,()=>!1),s=z(t,"customAnchor",3,null),a=z(t,"isStatic",3,!1),l=cn(t,["$$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"]);Bi(e,Bt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return a()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return i()},get onFocusOutside(){return t.onFocusOutside}},()=>l,{forceMount:!0}))}function or(e,t){const[n,r]=e;let i=!1;const s=t.length;for(let a=0,l=s-1;a<s;l=a++){const[h,m]=t[a]??[0,0],[y,v]=t[l]??[0,0];m>=r!=v>=r&&n<=(y-h)*(r-m)/(v-m)+h&&(i=!i)}return i}function rr(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function mi(e,t){const n=e.left+e.width/2,r=e.top+e.height/2,i=t.left+t.width/2,s=t.top+t.height/2,a=i-n,l=s-r;return Math.abs(a)>Math.abs(l)?a>0?"right":"left":l>0?"bottom":"top"}var ge,rn,sn,Jt,Dt,Fe,Ee,me,ye,q,wo,cr,ur,Vi,Ki,qt,dr,Ui,ji;class yl{constructor(t){A(this,q);A(this,ge);A(this,rn);A(this,sn);A(this,Jt,null);A(this,Dt,null);A(this,Fe,[]);A(this,Ee,null);A(this,me,null);A(this,ye,null);j(this,ge,t),j(this,rn,t.buffer??1);const n=t.transitIntentTimeout;j(this,sn,typeof n=="number"&&n>0?n:null),On([t.triggerNode,t.contentNode,t.enabled],([r,i,s])=>{if(!r||!i||!s){j(this,Ee,null),B(this,q,qt).call(this);return}f(this,Ee)&&f(this,Ee)!==r&&B(this,q,qt).call(this),j(this,Ee,r);const a=ta(r),l=g=>{B(this,q,Ki).call(this,[g.clientX,g.clientY],r,i)},h=g=>{var P,O;const p=g.relatedTarget;if(ze(p)&&i.contains(p))return;const w=((O=(P=f(this,ge)).ignoredTargets)==null?void 0:O.call(P))??[];ze(p)&&w.some(_=>_===p||_.contains(p))||(j(this,Fe,ze(p)&&w.length>0?w.filter(_=>p.contains(_)):[]),j(this,Jt,[g.clientX,g.clientY]),j(this,Dt,"content"),B(this,q,cr).call(this))},m=()=>{B(this,q,qt).call(this)},y=()=>{B(this,q,qt).call(this)},v=g=>{const p=g.relatedTarget;ze(p)&&r.contains(p)||(j(this,Jt,[g.clientX,g.clientY]),j(this,Dt,"trigger"),B(this,q,cr).call(this))};return[xn(a,"pointermove",l),xn(r,"pointerleave",h),xn(r,"pointerenter",m),xn(i,"pointerenter",y),xn(i,"pointerleave",v)].reduce((g,p)=>()=>{g(),p()},()=>{})})}}ge=new WeakMap,rn=new WeakMap,sn=new WeakMap,Jt=new WeakMap,Dt=new WeakMap,Fe=new WeakMap,Ee=new WeakMap,me=new WeakMap,ye=new WeakMap,q=new WeakSet,wo=function(){f(this,me)!==null&&(cancelAnimationFrame(f(this,me)),j(this,me,null))},cr=function(){B(this,q,wo).call(this),j(this,me,requestAnimationFrame(()=>{j(this,me,null),!(!f(this,Jt)||!f(this,Dt))&&(B(this,q,qt).call(this),f(this,ge).onPointerExit())}))},ur=function(){f(this,ye)!==null&&(clearTimeout(f(this,ye)),j(this,ye,null))},Vi=function(){f(this,sn)!==null&&(B(this,q,ur).call(this),j(this,ye,window.setTimeout(()=>{j(this,ye,null),!(!f(this,Jt)||!f(this,Dt))&&(B(this,q,qt).call(this),f(this,ge).onPointerExit())},f(this,sn))))},Ki=function(t,n,r){if(!f(this,Jt)||!f(this,Dt))return;B(this,q,wo).call(this),B(this,q,Vi).call(this);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(f(this,Dt)==="content"&&rr(t,s)){B(this,q,qt).call(this);return}if(f(this,Dt)==="trigger"&&rr(t,i)){B(this,q,qt).call(this);return}if(f(this,Dt)==="content"&&f(this,Fe).length>0)for(const y of f(this,Fe)){const v=y.getBoundingClientRect();if(rr(t,v))return;const g=mi(i,v),p=B(this,q,dr).call(this,i,v,g);if(p&&or(t,p))return}const a=mi(i,s),l=B(this,q,dr).call(this,i,s,a);if(l&&or(t,l))return;const h=f(this,Dt)==="content"?s:i,m=B(this,q,Ui).call(this,f(this,Jt),h,a,f(this,Dt));or(t,m)||(B(this,q,qt).call(this),f(this,ge).onPointerExit())},qt=function(){j(this,Jt,null),j(this,Dt,null),j(this,Fe,[]),B(this,q,wo).call(this),B(this,q,ur).call(this)},dr=function(t,n,r){const i=f(this,rn);switch(r){case"top":return[[Math.min(t.left,n.left)-i,t.top],[Math.min(t.left,n.left)-i,n.bottom],[Math.max(t.right,n.right)+i,n.bottom],[Math.max(t.right,n.right)+i,t.top]];case"bottom":return[[Math.min(t.left,n.left)-i,t.bottom],[Math.min(t.left,n.left)-i,n.top],[Math.max(t.right,n.right)+i,n.top],[Math.max(t.right,n.right)+i,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-i],[n.right,Math.min(t.top,n.top)-i],[n.right,Math.max(t.bottom,n.bottom)+i],[t.left,Math.max(t.bottom,n.bottom)+i]];case"right":return[[t.right,Math.min(t.top,n.top)-i],[n.left,Math.min(t.top,n.top)-i],[n.left,Math.max(t.bottom,n.bottom)+i],[t.right,Math.max(t.bottom,n.bottom)+i]]}},Ui=function(t,n,r,i){const s=f(this,rn)*4,[a,l]=t;switch(i==="trigger"?B(this,q,ji).call(this,r):r){case"top":return[[a-s,l+s],[a+s,l+s],[n.right+s,n.bottom],[n.right+s,n.top],[n.left-s,n.top],[n.left-s,n.bottom]];case"bottom":return[[a-s,l-s],[a+s,l-s],[n.right+s,n.top],[n.right+s,n.bottom],[n.left-s,n.bottom],[n.left-s,n.top]];case"left":return[[a+s,l-s],[a+s,l+s],[n.right,n.bottom+s],[n.left,n.bottom+s],[n.left,n.top-s],[n.right,n.top-s]];case"right":return[[a-s,l-s],[a-s,l+s],[n.left,n.bottom+s],[n.right,n.bottom+s],[n.right,n.top-s],[n.left,n.top-s]]}},ji=function(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};const fr=sa({component:"popover",parts:["root","trigger","content","close","overlay"]}),kr=new Eo("Popover.Root");var qn,Jn,Zn,Qn,Gn,$n,to,we,be,Zt,fe;const zr=class zr{constructor(t){A(this,Zt);it(this,"opts");A(this,qn,bt(null));it(this,"contentPresence");A(this,Jn,bt(null));A(this,Zn,bt(null));it(this,"overlayPresence");A(this,Qn,bt(!1));A(this,Gn,bt(!1));A(this,$n,bt(!1));A(this,to,bt(0));A(this,we,null);A(this,be,null);this.opts=t,this.contentPresence=new $r({ref:K(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new $r({ref:K(()=>this.overlayNode),open:this.opts.open}),On(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,B(this,Zt,fe).call(this))})}static create(t){return kr.set(new zr(t))}get contentNode(){return o(f(this,qn))}set contentNode(t){d(f(this,qn),t,!0)}get triggerNode(){return o(f(this,Jn))}set triggerNode(t){d(f(this,Jn),t,!0)}get overlayNode(){return o(f(this,Zn))}set overlayNode(t){d(f(this,Zn),t,!0)}get openedViaHover(){return o(f(this,Qn))}set openedViaHover(t){d(f(this,Qn),t,!0)}get hasInteractedWithContent(){return o(f(this,Gn))}set hasInteractedWithContent(t){d(f(this,Gn),t,!0)}get hoverCooldown(){return o(f(this,$n))}set hoverCooldown(t){d(f(this,$n),t,!0)}get closeDelay(){return o(f(this,to))}set closeDelay(t){d(f(this,to),t,!0)}setDomContext(t){j(this,be,t)}toggleOpen(){B(this,Zt,fe).call(this),this.opts.open.current=!this.opts.open.current}handleClose(){B(this,Zt,fe).call(this),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){B(this,Zt,fe).call(this),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(B(this,Zt,fe).call(this),this.closeDelay<=0?this.opts.open.current=!1:f(this,be)&&j(this,we,f(this,be).setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),j(this,we,null)},this.closeDelay))))}cancelDelayedClose(){B(this,Zt,fe).call(this)}markInteraction(){this.hasInteractedWithContent=!0,B(this,Zt,fe).call(this)}};qn=new WeakMap,Jn=new WeakMap,Zn=new WeakMap,Qn=new WeakMap,Gn=new WeakMap,$n=new WeakMap,to=new WeakMap,we=new WeakMap,be=new WeakMap,Zt=new WeakSet,fe=function(){f(this,we)!==null&&f(this,be)&&(f(this,be).clearTimeout(f(this,we)),j(this,we,null))};let hr=zr;var xe,an,Te,Ht,vr,gr,mr,Xi,eo;const Fr=class Fr{constructor(t,n){A(this,Ht);it(this,"opts");it(this,"root");it(this,"attachment");it(this,"domContext");A(this,xe,null);A(this,an,null);A(this,Te,bt(!1));A(this,eo,H(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ra(this.root.opts.open.current),"data-state":ki(this.root.opts.open.current),"aria-controls":B(this,Ht,Xi).call(this),[fr.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));this.opts=t,this.root=n,this.attachment=Pn(this.opts.ref,r=>this.root.triggerNode=r),this.domContext=new ea(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),On(()=>this.opts.closeDelay.current,r=>{this.root.closeDelay=r})}static create(t){return new Fr(t,kr.get())}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||bo(t)||(d(f(this,Te),!0),B(this,Ht,gr).call(this),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():j(this,xe,this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),j(this,xe,null)},n))}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(bo(t)||(d(f(this,Te),!1),B(this,Ht,vr).call(this),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(B(this,Ht,mr).call(this),o(f(this,Te))&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(f(this,Te))&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===na||t.key===oa)&&(t.preventDefault(),B(this,Ht,mr).call(this),this.root.toggleOpen())}get props(){return o(f(this,eo))}set props(t){d(f(this,eo),t)}};xe=new WeakMap,an=new WeakMap,Te=new WeakMap,Ht=new WeakSet,vr=function(){f(this,xe)!==null&&(this.domContext.clearTimeout(f(this,xe)),j(this,xe,null))},gr=function(){f(this,an)!==null&&(this.domContext.clearTimeout(f(this,an)),j(this,an,null))},mr=function(){B(this,Ht,vr).call(this),B(this,Ht,gr).call(this)},Xi=function(){var t,n;if(this.root.opts.open.current&&((t=this.root.contentNode)!=null&&t.id))return(n=this.root.contentNode)==null?void 0:n.id},eo=new WeakMap;let pr=Fr;var no,oo;const Er=class Er{constructor(t,n){it(this,"opts");it(this,"root");it(this,"attachment");it(this,"onInteractOutside",t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ze(t.target))return;const n=t.target.closest(fr.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ze(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const r=document.querySelector(this.opts.customAnchor.current);if(r&&r.contains(t.target))return}}this.root.handleClose()}});it(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});A(this,no,H(()=>({open:this.root.opts.open.current})));A(this,oo,H(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ki(this.root.opts.open.current),[fr.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment})));it(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown});this.opts=t,this.root=n,this.attachment=Pn(this.opts.ref,r=>this.root.contentNode=r),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new yl({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}static create(t){return new Er(t,kr.get())}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ze(n)&&ia(n)&&this.root.markInteraction()}onpointerenter(t){bo(t)||this.root.cancelDelayedClose()}onpointerleave(t){bo(t)}get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}get snippetProps(){return o(f(this,no))}set snippetProps(t){d(f(this,no),t)}get props(){return o(f(this,oo))}set props(t){d(f(this,oo),t)}};no=new WeakMap,oo=new WeakMap;let yr=Er;var wl=at("<div><div><!></div></div>"),bl=at("<div><div><!></div></div>");function yi(e,t){const n=Ci();ie(t,!0);let r=z(t,"ref",15,null),i=z(t,"id",19,()=>zi(n)),s=z(t,"forceMount",3,!1),a=z(t,"onOpenAutoFocus",3,Qe),l=z(t,"onCloseAutoFocus",3,Qe),h=z(t,"onEscapeKeydown",3,Qe),m=z(t,"onInteractOutside",3,Qe),y=z(t,"trapFocus",3,!0),v=z(t,"preventScroll",3,!1),g=z(t,"customAnchor",3,null),p=cn(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const w=yr.create({id:K(()=>i()),ref:K(()=>r(),E=>r(E)),onInteractOutside:K(()=>m()),onEscapeKeydown:K(()=>h()),customAnchor:K(()=>g())}),P=H(()=>Ge(p,w.props)),O=H(()=>y()&&w.shouldTrapFocus);function _(E){w.shouldTrapFocus||E.preventDefault(),a()(E)}var D=pt(),T=Y(D);{var F=E=>{ml(E,Bt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get enabled(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!0,get customAnchor(){return g()},onOpenAutoFocus:_,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,ot=()=>R==null?void 0:R().wrapperProps;const tt=H(()=>Ge($(),{style:vi("popover")},{style:t.style}));var rt=pt(),X=Y(rt);{var vt=J=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:o(tt),wrapperProps:ot(),...w.snippetProps}));Rt(Z,()=>t.child,()=>o(st))}k(J,V)},et=J=>{var V=wl();_n(V,()=>({...ot()}));var Z=S(V);_n(Z,()=>({...o(tt)}));var st=S(Z);Rt(st,()=>t.children??ne),C(Z),C(V),k(J,V)};_t(X,J=>{t.child?J(vt):J(et,-1)})}k(ft,rt)},$$slots:{popper:!0}}))},I=E=>{gl(E,Bt(()=>o(P),()=>w.popperProps,{get ref(){return w.opts.ref},get open(){return w.root.opts.open.current},get id(){return i()},get trapFocus(){return o(O)},get preventScroll(){return v()},loop:!0,forceMount:!1,get customAnchor(){return g()},onOpenAutoFocus:_,get onCloseAutoFocus(){return l()},get shouldRender(){return w.shouldRender},popper:(ft,R)=>{let $=()=>R==null?void 0:R().props,ot=()=>R==null?void 0:R().wrapperProps;const tt=H(()=>Ge($(),{style:vi("popover")},{style:t.style}));var rt=pt(),X=Y(rt);{var vt=J=>{var V=pt(),Z=Y(V);{let st=H(()=>({props:o(tt),wrapperProps:ot(),...w.snippetProps}));Rt(Z,()=>t.child,()=>o(st))}k(J,V)},et=J=>{var V=bl();_n(V,()=>({...ot()}));var Z=S(V);_n(Z,()=>({...o(tt)}));var st=S(Z);Rt(st,()=>t.children??ne),C(Z),C(V),k(J,V)};_t(X,J=>{t.child?J(vt):J(et,-1)})}k(ft,rt)},$$slots:{popper:!0}}))};_t(T,E=>{s()?E(F):s()||E(I,1)})}k(e,D),se()}var xl=at("<button><!></button>");function wi(e,t){const n=Ci();ie(t,!0);let r=z(t,"id",19,()=>zi(n)),i=z(t,"ref",15,null),s=z(t,"type",3,"button"),a=z(t,"disabled",3,!1),l=z(t,"openOnHover",3,!1),h=z(t,"openDelay",3,700),m=z(t,"closeDelay",3,300),y=cn(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const v=pr.create({id:K(()=>r()),ref:K(()=>i(),p=>i(p)),disabled:K(()=>!!a()),openOnHover:K(()=>l()),openDelay:K(()=>h()),closeDelay:K(()=>m())}),g=H(()=>Ge(y,v.props,{type:s()}));dl(e,{get id(){return r()},get ref(){return v.opts.ref},children:(p,w)=>{var P=pt(),O=Y(P);{var _=T=>{var F=pt(),I=Y(F);Rt(I,()=>t.child,()=>({props:o(g)})),k(T,F)},D=T=>{var F=xl();_n(F,()=>({...o(g)}));var I=S(F);Rt(I,()=>t.children??ne),C(F),k(T,F)};_t(O,T=>{t.child?T(_):T(D,-1)})}k(p,P)},$$slots:{default:!0}}),se()}function bi(e,t){ie(t,!0);let n=z(t,"open",15,!1),r=z(t,"onOpenChange",3,Qe),i=z(t,"onOpenChangeComplete",3,Qe);hr.create({open:K(()=>n(),s=>{n(s),r()(s)}),onOpenChangeComplete:K(()=>i())}),ul(e,{children:(s,a)=>{var l=pt(),h=Y(l);Rt(h,()=>t.children??ne),k(s,l)},$$slots:{default:!0}}),se()}function _l(e,t){const n=Ie(t,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.ChLNE3xy.js","../chunks/BK3WtZwv.js","../chunks/BbWUOQ_m.js","../chunks/lk5LaiqA.js","../chunks/DjNLq3TF.js","../chunks/D5GvRCv7.js","../chunks/DMWEh-Ek.js","../chunks/Dt2CddFe.js","../chunks/B-OsL1Ct.js","../chunks/B2Q1a1-H.js","../chunks/CVzlFH44.js","../chunks/DgceFEv5.js","../chunks/C0J2-L94.js","../chunks/BUApaBEI.js","../chunks/Bp63qm3L.js","../chunks/tB7QMF3U.js","../chunks/CLOXMsDk.js","../chunks/BQqoDzLx.js","../chunks/DFuhmi31.js","../chunks/xtNWTdbD.js","../chunks/CBY2biv-.js","../chunks/mW5RwvnK.js","../chunks/Cihqbfi5.js","../assets/homeFeedPanelStore.CSvlNcpm.css","../assets/0.BB88QFoe.css","../nodes/1.1N74-4Io.js","../nodes/2.BYWOpaxy.js","../nodes/3.Dt5o2Fmz.js","../chunks/DEDI7Ecm.js","../chunks/BwlaCkNX.js","../chunks/Dw782Tjs.js","../chunks/CWNeClHp.js","../assets/SourcesList.yTBBi3_m.css","../nodes/4.DTSxpKm7.js","../assets/4.9wPHhVwv.css","../nodes/5.Dy3vSsIP.js","../chunks/SqCUd34O.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.ClehBQ0g.css","../nodes/6.DvclsL6H.js","../assets/6.DSJfjJwx.css","../nodes/7.D2nJy-Uz.js","../assets/7.CrNxmd8B.css","../nodes/8.C75mhrqs.js","../chunks/Bfc47y5P.js","../assets/8.Ba5_jYIY.css","../nodes/9.Bp_QXw3w.js","../assets/9.m-LCx_kl.css","../nodes/10.DY30t9Ib.js","../assets/10.Dj8_pmut.css","../nodes/11.ITuxnukH.js","../assets/11.qYZMiTb0.css","../nodes/12.qLzWqB1c.js","../assets/12.Ct59LCqW.css","../nodes/13.nT3SOzEB.js","../assets/13.BhO9zvFi.css","../nodes/14.BHnIxbVM.js","../assets/14.CujIhjQK.css","../nodes/15.CLjT9il3.js","../assets/15.nNGjXhCQ.css","../nodes/16.BD-mKCLN.js","../chunks/Xy_fhzQq.js","../assets/16.PP9XLDf7.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.Ba_qJjp6.js"])))=>i.map(i=>d[i]);
2
- var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b3 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b4 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/BbWUOQ_m.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/DMWEh-Ek.js";import{a as E,c as I,f as $,t as bt}from"../chunks/BK3WtZwv.js";import{o as Lt}from"../chunks/Bp63qm3L.js";import{i as B}from"../chunks/Dt2CddFe.js";import{c as k}from"../chunks/DFuhmi31.js";import{b as S}from"../chunks/Xy_fhzQq.js";import{p as q}from"../chunks/xtNWTdbD.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.ChLNE3xy.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),()=>s(()=>import("../nodes/1.1N74-4Io.js"),__vite__mapDeps([25,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.BYWOpaxy.js"),__vite__mapDeps([26,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.Dt5o2Fmz.js"),__vite__mapDeps([27,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,21,8,22,23,31,32]),import.meta.url),()=>s(()=>import("../nodes/4.DTSxpKm7.js"),__vite__mapDeps([33,1,2,3,14,6,7,17,28,9,10,20,34]),import.meta.url),()=>s(()=>import("../nodes/5.Dy3vSsIP.js"),__vite__mapDeps([35,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,38]),import.meta.url),()=>s(()=>import("../nodes/6.DvclsL6H.js"),__vite__mapDeps([39,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/7.D2nJy-Uz.js"),__vite__mapDeps([41,1,2,3,14,4,5,10,12,13,11,42]),import.meta.url),()=>s(()=>import("../nodes/8.C75mhrqs.js"),__vite__mapDeps([43,1,2,3,6,7,28,9,30,44,10,36,4,5,11,12,13,14,37,45]),import.meta.url),()=>s(()=>import("../nodes/9.Bp_QXw3w.js"),__vite__mapDeps([46,1,2,3,14,6,7,17,28,9,10,36,4,5,11,12,13,37,20,15,47]),import.meta.url),()=>s(()=>import("../nodes/10.DY30t9Ib.js"),__vite__mapDeps([48,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/11.ITuxnukH.js"),__vite__mapDeps([50,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,21,8,22,23,31,32,36,37,51]),import.meta.url),()=>s(()=>import("../nodes/12.qLzWqB1c.js"),__vite__mapDeps([52,1,2,3,14,6,7,17,28,9,30,44,10,36,4,5,11,12,13,37,20,15,53]),import.meta.url),()=>s(()=>import("../nodes/13.nT3SOzEB.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,28,9,30,10,20,15,5,55]),import.meta.url),()=>s(()=>import("../nodes/14.BHnIxbVM.js"),__vite__mapDeps([56,1,2,3,14,6,5,7,17,28,9,30,10,20,11,12,13,15,31,8,19,4,21,22,57]),import.meta.url),()=>s(()=>import("../nodes/15.CLjT9il3.js"),__vite__mapDeps([58,1,2,3,14,28,10,12,5,13,59]),import.meta.url),()=>s(()=>import("../nodes/16.BD-mKCLN.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,22,28,10,9,20,11,12,13,14,15,61,19,36,37,62]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([63,64,13]),import.meta.url),()=>s(()=>import("../nodes/18.Ba_qJjp6.js"),__vite__mapDeps([65,64,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.I1lQdWMl.js","../chunks/BK3WtZwv.js","../chunks/BbWUOQ_m.js","../chunks/lk5LaiqA.js","../chunks/DjNLq3TF.js","../chunks/D5GvRCv7.js","../chunks/DMWEh-Ek.js","../chunks/Dt2CddFe.js","../chunks/B-OsL1Ct.js","../chunks/B2Q1a1-H.js","../chunks/CVzlFH44.js","../chunks/Bu9HsS-V.js","../chunks/5LVkDJzw.js","../chunks/BUApaBEI.js","../chunks/Bp63qm3L.js","../chunks/tB7QMF3U.js","../chunks/Bns1MuyM.js","../chunks/BQqoDzLx.js","../chunks/DFuhmi31.js","../chunks/xtNWTdbD.js","../chunks/CBY2biv-.js","../chunks/mW5RwvnK.js","../chunks/Cihqbfi5.js","../assets/homeFeedPanelStore.CSvlNcpm.css","../assets/0.BB88QFoe.css","../nodes/1.BiQQfx2j.js","../nodes/2.BYWOpaxy.js","../nodes/3.B8Viux9S.js","../chunks/DEDI7Ecm.js","../chunks/bvuf_jZd.js","../chunks/Dw782Tjs.js","../chunks/CWNeClHp.js","../assets/SourcesList.yTBBi3_m.css","../nodes/4.DTSxpKm7.js","../assets/4.9wPHhVwv.css","../nodes/5.B6fR3n6J.js","../chunks/CmjOpds-.js","../assets/BackToParentRoute.DGk-X5ow.css","../assets/5.B-dPiwB7.css","../nodes/6.j2O5Mwjv.js","../assets/6.B27N7pdA.css","../nodes/7.Bd2USIrl.js","../assets/7.CrNxmd8B.css","../nodes/8.Bw_d63B_.js","../chunks/Bfc47y5P.js","../assets/8.Cgji2b15.css","../nodes/9.pMMi5PP6.js","../assets/9.BsCIAvn3.css","../nodes/10.CvfUsqsw.js","../assets/10.Dj8_pmut.css","../nodes/11.B4LHPNL6.js","../assets/11.qYZMiTb0.css","../nodes/12.DVFJuIWI.js","../assets/12.DfJcfUWl.css","../nodes/13.nT3SOzEB.js","../assets/13.BhO9zvFi.css","../nodes/14.DfaAf0f8.js","../assets/14.CujIhjQK.css","../nodes/15.CMzkX9OK.js","../assets/15.nNGjXhCQ.css","../nodes/16.zPgTQNze.js","../chunks/Xy_fhzQq.js","../assets/16.PP9XLDf7.css","../nodes/17.BtYZF6FM.js","../chunks/hp4PFHFv.js","../nodes/18.BIzqhTqv.js"])))=>i.map(i=>d[i]);
2
+ var Z=r=>{throw TypeError(r)};var M=(r,t,e)=>t.has(r)||Z("Cannot "+e);var l=(r,t,e)=>(M(r,t,"read from private field"),e?e.call(r):t.get(r)),F=(r,t,e)=>t.has(r)?Z("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),H=(r,t,e,i)=>(M(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);import{a5 as z,af as it,i as v,b3 as mt,ai as ut,z as ct,at as lt,am as _t,an as dt,T as ft,f as A,aw as vt,au as ht,b4 as J,av as gt,ax as Et,az as Pt,aA as x}from"../chunks/BbWUOQ_m.js";import{h as pt,m as Rt,u as yt,s as Ot}from"../chunks/DMWEh-Ek.js";import{a as E,c as I,f as $,t as bt}from"../chunks/BK3WtZwv.js";import{o as Lt}from"../chunks/Bp63qm3L.js";import{i as B}from"../chunks/Dt2CddFe.js";import{c as k}from"../chunks/DFuhmi31.js";import{b as S}from"../chunks/Xy_fhzQq.js";import{p as q}from"../chunks/xtNWTdbD.js";function At(r){return class extends Tt{constructor(t){super({component:r,...t})}}}var P,_;class Tt{constructor(t){F(this,P);F(this,_);var p;var e=new Map,i=(o,a)=>{var m=ct(a,!1,!1);return e.set(o,m),m};const u=new Proxy({...t.props||{},$$events:{}},{get(o,a){return v(e.get(a)??i(a,Reflect.get(o,a)))},has(o,a){return a===it?!0:(v(e.get(a)??i(a,Reflect.get(o,a))),Reflect.has(o,a))},set(o,a,m){return z(e.get(a)??i(a,m),m),Reflect.set(o,a,m)}});H(this,_,(t.hydrate?pt:Rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!((p=t==null?void 0:t.props)!=null&&p.$$host)||t.sync===!1)&&mt(),H(this,P,u.$$events);for(const o of Object.keys(l(this,_)))o==="$set"||o==="$destroy"||o==="$on"||ut(this,o,{get(){return l(this,_)[o]},set(a){l(this,_)[o]=a},enumerable:!0});l(this,_).$set=o=>{Object.assign(u,o)},l(this,_).$destroy=()=>{yt(l(this,_))}}$set(t){l(this,_).$set(t)}$on(t,e){l(this,P)[t]=l(this,P)[t]||[];const i=(...u)=>e.call(this,...u);return l(this,P)[t].push(i),()=>{l(this,P)[t]=l(this,P)[t].filter(u=>u!==i)}}$destroy(){l(this,_).$destroy()}}P=new WeakMap,_=new WeakMap;const Dt="modulepreload",It=function(r,t){return new URL(r,t).href},N={},s=function(t,e,i){let u=Promise.resolve();if(e&&e.length>0){let o=function(c){return Promise.all(c.map(h=>Promise.resolve(h).then(R=>({status:"fulfilled",value:R}),R=>({status:"rejected",reason:R}))))};const a=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),j=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));u=o(e.map(c=>{if(c=It(c,i),c in N)return;N[c]=!0;const h=c.endsWith(".css"),R=h?'[rel="stylesheet"]':"";if(!!i)for(let y=a.length-1;y>=0;y--){const n=a[y];if(n.href===c&&(!h||n.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${R}`))return;const g=document.createElement("link");if(g.rel=h?"stylesheet":Dt,h||(g.as="script"),g.crossOrigin="",g.href=c,j&&g.setAttribute("nonce",j),document.head.appendChild(g),h)return new Promise((y,n)=>{g.addEventListener("load",y),g.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${c}`)))})}))}function p(o){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=o,window.dispatchEvent(a),!a.defaultPrevented)throw o}return u.then(o=>{for(const a of o||[])a.status==="rejected"&&p(a.reason);return t().catch(p)})},Ht={};var Vt=$('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),wt=$("<!> <!>",1);function xt(r,t){lt(t,!0);let e=q(t,"components",23,()=>[]),i=q(t,"data_0",3,null),u=q(t,"data_1",3,null),p=q(t,"data_2",3,null);_t(()=>t.stores.page.set(t.page)),dt(()=>{t.stores,t.page,t.constructors,e(),t.form,i(),u(),p(),t.stores.page.notify()});let o=J(!1),a=J(!1),m=J(null);Lt(()=>{const n=t.stores.page.subscribe(()=>{v(o)&&(z(a,!0),ft().then(()=>{z(m,document.title||"untitled page",!0)}))});return z(o,!0),n});const j=x(()=>t.constructors[2]);var c=wt(),h=A(c);{var R=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(d,St)=>{var Q=I(),et=A(Q);{var rt=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params},children:(f,jt)=>{var X=I(),ot=A(X);k(ot,()=>v(j),(st,nt)=>{S(nt(st,{get data(){return p()},get form(){return t.form},get params(){return t.page.params}}),C=>e()[2]=C,()=>{var C;return(C=e())==null?void 0:C[2]})}),E(f,X)},$$slots:{default:!0}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)},at=D=>{const U=x(()=>t.constructors[1]);var w=I(),G=A(w);k(G,()=>v(U),(W,Y)=>{S(Y(W,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),f=>e()[1]=f,()=>{var f;return(f=e())==null?void 0:f[1]})}),E(D,w)};B(et,D=>{t.constructors[2]?D(rt):D(at,-1)})}E(d,Q)},$$slots:{default:!0}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)},K=n=>{const O=x(()=>t.constructors[0]);var b=I(),V=A(b);k(V,()=>v(O),(L,T)=>{S(T(L,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),d=>e()[0]=d,()=>{var d;return(d=e())==null?void 0:d[0]})}),E(n,b)};B(h,n=>{t.constructors[1]?n(R):n(K,-1)})}var g=vt(h,2);{var y=n=>{var O=Vt(),b=gt(O);{var V=L=>{var T=bt();Pt(()=>Ot(T,v(m))),E(L,T)};B(b,L=>{v(a)&&L(V)})}Et(O),E(n,O)};B(g,n=>{v(o)&&n(y)})}E(r,c),ht()}const Jt=At(xt),Kt=[()=>s(()=>import("../nodes/0.I1lQdWMl.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),()=>s(()=>import("../nodes/1.BiQQfx2j.js"),__vite__mapDeps([25,1,2,3,6,10,12,5,13,14]),import.meta.url),()=>s(()=>import("../nodes/2.BYWOpaxy.js"),__vite__mapDeps([26,1,2,3,8]),import.meta.url),()=>s(()=>import("../nodes/3.B8Viux9S.js"),__vite__mapDeps([27,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,21,8,22,23,31,32]),import.meta.url),()=>s(()=>import("../nodes/4.DTSxpKm7.js"),__vite__mapDeps([33,1,2,3,14,6,7,17,28,9,10,20,34]),import.meta.url),()=>s(()=>import("../nodes/5.B6fR3n6J.js"),__vite__mapDeps([35,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,38]),import.meta.url),()=>s(()=>import("../nodes/6.j2O5Mwjv.js"),__vite__mapDeps([39,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,40]),import.meta.url),()=>s(()=>import("../nodes/7.Bd2USIrl.js"),__vite__mapDeps([41,1,2,3,14,4,5,10,12,13,11,42]),import.meta.url),()=>s(()=>import("../nodes/8.Bw_d63B_.js"),__vite__mapDeps([43,1,2,3,6,7,28,9,30,44,10,36,4,5,11,12,13,14,37,45]),import.meta.url),()=>s(()=>import("../nodes/9.pMMi5PP6.js"),__vite__mapDeps([46,1,2,3,14,6,7,17,28,9,10,36,4,5,11,12,13,37,20,15,47]),import.meta.url),()=>s(()=>import("../nodes/10.CvfUsqsw.js"),__vite__mapDeps([48,1,2,3,14,6,7,28,9,30,10,36,4,5,11,12,13,37,20,15,49]),import.meta.url),()=>s(()=>import("../nodes/11.B4LHPNL6.js"),__vite__mapDeps([50,1,2,3,28,29,14,6,4,5,7,17,9,30,10,11,12,13,15,16,18,19,20,21,8,22,23,31,32,36,37,51]),import.meta.url),()=>s(()=>import("../nodes/12.DVFJuIWI.js"),__vite__mapDeps([52,1,2,3,14,6,7,17,28,9,30,44,10,36,4,5,11,12,13,37,20,15,53]),import.meta.url),()=>s(()=>import("../nodes/13.nT3SOzEB.js"),__vite__mapDeps([54,1,2,3,14,6,7,17,28,9,30,10,20,15,5,55]),import.meta.url),()=>s(()=>import("../nodes/14.DfaAf0f8.js"),__vite__mapDeps([56,1,2,3,14,6,5,7,17,28,9,30,10,20,11,12,13,15,31,8,19,4,21,22,57]),import.meta.url),()=>s(()=>import("../nodes/15.CMzkX9OK.js"),__vite__mapDeps([58,1,2,3,14,28,10,12,5,13,59]),import.meta.url),()=>s(()=>import("../nodes/16.zPgTQNze.js"),__vite__mapDeps([60,1,2,3,4,5,6,7,22,28,10,9,20,11,12,13,14,15,61,19,36,37,62]),import.meta.url),()=>s(()=>import("../nodes/17.BtYZF6FM.js"),__vite__mapDeps([63,64,13]),import.meta.url),()=>s(()=>import("../nodes/18.BIzqhTqv.js"),__vite__mapDeps([65,64,13]),import.meta.url)],Qt=[],Xt={"/":[3],"/admin":[4,[2]],"/admin/deliver":[5,[2]],"/admin/llm":[6,[2]],"/admin/logs":[7,[2]],"/admin/parse":[8,[2]],"/admin/pipeline":[9,[2]],"/admin/proxy":[10,[2]],"/admin/sources":[11,[2]],"/admin/tags":[12,[2]],"/logs":[13],"/plugins":[14],"/plugins/new":[15],"/plugins/[id]":[16],"/tags":[17],"/[sub]":[18]},tt={handleError:(({error:r})=>{console.error(r)}),reroute:(()=>{}),transport:{}},kt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.decode])),Zt=Object.fromEntries(Object.entries(tt.transport).map(([r,t])=>[r,t.encode])),Mt=!1,Nt=(r,t)=>kt[r](t);export{Nt as decode,kt as decoders,Xt as dictionary,Zt as encoders,Mt as hash,tt as hooks,Ht as matchers,Kt as nodes,Jt as root,Qt as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/5LVkDJzw.js";export{o as load_css,r as start};
@@ -1,4 +1,4 @@
1
- import{c as U,a as $,f as V}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as P,aD as Ga,a5 as O,i as a,aw as h,aq as Ra,U as m,z as W,u as _}from"../chunks/BbWUOQ_m.js";import{s as oa,a as T}from"../chunks/DjNLq3TF.js";import{s as na}from"../chunks/DMWEh-Ek.js";import{i as va}from"../chunks/Dt2CddFe.js";import{s as B}from"../chunks/B-OsL1Ct.js";import{a as g,s as I,G as Ca,P as ta}from"../chunks/B2Q1a1-H.js";import{i as ca}from"../chunks/CVzlFH44.js";import{p as Fa}from"../chunks/DgceFEv5.js";import{t as Na}from"../chunks/tB7QMF3U.js";import{R as Oa,P as Wa,h as w,S as Ia}from"../chunks/CLOXMsDk.js";import{l as ua,s as da}from"../chunks/xtNWTdbD.js";import{I as ha}from"../chunks/mW5RwvnK.js";const Ta=!1,Ua=!1,ce=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ua,ssr:Ta},Symbol.toStringTag,{value:"Module"})),Va='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ba='</title><path d="',Da='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Va+"GitHub"+Ba+this.path+Da},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function La(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
1
+ import{c as U,a as $,f as V}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as S,at as la,au as ra,av as t,ax as s,az as ia,aC as P,aD as Ga,a5 as O,i as a,aw as h,aq as Ra,U as m,z as W,u as _}from"../chunks/BbWUOQ_m.js";import{s as oa,a as T}from"../chunks/DjNLq3TF.js";import{s as na}from"../chunks/DMWEh-Ek.js";import{i as va}from"../chunks/Dt2CddFe.js";import{s as B}from"../chunks/B-OsL1Ct.js";import{a as g,s as I,G as Ca,P as ta}from"../chunks/B2Q1a1-H.js";import{i as ca}from"../chunks/CVzlFH44.js";import{p as Fa}from"../chunks/Bu9HsS-V.js";import{t as Na}from"../chunks/tB7QMF3U.js";import{R as Oa,P as Wa,h as w,S as Ia}from"../chunks/Bns1MuyM.js";import{l as ua,s as da}from"../chunks/xtNWTdbD.js";import{I as ha}from"../chunks/mW5RwvnK.js";const Ta=!1,Ua=!1,ce=Object.freeze(Object.defineProperty({__proto__:null,prerender:Ua,ssr:Ta},Symbol.toStringTag,{value:"Module"})),Va='<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>',Ba='</title><path d="',Da='"/></svg>',sa={title:"GitHub",slug:"github",get svg(){return Va+"GitHub"+Ba+this.path+Da},path:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12",source:"https://github.com/logos",hex:"181717",guidelines:"https://github.com/logos"};function La(f,o){const n=ua(o,["children","$$slots","$$events","$$legacy"]);/**
2
2
  * @license lucide-svelte v0.460.1 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- import{a as h,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/BbWUOQ_m.js";import{s as p}from"../chunks/DMWEh-Ek.js";import{i as $}from"../chunks/CVzlFH44.js";import{s as k,p as m}from"../chunks/C0J2-L94.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
1
+ import{a as h,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as v,f as l,az as d,au as x,av as e,ax as o,aw as _}from"../chunks/BbWUOQ_m.js";import{s as p}from"../chunks/DMWEh-Ek.js";import{i as $}from"../chunks/CVzlFH44.js";import{s as k,p as m}from"../chunks/5LVkDJzw.js";const b={get error(){return m.error},get status(){return m.status}};k.updated.check;const i=b;var w=g("<h1> </h1> <p> </p>",1);function B(f,n){v(n,!1),$();var t=w(),r=l(t),c=e(r,!0);o(r);var a=_(r,2),u=e(a,!0);o(a),d(()=>{var s;p(c,i.status),p(u,(s=i.error)==null?void 0:s.message)}),h(f,t),x()}export{B as component};
@@ -1 +1 @@
1
- import{a as v,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as H}from"../chunks/Bp63qm3L.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/BbWUOQ_m.js";import{d as X,a as Y,s as A}from"../chunks/DMWEh-Ek.js";import{i as D}from"../chunks/Dt2CddFe.js";import{h as F}from"../chunks/DEDI7Ecm.js";import{P as q,r as G}from"../chunks/B2Q1a1-H.js";import{b as I}from"../chunks/Dw782Tjs.js";import{i as K}from"../chunks/CVzlFH44.js";import{B as L}from"../chunks/SqCUd34O.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/tB7QMF3U.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
1
+ import{a as v,f as u}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as H}from"../chunks/Bp63qm3L.js";import{at as $,az as B,au as C,d as J,av as a,a5 as t,i as o,z as d,$ as M,aw as m,ax as r,f as N,ay as U}from"../chunks/BbWUOQ_m.js";import{d as X,a as Y,s as A}from"../chunks/DMWEh-Ek.js";import{i as D}from"../chunks/Dt2CddFe.js";import{h as F}from"../chunks/DEDI7Ecm.js";import{P as q,r as G}from"../chunks/B2Q1a1-H.js";import{b as I}from"../chunks/Dw782Tjs.js";import{i as K}from"../chunks/CVzlFH44.js";import{B as L}from"../chunks/CmjOpds-.js";import{b as j}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/tB7QMF3U.js";var Q=u('<p class="hint svelte-1f24zj">加载中…</p>'),V=u('<input type="text" class="text-input svelte-1f24zj" placeholder="http://127.0.0.1:7890" autocomplete="off"/> <p class="hint svelte-1f24zj">留空表示不在配置中设置全局代理(可继续用环境变量)。支持带账号:<code>http://user:pass@host:port</code></p>',1),W=u('<div class="feed-wrap svelte-1f24zj"><div class="feed-col svelte-1f24zj"><div class="body svelte-1f24zj"><!> <p class="intro svelte-1f24zj">写入 <code class="svelte-1f24zj">.rssany/config.json</code> 的 <code class="svelte-1f24zj">globalProxy</code>。抓取与站点登录时,若未在 <code class="svelte-1f24zj">sources.json</code> 或插件中指定单源代理,则使用此处;未填写时仍可使用环境变量 <code class="svelte-1f24zj">HTTP_PROXY</code> / <code class="svelte-1f24zj">HTTPS_PROXY</code>。</p> <section class="form-section svelte-1f24zj"><h3 class="section-title svelte-1f24zj">全局 HTTP(S) 代理</h3> <!></section> <div class="btn-row svelte-1f24zj"><button type="button" class="btn btn-primary svelte-1f24zj"> </button></div></div></div></div>');function ve(x,P){$(P,!1);let s=d(""),l=d(!0),i=d(!1);async function T(){t(l,!0);try{const e=await j("/api/proxy");t(s,typeof(e==null?void 0:e.globalProxy)=="string"?e.globalProxy:"")}catch{t(s,"")}finally{t(l,!1)}}async function w(){t(i,!0);try{const e=await j("/api/proxy",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({globalProxy:o(s).trim()})});if(!(e!=null&&e.ok))throw new Error("保存失败");t(s,typeof e.globalProxy=="string"?e.globalProxy:""),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{t(i,!1)}}H(T),K();var f=W();F("1f24zj",e=>{J(()=>{M.title=`代理 - ${q}`})});var y=a(f),b=a(y),h=a(b);L(h,{});var p=m(h,4),k=m(a(p),2);{var O=e=>{var n=Q();v(e,n)},R=e=>{var n=V(),_=N(n);G(_),U(2),I(_,()=>o(s),E=>t(s,E)),v(e,n)};D(k,e=>{o(l)?e(O):e(R,-1)})}r(p);var g=m(p,2),c=a(g),S=a(c,!0);r(c),r(g),r(b),r(y),r(f),B(()=>{c.disabled=o(l)||o(i),A(S,o(i)?"保存中…":"保存")}),Y("click",c,w),v(x,f),C()}X(["click"]);export{ve as component};
@@ -1 +1 @@
1
- import{a as s,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/BbWUOQ_m.js";import{h as v}from"../chunks/DEDI7Ecm.js";import{S as l}from"../chunks/BwlaCkNX.js";import{B as _}from"../chunks/SqCUd34O.js";import{P as h}from"../chunks/B2Q1a1-H.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
1
+ import{a as s,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{f as i,d as c,av as f,aw as d,$ as n,ax as p}from"../chunks/BbWUOQ_m.js";import{h as v}from"../chunks/DEDI7Ecm.js";import{S as l}from"../chunks/bvuf_jZd.js";import{B as _}from"../chunks/CmjOpds-.js";import{P as h}from"../chunks/B2Q1a1-H.js";var u=m('<div class="admin-sources-back svelte-8cr5m9"><!></div> <!>',1);function R(o){var r=u();v("8cr5m9",$=>{c(()=>{n.title=`Sources — ${h}`})});var a=i(r),e=f(a);_(e,{}),p(a);var t=d(a,2);l(t,{}),s(o,r)}export{R as component};
@@ -0,0 +1 @@
1
+ import{a as v,f as c}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as xe}from"../chunks/Bp63qm3L.js";import{v as we,at as ke,f as Ce,az as E,i as s,au as Te,d as Le,av as n,a5 as a,z as w,aw as i,$ as Ee,ax as r,u as $e}from"../chunks/BbWUOQ_m.js";import{e as f,s as S}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as se,i as ae}from"../chunks/BQqoDzLx.js";import{h as Me}from"../chunks/DEDI7Ecm.js";import{P as Pe,r as Se,d as Oe}from"../chunks/B2Q1a1-H.js";import{b as Fe}from"../chunks/Dw782Tjs.js";import{s as X}from"../chunks/Bfc47y5P.js";import{i as Je}from"../chunks/CVzlFH44.js";import{B as Ne}from"../chunks/CmjOpds-.js";import{b as Y}from"../chunks/CBY2biv-.js";import{s as F}from"../chunks/tB7QMF3U.js";function je(z,$){var k;var o=(k=z.$$events)==null?void 0:k[$.type],p=we(o)?o.slice():o==null?[]:[o];for(var u of p)u.call(this,$)}var ze=c('<div class="state svelte-1s5glru">加载中…</div>'),Be=c('<p class="empty-hint svelte-1s5glru">暂无标签。添加后,pipeline 会对新入库条目自动打标签。</p>'),De=c('<span class="tag-meta svelte-1s5glru"> </span>'),Ie=c('<div class="tag-badge svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <!> <button type="button" class="tag-remove svelte-1s5glru" title="从系统标签中删除">×</button></div>'),Re=c('<div class="tag-list svelte-1s5glru"></div>'),Ue=c('<div class="tag-badge suggested svelte-1s5glru"><span class="tag-name svelte-1s5glru"> </span> <span class="tag-meta svelte-1s5glru"> </span> <button type="button" class="tag-add svelte-1s5glru" title="添加到系统标签">+</button></div>'),qe=c('<div class="suggested-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru">建议添加(文章中出现但未在系统标签库中)</h3> <div class="tag-list svelte-1s5glru"></div></div>'),Ae=c('<div class="body svelte-1s5glru"><div class="tags-section svelte-1s5glru"><h3 class="section-title svelte-1s5glru"> </h3> <!></div> <!></div>'),Xe=c('<div class="context-menu svelte-1s5glru" role="menu" tabindex="-1"><button type="button" class="context-menu-item svelte-1s5glru">从所有文章中移除该标签</button></div>'),Ye=c('<div class="feed-wrap svelte-1s5glru"><div class="feed-col svelte-1s5glru"><div class="feed-toolbar-block svelte-1s5glru"><!> <div class="admin-feed-header"><div class="admin-feed-header__left"><h2>系统标签</h2> <p class="admin-feed-header__desc">系统标签库,新入库条目会由 LLM 自动匹配打标签。</p></div> <div class="admin-feed-header__actions"><input type="text" class="admin-toolbar-input" placeholder="输入新标签,回车添加"/> <button type="button" class="admin-toolbar-btn admin-toolbar-btn--primary">添加</button></div></div></div> <div class="feed-body-scroll"><!></div></div></div> <!>',1);function lt(z,$){ke($,!1);let o=w([]),p=[],u=w([]),k=w(!0),_=w(!1),M=w(""),b=w(null),J=w(!1);async function re(){a(k,!0);try{const t=await Y("/api/tags");a(o,(t==null?void 0:t.tags)??[]),p=(t==null?void 0:t.stats)??[],a(u,(t==null?void 0:t.suggestedTags)??[])}catch{a(o,[]),p=[],a(u,[])}finally{a(k,!1)}}function oe(t){return p.find(e=>e.name.toLowerCase()===t.toLowerCase())}async function B(t){a(_,!0);try{const e=await Y("/api/tags",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(o,(e==null?void 0:e.tags)??t),p=(e==null?void 0:e.stats)??[],a(u,(e==null?void 0:e.suggestedTags)??[]),F("已保存","success")}catch(e){F("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(_,!1)}}function G(){const t=s(M).trim();if(!(!t||s(_))){if(s(o).some(e=>e.toLowerCase()===t.toLowerCase())){F("标签已存在","error");return}a(M,""),B([...s(o),t])}}function ne(t){s(_)||B(s(o).filter(e=>e!==t))}function ie(t){s(_)||s(o).some(e=>e.toLowerCase()===t.toLowerCase())||B([...s(o),t])}function H(t,e){t.preventDefault(),t.stopPropagation(),a(b,{x:t.clientX,y:t.clientY,tag:e})}function D(){a(b,null)}async function le(t){if(!s(J)){a(J,!0),a(b,null);try{const e=await Y("/api/tags/remove-from-items",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"操作失败");a(o,(e==null?void 0:e.tags)??s(o)),p=(e==null?void 0:e.stats)??p,a(u,(e==null?void 0:e.suggestedTags)??s(u)),F(`已从 ${(e==null?void 0:e.removedCount)??0} 篇文章中移除该标签`,"success")}catch(e){F("操作失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(J,!1)}}}xe(()=>{re();const t=()=>D(),e=()=>D();return document.addEventListener("click",t),document.addEventListener("contextmenu",e),()=>{document.removeEventListener("click",t),document.removeEventListener("contextmenu",e)}}),Je();var K=Ye();Me("1s5glru",t=>{Le(()=>{Ee.title=`标签 - ${Pe}`})});var I=Ce(K),Q=n(I),R=n(Q),V=n(R);Ne(V,{});var W=i(V,2),Z=i(n(W),2),N=n(Z);Se(N);var ee=i(N,2);r(Z),r(W),r(R);var te=i(R,2),ve=n(te);{var ce=t=>{var e=ze();v(t,e)},ue=t=>{var e=Ae(),C=n(e),h=n(C),ge=n(h);r(h);var fe=i(h,2);{var pe=l=>{var d=Be();v(l,d)},_e=l=>{var d=Re();se(d,5,()=>s(o),ae,(j,T)=>{const m=$e(()=>oe(s(T)));var g=Ie(),y=n(g),U=n(y,!0);r(y);var L=i(y,2);{var q=x=>{var A=De(),ye=n(A);r(A),E(()=>S(ye,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`)),v(x,A)};O(L,x=>{s(m)&&x(q)})}var P=i(L,2);r(g),E(()=>{S(U,s(T)),P.disabled=s(_)}),f("click",P,X(()=>ne(s(T)))),f("contextmenu",g,x=>H(x,s(T))),v(j,g)}),r(d),v(l,d)};O(fe,l=>{s(o).length===0?l(pe):l(_e,-1)})}r(C);var be=i(C,2);{var he=l=>{var d=qe(),j=i(n(d),2);se(j,5,()=>s(u),ae,(T,m)=>{var g=Ue(),y=n(g),U=n(y,!0);r(y);var L=i(y,2),q=n(L);r(L);var P=i(L,2);r(g),E(()=>{S(U,s(m).name),S(q,`${s(m).count??""} 篇 · 热度 ${s(m).hotness??""}`),P.disabled=s(_)}),f("click",P,X(()=>ie(s(m).name))),f("contextmenu",g,x=>H(x,s(m).name)),v(T,g)}),r(j),r(d),v(l,d)};O(be,l=>{s(u).length>0&&l(he)})}r(e),E(()=>S(ge,`当前标签 (${s(o).length??""})`)),v(t,e)};O(ve,t=>{s(k)?t(ce):t(ue,-1)})}r(te),r(Q),r(I);var de=i(I,2);{var me=t=>{var e=Xe(),C=n(e);r(e),E(()=>{Oe(e,`left: ${s(b).x??""}px; top: ${s(b).y??""}px`),C.disabled=s(J)}),f("click",C,()=>le(s(b).tag)),f("click",e,X(function(h){je.call(this,$,h)})),f("keydown",e,h=>h.key==="Escape"&&D()),v(t,e)};O(de,t=>{s(b)&&t(me)})}E(t=>ee.disabled=t,[()=>!s(M).trim()||s(_)]),Fe(N,()=>s(M),t=>a(M,t)),f("keydown",N,t=>t.key==="Enter"&&G()),f("click",ee,G),v(z,K),Te()}export{lt as component};
@@ -1 +1 @@
1
- import{a as u,t as rt,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Et}from"../chunks/Bp63qm3L.js";import{at as Lt,aC as bt,aD as Ot,f as lt,i as t,au as Nt,d as zt,av as r,az as ot,a5 as o,aw as c,z as h,$ as Jt,ax as s,U as b,ay as H}from"../chunks/BbWUOQ_m.js";import{d as Mt,a as D,e as Bt,s as K}from"../chunks/DMWEh-Ek.js";import{g as Ft}from"../chunks/D5GvRCv7.js";import{i as Q}from"../chunks/Dt2CddFe.js";import{e as Ht}from"../chunks/BQqoDzLx.js";import{h as Kt}from"../chunks/DEDI7Ecm.js";import{s as O,P as Qt,r as it}from"../chunks/B2Q1a1-H.js";import{b as nt}from"../chunks/Dw782Tjs.js";import{i as qt}from"../chunks/CVzlFH44.js";import{a as q}from"../chunks/CBY2biv-.js";import{p as Gt}from"../chunks/DgceFEv5.js";import{g as dt}from"../chunks/C0J2-L94.js";import{s as m}from"../chunks/tB7QMF3U.js";import{P as Vt}from"../chunks/CWNeClHp.js";import{D as Wt,P as Xt,a as Yt,b as Zt,c as te,d as gt}from"../chunks/mW5RwvnK.js";var ee=p('<div class="state svelte-1nj0iur">加载中…</div>'),ae=p('<div class="state error svelte-1nj0iur"> </div>'),se=p('<div class="state svelte-1nj0iur">暂无已加载插件。可 <button type="button" class="link-btn svelte-1nj0iur">添加插件</button> 从模板创建,或在 <code>app/plugins/builtin/</code>、<code>.rssany/plugins/</code> 放置 *.rssany.js / *.rssany.ts</div>'),re=p('<div class="state svelte-1nj0iur">无匹配结果</div>'),le=p('<span class="kind-badge svelte-1nj0iur">Source</span>'),oe=p('<button type="button" class="cell-btn cell-btn--primary svelte-1nj0iur">登录</button>'),ie=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ne=p('<button type="button" class="cell-btn cell-btn--secondary svelte-1nj0iur">检查登录</button>'),de=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ce=p('<tr class="plugin-row svelte-1nj0iur" tabindex="0"><td class="td-name svelte-1nj0iur"><div class="name-cell svelte-1nj0iur"><span class="plugin-id-text svelte-1nj0iur"> </span> <!></div></td><td class="td-pattern svelte-1nj0iur"><span class="pattern-text svelte-1nj0iur"> </span></td><td class="td-login svelte-1nj0iur"><!></td><td class="td-check svelte-1nj0iur"><!></td></tr>'),ve=p('<div class="plugin-table-wrap svelte-1nj0iur"><table class="plugin-table svelte-1nj0iur"><thead class="svelte-1nj0iur"><tr><th class="th-name svelte-1nj0iur" scope="col">插件名</th><th class="th-pattern svelte-1nj0iur" scope="col">匹配规则</th><th class="th-login svelte-1nj0iur" scope="col">登录</th><th class="th-check svelte-1nj0iur" scope="col">检查登录</th></tr></thead><tbody class="svelte-1nj0iur"></tbody></table></div>'),ue=p('<div class="modal-header svelte-1nj0iur"><!> <!></div> <form class="modal-body svelte-1nj0iur"><p class="add-hint svelte-1nj0iur">对于不支持RSS的站点,添加插件可以覆盖特定站点的解析规则</p> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">站点匹配规则</span> <input class="field-input svelte-1nj0iur" type="text" name="listUrlPattern" placeholder="例如 https://www.example.com/* 或 https://example.com/list/{segment}" autocomplete="off"/></div> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">插件 id</span> <input class="field-input svelte-1nj0iur" type="text" name="pluginId" placeholder="例如 my-site" autocomplete="off"/></div> <div class="modal-footer svelte-1nj0iur"><div class="modal-footer-right svelte-1nj0iur"><!> <button type="submit" class="btn-save svelte-1nj0iur"> </button></div></div></form>',1),pe=p("<!> <!>",1),fe=p('<div class="feed-wrap svelte-1nj0iur"><div class="feed-col svelte-1nj0iur"><div class="plugins-toolbar-block svelte-1nj0iur"><div class="feed-header svelte-1nj0iur"><div class="header-left svelte-1nj0iur"><input class="filter-input svelte-1nj0iur" type="search" placeholder="过滤…" autocomplete="off"/></div> <div class="header-right svelte-1nj0iur"><button type="button" class="btn-add svelte-1nj0iur" title="添加插件" aria-label="添加插件"><!></button></div></div></div> <div class="plugins-body-scroll svelte-1nj0iur"><!></div></div></div> <!>',1);function Re(jt,yt){Lt(yt,!1);const U=h(),N=h();let $=h([]),z=h(""),G=h(!0),C=h(!1),j=h(""),y=h(""),S=h(!1),J=h("");function ct(){o(j,""),o(y,""),o(C,!0)}function wt(e){o(C,e),e||(o(j,""),o(y,""))}async function Pt(e){e.preventDefault();const a=t(j).trim(),i=t(y).trim();if(!a){m("请填写插件 id","error");return}if(!i){m("请填写支持的站点(URL 或匹配规则)","error");return}o(S,!0);try{const n=await q("/api/plugins",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,listUrlPattern:i})}),_=await n.text();let l={};try{l=_?JSON.parse(_):{}}catch{l={}}if(!n.ok){m(l.error||_||`HTTP ${n.status}`,"error");return}l.ok&&(m("已创建插件文件","success"),o(C,!1),o(j,""),o(y,""),await vt(),await dt("/plugins/"+encodeURIComponent(a)))}catch(n){m("请求失败: "+(n instanceof Error?n.message:String(n)),"error")}finally{o(S,!1)}}async function vt(){o(G,!0),o(z,"");try{const a=await(await q("/api/plugins")).json();o($,[...a].sort((i,n)=>(n.hasAuth?1:0)-(i.hasAuth?1:0)))}catch(e){o(z,"加载失败: "+(e instanceof Error?e.message:String(e)))}finally{o(G,!1)}}async function kt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/check?siteId=${encodeURIComponent(e.id)}`)).json();n.ok?m(`${e.id}:${n.authenticated?"✓ 已登录":"✗ 未登录"}`,n.authenticated?"success":"error"):m(n.message||"检查失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}function ut(e){dt("/plugins/"+encodeURIComponent(e.id))}function $t(e,a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),ut(e))}async function xt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/open?siteId=${encodeURIComponent(e.id)}`,{method:"POST"})).json();n.ok?m(n.message||"已打开登录页面","success"):m(n.message||"打开失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}Et(()=>{vt(),Ft(Gt).url.searchParams.get("openAdd")==="1"&&(o(j,""),o(y,""),o(C,!0),dt("/plugins",{replaceState:!0}))}),bt(()=>t(J),()=>{o(U,t(J).trim().toLowerCase())}),bt(()=>(t(U),t($)),()=>{o(N,t(U)?t($).filter(e=>e.id.toLowerCase().includes(t(U))||e.listUrlPattern.toLowerCase().includes(t(U))):t($))}),Ot(),qt();var pt=fe();Kt("1nj0iur",e=>{zt(()=>{Jt.title=`插件 - ${Qt}`})});var V=lt(pt),ft=r(V),W=r(ft),mt=r(W),X=r(mt),Y=r(X);it(Y),O(Y,"spellcheck",!1),s(X);var _t=c(X,2),Z=r(_t),Dt=r(Z);Vt(Dt,{size:16,"aria-hidden":"true"}),s(Z),s(_t),s(mt),s(W);var ht=c(W,2),Ut=r(ht);{var Ct=e=>{var a=ee();u(e,a)},St=e=>{var a=ae(),i=r(a,!0);s(a),ot(()=>K(i,t(z))),u(e,a)},At=e=>{var a=se(),i=c(r(a));H(5),s(a),D("click",i,ct),u(e,a)},It=e=>{var a=re();u(e,a)},Rt=e=>{var a=ve(),i=r(a),n=c(r(i));Ht(n,5,()=>t(N),_=>_.id,(_,l)=>{var g=ce(),A=r(g),tt=r(A),x=r(tt),I=r(x,!0);s(x);var M=c(x,2);{var et=d=>{var v=le();u(d,v)};Q(M,d=>{t(l),b(()=>t(l).kind==="source")&&d(et)})}s(tt),s(A);var w=c(A),P=r(w),R=r(P,!0);s(P),s(w);var k=c(w),T=r(k);{var B=d=>{var v=oe();D("click",v,st=>xt(t(l),st)),u(d,v)},F=d=>{var v=ie();u(d,v)};Q(T,d=>{t(l),b(()=>t(l).hasAuth)?d(B):d(F,-1)})}s(k);var E=c(k),L=r(E);{var at=d=>{var v=ne();D("click",v,st=>kt(t(l),st)),u(d,v)},f=d=>{var v=de();u(d,v)};Q(L,d=>{t(l),b(()=>t(l).hasAuth)?d(at):d(f,-1)})}s(E),s(g),ot(()=>{O(g,"aria-label",`打开插件 ${t(l),b(()=>t(l).id)??""}`),K(I,(t(l),b(()=>t(l).id))),O(P,"title",(t(l),b(()=>t(l).listUrlPattern))),K(R,(t(l),b(()=>t(l).listUrlPattern)))}),D("click",g,()=>ut(t(l))),D("keydown",g,d=>$t(t(l),d)),u(_,g)}),s(n),s(i),s(a),u(e,a)};Q(Ut,e=>{t(G)?e(Ct):t(z)?e(St,1):(t($),b(()=>t($).length===0)?e(At,2):(t(N),b(()=>t(N).length===0)?e(It,3):e(Rt,-1)))})}s(ht),s(ft),s(V);var Tt=c(V,2);Wt(Tt,{get open(){return t(C)},onOpenChange:wt,children:(e,a)=>{Xt(e,{children:(i,n)=>{var _=pe(),l=lt(_);Yt(l,{class:"modal-overlay"});var g=c(l,2);Zt(g,{class:"modal","aria-describedby":void 0,children:(A,tt)=>{var x=ue(),I=lt(x),M=r(I);te(M,{class:"modal-title",children:(f,d)=>{H();var v=rt("添加插件");u(f,v)},$$slots:{default:!0}});var et=c(M,2);gt(et,{class:"modal-close","aria-label":"关闭",children:(f,d)=>{H();var v=rt("✕");u(f,v)},$$slots:{default:!0}}),s(I);var w=c(I,2),P=c(r(w),2),R=c(r(P),2);it(R),O(R,"spellcheck",!1),s(P);var k=c(P,2),T=c(r(k),2);it(T),O(T,"spellcheck",!1),s(k);var B=c(k,2),F=r(B),E=r(F);gt(E,{class:"btn-cancel",get disabled(){return t(S)},type:"button",children:(f,d)=>{H();var v=rt("取消");u(f,v)},$$slots:{default:!0}});var L=c(E,2),at=r(L,!0);s(L),s(F),s(B),s(w),ot(()=>{L.disabled=t(S),K(at,t(S)?"创建中…":"创建并打开编辑")}),Bt("submit",w,Pt),nt(R,()=>t(y),f=>o(y,f)),nt(T,()=>t(j),f=>o(j,f)),u(A,x)},$$slots:{default:!0}}),u(i,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),nt(Y,()=>t(J),e=>o(J,e)),D("click",Z,ct),u(jt,pt),Nt()}Mt(["click","keydown"]);export{Re as component};
1
+ import{a as u,t as rt,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Et}from"../chunks/Bp63qm3L.js";import{at as Lt,aC as bt,aD as Ot,f as lt,i as t,au as Nt,d as zt,av as r,az as ot,a5 as o,aw as c,z as h,$ as Jt,ax as s,U as b,ay as H}from"../chunks/BbWUOQ_m.js";import{d as Mt,a as D,e as Bt,s as K}from"../chunks/DMWEh-Ek.js";import{g as Ft}from"../chunks/D5GvRCv7.js";import{i as Q}from"../chunks/Dt2CddFe.js";import{e as Ht}from"../chunks/BQqoDzLx.js";import{h as Kt}from"../chunks/DEDI7Ecm.js";import{s as O,P as Qt,r as it}from"../chunks/B2Q1a1-H.js";import{b as nt}from"../chunks/Dw782Tjs.js";import{i as qt}from"../chunks/CVzlFH44.js";import{a as q}from"../chunks/CBY2biv-.js";import{p as Gt}from"../chunks/Bu9HsS-V.js";import{g as dt}from"../chunks/5LVkDJzw.js";import{s as m}from"../chunks/tB7QMF3U.js";import{P as Vt}from"../chunks/CWNeClHp.js";import{D as Wt,P as Xt,a as Yt,b as Zt,c as te,d as gt}from"../chunks/mW5RwvnK.js";var ee=p('<div class="state svelte-1nj0iur">加载中…</div>'),ae=p('<div class="state error svelte-1nj0iur"> </div>'),se=p('<div class="state svelte-1nj0iur">暂无已加载插件。可 <button type="button" class="link-btn svelte-1nj0iur">添加插件</button> 从模板创建,或在 <code>app/plugins/builtin/</code>、<code>.rssany/plugins/</code> 放置 *.rssany.js / *.rssany.ts</div>'),re=p('<div class="state svelte-1nj0iur">无匹配结果</div>'),le=p('<span class="kind-badge svelte-1nj0iur">Source</span>'),oe=p('<button type="button" class="cell-btn cell-btn--primary svelte-1nj0iur">登录</button>'),ie=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ne=p('<button type="button" class="cell-btn cell-btn--secondary svelte-1nj0iur">检查登录</button>'),de=p('<span class="cell-dash svelte-1nj0iur" title="未声明站点登录">—</span>'),ce=p('<tr class="plugin-row svelte-1nj0iur" tabindex="0"><td class="td-name svelte-1nj0iur"><div class="name-cell svelte-1nj0iur"><span class="plugin-id-text svelte-1nj0iur"> </span> <!></div></td><td class="td-pattern svelte-1nj0iur"><span class="pattern-text svelte-1nj0iur"> </span></td><td class="td-login svelte-1nj0iur"><!></td><td class="td-check svelte-1nj0iur"><!></td></tr>'),ve=p('<div class="plugin-table-wrap svelte-1nj0iur"><table class="plugin-table svelte-1nj0iur"><thead class="svelte-1nj0iur"><tr><th class="th-name svelte-1nj0iur" scope="col">插件名</th><th class="th-pattern svelte-1nj0iur" scope="col">匹配规则</th><th class="th-login svelte-1nj0iur" scope="col">登录</th><th class="th-check svelte-1nj0iur" scope="col">检查登录</th></tr></thead><tbody class="svelte-1nj0iur"></tbody></table></div>'),ue=p('<div class="modal-header svelte-1nj0iur"><!> <!></div> <form class="modal-body svelte-1nj0iur"><p class="add-hint svelte-1nj0iur">对于不支持RSS的站点,添加插件可以覆盖特定站点的解析规则</p> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">站点匹配规则</span> <input class="field-input svelte-1nj0iur" type="text" name="listUrlPattern" placeholder="例如 https://www.example.com/* 或 https://example.com/list/{segment}" autocomplete="off"/></div> <div class="field svelte-1nj0iur"><span class="field-label svelte-1nj0iur">插件 id</span> <input class="field-input svelte-1nj0iur" type="text" name="pluginId" placeholder="例如 my-site" autocomplete="off"/></div> <div class="modal-footer svelte-1nj0iur"><div class="modal-footer-right svelte-1nj0iur"><!> <button type="submit" class="btn-save svelte-1nj0iur"> </button></div></div></form>',1),pe=p("<!> <!>",1),fe=p('<div class="feed-wrap svelte-1nj0iur"><div class="feed-col svelte-1nj0iur"><div class="plugins-toolbar-block svelte-1nj0iur"><div class="feed-header svelte-1nj0iur"><div class="header-left svelte-1nj0iur"><input class="filter-input svelte-1nj0iur" type="search" placeholder="过滤…" autocomplete="off"/></div> <div class="header-right svelte-1nj0iur"><button type="button" class="btn-add svelte-1nj0iur" title="添加插件" aria-label="添加插件"><!></button></div></div></div> <div class="plugins-body-scroll svelte-1nj0iur"><!></div></div></div> <!>',1);function Re(jt,yt){Lt(yt,!1);const U=h(),N=h();let $=h([]),z=h(""),G=h(!0),C=h(!1),j=h(""),y=h(""),S=h(!1),J=h("");function ct(){o(j,""),o(y,""),o(C,!0)}function wt(e){o(C,e),e||(o(j,""),o(y,""))}async function Pt(e){e.preventDefault();const a=t(j).trim(),i=t(y).trim();if(!a){m("请填写插件 id","error");return}if(!i){m("请填写支持的站点(URL 或匹配规则)","error");return}o(S,!0);try{const n=await q("/api/plugins",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:a,listUrlPattern:i})}),_=await n.text();let l={};try{l=_?JSON.parse(_):{}}catch{l={}}if(!n.ok){m(l.error||_||`HTTP ${n.status}`,"error");return}l.ok&&(m("已创建插件文件","success"),o(C,!1),o(j,""),o(y,""),await vt(),await dt("/plugins/"+encodeURIComponent(a)))}catch(n){m("请求失败: "+(n instanceof Error?n.message:String(n)),"error")}finally{o(S,!1)}}async function vt(){o(G,!0),o(z,"");try{const a=await(await q("/api/plugins")).json();o($,[...a].sort((i,n)=>(n.hasAuth?1:0)-(i.hasAuth?1:0)))}catch(e){o(z,"加载失败: "+(e instanceof Error?e.message:String(e)))}finally{o(G,!1)}}async function kt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/check?siteId=${encodeURIComponent(e.id)}`)).json();n.ok?m(`${e.id}:${n.authenticated?"✓ 已登录":"✗ 未登录"}`,n.authenticated?"success":"error"):m(n.message||"检查失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}function ut(e){dt("/plugins/"+encodeURIComponent(e.id))}function $t(e,a){(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),ut(e))}async function xt(e,a){a.preventDefault(),a.stopPropagation();try{const n=await(await q(`/auth/open?siteId=${encodeURIComponent(e.id)}`,{method:"POST"})).json();n.ok?m(n.message||"已打开登录页面","success"):m(n.message||"打开失败","error")}catch(i){m("请求失败: "+(i instanceof Error?i.message:String(i)),"error")}}Et(()=>{vt(),Ft(Gt).url.searchParams.get("openAdd")==="1"&&(o(j,""),o(y,""),o(C,!0),dt("/plugins",{replaceState:!0}))}),bt(()=>t(J),()=>{o(U,t(J).trim().toLowerCase())}),bt(()=>(t(U),t($)),()=>{o(N,t(U)?t($).filter(e=>e.id.toLowerCase().includes(t(U))||e.listUrlPattern.toLowerCase().includes(t(U))):t($))}),Ot(),qt();var pt=fe();Kt("1nj0iur",e=>{zt(()=>{Jt.title=`插件 - ${Qt}`})});var V=lt(pt),ft=r(V),W=r(ft),mt=r(W),X=r(mt),Y=r(X);it(Y),O(Y,"spellcheck",!1),s(X);var _t=c(X,2),Z=r(_t),Dt=r(Z);Vt(Dt,{size:16,"aria-hidden":"true"}),s(Z),s(_t),s(mt),s(W);var ht=c(W,2),Ut=r(ht);{var Ct=e=>{var a=ee();u(e,a)},St=e=>{var a=ae(),i=r(a,!0);s(a),ot(()=>K(i,t(z))),u(e,a)},At=e=>{var a=se(),i=c(r(a));H(5),s(a),D("click",i,ct),u(e,a)},It=e=>{var a=re();u(e,a)},Rt=e=>{var a=ve(),i=r(a),n=c(r(i));Ht(n,5,()=>t(N),_=>_.id,(_,l)=>{var g=ce(),A=r(g),tt=r(A),x=r(tt),I=r(x,!0);s(x);var M=c(x,2);{var et=d=>{var v=le();u(d,v)};Q(M,d=>{t(l),b(()=>t(l).kind==="source")&&d(et)})}s(tt),s(A);var w=c(A),P=r(w),R=r(P,!0);s(P),s(w);var k=c(w),T=r(k);{var B=d=>{var v=oe();D("click",v,st=>xt(t(l),st)),u(d,v)},F=d=>{var v=ie();u(d,v)};Q(T,d=>{t(l),b(()=>t(l).hasAuth)?d(B):d(F,-1)})}s(k);var E=c(k),L=r(E);{var at=d=>{var v=ne();D("click",v,st=>kt(t(l),st)),u(d,v)},f=d=>{var v=de();u(d,v)};Q(L,d=>{t(l),b(()=>t(l).hasAuth)?d(at):d(f,-1)})}s(E),s(g),ot(()=>{O(g,"aria-label",`打开插件 ${t(l),b(()=>t(l).id)??""}`),K(I,(t(l),b(()=>t(l).id))),O(P,"title",(t(l),b(()=>t(l).listUrlPattern))),K(R,(t(l),b(()=>t(l).listUrlPattern)))}),D("click",g,()=>ut(t(l))),D("keydown",g,d=>$t(t(l),d)),u(_,g)}),s(n),s(i),s(a),u(e,a)};Q(Ut,e=>{t(G)?e(Ct):t(z)?e(St,1):(t($),b(()=>t($).length===0)?e(At,2):(t(N),b(()=>t(N).length===0)?e(It,3):e(Rt,-1)))})}s(ht),s(ft),s(V);var Tt=c(V,2);Wt(Tt,{get open(){return t(C)},onOpenChange:wt,children:(e,a)=>{Xt(e,{children:(i,n)=>{var _=pe(),l=lt(_);Yt(l,{class:"modal-overlay"});var g=c(l,2);Zt(g,{class:"modal","aria-describedby":void 0,children:(A,tt)=>{var x=ue(),I=lt(x),M=r(I);te(M,{class:"modal-title",children:(f,d)=>{H();var v=rt("添加插件");u(f,v)},$$slots:{default:!0}});var et=c(M,2);gt(et,{class:"modal-close","aria-label":"关闭",children:(f,d)=>{H();var v=rt("✕");u(f,v)},$$slots:{default:!0}}),s(I);var w=c(I,2),P=c(r(w),2),R=c(r(P),2);it(R),O(R,"spellcheck",!1),s(P);var k=c(P,2),T=c(r(k),2);it(T),O(T,"spellcheck",!1),s(k);var B=c(k,2),F=r(B),E=r(F);gt(E,{class:"btn-cancel",get disabled(){return t(S)},type:"button",children:(f,d)=>{H();var v=rt("取消");u(f,v)},$$slots:{default:!0}});var L=c(E,2),at=r(L,!0);s(L),s(F),s(B),s(w),ot(()=>{L.disabled=t(S),K(at,t(S)?"创建中…":"创建并打开编辑")}),Bt("submit",w,Pt),nt(R,()=>t(y),f=>o(y,f)),nt(T,()=>t(j),f=>o(j,f)),u(A,x)},$$slots:{default:!0}}),u(i,_)},$$slots:{default:!0}})},$$slots:{default:!0}}),nt(Y,()=>t(J),e=>o(J,e)),D("click",Z,ct),u(jt,pt),Nt()}Mt(["click","keydown"]);export{Re as component};
@@ -1 +1 @@
1
- import{a,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as m}from"../chunks/Bp63qm3L.js";import{at as e,au as s,X as i,$ as f}from"../chunks/BbWUOQ_m.js";import{h as n}from"../chunks/DEDI7Ecm.js";import{i as c}from"../chunks/CVzlFH44.js";import{g as d}from"../chunks/C0J2-L94.js";var h=p('<p class="redirect-msg svelte-1b0rhdm">正在打开添加插件…</p>');function A(o,r){e(r,!1),m(()=>{d("/plugins?openAdd=1",{replaceState:!0})}),c();var t=h();n("1b0rhdm",l=>{i(()=>{f.title="插件"})}),a(o,t),s()}export{A as component};
1
+ import{a,f as p}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as m}from"../chunks/Bp63qm3L.js";import{at as e,au as s,X as i,$ as f}from"../chunks/BbWUOQ_m.js";import{h as n}from"../chunks/DEDI7Ecm.js";import{i as c}from"../chunks/CVzlFH44.js";import{g as d}from"../chunks/5LVkDJzw.js";var h=p('<p class="redirect-msg svelte-1b0rhdm">正在打开添加插件…</p>');function A(o,r){e(r,!1),m(()=>{d("/plugins?openAdd=1",{replaceState:!0})}),c();var t=h();n("1b0rhdm",l=>{i(()=>{f.title="插件"})}),a(o,t),s()}export{A as component};